@genesislcap/design-system-configurator 14.187.1 → 14.188.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/{206.206.1be43d1b21d84fb730d9.js → 206.206.9c8ebe60bcbf65c07628.js} +199 -199
- package/dist/206.b03a0d0fc083a43127b0f4088065183a.js.map +1 -0
- package/dist/{279.279.651a657b7326b5a096dc.js → 279.279.176d003f9b8ad05ab38a.js} +1 -1
- package/dist/{531.531.541344acd9d41c4d9d3f.js → 531.531.b4165fdd1dd6e76d7be2.js} +209 -209
- package/dist/531.e7d837b3dc03a9828045d28ab13761e4.js.map +1 -0
- package/dist/{548.548.4e5de0ae20b5f1c6986b.js → 548.548.cd4b8852dc6a53ed83bb.js} +1 -1
- package/dist/653.653.3d5ebf721dc5cac42c9c.js +2 -0
- package/dist/{653.cda2755851515fbf4ce54a3f75f7351b.js.map → 653.cd79d6d50e9f0dfe8ed96f08357afbae.js.map} +1 -1
- package/dist/698.698.dbc3cd636a083b14d15b.js +2 -0
- package/dist/698.b0a13f590ef38f01fab872dcb7effa7e.js.map +1 -0
- package/dist/{557.557.0445401010258c124c30.js → 938.938.86ae25d2eacca36ae701.js} +2 -2
- package/dist/{557.d1496980e5a217aed34faabcd18597b1.js.map → 938.9addb36745ec7e34fbd148c097deffd3.js.map} +1 -1
- package/dist/designSystemConfigurator.b7b9d1223a2c4df00d725f5cc60147a2.js.map +1 -0
- package/dist/index.html +1 -1
- package/dist/main.12ff13c6a9219481874cbdda70c509b5.js.map +1 -0
- package/dist/main.5428faeb929c442b946f.js +2 -0
- package/dist/remoteEntry.js +2 -2
- package/package.json +12 -12
- package/dist/206.4a7762aabc51f035ec6b42c097bcafd3.js.map +0 -1
- package/dist/531.ffa90cfe298d35d5c0b159354f5daef8.js.map +0 -1
- package/dist/653.653.0f96cc5e5ced65b653df.js +0 -2
- package/dist/842.2d518dcfd90b83f5ebb3054be6a64229.js.map +0 -1
- package/dist/842.842.7fcacaddda3e1e491423.js +0 -2
- package/dist/designSystemConfigurator.02c6d53d8f2e44c380cd3f7ab596d900.js.map +0 -1
- package/dist/main.9c0daff58be4ad8356a31ad3b549fb78.js.map +0 -1
- package/dist/main.ece7227cce12dce73ab7.js +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(self.webpackChunk_genesislcap_design_system_configurator=self.webpackChunk_genesislcap_design_system_configurator||[]).push([[531],{91386:(e,t,o)=>{"use strict";o.d(t,{GJ:()=>r,O:()=>s,tF:()=>n,uR:()=>d});o(21566);var i=o(51830);function a(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(e){return null}}function n(){if(i.Bd){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.Bd&&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}},58915: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)}}}()},33839: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}}}()},7554: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)}}}()},49916: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)}}}()},21566: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}},31972:(e,t,o)=>{"use strict";o.r(t),o.d(t,{Accordion:()=>c,AccordionItem:()=>g,ActionsMenu:()=>T,Anchor:()=>N,AnchoredRegion:()=>B,Avatar:()=>W,Badge:()=>J,Banner:()=>de,BaseDatasource:()=>pt,Breadcrumb:()=>he,BreadcrumbItem:()=>ye,Button:()=>ke,COMBO_INPUT_MIN_LENGTH:()=>ul,CSSVarsTokenMapper:()=>du,Calendar:()=>Le,Card:()=>Me,CategorizedMultiselect:()=>Ke,Checkbox:()=>Je,Combobox:()=>Lt,ConnectionIndicator:()=>Ht,DEFUALT_FILTER_BAR_COLUMNS:()=>Ja,DataGrid:()=>jt,DataGridCell:()=>Wt,DataGridDatasource:()=>cu,DataGridRow:()=>Qt,DatePicker:()=>wo,Dialog:()=>xi,DialogElement:()=>yi,Disclosure:()=>Ci,Divider:()=>Ti,DropdownMenu:()=>Pi,ErrorBanner:()=>Gi,ErrorBoundary:()=>aa,ErrorBoundaryEvent:()=>Yi,ErrorDialog:()=>ca,FaPrefixFromStyle:()=>es,FileUpload:()=>Aa,Filter:()=>Ua,FilterBar:()=>en,FilterEvents:()=>Ga,FlexLayout:()=>dn,FlexMediaQueriesEnum:()=>on,Flipper:()=>hn,Flyout:()=>wn,FoundationDesignSystemProvider:()=>ci,FoundationRouteCollection:()=>Du,FoundationRouter:()=>Ou,FoundationRouterConfiguration:()=>Tu,GridLayout:()=>En,GridLayoutItem:()=>Mn,GridMediaQueriesEnum:()=>kn,HorizontalScroll:()=>zn,INPUT_MIN_LENGTH:()=>cl,Icon:()=>is,Listbox:()=>rs,ListboxOption:()=>hs,Menu:()=>ys,MenuItem:()=>ks,Modal:()=>As,Multiselect:()=>js,MultiselectDatasource:()=>Ms,NotificationListener:()=>mu,NumberField:()=>Ws,OptionsDatasource:()=>Ft,Popper:()=>Ir,Position:()=>ze,Progress:()=>xr,ProgressRing:()=>jr,Radio:()=>qr,RadioGroup:()=>el,SCROLL_TIMEOUT:()=>dl,SNACKBAR_CLOSE_TIMEOUT:()=>dd,SNACKBAR_EVENTS_NAMES:()=>cd,SNACKBAR_TYPES:()=>ld,SNACKBAR_TYPE_DEFAULT:()=>rd,SearchBar:()=>hl,SearchBarCombobox:()=>yl,SegmentedControl:()=>kl,SegmentedItem:()=>Ll,Select:()=>Ml,Skeleton:()=>Vl,Slider:()=>Zl,SliderLabel:()=>id,Snackbar:()=>vd,StackingIcons:()=>yd,Stepper:()=>Cd,StepperTab:()=>Ed,StepperTabPanel:()=>Md,Switch:()=>Vd,SystemHealthOverlay:()=>Or,Tab:()=>Kd,TabPanel:()=>tc,Tabs:()=>rc,TextArea:()=>hc,TextField:()=>wc,Toast:()=>Dc,Toolbar:()=>Ac,Tooltip:()=>Pc,TreeItem:()=>Uc,TreeView:()=>Zc,UrlInput:()=>su,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:()=>Jo,actionsMenuBaseStyles:()=>$,baseComponents:()=>lu,baseHeightMultiplier:()=>s.baseHeightMultiplier,baseLayerLuminance:()=>s.baseLayerLuminance,baseLayerLuminanceValue:()=>ti,black:()=>ko,bodyFont:()=>s.bodyFont,categorizedMultiselectStyles:()=>Ve,categorizedMultiselectTemplate:()=>Ye,closeIcon:()=>mi,configureDesignSystem:()=>Qo,controlCornerRadius:()=>s.controlCornerRadius,controlCornerRadiusValue:()=>ii,createDesignSystemProxy:()=>Cr,createFormData:()=>Fa,crossIcon:()=>nl,defaultAccordionConfig:()=>p,defaultAccordionItemConfig:()=>b,defaultAnchorConfig:()=>I,defaultAnchoredRegionConfig:()=>j,defaultAvatarConfig:()=>K,defaultBadgeConfig:()=>te,defaultBreadcrumbConfig:()=>ve,defaultBreadcrumbItemConfig:()=>we,defaultButtonConfig:()=>_e,defaultCalendarConfig:()=>Ae,defaultCardConfig:()=>Pe,defaultCategorizedMultiselectConfig:()=>qe,defaultCheckboxConfig:()=>tt,defaultComboboxConfig:()=>At,defaultDataGridCellConfig:()=>Kt,defaultDataGridConfig:()=>Gt,defaultDataGridRowConfig:()=>eo,defaultDatePickerConfig:()=>xo,defaultDialogConfig:()=>bi,defaultDisclosureConfig:()=>Fi,defaultDividerConfig:()=>Ei,defaultFileUploadConfig:()=>Ra,defaultFillColor:()=>_o,defaultFlexLayoutConfig:()=>ln,defaultFlipperConfig:()=>vn,defaultFlyoutConfig:()=>Sn,defaultGridLayoutConfig:()=>Tn,defaultGridLayoutItemConfig:()=>In,defaultHorizontalScrollConfig:()=>Vn,defaultIconConfig:()=>Jn,defaultListboxConfig:()=>ds,defaultListboxOptionConfig:()=>vs,defaultMenuConfig:()=>ws,defaultMenuItemConfig:()=>_s,defaultModalConfig:()=>Es,defaultMultiselectConfig:()=>zs,defaultNavItemPredicate:()=>bu,defaultNeutralForegroundContrast:()=>Bo,defaultNumberFieldConfig:()=>Ks,defaultPlacementIndexPadding:()=>yu,defaultProgressConfig:()=>$r,defaultProgressRingConfig:()=>Gr,defaultRadioConfig:()=>Xr,defaultRadioGroupConfig:()=>ol,defaultSearchBarComboboxConfig:()=>wl,defaultSearchBarConfig:()=>vl,defaultSegmentedControlConfig:()=>_l,defaultSegmentedItemConfig:()=>Al,defaultSelectConfig:()=>Pl,defaultSkeletonConfig:()=>Ul,defaultSliderConfig:()=>Jl,defaultSliderLabelConfig:()=>nd,defaultStepperConfig:()=>Fd,defaultStepperTabConfig:()=>Nd,defaultStepperTabPanelConfig:()=>Pd,defaultSwitchConfig:()=>Ud,defaultSystemHealthOverlayConfig:()=>Er,defaultTabConfig:()=>Zd,defaultTabPanelConfig:()=>ic,defaultTabsConfig:()=>dc,defaultTextAreaConfig:()=>vc,defaultTextFieldConfig:()=>Sc,defaultToastConfig:()=>Oc,defaultToolbarConfig:()=>Rc,defaultTooltipConfig:()=>zc,defaultTreeItemConfig:()=>Wc,defaultTreeViewConfig:()=>Jc,defaultUrlInputConfig:()=>nu,defineFactory:()=>gu,density:()=>s.density,designToken:()=>Uo,designUnit:()=>s.designUnit,designUnitValue:()=>ai,direction:()=>s.direction,directionValue:()=>oi,disabledOpacity:()=>s.disabledOpacity,downloadFile:()=>Oa,dropdownMenuBaseStyles:()=>Ni,errorDialogTemplate:()=>la,extractMenuItems:()=>Ii,faSizeValueDefault:()=>ts,faSizeValues:()=>os,fillColor:()=>s.fillColor,filterBarTemplate:()=>Za,flyoutAnimationTime:()=>fn,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:()=>D,foundationAnchor:()=>M,foundationAnchorShadowOptions:()=>R,foundationAnchorStyles:()=>E,foundationAnchorTemplate:()=>A,foundationAnchoredRegion:()=>V,foundationAnchoredRegionShadowOptions:()=>z,foundationAnchoredRegionStyles:()=>P,foundationAnchoredRegionTemplate:()=>H,foundationAvatar:()=>X,foundationAvatarShadowOptions:()=>q,foundationAvatarStyles:()=>G,foundationAvatarTemplate:()=>U,foundationBadge:()=>oe,foundationBadgeShadowOptions:()=>ee,foundationBadgeStyles:()=>Z,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:()=>Fe,foundationButtonStyles:()=>Se,foundationButtonTemplate:()=>Ce,foundationCalendar:()=>Ne,foundationCalendarShadowOptions:()=>Ee,foundationCalendarStyles:()=>De,foundationCalendarTemplate:()=>Te,foundationCard:()=>Be,foundationCardShadowOptions:()=>He,foundationCardStyles:()=>Re,foundationCardTemplate:()=>Ie,foundationCategorizedMultiselect:()=>Xe,foundationCategorizedMultiselectShadowOptions:()=>We,foundationCheckbox:()=>ot,foundationCheckboxShadowOptions:()=>et,foundationCheckboxStyles:()=>Ze,foundationCheckboxTemplate:()=>Qe,foundationCombobox:()=>Nt,foundationComboboxShadowOptions:()=>Et,foundationComboboxStyles:()=>_t,foundationComboboxTemplate:()=>Ot,foundationConnectionIndicator:()=>Pt,foundationConnectionIndicatorStyles:()=>It,foundationConnectionIndicatorTemplate:()=>Mt,foundationDataGrid:()=>Ut,foundationDataGridCell:()=>Xt,foundationDataGridCellShadowOptions:()=>qt,foundationDataGridCellStyles:()=>Yt,foundationDataGridCellTemplate:()=>n.dataGridCellTemplate,foundationDataGridRow:()=>to,foundationDataGridRowShadowOptions:()=>Jt,foundationDataGridRowStyles:()=>Zt,foundationDataGridRowTemplate:()=>n.dataGridRowTemplate,foundationDataGridShadowOptions:()=>Vt,foundationDataGridStyles:()=>Bt,foundationDataGridTemplate:()=>zt,foundationDatePicker:()=>$o,foundationDatePickerShadowOptions:()=>yo,foundationDatePickerStyles:()=>go,foundationDatePickerTemplate:()=>bo,foundationDesignSystemProvider:()=>ui,foundationDialog:()=>wi,foundationDialogShadowOptions:()=>fi,foundationDialogStyles:()=>hi,foundationDialogTemplate:()=>gi,foundationDisclosure:()=>_i,foundationDisclosureShadowOptions:()=>ki,foundationDisclosureStyles:()=>$i,foundationDisclosureTemplate:()=>Si,foundationDivider:()=>Ai,foundationDividerShadowOptions:()=>Li,foundationDividerStyles:()=>Oi,foundationDividerTemplate:()=>Di,foundationDropdownMenu:()=>Bi,foundationDropdownMenuStyles:()=>Ri,foundationDropdownMenuTemplate:()=>Hi,foundationErrorBanner:()=>Ui,foundationErrorBannerShadowOptions:()=>Vi,foundationErrorBannerTemplate:()=>ji,foundationErrorBoundary:()=>na,foundationErrorBoundaryShadowOptions:()=>ia,foundationErrorBoundaryTemplate:()=>oa,foundationErrorDialog:()=>ua,foundationErrorDialogShadowOptions:()=>da,foundationErrorDialogStyles:()=>sa,foundationFileUpload:()=>Ia,foundationFileUploadShadowOptions:()=>Na,foundationFileUploadStyles:()=>ma,foundationFileUploadTemplate:()=>ga,foundationFilter:()=>Ya,foundationFilterBar:()=>tn,foundationFilterBarStyles:()=>qa,foundationFilterBarTemplate:()=>Qa,foundationFilterStyles:()=>Ma,foundationFilterTemplate:()=>Va,foundationFlexLayout:()=>cn,foundationFlexLayoutShadowOptions:()=>rn,foundationFlexLayoutStyles:()=>nn,foundationFlexLayoutTemplate:()=>sn,foundationFlipper:()=>gn,foundationFlipperShadowOptions:()=>mn,foundationFlipperStyles:()=>un,foundationFlipperTemplate:()=>pn,foundationFlyout:()=>Cn,foundationFlyoutShadowOptions:()=>$n,foundationFlyoutStyles:()=>bn,foundationFlyoutTemplate:()=>xn,foundationGridLayout:()=>An,foundationGridLayoutItem:()=>Hn,foundationGridLayoutItemShadowOptions:()=>Rn,foundationGridLayoutItemTemplate:()=>Nn,foundationGridLayoutShadowOptions:()=>Dn,foundationGridLayoutStyles:()=>_n,foundationGridLayoutTemplate:()=>On,foundationHorizontalScroll:()=>Gn,foundationHorizontalScrollShadowOptions:()=>jn,foundationHorizontalScrollStyles:()=>Pn,foundationHorizontalScrollTemplate:()=>Bn,foundationIcon:()=>as,foundationIconShadowOptions:()=>Qn,foundationIconStyles:()=>Xn,foundationIconTemplate:()=>Zn,foundationListbox:()=>cs,foundationListboxOption:()=>gs,foundationListboxOptionShadowOptions:()=>ms,foundationListboxOptionStyles:()=>us,foundationListboxOptionTemplate:()=>ps,foundationListboxShadowOptions:()=>ls,foundationListboxStyles:()=>ns,foundationListboxTemplate:()=>ss,foundationMenu:()=>$s,foundationMenuItem:()=>Os,foundationMenuItemShadowOptions:()=>Fs,foundationMenuItemStyles:()=>Ss,foundationMenuItemTemplate:()=>Cs,foundationMenuShadowOptions:()=>xs,foundationMenuStyles:()=>fs,foundationMenuTemplate:()=>bs,foundationModal:()=>Ns,foundationModalShadowOptions:()=>Ls,foundationModalStyles:()=>Ds,foundationModalTemplate:()=>Ts,foundationMultiselect:()=>Vs,foundationMultiselectShadowOptions:()=>Bs,foundationNotificationListener:()=>vu,foundationNotificationListenerShadowOptions:()=>hu,foundationNotificationListenerTemplate:()=>uu,foundationNumberField:()=>Xs,foundationNumberFieldShadowOptions:()=>qs,foundationNumberFieldStyles:()=>Us,foundationNumberFieldTemplate:()=>Ys,foundationPopper:()=>Pr,foundationProgress:()=>Sr,foundationProgressRing:()=>Ur,foundationProgressRingShadowOptions:()=>Vr,foundationProgressRingStyles:()=>Br,foundationProgressRingTemplate:()=>zr,foundationProgressShadowOptions:()=>wr,foundationProgressStyles:()=>br,foundationProgressTemplate:()=>yr,foundationRadio:()=>Zr,foundationRadioGroup:()=>il,foundationRadioGroupShadowOptions:()=>tl,foundationRadioGroupStyles:()=>Qr,foundationRadioGroupTemplate:()=>Jr,foundationRadioShadowOptions:()=>Kr,foundationRadioStyles:()=>Yr,foundationRadioTemplate:()=>Wr,foundationSearchBar:()=>gl,foundationSearchBarCombobox:()=>$l,foundationSearchBarComboboxShadowOptions:()=>xl,foundationSearchBarComboboxStyles:()=>fl,foundationSearchBarComboboxTemplate:()=>bl,foundationSearchBarShadowOptions:()=>ml,foundationSearchBarStyles:()=>al,foundationSearchBarTemplate:()=>ll,foundationSegmentedControl:()=>Ol,foundationSegmentedControlShadowOptions:()=>Fl,foundationSegmentedControlStyles:()=>Sl,foundationSegmentedControlTemplate:()=>Cl,foundationSegmentedItem:()=>Nl,foundationSegmentedItemShadowOptions:()=>El,foundationSegmentedItemStyles:()=>Dl,foundationSegmentedItemTemplate:()=>Tl,foundationSelect:()=>Bl,foundationSelectShadowOptions:()=>Hl,foundationSelectStyles:()=>Rl,foundationSelectTemplate:()=>Il,foundationSkeleton:()=>Yl,foundationSkeletonShadowOptions:()=>Gl,foundationSkeletonStyles:()=>zl,foundationSkeletonTemplate:()=>jl,foundationSlider:()=>ed,foundationSliderLabel:()=>sd,foundationSliderLabelShadowOptions:()=>ad,foundationSliderLabelStyles:()=>td,foundationSliderLabelTemplate:()=>od,foundationSliderShadowOptions:()=>Ql,foundationSliderStyles:()=>Wl,foundationSliderTemplate:()=>Xl,foundationSnackbar:()=>gd,foundationSnackbarShadowOptions:()=>md,foundationSnackbarStyles:()=>ud,foundationSnackbarTemplate:()=>hd,foundationStackingIcons:()=>xd,foundationStackingIconsStyles:()=>fd,foundationStackingIconsTemplate:()=>bd,foundationStepper:()=>_d,foundationStepperShadowOptions:()=>kd,foundationStepperStyles:()=>wd,foundationStepperTab:()=>Rd,foundationStepperTabPanel:()=>Bd,foundationStepperTabPanelShadowOptions:()=>Hd,foundationStepperTabPanelTemplate:()=>Id,foundationStepperTabShadowOptions:()=>Ad,foundationStepperTabStyles:()=>Od,foundationStepperTabTemplate:()=>Ld,foundationStepperTemplate:()=>Sd,foundationSwitch:()=>Yd,foundationSwitchShadowOptions:()=>Gd,foundationSwitchStyles:()=>zd,foundationSwitchTemplate:()=>jd,foundationSystemHealthOverlay:()=>Ar,foundationSystemHealthOverlayShadowOptions:()=>Lr,foundationSystemHealthOverlayStyles:()=>Tr,foundationSystemHealthOverlayTemplate:()=>Dr,foundationTab:()=>Qd,foundationTabPanel:()=>ac,foundationTabPanelShadowOptions:()=>oc,foundationTabPanelStyles:()=>Jd,foundationTabPanelTemplate:()=>ec,foundationTabShadowOptions:()=>Xd,foundationTabStyles:()=>Wd,foundationTabTemplate:()=>qd,foundationTabs:()=>cc,foundationTabsShadowOptions:()=>lc,foundationTabsStyles:()=>nc,foundationTabsTemplate:()=>sc,foundationTextArea:()=>gc,foundationTextAreaShadowOptions:()=>mc,foundationTextAreaStyles:()=>uc,foundationTextAreaTemplate:()=>pc,foundationTextField:()=>Cc,foundationTextFieldShadowOptions:()=>$c,foundationTextFieldStyles:()=>yc,foundationTextFieldTemplate:()=>xc,foundationToast:()=>Tc,foundationToastShadowOptions:()=>_c,foundationToastStyles:()=>kc,foundationToastTemplate:()=>Fc,foundationToolbar:()=>Ic,foundationToolbarShadowOptions:()=>Nc,foundationToolbarStyles:()=>Lc,foundationToolbarTemplate:()=>Ec,foundationTooltip:()=>jc,foundationTooltipShadowOptions:()=>Bc,foundationTooltipStyles:()=>Mc,foundationTooltipTemplate:()=>Hc,foundationTreeItem:()=>qc,foundationTreeItemShadowOptions:()=>Yc,foundationTreeItemStyles:()=>Vc,foundationTreeItemTemplate:()=>Gc,foundationTreeView:()=>eu,foundationTreeViewShadowOptions:()=>Qc,foundationTreeViewStyles:()=>Kc,foundationTreeViewTemplate:()=>Xc,foundationUrlInput:()=>ru,foundationUrlInputShadowOptions:()=>au,foundationUrlInputStyles:()=>tu,foundationUrlInputTemplate:()=>iu,fuiAccentPalette:()=>Io,fuiAccentSwatch:()=>Ro,fuiCardFillColor:()=>Po,fuiCardForegroundColor:()=>jo,fuiDefaultCardFillColor:()=>Do,fuiDefaultCardPalette:()=>To,fuiFillColor:()=>Ho,fuiNeutralPalette:()=>Ao,fuiNeutralSwatch:()=>Eo,getBannerTemplate:()=>se,getCriteriaBuilder:()=>pl,getDefaultConfig:()=>Ko,getDesignSystemPrefix:()=>F,getDialogTemplate:()=>vi,getDropdownMenuTemplate:()=>Mi,getErrorDialogTemplate:()=>ra,getExports:()=>Xo,getFontawesomeIconsCss:()=>Kn,getNavItems:()=>xu,getPrefixedCategorizedMultiselect:()=>Ue,getPrefixedDatePicker:()=>fo,getPrefixedErrorBanner:()=>zi,getPrefixedFileUpload:()=>va,getPrefixedFilterTemplate:()=>ja,getPrefixedFlyout:()=>yn,getPrefixedMultiselect:()=>Hs,getPrefixedSearchBar:()=>rl,getPrefixedSnackbar:()=>pd,getPrefixedStepper:()=>$d,getPrefixedStepperTab:()=>Td,getPrefixedUrlInput:()=>ou,getTypeRampValue:()=>Zo,jsonConverter:()=>Rr,mapType:()=>Ka,maxheight:()=>Rs,media:()=>Y,menuTemplate:()=>_,mixinFoundationFontFamily:()=>si,multiselectStyles:()=>Is,multiselectTemplate:()=>Ps,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:()=>zo,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:()=>ei,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,optionsMaxheight:()=>je,paletteFromHex:()=>Wo,plusIcon:()=>sl,provideDesignSystem:()=>kr,provideTokens:()=>Go,registerFoundationDesignSystem:()=>Lu,singleOptionTemplate:()=>O,strokeWidth:()=>s.strokeWidth,swatchConverter:()=>Yo,tagFor:()=>fu,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:()=>_a,white:()=>Co});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:()=>Bo,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:()=>Po,fuiCardForegroundColor:()=>jo,fuiFillColor:()=>Ho,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:()=>zo,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:()=>Jo,baseLayerLuminanceValue:()=>ti,controlCornerRadiusValue:()=>ii,designUnitValue:()=>ai,directionValue:()=>oi,neutralPaletteValue:()=>ei});var n=o(34387),s=o(44405),r=o(57418);const l=(e,t)=>r.css`
|
|
1
|
+
(self.webpackChunk_genesislcap_design_system_configurator=self.webpackChunk_genesislcap_design_system_configurator||[]).push([[531],{91386:(e,t,o)=>{"use strict";o.d(t,{GJ:()=>r,O:()=>s,tF:()=>n,uR:()=>d});o(21566);var i=o(51830);function a(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(e){return null}}function n(){if(i.Bd){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.Bd&&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}},58915: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)}}}()},33839: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}}}()},7554: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)}}}()},49916: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)}}}()},21566: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}},31972:(e,t,o)=>{"use strict";o.r(t),o.d(t,{Accordion:()=>c,AccordionItem:()=>g,ActionsMenu:()=>T,Anchor:()=>N,AnchoredRegion:()=>B,Avatar:()=>W,Badge:()=>J,Banner:()=>de,BaseDatasource:()=>mt,Breadcrumb:()=>he,BreadcrumbItem:()=>ye,Button:()=>ke,COMBO_INPUT_MIN_LENGTH:()=>hl,CSSVarsTokenMapper:()=>uu,Calendar:()=>Le,Card:()=>Me,CategorizedMultiselect:()=>Ke,Checkbox:()=>Je,Combobox:()=>At,ConnectionIndicator:()=>Bt,DEFUALT_FILTER_BAR_COLUMNS:()=>tn,DataGrid:()=>Gt,DataGridCell:()=>Kt,DataGridDatasource:()=>pu,DataGridRow:()=>eo,DatePicker:()=>So,Dialog:()=>$i,DialogElement:()=>wi,Disclosure:()=>Fi,Divider:()=>Ei,DropdownMenu:()=>zi,ErrorBanner:()=>Yi,ErrorBoundary:()=>sa,ErrorBoundaryEvent:()=>qi,ErrorDialog:()=>pa,FaPrefixFromStyle:()=>os,FileUpload:()=>Ra,Filter:()=>Wa,FilterBar:()=>on,FilterEvents:()=>Ya,FlexLayout:()=>un,FlexMediaQueriesEnum:()=>nn,Flipper:()=>vn,Flyout:()=>Sn,FoundationDesignSystemProvider:()=>pi,FoundationRouteCollection:()=>Lu,FoundationRouter:()=>Tu,FoundationRouterConfiguration:()=>Eu,GridLayout:()=>Nn,GridLayoutItem:()=>Pn,GridMediaQueriesEnum:()=>_n,HorizontalScroll:()=>Vn,INPUT_MIN_LENGTH:()=>pl,Icon:()=>ns,Listbox:()=>ds,ListboxOption:()=>vs,Menu:()=>ws,MenuItem:()=>_s,Modal:()=>Rs,Multiselect:()=>Gs,MultiselectDatasource:()=>Ps,NotificationListener:()=>gu,NumberField:()=>Ks,OptionsDatasource:()=>Ot,Popper:()=>Hr,Position:()=>ze,Progress:()=>$r,ProgressRing:()=>Gr,Radio:()=>Xr,RadioGroup:()=>ol,SCROLL_TIMEOUT:()=>ul,SNACKBAR_CLOSE_TIMEOUT:()=>ud,SNACKBAR_EVENTS_NAMES:()=>pd,SNACKBAR_TYPES:()=>cd,SNACKBAR_TYPE_DEFAULT:()=>dd,SearchBar:()=>vl,SearchBarCombobox:()=>wl,SegmentedControl:()=>_l,SegmentedItem:()=>Al,Select:()=>Pl,Skeleton:()=>Ul,Slider:()=>Jl,SliderLabel:()=>nd,Snackbar:()=>fd,StackingIcons:()=>wd,Stepper:()=>Fd,StepperTab:()=>Nd,StepperTabPanel:()=>Pd,Switch:()=>Ud,SystemHealthOverlay:()=>Tr,Tab:()=>Zd,TabPanel:()=>ic,Tabs:()=>dc,TextArea:()=>vc,TextField:()=>Sc,Toast:()=>Lc,Toolbar:()=>Rc,Tooltip:()=>zc,TreeItem:()=>Wc,TreeView:()=>Jc,UrlInput:()=>lu,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:()=>ti,actionsMenuBaseStyles:()=>$,baseComponents:()=>cu,baseHeightMultiplier:()=>s.baseHeightMultiplier,baseLayerLuminance:()=>s.baseLayerLuminance,baseLayerLuminanceValue:()=>ii,black:()=>_o,bodyFont:()=>s.bodyFont,categorizedMultiselectStyles:()=>Ve,categorizedMultiselectTemplate:()=>Ye,closeIcon:()=>gi,configureDesignSystem:()=>ei,controlCornerRadius:()=>s.controlCornerRadius,controlCornerRadiusValue:()=>ni,createDesignSystemProxy:()=>Fr,createFormData:()=>Oa,crossIcon:()=>rl,defaultAccordionConfig:()=>p,defaultAccordionItemConfig:()=>b,defaultAnchorConfig:()=>I,defaultAnchoredRegionConfig:()=>j,defaultAvatarConfig:()=>K,defaultBadgeConfig:()=>te,defaultBreadcrumbConfig:()=>ve,defaultBreadcrumbItemConfig:()=>we,defaultButtonConfig:()=>_e,defaultCalendarConfig:()=>Ae,defaultCardConfig:()=>Pe,defaultCategorizedMultiselectConfig:()=>qe,defaultCheckboxConfig:()=>tt,defaultComboboxConfig:()=>Rt,defaultDataGridCellConfig:()=>Zt,defaultDataGridConfig:()=>Yt,defaultDataGridRowConfig:()=>oo,defaultDatePickerConfig:()=>$o,defaultDialogConfig:()=>xi,defaultDisclosureConfig:()=>Oi,defaultDividerConfig:()=>Ni,defaultFileUploadConfig:()=>Ma,defaultFillColor:()=>Do,defaultFlexLayoutConfig:()=>cn,defaultFlipperConfig:()=>fn,defaultFlyoutConfig:()=>kn,defaultGridLayoutConfig:()=>En,defaultGridLayoutItemConfig:()=>Hn,defaultHorizontalScrollConfig:()=>Un,defaultIconConfig:()=>ts,defaultListboxConfig:()=>us,defaultListboxOptionConfig:()=>fs,defaultMenuConfig:()=>Ss,defaultMenuItemConfig:()=>Ds,defaultModalConfig:()=>Ns,defaultMultiselectConfig:()=>Vs,defaultNavItemPredicate:()=>xu,defaultNeutralForegroundContrast:()=>jo,defaultNumberFieldConfig:()=>Zs,defaultPlacementIndexPadding:()=>wu,defaultProgressConfig:()=>Cr,defaultProgressRingConfig:()=>Yr,defaultRadioConfig:()=>Qr,defaultRadioGroupConfig:()=>al,defaultSearchBarComboboxConfig:()=>Sl,defaultSearchBarConfig:()=>fl,defaultSegmentedControlConfig:()=>Dl,defaultSegmentedItemConfig:()=>Rl,defaultSelectConfig:()=>zl,defaultSkeletonConfig:()=>Wl,defaultSliderConfig:()=>td,defaultSliderLabelConfig:()=>rd,defaultStepperConfig:()=>Od,defaultStepperTabConfig:()=>Id,defaultStepperTabPanelConfig:()=>zd,defaultSwitchConfig:()=>Wd,defaultSystemHealthOverlayConfig:()=>Nr,defaultTabConfig:()=>Jd,defaultTabPanelConfig:()=>nc,defaultTabsConfig:()=>uc,defaultTextAreaConfig:()=>fc,defaultTextFieldConfig:()=>kc,defaultToastConfig:()=>Tc,defaultToolbarConfig:()=>Mc,defaultTooltipConfig:()=>Vc,defaultTreeItemConfig:()=>Kc,defaultTreeViewConfig:()=>tu,defaultUrlInputConfig:()=>ru,defineFactory:()=>bu,density:()=>s.density,designToken:()=>Wo,designUnit:()=>s.designUnit,designUnitValue:()=>si,direction:()=>s.direction,directionValue:()=>ai,disabledOpacity:()=>s.disabledOpacity,downloadFile:()=>Ta,dropdownMenuBaseStyles:()=>Ii,errorDialogTemplate:()=>ca,extractMenuItems:()=>Hi,faSizeValueDefault:()=>is,faSizeValues:()=>as,fillColor:()=>s.fillColor,filterBarTemplate:()=>Ja,flyoutAnimationTime:()=>yn,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:()=>D,foundationAnchor:()=>M,foundationAnchorShadowOptions:()=>R,foundationAnchorStyles:()=>E,foundationAnchorTemplate:()=>A,foundationAnchoredRegion:()=>V,foundationAnchoredRegionShadowOptions:()=>z,foundationAnchoredRegionStyles:()=>P,foundationAnchoredRegionTemplate:()=>H,foundationAvatar:()=>X,foundationAvatarShadowOptions:()=>q,foundationAvatarStyles:()=>G,foundationAvatarTemplate:()=>U,foundationBadge:()=>oe,foundationBadgeShadowOptions:()=>ee,foundationBadgeStyles:()=>Z,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:()=>Fe,foundationButtonStyles:()=>Se,foundationButtonTemplate:()=>Ce,foundationCalendar:()=>Ne,foundationCalendarShadowOptions:()=>Ee,foundationCalendarStyles:()=>De,foundationCalendarTemplate:()=>Te,foundationCard:()=>Be,foundationCardShadowOptions:()=>He,foundationCardStyles:()=>Re,foundationCardTemplate:()=>Ie,foundationCategorizedMultiselect:()=>Xe,foundationCategorizedMultiselectShadowOptions:()=>We,foundationCheckbox:()=>ot,foundationCheckboxShadowOptions:()=>et,foundationCheckboxStyles:()=>Ze,foundationCheckboxTemplate:()=>Qe,foundationCombobox:()=>It,foundationComboboxShadowOptions:()=>Nt,foundationComboboxStyles:()=>Dt,foundationComboboxTemplate:()=>Tt,foundationConnectionIndicator:()=>zt,foundationConnectionIndicatorStyles:()=>Ht,foundationConnectionIndicatorTemplate:()=>Pt,foundationDataGrid:()=>Wt,foundationDataGridCell:()=>Qt,foundationDataGridCellShadowOptions:()=>Xt,foundationDataGridCellStyles:()=>qt,foundationDataGridCellTemplate:()=>n.dataGridCellTemplate,foundationDataGridRow:()=>io,foundationDataGridRowShadowOptions:()=>to,foundationDataGridRowStyles:()=>Jt,foundationDataGridRowTemplate:()=>n.dataGridRowTemplate,foundationDataGridShadowOptions:()=>Ut,foundationDataGridStyles:()=>jt,foundationDataGridTemplate:()=>Vt,foundationDatePicker:()=>Co,foundationDatePickerShadowOptions:()=>wo,foundationDatePickerStyles:()=>bo,foundationDatePickerTemplate:()=>xo,foundationDesignSystemProvider:()=>hi,foundationDialog:()=>Si,foundationDialogShadowOptions:()=>yi,foundationDialogStyles:()=>vi,foundationDialogTemplate:()=>bi,foundationDisclosure:()=>Di,foundationDisclosureShadowOptions:()=>_i,foundationDisclosureStyles:()=>Ci,foundationDisclosureTemplate:()=>ki,foundationDivider:()=>Ri,foundationDividerShadowOptions:()=>Ai,foundationDividerStyles:()=>Ti,foundationDividerTemplate:()=>Li,foundationDropdownMenu:()=>ji,foundationDropdownMenuStyles:()=>Mi,foundationDropdownMenuTemplate:()=>Bi,foundationErrorBanner:()=>Wi,foundationErrorBannerShadowOptions:()=>Ui,foundationErrorBannerTemplate:()=>Gi,foundationErrorBoundary:()=>ra,foundationErrorBoundaryShadowOptions:()=>na,foundationErrorBoundaryTemplate:()=>aa,foundationErrorDialog:()=>ha,foundationErrorDialogShadowOptions:()=>ua,foundationErrorDialogStyles:()=>la,foundationFileUpload:()=>Ha,foundationFileUploadShadowOptions:()=>Ia,foundationFileUploadStyles:()=>ga,foundationFileUploadTemplate:()=>ba,foundationFilter:()=>qa,foundationFilterBar:()=>an,foundationFilterBarStyles:()=>Xa,foundationFilterBarTemplate:()=>en,foundationFilterStyles:()=>Pa,foundationFilterTemplate:()=>Ua,foundationFlexLayout:()=>pn,foundationFlexLayoutShadowOptions:()=>dn,foundationFlexLayoutStyles:()=>rn,foundationFlexLayoutTemplate:()=>ln,foundationFlipper:()=>bn,foundationFlipperShadowOptions:()=>gn,foundationFlipperStyles:()=>hn,foundationFlipperTemplate:()=>mn,foundationFlyout:()=>Fn,foundationFlyoutShadowOptions:()=>Cn,foundationFlyoutStyles:()=>xn,foundationFlyoutTemplate:()=>$n,foundationGridLayout:()=>Rn,foundationGridLayoutItem:()=>Bn,foundationGridLayoutItemShadowOptions:()=>Mn,foundationGridLayoutItemTemplate:()=>In,foundationGridLayoutShadowOptions:()=>Ln,foundationGridLayoutStyles:()=>Dn,foundationGridLayoutTemplate:()=>Tn,foundationHorizontalScroll:()=>Yn,foundationHorizontalScrollShadowOptions:()=>Gn,foundationHorizontalScrollStyles:()=>zn,foundationHorizontalScrollTemplate:()=>jn,foundationIcon:()=>ss,foundationIconShadowOptions:()=>es,foundationIconStyles:()=>Qn,foundationIconTemplate:()=>Jn,foundationListbox:()=>ps,foundationListboxOption:()=>bs,foundationListboxOptionShadowOptions:()=>gs,foundationListboxOptionStyles:()=>hs,foundationListboxOptionTemplate:()=>ms,foundationListboxShadowOptions:()=>cs,foundationListboxStyles:()=>rs,foundationListboxTemplate:()=>ls,foundationMenu:()=>Cs,foundationMenuItem:()=>Ts,foundationMenuItemShadowOptions:()=>Os,foundationMenuItemStyles:()=>ks,foundationMenuItemTemplate:()=>Fs,foundationMenuShadowOptions:()=>$s,foundationMenuStyles:()=>ys,foundationMenuTemplate:()=>xs,foundationModal:()=>Is,foundationModalShadowOptions:()=>As,foundationModalStyles:()=>Ls,foundationModalTemplate:()=>Es,foundationMultiselect:()=>Us,foundationMultiselectShadowOptions:()=>js,foundationNotificationListener:()=>fu,foundationNotificationListenerShadowOptions:()=>vu,foundationNotificationListenerTemplate:()=>hu,foundationNumberField:()=>Qs,foundationNumberFieldShadowOptions:()=>Xs,foundationNumberFieldStyles:()=>Ws,foundationNumberFieldTemplate:()=>qs,foundationPopper:()=>zr,foundationProgress:()=>kr,foundationProgressRing:()=>Wr,foundationProgressRingShadowOptions:()=>Ur,foundationProgressRingStyles:()=>jr,foundationProgressRingTemplate:()=>Vr,foundationProgressShadowOptions:()=>Sr,foundationProgressStyles:()=>xr,foundationProgressTemplate:()=>wr,foundationRadio:()=>Jr,foundationRadioGroup:()=>nl,foundationRadioGroupShadowOptions:()=>il,foundationRadioGroupStyles:()=>el,foundationRadioGroupTemplate:()=>tl,foundationRadioShadowOptions:()=>Zr,foundationRadioStyles:()=>qr,foundationRadioTemplate:()=>Kr,foundationSearchBar:()=>bl,foundationSearchBarCombobox:()=>Cl,foundationSearchBarComboboxShadowOptions:()=>$l,foundationSearchBarComboboxStyles:()=>yl,foundationSearchBarComboboxTemplate:()=>xl,foundationSearchBarShadowOptions:()=>gl,foundationSearchBarStyles:()=>sl,foundationSearchBarTemplate:()=>cl,foundationSegmentedControl:()=>Tl,foundationSegmentedControlShadowOptions:()=>Ol,foundationSegmentedControlStyles:()=>kl,foundationSegmentedControlTemplate:()=>Fl,foundationSegmentedItem:()=>Il,foundationSegmentedItemShadowOptions:()=>Nl,foundationSegmentedItemStyles:()=>Ll,foundationSegmentedItemTemplate:()=>El,foundationSelect:()=>jl,foundationSelectShadowOptions:()=>Bl,foundationSelectStyles:()=>Ml,foundationSelectTemplate:()=>Hl,foundationSkeleton:()=>ql,foundationSkeletonShadowOptions:()=>Yl,foundationSkeletonStyles:()=>Vl,foundationSkeletonTemplate:()=>Gl,foundationSlider:()=>od,foundationSliderLabel:()=>ld,foundationSliderLabelShadowOptions:()=>sd,foundationSliderLabelStyles:()=>id,foundationSliderLabelTemplate:()=>ad,foundationSliderShadowOptions:()=>ed,foundationSliderStyles:()=>Kl,foundationSliderTemplate:()=>Ql,foundationSnackbar:()=>bd,foundationSnackbarShadowOptions:()=>gd,foundationSnackbarStyles:()=>hd,foundationSnackbarTemplate:()=>vd,foundationStackingIcons:()=>$d,foundationStackingIconsStyles:()=>yd,foundationStackingIconsTemplate:()=>xd,foundationStepper:()=>Dd,foundationStepperShadowOptions:()=>_d,foundationStepperStyles:()=>Sd,foundationStepperTab:()=>Md,foundationStepperTabPanel:()=>jd,foundationStepperTabPanelShadowOptions:()=>Bd,foundationStepperTabPanelTemplate:()=>Hd,foundationStepperTabShadowOptions:()=>Rd,foundationStepperTabStyles:()=>Td,foundationStepperTabTemplate:()=>Ad,foundationStepperTemplate:()=>kd,foundationSwitch:()=>qd,foundationSwitchShadowOptions:()=>Yd,foundationSwitchStyles:()=>Vd,foundationSwitchTemplate:()=>Gd,foundationSystemHealthOverlay:()=>Rr,foundationSystemHealthOverlayShadowOptions:()=>Ar,foundationSystemHealthOverlayStyles:()=>Er,foundationSystemHealthOverlayTemplate:()=>Lr,foundationTab:()=>ec,foundationTabPanel:()=>sc,foundationTabPanelShadowOptions:()=>ac,foundationTabPanelStyles:()=>tc,foundationTabPanelTemplate:()=>oc,foundationTabShadowOptions:()=>Qd,foundationTabStyles:()=>Kd,foundationTabTemplate:()=>Xd,foundationTabs:()=>pc,foundationTabsShadowOptions:()=>cc,foundationTabsStyles:()=>rc,foundationTabsTemplate:()=>lc,foundationTextArea:()=>bc,foundationTextAreaShadowOptions:()=>gc,foundationTextAreaStyles:()=>hc,foundationTextAreaTemplate:()=>mc,foundationTextField:()=>Fc,foundationTextFieldShadowOptions:()=>Cc,foundationTextFieldStyles:()=>wc,foundationTextFieldTemplate:()=>$c,foundationToast:()=>Ec,foundationToastShadowOptions:()=>Dc,foundationToastStyles:()=>_c,foundationToastTemplate:()=>Oc,foundationToolbar:()=>Hc,foundationToolbarShadowOptions:()=>Ic,foundationToolbarStyles:()=>Ac,foundationToolbarTemplate:()=>Nc,foundationTooltip:()=>Gc,foundationTooltipShadowOptions:()=>jc,foundationTooltipStyles:()=>Pc,foundationTooltipTemplate:()=>Bc,foundationTreeItem:()=>Xc,foundationTreeItemShadowOptions:()=>qc,foundationTreeItemStyles:()=>Uc,foundationTreeItemTemplate:()=>Yc,foundationTreeView:()=>ou,foundationTreeViewShadowOptions:()=>eu,foundationTreeViewStyles:()=>Zc,foundationTreeViewTemplate:()=>Qc,foundationUrlInput:()=>du,foundationUrlInputShadowOptions:()=>su,foundationUrlInputStyles:()=>iu,foundationUrlInputTemplate:()=>nu,fuiAccentPalette:()=>Ho,fuiAccentSwatch:()=>Mo,fuiCardFillColor:()=>zo,fuiCardForegroundColor:()=>Go,fuiDefaultCardFillColor:()=>Lo,fuiDefaultCardPalette:()=>Eo,fuiFillColor:()=>Bo,fuiNeutralPalette:()=>Ro,fuiNeutralSwatch:()=>No,getBannerTemplate:()=>se,getCriteriaBuilder:()=>ml,getDefaultConfig:()=>Zo,getDesignSystemPrefix:()=>F,getDialogTemplate:()=>fi,getDropdownMenuTemplate:()=>Pi,getErrorDialogTemplate:()=>da,getExports:()=>Qo,getFontawesomeIconsCss:()=>Zn,getNavItems:()=>$u,getPrefixedCategorizedMultiselect:()=>Ue,getPrefixedDatePicker:()=>yo,getPrefixedErrorBanner:()=>Vi,getPrefixedFileUpload:()=>fa,getPrefixedFilterTemplate:()=>Ga,getPrefixedFlyout:()=>wn,getPrefixedMultiselect:()=>Bs,getPrefixedSearchBar:()=>dl,getPrefixedSnackbar:()=>md,getPrefixedStepper:()=>Cd,getPrefixedStepperTab:()=>Ed,getPrefixedUrlInput:()=>au,getTypeRampValue:()=>Jo,jsonConverter:()=>Mr,mapType:()=>Za,maxheight:()=>Ms,media:()=>Y,menuTemplate:()=>_,mixinFoundationFontFamily:()=>li,multiselectStyles:()=>Hs,multiselectTemplate:()=>zs,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:()=>Vo,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:()=>oi,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,optionsMaxheight:()=>je,paletteFromHex:()=>Ko,plusIcon:()=>ll,provideDesignSystem:()=>_r,provideTokens:()=>Yo,registerFoundationDesignSystem:()=>Au,singleOptionTemplate:()=>O,strokeWidth:()=>s.strokeWidth,swatchConverter:()=>qo,tagFor:()=>yu,typeRampBaseFontSize:()=>s.typeRampBaseFontSize,typeRampBaseLineHeight:()=>s.typeRampBaseLineHeight,typeRampMinus1FontSize:()=>s.typeRampMinus1FontSize,typeRampMinus1LineHeight:()=>s.typeRampMinus1LineHeight,typeRampMinus2FontSize:()=>s.typeRampMinus2FontSize,typeRampMinus2LineHeight:()=>s.typeRampMinus2LineHeight,typeRampPlus1FontSize:()=>s.typeRampPlus1FontSize,typeRampPlus1LineHeight:()=>s.typeRampPlus1LineHeight,typeRampPlus2FontSize:()=>s.typeRampPlus2FontSize,typeRampPlus2LineHeight:()=>s.typeRampPlus2LineHeight,typeRampPlus3FontSize:()=>s.typeRampPlus3FontSize,typeRampPlus3LineHeight:()=>s.typeRampPlus3LineHeight,typeRampPlus4FontSize:()=>s.typeRampPlus4FontSize,typeRampPlus4LineHeight:()=>s.typeRampPlus4LineHeight,typeRampPlus5FontSize:()=>s.typeRampPlus5FontSize,typeRampPlus5LineHeight:()=>s.typeRampPlus5LineHeight,typeRampPlus6FontSize:()=>s.typeRampPlus6FontSize,typeRampPlus6LineHeight:()=>s.typeRampPlus6LineHeight,uploadFiles:()=>Da,white:()=>Fo});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:()=>jo,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:()=>zo,fuiCardForegroundColor:()=>Go,fuiFillColor:()=>Bo,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:()=>Vo,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:()=>ti,baseLayerLuminanceValue:()=>ii,controlCornerRadiusValue:()=>ni,designUnitValue:()=>si,directionValue:()=>ai,neutralPaletteValue:()=>oi});var n=o(34387),s=o(44405),r=o(57418);const l=(e,t)=>r.css`
|
|
2
2
|
${(0,s.accordionStyles)(e,t)}
|
|
3
3
|
`,d=(e,t)=>(0,n.accordionTemplate)(e,t);class c extends n.Accordion{}const u={delegatesFocus:!0,mode:"open"},p={},h=c.compose(Object.assign({baseName:"accordion",template:d,styles:l,shadowOptions:u},p)),m=(e,t)=>r.css`
|
|
4
4
|
${(0,s.accordionItemStyles)(e,t)}
|
|
@@ -172,7 +172,7 @@
|
|
|
172
172
|
`)}
|
|
173
173
|
`;class W extends s.Avatar{}const q={delegatesFocus:!0,mode:"open"},K={media:Y},X=W.compose(Object.assign({baseName:"avatar",template:U,styles:G,shadowOptions:q},K)),Z=(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:Z,shadowOptions:ee},te));var ie=o(
|
|
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:Z,shadowOptions:ee},te));var ie=o(81246);const ae=(0,ie.createLogger)("foundation-ui"),ne=r.css`
|
|
176
176
|
@keyframes delete-animate {
|
|
177
177
|
from {
|
|
178
178
|
height: 100px;
|
|
@@ -495,7 +495,7 @@
|
|
|
495
495
|
${Ue()}
|
|
496
496
|
`,We=void 0,qe={};class Ke extends n.FoundationElement{constructor(){super(...arguments),this.name="",this.autoPosition=!0,this.search=!0,this.disabled=!1,this.clickOutside=e=>this.handleClickOutside(e),this.open=!1,this.options=[],this.selectedOptions=[],this.position=ze.BELOW}openChanged(e,t){var o,i;t?(document.addEventListener("mousedown",this.clickOutside),null===(o=this.optionsElement)||void 0===o||o.classList.add("visible")):(document.removeEventListener("mousedown",this.clickOutside),null===(i=this.optionsElement)||void 0===i||i.classList.remove("visible"))}connectedCallback(){var e;super.connectedCallback(),this.position===ze.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}sortFilteredOptions(e){const t=(null!=e?e:this.options).reduce(((e,t)=>{const o=t.type||"Other";return e[o]?e[o].options.push(t):e[o]={type:o,options:[t]},e}),{});return Object.values(t)}optionsChanged(){this.filteredAvailableOptions=this.sortFilteredOptions()}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?ze.BELOW:ze.ABOVE}else{const t=this.getBoundingClientRect(),o=window.innerHeight,i=t.top,a=o-t.bottom;e=a<t.height&&i>a?ze.ABOVE:ze.BELOW}}e===ze.ABOVE?(this.optionsElement.classList.add("position-above"),this.optionsElement.classList.remove("position-below")):e===ze.BELOW&&(this.optionsElement.classList.add("position-below"),this.optionsElement.classList.remove("position-above"))}optionGetter(e){return e.value}getItemLabel(e){let t;return e?(t=e.label||e.value||"",this.valueFormatter?this.valueFormatter(t):t):""}isOptionDisabled(e){return e&&"string"!=typeof e&&e.disabled||!1}get getPlaceholder(){return`Search ${this.name}`.trim().concat("...")}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)}setFilter(){const e=this.options.filter((e=>{var t;const o=e.description,i=null!==(t=e.label)&&void 0!==t?t:e.value;return(null==o?void 0:o.toLowerCase().includes(this.filterSearchValue.toLowerCase()))||i.toLowerCase().includes(this.filterSearchValue.toLowerCase())?e:void 0}));this.filteredAvailableOptions=this.sortFilteredOptions(e)}changeHandler(e){e.preventDefault(),e.stopImmediatePropagation()}handleClickOutside(e){C(e,this)&&(this.open=!1)}}(0,x.__decorate)([r.attr],Ke.prototype,"name",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean",attribute:"auto-position"})],Ke.prototype,"autoPosition",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],Ke.prototype,"search",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],Ke.prototype,"disabled",void 0),(0,x.__decorate)([r.observable],Ke.prototype,"defaultSlottedNodes",void 0),(0,x.__decorate)([r.observable],Ke.prototype,"valueFormatter",void 0),(0,x.__decorate)([r.observable],Ke.prototype,"filterSearchValue",void 0),(0,x.__decorate)([r.observable],Ke.prototype,"open",void 0),(0,x.__decorate)([r.observable],Ke.prototype,"options",void 0),(0,x.__decorate)([r.observable],Ke.prototype,"selectedOptions",void 0),(0,x.__decorate)([r.observable],Ke.prototype,"filteredAvailableOptions",void 0),(0,x.__decorate)([r.observable],Ke.prototype,"position",void 0),(0,x.__decorate)([r.volatile],Ke.prototype,"getPlaceholder",null);const Xe=Ke.compose(Object.assign({baseName:"categorized-multiselect",template:Ye,styles:Ve,shadowOptions:We},qe)),Ze=(e,t)=>r.css`
|
|
497
497
|
${(0,s.checkboxStyles)(e,t)}
|
|
498
|
-
`,Qe=(e,t)=>(0,n.checkboxTemplate)(e,t);class Je extends s.Checkbox{}const et=void 0,tt={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 '},ot=Je.compose(Object.assign({baseName:"checkbox",template:Qe,styles:Ze,shadowOptions:et},tt));var it=o(39087),at=o(62051),nt=o.n(at),st=o(96730),rt=o(21281),lt=o(34193),dt=o(99899),ct=o(60949),ut=o(97156);class pt extends n.FoundationElement{constructor(){super(...arguments),this.withGridInit=!0,this.isSnapshot=!1,this.maxRows=it.OD.MAX_ROWS_250,this.maxView=it.OD.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 ut.t(new Map)}criteriaChanged(e,t){const o=e!==(0,st.Q)(t,";");this.datasource.initialized&&o&&(this.dataSub&&(this.dataSub.unsubscribe(),this.dataSub=void 0),this.fetchGenesisData(null))}dataChanged(e){e&&(this.clearData(),this.reset())}set datasourceConfig(e){e&&Object.keys(e).forEach((t=>{void 0!==e[t]&&(this[t]=e[t])}))}disconnectedCallback(){var e,t;super.disconnectedCallback(),this.clearData(),null===(e=this.dataSub)||void 0===e||e.unsubscribe(),null===(t=this.update)||void 0===t||t.unsubscribe(),delete this.dataSub,delete this.update,this.datasource.destroy(),delete this.datasource}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=>{e.DISCONNECTED&&this.handleError({message:`Genesis Datasource disconnected for ${this.resourceName}`,loggerType:"error"}),this.sourceRef=e.SOURCE_REF;const t=e.MESSAGE_TYPE;if(t&&t===rt.Go.LOGOFF_ACK)this.dataSubWasLoggedOff=!0;else if(this.dataSubWasLoggedOff=!1,e.ROW){const t=(0,lt.d)(e);this.handleStreamUpdate(t)}else this.handleStreamUpdate(e)}));else this.handleError({message:`Genesis Datasource init failed for ${this.resourceName}`,loggerType:"error"})}))}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 this.handleError({message:"received invalid RequestServerResult",loggerType:"error",loggerArgs:[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,st.Q)(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)}handleError(e={}){const{message:t,loggerType:o,loggerArgs:i=[]}=e;t&&ae[o](t,...i)}}(0,x.__decorate)([dt.dm],pt.prototype,"connect",void 0),(0,x.__decorate)([ct.yW],pt.prototype,"datasource",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],pt.prototype,"withGridInit",void 0),(0,x.__decorate)([r.attr],pt.prototype,"criteria",void 0),(0,x.__decorate)([r.observable],pt.prototype,"data",void 0),(0,x.__decorate)([r.attr],pt.prototype,"fields",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],pt.prototype,"isSnapshot",void 0),(0,x.__decorate)([r.attr],pt.prototype,"maxRows",void 0),(0,x.__decorate)([r.attr],pt.prototype,"maxView",void 0),(0,x.__decorate)([r.attr],pt.prototype,"orderBy",void 0),(0,x.__decorate)([r.attr],pt.prototype,"resourceName",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],pt.prototype,"reverse",void 0),(0,x.__decorate)([r.attr],pt.prototype,"rowId",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean",attribute:"with-timestamp-formatting"})],pt.prototype,"withTimestampFormatting",void 0);const ht=(0,ie.createLogger)("foundation-criteria");var mt;!function(e){e.AND="&&",e.OR="||",e.NOT="!",e.GT=">",e.GE=">=",e.LT="<",e.LE="<=",e.NE="!=",e.EQ="=="}(mt||(mt={}));class vt{constructor(e){this.$$operator=e}static And(){return new vt(mt.AND)}static Or(){return new vt(mt.OR)}static Not(){return new vt(mt.NOT)}static GreaterThan(){return new vt(mt.GT)}static GreaterThanOrEqual(){return new vt(mt.GE)}static LessThan(){return new vt(mt.LT)}static LessThanOrEqual(){return new vt(mt.LE)}static NotEqual(){return new vt(mt.NE)}static Equal(){return new vt(mt.EQ)}get operator(){return this.$$operator}}const gt="default";class ft{constructor(){this.expressions={},this.And=(e,t={})=>this.withExpression(e,t,vt.And()),this.Or=(e,t={})=>this.withExpression(e,t,vt.Or()),this.Not=(e,t={})=>this.withExpression(e,t,vt.Not())}withExpression(e,t={},o=vt.And()){const{condition:i,join:a,groupName:n}=t,s=(e,t=gt)=>{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 vt;return t&&ht.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,gt)}}else s(e,gt);else s(e,"string"==typeof e?gt: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 vt){if(o[t-1]instanceof vt)throw new Error("Adjacent Join operations detected")}})),i.push(`(${e.map((e=>this.parseExpression(e,void 0))).join("")})`)):e instanceof vt?i.push(` ${e.operator} `):e&&i.push(e.serialiser(e)),i.join("")}}const bt=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},yt=e=>t=>`${t.field} ${e} ${bt(t)}`,xt=e=>yt(mt.EQ)(e),wt=e=>`Expr.containsIgnoreCase(${e.field}, ${bt(e)})`;class $t{constructor(e){this.serialiser=xt,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 St(e,t){var o;const i=new ft;i.withExpression((new $t).withField(null!==(o=e.labelField)&&void 0!==o?o:e.valueField).withValue(t).withSerialiser(wt).build()),e.criteria=i.build()}function Ct(e,t){var o;const i=null!==(o=e.labelField)&&void 0!==o?o:e.valueField;e.request={[i]:`${t}*`},e.fetchGenesisData(!1)}var kt;let Ft=kt=class extends pt{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:`${F(this.select)}-option`,this.select.addEventListener("change",(e=>{var t;const o=null===(t=this.options)||void 0===t?void 0:t.find((t=>String(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===it.vt.DATASERVER&&St(this,this.initialSelectedValue),e===it.vt.REQUEST_SERVER&&Ct(this,this.initialSelectedValue)}))}clearData(){Array.from(this.select.children).forEach((e=>{e instanceof kt||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"})],Ft.prototype,"labelField",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"option-element"})],Ft.prototype,"optionElement",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"value-field"})],Ft.prototype,"valueField",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"empty-data-label"})],Ft.prototype,"emptyDataLabel",void 0),(0,x.__decorate)([r.observable],Ft.prototype,"labelFormatter",void 0),(0,x.__decorate)([r.observable],Ft.prototype,"initialSelectedValue",void 0),Ft=kt=(0,x.__decorate)([(0,r.customElement)({name:"options-datasource"})],Ft);const _t=(e,t)=>r.css`
|
|
498
|
+
`,Qe=(e,t)=>(0,n.checkboxTemplate)(e,t);class Je extends s.Checkbox{}const et=void 0,tt={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 '},ot=Je.compose(Object.assign({baseName:"checkbox",template:Qe,styles:Ze,shadowOptions:et},tt));var it=o(39087),at=o(62051),nt=o.n(at),st=o(40370),rt=o(6884),lt=o(96730),dt=o(21281),ct=o(34193),ut=o(43543),pt=o(9033),ht=o(97156);class mt extends((0,st.C)(n.FoundationElement)){constructor(){super(...arguments),this.withGridInit=!0,this.isSnapshot=!1,this.maxRows=rt.OD.MAX_ROWS_250,this.maxView=rt.OD.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 ht.t(new Map)}criteriaChanged(e,t){const o=e!==(0,lt.Q)(t,";");this.datasource.initialized&&o&&(this.dataSub&&(this.dataSub.unsubscribe(),this.dataSub=void 0),this.fetchGenesisData(null))}dataChanged(e){e&&(this.clearData(),this.reset())}set datasourceConfig(e){e&&Object.keys(e).forEach((t=>{void 0!==e[t]&&(this[t]=e[t])}))}disconnectedCallback(){var e,t;super.disconnectedCallback(),this.clearData(),null===(e=this.dataSub)||void 0===e||e.unsubscribe(),null===(t=this.update)||void 0===t||t.unsubscribe(),delete this.dataSub,delete this.update,this.datasource.destroy(),delete this.datasource}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=>{e.DISCONNECTED&&this.handleError({message:`Genesis Datasource disconnected for ${this.resourceName}`,loggerType:"error"}),this.sourceRef=e.SOURCE_REF;const t=e.MESSAGE_TYPE;if(t&&t===dt.Go.LOGOFF_ACK)this.dataSubWasLoggedOff=!0;else if(this.dataSubWasLoggedOff=!1,e.ROW){const t=(0,ct.d)(e);this.handleStreamUpdate(t)}else this.handleStreamUpdate(e)}));else this.handleError({message:`Genesis Datasource init failed for ${this.resourceName}`,loggerType:"error"})}))}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 this.handleError({message:"received invalid RequestServerResult",loggerType:"error",loggerArgs:[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,lt.Q)(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)}handleError(e={}){const{message:t,loggerType:o,loggerArgs:i=[]}=e;t&&ae[o](t,...i)}}(0,x.__decorate)([ut.dm],mt.prototype,"connect",void 0),(0,x.__decorate)([pt.yW],mt.prototype,"datasource",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],mt.prototype,"withGridInit",void 0),(0,x.__decorate)([r.attr],mt.prototype,"criteria",void 0),(0,x.__decorate)([r.observable],mt.prototype,"data",void 0),(0,x.__decorate)([r.attr],mt.prototype,"fields",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],mt.prototype,"isSnapshot",void 0),(0,x.__decorate)([r.attr],mt.prototype,"maxRows",void 0),(0,x.__decorate)([r.attr],mt.prototype,"maxView",void 0),(0,x.__decorate)([r.attr],mt.prototype,"orderBy",void 0),(0,x.__decorate)([r.attr],mt.prototype,"resourceName",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],mt.prototype,"reverse",void 0),(0,x.__decorate)([r.attr],mt.prototype,"rowId",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean",attribute:"with-timestamp-formatting"})],mt.prototype,"withTimestampFormatting",void 0);const vt=(0,ie.createLogger)("foundation-criteria");var gt;!function(e){e.AND="&&",e.OR="||",e.NOT="!",e.GT=">",e.GE=">=",e.LT="<",e.LE="<=",e.NE="!=",e.EQ="=="}(gt||(gt={}));class ft{constructor(e){this.$$operator=e}static And(){return new ft(gt.AND)}static Or(){return new ft(gt.OR)}static Not(){return new ft(gt.NOT)}static GreaterThan(){return new ft(gt.GT)}static GreaterThanOrEqual(){return new ft(gt.GE)}static LessThan(){return new ft(gt.LT)}static LessThanOrEqual(){return new ft(gt.LE)}static NotEqual(){return new ft(gt.NE)}static Equal(){return new ft(gt.EQ)}get operator(){return this.$$operator}}const bt="default";class yt{constructor(){this.expressions={},this.And=(e,t={})=>this.withExpression(e,t,ft.And()),this.Or=(e,t={})=>this.withExpression(e,t,ft.Or()),this.Not=(e,t={})=>this.withExpression(e,t,ft.Not())}withExpression(e,t={},o=ft.And()){const{condition:i,join:a,groupName:n}=t,s=(e,t=bt)=>{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 ft;return t&&vt.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,bt)}}else s(e,bt);else s(e,"string"==typeof e?bt: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 ft){if(o[t-1]instanceof ft)throw new Error("Adjacent Join operations detected")}})),i.push(`(${e.map((e=>this.parseExpression(e,void 0))).join("")})`)):e instanceof ft?i.push(` ${e.operator} `):e&&i.push(e.serialiser(e)),i.join("")}}const xt=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},wt=e=>t=>`${t.field} ${e} ${xt(t)}`,$t=e=>wt(gt.EQ)(e),St=e=>`Expr.containsIgnoreCase(${e.field}, ${xt(e)})`;class Ct{constructor(e){this.serialiser=$t,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 kt(e,t){var o;const i=new yt;i.withExpression((new Ct).withField(null!==(o=e.labelField)&&void 0!==o?o:e.valueField).withValue(t).withSerialiser(St).build()),e.criteria=i.build()}function Ft(e,t){var o;const i=null!==(o=e.labelField)&&void 0!==o?o:e.valueField;e.request={[i]:`${t}*`},e.fetchGenesisData(!1)}var _t;let Ot=_t=class extends mt{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:`${F(this.select)}-option`,this.select.addEventListener("change",(e=>{var t;const o=null===(t=this.options)||void 0===t?void 0:t.find((t=>String(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===it.v.DATASERVER&&kt(this,this.initialSelectedValue),e===it.v.REQUEST_SERVER&&Ft(this,this.initialSelectedValue)}))}clearData(){Array.from(this.select.children).forEach((e=>{e instanceof _t||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"})],Ot.prototype,"labelField",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"option-element"})],Ot.prototype,"optionElement",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"value-field"})],Ot.prototype,"valueField",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"empty-data-label"})],Ot.prototype,"emptyDataLabel",void 0),(0,x.__decorate)([r.observable],Ot.prototype,"labelFormatter",void 0),(0,x.__decorate)([r.observable],Ot.prototype,"initialSelectedValue",void 0),Ot=_t=(0,x.__decorate)([(0,r.customElement)({name:"options-datasource"})],Ot);const Dt=(e,t)=>r.css`
|
|
499
499
|
.combo-box-indicator {
|
|
500
500
|
transition-property: transform;
|
|
501
501
|
transition-duration: 0.2s;
|
|
@@ -507,7 +507,7 @@
|
|
|
507
507
|
}
|
|
508
508
|
|
|
509
509
|
${(0,s.comboboxStyles)(e,t)}
|
|
510
|
-
`,
|
|
510
|
+
`,Tt=(e,t)=>r.html`
|
|
511
511
|
<template
|
|
512
512
|
aria-disabled="${e=>e.ariaDisabled}"
|
|
513
513
|
autocomplete="${e=>e.autocomplete}"
|
|
@@ -560,7 +560,7 @@
|
|
|
560
560
|
></slot>
|
|
561
561
|
</div>
|
|
562
562
|
</template>
|
|
563
|
-
`;var
|
|
563
|
+
`;var Lt,Et;class At extends s.Combobox{constructor(){super(...arguments),Lt.set(this,void 0),Et.set(this,!1),this.async=!1,this.debounce=500,this.caseSensitive=!1,this.ignoreInputClick=!1}debounceChanged(e,t){this.debouncedInputHandler=nt()(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(C(e,this))this.open=!1;else{if(k(e,this.indicator))return this.open=!this.open,void(this.open&&this.control.focus());if(!this.ignoreInputClick||!k(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,Et,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,Et,"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,Lt,"f")||(0,x.__classPrivateFieldSet)(this,Lt,this.shadowRoot.querySelector('[part="indicator"]'),"f"),(0,x.__classPrivateFieldGet)(this,Lt,"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 Ot));if(e.length>0){const t=e[0].datasource.resourceType;t===it.v.DATASERVER&&kt(e[0],this.control.value),t===it.v.REQUEST_SERVER&&Ft(e[0],this.control.value)}else ae.warn("Options-datasource is not connected. Please add a datasource to use this functionality.")}}Lt=new WeakMap,Et=new WeakMap,(0,x.__decorate)([r.observable],At.prototype,"slottedDatasource",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],At.prototype,"async",void 0),(0,x.__decorate)([r.attr],At.prototype,"debounce",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean",attribute:"case-sensitive"})],At.prototype,"caseSensitive",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean",attribute:"ignore-input-click"})],At.prototype,"ignoreInputClick",void 0);const Nt={delegatesFocus:!0,mode:"open"},Rt={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 '},It=At.compose(Object.assign({baseName:"combobox",template:Tt,styles:Dt,shadowOptions:Nt},Rt));var Mt=o(98316);const Ht=(e,t)=>r.css`
|
|
564
564
|
:host {
|
|
565
565
|
--light-size: 12px;
|
|
566
566
|
--height: calc(var(--design-unit) * 2px + var(--light-size));
|
|
@@ -611,18 +611,18 @@
|
|
|
611
611
|
text-overflow: ellipsis;
|
|
612
612
|
white-space: nowrap;
|
|
613
613
|
}
|
|
614
|
-
`,
|
|
614
|
+
`,Pt=r.html`
|
|
615
615
|
<div class=${e=>(0,w.x)(["light",!0],[e.colour,!0])}></div>
|
|
616
616
|
${(0,r.when)((e=>e.showLabel),r.html`
|
|
617
617
|
<div class="label">${e=>e.label}</div>
|
|
618
618
|
`)}
|
|
619
|
-
`;class
|
|
619
|
+
`;class Bt 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)([ut.dm],Bt.prototype,"connect",void 0),(0,x.__decorate)([Mt.N],Bt.prototype,"session",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean",attribute:"show-label"})],Bt.prototype,"showLabel",void 0),(0,x.__decorate)([r.observable],Bt.prototype,"label",void 0),(0,x.__decorate)([r.observable],Bt.prototype,"colour",void 0);const zt=Bt.compose({baseName:"connection-indicator",template:Pt,styles:Ht}),jt=(e,t)=>r.css`
|
|
620
620
|
${(0,s.dataGridStyles)(e,t)}
|
|
621
|
-
`,
|
|
621
|
+
`,Vt=(e,t)=>(0,n.dataGridTemplate)(e,t);class Gt extends s.DataGrid{}const Ut=void 0,Yt={},Wt=Gt.compose(Object.assign({baseName:"data-grid",template:Vt,styles:jt,shadowOptions:Ut},Yt)),qt=(e,t)=>r.css`
|
|
622
622
|
${(0,s.dataGridCellStyles)(e,t)}
|
|
623
|
-
`;class
|
|
623
|
+
`;class Kt extends s.DataGridCell{}const Xt=void 0,Zt={},Qt=Kt.compose(Object.assign({baseName:"data-grid-cell",template:n.dataGridCellTemplate,styles:qt,shadowOptions:Xt},Zt)),Jt=(e,t)=>r.css`
|
|
624
624
|
${(0,s.dataGridRowStyles)(e,t)}
|
|
625
|
-
`;class
|
|
625
|
+
`;class eo extends s.DataGridRow{}const to=void 0,oo={},io=eo.compose(Object.assign({baseName:"data-grid-row",template:n.dataGridRowTemplate,styles:Jt,shadowOptions:to},oo));var ao=o(94343),no=o.n(ao),so=o(58915),ro=o.n(so),lo=o(7554),co=o.n(lo),uo=o(49916),po=o.n(uo),ho=o(33839),mo=o.n(ho);class vo{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()}}no().extend(mo());class go{constructor(e=null,t="default"){const o=new vo(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+=no()(o.date).isLeapYear()?1:0)}getDay(e){return new vo(new Date(this.year,this.number-1,e),this.lang)}}no().extend(mo());class fo{constructor(e=null,t=null,o="default"){this.weekDays=Array.from({length:7}),this.today=new vo(null,o),this.year=null!=e?e:this.today.year,this.month=new go(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 go(new Date(this.year,e-1),this.lang)}getPreviousMonth(){return 1===this.month.number?new go(new Date(this.year-1,11),this.lang):new go(new Date(this.year,this.month.number-2),this.lang)}getNextMonth(){return 1===this.month.number?new go(new Date(this.year+1,0),this.lang):new go(new Date(this.year,this.month.number+2),this.lang)}goToDate(e,t){this.month=new go(new Date(t,e-1),this.lang),this.year=t}goToNextYear(){this.year+=1,this.month=new go(new Date(this.year,0),this.lang)}goToPreviousYear(){this.year-=1,this.month=new go(new Date(this.year,11),this.lang)}goToNextMonth(){if(12===this.month.number)return this.goToNextYear();this.month=new go(new Date(this.year,this.month.number+1-1),this.lang)}goToPreviousMonth(){if(1===this.month.number)return this.goToPreviousYear();this.month=new go(new Date(this.year,this.month.number-1-1),this.lang)}}const bo=r.css`
|
|
626
626
|
:host {
|
|
627
627
|
position: relative;
|
|
628
628
|
}
|
|
@@ -765,7 +765,7 @@
|
|
|
765
765
|
.date-toggle[readonly] .label {
|
|
766
766
|
cursor: pointer;
|
|
767
767
|
}
|
|
768
|
-
`,
|
|
768
|
+
`,yo=e=>r.html`
|
|
769
769
|
<${e}-text-field data-test-id="date-picker" readonly :value="${e=>e.formatDate}" part="date-toggle" class="date-toggle" ${(0,r.ref)("toggleButton")}>
|
|
770
770
|
${e=>e.label}
|
|
771
771
|
<div class="input-icon-container" part="input-icon-container" slot="end"><${e}-icon variant="regular" name="calendar-alt" size="sm"></${e}-icon></div>
|
|
@@ -800,44 +800,44 @@
|
|
|
800
800
|
`)}
|
|
801
801
|
</div>
|
|
802
802
|
</div>
|
|
803
|
-
`,
|
|
804
|
-
${e=>
|
|
805
|
-
`,
|
|
803
|
+
`,xo=r.html`
|
|
804
|
+
${e=>yo(F(e))}
|
|
805
|
+
`,wo=void 0,$o={};class So extends n.FoundationElement{formatChanged(e,t){t&&this.calendar&&(this.formatDate=no()(this.currentDate.Date).format(t))}valueChanged(e,t){if(t&&this.calendar){const e=no()().localeData().longDateFormat("L");this.currentDate=new vo(no()(t,e).toDate(),this.lang),this.calendar.goToDate(this.currentDate.monthNumber,this.currentDate.year),this.formatDate=no()(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",no().extend(ro()),no().extend(po()),no().extend(co()),this.substringNumber=3;const e=this.getAttribute("value"),t=e?no()(e,"MM-DD-YYYY"):no()();this.currentDate=new vo(t.toDate(),this.lang),this.calendar=new fo(this.currentDate.year,this.currentDate.monthNumber,this.lang),this.value=no()(this.currentDate.Date).format("MM-DD-YYYY")}connectedCallback(){super.connectedCallback(),this.currentMonth=this.calendar.month.name,this.currentYear=this.calendar.year,this.formatDate=no()(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.x)(["visible",this.visible],this.position)}isSelectedDate(e){return no()(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){no()(e.Date).isSame(this.currentDate.Date)||(this.currentDate=e,e.monthNumber!==this.calendar.month.number&&this.prevMonth(),this.formatDate=no()(this.currentDate.Date).format(this.format),this.value=no()(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],So.prototype,"format",void 0),(0,x.__decorate)([r.attr],So.prototype,"lang",void 0),(0,x.__decorate)([r.attr],So.prototype,"visible",void 0),(0,x.__decorate)([r.attr],So.prototype,"position",void 0),(0,x.__decorate)([r.attr],So.prototype,"label",void 0),(0,x.__decorate)([r.attr],So.prototype,"value",void 0),(0,x.__decorate)([r.observable],So.prototype,"currentDate",void 0),(0,x.__decorate)([r.observable],So.prototype,"currentMonth",void 0),(0,x.__decorate)([r.observable],So.prototype,"currentYear",void 0),(0,x.__decorate)([r.observable],So.prototype,"calendarDropdownClasses",void 0),(0,x.__decorate)([r.observable],So.prototype,"formatDate",void 0),(0,x.__decorate)([r.observable],So.prototype,"monthList",void 0);const Co=So.compose(Object.assign({baseName:"date-picker",styles:bo,template:xo,shadowOptions:wo},$o));var ko=o(4273);const Fo=s.SwatchRGB.create(1,1,1),_o=s.SwatchRGB.create(0,0,0),Oo=(0,ko.parseColorHexRGB)("#585858"),Do=s.SwatchRGB.create(Oo.r,Oo.g,Oo.b),To=(0,ko.parseColorHexRGB)("#ffffff"),Lo=s.SwatchRGB.create(To.r,To.g,To.b),Eo=s.PaletteRGB.from(Lo),Ao=(0,ko.parseColorHexRGB)("#eeeeee"),No=s.SwatchRGB.create(Ao.r,Ao.g,Ao.b),Ro=s.PaletteRGB.from(No),Io=(0,ko.parseColorHexRGB)("#08c3a5"),Mo=s.SwatchRGB.create(Io.r,Io.g,Io.b),Ho=s.PaletteRGB.from(Mo),{create:Po}=n.DesignToken,Bo=Po("fui-fill-color").withDefault(Do),zo=Po({name:"card-fill-color",cssCustomPropertyName:"fui-card-fill-color"}).withDefault(Lo),jo=14;function Vo(e,t){return e.colorContrast(t,jo)}const Go=Po({name:"card-foreground-color",cssCustomPropertyName:"fui-card-foreground-color"}).withDefault((e=>Vo(Po("fui-card-palette").withDefault(Eo).getValueFor(e),zo.getValueFor(e))));var Uo=o(80273);const Yo=(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 Wo(e){return(t,o)=>{t[o+"Changed"]=function(t,o){null!=o?e.setValueFor(this,o):e.deleteValueFor(this)}}}const qo={toView:e=>null==e?null:null==e?void 0:e.toColorString(),fromView(e){if(null==e)return null;const t=(0,ko.parseColorHexRGB)(e);return t?s.SwatchRGB.create(t.r,t.g,t.b):null}},Ko=e=>s.PaletteRGB.from(s.SwatchRGB.from((0,ko.parseColorHexRGB)(e))),Xo=["baseClass","baseName","shadowOptions","styles","template"],Zo=(e,t=Xo)=>Object.keys(e).filter((e=>!t.includes(e))).reduce(((t,o)=>(t[o]=e[o],t)),{}),Qo=e=>{const{definition:t}=e(),{shadowOptions:o,styles:i,template:a}=t;return{shadowOptions:o,styles:i,template:a,defaultConfig:Zo(t)}},Jo=(e,t)=>{const o=e.match(/^(\d+)([a-z]+)/i),i=o[1],a=o[2];return Number(i)+t+a},ei=(e,t)=>{const o=t.design_tokens;s.accentPalette.setValueFor(e,Ko(o.color.accent.$value)),s.neutralPalette.setValueFor(e,Ko(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,Jo(i,Uo.Du.minusOne)),s.typeRampMinus1LineHeight.setValueFor(e,Jo(a,Uo.Du.minusOne)),s.typeRampMinus2FontSize.setValueFor(e,Jo(i,Uo.Du.minusTwo)),s.typeRampMinus2LineHeight.setValueFor(e,Jo(a,Uo.Du.minusTwo)),s.typeRampPlus1FontSize.setValueFor(e,Jo(i,Uo.Du.plusOne)),s.typeRampPlus1LineHeight.setValueFor(e,Jo(a,Uo.Du.plusOne)),s.typeRampPlus2FontSize.setValueFor(e,Jo(i,Uo.Du.plusTwo)),s.typeRampPlus2LineHeight.setValueFor(e,Jo(a,Uo.Du.plusTwo)),s.typeRampPlus3FontSize.setValueFor(e,Jo(i,Uo.Du.plusThree)),s.typeRampPlus3LineHeight.setValueFor(e,Jo(a,Uo.Du.plusThree)),s.typeRampPlus4FontSize.setValueFor(e,Jo(i,Uo.Du.plusFour)),s.typeRampPlus4LineHeight.setValueFor(e,Jo(a,Uo.Du.plusFour)),s.typeRampPlus5FontSize.setValueFor(e,Jo(i,Uo.Du.plusFive)),s.typeRampPlus5LineHeight.setValueFor(e,Jo(a,Uo.Du.plusFive)),s.typeRampPlus6FontSize.setValueFor(e,Jo(i,Uo.Du.plusSix)),s.typeRampPlus6LineHeight.setValueFor(e,Jo(a,Uo.Du.plusSix))},ti=Ko("#08c3a5"),oi=Ko("#eeeeee"),ii=s.StandardLuminance.DarkMode;const ai=o(85109).O.ltr,ni=4,si=4;var ri=o(85090);const li=(e="normal",t="normal")=>`\n font-family: ${s.bodyFont};\n font-style: ${e};\n font-weight: ${t};\n`,di=r.css`
|
|
806
806
|
${(0,n.display)("flex")}
|
|
807
807
|
:host {
|
|
808
808
|
flex: 1;
|
|
809
809
|
}
|
|
810
|
-
`,
|
|
810
|
+
`,ci=r.css`
|
|
811
811
|
:host {
|
|
812
|
-
background-color: ${
|
|
812
|
+
background-color: ${Bo};
|
|
813
813
|
}
|
|
814
814
|
`.withBehaviors((0,n.forcedColorsStylesheetBehavior)(r.css`
|
|
815
815
|
:host {
|
|
816
|
-
background-color: ${
|
|
817
|
-
box-shadow: 0 0 0 1px ${
|
|
818
|
-
color: ${
|
|
816
|
+
background-color: ${ri.A.ButtonFace};
|
|
817
|
+
box-shadow: 0 0 0 1px ${ri.A.CanvasText};
|
|
818
|
+
color: ${ri.A.ButtonText};
|
|
819
819
|
}
|
|
820
|
-
`)),
|
|
820
|
+
`)),ui=(e,t)=>r.css`
|
|
821
821
|
${e.name} ${"h"+t} {
|
|
822
822
|
margin: 0;
|
|
823
823
|
}
|
|
824
|
-
`;class
|
|
824
|
+
`;class pi extends s.DesignSystemProvider{constructor(){super(),Yo(i,a,this)}}(0,x.__decorate)([(0,r.attr)({attribute:"card-fill-color",converter:qo}),Wo(zo)],pi.prototype,"cardFillColor",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"card-foreground-color",converter:qo}),Wo(Go)],pi.prototype,"cardForegroundColor",void 0);const hi=pi.compose({baseName:"design-system-provider",template:r.html`
|
|
825
825
|
<slot></slot>
|
|
826
826
|
`,styles:e=>{const t=(e=>r.css`
|
|
827
|
-
${
|
|
828
|
-
${
|
|
829
|
-
${
|
|
830
|
-
${
|
|
831
|
-
${
|
|
832
|
-
${
|
|
827
|
+
${ui(e,"1")}
|
|
828
|
+
${ui(e,"2")}
|
|
829
|
+
${ui(e,"3")}
|
|
830
|
+
${ui(e,"4")}
|
|
831
|
+
${ui(e,"5")}
|
|
832
|
+
${ui(e,"6")}
|
|
833
833
|
`)(e);return t.addStylesTo(document),r.css`
|
|
834
|
-
${
|
|
835
|
-
${
|
|
834
|
+
${di}
|
|
835
|
+
${ci}
|
|
836
836
|
${t}
|
|
837
837
|
:host * {
|
|
838
|
-
${
|
|
838
|
+
${li()}
|
|
839
839
|
}
|
|
840
|
-
`}});var
|
|
840
|
+
`}});var mi=o(40543);const vi=r.css`
|
|
841
841
|
:host {
|
|
842
842
|
--dialog-close-icon-display: block;
|
|
843
843
|
--dialog-min-width: 358px;
|
|
@@ -920,7 +920,7 @@
|
|
|
920
920
|
overflow: hidden;
|
|
921
921
|
min-height: var(--notification-details-min-height);
|
|
922
922
|
}
|
|
923
|
-
`,
|
|
923
|
+
`,gi=(e="start",t="#879ba6")=>`\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="${t}" stroke="none" transform="matrix(1 0 0 1 1865 3576 )" />\n </g>\n </svg>\n`,fi=e=>r.html`
|
|
924
924
|
<dialog ${(0,r.ref)("mainElement")} part="dialog" type=${e=>e.type}>
|
|
925
925
|
<div class="content-wrapper">
|
|
926
926
|
<div part="top" class="top">
|
|
@@ -928,7 +928,7 @@
|
|
|
928
928
|
<h2 slot="top" class="title">${e=>{var t;return null===(t=e.notification)||void 0===t?void 0:t.title}}</h2>
|
|
929
929
|
</slot>
|
|
930
930
|
${(0,r.when)((e=>e.showCloseIcon),r.html`
|
|
931
|
-
<div class="close-icon" @click=${e=>e.close()}>${
|
|
931
|
+
<div class="close-icon" @click=${e=>e.close()}>${gi()}</div>
|
|
932
932
|
`)}
|
|
933
933
|
</div>
|
|
934
934
|
<slot>
|
|
@@ -957,13 +957,13 @@
|
|
|
957
957
|
</div>
|
|
958
958
|
</div>
|
|
959
959
|
</dialog>
|
|
960
|
-
`,
|
|
961
|
-
${e=>
|
|
962
|
-
`,
|
|
960
|
+
`,bi=r.html`
|
|
961
|
+
${e=>fi(F(e))}
|
|
962
|
+
`,yi={mode:"open",delegatesFocus:!0},xi={};class wi extends n.FoundationElement{constructor(){super(...arguments),this.type="default",this.position="center",this.showCloseIcon=!0}notificationChanged(){this.notification&&(this.showCloseIcon=!1)}connectedCallback(){super.connectedCallback(),window.HTMLDialogElement||mi.A.registerDialog(this.mainElement),this.mainElement.addEventListener("close",(()=>{this.onCloseCallback&&this.onCloseCallback()})),this.hasAttribute("open")&&this.shadowRoot.querySelector("dialog").setAttribute("open","")}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],wi.prototype,"notification",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"type"})],wi.prototype,"type",void 0),(0,x.__decorate)([r.attr],wi.prototype,"position",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean",attribute:"show-close-icon"})],wi.prototype,"showCloseIcon",void 0),(0,x.__decorate)([r.observable],wi.prototype,"onShowCallback",void 0),(0,x.__decorate)([r.observable],wi.prototype,"onCloseCallback",void 0),(0,x.__decorate)([r.volatile],wi.prototype,"open",null);class $i extends wi{show(){this.onShowCallback&&this.onShowCallback(),this.mainElement.show()}}const Si=$i.compose(Object.assign({baseName:"dialog",styles:vi,template:bi,shadowOptions:yi},xi)),Ci=(e,t)=>r.css`
|
|
963
963
|
${(0,s.disclosureStyles)(e,t)}
|
|
964
|
-
`,
|
|
964
|
+
`,ki=(e,t)=>(0,n.disclosureTemplate)(e,t);class Fi extends n.Disclosure{}const _i=void 0,Oi={},Di=Fi.compose(Object.assign({baseName:"disclosure",template:ki,styles:Ci,shadowOptions:_i},Oi)),Ti=(e,t)=>r.css`
|
|
965
965
|
${(0,s.dividerStyles)(e,t)}
|
|
966
|
-
`,
|
|
966
|
+
`,Li=(e,t)=>(0,n.dividerTemplate)(e,t);class Ei extends n.Divider{}const Ai=void 0,Ni={},Ri=Ei.compose(Object.assign({baseName:"divider",template:Li,styles:Ti,shadowOptions:Ai},Ni)),Ii=(e,t,o)=>r.css`
|
|
967
967
|
:host {
|
|
968
968
|
--dropdown-opener-height-multiplier: 0.7px;
|
|
969
969
|
--menu-item-height-multiplier: 0.7px;
|
|
@@ -1026,9 +1026,9 @@
|
|
|
1026
1026
|
var(--menu-item-height-multiplier)
|
|
1027
1027
|
);
|
|
1028
1028
|
}
|
|
1029
|
-
`,
|
|
1030
|
-
${
|
|
1031
|
-
`,
|
|
1029
|
+
`,Mi=(e,t)=>r.css`
|
|
1030
|
+
${Ii("foundation",e,t)}
|
|
1031
|
+
`,Hi=(e,t)=>r.html`
|
|
1032
1032
|
${(0,r.repeat)((()=>e),r.html`
|
|
1033
1033
|
${(0,r.when)((e=>e.isDisabled&&e.isDisabled()),r.html`
|
|
1034
1034
|
<${t}-menu-item class="menu-item" disabled>${e=>e.name}</${t}-menu-item>
|
|
@@ -1049,12 +1049,12 @@
|
|
|
1049
1049
|
`)}
|
|
1050
1050
|
${e=>e.name}
|
|
1051
1051
|
${(0,r.when)((e=>e.submenu),r.html`
|
|
1052
|
-
<${t}-menu>${e=>
|
|
1052
|
+
<${t}-menu>${e=>Hi(e.submenu,t)}</${t}-menu>
|
|
1053
1053
|
`)}
|
|
1054
1054
|
</${t}-menu-item>
|
|
1055
1055
|
`)}
|
|
1056
1056
|
`)}
|
|
1057
|
-
`,
|
|
1057
|
+
`,Pi=e=>r.html`
|
|
1058
1058
|
<div class="actions-container" part="actions-container">
|
|
1059
1059
|
<${e}-button
|
|
1060
1060
|
id="actiosnMenuTrigger"
|
|
@@ -1071,12 +1071,12 @@
|
|
|
1071
1071
|
class="actions-menu ${e=>e.classNames}"
|
|
1072
1072
|
part="actions-menu"
|
|
1073
1073
|
>
|
|
1074
|
-
${t=>
|
|
1074
|
+
${t=>Hi(t.allItems,e)}
|
|
1075
1075
|
</${e}-menu>
|
|
1076
1076
|
</div>
|
|
1077
|
-
`,
|
|
1078
|
-
${e=>
|
|
1079
|
-
`;class
|
|
1077
|
+
`,Bi=r.html`
|
|
1078
|
+
${e=>Pi(F(e))}
|
|
1079
|
+
`;class zi 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){C(e,this)&&(this.open=!1)}openChanged(){this.classNames=(0,w.x)(["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],zi.prototype,"items",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"auto-close",mode:"boolean"})],zi.prototype,"autoClose",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"disable-button",mode:"boolean"})],zi.prototype,"disabled",void 0),(0,x.__decorate)([r.observable],zi.prototype,"classNames",void 0),(0,x.__decorate)([r.attr],zi.prototype,"name",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"open",mode:"boolean"})],zi.prototype,"open",void 0),(0,x.__decorate)([r.attr],zi.prototype,"buttonAppearance",void 0);const ji=zi.compose({baseName:"dropdown-menu",styles:Mi,template:Bi}),Vi=e=>r.html`
|
|
1080
1080
|
<${e}-banner ${(0,r.ref)("banner")}>
|
|
1081
1081
|
<div slot="content">
|
|
1082
1082
|
<div>
|
|
@@ -1097,13 +1097,13 @@
|
|
|
1097
1097
|
</${e}-button>
|
|
1098
1098
|
`)}
|
|
1099
1099
|
</${e}-banner>
|
|
1100
|
-
`,
|
|
1101
|
-
${e=>
|
|
1102
|
-
`,
|
|
1100
|
+
`,Gi=r.html`
|
|
1101
|
+
${e=>Vi(F(e))}
|
|
1102
|
+
`,Ui={mode:"open",delegatesFocus:!0};class Yi 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],Yi.prototype,"error",void 0),(0,x.__decorate)([r.observable],Yi.prototype,"notification",void 0);const Wi=Yi.compose({baseName:"error-banner",template:Gi,shadowOptions:Ui});var qi;!function(e){e.ERROR_BOUNDARY_EVENT="error-boundary-event"}(qi||(qi={}));const Ki=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"}`},Xi=e=>{var t;return(null==e?void 0:e.logLevel)||(null===(t=null==e?void 0:e.config)||void 0===t?void 0:t.logLevel)||ie.LogLevel.Error},Zi=(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},Qi=()=>{const e=document.createElement("div");return e.setAttribute("id","error-banner-anchor"),e.style.position="relative",document.body.insertBefore(e,document.body.firstChild),e},Ji=(0,ie.createLogger)("foundation-error"),ea={alert:e=>{alert(Ki(e))},notification:(e,t)=>{var o,i,a,n,s,r,l,d,c,u,p,h,m;const v=t.split("-")[0],g=Zi("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`);Zi("dialog-container",t).appendChild(i),i.error=e,i.show()},snackbar:(e,t)=>{const o=t.split("-")[0],i=document.createElement(`${o}-snackbar`);Zi("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 Qi()})(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}},ta=(e,t,o)=>{Ji.log({message:Ki(e),level:Xi(e)});Object.keys((null==e?void 0:e.config)||{}).forEach((i=>{ea[i]&&ea[i](e,t,o)}))};class oa{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 ia{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 aa=r.html`
|
|
1103
1103
|
<template ${(0,r.ref)("errorBoundary")}>
|
|
1104
1104
|
<slot></slot>
|
|
1105
1105
|
</template>
|
|
1106
|
-
`,
|
|
1106
|
+
`,na={mode:"open",delegatesFocus:!0};class sa 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*(){if(e.connectedCallback.call(this),this.addEventListener(qi.ERROR_BOUNDARY_EVENT,(e=>{e.stopImmediatePropagation(),ta(e.detail,this.tagName,this.errorBoundary)})),this.resourceName){if(!(yield this.datasource.init({resourceName:this.resourceName},!0)))return void ae.debug(`Genesis Datasource init failed for ${this.resourceName}`);this.dataSub=null===(t=this.datasource.stream)||void 0===t?void 0: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;ta((new oa).withTitle(e).withErrorDetails(o).withNotification((new ia).withType(i).withAutoClose(!!this.closeTimeout).withCloseTimeout(this.closeTimeout).build()).build(),this.tagName,this.errorBoundary)}}))}}))}disconnectedCallback(){var e,t;super.disconnectedCallback(),null===(e=this.dataSub)||void 0===e||e.unsubscribe(),delete this.dataSub,null===(t=this.datasource)||void 0===t||t.destroy(),delete this.datasource}}(0,x.__decorate)([r.observable],sa.prototype,"errorBoundary",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"resource-name"})],sa.prototype,"resourceName",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"close-timeout",converter:r.nullableNumberConverter})],sa.prototype,"closeTimeout",void 0),(0,x.__decorate)([pt.yW],sa.prototype,"datasource",void 0);const ra=sa.compose({baseName:"error-boundary",template:aa,shadowOptions:na}),la=r.css`
|
|
1107
1107
|
:host {
|
|
1108
1108
|
--design-unit: 3;
|
|
1109
1109
|
--dialog-max-width: 358px;
|
|
@@ -1122,7 +1122,7 @@
|
|
|
1122
1122
|
overflow: hidden;
|
|
1123
1123
|
min-height: var(--error-details-min-height);
|
|
1124
1124
|
}
|
|
1125
|
-
`,
|
|
1125
|
+
`,da=e=>r.html`
|
|
1126
1126
|
<${e}-dialog show-close-icon="false" ${(0,r.ref)("dialog")}>
|
|
1127
1127
|
<h2 slot="top" class="title">${e=>{var t;return null===(t=e.error)||void 0===t?void 0:t.title}}</h2>
|
|
1128
1128
|
<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>
|
|
@@ -1139,9 +1139,9 @@
|
|
|
1139
1139
|
</${e}-button>
|
|
1140
1140
|
`)}
|
|
1141
1141
|
</${e}-dialog>
|
|
1142
|
-
`,
|
|
1143
|
-
${e=>
|
|
1144
|
-
`,
|
|
1142
|
+
`,ca=r.html`
|
|
1143
|
+
${e=>da(F(e))}
|
|
1144
|
+
`,ua={mode:"open",delegatesFocus:!0};class pa 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],pa.prototype,"error",void 0),(0,x.__decorate)([r.observable],pa.prototype,"notification",void 0);const ha=pa.compose({baseName:"error-dialog",template:ca,styles:la,shadowOptions:ua});var ma=o(17465),va=o(12066);const ga=r.css`
|
|
1145
1145
|
/* Host */
|
|
1146
1146
|
:host {
|
|
1147
1147
|
display: flex;
|
|
@@ -1189,7 +1189,7 @@
|
|
|
1189
1189
|
fast-data-grid-row {
|
|
1190
1190
|
align-items: center;
|
|
1191
1191
|
}
|
|
1192
|
-
`,
|
|
1192
|
+
`,fa=e=>r.html`
|
|
1193
1193
|
<template>
|
|
1194
1194
|
<div class="file-selection">
|
|
1195
1195
|
<input type="file" multiple ${(0,r.ref)("fileInput")}
|
|
@@ -1215,13 +1215,13 @@
|
|
|
1215
1215
|
</${e}-data-grid>
|
|
1216
1216
|
</div>
|
|
1217
1217
|
</template>
|
|
1218
|
-
`,
|
|
1219
|
-
${e=>
|
|
1220
|
-
`,
|
|
1218
|
+
`,ba=r.html`
|
|
1219
|
+
${e=>fa(F(e))}
|
|
1220
|
+
`,ya=(0,ie.createLogger)("foundation-notifications"),xa=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"}`},wa=e=>{var t;return(null==e?void 0:e.logLevel)||(null===(t=null==e?void 0:e.config)||void 0===t?void 0:t.logLevel)||ie.LogLevel.Debug},$a=e=>{ya.log({message:xa(e),level:wa(e)})},Sa=(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},Ca=()=>{const e=document.createElement("div");return e.setAttribute("id","banner-anchor"),e.style.position="relative",document.body.insertBefore(e,document.body.firstChild),e},ka=(e,t,o)=>{var i,a,n,s,r,l,d,c,u,p,h,m,v,g,f,b,y,x;$a(e);const w=t.split("-")[0],$=null!=o?o:Sa("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`),C=document.createElement("div");C.setAttribute("slot","top"),C.textContent=e.title;const k=document.createElement("div");k.setAttribute("slot","content"),k.textContent=(null==e?void 0:e.body)||"";const F=document.createElement("div");let _;F.setAttribute("slot","date"),F.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)&&(_=document.createElement("div"),_.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),_.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(C),S.appendChild(k),S.appendChild(F),_&&S.appendChild(_),$.appendChild(S)},Fa={alert:e=>{$a(e),alert(xa(e))},toast:ka,dialog:(e,t)=>{$a(e);const o=t.split("-")[0],i=document.createElement(`${o}-dialog`);Sa("dialog-container",t).appendChild(i),i.notification=e,i.show()},snackbar:(e,t)=>{$a(e);const o=t.split("-")[0],i=document.createElement(`${o}-snackbar`),a=Sa("snack-container",t);a&&(a.style.position="fixed",a.style.bottom="0",a.style.left="0"),a.appendChild(i),i.notification=e},banner:(e,t,o)=>{var i;$a(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 Ca()})(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}},_a=(e,t,o)=>{Object.keys((null==e?void 0:e.config)||{}).forEach((i=>{Fa[i]&&Fa[i](e,t,o)}))},Oa=e=>{const t=new FormData;return e.forEach((e=>{t.append(e.name,e)})),t},Da=(e,t,o)=>{const i=new Headers;return i.append("SESSION_AUTH_TOKEN",o),fetch(e,{method:"POST",body:t,headers:i}).then((e=>e.json().then((e=>e))))},Ta=(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&&_a({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&&_a({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)}))},La=["image/png","image/bmp","image/gif","image/jpeg","image/jpg"],Ea=["text/plain","text/csv"],Aa=["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"],Na=r.html`
|
|
1221
1221
|
${(0,r.when)((e=>e.rowData),r.html`
|
|
1222
|
-
${e=>"DATETIME"===e.columnDefinition.type?(0,
|
|
1222
|
+
${e=>"DATETIME"===e.columnDefinition.type?(0,va.zT)(e.rowData[e.columnDefinition.columnDataKey]):e.rowData[e.columnDefinition.columnDataKey]}
|
|
1223
1223
|
`)}
|
|
1224
|
-
`;class
|
|
1224
|
+
`;class Ra 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,...La]:"office/*"===t?e=[...e,...Aa]:"text/*"===t?e=[...e,...Ea]:e.push(t)})),this.acceptedFormats=e}fieldNameChanged(){this.setupGrid()}entityIdChanged(){this.setupGrid()}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});var t;return(0,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 yt).withExpression((new Ct).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:ma.v.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=>{ma.v.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`
|
|
1225
1225
|
<template>
|
|
1226
1226
|
<div class="download-button-container">
|
|
1227
1227
|
<${e}-button
|
|
@@ -1232,7 +1232,7 @@
|
|
|
1232
1232
|
</${e}-button>
|
|
1233
1233
|
</div>
|
|
1234
1234
|
</template>
|
|
1235
|
-
`}}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:
|
|
1235
|
+
`}}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:Na}}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=Oa(this.selectedFiles);e.append(this.uploadKey,this.entityId);const t=yield Da(this.uploadEventName,e,this.session.getItem("authToken","session"));if(t.ERROR)return ma.v.error(t.ERROR),void this.$emit("errorOut",t.ERROR);ma.v.info(t),this.clearSelection()}catch(e){ma.v.error(e)}}))}handleFileDownload(e){Ta(this.downloadEventName(e),e.FILE_NAME,this.session.getItem("authToken","session"))}clearSelection(){this.fileName="",this.selectedFiles=[]}}(0,x.__decorate)([r.observable],Ra.prototype,"gridCriteria",void 0),(0,x.__decorate)([ut.dm],Ra.prototype,"connect",void 0),(0,x.__decorate)([Mt.N],Ra.prototype,"session",void 0),(0,x.__decorate)([r.attr],Ra.prototype,"label",void 0),(0,x.__decorate)([r.attr],Ra.prototype,"accept",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"file-size-limit-bytes"})],Ra.prototype,"fileSizeLimitBytes",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"uploaded-files-resource-name"})],Ra.prototype,"uploadedFilesResourceName",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"upload-event-name"})],Ra.prototype,"uploadEventName",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"field-name"})],Ra.prototype,"fieldName",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"entity-id"})],Ra.prototype,"entityId",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"upload-key"})],Ra.prototype,"uploadKey",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"grid-fields"})],Ra.prototype,"gridFields",void 0),(0,x.__decorate)([r.observable],Ra.prototype,"fileName",void 0),(0,x.__decorate)([r.observable],Ra.prototype,"uploadedFilesList",void 0),(0,x.__decorate)([r.observable],Ra.prototype,"filesGridColumnDefinitions",void 0);const Ia=void 0,Ma={},Ha=Ra.compose(Object.assign({baseName:"file-upload",styles:ga,template:ba,shadowOptions:Ia},Ma)),Pa=r.css`
|
|
1236
1236
|
.filter-wrapper {
|
|
1237
1237
|
border: 1px solid gray;
|
|
1238
1238
|
border-radius: calc(var(--design-unit) * 2px);
|
|
@@ -1283,12 +1283,12 @@
|
|
|
1283
1283
|
.flex-row foundation-select {
|
|
1284
1284
|
flex: 1;
|
|
1285
1285
|
}
|
|
1286
|
-
`,
|
|
1287
|
-
<div class="close-icon" @click=${e=>e.clear()}>${
|
|
1288
|
-
`;function
|
|
1286
|
+
`,Ba=r.html`
|
|
1287
|
+
<div class="close-icon" @click=${e=>e.clear()}>${gi()}</div>
|
|
1288
|
+
`;function za(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 ja=[{name:"All",value:"all",selected:!0},{name:"True",value:"true"},{name:"False",value:"false"},{name:"N/A",value:"null"}],Va=(e,t)=>{switch(e.type){case"number":return(e=>r.html`
|
|
1289
1289
|
<div class="flex-row">
|
|
1290
1290
|
<div>${e=>e.label}</div>
|
|
1291
|
-
${
|
|
1291
|
+
${Ba}
|
|
1292
1292
|
</div>
|
|
1293
1293
|
<div class="flex-row">
|
|
1294
1294
|
<${e}-text-field
|
|
@@ -1307,7 +1307,7 @@
|
|
|
1307
1307
|
`)(t);case"date":return(e=>r.html`
|
|
1308
1308
|
<div class="flex-row">
|
|
1309
1309
|
<div>${e=>e.label}</div>
|
|
1310
|
-
${
|
|
1310
|
+
${Ba}
|
|
1311
1311
|
</div>
|
|
1312
1312
|
<div class="flex-row">
|
|
1313
1313
|
<${e}-text-field
|
|
@@ -1324,11 +1324,11 @@
|
|
|
1324
1324
|
`)(t);case"boolean":return(e=>r.html`
|
|
1325
1325
|
<div class="flex-row">
|
|
1326
1326
|
<div>${e=>e.label}</div>
|
|
1327
|
-
${
|
|
1327
|
+
${Ba}
|
|
1328
1328
|
</div>
|
|
1329
1329
|
<div class="flex-row">
|
|
1330
|
-
<${e}-select @change="${(e,t)=>e.onBooleanFilterSelection(
|
|
1331
|
-
${(0,r.repeat)((()=>
|
|
1330
|
+
<${e}-select @change="${(e,t)=>e.onBooleanFilterSelection(za(t))}}">
|
|
1331
|
+
${(0,r.repeat)((()=>ja),r.html`
|
|
1332
1332
|
<${e}-option value="${e=>e.value}" selected="${e=>e.selected}">
|
|
1333
1333
|
${e=>e.name}
|
|
1334
1334
|
</${e}-option>
|
|
@@ -1338,10 +1338,10 @@
|
|
|
1338
1338
|
`)(t);case"enum":return(e=>r.html`
|
|
1339
1339
|
<div class="flex-row">
|
|
1340
1340
|
<div>${e=>e.label}</div>
|
|
1341
|
-
${
|
|
1341
|
+
${Ba}
|
|
1342
1342
|
</div>
|
|
1343
1343
|
<div class="flex-row">
|
|
1344
|
-
<${e}-select @change="${(e,t)=>e.onEnumFilterSelection(
|
|
1344
|
+
<${e}-select @change="${(e,t)=>e.onEnumFilterSelection(za(t))}}">
|
|
1345
1345
|
${(0,r.repeat)((e=>e.enumFilterOptions),r.html`
|
|
1346
1346
|
<${e}-option value="${e=>e.value}" selected="${e=>e.selected}">
|
|
1347
1347
|
${e=>e.name}
|
|
@@ -1352,7 +1352,7 @@
|
|
|
1352
1352
|
`)(t);default:return(e=>r.html`
|
|
1353
1353
|
<div class="flex-row">
|
|
1354
1354
|
<div>${e=>e.label}</div>
|
|
1355
|
-
${
|
|
1355
|
+
${Ba}
|
|
1356
1356
|
</div>
|
|
1357
1357
|
<div class="flex-row">
|
|
1358
1358
|
<${e}-text-field
|
|
@@ -1361,11 +1361,11 @@
|
|
|
1361
1361
|
:value=${(0,Ge.O)((e=>e.textFilter))}
|
|
1362
1362
|
/>
|
|
1363
1363
|
</div>
|
|
1364
|
-
`)(t)}},
|
|
1365
|
-
<div class="filter-wrapper">${t=>
|
|
1366
|
-
`,
|
|
1367
|
-
${e=>
|
|
1368
|
-
`;var
|
|
1364
|
+
`)(t)}},Ga=e=>r.html`
|
|
1365
|
+
<div class="filter-wrapper">${t=>Va(t,e)}</div>
|
|
1366
|
+
`,Ua=r.html`
|
|
1367
|
+
${e=>Ga(F(e))}</div>
|
|
1368
|
+
`;var Ya;!function(e){e.change="filter-changed",e.clear="filter-cleared"}(Ya||(Ya={}));class Wa 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(Ya.clear,{fieldName:this.fieldName,target:this.target});const o=`Expr.containsIgnoreCase(${this.fieldName},'${t}')`;this.$emit(Ya.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(Ya.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(Ya.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(Ya.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(Ya.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(Ya.clear,{fieldName:this.fieldName,target:this.target})}onBooleanFilterSelection(e){e&&"all"!==e?this.$emit(Ya.change,{fieldName:this.fieldName,filter:`${this.fieldName} == ${e}`,target:this.target}):this.$emit(Ya.clear,{fieldName:this.fieldName,target:this.target})}onEnumFilterSelection(e){e&&"all"!==e?this.$emit(Ya.change,{fieldName:this.fieldName,filter:`${this.fieldName} == "${e}"`,target:this.target}):this.$emit(Ya.clear,{fieldName:this.fieldName,target:this.target})}}(0,x.__decorate)([r.attr],Wa.prototype,"fieldName",void 0),(0,x.__decorate)([r.attr],Wa.prototype,"type",void 0),(0,x.__decorate)([r.attr],Wa.prototype,"label",void 0),(0,x.__decorate)([r.attr],Wa.prototype,"target",void 0),(0,x.__decorate)([r.observable],Wa.prototype,"textFilter",void 0),(0,x.__decorate)([r.observable],Wa.prototype,"numFilterMin",void 0),(0,x.__decorate)([r.observable],Wa.prototype,"numFilterMax",void 0),(0,x.__decorate)([r.observable],Wa.prototype,"dateFilterMin",void 0),(0,x.__decorate)([r.observable],Wa.prototype,"dateFilterMax",void 0),(0,x.__decorate)([r.attr],Wa.prototype,"enumOptions",void 0),(0,x.__decorate)([r.observable],Wa.prototype,"enumFilterOptions",void 0);const qa=Wa.compose({baseName:"filter",template:Ua,styles:Pa});var Ka=o(64324);const Xa=(e,t)=>r.css`
|
|
1369
1369
|
.filter-bar {
|
|
1370
1370
|
background-color: #2c2f33;
|
|
1371
1371
|
padding: calc(var(--design-unit) * 2px);
|
|
@@ -1401,9 +1401,9 @@
|
|
|
1401
1401
|
.toggle-collapsed {
|
|
1402
1402
|
color: #48ed9c;
|
|
1403
1403
|
}
|
|
1404
|
-
`,
|
|
1404
|
+
`,Za=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"}},Qa=r.html`
|
|
1405
1405
|
<p>Fetching metadata for ${e=>e.resource}...</p>
|
|
1406
|
-
`,
|
|
1406
|
+
`,Ja=e=>r.html`
|
|
1407
1407
|
<div
|
|
1408
1408
|
class=${e=>(0,w.x)(["toggle",!0],["toggle-collapsed",e.collapsed])}
|
|
1409
1409
|
@click="${e=>e.toggle()}"
|
|
@@ -1423,17 +1423,17 @@
|
|
|
1423
1423
|
<${e}-filter
|
|
1424
1424
|
label="${e=>e.UI_LABEL}"
|
|
1425
1425
|
target="${(e,t)=>{var o;return null===(o=t.parent)||void 0===o?void 0:o.target}}"
|
|
1426
|
-
type="${e=>
|
|
1426
|
+
type="${e=>Za(e.TYPE)}"
|
|
1427
1427
|
fieldName="${e=>e.NAME}"
|
|
1428
1428
|
enumOptions="${e=>e.VALID_VALUES}"
|
|
1429
1429
|
></${e}-filter>
|
|
1430
1430
|
`)}
|
|
1431
1431
|
</div>
|
|
1432
1432
|
</div>
|
|
1433
|
-
`,
|
|
1434
|
-
${e=>e.ready?
|
|
1435
|
-
`,
|
|
1436
|
-
${t&&`@media only screen and ${
|
|
1433
|
+
`,en=r.html`
|
|
1434
|
+
${e=>e.ready?Ja(F(e)):Qa}
|
|
1435
|
+
`,tn=5;class on extends n.FoundationElement{constructor(){super(...arguments),this.columns=tn,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,Ka.fL)(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],on.prototype,"resource",void 0),(0,x.__decorate)([r.attr],on.prototype,"only",void 0),(0,x.__decorate)([r.attr],on.prototype,"labels",void 0),(0,x.__decorate)([r.attr],on.prototype,"target",void 0),(0,x.__decorate)([r.attr],on.prototype,"columns",void 0),(0,x.__decorate)([r.observable],on.prototype,"ready",void 0),(0,x.__decorate)([r.observable],on.prototype,"fields",void 0),(0,x.__decorate)([ut.dm],on.prototype,"connect",void 0),(0,x.__decorate)([r.observable],on.prototype,"collapsed",void 0);const an=on.compose({baseName:"filter-bar",template:en,styles:Xa});var nn;!function(e){e.sm="(max-width: 640px)",e.md="(min-width: 641px) and (max-width: 1023px)",e.lg="(min-width: 1024px)"}(nn||(nn={}));const sn=e=>{const t=e?`-${e}`:"";return r.css`
|
|
1436
|
+
${t&&`@media only screen and ${nn[e]} {`}
|
|
1437
1437
|
:host(.spacing${t}-1x) slot {
|
|
1438
1438
|
gap: calc(var(--design-unit) * 2px);
|
|
1439
1439
|
}
|
|
@@ -1550,7 +1550,7 @@
|
|
|
1550
1550
|
align-content: space-evenly;
|
|
1551
1551
|
}
|
|
1552
1552
|
${t&&"}"}
|
|
1553
|
-
`},
|
|
1553
|
+
`},rn=r.css`
|
|
1554
1554
|
:host {
|
|
1555
1555
|
width: 100%;
|
|
1556
1556
|
height: 100%;
|
|
@@ -1562,17 +1562,17 @@
|
|
|
1562
1562
|
display: flex;
|
|
1563
1563
|
}
|
|
1564
1564
|
|
|
1565
|
-
${
|
|
1566
|
-
${
|
|
1567
|
-
${
|
|
1568
|
-
${
|
|
1569
|
-
`,
|
|
1565
|
+
${sn()}
|
|
1566
|
+
${sn("lg")}
|
|
1567
|
+
${sn("md")}
|
|
1568
|
+
${sn("sm")}
|
|
1569
|
+
`,ln=r.html`
|
|
1570
1570
|
<template>
|
|
1571
1571
|
<slot></slot>
|
|
1572
1572
|
</template>
|
|
1573
|
-
`,
|
|
1573
|
+
`,dn=void 0,cn={};class un extends n.FoundationElement{}const pn=un.compose(Object.assign({baseName:"flex-layout",styles:rn,template:ln,shadowOptions:dn},cn)),hn=(e,t)=>r.css`
|
|
1574
1574
|
${(0,s.flipperStyles)(e,t)}
|
|
1575
|
-
`,
|
|
1575
|
+
`,mn=(e,t)=>(0,n.flipperTemplate)(e,t);class vn extends s.Flipper{}const gn=void 0,fn={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 '},bn=vn.compose(Object.assign({baseName:"flipper",template:mn,styles:hn,shadowOptions:gn},fn)),yn=225,xn=r.css`
|
|
1576
1576
|
/* Host */
|
|
1577
1577
|
:host {
|
|
1578
1578
|
display: inline-block;
|
|
@@ -1597,7 +1597,7 @@
|
|
|
1597
1597
|
height: 100%;
|
|
1598
1598
|
position: absolute;
|
|
1599
1599
|
/* stylelint-disable-next-line function-name-case */
|
|
1600
|
-
transition: transform ${
|
|
1600
|
+
transition: transform ${yn.toString()}ms ease-in;
|
|
1601
1601
|
width: 20%;
|
|
1602
1602
|
z-index: 2001;
|
|
1603
1603
|
}
|
|
@@ -1645,7 +1645,7 @@
|
|
|
1645
1645
|
opacity: 50%;
|
|
1646
1646
|
position: absolute;
|
|
1647
1647
|
/* stylelint-disable-next-line function-name-case */
|
|
1648
|
-
transition: opacity ${
|
|
1648
|
+
transition: opacity ${yn.toString()}ms linear;
|
|
1649
1649
|
width: 100%;
|
|
1650
1650
|
z-index: 2000;
|
|
1651
1651
|
}
|
|
@@ -1653,7 +1653,7 @@
|
|
|
1653
1653
|
:host([visuallyhidden]) div.background {
|
|
1654
1654
|
opacity: 0%;
|
|
1655
1655
|
}
|
|
1656
|
-
`,
|
|
1656
|
+
`,wn=e=>r.html`
|
|
1657
1657
|
<div ?closed=${e=>e.closed} ?visuallyhidden=${e=>e.visuallyhidden}>
|
|
1658
1658
|
<div class="container">
|
|
1659
1659
|
<div class="background" part="background" @click=${e=>e.closeFlyout()}></div>
|
|
@@ -1677,10 +1677,10 @@
|
|
|
1677
1677
|
</div>
|
|
1678
1678
|
</div>
|
|
1679
1679
|
</div>
|
|
1680
|
-
|
|
1681
|
-
${e=>
|
|
1682
|
-
`;class
|
|
1683
|
-
${t&&`@media only screen and ${
|
|
1680
|
+
`,$n=r.html`
|
|
1681
|
+
${e=>wn(F(e))}
|
|
1682
|
+
`;class Sn 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],Sn.prototype,"position",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],Sn.prototype,"displayHeader",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],Sn.prototype,"closed",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],Sn.prototype,"visuallyhidden",void 0);const Cn=void 0,kn={},Fn=Sn.compose(Object.assign({baseName:"flyout",styles:xn,template:$n,shadowOptions:Cn},kn));var _n;!function(e){e.sm="(max-width: 640px)",e.md="(min-width: 641px) and (max-width: 1023px)",e.lg="(min-width: 1024px)"}(_n||(_n={}));const On=e=>{const t=e?`-${e}`:"";return r.css`
|
|
1683
|
+
${t&&`@media only screen and ${_n[e]} {`}
|
|
1684
1684
|
:host(.spacing${t}-1x) slot {
|
|
1685
1685
|
gap: calc(var(--design-unit) * 2px);
|
|
1686
1686
|
}
|
|
@@ -1765,32 +1765,32 @@
|
|
|
1765
1765
|
place-items: stretch;
|
|
1766
1766
|
}
|
|
1767
1767
|
${t&&"}"}
|
|
1768
|
-
`},
|
|
1768
|
+
`},Dn=r.css`
|
|
1769
1769
|
slot {
|
|
1770
1770
|
width: 100%;
|
|
1771
1771
|
height: 100%;
|
|
1772
1772
|
display: grid;
|
|
1773
1773
|
}
|
|
1774
1774
|
|
|
1775
|
-
${
|
|
1776
|
-
${
|
|
1777
|
-
${
|
|
1778
|
-
${
|
|
1779
|
-
`,
|
|
1775
|
+
${On()}
|
|
1776
|
+
${On("lg")}
|
|
1777
|
+
${On("md")}
|
|
1778
|
+
${On("sm")}
|
|
1779
|
+
`,Tn=r.html`
|
|
1780
1780
|
<template>
|
|
1781
1781
|
<slot></slot>
|
|
1782
1782
|
</template>
|
|
1783
|
-
`,
|
|
1783
|
+
`,Ln=void 0,En={};class An{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`
|
|
1784
1784
|
slot {
|
|
1785
1785
|
${s||""}
|
|
1786
1786
|
${n||""}
|
|
1787
1787
|
}
|
|
1788
|
-
`}bind(e){let t=!1;const o=o=>{const{matches:i}=o;i&&!t?(e.$fastController.addStyles(this.styles),t=!0):!i&&t&&(this.styles&&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)),this.styles&&e.$fastController.removeStyles(this.styles)}}class
|
|
1788
|
+
`}bind(e){let t=!1;const o=o=>{const{matches:i}=o;i&&!t?(e.$fastController.addStyles(this.styles),t=!0):!i&&t&&(this.styles&&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)),this.styles&&e.$fastController.removeStyles(this.styles)}}class Nn extends n.FoundationElement{constructor(){super(...arguments),this.behaviors=[]}connectedCallback(){super.connectedCallback(),this.behaviors=Object.keys(_n).map((e=>{if(this[`col-${e}-count`]||this[`row-${e}-count`])return new An(_n[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`
|
|
1789
1789
|
slot {
|
|
1790
1790
|
${e||""}
|
|
1791
1791
|
${t||""}
|
|
1792
1792
|
}
|
|
1793
|
-
`,this.$fastController.addStyles(this.baseStyles),this.$fastController.addBehaviors(this.behaviors)}disconnectedCallback(){super.disconnectedCallback(),this.$fastController.removeBehaviors(this.behaviors),this.baseStyles&&this.$fastController.removeStyles(this.baseStyles)}}(0,x.__decorate)([r.attr],
|
|
1793
|
+
`,this.$fastController.addStyles(this.baseStyles),this.$fastController.addBehaviors(this.behaviors)}disconnectedCallback(){super.disconnectedCallback(),this.$fastController.removeBehaviors(this.behaviors),this.baseStyles&&this.$fastController.removeStyles(this.baseStyles)}}(0,x.__decorate)([r.attr],Nn.prototype,"col-count",void 0),(0,x.__decorate)([r.attr],Nn.prototype,"col-width",void 0),(0,x.__decorate)([r.attr],Nn.prototype,"col-lg-count",void 0),(0,x.__decorate)([r.attr],Nn.prototype,"col-lg-width",void 0),(0,x.__decorate)([r.attr],Nn.prototype,"col-md-count",void 0),(0,x.__decorate)([r.attr],Nn.prototype,"col-md-width",void 0),(0,x.__decorate)([r.attr],Nn.prototype,"col-sm-count",void 0),(0,x.__decorate)([r.attr],Nn.prototype,"col-sm-width",void 0),(0,x.__decorate)([r.attr],Nn.prototype,"row-count",void 0),(0,x.__decorate)([r.attr],Nn.prototype,"row-height",void 0),(0,x.__decorate)([r.attr],Nn.prototype,"row-lg-count",void 0),(0,x.__decorate)([r.attr],Nn.prototype,"row-lg-height",void 0),(0,x.__decorate)([r.attr],Nn.prototype,"row-md-count",void 0),(0,x.__decorate)([r.attr],Nn.prototype,"row-md-height",void 0),(0,x.__decorate)([r.attr],Nn.prototype,"row-sm-count",void 0),(0,x.__decorate)([r.attr],Nn.prototype,"row-sm-height",void 0);const Rn=Nn.compose(Object.assign({baseName:"grid-layout",styles:Dn,template:Tn,shadowOptions:Ln},En)),In=r.html`
|
|
1794
1794
|
<template>
|
|
1795
1795
|
<style>
|
|
1796
1796
|
:host {
|
|
@@ -1819,9 +1819,9 @@
|
|
|
1819
1819
|
</style>
|
|
1820
1820
|
<slot></slot>
|
|
1821
1821
|
</template>
|
|
1822
|
-
`,
|
|
1822
|
+
`,Mn=void 0,Hn={};class Pn 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"})],Pn.prototype,"colNumber",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"col-sm-number"})],Pn.prototype,"colSmNumber",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"col-md-number"})],Pn.prototype,"colMdNumber",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"col-lg-number"})],Pn.prototype,"colLgNumber",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"row-number"})],Pn.prototype,"rowNumber",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"row-sm-number"})],Pn.prototype,"rowSmNumber",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"row-md-number"})],Pn.prototype,"rowMdNumber",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"row-lg-number"})],Pn.prototype,"rowLgNumber",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"width"})],Pn.prototype,"width",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"width-sm"})],Pn.prototype,"widthSm",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"width-md"})],Pn.prototype,"widthMd",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"width-lg"})],Pn.prototype,"widthLg",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"height"})],Pn.prototype,"height",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"height-sm"})],Pn.prototype,"heightSm",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"height-md"})],Pn.prototype,"heightMd",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"height-lg"})],Pn.prototype,"heightLg",void 0);const Bn=Pn.compose(Object.assign({baseName:"grid-layout-item",template:In,shadowOptions:Mn},Hn)),zn=(e,t)=>r.css`
|
|
1823
1823
|
${(0,s.horizontalScrollStyles)(e,t)}
|
|
1824
|
-
`,
|
|
1824
|
+
`,jn=(e,t)=>(0,n.horizontalScrollTemplate)(e,t);class Vn extends s.HorizontalScroll{}const Gn={delegatesFocus:!0,mode:"open"},Un={nextFlipper:r.html`
|
|
1825
1825
|
<foundation-flipper
|
|
1826
1826
|
@click="${e=>e.scrollToNext()}"
|
|
1827
1827
|
aria-hidden="${e=>e.flippersHiddenFromAT}"
|
|
@@ -1832,8 +1832,8 @@
|
|
|
1832
1832
|
direction="previous"
|
|
1833
1833
|
aria-hidden="${e=>e.flippersHiddenFromAT}"
|
|
1834
1834
|
></foundation-flipper>
|
|
1835
|
-
`},
|
|
1836
|
-
${
|
|
1835
|
+
`},Yn=Vn.compose(Object.assign({baseName:"horizontal-scroll",template:jn,styles:zn,shadowOptions:Gn},Un));var Wn=o(70623),qn=o(10463),Kn=o(19037),Xn=o(22984);const Zn=()=>(Wn.Yv.add(Xn.X7I,Kn.C91,qn.Cvc),Wn.tT.css()),Qn=(e,t)=>r.css`
|
|
1836
|
+
${Zn()}
|
|
1837
1837
|
|
|
1838
1838
|
.fa-stack-1x {
|
|
1839
1839
|
font-size: 1em;
|
|
@@ -1842,7 +1842,7 @@
|
|
|
1842
1842
|
.fa-stack-2x {
|
|
1843
1843
|
font-size: 2em;
|
|
1844
1844
|
}
|
|
1845
|
-
`,
|
|
1845
|
+
`,Jn=r.html`
|
|
1846
1846
|
<template>
|
|
1847
1847
|
<i
|
|
1848
1848
|
${(0,r.ref)("iElement")}
|
|
@@ -1852,7 +1852,7 @@
|
|
|
1852
1852
|
<slot></slot>
|
|
1853
1853
|
</i>
|
|
1854
1854
|
</template>
|
|
1855
|
-
`,
|
|
1855
|
+
`,es={mode:"open",delegatesFocus:!0},ts={};var os;!function(e){e.solid="fas",e.regular="far",e.brand="fab"}(os||(os={}));const is="1x",as=["2xs","xs","sm","lg","xl","2xl",is,"2x","3x","4x","5x","6x","7x","8x","9x","10x","stack-1x","stack-2x"];class ns 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,Wn.wu)({prefix:os[this.variant],iconName:this.name}),t=(0,Wn.Kk)(e);t&&t.node&&(this.iElement.innerHTML="",Array.from(t.node).map((e=>this.iElement.appendChild(e))))}}(0,x.__decorate)([r.observable],ns.prototype,"iElement",void 0),(0,x.__decorate)([r.attr],ns.prototype,"name",void 0),(0,x.__decorate)([r.attr],ns.prototype,"size",void 0),(0,x.__decorate)([r.attr],ns.prototype,"variant",void 0);const ss=ns.compose(Object.assign({baseName:"icon",template:Jn,styles:Qn,shadowOptions:es},ts)),rs=(e,t)=>r.css`
|
|
1856
1856
|
${(0,s.listboxStyles)(e,t)}
|
|
1857
1857
|
|
|
1858
1858
|
:host {
|
|
@@ -1863,11 +1863,11 @@
|
|
|
1863
1863
|
border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);
|
|
1864
1864
|
border-radius: calc(var(--control-corner-radius) * 1px);
|
|
1865
1865
|
}
|
|
1866
|
-
`,
|
|
1866
|
+
`,ls=(e,t)=>(0,n.listboxTemplate)(e,t);class ds extends s.Listbox{}const cs=void 0,us={},ps=ds.compose(Object.assign({baseName:"listbox",template:ls,styles:rs,shadowOptions:cs},us)),hs=(e,t)=>r.css`
|
|
1867
1867
|
${(0,s.optionStyles)(e,t)}
|
|
1868
|
-
`,
|
|
1868
|
+
`,ms=(e,t)=>(0,n.listboxOptionTemplate)(e,t);class vs extends s.ListboxOption{}const gs=void 0,fs={},bs=vs.compose(Object.assign({baseName:"option",template:ms,styles:hs,shadowOptions:gs},fs)),ys=(e,t)=>r.css`
|
|
1869
1869
|
${(0,s.menuStyles)(e,t)}
|
|
1870
|
-
`,
|
|
1870
|
+
`,xs=(e,t)=>(0,n.menuTemplate)(e,t);class ws extends s.Menu{}const $s=void 0,Ss={},Cs=ws.compose(Object.assign({baseName:"menu",template:xs,styles:ys,shadowOptions:$s},Ss)),ks=(e,t)=>r.css`
|
|
1871
1871
|
${(0,s.menuItemStyles)(e,t)}
|
|
1872
1872
|
|
|
1873
1873
|
:host, :host(.indent-0[aria-haspopup='menu']) {
|
|
@@ -1881,11 +1881,11 @@
|
|
|
1881
1881
|
height: auto;
|
|
1882
1882
|
width: auto;
|
|
1883
1883
|
}
|
|
1884
|
-
`,
|
|
1885
|
-
${
|
|
1886
|
-
`,
|
|
1887
|
-
${
|
|
1888
|
-
`,
|
|
1884
|
+
`,Fs=(e,t)=>(0,n.menuItemTemplate)(e,t);class _s extends s.MenuItem{connectedCallback(){super.connectedCallback(),this.addEventListener("click",(()=>this.$emit("onMenuClick")))}}const Os=void 0,Ds={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 '},Ts=_s.compose(Object.assign({baseName:"menu-item",template:Fs,styles:ks,shadowOptions:Os},Ds)),Ls=r.css`
|
|
1885
|
+
${vi}
|
|
1886
|
+
`,Es=r.html`
|
|
1887
|
+
${bi}
|
|
1888
|
+
`,As={mode:"open",delegatesFocus:!0},Ns={};class Rs extends wi{show(){this.onShowCallback&&this.onShowCallback(),this.mainElement.showModal()}}const Is=Rs.compose(Object.assign({baseName:"modal",styles:Ls,template:Es,shadowOptions:As},Ns)),Ms=230,Hs=r.css`
|
|
1889
1889
|
.root {
|
|
1890
1890
|
position: relative;
|
|
1891
1891
|
width: inherit;
|
|
@@ -2017,7 +2017,7 @@
|
|
|
2017
2017
|
|
|
2018
2018
|
.visible {
|
|
2019
2019
|
visibility: visible;
|
|
2020
|
-
max-height: ${
|
|
2020
|
+
max-height: ${Ms.toString()}px;
|
|
2021
2021
|
}
|
|
2022
2022
|
|
|
2023
2023
|
::slotted(foundation-checkbox),
|
|
@@ -2052,7 +2052,7 @@
|
|
|
2052
2052
|
.label-hidden {
|
|
2053
2053
|
display: none;
|
|
2054
2054
|
}
|
|
2055
|
-
`;let
|
|
2055
|
+
`;let Ps=class extends mt{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"})],Ps.prototype,"valueField",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"label-field"})],Ps.prototype,"labelField",void 0),Ps=(0,x.__decorate)([(0,r.customElement)({name:"multiselect-datasource"})],Ps);const Bs=(e="foundation")=>r.html`
|
|
2056
2056
|
<label
|
|
2057
2057
|
part="label"
|
|
2058
2058
|
for="control"
|
|
@@ -2132,11 +2132,11 @@
|
|
|
2132
2132
|
</div>
|
|
2133
2133
|
</div>
|
|
2134
2134
|
<slot
|
|
2135
|
-
${(0,r.slotted)({property:"slottedDatasource",filter:e=>e instanceof
|
|
2135
|
+
${(0,r.slotted)({property:"slottedDatasource",filter:e=>e instanceof Ps})}
|
|
2136
2136
|
></slot>
|
|
2137
|
-
`,
|
|
2138
|
-
${
|
|
2139
|
-
`,
|
|
2137
|
+
`,zs=r.html`
|
|
2138
|
+
${Bs()}
|
|
2139
|
+
`,js=void 0,Vs={};class Gs extends n.FoundationElement{constructor(){super(...arguments),this.name="",this.autoPosition=!0,this.all=!0,this.allSelected=!1,this.search=!0,this.disabled=!1,this.creatable=!1,this.async=!1,this.debounce=500,this.filterByContains=!1,this.filterSearchValue="",this.clickOutside=e=>this.handleClickOutside(e),this.open=!1,this.options=[],this.selectedOptions=[],this.filteredAvailableOptions=[...this.options],this.position=ze.BELOW,this.initialisedOptions=!1}debounceChanged(e,t){this.debouncedInputHandler=nt()(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===ze.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?ze.BELOW:ze.ABOVE}else{const t=this.getBoundingClientRect(),o=window.innerHeight,i=t.top,a=o-t.bottom;e=a<t.height&&i>a?ze.ABOVE:ze.BELOW}}e===ze.ABOVE?(this.optionsElement.classList.add("position-above"),this.optionsElement.classList.remove("position-below")):e===ze.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}get showCreatable(){return this.creatable&&this.filterSearchValue.length>0&&0===this.findExactMatchOptions().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()}findExactMatchOptions(){const e=this.filterSearchValue.toLowerCase();return this.filteredAvailableOptions.filter((t=>{var o,i;const a="string"==typeof t?t:null!==(o=t.label)&&void 0!==o?o:t.value;return(null!==(i=null==a?void 0:a.toLowerCase())&&void 0!==i?i:"")===e}))}setFilter(){this.filteredAvailableOptions=[...this.options.filter((e=>{var t;const o=("string"==typeof e?e:null!==(t=e.label)&&void 0!==t?t:e.value).toLowerCase(),i=this.filterSearchValue.toLowerCase();return this.filterByContains?o.indexOf(i)>=0:o.startsWith(i)}))]}addOption(){this.options=[{value:this.filterSearchValue,label:this.filterSearchValue},...this.options],this.setFilter(),this.selectedOptions=[...this.selectedOptions,this.filterSearchValue]}asyncSetFilter(){if(this.slottedDatasource.length>0){const e=this.slottedDatasource[0].datasource.resourceType;e===it.v.DATASERVER&&kt(this.slottedDatasource[0],this.filterSearchValue),e===it.v.REQUEST_SERVER&&Ft(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){C(e,this)&&(this.open=!1)}}(0,x.__decorate)([r.attr],Gs.prototype,"name",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean",attribute:"auto-position"})],Gs.prototype,"autoPosition",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],Gs.prototype,"all",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],Gs.prototype,"allSelected",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],Gs.prototype,"search",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],Gs.prototype,"disabled",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],Gs.prototype,"creatable",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],Gs.prototype,"async",void 0),(0,x.__decorate)([r.attr],Gs.prototype,"debounce",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean",attribute:"filter-by-contains"})],Gs.prototype,"filterByContains",void 0),(0,x.__decorate)([r.observable],Gs.prototype,"defaultSlottedNodes",void 0),(0,x.__decorate)([r.observable],Gs.prototype,"slottedDatasource",void 0),(0,x.__decorate)([r.observable],Gs.prototype,"valueFormatter",void 0),(0,x.__decorate)([r.observable],Gs.prototype,"loading",void 0),(0,x.__decorate)([r.observable],Gs.prototype,"filterSearchValue",void 0),(0,x.__decorate)([r.observable],Gs.prototype,"open",void 0),(0,x.__decorate)([r.observable],Gs.prototype,"options",void 0),(0,x.__decorate)([r.observable],Gs.prototype,"selectedOptions",void 0),(0,x.__decorate)([r.observable],Gs.prototype,"filteredAvailableOptions",void 0),(0,x.__decorate)([r.observable],Gs.prototype,"scrollContainer",void 0),(0,x.__decorate)([r.observable],Gs.prototype,"position",void 0),(0,x.__decorate)([r.observable],Gs.prototype,"onAllSelectedCallback",void 0),(0,x.__decorate)([r.volatile],Gs.prototype,"getDisplayValue",null),(0,x.__decorate)([r.volatile],Gs.prototype,"getPlaceholder",null),(0,x.__decorate)([r.volatile],Gs.prototype,"isAllSelected",null),(0,x.__decorate)([r.volatile],Gs.prototype,"isAllOptionsDisabled",null),(0,x.__decorate)([r.volatile],Gs.prototype,"showCreatable",null);const Us=Gs.compose(Object.assign({baseName:"multiselect",template:zs,styles:Hs,shadowOptions:js},Vs));class Ys{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 Ws=(e,t)=>r.css`
|
|
2140
2140
|
${(0,s.numberFieldStyles)(e,t)}
|
|
2141
2141
|
::part(label) {
|
|
2142
2142
|
color: var(--neutral-foreground-rest);
|
|
@@ -2166,7 +2166,7 @@
|
|
|
2166
2166
|
::part(end) {
|
|
2167
2167
|
margin-inline-end: unset;
|
|
2168
2168
|
}
|
|
2169
|
-
`,
|
|
2169
|
+
`,qs=(e,t)=>r.html`
|
|
2170
2170
|
<template class="${e=>e.readOnly?"readonly":""}">
|
|
2171
2171
|
<label
|
|
2172
2172
|
part="label"
|
|
@@ -2235,19 +2235,19 @@
|
|
|
2235
2235
|
${(0,n.endSlotTemplate)(e,t)}
|
|
2236
2236
|
</div>
|
|
2237
2237
|
</template>
|
|
2238
|
-
`;class Ws extends s.NumberField{constructor(){super(...arguments),this.hideStep=!1,this.value="",this.withFormatting=!1,this.locale="en-US",this.options={maximumFractionDigits:3,minimumFractionDigits:0}}autocompleteChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.autocomplete=this.autocomplete)}sanitiseInputVal(e){return String(new Gs(this.locale).parse(String(e)))}toIntlNumberFormat(e){return Intl.NumberFormat(this.locale,this.options).format(Number(e))}validateValue(e,t=!0){let o=parseFloat(parseFloat(t?this.sanitiseInputVal(e):e).toPrecision(12));return isNaN(o)&&(o=""),String(o)}validateMinMax(e,t=!0){var o,i;let a=parseFloat(this.validateValue(e,t));return isNaN(a)?a="":(a=Math.min(a,null!==(o=this.max)&&void 0!==o?o:a),a=Math.max(a,null!==(i=this.min)&&void 0!==i?i:a)),String(a)}stepUp(){const e=parseFloat(this.value),t=isNaN(e)?this.min>0?this.min:this.max<0?this.max:this.min?0:this.step:e+this.step;this.value=t.toString(),this.control.value=this.validateMinMax(t.toString(),this.withFormatting),this.handleTextInput()}stepDown(){const e=parseFloat(this.value),t=isNaN(e)?this.min>0?this.min:this.max<0?this.max:this.min?0:0-this.step:e-this.step;this.value=t.toString(),this.control.value=this.validateMinMax(t.toString(),this.withFormatting),this.handleTextInput()}hasSeparatorWithoutDecimals(){return new RegExp("[.]$")}handleTextInput(){this.isUserInput=!0,this.withFormatting&&!new Gs(this.locale).hasSeparator(this.control.value)?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],Ws.prototype,"autocomplete",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],Ws.prototype,"hideStep",void 0),(0,x.__decorate)([r.attr],Ws.prototype,"value",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],Ws.prototype,"withFormatting",void 0),(0,x.__decorate)([r.attr],Ws.prototype,"locale",void 0);const qs={delegatesFocus:!0,mode:"open"},Ks={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 '},Xs=Ws.compose(Object.assign({baseName:"number-field",template:Ys,styles:Us,shadowOptions:qs},Ks));var Zs=o(8202),Qs=o(29270);var Js=o(72154),er=o.n(Js),tr=o(57565),or=o.n(tr),ir=o(13160),ar=o(24669),nr=o(5709),sr=o(45230);const rr={windowEvents:["online","offline","pageshow"],documentEvents:["visibilitychange"],genesisConnectEvents:["stream","commit"],ignoredGenesisResources:[],startDelay:5e3,checkInterval:1e4,checkTimeout:3e3,resourceChecks:e=>(0,Zs.__awaiter)(void 0,void 0,void 0,(function*(){var t;const o=(0,dt.tn)(),i=yield o.getMoreColumns(e),a=Date.now(),n=i;return{isConnected:null!==(t=(null==i?void 0:i.MESSAGE_TYPE)===rt.Go.MORE_COLUMNS_ACK)&&void 0!==t&&t,lastUpdated:a,lastMessage:n}})),resourceDataLogon:({message:e,functions:t})=>{const{onMessage:o,onError:i}=t;(0,sr.Ol)().sendForStream(e,o,i)}},lr=n.DI.createInterface((e=>e.instance(rr))),dr="system-health-changed";var cr;const ur=(0,ie.createLogger)("network-monitor",{level:ie.LogLevel.Info}),pr=Date.now(),hr=(null===(cr=window.navigator)||void 0===cr?void 0:cr.userAgent)?er().parse(window.navigator.userAgent):void 0,mr=(e,t={depthLimit:10,edgesLimit:10})=>e instanceof Event?`'${e.type}' Event`:"string"==typeof e?e:or()(e,void 0,2,t);class vr{constructor(){this.unsubscribableObservers=[],this.runAllChecks=(e,t)=>(0,Zs.__awaiter)(this,void 0,void 0,(function*(){if(!this.isReady||this.isRunningChecks&&!t)return;ur.info("Run health checks, triggered by",mr(e),"| Active resources",this.resources.size),this.isRunningChecks=!0,this.synchroniseCheckInterval();let o=this.getFormattedTimestamp(this.getNowTimestamp());const i=yield this.isOnlineCheck();i?ur.debug(`Network connected at ${o}`):ur.warn(`Network disconnected at ${o}`);const a=this.normaliseSerializedSocketStatus(this.socketStatus.serialize(),i),n=this.preFlightSocketChecks(a);if(n||ur.debug("Socket pre-flight checks failed"),!i||!n){ur.debug("Aborting remaining health checks");const e=[...this.resources].reduce(((e,[t,o])=>{const a=e[o.resourceName];return a?(a.sourceRef=[...a.sourceRef,o.message.SOURCE_REF],e):Object.assign(Object.assign({},e),{[o.resourceName]:this.normaliseResourceHealth({name:o.resourceName,sourceRef:[o.message.SOURCE_REF],isConnected:o.isConnected,lastUpdated:o.lastUpdated},i)})}),{});return this.reportSystemHealth({isAuthenticated:this.user.isAuthenticated,isOnline:i,resources:e,resourcesAllConnected:!1,socket:a}),void(this.isRunningChecks=!1)}let s=!0;const r=[];this.resources.forEach(((e,t)=>{const{resourceName:i,message:a,functions:n}=e,{resourceChecks:l=this.config.resourceChecks,resourceDataLogon:d=this.config.resourceDataLogon}=n,{SOURCE_REF:c}=a;let u,p,h,m,v,g=!1;r.push((()=>(0,Zs.__awaiter)(this,void 0,void 0,(function*(){var a,n,r;try{ur.debug(`Running health check against ${i}`);const e=yield Promise.race([l(c,t),(n=this.config.checkTimeout,r=()=>({isConnected:!1,lastUpdated:this.getNowTimestamp(),timeout:!0}),new Promise((e=>{setTimeout((()=>{e(r())}),n)})))]);g=e.isConnected,u=e.lastUpdated,p=e.lastMessage,m=e.timeout}catch(e){g=!1,u=this.getNowTimestamp(),h=e,p=null!==(a=null==e?void 0:e.receivedMessage)&&void 0!==a?a:e}return v=(null==p?void 0:p.MESSAGE_TYPE)===rt.Go.MSG_NACK||(0,rt.z2)(p,ir.v.NOT_FOUND),o=this.getFormattedTimestamp(null!=u?u:this.getNowTimestamp()),g?ur.debug(`${i} is healthy at ${o}`):ur.warn(`${i} is not healthy at ${o}`),p&&ur.debug(`${i} messaged at ${o}`,mr(p)),h&&ur.error(`${i} errored at ${o}`,mr(h)),m&&ur.warn(`${i} timed out at ${o}`),v&&(ur.error(`${i} issue, re-attempting data logon at ${o}`),d(e)),s&&(s=g),{name:i,sourceRef:[c],isConnected:g,lastUpdated:u,lastError:h}})))())}));const l=(yield Promise.allSettled(r)).reduce(((e,t)=>{if("fulfilled"===t.status){const o=e[t.value.name];return o?(o.sourceRef=[...o.sourceRef,...t.value.sourceRef],e):Object.assign(Object.assign({},e),{[t.value.name]:this.normaliseResourceHealth(t.value)})}return ur.warn("Unexpected promise rejection occurred. Please check any custom resourceChecks return MonitoredResourceChecksResult."),e}),{});ur.debug("Health checks complete"),this.reportSystemHealth({isAuthenticated:this.user.isAuthenticated,isOnline:i,resources:l,resourcesAllConnected:s,socket:a}),this.isRunningChecks=!1})),void 0!==this.config.logLevel&&(ur.level=this.config.logLevel)}create(){this.resources?ur.warn("NetworkMonitor already created. If this is intentional, please call NetworkMonitor.destroy first."):(this.addListeners(),this.resources=new Map,setTimeout((()=>{this.isReady=!0,this.synchroniseCheckInterval(),this.runAllChecks("NetworkMonitor.create()")}),this.config.startDelay))}destroy(){this.removeListeners(),clearInterval(this.internalId),this.resources.clear(),this.resources=void 0,this.status=void 0,this.isReady=void 0}isOnlineCheck(){return Promise.resolve(navigator.onLine)}addResource(e,t){this.resources||this.create(),this.resources.set(e,t)}removeResource(e){this.resources.delete(e)}addListeners(){var e,t;null===(e=this.config.windowEvents)||void 0===e||e.forEach((e=>window.addEventListener(e,this.runAllChecks))),null===(t=this.config.documentEvents)||void 0===t||t.forEach((e=>document.addEventListener(e,this.runAllChecks))),this.config.genesisConnectEvents.includes("stream")&&this.unsubscribableObservers.push(this.connectEvents.addStreamListener((({detail:e})=>{const{functions:t,message:o,resourceName:i,stream:a}=e;this.config.ignoredGenesisResources.includes(i)||this.addResource(a,{functions:t,message:o,resourceName:i})}),(({detail:e})=>{const{resourceName:t,stream:o}=e;this.config.ignoredGenesisResources.includes(t)||this.removeResource(o)}),(({detail:e})=>{var t;const{resourceName:o,stream:i,error:a}=e,n=null!==(t=a.receivedMessage)&&void 0!==t?t:a;let s="";(0,rt.z2)(n,ir.v.NOT_FOUND)?s="Please check the resource is running.":(0,rt.z2)(n,ir.v.FORBIDDEN)&&(s="You are not authorised to access this resource, removing it from monitoring.",this.removeResource(i)),ur.error(`${o} errored at ${this.getFormattedTimestamp(this.getNowTimestamp())}.`,s,a)}))),this.config.genesisConnectEvents.includes("commit")&&this.unsubscribableObservers.push(this.connectEvents.addCommitListener((e=>{this.config.ignoredGenesisResources.includes(e.detail.eventName)||this.runAllChecks(e)}))),this.unsubscribableObservers.push(this.connectEvents.addMetadataListener((({detail:e})=>{const{resourceName:t,error:o}=e;o&&ur.error(`${t} had an unrecoverable error at ${this.getFormattedTimestamp(this.getNowTimestamp())}.`,"Please check the resource is running.",o)})))}removeListeners(){var e,t;null===(e=this.config.windowEvents)||void 0===e||e.forEach((e=>window.removeEventListener(e,this.runAllChecks))),null===(t=this.config.documentEvents)||void 0===t||t.forEach((e=>document.removeEventListener(e,this.runAllChecks))),this.unsubscribableObservers.forEach((e=>e())),this.unsubscribableObservers.length=0}reportSystemHealth(e){var t;const o=null!==(t=this.config.eventEmitter)&&void 0!==t?t:document;this.status=this.normaliseEventDetail(e);(this.status.isHealthy?ur.debug:ur.warn)("Emitting 'system-health-changed' event",mr(this.status)),null==o||o.dispatchEvent(new CustomEvent(dr,{detail:this.status,bubbles:o!==document,composed:!0})),this.status.socket.reconnectionLimitReached&&(ur.debug("Network monitoring no longer required. Please check your network and reload your application."),this.destroy())}reportStabilityToGenesis(e){return(0,Zs.__awaiter)(this,void 0,void 0,(function*(){return ur.debug("User requested report stability to Genesis."),ur.info("Please attach this data to your Genesis Support request: \n",JSON.stringify(e,null,2)),!0}))}normaliseResourceHealth(e,t=!0){var o;const i=!!t&&e.isConnected,a=null!==(o=e.lastUpdated)&&void 0!==o?o:this.getNowTimestamp();return Object.assign(Object.assign({},e),{isConnected:i,lastUpdated:a})}normaliseSerializedSocketStatus(e,t=!0){const o=!!t&&e.isConnected,i=!o;return Object.assign(Object.assign({},e),{isConnected:o,isDisconnected:i})}normaliseEventDetail(e){var t,o,i,a;const n=!!((null===(t=e.socket)||void 0===t?void 0:t.isConfigured)?e.isOnline&&(null===(o=e.socket)||void 0===o?void 0:o.isConnected)&&e.resourcesAllConnected:e.isOnline),s=null!==(i=e.lastUpdated)&&void 0!==i?i:this.getNowTimestamp(),r=null!==(a=e.nextUpdate)&&void 0!==a?a:this.getNextTimestamp(),l=e.isAuthenticated&&this.user?this.user.username:void 0,d=Object.assign(Object.assign({},e),{browserInformation:hr,username:l,isHealthy:n,lastUpdated:s,nextUpdate:r,firstUpdated:pr,runAllChecks:()=>{ur.debug("User activated run checks command starting."),this.runAllChecks("user requested")},reportStabilityToGenesis:()=>this.reportStabilityToGenesis(d)});return d}preFlightSocketChecks(e){if(!e.isConfigured)return ur.debug("Socket not configured"),!1;if(e.isReconnecting)return ur.debug("Socket reconnecting"),!1;if(e.isConnecting)return ur.debug("Socket connecting"),!1;if(e.isDisconnected){const t=e.isDisconnectedByServer?`by the server, code: ${e.closedCode}, reason: ${e.closedReason}`:"";return ur.debug(`Socket disconnected ${t}`),e.reconnectionLimitReached&&ur.debug("Socket reconnection limit reached"),!1}const t=this.user.isAuthenticated?"with":"without";return ur.debug(`Socket connected ${t} valid session`),!0}getFormattedTimestamp(e){return(0,ha.zT)(e)}getNowTimestamp(){return Date.now()}getNextTimestamp(){return new Date(Date.now()+this.config.checkInterval).getTime()}synchroniseCheckInterval(){clearInterval(this.internalId),this.internalId=setInterval((()=>this.runAllChecks("check interval")),this.config.checkInterval)}}(0,Zs.__decorate)([lr],vr.prototype,"config",void 0),(0,Zs.__decorate)([nr.S5],vr.prototype,"socketStatus",void 0),(0,Zs.__decorate)([ar.a4],vr.prototype,"connectEvents",void 0),(0,Zs.__decorate)([Qs.KJ],vr.prototype,"user",void 0),(0,Zs.__decorate)([r.observable],vr.prototype,"status",void 0);const gr=n.DI.createInterface((e=>e.singleton(vr)));var fr=o(6526);const br=(e,t)=>r.css`
|
|
2238
|
+
`;class Ks extends s.NumberField{constructor(){super(...arguments),this.hideStep=!1,this.value="",this.withFormatting=!1,this.locale="en-US",this.options={maximumFractionDigits:3,minimumFractionDigits:0}}autocompleteChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.autocomplete=this.autocomplete)}sanitiseInputVal(e){return String(new Ys(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 Ys(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],Ks.prototype,"autocomplete",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],Ks.prototype,"hideStep",void 0),(0,x.__decorate)([r.attr],Ks.prototype,"value",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],Ks.prototype,"withFormatting",void 0),(0,x.__decorate)([r.attr],Ks.prototype,"locale",void 0);const Xs={delegatesFocus:!0,mode:"open"},Zs={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 '},Qs=Ks.compose(Object.assign({baseName:"number-field",template:qs,styles:Ws,shadowOptions:Xs},Zs));var Js=o(8202),er=o(92277);var tr=o(72154),or=o.n(tr),ir=o(57565),ar=o.n(ir),nr=o(13160),sr=o(24669),rr=o(5709),lr=o(45230);const dr={windowEvents:["online","offline","pageshow"],documentEvents:["visibilitychange"],genesisConnectEvents:["stream","commit"],ignoredGenesisResources:[],startDelay:5e3,checkInterval:1e4,checkTimeout:3e3,resourceChecks:e=>(0,Js.__awaiter)(void 0,void 0,void 0,(function*(){var t;const o=(0,ut.tn)(),i=yield o.getMoreColumns(e),a=Date.now(),n=i;return{isConnected:null!==(t=(null==i?void 0:i.MESSAGE_TYPE)===dt.Go.MORE_COLUMNS_ACK)&&void 0!==t&&t,lastUpdated:a,lastMessage:n}})),resourceDataLogon:({message:e,functions:t})=>{const{onMessage:o,onError:i}=t;(0,lr.Ol)().sendForStream(e,o,i)}},cr=n.DI.createInterface((e=>e.instance(dr))),ur="system-health-changed";var pr;const hr=(0,ie.createLogger)("network-monitor",{level:ie.LogLevel.Info}),mr=Date.now(),vr=(null===(pr=window.navigator)||void 0===pr?void 0:pr.userAgent)?or().parse(window.navigator.userAgent):void 0,gr=(e,t={depthLimit:10,edgesLimit:10})=>e instanceof Event?`'${e.type}' Event`:"string"==typeof e?e:ar()(e,void 0,2,t);class fr{constructor(){this.unsubscribableObservers=[],this.runAllChecks=(e,t)=>(0,Js.__awaiter)(this,void 0,void 0,(function*(){if(!this.isReady||this.isRunningChecks&&!t)return;hr.info("Run health checks, triggered by",gr(e),"| Active resources",this.resources.size),this.isRunningChecks=!0,this.synchroniseCheckInterval();let o=this.getFormattedTimestamp(this.getNowTimestamp());const i=yield this.isOnlineCheck();i?hr.debug(`Network connected at ${o}`):hr.warn(`Network disconnected at ${o}`);const a=this.normaliseSerializedSocketStatus(this.socketStatus.serialize(),i),n=this.preFlightSocketChecks(a);if(n||hr.debug("Socket pre-flight checks failed"),!i||!n){hr.debug("Aborting remaining health checks");const e=[...this.resources].reduce(((e,[t,o])=>{const a=e[o.resourceName];return a?(a.sourceRef=[...a.sourceRef,o.message.SOURCE_REF],e):Object.assign(Object.assign({},e),{[o.resourceName]:this.normaliseResourceHealth({name:o.resourceName,sourceRef:[o.message.SOURCE_REF],isConnected:o.isConnected,lastUpdated:o.lastUpdated},i)})}),{});return this.reportSystemHealth({isAuthenticated:this.user.isAuthenticated,isOnline:i,resources:e,resourcesAllConnected:!1,socket:a}),void(this.isRunningChecks=!1)}let s=!0;const r=[];this.resources.forEach(((e,t)=>{const{resourceName:i,message:a,functions:n}=e,{resourceChecks:l=this.config.resourceChecks,resourceDataLogon:d=this.config.resourceDataLogon}=n,{SOURCE_REF:c}=a;let u,p,h,m,v,g=!1;r.push((()=>(0,Js.__awaiter)(this,void 0,void 0,(function*(){var a,n,r;try{hr.debug(`Running health check against ${i}`);const e=yield Promise.race([l(c,t),(n=this.config.checkTimeout,r=()=>({isConnected:!1,lastUpdated:this.getNowTimestamp(),timeout:!0}),new Promise((e=>{setTimeout((()=>{e(r())}),n)})))]);g=e.isConnected,u=e.lastUpdated,p=e.lastMessage,m=e.timeout}catch(e){g=!1,u=this.getNowTimestamp(),h=e,p=null!==(a=null==e?void 0:e.receivedMessage)&&void 0!==a?a:e}return v=(null==p?void 0:p.MESSAGE_TYPE)===dt.Go.MSG_NACK||(0,dt.z2)(p,nr.v.NOT_FOUND),o=this.getFormattedTimestamp(null!=u?u:this.getNowTimestamp()),g?hr.debug(`${i} is healthy at ${o}`):hr.warn(`${i} is not healthy at ${o}`),p&&hr.debug(`${i} messaged at ${o}`,gr(p)),h&&hr.error(`${i} errored at ${o}`,gr(h)),m&&hr.warn(`${i} timed out at ${o}`),v&&(hr.error(`${i} issue, re-attempting data logon at ${o}`),d(e)),s&&(s=g),{name:i,sourceRef:[c],isConnected:g,lastUpdated:u,lastError:h}})))())}));const l=(yield Promise.allSettled(r)).reduce(((e,t)=>{if("fulfilled"===t.status){const o=e[t.value.name];return o?(o.sourceRef=[...o.sourceRef,...t.value.sourceRef],e):Object.assign(Object.assign({},e),{[t.value.name]:this.normaliseResourceHealth(t.value)})}return hr.warn("Unexpected promise rejection occurred. Please check any custom resourceChecks return MonitoredResourceChecksResult."),e}),{});hr.debug("Health checks complete"),this.reportSystemHealth({isAuthenticated:this.user.isAuthenticated,isOnline:i,resources:l,resourcesAllConnected:s,socket:a}),this.isRunningChecks=!1})),void 0!==this.config.logLevel&&(hr.level=this.config.logLevel)}create(){this.resources?hr.warn("NetworkMonitor already created. If this is intentional, please call NetworkMonitor.destroy first."):(this.addListeners(),this.resources=new Map,setTimeout((()=>{this.isReady=!0,this.synchroniseCheckInterval(),this.runAllChecks("NetworkMonitor.create()")}),this.config.startDelay))}destroy(){this.removeListeners(),clearInterval(this.internalId),this.resources.clear(),this.resources=void 0,this.status=void 0,this.isReady=void 0}isOnlineCheck(){return Promise.resolve(navigator.onLine)}addResource(e,t){this.resources||this.create(),this.resources.set(e,t)}removeResource(e){this.resources.delete(e)}addListeners(){var e,t;null===(e=this.config.windowEvents)||void 0===e||e.forEach((e=>window.addEventListener(e,this.runAllChecks))),null===(t=this.config.documentEvents)||void 0===t||t.forEach((e=>document.addEventListener(e,this.runAllChecks))),this.config.genesisConnectEvents.includes("stream")&&this.unsubscribableObservers.push(this.connectEvents.addStreamListener((({detail:e})=>{const{functions:t,message:o,resourceName:i,stream:a}=e;this.config.ignoredGenesisResources.includes(i)||this.addResource(a,{functions:t,message:o,resourceName:i})}),(({detail:e})=>{const{resourceName:t,stream:o}=e;this.config.ignoredGenesisResources.includes(t)||this.removeResource(o)}),(({detail:e})=>{var t;const{resourceName:o,stream:i,error:a}=e,n=null!==(t=a.receivedMessage)&&void 0!==t?t:a;let s="";(0,dt.z2)(n,nr.v.NOT_FOUND)?s="Please check the resource is running.":(0,dt.z2)(n,nr.v.FORBIDDEN)&&(s="You are not authorised to access this resource, removing it from monitoring.",this.removeResource(i)),hr.error(`${o} errored at ${this.getFormattedTimestamp(this.getNowTimestamp())}.`,s,a)}))),this.config.genesisConnectEvents.includes("commit")&&this.unsubscribableObservers.push(this.connectEvents.addCommitListener((e=>{this.config.ignoredGenesisResources.includes(e.detail.eventName)||this.runAllChecks(e)}))),this.unsubscribableObservers.push(this.connectEvents.addMetadataListener((({detail:e})=>{const{resourceName:t,error:o}=e;o&&hr.error(`${t} had an unrecoverable error at ${this.getFormattedTimestamp(this.getNowTimestamp())}.`,"Please check the resource is running.",o)})))}removeListeners(){var e,t;null===(e=this.config.windowEvents)||void 0===e||e.forEach((e=>window.removeEventListener(e,this.runAllChecks))),null===(t=this.config.documentEvents)||void 0===t||t.forEach((e=>document.removeEventListener(e,this.runAllChecks))),this.unsubscribableObservers.forEach((e=>e())),this.unsubscribableObservers.length=0}reportSystemHealth(e){var t;const o=null!==(t=this.config.eventEmitter)&&void 0!==t?t:document;this.status=this.normaliseEventDetail(e);(this.status.isHealthy?hr.debug:hr.warn)("Emitting 'system-health-changed' event",gr(this.status)),null==o||o.dispatchEvent(new CustomEvent(ur,{detail:this.status,bubbles:o!==document,composed:!0})),this.status.socket.reconnectionLimitReached&&(hr.debug("Network monitoring no longer required. Please check your network and reload your application."),this.destroy())}reportStabilityToGenesis(e){return(0,Js.__awaiter)(this,void 0,void 0,(function*(){return hr.debug("User requested report stability to Genesis."),hr.info("Please attach this data to your Genesis Support request: \n",JSON.stringify(e,null,2)),!0}))}normaliseResourceHealth(e,t=!0){var o;const i=!!t&&e.isConnected,a=null!==(o=e.lastUpdated)&&void 0!==o?o:this.getNowTimestamp();return Object.assign(Object.assign({},e),{isConnected:i,lastUpdated:a})}normaliseSerializedSocketStatus(e,t=!0){const o=!!t&&e.isConnected,i=!o;return Object.assign(Object.assign({},e),{isConnected:o,isDisconnected:i})}normaliseEventDetail(e){var t,o,i,a;const n=!!((null===(t=e.socket)||void 0===t?void 0:t.isConfigured)?e.isOnline&&(null===(o=e.socket)||void 0===o?void 0:o.isConnected)&&e.resourcesAllConnected:e.isOnline),s=null!==(i=e.lastUpdated)&&void 0!==i?i:this.getNowTimestamp(),r=null!==(a=e.nextUpdate)&&void 0!==a?a:this.getNextTimestamp(),l=e.isAuthenticated&&this.user?this.user.username:void 0,d=Object.assign(Object.assign({},e),{browserInformation:vr,username:l,isHealthy:n,lastUpdated:s,nextUpdate:r,firstUpdated:mr,runAllChecks:()=>{hr.debug("User activated run checks command starting."),this.runAllChecks("user requested")},reportStabilityToGenesis:()=>this.reportStabilityToGenesis(d)});return d}preFlightSocketChecks(e){if(!e.isConfigured)return hr.debug("Socket not configured"),!1;if(e.isReconnecting)return hr.debug("Socket reconnecting"),!1;if(e.isConnecting)return hr.debug("Socket connecting"),!1;if(e.isDisconnected){const t=e.isDisconnectedByServer?`by the server, code: ${e.closedCode}, reason: ${e.closedReason}`:"";return hr.debug(`Socket disconnected ${t}`),e.reconnectionLimitReached&&hr.debug("Socket reconnection limit reached"),!1}const t=this.user.isAuthenticated?"with":"without";return hr.debug(`Socket connected ${t} valid session`),!0}getFormattedTimestamp(e){return(0,va.zT)(e)}getNowTimestamp(){return Date.now()}getNextTimestamp(){return new Date(Date.now()+this.config.checkInterval).getTime()}synchroniseCheckInterval(){clearInterval(this.internalId),this.internalId=setInterval((()=>this.runAllChecks("check interval")),this.config.checkInterval)}}(0,Js.__decorate)([cr],fr.prototype,"config",void 0),(0,Js.__decorate)([rr.S5],fr.prototype,"socketStatus",void 0),(0,Js.__decorate)([sr.a4],fr.prototype,"connectEvents",void 0),(0,Js.__decorate)([er.KJ],fr.prototype,"user",void 0),(0,Js.__decorate)([r.observable],fr.prototype,"status",void 0);const br=n.DI.createInterface((e=>e.singleton(fr)));var yr=o(6526);const xr=(e,t)=>r.css`
|
|
2239
2239
|
${(0,s.progressStyles)(e,t)}
|
|
2240
2240
|
:host {
|
|
2241
2241
|
height: calc(var(--design-unit) * 2px);
|
|
2242
2242
|
}
|
|
2243
|
-
`,
|
|
2243
|
+
`,wr=(e,t)=>(0,n.progressTemplate)(e,t);class $r extends s.Progress{}const Sr=void 0,Cr={indeterminateIndicator1:'<span class="indeterminate-indicator-1" part="indeterminate-indicator-1"></span>',indeterminateIndicator2:'<span class="indeterminate-indicator-1" part="indeterminate-indicator-1"></span>'},kr=$r.compose(Object.assign({baseName:"progress",template:wr,styles:xr,shadowOptions:Sr},Cr));function Fr(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 _r=(e,t="foundation")=>{e&&Yo(i,a,e);return Fr(n.DesignSystem.getOrCreate(e).withPrefix(t))},Or="app",Dr="component";_r().register(kr({prefix:"next-update"}));class Tr extends n.FoundationElement{constructor(){super(...arguments),this.timeTillNextUpdate={totalMs:1e4,remainMs:1e4,remainPercent:100},this.mode=Or,this.status={isOnline:!0,isHealthy:!0,browserInformation:{},socket:{},resources:{}},this.onSystemHealthChanged=e=>{this.status=e.detail,this.resourceList=Object.values(this.status.resources).sort(((e,t)=>Number(t.isConnected)-Number(e.isConnected)))},this.onOpen=(e=!1)=>{this.isOpen=!0,this.wasOpenedByUser=e,this.isDismissed=!1},this.onClose=()=>{this.isOpen=!1,this.wasOpenedByUser=!1,this.isDismissed=!1},this.onDismiss=()=>{this.isDismissed||this.status.isHealthy?this.onClose():this.isDismissed=!0},this.onUpdateStatus=()=>{this.status.runAllChecks()},this.onReportStatus=()=>{this.status.reportStabilityToGenesis()},this.onReloadWindow=()=>{location.reload()},this.onDocumentKeydown=e=>{if(!e.defaultPrevented)switch(e.key){case yr.Is.ArrowUp:e.ctrlKey&&e.altKey&&!this.isOpen&&(this.onOpen(!0),e.preventDefault());break;case yr.Is.ArrowDown:e.ctrlKey&&e.altKey&&this.isOpen&&(this.onClose(),e.preventDefault());break;case yr.F9:this.isOpen&&(this.onDismiss(),e.preventDefault())}}}isOpenChanged(){this.updateTemplateClassNames()}isDismissedChanged(){this.updateTemplateClassNames()}modeChanged(){this.$fastController.isConnected&&this.mode===Dr&&ae.warn("SystemHealthOverlay has support for app overlays only right now.")}logLevelChanged(){hr.level=this.logLevel}statusChanged(e,t){this.updateClassNames(),this.$fastController.isConnected&&(!1!==(null==t?void 0:t.isHealthy)||this.isOpen||this.onOpen(),!0===(null==t?void 0:t.isHealthy)&&this.isOpen&&!this.wasOpenedByUser&&this.onClose(),this.startTimeTillNextUpdateCountdown())}updateClassNames(){this.isOnlineClassNames=(0,w.x)(["healthy",this.status.isOnline],["unhealthy",!this.status.isOnline]),this.isHealthyClassNames=(0,w.x)(["healthy",this.status.isHealthy],["unhealthy",!this.status.isHealthy]),this.isSocketHealthyClassNames=(0,w.x)(["healthy",this.isSocketHealthy],["unhealthy",!this.isSocketHealthy]),this.resourcesAllConnectedClassNames=(0,w.x)(["healthy",this.status.resourcesAllConnected],["unhealthy",!this.status.resourcesAllConnected],["hidden",!this.validResourceList]),this.updateTemplateClassNames()}updateTemplateClassNames(){this.templateClassNames=(0,w.x)(["open",this.isOpen],["dismissed",this.isDismissed]),this.containerClassNames=(0,w.x)(this.isHealthyClassNames,["open",this.isOpen],["dismissed",this.isDismissed])}startTimeTillNextUpdateCountdown(){const e=this.status.nextUpdate-Date.now();let t=e,o=100;clearInterval(this.timeTillNextUpdateInterval),this.timeTillNextUpdate={totalMs:e,remainMs:t,remainPercent:o},this.timeTillNextUpdateInterval=setInterval((()=>{t-=1e3,o=Math.floor(t/e*100),this.timeTillNextUpdate={totalMs:e,remainMs:t,remainPercent:o},t<0&&clearInterval(this.timeTillNextUpdateInterval)}),1e3)}connectedCallback(){super.connectedCallback(),this.networkMonitor.create(),this.addEventListeners()}disconnectedCallback(){super.disconnectedCallback(),this.networkMonitor.destroy(),this.removeEventListeners()}get isSocketHealthy(){return this.status.isOnline&&(!this.status.socket.isConfigured||this.status.socket.isConfigured&&this.status.socket.isConnected)}get validResourceList(){var e;return(null===(e=this.resourceList)||void 0===e?void 0:e.length)>0}eventBridge(){var e;return null!==(e=this.config.eventEmitter)&&void 0!==e?e:document}addEventListeners(){this.eventBridge().addEventListener(ur,this.onSystemHealthChanged,!0),document.addEventListener("keydown",this.onDocumentKeydown)}removeEventListeners(){this.eventBridge().removeEventListener(ur,this.onSystemHealthChanged,!0),document.removeEventListener("keydown",this.onDocumentKeydown)}static getCheckmarkTemplate(e){return e?r.html`
|
|
2244
2244
|
<span class="checkmark">✔</span>
|
|
2245
2245
|
`:r.html`
|
|
2246
2246
|
<span class="checkmark">✘</span>
|
|
2247
|
-
`}}(0,x.__decorate)([
|
|
2247
|
+
`}}(0,x.__decorate)([cr],Tr.prototype,"config",void 0),(0,x.__decorate)([br],Tr.prototype,"networkMonitor",void 0),(0,x.__decorate)([r.observable],Tr.prototype,"resourceList",void 0),(0,x.__decorate)([r.observable],Tr.prototype,"isOpen",void 0),(0,x.__decorate)([r.observable],Tr.prototype,"wasOpenedByUser",void 0),(0,x.__decorate)([r.observable],Tr.prototype,"isDismissed",void 0),(0,x.__decorate)([r.observable],Tr.prototype,"templateClassNames",void 0),(0,x.__decorate)([r.observable],Tr.prototype,"containerClassNames",void 0),(0,x.__decorate)([r.observable],Tr.prototype,"isOnlineClassNames",void 0),(0,x.__decorate)([r.observable],Tr.prototype,"isHealthyClassNames",void 0),(0,x.__decorate)([r.observable],Tr.prototype,"isSocketHealthyClassNames",void 0),(0,x.__decorate)([r.observable],Tr.prototype,"resourcesAllConnectedClassNames",void 0),(0,x.__decorate)([r.observable],Tr.prototype,"timeTillNextUpdate",void 0),(0,x.__decorate)([r.observable],Tr.prototype,"saveDataCallback",void 0),(0,x.__decorate)([r.attr],Tr.prototype,"mode",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"log-level",converter:r.nullableNumberConverter})],Tr.prototype,"logLevel",void 0),(0,x.__decorate)([r.observable],Tr.prototype,"status",void 0);const Lr=(e,t)=>r.html`
|
|
2248
2248
|
<template class="${e=>e.templateClassNames}">
|
|
2249
2249
|
<header class="${e=>e.isHealthyClassNames}" part="header">
|
|
2250
|
-
<h1>System ${e=>(0,
|
|
2250
|
+
<h1>System ${e=>(0,Ka.fL)(e.isHealthyClassNames)}</h1>
|
|
2251
2251
|
${(0,r.when)((e=>!e.status.isHealthy),r.html`
|
|
2252
2252
|
<span class="data-warning">Data Validity Unknown</span>
|
|
2253
2253
|
`)}
|
|
@@ -2276,7 +2276,7 @@
|
|
|
2276
2276
|
</header>
|
|
2277
2277
|
<div class="container ${e=>e.containerClassNames}" part="container">
|
|
2278
2278
|
<section class="network-section ${e=>e.isOnlineClassNames}" part="network-section">
|
|
2279
|
-
<h2>Network ${e=>(0,
|
|
2279
|
+
<h2>Network ${e=>(0,Ka.fL)(e.status.isOnline?"online":"offline")}</h2>
|
|
2280
2280
|
<dl class="resource-list">
|
|
2281
2281
|
<div class="resource ${e=>e.isOnlineClassNames}">
|
|
2282
2282
|
<div class="attributes">
|
|
@@ -2296,11 +2296,11 @@
|
|
|
2296
2296
|
`)}
|
|
2297
2297
|
<div class="platform-type">
|
|
2298
2298
|
<dt>Platform Type</dt>
|
|
2299
|
-
<dd>${e=>{var t;return(0,
|
|
2299
|
+
<dd>${e=>{var t;return(0,Ka.fL)(null===(t=e.status.browserInformation.platform)||void 0===t?void 0:t.type)}}</dd>
|
|
2300
2300
|
</div>
|
|
2301
2301
|
<div class="os-name">
|
|
2302
2302
|
<dt>OS Name</dt>
|
|
2303
|
-
<dd>${e=>{var t;return(0,
|
|
2303
|
+
<dd>${e=>{var t;return(0,Ka.fL)(null===(t=e.status.browserInformation.os)||void 0===t?void 0:t.name)}}</dd>
|
|
2304
2304
|
</div>
|
|
2305
2305
|
<div class="os-version">
|
|
2306
2306
|
<dt>OS Version</dt>
|
|
@@ -2310,7 +2310,7 @@
|
|
|
2310
2310
|
<div class="attributes">
|
|
2311
2311
|
<div class="browser-name">
|
|
2312
2312
|
<dt>Browser Name</dt>
|
|
2313
|
-
<dd>${e=>{var t;return(0,
|
|
2313
|
+
<dd>${e=>{var t;return(0,Ka.fL)(null===(t=e.status.browserInformation.browser)||void 0===t?void 0:t.name)}}</dd>
|
|
2314
2314
|
</div>
|
|
2315
2315
|
<div class="browser-version">
|
|
2316
2316
|
<dt>Browser Version</dt>
|
|
@@ -2318,16 +2318,16 @@
|
|
|
2318
2318
|
</div>
|
|
2319
2319
|
<div class="first-updated">
|
|
2320
2320
|
<dt>First updated</dt>
|
|
2321
|
-
<dd>${e=>(0,
|
|
2321
|
+
<dd>${e=>(0,va.zT)(e.status.firstUpdated)}</dd>
|
|
2322
2322
|
</div>
|
|
2323
2323
|
<div class="last-updated">
|
|
2324
2324
|
<dt>Last updated</dt>
|
|
2325
|
-
<dd>${e=>(0,
|
|
2325
|
+
<dd>${e=>(0,va.zT)(e.status.lastUpdated)}</dd>
|
|
2326
2326
|
</div>
|
|
2327
2327
|
${(0,r.when)((e=>!e.status.socket.reconnectionLimitReached),r.html`
|
|
2328
2328
|
<div class="next-update">
|
|
2329
2329
|
<dt>Next update</dt>
|
|
2330
|
-
<dd>${e=>(0,
|
|
2330
|
+
<dd>${e=>(0,va.zT)(e.status.nextUpdate)}</dd>
|
|
2331
2331
|
</div>
|
|
2332
2332
|
<div class="next-update-progress">
|
|
2333
2333
|
<dt></dt>
|
|
@@ -2340,13 +2340,13 @@
|
|
|
2340
2340
|
`)}
|
|
2341
2341
|
</div>
|
|
2342
2342
|
<div class="controls">
|
|
2343
|
-
${e=>
|
|
2343
|
+
${e=>Tr.getCheckmarkTemplate(e.status.isOnline)}
|
|
2344
2344
|
</div>
|
|
2345
2345
|
</div>
|
|
2346
2346
|
</dl>
|
|
2347
2347
|
</section>
|
|
2348
2348
|
<section class="socket-section ${e=>e.isSocketHealthyClassNames}" part="socket-section">
|
|
2349
|
-
<h2>WebSocket ${e=>(0,
|
|
2349
|
+
<h2>WebSocket ${e=>(0,Ka.fL)(e.isSocketHealthyClassNames)}</h2>
|
|
2350
2350
|
<dl class="resource-list">
|
|
2351
2351
|
<div class="resource ${e=>e.isSocketHealthyClassNames}">
|
|
2352
2352
|
<div class="attributes">
|
|
@@ -2386,7 +2386,7 @@
|
|
|
2386
2386
|
</div>
|
|
2387
2387
|
</div>
|
|
2388
2388
|
<div class="controls">
|
|
2389
|
-
${e=>
|
|
2389
|
+
${e=>Tr.getCheckmarkTemplate(e.isSocketHealthy)}
|
|
2390
2390
|
</div>
|
|
2391
2391
|
</div>
|
|
2392
2392
|
</dl>
|
|
@@ -2395,7 +2395,7 @@
|
|
|
2395
2395
|
class="resource-section ${e=>e.resourcesAllConnectedClassNames}"
|
|
2396
2396
|
part="resource-section"
|
|
2397
2397
|
>
|
|
2398
|
-
<h2>Resources ${e=>(0,
|
|
2398
|
+
<h2>Resources ${e=>(0,Ka.fL)(e.resourcesAllConnectedClassNames)}</h2>
|
|
2399
2399
|
<dl class="resource-list">
|
|
2400
2400
|
${(0,r.repeat)((e=>e.resourceList),r.html`
|
|
2401
2401
|
<div class="resource ${e=>e.isConnected?"healthy":"unhealthy"}">
|
|
@@ -2410,7 +2410,7 @@
|
|
|
2410
2410
|
</div>
|
|
2411
2411
|
<div class="last-checked">
|
|
2412
2412
|
<dt>Checked</dt>
|
|
2413
|
-
<dd>${e=>(0,
|
|
2413
|
+
<dd>${e=>(0,va.zT)(e.lastUpdated)}</dd>
|
|
2414
2414
|
</div>
|
|
2415
2415
|
<div class="subscriptions">
|
|
2416
2416
|
<dt>Subscriptions</dt>
|
|
@@ -2422,7 +2422,7 @@
|
|
|
2422
2422
|
</div>
|
|
2423
2423
|
</div>
|
|
2424
2424
|
<div class="controls">
|
|
2425
|
-
${e=>
|
|
2425
|
+
${e=>Tr.getCheckmarkTemplate(e.isConnected)}
|
|
2426
2426
|
</div>
|
|
2427
2427
|
</div>
|
|
2428
2428
|
`)}
|
|
@@ -2430,7 +2430,7 @@
|
|
|
2430
2430
|
</section>
|
|
2431
2431
|
</div>
|
|
2432
2432
|
</template>
|
|
2433
|
-
`,
|
|
2433
|
+
`,Er=(e,t)=>r.css`
|
|
2434
2434
|
:host {
|
|
2435
2435
|
--font-family: Menlo, Consolas, monospace;
|
|
2436
2436
|
|
|
@@ -2701,7 +2701,7 @@
|
|
|
2701
2701
|
padding: 0.2em 0.5em;
|
|
2702
2702
|
background-color: var(--color-unhealthy-opacity-20);
|
|
2703
2703
|
}
|
|
2704
|
-
`,
|
|
2704
|
+
`,Ar=void 0,Nr={},Rr=Tr.compose(Object.assign({baseName:"system-health-overlay",template:Lr,styles:Er,shadowOptions:Ar},Nr));var Ir=o(4934);const Mr={toView:e=>JSON.stringify(e),fromView:e=>null==e?e:JSON.parse(e)};class Hr 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,Ir.n4)(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],Hr.prototype,"selector",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],Hr.prototype,"show",void 0),(0,x.__decorate)([r.attr],Hr.prototype,"event",void 0),(0,x.__decorate)([r.attr],Hr.prototype,"placement",void 0),(0,x.__decorate)([(0,r.attr)({converter:Mr})],Hr.prototype,"offset",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],Hr.prototype,"flip",void 0);const Pr=r.css`
|
|
2705
2705
|
:host {
|
|
2706
2706
|
display: none;
|
|
2707
2707
|
inset: unset !important;
|
|
@@ -2711,17 +2711,17 @@
|
|
|
2711
2711
|
:host([show]) {
|
|
2712
2712
|
display: block;
|
|
2713
2713
|
}
|
|
2714
|
-
`,
|
|
2714
|
+
`,Br=r.html`
|
|
2715
2715
|
<template>
|
|
2716
2716
|
<slot></slot>
|
|
2717
2717
|
</template>
|
|
2718
|
-
`,
|
|
2718
|
+
`,zr=Hr.compose({baseName:"popper",styles:Pr,template:Br}),jr=(e,t)=>r.css`
|
|
2719
2719
|
${(0,s.progressRingStyles)(e,t)}
|
|
2720
|
-
`,
|
|
2720
|
+
`,Vr=(e,t)=>(0,n.progressRingTemplate)(e,t);class Gr extends s.Progress{}const Ur=void 0,Yr={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 '},Wr=Gr.compose(Object.assign({baseName:"progress-ring",template:Vr,styles:jr,shadowOptions:Ur},Yr)),qr=(e,t)=>r.css`
|
|
2721
2721
|
${(0,s.radioStyles)(e,t)}
|
|
2722
|
-
`,
|
|
2722
|
+
`,Kr=(e,t)=>(0,n.radioTemplate)(e,t);class Xr extends s.Radio{}const Zr=void 0,Qr={checkedIndicator:'\n <div part="checked-indicator" class="checked-indicator"></div>\n '},Jr=Xr.compose(Object.assign({baseName:"radio",template:Kr,styles:qr,shadowOptions:Zr},Qr)),el=(e,t)=>r.css`
|
|
2723
2723
|
${(0,s.radioGroupStyles)(e,t)}
|
|
2724
|
-
`,
|
|
2724
|
+
`,tl=(e,t)=>(0,n.radioGroupTemplate)(e,t);class ol extends s.RadioGroup{}const il=void 0,al={},nl=ol.compose(Object.assign({baseName:"radio-group",template:tl,styles:el,shadowOptions:il},al)),sl=r.css`
|
|
2725
2725
|
.search-bar-combobox {
|
|
2726
2726
|
width: 100%;
|
|
2727
2727
|
min-width: auto;
|
|
@@ -2814,7 +2814,7 @@
|
|
|
2814
2814
|
.close-icon {
|
|
2815
2815
|
color: var(--accent-fill-rest);
|
|
2816
2816
|
}
|
|
2817
|
-
`,
|
|
2817
|
+
`,rl=(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',ll=()=>'\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>',dl=e=>r.html`
|
|
2818
2818
|
|
|
2819
2819
|
<label part="label" for="control" data-test-id="label" class=${e=>{var t;return(0,w.x)("label",["label-hidden",!(null===(t=e.defaultSlottedNodes)||void 0===t?void 0:t.length)])}}
|
|
2820
2820
|
>
|
|
@@ -2893,10 +2893,10 @@
|
|
|
2893
2893
|
<${e}-tooltip class="tooltip" anchor="search-clear-button">
|
|
2894
2894
|
Clear Search Terms
|
|
2895
2895
|
</${e}-tooltip>
|
|
2896
|
-
`,
|
|
2897
|
-
${e=>
|
|
2898
|
-
`,
|
|
2899
|
-
${
|
|
2896
|
+
`,cl=r.html`
|
|
2897
|
+
${e=>dl(F(e))}
|
|
2898
|
+
`,ul=10,pl=3,hl=1,ml=(e,t)=>(new yt).withExpression((new Ct).withField(e).withValue(t).withSerialiser(St).build()).build();class vl extends n.FoundationElement{constructor(){super(...arguments),this.searchTerm="",this.appearance="neutral",this.minlength=pl,this.position=ze.BELOW,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,a;const n=t.value,s=this.searchTerm.trim();e.push({field:n,term:s,label:(null===(o=this.options.find((e=>e.field===n)))||void 0===o?void 0:o.label(s))||t.text,createCriteria:null===(i=this.options.find((e=>e.field===n)))||void 0===i?void 0:i.createCriteria,resourceType:null===(a=this.options.find((e=>e.field===n)))||void 0===a?void 0:a.resourceType})})),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)}),ul)}))}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],vl.prototype,"defaultSlottedNodes",void 0),(0,x.__decorate)([r.observable],vl.prototype,"options",void 0),(0,x.__decorate)([r.observable],vl.prototype,"searchTerm",void 0),(0,x.__decorate)([r.attr],vl.prototype,"appearance",void 0),(0,x.__decorate)([r.attr],vl.prototype,"minlength",void 0),(0,x.__decorate)([r.attr],vl.prototype,"position",void 0),(0,x.__decorate)([r.attr],vl.prototype,"placeholder",void 0),(0,x.__decorate)([r.attr],vl.prototype,"disabled",void 0),(0,x.__decorate)([r.observable],vl.prototype,"loading",void 0),(0,x.__decorate)([r.observable],vl.prototype,"selectedOptions",void 0),(0,x.__decorate)([r.observable],vl.prototype,"filteredOptions",void 0);const gl=void 0,fl={},bl=vl.compose(Object.assign({baseName:"search-bar",template:cl,styles:sl,shadowOptions:gl},fl)),yl=(e,t)=>r.css`
|
|
2899
|
+
${Dt(e,t)}
|
|
2900
2900
|
.control {
|
|
2901
2901
|
width: auto;
|
|
2902
2902
|
padding-left: calc(${s.designUnit} * 1px);
|
|
@@ -2917,7 +2917,7 @@
|
|
|
2917
2917
|
min-width: 150px;
|
|
2918
2918
|
max-width: 169px;
|
|
2919
2919
|
}
|
|
2920
|
-
`,
|
|
2920
|
+
`,xl=(e,t)=>r.html`
|
|
2921
2921
|
<template
|
|
2922
2922
|
aria-disabled="${e=>e.ariaDisabled}"
|
|
2923
2923
|
autocomplete="${e=>e.autocomplete}"
|
|
@@ -2969,7 +2969,7 @@
|
|
|
2969
2969
|
></slot>
|
|
2970
2970
|
</div>
|
|
2971
2971
|
</template>
|
|
2972
|
-
`;class
|
|
2972
|
+
`;class wl extends s.Combobox{constructor(){super(...arguments),this.minlength=hl,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],wl.prototype,"minlength",void 0);const $l={delegatesFocus:!0,mode:"open"},Sl={},Cl=wl.compose(Object.assign({baseName:"search-bar-combobox",template:xl,styles:yl,shadowOptions:$l},Sl)),kl=(e,t)=>r.css`
|
|
2973
2973
|
${(0,s.radioGroupStyles)(e,t)}
|
|
2974
2974
|
::slotted(foundation-segmented-item:first-of-type) {
|
|
2975
2975
|
border-radius: calc(var(--control-corner-radius) * 1px) 0 0
|
|
@@ -2982,7 +2982,7 @@
|
|
|
2982
2982
|
calc(var(--control-corner-radius) * 1px) 0;
|
|
2983
2983
|
border-left-width: 0;
|
|
2984
2984
|
}
|
|
2985
|
-
`,
|
|
2985
|
+
`,Fl=(e,t)=>(0,n.radioGroupTemplate)(e,t);class _l extends n.RadioGroup{valueChanged(){void 0===this.value&&this.slottedRadioButtons&&this.slottedRadioButtons.forEach((e=>{e.checked=!1})),super.valueChanged()}}const Ol=void 0,Dl={},Tl=_l.compose(Object.assign({baseName:"segmented-control",template:Fl,styles:kl,shadowOptions:Ol},Dl)),Ll=(e,t)=>r.css`
|
|
2986
2986
|
${(0,s.radioStyles)(e,t)}
|
|
2987
2987
|
:host {
|
|
2988
2988
|
padding: calc(var(--design-unit) * 2px) calc(var(--design-unit) * 4px);
|
|
@@ -2993,7 +2993,7 @@
|
|
|
2993
2993
|
:host([aria-checked='true']) {
|
|
2994
2994
|
background: var(--accent-foreground-rest);
|
|
2995
2995
|
}
|
|
2996
|
-
`,
|
|
2996
|
+
`,El=(e,t)=>r.html`
|
|
2997
2997
|
<template
|
|
2998
2998
|
role="radio"
|
|
2999
2999
|
aria-checked="${e=>e.checked}"
|
|
@@ -3007,21 +3007,21 @@
|
|
|
3007
3007
|
<slot></slot>
|
|
3008
3008
|
</span>
|
|
3009
3009
|
</template>
|
|
3010
|
-
`;class
|
|
3010
|
+
`;class Al extends s.Radio{}const Nl=void 0,Rl={},Il=Al.compose(Object.assign({baseName:"segmented-item",template:El,styles:Ll,shadowOptions:Nl},Rl)),Ml=(e,t)=>r.css`
|
|
3011
3011
|
${(0,s.selectStyles)(e,t)}
|
|
3012
|
-
`,
|
|
3012
|
+
`,Hl=(e,t)=>(0,n.selectTemplate)(e,t);class Pl extends s.Select{}const Bl=void 0,zl={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 '},jl=Pl.compose(Object.assign({baseName:"select",template:Hl,styles:Ml,shadowOptions:Bl},zl)),Vl=(e,t)=>r.css`
|
|
3013
3013
|
${(0,s.skeletonStyles)(e,t)}
|
|
3014
|
-
`,
|
|
3014
|
+
`,Gl=(e,t)=>(0,n.skeletonTemplate)(e,t);class Ul extends s.Skeleton{}const Yl=void 0,Wl={},ql=Ul.compose(Object.assign({baseName:"skeleton",template:Gl,styles:Vl,shadowOptions:Yl},Wl)),Kl=(e,t)=>r.css`
|
|
3015
3015
|
${(0,s.sliderStyles)(e,t)}
|
|
3016
3016
|
.track-progress {
|
|
3017
3017
|
background-color: var(--accent-fill-rest);
|
|
3018
3018
|
border-radius: calc(var(--control-corner-radius) * 1px);
|
|
3019
3019
|
}
|
|
3020
|
-
`;var
|
|
3020
|
+
`;var Xl=o(17733),Zl=o(54120);const Ql=(e,t)=>r.html`
|
|
3021
3021
|
<template
|
|
3022
3022
|
role="slider"
|
|
3023
3023
|
class="${e=>e.readOnly?"readonly":""}
|
|
3024
|
-
${e=>e.orientation||
|
|
3024
|
+
${e=>e.orientation||Xl.t.horizontal}"
|
|
3025
3025
|
tabindex="${e=>e.disabled?null:0}"
|
|
3026
3026
|
aria-valuetext="${e=>e.valueTextFormatter(e.value)}"
|
|
3027
3027
|
aria-valuenow="${e=>e.value}"
|
|
@@ -3036,7 +3036,7 @@
|
|
|
3036
3036
|
<div ${(0,r.ref)("track")} part="track-container" class="track">
|
|
3037
3037
|
<div
|
|
3038
3038
|
class="track-progress"
|
|
3039
|
-
style="${e=>{const t=1-(0,
|
|
3039
|
+
style="${e=>{const t=1-(0,Zl.AB)(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;`}}"
|
|
3040
3040
|
></div>
|
|
3041
3041
|
</div>
|
|
3042
3042
|
<slot></slot>
|
|
@@ -3050,9 +3050,9 @@
|
|
|
3050
3050
|
</div>
|
|
3051
3051
|
</div>
|
|
3052
3052
|
</template>
|
|
3053
|
-
`;class
|
|
3053
|
+
`;class Jl extends s.Slider{}const ed=void 0,td={thumb:'\n <div class="thumb-cursor"></div>\n '},od=Jl.compose(Object.assign({baseName:"slider",template:Ql,styles:Kl,shadowOptions:ed},td)),id=(e,t)=>r.css`
|
|
3054
3054
|
${(0,s.sliderLabelStyles)(e,t)}
|
|
3055
|
-
`,
|
|
3055
|
+
`,ad=(e,t)=>(0,n.sliderLabelTemplate)(e,t);class nd extends s.SliderLabel{}const sd=void 0,rd={},ld=nd.compose(Object.assign({baseName:"slider-label",template:ad,styles:id,shadowOptions:sd},rd)),dd="default",cd={DEFAULT:dd,ERROR:"error",SUCCESS:"success"},ud=1e4,pd={DISMISS:"dismiss",AUTO_DISMISS:"autoDismiss"},hd=r.css`
|
|
3056
3056
|
@keyframes append-from-left-animate {
|
|
3057
3057
|
from {
|
|
3058
3058
|
transform: translateX(100%);
|
|
@@ -3172,7 +3172,7 @@
|
|
|
3172
3172
|
flex: 1;
|
|
3173
3173
|
overflow: hidden;
|
|
3174
3174
|
}
|
|
3175
|
-
`,
|
|
3175
|
+
`,md=e=>r.html`
|
|
3176
3176
|
<div part="snackbar" class="snackbar ${e=>e.deleteAnimation}" ${(0,r.ref)("snackbar")}>
|
|
3177
3177
|
<div part="content" class="content">
|
|
3178
3178
|
<slot name="content">
|
|
@@ -3195,10 +3195,10 @@
|
|
|
3195
3195
|
</div>
|
|
3196
3196
|
`)}
|
|
3197
3197
|
</div>
|
|
3198
|
-
`,
|
|
3199
|
-
${e=>
|
|
3200
|
-
`,
|
|
3201
|
-
${
|
|
3198
|
+
`,vd=r.html`
|
|
3199
|
+
${e=>md(F(e))}
|
|
3200
|
+
`,gd={mode:"open",delegatesFocus:!0};class fd extends n.FoundationElement{constructor(){super(...arguments),this.deleteAnimation="",this.closeTimeout=ud,this.autoClose=!0,this.type=dd,this.dismissEventListener=this.handleDissmis.bind(this)}autoCloseChanged(){this.autoClose&&(this.timeoutRef=setTimeout((()=>{this.handleDissmis(!0)}),this.closeTimeout)),!this.autoClose&&this.timeoutRef&&clearTimeout(this.timeoutRef)}connectedCallback(){super.connectedCallback(),this.addEventListener(pd.DISMISS,this.dismissEventListener)}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:dd}notificationChanged(e,t){var o,i,a,n,s,r,l,d,c;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:dd,this.autoClose=null===(r=null===(s=null===(n=null==t?void 0:t.config)||void 0===n?void 0:n.snackbar)||void 0===s?void 0:s.autoClose)||void 0===r||r,this.closeTimeout=null!==(c=null===(d=null===(l=null==t?void 0:t.config)||void 0===l?void 0:l.snackbar)||void 0===d?void 0:d.closeTimeout)&&void 0!==c?c:ud}handleDissmis(e=!1){this.deleteAnimation="snackbar-delete",this.snackbar.onanimationend=()=>{this.dismiss(),e&&this.dispatchEvent(new CustomEvent(pd.AUTO_DISMISS,{bubbles:!0,composed:!0,detail:this.identifier}))}}dismiss(){this.remove(),this.timeoutRef&&clearTimeout(this.timeoutRef)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(pd.DISMISS,this.dismissEventListener),this.timeoutRef&&clearTimeout(this.timeoutRef)}}(0,x.__decorate)([r.observable],fd.prototype,"error",void 0),(0,x.__decorate)([r.observable],fd.prototype,"notification",void 0),(0,x.__decorate)([r.observable],fd.prototype,"deleteAnimation",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"identifier"})],fd.prototype,"identifier",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"close-timeout"})],fd.prototype,"closeTimeout",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"auto-close",mode:"boolean"})],fd.prototype,"autoClose",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"type"})],fd.prototype,"type",void 0);const bd=fd.compose({baseName:"snackbar",styles:hd,template:vd,shadowOptions:gd}),yd=(e,t)=>r.css`
|
|
3201
|
+
${Zn()}
|
|
3202
3202
|
|
|
3203
3203
|
.fa-stack {
|
|
3204
3204
|
display: inline-block;
|
|
@@ -3223,14 +3223,14 @@
|
|
|
3223
3223
|
.fa-stack-1x {
|
|
3224
3224
|
z-index: 1;
|
|
3225
3225
|
}
|
|
3226
|
-
`,
|
|
3226
|
+
`,xd=r.html`
|
|
3227
3227
|
<span
|
|
3228
3228
|
class=${e=>`fa-stack fa-${e.size}`}
|
|
3229
3229
|
style=${e=>`vertical-align: ${e["vertical-align"]};`}
|
|
3230
3230
|
>
|
|
3231
3231
|
<slot></slot>
|
|
3232
3232
|
</span>
|
|
3233
|
-
`;class
|
|
3233
|
+
`;class wd extends n.FoundationElement{constructor(){super(...arguments),this.size=is,this["vertical-align"]="baseline"}}(0,x.__decorate)([r.attr],wd.prototype,"size",void 0),(0,x.__decorate)([r.attr],wd.prototype,"vertical-align",void 0);const $d=wd.compose({baseName:"stacking-icons",template:xd,styles:yd}),Sd=r.css`
|
|
3234
3234
|
:host {
|
|
3235
3235
|
display: flex;
|
|
3236
3236
|
height: 100%;
|
|
@@ -3316,7 +3316,7 @@
|
|
|
3316
3316
|
max-width: 100%;
|
|
3317
3317
|
max-height: 70px;
|
|
3318
3318
|
}
|
|
3319
|
-
|
|
3319
|
+
`,Cd=e=>r.html`
|
|
3320
3320
|
<${e}-card class="stepper-tab" part="stepper-tab" role="stepper-tab" data-test-id="stepper-tab">
|
|
3321
3321
|
<div class="stepper-tab-menu" part="stepper-tab-menu">
|
|
3322
3322
|
<slot name="tab" ${(0,r.slotted)("tabs")}></slot>
|
|
@@ -3344,9 +3344,9 @@
|
|
|
3344
3344
|
</slot>
|
|
3345
3345
|
</div>
|
|
3346
3346
|
</${e}-card>
|
|
3347
|
-
`,
|
|
3348
|
-
${e
|
|
3349
|
-
`;class
|
|
3347
|
+
`,kd=r.html`
|
|
3348
|
+
${e=>Cd(F(e))}
|
|
3349
|
+
`;class Fd 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(){var e;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"));const t=this.tabs.length-1,o=this.activeTabIndex===t;this.hideSubmitButton&&o&&(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()):(this.tabs[t].completed=!1,this.getCompletedTabs())}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,Ka.NF)()}`}))}getTabPanelIds(){return this.tabpanels.map((e=>{var t;return null!==(t=e.getAttribute("id"))&&void 0!==t?t:`panel-${(0,Ka.NF)()}`}))}}(0,x.__decorate)([(0,r.attr)({attribute:"hide-submit-button",mode:"boolean"})],Fd.prototype,"hideSubmitButton",void 0),(0,x.__decorate)([r.attr],Fd.prototype,"orientation",void 0),(0,x.__decorate)([r.attr],Fd.prototype,"activeid",void 0),(0,x.__decorate)([r.observable],Fd.prototype,"tabs",void 0),(0,x.__decorate)([r.observable],Fd.prototype,"tabpanels",void 0),(0,x.__decorate)([r.observable],Fd.prototype,"validation",void 0),(0,x.__decorate)([r.observable],Fd.prototype,"progressValue",void 0),(0,x.__decorate)([r.observable],Fd.prototype,"activeTabIndex",void 0),(0,x.__decorate)([r.volatile],Fd.prototype,"disabledPreviousStep",null),(0,x.__decorate)([r.volatile],Fd.prototype,"isLastStep",null),(0,x.__decorate)([r.volatile],Fd.prototype,"islastStepValid",null);const _d=void 0,Od={},Dd=Fd.compose(Object.assign({baseName:"stepper",template:kd,styles:Sd,shadowOptions:_d},Od)),Td=(e,t)=>r.css`
|
|
3350
3350
|
.tree-item {
|
|
3351
3351
|
cursor: default;
|
|
3352
3352
|
}
|
|
@@ -3423,8 +3423,8 @@
|
|
|
3423
3423
|
:host([error]) .step-title {
|
|
3424
3424
|
color: #f14376;
|
|
3425
3425
|
}
|
|
3426
|
-
`;var
|
|
3427
|
-
${(0,
|
|
3426
|
+
`;var Ld=o(70997);const Ed=e=>r.html`
|
|
3427
|
+
${(0,Ld.q)((e=>e.orientation===n.TabsOrientation.vertical),r.html`
|
|
3428
3428
|
<${e}-tree-item ${(0,r.ref)("treeItem")} class="tree-item">
|
|
3429
3429
|
${(0,r.when)((e=>e.completed),r.html`
|
|
3430
3430
|
<${e}-icon
|
|
@@ -3458,13 +3458,13 @@
|
|
|
3458
3458
|
`)}
|
|
3459
3459
|
</div>
|
|
3460
3460
|
`)}
|
|
3461
|
-
`,
|
|
3462
|
-
${e=>
|
|
3463
|
-
`;class
|
|
3461
|
+
`,Ad=r.html`
|
|
3462
|
+
${e=>Ed(F(e))}
|
|
3463
|
+
`;class Nd 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],Nd.prototype,"slot",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],Nd.prototype,"selected",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],Nd.prototype,"completed",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],Nd.prototype,"error",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],Nd.prototype,"isLast",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"tab-position"})],Nd.prototype,"tabPosition",void 0),(0,x.__decorate)([r.attr],Nd.prototype,"orientation",void 0);const Rd=void 0,Id={},Md=Nd.compose(Object.assign({baseName:"stepper-tab",template:Ad,styles:Td,shadowOptions:Rd},Id)),Hd=()=>r.html`
|
|
3464
3464
|
<template slot="tab-panel" role="stepper-tab-panel">
|
|
3465
3465
|
<slot></slot>
|
|
3466
3466
|
</template>
|
|
3467
|
-
`;class
|
|
3467
|
+
`;class Pd extends n.FoundationElement{}const Bd=void 0,zd={},jd=Pd.compose(Object.assign({baseName:"stepper-tab-panel",template:Hd,shadowOptions:Bd},zd)),Vd=(e,t)=>r.css`
|
|
3468
3468
|
${(0,s.switchStyles)(e,t)}
|
|
3469
3469
|
.checked-indicator {
|
|
3470
3470
|
transform: scale(1.3);
|
|
@@ -3477,38 +3477,38 @@
|
|
|
3477
3477
|
.checked-indicator {
|
|
3478
3478
|
border-radius: calc(var(--control-corner-radius) * 2px);
|
|
3479
3479
|
}
|
|
3480
|
-
`,
|
|
3480
|
+
`,Gd=(e,t)=>(0,n.switchTemplate)(e,t);class Ud extends s.Switch{}const Yd=void 0,Wd={switch:'<div class="checked-indicator" part="checked-indicator"></div>'},qd=Ud.compose(Object.assign({baseName:"switch",template:Gd,styles:Vd,shadowOptions:Yd},Wd)),Kd=(e,t)=>r.css`
|
|
3481
3481
|
${(0,s.tabStyles)(e,t)}
|
|
3482
3482
|
|
|
3483
3483
|
:host {
|
|
3484
3484
|
user-select: none;
|
|
3485
3485
|
}
|
|
3486
|
-
`,
|
|
3486
|
+
`,Xd=(e,t)=>(0,n.tabTemplate)(e,t);class Zd extends s.Tab{}const Qd=void 0,Jd={},ec=Zd.compose(Object.assign({baseName:"tab",template:Xd,styles:Kd,shadowOptions:Qd},Jd)),tc=(e,t)=>r.css`
|
|
3487
3487
|
${(0,s.tabPanelStyles)(e,t)}
|
|
3488
3488
|
|
|
3489
3489
|
:host {
|
|
3490
3490
|
height: 100%;
|
|
3491
3491
|
padding: 0;
|
|
3492
3492
|
}
|
|
3493
|
-
`,
|
|
3493
|
+
`,oc=(e,t)=>(0,n.tabPanelTemplate)(e,t);class ic extends s.TabPanel{}const ac=void 0,nc={},sc=ic.compose(Object.assign({baseName:"tab-panel",template:oc,styles:tc,shadowOptions:ac},nc)),rc=(e,t)=>r.css`
|
|
3494
3494
|
${(0,s.tabsStyles)(e,t)}
|
|
3495
3495
|
|
|
3496
3496
|
:host {
|
|
3497
3497
|
height: 100%;
|
|
3498
3498
|
width: 100%;
|
|
3499
3499
|
}
|
|
3500
|
-
`,
|
|
3500
|
+
`,lc=(e,t)=>(0,n.tabsTemplate)(e,t);class dc extends s.Tabs{}const cc=void 0,uc={},pc=dc.compose(Object.assign({baseName:"tabs",template:lc,styles:rc,shadowOptions:cc},uc)),hc=(e,t)=>r.css`
|
|
3501
3501
|
${(0,s.textAreaStyles)(e,t)}
|
|
3502
3502
|
:host .control {
|
|
3503
3503
|
padding: calc(var(--design-unit) * 3px);
|
|
3504
3504
|
}
|
|
3505
|
-
`,
|
|
3505
|
+
`,mc=(e,t)=>(0,n.textAreaTemplate)(e,t);class vc extends s.TextArea{}const gc=void 0,fc={},bc=vc.compose(Object.assign({baseName:"text-area",template:mc,styles:hc,shadowOptions:gc},fc)),{create:yc}=n.DesignToken,xc=yc("active-color-scheme").withDefault((e=>s.baseLayerLuminance.getValueFor(e)===s.StandardLuminance.LightMode?"light":"dark")),wc=(e,t)=>r.css`
|
|
3506
3506
|
${(0,s.textFieldStyles)(e,t)}
|
|
3507
3507
|
|
|
3508
3508
|
input {
|
|
3509
|
-
color-scheme: ${
|
|
3509
|
+
color-scheme: ${xc};
|
|
3510
3510
|
}
|
|
3511
|
-
|
|
3511
|
+
`,$c=(e,t)=>r.html`
|
|
3512
3512
|
<template
|
|
3513
3513
|
class="
|
|
3514
3514
|
${e=>e.readOnly?"readonly":""}
|
|
@@ -3570,7 +3570,7 @@
|
|
|
3570
3570
|
${(0,n.endSlotTemplate)(e,t)}
|
|
3571
3571
|
</div>
|
|
3572
3572
|
</template>
|
|
3573
|
-
`;class
|
|
3573
|
+
`;class Sc 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],Sc.prototype,"autocomplete",void 0),(0,x.__decorate)([r.attr],Sc.prototype,"autocapitalize",void 0),(0,x.__decorate)([r.attr],Sc.prototype,"step",void 0);const Cc={mode:"open",delegatesFocus:!0},kc={},Fc=Sc.compose(Object.assign({baseName:"text-field",template:$c,styles:wc,shadowOptions:Cc},kc)),_c=r.css`
|
|
3574
3574
|
@keyframes append-animate {
|
|
3575
3575
|
from {
|
|
3576
3576
|
transform: translateX(100%);
|
|
@@ -3671,12 +3671,12 @@
|
|
|
3671
3671
|
.close-icon svg {
|
|
3672
3672
|
cursor: pointer;
|
|
3673
3673
|
}
|
|
3674
|
-
`,
|
|
3674
|
+
`,Oc=r.html`
|
|
3675
3675
|
<div class="toast ${e=>e.deleteAnimation}" ${(0,r.ref)("toast")}>
|
|
3676
3676
|
<div class="content-wrapper">
|
|
3677
3677
|
<div part="top" class="top">
|
|
3678
3678
|
<slot name="top"></slot>
|
|
3679
|
-
<div class="close-icon" @click=${e=>e.close()}>${
|
|
3679
|
+
<div class="close-icon" @click=${e=>e.close()}>${gi()}</div>
|
|
3680
3680
|
</div>
|
|
3681
3681
|
<div part="content" class="content">
|
|
3682
3682
|
<slot name="content"></slot>
|
|
@@ -3689,11 +3689,11 @@
|
|
|
3689
3689
|
</div>
|
|
3690
3690
|
</div>
|
|
3691
3691
|
</div>
|
|
3692
|
-
`,
|
|
3692
|
+
`,Dc={mode:"open",delegatesFocus:!0},Tc={};class Lc 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],Lc.prototype,"deleteAnimation",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"close-timeout"})],Lc.prototype,"closeTimeout",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"auto-close"})],Lc.prototype,"autoClose",void 0);const Ec=Lc.compose(Object.assign({baseName:"toast",styles:_c,template:Oc,shadowOptions:Dc},Tc)),Ac=(e,t)=>r.css`
|
|
3693
3693
|
${(0,s.toolbarStyles)(e,t)}
|
|
3694
|
-
`,
|
|
3694
|
+
`,Nc=(e,t)=>(0,n.toolbarTemplate)(e,t);class Rc extends s.Toolbar{}const Ic=void 0,Mc={},Hc=Rc.compose(Object.assign({baseName:"toolbar",template:Nc,styles:Ac,shadowOptions:Ic},Mc)),Pc=(e,t)=>r.css`
|
|
3695
3695
|
${(0,s.tooltipStyles)(e,t)}
|
|
3696
|
-
`,
|
|
3696
|
+
`,Bc=(e,t)=>(0,n.tooltipTemplate)(e,t);class zc extends s.Tooltip{}const jc=void 0,Vc={},Gc=zc.compose(Object.assign({baseName:"tooltip",template:Bc,styles:Pc,shadowOptions:jc},Vc)),Uc=(e,t)=>r.css`
|
|
3697
3697
|
${(0,s.treeItemStyles)(e,t)}
|
|
3698
3698
|
:host {
|
|
3699
3699
|
--focus-stroke-width: 0;
|
|
@@ -3710,9 +3710,9 @@
|
|
|
3710
3710
|
.positioning-region {
|
|
3711
3711
|
height: calc(((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) * 1px);
|
|
3712
3712
|
}
|
|
3713
|
-
`,
|
|
3713
|
+
`,Yc=(e,t)=>(0,n.treeItemTemplate)(e,t);class Wc extends s.TreeItem{}const qc=void 0,Kc={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>'},Xc=Wc.compose(Object.assign({baseName:"tree-item",template:Yc,styles:Uc,shadowOptions:qc},Kc)),Zc=(e,t)=>r.css`
|
|
3714
3714
|
${(0,s.treeViewStyles)(e,t)}
|
|
3715
|
-
`,
|
|
3715
|
+
`,Qc=(e,t)=>(0,n.treeViewTemplate)(e,t);class Jc extends n.TreeView{}const eu=void 0,tu={},ou=Jc.compose(Object.assign({baseName:"tree-view",template:Qc,styles:Zc,shadowOptions:eu},tu)),iu=(e,t)=>r.css`
|
|
3716
3716
|
.container {
|
|
3717
3717
|
position: relative;
|
|
3718
3718
|
width: 100%;
|
|
@@ -3732,7 +3732,7 @@
|
|
|
3732
3732
|
overflow: hidden;
|
|
3733
3733
|
text-overflow: ellipsis;
|
|
3734
3734
|
}
|
|
3735
|
-
`,
|
|
3735
|
+
`,au=e=>r.html`
|
|
3736
3736
|
<div class="container" value=${e=>e.value}>
|
|
3737
3737
|
<${e}-text-field
|
|
3738
3738
|
class="url-input"
|
|
@@ -3747,11 +3747,11 @@
|
|
|
3747
3747
|
<a class="url-input-link" href=${e=>e.value} target="_blank">${e=>e.value}</a>
|
|
3748
3748
|
`)}
|
|
3749
3749
|
</div>
|
|
3750
|
-
`,
|
|
3751
|
-
${e=>
|
|
3752
|
-
`,
|
|
3750
|
+
`,nu=r.html`
|
|
3751
|
+
${e=>au(F(e))}
|
|
3752
|
+
`,su=void 0,ru={};class lu 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],lu.prototype,"value",void 0),(0,x.__decorate)([r.observable],lu.prototype,"focused",void 0);const du=lu.compose(Object.assign({baseName:"url-input",template:nu,styles:iu,shadowOptions:su},ru)),cu={foundationAccordion:h,foundationAccordionItem:y,foundationActionsMenu:L,foundationAnchor:M,foundationAnchoredRegion:V,foundationAvatar:X,foundationBadge:oe,foundationBanner:ce,foundationBreadcrumbItem:$e,foundationBreadcrumb:ge,foundationButton:Oe,foundationCalendar:Ne,foundationCard:Be,foundationCategorizedMultiselect:Xe,foundationCheckbox:ot,foundationCombobox:It,foundationConnectionIndicator:zt,foundationDataGrid:Wt,foundationDataGridCell:Qt,foundationDataGridRow:io,foundationDatePicker:Co,foundationDesignSystemProvider:hi,foundationDialog:Si,foundationDisclosure:Di,foundationDivider:Ri,foundationDropdownMenu:ji,foundationErrorBoundary:ra,foundationErrorBanner:Wi,foundationErrorDialog:ha,foundationFileUpload:Ha,foundationFilter:qa,foundationFilterBar:an,foundationFlexLayout:pn,foundationFlipper:bn,foundationFlyout:Fn,foundationGridLayout:Rn,foundationGridLayoutItem:Bn,foundationHorizontalScroll:Yn,foundationIcon:ss,foundationListbox:ps,foundationListboxOption:bs,foundationMenu:Cs,foundationMenuItem:Ts,foundationModal:Is,foundationMultiselect:Us,foundationNumberField:Qs,foundationProgress:kr,foundationPopper:zr,foundationProgressRing:Wr,foundationRadio:Jr,foundationRadioGroup:nl,foundationSearchBar:bl,foundationSearchBarCombobox:Cl,foundationSegmentedControl:Tl,foundationSegmentedItem:Il,foundationSelect:jl,foundationSkeleton:ql,foundationSlider:od,foundationSliderLabel:ld,foundationSnackbar:bd,foundationStepper:Dd,foundationStepperTab:Md,foundationStepperTabPanel:jd,foundationStackingIcons:$d,foundationSwitch:qd,foundationSystemHealthOverlay:Rr,foundationTab:ec,foundationTabPanel:sc,foundationTabs:pc,foundationTextArea:bc,foundationTextField:Fc,foundationToast:Ec,foundationToolbar:Hc,foundationTooltip:Gc,foundationTreeItem:Xc,foundationTreeView:ou,foundationUrlInput:du,register(e,...t){if(e)for(const o in this)"register"!==o&&this[o]().register(e,...t)}};class uu 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 pu=class extends mt{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.")}};pu=(0,x.__decorate)([(0,r.customElement)({name:"data-grid-datasource"})],pu);const hu=r.html`
|
|
3753
3753
|
<template ${(0,r.ref)("notificationListener")}>
|
|
3754
3754
|
<slot></slot>
|
|
3755
3755
|
</template>
|
|
3756
|
-
`;var
|
|
3757
|
-
//# sourceMappingURL=531.
|
|
3756
|
+
`;var mu;!function(e){e.NOTIFICATION_EVENT="notification-event"}(mu||(mu={}));const vu={mode:"open",delegatesFocus:!0};class gu 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*(){if(e.connectedCallback.call(this),this.addEventListener(mu.NOTIFICATION_EVENT,(e=>{e.stopImmediatePropagation(),_a(e.detail,this.tagName,this.notificationListener)})),this.resourceName){if(!(yield this.datasource.init({resourceName:this.resourceName},!0)))return void ae.debug(`Genesis Datasource init failed for ${this.resourceName}`);this.dataSub=null===(t=this.datasource.stream)||void 0===t?void 0:t.subscribe((e=>{e.ROW&&e.SEQUENCE_ID>1&&this.handleStreamUpdate((0,ct.d)(e))}))}}))}disconnectedCallback(){var e,t;super.disconnectedCallback(),null===(e=this.dataSub)||void 0===e||e.unsubscribe(),delete this.dataSub,null===(t=this.datasource)||void 0===t||t.destroy(),delete this.datasource}handleStreamUpdate(e){const t=e.inserts;t.length>0&&t.forEach((e=>{this.showNotificationToast(e)}))}showNotificationToast(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)),ka(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],gu.prototype,"notificationListener",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"resource-name"})],gu.prototype,"resourceName",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"close-timeout",converter:r.nullableNumberConverter})],gu.prototype,"closeTimeout",void 0),(0,x.__decorate)([r.observable],gu.prototype,"toastButtons",void 0),(0,x.__decorate)([pt.yW],gu.prototype,"datasource",void 0);const fu=gu.compose({baseName:"notification-listener",template:hu,shadowOptions:vu}),bu=(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 yu(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 xu=e=>!e.navId||"header"===e.navId,wu=10;function $u(e,t=xu,o=wu){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 Su,Cu=o(63734);!function(e){e.controlClicked="controlClicked",e.routeChanged="routeChanged"}(Su||(Su={}));class ku{constructor(e){this.analytics=(0,Cu.Ay)(e)}trackEvent(e,t){ma.v.debug(`FoundationAnalytics.trackEvent ${e} : ${JSON.stringify(t)}`),this.analytics.track(e,t)}}const Fu=n.DI.createInterface((e=>e.singleton(ku)));var _u=o(3479),Ou=o(80751),Du=o(98647);let Tu=class extends(_u.Ix.from(r.FASTElement)){connectedCallback(){super.connectedCallback(),r.DOM.queueUpdate((()=>(0,x.__awaiter)(this,void 0,void 0,(function*(){this.$router.config=this.config}))))}};Tu=(0,x.__decorate)([(0,r.customElement)({name:"foundation-router"})],Tu);class Lu extends Ou.s{constructor(){super(...arguments),this.definitions=[]}map(...e){this.definitions=[...e,...this.definitions],super.map(...e)}}(0,x.__decorate)([r.observable],Lu.prototype,"definitions",void 0);class Eu extends Du.Y{constructor(){super(...arguments),this.routes=new Lu(this)}getNavItems(e=xu){return $u(this.routes.definitions,e)}configureAnalytics(){this.contributors.push({navigate:e=>(0,x.__awaiter)(this,void 0,void 0,(function*(){this.analytics.trackEvent(Su.routeChanged,{path:e.route.endpoint.path})}))})}construct(e){return this.container.get(e)}}(0,x.__decorate)([n.Container],Eu.prototype,"container",void 0),(0,x.__decorate)([Fu],Eu.prototype,"analytics",void 0),(0,x.__decorate)([er.KJ],Eu.prototype,"user",void 0);const Au=()=>_r().register(cu)}}]);
|
|
3757
|
+
//# sourceMappingURL=531.e7d837b3dc03a9828045d28ab13761e4.js.map
|