@genesislcap/design-system-configurator 14.167.2 → 14.167.3-alpha-b40d1e5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/200.200.859d068083a9cc9cd714.js +2 -0
- package/dist/200.67dcf7955800040a70abbc9a38bd72b2.js.map +1 -0
- package/dist/{806.806.df6304a6e1227a622b6e.js → 334.334.f675f475e0c2c6b7b8c6.js} +640 -183
- package/dist/334.ee10f8b663bc349d646eca0fb1c76dd1.js.map +1 -0
- package/dist/{849.849.c0960cfc38f4b6b1ed8d.js → 359.359.5d447bf8b0f5b5850973.js} +231 -231
- package/dist/359.b4620b1a2ca374618a8ee7e785697416.js.map +1 -0
- package/dist/{746.746.3d0b78f0bda7fbc60e1b.js → 746.746.5606b16b89a3de377685.js} +1 -1
- package/dist/755.755.b3ad0552e67af5814e32.js +2 -0
- package/dist/{755.9a7aecd6f809d3501c72cb59e24e35af.js.map → 755.a3cac47cc4cd6e213d2b372c956c558b.js.map} +1 -1
- package/dist/{8.8.cabffc3a0348840d5b01.js → 8.8.9a20b281e1115abe2f3c.js} +2 -2
- package/dist/{8.a53ad2394b2581a3c855ecd3bf2ca07f.js.map → 8.ef07388c4d4757fa729f386420e619db.js.map} +1 -1
- package/dist/designSystemConfigurator.208ae175785725f27d674a4a81a1457d.js.map +1 -0
- package/dist/index.html +1 -1
- package/dist/main.ac767adce7809721356e.js +2 -0
- package/dist/main.cb37db2217a550f3b0dd467073e0bb51.js.map +1 -0
- package/dist/npm.bowser.182.250262eaf3aaf0276da8.js +2 -0
- package/dist/npm.bowser.46f4d7a16a0005163663683563c4705e.js.map +1 -0
- package/dist/npm.http-status-codes.998.00c54119a49ada1a4dc5.js +2 -0
- package/dist/npm.http-status-codes.d432e2d15251825dd23629755de93778.js.map +1 -0
- package/dist/{npm.microsoft.127.fb65bada17a525386c80.js → npm.microsoft.127.da24134a36edff825162.js} +147 -147
- package/dist/npm.microsoft.ac462c010931eb8a47c3c6043ba81fa4.js.map +1 -0
- package/dist/npm.rxjs.271.6c76c9650885801e0ba7.js +2 -0
- package/dist/npm.rxjs.76b2e7e0eee0175592e06a61c80186f9.js.map +1 -0
- package/dist/remoteEntry.js +2 -2
- package/package.json +12 -12
- package/dist/200.200.c3035a0394a0f0154665.js +0 -2
- package/dist/200.b969aa21c130d00f304fd17d1f5d7083.js.map +0 -1
- package/dist/755.755.e65d16e701302cc19617.js +0 -2
- package/dist/806.c79e1a261b79702c2079dd3e21c52362.js.map +0 -1
- package/dist/849.08a5ccbc241f730a7a50ef70b1f414e3.js.map +0 -1
- package/dist/designSystemConfigurator.d065b6cabe69e87dbe55e1b47a7154a8.js.map +0 -1
- package/dist/main.213f99ff1fd6c68d8276c4e369b4c185.js.map +0 -1
- package/dist/main.7df0a875506a38195fe4.js +0 -2
- package/dist/npm.microsoft.195d71c3cb4b532ac5f722f5b46f412b.js.map +0 -1
- package/dist/npm.rxjs.271.97c4a50d790b7f988ef3.js +0 -2
- package/dist/npm.rxjs.af0fdd7c6eef2b80c50efc049a01cda7.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(self.webpackChunk_genesislcap_design_system_configurator=self.webpackChunk_genesislcap_design_system_configurator||[]).push([[806],{26980:(e,t,o)=>{"use strict";o.d(t,{KA:()=>r,Q3:()=>n,Vj:()=>d,Ze:()=>s});o(93964);var i=o(96335);function a(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(e){return null}}function n(){if(i.jU){var e=navigator,t=e.languages;return e.userLanguage||(t&&t.length?t[0]:e.language)}}function s(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch(e){}}function r(e){return function(e){for(var t,o=Object.create(null),i=/([^&=]+)=?([^&]*)/g;t=i.exec(e);){var n=a(t[1]),s=a(t[2]);"[]"===n.substring(n.length-2)?(o[n=n.substring(0,n.length-2)]||(o[n]=[])).push(s):o[n]=""===s||s}for(var r in o){var d=r.split("[");d.length>1&&(l(o,d.map((function(e){return e.replace(/[?[\]\\ ]/g,"")})),o[r]),delete o[r])}return o}(function(e){if(e){var t=e.match(/\?(.*)/);return t&&t[1]?t[1].split("#")[0]:""}return i.jU&&window.location.search.substring(1)}(e))}function l(e,t,o){for(var i=t.length-1,a=0;a<i;++a){var n=t[a];if("__proto__"===n||"constructor"===n)break;n in e||(e[n]={}),e=e[n]}e[t[i]]=o}function d(){for(var e="",t=0,o=4294967295*Math.random()|0;t++<36;){var i="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx"[t-1],a=15&o;e+="-"==i||"4"==i?i:("x"==i?a:3&a|8).toString(16),o=t%8==0?4294967295*Math.random()|0:o>>4}return e}},55466:function(e){e.exports=function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d\d/,i=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,n={},s=function(e){return(e=+e)+(e>68?1900:2e3)},r=function(e){return function(t){this[e]=+t}},l=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),o=60*t[1]+(+t[2]||0);return 0===o?0:"+"===t[0]?-o:o}(e)}],d=function(e){var t=n[e];return t&&(t.indexOf?t:t.s.concat(t.f))},c=function(e,t){var o,i=n.meridiem;if(i){for(var a=1;a<=24;a+=1)if(e.indexOf(i(a,0,t))>-1){o=a>12;break}}else o=e===(t?"pm":"PM");return o},u={A:[a,function(e){this.afternoon=c(e,!1)}],a:[a,function(e){this.afternoon=c(e,!0)}],S:[/\d/,function(e){this.milliseconds=100*+e}],SS:[o,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[i,r("seconds")],ss:[i,r("seconds")],m:[i,r("minutes")],mm:[i,r("minutes")],H:[i,r("hours")],h:[i,r("hours")],HH:[i,r("hours")],hh:[i,r("hours")],D:[i,r("day")],DD:[o,r("day")],Do:[a,function(e){var t=n.ordinal,o=e.match(/\d+/);if(this.day=o[0],t)for(var i=1;i<=31;i+=1)t(i).replace(/\[|\]/g,"")===e&&(this.day=i)}],M:[i,r("month")],MM:[o,r("month")],MMM:[a,function(e){var t=d("months"),o=(d("monthsShort")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(o<1)throw new Error;this.month=o%12||o}],MMMM:[a,function(e){var t=d("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,r("year")],YY:[o,function(e){this.year=s(e)}],YYYY:[/\d{4}/,r("year")],Z:l,ZZ:l};function p(o){var i,a;i=o,a=n&&n.formats;for(var s=(o=i.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,o,i){var n=i&&i.toUpperCase();return o||a[i]||e[i]||a[n].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,o){return t||o.slice(1)}))}))).match(t),r=s.length,l=0;l<r;l+=1){var d=s[l],c=u[d],p=c&&c[0],h=c&&c[1];s[l]=h?{regex:p,parser:h}:d.replace(/^\[|\]$/g,"")}return function(e){for(var t={},o=0,i=0;o<r;o+=1){var a=s[o];if("string"==typeof a)i+=a.length;else{var n=a.regex,l=a.parser,d=e.slice(i),c=n.exec(d)[0];l.call(t,c),e=e.replace(c,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var o=e.hours;t?o<12&&(e.hours+=12):12===o&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,o){o.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(s=e.parseTwoDigitYear);var i=t.prototype,a=i.parse;i.parse=function(e){var t=e.date,i=e.utc,s=e.args;this.$u=i;var r=s[1];if("string"==typeof r){var l=!0===s[2],d=!0===s[3],c=l||d,u=s[2];d&&(u=s[2]),n=this.$locale(),!l&&u&&(n=o.Ls[u]),this.$d=function(e,t,o){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var i=p(t)(e),a=i.year,n=i.month,s=i.day,r=i.hours,l=i.minutes,d=i.seconds,c=i.milliseconds,u=i.zone,h=new Date,m=s||(a||n?1:h.getDate()),v=a||h.getFullYear(),g=0;a&&!n||(g=n>0?n-1:h.getMonth());var f=r||0,b=l||0,y=d||0,x=c||0;return u?new Date(Date.UTC(v,g,m,f,b,y,x+60*u.offset*1e3)):o?new Date(Date.UTC(v,g,m,f,b,y,x)):new Date(v,g,m,f,b,y,x)}catch(e){return new Date("")}}(t,r,i),this.init(),u&&!0!==u&&(this.$L=this.locale(u).$L),c&&t!=this.format(r)&&(this.$d=new Date("")),n={}}else if(r instanceof Array)for(var h=r.length,m=1;m<=h;m+=1){s[1]=r[m-1];var v=o.apply(this,s);if(v.isValid()){this.$d=v.$d,this.$L=v.$L,this.init();break}m===h&&(this.$d=new Date(""))}else a.call(this,e)}}}()},78113:function(e){e.exports=function(){"use strict";return function(e,t){t.prototype.isLeapYear=function(){return this.$y%4==0&&this.$y%100!=0||this.$y%400==0}}}()},82839:function(e){e.exports=function(){"use strict";return function(e,t,o){var i=t.prototype,a=function(e){return e&&(e.indexOf?e:e.s)},n=function(e,t,o,i,n){var s=e.name?e:e.$locale(),r=a(s[t]),l=a(s[o]),d=r||l.map((function(e){return e.slice(0,i)}));if(!n)return d;var c=s.weekStart;return d.map((function(e,t){return d[(t+(c||0))%7]}))},s=function(){return o.Ls[o.locale()]},r=function(e,t){return e.formats[t]||function(e){return e.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,o){return t||o.slice(1)}))}(e.formats[t.toUpperCase()])},l=function(){var e=this;return{months:function(t){return t?t.format("MMMM"):n(e,"months")},monthsShort:function(t){return t?t.format("MMM"):n(e,"monthsShort","months",3)},firstDayOfWeek:function(){return e.$locale().weekStart||0},weekdays:function(t){return t?t.format("dddd"):n(e,"weekdays")},weekdaysMin:function(t){return t?t.format("dd"):n(e,"weekdaysMin","weekdays",2)},weekdaysShort:function(t){return t?t.format("ddd"):n(e,"weekdaysShort","weekdays",3)},longDateFormat:function(t){return r(e.$locale(),t)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};i.localeData=function(){return l.bind(this)()},o.localeData=function(){var e=s();return{firstDayOfWeek:function(){return e.weekStart||0},weekdays:function(){return o.weekdays()},weekdaysShort:function(){return o.weekdaysShort()},weekdaysMin:function(){return o.weekdaysMin()},months:function(){return o.months()},monthsShort:function(){return o.monthsShort()},longDateFormat:function(t){return r(e,t)},meridiem:e.meridiem,ordinal:e.ordinal}},o.months=function(){return n(s(),"months")},o.monthsShort=function(){return n(s(),"monthsShort","months",3)},o.weekdays=function(e){return n(s(),"weekdays",null,null,e)},o.weekdaysShort=function(e){return n(s(),"weekdaysShort","weekdays",3,e)},o.weekdaysMin=function(e){return n(s(),"weekdaysMin","weekdays",2,e)}}}()},55477:function(e){e.exports=function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(t,o,i){var a=o.prototype,n=a.format;i.en.formats=e,a.format=function(t){void 0===t&&(t="YYYY-MM-DDTHH:mm:ssZ");var o=this.$locale().formats,i=function(t,o){return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,i,a){var n=a&&a.toUpperCase();return i||o[a]||e[a]||o[n].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,o){return t||o.slice(1)}))}))}(t,void 0===o?{}:o);return n.call(this,i)}}}()},93964:function(e){e.exports=function(e,t,o,i,a){for(t=t.split?t.split("."):t,i=0;i<t.length;i++)e=e?e[t[i]]:a;return e===a?o:e}},21382:(e,t,o)=>{"use strict";o.r(t),o.d(t,{Accordion:()=>c,AccordionItem:()=>g,ActionsMenu:()=>T,Anchor:()=>I,AnchoredRegion:()=>B,Avatar:()=>W,Badge:()=>J,Banner:()=>de,BaseDatasource:()=>pt,Breadcrumb:()=>he,BreadcrumbItem:()=>ye,Button:()=>_e,COMBO_INPUT_MIN_LENGTH:()=>Lr,CSSVarsTokenMapper:()=>Lc,Calendar:()=>Le,Card:()=>Ne,CategorizedMultiselect:()=>Ze,Checkbox:()=>Je,Combobox:()=>Tt,ConnectionIndicator:()=>Nt,DEFUALT_FILTER_BAR_COLUMNS:()=>Ka,DataGrid:()=>zt,DataGridCell:()=>Ut,DataGridDatasource:()=>Ec,DataGridRow:()=>Xt,DatePicker:()=>xo,Dialog:()=>yi,DialogElement:()=>bi,Disclosure:()=>Si,Divider:()=>Di,DropdownMenu:()=>Pi,ErrorBanner:()=>Vi,ErrorBoundary:()=>oa,ErrorBoundaryEvent:()=>Yi,ErrorDialog:()=>la,FaPrefixFromStyle:()=>Xn,FileUpload:()=>Ta,Filter:()=>ja,FilterBar:()=>Xa,FilterEvents:()=>za,FlexLayout:()=>sn,FlexMediaQueriesEnum:()=>Ja,Flipper:()=>cn,Flyout:()=>bn,FoundationDesignSystemProvider:()=>di,FoundationRouteCollection:()=>Xc,FoundationRouter:()=>Kc,FoundationRouterConfiguration:()=>Qc,GridLayout:()=>Dn,GridLayoutItem:()=>In,GridMediaQueriesEnum:()=>$n,HorizontalScroll:()=>Pn,INPUT_MIN_LENGTH:()=>Tr,Icon:()=>es,Listbox:()=>as,ListboxOption:()=>cs,Menu:()=>gs,MenuItem:()=>$s,Modal:()=>Ts,Multiselect:()=>Hs,MultiselectDatasource:()=>Is,NotificationListener:()=>Mc,NumberField:()=>Gs,OptionsDatasource:()=>_t,Popper:()=>Ks,Position:()=>ze,Progress:()=>or,ProgressRing:()=>lr,Radio:()=>mr,RadioGroup:()=>xr,SCROLL_TIMEOUT:()=>Dr,SNACKBAR_CLOSE_TIMEOUT:()=>Dl,SNACKBAR_EVENTS_NAMES:()=>Tl,SNACKBAR_TYPES:()=>Ol,SNACKBAR_TYPE_DEFAULT:()=>kl,SearchBar:()=>Ar,SearchBarCombobox:()=>Hr,SegmentedControl:()=>Yr,SegmentedItem:()=>Xr,Select:()=>il,Skeleton:()=>dl,Slider:()=>fl,SliderLabel:()=>Sl,Snackbar:()=>Rl,StackingIcons:()=>Hl,Stepper:()=>Gl,StepperTab:()=>Ql,StepperTabPanel:()=>id,Switch:()=>dd,Tab:()=>vd,TabPanel:()=>wd,Tabs:()=>kd,TextArea:()=>Ad,TextField:()=>zd,Toast:()=>Zd,Toolbar:()=>Jd,Tooltip:()=>nc,TreeItem:()=>uc,TreeView:()=>fc,UrlInput:()=>Cc,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:()=>Qo,actionsMenuBaseStyles:()=>$,baseComponents:()=>Oc,baseHeightMultiplier:()=>s.baseHeightMultiplier,baseLayerLuminance:()=>s.baseLayerLuminance,baseLayerLuminanceValue:()=>ei,black:()=>Fo,bodyFont:()=>s.bodyFont,categorizedMultiselectStyles:()=>Ve,categorizedMultiselectTemplate:()=>Ue,closeIcon:()=>hi,configureDesignSystem:()=>Xo,controlCornerRadius:()=>s.controlCornerRadius,controlCornerRadiusValue:()=>oi,createDesignSystemProxy:()=>Dc,createFormData:()=>Sa,crossIcon:()=>_r,defaultAccordionConfig:()=>p,defaultAccordionItemConfig:()=>b,defaultAnchorConfig:()=>M,defaultAnchoredRegionConfig:()=>j,defaultAvatarConfig:()=>Z,defaultBadgeConfig:()=>te,defaultBreadcrumbConfig:()=>ve,defaultBreadcrumbItemConfig:()=>we,defaultButtonConfig:()=>ke,defaultCalendarConfig:()=>Ae,defaultCardConfig:()=>He,defaultCategorizedMultiselectConfig:()=>qe,defaultCheckboxConfig:()=>tt,defaultComboboxConfig:()=>Et,defaultDataGridCellConfig:()=>qt,defaultDataGridConfig:()=>Vt,defaultDataGridRowConfig:()=>Jt,defaultDatePickerConfig:()=>yo,defaultDialogConfig:()=>fi,defaultDisclosureConfig:()=>_i,defaultDividerConfig:()=>Li,defaultFileUploadConfig:()=>Ea,defaultFillColor:()=>Co,defaultFlexLayoutConfig:()=>nn,defaultFlipperConfig:()=>pn,defaultFlyoutConfig:()=>xn,defaultGridLayoutConfig:()=>kn,defaultGridLayoutItemConfig:()=>An,defaultHorizontalScrollConfig:()=>Bn,defaultIconConfig:()=>Kn,defaultListboxConfig:()=>ss,defaultListboxOptionConfig:()=>ps,defaultMenuConfig:()=>bs,defaultMenuItemConfig:()=>Fs,defaultModalConfig:()=>Ds,defaultMultiselectConfig:()=>Ps,defaultNavItemPredicate:()=>Bc,defaultNeutralForegroundContrast:()=>Ho,defaultNumberFieldConfig:()=>Us,defaultPlacementIndexPadding:()=>zc,defaultProgressConfig:()=>ar,defaultProgressRingConfig:()=>cr,defaultRadioConfig:()=>gr,defaultRadioGroupConfig:()=>$r,defaultSearchBarComboboxConfig:()=>zr,defaultSearchBarConfig:()=>Rr,defaultSegmentedControlConfig:()=>Wr,defaultSegmentedItemConfig:()=>Jr,defaultSelectConfig:()=>nl,defaultSkeletonConfig:()=>ul,defaultSliderConfig:()=>yl,defaultSliderLabelConfig:()=>_l,defaultStepperConfig:()=>Ul,defaultStepperTabConfig:()=>ed,defaultStepperTabPanelConfig:()=>nd,defaultSwitchConfig:()=>ud,defaultTabConfig:()=>fd,defaultTabPanelConfig:()=>Sd,defaultTabsConfig:()=>Dd,defaultTextAreaConfig:()=>Rd,defaultTextFieldConfig:()=>Vd,defaultToastConfig:()=>qd,defaultToolbarConfig:()=>tc,defaultTooltipConfig:()=>rc,defaultTreeItemConfig:()=>hc,defaultTreeViewConfig:()=>yc,defaultUrlInputConfig:()=>_c,defineFactory:()=>Pc,density:()=>s.density,designToken:()=>Go,designUnit:()=>s.designUnit,designUnitValue:()=>ii,direction:()=>s.direction,directionValue:()=>ti,disabledOpacity:()=>s.disabledOpacity,downloadFile:()=>_a,dropdownMenuBaseStyles:()=>Ai,errorDialogTemplate:()=>sa,extractMenuItems:()=>Ri,faSizeValueDefault:()=>Qn,faSizeValues:()=>Jn,fillColor:()=>s.fillColor,filterBarTemplate:()=>qa,flyoutAnimationTime:()=>mn,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:()=>N,foundationAnchorShadowOptions:()=>R,foundationAnchorStyles:()=>E,foundationAnchorTemplate:()=>A,foundationAnchoredRegion:()=>V,foundationAnchoredRegionShadowOptions:()=>z,foundationAnchoredRegionStyles:()=>H,foundationAnchoredRegionTemplate:()=>P,foundationAvatar:()=>K,foundationAvatarShadowOptions:()=>q,foundationAvatarStyles:()=>G,foundationAvatarTemplate:()=>Y,foundationBadge:()=>oe,foundationBadgeShadowOptions:()=>ee,foundationBadgeStyles:()=>X,foundationBadgeTemplate:()=>Q,foundationBanner:()=>ce,foundationBannerShadowOptions:()=>le,foundationBannerStyles:()=>ne,foundationBannerTemplate:()=>re,foundationBreadcrumb:()=>ge,foundationBreadcrumbItem:()=>$e,foundationBreadcrumbItemShadowOptions:()=>xe,foundationBreadcrumbItemStyles:()=>fe,foundationBreadcrumbItemTemplate:()=>be,foundationBreadcrumbShadowOptions:()=>me,foundationBreadcrumbStyles:()=>ue,foundationBreadcrumbTemplate:()=>pe,foundationButton:()=>Oe,foundationButtonShadowOptions:()=>Ce,foundationButtonStyles:()=>Se,foundationButtonTemplate:()=>Fe,foundationCalendar:()=>Ie,foundationCalendarShadowOptions:()=>Ee,foundationCalendarStyles:()=>De,foundationCalendarTemplate:()=>Te,foundationCard:()=>Be,foundationCardShadowOptions:()=>Pe,foundationCardStyles:()=>Re,foundationCardTemplate:()=>Me,foundationCategorizedMultiselect:()=>Ke,foundationCategorizedMultiselectShadowOptions:()=>We,foundationCheckbox:()=>ot,foundationCheckboxShadowOptions:()=>et,foundationCheckboxStyles:()=>Xe,foundationCheckboxTemplate:()=>Qe,foundationCombobox:()=>At,foundationComboboxShadowOptions:()=>Lt,foundationComboboxStyles:()=>Ct,foundationComboboxTemplate:()=>kt,foundationConnectionIndicator:()=>Pt,foundationConnectionIndicatorStyles:()=>Rt,foundationConnectionIndicatorTemplate:()=>Mt,foundationDataGrid:()=>Gt,foundationDataGridCell:()=>Zt,foundationDataGridCellShadowOptions:()=>Wt,foundationDataGridCellStyles:()=>Yt,foundationDataGridCellTemplate:()=>n.dataGridCellTemplate,foundationDataGridRow:()=>eo,foundationDataGridRowShadowOptions:()=>Qt,foundationDataGridRowStyles:()=>Kt,foundationDataGridRowTemplate:()=>n.dataGridRowTemplate,foundationDataGridShadowOptions:()=>jt,foundationDataGridStyles:()=>Ht,foundationDataGridTemplate:()=>Bt,foundationDatePicker:()=>wo,foundationDatePickerShadowOptions:()=>bo,foundationDatePickerStyles:()=>vo,foundationDatePickerTemplate:()=>fo,foundationDesignSystemProvider:()=>ci,foundationDialog:()=>xi,foundationDialogShadowOptions:()=>gi,foundationDialogStyles:()=>pi,foundationDialogTemplate:()=>vi,foundationDisclosure:()=>Ci,foundationDisclosureShadowOptions:()=>Fi,foundationDisclosureStyles:()=>wi,foundationDisclosureTemplate:()=>$i,foundationDivider:()=>Ei,foundationDividerShadowOptions:()=>Ti,foundationDividerStyles:()=>ki,foundationDividerTemplate:()=>Oi,foundationDropdownMenu:()=>Hi,foundationDropdownMenuStyles:()=>Ii,foundationDropdownMenuTemplate:()=>Ni,foundationErrorBanner:()=>Gi,foundationErrorBannerShadowOptions:()=>ji,foundationErrorBannerTemplate:()=>zi,foundationErrorBoundary:()=>ia,foundationErrorBoundaryShadowOptions:()=>ta,foundationErrorBoundaryTemplate:()=>ea,foundationErrorDialog:()=>da,foundationErrorDialogShadowOptions:()=>ra,foundationErrorDialogStyles:()=>aa,foundationFileUpload:()=>Aa,foundationFileUploadShadowOptions:()=>La,foundationFileUploadStyles:()=>pa,foundationFileUploadTemplate:()=>ma,foundationFilter:()=>Va,foundationFilterBar:()=>Qa,foundationFilterBarStyles:()=>Ya,foundationFilterBarTemplate:()=>Za,foundationFilterStyles:()=>Ia,foundationFilterTemplate:()=>Ba,foundationFlexLayout:()=>rn,foundationFlexLayoutShadowOptions:()=>an,foundationFlexLayoutStyles:()=>tn,foundationFlexLayoutTemplate:()=>on,foundationFlipper:()=>hn,foundationFlipperShadowOptions:()=>un,foundationFlipperStyles:()=>ln,foundationFlipperTemplate:()=>dn,foundationFlyout:()=>wn,foundationFlyoutShadowOptions:()=>yn,foundationFlyoutStyles:()=>vn,foundationFlyoutTemplate:()=>fn,foundationGridLayout:()=>Tn,foundationGridLayoutItem:()=>Rn,foundationGridLayoutItemShadowOptions:()=>En,foundationGridLayoutItemTemplate:()=>Ln,foundationGridLayoutShadowOptions:()=>Cn,foundationGridLayoutStyles:()=>Fn,foundationGridLayoutTemplate:()=>_n,foundationHorizontalScroll:()=>zn,foundationHorizontalScrollShadowOptions:()=>Hn,foundationHorizontalScrollStyles:()=>Mn,foundationHorizontalScrollTemplate:()=>Nn,foundationIcon:()=>ts,foundationIconShadowOptions:()=>Zn,foundationIconStyles:()=>Wn,foundationIconTemplate:()=>qn,foundationListbox:()=>rs,foundationListboxOption:()=>hs,foundationListboxOptionShadowOptions:()=>us,foundationListboxOptionStyles:()=>ls,foundationListboxOptionTemplate:()=>ds,foundationListboxShadowOptions:()=>ns,foundationListboxStyles:()=>os,foundationListboxTemplate:()=>is,foundationMenu:()=>ys,foundationMenuItem:()=>_s,foundationMenuItemShadowOptions:()=>Ss,foundationMenuItemStyles:()=>xs,foundationMenuItemTemplate:()=>ws,foundationMenuShadowOptions:()=>fs,foundationMenuStyles:()=>ms,foundationMenuTemplate:()=>vs,foundationModal:()=>Ls,foundationModalShadowOptions:()=>Os,foundationModalStyles:()=>Cs,foundationModalTemplate:()=>ks,foundationMultiselect:()=>Bs,foundationMultiselectShadowOptions:()=>Ns,foundationNotificationListener:()=>Nc,foundationNotificationListenerShadowOptions:()=>Rc,foundationNotificationListenerTemplate:()=>Ac,foundationNumberField:()=>Ws,foundationNumberFieldShadowOptions:()=>Ys,foundationNumberFieldStyles:()=>js,foundationNumberFieldTemplate:()=>Vs,foundationPopper:()=>Js,foundationProgress:()=>nr,foundationProgressRing:()=>ur,foundationProgressRingShadowOptions:()=>dr,foundationProgressRingStyles:()=>sr,foundationProgressRingTemplate:()=>rr,foundationProgressShadowOptions:()=>ir,foundationProgressStyles:()=>er,foundationProgressTemplate:()=>tr,foundationRadio:()=>fr,foundationRadioGroup:()=>Sr,foundationRadioGroupShadowOptions:()=>wr,foundationRadioGroupStyles:()=>br,foundationRadioGroupTemplate:()=>yr,foundationRadioShadowOptions:()=>vr,foundationRadioStyles:()=>pr,foundationRadioTemplate:()=>hr,foundationSearchBar:()=>Mr,foundationSearchBarCombobox:()=>jr,foundationSearchBarComboboxShadowOptions:()=>Br,foundationSearchBarComboboxStyles:()=>Nr,foundationSearchBarComboboxTemplate:()=>Pr,foundationSearchBarShadowOptions:()=>Ir,foundationSearchBarStyles:()=>Fr,foundationSearchBarTemplate:()=>Or,foundationSegmentedControl:()=>qr,foundationSegmentedControlShadowOptions:()=>Ur,foundationSegmentedControlStyles:()=>Vr,foundationSegmentedControlTemplate:()=>Gr,foundationSegmentedItem:()=>el,foundationSegmentedItemShadowOptions:()=>Qr,foundationSegmentedItemStyles:()=>Zr,foundationSegmentedItemTemplate:()=>Kr,foundationSelect:()=>sl,foundationSelectShadowOptions:()=>al,foundationSelectStyles:()=>tl,foundationSelectTemplate:()=>ol,foundationSkeleton:()=>pl,foundationSkeletonShadowOptions:()=>cl,foundationSkeletonStyles:()=>rl,foundationSkeletonTemplate:()=>ll,foundationSlider:()=>xl,foundationSliderLabel:()=>Cl,foundationSliderLabelShadowOptions:()=>Fl,foundationSliderLabelStyles:()=>wl,foundationSliderLabelTemplate:()=>$l,foundationSliderShadowOptions:()=>bl,foundationSliderStyles:()=>hl,foundationSliderTemplate:()=>gl,foundationSnackbar:()=>Ml,foundationSnackbarShadowOptions:()=>Il,foundationSnackbarStyles:()=>Ll,foundationSnackbarTemplate:()=>Al,foundationStackingIcons:()=>Bl,foundationStackingIconsStyles:()=>Nl,foundationStackingIconsTemplate:()=>Pl,foundationStepper:()=>Wl,foundationStepperShadowOptions:()=>Yl,foundationStepperStyles:()=>zl,foundationStepperTab:()=>td,foundationStepperTabPanel:()=>sd,foundationStepperTabPanelShadowOptions:()=>ad,foundationStepperTabPanelTemplate:()=>od,foundationStepperTabShadowOptions:()=>Jl,foundationStepperTabStyles:()=>ql,foundationStepperTabTemplate:()=>Xl,foundationStepperTemplate:()=>Vl,foundationSwitch:()=>pd,foundationSwitchShadowOptions:()=>cd,foundationSwitchStyles:()=>rd,foundationSwitchTemplate:()=>ld,foundationTab:()=>bd,foundationTabPanel:()=>Fd,foundationTabPanelShadowOptions:()=>$d,foundationTabPanelStyles:()=>yd,foundationTabPanelTemplate:()=>xd,foundationTabShadowOptions:()=>gd,foundationTabStyles:()=>hd,foundationTabTemplate:()=>md,foundationTabs:()=>Td,foundationTabsShadowOptions:()=>Od,foundationTabsStyles:()=>_d,foundationTabsTemplate:()=>Cd,foundationTextArea:()=>Md,foundationTextAreaShadowOptions:()=>Id,foundationTextAreaStyles:()=>Ld,foundationTextAreaTemplate:()=>Ed,foundationTextField:()=>Gd,foundationTextFieldShadowOptions:()=>jd,foundationTextFieldStyles:()=>Hd,foundationTextFieldTemplate:()=>Bd,foundationToast:()=>Kd,foundationToastShadowOptions:()=>Wd,foundationToastStyles:()=>Yd,foundationToastTemplate:()=>Ud,foundationToolbar:()=>oc,foundationToolbarShadowOptions:()=>ec,foundationToolbarStyles:()=>Xd,foundationToolbarTemplate:()=>Qd,foundationTooltip:()=>lc,foundationTooltipShadowOptions:()=>sc,foundationTooltipStyles:()=>ic,foundationTooltipTemplate:()=>ac,foundationTreeItem:()=>mc,foundationTreeItemShadowOptions:()=>pc,foundationTreeItemStyles:()=>dc,foundationTreeItemTemplate:()=>cc,foundationTreeView:()=>xc,foundationTreeViewShadowOptions:()=>bc,foundationTreeViewStyles:()=>vc,foundationTreeViewTemplate:()=>gc,foundationUrlInput:()=>kc,foundationUrlInputShadowOptions:()=>Fc,foundationUrlInputStyles:()=>wc,foundationUrlInputTemplate:()=>Sc,fuiAccentPalette:()=>Ro,fuiAccentSwatch:()=>Io,fuiCardFillColor:()=>Po,fuiCardForegroundColor:()=>zo,fuiDefaultCardFillColor:()=>Oo,fuiDefaultCardPalette:()=>Do,fuiFillColor:()=>No,fuiNeutralPalette:()=>Eo,fuiNeutralSwatch:()=>Lo,getBannerTemplate:()=>se,getCriteriaBuilder:()=>Er,getDefaultConfig:()=>qo,getDesignSystemPrefix:()=>C,getDialogTemplate:()=>mi,getDropdownMenuTemplate:()=>Mi,getErrorDialogTemplate:()=>na,getExports:()=>Zo,getFontawesomeIconsCss:()=>Un,getNavItems:()=>jc,getPrefixedCategorizedMultiselect:()=>Ye,getPrefixedDatePicker:()=>go,getPrefixedErrorBanner:()=>Bi,getPrefixedFileUpload:()=>ha,getPrefixedFilterTemplate:()=>Ha,getPrefixedFlyout:()=>gn,getPrefixedMultiselect:()=>Rs,getPrefixedSearchBar:()=>kr,getPrefixedSnackbar:()=>El,getPrefixedStepper:()=>jl,getPrefixedStepperTab:()=>Kl,getPrefixedUrlInput:()=>$c,getTypeRampValue:()=>Ko,jsonConverter:()=>Zs,mapType:()=>Ua,maxheight:()=>Es,media:()=>U,menuTemplate:()=>k,mixinFoundationFontFamily:()=>ni,multiselectStyles:()=>As,multiselectTemplate:()=>Ms,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:()=>Bo,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:()=>Jo,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:()=>Uo,plusIcon:()=>Cr,provideDesignSystem:()=>Tc,provideTokens:()=>Vo,registerFoundationDesignSystem:()=>Jc,singleOptionTemplate:()=>O,strokeWidth:()=>s.strokeWidth,swatchConverter:()=>Yo,tagFor:()=>Hc,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:()=>Fa,white:()=>So});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:()=>Ho,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:()=>zo,fuiFillColor:()=>No,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:()=>Bo,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:()=>Qo,baseLayerLuminanceValue:()=>ei,controlCornerRadiusValue:()=>oi,designUnitValue:()=>ii,directionValue:()=>ti,neutralPaletteValue:()=>Jo});var n=o(99667),s=o(41663),r=o(79292);const l=(e,t)=>r.css`
|
|
1
|
+
(self.webpackChunk_genesislcap_design_system_configurator=self.webpackChunk_genesislcap_design_system_configurator||[]).push([[334],{26980:(e,t,o)=>{"use strict";o.d(t,{KA:()=>r,Q3:()=>n,Vj:()=>d,Ze:()=>s});o(93964);var i=o(96335);function a(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(e){return null}}function n(){if(i.jU){var e=navigator,t=e.languages;return e.userLanguage||(t&&t.length?t[0]:e.language)}}function s(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch(e){}}function r(e){return function(e){for(var t,o=Object.create(null),i=/([^&=]+)=?([^&]*)/g;t=i.exec(e);){var n=a(t[1]),s=a(t[2]);"[]"===n.substring(n.length-2)?(o[n=n.substring(0,n.length-2)]||(o[n]=[])).push(s):o[n]=""===s||s}for(var r in o){var d=r.split("[");d.length>1&&(l(o,d.map((function(e){return e.replace(/[?[\]\\ ]/g,"")})),o[r]),delete o[r])}return o}(function(e){if(e){var t=e.match(/\?(.*)/);return t&&t[1]?t[1].split("#")[0]:""}return i.jU&&window.location.search.substring(1)}(e))}function l(e,t,o){for(var i=t.length-1,a=0;a<i;++a){var n=t[a];if("__proto__"===n||"constructor"===n)break;n in e||(e[n]={}),e=e[n]}e[t[i]]=o}function d(){for(var e="",t=0,o=4294967295*Math.random()|0;t++<36;){var i="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx"[t-1],a=15&o;e+="-"==i||"4"==i?i:("x"==i?a:3&a|8).toString(16),o=t%8==0?4294967295*Math.random()|0:o>>4}return e}},55466:function(e){e.exports=function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d\d/,i=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,n={},s=function(e){return(e=+e)+(e>68?1900:2e3)},r=function(e){return function(t){this[e]=+t}},l=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),o=60*t[1]+(+t[2]||0);return 0===o?0:"+"===t[0]?-o:o}(e)}],d=function(e){var t=n[e];return t&&(t.indexOf?t:t.s.concat(t.f))},c=function(e,t){var o,i=n.meridiem;if(i){for(var a=1;a<=24;a+=1)if(e.indexOf(i(a,0,t))>-1){o=a>12;break}}else o=e===(t?"pm":"PM");return o},u={A:[a,function(e){this.afternoon=c(e,!1)}],a:[a,function(e){this.afternoon=c(e,!0)}],S:[/\d/,function(e){this.milliseconds=100*+e}],SS:[o,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[i,r("seconds")],ss:[i,r("seconds")],m:[i,r("minutes")],mm:[i,r("minutes")],H:[i,r("hours")],h:[i,r("hours")],HH:[i,r("hours")],hh:[i,r("hours")],D:[i,r("day")],DD:[o,r("day")],Do:[a,function(e){var t=n.ordinal,o=e.match(/\d+/);if(this.day=o[0],t)for(var i=1;i<=31;i+=1)t(i).replace(/\[|\]/g,"")===e&&(this.day=i)}],M:[i,r("month")],MM:[o,r("month")],MMM:[a,function(e){var t=d("months"),o=(d("monthsShort")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(o<1)throw new Error;this.month=o%12||o}],MMMM:[a,function(e){var t=d("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,r("year")],YY:[o,function(e){this.year=s(e)}],YYYY:[/\d{4}/,r("year")],Z:l,ZZ:l};function p(o){var i,a;i=o,a=n&&n.formats;for(var s=(o=i.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,o,i){var n=i&&i.toUpperCase();return o||a[i]||e[i]||a[n].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,o){return t||o.slice(1)}))}))).match(t),r=s.length,l=0;l<r;l+=1){var d=s[l],c=u[d],p=c&&c[0],h=c&&c[1];s[l]=h?{regex:p,parser:h}:d.replace(/^\[|\]$/g,"")}return function(e){for(var t={},o=0,i=0;o<r;o+=1){var a=s[o];if("string"==typeof a)i+=a.length;else{var n=a.regex,l=a.parser,d=e.slice(i),c=n.exec(d)[0];l.call(t,c),e=e.replace(c,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var o=e.hours;t?o<12&&(e.hours+=12):12===o&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,o){o.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(s=e.parseTwoDigitYear);var i=t.prototype,a=i.parse;i.parse=function(e){var t=e.date,i=e.utc,s=e.args;this.$u=i;var r=s[1];if("string"==typeof r){var l=!0===s[2],d=!0===s[3],c=l||d,u=s[2];d&&(u=s[2]),n=this.$locale(),!l&&u&&(n=o.Ls[u]),this.$d=function(e,t,o){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var i=p(t)(e),a=i.year,n=i.month,s=i.day,r=i.hours,l=i.minutes,d=i.seconds,c=i.milliseconds,u=i.zone,h=new Date,m=s||(a||n?1:h.getDate()),v=a||h.getFullYear(),g=0;a&&!n||(g=n>0?n-1:h.getMonth());var f=r||0,b=l||0,y=d||0,x=c||0;return u?new Date(Date.UTC(v,g,m,f,b,y,x+60*u.offset*1e3)):o?new Date(Date.UTC(v,g,m,f,b,y,x)):new Date(v,g,m,f,b,y,x)}catch(e){return new Date("")}}(t,r,i),this.init(),u&&!0!==u&&(this.$L=this.locale(u).$L),c&&t!=this.format(r)&&(this.$d=new Date("")),n={}}else if(r instanceof Array)for(var h=r.length,m=1;m<=h;m+=1){s[1]=r[m-1];var v=o.apply(this,s);if(v.isValid()){this.$d=v.$d,this.$L=v.$L,this.init();break}m===h&&(this.$d=new Date(""))}else a.call(this,e)}}}()},78113:function(e){e.exports=function(){"use strict";return function(e,t){t.prototype.isLeapYear=function(){return this.$y%4==0&&this.$y%100!=0||this.$y%400==0}}}()},82839:function(e){e.exports=function(){"use strict";return function(e,t,o){var i=t.prototype,a=function(e){return e&&(e.indexOf?e:e.s)},n=function(e,t,o,i,n){var s=e.name?e:e.$locale(),r=a(s[t]),l=a(s[o]),d=r||l.map((function(e){return e.slice(0,i)}));if(!n)return d;var c=s.weekStart;return d.map((function(e,t){return d[(t+(c||0))%7]}))},s=function(){return o.Ls[o.locale()]},r=function(e,t){return e.formats[t]||function(e){return e.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,o){return t||o.slice(1)}))}(e.formats[t.toUpperCase()])},l=function(){var e=this;return{months:function(t){return t?t.format("MMMM"):n(e,"months")},monthsShort:function(t){return t?t.format("MMM"):n(e,"monthsShort","months",3)},firstDayOfWeek:function(){return e.$locale().weekStart||0},weekdays:function(t){return t?t.format("dddd"):n(e,"weekdays")},weekdaysMin:function(t){return t?t.format("dd"):n(e,"weekdaysMin","weekdays",2)},weekdaysShort:function(t){return t?t.format("ddd"):n(e,"weekdaysShort","weekdays",3)},longDateFormat:function(t){return r(e.$locale(),t)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};i.localeData=function(){return l.bind(this)()},o.localeData=function(){var e=s();return{firstDayOfWeek:function(){return e.weekStart||0},weekdays:function(){return o.weekdays()},weekdaysShort:function(){return o.weekdaysShort()},weekdaysMin:function(){return o.weekdaysMin()},months:function(){return o.months()},monthsShort:function(){return o.monthsShort()},longDateFormat:function(t){return r(e,t)},meridiem:e.meridiem,ordinal:e.ordinal}},o.months=function(){return n(s(),"months")},o.monthsShort=function(){return n(s(),"monthsShort","months",3)},o.weekdays=function(e){return n(s(),"weekdays",null,null,e)},o.weekdaysShort=function(e){return n(s(),"weekdaysShort","weekdays",3,e)},o.weekdaysMin=function(e){return n(s(),"weekdaysMin","weekdays",2,e)}}}()},55477:function(e){e.exports=function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(t,o,i){var a=o.prototype,n=a.format;i.en.formats=e,a.format=function(t){void 0===t&&(t="YYYY-MM-DDTHH:mm:ssZ");var o=this.$locale().formats,i=function(t,o){return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,i,a){var n=a&&a.toUpperCase();return i||o[a]||e[a]||o[n].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,o){return t||o.slice(1)}))}))}(t,void 0===o?{}:o);return n.call(this,i)}}}()},93964:function(e){e.exports=function(e,t,o,i,a){for(t=t.split?t.split("."):t,i=0;i<t.length;i++)e=e?e[t[i]]:a;return e===a?o:e}},28835:(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:()=>Fe,COMBO_INPUT_MIN_LENGTH:()=>rl,CSSVarsTokenMapper:()=>nu,Calendar:()=>Le,Card:()=>Me,CategorizedMultiselect:()=>Ke,Checkbox:()=>Je,Combobox:()=>Tt,ConnectionIndicator:()=>Mt,DEFUALT_FILTER_BAR_COLUMNS:()=>Qa,DataGrid:()=>zt,DataGridCell:()=>Yt,DataGridDatasource:()=>su,DataGridRow:()=>Xt,DatePicker:()=>xo,Dialog:()=>yi,DialogElement:()=>bi,Disclosure:()=>Si,Divider:()=>Di,DropdownMenu:()=>Hi,ErrorBanner:()=>Vi,ErrorBoundary:()=>ia,ErrorBoundaryEvent:()=>Ui,ErrorDialog:()=>da,FaPrefixFromStyle:()=>Jn,FileUpload:()=>Ea,Filter:()=>Ga,FilterBar:()=>Ja,FilterEvents:()=>Va,FlexLayout:()=>ln,FlexMediaQueriesEnum:()=>tn,Flipper:()=>pn,Flyout:()=>xn,FoundationDesignSystemProvider:()=>di,FoundationRouteCollection:()=>Fu,FoundationRouter:()=>Cu,FoundationRouterConfiguration:()=>ku,GridLayout:()=>Ln,GridLayoutItem:()=>Rn,GridMediaQueriesEnum:()=>Cn,HorizontalScroll:()=>Bn,INPUT_MIN_LENGTH:()=>sl,Icon:()=>os,Listbox:()=>ss,ListboxOption:()=>ps,Menu:()=>bs,MenuItem:()=>Cs,Modal:()=>Es,Multiselect:()=>zs,MultiselectDatasource:()=>Rs,NotificationListener:()=>cu,NumberField:()=>Ys,OptionsDatasource:()=>Ft,Popper:()=>Er,Position:()=>ze,Progress:()=>gr,ProgressRing:()=>Hr,Radio:()=>Gr,RadioGroup:()=>Zr,SCROLL_TIMEOUT:()=>nl,SNACKBAR_CLOSE_TIMEOUT:()=>nd,SNACKBAR_EVENTS_NAMES:()=>sd,SNACKBAR_TYPES:()=>ad,SNACKBAR_TYPE_DEFAULT:()=>id,SearchBar:()=>dl,SearchBarCombobox:()=>vl,SegmentedControl:()=>wl,SegmentedItem:()=>_l,Select:()=>Al,Skeleton:()=>Pl,Slider:()=>Wl,SliderLabel:()=>Jl,Snackbar:()=>ud,StackingIcons:()=>vd,Stepper:()=>xd,StepperTab:()=>Od,StepperTabPanel:()=>Ad,Switch:()=>Pd,SystemHealthOverlay:()=>Cr,Tab:()=>Ud,TabPanel:()=>Xd,Tabs:()=>ic,TextArea:()=>dc,TextField:()=>fc,Toast:()=>Fc,Toolbar:()=>Dc,Tooltip:()=>Ic,TreeItem:()=>zc,TreeView:()=>Wc,UrlInput:()=>ou,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:()=>Qo,actionsMenuBaseStyles:()=>$,baseComponents:()=>au,baseHeightMultiplier:()=>s.baseHeightMultiplier,baseLayerLuminance:()=>s.baseLayerLuminance,baseLayerLuminanceValue:()=>ei,black:()=>Co,bodyFont:()=>s.bodyFont,categorizedMultiselectStyles:()=>Ve,categorizedMultiselectTemplate:()=>Ye,closeIcon:()=>hi,configureDesignSystem:()=>Xo,controlCornerRadius:()=>s.controlCornerRadius,controlCornerRadiusValue:()=>oi,createDesignSystemProxy:()=>xr,createFormData:()=>Fa,crossIcon:()=>tl,defaultAccordionConfig:()=>p,defaultAccordionItemConfig:()=>b,defaultAnchorConfig:()=>R,defaultAnchoredRegionConfig:()=>j,defaultAvatarConfig:()=>K,defaultBadgeConfig:()=>te,defaultBreadcrumbConfig:()=>ve,defaultBreadcrumbItemConfig:()=>we,defaultButtonConfig:()=>_e,defaultCalendarConfig:()=>Ae,defaultCardConfig:()=>Pe,defaultCategorizedMultiselectConfig:()=>qe,defaultCheckboxConfig:()=>tt,defaultComboboxConfig:()=>Et,defaultDataGridCellConfig:()=>qt,defaultDataGridConfig:()=>Vt,defaultDataGridRowConfig:()=>Jt,defaultDatePickerConfig:()=>yo,defaultDialogConfig:()=>fi,defaultDisclosureConfig:()=>Fi,defaultDividerConfig:()=>Li,defaultFileUploadConfig:()=>Na,defaultFillColor:()=>ko,defaultFlexLayoutConfig:()=>rn,defaultFlipperConfig:()=>mn,defaultFlyoutConfig:()=>$n,defaultGridLayoutConfig:()=>Dn,defaultGridLayoutItemConfig:()=>In,defaultHorizontalScrollConfig:()=>jn,defaultIconConfig:()=>Qn,defaultListboxConfig:()=>ls,defaultListboxOptionConfig:()=>ms,defaultMenuConfig:()=>xs,defaultMenuItemConfig:()=>ks,defaultModalConfig:()=>Ls,defaultMultiselectConfig:()=>Bs,defaultNavItemPredicate:()=>mu,defaultNeutralForegroundContrast:()=>Po,defaultNumberFieldConfig:()=>qs,defaultPlacementIndexPadding:()=>vu,defaultProgressConfig:()=>br,defaultProgressRingConfig:()=>Br,defaultRadioConfig:()=>Yr,defaultRadioGroupConfig:()=>Qr,defaultSearchBarComboboxConfig:()=>fl,defaultSearchBarConfig:()=>ul,defaultSegmentedControlConfig:()=>Sl,defaultSegmentedItemConfig:()=>Dl,defaultSelectConfig:()=>Il,defaultSkeletonConfig:()=>zl,defaultSliderConfig:()=>Kl,defaultSliderLabelConfig:()=>td,defaultStepperConfig:()=>$d,defaultStepperTabConfig:()=>Td,defaultStepperTabPanelConfig:()=>Id,defaultSwitchConfig:()=>zd,defaultSystemHealthOverlayConfig:()=>Or,defaultTabConfig:()=>Wd,defaultTabPanelConfig:()=>Jd,defaultTabsConfig:()=>nc,defaultTextAreaConfig:()=>uc,defaultTextFieldConfig:()=>yc,defaultToastConfig:()=>Cc,defaultToolbarConfig:()=>Lc,defaultTooltipConfig:()=>Mc,defaultTreeItemConfig:()=>Vc,defaultTreeViewConfig:()=>Kc,defaultUrlInputConfig:()=>tu,defineFactory:()=>pu,density:()=>s.density,designToken:()=>Go,designUnit:()=>s.designUnit,designUnitValue:()=>ii,direction:()=>s.direction,directionValue:()=>ti,disabledOpacity:()=>s.disabledOpacity,downloadFile:()=>_a,dropdownMenuBaseStyles:()=>Ai,errorDialogTemplate:()=>ra,extractMenuItems:()=>Ii,faSizeValueDefault:()=>es,faSizeValues:()=>ts,fillColor:()=>s.fillColor,filterBarTemplate:()=>Za,flyoutAnimationTime:()=>gn,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:()=>I,foundationAnchorStyles:()=>E,foundationAnchorTemplate:()=>A,foundationAnchoredRegion:()=>V,foundationAnchoredRegionShadowOptions:()=>z,foundationAnchoredRegionStyles:()=>P,foundationAnchoredRegionTemplate:()=>H,foundationAvatar:()=>Z,foundationAvatarShadowOptions:()=>q,foundationAvatarStyles:()=>G,foundationAvatarTemplate:()=>U,foundationBadge:()=>oe,foundationBadgeShadowOptions:()=>ee,foundationBadgeStyles:()=>X,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:()=>ke,foundationButtonStyles:()=>Se,foundationButtonTemplate:()=>Ce,foundationCalendar:()=>Ne,foundationCalendarShadowOptions:()=>Ee,foundationCalendarStyles:()=>De,foundationCalendarTemplate:()=>Te,foundationCard:()=>Be,foundationCardShadowOptions:()=>He,foundationCardStyles:()=>Ie,foundationCardTemplate:()=>Re,foundationCategorizedMultiselect:()=>Ze,foundationCategorizedMultiselectShadowOptions:()=>We,foundationCheckbox:()=>ot,foundationCheckboxShadowOptions:()=>et,foundationCheckboxStyles:()=>Xe,foundationCheckboxTemplate:()=>Qe,foundationCombobox:()=>At,foundationComboboxShadowOptions:()=>Lt,foundationComboboxStyles:()=>kt,foundationComboboxTemplate:()=>_t,foundationConnectionIndicator:()=>Ht,foundationConnectionIndicatorStyles:()=>It,foundationConnectionIndicatorTemplate:()=>Rt,foundationDataGrid:()=>Gt,foundationDataGridCell:()=>Kt,foundationDataGridCellShadowOptions:()=>Wt,foundationDataGridCellStyles:()=>Ut,foundationDataGridCellTemplate:()=>n.dataGridCellTemplate,foundationDataGridRow:()=>eo,foundationDataGridRowShadowOptions:()=>Qt,foundationDataGridRowStyles:()=>Zt,foundationDataGridRowTemplate:()=>n.dataGridRowTemplate,foundationDataGridShadowOptions:()=>jt,foundationDataGridStyles:()=>Pt,foundationDataGridTemplate:()=>Bt,foundationDatePicker:()=>wo,foundationDatePickerShadowOptions:()=>bo,foundationDatePickerStyles:()=>vo,foundationDatePickerTemplate:()=>fo,foundationDesignSystemProvider:()=>ci,foundationDialog:()=>xi,foundationDialogShadowOptions:()=>gi,foundationDialogStyles:()=>pi,foundationDialogTemplate:()=>vi,foundationDisclosure:()=>ki,foundationDisclosureShadowOptions:()=>Ci,foundationDisclosureStyles:()=>wi,foundationDisclosureTemplate:()=>$i,foundationDivider:()=>Ei,foundationDividerShadowOptions:()=>Ti,foundationDividerStyles:()=>_i,foundationDividerTemplate:()=>Oi,foundationDropdownMenu:()=>Pi,foundationDropdownMenuStyles:()=>Ni,foundationDropdownMenuTemplate:()=>Mi,foundationErrorBanner:()=>Gi,foundationErrorBannerShadowOptions:()=>ji,foundationErrorBannerTemplate:()=>zi,foundationErrorBoundary:()=>aa,foundationErrorBoundaryShadowOptions:()=>oa,foundationErrorBoundaryTemplate:()=>ta,foundationErrorDialog:()=>ca,foundationErrorDialogShadowOptions:()=>la,foundationErrorDialogStyles:()=>na,foundationFileUpload:()=>Ia,foundationFileUploadShadowOptions:()=>Aa,foundationFileUploadStyles:()=>ha,foundationFileUploadTemplate:()=>va,foundationFilter:()=>Ua,foundationFilterBar:()=>en,foundationFilterBarStyles:()=>Wa,foundationFilterBarTemplate:()=>Xa,foundationFilterStyles:()=>Ra,foundationFilterTemplate:()=>ja,foundationFlexLayout:()=>dn,foundationFlexLayoutShadowOptions:()=>sn,foundationFlexLayoutStyles:()=>an,foundationFlexLayoutTemplate:()=>nn,foundationFlipper:()=>vn,foundationFlipperShadowOptions:()=>hn,foundationFlipperStyles:()=>cn,foundationFlipperTemplate:()=>un,foundationFlyout:()=>Sn,foundationFlyoutShadowOptions:()=>wn,foundationFlyoutStyles:()=>fn,foundationFlyoutTemplate:()=>yn,foundationGridLayout:()=>En,foundationGridLayoutItem:()=>Mn,foundationGridLayoutItemShadowOptions:()=>Nn,foundationGridLayoutItemTemplate:()=>An,foundationGridLayoutShadowOptions:()=>On,foundationGridLayoutStyles:()=>kn,foundationGridLayoutTemplate:()=>_n,foundationHorizontalScroll:()=>Vn,foundationHorizontalScrollShadowOptions:()=>zn,foundationHorizontalScrollStyles:()=>Hn,foundationHorizontalScrollTemplate:()=>Pn,foundationIcon:()=>is,foundationIconShadowOptions:()=>Xn,foundationIconStyles:()=>Kn,foundationIconTemplate:()=>Zn,foundationListbox:()=>ds,foundationListboxOption:()=>vs,foundationListboxOptionShadowOptions:()=>hs,foundationListboxOptionStyles:()=>cs,foundationListboxOptionTemplate:()=>us,foundationListboxShadowOptions:()=>rs,foundationListboxStyles:()=>as,foundationListboxTemplate:()=>ns,foundationMenu:()=>ws,foundationMenuItem:()=>_s,foundationMenuItemShadowOptions:()=>Fs,foundationMenuItemStyles:()=>$s,foundationMenuItemTemplate:()=>Ss,foundationMenuShadowOptions:()=>ys,foundationMenuStyles:()=>gs,foundationMenuTemplate:()=>fs,foundationModal:()=>As,foundationModalShadowOptions:()=>Ts,foundationModalStyles:()=>Os,foundationModalTemplate:()=>Ds,foundationMultiselect:()=>js,foundationMultiselectShadowOptions:()=>Ps,foundationNotificationListener:()=>uu,foundationNotificationListenerShadowOptions:()=>du,foundationNotificationListenerTemplate:()=>ru,foundationNumberField:()=>Ks,foundationNumberFieldShadowOptions:()=>Ws,foundationNumberFieldStyles:()=>Gs,foundationNumberFieldTemplate:()=>Us,foundationPopper:()=>Ir,foundationProgress:()=>yr,foundationProgressRing:()=>zr,foundationProgressRingShadowOptions:()=>Pr,foundationProgressRingStyles:()=>Rr,foundationProgressRingTemplate:()=>Mr,foundationProgressShadowOptions:()=>fr,foundationProgressStyles:()=>mr,foundationProgressTemplate:()=>vr,foundationRadio:()=>Wr,foundationRadioGroup:()=>Jr,foundationRadioGroupShadowOptions:()=>Xr,foundationRadioGroupStyles:()=>qr,foundationRadioGroupTemplate:()=>Kr,foundationRadioShadowOptions:()=>Ur,foundationRadioStyles:()=>jr,foundationRadioTemplate:()=>Vr,foundationSearchBar:()=>pl,foundationSearchBarCombobox:()=>bl,foundationSearchBarComboboxShadowOptions:()=>gl,foundationSearchBarComboboxStyles:()=>hl,foundationSearchBarComboboxTemplate:()=>ml,foundationSearchBarShadowOptions:()=>cl,foundationSearchBarStyles:()=>el,foundationSearchBarTemplate:()=>al,foundationSegmentedControl:()=>Cl,foundationSegmentedControlShadowOptions:()=>$l,foundationSegmentedControlStyles:()=>yl,foundationSegmentedControlTemplate:()=>xl,foundationSegmentedItem:()=>Tl,foundationSegmentedItemShadowOptions:()=>Ol,foundationSegmentedItemStyles:()=>Fl,foundationSegmentedItemTemplate:()=>kl,foundationSelect:()=>Rl,foundationSelectShadowOptions:()=>Nl,foundationSelectStyles:()=>Ll,foundationSelectTemplate:()=>El,foundationSkeleton:()=>jl,foundationSkeletonShadowOptions:()=>Bl,foundationSkeletonStyles:()=>Ml,foundationSkeletonTemplate:()=>Hl,foundationSlider:()=>Zl,foundationSliderLabel:()=>od,foundationSliderLabelShadowOptions:()=>ed,foundationSliderLabelStyles:()=>Xl,foundationSliderLabelTemplate:()=>Ql,foundationSliderShadowOptions:()=>ql,foundationSliderStyles:()=>Vl,foundationSliderTemplate:()=>Yl,foundationSnackbar:()=>pd,foundationSnackbarShadowOptions:()=>cd,foundationSnackbarStyles:()=>rd,foundationSnackbarTemplate:()=>dd,foundationStackingIcons:()=>gd,foundationStackingIconsStyles:()=>hd,foundationStackingIconsTemplate:()=>md,foundationStepper:()=>Sd,foundationStepperShadowOptions:()=>wd,foundationStepperStyles:()=>fd,foundationStepperTab:()=>Ld,foundationStepperTabPanel:()=>Rd,foundationStepperTabPanelShadowOptions:()=>Nd,foundationStepperTabPanelTemplate:()=>Ed,foundationStepperTabShadowOptions:()=>Dd,foundationStepperTabStyles:()=>Cd,foundationStepperTabTemplate:()=>_d,foundationStepperTemplate:()=>yd,foundationSwitch:()=>jd,foundationSwitchShadowOptions:()=>Bd,foundationSwitchStyles:()=>Md,foundationSwitchTemplate:()=>Hd,foundationSystemHealthOverlay:()=>Dr,foundationSystemHealthOverlayShadowOptions:()=>_r,foundationSystemHealthOverlayStyles:()=>kr,foundationSystemHealthOverlayTemplate:()=>Fr,foundationTab:()=>qd,foundationTabPanel:()=>ec,foundationTabPanelShadowOptions:()=>Qd,foundationTabPanelStyles:()=>Kd,foundationTabPanelTemplate:()=>Zd,foundationTabShadowOptions:()=>Yd,foundationTabStyles:()=>Vd,foundationTabTemplate:()=>Gd,foundationTabs:()=>sc,foundationTabsShadowOptions:()=>ac,foundationTabsStyles:()=>tc,foundationTabsTemplate:()=>oc,foundationTextArea:()=>pc,foundationTextAreaShadowOptions:()=>cc,foundationTextAreaStyles:()=>rc,foundationTextAreaTemplate:()=>lc,foundationTextField:()=>xc,foundationTextFieldShadowOptions:()=>bc,foundationTextFieldStyles:()=>vc,foundationTextFieldTemplate:()=>gc,foundationToast:()=>kc,foundationToastShadowOptions:()=>Sc,foundationToastStyles:()=>wc,foundationToastTemplate:()=>$c,foundationToolbar:()=>Ec,foundationToolbarShadowOptions:()=>Tc,foundationToolbarStyles:()=>_c,foundationToolbarTemplate:()=>Oc,foundationTooltip:()=>Hc,foundationTooltipShadowOptions:()=>Rc,foundationTooltipStyles:()=>Ac,foundationTooltipTemplate:()=>Nc,foundationTreeItem:()=>Gc,foundationTreeItemShadowOptions:()=>jc,foundationTreeItemStyles:()=>Pc,foundationTreeItemTemplate:()=>Bc,foundationTreeView:()=>Zc,foundationTreeViewShadowOptions:()=>qc,foundationTreeViewStyles:()=>Uc,foundationTreeViewTemplate:()=>Yc,foundationUrlInput:()=>iu,foundationUrlInputShadowOptions:()=>eu,foundationUrlInputStyles:()=>Xc,foundationUrlInputTemplate:()=>Jc,fuiAccentPalette:()=>Io,fuiAccentSwatch:()=>No,fuiCardFillColor:()=>Ho,fuiCardForegroundColor:()=>zo,fuiDefaultCardFillColor:()=>Oo,fuiDefaultCardPalette:()=>Do,fuiFillColor:()=>Mo,fuiNeutralPalette:()=>Eo,fuiNeutralSwatch:()=>Lo,getBannerTemplate:()=>se,getCriteriaBuilder:()=>ll,getDefaultConfig:()=>qo,getDesignSystemPrefix:()=>k,getDialogTemplate:()=>mi,getDropdownMenuTemplate:()=>Ri,getErrorDialogTemplate:()=>sa,getExports:()=>Ko,getFontawesomeIconsCss:()=>qn,getNavItems:()=>gu,getPrefixedCategorizedMultiselect:()=>Ue,getPrefixedDatePicker:()=>go,getPrefixedErrorBanner:()=>Bi,getPrefixedFileUpload:()=>ma,getPrefixedFilterTemplate:()=>za,getPrefixedFlyout:()=>bn,getPrefixedMultiselect:()=>Ms,getPrefixedSearchBar:()=>il,getPrefixedSnackbar:()=>ld,getPrefixedStepper:()=>bd,getPrefixedStepperTab:()=>kd,getPrefixedUrlInput:()=>Qc,getTypeRampValue:()=>Zo,jsonConverter:()=>Lr,mapType:()=>qa,maxheight:()=>Ns,media:()=>Y,menuTemplate:()=>_,mixinFoundationFontFamily:()=>ni,multiselectStyles:()=>Is,multiselectTemplate:()=>Hs,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:()=>Bo,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:()=>Jo,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:()=>Yo,plusIcon:()=>ol,provideDesignSystem:()=>wr,provideTokens:()=>Vo,registerFoundationDesignSystem:()=>_u,singleOptionTemplate:()=>O,strokeWidth:()=>s.strokeWidth,swatchConverter:()=>Uo,tagFor:()=>hu,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:()=>ka,white:()=>So});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:()=>Po,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:()=>Ho,fuiCardForegroundColor:()=>zo,fuiFillColor:()=>Mo,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:()=>Bo,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:()=>Qo,baseLayerLuminanceValue:()=>ei,controlCornerRadiusValue:()=>oi,designUnitValue:()=>ii,directionValue:()=>ti,neutralPaletteValue:()=>Jo});var n=o(99667),s=o(41663),r=o(79292);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)}
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
}
|
|
108
108
|
`,S=(e,t)=>r.css`
|
|
109
109
|
${$(e,t)}
|
|
110
|
-
`,
|
|
110
|
+
`,C=(e,t)=>!e.composedPath().includes(t),F=(e,t)=>e.composedPath().includes(t),k=e=>e.tagName.toLowerCase().split("-")[0],_=e=>r.html`
|
|
111
111
|
<${e}-button
|
|
112
112
|
id="actiosnMenuTrigger"
|
|
113
113
|
class="actions-opener${e=>e.open?" opened":""}"
|
|
@@ -158,21 +158,21 @@
|
|
|
158
158
|
class="actions-container${e=>e.isVertical?" actions-vertical":""}"
|
|
159
159
|
part="actions-container"
|
|
160
160
|
>
|
|
161
|
-
${e=>e.getTemplate(
|
|
161
|
+
${e=>e.getTemplate(k(e))}
|
|
162
162
|
</div>
|
|
163
|
-
`;class T extends n.FoundationElement{constructor(){super(...arguments),this.isVertical=!1,this.addDefaultActions=!0,this.autoCloseOnAction=!0,this.name="Actions",this.open=!1,this.hideDisabled=!1,this.hideMenuSingleOption=!1}definitionChanged(e,t){var o;this.actions=null!==(o=null==t?void 0:t.actions)&&void 0!==o?o:[],delete this.definition.actions,t.buttonText&&(this.name=t.buttonText,delete this.definition.customButtonText),t.isVertical&&(this.isVertical=t.isVertical,delete this.definition.isVertical),t.buttonAppearance&&(this.buttonAppearance=t.buttonAppearance,delete this.definition.buttonAppearance),t.hideMenuSingleOption&&(this.hideMenuSingleOption=t.hideMenuSingleOption,delete this.definition.hideMenuSingleOption)}openChanged(){this.classNames=(0,w.A)(["visible",this.open],["hidden",!this.open])}toggleActionsMenuVisibility(){this.open=!this.open}onActionMenuItemClick(e){this.autoCloseOnAction&&(this.open=!1),e(this.rowData)}get allActions(){var e;const t=[{name:"✖",callback:()=>this.open=!1}];return this.addDefaultActions?[...null!==(e=this.actions)&&void 0!==e?e:[],...t]:this.actions}get rowData(){if(!this.definition)return;const{node:e,data:t}=this.definition;return(null==e?void 0:e.data)||t}getLabel(e){return"function"==typeof e?e(this.rowData):e}getTemplate(e){if(!this.hideMenuSingleOption)return
|
|
163
|
+
`;class T extends n.FoundationElement{constructor(){super(...arguments),this.isVertical=!1,this.addDefaultActions=!0,this.autoCloseOnAction=!0,this.name="Actions",this.open=!1,this.hideDisabled=!1,this.hideMenuSingleOption=!1}definitionChanged(e,t){var o;this.actions=null!==(o=null==t?void 0:t.actions)&&void 0!==o?o:[],delete this.definition.actions,t.buttonText&&(this.name=t.buttonText,delete this.definition.customButtonText),t.isVertical&&(this.isVertical=t.isVertical,delete this.definition.isVertical),t.buttonAppearance&&(this.buttonAppearance=t.buttonAppearance,delete this.definition.buttonAppearance),t.hideMenuSingleOption&&(this.hideMenuSingleOption=t.hideMenuSingleOption,delete this.definition.hideMenuSingleOption)}openChanged(){this.classNames=(0,w.A)(["visible",this.open],["hidden",!this.open])}toggleActionsMenuVisibility(){this.open=!this.open}onActionMenuItemClick(e){this.autoCloseOnAction&&(this.open=!1),e(this.rowData)}get allActions(){var e;const t=[{name:"✖",callback:()=>this.open=!1}];return this.addDefaultActions?[...null!==(e=this.actions)&&void 0!==e?e:[],...t]:this.actions}get rowData(){if(!this.definition)return;const{node:e,data:t}=this.definition;return(null==e?void 0:e.data)||t}getLabel(e){return"function"==typeof e?e(this.rowData):e}getTemplate(e){if(!this.hideMenuSingleOption)return _(e);const t=this.actions.filter((e=>!e.isDisabled||!e.isDisabled(this.rowData)));return this.singleOption=null,0!==t.length?1===t.length?(this.singleOption=t[0],O(e)):_(e):void 0}}(0,x.__decorate)([r.observable],T.prototype,"actions",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"is-vertical",mode:"boolean"})],T.prototype,"isVertical",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"add-default-actions",mode:"boolean"})],T.prototype,"addDefaultActions",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"auto-close-on-action",mode:"boolean"})],T.prototype,"autoCloseOnAction",void 0),(0,x.__decorate)([r.observable],T.prototype,"classNames",void 0),(0,x.__decorate)([r.observable],T.prototype,"definition",void 0),(0,x.__decorate)([r.attr],T.prototype,"name",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"open",mode:"boolean"})],T.prototype,"open",void 0),(0,x.__decorate)([r.attr],T.prototype,"buttonAppearance",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"hide-disabled",mode:"boolean"})],T.prototype,"hideDisabled",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"hide-menu-single-option",mode:"boolean"})],T.prototype,"hideMenuSingleOption",void 0),(0,x.__decorate)([r.observable],T.prototype,"singleOption",void 0);const L=T.compose({baseName:"actions-menu",styles:S,template:D}),E=(e,t)=>r.css`
|
|
164
164
|
${(0,s.anchorStyles)(e,t)}
|
|
165
|
-
`,A=(e,t)=>(0,n.anchorTemplate)(e,t);class
|
|
165
|
+
`,A=(e,t)=>(0,n.anchorTemplate)(e,t);class N extends s.Anchor{}const I={delegatesFocus:!0,mode:"open"},R={},M=N.compose(Object.assign({baseName:"anchor",template:A,styles:E,shadowOptions:I},R)),H=(e,t)=>(0,n.anchoredRegionTemplate)(e,t),P=(e,t)=>r.css`
|
|
166
166
|
${(0,s.anchoredRegionStyles)(e,t)}
|
|
167
|
-
`;class B extends s.AnchoredRegion{}const z={delegatesFocus:!0,mode:"open"},j={},V=B.compose(Object.assign({baseName:"anchored-region",template:
|
|
167
|
+
`;class B extends s.AnchoredRegion{}const z={delegatesFocus:!0,mode:"open"},j={},V=B.compose(Object.assign({baseName:"anchored-region",template:H,styles:P,shadowOptions:z},j)),G=(e,t)=>r.css`
|
|
168
168
|
${(0,s.avatarStyles)(e,t)}
|
|
169
|
-
`,
|
|
169
|
+
`,U=(e,t)=>(0,n.avatarTemplate)(e,t),Y=r.html`
|
|
170
170
|
${(0,r.when)((e=>e.imgSrc),r.html`
|
|
171
171
|
<img src="${e=>e.imgSrc}" alt="${e=>e.alt}" slot="media" class="media" part="media" />
|
|
172
172
|
`)}
|
|
173
|
-
`;class W extends s.Avatar{}const q={delegatesFocus:!0,mode:"open"},
|
|
173
|
+
`;class W extends s.Avatar{}const q={delegatesFocus:!0,mode:"open"},K={media:Y},Z=W.compose(Object.assign({baseName:"avatar",template:U,styles:G,shadowOptions:q},K)),X=(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:X,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:X,shadowOptions:ee},te));var ie=o(8434);const ae=(0,ie.createLogger)("foundation-ui"),ne=r.css`
|
|
176
176
|
@keyframes delete-animate {
|
|
177
177
|
from {
|
|
178
178
|
height: 100px;
|
|
@@ -273,22 +273,22 @@
|
|
|
273
273
|
</div>
|
|
274
274
|
</div>
|
|
275
275
|
`,re=r.html`
|
|
276
|
-
${e=>se(
|
|
276
|
+
${e=>se(k(e))}
|
|
277
277
|
`,le={mode:"open",delegatesFocus:!0};class de extends n.FoundationElement{constructor(){super(...arguments),this.dismissAnimation=""}connectedCallback(){super.connectedCallback()}dismiss(){return this.dismissAnimation="banner-delete",new Promise((e=>{this.banner.onanimationend=()=>{this.remove(),e()}}))}dismissNotification(){return(0,x.__awaiter)(this,void 0,void 0,(function*(){try{yield this.dismiss(),this.remove()}catch(e){ae.error(e)}}))}}(0,x.__decorate)([r.observable],de.prototype,"dismissAnimation",void 0),(0,x.__decorate)([r.observable],de.prototype,"notification",void 0);const ce=de.compose({baseName:"banner",styles:ne,template:re,shadowOptions:le}),ue=(e,t)=>r.css`
|
|
278
278
|
${(0,s.breadcrumbStyles)(e,t)}
|
|
279
279
|
`,pe=(e,t)=>(0,n.breadcrumbTemplate)(e,t);class he extends s.Breadcrumb{}const me=void 0,ve={},ge=he.compose(Object.assign({baseName:"breadcrumb",template:pe,styles:ue,shadowOptions:me},ve)),fe=(e,t)=>r.css`
|
|
280
280
|
${(0,s.breadcrumbItemStyles)(e,t)}
|
|
281
281
|
`,be=(e,t)=>(0,n.breadcrumbItemTemplate)(e,t);class ye extends s.BreadcrumbItem{}const xe=void 0,we={separator:"/"},$e=ye.compose(Object.assign({baseName:"breadcrumb-item",template:be,styles:fe,shadowOptions:xe},we)),Se=(e,t)=>r.css`
|
|
282
282
|
${(0,s.buttonStyles)(e,t)}
|
|
283
|
-
`,
|
|
283
|
+
`,Ce=(e,t)=>(0,n.buttonTemplate)(e,t);class Fe extends s.Button{}const ke={delegatesFocus:!0,mode:"open"},_e={},Oe=Fe.compose(Object.assign({baseName:"button",template:Ce,styles:Se,shadowOptions:ke},_e)),De=()=>r.css`
|
|
284
284
|
${s.CalendarStyles}
|
|
285
|
-
`,Te=(e,t)=>(0,n.calendarTemplate)(e,t);class Le extends s.Calendar{}const Ee={delegatesFocus:!0,mode:"open"},Ae={},
|
|
285
|
+
`,Te=(e,t)=>(0,n.calendarTemplate)(e,t);class Le extends s.Calendar{}const Ee={delegatesFocus:!0,mode:"open"},Ae={},Ne=Le.compose(Object.assign({baseName:"calendar",template:Te,styles:De,shadowOptions:Ee},Ae)),Ie=(e,t)=>r.css`
|
|
286
286
|
${(0,s.cardStyles)(e,t)}
|
|
287
287
|
:host {
|
|
288
288
|
background-color: var(--fui-card-fill-color);
|
|
289
289
|
color: var(--fui-card-foreground-color);
|
|
290
290
|
}
|
|
291
|
-
`,
|
|
291
|
+
`,Re=(e,t)=>(0,n.cardTemplate)(e,t);class Me extends s.Card{}const He=void 0,Pe={},Be=Me.compose(Object.assign({baseName:"card",template:Re,styles:Ie,shadowOptions:He},Pe));var ze;!function(e){e.BELOW="below",e.ABOVE="above"}(ze||(ze={}));const je=450,Ve=r.css`
|
|
292
292
|
.root {
|
|
293
293
|
position: relative;
|
|
294
294
|
width: 100%;
|
|
@@ -443,7 +443,7 @@
|
|
|
443
443
|
visibility: visible;
|
|
444
444
|
max-height: ${je.toString()}px;
|
|
445
445
|
}
|
|
446
|
-
`;var Ge=o(18471);const
|
|
446
|
+
`;var Ge=o(18471);const Ue=(e="foundation")=>r.html`
|
|
447
447
|
<div class="root" part="root">
|
|
448
448
|
<div class="control" part="control" @click=${e=>!e.disabled&&e.toggle()}>
|
|
449
449
|
<label
|
|
@@ -491,11 +491,11 @@
|
|
|
491
491
|
</div>
|
|
492
492
|
</div>
|
|
493
493
|
</div>
|
|
494
|
-
`,
|
|
495
|
-
${
|
|
496
|
-
`,We=void 0,qe={};class
|
|
494
|
+
`,Ye=r.html`
|
|
495
|
+
${Ue()}
|
|
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 Ze=Ke.compose(Object.assign({baseName:"categorized-multiselect",template:Ye,styles:Ve,shadowOptions:We},qe)),Xe=(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:Xe,shadowOptions:et},tt));var it=o(82940),at=o(40001),nt=o.n(at),st=o(32449),rt=o(9162),lt=o(5127),dt=o(66526),ct=o(6852),ut=o(26714);class pt extends n.FoundationElement{constructor(){super(...arguments),this.withGridInit=!0,this.isSnapshot=!1,this.maxRows=it.WJ.MAX_ROWS_250,this.maxView=it.WJ.MAX_VIEW_1000,this.reverse=!1,this.rowId="ROW_REF",this.withTimestampFormatting=!0,this.requiresFullDataRefresh=!0,this.rowsSyncedWithStream=new Map,this.dataSubWasLoggedOff=!1,this.criteriaFromFilters=new Map,this.update=new ut.X(new Map)}criteriaChanged(e,t){const o=e!==(0,st.p)(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(){super.disconnectedCallback(),this.clearData()}reset(){this.requiresFullDataRefresh=!0,this.fetchGenesisData()}fetchGenesisData(e=!0){return(0,x.__awaiter)(this,void 0,void 0,(function*(){if(this.data)return void this.syncComponentData(this.data);const t=e||!this.datasource.initialized;t||(this.connect.dataLogoff(this.sourceRef),this.clearData());if(yield this.datasource.init(this.datasourceOptions(),t))if(this.isSnapshot){const e=yield this.datasource.snapshotFiltered();this.syncComponentData(e)}else ae.debug(`requesting stream for ${this.resourceName}`),this.dataSub=this.datasource.stream.subscribe((e=>{this.sourceRef=e.SOURCE_REF;const t=e.MESSAGE_TYPE;if(t&&t===rt.Cs.LOGOFF_ACK)this.dataSubWasLoggedOff=!0;else if(this.dataSubWasLoggedOff=!1,e.ROW){const t=(0,lt.$)(e);this.handleStreamUpdate(t)}else this.handleStreamUpdate(e)}));else ae.debug(`Genesis Datasource init failed for ${this.resourceName}`)}))}initDatasource(){return(0,x.__awaiter)(this,void 0,void 0,(function*(){yield this.datasource.init(this.datasourceOptions(),!0)}))}datasourceOptions(){return{criteria:this.buildCriteria(),fields:this.fields,isSnapshot:this.isSnapshot,orderBy:this.orderBy,resourceName:this.resourceName,request:this.request,reverse:this.reverse,maxRows:this.maxRows,maxView:this.maxView}}handleStreamUpdate(e){if(!e)return;e.hasOwnProperty("REPLY")?this.applyRequestServerData(e):this.applyDataserverData(e)}applyRequestServerData(e){var t,o;if(!Array.isArray(e.REPLY)||!(null===(t=e.MESSAGE_TYPE)||void 0===t?void 0:t.startsWith("REP_")))return void ae.error("received invalid RequestServerResult",e);if(this.requiresFullDataRefresh){"ROW_REF"!==this.rowId&&(null===(o=e.REPLY)||void 0===o||o.forEach((e=>{this.rowsSyncedWithStream.set(e[this.rowId],e)})));const t=this.rowsSyncedWithStream.size>0?Array.from(this.rowsSyncedWithStream.values()):e.REPLY;return void this.syncComponentData(t)}this.handleStreamInserts(e.REPLY);const i=Array.from(this.rowsSyncedWithStream.values()).filter((t=>!e.REPLY.includes(t)));this.handleStreamDeletes(i)}applyDataserverData(e){var t,o,i,a;if(this.requiresFullDataRefresh){null===(t=e.inserts)||void 0===t||t.forEach((e=>{this.rowsSyncedWithStream.set(e[this.rowId],e)}));const o=Array.from(this.rowsSyncedWithStream.values());this.syncComponentData(o)}else(null===(o=e.inserts)||void 0===o?void 0:o.length)>0&&this.handleStreamInserts(e.inserts),(null===(i=e.deletes)||void 0===i?void 0:i.length)>0&&this.handleStreamDeletes(e.deletes),(null===(a=e.updates)||void 0===a?void 0:a.length)>0&&this.handleStreamUpdates(e.updates)}buildCriteria(){var e;const t=(null===(e=this.criteria)||void 0===e?void 0:e.split(";"))||[];return(0,st.p)(t.join(" && "),";")}setFilter(e,t){this.criteriaFromFilters.set(e,t),this.update.next(this.criteriaFromFilters)}removeFilter(e){this.criteriaFromFilters.delete(e),this.update.next(this.criteriaFromFilters)}}(0,x.__decorate)([dt.lj],pt.prototype,"connect",void 0),(0,x.__decorate)([ct.Yh],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={AND:e=>yt(mt.AND)(e),OR:e=>yt(mt.OR)(e),NOT:e=>yt(mt.NOT)(e),GT:e=>yt(mt.GT)(e),GE:e=>yt(mt.GE)(e),LT:e=>yt(mt.LT)(e),LE:e=>yt(mt.LE)(e),NE:e=>yt(mt.NE)(e),EQ:e=>yt(mt.EQ)(e),equals:e=>`${e.field}.equals(${bt(e)})`,equalsIgnoreCase:e=>`${e.field}.equalsIgnoreCase(${bt(e)})`,contains:e=>`Expr.contains(${e.field}, ${bt(e)})`,fieldContains:e=>`${e.field}.contains(${bt(e)})`,containsIgnoreCase:e=>`Expr.containsIgnoreCase(${e.field}, ${bt(e)})`,dateIsEqual:e=>`Expr.dateIsEqual(${e.field}, ${bt(e)})`,dateIsGreaterEqual:e=>`Expr.dateIsGreaterEqual(${e.field}, ${bt(e)})`,dateIsLessEqual:e=>`Expr.dateIsLessEqual(${e.field}, ${bt(e)})`};class wt{constructor(e){this.serialiser=xt.EQ,this.build=()=>{if(!this.field)throw new Error("Missing required param 'field'");if(void 0===this.value)throw new Error("Missing required param 'value'");if(!this.serialiser)throw new Error("Missing required param 'serialise'");return{field:this.field,value:this.value,serialiser:this.serialiser,params:this.params,valueGetter:this.valueGetter,group:this.group}},e&&(this.field=e.field,this.value=e.value,this.serialiser=e.serialiser,this.params=e.params,this.valueGetter=e.valueGetter,this.group=e.group)}withField(e){return this.field=e,this}withValue(e){return this.value=e,this}withSerialiser(e){return this.serialiser=e,this}withParams(e){return this.params=e,this}withValueGetter(e){return this.valueGetter=e,this}withGroup(e){return this.group=e,this}}function $t(e,t){var o;const i=new ft;i.withExpression((new wt).withField(null!==(o=e.labelField)&&void 0!==o?o:e.valueField).withValue(t).withSerialiser(xt.containsIgnoreCase).build()),e.criteria=i.build()}function St(e,t){var o;const i=null!==(o=e.labelField)&&void 0!==o?o:e.valueField;e.request={[i]:`${t}*`},e.fetchGenesisData(!1)}var Ft;let _t=Ft=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:`${C(this.select)}-option`,this.select.addEventListener("change",(e=>{var t;const o=null===(t=this.options)||void 0===t?void 0:t.find((t=>t.label===e.target.value));this.select.$emit("value-change",o)})),this.select&&this.valueField&&(this.resourceName&&this.connect.isConnected||this.data)&&(this.select instanceof s.Combobox&&this.select.async&&this.initialSelectedValue?this.asyncModeIntialization():this.fetchGenesisData()),this.valueField||ae.warn('Specify field for values in options (e.g value-field="VALUE") and optionally field for label (e.g label-field="NAME")')}))}asyncModeIntialization(){return(0,x.__awaiter)(this,void 0,void 0,(function*(){yield this.datasource.init(this.datasourceOptions(),!0);const e=this.datasource.resourceType;e===it._g.DATASERVER&&$t(this,this.initialSelectedValue),e===it._g.REQUEST_SERVER&&St(this,this.initialSelectedValue)}))}clearData(){Array.from(this.select.children).forEach((e=>{e instanceof Ft||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"})],_t.prototype,"labelField",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"option-element"})],_t.prototype,"optionElement",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"value-field"})],_t.prototype,"valueField",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"empty-data-label"})],_t.prototype,"emptyDataLabel",void 0),(0,x.__decorate)([r.observable],_t.prototype,"labelFormatter",void 0),(0,x.__decorate)([r.observable],_t.prototype,"initialSelectedValue",void 0),_t=Ft=(0,x.__decorate)([(0,r.customElement)({name:"options-datasource"})],_t);const Ct=(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:Xe,shadowOptions:et},tt));var it=o(82940),at=o(40001),nt=o.n(at),st=o(32449),rt=o(9162),lt=o(5127),dt=o(86255),ct=o(6852),ut=o(26714);class pt extends n.FoundationElement{constructor(){super(...arguments),this.withGridInit=!0,this.isSnapshot=!1,this.maxRows=it.WJ.MAX_ROWS_250,this.maxView=it.WJ.MAX_VIEW_1000,this.reverse=!1,this.rowId="ROW_REF",this.withTimestampFormatting=!0,this.requiresFullDataRefresh=!0,this.rowsSyncedWithStream=new Map,this.dataSubWasLoggedOff=!1,this.criteriaFromFilters=new Map,this.update=new ut.X(new Map)}criteriaChanged(e,t){const o=e!==(0,st.p)(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=>{this.sourceRef=e.SOURCE_REF;const t=e.MESSAGE_TYPE;if(t&&t===rt.Cs.LOGOFF_ACK)this.dataSubWasLoggedOff=!0;else if(this.dataSubWasLoggedOff=!1,e.ROW){const t=(0,lt.$)(e);this.handleStreamUpdate(t)}else this.handleStreamUpdate(e)}));else ae.debug(`Genesis Datasource init failed for ${this.resourceName}`)}))}initDatasource(){return(0,x.__awaiter)(this,void 0,void 0,(function*(){yield this.datasource.init(this.datasourceOptions(),!0)}))}datasourceOptions(){return{criteria:this.buildCriteria(),fields:this.fields,isSnapshot:this.isSnapshot,orderBy:this.orderBy,resourceName:this.resourceName,request:this.request,reverse:this.reverse,maxRows:this.maxRows,maxView:this.maxView}}handleStreamUpdate(e){if(!e)return;e.hasOwnProperty("REPLY")?this.applyRequestServerData(e):this.applyDataserverData(e)}applyRequestServerData(e){var t,o;if(!Array.isArray(e.REPLY)||!(null===(t=e.MESSAGE_TYPE)||void 0===t?void 0:t.startsWith("REP_")))return void ae.error("received invalid RequestServerResult",e);if(this.requiresFullDataRefresh){"ROW_REF"!==this.rowId&&(null===(o=e.REPLY)||void 0===o||o.forEach((e=>{this.rowsSyncedWithStream.set(e[this.rowId],e)})));const t=this.rowsSyncedWithStream.size>0?Array.from(this.rowsSyncedWithStream.values()):e.REPLY;return void this.syncComponentData(t)}this.handleStreamInserts(e.REPLY);const i=Array.from(this.rowsSyncedWithStream.values()).filter((t=>!e.REPLY.includes(t)));this.handleStreamDeletes(i)}applyDataserverData(e){var t,o,i,a;if(this.requiresFullDataRefresh){null===(t=e.inserts)||void 0===t||t.forEach((e=>{this.rowsSyncedWithStream.set(e[this.rowId],e)}));const o=Array.from(this.rowsSyncedWithStream.values());this.syncComponentData(o)}else(null===(o=e.inserts)||void 0===o?void 0:o.length)>0&&this.handleStreamInserts(e.inserts),(null===(i=e.deletes)||void 0===i?void 0:i.length)>0&&this.handleStreamDeletes(e.deletes),(null===(a=e.updates)||void 0===a?void 0:a.length)>0&&this.handleStreamUpdates(e.updates)}buildCriteria(){var e;const t=(null===(e=this.criteria)||void 0===e?void 0:e.split(";"))||[];return(0,st.p)(t.join(" && "),";")}setFilter(e,t){this.criteriaFromFilters.set(e,t),this.update.next(this.criteriaFromFilters)}removeFilter(e){this.criteriaFromFilters.delete(e),this.update.next(this.criteriaFromFilters)}}(0,x.__decorate)([dt.lj],pt.prototype,"connect",void 0),(0,x.__decorate)([ct.Yh],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={AND:e=>yt(mt.AND)(e),OR:e=>yt(mt.OR)(e),NOT:e=>yt(mt.NOT)(e),GT:e=>yt(mt.GT)(e),GE:e=>yt(mt.GE)(e),LT:e=>yt(mt.LT)(e),LE:e=>yt(mt.LE)(e),NE:e=>yt(mt.NE)(e),EQ:e=>yt(mt.EQ)(e),equals:e=>`${e.field}.equals(${bt(e)})`,equalsIgnoreCase:e=>`${e.field}.equalsIgnoreCase(${bt(e)})`,contains:e=>`Expr.contains(${e.field}, ${bt(e)})`,fieldContains:e=>`${e.field}.contains(${bt(e)})`,containsIgnoreCase:e=>`Expr.containsIgnoreCase(${e.field}, ${bt(e)})`,dateIsEqual:e=>`Expr.dateIsEqual(${e.field}, ${bt(e)})`,dateIsGreaterEqual:e=>`Expr.dateIsGreaterEqual(${e.field}, ${bt(e)})`,dateIsLessEqual:e=>`Expr.dateIsLessEqual(${e.field}, ${bt(e)})`};class wt{constructor(e){this.serialiser=xt.EQ,this.build=()=>{if(!this.field)throw new Error("Missing required param 'field'");if(void 0===this.value)throw new Error("Missing required param 'value'");if(!this.serialiser)throw new Error("Missing required param 'serialise'");return{field:this.field,value:this.value,serialiser:this.serialiser,params:this.params,valueGetter:this.valueGetter,group:this.group}},e&&(this.field=e.field,this.value=e.value,this.serialiser=e.serialiser,this.params=e.params,this.valueGetter=e.valueGetter,this.group=e.group)}withField(e){return this.field=e,this}withValue(e){return this.value=e,this}withSerialiser(e){return this.serialiser=e,this}withParams(e){return this.params=e,this}withValueGetter(e){return this.valueGetter=e,this}withGroup(e){return this.group=e,this}}function $t(e,t){var o;const i=new ft;i.withExpression((new wt).withField(null!==(o=e.labelField)&&void 0!==o?o:e.valueField).withValue(t).withSerialiser(xt.containsIgnoreCase).build()),e.criteria=i.build()}function St(e,t){var o;const i=null!==(o=e.labelField)&&void 0!==o?o:e.valueField;e.request={[i]:`${t}*`},e.fetchGenesisData(!1)}var Ct;let Ft=Ct=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:`${k(this.select)}-option`,this.select.addEventListener("change",(e=>{var t;const o=null===(t=this.options)||void 0===t?void 0:t.find((t=>t.label===e.target.value));this.select.$emit("value-change",o)})),this.select&&this.valueField&&(this.resourceName&&this.connect.isConnected||this.data)&&(this.select instanceof s.Combobox&&this.select.async&&this.initialSelectedValue?this.asyncModeIntialization():this.fetchGenesisData()),this.valueField||ae.warn('Specify field for values in options (e.g value-field="VALUE") and optionally field for label (e.g label-field="NAME")')}))}asyncModeIntialization(){return(0,x.__awaiter)(this,void 0,void 0,(function*(){yield this.datasource.init(this.datasourceOptions(),!0);const e=this.datasource.resourceType;e===it._g.DATASERVER&&$t(this,this.initialSelectedValue),e===it._g.REQUEST_SERVER&&St(this,this.initialSelectedValue)}))}clearData(){Array.from(this.select.children).forEach((e=>{e instanceof Ct||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=Ct=(0,x.__decorate)([(0,r.customElement)({name:"options-datasource"})],Ft);const kt=(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
|
+
`,_t=(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 Ot,Dt;class Tt extends s.Combobox{constructor(){super(...arguments),Ot.set(this,void 0),Dt.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(
|
|
563
|
+
`;var Ot,Dt;class Tt extends s.Combobox{constructor(){super(...arguments),Ot.set(this,void 0),Dt.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(F(e,this.indicator))return this.open=!this.open,void(this.open&&this.control.focus());if(!this.ignoreInputClick||!F(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,Dt,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,Dt,"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,Ot,"f")||(0,x.__classPrivateFieldSet)(this,Ot,this.shadowRoot.querySelector('[part="indicator"]'),"f"),(0,x.__classPrivateFieldGet)(this,Ot,"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 Ft));if(e.length>0){const t=e[0].datasource.resourceType;t===it._g.DATASERVER&&$t(e[0],this.control.value),t===it._g.REQUEST_SERVER&&St(e[0],this.control.value)}else ae.warn("Options-datasource is not connected. Please add a datasource to use this functionality.")}}Ot=new WeakMap,Dt=new WeakMap,(0,x.__decorate)([r.observable],Tt.prototype,"slottedDatasource",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],Tt.prototype,"async",void 0),(0,x.__decorate)([r.attr],Tt.prototype,"debounce",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean",attribute:"case-sensitive"})],Tt.prototype,"caseSensitive",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean",attribute:"ignore-input-click"})],Tt.prototype,"ignoreInputClick",void 0);const Lt={delegatesFocus:!0,mode:"open"},Et={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 '},At=Tt.compose(Object.assign({baseName:"combobox",template:_t,styles:kt,shadowOptions:Lt},Et));var Nt=o(75527);const It=(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
|
+
`,Rt=r.html`
|
|
615
615
|
<div class=${e=>(0,w.A)(["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 Mt 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)([dt.lj],Mt.prototype,"connect",void 0),(0,x.__decorate)([Nt.z],Mt.prototype,"session",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean",attribute:"show-label"})],Mt.prototype,"showLabel",void 0),(0,x.__decorate)([r.observable],Mt.prototype,"label",void 0),(0,x.__decorate)([r.observable],Mt.prototype,"colour",void 0);const Ht=Mt.compose({baseName:"connection-indicator",template:Rt,styles:It}),Pt=(e,t)=>r.css`
|
|
620
620
|
${(0,s.dataGridStyles)(e,t)}
|
|
621
|
-
`,Bt=(e,t)=>(0,n.dataGridTemplate)(e,t);class zt extends s.DataGrid{}const jt=void 0,Vt={},Gt=zt.compose(Object.assign({baseName:"data-grid",template:Bt,styles:
|
|
621
|
+
`,Bt=(e,t)=>(0,n.dataGridTemplate)(e,t);class zt extends s.DataGrid{}const jt=void 0,Vt={},Gt=zt.compose(Object.assign({baseName:"data-grid",template:Bt,styles:Pt,shadowOptions:jt},Vt)),Ut=(e,t)=>r.css`
|
|
622
622
|
${(0,s.dataGridCellStyles)(e,t)}
|
|
623
|
-
`;class
|
|
623
|
+
`;class Yt extends s.DataGridCell{}const Wt=void 0,qt={},Kt=Yt.compose(Object.assign({baseName:"data-grid-cell",template:n.dataGridCellTemplate,styles:Ut,shadowOptions:Wt},qt)),Zt=(e,t)=>r.css`
|
|
624
624
|
${(0,s.dataGridRowStyles)(e,t)}
|
|
625
|
-
`;class Xt extends s.DataGridRow{}const Qt=void 0,Jt={},eo=Xt.compose(Object.assign({baseName:"data-grid-row",template:n.dataGridRowTemplate,styles:
|
|
625
|
+
`;class Xt extends s.DataGridRow{}const Qt=void 0,Jt={},eo=Xt.compose(Object.assign({baseName:"data-grid-row",template:n.dataGridRowTemplate,styles:Zt,shadowOptions:Qt},Jt));var to=o(87530),oo=o.n(to),io=o(55466),ao=o.n(io),no=o(82839),so=o.n(no),ro=o(55477),lo=o.n(ro),co=o(78113),uo=o.n(co);class po{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()}}oo().extend(uo());class ho{constructor(e=null,t="default"){const o=new po(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+=oo()(o.date).isLeapYear()?1:0)}getDay(e){return new po(new Date(this.year,this.number-1,e),this.lang)}}oo().extend(uo());class mo{constructor(e=null,t=null,o="default"){this.weekDays=Array.from({length:7}),this.today=new po(null,o),this.year=null!=e?e:this.today.year,this.month=new ho(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 ho(new Date(this.year,e-1),this.lang)}getPreviousMonth(){return 1===this.month.number?new ho(new Date(this.year-1,11),this.lang):new ho(new Date(this.year,this.month.number-2),this.lang)}getNextMonth(){return 1===this.month.number?new ho(new Date(this.year+1,0),this.lang):new ho(new Date(this.year,this.month.number+2),this.lang)}goToDate(e,t){this.month=new ho(new Date(t,e-1),this.lang),this.year=t}goToNextYear(){this.year+=1,this.month=new ho(new Date(this.year,0),this.lang)}goToPreviousYear(){this.year-=1,this.month=new ho(new Date(this.year,11),this.lang)}goToNextMonth(){if(12===this.month.number)return this.goToNextYear();this.month=new ho(new Date(this.year,this.month.number+1-1),this.lang)}goToPreviousMonth(){if(1===this.month.number)return this.goToPreviousYear();this.month=new ho(new Date(this.year,this.month.number-1-1),this.lang)}}const vo=r.css`
|
|
626
626
|
:host {
|
|
627
627
|
position: relative;
|
|
628
628
|
}
|
|
@@ -801,15 +801,15 @@
|
|
|
801
801
|
</div>
|
|
802
802
|
</div>
|
|
803
803
|
`,fo=r.html`
|
|
804
|
-
${e=>go(
|
|
805
|
-
`,bo=void 0,yo={};class xo extends n.FoundationElement{formatChanged(e,t){t&&this.calendar&&(this.formatDate=oo()(this.currentDate.Date).format(t))}valueChanged(e,t){if(t&&this.calendar){const e=oo()().localeData().longDateFormat("L");this.currentDate=new po(oo()(t,e).toDate(),this.lang),this.calendar.goToDate(this.currentDate.monthNumber,this.currentDate.year),this.formatDate=oo()(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",oo().extend(ao()),oo().extend(lo()),oo().extend(so()),this.substringNumber=3;const e=this.getAttribute("value"),t=e?oo()(e,"MM-DD-YYYY"):oo()();this.currentDate=new po(t.toDate(),this.lang),this.calendar=new mo(this.currentDate.year,this.currentDate.monthNumber,this.lang),this.value=oo()(this.currentDate.Date).format("MM-DD-YYYY")}connectedCallback(){super.connectedCallback(),this.currentMonth=this.calendar.month.name,this.currentYear=this.calendar.year,this.formatDate=oo()(this.currentDate.Date).format(this.format),this.toggleButton.addEventListener("click",(()=>this.toggleCalendar())),this.prevBtn.addEventListener("click",(()=>this.prevMonth())),this.nextBtn.addEventListener("click",(()=>this.nextMonth())),this.monthList=this.getMonthDaysGrid()}updateHeaderText(){this.currentMonth=this.calendar.month.name,this.currentYear=this.calendar.year}toggleCalendar(){this.visible=!this.visible,this.toggleVisibility(),this.isCurrentCalendarMonth()||(this.calendar.goToDate(this.currentDate.monthNumber,this.currentDate.year),this.updateHeaderText())}toggleVisibility(){this.calendarDropdownClasses=(0,w.A)(["visible",this.visible],this.position)}isSelectedDate(e){return oo()(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){oo()(e.Date).isSame(this.currentDate.Date)||(this.currentDate=e,e.monthNumber!==this.calendar.month.number&&this.prevMonth(),this.formatDate=oo()(this.currentDate.Date).format(this.format),this.value=oo()(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],xo.prototype,"format",void 0),(0,x.__decorate)([r.attr],xo.prototype,"lang",void 0),(0,x.__decorate)([r.attr],xo.prototype,"visible",void 0),(0,x.__decorate)([r.attr],xo.prototype,"position",void 0),(0,x.__decorate)([r.attr],xo.prototype,"label",void 0),(0,x.__decorate)([r.attr],xo.prototype,"value",void 0),(0,x.__decorate)([r.observable],xo.prototype,"currentDate",void 0),(0,x.__decorate)([r.observable],xo.prototype,"currentMonth",void 0),(0,x.__decorate)([r.observable],xo.prototype,"currentYear",void 0),(0,x.__decorate)([r.observable],xo.prototype,"calendarDropdownClasses",void 0),(0,x.__decorate)([r.observable],xo.prototype,"formatDate",void 0),(0,x.__decorate)([r.observable],xo.prototype,"monthList",void 0);const wo=xo.compose(Object.assign({baseName:"date-picker",styles:vo,template:fo,shadowOptions:bo},yo));var $o=o(43556);const So=s.SwatchRGB.create(1,1,1),
|
|
804
|
+
${e=>go(k(e))}
|
|
805
|
+
`,bo=void 0,yo={};class xo extends n.FoundationElement{formatChanged(e,t){t&&this.calendar&&(this.formatDate=oo()(this.currentDate.Date).format(t))}valueChanged(e,t){if(t&&this.calendar){const e=oo()().localeData().longDateFormat("L");this.currentDate=new po(oo()(t,e).toDate(),this.lang),this.calendar.goToDate(this.currentDate.monthNumber,this.currentDate.year),this.formatDate=oo()(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",oo().extend(ao()),oo().extend(lo()),oo().extend(so()),this.substringNumber=3;const e=this.getAttribute("value"),t=e?oo()(e,"MM-DD-YYYY"):oo()();this.currentDate=new po(t.toDate(),this.lang),this.calendar=new mo(this.currentDate.year,this.currentDate.monthNumber,this.lang),this.value=oo()(this.currentDate.Date).format("MM-DD-YYYY")}connectedCallback(){super.connectedCallback(),this.currentMonth=this.calendar.month.name,this.currentYear=this.calendar.year,this.formatDate=oo()(this.currentDate.Date).format(this.format),this.toggleButton.addEventListener("click",(()=>this.toggleCalendar())),this.prevBtn.addEventListener("click",(()=>this.prevMonth())),this.nextBtn.addEventListener("click",(()=>this.nextMonth())),this.monthList=this.getMonthDaysGrid()}updateHeaderText(){this.currentMonth=this.calendar.month.name,this.currentYear=this.calendar.year}toggleCalendar(){this.visible=!this.visible,this.toggleVisibility(),this.isCurrentCalendarMonth()||(this.calendar.goToDate(this.currentDate.monthNumber,this.currentDate.year),this.updateHeaderText())}toggleVisibility(){this.calendarDropdownClasses=(0,w.A)(["visible",this.visible],this.position)}isSelectedDate(e){return oo()(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){oo()(e.Date).isSame(this.currentDate.Date)||(this.currentDate=e,e.monthNumber!==this.calendar.month.number&&this.prevMonth(),this.formatDate=oo()(this.currentDate.Date).format(this.format),this.value=oo()(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],xo.prototype,"format",void 0),(0,x.__decorate)([r.attr],xo.prototype,"lang",void 0),(0,x.__decorate)([r.attr],xo.prototype,"visible",void 0),(0,x.__decorate)([r.attr],xo.prototype,"position",void 0),(0,x.__decorate)([r.attr],xo.prototype,"label",void 0),(0,x.__decorate)([r.attr],xo.prototype,"value",void 0),(0,x.__decorate)([r.observable],xo.prototype,"currentDate",void 0),(0,x.__decorate)([r.observable],xo.prototype,"currentMonth",void 0),(0,x.__decorate)([r.observable],xo.prototype,"currentYear",void 0),(0,x.__decorate)([r.observable],xo.prototype,"calendarDropdownClasses",void 0),(0,x.__decorate)([r.observable],xo.prototype,"formatDate",void 0),(0,x.__decorate)([r.observable],xo.prototype,"monthList",void 0);const wo=xo.compose(Object.assign({baseName:"date-picker",styles:vo,template:fo,shadowOptions:bo},yo));var $o=o(43556);const So=s.SwatchRGB.create(1,1,1),Co=s.SwatchRGB.create(0,0,0),Fo=(0,$o.parseColorHexRGB)("#585858"),ko=s.SwatchRGB.create(Fo.r,Fo.g,Fo.b),_o=(0,$o.parseColorHexRGB)("#ffffff"),Oo=s.SwatchRGB.create(_o.r,_o.g,_o.b),Do=s.PaletteRGB.from(Oo),To=(0,$o.parseColorHexRGB)("#eeeeee"),Lo=s.SwatchRGB.create(To.r,To.g,To.b),Eo=s.PaletteRGB.from(Lo),Ao=(0,$o.parseColorHexRGB)("#08c3a5"),No=s.SwatchRGB.create(Ao.r,Ao.g,Ao.b),Io=s.PaletteRGB.from(No),{create:Ro}=n.DesignToken,Mo=Ro("fui-fill-color").withDefault(ko),Ho=Ro({name:"card-fill-color",cssCustomPropertyName:"fui-card-fill-color"}).withDefault(Oo),Po=14;function Bo(e,t){return e.colorContrast(t,Po)}const zo=Ro({name:"card-foreground-color",cssCustomPropertyName:"fui-card-foreground-color"}).withDefault((e=>Bo(Ro("fui-card-palette").withDefault(Do).getValueFor(e),Ho.getValueFor(e))));var jo=o(47823);const Vo=(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 Go(e){return(t,o)=>{t[o+"Changed"]=function(t,o){null!=o?e.setValueFor(this,o):e.deleteValueFor(this)}}}const Uo={toView:e=>null==e?null:null==e?void 0:e.toColorString(),fromView(e){if(null==e)return null;const t=(0,$o.parseColorHexRGB)(e);return t?s.SwatchRGB.create(t.r,t.g,t.b):null}},Yo=e=>s.PaletteRGB.from(s.SwatchRGB.from((0,$o.parseColorHexRGB)(e))),Wo=["baseClass","baseName","shadowOptions","styles","template"],qo=(e,t=Wo)=>Object.keys(e).filter((e=>!t.includes(e))).reduce(((t,o)=>(t[o]=e[o],t)),{}),Ko=e=>{const{definition:t}=e(),{shadowOptions:o,styles:i,template:a}=t;return{shadowOptions:o,styles:i,template:a,defaultConfig:qo(t)}},Zo=(e,t)=>{const o=e.match(/^(\d+)([a-z]+)/i),i=o[1],a=o[2];return Number(i)+t+a},Xo=(e,t)=>{const o=t.design_tokens;s.accentPalette.setValueFor(e,Yo(o.color.accent.$value)),s.neutralPalette.setValueFor(e,Yo(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,Zo(i,jo.Yd.minusOne)),s.typeRampMinus1LineHeight.setValueFor(e,Zo(a,jo.Yd.minusOne)),s.typeRampMinus2FontSize.setValueFor(e,Zo(i,jo.Yd.minusTwo)),s.typeRampMinus2LineHeight.setValueFor(e,Zo(a,jo.Yd.minusTwo)),s.typeRampPlus1FontSize.setValueFor(e,Zo(i,jo.Yd.plusOne)),s.typeRampPlus1LineHeight.setValueFor(e,Zo(a,jo.Yd.plusOne)),s.typeRampPlus2FontSize.setValueFor(e,Zo(i,jo.Yd.plusTwo)),s.typeRampPlus2LineHeight.setValueFor(e,Zo(a,jo.Yd.plusTwo)),s.typeRampPlus3FontSize.setValueFor(e,Zo(i,jo.Yd.plusThree)),s.typeRampPlus3LineHeight.setValueFor(e,Zo(a,jo.Yd.plusThree)),s.typeRampPlus4FontSize.setValueFor(e,Zo(i,jo.Yd.plusFour)),s.typeRampPlus4LineHeight.setValueFor(e,Zo(a,jo.Yd.plusFour)),s.typeRampPlus5FontSize.setValueFor(e,Zo(i,jo.Yd.plusFive)),s.typeRampPlus5LineHeight.setValueFor(e,Zo(a,jo.Yd.plusFive)),s.typeRampPlus6FontSize.setValueFor(e,Zo(i,jo.Yd.plusSix)),s.typeRampPlus6LineHeight.setValueFor(e,Zo(a,jo.Yd.plusSix))},Qo=Yo("#08c3a5"),Jo=Yo("#eeeeee"),ei=s.StandardLuminance.DarkMode;const ti=o(5598).N.ltr,oi=4,ii=4;var ai=o(67973);const ni=(e="normal",t="normal")=>`\n font-family: ${s.bodyFont};\n font-style: ${e};\n font-weight: ${t};\n`,si=r.css`
|
|
806
806
|
${(0,n.display)("flex")}
|
|
807
807
|
:host {
|
|
808
808
|
flex: 1;
|
|
809
809
|
}
|
|
810
810
|
`,ri=r.css`
|
|
811
811
|
:host {
|
|
812
|
-
background-color: ${
|
|
812
|
+
background-color: ${Mo};
|
|
813
813
|
}
|
|
814
814
|
`.withBehaviors((0,n.forcedColorsStylesheetBehavior)(r.css`
|
|
815
815
|
:host {
|
|
@@ -821,7 +821,7 @@
|
|
|
821
821
|
${e.name} ${"h"+t} {
|
|
822
822
|
margin: 0;
|
|
823
823
|
}
|
|
824
|
-
`;class di extends s.DesignSystemProvider{constructor(){super(),Vo(i,a,this)}}(0,x.__decorate)([(0,r.attr)({attribute:"card-fill-color",converter:
|
|
824
|
+
`;class di extends s.DesignSystemProvider{constructor(){super(),Vo(i,a,this)}}(0,x.__decorate)([(0,r.attr)({attribute:"card-fill-color",converter:Uo}),Go(Ho)],di.prototype,"cardFillColor",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"card-foreground-color",converter:Uo}),Go(zo)],di.prototype,"cardForegroundColor",void 0);const ci=di.compose({baseName:"design-system-provider",template:r.html`
|
|
825
825
|
<slot></slot>
|
|
826
826
|
`,styles:e=>{const t=(e=>r.css`
|
|
827
827
|
${li(e,"1")}
|
|
@@ -929,12 +929,12 @@
|
|
|
929
929
|
</div>
|
|
930
930
|
</dialog>
|
|
931
931
|
`,vi=r.html`
|
|
932
|
-
${e=>mi(
|
|
932
|
+
${e=>mi(k(e))}
|
|
933
933
|
`,gi={mode:"open",delegatesFocus:!0},fi={};class bi extends n.FoundationElement{constructor(){super(...arguments),this.position="centre",this.showCloseIcon=!0}notificationChanged(){this.notification&&(this.showCloseIcon=!1)}connectedCallback(){super.connectedCallback(),window.HTMLDialogElement||ui.Z.registerDialog(this.mainElement),this.mainElement.addEventListener("close",(()=>{this.onCloseCallback&&this.onCloseCallback()}))}get open(){return this.mainElement.hasAttribute("open")}close(){this.mainElement.close()}dismiss(){var e,t,o,i;(null===(i=null===(o=null===(t=null===(e=this.notification)||void 0===e?void 0:e.config)||void 0===t?void 0:t.dialog)||void 0===o?void 0:o.dismissingAction)||void 0===i?void 0:i.action)&&this.notification.config.dialog.dismissingAction.action(),this.closeDialog()}closeDialog(){try{this.mainElement.close(),this.remove()}catch(e){ae.error(e)}}}(0,x.__decorate)([r.observable],bi.prototype,"notification",void 0),(0,x.__decorate)([r.attr],bi.prototype,"position",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean",attribute:"show-close-icon"})],bi.prototype,"showCloseIcon",void 0),(0,x.__decorate)([r.observable],bi.prototype,"onShowCallback",void 0),(0,x.__decorate)([r.observable],bi.prototype,"onCloseCallback",void 0),(0,x.__decorate)([r.volatile],bi.prototype,"open",null);class yi extends bi{show(){this.onShowCallback&&this.onShowCallback(),this.mainElement.show()}}const xi=yi.compose(Object.assign({baseName:"dialog",styles:pi,template:vi,shadowOptions:gi},fi)),wi=(e,t)=>r.css`
|
|
934
934
|
${(0,s.disclosureStyles)(e,t)}
|
|
935
|
-
`,$i=(e,t)=>(0,n.disclosureTemplate)(e,t);class Si extends n.Disclosure{}const
|
|
935
|
+
`,$i=(e,t)=>(0,n.disclosureTemplate)(e,t);class Si extends n.Disclosure{}const Ci=void 0,Fi={},ki=Si.compose(Object.assign({baseName:"disclosure",template:$i,styles:wi,shadowOptions:Ci},Fi)),_i=(e,t)=>r.css`
|
|
936
936
|
${(0,s.dividerStyles)(e,t)}
|
|
937
|
-
`,Oi=(e,t)=>(0,n.dividerTemplate)(e,t);class Di extends n.Divider{}const Ti=void 0,Li={},Ei=Di.compose(Object.assign({baseName:"divider",template:Oi,styles:
|
|
937
|
+
`,Oi=(e,t)=>(0,n.dividerTemplate)(e,t);class Di extends n.Divider{}const Ti=void 0,Li={},Ei=Di.compose(Object.assign({baseName:"divider",template:Oi,styles:_i,shadowOptions:Ti},Li)),Ai=(e,t,o)=>r.css`
|
|
938
938
|
:host {
|
|
939
939
|
--dropdown-opener-height-multiplier: 0.7px;
|
|
940
940
|
--menu-item-height-multiplier: 0.7px;
|
|
@@ -997,9 +997,9 @@
|
|
|
997
997
|
var(--menu-item-height-multiplier)
|
|
998
998
|
);
|
|
999
999
|
}
|
|
1000
|
-
`,
|
|
1000
|
+
`,Ni=(e,t)=>r.css`
|
|
1001
1001
|
${Ai("foundation",e,t)}
|
|
1002
|
-
`,
|
|
1002
|
+
`,Ii=(e,t)=>r.html`
|
|
1003
1003
|
${(0,r.repeat)((()=>e),r.html`
|
|
1004
1004
|
${(0,r.when)((e=>e.isDisabled&&e.isDisabled()),r.html`
|
|
1005
1005
|
<${t}-menu-item class="menu-item" disabled>${e=>e.name}</${t}-menu-item>
|
|
@@ -1020,12 +1020,12 @@
|
|
|
1020
1020
|
`)}
|
|
1021
1021
|
${e=>e.name}
|
|
1022
1022
|
${(0,r.when)((e=>e.submenu),r.html`
|
|
1023
|
-
<${t}-menu>${e=>
|
|
1023
|
+
<${t}-menu>${e=>Ii(e.submenu,t)}</${t}-menu>
|
|
1024
1024
|
`)}
|
|
1025
1025
|
</${t}-menu-item>
|
|
1026
1026
|
`)}
|
|
1027
1027
|
`)}
|
|
1028
|
-
`,
|
|
1028
|
+
`,Ri=e=>r.html`
|
|
1029
1029
|
<div class="actions-container" part="actions-container">
|
|
1030
1030
|
<${e}-button
|
|
1031
1031
|
id="actiosnMenuTrigger"
|
|
@@ -1042,12 +1042,12 @@
|
|
|
1042
1042
|
class="actions-menu ${e=>e.classNames}"
|
|
1043
1043
|
part="actions-menu"
|
|
1044
1044
|
>
|
|
1045
|
-
${t=>
|
|
1045
|
+
${t=>Ii(t.allItems,e)}
|
|
1046
1046
|
</${e}-menu>
|
|
1047
1047
|
</div>
|
|
1048
|
-
`,
|
|
1049
|
-
${e=>
|
|
1050
|
-
`;class
|
|
1048
|
+
`,Mi=r.html`
|
|
1049
|
+
${e=>Ri(k(e))}
|
|
1050
|
+
`;class Hi 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.A)(["hidden",!this.open]),this.open?document.addEventListener("mousedown",this.clickOutside):document.removeEventListener("mousedown",this.clickOutside)}toggleDropdownMenuVisibility(){this.open=!this.open}onDropdownMenuItemClick(){this.autoClose&&(this.open=!1)}get allItems(){return this.items}}(0,x.__decorate)([r.observable],Hi.prototype,"items",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"auto-close",mode:"boolean"})],Hi.prototype,"autoClose",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"disable-button",mode:"boolean"})],Hi.prototype,"disabled",void 0),(0,x.__decorate)([r.observable],Hi.prototype,"classNames",void 0),(0,x.__decorate)([r.attr],Hi.prototype,"name",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"open",mode:"boolean"})],Hi.prototype,"open",void 0),(0,x.__decorate)([r.attr],Hi.prototype,"buttonAppearance",void 0);const Pi=Hi.compose({baseName:"dropdown-menu",styles:Ni,template:Mi}),Bi=e=>r.html`
|
|
1051
1051
|
<${e}-banner ${(0,r.ref)("banner")}>
|
|
1052
1052
|
<div slot="content">
|
|
1053
1053
|
<div>
|
|
@@ -1069,12 +1069,12 @@
|
|
|
1069
1069
|
`)}
|
|
1070
1070
|
</${e}-banner>
|
|
1071
1071
|
`,zi=r.html`
|
|
1072
|
-
${e=>Bi(
|
|
1073
|
-
`,ji={mode:"open",delegatesFocus:!0};class Vi 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],Vi.prototype,"error",void 0),(0,x.__decorate)([r.observable],Vi.prototype,"notification",void 0);const Gi=Vi.compose({baseName:"error-banner",template:zi,shadowOptions:ji});var
|
|
1072
|
+
${e=>Bi(k(e))}
|
|
1073
|
+
`,ji={mode:"open",delegatesFocus:!0};class Vi 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],Vi.prototype,"error",void 0),(0,x.__decorate)([r.observable],Vi.prototype,"notification",void 0);const Gi=Vi.compose({baseName:"error-banner",template:zi,shadowOptions:ji});var Ui;!function(e){e.ERROR_BOUNDARY_EVENT="error-boundary-event"}(Ui||(Ui={}));const Yi=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"}`},Wi=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},qi=(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},Ki=()=>{const e=document.createElement("div");return e.setAttribute("id","error-banner-anchor"),e.style.position="relative",document.body.insertBefore(e,document.body.firstChild),e},Zi=(0,ie.createLogger)("foundation-error"),Xi={alert:e=>{alert(Yi(e))},notification:(e,t)=>{var o,i,a,n,s,r,l,d,c,u,p,h,m;const v=t.split("-")[0],g=qi("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`);qi("dialog-container",t).appendChild(i),i.error=e,i.show()},snackbar:(e,t)=>{const o=t.split("-")[0],i=document.createElement(`${o}-snackbar`);qi("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 Ki()})(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}},Qi=(e,t,o)=>{Zi.log({message:Yi(e),level:Wi(e)});Object.keys((null==e?void 0:e.config)||{}).forEach((i=>{Xi[i]&&Xi[i](e,t,o)}))};class Ji{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 ea{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 ta=r.html`
|
|
1074
1074
|
<template ${(0,r.ref)("errorBoundary")}>
|
|
1075
1075
|
<slot></slot>
|
|
1076
1076
|
</template>
|
|
1077
|
-
`,
|
|
1077
|
+
`,oa={mode:"open",delegatesFocus:!0};class ia 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(Ui.ERROR_BOUNDARY_EVENT,(e=>{e.stopImmediatePropagation(),Qi(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;Qi((new Ji).withTitle(e).withErrorDetails(o).withNotification((new ea).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],ia.prototype,"errorBoundary",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"resource-name"})],ia.prototype,"resourceName",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"close-timeout",converter:r.nullableNumberConverter})],ia.prototype,"closeTimeout",void 0),(0,x.__decorate)([ct.Yh],ia.prototype,"datasource",void 0);const aa=ia.compose({baseName:"error-boundary",template:ta,shadowOptions:oa}),na=r.css`
|
|
1078
1078
|
:host {
|
|
1079
1079
|
--design-unit: 3;
|
|
1080
1080
|
--dialog-max-width: 358px;
|
|
@@ -1093,7 +1093,7 @@
|
|
|
1093
1093
|
overflow: hidden;
|
|
1094
1094
|
min-height: var(--error-details-min-height);
|
|
1095
1095
|
}
|
|
1096
|
-
`,
|
|
1096
|
+
`,sa=e=>r.html`
|
|
1097
1097
|
<${e}-dialog show-close-icon="false" ${(0,r.ref)("dialog")}>
|
|
1098
1098
|
<h2 slot="top" class="title">${e=>{var t;return null===(t=e.error)||void 0===t?void 0:t.title}}</h2>
|
|
1099
1099
|
<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>
|
|
@@ -1110,9 +1110,9 @@
|
|
|
1110
1110
|
</${e}-button>
|
|
1111
1111
|
`)}
|
|
1112
1112
|
</${e}-dialog>
|
|
1113
|
-
`,
|
|
1114
|
-
${e=>
|
|
1115
|
-
`,
|
|
1113
|
+
`,ra=r.html`
|
|
1114
|
+
${e=>sa(k(e))}
|
|
1115
|
+
`,la={mode:"open",delegatesFocus:!0};class da 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],da.prototype,"error",void 0),(0,x.__decorate)([r.observable],da.prototype,"notification",void 0);const ca=da.compose({baseName:"error-dialog",template:ra,styles:na,shadowOptions:la});var ua=o(22296),pa=o(21607);const ha=r.css`
|
|
1116
1116
|
/* Host */
|
|
1117
1117
|
:host {
|
|
1118
1118
|
display: flex;
|
|
@@ -1160,7 +1160,7 @@
|
|
|
1160
1160
|
fast-data-grid-row {
|
|
1161
1161
|
align-items: center;
|
|
1162
1162
|
}
|
|
1163
|
-
`,
|
|
1163
|
+
`,ma=e=>r.html`
|
|
1164
1164
|
<template>
|
|
1165
1165
|
<div class="file-selection">
|
|
1166
1166
|
<input type="file" multiple ${(0,r.ref)("fileInput")}
|
|
@@ -1186,13 +1186,13 @@
|
|
|
1186
1186
|
</${e}-data-grid>
|
|
1187
1187
|
</div>
|
|
1188
1188
|
</template>
|
|
1189
|
-
`,
|
|
1190
|
-
${e=>
|
|
1191
|
-
`,
|
|
1189
|
+
`,va=r.html`
|
|
1190
|
+
${e=>ma(k(e))}
|
|
1191
|
+
`,ga=(0,ie.createLogger)("foundation-notifications"),fa=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"}`},ba=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},ya=e=>{ga.log({message:fa(e),level:ba(e)})},xa=(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},wa=()=>{const e=document.createElement("div");return e.setAttribute("id","banner-anchor"),e.style.position="relative",document.body.insertBefore(e,document.body.firstChild),e},$a=(e,t,o)=>{var i,a,n,s,r,l,d,c,u,p,h,m,v,g,f,b,y,x;ya(e);const w=t.split("-")[0],$=null!=o?o:xa("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 F=document.createElement("div");F.setAttribute("slot","content"),F.textContent=(null==e?void 0:e.body)||"";const k=document.createElement("div");let _;k.setAttribute("slot","date"),k.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(F),S.appendChild(k),_&&S.appendChild(_),$.appendChild(S)},Sa={alert:e=>{ya(e),alert(fa(e))},toast:$a,dialog:(e,t)=>{ya(e);const o=t.split("-")[0],i=document.createElement(`${o}-dialog`);xa("dialog-container",t).appendChild(i),i.notification=e,i.show()},snackbar:(e,t)=>{ya(e);const o=t.split("-")[0],i=document.createElement(`${o}-snackbar`);xa("snack-container",t).appendChild(i),i.notification=e},banner:(e,t,o)=>{var i;ya(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 wa()})(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}},Ca=(e,t,o)=>{Object.keys((null==e?void 0:e.config)||{}).forEach((i=>{Sa[i]&&Sa[i](e,t,o)}))},Fa=e=>{const t=new FormData;return e.forEach((e=>{t.append(e.name,e)})),t},ka=(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))))},_a=(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&&Ca({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&&Ca({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)}))},Oa=["image/png","image/bmp","image/gif","image/jpeg","image/jpg"],Da=["text/plain","text/csv"],Ta=["application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.ms-powerpoint","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/pdf"],La=r.html`
|
|
1192
1192
|
${(0,r.when)((e=>e.rowData),r.html`
|
|
1193
|
-
${e=>"DATETIME"===e.columnDefinition.type?(0,
|
|
1193
|
+
${e=>"DATETIME"===e.columnDefinition.type?(0,pa.Lx)(e.rowData[e.columnDefinition.columnDataKey]):e.rowData[e.columnDefinition.columnDataKey]}
|
|
1194
1194
|
`)}
|
|
1195
|
-
`;class
|
|
1195
|
+
`;class Ea 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,...Oa]:"office/*"===t?e=[...e,...Ta]:"text/*"===t?e=[...e,...Da]: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 ft).withExpression((new wt).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:ua.k.error(`Unsupported operation type: ${o.DETAILS.OPERATION}`)}}setRowData(){return(0,x.__awaiter)(this,void 0,void 0,(function*(){yield this.connect.stream(this.uploadedFilesResourceName,(e=>{var t;1===e.SEQUENCE_ID?this.uploadedFilesList=null!==(t=e.ROW)&&void 0!==t?t:[]:this.handleStreamRowOperation(e)}),(e=>{ua.k.error(e)}),{CRITERIA_MATCH:this.gridCriteria})}))}setColumnDefs(){var e;return(0,x.__awaiter)(this,void 0,void 0,(function*(){const t=yield this.connect.getMetadata(this.uploadedFilesResourceName),o=[];this.gridFields.length>0?this.gridFields.split(" ").forEach((e=>{var i;const a=null===(i=t.FIELD)||void 0===i?void 0:i.find((t=>t.NAME===e));a?o.push(this.getColumnObject(a)):"DOWNLOAD"===e&&this.downloadEventName&&o.push(this.getDownloadColumn())})):(null===(e=t.FIELD)||void 0===e||e.forEach((e=>{o.push(this.getColumnObject(e))})),this.downloadEventName&&o.push(this.getDownloadColumn())),this.filesGridColumnDefinitions=o}))}getDownloadColumn(){const e=this.tagName.toLowerCase().split("-")[0];return{columnDataKey:"FILE_NAME",title:"File",cellTemplate:r.html`
|
|
1196
1196
|
<template>
|
|
1197
1197
|
<div class="download-button-container">
|
|
1198
1198
|
<${e}-button
|
|
@@ -1203,7 +1203,7 @@
|
|
|
1203
1203
|
</${e}-button>
|
|
1204
1204
|
</div>
|
|
1205
1205
|
</template>
|
|
1206
|
-
`}}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:
|
|
1206
|
+
`}}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:La}}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=Fa(this.selectedFiles);e.append(this.uploadKey,this.entityId);const t=yield ka(this.uploadEventName,e,this.session.getItem("authToken","session"));if(t.ERROR)return ua.k.error(t.ERROR),void this.$emit("errorOut",t.ERROR);ua.k.info(t),this.clearSelection()}catch(e){ua.k.error(e)}}))}handleFileDownload(e){_a(this.downloadEventName(e),e.FILE_NAME,this.session.getItem("authToken","session"))}clearSelection(){this.fileName="",this.selectedFiles=[]}}(0,x.__decorate)([r.observable],Ea.prototype,"gridCriteria",void 0),(0,x.__decorate)([dt.lj],Ea.prototype,"connect",void 0),(0,x.__decorate)([Nt.z],Ea.prototype,"session",void 0),(0,x.__decorate)([r.attr],Ea.prototype,"label",void 0),(0,x.__decorate)([r.attr],Ea.prototype,"accept",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"file-size-limit-bytes"})],Ea.prototype,"fileSizeLimitBytes",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"uploaded-files-resource-name"})],Ea.prototype,"uploadedFilesResourceName",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"upload-event-name"})],Ea.prototype,"uploadEventName",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"field-name"})],Ea.prototype,"fieldName",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"entity-id"})],Ea.prototype,"entityId",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"upload-key"})],Ea.prototype,"uploadKey",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"grid-fields"})],Ea.prototype,"gridFields",void 0),(0,x.__decorate)([r.observable],Ea.prototype,"fileName",void 0),(0,x.__decorate)([r.observable],Ea.prototype,"uploadedFilesList",void 0),(0,x.__decorate)([r.observable],Ea.prototype,"filesGridColumnDefinitions",void 0);const Aa=void 0,Na={},Ia=Ea.compose(Object.assign({baseName:"file-upload",styles:ha,template:va,shadowOptions:Aa},Na)),Ra=r.css`
|
|
1207
1207
|
.filter-wrapper {
|
|
1208
1208
|
border: 1px solid gray;
|
|
1209
1209
|
border-radius: calc(var(--design-unit) * 2px);
|
|
@@ -1254,12 +1254,12 @@
|
|
|
1254
1254
|
.flex-row foundation-select {
|
|
1255
1255
|
flex: 1;
|
|
1256
1256
|
}
|
|
1257
|
-
`,
|
|
1257
|
+
`,Ma=r.html`
|
|
1258
1258
|
<div class="close-icon" @click=${e=>e.clear()}>${hi()}</div>
|
|
1259
|
-
`;function
|
|
1259
|
+
`;function Ha(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 Pa=[{name:"All",value:"all",selected:!0},{name:"True",value:"true"},{name:"False",value:"false"},{name:"N/A",value:"null"}],Ba=(e,t)=>{switch(e.type){case"number":return(e=>r.html`
|
|
1260
1260
|
<div class="flex-row">
|
|
1261
1261
|
<div>${e=>e.label}</div>
|
|
1262
|
-
${
|
|
1262
|
+
${Ma}
|
|
1263
1263
|
</div>
|
|
1264
1264
|
<div class="flex-row">
|
|
1265
1265
|
<${e}-text-field
|
|
@@ -1278,7 +1278,7 @@
|
|
|
1278
1278
|
`)(t);case"date":return(e=>r.html`
|
|
1279
1279
|
<div class="flex-row">
|
|
1280
1280
|
<div>${e=>e.label}</div>
|
|
1281
|
-
${
|
|
1281
|
+
${Ma}
|
|
1282
1282
|
</div>
|
|
1283
1283
|
<div class="flex-row">
|
|
1284
1284
|
<${e}-text-field
|
|
@@ -1295,11 +1295,11 @@
|
|
|
1295
1295
|
`)(t);case"boolean":return(e=>r.html`
|
|
1296
1296
|
<div class="flex-row">
|
|
1297
1297
|
<div>${e=>e.label}</div>
|
|
1298
|
-
${
|
|
1298
|
+
${Ma}
|
|
1299
1299
|
</div>
|
|
1300
1300
|
<div class="flex-row">
|
|
1301
|
-
<${e}-select @change="${(e,t)=>e.onBooleanFilterSelection(
|
|
1302
|
-
${(0,r.repeat)((()=>
|
|
1301
|
+
<${e}-select @change="${(e,t)=>e.onBooleanFilterSelection(Ha(t))}}">
|
|
1302
|
+
${(0,r.repeat)((()=>Pa),r.html`
|
|
1303
1303
|
<${e}-option value="${e=>e.value}" selected="${e=>e.selected}">
|
|
1304
1304
|
${e=>e.name}
|
|
1305
1305
|
</${e}-option>
|
|
@@ -1309,10 +1309,10 @@
|
|
|
1309
1309
|
`)(t);case"enum":return(e=>r.html`
|
|
1310
1310
|
<div class="flex-row">
|
|
1311
1311
|
<div>${e=>e.label}</div>
|
|
1312
|
-
${
|
|
1312
|
+
${Ma}
|
|
1313
1313
|
</div>
|
|
1314
1314
|
<div class="flex-row">
|
|
1315
|
-
<${e}-select @change="${(e,t)=>e.onEnumFilterSelection(
|
|
1315
|
+
<${e}-select @change="${(e,t)=>e.onEnumFilterSelection(Ha(t))}}">
|
|
1316
1316
|
${(0,r.repeat)((e=>e.enumFilterOptions),r.html`
|
|
1317
1317
|
<${e}-option value="${e=>e.value}" selected="${e=>e.selected}">
|
|
1318
1318
|
${e=>e.name}
|
|
@@ -1323,7 +1323,7 @@
|
|
|
1323
1323
|
`)(t);default:return(e=>r.html`
|
|
1324
1324
|
<div class="flex-row">
|
|
1325
1325
|
<div>${e=>e.label}</div>
|
|
1326
|
-
${
|
|
1326
|
+
${Ma}
|
|
1327
1327
|
</div>
|
|
1328
1328
|
<div class="flex-row">
|
|
1329
1329
|
<${e}-text-field
|
|
@@ -1332,11 +1332,11 @@
|
|
|
1332
1332
|
:value=${(0,Ge.Z)((e=>e.textFilter))}
|
|
1333
1333
|
/>
|
|
1334
1334
|
</div>
|
|
1335
|
-
`)(t)}},
|
|
1336
|
-
<div class="filter-wrapper">${t=>
|
|
1337
|
-
`,
|
|
1338
|
-
${e=>
|
|
1339
|
-
`;var
|
|
1335
|
+
`)(t)}},za=e=>r.html`
|
|
1336
|
+
<div class="filter-wrapper">${t=>Ba(t,e)}</div>
|
|
1337
|
+
`,ja=r.html`
|
|
1338
|
+
${e=>za(k(e))}</div>
|
|
1339
|
+
`;var Va;!function(e){e.change="filter-changed",e.clear="filter-cleared"}(Va||(Va={}));class Ga extends n.FoundationElement{constructor(){super(...arguments),this.type="text",this.textFilter="",this.enumFilterOptions=[{name:"All",value:"all",selected:!0}]}textFilterChanged(e,t){if(!(null==t?void 0:t.length))return void this.$emit(Va.clear,{fieldName:this.fieldName,target:this.target});const o=`Expr.containsIgnoreCase(${this.fieldName},'${t}')`;this.$emit(Va.change,{fieldName:this.fieldName,filter:o,target:this.target})}numFilterMinChanged(e,t){this.numFilterMin=Number.isFinite(Number(t))?Number(t):void 0,this.handleNumericFilter(this.numFilterMin,this.numFilterMax)}numFilterMaxChanged(e,t){this.numFilterMax=Number.isFinite(Number(t))?Number(t):void 0,this.handleNumericFilter(this.numFilterMin,this.numFilterMax)}handleNumericFilter(e,t){if(!Number.isFinite(e)&&!Number.isFinite(t))return void this.$emit(Va.clear,{fieldName:this.fieldName,target:this.target});const o=`${this.fieldName} >= ${e}`,i=`${this.fieldName} <= ${t}`,a=Number.isFinite(e)?Number.isFinite(t)?`(${o} && ${i})`:o:i;this.$emit(Va.change,{fieldName:this.fieldName,filter:a,target:this.target})}formatDate(e){if(Number.isFinite(e))return new Date(e).toISOString().slice(0,19).replace(/-/g,"").replace("T","-")}dateFilterMinChanged(e,t){this.dateMinMS=Date.parse(t),this.handleDateFilter(this.dateMinMS,this.dateMaxMS)}dateFilterMaxChanged(e,t){this.dateMaxMS=Date.parse(t),this.handleDateFilter(this.dateMinMS,this.dateMaxMS)}handleDateFilter(e,t){if(!Number.isFinite(e)&&!Number.isFinite(t))return void this.$emit(Va.clear,{fieldName:this.fieldName});const o=`Expr.dateTimeIsAfter(${this.fieldName}, '${this.formatDate(e)}')`,i=`Expr.dateTimeIsBefore(${this.fieldName}, '${this.formatDate(t)}')`,a=Number.isFinite(e)?Number.isFinite(t)?`(${o} && ${i})`:o:i;this.$emit(Va.change,{fieldName:this.fieldName,filter:a,target:this.target})}connectedCallback(){var e;if(super.connectedCallback(),null===(e=this.enumOptions)||void 0===e?void 0:e.length){const e=this.enumOptions.includes("|")?"|":",",t=this.enumOptions.split(e).map((e=>({name:e,value:e})));this.enumFilterOptions=[{name:"All",value:"all",selected:!0},...t]}}clear(){switch(this.type){case"number":this.numFilterFieldMin.value=void 0,this.numFilterFieldMax.value=void 0,this.numFilterMin=void 0,this.numFilterMax=void 0;break;case"date":this.dateFilterFieldMin.value="",this.dateFilterFieldMax.value="",this.dateMinMS=NaN,this.dateMaxMS=NaN;break;case"text":this.textFilterField.value=""}this.$emit(Va.clear,{fieldName:this.fieldName,target:this.target})}onBooleanFilterSelection(e){e&&"all"!==e?this.$emit(Va.change,{fieldName:this.fieldName,filter:`${this.fieldName} == ${e}`,target:this.target}):this.$emit(Va.clear,{fieldName:this.fieldName,target:this.target})}onEnumFilterSelection(e){e&&"all"!==e?this.$emit(Va.change,{fieldName:this.fieldName,filter:`${this.fieldName} == "${e}"`,target:this.target}):this.$emit(Va.clear,{fieldName:this.fieldName,target:this.target})}}(0,x.__decorate)([r.attr],Ga.prototype,"fieldName",void 0),(0,x.__decorate)([r.attr],Ga.prototype,"type",void 0),(0,x.__decorate)([r.attr],Ga.prototype,"label",void 0),(0,x.__decorate)([r.attr],Ga.prototype,"target",void 0),(0,x.__decorate)([r.observable],Ga.prototype,"textFilter",void 0),(0,x.__decorate)([r.observable],Ga.prototype,"numFilterMin",void 0),(0,x.__decorate)([r.observable],Ga.prototype,"numFilterMax",void 0),(0,x.__decorate)([r.observable],Ga.prototype,"dateFilterMin",void 0),(0,x.__decorate)([r.observable],Ga.prototype,"dateFilterMax",void 0),(0,x.__decorate)([r.attr],Ga.prototype,"enumOptions",void 0),(0,x.__decorate)([r.observable],Ga.prototype,"enumFilterOptions",void 0);const Ua=Ga.compose({baseName:"filter",template:ja,styles:Ra});var Ya=o(41353);const Wa=(e,t)=>r.css`
|
|
1340
1340
|
.filter-bar {
|
|
1341
1341
|
background-color: #2c2f33;
|
|
1342
1342
|
padding: calc(var(--design-unit) * 2px);
|
|
@@ -1372,9 +1372,9 @@
|
|
|
1372
1372
|
.toggle-collapsed {
|
|
1373
1373
|
color: #48ed9c;
|
|
1374
1374
|
}
|
|
1375
|
-
`,
|
|
1375
|
+
`,qa=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"}},Ka=r.html`
|
|
1376
1376
|
<p>Fetching metadata for ${e=>e.resource}...</p>
|
|
1377
|
-
`,
|
|
1377
|
+
`,Za=e=>r.html`
|
|
1378
1378
|
<div
|
|
1379
1379
|
class=${e=>(0,w.A)(["toggle",!0],["toggle-collapsed",e.collapsed])}
|
|
1380
1380
|
@click="${e=>e.toggle()}"
|
|
@@ -1394,17 +1394,17 @@
|
|
|
1394
1394
|
<${e}-filter
|
|
1395
1395
|
label="${e=>e.UI_LABEL}"
|
|
1396
1396
|
target="${(e,t)=>{var o;return null===(o=t.parent)||void 0===o?void 0:o.target}}"
|
|
1397
|
-
type="${e=>
|
|
1397
|
+
type="${e=>qa(e.TYPE)}"
|
|
1398
1398
|
fieldName="${e=>e.NAME}"
|
|
1399
1399
|
enumOptions="${e=>e.VALID_VALUES}"
|
|
1400
1400
|
></${e}-filter>
|
|
1401
1401
|
`)}
|
|
1402
1402
|
</div>
|
|
1403
1403
|
</div>
|
|
1404
|
-
`,
|
|
1405
|
-
${e=>e.ready?
|
|
1406
|
-
`,
|
|
1407
|
-
${t&&`@media only screen and ${
|
|
1404
|
+
`,Xa=r.html`
|
|
1405
|
+
${e=>e.ready?Za(k(e)):Ka}
|
|
1406
|
+
`,Qa=5;class Ja extends n.FoundationElement{constructor(){super(...arguments),this.columns=Qa,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,Ya.Ho)(e))).join(" ")}resourceChanged(e,t){e!==t&&(null==e?void 0:e.length)&&this.init()}init(){this.ready=!1,this.connect.getMetadata(this.resource).then((e=>{var t,o;if(this.fields=e.FIELD,null===(t=this.only)||void 0===t?void 0:t.length){const e=this.only.split(",").map((e=>e.trim())),t=(t,o)=>e.indexOf(t.NAME)>e.indexOf(o.NAME)?1:-1;this.fields=null===(o=this.fields)||void 0===o?void 0:o.filter((t=>e.includes(t.NAME))).sort(t)}this.ready=!0})).then((()=>this.initLabels())).then((()=>window.requestAnimationFrame((()=>{this.adjustColumnStyles()})))).catch((e=>ae.error(e)))}adjustColumnStyles(){this.filterGrid&&(this.filterGrid.style["grid-template-columns"]=`repeat(${this.columns}, 1fr)`)}toggle(){this.ready&&(this.collapsed=!this.collapsed)}}(0,x.__decorate)([r.attr],Ja.prototype,"resource",void 0),(0,x.__decorate)([r.attr],Ja.prototype,"only",void 0),(0,x.__decorate)([r.attr],Ja.prototype,"labels",void 0),(0,x.__decorate)([r.attr],Ja.prototype,"target",void 0),(0,x.__decorate)([r.attr],Ja.prototype,"columns",void 0),(0,x.__decorate)([r.observable],Ja.prototype,"ready",void 0),(0,x.__decorate)([r.observable],Ja.prototype,"fields",void 0),(0,x.__decorate)([dt.lj],Ja.prototype,"connect",void 0),(0,x.__decorate)([r.observable],Ja.prototype,"collapsed",void 0);const en=Ja.compose({baseName:"filter-bar",template:Xa,styles:Wa});var tn;!function(e){e.sm="(max-width: 640px)",e.md="(min-width: 641px) and (max-width: 1023px)",e.lg="(min-width: 1024px)"}(tn||(tn={}));const on=e=>{const t=e?`-${e}`:"";return r.css`
|
|
1407
|
+
${t&&`@media only screen and ${tn[e]} {`}
|
|
1408
1408
|
:host(.spacing${t}-1x) slot {
|
|
1409
1409
|
gap: calc(var(--design-unit) * 2px);
|
|
1410
1410
|
}
|
|
@@ -1521,7 +1521,7 @@
|
|
|
1521
1521
|
align-content: space-evenly;
|
|
1522
1522
|
}
|
|
1523
1523
|
${t&&"}"}
|
|
1524
|
-
`},
|
|
1524
|
+
`},an=r.css`
|
|
1525
1525
|
:host {
|
|
1526
1526
|
width: 100%;
|
|
1527
1527
|
height: 100%;
|
|
@@ -1533,17 +1533,17 @@
|
|
|
1533
1533
|
display: flex;
|
|
1534
1534
|
}
|
|
1535
1535
|
|
|
1536
|
-
${
|
|
1537
|
-
${
|
|
1538
|
-
${
|
|
1539
|
-
${
|
|
1540
|
-
`,
|
|
1536
|
+
${on()}
|
|
1537
|
+
${on("lg")}
|
|
1538
|
+
${on("md")}
|
|
1539
|
+
${on("sm")}
|
|
1540
|
+
`,nn=r.html`
|
|
1541
1541
|
<template>
|
|
1542
1542
|
<slot></slot>
|
|
1543
1543
|
</template>
|
|
1544
|
-
`,
|
|
1544
|
+
`,sn=void 0,rn={};class ln extends n.FoundationElement{}const dn=ln.compose(Object.assign({baseName:"flex-layout",styles:an,template:nn,shadowOptions:sn},rn)),cn=(e,t)=>r.css`
|
|
1545
1545
|
${(0,s.flipperStyles)(e,t)}
|
|
1546
|
-
`,
|
|
1546
|
+
`,un=(e,t)=>(0,n.flipperTemplate)(e,t);class pn extends s.Flipper{}const hn=void 0,mn={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 '},vn=pn.compose(Object.assign({baseName:"flipper",template:un,styles:cn,shadowOptions:hn},mn)),gn=225,fn=r.css`
|
|
1547
1547
|
/* Host */
|
|
1548
1548
|
:host {
|
|
1549
1549
|
display: inline-block;
|
|
@@ -1568,7 +1568,7 @@
|
|
|
1568
1568
|
height: 100%;
|
|
1569
1569
|
position: absolute;
|
|
1570
1570
|
/* stylelint-disable-next-line function-name-case */
|
|
1571
|
-
transition: transform ${
|
|
1571
|
+
transition: transform ${gn.toString()}ms ease-in;
|
|
1572
1572
|
width: 20%;
|
|
1573
1573
|
z-index: 2001;
|
|
1574
1574
|
}
|
|
@@ -1616,7 +1616,7 @@
|
|
|
1616
1616
|
opacity: 50%;
|
|
1617
1617
|
position: absolute;
|
|
1618
1618
|
/* stylelint-disable-next-line function-name-case */
|
|
1619
|
-
transition: opacity ${
|
|
1619
|
+
transition: opacity ${gn.toString()}ms linear;
|
|
1620
1620
|
width: 100%;
|
|
1621
1621
|
z-index: 2000;
|
|
1622
1622
|
}
|
|
@@ -1624,7 +1624,7 @@
|
|
|
1624
1624
|
:host([visuallyhidden]) div.background {
|
|
1625
1625
|
opacity: 0%;
|
|
1626
1626
|
}
|
|
1627
|
-
`,
|
|
1627
|
+
`,bn=e=>r.html`
|
|
1628
1628
|
<div ?closed=${e=>e.closed} ?visuallyhidden=${e=>e.visuallyhidden}>
|
|
1629
1629
|
<div class="container">
|
|
1630
1630
|
<div class="background" part="background" @click=${e=>e.closeFlyout()}></div>
|
|
@@ -1648,10 +1648,10 @@
|
|
|
1648
1648
|
</div>
|
|
1649
1649
|
</div>
|
|
1650
1650
|
</div>
|
|
1651
|
-
`,
|
|
1652
|
-
${e=>
|
|
1653
|
-
`;class
|
|
1654
|
-
${t&&`@media only screen and ${
|
|
1651
|
+
`,yn=r.html`
|
|
1652
|
+
${e=>bn(k(e))}
|
|
1653
|
+
`;class xn 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],xn.prototype,"position",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],xn.prototype,"displayHeader",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],xn.prototype,"closed",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],xn.prototype,"visuallyhidden",void 0);const wn=void 0,$n={},Sn=xn.compose(Object.assign({baseName:"flyout",styles:fn,template:yn,shadowOptions:wn},$n));var Cn;!function(e){e.sm="(max-width: 640px)",e.md="(min-width: 641px) and (max-width: 1023px)",e.lg="(min-width: 1024px)"}(Cn||(Cn={}));const Fn=e=>{const t=e?`-${e}`:"";return r.css`
|
|
1654
|
+
${t&&`@media only screen and ${Cn[e]} {`}
|
|
1655
1655
|
:host(.spacing${t}-1x) slot {
|
|
1656
1656
|
gap: calc(var(--design-unit) * 2px);
|
|
1657
1657
|
}
|
|
@@ -1736,32 +1736,32 @@
|
|
|
1736
1736
|
place-items: stretch;
|
|
1737
1737
|
}
|
|
1738
1738
|
${t&&"}"}
|
|
1739
|
-
`},
|
|
1739
|
+
`},kn=r.css`
|
|
1740
1740
|
slot {
|
|
1741
1741
|
width: 100%;
|
|
1742
1742
|
height: 100%;
|
|
1743
1743
|
display: grid;
|
|
1744
1744
|
}
|
|
1745
1745
|
|
|
1746
|
-
${
|
|
1747
|
-
${
|
|
1748
|
-
${
|
|
1749
|
-
${
|
|
1746
|
+
${Fn()}
|
|
1747
|
+
${Fn("lg")}
|
|
1748
|
+
${Fn("md")}
|
|
1749
|
+
${Fn("sm")}
|
|
1750
1750
|
`,_n=r.html`
|
|
1751
1751
|
<template>
|
|
1752
1752
|
<slot></slot>
|
|
1753
1753
|
</template>
|
|
1754
|
-
`,
|
|
1754
|
+
`,On=void 0,Dn={};class Tn{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`
|
|
1755
1755
|
slot {
|
|
1756
1756
|
${s||""}
|
|
1757
1757
|
${n||""}
|
|
1758
1758
|
}
|
|
1759
|
-
`}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
|
|
1759
|
+
`}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 Ln extends n.FoundationElement{constructor(){super(...arguments),this.behaviors=[]}connectedCallback(){super.connectedCallback(),this.behaviors=Object.keys(Cn).map((e=>{if(this[`col-${e}-count`]||this[`row-${e}-count`])return new Tn(Cn[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`
|
|
1760
1760
|
slot {
|
|
1761
1761
|
${e||""}
|
|
1762
1762
|
${t||""}
|
|
1763
1763
|
}
|
|
1764
|
-
`,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],
|
|
1764
|
+
`,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],Ln.prototype,"col-count",void 0),(0,x.__decorate)([r.attr],Ln.prototype,"col-width",void 0),(0,x.__decorate)([r.attr],Ln.prototype,"col-lg-count",void 0),(0,x.__decorate)([r.attr],Ln.prototype,"col-lg-width",void 0),(0,x.__decorate)([r.attr],Ln.prototype,"col-md-count",void 0),(0,x.__decorate)([r.attr],Ln.prototype,"col-md-width",void 0),(0,x.__decorate)([r.attr],Ln.prototype,"col-sm-count",void 0),(0,x.__decorate)([r.attr],Ln.prototype,"col-sm-width",void 0),(0,x.__decorate)([r.attr],Ln.prototype,"row-count",void 0),(0,x.__decorate)([r.attr],Ln.prototype,"row-height",void 0),(0,x.__decorate)([r.attr],Ln.prototype,"row-lg-count",void 0),(0,x.__decorate)([r.attr],Ln.prototype,"row-lg-height",void 0),(0,x.__decorate)([r.attr],Ln.prototype,"row-md-count",void 0),(0,x.__decorate)([r.attr],Ln.prototype,"row-md-height",void 0),(0,x.__decorate)([r.attr],Ln.prototype,"row-sm-count",void 0),(0,x.__decorate)([r.attr],Ln.prototype,"row-sm-height",void 0);const En=Ln.compose(Object.assign({baseName:"grid-layout",styles:kn,template:_n,shadowOptions:On},Dn)),An=r.html`
|
|
1765
1765
|
<template>
|
|
1766
1766
|
<style>
|
|
1767
1767
|
:host {
|
|
@@ -1790,9 +1790,9 @@
|
|
|
1790
1790
|
</style>
|
|
1791
1791
|
<slot></slot>
|
|
1792
1792
|
</template>
|
|
1793
|
-
`,
|
|
1793
|
+
`,Nn=void 0,In={};class Rn 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"})],Rn.prototype,"colNumber",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"col-sm-number"})],Rn.prototype,"colSmNumber",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"col-md-number"})],Rn.prototype,"colMdNumber",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"col-lg-number"})],Rn.prototype,"colLgNumber",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"row-number"})],Rn.prototype,"rowNumber",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"row-sm-number"})],Rn.prototype,"rowSmNumber",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"row-md-number"})],Rn.prototype,"rowMdNumber",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"row-lg-number"})],Rn.prototype,"rowLgNumber",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"width"})],Rn.prototype,"width",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"width-sm"})],Rn.prototype,"widthSm",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"width-md"})],Rn.prototype,"widthMd",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"width-lg"})],Rn.prototype,"widthLg",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"height"})],Rn.prototype,"height",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"height-sm"})],Rn.prototype,"heightSm",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"height-md"})],Rn.prototype,"heightMd",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"height-lg"})],Rn.prototype,"heightLg",void 0);const Mn=Rn.compose(Object.assign({baseName:"grid-layout-item",template:An,shadowOptions:Nn},In)),Hn=(e,t)=>r.css`
|
|
1794
1794
|
${(0,s.horizontalScrollStyles)(e,t)}
|
|
1795
|
-
`,
|
|
1795
|
+
`,Pn=(e,t)=>(0,n.horizontalScrollTemplate)(e,t);class Bn extends s.HorizontalScroll{}const zn={delegatesFocus:!0,mode:"open"},jn={nextFlipper:r.html`
|
|
1796
1796
|
<foundation-flipper
|
|
1797
1797
|
@click="${e=>e.scrollToNext()}"
|
|
1798
1798
|
aria-hidden="${e=>e.flippersHiddenFromAT}"
|
|
@@ -1803,8 +1803,8 @@
|
|
|
1803
1803
|
direction="previous"
|
|
1804
1804
|
aria-hidden="${e=>e.flippersHiddenFromAT}"
|
|
1805
1805
|
></foundation-flipper>
|
|
1806
|
-
`},
|
|
1807
|
-
${
|
|
1806
|
+
`},Vn=Bn.compose(Object.assign({baseName:"horizontal-scroll",template:Pn,styles:Hn,shadowOptions:zn},jn));var Gn=o(38938),Un=o(79840),Yn=o(64739),Wn=o(75030);const qn=()=>(Gn.vI.add(Wn.mRB,Yn.NCV,Un.vnX),Gn.vz.css()),Kn=(e,t)=>r.css`
|
|
1807
|
+
${qn()}
|
|
1808
1808
|
|
|
1809
1809
|
.fa-stack-1x {
|
|
1810
1810
|
font-size: 1em;
|
|
@@ -1813,7 +1813,7 @@
|
|
|
1813
1813
|
.fa-stack-2x {
|
|
1814
1814
|
font-size: 2em;
|
|
1815
1815
|
}
|
|
1816
|
-
`,
|
|
1816
|
+
`,Zn=r.html`
|
|
1817
1817
|
<template>
|
|
1818
1818
|
<i
|
|
1819
1819
|
${(0,r.ref)("iElement")}
|
|
@@ -1823,7 +1823,7 @@
|
|
|
1823
1823
|
<slot></slot>
|
|
1824
1824
|
</i>
|
|
1825
1825
|
</template>
|
|
1826
|
-
`,
|
|
1826
|
+
`,Xn={mode:"open",delegatesFocus:!0},Qn={};var Jn;!function(e){e.solid="fas",e.regular="far",e.brand="fab"}(Jn||(Jn={}));const es="1x",ts=["2xs","xs","sm","lg","xl","2xl",es,"2x","3x","4x","5x","6x","7x","8x","9x","10x","stack-1x","stack-2x"];class os 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,Gn.N)({prefix:Jn[this.variant],iconName:this.name}),t=(0,Gn.qv)(e);t&&t.node&&(this.iElement.innerHTML="",Array.from(t.node).map((e=>this.iElement.appendChild(e))))}}(0,x.__decorate)([r.observable],os.prototype,"iElement",void 0),(0,x.__decorate)([r.attr],os.prototype,"name",void 0),(0,x.__decorate)([r.attr],os.prototype,"size",void 0),(0,x.__decorate)([r.attr],os.prototype,"variant",void 0);const is=os.compose(Object.assign({baseName:"icon",template:Zn,styles:Kn,shadowOptions:Xn},Qn)),as=(e,t)=>r.css`
|
|
1827
1827
|
${(0,s.listboxStyles)(e,t)}
|
|
1828
1828
|
|
|
1829
1829
|
:host {
|
|
@@ -1834,11 +1834,11 @@
|
|
|
1834
1834
|
border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);
|
|
1835
1835
|
border-radius: calc(var(--control-corner-radius) * 1px);
|
|
1836
1836
|
}
|
|
1837
|
-
`,
|
|
1837
|
+
`,ns=(e,t)=>(0,n.listboxTemplate)(e,t);class ss extends s.Listbox{}const rs=void 0,ls={},ds=ss.compose(Object.assign({baseName:"listbox",template:ns,styles:as,shadowOptions:rs},ls)),cs=(e,t)=>r.css`
|
|
1838
1838
|
${(0,s.optionStyles)(e,t)}
|
|
1839
|
-
`,
|
|
1839
|
+
`,us=(e,t)=>(0,n.listboxOptionTemplate)(e,t);class ps extends s.ListboxOption{}const hs=void 0,ms={},vs=ps.compose(Object.assign({baseName:"option",template:us,styles:cs,shadowOptions:hs},ms)),gs=(e,t)=>r.css`
|
|
1840
1840
|
${(0,s.menuStyles)(e,t)}
|
|
1841
|
-
`,
|
|
1841
|
+
`,fs=(e,t)=>(0,n.menuTemplate)(e,t);class bs extends s.Menu{}const ys=void 0,xs={},ws=bs.compose(Object.assign({baseName:"menu",template:fs,styles:gs,shadowOptions:ys},xs)),$s=(e,t)=>r.css`
|
|
1842
1842
|
${(0,s.menuItemStyles)(e,t)}
|
|
1843
1843
|
|
|
1844
1844
|
:host, :host(.indent-0[aria-haspopup='menu']) {
|
|
@@ -1852,11 +1852,11 @@
|
|
|
1852
1852
|
height: auto;
|
|
1853
1853
|
width: auto;
|
|
1854
1854
|
}
|
|
1855
|
-
`,
|
|
1855
|
+
`,Ss=(e,t)=>(0,n.menuItemTemplate)(e,t);class Cs extends s.MenuItem{connectedCallback(){super.connectedCallback(),this.addEventListener("click",(()=>this.$emit("onMenuClick")))}}const Fs=void 0,ks={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 '},_s=Cs.compose(Object.assign({baseName:"menu-item",template:Ss,styles:$s,shadowOptions:Fs},ks)),Os=r.css`
|
|
1856
1856
|
${pi}
|
|
1857
|
-
`,
|
|
1857
|
+
`,Ds=r.html`
|
|
1858
1858
|
${vi}
|
|
1859
|
-
`,
|
|
1859
|
+
`,Ts={mode:"open",delegatesFocus:!0},Ls={};class Es extends bi{show(){this.onShowCallback&&this.onShowCallback(),this.mainElement.showModal()}}const As=Es.compose(Object.assign({baseName:"modal",styles:Os,template:Ds,shadowOptions:Ts},Ls)),Ns=230,Is=r.css`
|
|
1860
1860
|
.root {
|
|
1861
1861
|
position: relative;
|
|
1862
1862
|
width: inherit;
|
|
@@ -1988,7 +1988,7 @@
|
|
|
1988
1988
|
|
|
1989
1989
|
.visible {
|
|
1990
1990
|
visibility: visible;
|
|
1991
|
-
max-height: ${
|
|
1991
|
+
max-height: ${Ns.toString()}px;
|
|
1992
1992
|
}
|
|
1993
1993
|
|
|
1994
1994
|
::slotted(foundation-checkbox),
|
|
@@ -2023,7 +2023,7 @@
|
|
|
2023
2023
|
.label-hidden {
|
|
2024
2024
|
display: none;
|
|
2025
2025
|
}
|
|
2026
|
-
`;let
|
|
2026
|
+
`;let Rs=class extends pt{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"})],Rs.prototype,"valueField",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"label-field"})],Rs.prototype,"labelField",void 0),Rs=(0,x.__decorate)([(0,r.customElement)({name:"multiselect-datasource"})],Rs);const Ms=(e="foundation")=>r.html`
|
|
2027
2027
|
<label
|
|
2028
2028
|
part="label"
|
|
2029
2029
|
for="control"
|
|
@@ -2098,11 +2098,11 @@
|
|
|
2098
2098
|
</div>
|
|
2099
2099
|
</div>
|
|
2100
2100
|
<slot
|
|
2101
|
-
${(0,r.slotted)({property:"slottedDatasource",filter:e=>e instanceof
|
|
2101
|
+
${(0,r.slotted)({property:"slottedDatasource",filter:e=>e instanceof Rs})}
|
|
2102
2102
|
></slot>
|
|
2103
|
-
`,
|
|
2104
|
-
${
|
|
2105
|
-
`,
|
|
2103
|
+
`,Hs=r.html`
|
|
2104
|
+
${Ms()}
|
|
2105
|
+
`,Ps=void 0,Bs={};class zs extends n.FoundationElement{constructor(){super(...arguments),this.name="",this.autoPosition=!0,this.all=!0,this.allSelected=!1,this.search=!0,this.disabled=!1,this.async=!1,this.debounce=500,this.clickOutside=e=>this.handleClickOutside(e),this.open=!1,this.options=[],this.selectedOptions=[],this.filteredAvailableOptions=[...this.options],this.position=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}isOptionSelected(e){return this.selectedOptions.includes(this.optionGetter(e))}selectCheckboxOne(e){const t=this.optionGetter(e);this.selectedOptions.includes(t)?(this.selectedOptions=[...this.selectedOptions],this.selectedOptions.splice(this.selectedOptions.indexOf(t),1)):this.selectedOptions=[...this.selectedOptions,t],this.$emit("selectionChange",this.selectedOptions)}getEnabledOptionsCount(){return this.options.length-this.options.filter(this.isOptionDisabled).length}selectCheckboxAll(){const e=this.selectedOptions.length===this.getEnabledOptionsCount();this.selectedOptions=e?[]:this.options.filter((e=>!this.isOptionDisabled(e))).map((e=>this.optionGetter(e))),this.onAllSelectedCallback&&this.onAllSelectedCallback(!e),this.$emit("selectionChange",this.selectedOptions)}inputHandler(){this.async?(this.loading=!0,this.filteredAvailableOptions=[],this.debouncedInputHandler()):this.setFilter()}setFilter(){this.filteredAvailableOptions=[...this.options.filter((e=>{var t;return("string"==typeof e?e:null!==(t=e.label)&&void 0!==t?t:e.value).toLowerCase().startsWith(this.filterSearchValue.toLowerCase())}))]}asyncSetFilter(){if(this.slottedDatasource.length>0){const e=this.slottedDatasource[0].datasource.resourceType;e===it._g.DATASERVER&&$t(this.slottedDatasource[0],this.filterSearchValue),e===it._g.REQUEST_SERVER&&St(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],zs.prototype,"name",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean",attribute:"auto-position"})],zs.prototype,"autoPosition",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],zs.prototype,"all",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],zs.prototype,"allSelected",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],zs.prototype,"search",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],zs.prototype,"disabled",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],zs.prototype,"async",void 0),(0,x.__decorate)([r.attr],zs.prototype,"debounce",void 0),(0,x.__decorate)([r.observable],zs.prototype,"defaultSlottedNodes",void 0),(0,x.__decorate)([r.observable],zs.prototype,"slottedDatasource",void 0),(0,x.__decorate)([r.observable],zs.prototype,"valueFormatter",void 0),(0,x.__decorate)([r.observable],zs.prototype,"loading",void 0),(0,x.__decorate)([r.observable],zs.prototype,"filterSearchValue",void 0),(0,x.__decorate)([r.observable],zs.prototype,"open",void 0),(0,x.__decorate)([r.observable],zs.prototype,"options",void 0),(0,x.__decorate)([r.observable],zs.prototype,"selectedOptions",void 0),(0,x.__decorate)([r.observable],zs.prototype,"filteredAvailableOptions",void 0),(0,x.__decorate)([r.observable],zs.prototype,"scrollContainer",void 0),(0,x.__decorate)([r.observable],zs.prototype,"position",void 0),(0,x.__decorate)([r.observable],zs.prototype,"onAllSelectedCallback",void 0),(0,x.__decorate)([r.volatile],zs.prototype,"getDisplayValue",null),(0,x.__decorate)([r.volatile],zs.prototype,"getPlaceholder",null),(0,x.__decorate)([r.volatile],zs.prototype,"isAllSelected",null),(0,x.__decorate)([r.volatile],zs.prototype,"isAllOptionsDisabled",null);const js=zs.compose(Object.assign({baseName:"multiselect",template:Hs,styles:Is,shadowOptions:Ps},Bs));class Vs{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 Gs=(e,t)=>r.css`
|
|
2106
2106
|
${(0,s.numberFieldStyles)(e,t)}
|
|
2107
2107
|
::part(label) {
|
|
2108
2108
|
color: var(--neutral-foreground-rest);
|
|
@@ -2132,7 +2132,7 @@
|
|
|
2132
2132
|
::part(end) {
|
|
2133
2133
|
margin-inline-end: unset;
|
|
2134
2134
|
}
|
|
2135
|
-
`,
|
|
2135
|
+
`,Us=(e,t)=>r.html`
|
|
2136
2136
|
<template class="${e=>e.readOnly?"readonly":""}">
|
|
2137
2137
|
<label
|
|
2138
2138
|
part="label"
|
|
@@ -2201,7 +2201,469 @@
|
|
|
2201
2201
|
${(0,n.endSlotTemplate)(e,t)}
|
|
2202
2202
|
</div>
|
|
2203
2203
|
</template>
|
|
2204
|
-
`;class Gs 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 zs(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 zs(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],Gs.prototype,"autocomplete",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],Gs.prototype,"hideStep",void 0),(0,x.__decorate)([r.attr],Gs.prototype,"value",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],Gs.prototype,"withFormatting",void 0),(0,x.__decorate)([r.attr],Gs.prototype,"locale",void 0);const Ys={delegatesFocus:!0,mode:"open"},Us={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 '},Ws=Gs.compose(Object.assign({baseName:"number-field",template:Vs,styles:js,shadowOptions:Ys},Us));var qs=o(86975);const Zs={toView:e=>JSON.stringify(e),fromView:e=>null==e?e:JSON.parse(e)};class Ks 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,qs.fi)(this.target,this,this.buildOptions()))}placementChanged(){this.popper&&this.popper.setOptions(this.buildOptions())}offsetChanged(){this.popper&&this.popper.setOptions(this.buildOptions())}flipChanged(){this.popper&&this.popper.setOptions(this.buildOptions())}buildOptions(){return{placement:this.placement,modifiers:[{name:"offset",options:{offset:this.offset||[0,0]}},{name:"flip",enabled:this.flip}]}}toggle(){this.show=!this.show}disconnectedCallback(){super.disconnectedCallback(),this.popper&&(this.popper.destroy(),this.popper=null)}}(0,x.__decorate)([r.attr],Ks.prototype,"selector",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],Ks.prototype,"show",void 0),(0,x.__decorate)([r.attr],Ks.prototype,"event",void 0),(0,x.__decorate)([r.attr],Ks.prototype,"placement",void 0),(0,x.__decorate)([(0,r.attr)({converter:Zs})],Ks.prototype,"offset",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],Ks.prototype,"flip",void 0);const Xs=r.css`
|
|
2204
|
+
`;class Ys extends s.NumberField{constructor(){super(...arguments),this.hideStep=!1,this.value="",this.withFormatting=!1,this.locale="en-US",this.options={maximumFractionDigits:3,minimumFractionDigits:0}}autocompleteChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.autocomplete=this.autocomplete)}sanitiseInputVal(e){return String(new Vs(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 Vs(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],Ys.prototype,"autocomplete",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],Ys.prototype,"hideStep",void 0),(0,x.__decorate)([r.attr],Ys.prototype,"value",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],Ys.prototype,"withFormatting",void 0),(0,x.__decorate)([r.attr],Ys.prototype,"locale",void 0);const Ws={delegatesFocus:!0,mode:"open"},qs={stepDownGlyph:'\n <svg class="step-down-glyph" viewBox="0 0 24 24" width="1rem" height="1rem" xmlns="http://www.w3.org/2000/svg">\n <path d="M6.1018 8C5.02785 8 4.45387 9.2649 5.16108 10.0731L10.6829 16.3838C11.3801 17.1806 12.6197 17.1806 13.3169 16.3838L18.8388 10.0731C19.5459 9.2649 18.972 8 17.898 8H6.1018Z"/>\n </svg>\n ',stepUpGlyph:'\n <svg class="step-up-glyph" viewBox="0 0 24 24" width="1rem" height="1rem" xmlns="http://www.w3.org/2000/svg">\n <path d="M6.1018 16.9814C5.02785 16.9814 4.45387 15.7165 5.16108 14.9083L10.6829 8.59762C11.3801 7.80079 12.6197 7.80079 13.3169 8.59762L18.8388 14.9083C19.5459 15.7165 18.972 16.9814 17.898 16.9814H6.1018Z"/>\n </svg>\n '},Ks=Ys.compose(Object.assign({baseName:"number-field",template:Us,styles:Gs,shadowOptions:Ws},qs));var Zs=o(186);var Xs=o(45534),Qs=o.n(Xs),Js=o(70704),er=o(73915),tr=o(62431),or=o(30568),ir=o(95476);const ar={windowEvents:["online","offline","pageshow"],documentEvents:["visibilitychange"],genesisConnectEvents:["stream","commit"],checkInterval:1e4,checkTimeout:3e3,resourceChecks:e=>(0,Zs.__awaiter)(void 0,void 0,void 0,(function*(){var t;const o=(0,dt.HC)(),i=yield o.getMoreColumns(e),a=Date.now(),n=i;return{isConnected:null!==(t=(null==i?void 0:i.MESSAGE_TYPE)===rt.Cs.MORE_COLUMNS_ACK)&&void 0!==t&&t,lastUpdated:a,lastMessage:n}})),resourceDataLogon:({message:e,functions:t})=>{const{onMessage:o,onError:i}=t;(0,ir.hb)().sendForStream(e,o,i)}},nr=n.DI.createInterface((e=>e.instance(ar))),sr="system-health-changed";var rr;const lr=(0,ie.createLogger)("network-monitor",{level:ie.LogLevel.Info}),dr=Date.now(),cr=(null===(rr=window.navigator)||void 0===rr?void 0:rr.userAgent)?Qs().parse(window.navigator.userAgent):void 0;class ur{constructor(){this.unsubscribableObservers=[],this.runAllChecks=(e,t)=>(0,Zs.__awaiter)(this,void 0,void 0,(function*(){if(this.isRunningChecks&&!t)return;lr.info("Run health checks, triggered by",e,"| Active resources",this.resources.size),this.isRunningChecks=!0,this.synchroniseCheckInterval();let o=this.getFormattedTimestamp(this.getNowTimestamp());const i=yield this.isOnlineCheck();if(!i){lr.warn(`Network disconnected at ${o}`);const e=this.normaliseSerializedSocketStatus(this.socketStatus.serialize(),!1),t=[...this.resources].reduce(((e,[t,o])=>Object.assign(Object.assign({},e),{[o.resourceName]:this.normaliseResourceHealth({name:o.resourceName,sourceRef:o.message.SOURCE_REF,isConnected:o.isConnected,lastUpdated:o.lastUpdated},!1)})),{});return this.reportSystemHealth({isAuthenticated:e.hasValidSession,isOnline:!1,resources:t,resourcesAllConnected:!1,socket:e}),void(this.isRunningChecks=!1)}lr.debug(`Network connected at ${o}`);const a=this.normaliseSerializedSocketStatus(this.socketStatus.serialize());if(a.isConnecting)return lr.debug("Aborting remaining health checks as socket is still connecting"),void(this.isRunningChecks=!1);let n=!0;const s=[];this.resources.forEach(((e,t)=>{const{resourceName:i,message:a,functions:r}=e,{resourceChecks:l=this.config.resourceChecks,resourceDataLogon:d=this.config.resourceDataLogon}=r,{SOURCE_REF:c}=a;let u,p,h,m,v,g=!1;s.push((()=>(0,Zs.__awaiter)(this,void 0,void 0,(function*(){var a,s,r;try{lr.debug(`Running health check against ${i}`);const e=yield Promise.race([l(c,t),(s=this.config.checkTimeout,r=()=>({isConnected:!1,lastUpdated:this.getNowTimestamp(),timeout:!0}),new Promise((e=>{setTimeout((()=>{e(r())}),s)})))]);g=e.isConnected,u=e.lastUpdated,p=e.lastMessage,m=e.timeout,v=m||(null==p?void 0:p.MESSAGE_TYPE)===rt.Cs.MSG_NACK||(0,rt.Eh)(p,Js.W.NOT_FOUND)}catch(e){g=!1,u=this.getNowTimestamp(),h=e,p=null!==(a=null==e?void 0:e.receivedMessage)&&void 0!==a?a:e,v=(null==p?void 0:p.MESSAGE_TYPE)===rt.Cs.MSG_NACK||(0,rt.Eh)(p,Js.W.NOT_FOUND)}return o=this.getFormattedTimestamp(null!=u?u:this.getNowTimestamp()),g?lr.debug(`${i} is healthy at ${o}`):lr.warn(`${i} is not healthy at ${o}`),h&&lr.error(`${i} errored at ${o}`,h),v&&(lr.error(`${i} timed out at ${o}. Re-attempting data logon.`),d(e)),n&&(n=g),{name:i,sourceRef:c,isConnected:g,lastUpdated:u,lastError:h}})))())}));const r=(yield Promise.allSettled(s)).reduce(((e,t)=>"fulfilled"===t.status?Object.assign(Object.assign({},e),{[t.value.name]:this.normaliseResourceHealth(t.value)}):(lr.warn("Unexpected promise rejection occurred. Please check any custom resourceChecks return MonitoredResourceChecksResult."),e)),{});this.reportSystemHealth({isAuthenticated:a.hasValidSession,isOnline:i,resources:r,resourcesAllConnected:n,socket:a}),this.isRunningChecks=!1}))}create(){this.resources?lr.warn("NetworkMonitor already created. If this is intentional, please call NetworkMonitor.destroy first."):(this.addListeners(),this.resources=new Map,this.synchroniseCheckInterval(),this.runAllChecks("network monitor create"))}destroy(){this.removeListeners(),clearInterval(this.internalId),this.resources.clear(),this.resources=void 0,this.status=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.addResource(a,{functions:t,message:o,resourceName:i})}),(({detail:e})=>{this.removeResource(e)}))),this.config.genesisConnectEvents.includes("commit")&&this.unsubscribableObservers.push(this.connectEvents.addCommitListener(this.runAllChecks)),this.unsubscribableObservers.push(this.connectEvents.addMetadataListener((({detail:e})=>{const{resourceName:t,error:o}=e;o&&lr.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),lr.debug("Dispatching 'system-health-changed'",this.status),null==o||o.dispatchEvent(new CustomEvent(sr,{detail:this.status,bubbles:o!==document,composed:!0})),this.status.socket.reconnectionLimitReached&&(lr.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 lr.debug("User requested report stability to Genesis."),lr.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:cr,username:l,isHealthy:n,lastUpdated:s,nextUpdate:r,firstUpdated:dr,runAllChecks:()=>{lr.debug("User activated run checks command starting."),this.runAllChecks("user requested")},reportStabilityToGenesis:()=>this.reportStabilityToGenesis(d)});return d}getFormattedTimestamp(e){return(0,pa.Lx)(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)([nr],ur.prototype,"config",void 0),(0,Zs.__decorate)([tr.TM],ur.prototype,"socketStatus",void 0),(0,Zs.__decorate)([er.ML],ur.prototype,"connectEvents",void 0),(0,Zs.__decorate)([or.n],ur.prototype,"user",void 0),(0,Zs.__decorate)([r.observable],ur.prototype,"status",void 0);const pr=n.DI.createInterface((e=>e.singleton(ur)));var hr=o(31596);const mr=(e,t)=>r.css`
|
|
2205
|
+
${(0,s.progressStyles)(e,t)}
|
|
2206
|
+
:host {
|
|
2207
|
+
height: calc(var(--design-unit) * 2px);
|
|
2208
|
+
}
|
|
2209
|
+
`,vr=(e,t)=>(0,n.progressTemplate)(e,t);class gr extends s.Progress{}const fr=void 0,br={indeterminateIndicator1:'<span class="indeterminate-indicator-1" part="indeterminate-indicator-1"></span>',indeterminateIndicator2:'<span class="indeterminate-indicator-1" part="indeterminate-indicator-1"></span>'},yr=gr.compose(Object.assign({baseName:"progress",template:vr,styles:mr,shadowOptions:fr},br));function xr(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 wr=(e,t="foundation")=>{e&&Vo(i,a,e);return xr(n.DesignSystem.getOrCreate(e).withPrefix(t))},$r="app",Sr="component";wr().register(yr({prefix:"next-update"}));class Cr extends n.FoundationElement{constructor(){super(...arguments),this.timeTillNextUpdate={totalMs:1e4,remainMs:1e4,remainPercent:100},this.mode=$r,this.logLevel=ie.LogLevel.Info,this.status={isOnline:!0,isHealthy:!0,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=()=>{this.isOpen=!0,this.isDismissed=!1},this.onClose=()=>{this.isOpen=!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 hr.uf.ArrowUp:e.ctrlKey&&e.altKey&&!this.isOpen&&(this.onOpen(),e.preventDefault());break;case hr.uf.ArrowDown:e.ctrlKey&&e.altKey&&this.isOpen&&(this.onClose(),e.preventDefault());break;case hr.CX:this.isOpen&&(this.onDismiss(),e.preventDefault())}}}isOpenChanged(){this.updateTemplateClassNames()}isDismissedChanged(){this.updateTemplateClassNames()}modeChanged(){this.$fastController.isConnected&&this.mode===Sr&&ae.warn("SystemHealthOverlay has support for app overlays only right now.")}logLevelChanged(){lr.level=this.logLevel}statusChanged(e,t){(null==e?void 0:e.isHealthy)&&!1===(null==t?void 0:t.isHealthy)&&this.onOpen(),!1===(null==e?void 0:e.isHealthy)&&(null==t?void 0:t.isHealthy)&&this.onClose(),this.updateClassNames(),this.startTimeTillNextUpdateCountdown()}updateClassNames(){this.isOnlineClassNames=(0,w.A)(["healthy",this.status.isOnline],["unhealthy",!this.status.isOnline]),this.isHealthyClassNames=(0,w.A)(["healthy",this.status.isHealthy],["unhealthy",!this.status.isHealthy]),this.isSocketHealthyClassNames=(0,w.A)(["healthy",this.isSocketHealthy],["unhealthy",!this.isSocketHealthy]),this.resourcesAllConnectedClassNames=(0,w.A)(["healthy",this.status.resourcesAllConnected],["unhealthy",!this.status.resourcesAllConnected],["hidden",!this.validResourceList]),this.updateTemplateClassNames()}updateTemplateClassNames(){this.templateClassNames=(0,w.A)(["open",this.isOpen],["dismissed",this.isDismissed]),this.containerClassNames=(0,w.A)(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(sr,this.onSystemHealthChanged,!0),document.addEventListener("keydown",this.onDocumentKeydown)}removeEventListeners(){this.eventBridge().removeEventListener(sr,this.onSystemHealthChanged,!0),document.removeEventListener("keydown",this.onDocumentKeydown)}static getCheckmarkTemplate(e){return e?r.html`
|
|
2210
|
+
<span class="checkmark">✔</span>
|
|
2211
|
+
`:r.html`
|
|
2212
|
+
<span class="checkmark">✘</span>
|
|
2213
|
+
`}}(0,x.__decorate)([nr],Cr.prototype,"config",void 0),(0,x.__decorate)([pr],Cr.prototype,"networkMonitor",void 0),(0,x.__decorate)([r.observable],Cr.prototype,"resourceList",void 0),(0,x.__decorate)([r.observable],Cr.prototype,"isOpen",void 0),(0,x.__decorate)([r.observable],Cr.prototype,"isDismissed",void 0),(0,x.__decorate)([r.observable],Cr.prototype,"templateClassNames",void 0),(0,x.__decorate)([r.observable],Cr.prototype,"containerClassNames",void 0),(0,x.__decorate)([r.observable],Cr.prototype,"isOnlineClassNames",void 0),(0,x.__decorate)([r.observable],Cr.prototype,"isHealthyClassNames",void 0),(0,x.__decorate)([r.observable],Cr.prototype,"isSocketHealthyClassNames",void 0),(0,x.__decorate)([r.observable],Cr.prototype,"resourcesAllConnectedClassNames",void 0),(0,x.__decorate)([r.observable],Cr.prototype,"timeTillNextUpdate",void 0),(0,x.__decorate)([r.observable],Cr.prototype,"saveDataCallback",void 0),(0,x.__decorate)([r.attr],Cr.prototype,"mode",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"log-level",converter:r.nullableNumberConverter})],Cr.prototype,"logLevel",void 0),(0,x.__decorate)([r.observable],Cr.prototype,"status",void 0);const Fr=(e,t)=>r.html`
|
|
2214
|
+
<template class="${e=>e.templateClassNames}">
|
|
2215
|
+
<header class="${e=>e.isHealthyClassNames}" part="header">
|
|
2216
|
+
<h1>System ${e=>(0,Ya.Ho)(e.isHealthyClassNames)}</h1>
|
|
2217
|
+
${(0,r.when)((e=>!e.status.isHealthy),r.html`
|
|
2218
|
+
<span class="data-warning">Data Validity Unknown</span>
|
|
2219
|
+
`)}
|
|
2220
|
+
<div class="controls">
|
|
2221
|
+
${(0,r.when)((e=>e.isDismissed),r.html`
|
|
2222
|
+
<a href="#" class="open-button" @click="${e=>e.onOpen()}">View Status</a>
|
|
2223
|
+
`)}
|
|
2224
|
+
${(0,r.when)((e=>!e.isDismissed),r.html`
|
|
2225
|
+
<a href="#" class="update-status-button" @click="${e=>e.onUpdateStatus()}">
|
|
2226
|
+
Update Status
|
|
2227
|
+
</a>
|
|
2228
|
+
<a href="#" class="report-status-button" @click="${e=>e.onReportStatus()}">
|
|
2229
|
+
Report Status
|
|
2230
|
+
</a>
|
|
2231
|
+
`)}
|
|
2232
|
+
${(0,r.when)((e=>!e.status.isHealthy&&e.saveDataCallback),r.html`
|
|
2233
|
+
<a href="#" class="save-data-button" @click="${e=>e.saveDataCallback()}">
|
|
2234
|
+
Save Data
|
|
2235
|
+
</a>
|
|
2236
|
+
`)}
|
|
2237
|
+
<a href="#" class="reload-window-button" @click="${e=>e.onReloadWindow()}">
|
|
2238
|
+
Reload Window
|
|
2239
|
+
</a>
|
|
2240
|
+
<a href="#" class="dismiss-button" @click="${e=>e.onDismiss()}">Dismiss (Esc)</a>
|
|
2241
|
+
</div>
|
|
2242
|
+
</header>
|
|
2243
|
+
<div class="container ${e=>e.containerClassNames}" part="container">
|
|
2244
|
+
<section class="network-section ${e=>e.isOnlineClassNames}" part="network-section">
|
|
2245
|
+
<h2>Network ${e=>(0,Ya.Ho)(e.status.isOnline?"online":"offline")}</h2>
|
|
2246
|
+
<dl class="resource-list">
|
|
2247
|
+
<div class="resource ${e=>e.isOnlineClassNames}">
|
|
2248
|
+
<div class="attributes">
|
|
2249
|
+
<div class="online">
|
|
2250
|
+
<dt>Online</dt>
|
|
2251
|
+
<dd>${e=>e.status.isOnline}</dd>
|
|
2252
|
+
</div>
|
|
2253
|
+
<div class="authenticated">
|
|
2254
|
+
<dt>Authenticated</dt>
|
|
2255
|
+
<dd>${e=>e.status.isAuthenticated}</dd>
|
|
2256
|
+
</div>
|
|
2257
|
+
${(0,r.when)((e=>e.status.username),r.html`
|
|
2258
|
+
<div class="username">
|
|
2259
|
+
<dt>Username</dt>
|
|
2260
|
+
<dd>${e=>e.status.username}</dd>
|
|
2261
|
+
</div>
|
|
2262
|
+
`)}
|
|
2263
|
+
<div class="platform-type">
|
|
2264
|
+
<dt>Platform Type</dt>
|
|
2265
|
+
<dd>${e=>{var t,o;return(0,Ya.Ho)(null===(o=null===(t=e.status.browserInformation)||void 0===t?void 0:t.platform)||void 0===o?void 0:o.type)}}</dd>
|
|
2266
|
+
</div>
|
|
2267
|
+
<div class="os-name">
|
|
2268
|
+
<dt>OS Name</dt>
|
|
2269
|
+
<dd>${e=>{var t,o;return(0,Ya.Ho)(null===(o=null===(t=e.status.browserInformation)||void 0===t?void 0:t.os)||void 0===o?void 0:o.name)}}</dd>
|
|
2270
|
+
</div>
|
|
2271
|
+
<div class="os-version">
|
|
2272
|
+
<dt>OS Version</dt>
|
|
2273
|
+
<dd>${e=>{var t,o;return null===(o=null===(t=e.status.browserInformation)||void 0===t?void 0:t.os)||void 0===o?void 0:o.version}}</dd>
|
|
2274
|
+
</div>
|
|
2275
|
+
</div>
|
|
2276
|
+
<div class="attributes">
|
|
2277
|
+
<div class="browser-name">
|
|
2278
|
+
<dt>Browser Name</dt>
|
|
2279
|
+
<dd>${e=>{var t,o;return(0,Ya.Ho)(null===(o=null===(t=e.status.browserInformation)||void 0===t?void 0:t.browser)||void 0===o?void 0:o.name)}}</dd>
|
|
2280
|
+
</div>
|
|
2281
|
+
<div class="browser-version">
|
|
2282
|
+
<dt>Browser Version</dt>
|
|
2283
|
+
<dd>${e=>{var t,o;return null===(o=null===(t=e.status.browserInformation)||void 0===t?void 0:t.browser)||void 0===o?void 0:o.version}}</dd>
|
|
2284
|
+
</div>
|
|
2285
|
+
<div class="first-updated">
|
|
2286
|
+
<dt>First updated</dt>
|
|
2287
|
+
<dd>${e=>(0,pa.Lx)(e.status.firstUpdated)}</dd>
|
|
2288
|
+
</div>
|
|
2289
|
+
<div class="last-updated">
|
|
2290
|
+
<dt>Last updated</dt>
|
|
2291
|
+
<dd>${e=>(0,pa.Lx)(e.status.lastUpdated)}</dd>
|
|
2292
|
+
</div>
|
|
2293
|
+
${(0,r.when)((e=>!e.status.socket.reconnectionLimitReached),r.html`
|
|
2294
|
+
<div class="next-update">
|
|
2295
|
+
<dt>Next update</dt>
|
|
2296
|
+
<dd>${e=>(0,pa.Lx)(e.status.nextUpdate)}</dd>
|
|
2297
|
+
</div>
|
|
2298
|
+
<div class="next-update-progress">
|
|
2299
|
+
<dt></dt>
|
|
2300
|
+
<dd>
|
|
2301
|
+
<next-update-progress
|
|
2302
|
+
value="${e=>e.timeTillNextUpdate.remainPercent}"
|
|
2303
|
+
></next-update-progress>
|
|
2304
|
+
</dd>
|
|
2305
|
+
</div>
|
|
2306
|
+
`)}
|
|
2307
|
+
</div>
|
|
2308
|
+
<div class="controls">
|
|
2309
|
+
${e=>Cr.getCheckmarkTemplate(e.status.isOnline)}
|
|
2310
|
+
</div>
|
|
2311
|
+
</div>
|
|
2312
|
+
</dl>
|
|
2313
|
+
</section>
|
|
2314
|
+
<section class="socket-section ${e=>e.isSocketHealthyClassNames}" part="socket-section">
|
|
2315
|
+
<h2>WebSocket ${e=>(0,Ya.Ho)(e.isSocketHealthyClassNames)}</h2>
|
|
2316
|
+
<dl class="resource-list">
|
|
2317
|
+
<div class="resource ${e=>e.isSocketHealthyClassNames}">
|
|
2318
|
+
<div class="attributes">
|
|
2319
|
+
<div class="configured">
|
|
2320
|
+
<dt>Configured</dt>
|
|
2321
|
+
<dd>${e=>e.status.socket.isConfigured}</dd>
|
|
2322
|
+
</div>
|
|
2323
|
+
<div class="connected">
|
|
2324
|
+
<dt>Connected</dt>
|
|
2325
|
+
<dd>${e=>e.status.socket.isConnected}</dd>
|
|
2326
|
+
</div>
|
|
2327
|
+
<div class="reconnecting">
|
|
2328
|
+
<dt>Reconnecting</dt>
|
|
2329
|
+
<dd>${e=>e.status.socket.isReconnecting}</dd>
|
|
2330
|
+
</div>
|
|
2331
|
+
<div class="reconnection-exhausted">
|
|
2332
|
+
<dt>Reconnection exhausted</dt>
|
|
2333
|
+
<dd>${e=>e.status.socket.reconnectionLimitReached}</dd>
|
|
2334
|
+
</div>
|
|
2335
|
+
</div>
|
|
2336
|
+
<div class="attributes">
|
|
2337
|
+
<div class="disconnected-by-server">
|
|
2338
|
+
<dt>Disconnected by server</dt>
|
|
2339
|
+
<dd>${e=>e.status.socket.isDisconnectedByServer}</dd>
|
|
2340
|
+
</div>
|
|
2341
|
+
<div class="closed-clean">
|
|
2342
|
+
<dt>Closed clean</dt>
|
|
2343
|
+
<dd>${e=>e.status.socket.closedClean}</dd>
|
|
2344
|
+
</div>
|
|
2345
|
+
<div class="closed-code">
|
|
2346
|
+
<dt>Closed code</dt>
|
|
2347
|
+
<dd>${e=>e.status.socket.closedCode}</dd>
|
|
2348
|
+
</div>
|
|
2349
|
+
<div class="closed-reason">
|
|
2350
|
+
<dt>Closed reason</dt>
|
|
2351
|
+
<dd>${e=>e.status.socket.closedReason}</dd>
|
|
2352
|
+
</div>
|
|
2353
|
+
</div>
|
|
2354
|
+
<div class="controls">
|
|
2355
|
+
${e=>Cr.getCheckmarkTemplate(e.isSocketHealthy)}
|
|
2356
|
+
</div>
|
|
2357
|
+
</div>
|
|
2358
|
+
</dl>
|
|
2359
|
+
</section>
|
|
2360
|
+
<section
|
|
2361
|
+
class="resource-section ${e=>e.resourcesAllConnectedClassNames}"
|
|
2362
|
+
part="resource-section"
|
|
2363
|
+
>
|
|
2364
|
+
<h2>Resources ${e=>(0,Ya.Ho)(e.resourcesAllConnectedClassNames)}</h2>
|
|
2365
|
+
<dl class="resource-list">
|
|
2366
|
+
${(0,r.repeat)((e=>e.resourceList),r.html`
|
|
2367
|
+
<div class="resource ${e=>e.isConnected?"healthy":"unhealthy"}">
|
|
2368
|
+
<div class="attributes">
|
|
2369
|
+
<div class="name">
|
|
2370
|
+
<dt>Name</dt>
|
|
2371
|
+
<dd>${e=>e.name}</dd>
|
|
2372
|
+
</div>
|
|
2373
|
+
<div class="status">
|
|
2374
|
+
<dt>Status</dt>
|
|
2375
|
+
<dd>${e=>e.isConnected?"Healthy":"Unhealthy"}</dd>
|
|
2376
|
+
</div>
|
|
2377
|
+
<div class="last-checked">
|
|
2378
|
+
<dt>Checked</dt>
|
|
2379
|
+
<dd>${e=>(0,pa.Lx)(e.lastUpdated)}</dd>
|
|
2380
|
+
</div>
|
|
2381
|
+
</div>
|
|
2382
|
+
<div class="controls">
|
|
2383
|
+
${e=>Cr.getCheckmarkTemplate(e.isConnected)}
|
|
2384
|
+
</div>
|
|
2385
|
+
</div>
|
|
2386
|
+
`)}
|
|
2387
|
+
</dl>
|
|
2388
|
+
</section>
|
|
2389
|
+
</div>
|
|
2390
|
+
</template>
|
|
2391
|
+
`,kr=(e,t)=>r.css`
|
|
2392
|
+
:host {
|
|
2393
|
+
--color-background: black;
|
|
2394
|
+
--color-healthy: green;
|
|
2395
|
+
--color-unhealthy: red;
|
|
2396
|
+
|
|
2397
|
+
--transparency-90: 10%;
|
|
2398
|
+
--transparency-80: 20%;
|
|
2399
|
+
--transparency-70: 30%;
|
|
2400
|
+
--transparency-60: 40%;
|
|
2401
|
+
--transparency-50: 50%;
|
|
2402
|
+
--transparency-40: 60%;
|
|
2403
|
+
--transparency-30: 70%;
|
|
2404
|
+
--transparency-20: 80%;
|
|
2405
|
+
--transparency-10: 90%;
|
|
2406
|
+
|
|
2407
|
+
--transparency-low: var(--transparency-10);
|
|
2408
|
+
--transparency-med: var(--transparency-50);
|
|
2409
|
+
--transparency-high: var(--transparency-90);
|
|
2410
|
+
|
|
2411
|
+
--color-background-with-transparency-low: color-mix(
|
|
2412
|
+
in srgb,
|
|
2413
|
+
var(--color-background) var(--transparency-low),
|
|
2414
|
+
transparent
|
|
2415
|
+
);
|
|
2416
|
+
|
|
2417
|
+
--color-healthy-with-transparency-high: color-mix(
|
|
2418
|
+
in srgb,
|
|
2419
|
+
var(--color-healthy) var(--transparency-high),
|
|
2420
|
+
transparent
|
|
2421
|
+
);
|
|
2422
|
+
|
|
2423
|
+
--color-healthy-with-transparency-80: color-mix(
|
|
2424
|
+
in srgb,
|
|
2425
|
+
var(--color-healthy) var(--transparency-80),
|
|
2426
|
+
transparent
|
|
2427
|
+
);
|
|
2428
|
+
|
|
2429
|
+
--color-healthy-with-transparency-med: color-mix(
|
|
2430
|
+
in srgb,
|
|
2431
|
+
var(--color-healthy) var(--transparency-med),
|
|
2432
|
+
transparent
|
|
2433
|
+
);
|
|
2434
|
+
|
|
2435
|
+
--color-unhealthy-with-transparency-high: color-mix(
|
|
2436
|
+
in srgb,
|
|
2437
|
+
var(--color-unhealthy) var(--transparency-high),
|
|
2438
|
+
transparent
|
|
2439
|
+
);
|
|
2440
|
+
|
|
2441
|
+
--color-unhealthy-with-transparency-80: color-mix(
|
|
2442
|
+
in srgb,
|
|
2443
|
+
var(--color-unhealthy) var(--transparency-80),
|
|
2444
|
+
transparent
|
|
2445
|
+
);
|
|
2446
|
+
|
|
2447
|
+
--color-unhealthy-with-transparency-med: color-mix(
|
|
2448
|
+
in srgb,
|
|
2449
|
+
var(--color-unhealthy) var(--transparency-med),
|
|
2450
|
+
transparent
|
|
2451
|
+
);
|
|
2452
|
+
|
|
2453
|
+
--font-family: Menlo, Consolas, monospace;
|
|
2454
|
+
|
|
2455
|
+
display: none;
|
|
2456
|
+
position: fixed;
|
|
2457
|
+
inset: 0;
|
|
2458
|
+
width: 100vw;
|
|
2459
|
+
height: 100vh;
|
|
2460
|
+
border: none;
|
|
2461
|
+
z-index: 2147483647;
|
|
2462
|
+
box-sizing: border-box;
|
|
2463
|
+
padding: 2rem 2rem 4rem;
|
|
2464
|
+
overflow: auto;
|
|
2465
|
+
background-color: var(--color-background-with-transparency-low);
|
|
2466
|
+
line-height: 1.5;
|
|
2467
|
+
font-size: 1rem;
|
|
2468
|
+
font-family: var(--font-family, Menlo, Consolas, monospace) !important;
|
|
2469
|
+
}
|
|
2470
|
+
|
|
2471
|
+
:host(.open.dismissed) {
|
|
2472
|
+
display: block;
|
|
2473
|
+
overflow: hidden;
|
|
2474
|
+
padding: 0;
|
|
2475
|
+
height: fit-content;
|
|
2476
|
+
min-height: 45px;
|
|
2477
|
+
background-color: var(--color-unhealthy-with-transparency-high);
|
|
2478
|
+
inset: unset;
|
|
2479
|
+
position: fixed;
|
|
2480
|
+
bottom: 0;
|
|
2481
|
+
}
|
|
2482
|
+
|
|
2483
|
+
:host(.open.dismissed) header {
|
|
2484
|
+
padding: 0 1em;
|
|
2485
|
+
}
|
|
2486
|
+
|
|
2487
|
+
:host(.open) {
|
|
2488
|
+
display: block;
|
|
2489
|
+
height: 100vh;
|
|
2490
|
+
}
|
|
2491
|
+
|
|
2492
|
+
.container {
|
|
2493
|
+
padding: 0 1rem 1.5rem;
|
|
2494
|
+
}
|
|
2495
|
+
|
|
2496
|
+
.container.healthy {
|
|
2497
|
+
background-color: var(--color-healthy-with-transparency-high);
|
|
2498
|
+
}
|
|
2499
|
+
|
|
2500
|
+
.container.unhealthy {
|
|
2501
|
+
background-color: var(--color-unhealthy-with-transparency-high);
|
|
2502
|
+
}
|
|
2503
|
+
|
|
2504
|
+
.container.open.dismissed {
|
|
2505
|
+
display: none;
|
|
2506
|
+
}
|
|
2507
|
+
|
|
2508
|
+
header {
|
|
2509
|
+
display: flex;
|
|
2510
|
+
justify-content: space-between;
|
|
2511
|
+
align-items: baseline;
|
|
2512
|
+
margin-bottom: 1px;
|
|
2513
|
+
padding: 0.5em 1em;
|
|
2514
|
+
flex-wrap: wrap;
|
|
2515
|
+
flex-direction: row;
|
|
2516
|
+
}
|
|
2517
|
+
|
|
2518
|
+
header h1 {
|
|
2519
|
+
font-size: 1em;
|
|
2520
|
+
font-weight: normal;
|
|
2521
|
+
}
|
|
2522
|
+
|
|
2523
|
+
header .controls a {
|
|
2524
|
+
font-size: small;
|
|
2525
|
+
padding: 0 1em 0 0;
|
|
2526
|
+
}
|
|
2527
|
+
|
|
2528
|
+
header.healthy {
|
|
2529
|
+
color: var(--color-healthy);
|
|
2530
|
+
background-color: var(--color-healthy-with-transparency-high);
|
|
2531
|
+
}
|
|
2532
|
+
|
|
2533
|
+
header.unhealthy {
|
|
2534
|
+
color: var(--color-unhealthy);
|
|
2535
|
+
background-color: var(--color-unhealthy-with-transparency-high);
|
|
2536
|
+
}
|
|
2537
|
+
|
|
2538
|
+
section {
|
|
2539
|
+
padding-top: 1.5em;
|
|
2540
|
+
font-size: x-small;
|
|
2541
|
+
}
|
|
2542
|
+
|
|
2543
|
+
section h2 {
|
|
2544
|
+
font-size: 1.3em;
|
|
2545
|
+
margin: 0 0 1em 0;
|
|
2546
|
+
text-align: center;
|
|
2547
|
+
color: var(--color-unhealthy);
|
|
2548
|
+
}
|
|
2549
|
+
|
|
2550
|
+
section.unhealthy h2 {
|
|
2551
|
+
color: var(--color-unhealthy);
|
|
2552
|
+
}
|
|
2553
|
+
|
|
2554
|
+
section.healthy h2 {
|
|
2555
|
+
color: var(--color-healthy);
|
|
2556
|
+
}
|
|
2557
|
+
|
|
2558
|
+
.hidden {
|
|
2559
|
+
display: none;
|
|
2560
|
+
}
|
|
2561
|
+
|
|
2562
|
+
.resource-list {
|
|
2563
|
+
display: grid;
|
|
2564
|
+
grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
|
|
2565
|
+
gap: 1rem;
|
|
2566
|
+
}
|
|
2567
|
+
|
|
2568
|
+
.resource {
|
|
2569
|
+
padding: 0.5em 1em;
|
|
2570
|
+
display: grid;
|
|
2571
|
+
grid-template-columns: 3fr 1fr;
|
|
2572
|
+
border-radius: calc(var(--control-corner-radius) * 1px);
|
|
2573
|
+
}
|
|
2574
|
+
|
|
2575
|
+
.resource.healthy {
|
|
2576
|
+
border: var(--color-healthy-with-transparency-med) 1px solid;
|
|
2577
|
+
color: var(--color-healthy);
|
|
2578
|
+
}
|
|
2579
|
+
|
|
2580
|
+
.resource.unhealthy {
|
|
2581
|
+
border: var(--color-unhealthy-with-transparency-med) 1px solid;
|
|
2582
|
+
color: var(--color-unhealthy);
|
|
2583
|
+
}
|
|
2584
|
+
|
|
2585
|
+
.resource .attributes > div {
|
|
2586
|
+
display: grid;
|
|
2587
|
+
grid-template-columns: 1fr 2fr;
|
|
2588
|
+
}
|
|
2589
|
+
|
|
2590
|
+
.resource dt {
|
|
2591
|
+
color: inherit;
|
|
2592
|
+
opacity: 0.7;
|
|
2593
|
+
}
|
|
2594
|
+
|
|
2595
|
+
.resource dt:not(:empty)::after {
|
|
2596
|
+
content: ': ';
|
|
2597
|
+
}
|
|
2598
|
+
|
|
2599
|
+
.resource dd {
|
|
2600
|
+
margin: 0 0 0 0.1em;
|
|
2601
|
+
}
|
|
2602
|
+
|
|
2603
|
+
.resource .controls {
|
|
2604
|
+
display: grid;
|
|
2605
|
+
justify-content: center;
|
|
2606
|
+
align-items: center;
|
|
2607
|
+
border-left: 1px var(--color-background-with-transparency-low) solid;
|
|
2608
|
+
}
|
|
2609
|
+
|
|
2610
|
+
.controls a {
|
|
2611
|
+
display: inline-block;
|
|
2612
|
+
color: inherit;
|
|
2613
|
+
text-underline-offset: 0.2em;
|
|
2614
|
+
}
|
|
2615
|
+
|
|
2616
|
+
.controls .checkmark {
|
|
2617
|
+
font-size: large;
|
|
2618
|
+
}
|
|
2619
|
+
|
|
2620
|
+
.resource.healthy .controls {
|
|
2621
|
+
border-left: 1px var(--color-healthy-with-transparency-80) solid;
|
|
2622
|
+
}
|
|
2623
|
+
|
|
2624
|
+
.resource.unhealthy .controls {
|
|
2625
|
+
border-left: 1px var(--color-unhealthy-with-transparency-80) solid;
|
|
2626
|
+
}
|
|
2627
|
+
|
|
2628
|
+
.network-section .resource-list,
|
|
2629
|
+
.socket-section .resource-list {
|
|
2630
|
+
display: grid;
|
|
2631
|
+
grid-template-columns: 1fr;
|
|
2632
|
+
}
|
|
2633
|
+
|
|
2634
|
+
.network-section .resource,
|
|
2635
|
+
.socket-section .resource {
|
|
2636
|
+
grid-template-columns: 2fr 2fr 1fr;
|
|
2637
|
+
}
|
|
2638
|
+
|
|
2639
|
+
next-update-progress {
|
|
2640
|
+
height: 1px;
|
|
2641
|
+
margin: 0 1em 0 0;
|
|
2642
|
+
}
|
|
2643
|
+
|
|
2644
|
+
.resource.healthy next-update-progress::part(determinate) {
|
|
2645
|
+
background-color: var(--color-healthy);
|
|
2646
|
+
}
|
|
2647
|
+
|
|
2648
|
+
.resource.healthy next-update-progress::part(progress) {
|
|
2649
|
+
background-color: var(--color-healthy-with-transparency-80);
|
|
2650
|
+
}
|
|
2651
|
+
|
|
2652
|
+
.resource.unhealthy next-update-progress::part(determinate) {
|
|
2653
|
+
background-color: var(--color-unhealthy);
|
|
2654
|
+
}
|
|
2655
|
+
|
|
2656
|
+
.resource.unhealthy next-update-progress::part(progress) {
|
|
2657
|
+
background-color: var(--color-unhealthy-with-transparency-80);
|
|
2658
|
+
}
|
|
2659
|
+
|
|
2660
|
+
.data-warning {
|
|
2661
|
+
font-size: small;
|
|
2662
|
+
margin: 0 0.5em;
|
|
2663
|
+
padding: 0.2em 0.5em;
|
|
2664
|
+
background-color: var(--color-unhealthy-with-transparency-80);
|
|
2665
|
+
}
|
|
2666
|
+
`,_r=void 0,Or={},Dr=Cr.compose(Object.assign({baseName:"system-health-overlay",template:Fr,styles:kr,shadowOptions:_r},Or));var Tr=o(86975);const Lr={toView:e=>JSON.stringify(e),fromView:e=>null==e?e:JSON.parse(e)};class Er 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,Tr.fi)(this.target,this,this.buildOptions()))}placementChanged(){this.popper&&this.popper.setOptions(this.buildOptions())}offsetChanged(){this.popper&&this.popper.setOptions(this.buildOptions())}flipChanged(){this.popper&&this.popper.setOptions(this.buildOptions())}buildOptions(){return{placement:this.placement,modifiers:[{name:"offset",options:{offset:this.offset||[0,0]}},{name:"flip",enabled:this.flip}]}}toggle(){this.show=!this.show}disconnectedCallback(){super.disconnectedCallback(),this.popper&&(this.popper.destroy(),this.popper=null)}}(0,x.__decorate)([r.attr],Er.prototype,"selector",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],Er.prototype,"show",void 0),(0,x.__decorate)([r.attr],Er.prototype,"event",void 0),(0,x.__decorate)([r.attr],Er.prototype,"placement",void 0),(0,x.__decorate)([(0,r.attr)({converter:Lr})],Er.prototype,"offset",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],Er.prototype,"flip",void 0);const Ar=r.css`
|
|
2205
2667
|
:host {
|
|
2206
2668
|
display: none;
|
|
2207
2669
|
inset: unset !important;
|
|
@@ -2211,22 +2673,17 @@
|
|
|
2211
2673
|
:host([show]) {
|
|
2212
2674
|
display: block;
|
|
2213
2675
|
}
|
|
2214
|
-
`,
|
|
2676
|
+
`,Nr=r.html`
|
|
2215
2677
|
<template>
|
|
2216
2678
|
<slot></slot>
|
|
2217
2679
|
</template>
|
|
2218
|
-
`,
|
|
2219
|
-
${(0,s.progressStyles)(e,t)}
|
|
2220
|
-
:host {
|
|
2221
|
-
height: calc(var(--design-unit) * 2px);
|
|
2222
|
-
}
|
|
2223
|
-
`,tr=(e,t)=>(0,n.progressTemplate)(e,t);class or extends s.Progress{}const ir=void 0,ar={indeterminateIndicator1:'<span class="indeterminate-indicator-1" part="indeterminate-indicator-1"></span>',indeterminateIndicator2:'<span class="indeterminate-indicator-1" part="indeterminate-indicator-1"></span>'},nr=or.compose(Object.assign({baseName:"progress",template:tr,styles:er,shadowOptions:ir},ar)),sr=(e,t)=>r.css`
|
|
2680
|
+
`,Ir=Er.compose({baseName:"popper",styles:Ar,template:Nr}),Rr=(e,t)=>r.css`
|
|
2224
2681
|
${(0,s.progressRingStyles)(e,t)}
|
|
2225
|
-
`,
|
|
2682
|
+
`,Mr=(e,t)=>(0,n.progressRingTemplate)(e,t);class Hr extends s.Progress{}const Pr=void 0,Br={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 '},zr=Hr.compose(Object.assign({baseName:"progress-ring",template:Mr,styles:Rr,shadowOptions:Pr},Br)),jr=(e,t)=>r.css`
|
|
2226
2683
|
${(0,s.radioStyles)(e,t)}
|
|
2227
|
-
`,
|
|
2684
|
+
`,Vr=(e,t)=>(0,n.radioTemplate)(e,t);class Gr extends s.Radio{}const Ur=void 0,Yr={checkedIndicator:'\n <div part="checked-indicator" class="checked-indicator"></div>\n '},Wr=Gr.compose(Object.assign({baseName:"radio",template:Vr,styles:jr,shadowOptions:Ur},Yr)),qr=(e,t)=>r.css`
|
|
2228
2685
|
${(0,s.radioGroupStyles)(e,t)}
|
|
2229
|
-
`,
|
|
2686
|
+
`,Kr=(e,t)=>(0,n.radioGroupTemplate)(e,t);class Zr extends s.RadioGroup{}const Xr=void 0,Qr={},Jr=Zr.compose(Object.assign({baseName:"radio-group",template:Kr,styles:qr,shadowOptions:Xr},Qr)),el=r.css`
|
|
2230
2687
|
.search-bar-combobox {
|
|
2231
2688
|
width: 100%;
|
|
2232
2689
|
min-width: auto;
|
|
@@ -2319,7 +2776,7 @@
|
|
|
2319
2776
|
.close-icon {
|
|
2320
2777
|
color: var(--accent-fill-rest);
|
|
2321
2778
|
}
|
|
2322
|
-
`,
|
|
2779
|
+
`,tl=(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',ol=()=>'\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>',il=e=>r.html`
|
|
2323
2780
|
|
|
2324
2781
|
<label part="label" for="control" data-test-id="label" class=${e=>{var t;return(0,w.A)("label",["label-hidden",!(null===(t=e.defaultSlottedNodes)||void 0===t?void 0:t.length)])}}
|
|
2325
2782
|
>
|
|
@@ -2397,10 +2854,10 @@
|
|
|
2397
2854
|
<${e}-tooltip class="tooltip" anchor="search-clear-button">
|
|
2398
2855
|
Clear Search Terms
|
|
2399
2856
|
</${e}-tooltip>
|
|
2400
|
-
`,
|
|
2401
|
-
${e=>
|
|
2402
|
-
`,
|
|
2403
|
-
${
|
|
2857
|
+
`,al=r.html`
|
|
2858
|
+
${e=>il(k(e))}
|
|
2859
|
+
`,nl=10,sl=3,rl=1,ll=(e,t)=>(new ft).withExpression((new wt).withField(e).withValue(t).withSerialiser(xt.containsIgnoreCase).build()).build();class dl extends n.FoundationElement{constructor(){super(...arguments),this.searchTerm="",this.appearance="neutral",this.minlength=sl,this.placeholder="Start typing to search",this.selectedOptions=[],this.normalizeDelimiter=e=>e.trim().replace(/\t|\r\n|\n|\r|,/g," "),this.addOrReplaceSelectedText=(e,t,o)=>(null==t?void 0:t.length)>0?e.replace(t,o):e.concat(o)}clear(){this.selectedOptions=[],this.combobox.currentValue="",this.$emit("selectionChange",[])}clearSearch(){this.clear()}inputdeleted(){this.selectedOptions.length>0&&this.unselectOption(this.selectedOptions[this.selectedOptions.length-1])}changeHandler(){const e=[];this.combobox.selectedOptions.forEach((t=>{var o,i;const a=t.value,n=this.searchTerm.trim();e.push({field:a,term:n,label:(null===(o=this.options.find((e=>e.field===a)))||void 0===o?void 0:o.label(n))||t.text,createCriteria:null===(i=this.options.find((e=>e.field===a)))||void 0===i?void 0:i.createCriteria})})),this.selectedOptions=[...this.selectedOptions,...e],this.selectedOptions=this.selectedOptions.filter(((e,t,o)=>t===o.findIndex((t=>e.field===t.field&&e.term===t.term)))),this.combobox.value="",this.combobox.open=!1,this.$emit("selectionChange",this.selectedOptions),r.DOM.queueUpdate((()=>{setTimeout((()=>{this.selectedOptionsDiv.scrollTo(this.selectedOptionsDiv.scrollWidth,0)}),nl)}))}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],dl.prototype,"defaultSlottedNodes",void 0),(0,x.__decorate)([r.observable],dl.prototype,"options",void 0),(0,x.__decorate)([r.observable],dl.prototype,"searchTerm",void 0),(0,x.__decorate)([r.attr],dl.prototype,"appearance",void 0),(0,x.__decorate)([r.attr],dl.prototype,"minlength",void 0),(0,x.__decorate)([r.attr],dl.prototype,"placeholder",void 0),(0,x.__decorate)([r.attr],dl.prototype,"disabled",void 0),(0,x.__decorate)([r.observable],dl.prototype,"loading",void 0),(0,x.__decorate)([r.observable],dl.prototype,"selectedOptions",void 0),(0,x.__decorate)([r.observable],dl.prototype,"filteredOptions",void 0);const cl=void 0,ul={},pl=dl.compose(Object.assign({baseName:"search-bar",template:al,styles:el,shadowOptions:cl},ul)),hl=(e,t)=>r.css`
|
|
2860
|
+
${kt(e,t)}
|
|
2404
2861
|
.control {
|
|
2405
2862
|
width: auto;
|
|
2406
2863
|
padding-left: calc(${s.designUnit} * 1px);
|
|
@@ -2421,7 +2878,7 @@
|
|
|
2421
2878
|
min-width: 150px;
|
|
2422
2879
|
max-width: 169px;
|
|
2423
2880
|
}
|
|
2424
|
-
`,
|
|
2881
|
+
`,ml=(e,t)=>r.html`
|
|
2425
2882
|
<template
|
|
2426
2883
|
aria-disabled="${e=>e.ariaDisabled}"
|
|
2427
2884
|
autocomplete="${e=>e.autocomplete}"
|
|
@@ -2473,7 +2930,7 @@
|
|
|
2473
2930
|
></slot>
|
|
2474
2931
|
</div>
|
|
2475
2932
|
</template>
|
|
2476
|
-
`;class
|
|
2933
|
+
`;class vl extends s.Combobox{constructor(){super(...arguments),this.minlength=rl,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],vl.prototype,"minlength",void 0);const gl={delegatesFocus:!0,mode:"open"},fl={},bl=vl.compose(Object.assign({baseName:"search-bar-combobox",template:ml,styles:hl,shadowOptions:gl},fl)),yl=(e,t)=>r.css`
|
|
2477
2934
|
${(0,s.radioGroupStyles)(e,t)}
|
|
2478
2935
|
::slotted(foundation-segmented-item:first-of-type) {
|
|
2479
2936
|
border-radius: calc(var(--control-corner-radius) * 1px) 0 0
|
|
@@ -2486,7 +2943,7 @@
|
|
|
2486
2943
|
calc(var(--control-corner-radius) * 1px) 0;
|
|
2487
2944
|
border-left-width: 0;
|
|
2488
2945
|
}
|
|
2489
|
-
`,
|
|
2946
|
+
`,xl=(e,t)=>(0,n.radioGroupTemplate)(e,t);class wl extends n.RadioGroup{valueChanged(){void 0===this.value&&this.slottedRadioButtons&&this.slottedRadioButtons.forEach((e=>{e.checked=!1})),super.valueChanged()}}const $l=void 0,Sl={},Cl=wl.compose(Object.assign({baseName:"segmented-control",template:xl,styles:yl,shadowOptions:$l},Sl)),Fl=(e,t)=>r.css`
|
|
2490
2947
|
${(0,s.radioStyles)(e,t)}
|
|
2491
2948
|
:host {
|
|
2492
2949
|
padding: calc(var(--design-unit) * 2px) calc(var(--design-unit) * 4px);
|
|
@@ -2497,7 +2954,7 @@
|
|
|
2497
2954
|
:host([aria-checked='true']) {
|
|
2498
2955
|
background: var(--accent-foreground-rest);
|
|
2499
2956
|
}
|
|
2500
|
-
`,
|
|
2957
|
+
`,kl=(e,t)=>r.html`
|
|
2501
2958
|
<template
|
|
2502
2959
|
role="radio"
|
|
2503
2960
|
aria-checked="${e=>e.checked}"
|
|
@@ -2511,21 +2968,21 @@
|
|
|
2511
2968
|
<slot></slot>
|
|
2512
2969
|
</span>
|
|
2513
2970
|
</template>
|
|
2514
|
-
`;class
|
|
2971
|
+
`;class _l extends s.Radio{}const Ol=void 0,Dl={},Tl=_l.compose(Object.assign({baseName:"segmented-item",template:kl,styles:Fl,shadowOptions:Ol},Dl)),Ll=(e,t)=>r.css`
|
|
2515
2972
|
${(0,s.selectStyles)(e,t)}
|
|
2516
|
-
`,
|
|
2973
|
+
`,El=(e,t)=>(0,n.selectTemplate)(e,t);class Al extends s.Select{}const Nl=void 0,Il={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 '},Rl=Al.compose(Object.assign({baseName:"select",template:El,styles:Ll,shadowOptions:Nl},Il)),Ml=(e,t)=>r.css`
|
|
2517
2974
|
${(0,s.skeletonStyles)(e,t)}
|
|
2518
|
-
`,
|
|
2975
|
+
`,Hl=(e,t)=>(0,n.skeletonTemplate)(e,t);class Pl extends s.Skeleton{}const Bl=void 0,zl={},jl=Pl.compose(Object.assign({baseName:"skeleton",template:Hl,styles:Ml,shadowOptions:Bl},zl)),Vl=(e,t)=>r.css`
|
|
2519
2976
|
${(0,s.sliderStyles)(e,t)}
|
|
2520
2977
|
.track-progress {
|
|
2521
2978
|
background-color: var(--accent-fill-rest);
|
|
2522
2979
|
border-radius: calc(var(--control-corner-radius) * 1px);
|
|
2523
2980
|
}
|
|
2524
|
-
`;var
|
|
2981
|
+
`;var Gl=o(75511),Ul=o(62515);const Yl=(e,t)=>r.html`
|
|
2525
2982
|
<template
|
|
2526
2983
|
role="slider"
|
|
2527
2984
|
class="${e=>e.readOnly?"readonly":""}
|
|
2528
|
-
${e=>e.orientation||
|
|
2985
|
+
${e=>e.orientation||Gl.i.horizontal}"
|
|
2529
2986
|
tabindex="${e=>e.disabled?null:0}"
|
|
2530
2987
|
aria-valuetext="${e=>e.valueTextFormatter(e.value)}"
|
|
2531
2988
|
aria-valuenow="${e=>e.value}"
|
|
@@ -2540,7 +2997,7 @@
|
|
|
2540
2997
|
<div ${(0,r.ref)("track")} part="track-container" class="track">
|
|
2541
2998
|
<div
|
|
2542
2999
|
class="track-progress"
|
|
2543
|
-
style="${e=>{const t=1-(0,
|
|
3000
|
+
style="${e=>{const t=1-(0,Ul.b9)(0,1,(parseInt(e.value)-e.min)/(e.max-e.min)),o=Math.round(100*(1-t));return"horizontal"===e.orientation?e.isDragging?`height: calc(var(--track-width) * 1px); width: ${o}%;`:`height: calc(var(--track-width) * 1px); width: ${o}%; transition: all 0.2s ease;`:e.isDragging?`width: calc(var(--track-width) * 1px); height: ${o}%;`:`width: calc(var(--track-width) * 1px); height: ${o}%; transition: all 0.2s ease;`}}"
|
|
2544
3001
|
></div>
|
|
2545
3002
|
</div>
|
|
2546
3003
|
<slot></slot>
|
|
@@ -2554,9 +3011,9 @@
|
|
|
2554
3011
|
</div>
|
|
2555
3012
|
</div>
|
|
2556
3013
|
</template>
|
|
2557
|
-
`;class
|
|
3014
|
+
`;class Wl extends s.Slider{}const ql=void 0,Kl={thumb:'\n <div class="thumb-cursor"></div>\n '},Zl=Wl.compose(Object.assign({baseName:"slider",template:Yl,styles:Vl,shadowOptions:ql},Kl)),Xl=(e,t)=>r.css`
|
|
2558
3015
|
${(0,s.sliderLabelStyles)(e,t)}
|
|
2559
|
-
|
|
3016
|
+
`,Ql=(e,t)=>(0,n.sliderLabelTemplate)(e,t);class Jl extends s.SliderLabel{}const ed=void 0,td={},od=Jl.compose(Object.assign({baseName:"slider-label",template:Ql,styles:Xl,shadowOptions:ed},td)),id="default",ad={DEFAULT:id,ERROR:"error",SUCCESS:"success"},nd=1e4,sd={DISMISS:"dismiss",AUTO_DISMISS:"autoDismiss"},rd=r.css`
|
|
2560
3017
|
@keyframes append-from-left-animate {
|
|
2561
3018
|
from {
|
|
2562
3019
|
transform: translateX(100%);
|
|
@@ -2674,7 +3131,7 @@
|
|
|
2674
3131
|
flex: 1;
|
|
2675
3132
|
overflow: hidden;
|
|
2676
3133
|
}
|
|
2677
|
-
`,
|
|
3134
|
+
`,ld=e=>r.html`
|
|
2678
3135
|
<div part="snackbar" class="snackbar ${e=>e.deleteAnimation}" ${(0,r.ref)("snackbar")}>
|
|
2679
3136
|
<div part="content" class="content">
|
|
2680
3137
|
<slot name="content">
|
|
@@ -2695,10 +3152,10 @@
|
|
|
2695
3152
|
</slot>
|
|
2696
3153
|
</div>
|
|
2697
3154
|
</div>
|
|
2698
|
-
`,
|
|
2699
|
-
${e=>
|
|
2700
|
-
`,
|
|
2701
|
-
${
|
|
3155
|
+
`,dd=r.html`
|
|
3156
|
+
${e=>ld(k(e))}
|
|
3157
|
+
`,cd={mode:"open",delegatesFocus:!0};class ud extends n.FoundationElement{constructor(){super(...arguments),this.deleteAnimation="",this.closeTimeout=nd,this.autoClose=!1,this.type=id,this.dismissEventListener=this.handleDissmis.bind(this)}connectedCallback(){super.connectedCallback(),this.autoClose&&(this.timeoutRef=setTimeout((()=>{this.handleDissmis(!0)}),this.closeTimeout)),this.addEventListener(sd.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:id}notificationChanged(e,t){var o,i,a;this.type=null!==(a=null===(i=null===(o=null==t?void 0:t.config)||void 0===o?void 0:o.snackbar)||void 0===i?void 0:i.type)&&void 0!==a?a:id}handleDissmis(e=!1){this.deleteAnimation="snackbar-delete",this.snackbar.onanimationend=()=>{this.dismiss(),e&&this.dispatchEvent(new CustomEvent(sd.AUTO_DISMISS,{bubbles:!0,composed:!0,detail:this.identifier}))}}dismiss(){this.remove(),this.timeoutRef&&clearTimeout(this.timeoutRef)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(sd.DISMISS,this.dismissEventListener),this.timeoutRef&&clearTimeout(this.timeoutRef)}}(0,x.__decorate)([r.observable],ud.prototype,"error",void 0),(0,x.__decorate)([r.observable],ud.prototype,"notification",void 0),(0,x.__decorate)([r.observable],ud.prototype,"deleteAnimation",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"identifier"})],ud.prototype,"identifier",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"close-timeout"})],ud.prototype,"closeTimeout",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"auto-close",mode:"boolean"})],ud.prototype,"autoClose",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"type"})],ud.prototype,"type",void 0);const pd=ud.compose({baseName:"snackbar",styles:rd,template:dd,shadowOptions:cd}),hd=(e,t)=>r.css`
|
|
3158
|
+
${qn()}
|
|
2702
3159
|
|
|
2703
3160
|
.fa-stack {
|
|
2704
3161
|
display: inline-block;
|
|
@@ -2723,14 +3180,14 @@
|
|
|
2723
3180
|
.fa-stack-1x {
|
|
2724
3181
|
z-index: 1;
|
|
2725
3182
|
}
|
|
2726
|
-
`,
|
|
3183
|
+
`,md=r.html`
|
|
2727
3184
|
<span
|
|
2728
3185
|
class=${e=>`fa-stack fa-${e.size}`}
|
|
2729
3186
|
style=${e=>`vertical-align: ${e["vertical-align"]};`}
|
|
2730
3187
|
>
|
|
2731
3188
|
<slot></slot>
|
|
2732
3189
|
</span>
|
|
2733
|
-
`;class
|
|
3190
|
+
`;class vd extends n.FoundationElement{constructor(){super(...arguments),this.size=es,this["vertical-align"]="baseline"}}(0,x.__decorate)([r.attr],vd.prototype,"size",void 0),(0,x.__decorate)([r.attr],vd.prototype,"vertical-align",void 0);const gd=vd.compose({baseName:"stacking-icons",template:md,styles:hd}),fd=r.css`
|
|
2734
3191
|
:host {
|
|
2735
3192
|
display: flex;
|
|
2736
3193
|
height: 100%;
|
|
@@ -2816,7 +3273,7 @@
|
|
|
2816
3273
|
max-width: 100%;
|
|
2817
3274
|
max-height: 70px;
|
|
2818
3275
|
}
|
|
2819
|
-
`,
|
|
3276
|
+
`,bd=e=>r.html`
|
|
2820
3277
|
<${e}-card class="stepper-tab" part="stepper-tab" role="stepper-tab" data-test-id="stepper-tab">
|
|
2821
3278
|
<div class="stepper-tab-menu" part="stepper-tab-menu">
|
|
2822
3279
|
<slot name="tab" ${(0,r.slotted)("tabs")}></slot>
|
|
@@ -2844,9 +3301,9 @@
|
|
|
2844
3301
|
</slot>
|
|
2845
3302
|
</div>
|
|
2846
3303
|
</${e}-card>
|
|
2847
|
-
`,
|
|
2848
|
-
${e=>
|
|
2849
|
-
`;class
|
|
3304
|
+
`,yd=r.html`
|
|
3305
|
+
${e=>bd(k(e))}
|
|
3306
|
+
`;class xd extends n.FoundationElement{constructor(){super(...arguments),this.orientation=n.TabsOrientation.vertical,this.progressValue=0,this.activeTabIndex=0,this.completedIds=new Map,this.setTabs=()=>{this.activeTabIndex=this.getActiveIndex(),this.tabs.forEach(((e,t)=>{if("tab"===e.slot){const o=this.activeTabIndex===t,i=t+1===this.tabIds.length,a=this.tabIds[t],n=this.tabpanelIds[t];e.setAttribute("id",a),e.setAttribute("aria-selected",o?"true":"false"),e.setAttribute("aria-disabled",o?"false":"true"),e.setAttribute("selected",o?"true":"false"),e.setAttribute("orientation",this.orientation),e.setAttribute("aria-controls",n),e.setAttribute("aria-controls",n),e.setAttribute("tab-position",String(t+1)),e.setAttribute("isLast",String(i)),e.setAttribute("tabindex",o?"0":"-1"),o&&(this.activetab=e,this.activeid=a)}}))},this.getCompletedTabs=()=>{this.tabs.forEach(((e,t)=>{const o=this.tabIds[t],i=e.isCompleted();this.completedIds.set(o,i)}));let e=0;for(const t of this.completedIds.values())!0===t&&(e+=1);this.progressValue=Math.round(e/this.tabpanels.length*100)},this.setTabPanels=()=>{this.tabpanels.forEach(((e,t)=>{const o=this.tabIds[t],i=this.tabpanelIds[t];e.setAttribute("id",i),e.setAttribute("aria-labelledby",o),this.activeTabIndex!==t?e.setAttribute("hidden",""):e.removeAttribute("hidden")}))}}orientationChanged(){this.$fastController.isConnected&&(this.setTabs(),this.setTabPanels())}activeidChanged(e,t){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.setTabs(),this.setTabPanels(),this.getCompletedTabs())}tabsChanged(){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs(),this.setTabPanels())}tabpanelsChanged(){this.$fastController.isConnected&&this.tabpanels.length<=this.tabs.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs(),this.setTabPanels())}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex()}getActiveIndex(){return void 0!==this.activeid?-1===this.tabIds.indexOf(this.activeid)?0:this.tabIds.indexOf(this.activeid):0}get disabledPreviousStep(){return 0===this.activeTabIndex}get isLastStep(){return this.activeTabIndex+1===this.tabs.length}get islastStepValid(){var e;const t=this.tabs.length-1;return this.activeTabIndex===t&&(this.validation&&(null===(e=this.validation[t])||void 0===e?void 0:e.isValid())||!this.validation||!this.validation[t])?(this.tabs[t].completed=!0,this.getCompletedTabs(),!1):(this.tabs[t].completed=!1,this.getCompletedTabs(),!0)}_submit(){this.$emit("submit")}nextStep(){if(this.$emit("next-step"),this.validation&&this.validation[this.activeTabIndex]){if(!this.validation[this.activeTabIndex].isValid())return this.tabs[this.activeTabIndex].completed=!1,this.tabs[this.activeTabIndex].error=!0,void this.getCompletedTabs();this.tabs[this.activeTabIndex].error=!1}this.activeTabIndex+2<=this.tabIds.length&&(this.tabs[this.activeTabIndex].completed=!0,this.activeTabIndex=this.activeTabIndex+1,this.activeid=this.tabIds[this.activeTabIndex],this.$emit("validation-success"))}previousStep(){0!==this.activeTabIndex&&(this.tabs[this.activeTabIndex].completed=!1,this.activeTabIndex=this.activeTabIndex-1,this.activeid=this.tabIds[this.activeTabIndex])}getTabIds(){return this.tabs.map((e=>{var t;return null!==(t=e.getAttribute("id"))&&void 0!==t?t:`tab-${(0,Ya.EL)()}`}))}getTabPanelIds(){return this.tabpanels.map((e=>{var t;return null!==(t=e.getAttribute("id"))&&void 0!==t?t:`panel-${(0,Ya.EL)()}`}))}}(0,x.__decorate)([(0,r.attr)({attribute:"hide-submit-button",mode:"boolean"})],xd.prototype,"hideSubmitButton",void 0),(0,x.__decorate)([r.attr],xd.prototype,"orientation",void 0),(0,x.__decorate)([r.attr],xd.prototype,"activeid",void 0),(0,x.__decorate)([r.observable],xd.prototype,"tabs",void 0),(0,x.__decorate)([r.observable],xd.prototype,"tabpanels",void 0),(0,x.__decorate)([r.observable],xd.prototype,"validation",void 0),(0,x.__decorate)([r.observable],xd.prototype,"progressValue",void 0),(0,x.__decorate)([r.observable],xd.prototype,"activeTabIndex",void 0),(0,x.__decorate)([r.volatile],xd.prototype,"disabledPreviousStep",null),(0,x.__decorate)([r.volatile],xd.prototype,"isLastStep",null),(0,x.__decorate)([r.volatile],xd.prototype,"islastStepValid",null);const wd=void 0,$d={},Sd=xd.compose(Object.assign({baseName:"stepper",template:yd,styles:fd,shadowOptions:wd},$d)),Cd=(e,t)=>r.css`
|
|
2850
3307
|
.tree-item {
|
|
2851
3308
|
cursor: default;
|
|
2852
3309
|
}
|
|
@@ -2923,8 +3380,8 @@
|
|
|
2923
3380
|
:host([error]) .step-title {
|
|
2924
3381
|
color: #f14376;
|
|
2925
3382
|
}
|
|
2926
|
-
`;var
|
|
2927
|
-
${(0,
|
|
3383
|
+
`;var Fd=o(55509);const kd=e=>r.html`
|
|
3384
|
+
${(0,Fd.l)((e=>e.orientation===n.TabsOrientation.vertical),r.html`
|
|
2928
3385
|
<${e}-tree-item ${(0,r.ref)("treeItem")} class="tree-item">
|
|
2929
3386
|
${(0,r.when)((e=>e.completed),r.html`
|
|
2930
3387
|
<${e}-icon
|
|
@@ -2958,13 +3415,13 @@
|
|
|
2958
3415
|
`)}
|
|
2959
3416
|
</div>
|
|
2960
3417
|
`)}
|
|
2961
|
-
`,
|
|
2962
|
-
${e=>
|
|
2963
|
-
`;class
|
|
3418
|
+
`,_d=r.html`
|
|
3419
|
+
${e=>kd(k(e))}
|
|
3420
|
+
`;class Od 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],Od.prototype,"slot",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],Od.prototype,"selected",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],Od.prototype,"completed",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],Od.prototype,"error",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],Od.prototype,"isLast",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"tab-position"})],Od.prototype,"tabPosition",void 0),(0,x.__decorate)([r.attr],Od.prototype,"orientation",void 0);const Dd=void 0,Td={},Ld=Od.compose(Object.assign({baseName:"stepper-tab",template:_d,styles:Cd,shadowOptions:Dd},Td)),Ed=()=>r.html`
|
|
2964
3421
|
<template slot="tab-panel" role="stepper-tab-panel">
|
|
2965
3422
|
<slot></slot>
|
|
2966
3423
|
</template>
|
|
2967
|
-
`;class
|
|
3424
|
+
`;class Ad extends n.FoundationElement{}const Nd=void 0,Id={},Rd=Ad.compose(Object.assign({baseName:"stepper-tab-panel",template:Ed,shadowOptions:Nd},Id)),Md=(e,t)=>r.css`
|
|
2968
3425
|
${(0,s.switchStyles)(e,t)}
|
|
2969
3426
|
.checked-indicator {
|
|
2970
3427
|
transform: scale(1.3);
|
|
@@ -2977,34 +3434,34 @@
|
|
|
2977
3434
|
.checked-indicator {
|
|
2978
3435
|
border-radius: calc(var(--control-corner-radius) * 2px);
|
|
2979
3436
|
}
|
|
2980
|
-
`,
|
|
3437
|
+
`,Hd=(e,t)=>(0,n.switchTemplate)(e,t);class Pd extends s.Switch{}const Bd=void 0,zd={switch:'<div class="checked-indicator" part="checked-indicator"></div>'},jd=Pd.compose(Object.assign({baseName:"switch",template:Hd,styles:Md,shadowOptions:Bd},zd)),Vd=(e,t)=>r.css`
|
|
2981
3438
|
${(0,s.tabStyles)(e,t)}
|
|
2982
|
-
`,
|
|
3439
|
+
`,Gd=(e,t)=>(0,n.tabTemplate)(e,t);class Ud extends s.Tab{}const Yd=void 0,Wd={},qd=Ud.compose(Object.assign({baseName:"tab",template:Gd,styles:Vd,shadowOptions:Yd},Wd)),Kd=(e,t)=>r.css`
|
|
2983
3440
|
${(0,s.tabPanelStyles)(e,t)}
|
|
2984
3441
|
|
|
2985
3442
|
:host {
|
|
2986
3443
|
height: 100%;
|
|
2987
3444
|
padding: 0;
|
|
2988
3445
|
}
|
|
2989
|
-
`,
|
|
3446
|
+
`,Zd=(e,t)=>(0,n.tabPanelTemplate)(e,t);class Xd extends s.TabPanel{}const Qd=void 0,Jd={},ec=Xd.compose(Object.assign({baseName:"tab-panel",template:Zd,styles:Kd,shadowOptions:Qd},Jd)),tc=(e,t)=>r.css`
|
|
2990
3447
|
${(0,s.tabsStyles)(e,t)}
|
|
2991
3448
|
|
|
2992
3449
|
:host {
|
|
2993
3450
|
height: 100%;
|
|
2994
3451
|
width: 100%;
|
|
2995
3452
|
}
|
|
2996
|
-
`,
|
|
3453
|
+
`,oc=(e,t)=>(0,n.tabsTemplate)(e,t);class ic extends s.Tabs{}const ac=void 0,nc={},sc=ic.compose(Object.assign({baseName:"tabs",template:oc,styles:tc,shadowOptions:ac},nc)),rc=(e,t)=>r.css`
|
|
2997
3454
|
${(0,s.textAreaStyles)(e,t)}
|
|
2998
3455
|
:host .control {
|
|
2999
3456
|
padding: calc(var(--design-unit) * 3px);
|
|
3000
3457
|
}
|
|
3001
|
-
`,
|
|
3458
|
+
`,lc=(e,t)=>(0,n.textAreaTemplate)(e,t);class dc extends s.TextArea{}const cc=void 0,uc={},pc=dc.compose(Object.assign({baseName:"text-area",template:lc,styles:rc,shadowOptions:cc},uc)),{create:hc}=n.DesignToken,mc=hc("active-color-scheme").withDefault((e=>s.baseLayerLuminance.getValueFor(e)===s.StandardLuminance.LightMode?"light":"dark")),vc=(e,t)=>r.css`
|
|
3002
3459
|
${(0,s.textFieldStyles)(e,t)}
|
|
3003
3460
|
|
|
3004
3461
|
input {
|
|
3005
|
-
color-scheme: ${
|
|
3462
|
+
color-scheme: ${mc};
|
|
3006
3463
|
}
|
|
3007
|
-
`,
|
|
3464
|
+
`,gc=(e,t)=>r.html`
|
|
3008
3465
|
<template
|
|
3009
3466
|
class="
|
|
3010
3467
|
${e=>e.readOnly?"readonly":""}
|
|
@@ -3066,7 +3523,7 @@
|
|
|
3066
3523
|
${(0,n.endSlotTemplate)(e,t)}
|
|
3067
3524
|
</div>
|
|
3068
3525
|
</template>
|
|
3069
|
-
`;class
|
|
3526
|
+
`;class fc 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],fc.prototype,"autocomplete",void 0),(0,x.__decorate)([r.attr],fc.prototype,"autocapitalize",void 0),(0,x.__decorate)([r.attr],fc.prototype,"step",void 0);const bc={mode:"open",delegatesFocus:!0},yc={},xc=fc.compose(Object.assign({baseName:"text-field",template:gc,styles:vc,shadowOptions:bc},yc)),wc=r.css`
|
|
3070
3527
|
@keyframes append-animate {
|
|
3071
3528
|
from {
|
|
3072
3529
|
transform: translateX(100%);
|
|
@@ -3167,7 +3624,7 @@
|
|
|
3167
3624
|
.close-icon svg {
|
|
3168
3625
|
cursor: pointer;
|
|
3169
3626
|
}
|
|
3170
|
-
|
|
3627
|
+
`,$c=r.html`
|
|
3171
3628
|
<div class="toast ${e=>e.deleteAnimation}" ${(0,r.ref)("toast")}>
|
|
3172
3629
|
<div class="content-wrapper">
|
|
3173
3630
|
<div part="top" class="top">
|
|
@@ -3185,11 +3642,11 @@
|
|
|
3185
3642
|
</div>
|
|
3186
3643
|
</div>
|
|
3187
3644
|
</div>
|
|
3188
|
-
`,
|
|
3645
|
+
`,Sc={mode:"open",delegatesFocus:!0},Cc={};class Fc 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],Fc.prototype,"deleteAnimation",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"close-timeout"})],Fc.prototype,"closeTimeout",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"auto-close"})],Fc.prototype,"autoClose",void 0);const kc=Fc.compose(Object.assign({baseName:"toast",styles:wc,template:$c,shadowOptions:Sc},Cc)),_c=(e,t)=>r.css`
|
|
3189
3646
|
${(0,s.toolbarStyles)(e,t)}
|
|
3190
|
-
`,
|
|
3647
|
+
`,Oc=(e,t)=>(0,n.toolbarTemplate)(e,t);class Dc extends s.Toolbar{}const Tc=void 0,Lc={},Ec=Dc.compose(Object.assign({baseName:"toolbar",template:Oc,styles:_c,shadowOptions:Tc},Lc)),Ac=(e,t)=>r.css`
|
|
3191
3648
|
${(0,s.tooltipStyles)(e,t)}
|
|
3192
|
-
`,
|
|
3649
|
+
`,Nc=(e,t)=>(0,n.tooltipTemplate)(e,t);class Ic extends s.Tooltip{}const Rc=void 0,Mc={},Hc=Ic.compose(Object.assign({baseName:"tooltip",template:Nc,styles:Ac,shadowOptions:Rc},Mc)),Pc=(e,t)=>r.css`
|
|
3193
3650
|
${(0,s.treeItemStyles)(e,t)}
|
|
3194
3651
|
:host {
|
|
3195
3652
|
--focus-stroke-width: 0;
|
|
@@ -3206,9 +3663,9 @@
|
|
|
3206
3663
|
.positioning-region {
|
|
3207
3664
|
height: calc(((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) * 1px);
|
|
3208
3665
|
}
|
|
3209
|
-
`,
|
|
3666
|
+
`,Bc=(e,t)=>(0,n.treeItemTemplate)(e,t);class zc extends s.TreeItem{}const jc=void 0,Vc={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>'},Gc=zc.compose(Object.assign({baseName:"tree-item",template:Bc,styles:Pc,shadowOptions:jc},Vc)),Uc=(e,t)=>r.css`
|
|
3210
3667
|
${(0,s.treeViewStyles)(e,t)}
|
|
3211
|
-
`,
|
|
3668
|
+
`,Yc=(e,t)=>(0,n.treeViewTemplate)(e,t);class Wc extends n.TreeView{}const qc=void 0,Kc={},Zc=Wc.compose(Object.assign({baseName:"tree-view",template:Yc,styles:Uc,shadowOptions:qc},Kc)),Xc=(e,t)=>r.css`
|
|
3212
3669
|
.container {
|
|
3213
3670
|
position: relative;
|
|
3214
3671
|
width: 100%;
|
|
@@ -3228,7 +3685,7 @@
|
|
|
3228
3685
|
overflow: hidden;
|
|
3229
3686
|
text-overflow: ellipsis;
|
|
3230
3687
|
}
|
|
3231
|
-
|
|
3688
|
+
`,Qc=e=>r.html`
|
|
3232
3689
|
<div class="container" value=${e=>e.value}>
|
|
3233
3690
|
<${e}-text-field
|
|
3234
3691
|
class="url-input"
|
|
@@ -3243,11 +3700,11 @@
|
|
|
3243
3700
|
<a class="url-input-link" href=${e=>e.value} target="_blank">${e=>e.value}</a>
|
|
3244
3701
|
`)}
|
|
3245
3702
|
</div>
|
|
3246
|
-
`,
|
|
3247
|
-
${e
|
|
3248
|
-
`,
|
|
3703
|
+
`,Jc=r.html`
|
|
3704
|
+
${e=>Qc(k(e))}
|
|
3705
|
+
`,eu=void 0,tu={};class ou 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],ou.prototype,"value",void 0),(0,x.__decorate)([r.observable],ou.prototype,"focused",void 0);const iu=ou.compose(Object.assign({baseName:"url-input",template:Jc,styles:Xc,shadowOptions:eu},tu)),au={foundationAccordion:h,foundationAccordionItem:y,foundationActionsMenu:L,foundationAnchor:M,foundationAnchoredRegion:V,foundationAvatar:Z,foundationBadge:oe,foundationBanner:ce,foundationBreadcrumbItem:$e,foundationBreadcrumb:ge,foundationButton:Oe,foundationCalendar:Ne,foundationCard:Be,foundationCategorizedMultiselect:Ze,foundationCheckbox:ot,foundationCombobox:At,foundationConnectionIndicator:Ht,foundationDataGrid:Gt,foundationDataGridCell:Kt,foundationDataGridRow:eo,foundationDatePicker:wo,foundationDesignSystemProvider:ci,foundationDialog:xi,foundationDisclosure:ki,foundationDivider:Ei,foundationDropdownMenu:Pi,foundationErrorBoundary:aa,foundationErrorBanner:Gi,foundationErrorDialog:ca,foundationFileUpload:Ia,foundationFilter:Ua,foundationFilterBar:en,foundationFlexLayout:dn,foundationFlipper:vn,foundationFlyout:Sn,foundationGridLayout:En,foundationGridLayoutItem:Mn,foundationHorizontalScroll:Vn,foundationIcon:is,foundationListbox:ds,foundationListboxOption:vs,foundationMenu:ws,foundationMenuItem:_s,foundationModal:As,foundationMultiselect:js,foundationNumberField:Ks,foundationProgress:yr,foundationPopper:Ir,foundationProgressRing:zr,foundationRadio:Wr,foundationRadioGroup:Jr,foundationSearchBar:pl,foundationSearchBarCombobox:bl,foundationSegmentedControl:Cl,foundationSegmentedItem:Tl,foundationSelect:Rl,foundationSkeleton:jl,foundationSlider:Zl,foundationSliderLabel:od,foundationSnackbar:pd,foundationStepper:Sd,foundationStepperTab:Ld,foundationStepperTabPanel:Rd,foundationStackingIcons:gd,foundationSwitch:jd,foundationSystemHealthOverlay:Dr,foundationTab:qd,foundationTabPanel:ec,foundationTabs:sc,foundationTextArea:pc,foundationTextField:xc,foundationToast:kc,foundationToolbar:Ec,foundationTooltip:Hc,foundationTreeItem:Gc,foundationTreeView:Zc,foundationUrlInput:iu,register(e,...t){if(e)for(const o in this)"register"!==o&&this[o]().register(e,...t)}};class nu 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 su=class extends pt{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.")}};su=(0,x.__decorate)([(0,r.customElement)({name:"data-grid-datasource"})],su);const ru=r.html`
|
|
3249
3706
|
<template ${(0,r.ref)("notificationListener")}>
|
|
3250
3707
|
<slot></slot>
|
|
3251
3708
|
</template>
|
|
3252
|
-
`;var
|
|
3253
|
-
//# sourceMappingURL=
|
|
3709
|
+
`;var lu;!function(e){e.NOTIFICATION_EVENT="notification-event"}(lu||(lu={}));const du={mode:"open",delegatesFocus:!0};class cu 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(lu.NOTIFICATION_EVENT,(e=>{e.stopImmediatePropagation(),Ca(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,lt.$)(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=>{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)),$a(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],cu.prototype,"notificationListener",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"resource-name"})],cu.prototype,"resourceName",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"close-timeout",converter:r.nullableNumberConverter})],cu.prototype,"closeTimeout",void 0),(0,x.__decorate)([r.observable],cu.prototype,"toastButtons",void 0),(0,x.__decorate)([ct.Yh],cu.prototype,"datasource",void 0);const uu=cu.compose({baseName:"notification-listener",template:ru,shadowOptions:du}),pu=(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 hu(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 mu=e=>!e.navId||"header"===e.navId,vu=10;function gu(e,t=mu,o=vu){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 fu,bu=o(50961);!function(e){e.controlClicked="controlClicked",e.routeChanged="routeChanged"}(fu||(fu={}));class yu{constructor(e){this.analytics=(0,bu.ZP)(e)}trackEvent(e,t){ua.k.debug(`FoundationAnalytics.trackEvent ${e} : ${JSON.stringify(t)}`),this.analytics.track(e,t)}}const xu=n.DI.createInterface((e=>e.singleton(yu)));var wu=o(37002),$u=o(68228),Su=o(15878);let Cu=class extends(wu.F0.from(r.FASTElement)){connectedCallback(){super.connectedCallback(),r.DOM.queueUpdate((()=>(0,x.__awaiter)(this,void 0,void 0,(function*(){this.$router.config=this.config}))))}};Cu=(0,x.__decorate)([(0,r.customElement)({name:"foundation-router"})],Cu);class Fu extends $u.R{constructor(){super(...arguments),this.definitions=[]}map(...e){this.definitions=[...this.definitions,...e],super.map(...e)}}(0,x.__decorate)([r.observable],Fu.prototype,"definitions",void 0);class ku extends Su.A{constructor(){super(...arguments),this.routes=new Fu(this)}getNavItems(e=mu){return gu(this.routes.definitions,e)}configureAnalytics(){this.contributors.push({navigate:e=>(0,x.__awaiter)(this,void 0,void 0,(function*(){this.analytics.trackEvent(fu.routeChanged,{path:e.route.endpoint.path})}))})}construct(e){return this.container.get(e)}}(0,x.__decorate)([n.Container],ku.prototype,"container",void 0),(0,x.__decorate)([xu],ku.prototype,"analytics",void 0);const _u=()=>wr().register(au)}}]);
|
|
3710
|
+
//# sourceMappingURL=334.ee10f8b663bc349d646eca0fb1c76dd1.js.map
|