@genesislcap/design-system-configurator 14.4.0 → 14.6.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/1.0.0.remoteEntry.js +1 -1
- package/dist/{189.189.fd33c3095a8d7ef0f408.js → 189.189.0fbfd9130fb63d5834be.js} +9 -5
- package/dist/189.c1be10d13a0bc1c9e7faef11514068597dba01442ba9271bd0ebe3352b2ccf75.js.map +1 -0
- package/dist/{695.695.8ce5db9c9286da851c17.js → 529.529.bd8d8160dd8ad8a63eb8.js} +239 -238
- package/dist/529.deedc22f965cd059a8aebd434703fa348c69c5fe5ca955d5f436a0d9e16955af.js.map +1 -0
- package/dist/600.0c2ef79361b6e0b813093f2fd3e7116fcf8279db83051b80fbae19d95233ee6e.js.map +1 -0
- package/dist/600.600.ac2e2752735587539096.js +2 -0
- package/dist/{755.755.67c464998c1de0fe658a.js → 755.755.3bf6e57b4ff54bdac7b8.js} +1 -1
- package/dist/{842.842.3317acab8730ecfeeaad.js → 842.842.47bb17a56adc4a601713.js} +1 -1
- package/dist/88.6c832220c16c7c5889e389de8ba2fbd737fedefbfdcf62f2d80a438d357baa72.js.map +1 -0
- package/dist/{88.88.deb77cf4948c9a67fe74.js → 88.88.4b7422a2a4ca1d558737.js} +228 -228
- package/dist/{905.905.3812026c3ca3c7ea2dd5.js → 905.905.e340cd48663defd5de2b.js} +2 -2
- package/dist/dashboard.json +1 -1
- package/dist/{designSystemConfigurator.8ae691ebed8949ad2eecfaf7263b9eb522d2d222ddac8fe10d5f7963a4bf14d5.js.map → designSystemConfigurator.38ebdbb6b3159a71a48d1901953d15a5666750719599ffaf630074a42238844e.js.map} +1 -1
- package/dist/dts/components/design-system-preview-container/design-system-preview-container.template.d.ts.map +1 -1
- package/dist/esm/components/design-system-preview-container/design-system-preview-container.template.js +4 -0
- package/dist/index.html +1 -1
- package/dist/info.html +4 -4
- package/dist/{main.8a4ab8f61ea3fd34b5c7f12eb21042544a0b11b63a99058b37ccce38baf77146.js.map → main.36368e3a84f13104cf734f663637be7dee311c0659fc3a980f693af6a8bef588.js.map} +1 -1
- package/dist/{main.98d0aab7006d41aaca5d.js → main.e93953d747a54428c257.js} +2 -2
- package/dist/remoteEntry.js +2 -2
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +6 -6
- package/dist/189.7075eea0e86e67e82be869bf4f2cf0c054769563460f0ed219ab745c6ded0d37.js.map +0 -1
- package/dist/600.600.e967932d02525f2ec825.js +0 -2
- package/dist/600.9c36d30717df2aa8f512f6d5b77ec882a5d5660f26ceeda82806a2b705326340.js.map +0 -1
- package/dist/695.1c32a8ac41ad15d9de570f5c42337e76526b79a06c0b3a72796628b315efda50.js.map +0 -1
- package/dist/88.288e0f14df916e7c01d173ea1635ab78c1d12890312979e4dccce67f00098879.js.map +0 -1
- /package/dist/{905.905.3812026c3ca3c7ea2dd5.js.LICENSE.txt → 905.905.e340cd48663defd5de2b.js.LICENSE.txt} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(self.webpackChunk_genesislcap_design_system_configurator=self.webpackChunk_genesislcap_design_system_configurator||[]).push([[88],{4341:function(e){e.exports=function(){"use strict";var e=1e3,t=6e4,o=36e5,a="millisecond",i="second",n="minute",r="hour",s="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 a=String(e);return!a||a.length>=t?e:""+Array(t+1-a.length).join(o)+e},b={s:g,z:function(e){var t=-e.utcOffset(),o=Math.abs(t),a=Math.floor(o/60),i=o%60;return(t<=0?"+":"-")+g(a,2,"0")+":"+g(i,2,"0")},m:function e(t,o){if(t.date()<o.date())return-e(o,t);var a=12*(o.year()-t.year())+(o.month()-t.month()),i=t.clone().add(a,d),n=o-i<0,r=t.clone().add(a+(n?-1:1),d);return+(-(a+(o-i)/(n?i-r:r-i))||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:s,D:p,h:r,m:n,s:i,ms:a,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,a){var i;if(!t)return y;if("string"==typeof t){var n=t.toLowerCase();w[n]&&(i=n),o&&(w[n]=o,i=n);var r=t.split("-");if(!i&&r.length>1)return e(r[0])}else{var s=t.name;w[s]=t,i=s}return!a&&i&&(y=i),i||!a&&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 a=t.match(m);if(a){var i=a[2]-1||0,n=(a[7]||"0").substring(0,3);return o?new Date(Date.UTC(a[1],i,a[3]||1,a[4]||0,a[5]||0,a[6]||0,n)):new Date(a[1],i,a[3]||1,a[4]||0,a[5]||0,a[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,a=!!S.u(t)||t,c=S.p(e),h=function(e,t){var i=S.w(o.$u?Date.UTC(o.$y,t,e):new Date(o.$y,t,e),o);return a?i:i.endOf(s)},m=function(e,t){return S.w(o.toDate()[e].apply(o.toDate("s"),(a?[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 a?h(1,0):h(31,11);case d:return a?h(1,v):h(0,v+1);case l:var y=this.$locale().weekStart||0,w=(f<y?f+7:f)-y;return h(a?g-w:g+(6-w),v);case s:case p:return m(b+"Hours",0);case r:return m(b+"Minutes",1);case n:return m(b+"Seconds",2);case i: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[s]=c+"Date",o[p]=c+"Date",o[d]=c+"Month",o[u]=c+"FullYear",o[r]=c+"Hours",o[n]=c+"Minutes",o[i]=c+"Seconds",o[a]=c+"Milliseconds",o)[l],m=l===s?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(a,c){var p,h=this;a=Number(a);var m=S.p(c),f=function(e){var t=$(h);return S.w(t.date(t.date()+Math.round(e*a)),h)};if(m===d)return this.set(d,this.$M+a);if(m===u)return this.set(u,this.$y+a);if(m===s)return f(1);if(m===l)return f(7);var v=(p={},p[n]=t,p[r]=o,p[i]=e,p)[m]||1,g=this.$d.getTime()+a*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 a=e||"YYYY-MM-DDTHH:mm:ssZ",i=S.z(this),n=this.$H,r=this.$m,s=this.$M,l=o.weekdays,d=o.months,c=function(e,o,i,n){return e&&(e[o]||e(t,a))||i[o].slice(0,n)},u=function(e){return S.s(n%12||12,e,"0")},p=o.meridiem||function(e,t,o){var a=e<12?"AM":"PM";return o?a.toLowerCase():a},m={YY:String(this.$y).slice(-2),YYYY:this.$y,M:s+1,MM:S.s(s+1,2,"0"),MMM:c(o.monthsShort,s,d,3),MMMM:c(d,s),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,r,!0),A:p(n,r,!1),m:String(r),mm:S.s(r,2,"0"),s:String(this.$s),ss:S.s(this.$s,2,"0"),SSS:S.s(this.$ms,3,"0"),Z:i};return a.replace(f,(function(e,t){return t||m[e]||i.replace(":","")}))},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(a,p,h){var m,f=S.p(p),v=$(a),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[s]=(b-g)/864e5,m[r]=b/o,m[n]=b/t,m[i]=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(),a=F(e,t,!0);return a&&(o.$L=a),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",a],["$s",i],["$m",n],["$H",r],["$W",s],["$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={},$}()},8113: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}}}()},5088:(e,t,o)=>{"use strict";o.r(t),o.d(t,{ActionsMenu:()=>p,Anchor:()=>g,Badge:()=>$,Banner:()=>L,BaseDatasource:()=>Vs,Breadcrumb:()=>N,BreadcrumbItem:()=>B,Button:()=>Y,CSSVarsTokenMapper:()=>Is,Card:()=>J,Checkbox:()=>ie,Combobox:()=>ce,ConnectionIndicator:()=>be,DEFUALT_FILTER_BAR_COLUMNS:()=>xa,DataGrid:()=>Fe,DataGridCell:()=>_e,DataGridDatasource:()=>Us,DataGridRow:()=>Re,DatePicker:()=>We,Dialog:()=>zt,DialogElement:()=>jt,Disclosure:()=>Wt,Divider:()=>Qt,DropdownMenu:()=>co,ErrorBanner:()=>vo,ErrorBoundary:()=>Co,ErrorBoundaryEvent:()=>bo,ErrorDialog:()=>Ro,FaPrefixFromStyle:()=>mi,FileUpload:()=>Zo,Filter:()=>pa,FilterBar:()=>Fa,FilterEvents:()=>ua,FlexLayout:()=>La,FlexMediaQueriesEnum:()=>Sa,Flipper:()=>Na,Flyout:()=>Ga,FoundationDesignSystemProvider:()=>Nt,FoundationRouter:()=>Js,GridLayout:()=>Ja,GridLayoutItem:()=>ai,GridMediaQueriesEnum:()=>Ua,Icon:()=>fi,ListboxOption:()=>yi,Menu:()=>Di,MenuItem:()=>Ti,Modal:()=>Hi,Multiselect:()=>qi,MultiselectDatasource:()=>qs,NumberField:()=>Ji,OptionsDatasource:()=>Ws,Popper:()=>nn,Progress:()=>un,ProgressRing:()=>gn,Radio:()=>$n,RadioGroup:()=>On,SegmentedControl:()=>Mn,SegmentedItem:()=>Gn,Select:()=>Wn,Skeleton:()=>Qn,Slider:()=>sr,Snackbar:()=>mr,Switch:()=>br,Tab:()=>Sr,TabPanel:()=>Lr,Tabs:()=>Er,TextArea:()=>jr,TextField:()=>qr,Toast:()=>os,Toolbar:()=>rs,Tooltip:()=>ps,TreeItem:()=>bs,TreeView:()=>Ss,UrlInput:()=>Rs,accentFillActive:()=>m.accentFillActive,accentFillActiveDelta:()=>m.accentFillActiveDelta,accentFillFocus:()=>m.accentFillFocus,accentFillFocusDelta:()=>m.accentFillFocusDelta,accentFillHover:()=>m.accentFillHover,accentFillHoverDelta:()=>m.accentFillHoverDelta,accentFillRest:()=>m.accentFillRest,accentFillRestDelta:()=>m.accentFillRestDelta,accentForegroundActive:()=>m.accentForegroundActive,accentForegroundActiveDelta:()=>m.accentForegroundActiveDelta,accentForegroundFocus:()=>m.accentForegroundFocus,accentForegroundFocusDelta:()=>m.accentForegroundFocusDelta,accentForegroundHover:()=>m.accentForegroundHover,accentForegroundHoverDelta:()=>m.accentForegroundHoverDelta,accentForegroundRest:()=>m.accentForegroundRest,accentForegroundRestDelta:()=>m.accentForegroundRestDelta,accentPalette:()=>m.accentPalette,accentPaletteValue:()=>$t,actionsMenuBaseStyles:()=>d,baseComponents:()=>Ns,baseHeightMultiplier:()=>m.baseHeightMultiplier,baseLayerLuminance:()=>m.baseLayerLuminance,baseLayerLuminanceValue:()=>Dt,black:()=>Ze,bodyFont:()=>m.bodyFont,closeIcon:()=>Pt,configureDesignSystem:()=>Ft,controlCornerRadius:()=>m.controlCornerRadius,controlCornerRadiusValue:()=>_t,createDesignSystemProxy:()=>Ms,defaultAnchorConfig:()=>y,defaultBadgeConfig:()=>D,defaultBreadcrumbConfig:()=>E,defaultBreadcrumbItemConfig:()=>j,defaultButtonConfig:()=>q,defaultCardConfig:()=>ee,defaultCheckboxConfig:()=>re,defaultComboboxConfig:()=>pe,defaultDataGridCellConfig:()=>Oe,defaultDataGridConfig:()=>Se,defaultDataGridRowConfig:()=>Ne,defaultDatePickerConfig:()=>Ye,defaultDialogConfig:()=>Gt,defaultDisclosureConfig:()=>Xt,defaultDividerConfig:()=>to,defaultFileUploadConfig:()=>Qo,defaultFillColor:()=>Qe,defaultFlexLayoutConfig:()=>Oa,defaultFlipperConfig:()=>Ea,defaultFlyoutConfig:()=>za,defaultGridLayoutConfig:()=>Ka,defaultGridLayoutItemConfig:()=>oi,defaultIconConfig:()=>hi,defaultListboxOptionConfig:()=>xi,defaultMenuConfig:()=>_i,defaultMenuItemConfig:()=>Ai,defaultModalConfig:()=>Pi,defaultMultiselectConfig:()=>Wi,defaultNeutralForegroundContrast:()=>pt,defaultNumberFieldConfig:()=>en,defaultProgressConfig:()=>hn,defaultProgressRingConfig:()=>yn,defaultRadioConfig:()=>Dn,defaultRadioGroupConfig:()=>Tn,defaultSegmentedControlConfig:()=>In,defaultSegmentedItemConfig:()=>zn,defaultSelectConfig:()=>Xn,defaultSkeletonConfig:()=>tr,defaultSliderConfig:()=>dr,defaultSwitchConfig:()=>wr,defaultTabConfig:()=>Cr,defaultTabPanelConfig:()=>Rr,defaultTabsConfig:()=>Pr,defaultTextAreaConfig:()=>Vr,defaultTextFieldConfig:()=>Kr,defaultToastConfig:()=>ts,defaultToolbarConfig:()=>ls,defaultTooltipConfig:()=>ms,defaultTreeItemConfig:()=>ws,defaultTreeViewConfig:()=>Cs,defaultUrlInputConfig:()=>Ts,defineFactory:()=>Xs,density:()=>m.density,designToken:()=>vt,designUnit:()=>m.designUnit,designUnitValue:()=>kt,direction:()=>m.direction,directionValue:()=>Ct,disabledOpacity:()=>m.disabledOpacity,dropdownMenuBaseStyles:()=>io,errorDialogTemplate:()=>Lo,extractMenuItems:()=>ro,fillColor:()=>m.fillColor,flyoutAnimationTime:()=>Pa,focusStrokeInner:()=>m.focusStrokeInner,focusStrokeOuter:()=>m.focusStrokeOuter,focusStrokeWidth:()=>m.focusStrokeWidth,foregroundOnAccentActive:()=>m.foregroundOnAccentActive,foregroundOnAccentActiveLarge:()=>m.foregroundOnAccentActiveLarge,foregroundOnAccentFocus:()=>m.foregroundOnAccentFocus,foregroundOnAccentFocusLarge:()=>m.foregroundOnAccentFocusLarge,foregroundOnAccentHover:()=>m.foregroundOnAccentHover,foregroundOnAccentHoverLarge:()=>m.foregroundOnAccentHoverLarge,foregroundOnAccentRest:()=>m.foregroundOnAccentRest,foregroundOnAccentRestLarge:()=>m.foregroundOnAccentRestLarge,foundationActionsMenu:()=>h,foundationActionsMenuStyles:()=>c,foundationActionsMenuTemplate:()=>u,foundationAnchor:()=>w,foundationAnchorShadowOptions:()=>b,foundationAnchorStyles:()=>f,foundationAnchorTemplate:()=>v,foundationBadge:()=>C,foundationBadgeShadowOptions:()=>S,foundationBadgeStyles:()=>x,foundationBadgeTemplate:()=>F,foundationBanner:()=>T,foundationBannerShadowOptions:()=>O,foundationBannerStyles:()=>_,foundationBannerTemplate:()=>k,foundationBreadcrumb:()=>I,foundationBreadcrumbItem:()=>z,foundationBreadcrumbItemShadowOptions:()=>G,foundationBreadcrumbItemStyles:()=>P,foundationBreadcrumbItemTemplate:()=>H,foundationBreadcrumbShadowOptions:()=>M,foundationBreadcrumbStyles:()=>R,foundationBreadcrumbTemplate:()=>A,foundationButton:()=>X,foundationButtonShadowOptions:()=>W,foundationButtonStyles:()=>V,foundationButtonTemplate:()=>U,foundationCard:()=>te,foundationCardShadowOptions:()=>Q,foundationCardStyles:()=>K,foundationCardTemplate:()=>Z,foundationCheckbox:()=>se,foundationCheckboxShadowOptions:()=>ne,foundationCheckboxStyles:()=>oe,foundationCheckboxTemplate:()=>ae,foundationCombobox:()=>he,foundationComboboxShadowOptions:()=>ue,foundationComboboxStyles:()=>le,foundationComboboxTemplate:()=>de,foundationConnectionIndicator:()=>ye,foundationConnectionIndicatorStyles:()=>ve,foundationConnectionIndicatorTemplate:()=>ge,foundationDataGrid:()=>De,foundationDataGridCell:()=>Le,foundationDataGridCellShadowOptions:()=>ke,foundationDataGridCellStyles:()=>Ce,foundationDataGridCellTemplate:()=>s.dataGridCellTemplate,foundationDataGridRow:()=>Me,foundationDataGridRowShadowOptions:()=>Ae,foundationDataGridRowStyles:()=>Te,foundationDataGridRowTemplate:()=>s.dataGridRowTemplate,foundationDataGridShadowOptions:()=>$e,foundationDataGridStyles:()=>we,foundationDataGridTemplate:()=>xe,foundationDatePicker:()=>qe,foundationDatePickerShadowOptions:()=>Ue,foundationDatePickerStyles:()=>ze,foundationDatePickerTemplate:()=>Ve,foundationDesignSystemProvider:()=>Mt,foundationDialog:()=>Vt,foundationDialogShadowOptions:()=>Bt,foundationDialogStyles:()=>It,foundationDialogTemplate:()=>Ht,foundationDisclosure:()=>Kt,foundationDisclosureShadowOptions:()=>qt,foundationDisclosureStyles:()=>Ut,foundationDisclosureTemplate:()=>Yt,foundationDivider:()=>oo,foundationDividerShadowOptions:()=>eo,foundationDividerStyles:()=>Zt,foundationDividerTemplate:()=>Jt,foundationDropdownMenu:()=>uo,foundationDropdownMenuStyles:()=>no,foundationDropdownMenuTemplate:()=>lo,foundationErrorBanner:()=>go,foundationErrorBannerShadowOptions:()=>fo,foundationErrorBannerTemplate:()=>mo,foundationErrorBoundary:()=>_o,foundationErrorBoundaryShadowOptions:()=>Do,foundationErrorBoundaryTemplate:()=>So,foundationErrorDialog:()=>Ao,foundationErrorDialogShadowOptions:()=>To,foundationErrorDialogStyles:()=>ko,foundationFileUpload:()=>ea,foundationFileUploadShadowOptions:()=>Jo,foundationFileUploadStyles:()=>Vo,foundationFileUploadTemplate:()=>Yo,foundationFilter:()=>ha,foundationFilterBar:()=>$a,foundationFilterBarStyles:()=>fa,foundationFilterBarTemplate:()=>wa,foundationFilterStyles:()=>ta,foundationFilterTemplate:()=>ca,foundationFlexLayout:()=>Ta,foundationFlexLayoutShadowOptions:()=>ka,foundationFlexLayoutStyles:()=>Ca,foundationFlexLayoutTemplate:()=>_a,foundationFlipper:()=>Ia,foundationFlipperShadowOptions:()=>Ma,foundationFlipperStyles:()=>Ra,foundationFlipperTemplate:()=>Aa,foundationFlyout:()=>Va,foundationFlyoutShadowOptions:()=>ja,foundationFlyoutStyles:()=>Ha,foundationFlyoutTemplate:()=>Ba,foundationGridLayout:()=>Qa,foundationGridLayoutItem:()=>ii,foundationGridLayoutItemShadowOptions:()=>ti,foundationGridLayoutItemTemplate:()=>ei,foundationGridLayoutShadowOptions:()=>Xa,foundationGridLayoutStyles:()=>Wa,foundationGridLayoutTemplate:()=>qa,foundationIcon:()=>vi,foundationIconShadowOptions:()=>pi,foundationIconStyles:()=>ci,foundationIconTemplate:()=>ui,foundationListboxOption:()=>Fi,foundationListboxOptionShadowOptions:()=>wi,foundationListboxOptionStyles:()=>gi,foundationListboxOptionTemplate:()=>bi,foundationMenu:()=>ki,foundationMenuItem:()=>Ni,foundationMenuItemShadowOptions:()=>Ri,foundationMenuItemStyles:()=>Oi,foundationMenuItemTemplate:()=>Li,foundationMenuShadowOptions:()=>Ci,foundationMenuStyles:()=>$i,foundationMenuTemplate:()=>Si,foundationModal:()=>Bi,foundationModalShadowOptions:()=>Ii,foundationModalStyles:()=>Mi,foundationModalTemplate:()=>Ei,foundationMultiselect:()=>Xi,foundationMultiselectShadowOptions:()=>Yi,foundationNumberField:()=>tn,foundationNumberFieldShadowOptions:()=>Qi,foundationNumberFieldStyles:()=>Ki,foundationNumberFieldTemplate:()=>Zi,foundationPopper:()=>ln,foundationProgress:()=>mn,foundationProgressRing:()=>wn,foundationProgressRingShadowOptions:()=>bn,foundationProgressRingStyles:()=>fn,foundationProgressRingTemplate:()=>vn,foundationProgressShadowOptions:()=>pn,foundationProgressStyles:()=>dn,foundationProgressTemplate:()=>cn,foundationRadio:()=>Cn,foundationRadioGroup:()=>Rn,foundationRadioGroupShadowOptions:()=>Ln,foundationRadioGroupStyles:()=>_n,foundationRadioGroupTemplate:()=>kn,foundationRadioShadowOptions:()=>Sn,foundationRadioStyles:()=>xn,foundationRadioTemplate:()=>Fn,foundationSegmentedControl:()=>Pn,foundationSegmentedControlShadowOptions:()=>En,foundationSegmentedControlStyles:()=>An,foundationSegmentedControlTemplate:()=>Nn,foundationSegmentedItem:()=>Vn,foundationSegmentedItemShadowOptions:()=>jn,foundationSegmentedItemStyles:()=>Hn,foundationSegmentedItemTemplate:()=>Bn,foundationSelect:()=>Kn,foundationSelectShadowOptions:()=>qn,foundationSelectStyles:()=>Un,foundationSelectTemplate:()=>Yn,foundationSkeleton:()=>or,foundationSkeletonShadowOptions:()=>er,foundationSkeletonStyles:()=>Zn,foundationSkeletonTemplate:()=>Jn,foundationSlider:()=>cr,foundationSliderShadowOptions:()=>lr,foundationSliderStyles:()=>ar,foundationSliderTemplate:()=>rr,foundationSnackbar:()=>fr,foundationSnackbarShadowOptions:()=>hr,foundationSnackbarStyles:()=>ur,foundationSnackbarTemplate:()=>pr,foundationSwitch:()=>xr,foundationSwitchShadowOptions:()=>yr,foundationSwitchStyles:()=>vr,foundationSwitchTemplate:()=>gr,foundationTab:()=>_r,foundationTabPanel:()=>Ar,foundationTabPanelShadowOptions:()=>Tr,foundationTabPanelStyles:()=>kr,foundationTabPanelTemplate:()=>Or,foundationTabShadowOptions:()=>Dr,foundationTabStyles:()=>Fr,foundationTabTemplate:()=>$r,foundationTabs:()=>Hr,foundationTabsShadowOptions:()=>Ir,foundationTabsStyles:()=>Nr,foundationTabsTemplate:()=>Mr,foundationTextArea:()=>Ur,foundationTextAreaShadowOptions:()=>zr,foundationTextAreaStyles:()=>Br,foundationTextAreaTemplate:()=>Gr,foundationTextField:()=>Zr,foundationTextFieldShadowOptions:()=>Xr,foundationTextFieldStyles:()=>Yr,foundationTextFieldTemplate:()=>Wr,foundationToast:()=>as,foundationToastShadowOptions:()=>es,foundationToastStyles:()=>Jr,foundationToastTemplate:()=>Qr,foundationToolbar:()=>ds,foundationToolbarShadowOptions:()=>ss,foundationToolbarStyles:()=>is,foundationToolbarTemplate:()=>ns,foundationTooltip:()=>fs,foundationTooltipShadowOptions:()=>hs,foundationTooltipStyles:()=>cs,foundationTooltipTemplate:()=>us,foundationTreeItem:()=>xs,foundationTreeItemShadowOptions:()=>ys,foundationTreeItemStyles:()=>vs,foundationTreeItemTemplate:()=>gs,foundationTreeView:()=>_s,foundationTreeViewShadowOptions:()=>Ds,foundationTreeViewStyles:()=>Fs,foundationTreeViewTemplate:()=>$s,foundationUrlInput:()=>As,foundationUrlInputShadowOptions:()=>Ls,foundationUrlInputStyles:()=>ks,fuiAccentPalette:()=>lt,fuiAccentSwatch:()=>st,fuiCardFillColor:()=>ut,fuiCardForegroundColor:()=>mt,fuiDefaultCardFillColor:()=>tt,fuiDefaultCardPalette:()=>ot,fuiFillColor:()=>ct,fuiNeutralPalette:()=>nt,fuiNeutralSwatch:()=>it,getDefaultConfig:()=>wt,getDropdownMenuTemplate:()=>so,getErrorDialogTemplate:()=>Oo,getExports:()=>xt,getFontawesomeIconsCss:()=>di,getPrefixedFileUpload:()=>Uo,getPrefixedMultiselect:()=>Vi,jsonConverter:()=>an,mapType:()=>va,maxheight:()=>ji,mixinFoundationFontFamily:()=>Lt,multiselectStyles:()=>zi,multiselectTemplate:()=>Ui,neutralFillActive:()=>m.neutralFillActive,neutralFillActiveDelta:()=>m.neutralFillActiveDelta,neutralFillFocus:()=>m.neutralFillFocus,neutralFillFocusDelta:()=>m.neutralFillFocusDelta,neutralFillHover:()=>m.neutralFillHover,neutralFillHoverDelta:()=>m.neutralFillHoverDelta,neutralFillInputActive:()=>m.neutralFillInputActive,neutralFillInputActiveDelta:()=>m.neutralFillInputActiveDelta,neutralFillInputFocus:()=>m.neutralFillInputFocus,neutralFillInputFocusDelta:()=>m.neutralFillInputFocusDelta,neutralFillInputHover:()=>m.neutralFillInputHover,neutralFillInputHoverDelta:()=>m.neutralFillInputHoverDelta,neutralFillInputRest:()=>m.neutralFillInputRest,neutralFillInputRestDelta:()=>m.neutralFillInputRestDelta,neutralFillLayerRest:()=>m.neutralFillLayerRest,neutralFillLayerRestDelta:()=>m.neutralFillLayerRestDelta,neutralFillRest:()=>m.neutralFillRest,neutralFillRestDelta:()=>m.neutralFillRestDelta,neutralFillStealthActive:()=>m.neutralFillStealthActive,neutralFillStealthActiveDelta:()=>m.neutralFillStealthActiveDelta,neutralFillStealthFocus:()=>m.neutralFillStealthFocus,neutralFillStealthFocusDelta:()=>m.neutralFillStealthFocusDelta,neutralFillStealthHover:()=>m.neutralFillStealthHover,neutralFillStealthHoverDelta:()=>m.neutralFillStealthHoverDelta,neutralFillStealthRest:()=>m.neutralFillStealthRest,neutralFillStealthRestDelta:()=>m.neutralFillStealthRestDelta,neutralFillStrongActive:()=>m.neutralFillStrongActive,neutralFillStrongActiveDelta:()=>m.neutralFillStrongActiveDelta,neutralFillStrongFocus:()=>m.neutralFillStrongFocus,neutralFillStrongFocusDelta:()=>m.neutralFillStrongFocusDelta,neutralFillStrongHover:()=>m.neutralFillStrongHover,neutralFillStrongHoverDelta:()=>m.neutralFillStrongHoverDelta,neutralFillStrongRest:()=>m.neutralFillStrongRest,neutralFillStrongRestDelta:()=>m.neutralFillStrongRestDelta,neutralForeground:()=>ht,neutralForegroundHint:()=>m.neutralForegroundHint,neutralForegroundRest:()=>m.neutralForegroundRest,neutralLayer1:()=>m.neutralLayer1,neutralLayer2:()=>m.neutralLayer2,neutralLayer3:()=>m.neutralLayer3,neutralLayer4:()=>m.neutralLayer4,neutralLayerCardContainer:()=>m.neutralLayerCardContainer,neutralLayerFloating:()=>m.neutralLayerFloating,neutralPalette:()=>m.neutralPalette,neutralPaletteValue:()=>St,neutralStrokeActive:()=>m.neutralStrokeActive,neutralStrokeActiveDelta:()=>m.neutralStrokeActiveDelta,neutralStrokeDividerRest:()=>m.neutralStrokeDividerRest,neutralStrokeDividerRestDelta:()=>m.neutralStrokeDividerRestDelta,neutralStrokeFocus:()=>m.neutralStrokeFocus,neutralStrokeFocusDelta:()=>m.neutralStrokeFocusDelta,neutralStrokeHover:()=>m.neutralStrokeHover,neutralStrokeHoverDelta:()=>m.neutralStrokeHoverDelta,neutralStrokeRest:()=>m.neutralStrokeRest,neutralStrokeRestDelta:()=>m.neutralStrokeRestDelta,paletteFromHex:()=>bt,provideDesignSystem:()=>Es,provideTokens:()=>ft,registerFoundationDesignSystem:()=>Qs,strokeWidth:()=>m.strokeWidth,swatchConverter:()=>gt,tagFor:()=>Ks,typeRampBaseFontSize:()=>m.typeRampBaseFontSize,typeRampBaseLineHeight:()=>m.typeRampBaseLineHeight,typeRampMinus1FontSize:()=>m.typeRampMinus1FontSize,typeRampMinus1LineHeight:()=>m.typeRampMinus1LineHeight,typeRampMinus2FontSize:()=>m.typeRampMinus2FontSize,typeRampMinus2LineHeight:()=>m.typeRampMinus2LineHeight,typeRampPlus1FontSize:()=>m.typeRampPlus1FontSize,typeRampPlus1LineHeight:()=>m.typeRampPlus1LineHeight,typeRampPlus2FontSize:()=>m.typeRampPlus2FontSize,typeRampPlus2LineHeight:()=>m.typeRampPlus2LineHeight,typeRampPlus3FontSize:()=>m.typeRampPlus3FontSize,typeRampPlus3LineHeight:()=>m.typeRampPlus3LineHeight,typeRampPlus4FontSize:()=>m.typeRampPlus4FontSize,typeRampPlus4LineHeight:()=>m.typeRampPlus4LineHeight,typeRampPlus5FontSize:()=>m.typeRampPlus5FontSize,typeRampPlus5LineHeight:()=>m.typeRampPlus5LineHeight,typeRampPlus6FontSize:()=>m.typeRampPlus6FontSize,typeRampPlus6LineHeight:()=>m.typeRampPlus6LineHeight,urlinputTemplate:()=>Os,white:()=>Ke});var a={};o.r(a),o.d(a,{accentFillActive:()=>m.accentFillActive,accentFillActiveDelta:()=>m.accentFillActiveDelta,accentFillFocus:()=>m.accentFillFocus,accentFillFocusDelta:()=>m.accentFillFocusDelta,accentFillHover:()=>m.accentFillHover,accentFillHoverDelta:()=>m.accentFillHoverDelta,accentFillRest:()=>m.accentFillRest,accentFillRestDelta:()=>m.accentFillRestDelta,accentForegroundActive:()=>m.accentForegroundActive,accentForegroundActiveDelta:()=>m.accentForegroundActiveDelta,accentForegroundFocus:()=>m.accentForegroundFocus,accentForegroundFocusDelta:()=>m.accentForegroundFocusDelta,accentForegroundHover:()=>m.accentForegroundHover,accentForegroundHoverDelta:()=>m.accentForegroundHoverDelta,accentForegroundRest:()=>m.accentForegroundRest,accentForegroundRestDelta:()=>m.accentForegroundRestDelta,accentPalette:()=>m.accentPalette,baseHeightMultiplier:()=>m.baseHeightMultiplier,baseLayerLuminance:()=>m.baseLayerLuminance,bodyFont:()=>m.bodyFont,controlCornerRadius:()=>m.controlCornerRadius,defaultNeutralForegroundContrast:()=>pt,density:()=>m.density,designUnit:()=>m.designUnit,direction:()=>m.direction,disabledOpacity:()=>m.disabledOpacity,fillColor:()=>m.fillColor,focusStrokeInner:()=>m.focusStrokeInner,focusStrokeOuter:()=>m.focusStrokeOuter,focusStrokeWidth:()=>m.focusStrokeWidth,foregroundOnAccentActive:()=>m.foregroundOnAccentActive,foregroundOnAccentActiveLarge:()=>m.foregroundOnAccentActiveLarge,foregroundOnAccentFocus:()=>m.foregroundOnAccentFocus,foregroundOnAccentFocusLarge:()=>m.foregroundOnAccentFocusLarge,foregroundOnAccentHover:()=>m.foregroundOnAccentHover,foregroundOnAccentHoverLarge:()=>m.foregroundOnAccentHoverLarge,foregroundOnAccentRest:()=>m.foregroundOnAccentRest,foregroundOnAccentRestLarge:()=>m.foregroundOnAccentRestLarge,fuiCardFillColor:()=>ut,fuiCardForegroundColor:()=>mt,fuiFillColor:()=>ct,neutralFillActive:()=>m.neutralFillActive,neutralFillActiveDelta:()=>m.neutralFillActiveDelta,neutralFillFocus:()=>m.neutralFillFocus,neutralFillFocusDelta:()=>m.neutralFillFocusDelta,neutralFillHover:()=>m.neutralFillHover,neutralFillHoverDelta:()=>m.neutralFillHoverDelta,neutralFillInputActive:()=>m.neutralFillInputActive,neutralFillInputActiveDelta:()=>m.neutralFillInputActiveDelta,neutralFillInputFocus:()=>m.neutralFillInputFocus,neutralFillInputFocusDelta:()=>m.neutralFillInputFocusDelta,neutralFillInputHover:()=>m.neutralFillInputHover,neutralFillInputHoverDelta:()=>m.neutralFillInputHoverDelta,neutralFillInputRest:()=>m.neutralFillInputRest,neutralFillInputRestDelta:()=>m.neutralFillInputRestDelta,neutralFillLayerRest:()=>m.neutralFillLayerRest,neutralFillLayerRestDelta:()=>m.neutralFillLayerRestDelta,neutralFillRest:()=>m.neutralFillRest,neutralFillRestDelta:()=>m.neutralFillRestDelta,neutralFillStealthActive:()=>m.neutralFillStealthActive,neutralFillStealthActiveDelta:()=>m.neutralFillStealthActiveDelta,neutralFillStealthFocus:()=>m.neutralFillStealthFocus,neutralFillStealthFocusDelta:()=>m.neutralFillStealthFocusDelta,neutralFillStealthHover:()=>m.neutralFillStealthHover,neutralFillStealthHoverDelta:()=>m.neutralFillStealthHoverDelta,neutralFillStealthRest:()=>m.neutralFillStealthRest,neutralFillStealthRestDelta:()=>m.neutralFillStealthRestDelta,neutralFillStrongActive:()=>m.neutralFillStrongActive,neutralFillStrongActiveDelta:()=>m.neutralFillStrongActiveDelta,neutralFillStrongFocus:()=>m.neutralFillStrongFocus,neutralFillStrongFocusDelta:()=>m.neutralFillStrongFocusDelta,neutralFillStrongHover:()=>m.neutralFillStrongHover,neutralFillStrongHoverDelta:()=>m.neutralFillStrongHoverDelta,neutralFillStrongRest:()=>m.neutralFillStrongRest,neutralFillStrongRestDelta:()=>m.neutralFillStrongRestDelta,neutralForeground:()=>ht,neutralForegroundHint:()=>m.neutralForegroundHint,neutralForegroundRest:()=>m.neutralForegroundRest,neutralLayer1:()=>m.neutralLayer1,neutralLayer2:()=>m.neutralLayer2,neutralLayer3:()=>m.neutralLayer3,neutralLayer4:()=>m.neutralLayer4,neutralLayerCardContainer:()=>m.neutralLayerCardContainer,neutralLayerFloating:()=>m.neutralLayerFloating,neutralPalette:()=>m.neutralPalette,neutralStrokeActive:()=>m.neutralStrokeActive,neutralStrokeActiveDelta:()=>m.neutralStrokeActiveDelta,neutralStrokeDividerRest:()=>m.neutralStrokeDividerRest,neutralStrokeDividerRestDelta:()=>m.neutralStrokeDividerRestDelta,neutralStrokeFocus:()=>m.neutralStrokeFocus,neutralStrokeFocusDelta:()=>m.neutralStrokeFocusDelta,neutralStrokeHover:()=>m.neutralStrokeHover,neutralStrokeHoverDelta:()=>m.neutralStrokeHoverDelta,neutralStrokeRest:()=>m.neutralStrokeRest,neutralStrokeRestDelta:()=>m.neutralStrokeRestDelta,strokeWidth:()=>m.strokeWidth,typeRampBaseFontSize:()=>m.typeRampBaseFontSize,typeRampBaseLineHeight:()=>m.typeRampBaseLineHeight,typeRampMinus1FontSize:()=>m.typeRampMinus1FontSize,typeRampMinus1LineHeight:()=>m.typeRampMinus1LineHeight,typeRampMinus2FontSize:()=>m.typeRampMinus2FontSize,typeRampMinus2LineHeight:()=>m.typeRampMinus2LineHeight,typeRampPlus1FontSize:()=>m.typeRampPlus1FontSize,typeRampPlus1LineHeight:()=>m.typeRampPlus1LineHeight,typeRampPlus2FontSize:()=>m.typeRampPlus2FontSize,typeRampPlus2LineHeight:()=>m.typeRampPlus2LineHeight,typeRampPlus3FontSize:()=>m.typeRampPlus3FontSize,typeRampPlus3LineHeight:()=>m.typeRampPlus3LineHeight,typeRampPlus4FontSize:()=>m.typeRampPlus4FontSize,typeRampPlus4LineHeight:()=>m.typeRampPlus4LineHeight,typeRampPlus5FontSize:()=>m.typeRampPlus5FontSize,typeRampPlus5LineHeight:()=>m.typeRampPlus5LineHeight,typeRampPlus6FontSize:()=>m.typeRampPlus6FontSize,typeRampPlus6LineHeight:()=>m.typeRampPlus6LineHeight});var i={};o.r(i),o.d(i,{accentPaletteValue:()=>$t,baseLayerLuminanceValue:()=>Dt,controlCornerRadiusValue:()=>_t,designUnitValue:()=>kt,directionValue:()=>Ct,neutralPaletteValue:()=>St});var n=o(8092),r=o(3147),s=o(5951),l=o(7675);const d=(e,t)=>r.css`
|
|
1
|
+
(self.webpackChunk_genesislcap_design_system_configurator=self.webpackChunk_genesislcap_design_system_configurator||[]).push([[88],{7530:function(e){e.exports=function(){"use strict";var e=1e3,t=6e4,o=36e5,a="millisecond",i="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 a=String(e);return!a||a.length>=t?e:""+Array(t+1-a.length).join(o)+e},b={s:g,z:function(e){var t=-e.utcOffset(),o=Math.abs(t),a=Math.floor(o/60),i=o%60;return(t<=0?"+":"-")+g(a,2,"0")+":"+g(i,2,"0")},m:function e(t,o){if(t.date()<o.date())return-e(o,t);var a=12*(o.year()-t.year())+(o.month()-t.month()),i=t.clone().add(a,d),n=o-i<0,s=t.clone().add(a+(n?-1:1),d);return+(-(a+(o-i)/(n?i-s:s-i))||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:i,ms:a,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,a){var i;if(!t)return y;if("string"==typeof t){var n=t.toLowerCase();w[n]&&(i=n),o&&(w[n]=o,i=n);var s=t.split("-");if(!i&&s.length>1)return e(s[0])}else{var r=t.name;w[r]=t,i=r}return!a&&i&&(y=i),i||!a&&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 a=t.match(m);if(a){var i=a[2]-1||0,n=(a[7]||"0").substring(0,3);return o?new Date(Date.UTC(a[1],i,a[3]||1,a[4]||0,a[5]||0,a[6]||0,n)):new Date(a[1],i,a[3]||1,a[4]||0,a[5]||0,a[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,a=!!S.u(t)||t,c=S.p(e),h=function(e,t){var i=S.w(o.$u?Date.UTC(o.$y,t,e):new Date(o.$y,t,e),o);return a?i:i.endOf(r)},m=function(e,t){return S.w(o.toDate()[e].apply(o.toDate("s"),(a?[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 a?h(1,0):h(31,11);case d:return a?h(1,v):h(0,v+1);case l:var y=this.$locale().weekStart||0,w=(f<y?f+7:f)-y;return h(a?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 i: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[i]=c+"Seconds",o[a]=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(a,c){var p,h=this;a=Number(a);var m=S.p(c),f=function(e){var t=$(h);return S.w(t.date(t.date()+Math.round(e*a)),h)};if(m===d)return this.set(d,this.$M+a);if(m===u)return this.set(u,this.$y+a);if(m===r)return f(1);if(m===l)return f(7);var v=(p={},p[n]=t,p[s]=o,p[i]=e,p)[m]||1,g=this.$d.getTime()+a*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 a=e||"YYYY-MM-DDTHH:mm:ssZ",i=S.z(this),n=this.$H,s=this.$m,r=this.$M,l=o.weekdays,d=o.months,c=function(e,o,i,n){return e&&(e[o]||e(t,a))||i[o].slice(0,n)},u=function(e){return S.s(n%12||12,e,"0")},p=o.meridiem||function(e,t,o){var a=e<12?"AM":"PM";return o?a.toLowerCase():a},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:i};return a.replace(f,(function(e,t){return t||m[e]||i.replace(":","")}))},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(a,p,h){var m,f=S.p(p),v=$(a),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[i]=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(),a=F(e,t,!0);return a&&(o.$L=a),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",a],["$s",i],["$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={},$}()},8113: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}}}()},5088:(e,t,o)=>{"use strict";o.r(t),o.d(t,{ActionsMenu:()=>p,Anchor:()=>g,Badge:()=>$,Banner:()=>T,BaseDatasource:()=>Ur,Breadcrumb:()=>M,BreadcrumbItem:()=>B,Button:()=>Y,CSSVarsTokenMapper:()=>Pr,Card:()=>J,Checkbox:()=>ie,Combobox:()=>ce,ConnectionIndicator:()=>be,DEFUALT_FILTER_BAR_COLUMNS:()=>Fa,DataGrid:()=>Fe,DataGridCell:()=>_e,DataGridDatasource:()=>Yr,DataGridRow:()=>Le,DatePicker:()=>We,Dialog:()=>Ut,DialogElement:()=>Vt,Disclosure:()=>Xt,Divider:()=>to,DropdownMenu:()=>po,ErrorBanner:()=>go,ErrorBoundary:()=>_o,ErrorBoundaryEvent:()=>yo,ErrorDialog:()=>Ao,FaPrefixFromStyle:()=>fi,FileUpload:()=>Jo,Filter:()=>ha,FilterBar:()=>$a,FilterEvents:()=>pa,FlexLayout:()=>Ra,FlexMediaQueriesEnum:()=>Da,Flipper:()=>Na,Flyout:()=>za,FoundationDesignSystemProvider:()=>Et,FoundationRouter:()=>Qr,GridLayout:()=>Qa,GridLayoutItem:()=>ii,GridMediaQueriesEnum:()=>Ya,Icon:()=>vi,ListboxOption:()=>wi,Menu:()=>Ci,MenuItem:()=>Li,Modal:()=>Bi,Multiselect:()=>Xi,MultiselectDatasource:()=>Xr,NumberField:()=>Qi,OptionsDatasource:()=>qr,Popper:()=>sn,Progress:()=>pn,ProgressRing:()=>bn,Radio:()=>Sn,RadioGroup:()=>Tn,SegmentedControl:()=>En,SegmentedItem:()=>zn,Select:()=>qn,Skeleton:()=>es,Slider:()=>ls,Snackbar:()=>fs,Switch:()=>ys,Tab:()=>Ds,TabPanel:()=>Rs,Tabs:()=>Is,TextArea:()=>js,TextField:()=>Xs,Toast:()=>ar,Toolbar:()=>rr,Tooltip:()=>hr,TreeItem:()=>yr,TreeView:()=>Dr,UrlInput:()=>Ar,accentFillActive:()=>m.accentFillActive,accentFillActiveDelta:()=>m.accentFillActiveDelta,accentFillFocus:()=>m.accentFillFocus,accentFillFocusDelta:()=>m.accentFillFocusDelta,accentFillHover:()=>m.accentFillHover,accentFillHoverDelta:()=>m.accentFillHoverDelta,accentFillRest:()=>m.accentFillRest,accentFillRestDelta:()=>m.accentFillRestDelta,accentForegroundActive:()=>m.accentForegroundActive,accentForegroundActiveDelta:()=>m.accentForegroundActiveDelta,accentForegroundFocus:()=>m.accentForegroundFocus,accentForegroundFocusDelta:()=>m.accentForegroundFocusDelta,accentForegroundHover:()=>m.accentForegroundHover,accentForegroundHoverDelta:()=>m.accentForegroundHoverDelta,accentForegroundRest:()=>m.accentForegroundRest,accentForegroundRestDelta:()=>m.accentForegroundRestDelta,accentPalette:()=>m.accentPalette,accentPaletteValue:()=>Dt,actionsMenuBaseStyles:()=>d,baseComponents:()=>Nr,baseHeightMultiplier:()=>m.baseHeightMultiplier,baseLayerLuminance:()=>m.baseLayerLuminance,baseLayerLuminanceValue:()=>_t,black:()=>Ze,bodyFont:()=>m.bodyFont,closeIcon:()=>Bt,configureDesignSystem:()=>St,controlCornerRadius:()=>m.controlCornerRadius,controlCornerRadiusValue:()=>Ot,createDesignSystemProxy:()=>Er,defaultAnchorConfig:()=>y,defaultBadgeConfig:()=>D,defaultBreadcrumbConfig:()=>E,defaultBreadcrumbItemConfig:()=>z,defaultButtonConfig:()=>q,defaultCardConfig:()=>ee,defaultCheckboxConfig:()=>se,defaultComboboxConfig:()=>pe,defaultDataGridCellConfig:()=>Oe,defaultDataGridConfig:()=>Se,defaultDataGridRowConfig:()=>Me,defaultDatePickerConfig:()=>Ye,defaultDialogConfig:()=>jt,defaultDisclosureConfig:()=>Zt,defaultDividerConfig:()=>ao,defaultFileUploadConfig:()=>ea,defaultFillColor:()=>Qe,defaultFlexLayoutConfig:()=>Ta,defaultFlipperConfig:()=>Ia,defaultFlyoutConfig:()=>Va,defaultGridLayoutConfig:()=>Za,defaultGridLayoutItemConfig:()=>ai,defaultIconConfig:()=>mi,defaultListboxOptionConfig:()=>Fi,defaultMenuConfig:()=>ki,defaultMenuItemConfig:()=>Mi,defaultModalConfig:()=>Hi,defaultMultiselectConfig:()=>qi,defaultNeutralForegroundContrast:()=>pt,defaultNumberFieldConfig:()=>tn,defaultProgressConfig:()=>mn,defaultProgressRingConfig:()=>wn,defaultRadioConfig:()=>Cn,defaultRadioGroupConfig:()=>Ln,defaultSegmentedControlConfig:()=>Pn,defaultSegmentedItemConfig:()=>Vn,defaultSelectConfig:()=>Kn,defaultSkeletonConfig:()=>os,defaultSliderConfig:()=>cs,defaultSwitchConfig:()=>xs,defaultTabConfig:()=>_s,defaultTabPanelConfig:()=>As,defaultTabsConfig:()=>Hs,defaultTextAreaConfig:()=>Us,defaultTextFieldConfig:()=>Zs,defaultToastConfig:()=>or,defaultToolbarConfig:()=>dr,defaultTooltipConfig:()=>fr,defaultTreeItemConfig:()=>xr,defaultTreeViewConfig:()=>_r,defaultUrlInputConfig:()=>Lr,defineFactory:()=>Kr,density:()=>m.density,designToken:()=>gt,designUnit:()=>m.designUnit,designUnitValue:()=>Tt,direction:()=>m.direction,directionValue:()=>kt,disabledOpacity:()=>m.disabledOpacity,dropdownMenuBaseStyles:()=>so,errorDialogTemplate:()=>Ro,extractMenuItems:()=>lo,fillColor:()=>m.fillColor,flyoutAnimationTime:()=>Ha,focusStrokeInner:()=>m.focusStrokeInner,focusStrokeOuter:()=>m.focusStrokeOuter,focusStrokeWidth:()=>m.focusStrokeWidth,foregroundOnAccentActive:()=>m.foregroundOnAccentActive,foregroundOnAccentActiveLarge:()=>m.foregroundOnAccentActiveLarge,foregroundOnAccentFocus:()=>m.foregroundOnAccentFocus,foregroundOnAccentFocusLarge:()=>m.foregroundOnAccentFocusLarge,foregroundOnAccentHover:()=>m.foregroundOnAccentHover,foregroundOnAccentHoverLarge:()=>m.foregroundOnAccentHoverLarge,foregroundOnAccentRest:()=>m.foregroundOnAccentRest,foregroundOnAccentRestLarge:()=>m.foregroundOnAccentRestLarge,foundationActionsMenu:()=>h,foundationActionsMenuStyles:()=>c,foundationActionsMenuTemplate:()=>u,foundationAnchor:()=>w,foundationAnchorShadowOptions:()=>b,foundationAnchorStyles:()=>f,foundationAnchorTemplate:()=>v,foundationBadge:()=>C,foundationBadgeShadowOptions:()=>S,foundationBadgeStyles:()=>x,foundationBadgeTemplate:()=>F,foundationBanner:()=>R,foundationBannerShadowOptions:()=>O,foundationBannerStyles:()=>_,foundationBannerTemplate:()=>k,foundationBreadcrumb:()=>I,foundationBreadcrumbItem:()=>j,foundationBreadcrumbItemShadowOptions:()=>G,foundationBreadcrumbItemStyles:()=>P,foundationBreadcrumbItemTemplate:()=>H,foundationBreadcrumbShadowOptions:()=>N,foundationBreadcrumbStyles:()=>L,foundationBreadcrumbTemplate:()=>A,foundationButton:()=>X,foundationButtonShadowOptions:()=>W,foundationButtonStyles:()=>V,foundationButtonTemplate:()=>U,foundationCard:()=>te,foundationCardShadowOptions:()=>Q,foundationCardStyles:()=>K,foundationCardTemplate:()=>Z,foundationCheckbox:()=>re,foundationCheckboxShadowOptions:()=>ne,foundationCheckboxStyles:()=>oe,foundationCheckboxTemplate:()=>ae,foundationCombobox:()=>he,foundationComboboxShadowOptions:()=>ue,foundationComboboxStyles:()=>le,foundationComboboxTemplate:()=>de,foundationConnectionIndicator:()=>ye,foundationConnectionIndicatorStyles:()=>ve,foundationConnectionIndicatorTemplate:()=>ge,foundationDataGrid:()=>De,foundationDataGridCell:()=>Te,foundationDataGridCellShadowOptions:()=>ke,foundationDataGridCellStyles:()=>Ce,foundationDataGridCellTemplate:()=>r.dataGridCellTemplate,foundationDataGridRow:()=>Ne,foundationDataGridRowShadowOptions:()=>Ae,foundationDataGridRowStyles:()=>Re,foundationDataGridRowTemplate:()=>r.dataGridRowTemplate,foundationDataGridShadowOptions:()=>$e,foundationDataGridStyles:()=>we,foundationDataGridTemplate:()=>xe,foundationDatePicker:()=>qe,foundationDatePickerShadowOptions:()=>Ue,foundationDatePickerStyles:()=>je,foundationDatePickerTemplate:()=>Ve,foundationDesignSystemProvider:()=>It,foundationDialog:()=>Yt,foundationDialogShadowOptions:()=>zt,foundationDialogStyles:()=>Ht,foundationDialogTemplate:()=>Gt,foundationDisclosure:()=>Jt,foundationDisclosureShadowOptions:()=>Kt,foundationDisclosureStyles:()=>Wt,foundationDisclosureTemplate:()=>qt,foundationDivider:()=>io,foundationDividerShadowOptions:()=>oo,foundationDividerStyles:()=>Qt,foundationDividerTemplate:()=>eo,foundationDropdownMenu:()=>ho,foundationDropdownMenuStyles:()=>ro,foundationDropdownMenuTemplate:()=>uo,foundationErrorBanner:()=>bo,foundationErrorBannerShadowOptions:()=>vo,foundationErrorBannerTemplate:()=>fo,foundationErrorBoundary:()=>ko,foundationErrorBoundaryShadowOptions:()=>Co,foundationErrorBoundaryTemplate:()=>Do,foundationErrorDialog:()=>Mo,foundationErrorDialogShadowOptions:()=>Lo,foundationErrorDialogStyles:()=>Oo,foundationFileUpload:()=>ta,foundationFileUploadShadowOptions:()=>Qo,foundationFileUploadStyles:()=>Uo,foundationFileUploadTemplate:()=>Wo,foundationFilter:()=>ma,foundationFilterBar:()=>Sa,foundationFilterBarStyles:()=>va,foundationFilterBarTemplate:()=>xa,foundationFilterStyles:()=>oa,foundationFilterTemplate:()=>ua,foundationFlexLayout:()=>La,foundationFlexLayoutShadowOptions:()=>Oa,foundationFlexLayoutStyles:()=>_a,foundationFlexLayoutTemplate:()=>ka,foundationFlipper:()=>Pa,foundationFlipperShadowOptions:()=>Ea,foundationFlipperStyles:()=>Aa,foundationFlipperTemplate:()=>Ma,foundationFlyout:()=>Ua,foundationFlyoutShadowOptions:()=>ja,foundationFlyoutStyles:()=>Ba,foundationFlyoutTemplate:()=>Ga,foundationGridLayout:()=>ei,foundationGridLayoutItem:()=>ni,foundationGridLayoutItemShadowOptions:()=>oi,foundationGridLayoutItemTemplate:()=>ti,foundationGridLayoutShadowOptions:()=>Ka,foundationGridLayoutStyles:()=>qa,foundationGridLayoutTemplate:()=>Xa,foundationIcon:()=>gi,foundationIconShadowOptions:()=>hi,foundationIconStyles:()=>ui,foundationIconTemplate:()=>pi,foundationListboxOption:()=>$i,foundationListboxOptionShadowOptions:()=>xi,foundationListboxOptionStyles:()=>bi,foundationListboxOptionTemplate:()=>yi,foundationMenu:()=>Oi,foundationMenuItem:()=>Ni,foundationMenuItemShadowOptions:()=>Ai,foundationMenuItemStyles:()=>Ti,foundationMenuItemTemplate:()=>Ri,foundationMenuShadowOptions:()=>_i,foundationMenuStyles:()=>Si,foundationMenuTemplate:()=>Di,foundationModal:()=>Gi,foundationModalShadowOptions:()=>Pi,foundationModalStyles:()=>Ei,foundationModalTemplate:()=>Ii,foundationMultiselect:()=>Ki,foundationMultiselectShadowOptions:()=>Wi,foundationNumberField:()=>on,foundationNumberFieldShadowOptions:()=>en,foundationNumberFieldStyles:()=>Zi,foundationNumberFieldTemplate:()=>Ji,foundationPopper:()=>dn,foundationProgress:()=>fn,foundationProgressRing:()=>xn,foundationProgressRingShadowOptions:()=>yn,foundationProgressRingStyles:()=>vn,foundationProgressRingTemplate:()=>gn,foundationProgressShadowOptions:()=>hn,foundationProgressStyles:()=>cn,foundationProgressTemplate:()=>un,foundationRadio:()=>_n,foundationRadioGroup:()=>An,foundationRadioGroupShadowOptions:()=>Rn,foundationRadioGroupStyles:()=>kn,foundationRadioGroupTemplate:()=>On,foundationRadioShadowOptions:()=>Dn,foundationRadioStyles:()=>Fn,foundationRadioTemplate:()=>$n,foundationSegmentedControl:()=>Hn,foundationSegmentedControlShadowOptions:()=>In,foundationSegmentedControlStyles:()=>Mn,foundationSegmentedControlTemplate:()=>Nn,foundationSegmentedItem:()=>Un,foundationSegmentedItemShadowOptions:()=>jn,foundationSegmentedItemStyles:()=>Bn,foundationSegmentedItemTemplate:()=>Gn,foundationSelect:()=>Zn,foundationSelectShadowOptions:()=>Xn,foundationSelectStyles:()=>Yn,foundationSelectTemplate:()=>Wn,foundationSkeleton:()=>as,foundationSkeletonShadowOptions:()=>ts,foundationSkeletonStyles:()=>Jn,foundationSkeletonTemplate:()=>Qn,foundationSlider:()=>us,foundationSliderShadowOptions:()=>ds,foundationSliderStyles:()=>is,foundationSliderTemplate:()=>rs,foundationSnackbar:()=>vs,foundationSnackbarShadowOptions:()=>ms,foundationSnackbarStyles:()=>ps,foundationSnackbarTemplate:()=>hs,foundationSwitch:()=>Fs,foundationSwitchShadowOptions:()=>ws,foundationSwitchStyles:()=>gs,foundationSwitchTemplate:()=>bs,foundationTab:()=>ks,foundationTabPanel:()=>Ms,foundationTabPanelShadowOptions:()=>Ls,foundationTabPanelStyles:()=>Os,foundationTabPanelTemplate:()=>Ts,foundationTabShadowOptions:()=>Cs,foundationTabStyles:()=>$s,foundationTabTemplate:()=>Ss,foundationTabs:()=>Bs,foundationTabsShadowOptions:()=>Ps,foundationTabsStyles:()=>Ns,foundationTabsTemplate:()=>Es,foundationTextArea:()=>Ys,foundationTextAreaShadowOptions:()=>Vs,foundationTextAreaStyles:()=>Gs,foundationTextAreaTemplate:()=>zs,foundationTextField:()=>Js,foundationTextFieldShadowOptions:()=>Ks,foundationTextFieldStyles:()=>Ws,foundationTextFieldTemplate:()=>qs,foundationToast:()=>ir,foundationToastShadowOptions:()=>tr,foundationToastStyles:()=>Qs,foundationToastTemplate:()=>er,foundationToolbar:()=>cr,foundationToolbarShadowOptions:()=>lr,foundationToolbarStyles:()=>nr,foundationToolbarTemplate:()=>sr,foundationTooltip:()=>vr,foundationTooltipShadowOptions:()=>mr,foundationTooltipStyles:()=>ur,foundationTooltipTemplate:()=>pr,foundationTreeItem:()=>Fr,foundationTreeItemShadowOptions:()=>wr,foundationTreeItemStyles:()=>gr,foundationTreeItemTemplate:()=>br,foundationTreeView:()=>kr,foundationTreeViewShadowOptions:()=>Cr,foundationTreeViewStyles:()=>$r,foundationTreeViewTemplate:()=>Sr,foundationUrlInput:()=>Mr,foundationUrlInputShadowOptions:()=>Rr,foundationUrlInputStyles:()=>Or,fuiAccentPalette:()=>lt,fuiAccentSwatch:()=>rt,fuiCardFillColor:()=>ut,fuiCardForegroundColor:()=>mt,fuiDefaultCardFillColor:()=>tt,fuiDefaultCardPalette:()=>ot,fuiFillColor:()=>ct,fuiNeutralPalette:()=>nt,fuiNeutralSwatch:()=>it,getDefaultConfig:()=>xt,getDropdownMenuTemplate:()=>co,getErrorDialogTemplate:()=>To,getExports:()=>Ft,getFontawesomeIconsCss:()=>ci,getPrefixedFileUpload:()=>Yo,getPrefixedMultiselect:()=>Ui,getTypeRampValue:()=>$t,jsonConverter:()=>nn,mapType:()=>ga,maxheight:()=>ji,mixinFoundationFontFamily:()=>Lt,multiselectStyles:()=>Vi,multiselectTemplate:()=>Yi,neutralFillActive:()=>m.neutralFillActive,neutralFillActiveDelta:()=>m.neutralFillActiveDelta,neutralFillFocus:()=>m.neutralFillFocus,neutralFillFocusDelta:()=>m.neutralFillFocusDelta,neutralFillHover:()=>m.neutralFillHover,neutralFillHoverDelta:()=>m.neutralFillHoverDelta,neutralFillInputActive:()=>m.neutralFillInputActive,neutralFillInputActiveDelta:()=>m.neutralFillInputActiveDelta,neutralFillInputFocus:()=>m.neutralFillInputFocus,neutralFillInputFocusDelta:()=>m.neutralFillInputFocusDelta,neutralFillInputHover:()=>m.neutralFillInputHover,neutralFillInputHoverDelta:()=>m.neutralFillInputHoverDelta,neutralFillInputRest:()=>m.neutralFillInputRest,neutralFillInputRestDelta:()=>m.neutralFillInputRestDelta,neutralFillLayerRest:()=>m.neutralFillLayerRest,neutralFillLayerRestDelta:()=>m.neutralFillLayerRestDelta,neutralFillRest:()=>m.neutralFillRest,neutralFillRestDelta:()=>m.neutralFillRestDelta,neutralFillStealthActive:()=>m.neutralFillStealthActive,neutralFillStealthActiveDelta:()=>m.neutralFillStealthActiveDelta,neutralFillStealthFocus:()=>m.neutralFillStealthFocus,neutralFillStealthFocusDelta:()=>m.neutralFillStealthFocusDelta,neutralFillStealthHover:()=>m.neutralFillStealthHover,neutralFillStealthHoverDelta:()=>m.neutralFillStealthHoverDelta,neutralFillStealthRest:()=>m.neutralFillStealthRest,neutralFillStealthRestDelta:()=>m.neutralFillStealthRestDelta,neutralFillStrongActive:()=>m.neutralFillStrongActive,neutralFillStrongActiveDelta:()=>m.neutralFillStrongActiveDelta,neutralFillStrongFocus:()=>m.neutralFillStrongFocus,neutralFillStrongFocusDelta:()=>m.neutralFillStrongFocusDelta,neutralFillStrongHover:()=>m.neutralFillStrongHover,neutralFillStrongHoverDelta:()=>m.neutralFillStrongHoverDelta,neutralFillStrongRest:()=>m.neutralFillStrongRest,neutralFillStrongRestDelta:()=>m.neutralFillStrongRestDelta,neutralForeground:()=>ht,neutralForegroundHint:()=>m.neutralForegroundHint,neutralForegroundRest:()=>m.neutralForegroundRest,neutralLayer1:()=>m.neutralLayer1,neutralLayer2:()=>m.neutralLayer2,neutralLayer3:()=>m.neutralLayer3,neutralLayer4:()=>m.neutralLayer4,neutralLayerCardContainer:()=>m.neutralLayerCardContainer,neutralLayerFloating:()=>m.neutralLayerFloating,neutralPalette:()=>m.neutralPalette,neutralPaletteValue:()=>Ct,neutralStrokeActive:()=>m.neutralStrokeActive,neutralStrokeActiveDelta:()=>m.neutralStrokeActiveDelta,neutralStrokeDividerRest:()=>m.neutralStrokeDividerRest,neutralStrokeDividerRestDelta:()=>m.neutralStrokeDividerRestDelta,neutralStrokeFocus:()=>m.neutralStrokeFocus,neutralStrokeFocusDelta:()=>m.neutralStrokeFocusDelta,neutralStrokeHover:()=>m.neutralStrokeHover,neutralStrokeHoverDelta:()=>m.neutralStrokeHoverDelta,neutralStrokeRest:()=>m.neutralStrokeRest,neutralStrokeRestDelta:()=>m.neutralStrokeRestDelta,paletteFromHex:()=>yt,provideDesignSystem:()=>Ir,provideTokens:()=>vt,registerFoundationDesignSystem:()=>el,strokeWidth:()=>m.strokeWidth,swatchConverter:()=>bt,tagFor:()=>Zr,typeRampBaseFontSize:()=>m.typeRampBaseFontSize,typeRampBaseLineHeight:()=>m.typeRampBaseLineHeight,typeRampMinus1FontSize:()=>m.typeRampMinus1FontSize,typeRampMinus1LineHeight:()=>m.typeRampMinus1LineHeight,typeRampMinus2FontSize:()=>m.typeRampMinus2FontSize,typeRampMinus2LineHeight:()=>m.typeRampMinus2LineHeight,typeRampPlus1FontSize:()=>m.typeRampPlus1FontSize,typeRampPlus1LineHeight:()=>m.typeRampPlus1LineHeight,typeRampPlus2FontSize:()=>m.typeRampPlus2FontSize,typeRampPlus2LineHeight:()=>m.typeRampPlus2LineHeight,typeRampPlus3FontSize:()=>m.typeRampPlus3FontSize,typeRampPlus3LineHeight:()=>m.typeRampPlus3LineHeight,typeRampPlus4FontSize:()=>m.typeRampPlus4FontSize,typeRampPlus4LineHeight:()=>m.typeRampPlus4LineHeight,typeRampPlus5FontSize:()=>m.typeRampPlus5FontSize,typeRampPlus5LineHeight:()=>m.typeRampPlus5LineHeight,typeRampPlus6FontSize:()=>m.typeRampPlus6FontSize,typeRampPlus6LineHeight:()=>m.typeRampPlus6LineHeight,urlinputTemplate:()=>Tr,white:()=>Ke});var a={};o.r(a),o.d(a,{accentFillActive:()=>m.accentFillActive,accentFillActiveDelta:()=>m.accentFillActiveDelta,accentFillFocus:()=>m.accentFillFocus,accentFillFocusDelta:()=>m.accentFillFocusDelta,accentFillHover:()=>m.accentFillHover,accentFillHoverDelta:()=>m.accentFillHoverDelta,accentFillRest:()=>m.accentFillRest,accentFillRestDelta:()=>m.accentFillRestDelta,accentForegroundActive:()=>m.accentForegroundActive,accentForegroundActiveDelta:()=>m.accentForegroundActiveDelta,accentForegroundFocus:()=>m.accentForegroundFocus,accentForegroundFocusDelta:()=>m.accentForegroundFocusDelta,accentForegroundHover:()=>m.accentForegroundHover,accentForegroundHoverDelta:()=>m.accentForegroundHoverDelta,accentForegroundRest:()=>m.accentForegroundRest,accentForegroundRestDelta:()=>m.accentForegroundRestDelta,accentPalette:()=>m.accentPalette,baseHeightMultiplier:()=>m.baseHeightMultiplier,baseLayerLuminance:()=>m.baseLayerLuminance,bodyFont:()=>m.bodyFont,controlCornerRadius:()=>m.controlCornerRadius,defaultNeutralForegroundContrast:()=>pt,density:()=>m.density,designUnit:()=>m.designUnit,direction:()=>m.direction,disabledOpacity:()=>m.disabledOpacity,fillColor:()=>m.fillColor,focusStrokeInner:()=>m.focusStrokeInner,focusStrokeOuter:()=>m.focusStrokeOuter,focusStrokeWidth:()=>m.focusStrokeWidth,foregroundOnAccentActive:()=>m.foregroundOnAccentActive,foregroundOnAccentActiveLarge:()=>m.foregroundOnAccentActiveLarge,foregroundOnAccentFocus:()=>m.foregroundOnAccentFocus,foregroundOnAccentFocusLarge:()=>m.foregroundOnAccentFocusLarge,foregroundOnAccentHover:()=>m.foregroundOnAccentHover,foregroundOnAccentHoverLarge:()=>m.foregroundOnAccentHoverLarge,foregroundOnAccentRest:()=>m.foregroundOnAccentRest,foregroundOnAccentRestLarge:()=>m.foregroundOnAccentRestLarge,fuiCardFillColor:()=>ut,fuiCardForegroundColor:()=>mt,fuiFillColor:()=>ct,neutralFillActive:()=>m.neutralFillActive,neutralFillActiveDelta:()=>m.neutralFillActiveDelta,neutralFillFocus:()=>m.neutralFillFocus,neutralFillFocusDelta:()=>m.neutralFillFocusDelta,neutralFillHover:()=>m.neutralFillHover,neutralFillHoverDelta:()=>m.neutralFillHoverDelta,neutralFillInputActive:()=>m.neutralFillInputActive,neutralFillInputActiveDelta:()=>m.neutralFillInputActiveDelta,neutralFillInputFocus:()=>m.neutralFillInputFocus,neutralFillInputFocusDelta:()=>m.neutralFillInputFocusDelta,neutralFillInputHover:()=>m.neutralFillInputHover,neutralFillInputHoverDelta:()=>m.neutralFillInputHoverDelta,neutralFillInputRest:()=>m.neutralFillInputRest,neutralFillInputRestDelta:()=>m.neutralFillInputRestDelta,neutralFillLayerRest:()=>m.neutralFillLayerRest,neutralFillLayerRestDelta:()=>m.neutralFillLayerRestDelta,neutralFillRest:()=>m.neutralFillRest,neutralFillRestDelta:()=>m.neutralFillRestDelta,neutralFillStealthActive:()=>m.neutralFillStealthActive,neutralFillStealthActiveDelta:()=>m.neutralFillStealthActiveDelta,neutralFillStealthFocus:()=>m.neutralFillStealthFocus,neutralFillStealthFocusDelta:()=>m.neutralFillStealthFocusDelta,neutralFillStealthHover:()=>m.neutralFillStealthHover,neutralFillStealthHoverDelta:()=>m.neutralFillStealthHoverDelta,neutralFillStealthRest:()=>m.neutralFillStealthRest,neutralFillStealthRestDelta:()=>m.neutralFillStealthRestDelta,neutralFillStrongActive:()=>m.neutralFillStrongActive,neutralFillStrongActiveDelta:()=>m.neutralFillStrongActiveDelta,neutralFillStrongFocus:()=>m.neutralFillStrongFocus,neutralFillStrongFocusDelta:()=>m.neutralFillStrongFocusDelta,neutralFillStrongHover:()=>m.neutralFillStrongHover,neutralFillStrongHoverDelta:()=>m.neutralFillStrongHoverDelta,neutralFillStrongRest:()=>m.neutralFillStrongRest,neutralFillStrongRestDelta:()=>m.neutralFillStrongRestDelta,neutralForeground:()=>ht,neutralForegroundHint:()=>m.neutralForegroundHint,neutralForegroundRest:()=>m.neutralForegroundRest,neutralLayer1:()=>m.neutralLayer1,neutralLayer2:()=>m.neutralLayer2,neutralLayer3:()=>m.neutralLayer3,neutralLayer4:()=>m.neutralLayer4,neutralLayerCardContainer:()=>m.neutralLayerCardContainer,neutralLayerFloating:()=>m.neutralLayerFloating,neutralPalette:()=>m.neutralPalette,neutralStrokeActive:()=>m.neutralStrokeActive,neutralStrokeActiveDelta:()=>m.neutralStrokeActiveDelta,neutralStrokeDividerRest:()=>m.neutralStrokeDividerRest,neutralStrokeDividerRestDelta:()=>m.neutralStrokeDividerRestDelta,neutralStrokeFocus:()=>m.neutralStrokeFocus,neutralStrokeFocusDelta:()=>m.neutralStrokeFocusDelta,neutralStrokeHover:()=>m.neutralStrokeHover,neutralStrokeHoverDelta:()=>m.neutralStrokeHoverDelta,neutralStrokeRest:()=>m.neutralStrokeRest,neutralStrokeRestDelta:()=>m.neutralStrokeRestDelta,strokeWidth:()=>m.strokeWidth,typeRampBaseFontSize:()=>m.typeRampBaseFontSize,typeRampBaseLineHeight:()=>m.typeRampBaseLineHeight,typeRampMinus1FontSize:()=>m.typeRampMinus1FontSize,typeRampMinus1LineHeight:()=>m.typeRampMinus1LineHeight,typeRampMinus2FontSize:()=>m.typeRampMinus2FontSize,typeRampMinus2LineHeight:()=>m.typeRampMinus2LineHeight,typeRampPlus1FontSize:()=>m.typeRampPlus1FontSize,typeRampPlus1LineHeight:()=>m.typeRampPlus1LineHeight,typeRampPlus2FontSize:()=>m.typeRampPlus2FontSize,typeRampPlus2LineHeight:()=>m.typeRampPlus2LineHeight,typeRampPlus3FontSize:()=>m.typeRampPlus3FontSize,typeRampPlus3LineHeight:()=>m.typeRampPlus3LineHeight,typeRampPlus4FontSize:()=>m.typeRampPlus4FontSize,typeRampPlus4LineHeight:()=>m.typeRampPlus4LineHeight,typeRampPlus5FontSize:()=>m.typeRampPlus5FontSize,typeRampPlus5LineHeight:()=>m.typeRampPlus5LineHeight,typeRampPlus6FontSize:()=>m.typeRampPlus6FontSize,typeRampPlus6LineHeight:()=>m.typeRampPlus6LineHeight});var i={};o.r(i),o.d(i,{accentPaletteValue:()=>Dt,baseLayerLuminanceValue:()=>_t,controlCornerRadiusValue:()=>Ot,designUnitValue:()=>Tt,directionValue:()=>kt,neutralPaletteValue:()=>Ct});var n=o(8092),s=o(3147),r=o(5951),l=o(7675);const d=(e,t)=>s.css`
|
|
2
2
|
:host {
|
|
3
3
|
--actions-opener-height-multiplier: 0.7px;
|
|
4
4
|
--actions-opener-bg-color: 249 254 255;
|
|
@@ -88,9 +88,9 @@
|
|
|
88
88
|
display: flex;
|
|
89
89
|
flex-direction: column;
|
|
90
90
|
}
|
|
91
|
-
`,c=(e,t)=>
|
|
91
|
+
`,c=(e,t)=>s.css`
|
|
92
92
|
${d(e,t)}
|
|
93
|
-
`,u=
|
|
93
|
+
`,u=s.html`
|
|
94
94
|
<div
|
|
95
95
|
class="actions-container${e=>e.isVertical?" actions-vertical":""}"
|
|
96
96
|
part="actions-container"
|
|
@@ -102,17 +102,17 @@
|
|
|
102
102
|
part="actions-opener"
|
|
103
103
|
@click=${e=>e.toggleActionsMenuVisibility()}
|
|
104
104
|
>
|
|
105
|
-
${e=>e.open?"✖":
|
|
105
|
+
${e=>e.open?"✖":s.html`
|
|
106
106
|
${e.name}
|
|
107
107
|
`}
|
|
108
108
|
</fast-button>
|
|
109
109
|
<fast-menu
|
|
110
|
-
${(0,
|
|
110
|
+
${(0,s.ref)("actionsMenu")}
|
|
111
111
|
class="actions-menu ${e=>e.classNames}"
|
|
112
112
|
part="actions-menu"
|
|
113
113
|
>
|
|
114
|
-
${(0,
|
|
115
|
-
${(0,
|
|
114
|
+
${(0,s.repeat)((e=>e.allActions),s.html`
|
|
115
|
+
${(0,s.when)(((e,t)=>e.isDisabled&&e.isDisabled(t.parent.rowData)),s.html`
|
|
116
116
|
<fast-menu-item
|
|
117
117
|
class="menu-item"
|
|
118
118
|
tabindex="${(e,t)=>t.index}"
|
|
@@ -121,7 +121,7 @@
|
|
|
121
121
|
${e=>e.name}
|
|
122
122
|
</fast-menu-item>
|
|
123
123
|
`)}
|
|
124
|
-
${(0,
|
|
124
|
+
${(0,s.when)(((e,t)=>!e.isDisabled||!e.isDisabled(t.parent.rowData)),s.html`
|
|
125
125
|
<fast-menu-item
|
|
126
126
|
class="menu-item"
|
|
127
127
|
tabindex="${(e,t)=>t.index}"
|
|
@@ -134,11 +134,11 @@
|
|
|
134
134
|
`,{positioning:!0})}
|
|
135
135
|
</fast-menu>
|
|
136
136
|
</div>
|
|
137
|
-
`;class p extends
|
|
137
|
+
`;class p extends r.FoundationElement{constructor(){super(...arguments),this.isVertical=!1,this.addDefaultActions=!0,this.autoCloseOnAction=!0,this.name="Actions",this.open=!1}definitionChanged(e,t){var o,a;this.actions=[...null!==(o=this.actions)&&void 0!==o?o:[],...null!==(a=null==t?void 0:t.actions)&&void 0!==a?a:[]],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)}openChanged(){this.classNames=(0,l.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}}(0,n.__decorate)([s.observable],p.prototype,"actions",void 0),(0,n.__decorate)([(0,s.attr)({attribute:"is-vertical",mode:"boolean"})],p.prototype,"isVertical",void 0),(0,n.__decorate)([(0,s.attr)({attribute:"add-default-actions",mode:"boolean"})],p.prototype,"addDefaultActions",void 0),(0,n.__decorate)([(0,s.attr)({attribute:"auto-close-on-action",mode:"boolean"})],p.prototype,"autoCloseOnAction",void 0),(0,n.__decorate)([s.observable],p.prototype,"classNames",void 0),(0,n.__decorate)([s.observable],p.prototype,"definition",void 0),(0,n.__decorate)([s.attr],p.prototype,"name",void 0),(0,n.__decorate)([(0,s.attr)({attribute:"open",mode:"boolean"})],p.prototype,"open",void 0),(0,n.__decorate)([s.attr],p.prototype,"buttonAppearance",void 0);const h=p.compose({baseName:"actions-menu",styles:c,template:u});var m=o(3896);const f=(e,t)=>s.css`
|
|
138
138
|
${(0,m.anchorStyles)(e,t)}
|
|
139
|
-
`,v=(e,t)=>(0,
|
|
139
|
+
`,v=(e,t)=>(0,r.anchorTemplate)(e,t);class g extends m.Anchor{}const b={delegatesFocus:!0,mode:"open"},y={},w=g.compose(Object.assign({baseName:"anchor",template:v,styles:f,shadowOptions:b},y)),x=(e,t)=>s.css`
|
|
140
140
|
${(0,m.badgeStyles)(e,t)}
|
|
141
|
-
`,F=(e,t)=>(0,
|
|
141
|
+
`,F=(e,t)=>(0,r.badgeTemplate)(e,t);class $ extends m.Badge{}const S=void 0,D={},C=$.compose(Object.assign({baseName:"badge",template:F,styles:x,shadowOptions:S},D)),_=s.css`
|
|
142
142
|
@keyframes delete-animate {
|
|
143
143
|
from {
|
|
144
144
|
height: 100px;
|
|
@@ -209,8 +209,8 @@
|
|
|
209
209
|
flex: 1;
|
|
210
210
|
overflow: hidden;
|
|
211
211
|
}
|
|
212
|
-
`,k=
|
|
213
|
-
<div class="banner ${e=>e.dismissAnimation}" ${(0,
|
|
212
|
+
`,k=s.html`
|
|
213
|
+
<div class="banner ${e=>e.dismissAnimation}" ${(0,s.ref)("banner")}>
|
|
214
214
|
<div part="content" class="content">
|
|
215
215
|
<slot name="content"></slot>
|
|
216
216
|
</div>
|
|
@@ -218,23 +218,23 @@
|
|
|
218
218
|
<slot name="action" class="action"></slot>
|
|
219
219
|
</div>
|
|
220
220
|
</div>
|
|
221
|
-
`,O={mode:"open",delegatesFocus:!0};class
|
|
221
|
+
`,O={mode:"open",delegatesFocus:!0};class T extends r.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,n.__decorate)([s.observable],T.prototype,"dismissAnimation",void 0);const R=T.compose({baseName:"banner",styles:_,template:k,shadowOptions:O}),L=(e,t)=>s.css`
|
|
222
222
|
${(0,m.breadcrumbStyles)(e,t)}
|
|
223
|
-
`,A=(e,t)=>(0,
|
|
223
|
+
`,A=(e,t)=>(0,r.breadcrumbTemplate)(e,t);class M extends m.Breadcrumb{}const N=void 0,E={},I=M.compose(Object.assign({baseName:"breadcrumb",template:A,styles:L,shadowOptions:N},E)),P=(e,t)=>s.css`
|
|
224
224
|
${(0,m.breadcrumbItemStyles)(e,t)}
|
|
225
|
-
`,H=(e,t)=>(0,
|
|
225
|
+
`,H=(e,t)=>(0,r.breadcrumbItemTemplate)(e,t);class B extends m.BreadcrumbItem{}const G=void 0,z={separator:"/"},j=B.compose(Object.assign({baseName:"breadcrumb-item",template:H,styles:P,shadowOptions:G},z)),V=(e,t)=>s.css`
|
|
226
226
|
${(0,m.buttonStyles)(e,t)}
|
|
227
|
-
`,U=(e,t)=>(0,
|
|
227
|
+
`,U=(e,t)=>(0,r.buttonTemplate)(e,t);class Y extends m.Button{}const W={delegatesFocus:!0,mode:"open"},q={},X=Y.compose(Object.assign({baseName:"button",template:U,styles:V,shadowOptions:W},q)),K=(e,t)=>s.css`
|
|
228
228
|
${(0,m.cardStyles)(e,t)}
|
|
229
229
|
:host {
|
|
230
230
|
background-color: var(--fui-card-fill-color);
|
|
231
231
|
color: var(--fui-card-foreground-color);
|
|
232
232
|
}
|
|
233
|
-
`,Z=(e,t)=>(0,
|
|
233
|
+
`,Z=(e,t)=>(0,r.cardTemplate)(e,t);class J extends m.Card{}const Q=void 0,ee={},te=J.compose(Object.assign({baseName:"card",template:Z,styles:K,shadowOptions:Q},ee)),oe=(e,t)=>s.css`
|
|
234
234
|
${(0,m.checkboxStyles)(e,t)}
|
|
235
|
-
`,ae=(e,t)=>(0,
|
|
235
|
+
`,ae=(e,t)=>(0,r.checkboxTemplate)(e,t);class ie extends m.Checkbox{}const ne=void 0,se={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 '},re=ie.compose(Object.assign({baseName:"checkbox",template:ae,styles:oe,shadowOptions:ne},se)),le=(e,t)=>s.css`
|
|
236
236
|
${(0,m.comboboxStyles)(e,t)}
|
|
237
|
-
`,de=(e,t)=>(0,
|
|
237
|
+
`,de=(e,t)=>(0,r.comboboxTemplate)(e,t);class ce extends m.Combobox{}const ue=void 0,pe={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 '},he=ce.compose(Object.assign({baseName:"combobox",template:de,styles:le,shadowOptions:ue},pe));var me=o(1440),fe=o(5527);const ve=(e,t)=>s.css`
|
|
238
238
|
:host {
|
|
239
239
|
--light-size: 12px;
|
|
240
240
|
--height: calc(var(--design-unit) * 2px + var(--light-size));
|
|
@@ -285,18 +285,18 @@
|
|
|
285
285
|
text-overflow: ellipsis;
|
|
286
286
|
white-space: nowrap;
|
|
287
287
|
}
|
|
288
|
-
`,ge=
|
|
288
|
+
`,ge=s.html`
|
|
289
289
|
<div class=${e=>(0,l.A)(["light",!0],[e.colour,!0])}></div>
|
|
290
|
-
${(0,
|
|
290
|
+
${(0,s.when)((e=>e.showLabel),s.html`
|
|
291
291
|
<div class="label">${e=>e.label}</div>
|
|
292
292
|
`)}
|
|
293
|
-
`;class be extends
|
|
293
|
+
`;class be extends r.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,n.__decorate)([me.lj],be.prototype,"connect",void 0),(0,n.__decorate)([fe.z],be.prototype,"session",void 0),(0,n.__decorate)([(0,s.attr)({mode:"boolean",attribute:"show-label"})],be.prototype,"showLabel",void 0),(0,n.__decorate)([s.observable],be.prototype,"label",void 0),(0,n.__decorate)([s.observable],be.prototype,"colour",void 0);const ye=be.compose({baseName:"connection-indicator",template:ge,styles:ve}),we=(e,t)=>s.css`
|
|
294
294
|
${(0,m.dataGridStyles)(e,t)}
|
|
295
|
-
`,xe=(e,t)=>(0,
|
|
295
|
+
`,xe=(e,t)=>(0,r.dataGridTemplate)(e,t);class Fe extends m.DataGrid{}const $e=void 0,Se={},De=Fe.compose(Object.assign({baseName:"data-grid",template:xe,styles:we,shadowOptions:$e},Se)),Ce=(e,t)=>s.css`
|
|
296
296
|
${(0,m.dataGridCellStyles)(e,t)}
|
|
297
|
-
`;class _e extends m.DataGridCell{}const ke=void 0,Oe={},
|
|
297
|
+
`;class _e extends m.DataGridCell{}const ke=void 0,Oe={},Te=_e.compose(Object.assign({baseName:"data-grid-cell",template:r.dataGridCellTemplate,styles:Ce,shadowOptions:ke},Oe)),Re=(e,t)=>s.css`
|
|
298
298
|
${(0,m.dataGridRowStyles)(e,t)}
|
|
299
|
-
`;class
|
|
299
|
+
`;class Le extends m.DataGridRow{}const Ae=void 0,Me={},Ne=Le.compose(Object.assign({baseName:"data-grid-row",template:r.dataGridRowTemplate,styles:Re,shadowOptions:Ae},Me));var Ee=o(7530),Ie=o.n(Ee),Pe=o(8113),He=o.n(Pe);class Be{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()}}Ie().extend(He());class Ge{constructor(e=null,t="default"){const o=new Be(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+=Ie()(o.date).isLeapYear()?1:0)}getDay(e){return new Be(new Date(this.year,this.number-1,e),this.lang)}}Ie().extend(He());class ze{constructor(e=null,t=null,o="default"){this.weekDays=Array.from({length:7}),this.today=new Be(null,o),this.year=null!=e?e:this.today.year,this.month=new Ge(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 Ge(new Date(this.year,e-1),this.lang)}getPreviousMonth(){return 1===this.month.number?new Ge(new Date(this.year-1,11),this.lang):new Ge(new Date(this.year,this.month.number-2),this.lang)}getNextMonth(){return 1===this.month.number?new Ge(new Date(this.year+1,0),this.lang):new Ge(new Date(this.year,this.month.number+2),this.lang)}goToDate(e,t){this.month=new Ge(new Date(t,e-1),this.lang),this.year=t}goToNextYear(){this.year+=1,this.month=new Ge(new Date(this.year,0),this.lang)}goToPreviousYear(){this.year-=1,this.month=new Ge(new Date(this.year,11),this.lang)}goToNextMonth(){if(12===this.month.number)return this.goToNextYear();this.month=new Ge(new Date(this.year,this.month.number+1-1),this.lang)}goToPreviousMonth(){if(1===this.month.number)return this.goToPreviousYear();this.month=new Ge(new Date(this.year,this.month.number-1-1),this.lang)}}const je=s.css`
|
|
300
300
|
:host {
|
|
301
301
|
position: relative;
|
|
302
302
|
}
|
|
@@ -442,8 +442,8 @@
|
|
|
442
442
|
background: var(--neutral-stroke-hover);
|
|
443
443
|
color: (--neutral-foreground-rest);
|
|
444
444
|
}
|
|
445
|
-
`,Ve=
|
|
446
|
-
<foundation-button type="button" class="date-toggle" ${(0,
|
|
445
|
+
`,Ve=s.html`
|
|
446
|
+
<foundation-button type="button" class="date-toggle" ${(0,s.ref)("toggleButton")}>
|
|
447
447
|
${e=>e.formatDate}
|
|
448
448
|
<zero-icon variant="regular" name="calendar-alt"></zero-icon>
|
|
449
449
|
</foundation-button>
|
|
@@ -451,21 +451,21 @@
|
|
|
451
451
|
<div class="header">
|
|
452
452
|
<h3>${e=>e.currentMonth} ${e=>e.currentYear}</h3>
|
|
453
453
|
<div class="months-arrows">
|
|
454
|
-
<div class="icon-container" ${(0,
|
|
454
|
+
<div class="icon-container" ${(0,s.ref)("prevBtn")}>
|
|
455
455
|
<zero-icon name="angle-left" class="prev-month" aria-label="previous month"></zero-icon>
|
|
456
456
|
</div>
|
|
457
|
-
<div class="icon-container" ${(0,
|
|
457
|
+
<div class="icon-container" ${(0,s.ref)("nextBtn")}>
|
|
458
458
|
<zero-icon name="angle-right" class="next-month" aria-label="next month"></zero-icon>
|
|
459
459
|
</div>
|
|
460
460
|
</div>
|
|
461
461
|
</div>
|
|
462
462
|
<div class="week-days">
|
|
463
|
-
${(0,
|
|
463
|
+
${(0,s.repeat)((e=>e.calendar.weekDays),s.html`
|
|
464
464
|
<span>${(e,t)=>e.substring(0,t.parent.substringNumber)}</span>
|
|
465
465
|
`)}
|
|
466
466
|
</div>
|
|
467
|
-
<div class="month-days" ${(0,
|
|
468
|
-
${(0,
|
|
467
|
+
<div class="month-days" ${(0,s.ref)("calendarDaysContainer")}>
|
|
468
|
+
${(0,s.repeat)((e=>e.monthList),s.html`
|
|
469
469
|
<button
|
|
470
470
|
class="month-day
|
|
471
471
|
${(e,t)=>t.parent.isSelectedDate(e)?"selected":""}
|
|
@@ -477,42 +477,42 @@
|
|
|
477
477
|
`)}
|
|
478
478
|
</div>
|
|
479
479
|
</div>
|
|
480
|
-
`,Ue=void 0,Ye={};class We extends
|
|
481
|
-
${(0,
|
|
480
|
+
`,Ue=void 0,Ye={};class We extends r.FoundationElement{formatChanged(e,t){t&&this.calendar&&(this.formatDate=Ie()(this.currentDate.Date).format(t))}valueChanged(e,t){t&&this.calendar&&(this.currentDate=new Be(new Date(t)),this.calendar.goToDate(this.currentDate.monthNumber,this.currentDate.year),this.formatDate=Ie()(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 Be(o,t),this.value=Ie()(this.currentDate.Date).format("MM-DD-YYYY"),this.calendar=new ze(this.currentDate.year,this.currentDate.monthNumber,t)}connectedCallback(){super.connectedCallback(),this.currentMonth=this.calendar.month.name,this.currentYear=this.calendar.year,this.formatDate=Ie()(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,l.A)(["visible",this.visible],this.position)}isSelectedDate(e){return Ie()(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){Ie()(e.Date).isSame(this.currentDate.Date)||(this.currentDate=e,e.monthNumber!==this.calendar.month.number&&this.prevMonth(),this.formatDate=Ie()(this.currentDate.Date).format(this.format),this.value=Ie()(e.Date).format("MM-DD-YYYY"),this.toggleCalendar())}getMonthDaysGrid(){const e=this.calendar.month.getDay(1),t=this.calendar.getPreviousMonth(),o=e.dayNumber-1,a=this.calendar.month.numberOfDays+o,i=Array.from({length:a});for(let e=o;e<a;e+=1)i[e]=this.calendar.month.getDay(e+1-o);for(let e=0;e<o;e+=1){const a=o-(e+1);i[e]=t.getDay(t.numberOfDays-a)}return i}}(0,n.__decorate)([s.attr],We.prototype,"format",void 0),(0,n.__decorate)([s.attr],We.prototype,"visible",void 0),(0,n.__decorate)([s.attr],We.prototype,"position",void 0),(0,n.__decorate)([s.attr],We.prototype,"value",void 0),(0,n.__decorate)([s.observable],We.prototype,"currentDate",void 0),(0,n.__decorate)([s.observable],We.prototype,"currentMonth",void 0),(0,n.__decorate)([s.observable],We.prototype,"currentYear",void 0),(0,n.__decorate)([s.observable],We.prototype,"calendarDropdownClasses",void 0),(0,n.__decorate)([s.observable],We.prototype,"formatDate",void 0),(0,n.__decorate)([s.observable],We.prototype,"monthList",void 0);const qe=We.compose(Object.assign({baseName:"date-picker",styles:je,template:Ve,shadowOptions:Ue},Ye));var Xe=o(2694);const Ke=m.SwatchRGB.create(1,1,1),Ze=m.SwatchRGB.create(0,0,0),Je=(0,Xe.parseColorHexRGB)("#585858"),Qe=m.SwatchRGB.create(Je.r,Je.g,Je.b),et=(0,Xe.parseColorHexRGB)("#ffffff"),tt=m.SwatchRGB.create(et.r,et.g,et.b),ot=m.PaletteRGB.from(tt),at=(0,Xe.parseColorHexRGB)("#eeeeee"),it=m.SwatchRGB.create(at.r,at.g,at.b),nt=m.PaletteRGB.from(it),st=(0,Xe.parseColorHexRGB)("#08c3a5"),rt=m.SwatchRGB.create(st.r,st.g,st.b),lt=m.PaletteRGB.from(rt),{create:dt}=r.DesignToken,ct=dt("fui-fill-color").withDefault(Qe),ut=dt({name:"card-fill-color",cssCustomPropertyName:"fui-card-fill-color"}).withDefault(tt),pt=14;function ht(e,t){return e.colorContrast(t,pt)}const mt=dt({name:"card-foreground-color",cssCustomPropertyName:"fui-card-foreground-color"}).withDefault((e=>ht(dt("fui-card-palette").withDefault(ot).getValueFor(e),ut.getValueFor(e))));var ft=o(5460);const vt=(e,t,o)=>{const a=o?(e,t)=>e.setValueFor(o,t):(e,t)=>e.withDefault(t);Object.keys(e).forEach((o=>{const i=`${o}Value`;t[i]&&a(e[o],t[i])}))};function gt(e){return(t,o)=>{t[o+"Changed"]=function(t,o){null!=o?e.setValueFor(this,o):e.deleteValueFor(this)}}}const bt={toView:e=>null==e?null:null==e?void 0:e.toColorString(),fromView(e){if(null==e)return null;const t=(0,Xe.parseColorHexRGB)(e);return t?m.SwatchRGB.create(t.r,t.g,t.b):null}},yt=e=>m.PaletteRGB.from(m.SwatchRGB.from((0,Xe.parseColorHexRGB)(e))),wt=["baseClass","baseName","shadowOptions","styles","template"],xt=(e,t=wt)=>Object.keys(e).filter((e=>!t.includes(e))).reduce(((t,o)=>(t[o]=e[o],t)),{}),Ft=e=>{const{definition:t}=e(),{shadowOptions:o,styles:a,template:i}=t;return{shadowOptions:o,styles:a,template:i,defaultConfig:xt(t)}},$t=(e,t)=>{const o=e.match(/^(\d+)([a-z]+)/i),a=o[1],i=o[2];return Number(a)+t+i},St=(e,t)=>{const o=t.design_tokens;m.accentPalette.setValueFor(e,yt(o.color.accent.$value)),m.neutralPalette.setValueFor(e,yt(o.color.neutral.$value)),m.bodyFont.setValueFor(e,o.fontFamily.bodyFont.$value),m.baseLayerLuminance.setValueFor(e,o.mode.luminance.$value),m.density.setValueFor(e,o.style.density.$value),m.controlCornerRadius.setValueFor(e,o.style.borderRadius.$value),m.strokeWidth.setValueFor(e,o.style.strokeWidth.$value),m.designUnit.setValueFor(e,o.space.designUnit.$value),m.typeRampBaseFontSize.setValueFor(e,o.typography.baseFontSize.$value),m.typeRampBaseLineHeight.setValueFor(e,o.typography.baseLineHeight.$value);const a=m.typeRampBaseFontSize.getValueFor(e),i=m.typeRampBaseLineHeight.getValueFor(e);m.typeRampMinus1FontSize.setValueFor(e,$t(a,ft.TypeRampValues.minusOne)),m.typeRampMinus1LineHeight.setValueFor(e,$t(i,ft.TypeRampValues.minusOne)),m.typeRampMinus2FontSize.setValueFor(e,$t(a,ft.TypeRampValues.minusTwo)),m.typeRampMinus2LineHeight.setValueFor(e,$t(i,ft.TypeRampValues.minusTwo)),m.typeRampPlus1FontSize.setValueFor(e,$t(a,ft.TypeRampValues.plusOne)),m.typeRampPlus1LineHeight.setValueFor(e,$t(i,ft.TypeRampValues.plusOne)),m.typeRampPlus2FontSize.setValueFor(e,$t(a,ft.TypeRampValues.plusTwo)),m.typeRampPlus2LineHeight.setValueFor(e,$t(i,ft.TypeRampValues.plusTwo)),m.typeRampPlus3FontSize.setValueFor(e,$t(a,ft.TypeRampValues.plusThree)),m.typeRampPlus3LineHeight.setValueFor(e,$t(i,ft.TypeRampValues.plusThree)),m.typeRampPlus4FontSize.setValueFor(e,$t(a,ft.TypeRampValues.plusFour)),m.typeRampPlus4LineHeight.setValueFor(e,$t(i,ft.TypeRampValues.plusFour)),m.typeRampPlus5FontSize.setValueFor(e,$t(a,ft.TypeRampValues.plusFive)),m.typeRampPlus5LineHeight.setValueFor(e,$t(i,ft.TypeRampValues.plusFive)),m.typeRampPlus6FontSize.setValueFor(e,$t(a,ft.TypeRampValues.plusSix)),m.typeRampPlus6LineHeight.setValueFor(e,$t(i,ft.TypeRampValues.plusSix))},Dt=yt("#08c3a5"),Ct=yt("#eeeeee"),_t=m.StandardLuminance.DarkMode;const kt=o(3773).N.ltr,Ot=4,Tt=4;var Rt=o(8775);const Lt=(e="normal",t="normal")=>`\n font-family: ${m.bodyFont};\n font-style: ${e};\n font-weight: ${t};\n`,At=s.css`
|
|
481
|
+
${(0,r.display)("flex")}
|
|
482
482
|
:host {
|
|
483
483
|
flex: 1;
|
|
484
484
|
}
|
|
485
|
-
`,
|
|
485
|
+
`,Mt=s.css`
|
|
486
486
|
:host {
|
|
487
487
|
background-color: ${ct};
|
|
488
488
|
}
|
|
489
|
-
`.withBehaviors((0,
|
|
489
|
+
`.withBehaviors((0,r.forcedColorsStylesheetBehavior)(s.css`
|
|
490
490
|
:host {
|
|
491
|
-
background-color: ${
|
|
492
|
-
box-shadow: 0 0 0 1px ${
|
|
493
|
-
color: ${
|
|
491
|
+
background-color: ${Rt.H.ButtonFace};
|
|
492
|
+
box-shadow: 0 0 0 1px ${Rt.H.CanvasText};
|
|
493
|
+
color: ${Rt.H.ButtonText};
|
|
494
494
|
}
|
|
495
|
-
`)),
|
|
495
|
+
`)),Nt=(e,t)=>s.css`
|
|
496
496
|
${e.name} ${"h"+t} {
|
|
497
497
|
margin: 0;
|
|
498
498
|
}
|
|
499
|
-
`;class
|
|
499
|
+
`;class Et extends m.DesignSystemProvider{constructor(){super(),vt(a,i,this)}}(0,n.__decorate)([(0,s.attr)({attribute:"card-fill-color",converter:bt}),gt(ut)],Et.prototype,"cardFillColor",void 0),(0,n.__decorate)([(0,s.attr)({attribute:"card-foreground-color",converter:bt}),gt(mt)],Et.prototype,"cardForegroundColor",void 0);const It=Et.compose({baseName:"design-system-provider",template:s.html`
|
|
500
500
|
<slot></slot>
|
|
501
|
-
`,styles:e=>{const t=(e=>
|
|
502
|
-
${
|
|
503
|
-
${
|
|
504
|
-
${
|
|
505
|
-
${
|
|
506
|
-
${
|
|
507
|
-
${
|
|
508
|
-
`)(e);return t.addStylesTo(document),
|
|
509
|
-
${
|
|
510
|
-
${
|
|
501
|
+
`,styles:e=>{const t=(e=>s.css`
|
|
502
|
+
${Nt(e,"1")}
|
|
503
|
+
${Nt(e,"2")}
|
|
504
|
+
${Nt(e,"3")}
|
|
505
|
+
${Nt(e,"4")}
|
|
506
|
+
${Nt(e,"5")}
|
|
507
|
+
${Nt(e,"6")}
|
|
508
|
+
`)(e);return t.addStylesTo(document),s.css`
|
|
509
|
+
${At}
|
|
510
|
+
${Mt}
|
|
511
511
|
${t}
|
|
512
512
|
:host * {
|
|
513
513
|
${Lt()}
|
|
514
514
|
}
|
|
515
|
-
`}});var
|
|
515
|
+
`}});var Pt=o(5098);const Ht=s.css`
|
|
516
516
|
.close-icon {
|
|
517
517
|
position: absolute;
|
|
518
518
|
right: calc(var(--design-unit) * 2px);
|
|
@@ -550,13 +550,13 @@
|
|
|
550
550
|
::slotted(zero-divider) {
|
|
551
551
|
width: 100%;
|
|
552
552
|
}
|
|
553
|
-
`,
|
|
554
|
-
<dialog ${(0,
|
|
553
|
+
`,Bt=(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`,Gt=s.html`
|
|
554
|
+
<dialog ${(0,s.ref)("mainElement")}>
|
|
555
555
|
<div class="content-wrapper">
|
|
556
556
|
<div part="top" class="top">
|
|
557
557
|
<slot name="top"></slot>
|
|
558
|
-
${(0,
|
|
559
|
-
<div class="close-icon" @click=${e=>e.close()}>${
|
|
558
|
+
${(0,s.when)((e=>e.showCloseIcon),s.html`
|
|
559
|
+
<div class="close-icon" @click=${e=>e.close()}>${Bt()}</div>
|
|
560
560
|
`)}
|
|
561
561
|
</div>
|
|
562
562
|
<slot></slot>
|
|
@@ -565,11 +565,11 @@
|
|
|
565
565
|
</div>
|
|
566
566
|
</div>
|
|
567
567
|
</dialog>
|
|
568
|
-
`,
|
|
568
|
+
`,zt={mode:"open",delegatesFocus:!0},jt={};class Vt extends r.FoundationElement{constructor(){super(...arguments),this.position="centre",this.showCloseIcon=!0}connectedCallback(){super.connectedCallback(),window.HTMLDialogElement||Pt.Z.registerDialog(this.mainElement),this.mainElement.addEventListener("close",(()=>{this.onCloseCallback&&this.onCloseCallback()}))}get open(){return this.mainElement.hasAttribute("open")}close(){this.mainElement.close()}}(0,n.__decorate)([s.attr],Vt.prototype,"position",void 0),(0,n.__decorate)([(0,s.attr)({mode:"boolean",attribute:"show-close-icon"})],Vt.prototype,"showCloseIcon",void 0),(0,n.__decorate)([s.observable],Vt.prototype,"onShowCallback",void 0),(0,n.__decorate)([s.observable],Vt.prototype,"onCloseCallback",void 0),(0,n.__decorate)([s.volatile],Vt.prototype,"open",null);class Ut extends Vt{show(){this.onShowCallback&&this.onShowCallback(),this.mainElement.show()}}const Yt=Ut.compose(Object.assign({baseName:"dialog",styles:Ht,template:Gt,shadowOptions:zt},jt)),Wt=(e,t)=>s.css`
|
|
569
569
|
${(0,m.disclosureStyles)(e,t)}
|
|
570
|
-
`,
|
|
570
|
+
`,qt=(e,t)=>(0,r.disclosureTemplate)(e,t);class Xt extends r.Disclosure{}const Kt=void 0,Zt={},Jt=Xt.compose(Object.assign({baseName:"disclosure",template:qt,styles:Wt,shadowOptions:Kt},Zt)),Qt=(e,t)=>s.css`
|
|
571
571
|
${(0,m.dividerStyles)(e,t)}
|
|
572
|
-
`,
|
|
572
|
+
`,eo=(e,t)=>(0,r.dividerTemplate)(e,t);class to extends r.Divider{}const oo=void 0,ao={},io=to.compose(Object.assign({baseName:"divider",template:eo,styles:Qt,shadowOptions:oo},ao)),no=(e,t)=>!e.composedPath().includes(t),so=(e,t,o)=>s.css`
|
|
573
573
|
:host {
|
|
574
574
|
--dropdown-opener-height-multiplier: 0.7px;
|
|
575
575
|
--menu-item-height-multiplier: 0.7px;
|
|
@@ -632,20 +632,20 @@
|
|
|
632
632
|
var(--menu-item-height-multiplier)
|
|
633
633
|
);
|
|
634
634
|
}
|
|
635
|
-
`,
|
|
636
|
-
${
|
|
637
|
-
`,
|
|
638
|
-
${(0,
|
|
639
|
-
${(0,
|
|
635
|
+
`,ro=(e,t)=>s.css`
|
|
636
|
+
${so("foundation",e,t)}
|
|
637
|
+
`,lo=(e,t)=>s.html`
|
|
638
|
+
${(0,s.repeat)((()=>e),s.html`
|
|
639
|
+
${(0,s.when)((e=>e.isDisabled&&e.isDisabled()),s.html`
|
|
640
640
|
<${t}-menu-item class="menu-item" disabled>${e=>e.name}</${t}-menu-item>
|
|
641
641
|
`)}
|
|
642
|
-
${(0,
|
|
642
|
+
${(0,s.when)((e=>!e.isDisabled||!e.isDisabled()),s.html`
|
|
643
643
|
<${t}-menu-item
|
|
644
644
|
class="menu-item"
|
|
645
645
|
@click=${e=>e.submenu?"":e.callback()}
|
|
646
646
|
style="${e=>e.color?`color: ${e.color};`:""}"
|
|
647
647
|
>
|
|
648
|
-
${(0,
|
|
648
|
+
${(0,s.when)((e=>e.icon),s.html`
|
|
649
649
|
<${t}-icon
|
|
650
650
|
name=${e=>e.icon.name}
|
|
651
651
|
size=${e=>e.icon.size}
|
|
@@ -654,13 +654,13 @@
|
|
|
654
654
|
></${t}-icon>
|
|
655
655
|
`)}
|
|
656
656
|
${e=>e.name}
|
|
657
|
-
${(0,
|
|
658
|
-
<${t}-menu>${e=>
|
|
657
|
+
${(0,s.when)((e=>e.submenu),s.html`
|
|
658
|
+
<${t}-menu>${e=>lo(e.submenu,t)}</${t}-menu>
|
|
659
659
|
`)}
|
|
660
660
|
</${t}-menu-item>
|
|
661
661
|
`)}
|
|
662
662
|
`)}
|
|
663
|
-
`,
|
|
663
|
+
`,co=e=>s.html`
|
|
664
664
|
<div class="actions-container" part="actions-container">
|
|
665
665
|
<${e}-button
|
|
666
666
|
id="actiosnMenuTrigger"
|
|
@@ -673,17 +673,17 @@
|
|
|
673
673
|
${e=>e.name}
|
|
674
674
|
</${e}-button>
|
|
675
675
|
<${e}-menu
|
|
676
|
-
${(0,
|
|
676
|
+
${(0,s.ref)("dropdownMenu")}
|
|
677
677
|
class="actions-menu ${e=>e.classNames}"
|
|
678
678
|
part="actions-menu"
|
|
679
679
|
>
|
|
680
|
-
${t=>
|
|
680
|
+
${t=>lo(t.allItems,e)}
|
|
681
681
|
</${e}-menu>
|
|
682
682
|
</div>
|
|
683
|
-
`,
|
|
684
|
-
${e=>
|
|
685
|
-
`;class
|
|
686
|
-
<foundation-banner ${(0,
|
|
683
|
+
`,uo=s.html`
|
|
684
|
+
${e=>co(e.tagName.toLowerCase().split("-")[0])}
|
|
685
|
+
`;class po extends r.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){no(e,this)&&(this.open=!1)}openChanged(){this.classNames=(0,l.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,n.__decorate)([s.observable],po.prototype,"items",void 0),(0,n.__decorate)([(0,s.attr)({attribute:"auto-close",mode:"boolean"})],po.prototype,"autoClose",void 0),(0,n.__decorate)([(0,s.attr)({attribute:"disable-button",mode:"boolean"})],po.prototype,"disabled",void 0),(0,n.__decorate)([s.observable],po.prototype,"classNames",void 0),(0,n.__decorate)([s.attr],po.prototype,"name",void 0),(0,n.__decorate)([(0,s.attr)({attribute:"open",mode:"boolean"})],po.prototype,"open",void 0),(0,n.__decorate)([s.attr],po.prototype,"buttonAppearance",void 0);const ho=po.compose({baseName:"dropdown-menu",styles:ro,template:uo}),mo=(0,ft.createLogger)("foundation-ui"),fo=s.html`
|
|
686
|
+
<foundation-banner ${(0,s.ref)("banner")}>
|
|
687
687
|
<div slot="content">
|
|
688
688
|
<div>${e=>{var t;return(null===(t=e.error)||void 0===t?void 0:t.errorDetails)||"Place holder for error message"}}</div>
|
|
689
689
|
</div>
|
|
@@ -691,7 +691,7 @@
|
|
|
691
691
|
<foundation-button slot="action" appearance="lightweight" @click=${e=>{var t;return null===(t=e.banner)||void 0===t?void 0:t.dismiss()}}>
|
|
692
692
|
${e=>{var t,o,a,i;return(null===(i=null===(a=null===(o=null===(t=e.error)||void 0===t?void 0:t.config)||void 0===o?void 0:o.banner)||void 0===a?void 0:a.dismissingAction)||void 0===i?void 0:i.label)||"Ignore"}}
|
|
693
693
|
</foundation-button>
|
|
694
|
-
${(0,
|
|
694
|
+
${(0,s.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}),s.html`
|
|
695
695
|
<foundation-button
|
|
696
696
|
slot="action"
|
|
697
697
|
appearance="lightweight"
|
|
@@ -701,11 +701,11 @@
|
|
|
701
701
|
</foundation-button>
|
|
702
702
|
`)}
|
|
703
703
|
</foundation-banner>
|
|
704
|
-
`,
|
|
705
|
-
<template ${(0,
|
|
704
|
+
`,vo={mode:"open",delegatesFocus:!0};class go extends r.FoundationElement{connectedCallback(){super.connectedCallback()}dismiss(){return(0,n.__awaiter)(this,void 0,void 0,(function*(){try{yield this.banner.dismiss(),this.remove()}catch(e){mo.error(e)}}))}}(0,n.__decorate)([s.observable],go.prototype,"error",void 0);const bo=go.compose({baseName:"error-banner",template:fo,shadowOptions:vo});var yo;!function(e){e.ERROR_BOUNDARY_EVENT="error-boundary-event"}(yo||(yo={}));const wo=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"}`},xo=(e,t)=>{const o=t.split("-")[0];let a=document.querySelector(`#${e}`);if(!a){a=document.createElement("div"),a.setAttribute("id",e);const t=document.createElement(`${o}-design-system-provider`);t.appendChild(a),document.body.appendChild(t)}return a},Fo=()=>{const e=document.createElement("div");return e.setAttribute("id","error-banner-anchor"),e.style.position="relative",document.body.insertBefore(e,document.body.firstChild),e},$o=(0,ft.createLogger)("foundation-error"),So={alert:e=>{alert(wo(e))},notification:(e,t)=>{var o,a,i,n,s,r,l,d,c,u,p;const h=t.split("-")[0],m=xo("notify-container",t);m&&(m.style.position="fixed",m.style.top="0",m.style.right="0");const f=document.createElement(`${h}-toast`),v=document.createElement("div");v.setAttribute("slot","top"),v.textContent=null!==(o=e.title)&&void 0!==o?o:"Error";const g=document.createElement("div");g.setAttribute("slot","content"),g.textContent=(null==e?void 0:e.errorDetails)||"";const b=document.createElement("div");b.setAttribute("slot","date"),b.textContent=(new Date).toLocaleTimeString(),f.setAttribute("notify",(null===(i=null===(a=null==e?void 0:e.config)||void 0===a?void 0:a.notification)||void 0===i?void 0:i.type)||""),(null===(s=null===(n=null==e?void 0:e.config)||void 0===n?void 0:n.notification)||void 0===s?void 0:s.autoClose)&&f.setAttribute("auto-close",`${null===(l=null===(r=null==e?void 0:e.config)||void 0===r?void 0:r.notification)||void 0===l?void 0:l.autoClose}`),(null===(c=null===(d=null==e?void 0:e.config)||void 0===d?void 0:d.notification)||void 0===c?void 0:c.closeTimeout)&&f.setAttribute("close-timeout",`${null===(p=null===(u=null==e?void 0:e.config)||void 0===u?void 0:u.notification)||void 0===p?void 0:p.closeTimeout}`),f.appendChild(v),f.appendChild(g),f.appendChild(b),m.appendChild(f)},dialog:(e,t)=>{const o=t.split("-")[0],a=document.createElement(`${o}-error-dialog`);xo("dialog-container",t).appendChild(a),a.error=e,a.show()},snackbar:(e,t)=>{const o=t.split("-")[0],a=document.createElement(`${o}-snackbar`);xo("snack-container",t).appendChild(a),a.error=e},banner:(e,t,o)=>{var a;const i=t.split("-")[0],n=document.createElement(`${i}-error-banner`),s=(e=>{for(var t,o;e&&!(e instanceof ShadowRoot);){const a=null===(t=null==e?void 0:e.getRootNode())||void 0===t?void 0:t.getElementById("error-banner-anchor");if(a)return a.style.position="relative",a;e=null===(o=null==e?void 0:e.getRootNode())||void 0===o?void 0:o.host}return Fo()})(o);(null===(a=null==s?void 0:s.children)||void 0===a?void 0:a.length)>0&&(n.style.position="absolute",n.style.top="0",n.style.left="0",n.style.width="100%"),s.appendChild(n),n.error=e}},Do=s.html`
|
|
705
|
+
<template ${(0,s.ref)("errorBoundary")}>
|
|
706
706
|
<slot></slot>
|
|
707
707
|
</template>
|
|
708
|
-
`,
|
|
708
|
+
`,Co={mode:"open",delegatesFocus:!0};class _o extends r.FoundationElement{constructor(){super(...arguments),this.logger=(0,ft.createLogger)("error-boundary")}connectedCallback(){super.connectedCallback(),this.addEventListener(yo.ERROR_BOUNDARY_EVENT,(e=>{var t,o,a,i,n;e.stopImmediatePropagation(),t=e.detail,o=this.tagName,a=this.errorBoundary,$o.log({message:wo(t),level:(i=t,(null==i?void 0:i.logLevel)||(null===(n=null==i?void 0:i.config)||void 0===n?void 0:n.logLevel)||ft.LogLevel.Error)}),Object.keys((null==t?void 0:t.config)||{}).forEach((e=>{So[e]&&So[e](t,o,a)}))}))}}(0,n.__decorate)([s.observable],_o.prototype,"errorBoundary",void 0);const ko=_o.compose({baseName:"error-boundary",template:Do,shadowOptions:Co}),Oo=s.css`
|
|
709
709
|
:host {
|
|
710
710
|
--design-unit: 3;
|
|
711
711
|
--dialog-max-width: 358px;
|
|
@@ -724,14 +724,14 @@
|
|
|
724
724
|
overflow: hidden;
|
|
725
725
|
min-height: var(--error-details-min-height);
|
|
726
726
|
}
|
|
727
|
-
`,
|
|
728
|
-
<${e}-dialog show-close-icon="false" ${(0,
|
|
727
|
+
`,To=e=>s.html`
|
|
728
|
+
<${e}-dialog show-close-icon="false" ${(0,s.ref)("dialog")}>
|
|
729
729
|
<h2 slot="top" class="title">${e=>{var t;return null===(t=e.error)||void 0===t?void 0:t.title}}</h2>
|
|
730
730
|
<div class="details">${e=>{var t;return(null===(t=e.error)||void 0===t?void 0:t.errorDetails)||"Place holder for error message"}}</div>
|
|
731
731
|
<${e}-button slot="bottom" appearance="lightweight" @click=${e=>e.dismiss()}>
|
|
732
732
|
${e=>{var t,o,a,i;return(null===(i=null===(a=null===(o=null===(t=e.error)||void 0===t?void 0:t.config)||void 0===o?void 0:o.dialog)||void 0===a?void 0:a.dismissingAction)||void 0===i?void 0:i.label)||"Ignore"}}
|
|
733
733
|
</${e}-button>
|
|
734
|
-
${(0,
|
|
734
|
+
${(0,s.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}),s.html`
|
|
735
735
|
<${e}-button
|
|
736
736
|
slot="bottom"
|
|
737
737
|
appearance="lightweight"
|
|
@@ -741,9 +741,9 @@
|
|
|
741
741
|
</${e}-button>
|
|
742
742
|
`)}
|
|
743
743
|
</${e}-dialog>
|
|
744
|
-
`,
|
|
745
|
-
${e=>
|
|
746
|
-
`,
|
|
744
|
+
`,Ro=s.html`
|
|
745
|
+
${e=>To(e.tagName.toLowerCase().split("-")[0])}
|
|
746
|
+
`,Lo={mode:"open",delegatesFocus:!0};class Ao extends r.FoundationElement{connectedCallback(){super.connectedCallback()}show(){this.dialog.show()}dismiss(){try{this.dialog.close(),this.remove()}catch(e){mo.error(e)}}}(0,n.__decorate)([s.observable],Ao.prototype,"error",void 0);const Mo=Ao.compose({baseName:"error-dialog",template:Ro,styles:Oo,shadowOptions:Lo});var No=o(2296);const Eo=(0,ft.createLogger)("foundation-criteria");var Io;!function(e){e.AND="&&",e.OR="||",e.NOT="!",e.GT=">",e.GE=">=",e.LT="<",e.LE="<=",e.NE="!=",e.EQ="=="}(Io||(Io={}));class Po{constructor(e){this.$$operator=e}static And(){return new Po(Io.AND)}static Or(){return new Po(Io.OR)}static Not(){return new Po(Io.NOT)}static GreaterThan(){return new Po(Io.GT)}static GreaterThanOrEqual(){return new Po(Io.GE)}static LessThan(){return new Po(Io.LT)}static LessThanOrEqual(){return new Po(Io.LE)}static NotEqual(){return new Po(Io.NE)}static Equal(){return new Po(Io.EQ)}get operator(){return this.$$operator}}const Ho="default";class Bo{constructor(){this.expressions={},this.And=(e,t={})=>this.withExpression(e,t,Po.And()),this.Or=(e,t={})=>this.withExpression(e,t,Po.Or()),this.Not=(e,t={})=>this.withExpression(e,t,Po.Not())}withExpression(e,t={},o=Po.And()){const{condition:a,join:i,groupName:n}=t,s=(e,t=Ho)=>{var n;const s=null!==(n=this.expressions[t])&&void 0!==n?n:[];this.expressions[t]=[...s,{join:o||i,condition:a,expression:e}]};if(Array.isArray(e))if(i){const t=e.filter((e=>{const t=e instanceof Po;return t&&Eo.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=i,t.flat().flatMap(((e,t,o)=>o.length-1!==t?[e,r]:e)));s(e,Ho)}}else s(e,Ho);else s(e,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,a)=>this.parseExpression(e,a[o-1],t))).join("")})`})),{});return e?e(t):`(${Object.values(t).join(" && ")})`}reset(){this.expressions={}}parseExpression(e,t,o){const a=[];return o&&t&&a.push(` ${o.operator} `),Array.isArray(e)?(e.forEach(((e,t,o)=>{if(e instanceof Po){if(o[t-1]instanceof Po)throw new Error("Adjacent Join operations detected")}})),a.push(`(${e.map((e=>this.parseExpression(e,void 0))).join("")})`)):e instanceof Po?a.push(` ${e.operator} `):e&&a.push(e.serialiser(e)),a.join("")}}const Go=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},zo=e=>t=>`${t.field} ${e} ${Go(t)}`,jo=e=>zo(Io.EQ)(e);class Vo{constructor(e){this.serialiser=jo,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 Uo=s.css`
|
|
747
747
|
/* Host */
|
|
748
748
|
:host {
|
|
749
749
|
display: flex;
|
|
@@ -791,16 +791,16 @@
|
|
|
791
791
|
fast-data-grid-row {
|
|
792
792
|
align-items: center;
|
|
793
793
|
}
|
|
794
|
-
`,
|
|
794
|
+
`,Yo=e=>s.html`
|
|
795
795
|
<template>
|
|
796
796
|
<div class="file-selection">
|
|
797
|
-
<input type="file" multiple ${(0,
|
|
797
|
+
<input type="file" multiple ${(0,s.ref)("fileInput")}
|
|
798
798
|
@change=${(e,t)=>e.onInputChange(t.event)} :accept="${e=>e.accept}"/>
|
|
799
799
|
<${e}-text-field readOnly type="text" id="fileName" part="file-name-input" class="file-name-input"
|
|
800
800
|
:label="${e=>e.label}"
|
|
801
801
|
:value="${e=>e.fileName}">
|
|
802
802
|
${e=>e.label}
|
|
803
|
-
${(0,
|
|
803
|
+
${(0,s.when)((e=>e.fileName),s.html`
|
|
804
804
|
<${e}-icon slot="end" class="clear-icon" name="xmark"
|
|
805
805
|
@click=${e=>e.clearSelection()}></${e}-icon>
|
|
806
806
|
`)}
|
|
@@ -817,13 +817,13 @@
|
|
|
817
817
|
</${e}-data-grid>
|
|
818
818
|
</div>
|
|
819
819
|
</template>
|
|
820
|
-
`,
|
|
821
|
-
${e=>
|
|
822
|
-
`,
|
|
823
|
-
${(0,
|
|
824
|
-
${e=>"DATETIME"===e.columnDefinition.type?(0,
|
|
820
|
+
`,Wo=s.html`
|
|
821
|
+
${e=>Yo(e.tagName.toLowerCase().split("-")[0])}
|
|
822
|
+
`,qo=["image/png","image/bmp","image/gif","image/jpeg","image/jpg"],Xo=["text/plain","text/csv"],Ko=["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"],Zo=s.html`
|
|
823
|
+
${(0,s.when)((e=>e.rowData),s.html`
|
|
824
|
+
${e=>"DATETIME"===e.columnDefinition.type?(0,ft.formatDateTimeTimestamp)(e.rowData[e.columnDefinition.columnDataKey]):e.rowData[e.columnDefinition.columnDataKey]}
|
|
825
825
|
`)}
|
|
826
|
-
`;class
|
|
826
|
+
`;class Jo extends r.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,...qo]:"office/*"===t?e=[...e,...Ko]:"text/*"===t?e=[...e,...Xo]: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,n.__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 Bo).withExpression((new Vo).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:No.k.error(`Unsupported operation type: ${o.DETAILS.OPERATION}`)}}setRowData(){return(0,n.__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=>{No.k.error(e)}),{CRITERIA_MATCH:this.gridCriteria})}))}setColumnDefs(){var e;return(0,n.__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 a;const i=null===(a=t.FIELD)||void 0===a?void 0:a.find((t=>t.NAME===e));i?o.push(this.getColumnObject(i)):"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:s.html`
|
|
827
827
|
<template>
|
|
828
828
|
<div class="download-button-container">
|
|
829
829
|
<${e}-button
|
|
@@ -834,7 +834,7 @@
|
|
|
834
834
|
</${e}-button>
|
|
835
835
|
</div>
|
|
836
836
|
</template>
|
|
837
|
-
`}}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:
|
|
837
|
+
`}}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:Zo}}handleClick(){this.fileInput.value=null,this.fileInput.click()}onInputChange(e){var t,o;const a=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(a)}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,n.__awaiter)(this,void 0,void 0,(function*(){try{const e=(e=>{const t=new FormData;return e.forEach((e=>{t.append(e.name,e)})),t})(this.selectedFiles);e.append(this.uploadKey,this.entityId);const t=yield((e,t,o)=>{const a=new Headers;return a.append("SESSION_AUTH_TOKEN",o),fetch(e,{method:"POST",body:t,headers:a}).then((e=>e.json().then((e=>e))))})(this.uploadEventName,e,this.session.getItem("authToken","session"));if(t.ERROR)return No.k.error(t.ERROR),void this.$emit("errorOut",t.ERROR);No.k.info(t),this.clearSelection()}catch(e){No.k.error(e)}}))}handleFileDownload(e){((e,t,o)=>{const a=new Headers;a.append("SESSION_AUTH_TOKEN",o),fetch(e,{method:"GET",headers:a}).then((e=>e.blob())).then((e=>{const o=window.URL.createObjectURL(e),a=document.createElement("a");a.href=o,a.download=t,document.body.appendChild(a),a.click(),a.remove()})).catch((e=>{mo.error(e)}))})(this.downloadEventName(e),e.FILE_NAME,this.session.getItem("authToken","session"))}clearSelection(){this.fileName="",this.selectedFiles=[]}}(0,n.__decorate)([s.observable],Jo.prototype,"gridCriteria",void 0),(0,n.__decorate)([me.lj],Jo.prototype,"connect",void 0),(0,n.__decorate)([fe.z],Jo.prototype,"session",void 0),(0,n.__decorate)([s.attr],Jo.prototype,"label",void 0),(0,n.__decorate)([s.attr],Jo.prototype,"accept",void 0),(0,n.__decorate)([(0,s.attr)({attribute:"file-size-limit-bytes"})],Jo.prototype,"fileSizeLimitBytes",void 0),(0,n.__decorate)([(0,s.attr)({attribute:"uploaded-files-resource-name"})],Jo.prototype,"uploadedFilesResourceName",void 0),(0,n.__decorate)([(0,s.attr)({attribute:"upload-event-name"})],Jo.prototype,"uploadEventName",void 0),(0,n.__decorate)([(0,s.attr)({attribute:"field-name"})],Jo.prototype,"fieldName",void 0),(0,n.__decorate)([(0,s.attr)({attribute:"entity-id"})],Jo.prototype,"entityId",void 0),(0,n.__decorate)([(0,s.attr)({attribute:"upload-key"})],Jo.prototype,"uploadKey",void 0),(0,n.__decorate)([(0,s.attr)({attribute:"grid-fields"})],Jo.prototype,"gridFields",void 0),(0,n.__decorate)([s.observable],Jo.prototype,"fileName",void 0),(0,n.__decorate)([s.observable],Jo.prototype,"uploadedFilesList",void 0),(0,n.__decorate)([s.observable],Jo.prototype,"filesGridColumnDefinitions",void 0);const Qo=void 0,ea={},ta=Jo.compose(Object.assign({baseName:"file-upload",styles:Uo,template:Wo,shadowOptions:Qo},ea)),oa=s.css`
|
|
838
838
|
.filter-wrapper {
|
|
839
839
|
border: 1px solid gray;
|
|
840
840
|
border-radius: calc(var(--design-unit) * 2px);
|
|
@@ -885,87 +885,87 @@
|
|
|
885
885
|
.flex-row foundation-select {
|
|
886
886
|
flex: 1;
|
|
887
887
|
}
|
|
888
|
-
`,
|
|
889
|
-
<div class="close-icon" @click=${e=>e.clear()}>${
|
|
890
|
-
`,
|
|
888
|
+
`,aa=s.html`
|
|
889
|
+
<div class="close-icon" @click=${e=>e.clear()}>${Bt()}</div>
|
|
890
|
+
`,ia=s.html`
|
|
891
891
|
<div class="flex-row">
|
|
892
892
|
<div>${e=>e.label}</div>
|
|
893
|
-
${
|
|
893
|
+
${aa}
|
|
894
894
|
</div>
|
|
895
895
|
<div class="flex-row">
|
|
896
896
|
<foundation-text-field
|
|
897
|
-
${(0,
|
|
897
|
+
${(0,s.ref)("textFilterField")}
|
|
898
898
|
type="text"
|
|
899
|
-
:value=${(0,
|
|
899
|
+
:value=${(0,ft.sync)((e=>e.textFilter))}
|
|
900
900
|
/>
|
|
901
901
|
</div>
|
|
902
|
-
`,
|
|
902
|
+
`,na=s.html`
|
|
903
903
|
<div class="flex-row">
|
|
904
904
|
<div>${e=>e.label}</div>
|
|
905
|
-
${
|
|
905
|
+
${aa}
|
|
906
906
|
</div>
|
|
907
907
|
<div class="flex-row">
|
|
908
908
|
<foundation-text-field
|
|
909
|
-
${(0,
|
|
909
|
+
${(0,s.ref)("numFilterFieldMin")}
|
|
910
910
|
type="number"
|
|
911
|
-
:value=${(0,
|
|
911
|
+
:value=${(0,ft.sync)((e=>e.numFilterMin))}
|
|
912
912
|
placeholder="min"
|
|
913
913
|
></foundation-text-field>
|
|
914
914
|
<foundation-text-field
|
|
915
|
-
${(0,
|
|
915
|
+
${(0,s.ref)("numFilterFieldMax")}
|
|
916
916
|
type="number"
|
|
917
|
-
:value=${(0,
|
|
917
|
+
:value=${(0,ft.sync)((e=>e.numFilterMax))}
|
|
918
918
|
placeholder="max"
|
|
919
919
|
></foundation-text-field>
|
|
920
920
|
</div>
|
|
921
|
-
`,
|
|
921
|
+
`,sa=s.html`
|
|
922
922
|
<div class="flex-row">
|
|
923
923
|
<div>${e=>e.label}</div>
|
|
924
|
-
${
|
|
924
|
+
${aa}
|
|
925
925
|
</div>
|
|
926
926
|
<div class="flex-row">
|
|
927
927
|
<foundation-text-field
|
|
928
|
-
${(0,
|
|
928
|
+
${(0,s.ref)("dateFilterFieldMin")}
|
|
929
929
|
type="date"
|
|
930
|
-
:value=${(0,
|
|
930
|
+
:value=${(0,ft.sync)((e=>e.dateFilterMin))}
|
|
931
931
|
></foundation-text-field>
|
|
932
932
|
<foundation-text-field
|
|
933
|
-
${(0,
|
|
933
|
+
${(0,s.ref)("dateFilterFieldMax")}
|
|
934
934
|
type="date"
|
|
935
|
-
:value=${(0,
|
|
935
|
+
:value=${(0,ft.sync)((e=>e.dateFilterMax))}
|
|
936
936
|
></foundation-text-field>
|
|
937
937
|
</div>
|
|
938
|
-
`;function ra(e){var t,o,a;return null!==(a=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!==a?a:"all"}const
|
|
938
|
+
`;function ra(e){var t,o,a;return null!==(a=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!==a?a:"all"}const la=[{name:"All",value:"all",selected:!0},{name:"True",value:"true"},{name:"False",value:"false"},{name:"N/A",value:"null"}],da=s.html`
|
|
939
939
|
<div class="flex-row">
|
|
940
940
|
<div>${e=>e.label}</div>
|
|
941
|
-
${
|
|
941
|
+
${aa}
|
|
942
942
|
</div>
|
|
943
943
|
<div class="flex-row">
|
|
944
944
|
<foundation-select @change="${(e,t)=>e.onBooleanFilterSelection(ra(t))}}">
|
|
945
|
-
${(0,
|
|
945
|
+
${(0,s.repeat)((()=>la),s.html`
|
|
946
946
|
<foundation-option value="${e=>e.value}" selected="${e=>e.selected}">
|
|
947
947
|
${e=>e.name}
|
|
948
948
|
</foundation-option>
|
|
949
949
|
`)}
|
|
950
950
|
</foundation-select>
|
|
951
951
|
</div>
|
|
952
|
-
`,
|
|
952
|
+
`,ca=s.html`
|
|
953
953
|
<div class="flex-row">
|
|
954
954
|
<div>${e=>e.label}</div>
|
|
955
|
-
${
|
|
955
|
+
${aa}
|
|
956
956
|
</div>
|
|
957
957
|
<div class="flex-row">
|
|
958
958
|
<zero-select @change="${(e,t)=>e.onEnumFilterSelection(ra(t))}}">
|
|
959
|
-
${(0,
|
|
959
|
+
${(0,s.repeat)((e=>e.enumFilterOptions),s.html`
|
|
960
960
|
<zero-option value="${e=>e.value}" selected="${e=>e.selected}">
|
|
961
961
|
${e=>e.name}
|
|
962
962
|
</zero-option>
|
|
963
963
|
`)}
|
|
964
964
|
</zero-select>
|
|
965
965
|
</div>
|
|
966
|
-
`,
|
|
967
|
-
<div class="filter-wrapper">${e=>(e=>{switch(e.type){case"number":return
|
|
968
|
-
`;var
|
|
966
|
+
`,ua=s.html`
|
|
967
|
+
<div class="filter-wrapper">${e=>(e=>{switch(e.type){case"number":return na;case"date":return sa;case"boolean":return da;case"enum":return ca;default:return ia}})(e)}</div>
|
|
968
|
+
`;var pa;!function(e){e.change="filter-changed",e.clear="filter-cleared"}(pa||(pa={}));class ha extends r.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(pa.clear,{fieldName:this.fieldName,target:this.target});const o=`Expr.containsIgnoreCase(${this.fieldName},'${t}')`;this.$emit(pa.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(pa.clear,{fieldName:this.fieldName,target:this.target});const o=`${this.fieldName} >= ${e}`,a=`${this.fieldName} <= ${t}`,i=Number.isFinite(e)?Number.isFinite(t)?`(${o} && ${a})`:o:a;this.$emit(pa.change,{fieldName:this.fieldName,filter:i,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(pa.clear,{fieldName:this.fieldName});const o=`Expr.dateTimeIsAfter(${this.fieldName}, '${this.formatDate(e)}')`,a=`Expr.dateTimeIsBefore(${this.fieldName}, '${this.formatDate(t)}')`,i=Number.isFinite(e)?Number.isFinite(t)?`(${o} && ${a})`:o:a;this.$emit(pa.change,{fieldName:this.fieldName,filter:i,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(pa.clear,{fieldName:this.fieldName,target:this.target})}onBooleanFilterSelection(e){e&&"all"!==e?this.$emit(pa.change,{fieldName:this.fieldName,filter:`${this.fieldName} == ${e}`,target:this.target}):this.$emit(pa.clear,{fieldName:this.fieldName,target:this.target})}onEnumFilterSelection(e){e&&"all"!==e?this.$emit(pa.change,{fieldName:this.fieldName,filter:`${this.fieldName} == "${e}"`,target:this.target}):this.$emit(pa.clear,{fieldName:this.fieldName,target:this.target})}}(0,n.__decorate)([s.attr],ha.prototype,"fieldName",void 0),(0,n.__decorate)([s.attr],ha.prototype,"type",void 0),(0,n.__decorate)([s.attr],ha.prototype,"label",void 0),(0,n.__decorate)([s.attr],ha.prototype,"target",void 0),(0,n.__decorate)([s.observable],ha.prototype,"textFilter",void 0),(0,n.__decorate)([s.observable],ha.prototype,"numFilterMin",void 0),(0,n.__decorate)([s.observable],ha.prototype,"numFilterMax",void 0),(0,n.__decorate)([s.observable],ha.prototype,"dateFilterMin",void 0),(0,n.__decorate)([s.observable],ha.prototype,"dateFilterMax",void 0),(0,n.__decorate)([s.attr],ha.prototype,"enumOptions",void 0),(0,n.__decorate)([s.observable],ha.prototype,"enumFilterOptions",void 0);const ma=ha.compose({baseName:"filter",template:ua,styles:oa});var fa=o(9325);const va=(e,t)=>s.css`
|
|
969
969
|
.filter-bar {
|
|
970
970
|
background-color: #2c2f33;
|
|
971
971
|
padding: calc(var(--design-unit) * 2px);
|
|
@@ -1001,38 +1001,38 @@
|
|
|
1001
1001
|
.toggle-collapsed {
|
|
1002
1002
|
color: #48ed9c;
|
|
1003
1003
|
}
|
|
1004
|
-
`,
|
|
1004
|
+
`,ga=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"}},ba=s.html`
|
|
1005
1005
|
<p>Fetching metadata for ${e=>e.resource}...</p>
|
|
1006
|
-
`,
|
|
1007
|
-
${(0,
|
|
1006
|
+
`,ya=s.html`
|
|
1007
|
+
${(0,s.when)((e=>e.collapsed),s.html`
|
|
1008
1008
|
<foundation-icon name="arrow-up"></foundation-icon>
|
|
1009
1009
|
`)}
|
|
1010
|
-
${(0,
|
|
1010
|
+
${(0,s.when)((e=>!e.collapsed),s.html`
|
|
1011
1011
|
<foundation-icon name="arrow-down"></foundation-icon>
|
|
1012
1012
|
`)}
|
|
1013
|
-
`,
|
|
1013
|
+
`,wa=s.html`
|
|
1014
1014
|
<div
|
|
1015
1015
|
class=${e=>(0,l.A)(["toggle",!0],["toggle-collapsed",e.collapsed])}
|
|
1016
1016
|
@click="${e=>e.toggle()}"
|
|
1017
1017
|
>
|
|
1018
|
-
${
|
|
1018
|
+
${ya}
|
|
1019
1019
|
</div>
|
|
1020
1020
|
<div class=${e=>(0,l.A)(["filter-bar",!0],["collapsed",e.collapsed])}>
|
|
1021
|
-
<div class="filter-grid" ${(0,
|
|
1022
|
-
${(0,
|
|
1021
|
+
<div class="filter-grid" ${(0,s.ref)("filterGrid")}>
|
|
1022
|
+
${(0,s.repeat)((e=>e.fields),s.html`
|
|
1023
1023
|
<foundation-filter
|
|
1024
1024
|
label="${e=>e.UI_LABEL}"
|
|
1025
1025
|
target="${(e,t)=>{var o;return null===(o=t.parent)||void 0===o?void 0:o.target}}"
|
|
1026
|
-
type="${e=>
|
|
1026
|
+
type="${e=>ga(e.TYPE)}"
|
|
1027
1027
|
fieldName="${e=>e.NAME}"
|
|
1028
1028
|
></foundation-filter>
|
|
1029
1029
|
`)}
|
|
1030
1030
|
</div>
|
|
1031
1031
|
</div>
|
|
1032
|
-
`,
|
|
1033
|
-
${e=>e.ready?
|
|
1034
|
-
`,
|
|
1035
|
-
${t&&`@media only screen and ${
|
|
1032
|
+
`,xa=s.html`
|
|
1033
|
+
${e=>e.ready?wa:ba}
|
|
1034
|
+
`,Fa=5;class $a extends r.FoundationElement{constructor(){super(...arguments),this.columns=Fa,this.ready=!1,this.collapsed=!0}connectedCallback(){super.connectedCallback(),this.init()}initLabels(){var e,t,o,a,i;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!==(i=e<(null===(a=this.fields)||void 0===a?void 0:a.length))&&void 0!==i&&i;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,fa.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=>mo.error(e)))}adjustColumnStyles(){this.filterGrid&&(this.filterGrid.style["grid-template-columns"]=`repeat(${this.columns}, 1fr)`)}toggle(){this.ready&&(this.collapsed=!this.collapsed)}}(0,n.__decorate)([s.attr],$a.prototype,"resource",void 0),(0,n.__decorate)([s.attr],$a.prototype,"only",void 0),(0,n.__decorate)([s.attr],$a.prototype,"labels",void 0),(0,n.__decorate)([s.attr],$a.prototype,"target",void 0),(0,n.__decorate)([s.attr],$a.prototype,"columns",void 0),(0,n.__decorate)([s.observable],$a.prototype,"ready",void 0),(0,n.__decorate)([s.observable],$a.prototype,"fields",void 0),(0,n.__decorate)([me.lj],$a.prototype,"connect",void 0),(0,n.__decorate)([s.observable],$a.prototype,"collapsed",void 0);const Sa=$a.compose({baseName:"filter-bar",template:xa,styles:va});var Da;!function(e){e.sm="(max-width: 640px)",e.md="(min-width: 641px) and (max-width: 1023px)",e.lg="(min-width: 1024px)"}(Da||(Da={}));const Ca=e=>{const t=e?`-${e}`:"";return s.css`
|
|
1035
|
+
${t&&`@media only screen and ${Da[e]} {`}
|
|
1036
1036
|
:host(.spacing${t}-1x) slot {
|
|
1037
1037
|
gap: calc(var(--design-unit) * 2px);
|
|
1038
1038
|
}
|
|
@@ -1149,7 +1149,7 @@
|
|
|
1149
1149
|
align-content: space-evenly;
|
|
1150
1150
|
}
|
|
1151
1151
|
${t&&"}"}
|
|
1152
|
-
`},
|
|
1152
|
+
`},_a=s.css`
|
|
1153
1153
|
:host {
|
|
1154
1154
|
width: 100%;
|
|
1155
1155
|
height: 100%;
|
|
@@ -1161,17 +1161,17 @@
|
|
|
1161
1161
|
display: flex;
|
|
1162
1162
|
}
|
|
1163
1163
|
|
|
1164
|
-
${
|
|
1165
|
-
${
|
|
1166
|
-
${
|
|
1167
|
-
${
|
|
1168
|
-
`,
|
|
1164
|
+
${Ca()}
|
|
1165
|
+
${Ca("lg")}
|
|
1166
|
+
${Ca("md")}
|
|
1167
|
+
${Ca("sm")}
|
|
1168
|
+
`,ka=s.html`
|
|
1169
1169
|
<template>
|
|
1170
1170
|
<slot></slot>
|
|
1171
1171
|
</template>
|
|
1172
|
-
`,
|
|
1172
|
+
`,Oa=void 0,Ta={};class Ra extends r.FoundationElement{}const La=Ra.compose(Object.assign({baseName:"flex-layout",styles:_a,template:ka,shadowOptions:Oa},Ta)),Aa=(e,t)=>s.css`
|
|
1173
1173
|
${(0,m.flipperStyles)(e,t)}
|
|
1174
|
-
`,
|
|
1174
|
+
`,Ma=(e,t)=>(0,r.flipperTemplate)(e,t);class Na extends m.Flipper{}const Ea=void 0,Ia={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 '},Pa=Na.compose(Object.assign({baseName:"flipper",template:Ma,styles:Aa,shadowOptions:Ea},Ia)),Ha=225,Ba=s.css`
|
|
1175
1175
|
/* Host */
|
|
1176
1176
|
:host {
|
|
1177
1177
|
display: inline-block;
|
|
@@ -1196,7 +1196,7 @@
|
|
|
1196
1196
|
height: 100%;
|
|
1197
1197
|
position: absolute;
|
|
1198
1198
|
/* stylelint-disable-next-line function-name-case */
|
|
1199
|
-
transition: transform ${
|
|
1199
|
+
transition: transform ${Ha.toString()}ms ease-in;
|
|
1200
1200
|
width: 20%;
|
|
1201
1201
|
z-index: 2001;
|
|
1202
1202
|
}
|
|
@@ -1248,7 +1248,7 @@
|
|
|
1248
1248
|
opacity: 50%;
|
|
1249
1249
|
position: absolute;
|
|
1250
1250
|
/* stylelint-disable-next-line function-name-case */
|
|
1251
|
-
transition: opacity ${
|
|
1251
|
+
transition: opacity ${Ha.toString()}ms linear;
|
|
1252
1252
|
width: 100%;
|
|
1253
1253
|
z-index: 2000;
|
|
1254
1254
|
}
|
|
@@ -1256,7 +1256,7 @@
|
|
|
1256
1256
|
:host([visuallyhidden]) div.background {
|
|
1257
1257
|
opacity: 0%;
|
|
1258
1258
|
}
|
|
1259
|
-
`,
|
|
1259
|
+
`,Ga=s.html`
|
|
1260
1260
|
<template ?closed=${e=>e.closed} ?visuallyhidden=${e=>e.visuallyhidden}>
|
|
1261
1261
|
<div class="container">
|
|
1262
1262
|
<div class="background" part="background" @click=${e=>e.closeFlyout()}></div>
|
|
@@ -1278,8 +1278,8 @@
|
|
|
1278
1278
|
</div>
|
|
1279
1279
|
</div>
|
|
1280
1280
|
</template>
|
|
1281
|
-
`;class
|
|
1282
|
-
${t&&`@media only screen and ${
|
|
1281
|
+
`;class za extends r.FoundationElement{constructor(){super(...arguments),this.position="right",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,n.__decorate)([s.attr],za.prototype,"position",void 0),(0,n.__decorate)([(0,s.attr)({mode:"boolean"})],za.prototype,"closed",void 0),(0,n.__decorate)([(0,s.attr)({mode:"boolean"})],za.prototype,"visuallyhidden",void 0);const ja=void 0,Va={},Ua=za.compose(Object.assign({baseName:"flyout",styles:Ba,template:Ga,shadowOptions:ja},Va));var Ya;!function(e){e.sm="(max-width: 640px)",e.md="(min-width: 641px) and (max-width: 1023px)",e.lg="(min-width: 1024px)"}(Ya||(Ya={}));const Wa=e=>{const t=e?`-${e}`:"";return s.css`
|
|
1282
|
+
${t&&`@media only screen and ${Ya[e]} {`}
|
|
1283
1283
|
:host(.spacing${t}-1x) slot {
|
|
1284
1284
|
gap: calc(var(--design-unit) * 2px);
|
|
1285
1285
|
}
|
|
@@ -1364,32 +1364,32 @@
|
|
|
1364
1364
|
place-items: stretch;
|
|
1365
1365
|
}
|
|
1366
1366
|
${t&&"}"}
|
|
1367
|
-
`},
|
|
1367
|
+
`},qa=s.css`
|
|
1368
1368
|
slot {
|
|
1369
1369
|
width: 100%;
|
|
1370
1370
|
height: 100%;
|
|
1371
1371
|
display: grid;
|
|
1372
1372
|
}
|
|
1373
1373
|
|
|
1374
|
-
${
|
|
1375
|
-
${
|
|
1376
|
-
${
|
|
1377
|
-
${
|
|
1378
|
-
`,
|
|
1374
|
+
${Wa()}
|
|
1375
|
+
${Wa("lg")}
|
|
1376
|
+
${Wa("md")}
|
|
1377
|
+
${Wa("sm")}
|
|
1378
|
+
`,Xa=s.html`
|
|
1379
1379
|
<template>
|
|
1380
1380
|
<slot></slot>
|
|
1381
1381
|
</template>
|
|
1382
|
-
`,
|
|
1382
|
+
`,Ka=void 0,Za={};class Ja{constructor(e,t,o,a="1fr",i="1fr"){this.listenerCache=new WeakMap,this.query=window.matchMedia(e);const n=t&&s.cssPartial`grid-template-columns: repeat(${t}, ${a});`,r=o&&s.cssPartial`grid-template-rows: repeat(${o}, ${i});`;this.styles=s.css`
|
|
1383
1383
|
slot {
|
|
1384
|
-
${
|
|
1384
|
+
${r||""}
|
|
1385
1385
|
${n||""}
|
|
1386
1386
|
}
|
|
1387
|
-
`}bind(e){let t=!1;const o=o=>{const{matches:a}=o;a&&!t?(e.$fastController.addStyles(this.styles),t=!0):!a&&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
|
|
1387
|
+
`}bind(e){let t=!1;const o=o=>{const{matches:a}=o;a&&!t?(e.$fastController.addStyles(this.styles),t=!0):!a&&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 Qa extends r.FoundationElement{constructor(){super(...arguments),this.behaviors=[]}connectedCallback(){super.connectedCallback(),this.behaviors=Object.keys(Ya).map((e=>{if(this[`col-${e}-count`]||this[`row-${e}-count`])return new Ja(Ya[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"]&&s.cssPartial`grid-template-rows: repeat(${this["row-count"]}, ${this["row-height"]||"1fr"});`,t=this["col-count"]&&s.cssPartial`grid-template-columns: repeat(${this["col-count"]}, ${this["col-width"]||"1fr"});`;this.baseStyles=s.css`
|
|
1388
1388
|
slot {
|
|
1389
1389
|
${e||""}
|
|
1390
1390
|
${t||""}
|
|
1391
1391
|
}
|
|
1392
|
-
`,this.$fastController.addStyles(this.baseStyles),this.$fastController.addBehaviors(this.behaviors)}disconnectedCallback(){super.disconnectedCallback(),this.$fastController.removeBehaviors(this.behaviors),this.$fastController.removeStyles(this.baseStyles)}}(0,n.__decorate)([
|
|
1392
|
+
`,this.$fastController.addStyles(this.baseStyles),this.$fastController.addBehaviors(this.behaviors)}disconnectedCallback(){super.disconnectedCallback(),this.$fastController.removeBehaviors(this.behaviors),this.$fastController.removeStyles(this.baseStyles)}}(0,n.__decorate)([s.attr],Qa.prototype,"col-count",void 0),(0,n.__decorate)([s.attr],Qa.prototype,"col-width",void 0),(0,n.__decorate)([s.attr],Qa.prototype,"col-lg-count",void 0),(0,n.__decorate)([s.attr],Qa.prototype,"col-lg-width",void 0),(0,n.__decorate)([s.attr],Qa.prototype,"col-md-count",void 0),(0,n.__decorate)([s.attr],Qa.prototype,"col-md-width",void 0),(0,n.__decorate)([s.attr],Qa.prototype,"col-sm-count",void 0),(0,n.__decorate)([s.attr],Qa.prototype,"col-sm-width",void 0),(0,n.__decorate)([s.attr],Qa.prototype,"row-count",void 0),(0,n.__decorate)([s.attr],Qa.prototype,"row-height",void 0),(0,n.__decorate)([s.attr],Qa.prototype,"row-lg-count",void 0),(0,n.__decorate)([s.attr],Qa.prototype,"row-lg-height",void 0),(0,n.__decorate)([s.attr],Qa.prototype,"row-md-count",void 0),(0,n.__decorate)([s.attr],Qa.prototype,"row-md-height",void 0),(0,n.__decorate)([s.attr],Qa.prototype,"row-sm-count",void 0),(0,n.__decorate)([s.attr],Qa.prototype,"row-sm-height",void 0);const ei=Qa.compose(Object.assign({baseName:"grid-layout",styles:qa,template:Xa,shadowOptions:Ka},Za)),ti=s.html`
|
|
1393
1393
|
<template>
|
|
1394
1394
|
<style>
|
|
1395
1395
|
:host {
|
|
@@ -1418,25 +1418,25 @@
|
|
|
1418
1418
|
</style>
|
|
1419
1419
|
<slot></slot>
|
|
1420
1420
|
</template>
|
|
1421
|
-
`,
|
|
1422
|
-
${
|
|
1423
|
-
`,
|
|
1421
|
+
`,oi=void 0,ai={};class ii extends r.FoundationElement{setGridItemProperties(e,t,o,a){if(t&&e&&o&&a){return`grid-row: ${0===t||0===a?"auto":`${t} / ${Number(t)+Number(a)}`}; grid-column: ${0===e||0===o?"auto":`${e} / ${Number(e)+Number(o)}`}`}}}(0,n.__decorate)([(0,s.attr)({attribute:"col-number"})],ii.prototype,"colNumber",void 0),(0,n.__decorate)([(0,s.attr)({attribute:"col-sm-number"})],ii.prototype,"colSmNumber",void 0),(0,n.__decorate)([(0,s.attr)({attribute:"col-md-number"})],ii.prototype,"colMdNumber",void 0),(0,n.__decorate)([(0,s.attr)({attribute:"col-lg-number"})],ii.prototype,"colLgNumber",void 0),(0,n.__decorate)([(0,s.attr)({attribute:"row-number"})],ii.prototype,"rowNumber",void 0),(0,n.__decorate)([(0,s.attr)({attribute:"row-sm-number"})],ii.prototype,"rowSmNumber",void 0),(0,n.__decorate)([(0,s.attr)({attribute:"row-md-number"})],ii.prototype,"rowMdNumber",void 0),(0,n.__decorate)([(0,s.attr)({attribute:"row-lg-number"})],ii.prototype,"rowLgNumber",void 0),(0,n.__decorate)([(0,s.attr)({attribute:"width"})],ii.prototype,"width",void 0),(0,n.__decorate)([(0,s.attr)({attribute:"width-sm"})],ii.prototype,"widthSm",void 0),(0,n.__decorate)([(0,s.attr)({attribute:"width-md"})],ii.prototype,"widthMd",void 0),(0,n.__decorate)([(0,s.attr)({attribute:"width-lg"})],ii.prototype,"widthLg",void 0),(0,n.__decorate)([(0,s.attr)({attribute:"height"})],ii.prototype,"height",void 0),(0,n.__decorate)([(0,s.attr)({attribute:"height-sm"})],ii.prototype,"heightSm",void 0),(0,n.__decorate)([(0,s.attr)({attribute:"height-md"})],ii.prototype,"heightMd",void 0),(0,n.__decorate)([(0,s.attr)({attribute:"height-lg"})],ii.prototype,"heightLg",void 0);const ni=ii.compose(Object.assign({baseName:"grid-layout-item",template:ti,shadowOptions:oi},ai));var si=o(3818),ri=o(5551),li=o(8019),di=o(5218);const ci=()=>(si.vI.add(di.mRB,li.NCV,ri.vnX),si.vz.css()),ui=(e,t)=>s.css`
|
|
1422
|
+
${ci()}
|
|
1423
|
+
`,pi=s.html`
|
|
1424
1424
|
<template>
|
|
1425
|
-
<i ${(0,
|
|
1425
|
+
<i ${(0,s.ref)("iElement")} class=${e=>`fa-${e.variant} fa-${e.name} fa-${e.size}`}>
|
|
1426
1426
|
<slot></slot>
|
|
1427
1427
|
</i>
|
|
1428
1428
|
</template>
|
|
1429
|
-
`,
|
|
1429
|
+
`,hi={mode:"open",delegatesFocus:!0},mi={};var fi;!function(e){e.solid="fas",e.regular="far",e.brand="fab"}(fi||(fi={}));class vi extends r.FoundationElement{constructor(){super(...arguments),this.variant="solid",this.size="sm"}variantChanged(e,t){t&&this.loadIcon()}nameChanged(e,t){t&&this.loadIcon()}sizeChanged(e,t){t&&this.loadIcon()}connectedCallback(){super.connectedCallback(),this.loadIcon()}disconnectedCallback(){super.disconnectedCallback(),this.iElement.replaceChildren()}loadIcon(){if(!this.iElement)return;const e=(0,si.N)({prefix:fi[this.variant],iconName:this.name}),t=(0,si.qv)(e);t&&t.node&&Array.from(t.node).map((e=>this.iElement.appendChild(e)))}}(0,n.__decorate)([s.observable],vi.prototype,"iElement",void 0),(0,n.__decorate)([s.attr],vi.prototype,"variant",void 0),(0,n.__decorate)([s.attr],vi.prototype,"name",void 0),(0,n.__decorate)([s.attr],vi.prototype,"size",void 0);const gi=vi.compose(Object.assign({baseName:"icon",template:pi,styles:ui,shadowOptions:hi},mi)),bi=(e,t)=>s.css`
|
|
1430
1430
|
${(0,m.optionStyles)(e,t)}
|
|
1431
|
-
`,
|
|
1431
|
+
`,yi=(e,t)=>(0,r.listboxOptionTemplate)(e,t);class wi extends m.ListboxOption{}const xi=void 0,Fi={},$i=wi.compose(Object.assign({baseName:"option",template:yi,styles:bi,shadowOptions:xi},Fi)),Si=(e,t)=>s.css`
|
|
1432
1432
|
${(0,m.menuStyles)(e,t)}
|
|
1433
|
-
`,
|
|
1433
|
+
`,Di=(e,t)=>(0,r.menuTemplate)(e,t);class Ci extends m.Menu{}const _i=void 0,ki={},Oi=Ci.compose(Object.assign({baseName:"menu",template:Di,styles:Si,shadowOptions:_i},ki)),Ti=(e,t)=>s.css`
|
|
1434
1434
|
${(0,m.menuItemStyles)(e,t)}
|
|
1435
|
-
`,
|
|
1436
|
-
${It}
|
|
1437
|
-
`,Ei=r.html`
|
|
1435
|
+
`,Ri=(e,t)=>(0,r.menuItemTemplate)(e,t);class Li extends m.MenuItem{connectedCallback(){super.connectedCallback(),this.addEventListener("click",(()=>this.$emit("onMenuClick")))}}const Ai=void 0,Mi={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 '},Ni=Li.compose(Object.assign({baseName:"menu-item",template:Ri,styles:Ti,shadowOptions:Ai},Mi)),Ei=s.css`
|
|
1438
1436
|
${Ht}
|
|
1439
|
-
`,Ii=
|
|
1437
|
+
`,Ii=s.html`
|
|
1438
|
+
${Gt}
|
|
1439
|
+
`,Pi={mode:"open",delegatesFocus:!0},Hi={};class Bi extends Vt{show(){this.onShowCallback&&this.onShowCallback(),this.mainElement.showModal()}}const Gi=Bi.compose(Object.assign({baseName:"modal",styles:Ei,template:Ii,shadowOptions:Pi},Hi));var zi;!function(e){e.BELOW="below",e.ABOVE="above",e.DYNAMIC="dynamic"}(zi||(zi={}));const ji=230,Vi=s.css`
|
|
1440
1440
|
.root {
|
|
1441
1441
|
position: relative;
|
|
1442
1442
|
width: inherit;
|
|
@@ -1572,20 +1572,20 @@
|
|
|
1572
1572
|
font-style: normal;
|
|
1573
1573
|
margin: calc(var(--design-unit) * 2px) 0;
|
|
1574
1574
|
}
|
|
1575
|
-
`,
|
|
1575
|
+
`,Ui=(e="foundation")=>s.html`
|
|
1576
1576
|
<label
|
|
1577
1577
|
part="label"
|
|
1578
1578
|
for="control"
|
|
1579
1579
|
class="${e=>e.defaultSlottedNodes&&e.defaultSlottedNodes.length?"label":"label label__hidden"}"
|
|
1580
1580
|
>
|
|
1581
1581
|
<slot
|
|
1582
|
-
${(0,
|
|
1582
|
+
${(0,s.slotted)({property:"defaultSlottedNodes",filter:r.whitespaceFilter})}
|
|
1583
1583
|
></slot>
|
|
1584
1584
|
</label>
|
|
1585
1585
|
<div class="root">
|
|
1586
1586
|
<div class="control">
|
|
1587
1587
|
<svg
|
|
1588
|
-
${(0,
|
|
1588
|
+
${(0,s.ref)("arrowIcon")}
|
|
1589
1589
|
@click=${e=>e.toggle()}
|
|
1590
1590
|
id="arrow-icon"
|
|
1591
1591
|
version="1.1"
|
|
@@ -1612,8 +1612,8 @@
|
|
|
1612
1612
|
@click=${e=>e.toggle()}
|
|
1613
1613
|
/>
|
|
1614
1614
|
</div>
|
|
1615
|
-
<div ${(0,
|
|
1616
|
-
${(0,
|
|
1615
|
+
<div ${(0,s.ref)("optionsElement")} class="options">
|
|
1616
|
+
${(0,s.when)((e=>e.search),s.html`
|
|
1617
1617
|
<${e}-text-field
|
|
1618
1618
|
id="filter-search"
|
|
1619
1619
|
placeholder="${e=>e.getPlaceholder}"
|
|
@@ -1622,7 +1622,7 @@
|
|
|
1622
1622
|
></${e}-text-field>
|
|
1623
1623
|
`)}
|
|
1624
1624
|
<div class="checkbox-container">
|
|
1625
|
-
${(0,
|
|
1625
|
+
${(0,s.when)((e=>e.all),s.html`
|
|
1626
1626
|
<${e}-checkbox
|
|
1627
1627
|
@click=${e=>e.selectCheckboxAll()}
|
|
1628
1628
|
@change=${(e,t)=>e.changeHandler(t.event)}
|
|
@@ -1631,7 +1631,7 @@
|
|
|
1631
1631
|
All ${e=>e.name}
|
|
1632
1632
|
</${e}-checkbox>
|
|
1633
1633
|
`)}
|
|
1634
|
-
${(0,
|
|
1634
|
+
${(0,s.repeat)((e=>e.filteredAvailableOptions),s.html`
|
|
1635
1635
|
<${e}-checkbox
|
|
1636
1636
|
@click=${(e,t)=>t.parent.selectCheckboxOne(e)}
|
|
1637
1637
|
@change=${(e,t)=>t.parent.changeHandler(t.event)}
|
|
@@ -1643,9 +1643,9 @@
|
|
|
1643
1643
|
</div>
|
|
1644
1644
|
</div>
|
|
1645
1645
|
</div>
|
|
1646
|
-
`,
|
|
1647
|
-
${
|
|
1648
|
-
`,
|
|
1646
|
+
`,Yi=s.html`
|
|
1647
|
+
${Ui()}
|
|
1648
|
+
`,Wi=void 0,qi={};class Xi extends r.FoundationElement{constructor(){super(...arguments),this.name="",this.all=!0,this.allSelected=!1,this.search=!0,this.clickOutside=e=>this.handleClickOutside(e),this.open=!1,this.options=[],this.selectedOptions=[],this.filteredAvailableOptions=[...this.options],this.position=zi.BELOW,this.initialisedOptions=!1}openChanged(e,t){var o,a,i,n;t?(document.addEventListener("mousedown",this.clickOutside),null===(o=this.arrowIcon)||void 0===o||o.classList.add("flipped"),null===(a=this.optionsElement)||void 0===a||a.classList.add("visible")):(document.removeEventListener("mousedown",this.clickOutside),null===(i=this.arrowIcon)||void 0===i||i.classList.remove("flipped"),null===(n=this.optionsElement)||void 0===n||n.classList.remove("visible"))}connectedCallback(){var e;super.connectedCallback(),this.position===zi.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]),this.filteredAvailableOptions=[...this.options]}selectedOptionsChanged(){this.$fastController.isConnected&&(this.initialisedOptions=!0)}toggle(){this.open||this.position!==zi.DYNAMIC||this.setDropdownPosition(),this.open=!this.open}setDropdownPosition(){var e,t;(this.scrollContainer||this.parentElement).clientHeight-(this.offsetTop-(this.scrollContainer||this.parentElement).scrollTop)<ji+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")}get getDisplayValue(){let e="";switch(this.selectedOptions.length){case 0:e=this.getPlaceholder;break;case 1:e=this.selectedOptions[0]||"";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.selectedOptions.length===this.options.length}isOptionSelected(e){return this.selectedOptions.includes(e)}selectCheckboxOne(e){const t=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)}selectCheckboxAll(){const e=this.selectedOptions.length===this.options.length;this.selectedOptions=e?[]:[...this.options],this.onAllSelectedCallback&&this.onAllSelectedCallback(!e),this.$emit("selectionChange",this.selectedOptions)}setFilter(e){this.filteredAvailableOptions=[...this.options.filter((t=>{const o=e.currentTarget;return t.toLowerCase().startsWith(o.value.toLowerCase())}))]}changeHandler(e){e.preventDefault(),e.stopImmediatePropagation()}handleClickOutside(e){no(e,this)&&(this.open=!1)}}(0,n.__decorate)([s.attr],Xi.prototype,"name",void 0),(0,n.__decorate)([(0,s.attr)({mode:"boolean"})],Xi.prototype,"all",void 0),(0,n.__decorate)([(0,s.attr)({mode:"boolean"})],Xi.prototype,"allSelected",void 0),(0,n.__decorate)([(0,s.attr)({mode:"boolean"})],Xi.prototype,"search",void 0),(0,n.__decorate)([s.observable],Xi.prototype,"defaultSlottedNodes",void 0),(0,n.__decorate)([s.observable],Xi.prototype,"open",void 0),(0,n.__decorate)([s.observable],Xi.prototype,"options",void 0),(0,n.__decorate)([s.observable],Xi.prototype,"selectedOptions",void 0),(0,n.__decorate)([s.observable],Xi.prototype,"filteredAvailableOptions",void 0),(0,n.__decorate)([s.observable],Xi.prototype,"scrollContainer",void 0),(0,n.__decorate)([s.observable],Xi.prototype,"position",void 0),(0,n.__decorate)([s.observable],Xi.prototype,"onAllSelectedCallback",void 0),(0,n.__decorate)([s.volatile],Xi.prototype,"getDisplayValue",null),(0,n.__decorate)([s.volatile],Xi.prototype,"getPlaceholder",null),(0,n.__decorate)([s.volatile],Xi.prototype,"isAllSelected",null);const Ki=Xi.compose(Object.assign({baseName:"multiselect",template:Yi,styles:Vi,shadowOptions:Wi},qi)),Zi=(e,t)=>s.css`
|
|
1649
1649
|
${(0,m.numberFieldStyles)(e,t)}
|
|
1650
1650
|
::part(label) {
|
|
1651
1651
|
color: var(--neutral-foreground-rest);
|
|
@@ -1675,9 +1675,9 @@
|
|
|
1675
1675
|
::part(end) {
|
|
1676
1676
|
margin-inline-end: unset;
|
|
1677
1677
|
}
|
|
1678
|
-
`,
|
|
1679
|
-
${(0,
|
|
1680
|
-
`;class
|
|
1678
|
+
`,Ji=(e,t)=>s.html`
|
|
1679
|
+
${(0,r.numberFieldTemplate)(e,t)}
|
|
1680
|
+
`;class Qi extends m.NumberField{constructor(){super(...arguments),this.hideStep=!1,this.value="",this.withFormatting=!1,this.isStepChange=!1}sanitiseInputVal(e){return e.replace(/[^0-9\-+.]|\b[-+]|[.]{2,}$/g,"")}toIntlNumberFormat(e){return Intl.NumberFormat().format(Number(e.replace(/,/g,"")))}validateValue(e){var t,o;let a=parseFloat(parseFloat(this.sanitiseInputVal(e)).toPrecision(12));return isNaN(a)?a="":(a=Math.min(a,null!==(t=this.max)&&void 0!==t?t:a),a=Math.max(a,null!==(o=this.min)&&void 0!==o?o:a).toString()),a.toLocaleString()}handleStepChange(){this.isStepChange=!0,this.value=this.sanitiseInputVal(this.value),this.isStepChange=!1}stepUp(){this.handleStepChange(),super.stepUp()}stepDown(){this.handleStepChange(),super.stepDown()}valueChanged(e,t){if(!this.isStepChange)if(this.withFormatting){const e=/^(?![\s\S])|^-$|\.0*$/g;this.value=e.test(t)?t:this.toIntlNumberFormat(this.validateValue(t))}else super.valueChanged(e,this.value)}}(0,n.__decorate)([(0,s.attr)({mode:"boolean"})],Qi.prototype,"hideStep",void 0),(0,n.__decorate)([s.attr],Qi.prototype,"value",void 0),(0,n.__decorate)([(0,s.attr)({mode:"boolean"})],Qi.prototype,"withFormatting",void 0);const en={delegatesFocus:!0,mode:"open"},tn={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 '},on=Qi.compose(Object.assign({baseName:"number-field",template:Ji,styles:Zi,shadowOptions:en},tn));var an=o(7750);const nn={toView:e=>JSON.stringify(e),fromView:e=>null==e?e:JSON.parse(e)};class sn extends r.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,n.__decorate)([s.attr],sn.prototype,"selector",void 0),(0,n.__decorate)([(0,s.attr)({mode:"boolean"})],sn.prototype,"show",void 0),(0,n.__decorate)([s.attr],sn.prototype,"event",void 0),(0,n.__decorate)([s.attr],sn.prototype,"placement",void 0),(0,n.__decorate)([(0,s.attr)({converter:nn})],sn.prototype,"offset",void 0),(0,n.__decorate)([(0,s.attr)({mode:"boolean"})],sn.prototype,"flip",void 0);const rn=s.css`
|
|
1681
1681
|
:host {
|
|
1682
1682
|
display: none;
|
|
1683
1683
|
inset: unset !important;
|
|
@@ -1687,22 +1687,22 @@
|
|
|
1687
1687
|
:host([show]) {
|
|
1688
1688
|
display: block;
|
|
1689
1689
|
}
|
|
1690
|
-
`,
|
|
1690
|
+
`,ln=s.html`
|
|
1691
1691
|
<template>
|
|
1692
1692
|
<slot></slot>
|
|
1693
1693
|
</template>
|
|
1694
|
-
`,
|
|
1694
|
+
`,dn=sn.compose({baseName:"popper",styles:rn,template:ln}),cn=(e,t)=>s.css`
|
|
1695
1695
|
${(0,m.progressStyles)(e,t)}
|
|
1696
1696
|
:host {
|
|
1697
1697
|
height: calc(var(--design-unit) * 2px);
|
|
1698
1698
|
}
|
|
1699
|
-
`,
|
|
1699
|
+
`,un=(e,t)=>(0,r.progressTemplate)(e,t);class pn extends m.Progress{}const hn=void 0,mn={indeterminateIndicator1:'<span class="indeterminate-indicator-1" part="indeterminate-indicator-1"></span>',indeterminateIndicator2:'<span class="indeterminate-indicator-1" part="indeterminate-indicator-1"></span>'},fn=pn.compose(Object.assign({baseName:"progress",template:un,styles:cn,shadowOptions:hn},mn)),vn=(e,t)=>s.css`
|
|
1700
1700
|
${(0,m.progressRingStyles)(e,t)}
|
|
1701
|
-
`,
|
|
1701
|
+
`,gn=(e,t)=>(0,r.progressRingTemplate)(e,t);class bn extends m.Progress{}const yn=void 0,wn={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 '},xn=bn.compose(Object.assign({baseName:"progress-ring",template:gn,styles:vn,shadowOptions:yn},wn)),Fn=(e,t)=>s.css`
|
|
1702
1702
|
${(0,m.radioStyles)(e,t)}
|
|
1703
|
-
|
|
1703
|
+
`,$n=(e,t)=>(0,r.radioTemplate)(e,t);class Sn extends m.Radio{}const Dn=void 0,Cn={checkedIndicator:'\n <div part="checked-indicator" class="checked-indicator"></div>\n '},_n=Sn.compose(Object.assign({baseName:"radio",template:$n,styles:Fn,shadowOptions:Dn},Cn)),kn=(e,t)=>s.css`
|
|
1704
1704
|
${(0,m.radioGroupStyles)(e,t)}
|
|
1705
|
-
`,
|
|
1705
|
+
`,On=(e,t)=>(0,r.radioGroupTemplate)(e,t);class Tn extends m.RadioGroup{}const Rn=void 0,Ln={},An=Tn.compose(Object.assign({baseName:"radio-group",template:On,styles:kn,shadowOptions:Rn},Ln)),Mn=(e,t)=>s.css`
|
|
1706
1706
|
${(0,m.radioGroupStyles)(e,t)}
|
|
1707
1707
|
::slotted(foundation-segmented-item:first-of-type) {
|
|
1708
1708
|
border-radius: calc(var(--control-corner-radius) * 1px) 0 0
|
|
@@ -1715,7 +1715,7 @@
|
|
|
1715
1715
|
calc(var(--control-corner-radius) * 1px) 0;
|
|
1716
1716
|
border-left-width: 0;
|
|
1717
1717
|
}
|
|
1718
|
-
`,Nn=(e,t)=>(0,
|
|
1718
|
+
`,Nn=(e,t)=>(0,r.radioGroupTemplate)(e,t);class En extends r.RadioGroup{valueChanged(){void 0===this.value&&this.slottedRadioButtons&&this.slottedRadioButtons.forEach((e=>{e.checked=!1})),super.valueChanged()}}const In=void 0,Pn={},Hn=En.compose(Object.assign({baseName:"segmented-control",template:Nn,styles:Mn,shadowOptions:In},Pn)),Bn=(e,t)=>s.css`
|
|
1719
1719
|
${(0,m.radioStyles)(e,t)}
|
|
1720
1720
|
:host {
|
|
1721
1721
|
padding: calc(var(--design-unit) * 2px) calc(var(--design-unit) * 4px);
|
|
@@ -1726,7 +1726,7 @@
|
|
|
1726
1726
|
:host([aria-checked='true']) {
|
|
1727
1727
|
background: var(--accent-foreground-rest);
|
|
1728
1728
|
}
|
|
1729
|
-
`,
|
|
1729
|
+
`,Gn=(e,t)=>s.html`
|
|
1730
1730
|
<template
|
|
1731
1731
|
role="radio"
|
|
1732
1732
|
aria-checked="${e=>e.checked}"
|
|
@@ -1740,21 +1740,21 @@
|
|
|
1740
1740
|
<slot></slot>
|
|
1741
1741
|
</span>
|
|
1742
1742
|
</template>
|
|
1743
|
-
`;class
|
|
1743
|
+
`;class zn extends m.Radio{}const jn=void 0,Vn={},Un=zn.compose(Object.assign({baseName:"segmented-item",template:Gn,styles:Bn,shadowOptions:jn},Vn)),Yn=(e,t)=>s.css`
|
|
1744
1744
|
${(0,m.selectStyles)(e,t)}
|
|
1745
|
-
`,
|
|
1745
|
+
`,Wn=(e,t)=>(0,r.selectTemplate)(e,t);class qn extends m.Select{}const Xn=void 0,Kn={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 '},Zn=qn.compose(Object.assign({baseName:"select",template:Wn,styles:Yn,shadowOptions:Xn},Kn)),Jn=(e,t)=>s.css`
|
|
1746
1746
|
${(0,m.skeletonStyles)(e,t)}
|
|
1747
|
-
`,
|
|
1747
|
+
`,Qn=(e,t)=>(0,r.skeletonTemplate)(e,t);class es extends m.Skeleton{}const ts=void 0,os={},as=es.compose(Object.assign({baseName:"skeleton",template:Qn,styles:Jn,shadowOptions:ts},os)),is=(e,t)=>s.css`
|
|
1748
1748
|
${(0,m.sliderStyles)(e,t)}
|
|
1749
1749
|
.track-progress {
|
|
1750
1750
|
background-color: var(--accent-fill-rest);
|
|
1751
1751
|
border-radius: calc(var(--control-corner-radius) * 1px);
|
|
1752
1752
|
}
|
|
1753
|
-
`;var
|
|
1753
|
+
`;var ns=o(4107),ss=o(9084);const rs=(e,t)=>s.html`
|
|
1754
1754
|
<template
|
|
1755
1755
|
role="slider"
|
|
1756
1756
|
class="${e=>e.readOnly?"readonly":""}
|
|
1757
|
-
${e=>e.orientation||
|
|
1757
|
+
${e=>e.orientation||ns.i.horizontal}"
|
|
1758
1758
|
tabindex="${e=>e.disabled?null:0}"
|
|
1759
1759
|
aria-valuetext="${e=>e.valueTextFormatter(e.value)}"
|
|
1760
1760
|
aria-valuenow="${e=>e.value}"
|
|
@@ -1766,15 +1766,15 @@
|
|
|
1766
1766
|
class="${e=>e.orientation}"
|
|
1767
1767
|
>
|
|
1768
1768
|
<div part="positioning-region" class="positioning-region">
|
|
1769
|
-
<div ${(0,
|
|
1769
|
+
<div ${(0,s.ref)("track")} part="track-container" class="track">
|
|
1770
1770
|
<div
|
|
1771
1771
|
class="track-progress"
|
|
1772
|
-
style="${e=>{const t=1-(0,
|
|
1772
|
+
style="${e=>{const t=1-(0,ss.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;`}}"
|
|
1773
1773
|
></div>
|
|
1774
1774
|
</div>
|
|
1775
1775
|
<slot></slot>
|
|
1776
1776
|
<div
|
|
1777
|
-
${(0,
|
|
1777
|
+
${(0,s.ref)("thumb")}
|
|
1778
1778
|
part="thumb-container"
|
|
1779
1779
|
class="thumb-container"
|
|
1780
1780
|
style="${e=>e.position}"
|
|
@@ -1783,7 +1783,7 @@
|
|
|
1783
1783
|
</div>
|
|
1784
1784
|
</div>
|
|
1785
1785
|
</template>
|
|
1786
|
-
`;class
|
|
1786
|
+
`;class ls extends m.Slider{}const ds=void 0,cs={thumb:'\n <div class="thumb-cursor"></div>\n '},us=ls.compose(Object.assign({baseName:"slider",template:rs,styles:is,shadowOptions:ds},cs)),ps=s.css`
|
|
1787
1787
|
@keyframes append-animate {
|
|
1788
1788
|
from {
|
|
1789
1789
|
transform: translateX(100%);
|
|
@@ -1865,13 +1865,13 @@
|
|
|
1865
1865
|
flex: 1;
|
|
1866
1866
|
overflow: hidden;
|
|
1867
1867
|
}
|
|
1868
|
-
`,
|
|
1869
|
-
<div class="snackbar ${e=>e.deleteAnimation}" ${(0,
|
|
1868
|
+
`,hs=s.html`
|
|
1869
|
+
<div class="snackbar ${e=>e.deleteAnimation}" ${(0,s.ref)("snackbar")}>
|
|
1870
1870
|
<div part="content" class="content">
|
|
1871
1871
|
<div>${e=>{var t;return(null===(t=e.error)||void 0===t?void 0:t.errorDetails)||"Place holder for error message"}}</div>
|
|
1872
1872
|
</div>
|
|
1873
1873
|
<div part="action" class="action">
|
|
1874
|
-
${(0,
|
|
1874
|
+
${(0,s.repeat)((e=>{var t,o,a;return null===(a=null===(o=null===(t=e.error)||void 0===t?void 0:t.config)||void 0===o?void 0:o.snackbar)||void 0===a?void 0:a.confirmingActions}),s.html`
|
|
1875
1875
|
<foundation-button
|
|
1876
1876
|
slot="action"
|
|
1877
1877
|
appearance="lightweight"
|
|
@@ -1882,7 +1882,7 @@
|
|
|
1882
1882
|
`)}
|
|
1883
1883
|
</div>
|
|
1884
1884
|
</div>
|
|
1885
|
-
`,
|
|
1885
|
+
`,ms={mode:"open",delegatesFocus:!0};class fs extends r.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,a,i;this.type=null!==(i=null===(a=null===(o=null==t?void 0:t.config)||void 0===o?void 0:o.snackbar)||void 0===a?void 0:a.type)&&void 0!==i?i:""}dismiss(){this.remove()}}(0,n.__decorate)([s.observable],fs.prototype,"error",void 0),(0,n.__decorate)([s.observable],fs.prototype,"deleteAnimation",void 0),(0,n.__decorate)([(0,s.attr)({attribute:"close-timeout"})],fs.prototype,"closeTimeout",void 0),(0,n.__decorate)([(0,s.attr)({attribute:"auto-close"})],fs.prototype,"autoClose",void 0),(0,n.__decorate)([(0,s.attr)({attribute:"type"})],fs.prototype,"type",void 0);const vs=fs.compose({baseName:"snackbar",styles:ps,template:hs,shadowOptions:ms}),gs=(e,t)=>s.css`
|
|
1886
1886
|
${(0,m.switchStyles)(e,t)}
|
|
1887
1887
|
.checked-indicator {
|
|
1888
1888
|
transform: scale(1.3);
|
|
@@ -1895,24 +1895,24 @@
|
|
|
1895
1895
|
.checked-indicator {
|
|
1896
1896
|
border-radius: calc(var(--control-corner-radius) * 2px);
|
|
1897
1897
|
}
|
|
1898
|
-
`,
|
|
1898
|
+
`,bs=(e,t)=>(0,r.switchTemplate)(e,t);class ys extends m.Switch{}const ws=void 0,xs={switch:'<div class="checked-indicator" part="checked-indicator"></div>'},Fs=ys.compose(Object.assign({baseName:"switch",template:bs,styles:gs,shadowOptions:ws},xs)),$s=(e,t)=>s.css`
|
|
1899
1899
|
${(0,m.tabStyles)(e,t)}
|
|
1900
|
-
|
|
1900
|
+
`,Ss=(e,t)=>(0,r.tabTemplate)(e,t);class Ds extends m.Tab{}const Cs=void 0,_s={},ks=Ds.compose(Object.assign({baseName:"tab",template:Ss,styles:$s,shadowOptions:Cs},_s)),Os=(e,t)=>s.css`
|
|
1901
1901
|
${(0,m.tabPanelStyles)(e,t)}
|
|
1902
|
-
`,
|
|
1902
|
+
`,Ts=(e,t)=>(0,r.tabPanelTemplate)(e,t);class Rs extends m.TabPanel{}const Ls=void 0,As={},Ms=Rs.compose(Object.assign({baseName:"tab-panel",template:Ts,styles:Os,shadowOptions:Ls},As)),Ns=(e,t)=>s.css`
|
|
1903
1903
|
${(0,m.tabsStyles)(e,t)}
|
|
1904
|
-
`,
|
|
1904
|
+
`,Es=(e,t)=>(0,r.tabsTemplate)(e,t);class Is extends m.Tabs{}const Ps=void 0,Hs={},Bs=Is.compose(Object.assign({baseName:"tabs",template:Es,styles:Ns,shadowOptions:Ps},Hs)),Gs=(e,t)=>s.css`
|
|
1905
1905
|
${(0,m.textAreaStyles)(e,t)}
|
|
1906
1906
|
:host .control {
|
|
1907
1907
|
padding: calc(var(--design-unit) * 3px);
|
|
1908
1908
|
}
|
|
1909
|
-
`,
|
|
1909
|
+
`,zs=(e,t)=>(0,r.textAreaTemplate)(e,t);class js extends m.TextArea{}const Vs=void 0,Us={},Ys=js.compose(Object.assign({baseName:"text-area",template:zs,styles:Gs,shadowOptions:Vs},Us)),Ws=(e,t)=>s.css`
|
|
1910
1910
|
${(0,m.textFieldStyles)(e,t)}
|
|
1911
1911
|
|
|
1912
1912
|
input {
|
|
1913
|
-
color-scheme: ${
|
|
1913
|
+
color-scheme: ${ft.activeColorScheme};
|
|
1914
1914
|
}
|
|
1915
|
-
`,
|
|
1915
|
+
`,qs=(e,t)=>s.html`
|
|
1916
1916
|
<template
|
|
1917
1917
|
class="
|
|
1918
1918
|
${e=>e.readOnly?"readonly":""}
|
|
@@ -1923,10 +1923,10 @@
|
|
|
1923
1923
|
for="${e=>e.id?e.id:"control"}"
|
|
1924
1924
|
class="${e=>e.defaultSlottedNodes&&e.defaultSlottedNodes.length?"label":"label label__hidden"}"
|
|
1925
1925
|
>
|
|
1926
|
-
<slot ${(0,
|
|
1926
|
+
<slot ${(0,s.slotted)({property:"defaultSlottedNodes",filter:r.whitespaceFilter})}></slot>
|
|
1927
1927
|
</label>
|
|
1928
1928
|
<div class="root" part="root">
|
|
1929
|
-
${(0,
|
|
1929
|
+
${(0,r.startSlotTemplate)(e,t)}
|
|
1930
1930
|
<input
|
|
1931
1931
|
name="${e=>e.name}"
|
|
1932
1932
|
autocomplete="${e=>e.autocomplete}"
|
|
@@ -1969,12 +1969,12 @@
|
|
|
1969
1969
|
aria-owns="${e=>e.ariaOwns}"
|
|
1970
1970
|
aria-relevant="${e=>e.ariaRelevant}"
|
|
1971
1971
|
aria-roledescription="${e=>e.ariaRoledescription}"
|
|
1972
|
-
${(0,
|
|
1972
|
+
${(0,s.ref)("control")}
|
|
1973
1973
|
/>
|
|
1974
|
-
${(0,
|
|
1974
|
+
${(0,r.endSlotTemplate)(e,t)}
|
|
1975
1975
|
</div>
|
|
1976
1976
|
</template>
|
|
1977
|
-
`;class
|
|
1977
|
+
`;class Xs extends m.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,n.__decorate)([s.attr],Xs.prototype,"autocomplete",void 0),(0,n.__decorate)([s.attr],Xs.prototype,"autocapitalize",void 0),(0,n.__decorate)([s.attr],Xs.prototype,"step",void 0);const Ks={mode:"open",delegatesFocus:!0},Zs={},Js=Xs.compose(Object.assign({baseName:"text-field",template:qs,styles:Ws,shadowOptions:Ks},Zs)),Qs=s.css`
|
|
1978
1978
|
@keyframes append-animate {
|
|
1979
1979
|
from {
|
|
1980
1980
|
transform: translateX(100%);
|
|
@@ -2075,12 +2075,12 @@
|
|
|
2075
2075
|
.close-icon svg {
|
|
2076
2076
|
cursor: pointer;
|
|
2077
2077
|
}
|
|
2078
|
-
`,
|
|
2079
|
-
<div class="toast ${e=>e.deleteAnimation}" ${(0,
|
|
2078
|
+
`,er=s.html`
|
|
2079
|
+
<div class="toast ${e=>e.deleteAnimation}" ${(0,s.ref)("toast")}>
|
|
2080
2080
|
<div class="content-wrapper">
|
|
2081
2081
|
<div part="top" class="top">
|
|
2082
2082
|
<slot name="top"></slot>
|
|
2083
|
-
<div class="close-icon" @click=${e=>e.close()}>${
|
|
2083
|
+
<div class="close-icon" @click=${e=>e.close()}>${Bt()}</div>
|
|
2084
2084
|
</div>
|
|
2085
2085
|
<div part="content" class="content">
|
|
2086
2086
|
<slot name="content"></slot>
|
|
@@ -2093,11 +2093,11 @@
|
|
|
2093
2093
|
</div>
|
|
2094
2094
|
</div>
|
|
2095
2095
|
</div>
|
|
2096
|
-
`,
|
|
2096
|
+
`,tr={mode:"open",delegatesFocus:!0},or={};class ar extends r.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,n.__decorate)([s.observable],ar.prototype,"deleteAnimation",void 0),(0,n.__decorate)([(0,s.attr)({attribute:"close-timeout"})],ar.prototype,"closeTimeout",void 0),(0,n.__decorate)([(0,s.attr)({attribute:"auto-close"})],ar.prototype,"autoClose",void 0);const ir=ar.compose(Object.assign({baseName:"toast",styles:Qs,template:er,shadowOptions:tr},or)),nr=(e,t)=>s.css`
|
|
2097
2097
|
${(0,m.toolbarStyles)(e,t)}
|
|
2098
|
-
`,
|
|
2098
|
+
`,sr=(e,t)=>(0,r.toolbarTemplate)(e,t);class rr extends m.Toolbar{}const lr=void 0,dr={},cr=rr.compose(Object.assign({baseName:"toolbar",template:sr,styles:nr,shadowOptions:lr},dr)),ur=(e,t)=>s.css`
|
|
2099
2099
|
${(0,m.tooltipStyles)(e,t)}
|
|
2100
|
-
`,
|
|
2100
|
+
`,pr=(e,t)=>(0,r.tooltipTemplate)(e,t);class hr extends m.Tooltip{}const mr=void 0,fr={},vr=hr.compose(Object.assign({baseName:"tooltip",template:pr,styles:ur,shadowOptions:mr},fr)),gr=(e,t)=>s.css`
|
|
2101
2101
|
${(0,m.treeItemStyles)(e,t)}
|
|
2102
2102
|
:host {
|
|
2103
2103
|
--focus-stroke-width: 0;
|
|
@@ -2114,9 +2114,9 @@
|
|
|
2114
2114
|
.positioning-region {
|
|
2115
2115
|
height: calc(((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) * 1px);
|
|
2116
2116
|
}
|
|
2117
|
-
`,
|
|
2117
|
+
`,br=(e,t)=>(0,r.treeItemTemplate)(e,t);class yr extends m.TreeItem{}const wr=void 0,xr={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>'},Fr=yr.compose(Object.assign({baseName:"tree-item",template:br,styles:gr,shadowOptions:wr},xr)),$r=(e,t)=>s.css`
|
|
2118
2118
|
${(0,m.treeViewStyles)(e,t)}
|
|
2119
|
-
|
|
2119
|
+
`,Sr=(e,t)=>(0,r.treeViewTemplate)(e,t);class Dr extends r.TreeView{}const Cr=void 0,_r={},kr=Dr.compose(Object.assign({baseName:"tree-view",template:Sr,styles:$r,shadowOptions:Cr},_r)),Or=(e,t)=>s.css`
|
|
2120
2120
|
.container {
|
|
2121
2121
|
position: relative;
|
|
2122
2122
|
width: 100%;
|
|
@@ -2136,7 +2136,7 @@
|
|
|
2136
2136
|
overflow: hidden;
|
|
2137
2137
|
text-overflow: ellipsis;
|
|
2138
2138
|
}
|
|
2139
|
-
`,
|
|
2139
|
+
`,Tr=s.html`
|
|
2140
2140
|
<div class="container" value=${e=>e.value}>
|
|
2141
2141
|
<fast-text-field
|
|
2142
2142
|
class="url-input"
|
|
@@ -2148,9 +2148,9 @@
|
|
|
2148
2148
|
:readOnly=${e=>e.readOnly}
|
|
2149
2149
|
}
|
|
2150
2150
|
></fast-text-field>
|
|
2151
|
-
${(0,
|
|
2151
|
+
${(0,s.when)((e=>e.readOnly||!e.focused),s.html`
|
|
2152
2152
|
<a class="url-input-link" href=${e=>e.value} target="_blank">${e=>e.value}</a>
|
|
2153
2153
|
`)}
|
|
2154
2154
|
</div>
|
|
2155
|
-
`,Ls=void 0,Ts={};class Rs extends m.TextField{constructor(){super(...arguments),this.value=""}saveUrl(e){this.value=e.startsWith("http")?e:"https://"+e,this.focused=!1}focus(){this.focused=!0}}(0,n.__decorate)([r.observable],Rs.prototype,"value",void 0),(0,n.__decorate)([r.observable],Rs.prototype,"focused",void 0);const As=Rs.compose(Object.assign({baseName:"url-input",template:Os,styles:ks,shadowOptions:Ls},Ts)),Ns={foundationActionsMenu:h,foundationAnchor:w,foundationBadge:C,foundationBanner:T,foundationBreadcrumbItem:z,foundationBreadcrumb:I,foundationButton:X,foundationCard:te,foundationCheckbox:se,foundationCombobox:he,foundationConnectionIndicator:ye,foundationDataGrid:De,foundationDataGridCell:Le,foundationDataGridRow:Me,foundationDatePicker:qe,foundationDesignSystemProvider:Mt,foundationDialog:Vt,foundationDisclosure:Kt,foundationDivider:oo,foundationDropdownMenu:uo,foundationErrorBoundary:_o,foundationErrorBanner:go,foundationErrorDialog:Ao,foundationFileUpload:ea,foundationFilter:ha,foundationFilterBar:$a,foundationFlexLayout:Ta,foundationFlipper:Ia,foundationFlyout:Va,foundationGridLayout:Qa,foundationGridLayoutItem:ii,foundationIcon:vi,foundationListboxOption:Fi,foundationMenu:ki,foundationMenuItem:Ni,foundationModal:Bi,foundationMultiselect:Xi,foundationNumberField:tn,foundationProgress:mn,foundationPopper:ln,foundationProgressRing:wn,foundationRadio:Cn,foundationRadioGroup:Rn,foundationSegmentedControl:Pn,foundationSegmentedItem:Vn,foundationSelect:Kn,foundationSkeleton:or,foundationSlider:cr,foundationSnackbar:fr,foundationSwitch:xr,foundationTab:_r,foundationTabPanel:Ar,foundationTabs:Hr,foundationTextArea:Ur,foundationTextField:Zr,foundationToast:as,foundationToolbar:ds,foundationTooltip:fs,foundationTreeItem:xs,foundationTreeView:_s,foundationUrlInput:As,register(e,...t){if(e)for(const o in this)"register"!==o&&this[o]().register(e,...t)}};function Ms(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 Es=(e,t="foundation")=>{e&&ft(a,i,e);return Ms(s.DesignSystem.getOrCreate(e).withPrefix(t))};class Is 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 Ps=o(2940),Hs=o(9162),Bs=o(5127),Gs=o(2449),js=o(1871),zs=o(6714);class Vs extends s.FoundationElement{constructor(){super(...arguments),this.withGridInit=!0,this.isSnapshot=!1,this.maxRows=Ps.WJ.MAX_ROWS_250,this.maxView=Ps.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 zs.X(new Map)}disconnectedCallback(){super.disconnectedCallback(),this.clearData()}reset(){this.requiresFullDataRefresh=!0,this.fetchGenesisData()}fetchGenesisData(e=!0){return(0,n.__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 ho.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===Hs.Cs.LOGOFF_ACK)this.dataSubWasLoggedOff=!0;else if(this.dataSubWasLoggedOff=!1,e.ROW){const t=(0,Bs.$)(e);this.handleStreamUpdate(t)}else this.handleStreamUpdate(e)}));else ho.debug(`Genesis Datasource init failed for ${this.resourceName}`)}))}initDatasource(){return(0,n.__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 ho.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 a=Array.from(this.rowsSyncedWithStream.values()).filter((t=>!e.REPLY.includes(t)));this.handleStreamDeletes(a)}applyDataserverData(e){var t,o,a,i;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===(a=e.deletes)||void 0===a?void 0:a.length)>0&&this.handleStreamDeletes(e.deletes),(null===(i=e.updates)||void 0===i?void 0:i.length)>0&&this.handleStreamUpdates(e.updates)}buildCriteria(){var e;const t=(null===(e=this.criteria)||void 0===e?void 0:e.split(";"))||[];return(0,Gs.p)(t.join(" && "),";")}criteriaChanged(e,t){const o=!e&&t,a=e!==(0,Gs.p)(t,";");(o||a)&&r.DOM.queueUpdate((()=>this.fetchGenesisData(null)))}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,n.__decorate)([me.lj],Vs.prototype,"connect",void 0),(0,n.__decorate)([js.Yh],Vs.prototype,"datasource",void 0),(0,n.__decorate)([(0,r.attr)({mode:"boolean"})],Vs.prototype,"withGridInit",void 0),(0,n.__decorate)([r.attr],Vs.prototype,"criteria",void 0),(0,n.__decorate)([r.observable],Vs.prototype,"data",void 0),(0,n.__decorate)([r.attr],Vs.prototype,"fields",void 0),(0,n.__decorate)([(0,r.attr)({mode:"boolean"})],Vs.prototype,"isSnapshot",void 0),(0,n.__decorate)([r.attr],Vs.prototype,"maxRows",void 0),(0,n.__decorate)([r.attr],Vs.prototype,"maxView",void 0),(0,n.__decorate)([r.attr],Vs.prototype,"orderBy",void 0),(0,n.__decorate)([r.observable],Vs.prototype,"request",void 0),(0,n.__decorate)([r.attr],Vs.prototype,"resourceName",void 0),(0,n.__decorate)([(0,r.attr)({mode:"boolean"})],Vs.prototype,"reverse",void 0),(0,n.__decorate)([r.attr],Vs.prototype,"rowId",void 0),(0,n.__decorate)([(0,r.attr)({mode:"boolean",attribute:"with-timestamp-formatting"})],Vs.prototype,"withTimestampFormatting",void 0);let Us=class extends Vs{constructor(){super(...arguments),this.isSnapshot=!0}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});return(0,n.__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(){ho.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){ho.debug("handleStreamInserts - Method not implemented.")}handleStreamDeletes(e){ho.debug("handleStreamDeletes - Method not implemented.")}handleStreamUpdates(e){ho.debug("handleStreamUpdates - Method not implemented.")}};var Ys;Us=(0,n.__decorate)([(0,r.customElement)({name:"data-grid-datasource"})],Us);let Ws=Ys=class extends Vs{constructor(){super(...arguments),this.optionElement="fast-option",this.isSnapshot=!0}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});var t;return(0,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.data)&&this.connect.isConnected&&this.fetchGenesisData(),this.valueField||ho.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 Ys||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: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 a=null===(t=this.options.find((e=>e.value===this.initialSelectedValue)))||void 0===t?void 0:t.label;r.DOM.queueUpdate((()=>{this.select.value=a}))}handleStreamInserts(e){ho.debug("handleStreamInserts - Method not implemented.")}handleStreamDeletes(e){ho.debug("handleStreamDeletes - Method not implemented.")}handleStreamUpdates(e){ho.debug("handleStreamUpdates - Method not implemented.")}};(0,n.__decorate)([(0,r.attr)({attribute:"label-field"})],Ws.prototype,"labelField",void 0),(0,n.__decorate)([(0,r.attr)({attribute:"value-field"})],Ws.prototype,"valueField",void 0),(0,n.__decorate)([r.observable],Ws.prototype,"initialSelectedValue",void 0),Ws=Ys=(0,n.__decorate)([(0,r.customElement)({name:"options-datasource"})],Ws);let qs=class extends Vs{constructor(){super(...arguments),this.isSnapshot=!0}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});return(0,n.__awaiter)(this,void 0,void 0,(function*(){e.connectedCallback.call(this),this.fields=this.valueField,this.select=this.parentElement,this.select&&this.valueField&&(this.resourceName||this.data)&&this.connect.isConnected&&this.fetchGenesisData(),this.valueField||ho.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]})));this.select.options=t.map((({value:e})=>e))}handleStreamInserts(e){ho.debug("handleStreamInserts - Method not implemented.")}handleStreamDeletes(e){ho.debug("handleStreamDeletes - Method not implemented.")}handleStreamUpdates(e){ho.debug("handleStreamUpdates - Method not implemented.")}};(0,n.__decorate)([(0,r.attr)({attribute:"value-field"})],qs.prototype,"valueField",void 0),qs=(0,n.__decorate)([(0,r.customElement)({name:"multiselect-datasource"})],qs);const Xs=(e,t)=>o=>{const a="function"==typeof t?t:(i=t,e=>Object.assign(Object.assign({},i),e));var i;return r.FASTElement.define(class extends e{},a(o))};function Ks(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 Zs=o(792);let Js=class extends(Zs.F0.from(r.FASTElement)){connectedCallback(){super.connectedCallback(),r.DOM.queueUpdate((()=>(0,n.__awaiter)(this,void 0,void 0,(function*(){this.$router.config=this.config}))))}};Js=(0,n.__decorate)([(0,r.customElement)({name:"foundation-router"})],Js);const Qs=()=>Es().register(Ns)}}]);
|
|
2156
|
-
//# sourceMappingURL=88.
|
|
2155
|
+
`,Rr=void 0,Lr={};class Ar extends m.TextField{constructor(){super(...arguments),this.value=""}saveUrl(e){this.value=e.startsWith("http")?e:"https://"+e,this.focused=!1}focus(){this.focused=!0}}(0,n.__decorate)([s.observable],Ar.prototype,"value",void 0),(0,n.__decorate)([s.observable],Ar.prototype,"focused",void 0);const Mr=Ar.compose(Object.assign({baseName:"url-input",template:Tr,styles:Or,shadowOptions:Rr},Lr)),Nr={foundationActionsMenu:h,foundationAnchor:w,foundationBadge:C,foundationBanner:R,foundationBreadcrumbItem:j,foundationBreadcrumb:I,foundationButton:X,foundationCard:te,foundationCheckbox:re,foundationCombobox:he,foundationConnectionIndicator:ye,foundationDataGrid:De,foundationDataGridCell:Te,foundationDataGridRow:Ne,foundationDatePicker:qe,foundationDesignSystemProvider:It,foundationDialog:Yt,foundationDisclosure:Jt,foundationDivider:io,foundationDropdownMenu:ho,foundationErrorBoundary:ko,foundationErrorBanner:bo,foundationErrorDialog:Mo,foundationFileUpload:ta,foundationFilter:ma,foundationFilterBar:Sa,foundationFlexLayout:La,foundationFlipper:Pa,foundationFlyout:Ua,foundationGridLayout:ei,foundationGridLayoutItem:ni,foundationIcon:gi,foundationListboxOption:$i,foundationMenu:Oi,foundationMenuItem:Ni,foundationModal:Gi,foundationMultiselect:Ki,foundationNumberField:on,foundationProgress:fn,foundationPopper:dn,foundationProgressRing:xn,foundationRadio:_n,foundationRadioGroup:An,foundationSegmentedControl:Hn,foundationSegmentedItem:Un,foundationSelect:Zn,foundationSkeleton:as,foundationSlider:us,foundationSnackbar:vs,foundationSwitch:Fs,foundationTab:ks,foundationTabPanel:Ms,foundationTabs:Bs,foundationTextArea:Ys,foundationTextField:Js,foundationToast:ir,foundationToolbar:cr,foundationTooltip:vr,foundationTreeItem:Fr,foundationTreeView:kr,foundationUrlInput:Mr,register(e,...t){if(e)for(const o in this)"register"!==o&&this[o]().register(e,...t)}};function Er(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 Ir=(e,t="foundation")=>{e&&vt(a,i,e);return Er(r.DesignSystem.getOrCreate(e).withPrefix(t))};class Pr extends s.CSSDirective{constructor(e){super(),this.tokenMap=e}createTokenPartial(e,t){return s.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 Hr=o(2940),Br=o(9162),Gr=o(5127),zr=o(2449),jr=o(1871),Vr=o(6714);class Ur extends r.FoundationElement{constructor(){super(...arguments),this.withGridInit=!0,this.isSnapshot=!1,this.maxRows=Hr.WJ.MAX_ROWS_250,this.maxView=Hr.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 Vr.X(new Map)}disconnectedCallback(){super.disconnectedCallback(),this.clearData()}reset(){this.requiresFullDataRefresh=!0,this.fetchGenesisData()}fetchGenesisData(e=!0){return(0,n.__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 mo.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===Br.Cs.LOGOFF_ACK)this.dataSubWasLoggedOff=!0;else if(this.dataSubWasLoggedOff=!1,e.ROW){const t=(0,Gr.$)(e);this.handleStreamUpdate(t)}else this.handleStreamUpdate(e)}));else mo.debug(`Genesis Datasource init failed for ${this.resourceName}`)}))}initDatasource(){return(0,n.__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 mo.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 a=Array.from(this.rowsSyncedWithStream.values()).filter((t=>!e.REPLY.includes(t)));this.handleStreamDeletes(a)}applyDataserverData(e){var t,o,a,i;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===(a=e.deletes)||void 0===a?void 0:a.length)>0&&this.handleStreamDeletes(e.deletes),(null===(i=e.updates)||void 0===i?void 0:i.length)>0&&this.handleStreamUpdates(e.updates)}buildCriteria(){var e;const t=(null===(e=this.criteria)||void 0===e?void 0:e.split(";"))||[];return(0,zr.p)(t.join(" && "),";")}criteriaChanged(e,t){const o=!e&&t,a=e!==(0,zr.p)(t,";");(o||a)&&s.DOM.queueUpdate((()=>this.fetchGenesisData(null)))}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,n.__decorate)([me.lj],Ur.prototype,"connect",void 0),(0,n.__decorate)([jr.Yh],Ur.prototype,"datasource",void 0),(0,n.__decorate)([(0,s.attr)({mode:"boolean"})],Ur.prototype,"withGridInit",void 0),(0,n.__decorate)([s.attr],Ur.prototype,"criteria",void 0),(0,n.__decorate)([s.observable],Ur.prototype,"data",void 0),(0,n.__decorate)([s.attr],Ur.prototype,"fields",void 0),(0,n.__decorate)([(0,s.attr)({mode:"boolean"})],Ur.prototype,"isSnapshot",void 0),(0,n.__decorate)([s.attr],Ur.prototype,"maxRows",void 0),(0,n.__decorate)([s.attr],Ur.prototype,"maxView",void 0),(0,n.__decorate)([s.attr],Ur.prototype,"orderBy",void 0),(0,n.__decorate)([s.observable],Ur.prototype,"request",void 0),(0,n.__decorate)([s.attr],Ur.prototype,"resourceName",void 0),(0,n.__decorate)([(0,s.attr)({mode:"boolean"})],Ur.prototype,"reverse",void 0),(0,n.__decorate)([s.attr],Ur.prototype,"rowId",void 0),(0,n.__decorate)([(0,s.attr)({mode:"boolean",attribute:"with-timestamp-formatting"})],Ur.prototype,"withTimestampFormatting",void 0);let Yr=class extends Ur{constructor(){super(...arguments),this.isSnapshot=!0}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});return(0,n.__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(){mo.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){mo.debug("handleStreamInserts - Method not implemented.")}handleStreamDeletes(e){mo.debug("handleStreamDeletes - Method not implemented.")}handleStreamUpdates(e){mo.debug("handleStreamUpdates - Method not implemented.")}};var Wr;Yr=(0,n.__decorate)([(0,s.customElement)({name:"data-grid-datasource"})],Yr);let qr=Wr=class extends Ur{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.data)&&this.connect.isConnected&&this.fetchGenesisData(),this.valueField||mo.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 Wr||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: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 a=null===(t=this.options.find((e=>e.value===this.initialSelectedValue)))||void 0===t?void 0:t.label;s.DOM.queueUpdate((()=>{this.select.value=a}))}handleStreamInserts(e){mo.debug("handleStreamInserts - Method not implemented.")}handleStreamDeletes(e){mo.debug("handleStreamDeletes - Method not implemented.")}handleStreamUpdates(e){mo.debug("handleStreamUpdates - Method not implemented.")}};(0,n.__decorate)([(0,s.attr)({attribute:"label-field"})],qr.prototype,"labelField",void 0),(0,n.__decorate)([(0,s.attr)({attribute:"value-field"})],qr.prototype,"valueField",void 0),(0,n.__decorate)([s.observable],qr.prototype,"initialSelectedValue",void 0),qr=Wr=(0,n.__decorate)([(0,s.customElement)({name:"options-datasource"})],qr);let Xr=class extends Ur{constructor(){super(...arguments),this.isSnapshot=!0}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});return(0,n.__awaiter)(this,void 0,void 0,(function*(){e.connectedCallback.call(this),this.fields=this.valueField,this.select=this.parentElement,this.select&&this.valueField&&(this.resourceName||this.data)&&this.connect.isConnected&&this.fetchGenesisData(),this.valueField||mo.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]})));this.select.options=t.map((({value:e})=>e))}handleStreamInserts(e){mo.debug("handleStreamInserts - Method not implemented.")}handleStreamDeletes(e){mo.debug("handleStreamDeletes - Method not implemented.")}handleStreamUpdates(e){mo.debug("handleStreamUpdates - Method not implemented.")}};(0,n.__decorate)([(0,s.attr)({attribute:"value-field"})],Xr.prototype,"valueField",void 0),Xr=(0,n.__decorate)([(0,s.customElement)({name:"multiselect-datasource"})],Xr);const Kr=(e,t)=>o=>{const a="function"==typeof t?t:(i=t,e=>Object.assign(Object.assign({},i),e));var i;return s.FASTElement.define(class extends e{},a(o))};function Zr(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 Jr=o(792);let Qr=class extends(Jr.F0.from(s.FASTElement)){connectedCallback(){super.connectedCallback(),s.DOM.queueUpdate((()=>(0,n.__awaiter)(this,void 0,void 0,(function*(){this.$router.config=this.config}))))}};Qr=(0,n.__decorate)([(0,s.customElement)({name:"foundation-router"})],Qr);const el=()=>Ir().register(Nr)}}]);
|
|
2156
|
+
//# sourceMappingURL=88.6c832220c16c7c5889e389de8ba2fbd737fedefbfdcf62f2d80a438d357baa72.js.map
|