@genesislcap/design-system-configurator 14.54.0 → 14.55.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/361.361.a6e74c2479de0701ca02.js +4 -0
- package/dist/361.a8a7eab93de7b7753f1a62ce0bf06c30.js.map +1 -0
- package/dist/{731.731.8c8f8e6b2fa44b9d6955.js → 385.385.fca541f3968886a9f367.js} +299 -285
- package/dist/385.6aaf9ec01e3df04d6a2f6944cddf33d3.js.map +1 -0
- package/dist/{430.430.6950e7cec0c5ae2c1012.js → 430.430.946d6378554a95b56677.js} +1 -1
- package/dist/{930.930.033cc0c26d9c6d8bf4c3.js → 553.553.e89dc0c933bab629959a.js} +265 -257
- package/dist/553.b070dc73b2fad9537098af455b574594.js.map +1 -0
- package/dist/{688.688.55a30e9c521b1b9e1ec0.js → 688.688.fc08f10703c006986df4.js} +1 -1
- package/dist/{755.755.a3a98c5626a5a47c57cd.js → 755.755.cb8319d9b2889a7164bb.js} +1 -1
- package/dist/{designSystemConfigurator.d8c2248ebe002c8d4b9071a5ef9c2d2a.js.map → designSystemConfigurator.d7f81e4c5b8e90c5eaded46e0fea61fe.js.map} +1 -1
- package/dist/index.html +1 -1
- package/dist/info.html +4 -4
- package/dist/main.7c0c5845fbff3d2e1c4a.js +2 -0
- package/dist/{main.d75bb04537e7f5534bf32851ae1571de.js.map → main.e34f27ea2003bf0232413b6cdc5079fa.js.map} +1 -1
- package/dist/remoteEntry.js +2 -2
- package/package.json +7 -7
- package/dist/361.14ce94031a7714933ba010a11cdcafa5.js.map +0 -1
- package/dist/361.361.2af8eacf8a594f95865d.js +0 -4
- package/dist/731.9b0578ccc03cb13f2c7ba65ebfbba2e9.js.map +0 -1
- package/dist/930.63241367ab9ed9b94e1f73e561fa68af.js.map +0 -1
- package/dist/main.95c704c9de213a0914a9.js +0 -2
- /package/dist/{731.731.8c8f8e6b2fa44b9d6955.js.LICENSE.txt → 385.385.fca541f3968886a9f367.js.LICENSE.txt} +0 -0
|
@@ -1,5 +1,19 @@
|
|
|
1
|
-
/*! For license information please see
|
|
2
|
-
(self.webpackChunk_genesislcap_design_system_configurator=self.webpackChunk_genesislcap_design_system_configurator||[]).push([[731],{87530:function(e){e.exports=function(){"use strict";var e=1e3,t=6e4,o=36e5,i="millisecond",a="second",n="minute",s="hour",r="day",l="week",d="month",c="quarter",u="year",p="date",h="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,v=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,f={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],o=e%100;return"["+e+(t[(o-20)%10]||t[o]||t[0])+"]"}},g=function(e,t,o){var i=String(e);return!i||i.length>=t?e:""+Array(t+1-i.length).join(o)+e},b={s:g,z:function(e){var t=-e.utcOffset(),o=Math.abs(t),i=Math.floor(o/60),a=o%60;return(t<=0?"+":"-")+g(i,2,"0")+":"+g(a,2,"0")},m:function e(t,o){if(t.date()<o.date())return-e(o,t);var i=12*(o.year()-t.year())+(o.month()-t.month()),a=t.clone().add(i,d),n=o-a<0,s=t.clone().add(i+(n?-1:1),d);return+(-(i+(o-a)/(n?a-s:s-a))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:d,y:u,w:l,d:r,D:p,h:s,m:n,s:a,ms:i,Q:c}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},y="en",w={};w[y]=f;var x=function(e){return e instanceof D},F=function e(t,o,i){var a;if(!t)return y;if("string"==typeof t){var n=t.toLowerCase();w[n]&&(a=n),o&&(w[n]=o,a=n);var s=t.split("-");if(!a&&s.length>1)return e(s[0])}else{var r=t.name;w[r]=t,a=r}return!i&&a&&(y=a),a||!i&&y},$=function(e,t){if(x(e))return e.clone();var o="object"==typeof t?t:{};return o.date=e,o.args=arguments,new D(o)},S=b;S.l=F,S.i=x,S.w=function(e,t){return $(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var D=function(){function f(e){this.$L=F(e.locale,null,!0),this.parse(e)}var g=f.prototype;return g.parse=function(e){this.$d=function(e){var t=e.date,o=e.utc;if(null===t)return new Date(NaN);if(S.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var i=t.match(m);if(i){var a=i[2]-1||0,n=(i[7]||"0").substring(0,3);return o?new Date(Date.UTC(i[1],a,i[3]||1,i[4]||0,i[5]||0,i[6]||0,n)):new Date(i[1],a,i[3]||1,i[4]||0,i[5]||0,i[6]||0,n)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},g.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},g.$utils=function(){return S},g.isValid=function(){return!(this.$d.toString()===h)},g.isSame=function(e,t){var o=$(e);return this.startOf(t)<=o&&o<=this.endOf(t)},g.isAfter=function(e,t){return $(e)<this.startOf(t)},g.isBefore=function(e,t){return this.endOf(t)<$(e)},g.$g=function(e,t,o){return S.u(e)?this[t]:this.set(o,e)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(e,t){var o=this,i=!!S.u(t)||t,c=S.p(e),h=function(e,t){var a=S.w(o.$u?Date.UTC(o.$y,t,e):new Date(o.$y,t,e),o);return i?a:a.endOf(r)},m=function(e,t){return S.w(o.toDate()[e].apply(o.toDate("s"),(i?[0,0,0,0]:[23,59,59,999]).slice(t)),o)},v=this.$W,f=this.$M,g=this.$D,b="set"+(this.$u?"UTC":"");switch(c){case u:return i?h(1,0):h(31,11);case d:return i?h(1,f):h(0,f+1);case l:var y=this.$locale().weekStart||0,w=(v<y?v+7:v)-y;return h(i?g-w:g+(6-w),f);case r:case p:return m(b+"Hours",0);case s:return m(b+"Minutes",1);case n:return m(b+"Seconds",2);case a:return m(b+"Milliseconds",3);default:return this.clone()}},g.endOf=function(e){return this.startOf(e,!1)},g.$set=function(e,t){var o,l=S.p(e),c="set"+(this.$u?"UTC":""),h=(o={},o[r]=c+"Date",o[p]=c+"Date",o[d]=c+"Month",o[u]=c+"FullYear",o[s]=c+"Hours",o[n]=c+"Minutes",o[a]=c+"Seconds",o[i]=c+"Milliseconds",o)[l],m=l===r?this.$D+(t-this.$W):t;if(l===d||l===u){var v=this.clone().set(p,1);v.$d[h](m),v.init(),this.$d=v.set(p,Math.min(this.$D,v.daysInMonth())).$d}else h&&this.$d[h](m);return this.init(),this},g.set=function(e,t){return this.clone().$set(e,t)},g.get=function(e){return this[S.p(e)]()},g.add=function(i,c){var p,h=this;i=Number(i);var m=S.p(c),v=function(e){var t=$(h);return S.w(t.date(t.date()+Math.round(e*i)),h)};if(m===d)return this.set(d,this.$M+i);if(m===u)return this.set(u,this.$y+i);if(m===r)return v(1);if(m===l)return v(7);var f=(p={},p[n]=t,p[s]=o,p[a]=e,p)[m]||1,g=this.$d.getTime()+i*f;return S.w(g,this)},g.subtract=function(e,t){return this.add(-1*e,t)},g.format=function(e){var t=this,o=this.$locale();if(!this.isValid())return o.invalidDate||h;var i=e||"YYYY-MM-DDTHH:mm:ssZ",a=S.z(this),n=this.$H,s=this.$m,r=this.$M,l=o.weekdays,d=o.months,c=function(e,o,a,n){return e&&(e[o]||e(t,i))||a[o].slice(0,n)},u=function(e){return S.s(n%12||12,e,"0")},p=o.meridiem||function(e,t,o){var i=e<12?"AM":"PM";return o?i.toLowerCase():i},m={YY:String(this.$y).slice(-2),YYYY:this.$y,M:r+1,MM:S.s(r+1,2,"0"),MMM:c(o.monthsShort,r,d,3),MMMM:c(d,r),D:this.$D,DD:S.s(this.$D,2,"0"),d:String(this.$W),dd:c(o.weekdaysMin,this.$W,l,2),ddd:c(o.weekdaysShort,this.$W,l,3),dddd:l[this.$W],H:String(n),HH:S.s(n,2,"0"),h:u(1),hh:u(2),a:p(n,s,!0),A:p(n,s,!1),m:String(s),mm:S.s(s,2,"0"),s:String(this.$s),ss:S.s(this.$s,2,"0"),SSS:S.s(this.$ms,3,"0"),Z:a};return i.replace(v,(function(e,t){return t||m[e]||a.replace(":","")}))},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(i,p,h){var m,v=S.p(p),f=$(i),g=(f.utcOffset()-this.utcOffset())*t,b=this-f,y=S.m(this,f);return y=(m={},m[u]=y/12,m[d]=y,m[c]=y/3,m[l]=(b-g)/6048e5,m[r]=(b-g)/864e5,m[s]=b/o,m[n]=b/t,m[a]=b/e,m)[v]||b,h?y:S.a(y)},g.daysInMonth=function(){return this.endOf(d).$D},g.$locale=function(){return w[this.$L]},g.locale=function(e,t){if(!e)return this.$L;var o=this.clone(),i=F(e,t,!0);return i&&(o.$L=i),o},g.clone=function(){return S.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},f}(),C=D.prototype;return $.prototype=C,[["$ms",i],["$s",a],["$m",n],["$H",s],["$W",r],["$M",d],["$y",u],["$D",p]].forEach((function(e){C[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),$.extend=function(e,t){return e.$i||(e(t,D,$),e.$i=!0),$},$.locale=F,$.isDayjs=x,$.unix=function(e){return $(1e3*e)},$.en=w[y],$.Ls=w,$.p={},$}()},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}}}()},44458:(e,t,o)=>{"use strict";o.r(t),o.d(t,{ActionsMenu:()=>m,Anchor:()=>y,Badge:()=>D,Banner:()=>R,BaseDatasource:()=>rl,Breadcrumb:()=>M,BreadcrumbItem:()=>G,Button:()=>q,CSSVarsTokenMapper:()=>tl,Card:()=>ee,Checkbox:()=>se,Combobox:()=>pe,ConnectionIndicator:()=>we,DEFUALT_FILTER_BAR_COLUMNS:()=>Ai,DataGrid:()=>Se,DataGridCell:()=>ke,DataGridDatasource:()=>ll,DataGridRow:()=>Ne,DatePicker:()=>Xe,Dialog:()=>Wt,DialogElement:()=>Yt,Disclosure:()=>Zt,Divider:()=>io,DropdownMenu:()=>mo,ErrorBanner:()=>yo,ErrorBoundary:()=>Eo,ErrorBoundaryEvent:()=>xo,ErrorDialog:()=>Bo,FaPrefixFromStyle:()=>Ca,FileUpload:()=>di,Filter:()=>Si,FilterBar:()=>Ni,FilterEvents:()=>$i,FlexLayout:()=>Gi,FlexMediaQueriesEnum:()=>Mi,Flipper:()=>Yi,Flyout:()=>Qi,FoundationDesignSystemProvider:()=>Pt,FoundationRouter:()=>_l,GridLayout:()=>ca,GridLayoutItem:()=>va,GridMediaQueriesEnum:()=>ia,Icon:()=>Oa,Listbox:()=>La,ListboxOption:()=>Ia,Menu:()=>za,MenuItem:()=>Xa,Modal:()=>an,Multiselect:()=>hn,MultiselectDatasource:()=>Sl,NotificationListener:()=>wl,NumberField:()=>gn,OptionsDatasource:()=>$l,Popper:()=>$n,Progress:()=>kn,ProgressRing:()=>En,Radio:()=>Bn,RadioGroup:()=>Wn,SegmentedControl:()=>Qn,SegmentedItem:()=>ns,Select:()=>us,Skeleton:()=>gs,Slider:()=>Ds,Snackbar:()=>Rs,Switch:()=>Ms,Tab:()=>Gs,TabPanel:()=>qs,Tabs:()=>er,TextArea:()=>sr,TextField:()=>pr,Toast:()=>wr,Toolbar:()=>Sr,Tooltip:()=>Tr,TreeItem:()=>Mr,TreeView:()=>Gr,UrlInput:()=>Kr,accentFillActive:()=>f.accentFillActive,accentFillActiveDelta:()=>f.accentFillActiveDelta,accentFillFocus:()=>f.accentFillFocus,accentFillFocusDelta:()=>f.accentFillFocusDelta,accentFillHover:()=>f.accentFillHover,accentFillHoverDelta:()=>f.accentFillHoverDelta,accentFillRest:()=>f.accentFillRest,accentFillRestDelta:()=>f.accentFillRestDelta,accentForegroundActive:()=>f.accentForegroundActive,accentForegroundActiveDelta:()=>f.accentForegroundActiveDelta,accentForegroundFocus:()=>f.accentForegroundFocus,accentForegroundFocusDelta:()=>f.accentForegroundFocusDelta,accentForegroundHover:()=>f.accentForegroundHover,accentForegroundHoverDelta:()=>f.accentForegroundHoverDelta,accentForegroundRest:()=>f.accentForegroundRest,accentForegroundRestDelta:()=>f.accentForegroundRestDelta,accentPalette:()=>f.accentPalette,accentPaletteValue:()=>Ot,actionsMenuBaseStyles:()=>d,baseComponents:()=>Jr,baseHeightMultiplier:()=>f.baseHeightMultiplier,baseLayerLuminance:()=>f.baseLayerLuminance,baseLayerLuminanceValue:()=>kt,black:()=>Qe,bodyFont:()=>f.bodyFont,closeIcon:()=>Gt,configureDesignSystem:()=>Ct,controlCornerRadius:()=>f.controlCornerRadius,controlCornerRadiusValue:()=>Lt,createDesignSystemProxy:()=>Qr,createFormData:()=>oi,defaultAnchorConfig:()=>x,defaultBadgeConfig:()=>O,defaultBreadcrumbConfig:()=>P,defaultBreadcrumbItemConfig:()=>V,defaultButtonConfig:()=>K,defaultCardConfig:()=>oe,defaultCheckboxConfig:()=>le,defaultComboboxConfig:()=>me,defaultDataGridCellConfig:()=>Le,defaultDataGridConfig:()=>Ce,defaultDataGridRowConfig:()=>Me,defaultDatePickerConfig:()=>qe,defaultDialogConfig:()=>Ut,defaultDisclosureConfig:()=>Qt,defaultDividerConfig:()=>no,defaultFileUploadConfig:()=>ui,defaultFillColor:()=>tt,defaultFlexLayoutConfig:()=>Bi,defaultFlipperConfig:()=>qi,defaultFlyoutConfig:()=>ta,defaultGridLayoutConfig:()=>la,defaultGridLayoutItemConfig:()=>ma,defaultIconConfig:()=>Da,defaultListboxConfig:()=>Aa,defaultListboxOptionConfig:()=>Ha,defaultMenuConfig:()=>Ua,defaultMenuItemConfig:()=>Za,defaultModalConfig:()=>on,defaultMultiselectConfig:()=>pn,defaultNeutralForegroundContrast:()=>mt,defaultNumberFieldConfig:()=>yn,defaultProgressConfig:()=>Ln,defaultProgressRingConfig:()=>In,defaultRadioConfig:()=>zn,defaultRadioGroupConfig:()=>Xn,defaultSegmentedControlConfig:()=>ts,defaultSegmentedItemConfig:()=>rs,defaultSelectConfig:()=>hs,defaultSkeletonConfig:()=>ys,defaultSliderConfig:()=>Os,defaultSwitchConfig:()=>Ps,defaultTabConfig:()=>Vs,defaultTabPanelConfig:()=>Ks,defaultTabsConfig:()=>or,defaultTextAreaConfig:()=>lr,defaultTextFieldConfig:()=>mr,defaultToastConfig:()=>yr,defaultToolbarConfig:()=>Cr,defaultTooltipConfig:()=>Rr,defaultTreeItemConfig:()=>Pr,defaultTreeViewConfig:()=>Vr,defaultUrlInputConfig:()=>Xr,defineFactory:()=>Dl,density:()=>f.density,designToken:()=>yt,designUnit:()=>f.designUnit,designUnitValue:()=>Rt,direction:()=>f.direction,directionValue:()=>Tt,disabledOpacity:()=>f.disabledOpacity,downloadFile:()=>ai,dropdownMenuBaseStyles:()=>lo,errorDialogTemplate:()=>Ho,extractMenuItems:()=>uo,fillColor:()=>f.fillColor,flyoutAnimationTime:()=>Ki,focusStrokeInner:()=>f.focusStrokeInner,focusStrokeOuter:()=>f.focusStrokeOuter,focusStrokeWidth:()=>f.focusStrokeWidth,foregroundOnAccentActive:()=>f.foregroundOnAccentActive,foregroundOnAccentActiveLarge:()=>f.foregroundOnAccentActiveLarge,foregroundOnAccentFocus:()=>f.foregroundOnAccentFocus,foregroundOnAccentFocusLarge:()=>f.foregroundOnAccentFocusLarge,foregroundOnAccentHover:()=>f.foregroundOnAccentHover,foregroundOnAccentHoverLarge:()=>f.foregroundOnAccentHoverLarge,foregroundOnAccentRest:()=>f.foregroundOnAccentRest,foregroundOnAccentRestLarge:()=>f.foregroundOnAccentRestLarge,foundationActionsMenu:()=>v,foundationActionsMenuStyles:()=>c,foundationActionsMenuTemplate:()=>h,foundationAnchor:()=>F,foundationAnchorShadowOptions:()=>w,foundationAnchorStyles:()=>g,foundationAnchorTemplate:()=>b,foundationBadge:()=>_,foundationBadgeShadowOptions:()=>C,foundationBadgeStyles:()=>$,foundationBadgeTemplate:()=>S,foundationBanner:()=>A,foundationBannerShadowOptions:()=>L,foundationBannerStyles:()=>k,foundationBannerTemplate:()=>T,foundationBreadcrumb:()=>H,foundationBreadcrumbItem:()=>U,foundationBreadcrumbItemShadowOptions:()=>z,foundationBreadcrumbItemStyles:()=>j,foundationBreadcrumbItemTemplate:()=>B,foundationBreadcrumbShadowOptions:()=>I,foundationBreadcrumbStyles:()=>N,foundationBreadcrumbTemplate:()=>E,foundationButton:()=>Z,foundationButtonShadowOptions:()=>X,foundationButtonStyles:()=>Y,foundationButtonTemplate:()=>W,foundationCard:()=>ie,foundationCardShadowOptions:()=>te,foundationCardStyles:()=>J,foundationCardTemplate:()=>Q,foundationCheckbox:()=>de,foundationCheckboxShadowOptions:()=>re,foundationCheckboxStyles:()=>ae,foundationCheckboxTemplate:()=>ne,foundationCombobox:()=>ve,foundationComboboxShadowOptions:()=>he,foundationComboboxStyles:()=>ce,foundationComboboxTemplate:()=>ue,foundationConnectionIndicator:()=>xe,foundationConnectionIndicatorStyles:()=>be,foundationConnectionIndicatorTemplate:()=>ye,foundationDataGrid:()=>Oe,foundationDataGridCell:()=>Re,foundationDataGridCellShadowOptions:()=>Te,foundationDataGridCellStyles:()=>_e,foundationDataGridCellTemplate:()=>r.dataGridCellTemplate,foundationDataGridRow:()=>Ie,foundationDataGridRowShadowOptions:()=>Ee,foundationDataGridRowStyles:()=>Ae,foundationDataGridRowTemplate:()=>r.dataGridRowTemplate,foundationDataGridShadowOptions:()=>De,foundationDataGridStyles:()=>Fe,foundationDataGridTemplate:()=>$e,foundationDatePicker:()=>Ke,foundationDatePickerShadowOptions:()=>We,foundationDatePickerStyles:()=>Ue,foundationDatePickerTemplate:()=>Ye,foundationDesignSystemProvider:()=>Ht,foundationDialog:()=>qt,foundationDialogShadowOptions:()=>Vt,foundationDialogStyles:()=>Bt,foundationDialogTemplate:()=>zt,foundationDisclosure:()=>eo,foundationDisclosureShadowOptions:()=>Jt,foundationDisclosureStyles:()=>Xt,foundationDisclosureTemplate:()=>Kt,foundationDivider:()=>so,foundationDividerShadowOptions:()=>ao,foundationDividerStyles:()=>to,foundationDividerTemplate:()=>oo,foundationDropdownMenu:()=>vo,foundationDropdownMenuStyles:()=>co,foundationDropdownMenuTemplate:()=>ho,foundationErrorBanner:()=>wo,foundationErrorBannerShadowOptions:()=>bo,foundationErrorBannerTemplate:()=>go,foundationErrorBoundary:()=>Mo,foundationErrorBoundaryShadowOptions:()=>No,foundationErrorBoundaryTemplate:()=>Ao,foundationErrorDialog:()=>Go,foundationErrorDialogShadowOptions:()=>jo,foundationErrorDialogStyles:()=>Io,foundationFileUpload:()=>pi,foundationFileUploadShadowOptions:()=>ci,foundationFileUploadStyles:()=>Qo,foundationFileUploadTemplate:()=>ti,foundationFilter:()=>Di,foundationFilterBar:()=>Ei,foundationFilterBarStyles:()=>Oi,foundationFilterBarTemplate:()=>Ri,foundationFilterStyles:()=>hi,foundationFilterTemplate:()=>Fi,foundationFlexLayout:()=>zi,foundationFlexLayoutShadowOptions:()=>ji,foundationFlexLayoutStyles:()=>Pi,foundationFlexLayoutTemplate:()=>Hi,foundationFlipper:()=>Xi,foundationFlipperShadowOptions:()=>Wi,foundationFlipperStyles:()=>Vi,foundationFlipperTemplate:()=>Ui,foundationFlyout:()=>oa,foundationFlyoutShadowOptions:()=>ea,foundationFlyoutStyles:()=>Zi,foundationFlyoutTemplate:()=>Ji,foundationGridLayout:()=>ua,foundationGridLayoutItem:()=>fa,foundationGridLayoutItemShadowOptions:()=>ha,foundationGridLayoutItemTemplate:()=>pa,foundationGridLayoutShadowOptions:()=>ra,foundationGridLayoutStyles:()=>na,foundationGridLayoutTemplate:()=>sa,foundationIcon:()=>_a,foundationIconShadowOptions:()=>Sa,foundationIconStyles:()=>Fa,foundationIconTemplate:()=>$a,foundationListbox:()=>Na,foundationListboxOption:()=>ja,foundationListboxOptionShadowOptions:()=>Pa,foundationListboxOptionStyles:()=>Ea,foundationListboxOptionTemplate:()=>Ma,foundationListboxShadowOptions:()=>Ra,foundationListboxStyles:()=>ka,foundationListboxTemplate:()=>Ta,foundationMenu:()=>Ya,foundationMenuItem:()=>Ja,foundationMenuItemShadowOptions:()=>Ka,foundationMenuItemStyles:()=>Wa,foundationMenuItemTemplate:()=>qa,foundationMenuShadowOptions:()=>Va,foundationMenuStyles:()=>Ba,foundationMenuTemplate:()=>Ga,foundationModal:()=>nn,foundationModalShadowOptions:()=>tn,foundationModalStyles:()=>Qa,foundationModalTemplate:()=>en,foundationMultiselect:()=>mn,foundationMultiselectShadowOptions:()=>un,foundationNotificationListener:()=>xl,foundationNotificationListenerShadowOptions:()=>yl,foundationNotificationListenerTemplate:()=>dl,foundationNumberField:()=>wn,foundationNumberFieldShadowOptions:()=>bn,foundationNumberFieldStyles:()=>vn,foundationNumberFieldTemplate:()=>fn,foundationPopper:()=>Cn,foundationProgress:()=>Rn,foundationProgressRing:()=>Pn,foundationProgressRingShadowOptions:()=>Mn,foundationProgressRingStyles:()=>An,foundationProgressRingTemplate:()=>Nn,foundationProgressShadowOptions:()=>Tn,foundationProgressStyles:()=>On,foundationProgressTemplate:()=>_n,foundationRadio:()=>Vn,foundationRadioGroup:()=>Kn,foundationRadioGroupShadowOptions:()=>qn,foundationRadioGroupStyles:()=>Un,foundationRadioGroupTemplate:()=>Yn,foundationRadioShadowOptions:()=>Gn,foundationRadioStyles:()=>Hn,foundationRadioTemplate:()=>jn,foundationSegmentedControl:()=>os,foundationSegmentedControlShadowOptions:()=>es,foundationSegmentedControlStyles:()=>Zn,foundationSegmentedControlTemplate:()=>Jn,foundationSegmentedItem:()=>ls,foundationSegmentedItemShadowOptions:()=>ss,foundationSegmentedItemStyles:()=>is,foundationSegmentedItemTemplate:()=>as,foundationSelect:()=>ms,foundationSelectShadowOptions:()=>ps,foundationSelectStyles:()=>ds,foundationSelectTemplate:()=>cs,foundationSkeleton:()=>ws,foundationSkeletonShadowOptions:()=>bs,foundationSkeletonStyles:()=>vs,foundationSkeletonTemplate:()=>fs,foundationSlider:()=>_s,foundationSliderShadowOptions:()=>Cs,foundationSliderStyles:()=>xs,foundationSliderTemplate:()=>Ss,foundationSnackbar:()=>As,foundationSnackbarShadowOptions:()=>Ls,foundationSnackbarStyles:()=>ks,foundationSnackbarTemplate:()=>Ts,foundationSwitch:()=>Hs,foundationSwitchShadowOptions:()=>Is,foundationSwitchStyles:()=>Ns,foundationSwitchTemplate:()=>Es,foundationTab:()=>Us,foundationTabPanel:()=>Zs,foundationTabPanelShadowOptions:()=>Xs,foundationTabPanelStyles:()=>Ys,foundationTabPanelTemplate:()=>Ws,foundationTabShadowOptions:()=>zs,foundationTabStyles:()=>js,foundationTabTemplate:()=>Bs,foundationTabs:()=>ir,foundationTabsShadowOptions:()=>tr,foundationTabsStyles:()=>Js,foundationTabsTemplate:()=>Qs,foundationTextArea:()=>dr,foundationTextAreaShadowOptions:()=>rr,foundationTextAreaStyles:()=>ar,foundationTextAreaTemplate:()=>nr,foundationTextField:()=>vr,foundationTextFieldShadowOptions:()=>hr,foundationTextFieldStyles:()=>cr,foundationTextFieldTemplate:()=>ur,foundationToast:()=>xr,foundationToastShadowOptions:()=>br,foundationToastStyles:()=>fr,foundationToastTemplate:()=>gr,foundationToolbar:()=>Or,foundationToolbarShadowOptions:()=>Dr,foundationToolbarStyles:()=>Fr,foundationToolbarTemplate:()=>$r,foundationTooltip:()=>Ar,foundationTooltipShadowOptions:()=>Lr,foundationTooltipStyles:()=>_r,foundationTooltipTemplate:()=>kr,foundationTreeItem:()=>Hr,foundationTreeItemShadowOptions:()=>Ir,foundationTreeItemStyles:()=>Nr,foundationTreeItemTemplate:()=>Er,foundationTreeView:()=>Ur,foundationTreeViewShadowOptions:()=>zr,foundationTreeViewStyles:()=>jr,foundationTreeViewTemplate:()=>Br,foundationUrlInput:()=>Zr,foundationUrlInputShadowOptions:()=>qr,foundationUrlInputStyles:()=>Yr,fuiAccentPalette:()=>ct,fuiAccentSwatch:()=>dt,fuiCardFillColor:()=>ht,fuiCardForegroundColor:()=>ft,fuiDefaultCardFillColor:()=>it,fuiDefaultCardPalette:()=>at,fuiFillColor:()=>pt,fuiNeutralPalette:()=>rt,fuiNeutralSwatch:()=>st,getDefaultConfig:()=>$t,getDropdownMenuTemplate:()=>po,getErrorDialogTemplate:()=>Po,getExports:()=>St,getFontawesomeIconsCss:()=>xa,getPrefixedFileUpload:()=>ei,getPrefixedMultiselect:()=>dn,getTypeRampValue:()=>Dt,jsonConverter:()=>Fn,mapType:()=>_i,maxheight:()=>rn,menuTemplate:()=>u,mixinFoundationFontFamily:()=>Nt,multiselectStyles:()=>ln,multiselectTemplate:()=>cn,neutralFillActive:()=>f.neutralFillActive,neutralFillActiveDelta:()=>f.neutralFillActiveDelta,neutralFillFocus:()=>f.neutralFillFocus,neutralFillFocusDelta:()=>f.neutralFillFocusDelta,neutralFillHover:()=>f.neutralFillHover,neutralFillHoverDelta:()=>f.neutralFillHoverDelta,neutralFillInputActive:()=>f.neutralFillInputActive,neutralFillInputActiveDelta:()=>f.neutralFillInputActiveDelta,neutralFillInputFocus:()=>f.neutralFillInputFocus,neutralFillInputFocusDelta:()=>f.neutralFillInputFocusDelta,neutralFillInputHover:()=>f.neutralFillInputHover,neutralFillInputHoverDelta:()=>f.neutralFillInputHoverDelta,neutralFillInputRest:()=>f.neutralFillInputRest,neutralFillInputRestDelta:()=>f.neutralFillInputRestDelta,neutralFillLayerRest:()=>f.neutralFillLayerRest,neutralFillLayerRestDelta:()=>f.neutralFillLayerRestDelta,neutralFillRest:()=>f.neutralFillRest,neutralFillRestDelta:()=>f.neutralFillRestDelta,neutralFillStealthActive:()=>f.neutralFillStealthActive,neutralFillStealthActiveDelta:()=>f.neutralFillStealthActiveDelta,neutralFillStealthFocus:()=>f.neutralFillStealthFocus,neutralFillStealthFocusDelta:()=>f.neutralFillStealthFocusDelta,neutralFillStealthHover:()=>f.neutralFillStealthHover,neutralFillStealthHoverDelta:()=>f.neutralFillStealthHoverDelta,neutralFillStealthRest:()=>f.neutralFillStealthRest,neutralFillStealthRestDelta:()=>f.neutralFillStealthRestDelta,neutralFillStrongActive:()=>f.neutralFillStrongActive,neutralFillStrongActiveDelta:()=>f.neutralFillStrongActiveDelta,neutralFillStrongFocus:()=>f.neutralFillStrongFocus,neutralFillStrongFocusDelta:()=>f.neutralFillStrongFocusDelta,neutralFillStrongHover:()=>f.neutralFillStrongHover,neutralFillStrongHoverDelta:()=>f.neutralFillStrongHoverDelta,neutralFillStrongRest:()=>f.neutralFillStrongRest,neutralFillStrongRestDelta:()=>f.neutralFillStrongRestDelta,neutralForeground:()=>vt,neutralForegroundHint:()=>f.neutralForegroundHint,neutralForegroundRest:()=>f.neutralForegroundRest,neutralLayer1:()=>f.neutralLayer1,neutralLayer2:()=>f.neutralLayer2,neutralLayer3:()=>f.neutralLayer3,neutralLayer4:()=>f.neutralLayer4,neutralLayerCardContainer:()=>f.neutralLayerCardContainer,neutralLayerFloating:()=>f.neutralLayerFloating,neutralPalette:()=>f.neutralPalette,neutralPaletteValue:()=>_t,neutralStrokeActive:()=>f.neutralStrokeActive,neutralStrokeActiveDelta:()=>f.neutralStrokeActiveDelta,neutralStrokeDividerRest:()=>f.neutralStrokeDividerRest,neutralStrokeDividerRestDelta:()=>f.neutralStrokeDividerRestDelta,neutralStrokeFocus:()=>f.neutralStrokeFocus,neutralStrokeFocusDelta:()=>f.neutralStrokeFocusDelta,neutralStrokeHover:()=>f.neutralStrokeHover,neutralStrokeHoverDelta:()=>f.neutralStrokeHoverDelta,neutralStrokeRest:()=>f.neutralStrokeRest,neutralStrokeRestDelta:()=>f.neutralStrokeRestDelta,paletteFromHex:()=>xt,provideDesignSystem:()=>el,provideTokens:()=>bt,registerFoundationDesignSystem:()=>kl,singleOptionTemplate:()=>p,strokeWidth:()=>f.strokeWidth,swatchConverter:()=>wt,tagFor:()=>Cl,typeRampBaseFontSize:()=>f.typeRampBaseFontSize,typeRampBaseLineHeight:()=>f.typeRampBaseLineHeight,typeRampMinus1FontSize:()=>f.typeRampMinus1FontSize,typeRampMinus1LineHeight:()=>f.typeRampMinus1LineHeight,typeRampMinus2FontSize:()=>f.typeRampMinus2FontSize,typeRampMinus2LineHeight:()=>f.typeRampMinus2LineHeight,typeRampPlus1FontSize:()=>f.typeRampPlus1FontSize,typeRampPlus1LineHeight:()=>f.typeRampPlus1LineHeight,typeRampPlus2FontSize:()=>f.typeRampPlus2FontSize,typeRampPlus2LineHeight:()=>f.typeRampPlus2LineHeight,typeRampPlus3FontSize:()=>f.typeRampPlus3FontSize,typeRampPlus3LineHeight:()=>f.typeRampPlus3LineHeight,typeRampPlus4FontSize:()=>f.typeRampPlus4FontSize,typeRampPlus4LineHeight:()=>f.typeRampPlus4LineHeight,typeRampPlus5FontSize:()=>f.typeRampPlus5FontSize,typeRampPlus5LineHeight:()=>f.typeRampPlus5LineHeight,typeRampPlus6FontSize:()=>f.typeRampPlus6FontSize,typeRampPlus6LineHeight:()=>f.typeRampPlus6LineHeight,uploadFiles:()=>ii,urlinputTemplate:()=>Wr,white:()=>Je});var i={};o.r(i),o.d(i,{accentFillActive:()=>f.accentFillActive,accentFillActiveDelta:()=>f.accentFillActiveDelta,accentFillFocus:()=>f.accentFillFocus,accentFillFocusDelta:()=>f.accentFillFocusDelta,accentFillHover:()=>f.accentFillHover,accentFillHoverDelta:()=>f.accentFillHoverDelta,accentFillRest:()=>f.accentFillRest,accentFillRestDelta:()=>f.accentFillRestDelta,accentForegroundActive:()=>f.accentForegroundActive,accentForegroundActiveDelta:()=>f.accentForegroundActiveDelta,accentForegroundFocus:()=>f.accentForegroundFocus,accentForegroundFocusDelta:()=>f.accentForegroundFocusDelta,accentForegroundHover:()=>f.accentForegroundHover,accentForegroundHoverDelta:()=>f.accentForegroundHoverDelta,accentForegroundRest:()=>f.accentForegroundRest,accentForegroundRestDelta:()=>f.accentForegroundRestDelta,accentPalette:()=>f.accentPalette,baseHeightMultiplier:()=>f.baseHeightMultiplier,baseLayerLuminance:()=>f.baseLayerLuminance,bodyFont:()=>f.bodyFont,controlCornerRadius:()=>f.controlCornerRadius,defaultNeutralForegroundContrast:()=>mt,density:()=>f.density,designUnit:()=>f.designUnit,direction:()=>f.direction,disabledOpacity:()=>f.disabledOpacity,fillColor:()=>f.fillColor,focusStrokeInner:()=>f.focusStrokeInner,focusStrokeOuter:()=>f.focusStrokeOuter,focusStrokeWidth:()=>f.focusStrokeWidth,foregroundOnAccentActive:()=>f.foregroundOnAccentActive,foregroundOnAccentActiveLarge:()=>f.foregroundOnAccentActiveLarge,foregroundOnAccentFocus:()=>f.foregroundOnAccentFocus,foregroundOnAccentFocusLarge:()=>f.foregroundOnAccentFocusLarge,foregroundOnAccentHover:()=>f.foregroundOnAccentHover,foregroundOnAccentHoverLarge:()=>f.foregroundOnAccentHoverLarge,foregroundOnAccentRest:()=>f.foregroundOnAccentRest,foregroundOnAccentRestLarge:()=>f.foregroundOnAccentRestLarge,fuiCardFillColor:()=>ht,fuiCardForegroundColor:()=>ft,fuiFillColor:()=>pt,neutralFillActive:()=>f.neutralFillActive,neutralFillActiveDelta:()=>f.neutralFillActiveDelta,neutralFillFocus:()=>f.neutralFillFocus,neutralFillFocusDelta:()=>f.neutralFillFocusDelta,neutralFillHover:()=>f.neutralFillHover,neutralFillHoverDelta:()=>f.neutralFillHoverDelta,neutralFillInputActive:()=>f.neutralFillInputActive,neutralFillInputActiveDelta:()=>f.neutralFillInputActiveDelta,neutralFillInputFocus:()=>f.neutralFillInputFocus,neutralFillInputFocusDelta:()=>f.neutralFillInputFocusDelta,neutralFillInputHover:()=>f.neutralFillInputHover,neutralFillInputHoverDelta:()=>f.neutralFillInputHoverDelta,neutralFillInputRest:()=>f.neutralFillInputRest,neutralFillInputRestDelta:()=>f.neutralFillInputRestDelta,neutralFillLayerRest:()=>f.neutralFillLayerRest,neutralFillLayerRestDelta:()=>f.neutralFillLayerRestDelta,neutralFillRest:()=>f.neutralFillRest,neutralFillRestDelta:()=>f.neutralFillRestDelta,neutralFillStealthActive:()=>f.neutralFillStealthActive,neutralFillStealthActiveDelta:()=>f.neutralFillStealthActiveDelta,neutralFillStealthFocus:()=>f.neutralFillStealthFocus,neutralFillStealthFocusDelta:()=>f.neutralFillStealthFocusDelta,neutralFillStealthHover:()=>f.neutralFillStealthHover,neutralFillStealthHoverDelta:()=>f.neutralFillStealthHoverDelta,neutralFillStealthRest:()=>f.neutralFillStealthRest,neutralFillStealthRestDelta:()=>f.neutralFillStealthRestDelta,neutralFillStrongActive:()=>f.neutralFillStrongActive,neutralFillStrongActiveDelta:()=>f.neutralFillStrongActiveDelta,neutralFillStrongFocus:()=>f.neutralFillStrongFocus,neutralFillStrongFocusDelta:()=>f.neutralFillStrongFocusDelta,neutralFillStrongHover:()=>f.neutralFillStrongHover,neutralFillStrongHoverDelta:()=>f.neutralFillStrongHoverDelta,neutralFillStrongRest:()=>f.neutralFillStrongRest,neutralFillStrongRestDelta:()=>f.neutralFillStrongRestDelta,neutralForeground:()=>vt,neutralForegroundHint:()=>f.neutralForegroundHint,neutralForegroundRest:()=>f.neutralForegroundRest,neutralLayer1:()=>f.neutralLayer1,neutralLayer2:()=>f.neutralLayer2,neutralLayer3:()=>f.neutralLayer3,neutralLayer4:()=>f.neutralLayer4,neutralLayerCardContainer:()=>f.neutralLayerCardContainer,neutralLayerFloating:()=>f.neutralLayerFloating,neutralPalette:()=>f.neutralPalette,neutralStrokeActive:()=>f.neutralStrokeActive,neutralStrokeActiveDelta:()=>f.neutralStrokeActiveDelta,neutralStrokeDividerRest:()=>f.neutralStrokeDividerRest,neutralStrokeDividerRestDelta:()=>f.neutralStrokeDividerRestDelta,neutralStrokeFocus:()=>f.neutralStrokeFocus,neutralStrokeFocusDelta:()=>f.neutralStrokeFocusDelta,neutralStrokeHover:()=>f.neutralStrokeHover,neutralStrokeHoverDelta:()=>f.neutralStrokeHoverDelta,neutralStrokeRest:()=>f.neutralStrokeRest,neutralStrokeRestDelta:()=>f.neutralStrokeRestDelta,strokeWidth:()=>f.strokeWidth,typeRampBaseFontSize:()=>f.typeRampBaseFontSize,typeRampBaseLineHeight:()=>f.typeRampBaseLineHeight,typeRampMinus1FontSize:()=>f.typeRampMinus1FontSize,typeRampMinus1LineHeight:()=>f.typeRampMinus1LineHeight,typeRampMinus2FontSize:()=>f.typeRampMinus2FontSize,typeRampMinus2LineHeight:()=>f.typeRampMinus2LineHeight,typeRampPlus1FontSize:()=>f.typeRampPlus1FontSize,typeRampPlus1LineHeight:()=>f.typeRampPlus1LineHeight,typeRampPlus2FontSize:()=>f.typeRampPlus2FontSize,typeRampPlus2LineHeight:()=>f.typeRampPlus2LineHeight,typeRampPlus3FontSize:()=>f.typeRampPlus3FontSize,typeRampPlus3LineHeight:()=>f.typeRampPlus3LineHeight,typeRampPlus4FontSize:()=>f.typeRampPlus4FontSize,typeRampPlus4LineHeight:()=>f.typeRampPlus4LineHeight,typeRampPlus5FontSize:()=>f.typeRampPlus5FontSize,typeRampPlus5LineHeight:()=>f.typeRampPlus5LineHeight,typeRampPlus6FontSize:()=>f.typeRampPlus6FontSize,typeRampPlus6LineHeight:()=>f.typeRampPlus6LineHeight});var a={};o.r(a),o.d(a,{accentPaletteValue:()=>Ot,baseLayerLuminanceValue:()=>kt,controlCornerRadiusValue:()=>Lt,designUnitValue:()=>Rt,directionValue:()=>Tt,neutralPaletteValue:()=>_t});var n=o(38092),s=o(83147),r=o(75951),l=o(9770);const d=(e,t)=>s.css`
|
|
1
|
+
/*! For license information please see 385.385.fca541f3968886a9f367.js.LICENSE.txt */
|
|
2
|
+
(self.webpackChunk_genesislcap_design_system_configurator=self.webpackChunk_genesislcap_design_system_configurator||[]).push([[385],{87530:function(e){e.exports=function(){"use strict";var e=1e3,t=6e4,o=36e5,i="millisecond",a="second",n="minute",s="hour",r="day",l="week",d="month",c="quarter",u="year",p="date",h="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,f=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],o=e%100;return"["+e+(t[(o-20)%10]||t[o]||t[0])+"]"}},g=function(e,t,o){var i=String(e);return!i||i.length>=t?e:""+Array(t+1-i.length).join(o)+e},b={s:g,z:function(e){var t=-e.utcOffset(),o=Math.abs(t),i=Math.floor(o/60),a=o%60;return(t<=0?"+":"-")+g(i,2,"0")+":"+g(a,2,"0")},m:function e(t,o){if(t.date()<o.date())return-e(o,t);var i=12*(o.year()-t.year())+(o.month()-t.month()),a=t.clone().add(i,d),n=o-a<0,s=t.clone().add(i+(n?-1:1),d);return+(-(i+(o-a)/(n?a-s:s-a))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:d,y:u,w:l,d:r,D:p,h:s,m:n,s:a,ms:i,Q:c}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},y="en",w={};w[y]=v;var x=function(e){return e instanceof D},F=function e(t,o,i){var a;if(!t)return y;if("string"==typeof t){var n=t.toLowerCase();w[n]&&(a=n),o&&(w[n]=o,a=n);var s=t.split("-");if(!a&&s.length>1)return e(s[0])}else{var r=t.name;w[r]=t,a=r}return!i&&a&&(y=a),a||!i&&y},$=function(e,t){if(x(e))return e.clone();var o="object"==typeof t?t:{};return o.date=e,o.args=arguments,new D(o)},S=b;S.l=F,S.i=x,S.w=function(e,t){return $(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var D=function(){function v(e){this.$L=F(e.locale,null,!0),this.parse(e)}var g=v.prototype;return g.parse=function(e){this.$d=function(e){var t=e.date,o=e.utc;if(null===t)return new Date(NaN);if(S.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var i=t.match(m);if(i){var a=i[2]-1||0,n=(i[7]||"0").substring(0,3);return o?new Date(Date.UTC(i[1],a,i[3]||1,i[4]||0,i[5]||0,i[6]||0,n)):new Date(i[1],a,i[3]||1,i[4]||0,i[5]||0,i[6]||0,n)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},g.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},g.$utils=function(){return S},g.isValid=function(){return!(this.$d.toString()===h)},g.isSame=function(e,t){var o=$(e);return this.startOf(t)<=o&&o<=this.endOf(t)},g.isAfter=function(e,t){return $(e)<this.startOf(t)},g.isBefore=function(e,t){return this.endOf(t)<$(e)},g.$g=function(e,t,o){return S.u(e)?this[t]:this.set(o,e)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(e,t){var o=this,i=!!S.u(t)||t,c=S.p(e),h=function(e,t){var a=S.w(o.$u?Date.UTC(o.$y,t,e):new Date(o.$y,t,e),o);return i?a:a.endOf(r)},m=function(e,t){return S.w(o.toDate()[e].apply(o.toDate("s"),(i?[0,0,0,0]:[23,59,59,999]).slice(t)),o)},f=this.$W,v=this.$M,g=this.$D,b="set"+(this.$u?"UTC":"");switch(c){case u:return i?h(1,0):h(31,11);case d:return i?h(1,v):h(0,v+1);case l:var y=this.$locale().weekStart||0,w=(f<y?f+7:f)-y;return h(i?g-w:g+(6-w),v);case r:case p:return m(b+"Hours",0);case s:return m(b+"Minutes",1);case n:return m(b+"Seconds",2);case a:return m(b+"Milliseconds",3);default:return this.clone()}},g.endOf=function(e){return this.startOf(e,!1)},g.$set=function(e,t){var o,l=S.p(e),c="set"+(this.$u?"UTC":""),h=(o={},o[r]=c+"Date",o[p]=c+"Date",o[d]=c+"Month",o[u]=c+"FullYear",o[s]=c+"Hours",o[n]=c+"Minutes",o[a]=c+"Seconds",o[i]=c+"Milliseconds",o)[l],m=l===r?this.$D+(t-this.$W):t;if(l===d||l===u){var f=this.clone().set(p,1);f.$d[h](m),f.init(),this.$d=f.set(p,Math.min(this.$D,f.daysInMonth())).$d}else h&&this.$d[h](m);return this.init(),this},g.set=function(e,t){return this.clone().$set(e,t)},g.get=function(e){return this[S.p(e)]()},g.add=function(i,c){var p,h=this;i=Number(i);var m=S.p(c),f=function(e){var t=$(h);return S.w(t.date(t.date()+Math.round(e*i)),h)};if(m===d)return this.set(d,this.$M+i);if(m===u)return this.set(u,this.$y+i);if(m===r)return f(1);if(m===l)return f(7);var v=(p={},p[n]=t,p[s]=o,p[a]=e,p)[m]||1,g=this.$d.getTime()+i*v;return S.w(g,this)},g.subtract=function(e,t){return this.add(-1*e,t)},g.format=function(e){var t=this,o=this.$locale();if(!this.isValid())return o.invalidDate||h;var i=e||"YYYY-MM-DDTHH:mm:ssZ",a=S.z(this),n=this.$H,s=this.$m,r=this.$M,l=o.weekdays,d=o.months,c=function(e,o,a,n){return e&&(e[o]||e(t,i))||a[o].slice(0,n)},u=function(e){return S.s(n%12||12,e,"0")},p=o.meridiem||function(e,t,o){var i=e<12?"AM":"PM";return o?i.toLowerCase():i},m={YY:String(this.$y).slice(-2),YYYY:this.$y,M:r+1,MM:S.s(r+1,2,"0"),MMM:c(o.monthsShort,r,d,3),MMMM:c(d,r),D:this.$D,DD:S.s(this.$D,2,"0"),d:String(this.$W),dd:c(o.weekdaysMin,this.$W,l,2),ddd:c(o.weekdaysShort,this.$W,l,3),dddd:l[this.$W],H:String(n),HH:S.s(n,2,"0"),h:u(1),hh:u(2),a:p(n,s,!0),A:p(n,s,!1),m:String(s),mm:S.s(s,2,"0"),s:String(this.$s),ss:S.s(this.$s,2,"0"),SSS:S.s(this.$ms,3,"0"),Z:a};return i.replace(f,(function(e,t){return t||m[e]||a.replace(":","")}))},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(i,p,h){var m,f=S.p(p),v=$(i),g=(v.utcOffset()-this.utcOffset())*t,b=this-v,y=S.m(this,v);return y=(m={},m[u]=y/12,m[d]=y,m[c]=y/3,m[l]=(b-g)/6048e5,m[r]=(b-g)/864e5,m[s]=b/o,m[n]=b/t,m[a]=b/e,m)[f]||b,h?y:S.a(y)},g.daysInMonth=function(){return this.endOf(d).$D},g.$locale=function(){return w[this.$L]},g.locale=function(e,t){if(!e)return this.$L;var o=this.clone(),i=F(e,t,!0);return i&&(o.$L=i),o},g.clone=function(){return S.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},v}(),C=D.prototype;return $.prototype=C,[["$ms",i],["$s",a],["$m",n],["$H",s],["$W",r],["$M",d],["$y",u],["$D",p]].forEach((function(e){C[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),$.extend=function(e,t){return e.$i||(e(t,D,$),e.$i=!0),$},$.locale=F,$.isDayjs=x,$.unix=function(e){return $(1e3*e)},$.en=w[y],$.Ls=w,$.p={},$}()},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}}}()},5917:(e,t,o)=>{"use strict";o.r(t),o.d(t,{Accordion:()=>c,AccordionItem:()=>v,ActionsMenu:()=>O,Anchor:()=>L,Badge:()=>I,Banner:()=>V,BaseDatasource:()=>yl,Breadcrumb:()=>q,BreadcrumbItem:()=>ee,Button:()=>se,CSSVarsTokenMapper:()=>hl,Card:()=>pe,Checkbox:()=>be,Combobox:()=>Se,ConnectionIndicator:()=>Re,DEFUALT_FILTER_BAR_COLUMNS:()=>Ui,DataGrid:()=>Me,DataGridCell:()=>Be,DataGridDatasource:()=>wl,DataGridRow:()=>Ye,DatePicker:()=>rt,Dialog:()=>no,DialogElement:()=>ao,Disclosure:()=>co,Divider:()=>vo,DropdownMenu:()=>Co,ErrorBanner:()=>Lo,ErrorBoundary:()=>Wo,ErrorBoundaryEvent:()=>Ao,ErrorDialog:()=>Qo,FaPrefixFromStyle:()=>Pa,FileUpload:()=>xi,Filter:()=>Mi,FilterBar:()=>Yi,FilterEvents:()=>Ei,FlexLayout:()=>ea,FlexMediaQueriesEnum:()=>qi,Flipper:()=>aa,Flyout:()=>ua,FoundationDesignSystemProvider:()=>Zt,FoundationRouter:()=>jl,GridLayout:()=>Fa,GridLayoutItem:()=>Oa,GridMediaQueriesEnum:()=>fa,Icon:()=>Ha,Listbox:()=>za,ListboxOption:()=>Xa,Menu:()=>tn,MenuItem:()=>ln,Modal:()=>vn,Multiselect:()=>Dn,MultiselectDatasource:()=>Ml,NotificationListener:()=>Rl,NumberField:()=>kn,OptionsDatasource:()=>El,Popper:()=>En,Progress:()=>Bn,ProgressRing:()=>Wn,Radio:()=>Qn,RadioGroup:()=>ns,SegmentedControl:()=>us,SegmentedItem:()=>gs,Select:()=>$s,Skeleton:()=>ks,Slider:()=>Is,Snackbar:()=>Vs,Switch:()=>qs,Tab:()=>er,TabPanel:()=>sr,Tabs:()=>pr,TextArea:()=>br,TextField:()=>Sr,Toast:()=>Rr,Toolbar:()=>Mr,Tooltip:()=>Gr,TreeItem:()=>qr,TreeView:()=>el,UrlInput:()=>ll,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:()=>Ht,actionsMenuBaseStyles:()=>F,baseComponents:()=>cl,baseHeightMultiplier:()=>s.baseHeightMultiplier,baseLayerLuminance:()=>s.baseLayerLuminance,baseLayerLuminanceValue:()=>Bt,black:()=>ut,bodyFont:()=>s.bodyFont,closeIcon:()=>eo,configureDesignSystem:()=>Pt,controlCornerRadius:()=>s.controlCornerRadius,controlCornerRadiusValue:()=>zt,createDesignSystemProxy:()=>ul,createFormData:()=>mi,defaultAccordionConfig:()=>p,defaultAccordionItemConfig:()=>b,defaultAnchorConfig:()=>A,defaultBadgeConfig:()=>H,defaultBreadcrumbConfig:()=>Z,defaultBreadcrumbItemConfig:()=>oe,defaultButtonConfig:()=>le,defaultCardConfig:()=>me,defaultCheckboxConfig:()=>we,defaultComboboxConfig:()=>Ce,defaultDataGridCellConfig:()=>ze,defaultDataGridConfig:()=>Pe,defaultDataGridRowConfig:()=>qe,defaultDatePickerConfig:()=>st,defaultDialogConfig:()=>io,defaultDisclosureConfig:()=>po,defaultDividerConfig:()=>bo,defaultFileUploadConfig:()=>$i,defaultFillColor:()=>ht,defaultFlexLayoutConfig:()=>Qi,defaultFlipperConfig:()=>sa,defaultFlyoutConfig:()=>ha,defaultGridLayoutConfig:()=>wa,defaultGridLayoutItemConfig:()=>Ca,defaultIconConfig:()=>Ia,defaultListboxConfig:()=>Ua,defaultListboxOptionConfig:()=>Ka,defaultMenuConfig:()=>an,defaultMenuItemConfig:()=>cn,defaultModalConfig:()=>fn,defaultMultiselectConfig:()=>Sn,defaultNeutralForegroundContrast:()=>Ct,defaultNumberFieldConfig:()=>Ln,defaultProgressConfig:()=>zn,defaultProgressRingConfig:()=>Xn,defaultRadioConfig:()=>ts,defaultRadioGroupConfig:()=>rs,defaultSegmentedControlConfig:()=>hs,defaultSegmentedItemConfig:()=>ys,defaultSelectConfig:()=>Ds,defaultSkeletonConfig:()=>Ls,defaultSliderConfig:()=>Hs,defaultSwitchConfig:()=>Zs,defaultTabConfig:()=>or,defaultTabPanelConfig:()=>lr,defaultTabsConfig:()=>mr,defaultTextAreaConfig:()=>wr,defaultTextFieldConfig:()=>Cr,defaultToastConfig:()=>Lr,defaultToolbarConfig:()=>Pr,defaultTooltipConfig:()=>Vr,defaultTreeItemConfig:()=>Zr,defaultTreeViewConfig:()=>ol,defaultUrlInputConfig:()=>rl,defineFactory:()=>Il,density:()=>s.density,designToken:()=>Lt,designUnit:()=>s.designUnit,designUnitValue:()=>Vt,direction:()=>s.direction,directionValue:()=>Gt,disabledOpacity:()=>s.disabledOpacity,downloadFile:()=>vi,dropdownMenuBaseStyles:()=>xo,errorDialogTemplate:()=>Ko,extractMenuItems:()=>$o,fillColor:()=>s.fillColor,flyoutAnimationTime:()=>la,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:()=>g,foundationAccordionItemStyles:()=>m,foundationAccordionItemTemplate:()=>f,foundationAccordionShadowOptions:()=>u,foundationAccordionStyles:()=>l,foundationAccordionTemplate:()=>d,foundationActionsMenu:()=>_,foundationActionsMenuStyles:()=>$,foundationActionsMenuTemplate:()=>C,foundationAnchor:()=>N,foundationAnchorShadowOptions:()=>R,foundationAnchorStyles:()=>k,foundationAnchorTemplate:()=>T,foundationBadge:()=>j,foundationBadgeShadowOptions:()=>P,foundationBadgeStyles:()=>E,foundationBadgeTemplate:()=>M,foundationBanner:()=>U,foundationBannerShadowOptions:()=>z,foundationBannerStyles:()=>B,foundationBannerTemplate:()=>G,foundationBreadcrumb:()=>K,foundationBreadcrumbItem:()=>ie,foundationBreadcrumbItemShadowOptions:()=>te,foundationBreadcrumbItemStyles:()=>J,foundationBreadcrumbItemTemplate:()=>Q,foundationBreadcrumbShadowOptions:()=>X,foundationBreadcrumbStyles:()=>Y,foundationBreadcrumbTemplate:()=>W,foundationButton:()=>de,foundationButtonShadowOptions:()=>re,foundationButtonStyles:()=>ae,foundationButtonTemplate:()=>ne,foundationCard:()=>fe,foundationCardShadowOptions:()=>he,foundationCardStyles:()=>ce,foundationCardTemplate:()=>ue,foundationCheckbox:()=>xe,foundationCheckboxShadowOptions:()=>ye,foundationCheckboxStyles:()=>ve,foundationCheckboxTemplate:()=>ge,foundationCombobox:()=>Oe,foundationComboboxShadowOptions:()=>De,foundationComboboxStyles:()=>Fe,foundationComboboxTemplate:()=>$e,foundationConnectionIndicator:()=>Ae,foundationConnectionIndicatorStyles:()=>Te,foundationConnectionIndicatorTemplate:()=>Le,foundationDataGrid:()=>He,foundationDataGridCell:()=>Ve,foundationDataGridCellShadowOptions:()=>Ge,foundationDataGridCellStyles:()=>je,foundationDataGridCellTemplate:()=>n.dataGridCellTemplate,foundationDataGridRow:()=>Xe,foundationDataGridRowShadowOptions:()=>We,foundationDataGridRowStyles:()=>Ue,foundationDataGridRowTemplate:()=>n.dataGridRowTemplate,foundationDataGridShadowOptions:()=>Ie,foundationDataGridStyles:()=>Ne,foundationDataGridTemplate:()=>Ee,foundationDatePicker:()=>lt,foundationDatePickerShadowOptions:()=>nt,foundationDatePickerStyles:()=>it,foundationDatePickerTemplate:()=>at,foundationDesignSystemProvider:()=>Kt,foundationDialog:()=>so,foundationDialogShadowOptions:()=>oo,foundationDialogStyles:()=>Qt,foundationDialogTemplate:()=>to,foundationDisclosure:()=>ho,foundationDisclosureShadowOptions:()=>uo,foundationDisclosureStyles:()=>ro,foundationDisclosureTemplate:()=>lo,foundationDivider:()=>yo,foundationDividerShadowOptions:()=>go,foundationDividerStyles:()=>mo,foundationDividerTemplate:()=>fo,foundationDropdownMenu:()=>Oo,foundationDropdownMenuStyles:()=>Fo,foundationDropdownMenuTemplate:()=>Do,foundationErrorBanner:()=>Ro,foundationErrorBannerShadowOptions:()=>To,foundationErrorBannerTemplate:()=>ko,foundationErrorBoundary:()=>qo,foundationErrorBoundaryShadowOptions:()=>Yo,foundationErrorBoundaryTemplate:()=>Uo,foundationErrorDialog:()=>ei,foundationErrorDialogShadowOptions:()=>Jo,foundationErrorDialogStyles:()=>Xo,foundationFileUpload:()=>Si,foundationFileUploadShadowOptions:()=>Fi,foundationFileUploadStyles:()=>ui,foundationFileUploadTemplate:()=>hi,foundationFilter:()=>Ii,foundationFilterBar:()=>Wi,foundationFilterBarStyles:()=>Hi,foundationFilterBarTemplate:()=>Vi,foundationFilterStyles:()=>Di,foundationFilterTemplate:()=>Ni,foundationFlexLayout:()=>ta,foundationFlexLayoutShadowOptions:()=>Ji,foundationFlexLayoutStyles:()=>Zi,foundationFlexLayoutTemplate:()=>Ki,foundationFlipper:()=>ra,foundationFlipperShadowOptions:()=>na,foundationFlipperStyles:()=>oa,foundationFlipperTemplate:()=>ia,foundationFlyout:()=>ma,foundationFlyoutShadowOptions:()=>pa,foundationFlyoutStyles:()=>da,foundationFlyoutTemplate:()=>ca,foundationGridLayout:()=>$a,foundationGridLayoutItem:()=>_a,foundationGridLayoutItemShadowOptions:()=>Da,foundationGridLayoutItemTemplate:()=>Sa,foundationGridLayoutShadowOptions:()=>ya,foundationGridLayoutStyles:()=>ga,foundationGridLayoutTemplate:()=>ba,foundationIcon:()=>ja,foundationIconShadowOptions:()=>Ma,foundationIconStyles:()=>Na,foundationIconTemplate:()=>Ea,foundationListbox:()=>Ya,foundationListboxOption:()=>Ja,foundationListboxOptionShadowOptions:()=>Za,foundationListboxOptionStyles:()=>Wa,foundationListboxOptionTemplate:()=>qa,foundationListboxShadowOptions:()=>Va,foundationListboxStyles:()=>Ba,foundationListboxTemplate:()=>Ga,foundationMenu:()=>nn,foundationMenuItem:()=>un,foundationMenuItemShadowOptions:()=>dn,foundationMenuItemStyles:()=>sn,foundationMenuItemTemplate:()=>rn,foundationMenuShadowOptions:()=>on,foundationMenuStyles:()=>Qa,foundationMenuTemplate:()=>en,foundationModal:()=>gn,foundationModalShadowOptions:()=>mn,foundationModalStyles:()=>pn,foundationModalTemplate:()=>hn,foundationMultiselect:()=>Cn,foundationMultiselectShadowOptions:()=>$n,foundationNotificationListener:()=>Al,foundationNotificationListenerShadowOptions:()=>Ll,foundationNotificationListenerTemplate:()=>xl,foundationNumberField:()=>Rn,foundationNumberFieldShadowOptions:()=>Tn,foundationNumberFieldStyles:()=>On,foundationNumberFieldTemplate:()=>_n,foundationPopper:()=>Pn,foundationProgress:()=>Vn,foundationProgressRing:()=>Zn,foundationProgressRingShadowOptions:()=>qn,foundationProgressRingStyles:()=>Un,foundationProgressRingTemplate:()=>Yn,foundationProgressShadowOptions:()=>Gn,foundationProgressStyles:()=>Hn,foundationProgressTemplate:()=>jn,foundationRadio:()=>os,foundationRadioGroup:()=>ls,foundationRadioGroupShadowOptions:()=>ss,foundationRadioGroupStyles:()=>is,foundationRadioGroupTemplate:()=>as,foundationRadioShadowOptions:()=>es,foundationRadioStyles:()=>Kn,foundationRadioTemplate:()=>Jn,foundationSegmentedControl:()=>ms,foundationSegmentedControlShadowOptions:()=>ps,foundationSegmentedControlStyles:()=>ds,foundationSegmentedControlTemplate:()=>cs,foundationSegmentedItem:()=>ws,foundationSegmentedItemShadowOptions:()=>bs,foundationSegmentedItemStyles:()=>fs,foundationSegmentedItemTemplate:()=>vs,foundationSelect:()=>Cs,foundationSelectShadowOptions:()=>Ss,foundationSelectStyles:()=>xs,foundationSelectTemplate:()=>Fs,foundationSkeleton:()=>Rs,foundationSkeletonShadowOptions:()=>Ts,foundationSkeletonStyles:()=>Os,foundationSkeletonTemplate:()=>_s,foundationSlider:()=>js,foundationSliderShadowOptions:()=>Ps,foundationSliderStyles:()=>As,foundationSliderTemplate:()=>Ms,foundationSnackbar:()=>Us,foundationSnackbarShadowOptions:()=>zs,foundationSnackbarStyles:()=>Bs,foundationSnackbarTemplate:()=>Gs,foundationSwitch:()=>Ks,foundationSwitchShadowOptions:()=>Xs,foundationSwitchStyles:()=>Ys,foundationSwitchTemplate:()=>Ws,foundationTab:()=>ir,foundationTabPanel:()=>dr,foundationTabPanelShadowOptions:()=>rr,foundationTabPanelStyles:()=>ar,foundationTabPanelTemplate:()=>nr,foundationTabShadowOptions:()=>tr,foundationTabStyles:()=>Js,foundationTabTemplate:()=>Qs,foundationTabs:()=>fr,foundationTabsShadowOptions:()=>hr,foundationTabsStyles:()=>cr,foundationTabsTemplate:()=>ur,foundationTextArea:()=>xr,foundationTextAreaShadowOptions:()=>yr,foundationTextAreaStyles:()=>vr,foundationTextAreaTemplate:()=>gr,foundationTextField:()=>Or,foundationTextFieldShadowOptions:()=>Dr,foundationTextFieldStyles:()=>Fr,foundationTextFieldTemplate:()=>$r,foundationToast:()=>Ar,foundationToastShadowOptions:()=>Tr,foundationToastStyles:()=>_r,foundationToastTemplate:()=>kr,foundationToolbar:()=>Hr,foundationToolbarShadowOptions:()=>Ir,foundationToolbarStyles:()=>Nr,foundationToolbarTemplate:()=>Er,foundationTooltip:()=>Ur,foundationTooltipShadowOptions:()=>zr,foundationTooltipStyles:()=>jr,foundationTooltipTemplate:()=>Br,foundationTreeItem:()=>Kr,foundationTreeItemShadowOptions:()=>Xr,foundationTreeItemStyles:()=>Yr,foundationTreeItemTemplate:()=>Wr,foundationTreeView:()=>il,foundationTreeViewShadowOptions:()=>tl,foundationTreeViewStyles:()=>Jr,foundationTreeViewTemplate:()=>Qr,foundationUrlInput:()=>dl,foundationUrlInputShadowOptions:()=>sl,foundationUrlInputStyles:()=>al,fuiAccentPalette:()=>Ft,fuiAccentSwatch:()=>xt,fuiCardFillColor:()=>Dt,fuiCardForegroundColor:()=>_t,fuiDefaultCardFillColor:()=>ft,fuiDefaultCardPalette:()=>vt,fuiFillColor:()=>St,fuiNeutralPalette:()=>yt,fuiNeutralSwatch:()=>bt,getDefaultConfig:()=>Et,getDropdownMenuTemplate:()=>So,getErrorDialogTemplate:()=>Zo,getExports:()=>Mt,getFontawesomeIconsCss:()=>Aa,getPrefixedFileUpload:()=>pi,getPrefixedMultiselect:()=>xn,getTypeRampValue:()=>It,jsonConverter:()=>Nn,mapType:()=>ji,maxheight:()=>yn,menuTemplate:()=>S,mixinFoundationFontFamily:()=>Yt,multiselectStyles:()=>wn,multiselectTemplate:()=>Fn,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:()=>Ot,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:()=>jt,neutralStrokeActive:()=>s.neutralStrokeActive,neutralStrokeActiveDelta:()=>s.neutralStrokeActiveDelta,neutralStrokeDividerRest:()=>s.neutralStrokeDividerRest,neutralStrokeDividerRestDelta:()=>s.neutralStrokeDividerRestDelta,neutralStrokeFocus:()=>s.neutralStrokeFocus,neutralStrokeFocusDelta:()=>s.neutralStrokeFocusDelta,neutralStrokeHover:()=>s.neutralStrokeHover,neutralStrokeHoverDelta:()=>s.neutralStrokeHoverDelta,neutralStrokeRest:()=>s.neutralStrokeRest,neutralStrokeRestDelta:()=>s.neutralStrokeRestDelta,paletteFromHex:()=>At,provideDesignSystem:()=>pl,provideTokens:()=>Tt,registerFoundationDesignSystem:()=>Bl,singleOptionTemplate:()=>D,strokeWidth:()=>s.strokeWidth,swatchConverter:()=>Rt,tagFor:()=>Pl,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:()=>fi,urlinputTemplate:()=>nl,white:()=>ct});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:()=>Ct,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:()=>Dt,fuiCardForegroundColor:()=>_t,fuiFillColor:()=>St,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:()=>Ot,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:()=>Ht,baseLayerLuminanceValue:()=>Bt,controlCornerRadiusValue:()=>zt,designUnitValue:()=>Vt,directionValue:()=>Gt,neutralPaletteValue:()=>jt});var n=o(75951),s=o(13896),r=o(83147);const l=(e,t)=>r.css`
|
|
3
|
+
${(0,s.accordionStyles)(e,t)}
|
|
4
|
+
`,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`
|
|
5
|
+
${(0,s.accordionItemStyles)(e,t)}
|
|
6
|
+
|
|
7
|
+
slot[name='collapsed-icon'] {
|
|
8
|
+
display: flex;
|
|
9
|
+
stroke: var(--accent-foreground-rest);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
slot[name='expanded-icon'] {
|
|
13
|
+
display: none;
|
|
14
|
+
stroke: var(--accent-foreground-rest);
|
|
15
|
+
}
|
|
16
|
+
`,f=(e,t)=>(0,n.accordionItemTemplate)(e,t);class v extends s.AccordionItem{}const g={delegatesFocus:!0,mode:"open"},b={collapsedIcon:'<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg" slot="collapsed-icon">\n <path d="M15.2222 1H2.77778C1.79594 1 1 1.79594 1 2.77778V15.2222C1 16.2041 1.79594 17 2.77778 17H15.2222C16.2041 17 17 16.2041 17 15.2222V2.77778C17 1.79594 16.2041 1 15.2222 1Z" stroke-linecap="round" stroke-linejoin="round"></path>\n <path d="M9 5.44446V12.5556" stroke-linecap="round" stroke-linejoin="round"></path>\n <path d="M5.44446 9H12.5556" stroke-linecap="round" stroke-linejoin="round"></path>\n </svg>',expandedIcon:'<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg" slot="expanded-icon">\n <path d="M15.2222 1H2.77778C1.79594 1 1 1.79594 1 2.77778V15.2222C1 16.2041 1.79594 17 2.77778 17H15.2222C16.2041 17 17 16.2041 17 15.2222V2.77778C17 1.79594 16.2041 1 15.2222 1Z" stroke-linecap="round" stroke-linejoin="round"></path>\n <path d="M5.44446 9H12.5556" stroke-linecap="round" stroke-linejoin="round"></path>\n </svg>'},y=v.compose(Object.assign({baseName:"accordion-item",template:f,styles:m,shadowOptions:g},b));var w=o(38092),x=o(9770);const F=(e,t)=>r.css`
|
|
3
17
|
:host {
|
|
4
18
|
--actions-opener-height-multiplier: 0.7px;
|
|
5
19
|
--actions-opener-bg-color: 249 254 255;
|
|
@@ -89,9 +103,9 @@
|
|
|
89
103
|
display: flex;
|
|
90
104
|
flex-direction: column;
|
|
91
105
|
}
|
|
92
|
-
|
|
93
|
-
${
|
|
94
|
-
`,
|
|
106
|
+
`,$=(e,t)=>r.css`
|
|
107
|
+
${F(e,t)}
|
|
108
|
+
`,S=r.html`
|
|
95
109
|
<fast-button
|
|
96
110
|
id="actiosnMenuTrigger"
|
|
97
111
|
class="actions-opener${e=>e.open?" opened":""}"
|
|
@@ -99,13 +113,13 @@
|
|
|
99
113
|
part="actions-opener"
|
|
100
114
|
@click=${e=>e.toggleActionsMenuVisibility()}
|
|
101
115
|
>
|
|
102
|
-
${e=>e.open?"✖":
|
|
116
|
+
${e=>e.open?"✖":r.html`
|
|
103
117
|
${e.name}
|
|
104
118
|
`}
|
|
105
119
|
</fast-button>
|
|
106
|
-
<fast-menu ${(0,
|
|
107
|
-
${(0,
|
|
108
|
-
${(0,
|
|
120
|
+
<fast-menu ${(0,r.ref)("actionsMenu")} class="actions-menu ${e=>e.classNames}" part="actions-menu">
|
|
121
|
+
${(0,r.repeat)((e=>e.allActions),r.html`
|
|
122
|
+
${(0,r.when)(((e,t)=>e.isDisabled&&e.isDisabled(t.parent.rowData)),r.html`
|
|
109
123
|
<fast-menu-item
|
|
110
124
|
class="menu-item"
|
|
111
125
|
tabindex="${(e,t)=>t.index}"
|
|
@@ -115,7 +129,7 @@
|
|
|
115
129
|
${(e,t)=>t.parent.getLabel(e.name)}
|
|
116
130
|
</fast-menu-item>
|
|
117
131
|
`)}
|
|
118
|
-
${(0,
|
|
132
|
+
${(0,r.when)(((e,t)=>!e.isDisabled||!e.isDisabled(t.parent.rowData)),r.html`
|
|
119
133
|
<fast-menu-item
|
|
120
134
|
class="menu-item"
|
|
121
135
|
tabindex="${(e,t)=>t.index}"
|
|
@@ -127,7 +141,7 @@
|
|
|
127
141
|
`)}
|
|
128
142
|
`,{positioning:!0})}
|
|
129
143
|
</fast-menu>
|
|
130
|
-
`,
|
|
144
|
+
`,D=r.html`
|
|
131
145
|
<fast-button
|
|
132
146
|
appearance="${e=>e.buttonAppearance}"
|
|
133
147
|
part="actions-opener"
|
|
@@ -137,18 +151,18 @@
|
|
|
137
151
|
>
|
|
138
152
|
${e=>e.getLabel(null==e?void 0:e.singleOption.name)}
|
|
139
153
|
</fast-button>
|
|
140
|
-
`,
|
|
154
|
+
`,C=r.html`
|
|
141
155
|
<div
|
|
142
156
|
class="actions-container${e=>e.isVertical?" actions-vertical":""}"
|
|
143
157
|
part="actions-container"
|
|
144
158
|
>
|
|
145
159
|
${e=>e.getTemplate()}
|
|
146
160
|
</div>
|
|
147
|
-
`;class
|
|
148
|
-
${(0,
|
|
149
|
-
`,
|
|
150
|
-
${(0,
|
|
151
|
-
`,
|
|
161
|
+
`;class O extends n.FoundationElement{constructor(){super(...arguments),this.isVertical=!1,this.addDefaultActions=!0,this.autoCloseOnAction=!0,this.name="Actions",this.open=!1,this.hideDisabled=!1,this.hideMenuSingleOption=!1}definitionChanged(e,t){var o;this.actions=null!==(o=null==t?void 0:t.actions)&&void 0!==o?o:[],delete this.definition.actions,t.buttonText&&(this.name=t.buttonText,delete this.definition.customButtonText),t.isVertical&&(this.isVertical=t.isVertical,delete this.definition.isVertical),t.buttonAppearance&&(this.buttonAppearance=t.buttonAppearance,delete this.definition.buttonAppearance),t.hideMenuSingleOption&&(this.hideMenuSingleOption=t.hideMenuSingleOption,delete this.definition.hideMenuSingleOption)}openChanged(){this.classNames=(0,x.A)(["visible",this.open],["hidden",!this.open])}toggleActionsMenuVisibility(){this.open=!this.open}onActionMenuItemClick(e){this.autoCloseOnAction&&(this.open=!1),e(this.rowData)}get allActions(){var e;const t=[{name:"✖",callback:()=>this.open=!1}];return this.addDefaultActions?[...null!==(e=this.actions)&&void 0!==e?e:[],...t]:this.actions}get rowData(){if(!this.definition)return;const{node:e,data:t}=this.definition;return(null==e?void 0:e.data)||t}getLabel(e){return this.rowData?"function"==typeof e?e(this.rowData):e:""}getTemplate(){if(!this.hideMenuSingleOption)return S;const e=this.actions.filter((e=>!e.isDisabled||!e.isDisabled(this.rowData)));return this.singleOption=null,0!==e.length?1===e.length?(this.singleOption=e[0],D):S:void 0}}(0,w.__decorate)([r.observable],O.prototype,"actions",void 0),(0,w.__decorate)([(0,r.attr)({attribute:"is-vertical",mode:"boolean"})],O.prototype,"isVertical",void 0),(0,w.__decorate)([(0,r.attr)({attribute:"add-default-actions",mode:"boolean"})],O.prototype,"addDefaultActions",void 0),(0,w.__decorate)([(0,r.attr)({attribute:"auto-close-on-action",mode:"boolean"})],O.prototype,"autoCloseOnAction",void 0),(0,w.__decorate)([r.observable],O.prototype,"classNames",void 0),(0,w.__decorate)([r.observable],O.prototype,"definition",void 0),(0,w.__decorate)([r.attr],O.prototype,"name",void 0),(0,w.__decorate)([(0,r.attr)({attribute:"open",mode:"boolean"})],O.prototype,"open",void 0),(0,w.__decorate)([r.attr],O.prototype,"buttonAppearance",void 0),(0,w.__decorate)([(0,r.attr)({attribute:"hide-disabled",mode:"boolean"})],O.prototype,"hideDisabled",void 0),(0,w.__decorate)([(0,r.attr)({attribute:"hide-menu-single-option",mode:"boolean"})],O.prototype,"hideMenuSingleOption",void 0),(0,w.__decorate)([r.observable],O.prototype,"singleOption",void 0);const _=O.compose({baseName:"actions-menu",styles:$,template:C}),k=(e,t)=>r.css`
|
|
162
|
+
${(0,s.anchorStyles)(e,t)}
|
|
163
|
+
`,T=(e,t)=>(0,n.anchorTemplate)(e,t);class L extends s.Anchor{}const R={delegatesFocus:!0,mode:"open"},A={},N=L.compose(Object.assign({baseName:"anchor",template:T,styles:k,shadowOptions:R},A)),E=(e,t)=>r.css`
|
|
164
|
+
${(0,s.badgeStyles)(e,t)}
|
|
165
|
+
`,M=(e,t)=>(0,n.badgeTemplate)(e,t);class I extends s.Badge{}const P=void 0,H={},j=I.compose(Object.assign({baseName:"badge",template:M,styles:E,shadowOptions:P},H)),B=r.css`
|
|
152
166
|
@keyframes delete-animate {
|
|
153
167
|
from {
|
|
154
168
|
height: 100px;
|
|
@@ -219,8 +233,8 @@
|
|
|
219
233
|
flex: 1;
|
|
220
234
|
overflow: hidden;
|
|
221
235
|
}
|
|
222
|
-
`,
|
|
223
|
-
<div class="banner ${e=>e.dismissAnimation}" ${(0,
|
|
236
|
+
`,G=r.html`
|
|
237
|
+
<div class="banner ${e=>e.dismissAnimation}" ${(0,r.ref)("banner")}>
|
|
224
238
|
<div part="content" class="content">
|
|
225
239
|
<slot name="content"></slot>
|
|
226
240
|
</div>
|
|
@@ -228,23 +242,23 @@
|
|
|
228
242
|
<slot name="action" class="action"></slot>
|
|
229
243
|
</div>
|
|
230
244
|
</div>
|
|
231
|
-
`,
|
|
232
|
-
${(0,
|
|
233
|
-
`,
|
|
234
|
-
${(0,
|
|
235
|
-
`,
|
|
236
|
-
${(0,
|
|
237
|
-
`,
|
|
238
|
-
${(0,
|
|
245
|
+
`,z={mode:"open",delegatesFocus:!0};class V 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()}}))}}(0,w.__decorate)([r.observable],V.prototype,"dismissAnimation",void 0);const U=V.compose({baseName:"banner",styles:B,template:G,shadowOptions:z}),Y=(e,t)=>r.css`
|
|
246
|
+
${(0,s.breadcrumbStyles)(e,t)}
|
|
247
|
+
`,W=(e,t)=>(0,n.breadcrumbTemplate)(e,t);class q extends s.Breadcrumb{}const X=void 0,Z={},K=q.compose(Object.assign({baseName:"breadcrumb",template:W,styles:Y,shadowOptions:X},Z)),J=(e,t)=>r.css`
|
|
248
|
+
${(0,s.breadcrumbItemStyles)(e,t)}
|
|
249
|
+
`,Q=(e,t)=>(0,n.breadcrumbItemTemplate)(e,t);class ee extends s.BreadcrumbItem{}const te=void 0,oe={separator:"/"},ie=ee.compose(Object.assign({baseName:"breadcrumb-item",template:Q,styles:J,shadowOptions:te},oe)),ae=(e,t)=>r.css`
|
|
250
|
+
${(0,s.buttonStyles)(e,t)}
|
|
251
|
+
`,ne=(e,t)=>(0,n.buttonTemplate)(e,t);class se extends s.Button{}const re={delegatesFocus:!0,mode:"open"},le={},de=se.compose(Object.assign({baseName:"button",template:ne,styles:ae,shadowOptions:re},le)),ce=(e,t)=>r.css`
|
|
252
|
+
${(0,s.cardStyles)(e,t)}
|
|
239
253
|
:host {
|
|
240
254
|
background-color: var(--fui-card-fill-color);
|
|
241
255
|
color: var(--fui-card-foreground-color);
|
|
242
256
|
}
|
|
243
|
-
`,
|
|
244
|
-
${(0,
|
|
245
|
-
`,
|
|
246
|
-
${(0,
|
|
247
|
-
|
|
257
|
+
`,ue=(e,t)=>(0,n.cardTemplate)(e,t);class pe extends s.Card{}const he=void 0,me={},fe=pe.compose(Object.assign({baseName:"card",template:ue,styles:ce,shadowOptions:he},me)),ve=(e,t)=>r.css`
|
|
258
|
+
${(0,s.checkboxStyles)(e,t)}
|
|
259
|
+
`,ge=(e,t)=>(0,n.checkboxTemplate)(e,t);class be extends s.Checkbox{}const ye=void 0,we={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 '},xe=be.compose(Object.assign({baseName:"checkbox",template:ge,styles:ve,shadowOptions:ye},we)),Fe=(e,t)=>r.css`
|
|
260
|
+
${(0,s.comboboxStyles)(e,t)}
|
|
261
|
+
`,$e=(e,t)=>(0,n.comboboxTemplate)(e,t);class Se extends s.Combobox{}const De=void 0,Ce={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 '},Oe=Se.compose(Object.assign({baseName:"combobox",template:$e,styles:Fe,shadowOptions:De},Ce));var _e=o(62646),ke=o(75527);const Te=(e,t)=>r.css`
|
|
248
262
|
:host {
|
|
249
263
|
--light-size: 12px;
|
|
250
264
|
--height: calc(var(--design-unit) * 2px + var(--light-size));
|
|
@@ -295,18 +309,18 @@
|
|
|
295
309
|
text-overflow: ellipsis;
|
|
296
310
|
white-space: nowrap;
|
|
297
311
|
}
|
|
298
|
-
`,
|
|
299
|
-
<div class=${e=>(0,
|
|
300
|
-
${(0,
|
|
312
|
+
`,Le=r.html`
|
|
313
|
+
<div class=${e=>(0,x.A)(["light",!0],[e.colour,!0])}></div>
|
|
314
|
+
${(0,r.when)((e=>e.showLabel),r.html`
|
|
301
315
|
<div class="label">${e=>e.label}</div>
|
|
302
316
|
`)}
|
|
303
|
-
`;class
|
|
304
|
-
${(0,
|
|
305
|
-
|
|
306
|
-
${(0,
|
|
307
|
-
`;class
|
|
308
|
-
${(0,
|
|
309
|
-
`;class
|
|
317
|
+
`;class Re extends n.FoundationElement{constructor(){super(...arguments),this.showLabel=!1,this.label="disconnected",this.colour="red"}connectedCallback(){super.connectedCallback(),this.subscription=this.connect.isConnectedSubject.subscribe((e=>{this.label=this.getLabel(e),this.colour=e?"green":"red"}))}disconnectedCallback(){var e;null===(e=this.subscription)||void 0===e||e.unsubscribe()}getLabel(e){if(!e)return"disconnected";return`${this.session.getSessionStorageItem("hostUrl")} ✔`}}(0,w.__decorate)([_e.lj],Re.prototype,"connect",void 0),(0,w.__decorate)([ke.z],Re.prototype,"session",void 0),(0,w.__decorate)([(0,r.attr)({mode:"boolean",attribute:"show-label"})],Re.prototype,"showLabel",void 0),(0,w.__decorate)([r.observable],Re.prototype,"label",void 0),(0,w.__decorate)([r.observable],Re.prototype,"colour",void 0);const Ae=Re.compose({baseName:"connection-indicator",template:Le,styles:Te}),Ne=(e,t)=>r.css`
|
|
318
|
+
${(0,s.dataGridStyles)(e,t)}
|
|
319
|
+
`,Ee=(e,t)=>(0,n.dataGridTemplate)(e,t);class Me extends s.DataGrid{}const Ie=void 0,Pe={},He=Me.compose(Object.assign({baseName:"data-grid",template:Ee,styles:Ne,shadowOptions:Ie},Pe)),je=(e,t)=>r.css`
|
|
320
|
+
${(0,s.dataGridCellStyles)(e,t)}
|
|
321
|
+
`;class Be extends s.DataGridCell{}const Ge=void 0,ze={},Ve=Be.compose(Object.assign({baseName:"data-grid-cell",template:n.dataGridCellTemplate,styles:je,shadowOptions:Ge},ze)),Ue=(e,t)=>r.css`
|
|
322
|
+
${(0,s.dataGridRowStyles)(e,t)}
|
|
323
|
+
`;class Ye extends s.DataGridRow{}const We=void 0,qe={},Xe=Ye.compose(Object.assign({baseName:"data-grid-row",template:n.dataGridRowTemplate,styles:Ue,shadowOptions:We},qe));var Ze=o(87530),Ke=o.n(Ze),Je=o(78113),Qe=o.n(Je);class et{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()}}Ke().extend(Qe());class tt{constructor(e=null,t="default"){const o=new et(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+=Ke()(o.date).isLeapYear()?1:0)}getDay(e){return new et(new Date(this.year,this.number-1,e),this.lang)}}Ke().extend(Qe());class ot{constructor(e=null,t=null,o="default"){this.weekDays=Array.from({length:7}),this.today=new et(null,o),this.year=null!=e?e:this.today.year,this.month=new tt(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 tt(new Date(this.year,e-1),this.lang)}getPreviousMonth(){return 1===this.month.number?new tt(new Date(this.year-1,11),this.lang):new tt(new Date(this.year,this.month.number-2),this.lang)}getNextMonth(){return 1===this.month.number?new tt(new Date(this.year+1,0),this.lang):new tt(new Date(this.year,this.month.number+2),this.lang)}goToDate(e,t){this.month=new tt(new Date(t,e-1),this.lang),this.year=t}goToNextYear(){this.year+=1,this.month=new tt(new Date(this.year,0),this.lang)}goToPreviousYear(){this.year-=1,this.month=new tt(new Date(this.year,11),this.lang)}goToNextMonth(){if(12===this.month.number)return this.goToNextYear();this.month=new tt(new Date(this.year,this.month.number+1-1),this.lang)}goToPreviousMonth(){if(1===this.month.number)return this.goToPreviousYear();this.month=new tt(new Date(this.year,this.month.number-1-1),this.lang)}}const it=r.css`
|
|
310
324
|
:host {
|
|
311
325
|
position: relative;
|
|
312
326
|
}
|
|
@@ -452,8 +466,8 @@
|
|
|
452
466
|
background: var(--neutral-stroke-hover);
|
|
453
467
|
color: (--neutral-foreground-rest);
|
|
454
468
|
}
|
|
455
|
-
`,
|
|
456
|
-
<foundation-button type="button" class="date-toggle" ${(0,
|
|
469
|
+
`,at=r.html`
|
|
470
|
+
<foundation-button type="button" class="date-toggle" ${(0,r.ref)("toggleButton")}>
|
|
457
471
|
${e=>e.formatDate}
|
|
458
472
|
<zero-icon variant="regular" name="calendar-alt"></zero-icon>
|
|
459
473
|
</foundation-button>
|
|
@@ -461,21 +475,21 @@
|
|
|
461
475
|
<div class="header">
|
|
462
476
|
<h3>${e=>e.currentMonth} ${e=>e.currentYear}</h3>
|
|
463
477
|
<div class="months-arrows">
|
|
464
|
-
<div class="icon-container" ${(0,
|
|
478
|
+
<div class="icon-container" ${(0,r.ref)("prevBtn")}>
|
|
465
479
|
<zero-icon name="angle-left" class="prev-month" aria-label="previous month"></zero-icon>
|
|
466
480
|
</div>
|
|
467
|
-
<div class="icon-container" ${(0,
|
|
481
|
+
<div class="icon-container" ${(0,r.ref)("nextBtn")}>
|
|
468
482
|
<zero-icon name="angle-right" class="next-month" aria-label="next month"></zero-icon>
|
|
469
483
|
</div>
|
|
470
484
|
</div>
|
|
471
485
|
</div>
|
|
472
486
|
<div class="week-days">
|
|
473
|
-
${(0,
|
|
487
|
+
${(0,r.repeat)((e=>e.calendar.weekDays),r.html`
|
|
474
488
|
<span>${(e,t)=>e.substring(0,t.parent.substringNumber)}</span>
|
|
475
489
|
`)}
|
|
476
490
|
</div>
|
|
477
|
-
<div class="month-days" ${(0,
|
|
478
|
-
${(0,
|
|
491
|
+
<div class="month-days" ${(0,r.ref)("calendarDaysContainer")}>
|
|
492
|
+
${(0,r.repeat)((e=>e.monthList),r.html`
|
|
479
493
|
<button
|
|
480
494
|
class="month-day
|
|
481
495
|
${(e,t)=>t.parent.isSelectedDate(e)?"selected":""}
|
|
@@ -487,42 +501,42 @@
|
|
|
487
501
|
`)}
|
|
488
502
|
</div>
|
|
489
503
|
</div>
|
|
490
|
-
`,
|
|
491
|
-
${(0,
|
|
504
|
+
`,nt=void 0,st={};class rt extends n.FoundationElement{formatChanged(e,t){t&&this.calendar&&(this.formatDate=Ke()(this.currentDate.Date).format(t))}valueChanged(e,t){t&&this.calendar&&(this.currentDate=new et(new Date(t)),this.calendar.goToDate(this.currentDate.monthNumber,this.currentDate.year),this.formatDate=Ke()(this.currentDate.Date).format(this.format),this.updateHeaderText(),this.monthList=this.getMonthDaysGrid())}constructor(){var e;super(),this.format="MM-DD-YYYY",this.visible=!1,this.position="bottom";const t="en-US",o=new Date(null!==(e=this.currentDate)&&void 0!==e?e:this.getAttribute("value")||Date.now());this.substringNumber=3,this.currentDate=new et(o,t),this.value=Ke()(this.currentDate.Date).format("MM-DD-YYYY"),this.calendar=new ot(this.currentDate.year,this.currentDate.monthNumber,t)}connectedCallback(){super.connectedCallback(),this.currentMonth=this.calendar.month.name,this.currentYear=this.calendar.year,this.formatDate=Ke()(this.currentDate.Date).format(this.format),this.toggleButton.addEventListener("click",(()=>this.toggleCalendar())),this.prevBtn.addEventListener("click",(()=>this.prevMonth())),this.nextBtn.addEventListener("click",(()=>this.nextMonth())),this.monthList=this.getMonthDaysGrid()}updateHeaderText(){this.currentMonth=this.calendar.month.name,this.currentYear=this.calendar.year}toggleCalendar(){this.visible=!this.visible,this.toggleVisibility(),this.isCurrentCalendarMonth()||(this.calendar.goToDate(this.currentDate.monthNumber,this.currentDate.year),this.updateHeaderText())}toggleVisibility(){this.calendarDropdownClasses=(0,x.A)(["visible",this.visible],this.position)}isSelectedDate(e){return Ke()(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){Ke()(e.Date).isSame(this.currentDate.Date)||(this.currentDate=e,e.monthNumber!==this.calendar.month.number&&this.prevMonth(),this.formatDate=Ke()(this.currentDate.Date).format(this.format),this.value=Ke()(e.Date).format("MM-DD-YYYY"),this.toggleCalendar())}getMonthDaysGrid(){const e=this.calendar.month.getDay(1),t=this.calendar.getPreviousMonth(),o=e.dayNumber-1,i=this.calendar.month.numberOfDays+o,a=Array.from({length:i});for(let e=o;e<i;e+=1)a[e]=this.calendar.month.getDay(e+1-o);for(let e=0;e<o;e+=1){const i=o-(e+1);a[e]=t.getDay(t.numberOfDays-i)}return a}}(0,w.__decorate)([r.attr],rt.prototype,"format",void 0),(0,w.__decorate)([r.attr],rt.prototype,"visible",void 0),(0,w.__decorate)([r.attr],rt.prototype,"position",void 0),(0,w.__decorate)([r.attr],rt.prototype,"value",void 0),(0,w.__decorate)([r.observable],rt.prototype,"currentDate",void 0),(0,w.__decorate)([r.observable],rt.prototype,"currentMonth",void 0),(0,w.__decorate)([r.observable],rt.prototype,"currentYear",void 0),(0,w.__decorate)([r.observable],rt.prototype,"calendarDropdownClasses",void 0),(0,w.__decorate)([r.observable],rt.prototype,"formatDate",void 0),(0,w.__decorate)([r.observable],rt.prototype,"monthList",void 0);const lt=rt.compose(Object.assign({baseName:"date-picker",styles:it,template:at,shadowOptions:nt},st));var dt=o(82694);const ct=s.SwatchRGB.create(1,1,1),ut=s.SwatchRGB.create(0,0,0),pt=(0,dt.parseColorHexRGB)("#585858"),ht=s.SwatchRGB.create(pt.r,pt.g,pt.b),mt=(0,dt.parseColorHexRGB)("#ffffff"),ft=s.SwatchRGB.create(mt.r,mt.g,mt.b),vt=s.PaletteRGB.from(ft),gt=(0,dt.parseColorHexRGB)("#eeeeee"),bt=s.SwatchRGB.create(gt.r,gt.g,gt.b),yt=s.PaletteRGB.from(bt),wt=(0,dt.parseColorHexRGB)("#08c3a5"),xt=s.SwatchRGB.create(wt.r,wt.g,wt.b),Ft=s.PaletteRGB.from(xt),{create:$t}=n.DesignToken,St=$t("fui-fill-color").withDefault(ht),Dt=$t({name:"card-fill-color",cssCustomPropertyName:"fui-card-fill-color"}).withDefault(ft),Ct=14;function Ot(e,t){return e.colorContrast(t,Ct)}const _t=$t({name:"card-foreground-color",cssCustomPropertyName:"fui-card-foreground-color"}).withDefault((e=>Ot($t("fui-card-palette").withDefault(vt).getValueFor(e),Dt.getValueFor(e))));var kt=o(75908);const Tt=(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 Lt(e){return(t,o)=>{t[o+"Changed"]=function(t,o){null!=o?e.setValueFor(this,o):e.deleteValueFor(this)}}}const Rt={toView:e=>null==e?null:null==e?void 0:e.toColorString(),fromView(e){if(null==e)return null;const t=(0,dt.parseColorHexRGB)(e);return t?s.SwatchRGB.create(t.r,t.g,t.b):null}},At=e=>s.PaletteRGB.from(s.SwatchRGB.from((0,dt.parseColorHexRGB)(e))),Nt=["baseClass","baseName","shadowOptions","styles","template"],Et=(e,t=Nt)=>Object.keys(e).filter((e=>!t.includes(e))).reduce(((t,o)=>(t[o]=e[o],t)),{}),Mt=e=>{const{definition:t}=e(),{shadowOptions:o,styles:i,template:a}=t;return{shadowOptions:o,styles:i,template:a,defaultConfig:Et(t)}},It=(e,t)=>{const o=e.match(/^(\d+)([a-z]+)/i),i=o[1],a=o[2];return Number(i)+t+a},Pt=(e,t)=>{const o=t.design_tokens;s.accentPalette.setValueFor(e,At(o.color.accent.$value)),s.neutralPalette.setValueFor(e,At(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,It(i,kt.TypeRampValues.minusOne)),s.typeRampMinus1LineHeight.setValueFor(e,It(a,kt.TypeRampValues.minusOne)),s.typeRampMinus2FontSize.setValueFor(e,It(i,kt.TypeRampValues.minusTwo)),s.typeRampMinus2LineHeight.setValueFor(e,It(a,kt.TypeRampValues.minusTwo)),s.typeRampPlus1FontSize.setValueFor(e,It(i,kt.TypeRampValues.plusOne)),s.typeRampPlus1LineHeight.setValueFor(e,It(a,kt.TypeRampValues.plusOne)),s.typeRampPlus2FontSize.setValueFor(e,It(i,kt.TypeRampValues.plusTwo)),s.typeRampPlus2LineHeight.setValueFor(e,It(a,kt.TypeRampValues.plusTwo)),s.typeRampPlus3FontSize.setValueFor(e,It(i,kt.TypeRampValues.plusThree)),s.typeRampPlus3LineHeight.setValueFor(e,It(a,kt.TypeRampValues.plusThree)),s.typeRampPlus4FontSize.setValueFor(e,It(i,kt.TypeRampValues.plusFour)),s.typeRampPlus4LineHeight.setValueFor(e,It(a,kt.TypeRampValues.plusFour)),s.typeRampPlus5FontSize.setValueFor(e,It(i,kt.TypeRampValues.plusFive)),s.typeRampPlus5LineHeight.setValueFor(e,It(a,kt.TypeRampValues.plusFive)),s.typeRampPlus6FontSize.setValueFor(e,It(i,kt.TypeRampValues.plusSix)),s.typeRampPlus6LineHeight.setValueFor(e,It(a,kt.TypeRampValues.plusSix))},Ht=At("#08c3a5"),jt=At("#eeeeee"),Bt=s.StandardLuminance.DarkMode;const Gt=o(5598).N.ltr,zt=4,Vt=4;var Ut=o(67973);const Yt=(e="normal",t="normal")=>`\n font-family: ${s.bodyFont};\n font-style: ${e};\n font-weight: ${t};\n`,Wt=r.css`
|
|
505
|
+
${(0,n.display)("flex")}
|
|
492
506
|
:host {
|
|
493
507
|
flex: 1;
|
|
494
508
|
}
|
|
495
|
-
`,
|
|
509
|
+
`,qt=r.css`
|
|
496
510
|
:host {
|
|
497
|
-
background-color: ${
|
|
511
|
+
background-color: ${St};
|
|
498
512
|
}
|
|
499
|
-
`.withBehaviors((0,
|
|
513
|
+
`.withBehaviors((0,n.forcedColorsStylesheetBehavior)(r.css`
|
|
500
514
|
:host {
|
|
501
|
-
background-color: ${
|
|
502
|
-
box-shadow: 0 0 0 1px ${
|
|
503
|
-
color: ${
|
|
515
|
+
background-color: ${Ut.H.ButtonFace};
|
|
516
|
+
box-shadow: 0 0 0 1px ${Ut.H.CanvasText};
|
|
517
|
+
color: ${Ut.H.ButtonText};
|
|
504
518
|
}
|
|
505
|
-
`)),
|
|
519
|
+
`)),Xt=(e,t)=>r.css`
|
|
506
520
|
${e.name} ${"h"+t} {
|
|
507
521
|
margin: 0;
|
|
508
522
|
}
|
|
509
|
-
`;class
|
|
523
|
+
`;class Zt extends s.DesignSystemProvider{constructor(){super(),Tt(i,a,this)}}(0,w.__decorate)([(0,r.attr)({attribute:"card-fill-color",converter:Rt}),Lt(Dt)],Zt.prototype,"cardFillColor",void 0),(0,w.__decorate)([(0,r.attr)({attribute:"card-foreground-color",converter:Rt}),Lt(_t)],Zt.prototype,"cardForegroundColor",void 0);const Kt=Zt.compose({baseName:"design-system-provider",template:r.html`
|
|
510
524
|
<slot></slot>
|
|
511
|
-
`,styles:e=>{const t=(e=>
|
|
512
|
-
${
|
|
513
|
-
${
|
|
514
|
-
${
|
|
515
|
-
${
|
|
516
|
-
${
|
|
517
|
-
${
|
|
518
|
-
`)(e);return t.addStylesTo(document),
|
|
519
|
-
${
|
|
520
|
-
${
|
|
525
|
+
`,styles:e=>{const t=(e=>r.css`
|
|
526
|
+
${Xt(e,"1")}
|
|
527
|
+
${Xt(e,"2")}
|
|
528
|
+
${Xt(e,"3")}
|
|
529
|
+
${Xt(e,"4")}
|
|
530
|
+
${Xt(e,"5")}
|
|
531
|
+
${Xt(e,"6")}
|
|
532
|
+
`)(e);return t.addStylesTo(document),r.css`
|
|
533
|
+
${Wt}
|
|
534
|
+
${qt}
|
|
521
535
|
${t}
|
|
522
536
|
:host * {
|
|
523
|
-
${
|
|
537
|
+
${Yt()}
|
|
524
538
|
}
|
|
525
|
-
`}});var
|
|
539
|
+
`}});var Jt=o(15098);const Qt=r.css`
|
|
526
540
|
.close-icon {
|
|
527
541
|
position: absolute;
|
|
528
542
|
right: calc(var(--design-unit) * 2px);
|
|
@@ -560,13 +574,13 @@
|
|
|
560
574
|
::slotted(zero-divider) {
|
|
561
575
|
width: 100%;
|
|
562
576
|
}
|
|
563
|
-
`,
|
|
564
|
-
<dialog ${(0,
|
|
577
|
+
`,eo=(e="start")=>`\n <svg class="svg-icon" slot="${e}" width="16px" height="16px">\n <g transform="matrix(1 0 0 1 -1865 -3576 )">\n <path d="M 15.8825 14.185499999999998 L 9.697000000000001 8 L 14.825000000000001 2.872 L 15.8825 1.814499999999999 C 16.0385 1.6584999999999992 16.0385 1.4049999999999994 15.8825 1.2489999999999988 L 14.751 0.11749999999999972 C 14.594999999999999 -0.03850000000000087 14.3415 -0.03850000000000087 14.1855 0.11749999999999972 L 8 6.303000000000001 L 1.8145 0.11699999999999999 C 1.6585 -0.03900000000000059 1.4050000000000002 -0.03900000000000059 1.2489999999999999 0.11699999999999999 L 0.11699999999999999 1.2485 C -0.039000000000000014 1.4044999999999996 -0.039000000000000014 1.6579999999999995 0.11699999999999999 1.814 L 6.303000000000001 8 L 0.11699999999999999 14.185499999999998 C -0.039000000000000014 14.3415 -0.039000000000000014 14.594999999999999 0.11699999999999999 14.751000000000001 L 1.2485 15.8825 C 1.4045 16.0385 1.658 16.0385 1.814 15.8825 L 8 9.697 L 13.128 14.825 L 14.1855 15.8825 C 14.3415 16.0385 14.594999999999999 16.0385 14.751 15.8825 L 15.8825 14.751000000000001 C 16.0385 14.594999999999999 16.0385 14.3415 15.8825 14.185499999999998 Z " fill-rule="nonzero" fill="#879ba6" stroke="none" transform="matrix(1 0 0 1 1865 3576 )" />\n </g>\n </svg>\n`,to=r.html`
|
|
578
|
+
<dialog ${(0,r.ref)("mainElement")} part="dialog">
|
|
565
579
|
<div class="content-wrapper">
|
|
566
580
|
<div part="top" class="top">
|
|
567
581
|
<slot name="top"></slot>
|
|
568
|
-
${(0,
|
|
569
|
-
<div class="close-icon" @click=${e=>e.close()}>${
|
|
582
|
+
${(0,r.when)((e=>e.showCloseIcon),r.html`
|
|
583
|
+
<div class="close-icon" @click=${e=>e.close()}>${eo()}</div>
|
|
570
584
|
`)}
|
|
571
585
|
</div>
|
|
572
586
|
<slot></slot>
|
|
@@ -575,11 +589,11 @@
|
|
|
575
589
|
</div>
|
|
576
590
|
</div>
|
|
577
591
|
</dialog>
|
|
578
|
-
`,
|
|
579
|
-
${(0,
|
|
580
|
-
`,
|
|
581
|
-
${(0,
|
|
582
|
-
`,
|
|
592
|
+
`,oo={mode:"open",delegatesFocus:!0},io={};class ao extends n.FoundationElement{constructor(){super(...arguments),this.position="centre",this.showCloseIcon=!0}connectedCallback(){super.connectedCallback(),window.HTMLDialogElement||Jt.Z.registerDialog(this.mainElement),this.mainElement.addEventListener("close",(()=>{this.onCloseCallback&&this.onCloseCallback()}))}get open(){return this.mainElement.hasAttribute("open")}close(){this.mainElement.close()}}(0,w.__decorate)([r.attr],ao.prototype,"position",void 0),(0,w.__decorate)([(0,r.attr)({mode:"boolean",attribute:"show-close-icon"})],ao.prototype,"showCloseIcon",void 0),(0,w.__decorate)([r.observable],ao.prototype,"onShowCallback",void 0),(0,w.__decorate)([r.observable],ao.prototype,"onCloseCallback",void 0),(0,w.__decorate)([r.volatile],ao.prototype,"open",null);class no extends ao{show(){this.onShowCallback&&this.onShowCallback(),this.mainElement.show()}}const so=no.compose(Object.assign({baseName:"dialog",styles:Qt,template:to,shadowOptions:oo},io)),ro=(e,t)=>r.css`
|
|
593
|
+
${(0,s.disclosureStyles)(e,t)}
|
|
594
|
+
`,lo=(e,t)=>(0,n.disclosureTemplate)(e,t);class co extends n.Disclosure{}const uo=void 0,po={},ho=co.compose(Object.assign({baseName:"disclosure",template:lo,styles:ro,shadowOptions:uo},po)),mo=(e,t)=>r.css`
|
|
595
|
+
${(0,s.dividerStyles)(e,t)}
|
|
596
|
+
`,fo=(e,t)=>(0,n.dividerTemplate)(e,t);class vo extends n.Divider{}const go=void 0,bo={},yo=vo.compose(Object.assign({baseName:"divider",template:fo,styles:mo,shadowOptions:go},bo)),wo=(e,t)=>!e.composedPath().includes(t),xo=(e,t,o)=>r.css`
|
|
583
597
|
:host {
|
|
584
598
|
--dropdown-opener-height-multiplier: 0.7px;
|
|
585
599
|
--menu-item-height-multiplier: 0.7px;
|
|
@@ -642,20 +656,20 @@
|
|
|
642
656
|
var(--menu-item-height-multiplier)
|
|
643
657
|
);
|
|
644
658
|
}
|
|
645
|
-
`,
|
|
646
|
-
${
|
|
647
|
-
|
|
648
|
-
${(0,
|
|
649
|
-
${(0,
|
|
659
|
+
`,Fo=(e,t)=>r.css`
|
|
660
|
+
${xo("foundation",e,t)}
|
|
661
|
+
`,$o=(e,t)=>r.html`
|
|
662
|
+
${(0,r.repeat)((()=>e),r.html`
|
|
663
|
+
${(0,r.when)((e=>e.isDisabled&&e.isDisabled()),r.html`
|
|
650
664
|
<${t}-menu-item class="menu-item" disabled>${e=>e.name}</${t}-menu-item>
|
|
651
665
|
`)}
|
|
652
|
-
${(0,
|
|
666
|
+
${(0,r.when)((e=>!e.isDisabled||!e.isDisabled()),r.html`
|
|
653
667
|
<${t}-menu-item
|
|
654
668
|
class="menu-item"
|
|
655
669
|
@click=${e=>e.submenu?"":e.callback()}
|
|
656
670
|
style="${e=>e.color?`color: ${e.color};`:""}"
|
|
657
671
|
>
|
|
658
|
-
${(0,
|
|
672
|
+
${(0,r.when)((e=>e.icon),r.html`
|
|
659
673
|
<${t}-icon
|
|
660
674
|
name=${e=>e.icon.name}
|
|
661
675
|
size=${e=>e.icon.size}
|
|
@@ -664,13 +678,13 @@
|
|
|
664
678
|
></${t}-icon>
|
|
665
679
|
`)}
|
|
666
680
|
${e=>e.name}
|
|
667
|
-
${(0,
|
|
668
|
-
<${t}-menu>${e
|
|
681
|
+
${(0,r.when)((e=>e.submenu),r.html`
|
|
682
|
+
<${t}-menu>${e=>$o(e.submenu,t)}</${t}-menu>
|
|
669
683
|
`)}
|
|
670
684
|
</${t}-menu-item>
|
|
671
685
|
`)}
|
|
672
686
|
`)}
|
|
673
|
-
`,
|
|
687
|
+
`,So=e=>r.html`
|
|
674
688
|
<div class="actions-container" part="actions-container">
|
|
675
689
|
<${e}-button
|
|
676
690
|
id="actiosnMenuTrigger"
|
|
@@ -683,17 +697,17 @@
|
|
|
683
697
|
<slot>${e=>e.name}</slot>
|
|
684
698
|
</${e}-button>
|
|
685
699
|
<${e}-menu
|
|
686
|
-
${(0,
|
|
700
|
+
${(0,r.ref)("dropdownMenu")}
|
|
687
701
|
class="actions-menu ${e=>e.classNames}"
|
|
688
702
|
part="actions-menu"
|
|
689
703
|
>
|
|
690
|
-
${t
|
|
704
|
+
${t=>$o(t.allItems,e)}
|
|
691
705
|
</${e}-menu>
|
|
692
706
|
</div>
|
|
693
|
-
`,
|
|
694
|
-
${e=>
|
|
695
|
-
`;class
|
|
696
|
-
<foundation-banner ${(0,
|
|
707
|
+
`,Do=r.html`
|
|
708
|
+
${e=>So(e.tagName.toLowerCase().split("-")[0])}
|
|
709
|
+
`;class Co 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){wo(e,this)&&(this.open=!1)}openChanged(){this.classNames=(0,x.A)(["hidden",!this.open]),this.open?document.addEventListener("mousedown",this.clickOutside):document.removeEventListener("mousedown",this.clickOutside)}toggleDropdownMenuVisibility(){this.open=!this.open}onDropdownMenuItemClick(){this.autoClose&&(this.open=!1)}get allItems(){return this.items}}(0,w.__decorate)([r.observable],Co.prototype,"items",void 0),(0,w.__decorate)([(0,r.attr)({attribute:"auto-close",mode:"boolean"})],Co.prototype,"autoClose",void 0),(0,w.__decorate)([(0,r.attr)({attribute:"disable-button",mode:"boolean"})],Co.prototype,"disabled",void 0),(0,w.__decorate)([r.observable],Co.prototype,"classNames",void 0),(0,w.__decorate)([r.attr],Co.prototype,"name",void 0),(0,w.__decorate)([(0,r.attr)({attribute:"open",mode:"boolean"})],Co.prototype,"open",void 0),(0,w.__decorate)([r.attr],Co.prototype,"buttonAppearance",void 0);const Oo=Co.compose({baseName:"dropdown-menu",styles:Fo,template:Do}),_o=(0,kt.createLogger)("foundation-ui"),ko=r.html`
|
|
710
|
+
<foundation-banner ${(0,r.ref)("banner")}>
|
|
697
711
|
<div slot="content">
|
|
698
712
|
<div>${e=>{var t;return(null===(t=e.error)||void 0===t?void 0:t.errorDetails)||"Place holder for error message"}}</div>
|
|
699
713
|
</div>
|
|
@@ -701,7 +715,7 @@
|
|
|
701
715
|
<foundation-button slot="action" appearance="lightweight" @click=${e=>{var t;return null===(t=e.banner)||void 0===t?void 0:t.dismiss()}}>
|
|
702
716
|
${e=>{var t,o,i,a;return(null===(a=null===(i=null===(o=null===(t=e.error)||void 0===t?void 0:t.config)||void 0===o?void 0:o.banner)||void 0===i?void 0:i.dismissingAction)||void 0===a?void 0:a.label)||"Ignore"}}
|
|
703
717
|
</foundation-button>
|
|
704
|
-
${(0,
|
|
718
|
+
${(0,r.repeat)((e=>{var t,o;return null===(o=null===(t=e.error)||void 0===t?void 0:t.config)||void 0===o?void 0:o.banner.confirmingActions}),r.html`
|
|
705
719
|
<foundation-button
|
|
706
720
|
slot="action"
|
|
707
721
|
appearance="lightweight"
|
|
@@ -711,11 +725,11 @@
|
|
|
711
725
|
</foundation-button>
|
|
712
726
|
`)}
|
|
713
727
|
</foundation-banner>
|
|
714
|
-
`,
|
|
715
|
-
<template ${(0,
|
|
728
|
+
`,To={mode:"open",delegatesFocus:!0};class Lo extends n.FoundationElement{connectedCallback(){super.connectedCallback()}dismiss(){return(0,w.__awaiter)(this,void 0,void 0,(function*(){try{yield this.banner.dismiss(),this.remove()}catch(e){_o.error(e)}}))}}(0,w.__decorate)([r.observable],Lo.prototype,"error",void 0);const Ro=Lo.compose({baseName:"error-banner",template:ko,shadowOptions:To});var Ao,No=o(43752);!function(e){e.ERROR_BOUNDARY_EVENT="error-boundary-event"}(Ao||(Ao={}));const Eo=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"}`},Mo=(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},Io=()=>{const e=document.createElement("div");return e.setAttribute("id","error-banner-anchor"),e.style.position="relative",document.body.insertBefore(e,document.body.firstChild),e},Po=(e,t)=>{var o,i,a,n,s,r,l,d,c,u,p,h,m;const f=t.split("-")[0],v=Mo("notify-container",t);if(v)switch(v.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":v.style.top="0",v.style.left="0";break;case"bottom-left":v.style.bottom="0",v.style.left="0";break;case"bottom-right":v.style.bottom="0",v.style.right="0";break;default:v.style.top="0",v.style.right="0"}const g=document.createElement(`${f}-toast`),b=document.createElement("div");b.setAttribute("slot","top"),b.textContent=null!==(a=e.title)&&void 0!==a?a:"Error";const y=document.createElement("div");y.setAttribute("slot","content"),y.textContent=(null==e?void 0:e.errorDetails)||"";const w=document.createElement("div");w.setAttribute("slot","date"),w.textContent=(new Date).toLocaleTimeString(),g.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)&&g.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)&&g.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}`),g.appendChild(b),g.appendChild(y),g.appendChild(w),v.appendChild(g)},Ho=(0,kt.createLogger)("foundation-error"),jo={alert:e=>{alert(Eo(e))},notification:Po,dialog:(e,t)=>{const o=t.split("-")[0],i=document.createElement(`${o}-error-dialog`);Mo("dialog-container",t).appendChild(i),i.error=e,i.show()},snackbar:(e,t)=>{const o=t.split("-")[0],i=document.createElement(`${o}-snackbar`);Mo("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 Io()})(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}},Bo=(e,t,o)=>{var i,a;Ho.log({message:Eo(e),level:(i=e,(null==i?void 0:i.logLevel)||(null===(a=null==i?void 0:i.config)||void 0===a?void 0:a.logLevel)||kt.LogLevel.Error)});Object.keys((null==e?void 0:e.config)||{}).forEach((i=>{jo[i]&&jo[i](e,t,o)}))};class Go{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 kt.LogLevel&&(e=Object.assign({logLevel:this.logLevel},e)),this.alert&&(t=Object.assign({alert:this.alert},t),e=Object.assign({config:t},e)),this.notification&&(t=Object.assign({notification:this.notification},t),e=Object.assign({config:t},e)),this.banner&&(t=Object.assign({banner:this.banner},t),e=Object.assign({config:t},e)),this.snackbar&&(t=Object.assign({snackbar:this.snackbar},t),e=Object.assign({config:t},e)),this.dialog&&(t=Object.assign({dialog:this.dialog},t),e=Object.assign({config:t},e)),e}}const zo=()=>new Go;class Vo{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 Uo=r.html`
|
|
729
|
+
<template ${(0,r.ref)("errorBoundary")}>
|
|
716
730
|
<slot></slot>
|
|
717
731
|
</template>
|
|
718
|
-
`,
|
|
732
|
+
`,Yo={mode:"open",delegatesFocus:!0};class Wo extends n.FoundationElement{constructor(){super(...arguments),this.logger=(0,kt.createLogger)("error-boundary"),this.closeTimeout=0}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});var t;return(0,w.__awaiter)(this,void 0,void 0,(function*(){e.connectedCallback.call(this),this.addEventListener(Ao.ERROR_BOUNDARY_EVENT,(e=>{e.stopImmediatePropagation(),Bo(e.detail,this.tagName,this.errorBoundary)})),this.resourceName&&(yield this.datasource.init({resourceName:this.resourceName},!0),null===(t=this.datasource.stream)||void 0===t||t.subscribe((e=>{if(!e.ROW)return;const t=null==e?void 0:e.ROW[0];if(e.SEQUENCE_ID>1){const e=t.HEADER,o=null==t?void 0:t.BODY,i=t.NOTIFY_SEVERITY;Bo(zo().withTitle(e).withErrorDetails(o).withNotification((new Vo).withType(i).withAutoClose(!!this.closeTimeout).withCloseTimeout(this.closeTimeout).build()).build(),this.tagName,this.errorBoundary)}})))}))}}(0,w.__decorate)([r.observable],Wo.prototype,"errorBoundary",void 0),(0,w.__decorate)([(0,r.attr)({attribute:"resource-name"})],Wo.prototype,"resourceName",void 0),(0,w.__decorate)([(0,r.attr)({attribute:"close-timeout",converter:r.nullableNumberConverter})],Wo.prototype,"closeTimeout",void 0),(0,w.__decorate)([No.Yh],Wo.prototype,"datasource",void 0);const qo=Wo.compose({baseName:"error-boundary",template:Uo,shadowOptions:Yo}),Xo=r.css`
|
|
719
733
|
:host {
|
|
720
734
|
--design-unit: 3;
|
|
721
735
|
--dialog-max-width: 358px;
|
|
@@ -734,14 +748,14 @@
|
|
|
734
748
|
overflow: hidden;
|
|
735
749
|
min-height: var(--error-details-min-height);
|
|
736
750
|
}
|
|
737
|
-
`,
|
|
738
|
-
<${e}-dialog show-close-icon="false" ${(0,
|
|
751
|
+
`,Zo=e=>r.html`
|
|
752
|
+
<${e}-dialog show-close-icon="false" ${(0,r.ref)("dialog")}>
|
|
739
753
|
<h2 slot="top" class="title">${e=>{var t;return null===(t=e.error)||void 0===t?void 0:t.title}}</h2>
|
|
740
754
|
<div class="details">${e=>{var t;return(null===(t=e.error)||void 0===t?void 0:t.errorDetails)||"Place holder for error message"}}</div>
|
|
741
755
|
<${e}-button slot="bottom" appearance="lightweight" @click=${e=>{e.dismiss()}}>
|
|
742
756
|
${e=>{var t,o,i,a;return(null===(a=null===(i=null===(o=null===(t=e.error)||void 0===t?void 0:t.config)||void 0===o?void 0:o.dialog)||void 0===i?void 0:i.dismissingAction)||void 0===a?void 0:a.label)||"Ignore"}}
|
|
743
757
|
</${e}-button>
|
|
744
|
-
${(0,
|
|
758
|
+
${(0,r.repeat)((e=>{var t,o;return null===(o=null===(t=e.error)||void 0===t?void 0:t.config)||void 0===o?void 0:o.dialog.confirmingActions}),r.html`
|
|
745
759
|
<${e}-button
|
|
746
760
|
slot="bottom"
|
|
747
761
|
appearance="lightweight"
|
|
@@ -751,9 +765,9 @@
|
|
|
751
765
|
</${e}-button>
|
|
752
766
|
`)}
|
|
753
767
|
</${e}-dialog>
|
|
754
|
-
`,
|
|
755
|
-
${e=>
|
|
756
|
-
`,
|
|
768
|
+
`,Ko=r.html`
|
|
769
|
+
${e=>Zo(e.tagName.toLowerCase().split("-")[0])}
|
|
770
|
+
`,Jo={mode:"open",delegatesFocus:!0};class Qo extends n.FoundationElement{connectedCallback(){super.connectedCallback()}show(){this.dialog.show()}dismiss(){var e,t,o,i;(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(),this.closeDialog()}closeDialog(){try{this.dialog.close(),this.remove()}catch(e){_o.error(e)}}}(0,w.__decorate)([r.observable],Qo.prototype,"error",void 0);const ei=Qo.compose({baseName:"error-dialog",template:Ko,styles:Xo,shadowOptions:Jo});var ti=o(22296);const oi=(0,kt.createLogger)("foundation-criteria");var ii;!function(e){e.AND="&&",e.OR="||",e.NOT="!",e.GT=">",e.GE=">=",e.LT="<",e.LE="<=",e.NE="!=",e.EQ="=="}(ii||(ii={}));class ai{constructor(e){this.$$operator=e}static And(){return new ai(ii.AND)}static Or(){return new ai(ii.OR)}static Not(){return new ai(ii.NOT)}static GreaterThan(){return new ai(ii.GT)}static GreaterThanOrEqual(){return new ai(ii.GE)}static LessThan(){return new ai(ii.LT)}static LessThanOrEqual(){return new ai(ii.LE)}static NotEqual(){return new ai(ii.NE)}static Equal(){return new ai(ii.EQ)}get operator(){return this.$$operator}}const ni="default";class si{constructor(){this.expressions={},this.And=(e,t={})=>this.withExpression(e,t,ai.And()),this.Or=(e,t={})=>this.withExpression(e,t,ai.Or()),this.Not=(e,t={})=>this.withExpression(e,t,ai.Not())}withExpression(e,t={},o=ai.And()){const{condition:i,join:a,groupName:n}=t,s=(e,t=ni)=>{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 ai;return t&&oi.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,ni)}}else s(e,ni);else s(e,"string"==typeof e?ni: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 ai){if(o[t-1]instanceof ai)throw new Error("Adjacent Join operations detected")}})),i.push(`(${e.map((e=>this.parseExpression(e,void 0))).join("")})`)):e instanceof ai?i.push(` ${e.operator} `):e&&i.push(e.serialiser(e)),i.join("")}}const ri=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},li=e=>t=>`${t.field} ${e} ${ri(t)}`,di=e=>li(ii.EQ)(e);class ci{constructor(e){this.serialiser=di,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}}const ui=r.css`
|
|
757
771
|
/* Host */
|
|
758
772
|
:host {
|
|
759
773
|
display: flex;
|
|
@@ -801,16 +815,16 @@
|
|
|
801
815
|
fast-data-grid-row {
|
|
802
816
|
align-items: center;
|
|
803
817
|
}
|
|
804
|
-
`,
|
|
818
|
+
`,pi=e=>r.html`
|
|
805
819
|
<template>
|
|
806
820
|
<div class="file-selection">
|
|
807
|
-
<input type="file" multiple ${(0,
|
|
821
|
+
<input type="file" multiple ${(0,r.ref)("fileInput")}
|
|
808
822
|
@change=${(e,t)=>e.onInputChange(t.event)} :accept="${e=>e.accept}"/>
|
|
809
823
|
<${e}-text-field readOnly type="text" id="fileName" part="file-name-input" class="file-name-input"
|
|
810
824
|
:label="${e=>e.label}"
|
|
811
825
|
:value="${e=>e.fileName}">
|
|
812
826
|
${e=>e.label}
|
|
813
|
-
${(0,
|
|
827
|
+
${(0,r.when)((e=>e.fileName),r.html`
|
|
814
828
|
<${e}-icon slot="end" class="clear-icon" name="xmark"
|
|
815
829
|
@click=${e=>e.clearSelection()}></${e}-icon>
|
|
816
830
|
`)}
|
|
@@ -827,13 +841,13 @@
|
|
|
827
841
|
</${e}-data-grid>
|
|
828
842
|
</div>
|
|
829
843
|
</template>
|
|
830
|
-
`,
|
|
831
|
-
${e=>
|
|
832
|
-
`,
|
|
833
|
-
${(0,
|
|
834
|
-
${e=>"DATETIME"===e.columnDefinition.type?(0,
|
|
844
|
+
`,hi=r.html`
|
|
845
|
+
${e=>pi(e.tagName.toLowerCase().split("-")[0])}
|
|
846
|
+
`,mi=e=>{const t=new FormData;return e.forEach((e=>{t.append(e.name,e)})),t},fi=(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))))},vi=(e,t,o,i="GET",a,n)=>{const s=new Headers;s.append("SESSION_AUTH_TOKEN",o),fetch(e,{method:i,body:n,headers:s}).then((e=>(0,w.__awaiter)(void 0,void 0,void 0,(function*(){var t;if(e.ok)return e.blob();{const o=yield e.json();a&&Po(zo().withTitle(null==o?void 0:o.MESSAGE_TYPE).withErrorDetails(null===(t=null==o?void 0:o.DETAILS)||void 0===t?void 0:t.ERROR).withNotification({autoClose:!0,closeTimeout:5e3,type:"warning"}).build(),"zero"),_o.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&&Po(zo().withTitle("Success").withErrorDetails("File downloaded successfully").withNotification({autoClose:!0,closeTimeout:5e3,type:"success"}).build(),"zero"),_o.info("File downloaded successfully")}})).catch((e=>{_o.error(e)}))},gi=["image/png","image/bmp","image/gif","image/jpeg","image/jpg"],bi=["text/plain","text/csv"],yi=["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"],wi=r.html`
|
|
847
|
+
${(0,r.when)((e=>e.rowData),r.html`
|
|
848
|
+
${e=>"DATETIME"===e.columnDefinition.type?(0,kt.formatDateTimeTimestamp)(e.rowData[e.columnDefinition.columnDataKey]):e.rowData[e.columnDefinition.columnDataKey]}
|
|
835
849
|
`)}
|
|
836
|
-
`;class
|
|
850
|
+
`;class xi 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,...gi]:"office/*"===t?e=[...e,...yi]:"text/*"===t?e=[...e,...bi]:e.push(t)})),this.acceptedFormats=e}fieldNameChanged(){this.setupGrid()}entityIdChanged(){this.setupGrid()}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});var t;return(0,w.__awaiter)(this,void 0,void 0,(function*(){e.connectedCallback.call(this),(null===(t=this.filesGridColumnDefinitions)||void 0===t?void 0:t.length)||this.setColumnDefs()}))}setupGrid(){void 0!==this.entityId&&void 0!==this.fieldName&&(this.gridCriteria=(new si).withExpression((new ci).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:ti.k.error(`Unsupported operation type: ${o.DETAILS.OPERATION}`)}}setRowData(){return(0,w.__awaiter)(this,void 0,void 0,(function*(){yield this.connect.stream(this.uploadedFilesResourceName,(e=>{var t;1===e.SEQUENCE_ID?this.uploadedFilesList=null!==(t=e.ROW)&&void 0!==t?t:[]:this.handleStreamRowOperation(e)}),(e=>{ti.k.error(e)}),{CRITERIA_MATCH:this.gridCriteria})}))}setColumnDefs(){var e;return(0,w.__awaiter)(this,void 0,void 0,(function*(){const t=yield this.connect.getMetadata(this.uploadedFilesResourceName),o=[];this.gridFields.length>0?this.gridFields.split(" ").forEach((e=>{var i;const a=null===(i=t.FIELD)||void 0===i?void 0:i.find((t=>t.NAME===e));a?o.push(this.getColumnObject(a)):"DOWNLOAD"===e&&this.downloadEventName&&o.push(this.getDownloadColumn())})):(null===(e=t.FIELD)||void 0===e||e.forEach((e=>{o.push(this.getColumnObject(e))})),this.downloadEventName&&o.push(this.getDownloadColumn())),this.filesGridColumnDefinitions=o}))}getDownloadColumn(){const e=this.tagName.toLowerCase().split("-")[0];return{columnDataKey:"FILE_NAME",title:"File",cellTemplate:r.html`
|
|
837
851
|
<template>
|
|
838
852
|
<div class="download-button-container">
|
|
839
853
|
<${e}-button
|
|
@@ -844,7 +858,7 @@
|
|
|
844
858
|
</${e}-button>
|
|
845
859
|
</div>
|
|
846
860
|
</template>
|
|
847
|
-
`}}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:
|
|
861
|
+
`}}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:wi}}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){if(this.acceptedFormats.length>0)for(const t of e){if(!this.acceptedFormats.includes(t.type))return void alert(`Not a valid file type. Accepted Formats are ${this.accept}`);if(t.size>this.fileSizeLimitBytes)return void alert(`File size exceeds the file size limit of ${this.fileSizeLimitBytes} bytes`)}this.selectedFiles=e,this.fileName=this.selectedFiles.map((e=>e.name.trim())).join()}}handleFileUpload(){return(0,w.__awaiter)(this,void 0,void 0,(function*(){try{const e=mi(this.selectedFiles);e.append(this.uploadKey,this.entityId);const t=yield fi(this.uploadEventName,e,this.session.getItem("authToken","session"));if(t.ERROR)return ti.k.error(t.ERROR),void this.$emit("errorOut",t.ERROR);ti.k.info(t),this.clearSelection()}catch(e){ti.k.error(e)}}))}handleFileDownload(e){vi(this.downloadEventName(e),e.FILE_NAME,this.session.getItem("authToken","session"))}clearSelection(){this.fileName="",this.selectedFiles=[]}}(0,w.__decorate)([r.observable],xi.prototype,"gridCriteria",void 0),(0,w.__decorate)([_e.lj],xi.prototype,"connect",void 0),(0,w.__decorate)([ke.z],xi.prototype,"session",void 0),(0,w.__decorate)([r.attr],xi.prototype,"label",void 0),(0,w.__decorate)([r.attr],xi.prototype,"accept",void 0),(0,w.__decorate)([(0,r.attr)({attribute:"file-size-limit-bytes"})],xi.prototype,"fileSizeLimitBytes",void 0),(0,w.__decorate)([(0,r.attr)({attribute:"uploaded-files-resource-name"})],xi.prototype,"uploadedFilesResourceName",void 0),(0,w.__decorate)([(0,r.attr)({attribute:"upload-event-name"})],xi.prototype,"uploadEventName",void 0),(0,w.__decorate)([(0,r.attr)({attribute:"field-name"})],xi.prototype,"fieldName",void 0),(0,w.__decorate)([(0,r.attr)({attribute:"entity-id"})],xi.prototype,"entityId",void 0),(0,w.__decorate)([(0,r.attr)({attribute:"upload-key"})],xi.prototype,"uploadKey",void 0),(0,w.__decorate)([(0,r.attr)({attribute:"grid-fields"})],xi.prototype,"gridFields",void 0),(0,w.__decorate)([r.observable],xi.prototype,"fileName",void 0),(0,w.__decorate)([r.observable],xi.prototype,"uploadedFilesList",void 0),(0,w.__decorate)([r.observable],xi.prototype,"filesGridColumnDefinitions",void 0);const Fi=void 0,$i={},Si=xi.compose(Object.assign({baseName:"file-upload",styles:ui,template:hi,shadowOptions:Fi},$i)),Di=r.css`
|
|
848
862
|
.filter-wrapper {
|
|
849
863
|
border: 1px solid gray;
|
|
850
864
|
border-radius: calc(var(--design-unit) * 2px);
|
|
@@ -895,87 +909,87 @@
|
|
|
895
909
|
.flex-row foundation-select {
|
|
896
910
|
flex: 1;
|
|
897
911
|
}
|
|
898
|
-
`,
|
|
899
|
-
<div class="close-icon" @click=${e=>e.clear()}>${
|
|
900
|
-
`,
|
|
912
|
+
`,Ci=r.html`
|
|
913
|
+
<div class="close-icon" @click=${e=>e.clear()}>${eo()}</div>
|
|
914
|
+
`,Oi=r.html`
|
|
901
915
|
<div class="flex-row">
|
|
902
916
|
<div>${e=>e.label}</div>
|
|
903
|
-
${
|
|
917
|
+
${Ci}
|
|
904
918
|
</div>
|
|
905
919
|
<div class="flex-row">
|
|
906
920
|
<foundation-text-field
|
|
907
|
-
${(0,
|
|
921
|
+
${(0,r.ref)("textFilterField")}
|
|
908
922
|
type="text"
|
|
909
|
-
:value=${(0,
|
|
923
|
+
:value=${(0,kt.sync)((e=>e.textFilter))}
|
|
910
924
|
/>
|
|
911
925
|
</div>
|
|
912
|
-
`,
|
|
926
|
+
`,_i=r.html`
|
|
913
927
|
<div class="flex-row">
|
|
914
928
|
<div>${e=>e.label}</div>
|
|
915
|
-
${
|
|
929
|
+
${Ci}
|
|
916
930
|
</div>
|
|
917
931
|
<div class="flex-row">
|
|
918
932
|
<foundation-text-field
|
|
919
|
-
${(0,
|
|
933
|
+
${(0,r.ref)("numFilterFieldMin")}
|
|
920
934
|
type="number"
|
|
921
|
-
:value=${(0,
|
|
935
|
+
:value=${(0,kt.sync)((e=>e.numFilterMin))}
|
|
922
936
|
placeholder="min"
|
|
923
937
|
></foundation-text-field>
|
|
924
938
|
<foundation-text-field
|
|
925
|
-
${(0,
|
|
939
|
+
${(0,r.ref)("numFilterFieldMax")}
|
|
926
940
|
type="number"
|
|
927
|
-
:value=${(0,
|
|
941
|
+
:value=${(0,kt.sync)((e=>e.numFilterMax))}
|
|
928
942
|
placeholder="max"
|
|
929
943
|
></foundation-text-field>
|
|
930
944
|
</div>
|
|
931
|
-
`,
|
|
945
|
+
`,ki=r.html`
|
|
932
946
|
<div class="flex-row">
|
|
933
947
|
<div>${e=>e.label}</div>
|
|
934
|
-
${
|
|
948
|
+
${Ci}
|
|
935
949
|
</div>
|
|
936
950
|
<div class="flex-row">
|
|
937
951
|
<foundation-text-field
|
|
938
|
-
${(0,
|
|
952
|
+
${(0,r.ref)("dateFilterFieldMin")}
|
|
939
953
|
type="date"
|
|
940
|
-
:value=${(0,
|
|
954
|
+
:value=${(0,kt.sync)((e=>e.dateFilterMin))}
|
|
941
955
|
></foundation-text-field>
|
|
942
956
|
<foundation-text-field
|
|
943
|
-
${(0,
|
|
957
|
+
${(0,r.ref)("dateFilterFieldMax")}
|
|
944
958
|
type="date"
|
|
945
|
-
:value=${(0,
|
|
959
|
+
:value=${(0,kt.sync)((e=>e.dateFilterMax))}
|
|
946
960
|
></foundation-text-field>
|
|
947
961
|
</div>
|
|
948
|
-
`;function
|
|
962
|
+
`;function Ti(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 Li=[{name:"All",value:"all",selected:!0},{name:"True",value:"true"},{name:"False",value:"false"},{name:"N/A",value:"null"}],Ri=r.html`
|
|
949
963
|
<div class="flex-row">
|
|
950
964
|
<div>${e=>e.label}</div>
|
|
951
|
-
${
|
|
965
|
+
${Ci}
|
|
952
966
|
</div>
|
|
953
967
|
<div class="flex-row">
|
|
954
|
-
<foundation-select @change="${(e,t)=>e.onBooleanFilterSelection(
|
|
955
|
-
${(0,
|
|
968
|
+
<foundation-select @change="${(e,t)=>e.onBooleanFilterSelection(Ti(t))}}">
|
|
969
|
+
${(0,r.repeat)((()=>Li),r.html`
|
|
956
970
|
<foundation-option value="${e=>e.value}" selected="${e=>e.selected}">
|
|
957
971
|
${e=>e.name}
|
|
958
972
|
</foundation-option>
|
|
959
973
|
`)}
|
|
960
974
|
</foundation-select>
|
|
961
975
|
</div>
|
|
962
|
-
`,
|
|
976
|
+
`,Ai=r.html`
|
|
963
977
|
<div class="flex-row">
|
|
964
978
|
<div>${e=>e.label}</div>
|
|
965
|
-
${
|
|
979
|
+
${Ci}
|
|
966
980
|
</div>
|
|
967
981
|
<div class="flex-row">
|
|
968
|
-
<zero-select @change="${(e,t)=>e.onEnumFilterSelection(
|
|
969
|
-
${(0,
|
|
982
|
+
<zero-select @change="${(e,t)=>e.onEnumFilterSelection(Ti(t))}}">
|
|
983
|
+
${(0,r.repeat)((e=>e.enumFilterOptions),r.html`
|
|
970
984
|
<zero-option value="${e=>e.value}" selected="${e=>e.selected}">
|
|
971
985
|
${e=>e.name}
|
|
972
986
|
</zero-option>
|
|
973
987
|
`)}
|
|
974
988
|
</zero-select>
|
|
975
989
|
</div>
|
|
976
|
-
`,
|
|
977
|
-
<div class="filter-wrapper">${e=>(e=>{switch(e.type){case"number":return
|
|
978
|
-
`;var
|
|
990
|
+
`,Ni=r.html`
|
|
991
|
+
<div class="filter-wrapper">${e=>(e=>{switch(e.type){case"number":return _i;case"date":return ki;case"boolean":return Ri;case"enum":return Ai;default:return Oi}})(e)}</div>
|
|
992
|
+
`;var Ei;!function(e){e.change="filter-changed",e.clear="filter-cleared"}(Ei||(Ei={}));class Mi 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(Ei.clear,{fieldName:this.fieldName,target:this.target});const o=`Expr.containsIgnoreCase(${this.fieldName},'${t}')`;this.$emit(Ei.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(Ei.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(Ei.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(Ei.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(Ei.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(Ei.clear,{fieldName:this.fieldName,target:this.target})}onBooleanFilterSelection(e){e&&"all"!==e?this.$emit(Ei.change,{fieldName:this.fieldName,filter:`${this.fieldName} == ${e}`,target:this.target}):this.$emit(Ei.clear,{fieldName:this.fieldName,target:this.target})}onEnumFilterSelection(e){e&&"all"!==e?this.$emit(Ei.change,{fieldName:this.fieldName,filter:`${this.fieldName} == "${e}"`,target:this.target}):this.$emit(Ei.clear,{fieldName:this.fieldName,target:this.target})}}(0,w.__decorate)([r.attr],Mi.prototype,"fieldName",void 0),(0,w.__decorate)([r.attr],Mi.prototype,"type",void 0),(0,w.__decorate)([r.attr],Mi.prototype,"label",void 0),(0,w.__decorate)([r.attr],Mi.prototype,"target",void 0),(0,w.__decorate)([r.observable],Mi.prototype,"textFilter",void 0),(0,w.__decorate)([r.observable],Mi.prototype,"numFilterMin",void 0),(0,w.__decorate)([r.observable],Mi.prototype,"numFilterMax",void 0),(0,w.__decorate)([r.observable],Mi.prototype,"dateFilterMin",void 0),(0,w.__decorate)([r.observable],Mi.prototype,"dateFilterMax",void 0),(0,w.__decorate)([r.attr],Mi.prototype,"enumOptions",void 0),(0,w.__decorate)([r.observable],Mi.prototype,"enumFilterOptions",void 0);const Ii=Mi.compose({baseName:"filter",template:Ni,styles:Di});var Pi=o(41353);const Hi=(e,t)=>r.css`
|
|
979
993
|
.filter-bar {
|
|
980
994
|
background-color: #2c2f33;
|
|
981
995
|
padding: calc(var(--design-unit) * 2px);
|
|
@@ -1011,38 +1025,38 @@
|
|
|
1011
1025
|
.toggle-collapsed {
|
|
1012
1026
|
color: #48ed9c;
|
|
1013
1027
|
}
|
|
1014
|
-
`,
|
|
1028
|
+
`,ji=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"}},Bi=r.html`
|
|
1015
1029
|
<p>Fetching metadata for ${e=>e.resource}...</p>
|
|
1016
|
-
`,
|
|
1017
|
-
${(0,
|
|
1030
|
+
`,Gi=r.html`
|
|
1031
|
+
${(0,r.when)((e=>e.collapsed),r.html`
|
|
1018
1032
|
<foundation-icon name="arrow-up"></foundation-icon>
|
|
1019
1033
|
`)}
|
|
1020
|
-
${(0,
|
|
1034
|
+
${(0,r.when)((e=>!e.collapsed),r.html`
|
|
1021
1035
|
<foundation-icon name="arrow-down"></foundation-icon>
|
|
1022
1036
|
`)}
|
|
1023
|
-
`,
|
|
1037
|
+
`,zi=r.html`
|
|
1024
1038
|
<div
|
|
1025
|
-
class=${e=>(0,
|
|
1039
|
+
class=${e=>(0,x.A)(["toggle",!0],["toggle-collapsed",e.collapsed])}
|
|
1026
1040
|
@click="${e=>e.toggle()}"
|
|
1027
1041
|
>
|
|
1028
|
-
${
|
|
1042
|
+
${Gi}
|
|
1029
1043
|
</div>
|
|
1030
|
-
<div class=${e=>(0,
|
|
1031
|
-
<div class="filter-grid" ${(0,
|
|
1032
|
-
${(0,
|
|
1044
|
+
<div class=${e=>(0,x.A)(["filter-bar",!0],["collapsed",e.collapsed])}>
|
|
1045
|
+
<div class="filter-grid" ${(0,r.ref)("filterGrid")}>
|
|
1046
|
+
${(0,r.repeat)((e=>e.fields),r.html`
|
|
1033
1047
|
<foundation-filter
|
|
1034
1048
|
label="${e=>e.UI_LABEL}"
|
|
1035
1049
|
target="${(e,t)=>{var o;return null===(o=t.parent)||void 0===o?void 0:o.target}}"
|
|
1036
|
-
type="${e=>
|
|
1050
|
+
type="${e=>ji(e.TYPE)}"
|
|
1037
1051
|
fieldName="${e=>e.NAME}"
|
|
1038
1052
|
></foundation-filter>
|
|
1039
1053
|
`)}
|
|
1040
1054
|
</div>
|
|
1041
1055
|
</div>
|
|
1042
|
-
`,
|
|
1043
|
-
${e=>e.ready?
|
|
1044
|
-
`,
|
|
1045
|
-
${t&&`@media only screen and ${
|
|
1056
|
+
`,Vi=r.html`
|
|
1057
|
+
${e=>e.ready?zi:Bi}
|
|
1058
|
+
`,Ui=5;class Yi extends n.FoundationElement{constructor(){super(...arguments),this.columns=Ui,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,Pi.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=>_o.error(e)))}adjustColumnStyles(){this.filterGrid&&(this.filterGrid.style["grid-template-columns"]=`repeat(${this.columns}, 1fr)`)}toggle(){this.ready&&(this.collapsed=!this.collapsed)}}(0,w.__decorate)([r.attr],Yi.prototype,"resource",void 0),(0,w.__decorate)([r.attr],Yi.prototype,"only",void 0),(0,w.__decorate)([r.attr],Yi.prototype,"labels",void 0),(0,w.__decorate)([r.attr],Yi.prototype,"target",void 0),(0,w.__decorate)([r.attr],Yi.prototype,"columns",void 0),(0,w.__decorate)([r.observable],Yi.prototype,"ready",void 0),(0,w.__decorate)([r.observable],Yi.prototype,"fields",void 0),(0,w.__decorate)([_e.lj],Yi.prototype,"connect",void 0),(0,w.__decorate)([r.observable],Yi.prototype,"collapsed",void 0);const Wi=Yi.compose({baseName:"filter-bar",template:Vi,styles:Hi});var qi;!function(e){e.sm="(max-width: 640px)",e.md="(min-width: 641px) and (max-width: 1023px)",e.lg="(min-width: 1024px)"}(qi||(qi={}));const Xi=e=>{const t=e?`-${e}`:"";return r.css`
|
|
1059
|
+
${t&&`@media only screen and ${qi[e]} {`}
|
|
1046
1060
|
:host(.spacing${t}-1x) slot {
|
|
1047
1061
|
gap: calc(var(--design-unit) * 2px);
|
|
1048
1062
|
}
|
|
@@ -1159,7 +1173,7 @@
|
|
|
1159
1173
|
align-content: space-evenly;
|
|
1160
1174
|
}
|
|
1161
1175
|
${t&&"}"}
|
|
1162
|
-
`},
|
|
1176
|
+
`},Zi=r.css`
|
|
1163
1177
|
:host {
|
|
1164
1178
|
width: 100%;
|
|
1165
1179
|
height: 100%;
|
|
@@ -1171,17 +1185,17 @@
|
|
|
1171
1185
|
display: flex;
|
|
1172
1186
|
}
|
|
1173
1187
|
|
|
1174
|
-
${
|
|
1175
|
-
${
|
|
1176
|
-
${
|
|
1177
|
-
${
|
|
1178
|
-
`,
|
|
1188
|
+
${Xi()}
|
|
1189
|
+
${Xi("lg")}
|
|
1190
|
+
${Xi("md")}
|
|
1191
|
+
${Xi("sm")}
|
|
1192
|
+
`,Ki=r.html`
|
|
1179
1193
|
<template>
|
|
1180
1194
|
<slot></slot>
|
|
1181
1195
|
</template>
|
|
1182
|
-
`,
|
|
1183
|
-
${(0,
|
|
1184
|
-
`,
|
|
1196
|
+
`,Ji=void 0,Qi={};class ea extends n.FoundationElement{}const ta=ea.compose(Object.assign({baseName:"flex-layout",styles:Zi,template:Ki,shadowOptions:Ji},Qi)),oa=(e,t)=>r.css`
|
|
1197
|
+
${(0,s.flipperStyles)(e,t)}
|
|
1198
|
+
`,ia=(e,t)=>(0,n.flipperTemplate)(e,t);class aa extends s.Flipper{}const na=void 0,sa={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 '},ra=aa.compose(Object.assign({baseName:"flipper",template:ia,styles:oa,shadowOptions:na},sa)),la=225,da=r.css`
|
|
1185
1199
|
/* Host */
|
|
1186
1200
|
:host {
|
|
1187
1201
|
display: inline-block;
|
|
@@ -1206,7 +1220,7 @@
|
|
|
1206
1220
|
height: 100%;
|
|
1207
1221
|
position: absolute;
|
|
1208
1222
|
/* stylelint-disable-next-line function-name-case */
|
|
1209
|
-
transition: transform ${
|
|
1223
|
+
transition: transform ${la.toString()}ms ease-in;
|
|
1210
1224
|
width: 20%;
|
|
1211
1225
|
z-index: 2001;
|
|
1212
1226
|
}
|
|
@@ -1258,7 +1272,7 @@
|
|
|
1258
1272
|
opacity: 50%;
|
|
1259
1273
|
position: absolute;
|
|
1260
1274
|
/* stylelint-disable-next-line function-name-case */
|
|
1261
|
-
transition: opacity ${
|
|
1275
|
+
transition: opacity ${la.toString()}ms linear;
|
|
1262
1276
|
width: 100%;
|
|
1263
1277
|
z-index: 2000;
|
|
1264
1278
|
}
|
|
@@ -1266,12 +1280,12 @@
|
|
|
1266
1280
|
:host([visuallyhidden]) div.background {
|
|
1267
1281
|
opacity: 0%;
|
|
1268
1282
|
}
|
|
1269
|
-
`,
|
|
1283
|
+
`,ca=r.html`
|
|
1270
1284
|
<template ?closed=${e=>e.closed} ?visuallyhidden=${e=>e.visuallyhidden}>
|
|
1271
1285
|
<div class="container">
|
|
1272
1286
|
<div class="background" part="background" @click=${e=>e.closeFlyout()}></div>
|
|
1273
1287
|
<div class="flyout" part="flyout" @transitionend=${e=>e.closingFinished()}>
|
|
1274
|
-
${(0,
|
|
1288
|
+
${(0,r.when)((e=>e.displayHeader),r.html`
|
|
1275
1289
|
<div class="header" part="header">
|
|
1276
1290
|
<div class="title" part="title">
|
|
1277
1291
|
<slot name="title"></slot>
|
|
@@ -1290,8 +1304,8 @@
|
|
|
1290
1304
|
</div>
|
|
1291
1305
|
</div>
|
|
1292
1306
|
</template>
|
|
1293
|
-
`;class
|
|
1294
|
-
${t&&`@media only screen and ${
|
|
1307
|
+
`;class ua extends n.FoundationElement{constructor(){super(...arguments),this.position="right",this.displayHeader=!0,this.closed=!0,this.visuallyhidden=!0}closedChanged(){this.closed||setTimeout((()=>this.visuallyhidden=!1),1)}closeFlyout(){this.visuallyhidden=!0}closingFinished(){this.visuallyhidden&&(this.closed=!0,this.$emit("closed"))}}(0,w.__decorate)([r.attr],ua.prototype,"position",void 0),(0,w.__decorate)([(0,r.attr)({mode:"boolean"})],ua.prototype,"displayHeader",void 0),(0,w.__decorate)([(0,r.attr)({mode:"boolean"})],ua.prototype,"closed",void 0),(0,w.__decorate)([(0,r.attr)({mode:"boolean"})],ua.prototype,"visuallyhidden",void 0);const pa=void 0,ha={},ma=ua.compose(Object.assign({baseName:"flyout",styles:da,template:ca,shadowOptions:pa},ha));var fa;!function(e){e.sm="(max-width: 640px)",e.md="(min-width: 641px) and (max-width: 1023px)",e.lg="(min-width: 1024px)"}(fa||(fa={}));const va=e=>{const t=e?`-${e}`:"";return r.css`
|
|
1308
|
+
${t&&`@media only screen and ${fa[e]} {`}
|
|
1295
1309
|
:host(.spacing${t}-1x) slot {
|
|
1296
1310
|
gap: calc(var(--design-unit) * 2px);
|
|
1297
1311
|
}
|
|
@@ -1376,32 +1390,32 @@
|
|
|
1376
1390
|
place-items: stretch;
|
|
1377
1391
|
}
|
|
1378
1392
|
${t&&"}"}
|
|
1379
|
-
`},
|
|
1393
|
+
`},ga=r.css`
|
|
1380
1394
|
slot {
|
|
1381
1395
|
width: 100%;
|
|
1382
1396
|
height: 100%;
|
|
1383
1397
|
display: grid;
|
|
1384
1398
|
}
|
|
1385
1399
|
|
|
1386
|
-
${
|
|
1387
|
-
${
|
|
1388
|
-
${
|
|
1389
|
-
${
|
|
1390
|
-
`,
|
|
1400
|
+
${va()}
|
|
1401
|
+
${va("lg")}
|
|
1402
|
+
${va("md")}
|
|
1403
|
+
${va("sm")}
|
|
1404
|
+
`,ba=r.html`
|
|
1391
1405
|
<template>
|
|
1392
1406
|
<slot></slot>
|
|
1393
1407
|
</template>
|
|
1394
|
-
`,
|
|
1408
|
+
`,ya=void 0,wa={};class xa{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`
|
|
1395
1409
|
slot {
|
|
1396
|
-
${
|
|
1410
|
+
${s||""}
|
|
1397
1411
|
${n||""}
|
|
1398
1412
|
}
|
|
1399
|
-
`}bind(e){let t=!1;const o=o=>{const{matches:i}=o;i&&!t?(e.$fastController.addStyles(this.styles),t=!0):!i&&t&&(e.$fastController.removeStyles(this.styles),t=!1)};o({matches:this.query.matches}),this.query.addEventListener("change",o),this.listenerCache.set(e,o)}unbind(e){const t=this.listenerCache.get(e);t&&(this.query.removeEventListener("change",t),this.listenerCache.delete(e)),e.$fastController.removeStyles(this.styles)}}class
|
|
1413
|
+
`}bind(e){let t=!1;const o=o=>{const{matches:i}=o;i&&!t?(e.$fastController.addStyles(this.styles),t=!0):!i&&t&&(e.$fastController.removeStyles(this.styles),t=!1)};o({matches:this.query.matches}),this.query.addEventListener("change",o),this.listenerCache.set(e,o)}unbind(e){const t=this.listenerCache.get(e);t&&(this.query.removeEventListener("change",t),this.listenerCache.delete(e)),e.$fastController.removeStyles(this.styles)}}class Fa extends n.FoundationElement{constructor(){super(...arguments),this.behaviors=[]}connectedCallback(){super.connectedCallback(),this.behaviors=Object.keys(fa).map((e=>{if(this[`col-${e}-count`]||this[`row-${e}-count`])return new xa(fa[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`
|
|
1400
1414
|
slot {
|
|
1401
1415
|
${e||""}
|
|
1402
1416
|
${t||""}
|
|
1403
1417
|
}
|
|
1404
|
-
`,this.$fastController.addStyles(this.baseStyles),this.$fastController.addBehaviors(this.behaviors)}disconnectedCallback(){super.disconnectedCallback(),this.$fastController.removeBehaviors(this.behaviors),this.$fastController.removeStyles(this.baseStyles)}}(0,
|
|
1418
|
+
`,this.$fastController.addStyles(this.baseStyles),this.$fastController.addBehaviors(this.behaviors)}disconnectedCallback(){super.disconnectedCallback(),this.$fastController.removeBehaviors(this.behaviors),this.$fastController.removeStyles(this.baseStyles)}}(0,w.__decorate)([r.attr],Fa.prototype,"col-count",void 0),(0,w.__decorate)([r.attr],Fa.prototype,"col-width",void 0),(0,w.__decorate)([r.attr],Fa.prototype,"col-lg-count",void 0),(0,w.__decorate)([r.attr],Fa.prototype,"col-lg-width",void 0),(0,w.__decorate)([r.attr],Fa.prototype,"col-md-count",void 0),(0,w.__decorate)([r.attr],Fa.prototype,"col-md-width",void 0),(0,w.__decorate)([r.attr],Fa.prototype,"col-sm-count",void 0),(0,w.__decorate)([r.attr],Fa.prototype,"col-sm-width",void 0),(0,w.__decorate)([r.attr],Fa.prototype,"row-count",void 0),(0,w.__decorate)([r.attr],Fa.prototype,"row-height",void 0),(0,w.__decorate)([r.attr],Fa.prototype,"row-lg-count",void 0),(0,w.__decorate)([r.attr],Fa.prototype,"row-lg-height",void 0),(0,w.__decorate)([r.attr],Fa.prototype,"row-md-count",void 0),(0,w.__decorate)([r.attr],Fa.prototype,"row-md-height",void 0),(0,w.__decorate)([r.attr],Fa.prototype,"row-sm-count",void 0),(0,w.__decorate)([r.attr],Fa.prototype,"row-sm-height",void 0);const $a=Fa.compose(Object.assign({baseName:"grid-layout",styles:ga,template:ba,shadowOptions:ya},wa)),Sa=r.html`
|
|
1405
1419
|
<template>
|
|
1406
1420
|
<style>
|
|
1407
1421
|
:host {
|
|
@@ -1430,20 +1444,20 @@
|
|
|
1430
1444
|
</style>
|
|
1431
1445
|
<slot></slot>
|
|
1432
1446
|
</template>
|
|
1433
|
-
`,
|
|
1434
|
-
${
|
|
1435
|
-
|
|
1447
|
+
`,Da=void 0,Ca={};class Oa extends n.FoundationElement{setGridItemProperties(e,t,o,i){if(t&&e&&o&&i){return`grid-row: ${0===t||0===i?"auto":`${t} / ${Number(t)+Number(i)}`}; grid-column: ${0===e||0===o?"auto":`${e} / ${Number(e)+Number(o)}`}`}}}(0,w.__decorate)([(0,r.attr)({attribute:"col-number"})],Oa.prototype,"colNumber",void 0),(0,w.__decorate)([(0,r.attr)({attribute:"col-sm-number"})],Oa.prototype,"colSmNumber",void 0),(0,w.__decorate)([(0,r.attr)({attribute:"col-md-number"})],Oa.prototype,"colMdNumber",void 0),(0,w.__decorate)([(0,r.attr)({attribute:"col-lg-number"})],Oa.prototype,"colLgNumber",void 0),(0,w.__decorate)([(0,r.attr)({attribute:"row-number"})],Oa.prototype,"rowNumber",void 0),(0,w.__decorate)([(0,r.attr)({attribute:"row-sm-number"})],Oa.prototype,"rowSmNumber",void 0),(0,w.__decorate)([(0,r.attr)({attribute:"row-md-number"})],Oa.prototype,"rowMdNumber",void 0),(0,w.__decorate)([(0,r.attr)({attribute:"row-lg-number"})],Oa.prototype,"rowLgNumber",void 0),(0,w.__decorate)([(0,r.attr)({attribute:"width"})],Oa.prototype,"width",void 0),(0,w.__decorate)([(0,r.attr)({attribute:"width-sm"})],Oa.prototype,"widthSm",void 0),(0,w.__decorate)([(0,r.attr)({attribute:"width-md"})],Oa.prototype,"widthMd",void 0),(0,w.__decorate)([(0,r.attr)({attribute:"width-lg"})],Oa.prototype,"widthLg",void 0),(0,w.__decorate)([(0,r.attr)({attribute:"height"})],Oa.prototype,"height",void 0),(0,w.__decorate)([(0,r.attr)({attribute:"height-sm"})],Oa.prototype,"heightSm",void 0),(0,w.__decorate)([(0,r.attr)({attribute:"height-md"})],Oa.prototype,"heightMd",void 0),(0,w.__decorate)([(0,r.attr)({attribute:"height-lg"})],Oa.prototype,"heightLg",void 0);const _a=Oa.compose(Object.assign({baseName:"grid-layout-item",template:Sa,shadowOptions:Da},Ca));var ka=o(38938),Ta=o(79840),La=o(64739),Ra=o(75030);const Aa=()=>(ka.vI.add(Ra.mRB,La.NCV,Ta.vnX),ka.vz.css()),Na=(e,t)=>r.css`
|
|
1448
|
+
${Aa()}
|
|
1449
|
+
`,Ea=r.html`
|
|
1436
1450
|
<template>
|
|
1437
1451
|
<i
|
|
1438
|
-
${(0,
|
|
1452
|
+
${(0,r.ref)("iElement")}
|
|
1439
1453
|
class=${e=>`fa-${e.name} fa-${e.size} fa-${e.variant}`}
|
|
1440
1454
|
part=${e=>`icon-${e.name}-${e.size}-${e.variant}`}
|
|
1441
1455
|
>
|
|
1442
1456
|
<slot></slot>
|
|
1443
1457
|
</i>
|
|
1444
1458
|
</template>
|
|
1445
|
-
`,
|
|
1446
|
-
${(0,
|
|
1459
|
+
`,Ma={mode:"open",delegatesFocus:!0},Ia={};var Pa;!function(e){e.solid="fas",e.regular="far",e.brand="fab"}(Pa||(Pa={}));class Ha 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,ka.N)({prefix:Pa[this.variant],iconName:this.name}),t=(0,ka.qv)(e);t&&t.node&&(this.iElement.innerHTML="",Array.from(t.node).map((e=>this.iElement.appendChild(e))))}}(0,w.__decorate)([r.observable],Ha.prototype,"iElement",void 0),(0,w.__decorate)([r.attr],Ha.prototype,"name",void 0),(0,w.__decorate)([r.attr],Ha.prototype,"size",void 0),(0,w.__decorate)([r.attr],Ha.prototype,"variant",void 0);const ja=Ha.compose(Object.assign({baseName:"icon",template:Ea,styles:Na,shadowOptions:Ma},Ia)),Ba=(e,t)=>r.css`
|
|
1460
|
+
${(0,s.listboxStyles)(e,t)}
|
|
1447
1461
|
|
|
1448
1462
|
:host {
|
|
1449
1463
|
display: flex;
|
|
@@ -1453,17 +1467,17 @@
|
|
|
1453
1467
|
border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);
|
|
1454
1468
|
border-radius: calc(var(--control-corner-radius) * 1px);
|
|
1455
1469
|
}
|
|
1456
|
-
`,
|
|
1457
|
-
${(0,
|
|
1458
|
-
`,
|
|
1459
|
-
${(0,
|
|
1460
|
-
`,
|
|
1461
|
-
${(0,
|
|
1462
|
-
`,
|
|
1463
|
-
${
|
|
1464
|
-
`,
|
|
1465
|
-
${
|
|
1466
|
-
`,
|
|
1470
|
+
`,Ga=(e,t)=>(0,n.listboxTemplate)(e,t);class za extends s.Listbox{}const Va=void 0,Ua={},Ya=za.compose(Object.assign({baseName:"listbox",template:Ga,styles:Ba,shadowOptions:Va},Ua)),Wa=(e,t)=>r.css`
|
|
1471
|
+
${(0,s.optionStyles)(e,t)}
|
|
1472
|
+
`,qa=(e,t)=>(0,n.listboxOptionTemplate)(e,t);class Xa extends s.ListboxOption{}const Za=void 0,Ka={},Ja=Xa.compose(Object.assign({baseName:"option",template:qa,styles:Wa,shadowOptions:Za},Ka)),Qa=(e,t)=>r.css`
|
|
1473
|
+
${(0,s.menuStyles)(e,t)}
|
|
1474
|
+
`,en=(e,t)=>(0,n.menuTemplate)(e,t);class tn extends s.Menu{}const on=void 0,an={},nn=tn.compose(Object.assign({baseName:"menu",template:en,styles:Qa,shadowOptions:on},an)),sn=(e,t)=>r.css`
|
|
1475
|
+
${(0,s.menuItemStyles)(e,t)}
|
|
1476
|
+
`,rn=(e,t)=>(0,n.menuItemTemplate)(e,t);class ln extends s.MenuItem{connectedCallback(){super.connectedCallback(),this.addEventListener("click",(()=>this.$emit("onMenuClick")))}}const dn=void 0,cn={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 '},un=ln.compose(Object.assign({baseName:"menu-item",template:rn,styles:sn,shadowOptions:dn},cn)),pn=r.css`
|
|
1477
|
+
${Qt}
|
|
1478
|
+
`,hn=r.html`
|
|
1479
|
+
${to}
|
|
1480
|
+
`,mn={mode:"open",delegatesFocus:!0},fn={};class vn extends ao{show(){this.onShowCallback&&this.onShowCallback(),this.mainElement.showModal()}}const gn=vn.compose(Object.assign({baseName:"modal",styles:pn,template:hn,shadowOptions:mn},fn));var bn;!function(e){e.BELOW="below",e.ABOVE="above",e.DYNAMIC="dynamic"}(bn||(bn={}));const yn=230,wn=r.css`
|
|
1467
1481
|
.root {
|
|
1468
1482
|
position: relative;
|
|
1469
1483
|
width: inherit;
|
|
@@ -1588,7 +1602,7 @@
|
|
|
1588
1602
|
|
|
1589
1603
|
.visible {
|
|
1590
1604
|
visibility: visible;
|
|
1591
|
-
max-height: ${
|
|
1605
|
+
max-height: ${yn.toString()}px;
|
|
1592
1606
|
}
|
|
1593
1607
|
|
|
1594
1608
|
::slotted(foundation-checkbox),
|
|
@@ -1623,25 +1637,25 @@
|
|
|
1623
1637
|
.label-hidden {
|
|
1624
1638
|
display: none;
|
|
1625
1639
|
}
|
|
1626
|
-
`,
|
|
1640
|
+
`,xn=(e="foundation")=>r.html`
|
|
1627
1641
|
<label
|
|
1628
1642
|
part="label"
|
|
1629
1643
|
for="control"
|
|
1630
|
-
class=${e=>{var t;return(0,
|
|
1644
|
+
class=${e=>{var t;return(0,x.A)("label",["label-hidden",!(null===(t=e.defaultSlottedNodes)||void 0===t?void 0:t.length)])}}
|
|
1631
1645
|
>
|
|
1632
1646
|
<slot
|
|
1633
1647
|
name="label"
|
|
1634
|
-
${(0,
|
|
1648
|
+
${(0,r.slotted)({property:"defaultSlottedNodes",filter:n.whitespaceFilter})}
|
|
1635
1649
|
></slot>
|
|
1636
1650
|
</label>
|
|
1637
1651
|
<div class="root" part="root">
|
|
1638
1652
|
<div class="control" part="control">
|
|
1639
1653
|
<svg
|
|
1640
1654
|
viewBox="0 0 12 7"
|
|
1641
|
-
${(0,
|
|
1655
|
+
${(0,r.ref)("arrowIcon")}
|
|
1642
1656
|
@click=${e=>!e.disabled&&e.toggle()}
|
|
1643
1657
|
id="arrow-icon"
|
|
1644
|
-
class="${e=>(0,
|
|
1658
|
+
class="${e=>(0,x.A)(["disabled-svg",e.disabled])}"
|
|
1645
1659
|
width="16px"
|
|
1646
1660
|
fill="white"
|
|
1647
1661
|
xmlns="http://www.w3.org/2000/svg"
|
|
@@ -1659,8 +1673,8 @@
|
|
|
1659
1673
|
@click=${e=>e.toggle()}
|
|
1660
1674
|
/>
|
|
1661
1675
|
</div>
|
|
1662
|
-
<div ${(0,
|
|
1663
|
-
${(0,
|
|
1676
|
+
<div ${(0,r.ref)("optionsElement")} class="options">
|
|
1677
|
+
${(0,r.when)((e=>e.search),r.html`
|
|
1664
1678
|
<${e}-text-field
|
|
1665
1679
|
id="filter-search"
|
|
1666
1680
|
part="filter-search"
|
|
@@ -1670,7 +1684,7 @@
|
|
|
1670
1684
|
></${e}-text-field>
|
|
1671
1685
|
`)}
|
|
1672
1686
|
<div class="checkbox-container">
|
|
1673
|
-
${(0,
|
|
1687
|
+
${(0,r.when)((e=>e.all),r.html`
|
|
1674
1688
|
<${e}-checkbox
|
|
1675
1689
|
@click=${e=>e.selectCheckboxAll()}
|
|
1676
1690
|
@change=${(e,t)=>e.changeHandler(t.event)}
|
|
@@ -1680,7 +1694,7 @@
|
|
|
1680
1694
|
All ${e=>e.name}
|
|
1681
1695
|
</${e}-checkbox>
|
|
1682
1696
|
`)}
|
|
1683
|
-
${(0,
|
|
1697
|
+
${(0,r.repeat)((e=>e.filteredAvailableOptions),r.html`
|
|
1684
1698
|
<${e}-checkbox
|
|
1685
1699
|
@click=${(e,t)=>t.parent.selectCheckboxOne(e)}
|
|
1686
1700
|
@change=${(e,t)=>t.parent.changeHandler(t.event)}
|
|
@@ -1693,10 +1707,10 @@
|
|
|
1693
1707
|
</div>
|
|
1694
1708
|
</div>
|
|
1695
1709
|
</div>
|
|
1696
|
-
`,
|
|
1697
|
-
${
|
|
1698
|
-
|
|
1699
|
-
${(0,
|
|
1710
|
+
`,Fn=r.html`
|
|
1711
|
+
${xn()}
|
|
1712
|
+
`,$n=void 0,Sn={};class Dn extends n.FoundationElement{constructor(){super(...arguments),this.name="",this.all=!0,this.allSelected=!1,this.search=!0,this.disabled=!1,this.clickOutside=e=>this.handleClickOutside(e),this.open=!1,this.options=[],this.selectedOptions=[],this.filteredAvailableOptions=[...this.options],this.position=bn.BELOW,this.initialisedOptions=!1}openChanged(e,t){var o,i,a,n;t?(document.addEventListener("mousedown",this.clickOutside),null===(o=this.arrowIcon)||void 0===o||o.classList.add("flipped"),null===(i=this.optionsElement)||void 0===i||i.classList.add("visible")):(document.removeEventListener("mousedown",this.clickOutside),null===(a=this.arrowIcon)||void 0===a||a.classList.remove("flipped"),null===(n=this.optionsElement)||void 0===n||n.classList.remove("visible"))}connectedCallback(){var e;super.connectedCallback(),this.position===bn.ABOVE&&(null===(e=this.optionsElement)||void 0===e||e.classList.add("position-above"))}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("mousedown",this.clickOutside)}optionsChanged(){this.allSelected&&!this.initialisedOptions&&(this.selectedOptions=this.options.map((e=>this.optionGetter(e)))),this.filteredAvailableOptions=[...this.options]}selectedOptionsChanged(){this.$fastController.isConnected&&(this.initialisedOptions=!0)}toggle(){this.open||this.position!==bn.DYNAMIC||this.setDropdownPosition(),this.open=!this.open}setDropdownPosition(){var e,t;(this.scrollContainer||this.parentElement).clientHeight-(this.offsetTop-(this.scrollContainer||this.parentElement).scrollTop)<yn+this.offsetHeight?null===(e=this.optionsElement)||void 0===e||e.classList.add("position-above"):null===(t=this.optionsElement)||void 0===t||t.classList.remove("position-above")}optionGetter(e){return"string"!=typeof e?e.value:e}getItemLabel(e){let t;return e?(t="string"==typeof e?e:e.label||e.value||"",this.valueFormatter?this.valueFormatter(t):t):""}isOptionDisabled(e){return e&&"string"!=typeof e&&e.disabled||!1}get getDisplayValue(){let e="";switch(this.selectedOptions.length){case 0:e=this.getPlaceholder;break;case 1:{const t=this.options.find((e=>this.optionGetter(e)===this.selectedOptions[0]));e=this.getItemLabel(t);break}case this.options.length:e=`All ${this.name}`.trim();break;default:e=`${this.selectedOptions.length} Selected`}return e}get getPlaceholder(){return`Search ${this.name}`.trim().concat("...")}get isAllSelected(){return!this.isAllOptionsDisabled&&this.selectedOptions.length===this.getEnabledOptionsCount()}get isAllOptionsDisabled(){return this.options.length===this.options.filter(this.isOptionDisabled).length}isOptionSelected(e){return this.selectedOptions.includes(this.optionGetter(e))}selectCheckboxOne(e){const t=this.optionGetter(e);this.selectedOptions.includes(t)?(this.selectedOptions=[...this.selectedOptions],this.selectedOptions.splice(this.selectedOptions.indexOf(t),1)):this.selectedOptions=[...this.selectedOptions,t],this.$emit("selectionChange",this.selectedOptions)}getEnabledOptionsCount(){return this.options.length-this.options.filter(this.isOptionDisabled).length}selectCheckboxAll(){const e=this.selectedOptions.length===this.getEnabledOptionsCount();this.selectedOptions=e?[]:this.options.filter((e=>!this.isOptionDisabled(e))).map((e=>this.optionGetter(e))),this.onAllSelectedCallback&&this.onAllSelectedCallback(!e),this.$emit("selectionChange",this.selectedOptions)}setFilter(e){this.filteredAvailableOptions=[...this.options.filter((t=>{var o;const i=e.currentTarget;return("string"==typeof t?t:null!==(o=t.label)&&void 0!==o?o:t.value).toLowerCase().startsWith(i.value.toLowerCase())}))]}changeHandler(e){e.preventDefault(),e.stopImmediatePropagation()}handleClickOutside(e){wo(e,this)&&(this.open=!1)}}(0,w.__decorate)([r.attr],Dn.prototype,"name",void 0),(0,w.__decorate)([(0,r.attr)({mode:"boolean"})],Dn.prototype,"all",void 0),(0,w.__decorate)([(0,r.attr)({mode:"boolean"})],Dn.prototype,"allSelected",void 0),(0,w.__decorate)([(0,r.attr)({mode:"boolean"})],Dn.prototype,"search",void 0),(0,w.__decorate)([(0,r.attr)({mode:"boolean"})],Dn.prototype,"disabled",void 0),(0,w.__decorate)([r.observable],Dn.prototype,"defaultSlottedNodes",void 0),(0,w.__decorate)([r.observable],Dn.prototype,"valueFormatter",void 0),(0,w.__decorate)([r.observable],Dn.prototype,"open",void 0),(0,w.__decorate)([r.observable],Dn.prototype,"options",void 0),(0,w.__decorate)([r.observable],Dn.prototype,"selectedOptions",void 0),(0,w.__decorate)([r.observable],Dn.prototype,"filteredAvailableOptions",void 0),(0,w.__decorate)([r.observable],Dn.prototype,"scrollContainer",void 0),(0,w.__decorate)([r.observable],Dn.prototype,"position",void 0),(0,w.__decorate)([r.observable],Dn.prototype,"onAllSelectedCallback",void 0),(0,w.__decorate)([r.volatile],Dn.prototype,"getDisplayValue",null),(0,w.__decorate)([r.volatile],Dn.prototype,"getPlaceholder",null),(0,w.__decorate)([r.volatile],Dn.prototype,"isAllSelected",null),(0,w.__decorate)([r.volatile],Dn.prototype,"isAllOptionsDisabled",null);const Cn=Dn.compose(Object.assign({baseName:"multiselect",template:Fn,styles:wn,shadowOptions:$n},Sn)),On=(e,t)=>r.css`
|
|
1713
|
+
${(0,s.numberFieldStyles)(e,t)}
|
|
1700
1714
|
::part(label) {
|
|
1701
1715
|
color: var(--neutral-foreground-rest);
|
|
1702
1716
|
}
|
|
@@ -1725,9 +1739,9 @@
|
|
|
1725
1739
|
::part(end) {
|
|
1726
1740
|
margin-inline-end: unset;
|
|
1727
1741
|
}
|
|
1728
|
-
`,
|
|
1729
|
-
${(0,
|
|
1730
|
-
`;class
|
|
1742
|
+
`,_n=(e,t)=>r.html`
|
|
1743
|
+
${(0,n.numberFieldTemplate)(e,t)}
|
|
1744
|
+
`;class kn extends s.NumberField{constructor(){super(...arguments),this.hideStep=!1,this.value="",this.withFormatting=!1,this.locale="en-US",this.options={maximumFractionDigits:3,minimumFractionDigits:0}}sanitiseInputVal(e){return String(new kt.NumberParser(this.locale).parse(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.control.value=t.toString(),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.control.value=t.toString(),this.handleTextInput()}hasSeparatorWithoutDecimals(){return new RegExp("[.]$")}handleTextInput(){this.isUserInput=!0,this.withFormatting&&!new kt.NumberParser(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.withFormatting||this.hasSeparatorWithoutDecimals().test(this.control.value)||r.DOM.queueUpdate((()=>{this.control.value=this.validateValue(this.control.value,!1),this.value=this.control.value}))}valueChanged(e,t){if(t||!this.control){if(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.toIntlNumberFormat(this.value):this.value}));const e=this.validateValue(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}))}}else this.control.value=""}handleBlur(){this.isUserInput=!1,this.value=this.withFormatting?this.validateMinMax(this.value):this.validateMinMax(this.value,!1),this.control.value=this.withFormatting&&this.value?this.toIntlNumberFormat(this.value):this.value,this.$emit("input"),this.$emit("change")}}(0,w.__decorate)([(0,r.attr)({mode:"boolean"})],kn.prototype,"hideStep",void 0),(0,w.__decorate)([r.attr],kn.prototype,"value",void 0),(0,w.__decorate)([(0,r.attr)({mode:"boolean"})],kn.prototype,"withFormatting",void 0),(0,w.__decorate)([r.attr],kn.prototype,"locale",void 0);const Tn={delegatesFocus:!0,mode:"open"},Ln={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 '},Rn=kn.compose(Object.assign({baseName:"number-field",template:_n,styles:On,shadowOptions:Tn},Ln));var An=o(86975);const Nn={toView:e=>JSON.stringify(e),fromView:e=>null==e?e:JSON.parse(e)};class En 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,An.fi)(this.target,this,this.buildOptions()))}placementChanged(){this.popper&&this.popper.setOptions(this.buildOptions())}offsetChanged(){this.popper&&this.popper.setOptions(this.buildOptions())}flipChanged(){this.popper&&this.popper.setOptions(this.buildOptions())}buildOptions(){return{placement:this.placement,modifiers:[{name:"offset",options:{offset:this.offset||[0,0]}},{name:"flip",enabled:this.flip}]}}toggle(){this.show=!this.show}disconnectedCallback(){super.disconnectedCallback(),this.popper&&(this.popper.destroy(),this.popper=null)}}(0,w.__decorate)([r.attr],En.prototype,"selector",void 0),(0,w.__decorate)([(0,r.attr)({mode:"boolean"})],En.prototype,"show",void 0),(0,w.__decorate)([r.attr],En.prototype,"event",void 0),(0,w.__decorate)([r.attr],En.prototype,"placement",void 0),(0,w.__decorate)([(0,r.attr)({converter:Nn})],En.prototype,"offset",void 0),(0,w.__decorate)([(0,r.attr)({mode:"boolean"})],En.prototype,"flip",void 0);const Mn=r.css`
|
|
1731
1745
|
:host {
|
|
1732
1746
|
display: none;
|
|
1733
1747
|
inset: unset !important;
|
|
@@ -1737,23 +1751,23 @@
|
|
|
1737
1751
|
:host([show]) {
|
|
1738
1752
|
display: block;
|
|
1739
1753
|
}
|
|
1740
|
-
`,
|
|
1754
|
+
`,In=r.html`
|
|
1741
1755
|
<template>
|
|
1742
1756
|
<slot></slot>
|
|
1743
1757
|
</template>
|
|
1744
|
-
`,
|
|
1745
|
-
${(0,
|
|
1758
|
+
`,Pn=En.compose({baseName:"popper",styles:Mn,template:In}),Hn=(e,t)=>r.css`
|
|
1759
|
+
${(0,s.progressStyles)(e,t)}
|
|
1746
1760
|
:host {
|
|
1747
1761
|
height: calc(var(--design-unit) * 2px);
|
|
1748
1762
|
}
|
|
1749
|
-
`,
|
|
1750
|
-
${(0,
|
|
1751
|
-
`,
|
|
1752
|
-
${(0,
|
|
1753
|
-
`,
|
|
1754
|
-
${(0,
|
|
1755
|
-
`,
|
|
1756
|
-
${(0,
|
|
1763
|
+
`,jn=(e,t)=>(0,n.progressTemplate)(e,t);class Bn extends s.Progress{}const Gn=void 0,zn={indeterminateIndicator1:'<span class="indeterminate-indicator-1" part="indeterminate-indicator-1"></span>',indeterminateIndicator2:'<span class="indeterminate-indicator-1" part="indeterminate-indicator-1"></span>'},Vn=Bn.compose(Object.assign({baseName:"progress",template:jn,styles:Hn,shadowOptions:Gn},zn)),Un=(e,t)=>r.css`
|
|
1764
|
+
${(0,s.progressRingStyles)(e,t)}
|
|
1765
|
+
`,Yn=(e,t)=>(0,n.progressRingTemplate)(e,t);class Wn extends s.Progress{}const qn=void 0,Xn={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 '},Zn=Wn.compose(Object.assign({baseName:"progress-ring",template:Yn,styles:Un,shadowOptions:qn},Xn)),Kn=(e,t)=>r.css`
|
|
1766
|
+
${(0,s.radioStyles)(e,t)}
|
|
1767
|
+
`,Jn=(e,t)=>(0,n.radioTemplate)(e,t);class Qn extends s.Radio{}const es=void 0,ts={checkedIndicator:'\n <div part="checked-indicator" class="checked-indicator"></div>\n '},os=Qn.compose(Object.assign({baseName:"radio",template:Jn,styles:Kn,shadowOptions:es},ts)),is=(e,t)=>r.css`
|
|
1768
|
+
${(0,s.radioGroupStyles)(e,t)}
|
|
1769
|
+
`,as=(e,t)=>(0,n.radioGroupTemplate)(e,t);class ns extends s.RadioGroup{}const ss=void 0,rs={},ls=ns.compose(Object.assign({baseName:"radio-group",template:as,styles:is,shadowOptions:ss},rs)),ds=(e,t)=>r.css`
|
|
1770
|
+
${(0,s.radioGroupStyles)(e,t)}
|
|
1757
1771
|
::slotted(foundation-segmented-item:first-of-type) {
|
|
1758
1772
|
border-radius: calc(var(--control-corner-radius) * 1px) 0 0
|
|
1759
1773
|
calc(var(--control-corner-radius) * 1px);
|
|
@@ -1765,8 +1779,8 @@
|
|
|
1765
1779
|
calc(var(--control-corner-radius) * 1px) 0;
|
|
1766
1780
|
border-left-width: 0;
|
|
1767
1781
|
}
|
|
1768
|
-
`,
|
|
1769
|
-
${(0,
|
|
1782
|
+
`,cs=(e,t)=>(0,n.radioGroupTemplate)(e,t);class us extends n.RadioGroup{valueChanged(){void 0===this.value&&this.slottedRadioButtons&&this.slottedRadioButtons.forEach((e=>{e.checked=!1})),super.valueChanged()}}const ps=void 0,hs={},ms=us.compose(Object.assign({baseName:"segmented-control",template:cs,styles:ds,shadowOptions:ps},hs)),fs=(e,t)=>r.css`
|
|
1783
|
+
${(0,s.radioStyles)(e,t)}
|
|
1770
1784
|
:host {
|
|
1771
1785
|
padding: calc(var(--design-unit) * 2px) calc(var(--design-unit) * 4px);
|
|
1772
1786
|
border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);
|
|
@@ -1776,7 +1790,7 @@
|
|
|
1776
1790
|
:host([aria-checked='true']) {
|
|
1777
1791
|
background: var(--accent-foreground-rest);
|
|
1778
1792
|
}
|
|
1779
|
-
`,
|
|
1793
|
+
`,vs=(e,t)=>r.html`
|
|
1780
1794
|
<template
|
|
1781
1795
|
role="radio"
|
|
1782
1796
|
aria-checked="${e=>e.checked}"
|
|
@@ -1790,21 +1804,21 @@
|
|
|
1790
1804
|
<slot></slot>
|
|
1791
1805
|
</span>
|
|
1792
1806
|
</template>
|
|
1793
|
-
`;class
|
|
1794
|
-
${(0,
|
|
1795
|
-
`,
|
|
1796
|
-
${(0,
|
|
1797
|
-
`,
|
|
1798
|
-
${(0,
|
|
1807
|
+
`;class gs extends s.Radio{}const bs=void 0,ys={},ws=gs.compose(Object.assign({baseName:"segmented-item",template:vs,styles:fs,shadowOptions:bs},ys)),xs=(e,t)=>r.css`
|
|
1808
|
+
${(0,s.selectStyles)(e,t)}
|
|
1809
|
+
`,Fs=(e,t)=>(0,n.selectTemplate)(e,t);class $s extends s.Select{}const Ss=void 0,Ds={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 '},Cs=$s.compose(Object.assign({baseName:"select",template:Fs,styles:xs,shadowOptions:Ss},Ds)),Os=(e,t)=>r.css`
|
|
1810
|
+
${(0,s.skeletonStyles)(e,t)}
|
|
1811
|
+
`,_s=(e,t)=>(0,n.skeletonTemplate)(e,t);class ks extends s.Skeleton{}const Ts=void 0,Ls={},Rs=ks.compose(Object.assign({baseName:"skeleton",template:_s,styles:Os,shadowOptions:Ts},Ls)),As=(e,t)=>r.css`
|
|
1812
|
+
${(0,s.sliderStyles)(e,t)}
|
|
1799
1813
|
.track-progress {
|
|
1800
1814
|
background-color: var(--accent-fill-rest);
|
|
1801
1815
|
border-radius: calc(var(--control-corner-radius) * 1px);
|
|
1802
1816
|
}
|
|
1803
|
-
`;var
|
|
1817
|
+
`;var Ns=o(75511),Es=o(62515);const Ms=(e,t)=>r.html`
|
|
1804
1818
|
<template
|
|
1805
1819
|
role="slider"
|
|
1806
1820
|
class="${e=>e.readOnly?"readonly":""}
|
|
1807
|
-
${e=>e.orientation||
|
|
1821
|
+
${e=>e.orientation||Ns.i.horizontal}"
|
|
1808
1822
|
tabindex="${e=>e.disabled?null:0}"
|
|
1809
1823
|
aria-valuetext="${e=>e.valueTextFormatter(e.value)}"
|
|
1810
1824
|
aria-valuenow="${e=>e.value}"
|
|
@@ -1816,15 +1830,15 @@
|
|
|
1816
1830
|
class="${e=>e.orientation}"
|
|
1817
1831
|
>
|
|
1818
1832
|
<div part="positioning-region" class="positioning-region">
|
|
1819
|
-
<div ${(0,
|
|
1833
|
+
<div ${(0,r.ref)("track")} part="track-container" class="track">
|
|
1820
1834
|
<div
|
|
1821
1835
|
class="track-progress"
|
|
1822
|
-
style="${e=>{const t=1-(0
|
|
1836
|
+
style="${e=>{const t=1-(0,Es.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;`}}"
|
|
1823
1837
|
></div>
|
|
1824
1838
|
</div>
|
|
1825
1839
|
<slot></slot>
|
|
1826
1840
|
<div
|
|
1827
|
-
${(0,
|
|
1841
|
+
${(0,r.ref)("thumb")}
|
|
1828
1842
|
part="thumb-container"
|
|
1829
1843
|
class="thumb-container"
|
|
1830
1844
|
style="${e=>e.position}"
|
|
@@ -1833,7 +1847,7 @@
|
|
|
1833
1847
|
</div>
|
|
1834
1848
|
</div>
|
|
1835
1849
|
</template>
|
|
1836
|
-
`;class
|
|
1850
|
+
`;class Is extends s.Slider{}const Ps=void 0,Hs={thumb:'\n <div class="thumb-cursor"></div>\n '},js=Is.compose(Object.assign({baseName:"slider",template:Ms,styles:As,shadowOptions:Ps},Hs)),Bs=r.css`
|
|
1837
1851
|
@keyframes append-animate {
|
|
1838
1852
|
from {
|
|
1839
1853
|
transform: translateX(100%);
|
|
@@ -1915,13 +1929,13 @@
|
|
|
1915
1929
|
flex: 1;
|
|
1916
1930
|
overflow: hidden;
|
|
1917
1931
|
}
|
|
1918
|
-
`,
|
|
1919
|
-
<div class="snackbar ${e=>e.deleteAnimation}" ${(0,
|
|
1932
|
+
`,Gs=r.html`
|
|
1933
|
+
<div class="snackbar ${e=>e.deleteAnimation}" ${(0,r.ref)("snackbar")}>
|
|
1920
1934
|
<div part="content" class="content">
|
|
1921
1935
|
<div>${e=>{var t;return(null===(t=e.error)||void 0===t?void 0:t.errorDetails)||"Place holder for error message"}}</div>
|
|
1922
1936
|
</div>
|
|
1923
1937
|
<div part="action" class="action">
|
|
1924
|
-
${(0,
|
|
1938
|
+
${(0,r.repeat)((e=>{var t,o,i;return null===(i=null===(o=null===(t=e.error)||void 0===t?void 0:t.config)||void 0===o?void 0:o.snackbar)||void 0===i?void 0:i.confirmingActions}),r.html`
|
|
1925
1939
|
<foundation-button
|
|
1926
1940
|
slot="action"
|
|
1927
1941
|
appearance="lightweight"
|
|
@@ -1932,8 +1946,8 @@
|
|
|
1932
1946
|
`)}
|
|
1933
1947
|
</div>
|
|
1934
1948
|
</div>
|
|
1935
|
-
`,
|
|
1936
|
-
${(0,
|
|
1949
|
+
`,zs={mode:"open",delegatesFocus:!0};class Vs extends n.FoundationElement{constructor(){super(...arguments),this.deleteAnimation="",this.closeTimeout=1e4,this.autoClose=!0,this.type=""}connectedCallback(){super.connectedCallback(),this.autoClose&&setTimeout((()=>{this.deleteAnimation="snackbar-delete",this.snackbar.onanimationend=()=>{this.dismiss()}}),this.closeTimeout)}errorChanged(e,t){var o,i,a;this.type=null!==(a=null===(i=null===(o=null==t?void 0:t.config)||void 0===o?void 0:o.snackbar)||void 0===i?void 0:i.type)&&void 0!==a?a:""}dismiss(){this.remove()}}(0,w.__decorate)([r.observable],Vs.prototype,"error",void 0),(0,w.__decorate)([r.observable],Vs.prototype,"deleteAnimation",void 0),(0,w.__decorate)([(0,r.attr)({attribute:"close-timeout"})],Vs.prototype,"closeTimeout",void 0),(0,w.__decorate)([(0,r.attr)({attribute:"auto-close"})],Vs.prototype,"autoClose",void 0),(0,w.__decorate)([(0,r.attr)({attribute:"type"})],Vs.prototype,"type",void 0);const Us=Vs.compose({baseName:"snackbar",styles:Bs,template:Gs,shadowOptions:zs}),Ys=(e,t)=>r.css`
|
|
1950
|
+
${(0,s.switchStyles)(e,t)}
|
|
1937
1951
|
.checked-indicator {
|
|
1938
1952
|
transform: scale(1.3);
|
|
1939
1953
|
}
|
|
@@ -1945,24 +1959,24 @@
|
|
|
1945
1959
|
.checked-indicator {
|
|
1946
1960
|
border-radius: calc(var(--control-corner-radius) * 2px);
|
|
1947
1961
|
}
|
|
1948
|
-
`,
|
|
1949
|
-
${(0,
|
|
1950
|
-
`,
|
|
1951
|
-
${(0,
|
|
1952
|
-
`,
|
|
1953
|
-
${(0,
|
|
1954
|
-
`,
|
|
1955
|
-
${(0,
|
|
1962
|
+
`,Ws=(e,t)=>(0,n.switchTemplate)(e,t);class qs extends s.Switch{}const Xs=void 0,Zs={switch:'<div class="checked-indicator" part="checked-indicator"></div>'},Ks=qs.compose(Object.assign({baseName:"switch",template:Ws,styles:Ys,shadowOptions:Xs},Zs)),Js=(e,t)=>r.css`
|
|
1963
|
+
${(0,s.tabStyles)(e,t)}
|
|
1964
|
+
`,Qs=(e,t)=>(0,n.tabTemplate)(e,t);class er extends s.Tab{}const tr=void 0,or={},ir=er.compose(Object.assign({baseName:"tab",template:Qs,styles:Js,shadowOptions:tr},or)),ar=(e,t)=>r.css`
|
|
1965
|
+
${(0,s.tabPanelStyles)(e,t)}
|
|
1966
|
+
`,nr=(e,t)=>(0,n.tabPanelTemplate)(e,t);class sr extends s.TabPanel{}const rr=void 0,lr={},dr=sr.compose(Object.assign({baseName:"tab-panel",template:nr,styles:ar,shadowOptions:rr},lr)),cr=(e,t)=>r.css`
|
|
1967
|
+
${(0,s.tabsStyles)(e,t)}
|
|
1968
|
+
`,ur=(e,t)=>(0,n.tabsTemplate)(e,t);class pr extends s.Tabs{}const hr=void 0,mr={},fr=pr.compose(Object.assign({baseName:"tabs",template:ur,styles:cr,shadowOptions:hr},mr)),vr=(e,t)=>r.css`
|
|
1969
|
+
${(0,s.textAreaStyles)(e,t)}
|
|
1956
1970
|
:host .control {
|
|
1957
1971
|
padding: calc(var(--design-unit) * 3px);
|
|
1958
1972
|
}
|
|
1959
|
-
`,
|
|
1960
|
-
${(0,
|
|
1973
|
+
`,gr=(e,t)=>(0,n.textAreaTemplate)(e,t);class br extends s.TextArea{}const yr=void 0,wr={},xr=br.compose(Object.assign({baseName:"text-area",template:gr,styles:vr,shadowOptions:yr},wr)),Fr=(e,t)=>r.css`
|
|
1974
|
+
${(0,s.textFieldStyles)(e,t)}
|
|
1961
1975
|
|
|
1962
1976
|
input {
|
|
1963
|
-
color-scheme: ${
|
|
1977
|
+
color-scheme: ${kt.activeColorScheme};
|
|
1964
1978
|
}
|
|
1965
|
-
|
|
1979
|
+
`,$r=(e,t)=>r.html`
|
|
1966
1980
|
<template
|
|
1967
1981
|
class="
|
|
1968
1982
|
${e=>e.readOnly?"readonly":""}
|
|
@@ -1973,10 +1987,10 @@
|
|
|
1973
1987
|
for="${e=>e.id?e.id:"control"}"
|
|
1974
1988
|
class="${e=>e.defaultSlottedNodes&&e.defaultSlottedNodes.length?"label":"label label__hidden"}"
|
|
1975
1989
|
>
|
|
1976
|
-
<slot ${(0,
|
|
1990
|
+
<slot ${(0,r.slotted)({property:"defaultSlottedNodes",filter:n.whitespaceFilter})}></slot>
|
|
1977
1991
|
</label>
|
|
1978
1992
|
<div class="root" part="root">
|
|
1979
|
-
${(0,
|
|
1993
|
+
${(0,n.startSlotTemplate)(e,t)}
|
|
1980
1994
|
<input
|
|
1981
1995
|
name="${e=>e.name}"
|
|
1982
1996
|
autocomplete="${e=>e.autocomplete}"
|
|
@@ -2019,12 +2033,12 @@
|
|
|
2019
2033
|
aria-owns="${e=>e.ariaOwns}"
|
|
2020
2034
|
aria-relevant="${e=>e.ariaRelevant}"
|
|
2021
2035
|
aria-roledescription="${e=>e.ariaRoledescription}"
|
|
2022
|
-
${(0,
|
|
2036
|
+
${(0,r.ref)("control")}
|
|
2023
2037
|
/>
|
|
2024
|
-
${(0,
|
|
2038
|
+
${(0,n.endSlotTemplate)(e,t)}
|
|
2025
2039
|
</div>
|
|
2026
2040
|
</template>
|
|
2027
|
-
`;class
|
|
2041
|
+
`;class Sr extends s.TextField{constructor(){super(...arguments),this.autocapitalize="off"}autocompleteChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.autocomplete=this.autocomplete)}autocapitalizeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.autocapitalize=this.autocapitalize)}}(0,w.__decorate)([r.attr],Sr.prototype,"autocomplete",void 0),(0,w.__decorate)([r.attr],Sr.prototype,"autocapitalize",void 0),(0,w.__decorate)([r.attr],Sr.prototype,"step",void 0);const Dr={mode:"open",delegatesFocus:!0},Cr={},Or=Sr.compose(Object.assign({baseName:"text-field",template:$r,styles:Fr,shadowOptions:Dr},Cr)),_r=r.css`
|
|
2028
2042
|
@keyframes append-animate {
|
|
2029
2043
|
from {
|
|
2030
2044
|
transform: translateX(100%);
|
|
@@ -2125,12 +2139,12 @@
|
|
|
2125
2139
|
.close-icon svg {
|
|
2126
2140
|
cursor: pointer;
|
|
2127
2141
|
}
|
|
2128
|
-
`,
|
|
2129
|
-
<div class="toast ${e=>e.deleteAnimation}" ${(0,
|
|
2142
|
+
`,kr=r.html`
|
|
2143
|
+
<div class="toast ${e=>e.deleteAnimation}" ${(0,r.ref)("toast")}>
|
|
2130
2144
|
<div class="content-wrapper">
|
|
2131
2145
|
<div part="top" class="top">
|
|
2132
2146
|
<slot name="top"></slot>
|
|
2133
|
-
<div class="close-icon" @click=${e=>e.close()}>${
|
|
2147
|
+
<div class="close-icon" @click=${e=>e.close()}>${eo()}</div>
|
|
2134
2148
|
</div>
|
|
2135
2149
|
<div part="content" class="content">
|
|
2136
2150
|
<slot name="content"></slot>
|
|
@@ -2143,12 +2157,12 @@
|
|
|
2143
2157
|
</div>
|
|
2144
2158
|
</div>
|
|
2145
2159
|
</div>
|
|
2146
|
-
`,
|
|
2147
|
-
${(0,
|
|
2148
|
-
|
|
2149
|
-
${(0,
|
|
2150
|
-
`,
|
|
2151
|
-
${(0,
|
|
2160
|
+
`,Tr={mode:"open",delegatesFocus:!0},Lr={};class Rr extends n.FoundationElement{constructor(){super(...arguments),this.deleteAnimation="",this.closeTimeout=1e4,this.autoClose=!1}connectedCallback(){super.connectedCallback(),this.autoClose&&setTimeout((()=>{this.deleteAnimation="toast-delete",this.toast.onanimationend=()=>{this.remove()}}),this.closeTimeout)}close(){this.remove()}}(0,w.__decorate)([r.observable],Rr.prototype,"deleteAnimation",void 0),(0,w.__decorate)([(0,r.attr)({attribute:"close-timeout"})],Rr.prototype,"closeTimeout",void 0),(0,w.__decorate)([(0,r.attr)({attribute:"auto-close"})],Rr.prototype,"autoClose",void 0);const Ar=Rr.compose(Object.assign({baseName:"toast",styles:_r,template:kr,shadowOptions:Tr},Lr)),Nr=(e,t)=>r.css`
|
|
2161
|
+
${(0,s.toolbarStyles)(e,t)}
|
|
2162
|
+
`,Er=(e,t)=>(0,n.toolbarTemplate)(e,t);class Mr extends s.Toolbar{}const Ir=void 0,Pr={},Hr=Mr.compose(Object.assign({baseName:"toolbar",template:Er,styles:Nr,shadowOptions:Ir},Pr)),jr=(e,t)=>r.css`
|
|
2163
|
+
${(0,s.tooltipStyles)(e,t)}
|
|
2164
|
+
`,Br=(e,t)=>(0,n.tooltipTemplate)(e,t);class Gr extends s.Tooltip{}const zr=void 0,Vr={},Ur=Gr.compose(Object.assign({baseName:"tooltip",template:Br,styles:jr,shadowOptions:zr},Vr)),Yr=(e,t)=>r.css`
|
|
2165
|
+
${(0,s.treeItemStyles)(e,t)}
|
|
2152
2166
|
:host {
|
|
2153
2167
|
--focus-stroke-width: 0;
|
|
2154
2168
|
--tree-item-nested-width: 1em;
|
|
@@ -2164,9 +2178,9 @@
|
|
|
2164
2178
|
.positioning-region {
|
|
2165
2179
|
height: calc(((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) * 1px);
|
|
2166
2180
|
}
|
|
2167
|
-
`,
|
|
2168
|
-
${(0,
|
|
2169
|
-
`,
|
|
2181
|
+
`,Wr=(e,t)=>(0,n.treeItemTemplate)(e,t);class qr extends s.TreeItem{}const Xr=void 0,Zr={expandCollapseGlyph:'\n <svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" class="expand-collapse-glyph">\n <path d="M5.00001 12.3263C5.00124 12.5147 5.05566 12.699 5.15699 12.8578C5.25831 13.0167 5.40243 13.1437 5.57273 13.2242C5.74304 13.3047 5.9326 13.3354 6.11959 13.3128C6.30659 13.2902 6.4834 13.2152 6.62967 13.0965L10.8988 8.83532C11.0739 8.69473 11.2153 8.51658 11.3124 8.31402C11.4096 8.11146 11.46 7.88966 11.46 7.66499C11.46 7.44033 11.4096 7.21853 11.3124 7.01597C11.2153 6.81341 11.0739 6.63526 10.8988 6.49467L6.62967 2.22347C6.48274 2.10422 6.30501 2.02912 6.11712 2.00691C5.92923 1.9847 5.73889 2.01628 5.56823 2.09799C5.39757 2.17969 5.25358 2.30817 5.153 2.46849C5.05241 2.62882 4.99936 2.8144 5.00001 3.00369V12.3263Z"></path>\n </svg>'},Kr=qr.compose(Object.assign({baseName:"tree-item",template:Wr,styles:Yr,shadowOptions:Xr},Zr)),Jr=(e,t)=>r.css`
|
|
2182
|
+
${(0,s.treeViewStyles)(e,t)}
|
|
2183
|
+
`,Qr=(e,t)=>(0,n.treeViewTemplate)(e,t);class el extends n.TreeView{}const tl=void 0,ol={},il=el.compose(Object.assign({baseName:"tree-view",template:Qr,styles:Jr,shadowOptions:tl},ol)),al=(e,t)=>r.css`
|
|
2170
2184
|
.container {
|
|
2171
2185
|
position: relative;
|
|
2172
2186
|
width: 100%;
|
|
@@ -2186,7 +2200,7 @@
|
|
|
2186
2200
|
overflow: hidden;
|
|
2187
2201
|
text-overflow: ellipsis;
|
|
2188
2202
|
}
|
|
2189
|
-
`,
|
|
2203
|
+
`,nl=r.html`
|
|
2190
2204
|
<div class="container" value=${e=>e.value}>
|
|
2191
2205
|
<fast-text-field
|
|
2192
2206
|
class="url-input"
|
|
@@ -2198,13 +2212,13 @@
|
|
|
2198
2212
|
:readOnly=${e=>e.readOnly}
|
|
2199
2213
|
}
|
|
2200
2214
|
></fast-text-field>
|
|
2201
|
-
${(0,
|
|
2215
|
+
${(0,r.when)((e=>e.readOnly||!e.focused),r.html`
|
|
2202
2216
|
<a class="url-input-link" href=${e=>e.value} target="_blank">${e=>e.value}</a>
|
|
2203
2217
|
`)}
|
|
2204
2218
|
</div>
|
|
2205
|
-
`,
|
|
2206
|
-
<template ${(0,
|
|
2219
|
+
`,sl=void 0,rl={};class ll extends s.TextField{constructor(){super(...arguments),this.value=""}saveUrl(e){this.value=e.startsWith("http")?e:"https://"+e,this.focused=!1}focus(){this.focused=!0}}(0,w.__decorate)([r.observable],ll.prototype,"value",void 0),(0,w.__decorate)([r.observable],ll.prototype,"focused",void 0);const dl=ll.compose(Object.assign({baseName:"url-input",template:nl,styles:al,shadowOptions:sl},rl)),cl={foundationAccordion:h,foundationAccordionItem:y,foundationActionsMenu:_,foundationAnchor:N,foundationBadge:j,foundationBanner:U,foundationBreadcrumbItem:ie,foundationBreadcrumb:K,foundationButton:de,foundationCard:fe,foundationCheckbox:xe,foundationCombobox:Oe,foundationConnectionIndicator:Ae,foundationDataGrid:He,foundationDataGridCell:Ve,foundationDataGridRow:Xe,foundationDatePicker:lt,foundationDesignSystemProvider:Kt,foundationDialog:so,foundationDisclosure:ho,foundationDivider:yo,foundationDropdownMenu:Oo,foundationErrorBoundary:qo,foundationErrorBanner:Ro,foundationErrorDialog:ei,foundationFileUpload:Si,foundationFilter:Ii,foundationFilterBar:Wi,foundationFlexLayout:ta,foundationFlipper:ra,foundationFlyout:ma,foundationGridLayout:$a,foundationGridLayoutItem:_a,foundationIcon:ja,foundationListbox:Ya,foundationListboxOption:Ja,foundationMenu:nn,foundationMenuItem:un,foundationModal:gn,foundationMultiselect:Cn,foundationNumberField:Rn,foundationProgress:Vn,foundationPopper:Pn,foundationProgressRing:Zn,foundationRadio:os,foundationRadioGroup:ls,foundationSegmentedControl:ms,foundationSegmentedItem:ws,foundationSelect:Cs,foundationSkeleton:Rs,foundationSlider:js,foundationSnackbar:Us,foundationSwitch:Ks,foundationTab:ir,foundationTabPanel:dr,foundationTabs:fr,foundationTextArea:xr,foundationTextField:Or,foundationToast:Ar,foundationToolbar:Hr,foundationTooltip:Ur,foundationTreeItem:Kr,foundationTreeView:il,foundationUrlInput:dl,register(e,...t){if(e)for(const o in this)"register"!==o&&this[o]().register(e,...t)}};function ul(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 pl=(e,t="foundation")=>{e&&Tt(i,a,e);return ul(n.DesignSystem.getOrCreate(e).withPrefix(t))};class hl 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(";")}}var ml=o(82940),fl=o(32449),vl=o(9162),gl=o(5127),bl=o(26714);class yl extends n.FoundationElement{constructor(){super(...arguments),this.withGridInit=!0,this.isSnapshot=!1,this.maxRows=ml.WJ.MAX_ROWS_250,this.maxView=ml.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 bl.X(new Map)}criteriaChanged(e,t){const o=e!==(0,fl.p)(t,";");this.datasource.initialized&&o&&(this.dataSub&&(this.dataSub.unsubscribe(),this.dataSub=void 0),this.fetchGenesisData(null))}set datasourceConfig(e){e&&Object.keys(e).forEach((t=>{void 0!==e[t]&&(this[t]=e[t])}))}disconnectedCallback(){super.disconnectedCallback(),this.clearData()}reset(){this.requiresFullDataRefresh=!0,this.fetchGenesisData()}fetchGenesisData(e=!0){return(0,w.__awaiter)(this,void 0,void 0,(function*(){if(this.data)return void this.syncComponentData(this.data);const t=e||!this.datasource.initialized;t||(this.connect.dataLogoff(this.sourceRef),this.clearData());if(yield this.datasource.init(this.datasourceOptions(),t))if(this.isSnapshot){const e=yield this.datasource.snapshotFiltered();this.syncComponentData(e)}else _o.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===vl.Cs.LOGOFF_ACK)this.dataSubWasLoggedOff=!0;else if(this.dataSubWasLoggedOff=!1,e.ROW){const t=(0,gl.$)(e);this.handleStreamUpdate(t)}else this.handleStreamUpdate(e)}));else _o.debug(`Genesis Datasource init failed for ${this.resourceName}`)}))}initDatasource(){return(0,w.__awaiter)(this,void 0,void 0,(function*(){yield this.datasource.init(this.datasourceOptions(),!0)}))}datasourceOptions(){return{criteria:this.buildCriteria(),fields:this.fields,isSnapshot:this.isSnapshot,orderBy:this.orderBy,resourceName:this.resourceName,request:this.request,reverse:this.reverse,maxRows:this.maxRows,maxView:this.maxView}}handleStreamUpdate(e){if(!e)return;e.hasOwnProperty("REPLY")?this.applyRequestServerData(e):this.applyDataserverData(e)}applyRequestServerData(e){var t,o;if(!Array.isArray(e.REPLY)||!(null===(t=e.MESSAGE_TYPE)||void 0===t?void 0:t.startsWith("REP_")))return void _o.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,fl.p)(t.join(" && "),";")}setFilter(e,t){this.criteriaFromFilters.set(e,t),this.update.next(this.criteriaFromFilters)}removeFilter(e){this.criteriaFromFilters.delete(e),this.update.next(this.criteriaFromFilters)}}(0,w.__decorate)([_e.lj],yl.prototype,"connect",void 0),(0,w.__decorate)([No.Yh],yl.prototype,"datasource",void 0),(0,w.__decorate)([(0,r.attr)({mode:"boolean"})],yl.prototype,"withGridInit",void 0),(0,w.__decorate)([r.attr],yl.prototype,"criteria",void 0),(0,w.__decorate)([r.attr],yl.prototype,"fields",void 0),(0,w.__decorate)([(0,r.attr)({mode:"boolean"})],yl.prototype,"isSnapshot",void 0),(0,w.__decorate)([r.attr],yl.prototype,"maxRows",void 0),(0,w.__decorate)([r.attr],yl.prototype,"maxView",void 0),(0,w.__decorate)([r.attr],yl.prototype,"orderBy",void 0),(0,w.__decorate)([r.attr],yl.prototype,"resourceName",void 0),(0,w.__decorate)([(0,r.attr)({mode:"boolean"})],yl.prototype,"reverse",void 0),(0,w.__decorate)([r.attr],yl.prototype,"rowId",void 0),(0,w.__decorate)([(0,r.attr)({mode:"boolean",attribute:"with-timestamp-formatting"})],yl.prototype,"withTimestampFormatting",void 0);let wl=class extends yl{constructor(){super(...arguments),this.isSnapshot=!0}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});return(0,w.__awaiter)(this,void 0,void 0,(function*(){e.connectedCallback.call(this),this.dataGrid=this.parentElement,this.dataGrid&&this.resourceName&&this.connect.isConnected&&this.fetchGenesisData()}))}getColumnDefs(e){return null==e?void 0:e.flatMap((e=>this.fields&&!this.fields.includes(e.name)?[]:{columnDataKey:e.name}))}clearData(){_o.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){_o.debug("handleStreamInserts - Method not implemented.")}handleStreamDeletes(e){_o.debug("handleStreamDeletes - Method not implemented.")}handleStreamUpdates(e){_o.debug("handleStreamUpdates - Method not implemented.")}};wl=(0,w.__decorate)([(0,r.customElement)({name:"data-grid-datasource"})],wl);const xl=r.html`
|
|
2220
|
+
<template ${(0,r.ref)("notificationListener")}>
|
|
2207
2221
|
<slot></slot>
|
|
2208
2222
|
</template>
|
|
2209
|
-
`;var cl;!function(e){e.NOTIFICATION_EVENT="notification-event"}(cl||(cl={}));const ul=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"}`},pl=(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},hl=()=>{const e=document.createElement("div");return e.setAttribute("id","banner-anchor"),e.style.position="relative",document.body.insertBefore(e,document.body.firstChild),e},ml=(0,gt.createLogger)("foundation-notifications"),vl={alert:e=>{alert(ul(e))},toast:(e,t)=>{var o,i,a,n,s,r,l,d,c,u,p,h,m,v,f,g,b,y;const w=t.split("-")[0],x=pl("notify-container",t);if(x)switch(x.style.position="fixed",null===(i=null===(o=null==e?void 0:e.config)||void 0===o?void 0:o.toast)||void 0===i?void 0:i.position){case"top-left":x.style.top="0",x.style.left="0";break;case"bottom-left":x.style.bottom="0",x.style.left="0";break;case"bottom-right":x.style.bottom="0",x.style.right="0";break;default:x.style.top="0",x.style.right="0"}const F=document.createElement(`${w}-toast`),$=document.createElement("div");$.setAttribute("slot","top"),$.textContent=e.title;const S=document.createElement("div");S.setAttribute("slot","content"),S.textContent=(null==e?void 0:e.body)||"";const D=document.createElement("div");let C;D.setAttribute("slot","date"),D.textContent=(null===(a=null==e?void 0:e.createdAt)||void 0===a?void 0:a.toLocaleTimeString())||"",(null===(s=null===(n=null==e?void 0:e.config)||void 0===n?void 0:n.toast)||void 0===s?void 0:s.buttons)&&(null===(d=null===(l=null===(r=null==e?void 0:e.config)||void 0===r?void 0:r.toast)||void 0===l?void 0:l.buttons)||void 0===d?void 0:d.length)&&(C=document.createElement("div"),C.setAttribute("slot","bottom"),e.config.toast.buttons.forEach((t=>{const o=document.createElement(`${w}-button`);o.textContent=t.placeholder||"example placeholder",o.addEventListener("click",(()=>{const{details:i}=e.config.toast;if(t.action)return t.action({details:i,element:o})})),t.appearance&&o.setAttribute("appearance",t.appearance),C.appendChild(o)}))),F.setAttribute("notify",(null===(u=null===(c=null==e?void 0:e.config)||void 0===c?void 0:c.toast)||void 0===u?void 0:u.type)||""),(null===(h=null===(p=null==e?void 0:e.config)||void 0===p?void 0:p.toast)||void 0===h?void 0:h.autoClose)&&F.setAttribute("auto-close",`${null===(v=null===(m=null==e?void 0:e.config)||void 0===m?void 0:m.toast)||void 0===v?void 0:v.autoClose}`),(null===(g=null===(f=null==e?void 0:e.config)||void 0===f?void 0:f.toast)||void 0===g?void 0:g.closeTimeout)&&F.setAttribute("close-timeout",`${null===(y=null===(b=null==e?void 0:e.config)||void 0===b?void 0:b.toast)||void 0===y?void 0:y.closeTimeout}`),F.appendChild($),F.appendChild(S),F.appendChild(D),C&&F.appendChild(C),x.appendChild(F)},dialog:(e,t)=>{const o=t.split("-")[0],i=document.createElement(`${o}-notification-dialog`);pl("dialog-container",t).appendChild(i),i.notification=e,i.show()},snackbar:(e,t)=>{const o=t.split("-")[0],i=document.createElement(`${o}-snackbar`);pl("snack-container",t).appendChild(i),i.notification=e},banner:(e,t,o)=>{var i;const a=t.split("-")[0],n=document.createElement(`${a}-banner`),s=(e=>{for(var t,o;e&&!(e instanceof ShadowRoot);){const i=null===(t=null==e?void 0:e.getRootNode())||void 0===t?void 0:t.getElementById("banner-anchor");if(i)return i.style.position="relative",i;e=null===(o=null==e?void 0:e.getRootNode())||void 0===o?void 0:o.host}return hl()})(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}},fl=(e,t,o)=>{var i,a;ml.log({message:ul(e),level:(i=e,(null==i?void 0:i.logLevel)||(null===(a=null==i?void 0:i.config)||void 0===a?void 0:a.logLevel)||gt.LogLevel.Debug)});Object.keys((null==e?void 0:e.config)||{}).forEach((i=>{vl[i]&&vl[i](e,t,o)}))};class gl{withTitle(e){return this.title=e,this}withBody(e){return this.body=e,this}withCreatedAt(e){return this.createdAt=e,this}withLogLevel(e){return this.logLevel=e,this}withAlert(e){return this.alert=e,this}withToast(e){return this.toast=e,this}withBanner(e){return this.banner=e,this}withSnackbar(e){return this.snackbar=e,this}withDialog(e){return this.dialog=e,this}build(){if(!this.title)throw new Error("Title is required");if(!this.body)throw new Error("Missing required param 'body'");let e={title:this.title,body:this.body},t={};return this.createdAt&&(e=Object.assign({createdAt:this.createdAt},e)),this.logLevel in gt.LogLevel&&(e=Object.assign({logLevel:this.logLevel},e)),this.alert&&(t=Object.assign({alert:this.alert},t),e=Object.assign({config:t},e)),this.toast&&(t=Object.assign({toast:this.toast},t),e=Object.assign({config:t},e)),this.banner&&(t=Object.assign({banner:this.banner},t),e=Object.assign({config:t},e)),this.snackbar&&(t=Object.assign({snackbar:this.snackbar},t),e=Object.assign({config:t},e)),this.dialog&&(t=Object.assign({dialog:this.dialog},t),e=Object.assign({config:t},e)),e}}class bl{withPosition(e){return this.position=e,this}withAutoClose(e){return this.autoClose=e,this}withCloseTimeout(e){return this.closeTimeout=e,this}withType(e){return this.type=e,this}withDetails(e){return this.details=e,this}withButtons(e){return this.buttons=e,this}build(){let e={};return this.position&&(e=Object.assign({position:this.position},e)),this.autoClose&&(e=Object.assign({autoClose:this.autoClose},e)),this.closeTimeout&&(e=Object.assign({closeTimeout:this.closeTimeout},e)),this.type&&(e=Object.assign({type:this.type},e)),this.details&&(e=Object.assign({details:this.details},e)),this.buttons&&(e=Object.assign({buttons:this.buttons},e)),e}}const yl={mode:"open",delegatesFocus:!0};class wl extends r.FoundationElement{constructor(){super(...arguments),this.logger=(0,gt.createLogger)("notification-listener"),this.closeTimeout=0,this.toastButtons=[]}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});var t;return(0,n.__awaiter)(this,void 0,void 0,(function*(){e.connectedCallback.call(this),this.addEventListener(cl.NOTIFICATION_EVENT,(e=>{e.stopImmediatePropagation(),fl(e.detail,this.tagName,this.notificationListener)})),this.resourceName&&(yield this.datasource.init({resourceName:this.resourceName},!0),null===(t=this.datasource.stream)||void 0===t||t.subscribe((e=>{var t,o;if(!e.ROW)return;const i=null==e?void 0:e.ROW[0];if(e.SEQUENCE_ID>1&&"INSERT"===i.DETAILS.OPERATION){const e=i.HEADER,a=i.MESSAGE,n=null===(t=i.NOTIFY_SEVERITY)||void 0===t?void 0:t.toLowerCase(),s=i.CREATED_AT?new Date(i.CREATED_AT):void 0,r=i.EXPIRY?i.EXPIRY-i.CREATED_AT:0;let l=[];this.toastButtons&&this.toastButtons.length>0&&(l=this.toastButtons.filter((({condition:e})=>!e||e({details:i})))),fl((new gl).withTitle(e).withBody(a).withCreatedAt(s).withToast((new bl).withDetails(i).withType(n).withButtons(l).withAutoClose(null!==(o=!!r)&&void 0!==o?o:!!this.closeTimeout).withCloseTimeout(null!=r?r:this.closeTimeout).build()).build(),this.tagName,this.notificationListener)}})))}))}}(0,n.__decorate)([s.observable],wl.prototype,"notificationListener",void 0),(0,n.__decorate)([(0,s.attr)({attribute:"resource-name"})],wl.prototype,"resourceName",void 0),(0,n.__decorate)([(0,s.attr)({attribute:"close-timeout",converter:s.nullableNumberConverter})],wl.prototype,"closeTimeout",void 0),(0,n.__decorate)([s.observable],wl.prototype,"toastButtons",void 0),(0,n.__decorate)([Fo.Yh],wl.prototype,"datasource",void 0);const xl=wl.compose({baseName:"notification-listener",template:dl,shadowOptions:yl});var Fl;let $l=Fl=class extends rl{constructor(){super(...arguments),this.optionElement="fast-option",this.isSnapshot=!0}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});var t;return(0,n.__awaiter)(this,void 0,void 0,(function*(){e.connectedCallback.call(this),this.fields=this.labelField?null===(t=this.valueField)||void 0===t?void 0:t.concat(" ",this.labelField):this.valueField,this.select=this.parentElement,this.select.addEventListener("change",(e=>{const t=this.options.find((t=>t.label===e.target.value));this.select.$emit("value-change",t)})),this.select&&this.valueField&&(this.resourceName&&this.connect.isConnected||this.data)&&this.fetchGenesisData(),this.valueField||fo.warn('Specify field for values in options (e.g value-field="VALUE") and optionally field for label (e.g label-field="NAME")')}))}clearData(){Array.from(this.select.children).forEach((e=>{e instanceof Fl||this.select.removeChild(e)})),this.select.value="",this.select.initialValue=""}syncComponentData(e){var t;const o=null!=e?e:Array.from(this.rowsSyncedWithStream.values());this.options=o.map((e=>({value:e[this.valueField],label:this.labelFormatter?this.labelFormatter(e[this.labelField]):e[this.labelField]})));this.options.map((({value:e,label:t})=>{const o=document.createElement(this.optionElement);return o.textContent=t||e,o.value=e,o})).forEach((e=>{this.select.appendChild(e)}));const i=this.initialSelectedValue?null===(t=this.options.find((e=>e.value===this.initialSelectedValue)))||void 0===t?void 0:t.label:"";s.DOM.queueUpdate((()=>{this.select.value=i}))}handleStreamInserts(e){fo.debug("handleStreamInserts - Method not implemented.")}handleStreamDeletes(e){fo.debug("handleStreamDeletes - Method not implemented.")}handleStreamUpdates(e){fo.debug("handleStreamUpdates - Method not implemented.")}};(0,n.__decorate)([(0,s.attr)({attribute:"label-field"})],$l.prototype,"labelField",void 0),(0,n.__decorate)([(0,s.attr)({attribute:"value-field"})],$l.prototype,"valueField",void 0),(0,n.__decorate)([s.observable],$l.prototype,"labelFormatter",void 0),$l=Fl=(0,n.__decorate)([(0,s.customElement)({name:"options-datasource"})],$l);let Sl=class extends rl{constructor(){super(...arguments),this.isSnapshot=!0}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});var t;return(0,n.__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||fo.warn('Specify field for values in options (e.g value-field="VALUE") and optionally field for label which is supported only in select and combobox (e.g label-field="NAME")')}))}clearData(){this.select.options=[]}syncComponentData(e){const t=(null!=e?e:Array.from(this.rowsSyncedWithStream.values())).map((e=>({value:e[this.valueField],label:e[this.labelField]})));this.select.options=t}handleStreamInserts(e){fo.debug("handleStreamInserts - Method not implemented.")}handleStreamDeletes(e){fo.debug("handleStreamDeletes - Method not implemented.")}handleStreamUpdates(e){fo.debug("handleStreamUpdates - Method not implemented.")}};(0,n.__decorate)([(0,s.attr)({attribute:"value-field"})],Sl.prototype,"valueField",void 0),(0,n.__decorate)([(0,s.attr)({attribute:"label-field"})],Sl.prototype,"labelField",void 0),Sl=(0,n.__decorate)([(0,s.customElement)({name:"multiselect-datasource"})],Sl);const Dl=(e,t)=>o=>{const i="function"==typeof t?t:(a=t,e=>Object.assign(Object.assign({},a),e));var a;return s.FASTElement.define(class extends e{},i(o))};function Cl(e){if("string"==typeof e)return e;if("function"==typeof e&&!(e=s.FASTElementDefinition.forType(e)))throw new Error("Missing FASTElement definition.");return e.name}var Ol=o(1279);let _l=class extends(Ol.F0.from(s.FASTElement)){connectedCallback(){super.connectedCallback(),s.DOM.queueUpdate((()=>(0,n.__awaiter)(this,void 0,void 0,(function*(){this.$router.config=this.config}))))}};_l=(0,n.__decorate)([(0,s.customElement)({name:"foundation-router"})],_l);const kl=()=>el().register(Jr)},19082:(e,t,o)=>{"use strict";function i(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var i in o)e[i]=o[i]}return e}o.d(t,{Z:()=>a});var a=function e(t,o){function a(e,a,n){if("undefined"!=typeof document){"number"==typeof(n=i({},o,n)).expires&&(n.expires=new Date(Date.now()+864e5*n.expires)),n.expires&&(n.expires=n.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var s="";for(var r in n)n[r]&&(s+="; "+r,!0!==n[r]&&(s+="="+n[r].split(";")[0]));return document.cookie=e+"="+t.write(a,e)+s}}return Object.create({set:a,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var o=document.cookie?document.cookie.split("; "):[],i={},a=0;a<o.length;a++){var n=o[a].split("="),s=n.slice(1).join("=");try{var r=decodeURIComponent(n[0]);if(i[r]=t.read(s,r),e===r)break}catch(e){}}return e?i[e]:i}},remove:function(e,t){a(e,"",i({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,i({},this.attributes,t))},withConverter:function(t){return e(i({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(o)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"})}}]);
|
|
2210
|
-
//# sourceMappingURL=
|
|
2223
|
+
`;var Fl;!function(e){e.NOTIFICATION_EVENT="notification-event"}(Fl||(Fl={}));const $l=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"}`},Sl=(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},Dl=()=>{const e=document.createElement("div");return e.setAttribute("id","banner-anchor"),e.style.position="relative",document.body.insertBefore(e,document.body.firstChild),e},Cl=(0,kt.createLogger)("foundation-notifications"),Ol={alert:e=>{alert($l(e))},toast:(e,t)=>{var o,i,a,n,s,r,l,d,c,u,p,h,m,f,v,g,b,y;const w=t.split("-")[0],x=Sl("notify-container",t);if(x)switch(x.style.position="fixed",null===(i=null===(o=null==e?void 0:e.config)||void 0===o?void 0:o.toast)||void 0===i?void 0:i.position){case"top-left":x.style.top="0",x.style.left="0";break;case"bottom-left":x.style.bottom="0",x.style.left="0";break;case"bottom-right":x.style.bottom="0",x.style.right="0";break;default:x.style.top="0",x.style.right="0"}const F=document.createElement(`${w}-toast`),$=document.createElement("div");$.setAttribute("slot","top"),$.textContent=e.title;const S=document.createElement("div");S.setAttribute("slot","content"),S.textContent=(null==e?void 0:e.body)||"";const D=document.createElement("div");let C;D.setAttribute("slot","date"),D.textContent=(null===(a=null==e?void 0:e.createdAt)||void 0===a?void 0:a.toLocaleTimeString())||"",(null===(s=null===(n=null==e?void 0:e.config)||void 0===n?void 0:n.toast)||void 0===s?void 0:s.buttons)&&(null===(d=null===(l=null===(r=null==e?void 0:e.config)||void 0===r?void 0:r.toast)||void 0===l?void 0:l.buttons)||void 0===d?void 0:d.length)&&(C=document.createElement("div"),C.setAttribute("slot","bottom"),e.config.toast.buttons.forEach((t=>{const o=document.createElement(`${w}-button`);o.textContent=t.placeholder||"example placeholder",o.addEventListener("click",(()=>{const{details:i}=e.config.toast;if(t.action)return t.action({details:i,element:o})})),t.appearance&&o.setAttribute("appearance",t.appearance),C.appendChild(o)}))),F.setAttribute("notify",(null===(u=null===(c=null==e?void 0:e.config)||void 0===c?void 0:c.toast)||void 0===u?void 0:u.type)||""),(null===(h=null===(p=null==e?void 0:e.config)||void 0===p?void 0:p.toast)||void 0===h?void 0:h.autoClose)&&F.setAttribute("auto-close",`${null===(f=null===(m=null==e?void 0:e.config)||void 0===m?void 0:m.toast)||void 0===f?void 0:f.autoClose}`),(null===(g=null===(v=null==e?void 0:e.config)||void 0===v?void 0:v.toast)||void 0===g?void 0:g.closeTimeout)&&F.setAttribute("close-timeout",`${null===(y=null===(b=null==e?void 0:e.config)||void 0===b?void 0:b.toast)||void 0===y?void 0:y.closeTimeout}`),F.appendChild($),F.appendChild(S),F.appendChild(D),C&&F.appendChild(C),x.appendChild(F)},dialog:(e,t)=>{const o=t.split("-")[0],i=document.createElement(`${o}-notification-dialog`);Sl("dialog-container",t).appendChild(i),i.notification=e,i.show()},snackbar:(e,t)=>{const o=t.split("-")[0],i=document.createElement(`${o}-snackbar`);Sl("snack-container",t).appendChild(i),i.notification=e},banner:(e,t,o)=>{var i;const a=t.split("-")[0],n=document.createElement(`${a}-banner`),s=(e=>{for(var t,o;e&&!(e instanceof ShadowRoot);){const i=null===(t=null==e?void 0:e.getRootNode())||void 0===t?void 0:t.getElementById("banner-anchor");if(i)return i.style.position="relative",i;e=null===(o=null==e?void 0:e.getRootNode())||void 0===o?void 0:o.host}return Dl()})(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}},_l=(e,t,o)=>{var i,a;Cl.log({message:$l(e),level:(i=e,(null==i?void 0:i.logLevel)||(null===(a=null==i?void 0:i.config)||void 0===a?void 0:a.logLevel)||kt.LogLevel.Debug)});Object.keys((null==e?void 0:e.config)||{}).forEach((i=>{Ol[i]&&Ol[i](e,t,o)}))};class kl{withTitle(e){return this.title=e,this}withBody(e){return this.body=e,this}withCreatedAt(e){return this.createdAt=e,this}withLogLevel(e){return this.logLevel=e,this}withAlert(e){return this.alert=e,this}withToast(e){return this.toast=e,this}withBanner(e){return this.banner=e,this}withSnackbar(e){return this.snackbar=e,this}withDialog(e){return this.dialog=e,this}build(){if(!this.title)throw new Error("Title is required");if(!this.body)throw new Error("Missing required param 'body'");let e={title:this.title,body:this.body},t={};return this.createdAt&&(e=Object.assign({createdAt:this.createdAt},e)),this.logLevel in kt.LogLevel&&(e=Object.assign({logLevel:this.logLevel},e)),this.alert&&(t=Object.assign({alert:this.alert},t),e=Object.assign({config:t},e)),this.toast&&(t=Object.assign({toast:this.toast},t),e=Object.assign({config:t},e)),this.banner&&(t=Object.assign({banner:this.banner},t),e=Object.assign({config:t},e)),this.snackbar&&(t=Object.assign({snackbar:this.snackbar},t),e=Object.assign({config:t},e)),this.dialog&&(t=Object.assign({dialog:this.dialog},t),e=Object.assign({config:t},e)),e}}class Tl{withPosition(e){return this.position=e,this}withAutoClose(e){return this.autoClose=e,this}withCloseTimeout(e){return this.closeTimeout=e,this}withType(e){return this.type=e,this}withDetails(e){return this.details=e,this}withButtons(e){return this.buttons=e,this}build(){let e={};return this.position&&(e=Object.assign({position:this.position},e)),this.autoClose&&(e=Object.assign({autoClose:this.autoClose},e)),this.closeTimeout&&(e=Object.assign({closeTimeout:this.closeTimeout},e)),this.type&&(e=Object.assign({type:this.type},e)),this.details&&(e=Object.assign({details:this.details},e)),this.buttons&&(e=Object.assign({buttons:this.buttons},e)),e}}const Ll={mode:"open",delegatesFocus:!0};class Rl extends n.FoundationElement{constructor(){super(...arguments),this.logger=(0,kt.createLogger)("notification-listener"),this.closeTimeout=0,this.toastButtons=[]}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});var t;return(0,w.__awaiter)(this,void 0,void 0,(function*(){e.connectedCallback.call(this),this.addEventListener(Fl.NOTIFICATION_EVENT,(e=>{e.stopImmediatePropagation(),_l(e.detail,this.tagName,this.notificationListener)})),this.resourceName&&(yield this.datasource.init({resourceName:this.resourceName},!0),null===(t=this.datasource.stream)||void 0===t||t.subscribe((e=>{var t,o;if(!e.ROW)return;const i=null==e?void 0:e.ROW[0];if(e.SEQUENCE_ID>1&&"INSERT"===i.DETAILS.OPERATION){const e=i.HEADER,a=i.MESSAGE,n=null===(t=i.NOTIFY_SEVERITY)||void 0===t?void 0:t.toLowerCase(),s=i.CREATED_AT?new Date(i.CREATED_AT):void 0,r=i.EXPIRY?i.EXPIRY-i.CREATED_AT:0;let l=[];this.toastButtons&&this.toastButtons.length>0&&(l=this.toastButtons.filter((({condition:e})=>!e||e({details:i})))),_l((new kl).withTitle(e).withBody(a).withCreatedAt(s).withToast((new Tl).withDetails(i).withType(n).withButtons(l).withAutoClose(null!==(o=!!r)&&void 0!==o?o:!!this.closeTimeout).withCloseTimeout(null!=r?r:this.closeTimeout).build()).build(),this.tagName,this.notificationListener)}})))}))}}(0,w.__decorate)([r.observable],Rl.prototype,"notificationListener",void 0),(0,w.__decorate)([(0,r.attr)({attribute:"resource-name"})],Rl.prototype,"resourceName",void 0),(0,w.__decorate)([(0,r.attr)({attribute:"close-timeout",converter:r.nullableNumberConverter})],Rl.prototype,"closeTimeout",void 0),(0,w.__decorate)([r.observable],Rl.prototype,"toastButtons",void 0),(0,w.__decorate)([No.Yh],Rl.prototype,"datasource",void 0);const Al=Rl.compose({baseName:"notification-listener",template:xl,shadowOptions:Ll});var Nl;let El=Nl=class extends yl{constructor(){super(...arguments),this.optionElement="fast-option",this.isSnapshot=!0}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});var t;return(0,w.__awaiter)(this,void 0,void 0,(function*(){e.connectedCallback.call(this),this.fields=this.labelField?null===(t=this.valueField)||void 0===t?void 0:t.concat(" ",this.labelField):this.valueField,this.select=this.parentElement,this.select.addEventListener("change",(e=>{const t=this.options.find((t=>t.label===e.target.value));this.select.$emit("value-change",t)})),this.select&&this.valueField&&(this.resourceName&&this.connect.isConnected||this.data)&&this.fetchGenesisData(),this.valueField||_o.warn('Specify field for values in options (e.g value-field="VALUE") and optionally field for label (e.g label-field="NAME")')}))}clearData(){Array.from(this.select.children).forEach((e=>{e instanceof Nl||this.select.removeChild(e)})),this.select.value="",this.select.initialValue=""}syncComponentData(e){var t;const o=null!=e?e:Array.from(this.rowsSyncedWithStream.values());this.options=o.map((e=>({value:e[this.valueField],label:this.labelFormatter?this.labelFormatter(e[this.labelField]):e[this.labelField]})));this.options.map((({value:e,label:t})=>{const o=document.createElement(this.optionElement);return o.textContent=t||e,o.value=e,o})).forEach((e=>{this.select.appendChild(e)}));const i=this.initialSelectedValue?null===(t=this.options.find((e=>e.value===this.initialSelectedValue)))||void 0===t?void 0:t.label:"";r.DOM.queueUpdate((()=>{this.select.value=i}))}handleStreamInserts(e){_o.debug("handleStreamInserts - Method not implemented.")}handleStreamDeletes(e){_o.debug("handleStreamDeletes - Method not implemented.")}handleStreamUpdates(e){_o.debug("handleStreamUpdates - Method not implemented.")}};(0,w.__decorate)([(0,r.attr)({attribute:"label-field"})],El.prototype,"labelField",void 0),(0,w.__decorate)([(0,r.attr)({attribute:"value-field"})],El.prototype,"valueField",void 0),(0,w.__decorate)([r.observable],El.prototype,"labelFormatter",void 0),El=Nl=(0,w.__decorate)([(0,r.customElement)({name:"options-datasource"})],El);let Ml=class extends yl{constructor(){super(...arguments),this.isSnapshot=!0}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});var t;return(0,w.__awaiter)(this,void 0,void 0,(function*(){e.connectedCallback.call(this),this.fields=this.labelField?null===(t=this.valueField)||void 0===t?void 0:t.concat(" ",this.labelField):this.valueField,this.select=this.parentElement,this.select&&this.valueField&&(this.resourceName&&this.connect.isConnected||this.data)&&this.fetchGenesisData(),this.valueField||_o.warn('Specify field for values in options (e.g value-field="VALUE") and optionally field for label which is supported only in select and combobox (e.g label-field="NAME")')}))}clearData(){this.select.options=[]}syncComponentData(e){const t=(null!=e?e:Array.from(this.rowsSyncedWithStream.values())).map((e=>({value:e[this.valueField],label:e[this.labelField]})));this.select.options=t}handleStreamInserts(e){_o.debug("handleStreamInserts - Method not implemented.")}handleStreamDeletes(e){_o.debug("handleStreamDeletes - Method not implemented.")}handleStreamUpdates(e){_o.debug("handleStreamUpdates - Method not implemented.")}};(0,w.__decorate)([(0,r.attr)({attribute:"value-field"})],Ml.prototype,"valueField",void 0),(0,w.__decorate)([(0,r.attr)({attribute:"label-field"})],Ml.prototype,"labelField",void 0),Ml=(0,w.__decorate)([(0,r.customElement)({name:"multiselect-datasource"})],Ml);const Il=(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 Pl(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}var Hl=o(1279);let jl=class extends(Hl.F0.from(r.FASTElement)){connectedCallback(){super.connectedCallback(),r.DOM.queueUpdate((()=>(0,w.__awaiter)(this,void 0,void 0,(function*(){this.$router.config=this.config}))))}};jl=(0,w.__decorate)([(0,r.customElement)({name:"foundation-router"})],jl);const Bl=()=>pl().register(cl)},19082:(e,t,o)=>{"use strict";function i(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var i in o)e[i]=o[i]}return e}o.d(t,{Z:()=>a});var a=function e(t,o){function a(e,a,n){if("undefined"!=typeof document){"number"==typeof(n=i({},o,n)).expires&&(n.expires=new Date(Date.now()+864e5*n.expires)),n.expires&&(n.expires=n.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var s="";for(var r in n)n[r]&&(s+="; "+r,!0!==n[r]&&(s+="="+n[r].split(";")[0]));return document.cookie=e+"="+t.write(a,e)+s}}return Object.create({set:a,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var o=document.cookie?document.cookie.split("; "):[],i={},a=0;a<o.length;a++){var n=o[a].split("="),s=n.slice(1).join("=");try{var r=decodeURIComponent(n[0]);if(i[r]=t.read(s,r),e===r)break}catch(e){}}return e?i[e]:i}},remove:function(e,t){a(e,"",i({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,i({},this.attributes,t))},withConverter:function(t){return e(i({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(o)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"})}}]);
|
|
2224
|
+
//# sourceMappingURL=385.6aaf9ec01e3df04d6a2f6944cddf33d3.js.map
|