@genesislcap/design-system-configurator 14.52.2-alpha-9fa4f9f.0 → 14.52.2
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/{278.278.9edc738eb746192688d4.js → 278.278.6a229a83edb97436d5ec.js} +3 -3
- package/dist/278.bb2f3e989183780321c91c083131e633.js.map +1 -0
- package/dist/{designSystemConfigurator.49dc3217b8c83ee52481513890132652.js.map → designSystemConfigurator.87eda0e7ba88efea4942918b527df439.js.map} +1 -1
- package/dist/index.html +1 -1
- package/dist/{main.b38958afe1dc66b310b6.js → main.c99b82c20c82e2c0ca14.js} +2 -2
- package/dist/{main.305af11d761bc46030fd0f998e38d2ba.js.map → main.cddf6456d6971626413d2677179529d2.js.map} +1 -1
- package/dist/remoteEntry.js +2 -2
- package/package.json +7 -7
- package/dist/278.f79e864da5894440560af7cfa629ad3f.js.map +0 -1
- /package/dist/{278.278.9edc738eb746192688d4.js.LICENSE.txt → 278.278.6a229a83edb97436d5ec.js.LICENSE.txt} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! For license information please see 278.278.
|
|
1
|
+
/*! For license information please see 278.278.6a229a83edb97436d5ec.js.LICENSE.txt */
|
|
2
2
|
(self.webpackChunk_genesislcap_design_system_configurator=self.webpackChunk_genesislcap_design_system_configurator||[]).push([[278],{87530:function(e){e.exports=function(){"use strict";var e=1e3,t=6e4,o=36e5,i="millisecond",a="second",n="minute",s="hour",r="day",l="week",d="month",c="quarter",u="year",p="date",h="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,f=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],o=e%100;return"["+e+(t[(o-20)%10]||t[o]||t[0])+"]"}},g=function(e,t,o){var i=String(e);return!i||i.length>=t?e:""+Array(t+1-i.length).join(o)+e},b={s:g,z:function(e){var t=-e.utcOffset(),o=Math.abs(t),i=Math.floor(o/60),a=o%60;return(t<=0?"+":"-")+g(i,2,"0")+":"+g(a,2,"0")},m:function e(t,o){if(t.date()<o.date())return-e(o,t);var i=12*(o.year()-t.year())+(o.month()-t.month()),a=t.clone().add(i,d),n=o-a<0,s=t.clone().add(i+(n?-1:1),d);return+(-(i+(o-a)/(n?a-s:s-a))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:d,y:u,w:l,d:r,D:p,h:s,m:n,s:a,ms:i,Q:c}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},y="en",w={};w[y]=v;var x=function(e){return e instanceof D},F=function e(t,o,i){var a;if(!t)return y;if("string"==typeof t){var n=t.toLowerCase();w[n]&&(a=n),o&&(w[n]=o,a=n);var s=t.split("-");if(!a&&s.length>1)return e(s[0])}else{var r=t.name;w[r]=t,a=r}return!i&&a&&(y=a),a||!i&&y},$=function(e,t){if(x(e))return e.clone();var o="object"==typeof t?t:{};return o.date=e,o.args=arguments,new D(o)},S=b;S.l=F,S.i=x,S.w=function(e,t){return $(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var D=function(){function v(e){this.$L=F(e.locale,null,!0),this.parse(e)}var g=v.prototype;return g.parse=function(e){this.$d=function(e){var t=e.date,o=e.utc;if(null===t)return new Date(NaN);if(S.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var i=t.match(m);if(i){var a=i[2]-1||0,n=(i[7]||"0").substring(0,3);return o?new Date(Date.UTC(i[1],a,i[3]||1,i[4]||0,i[5]||0,i[6]||0,n)):new Date(i[1],a,i[3]||1,i[4]||0,i[5]||0,i[6]||0,n)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},g.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},g.$utils=function(){return S},g.isValid=function(){return!(this.$d.toString()===h)},g.isSame=function(e,t){var o=$(e);return this.startOf(t)<=o&&o<=this.endOf(t)},g.isAfter=function(e,t){return $(e)<this.startOf(t)},g.isBefore=function(e,t){return this.endOf(t)<$(e)},g.$g=function(e,t,o){return S.u(e)?this[t]:this.set(o,e)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(e,t){var o=this,i=!!S.u(t)||t,c=S.p(e),h=function(e,t){var a=S.w(o.$u?Date.UTC(o.$y,t,e):new Date(o.$y,t,e),o);return i?a:a.endOf(r)},m=function(e,t){return S.w(o.toDate()[e].apply(o.toDate("s"),(i?[0,0,0,0]:[23,59,59,999]).slice(t)),o)},f=this.$W,v=this.$M,g=this.$D,b="set"+(this.$u?"UTC":"");switch(c){case u:return i?h(1,0):h(31,11);case d:return i?h(1,v):h(0,v+1);case l:var y=this.$locale().weekStart||0,w=(f<y?f+7:f)-y;return h(i?g-w:g+(6-w),v);case r:case p:return m(b+"Hours",0);case s:return m(b+"Minutes",1);case n:return m(b+"Seconds",2);case a:return m(b+"Milliseconds",3);default:return this.clone()}},g.endOf=function(e){return this.startOf(e,!1)},g.$set=function(e,t){var o,l=S.p(e),c="set"+(this.$u?"UTC":""),h=(o={},o[r]=c+"Date",o[p]=c+"Date",o[d]=c+"Month",o[u]=c+"FullYear",o[s]=c+"Hours",o[n]=c+"Minutes",o[a]=c+"Seconds",o[i]=c+"Milliseconds",o)[l],m=l===r?this.$D+(t-this.$W):t;if(l===d||l===u){var f=this.clone().set(p,1);f.$d[h](m),f.init(),this.$d=f.set(p,Math.min(this.$D,f.daysInMonth())).$d}else h&&this.$d[h](m);return this.init(),this},g.set=function(e,t){return this.clone().$set(e,t)},g.get=function(e){return this[S.p(e)]()},g.add=function(i,c){var p,h=this;i=Number(i);var m=S.p(c),f=function(e){var t=$(h);return S.w(t.date(t.date()+Math.round(e*i)),h)};if(m===d)return this.set(d,this.$M+i);if(m===u)return this.set(u,this.$y+i);if(m===r)return f(1);if(m===l)return f(7);var v=(p={},p[n]=t,p[s]=o,p[a]=e,p)[m]||1,g=this.$d.getTime()+i*v;return S.w(g,this)},g.subtract=function(e,t){return this.add(-1*e,t)},g.format=function(e){var t=this,o=this.$locale();if(!this.isValid())return o.invalidDate||h;var i=e||"YYYY-MM-DDTHH:mm:ssZ",a=S.z(this),n=this.$H,s=this.$m,r=this.$M,l=o.weekdays,d=o.months,c=function(e,o,a,n){return e&&(e[o]||e(t,i))||a[o].slice(0,n)},u=function(e){return S.s(n%12||12,e,"0")},p=o.meridiem||function(e,t,o){var i=e<12?"AM":"PM";return o?i.toLowerCase():i},m={YY:String(this.$y).slice(-2),YYYY:this.$y,M:r+1,MM:S.s(r+1,2,"0"),MMM:c(o.monthsShort,r,d,3),MMMM:c(d,r),D:this.$D,DD:S.s(this.$D,2,"0"),d:String(this.$W),dd:c(o.weekdaysMin,this.$W,l,2),ddd:c(o.weekdaysShort,this.$W,l,3),dddd:l[this.$W],H:String(n),HH:S.s(n,2,"0"),h:u(1),hh:u(2),a:p(n,s,!0),A:p(n,s,!1),m:String(s),mm:S.s(s,2,"0"),s:String(this.$s),ss:S.s(this.$s,2,"0"),SSS:S.s(this.$ms,3,"0"),Z:a};return i.replace(f,(function(e,t){return t||m[e]||a.replace(":","")}))},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(i,p,h){var m,f=S.p(p),v=$(i),g=(v.utcOffset()-this.utcOffset())*t,b=this-v,y=S.m(this,v);return y=(m={},m[u]=y/12,m[d]=y,m[c]=y/3,m[l]=(b-g)/6048e5,m[r]=(b-g)/864e5,m[s]=b/o,m[n]=b/t,m[a]=b/e,m)[f]||b,h?y:S.a(y)},g.daysInMonth=function(){return this.endOf(d).$D},g.$locale=function(){return w[this.$L]},g.locale=function(e,t){if(!e)return this.$L;var o=this.clone(),i=F(e,t,!0);return i&&(o.$L=i),o},g.clone=function(){return S.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},v}(),C=D.prototype;return $.prototype=C,[["$ms",i],["$s",a],["$m",n],["$H",s],["$W",r],["$M",d],["$y",u],["$D",p]].forEach((function(e){C[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),$.extend=function(e,t){return e.$i||(e(t,D,$),e.$i=!0),$},$.locale=F,$.isDayjs=x,$.unix=function(e){return $(1e3*e)},$.en=w[y],$.Ls=w,$.p={},$}()},78113:function(e){e.exports=function(){"use strict";return function(e,t){t.prototype.isLeapYear=function(){return this.$y%4==0&&this.$y%100!=0||this.$y%400==0}}}()},64822:(e,t,o)=>{"use strict";o.r(t),o.d(t,{ActionsMenu:()=>m,Anchor:()=>y,Badge:()=>D,Banner:()=>R,BaseDatasource:()=>tl,Breadcrumb:()=>M,BreadcrumbItem:()=>G,Button:()=>q,CSSVarsTokenMapper:()=>Xr,Card:()=>ee,Checkbox:()=>se,Combobox:()=>pe,ConnectionIndicator:()=>we,DEFUALT_FILTER_BAR_COLUMNS:()=>Ni,DataGrid:()=>Se,DataGridCell:()=>ke,DataGridDatasource:()=>ol,DataGridRow:()=>Ae,DatePicker:()=>Xe,Dialog:()=>Wt,DialogElement:()=>Yt,Disclosure:()=>Zt,Divider:()=>io,DropdownMenu:()=>mo,ErrorBanner:()=>yo,ErrorBoundary:()=>Eo,ErrorBoundaryEvent:()=>xo,ErrorDialog:()=>Bo,FaPrefixFromStyle:()=>Ca,FileUpload:()=>di,Filter:()=>Si,FilterBar:()=>Ai,FilterEvents:()=>$i,FlexLayout:()=>Gi,FlexMediaQueriesEnum:()=>Mi,Flipper:()=>Yi,Flyout:()=>Qi,FoundationDesignSystemProvider:()=>Pt,FoundationRouter:()=>Fl,GridLayout:()=>ca,GridLayoutItem:()=>fa,GridMediaQueriesEnum:()=>ia,Icon:()=>_a,ListboxOption:()=>La,Menu:()=>Ia,MenuItem:()=>za,Modal:()=>Za,Multiselect:()=>rn,MultiselectDatasource:()=>bl,NotificationListener:()=>ml,NumberField:()=>un,OptionsDatasource:()=>gl,Popper:()=>gn,Progress:()=>$n,ProgressRing:()=>kn,Radio:()=>En,RadioGroup:()=>Bn,SegmentedControl:()=>Wn,SegmentedItem:()=>Qn,Select:()=>ns,Skeleton:()=>us,Slider:()=>ys,Snackbar:()=>Cs,Switch:()=>Ts,Tab:()=>Ms,TabPanel:()=>Gs,Tabs:()=>qs,TextArea:()=>er,TextField:()=>sr,Toast:()=>mr,Toolbar:()=>br,Tooltip:()=>Sr,TreeItem:()=>Tr,TreeView:()=>Mr,UrlInput:()=>Vr,accentFillActive:()=>v.accentFillActive,accentFillActiveDelta:()=>v.accentFillActiveDelta,accentFillFocus:()=>v.accentFillFocus,accentFillFocusDelta:()=>v.accentFillFocusDelta,accentFillHover:()=>v.accentFillHover,accentFillHoverDelta:()=>v.accentFillHoverDelta,accentFillRest:()=>v.accentFillRest,accentFillRestDelta:()=>v.accentFillRestDelta,accentForegroundActive:()=>v.accentForegroundActive,accentForegroundActiveDelta:()=>v.accentForegroundActiveDelta,accentForegroundFocus:()=>v.accentForegroundFocus,accentForegroundFocusDelta:()=>v.accentForegroundFocusDelta,accentForegroundHover:()=>v.accentForegroundHover,accentForegroundHoverDelta:()=>v.accentForegroundHoverDelta,accentForegroundRest:()=>v.accentForegroundRest,accentForegroundRestDelta:()=>v.accentForegroundRestDelta,accentPalette:()=>v.accentPalette,accentPaletteValue:()=>_t,actionsMenuBaseStyles:()=>d,baseComponents:()=>Yr,baseHeightMultiplier:()=>v.baseHeightMultiplier,baseLayerLuminance:()=>v.baseLayerLuminance,baseLayerLuminanceValue:()=>kt,black:()=>Qe,bodyFont:()=>v.bodyFont,closeIcon:()=>Gt,configureDesignSystem:()=>Ct,controlCornerRadius:()=>v.controlCornerRadius,controlCornerRadiusValue:()=>Lt,createDesignSystemProxy:()=>Wr,createFormData:()=>oi,defaultAnchorConfig:()=>x,defaultBadgeConfig:()=>_,defaultBreadcrumbConfig:()=>P,defaultBreadcrumbItemConfig:()=>V,defaultButtonConfig:()=>K,defaultCardConfig:()=>oe,defaultCheckboxConfig:()=>le,defaultComboboxConfig:()=>me,defaultDataGridCellConfig:()=>Le,defaultDataGridConfig:()=>Ce,defaultDataGridRowConfig:()=>Me,defaultDatePickerConfig:()=>qe,defaultDialogConfig:()=>Ut,defaultDisclosureConfig:()=>Qt,defaultDividerConfig:()=>no,defaultFileUploadConfig:()=>ui,defaultFillColor:()=>tt,defaultFlexLayoutConfig:()=>Bi,defaultFlipperConfig:()=>qi,defaultFlyoutConfig:()=>ta,defaultGridLayoutConfig:()=>la,defaultGridLayoutItemConfig:()=>ma,defaultIconConfig:()=>Da,defaultListboxOptionConfig:()=>Na,defaultMenuConfig:()=>Ha,defaultMenuItemConfig:()=>Ua,defaultModalConfig:()=>Ka,defaultMultiselectConfig:()=>sn,defaultNeutralForegroundContrast:()=>mt,defaultNumberFieldConfig:()=>hn,defaultProgressConfig:()=>Dn,defaultProgressRingConfig:()=>Ln,defaultRadioConfig:()=>In,defaultRadioGroupConfig:()=>zn,defaultSegmentedControlConfig:()=>Xn,defaultSegmentedItemConfig:()=>ts,defaultSelectConfig:()=>rs,defaultSkeletonConfig:()=>hs,defaultSliderConfig:()=>xs,defaultSwitchConfig:()=>Rs,defaultTabConfig:()=>Ps,defaultTabPanelConfig:()=>Vs,defaultTabsConfig:()=>Ks,defaultTextAreaConfig:()=>or,defaultTextFieldConfig:()=>lr,defaultToastConfig:()=>hr,defaultToolbarConfig:()=>wr,defaultTooltipConfig:()=>Cr,defaultTreeItemConfig:()=>Rr,defaultTreeViewConfig:()=>Pr,defaultUrlInputConfig:()=>zr,defineFactory:()=>yl,density:()=>v.density,designToken:()=>yt,designUnit:()=>v.designUnit,designUnitValue:()=>Rt,direction:()=>v.direction,directionValue:()=>Tt,disabledOpacity:()=>v.disabledOpacity,downloadFile:()=>ai,dropdownMenuBaseStyles:()=>lo,errorDialogTemplate:()=>Ho,extractMenuItems:()=>uo,fillColor:()=>v.fillColor,flyoutAnimationTime:()=>Ki,focusStrokeInner:()=>v.focusStrokeInner,focusStrokeOuter:()=>v.focusStrokeOuter,focusStrokeWidth:()=>v.focusStrokeWidth,foregroundOnAccentActive:()=>v.foregroundOnAccentActive,foregroundOnAccentActiveLarge:()=>v.foregroundOnAccentActiveLarge,foregroundOnAccentFocus:()=>v.foregroundOnAccentFocus,foregroundOnAccentFocusLarge:()=>v.foregroundOnAccentFocusLarge,foregroundOnAccentHover:()=>v.foregroundOnAccentHover,foregroundOnAccentHoverLarge:()=>v.foregroundOnAccentHoverLarge,foregroundOnAccentRest:()=>v.foregroundOnAccentRest,foregroundOnAccentRestLarge:()=>v.foregroundOnAccentRestLarge,foundationActionsMenu:()=>f,foundationActionsMenuStyles:()=>c,foundationActionsMenuTemplate:()=>h,foundationAnchor:()=>F,foundationAnchorShadowOptions:()=>w,foundationAnchorStyles:()=>g,foundationAnchorTemplate:()=>b,foundationBadge:()=>O,foundationBadgeShadowOptions:()=>C,foundationBadgeStyles:()=>$,foundationBadgeTemplate:()=>S,foundationBanner:()=>N,foundationBannerShadowOptions:()=>L,foundationBannerStyles:()=>k,foundationBannerTemplate:()=>T,foundationBreadcrumb:()=>H,foundationBreadcrumbItem:()=>U,foundationBreadcrumbItemShadowOptions:()=>z,foundationBreadcrumbItemStyles:()=>j,foundationBreadcrumbItemTemplate:()=>B,foundationBreadcrumbShadowOptions:()=>I,foundationBreadcrumbStyles:()=>A,foundationBreadcrumbTemplate:()=>E,foundationButton:()=>Z,foundationButtonShadowOptions:()=>X,foundationButtonStyles:()=>Y,foundationButtonTemplate:()=>W,foundationCard:()=>ie,foundationCardShadowOptions:()=>te,foundationCardStyles:()=>J,foundationCardTemplate:()=>Q,foundationCheckbox:()=>de,foundationCheckboxShadowOptions:()=>re,foundationCheckboxStyles:()=>ae,foundationCheckboxTemplate:()=>ne,foundationCombobox:()=>fe,foundationComboboxShadowOptions:()=>he,foundationComboboxStyles:()=>ce,foundationComboboxTemplate:()=>ue,foundationConnectionIndicator:()=>xe,foundationConnectionIndicatorStyles:()=>be,foundationConnectionIndicatorTemplate:()=>ye,foundationDataGrid:()=>_e,foundationDataGridCell:()=>Re,foundationDataGridCellShadowOptions:()=>Te,foundationDataGridCellStyles:()=>Oe,foundationDataGridCellTemplate:()=>r.dataGridCellTemplate,foundationDataGridRow:()=>Ie,foundationDataGridRowShadowOptions:()=>Ee,foundationDataGridRowStyles:()=>Ne,foundationDataGridRowTemplate:()=>r.dataGridRowTemplate,foundationDataGridShadowOptions:()=>De,foundationDataGridStyles:()=>Fe,foundationDataGridTemplate:()=>$e,foundationDatePicker:()=>Ke,foundationDatePickerShadowOptions:()=>We,foundationDatePickerStyles:()=>Ue,foundationDatePickerTemplate:()=>Ye,foundationDesignSystemProvider:()=>Ht,foundationDialog:()=>qt,foundationDialogShadowOptions:()=>Vt,foundationDialogStyles:()=>Bt,foundationDialogTemplate:()=>zt,foundationDisclosure:()=>eo,foundationDisclosureShadowOptions:()=>Jt,foundationDisclosureStyles:()=>Xt,foundationDisclosureTemplate:()=>Kt,foundationDivider:()=>so,foundationDividerShadowOptions:()=>ao,foundationDividerStyles:()=>to,foundationDividerTemplate:()=>oo,foundationDropdownMenu:()=>fo,foundationDropdownMenuStyles:()=>co,foundationDropdownMenuTemplate:()=>ho,foundationErrorBanner:()=>wo,foundationErrorBannerShadowOptions:()=>bo,foundationErrorBannerTemplate:()=>go,foundationErrorBoundary:()=>Mo,foundationErrorBoundaryShadowOptions:()=>Ao,foundationErrorBoundaryTemplate:()=>No,foundationErrorDialog:()=>Go,foundationErrorDialogShadowOptions:()=>jo,foundationErrorDialogStyles:()=>Io,foundationFileUpload:()=>pi,foundationFileUploadShadowOptions:()=>ci,foundationFileUploadStyles:()=>Qo,foundationFileUploadTemplate:()=>ti,foundationFilter:()=>Di,foundationFilterBar:()=>Ei,foundationFilterBarStyles:()=>_i,foundationFilterBarTemplate:()=>Ri,foundationFilterStyles:()=>hi,foundationFilterTemplate:()=>Fi,foundationFlexLayout:()=>zi,foundationFlexLayoutShadowOptions:()=>ji,foundationFlexLayoutStyles:()=>Pi,foundationFlexLayoutTemplate:()=>Hi,foundationFlipper:()=>Xi,foundationFlipperShadowOptions:()=>Wi,foundationFlipperStyles:()=>Vi,foundationFlipperTemplate:()=>Ui,foundationFlyout:()=>oa,foundationFlyoutShadowOptions:()=>ea,foundationFlyoutStyles:()=>Zi,foundationFlyoutTemplate:()=>Ji,foundationGridLayout:()=>ua,foundationGridLayoutItem:()=>va,foundationGridLayoutItemShadowOptions:()=>ha,foundationGridLayoutItemTemplate:()=>pa,foundationGridLayoutShadowOptions:()=>ra,foundationGridLayoutStyles:()=>na,foundationGridLayoutTemplate:()=>sa,foundationIcon:()=>Oa,foundationIconShadowOptions:()=>Sa,foundationIconStyles:()=>Fa,foundationIconTemplate:()=>$a,foundationListboxOption:()=>Aa,foundationListboxOptionShadowOptions:()=>Ra,foundationListboxOptionStyles:()=>ka,foundationListboxOptionTemplate:()=>Ta,foundationMenu:()=>ja,foundationMenuItem:()=>Ya,foundationMenuItemShadowOptions:()=>Va,foundationMenuItemStyles:()=>Ba,foundationMenuItemTemplate:()=>Ga,foundationMenuShadowOptions:()=>Pa,foundationMenuStyles:()=>Ea,foundationMenuTemplate:()=>Ma,foundationModal:()=>Ja,foundationModalShadowOptions:()=>Xa,foundationModalStyles:()=>Wa,foundationModalTemplate:()=>qa,foundationMultiselect:()=>ln,foundationMultiselectShadowOptions:()=>nn,foundationNotificationListener:()=>fl,foundationNotificationListenerShadowOptions:()=>hl,foundationNotificationListenerTemplate:()=>il,foundationNumberField:()=>mn,foundationNumberFieldShadowOptions:()=>pn,foundationNumberFieldStyles:()=>dn,foundationNumberFieldTemplate:()=>cn,foundationPopper:()=>wn,foundationProgress:()=>Cn,foundationProgressRing:()=>Rn,foundationProgressRingShadowOptions:()=>Tn,foundationProgressRingStyles:()=>_n,foundationProgressRingTemplate:()=>On,foundationProgressShadowOptions:()=>Sn,foundationProgressStyles:()=>xn,foundationProgressTemplate:()=>Fn,foundationRadio:()=>Pn,foundationRadioGroup:()=>Vn,foundationRadioGroupShadowOptions:()=>Gn,foundationRadioGroupStyles:()=>Hn,foundationRadioGroupTemplate:()=>jn,foundationRadioShadowOptions:()=>Mn,foundationRadioStyles:()=>Nn,foundationRadioTemplate:()=>An,foundationSegmentedControl:()=>Kn,foundationSegmentedControlShadowOptions:()=>qn,foundationSegmentedControlStyles:()=>Un,foundationSegmentedControlTemplate:()=>Yn,foundationSegmentedItem:()=>os,foundationSegmentedItemShadowOptions:()=>es,foundationSegmentedItemStyles:()=>Zn,foundationSegmentedItemTemplate:()=>Jn,foundationSelect:()=>ls,foundationSelectShadowOptions:()=>ss,foundationSelectStyles:()=>is,foundationSelectTemplate:()=>as,foundationSkeleton:()=>ms,foundationSkeletonShadowOptions:()=>ps,foundationSkeletonStyles:()=>ds,foundationSkeletonTemplate:()=>cs,foundationSlider:()=>Fs,foundationSliderShadowOptions:()=>ws,foundationSliderStyles:()=>fs,foundationSliderTemplate:()=>bs,foundationSnackbar:()=>_s,foundationSnackbarShadowOptions:()=>Ds,foundationSnackbarStyles:()=>$s,foundationSnackbarTemplate:()=>Ss,foundationSwitch:()=>Ns,foundationSwitchShadowOptions:()=>Ls,foundationSwitchStyles:()=>Os,foundationSwitchTemplate:()=>ks,foundationTab:()=>Hs,foundationTabPanel:()=>Us,foundationTabPanelShadowOptions:()=>zs,foundationTabPanelStyles:()=>js,foundationTabPanelTemplate:()=>Bs,foundationTabShadowOptions:()=>Is,foundationTabStyles:()=>As,foundationTabTemplate:()=>Es,foundationTabs:()=>Zs,foundationTabsShadowOptions:()=>Xs,foundationTabsStyles:()=>Ys,foundationTabsTemplate:()=>Ws,foundationTextArea:()=>ir,foundationTextAreaShadowOptions:()=>tr,foundationTextAreaStyles:()=>Js,foundationTextAreaTemplate:()=>Qs,foundationTextField:()=>dr,foundationTextFieldShadowOptions:()=>rr,foundationTextFieldStyles:()=>ar,foundationTextFieldTemplate:()=>nr,foundationToast:()=>fr,foundationToastShadowOptions:()=>pr,foundationToastStyles:()=>cr,foundationToastTemplate:()=>ur,foundationToolbar:()=>xr,foundationToolbarShadowOptions:()=>yr,foundationToolbarStyles:()=>vr,foundationToolbarTemplate:()=>gr,foundationTooltip:()=>_r,foundationTooltipShadowOptions:()=>Dr,foundationTooltipStyles:()=>Fr,foundationTooltipTemplate:()=>$r,foundationTreeItem:()=>Nr,foundationTreeItemShadowOptions:()=>Lr,foundationTreeItemStyles:()=>Or,foundationTreeItemTemplate:()=>kr,foundationTreeView:()=>Hr,foundationTreeViewShadowOptions:()=>Ir,foundationTreeViewStyles:()=>Ar,foundationTreeViewTemplate:()=>Er,foundationUrlInput:()=>Ur,foundationUrlInputShadowOptions:()=>Gr,foundationUrlInputStyles:()=>jr,fuiAccentPalette:()=>ct,fuiAccentSwatch:()=>dt,fuiCardFillColor:()=>ht,fuiCardForegroundColor:()=>vt,fuiDefaultCardFillColor:()=>it,fuiDefaultCardPalette:()=>at,fuiFillColor:()=>pt,fuiNeutralPalette:()=>rt,fuiNeutralSwatch:()=>st,getDefaultConfig:()=>$t,getDropdownMenuTemplate:()=>po,getErrorDialogTemplate:()=>Po,getExports:()=>St,getFontawesomeIconsCss:()=>xa,getPrefixedFileUpload:()=>ei,getPrefixedMultiselect:()=>on,getTypeRampValue:()=>Dt,jsonConverter:()=>vn,mapType:()=>Oi,maxheight:()=>en,menuTemplate:()=>u,mixinFoundationFontFamily:()=>At,multiselectStyles:()=>tn,multiselectTemplate:()=>an,neutralFillActive:()=>v.neutralFillActive,neutralFillActiveDelta:()=>v.neutralFillActiveDelta,neutralFillFocus:()=>v.neutralFillFocus,neutralFillFocusDelta:()=>v.neutralFillFocusDelta,neutralFillHover:()=>v.neutralFillHover,neutralFillHoverDelta:()=>v.neutralFillHoverDelta,neutralFillInputActive:()=>v.neutralFillInputActive,neutralFillInputActiveDelta:()=>v.neutralFillInputActiveDelta,neutralFillInputFocus:()=>v.neutralFillInputFocus,neutralFillInputFocusDelta:()=>v.neutralFillInputFocusDelta,neutralFillInputHover:()=>v.neutralFillInputHover,neutralFillInputHoverDelta:()=>v.neutralFillInputHoverDelta,neutralFillInputRest:()=>v.neutralFillInputRest,neutralFillInputRestDelta:()=>v.neutralFillInputRestDelta,neutralFillLayerRest:()=>v.neutralFillLayerRest,neutralFillLayerRestDelta:()=>v.neutralFillLayerRestDelta,neutralFillRest:()=>v.neutralFillRest,neutralFillRestDelta:()=>v.neutralFillRestDelta,neutralFillStealthActive:()=>v.neutralFillStealthActive,neutralFillStealthActiveDelta:()=>v.neutralFillStealthActiveDelta,neutralFillStealthFocus:()=>v.neutralFillStealthFocus,neutralFillStealthFocusDelta:()=>v.neutralFillStealthFocusDelta,neutralFillStealthHover:()=>v.neutralFillStealthHover,neutralFillStealthHoverDelta:()=>v.neutralFillStealthHoverDelta,neutralFillStealthRest:()=>v.neutralFillStealthRest,neutralFillStealthRestDelta:()=>v.neutralFillStealthRestDelta,neutralFillStrongActive:()=>v.neutralFillStrongActive,neutralFillStrongActiveDelta:()=>v.neutralFillStrongActiveDelta,neutralFillStrongFocus:()=>v.neutralFillStrongFocus,neutralFillStrongFocusDelta:()=>v.neutralFillStrongFocusDelta,neutralFillStrongHover:()=>v.neutralFillStrongHover,neutralFillStrongHoverDelta:()=>v.neutralFillStrongHoverDelta,neutralFillStrongRest:()=>v.neutralFillStrongRest,neutralFillStrongRestDelta:()=>v.neutralFillStrongRestDelta,neutralForeground:()=>ft,neutralForegroundHint:()=>v.neutralForegroundHint,neutralForegroundRest:()=>v.neutralForegroundRest,neutralLayer1:()=>v.neutralLayer1,neutralLayer2:()=>v.neutralLayer2,neutralLayer3:()=>v.neutralLayer3,neutralLayer4:()=>v.neutralLayer4,neutralLayerCardContainer:()=>v.neutralLayerCardContainer,neutralLayerFloating:()=>v.neutralLayerFloating,neutralPalette:()=>v.neutralPalette,neutralPaletteValue:()=>Ot,neutralStrokeActive:()=>v.neutralStrokeActive,neutralStrokeActiveDelta:()=>v.neutralStrokeActiveDelta,neutralStrokeDividerRest:()=>v.neutralStrokeDividerRest,neutralStrokeDividerRestDelta:()=>v.neutralStrokeDividerRestDelta,neutralStrokeFocus:()=>v.neutralStrokeFocus,neutralStrokeFocusDelta:()=>v.neutralStrokeFocusDelta,neutralStrokeHover:()=>v.neutralStrokeHover,neutralStrokeHoverDelta:()=>v.neutralStrokeHoverDelta,neutralStrokeRest:()=>v.neutralStrokeRest,neutralStrokeRestDelta:()=>v.neutralStrokeRestDelta,paletteFromHex:()=>xt,provideDesignSystem:()=>qr,provideTokens:()=>bt,registerFoundationDesignSystem:()=>$l,singleOptionTemplate:()=>p,strokeWidth:()=>v.strokeWidth,swatchConverter:()=>wt,tagFor:()=>wl,typeRampBaseFontSize:()=>v.typeRampBaseFontSize,typeRampBaseLineHeight:()=>v.typeRampBaseLineHeight,typeRampMinus1FontSize:()=>v.typeRampMinus1FontSize,typeRampMinus1LineHeight:()=>v.typeRampMinus1LineHeight,typeRampMinus2FontSize:()=>v.typeRampMinus2FontSize,typeRampMinus2LineHeight:()=>v.typeRampMinus2LineHeight,typeRampPlus1FontSize:()=>v.typeRampPlus1FontSize,typeRampPlus1LineHeight:()=>v.typeRampPlus1LineHeight,typeRampPlus2FontSize:()=>v.typeRampPlus2FontSize,typeRampPlus2LineHeight:()=>v.typeRampPlus2LineHeight,typeRampPlus3FontSize:()=>v.typeRampPlus3FontSize,typeRampPlus3LineHeight:()=>v.typeRampPlus3LineHeight,typeRampPlus4FontSize:()=>v.typeRampPlus4FontSize,typeRampPlus4LineHeight:()=>v.typeRampPlus4LineHeight,typeRampPlus5FontSize:()=>v.typeRampPlus5FontSize,typeRampPlus5LineHeight:()=>v.typeRampPlus5LineHeight,typeRampPlus6FontSize:()=>v.typeRampPlus6FontSize,typeRampPlus6LineHeight:()=>v.typeRampPlus6LineHeight,uploadFiles:()=>ii,urlinputTemplate:()=>Br,white:()=>Je});var i={};o.r(i),o.d(i,{accentFillActive:()=>v.accentFillActive,accentFillActiveDelta:()=>v.accentFillActiveDelta,accentFillFocus:()=>v.accentFillFocus,accentFillFocusDelta:()=>v.accentFillFocusDelta,accentFillHover:()=>v.accentFillHover,accentFillHoverDelta:()=>v.accentFillHoverDelta,accentFillRest:()=>v.accentFillRest,accentFillRestDelta:()=>v.accentFillRestDelta,accentForegroundActive:()=>v.accentForegroundActive,accentForegroundActiveDelta:()=>v.accentForegroundActiveDelta,accentForegroundFocus:()=>v.accentForegroundFocus,accentForegroundFocusDelta:()=>v.accentForegroundFocusDelta,accentForegroundHover:()=>v.accentForegroundHover,accentForegroundHoverDelta:()=>v.accentForegroundHoverDelta,accentForegroundRest:()=>v.accentForegroundRest,accentForegroundRestDelta:()=>v.accentForegroundRestDelta,accentPalette:()=>v.accentPalette,baseHeightMultiplier:()=>v.baseHeightMultiplier,baseLayerLuminance:()=>v.baseLayerLuminance,bodyFont:()=>v.bodyFont,controlCornerRadius:()=>v.controlCornerRadius,defaultNeutralForegroundContrast:()=>mt,density:()=>v.density,designUnit:()=>v.designUnit,direction:()=>v.direction,disabledOpacity:()=>v.disabledOpacity,fillColor:()=>v.fillColor,focusStrokeInner:()=>v.focusStrokeInner,focusStrokeOuter:()=>v.focusStrokeOuter,focusStrokeWidth:()=>v.focusStrokeWidth,foregroundOnAccentActive:()=>v.foregroundOnAccentActive,foregroundOnAccentActiveLarge:()=>v.foregroundOnAccentActiveLarge,foregroundOnAccentFocus:()=>v.foregroundOnAccentFocus,foregroundOnAccentFocusLarge:()=>v.foregroundOnAccentFocusLarge,foregroundOnAccentHover:()=>v.foregroundOnAccentHover,foregroundOnAccentHoverLarge:()=>v.foregroundOnAccentHoverLarge,foregroundOnAccentRest:()=>v.foregroundOnAccentRest,foregroundOnAccentRestLarge:()=>v.foregroundOnAccentRestLarge,fuiCardFillColor:()=>ht,fuiCardForegroundColor:()=>vt,fuiFillColor:()=>pt,neutralFillActive:()=>v.neutralFillActive,neutralFillActiveDelta:()=>v.neutralFillActiveDelta,neutralFillFocus:()=>v.neutralFillFocus,neutralFillFocusDelta:()=>v.neutralFillFocusDelta,neutralFillHover:()=>v.neutralFillHover,neutralFillHoverDelta:()=>v.neutralFillHoverDelta,neutralFillInputActive:()=>v.neutralFillInputActive,neutralFillInputActiveDelta:()=>v.neutralFillInputActiveDelta,neutralFillInputFocus:()=>v.neutralFillInputFocus,neutralFillInputFocusDelta:()=>v.neutralFillInputFocusDelta,neutralFillInputHover:()=>v.neutralFillInputHover,neutralFillInputHoverDelta:()=>v.neutralFillInputHoverDelta,neutralFillInputRest:()=>v.neutralFillInputRest,neutralFillInputRestDelta:()=>v.neutralFillInputRestDelta,neutralFillLayerRest:()=>v.neutralFillLayerRest,neutralFillLayerRestDelta:()=>v.neutralFillLayerRestDelta,neutralFillRest:()=>v.neutralFillRest,neutralFillRestDelta:()=>v.neutralFillRestDelta,neutralFillStealthActive:()=>v.neutralFillStealthActive,neutralFillStealthActiveDelta:()=>v.neutralFillStealthActiveDelta,neutralFillStealthFocus:()=>v.neutralFillStealthFocus,neutralFillStealthFocusDelta:()=>v.neutralFillStealthFocusDelta,neutralFillStealthHover:()=>v.neutralFillStealthHover,neutralFillStealthHoverDelta:()=>v.neutralFillStealthHoverDelta,neutralFillStealthRest:()=>v.neutralFillStealthRest,neutralFillStealthRestDelta:()=>v.neutralFillStealthRestDelta,neutralFillStrongActive:()=>v.neutralFillStrongActive,neutralFillStrongActiveDelta:()=>v.neutralFillStrongActiveDelta,neutralFillStrongFocus:()=>v.neutralFillStrongFocus,neutralFillStrongFocusDelta:()=>v.neutralFillStrongFocusDelta,neutralFillStrongHover:()=>v.neutralFillStrongHover,neutralFillStrongHoverDelta:()=>v.neutralFillStrongHoverDelta,neutralFillStrongRest:()=>v.neutralFillStrongRest,neutralFillStrongRestDelta:()=>v.neutralFillStrongRestDelta,neutralForeground:()=>ft,neutralForegroundHint:()=>v.neutralForegroundHint,neutralForegroundRest:()=>v.neutralForegroundRest,neutralLayer1:()=>v.neutralLayer1,neutralLayer2:()=>v.neutralLayer2,neutralLayer3:()=>v.neutralLayer3,neutralLayer4:()=>v.neutralLayer4,neutralLayerCardContainer:()=>v.neutralLayerCardContainer,neutralLayerFloating:()=>v.neutralLayerFloating,neutralPalette:()=>v.neutralPalette,neutralStrokeActive:()=>v.neutralStrokeActive,neutralStrokeActiveDelta:()=>v.neutralStrokeActiveDelta,neutralStrokeDividerRest:()=>v.neutralStrokeDividerRest,neutralStrokeDividerRestDelta:()=>v.neutralStrokeDividerRestDelta,neutralStrokeFocus:()=>v.neutralStrokeFocus,neutralStrokeFocusDelta:()=>v.neutralStrokeFocusDelta,neutralStrokeHover:()=>v.neutralStrokeHover,neutralStrokeHoverDelta:()=>v.neutralStrokeHoverDelta,neutralStrokeRest:()=>v.neutralStrokeRest,neutralStrokeRestDelta:()=>v.neutralStrokeRestDelta,strokeWidth:()=>v.strokeWidth,typeRampBaseFontSize:()=>v.typeRampBaseFontSize,typeRampBaseLineHeight:()=>v.typeRampBaseLineHeight,typeRampMinus1FontSize:()=>v.typeRampMinus1FontSize,typeRampMinus1LineHeight:()=>v.typeRampMinus1LineHeight,typeRampMinus2FontSize:()=>v.typeRampMinus2FontSize,typeRampMinus2LineHeight:()=>v.typeRampMinus2LineHeight,typeRampPlus1FontSize:()=>v.typeRampPlus1FontSize,typeRampPlus1LineHeight:()=>v.typeRampPlus1LineHeight,typeRampPlus2FontSize:()=>v.typeRampPlus2FontSize,typeRampPlus2LineHeight:()=>v.typeRampPlus2LineHeight,typeRampPlus3FontSize:()=>v.typeRampPlus3FontSize,typeRampPlus3LineHeight:()=>v.typeRampPlus3LineHeight,typeRampPlus4FontSize:()=>v.typeRampPlus4FontSize,typeRampPlus4LineHeight:()=>v.typeRampPlus4LineHeight,typeRampPlus5FontSize:()=>v.typeRampPlus5FontSize,typeRampPlus5LineHeight:()=>v.typeRampPlus5LineHeight,typeRampPlus6FontSize:()=>v.typeRampPlus6FontSize,typeRampPlus6LineHeight:()=>v.typeRampPlus6LineHeight});var a={};o.r(a),o.d(a,{accentPaletteValue:()=>_t,baseLayerLuminanceValue:()=>kt,controlCornerRadiusValue:()=>Lt,designUnitValue:()=>Rt,directionValue:()=>Tt,neutralPaletteValue:()=>Ot});var n=o(38092),s=o(83147),r=o(75951),l=o(9770);const d=(e,t)=>s.css`
|
|
3
3
|
:host {
|
|
4
4
|
--actions-opener-height-multiplier: 0.7px;
|
|
@@ -1716,7 +1716,7 @@
|
|
|
1716
1716
|
}
|
|
1717
1717
|
`,cn=(e,t)=>s.html`
|
|
1718
1718
|
${(0,r.numberFieldTemplate)(e,t)}
|
|
1719
|
-
`;class un extends v.NumberField{constructor(){super(...arguments),this.hideStep=!1,this.value="",this.withFormatting=!1,this.locale="en-US",this.options={maximumFractionDigits:3,minimumFractionDigits:0}}sanitiseInputVal(e){return String(new gt.NumberParser(this.locale).parse(e))}toIntlNumberFormat(e){return Intl.NumberFormat(this.locale,this.options).format(Number(e))}validateValue(e,t=!0){let o=parseFloat(parseFloat(t?this.sanitiseInputVal(e):e).toPrecision(12));return isNaN(o)&&(o=""),String(o)}validateMinMax(e,t=!0){var o,i;let a=parseFloat(this.validateValue(e,t));return isNaN(a)?a="":(a=Math.min(a,null!==(o=this.max)&&void 0!==o?o:a),a=Math.max(a,null!==(i=this.min)&&void 0!==i?i:a)),String(a)}stepUp(){const e=parseFloat(this.value),t=isNaN(e)?this.min>0?this.min:this.max<0?this.max:this.min?0:this.step:e+this.step;this.control.value=t.toString(),this.handleTextInput()}stepDown(){const e=parseFloat(this.value),t=isNaN(e)?this.min>0?this.min:this.max<0?this.max:this.min?0:0-this.step:e-this.step;this.control.value=t.toString(),this.handleTextInput()}hasSeparatorWithoutDecimals(){return new RegExp("[.]$")}handleTextInput(){
|
|
1719
|
+
`;class un extends v.NumberField{constructor(){super(...arguments),this.hideStep=!1,this.value="",this.withFormatting=!1,this.locale="en-US",this.options={maximumFractionDigits:3,minimumFractionDigits:0}}sanitiseInputVal(e){return String(new gt.NumberParser(this.locale).parse(e))}toIntlNumberFormat(e){return Intl.NumberFormat(this.locale,this.options).format(Number(e))}validateValue(e,t=!0){let o=parseFloat(parseFloat(t?this.sanitiseInputVal(e):e).toPrecision(12));return isNaN(o)&&(o=""),String(o)}validateMinMax(e,t=!0){var o,i;let a=parseFloat(this.validateValue(e,t));return isNaN(a)?a="":(a=Math.min(a,null!==(o=this.max)&&void 0!==o?o:a),a=Math.max(a,null!==(i=this.min)&&void 0!==i?i:a)),String(a)}stepUp(){const e=parseFloat(this.value),t=isNaN(e)?this.min>0?this.min:this.max<0?this.max:this.min?0:this.step:e+this.step;this.control.value=t.toString(),this.handleTextInput()}stepDown(){const e=parseFloat(this.value),t=isNaN(e)?this.min>0?this.min:this.max<0?this.max:this.min?0:0-this.step:e-this.step;this.control.value=t.toString(),this.handleTextInput()}hasSeparatorWithoutDecimals(){return new RegExp("[.]$")}handleTextInput(){this.isUserInput=!0,this.withFormatting&&!new gt.NumberParser(this.locale).hasSeparator(this.control.value)?s.DOM.queueUpdate((()=>{const e=this.validateValue(this.control.value);this.control.value=this.toIntlNumberFormat(e),this.value=e})):this.withFormatting||this.hasSeparatorWithoutDecimals().test(this.control.value)||s.DOM.queueUpdate((()=>{this.control.value=this.validateValue(this.control.value,!1),this.value=this.control.value}))}valueChanged(e,t){if(t||!this.control){if(t&&t!==e){if(!this.isUserInput)return this.value=this.withFormatting?this.validateMinMax(this.value):this.validateMinMax(this.value,!1),void s.DOM.queueUpdate((()=>{this.control.value=this.withFormatting?this.toIntlNumberFormat(this.value):this.value}));const e=this.validateValue(t);s.DOM.queueUpdate((()=>{var o;""!==(null===(o=this.control)||void 0===o?void 0:o.value)?""!==this.value?(this.control.value=this.withFormatting?this.toIntlNumberFormat(e):e,this.value=this.withFormatting?this.sanitiseInputVal(this.control.value):this.control.value):this.control.value=t:this.control.value=this.withFormatting?this.toIntlNumberFormat(e):e}))}}else this.control.value=""}handleBlur(){this.isUserInput=!1,this.value=this.withFormatting?this.validateMinMax(this.value):this.validateMinMax(this.value,!1),this.control.value=this.withFormatting&&this.value?this.toIntlNumberFormat(this.value):this.value,this.$emit("input"),this.$emit("change")}}(0,n.__decorate)([(0,s.attr)({mode:"boolean"})],un.prototype,"hideStep",void 0),(0,n.__decorate)([s.attr],un.prototype,"value",void 0),(0,n.__decorate)([(0,s.attr)({mode:"boolean"})],un.prototype,"withFormatting",void 0),(0,n.__decorate)([s.attr],un.prototype,"locale",void 0);const pn={delegatesFocus:!0,mode:"open"},hn={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 '},mn=un.compose(Object.assign({baseName:"number-field",template:cn,styles:dn,shadowOptions:pn},hn));var fn=o(86975);const vn={toView:e=>JSON.stringify(e),fromView:e=>null==e?e:JSON.parse(e)};class gn 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,fn.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],gn.prototype,"selector",void 0),(0,n.__decorate)([(0,s.attr)({mode:"boolean"})],gn.prototype,"show",void 0),(0,n.__decorate)([s.attr],gn.prototype,"event",void 0),(0,n.__decorate)([s.attr],gn.prototype,"placement",void 0),(0,n.__decorate)([(0,s.attr)({converter:vn})],gn.prototype,"offset",void 0),(0,n.__decorate)([(0,s.attr)({mode:"boolean"})],gn.prototype,"flip",void 0);const bn=s.css`
|
|
1720
1720
|
:host {
|
|
1721
1721
|
display: none;
|
|
1722
1722
|
inset: unset !important;
|
|
@@ -2196,4 +2196,4 @@
|
|
|
2196
2196
|
<slot></slot>
|
|
2197
2197
|
</template>
|
|
2198
2198
|
`;var al;!function(e){e.NOTIFICATION_EVENT="notification-event"}(al||(al={}));const nl=e=>{var t,o;return`${null!==(t=null==e?void 0:e.title)&&void 0!==t?t:"Error"}: ${null!==(o=null==e?void 0:e.body)&&void 0!==o?o:"Something went wrong"}`},sl=(e,t)=>{const o=t.split("-")[0];let i=document.querySelector(`#${e}`);if(!i){i=document.createElement("div"),i.setAttribute("id",e);const t=document.createElement(`${o}-design-system-provider`);t.appendChild(i),document.body.appendChild(t)}return i},rl=()=>{const e=document.createElement("div");return e.setAttribute("id","banner-anchor"),e.style.position="relative",document.body.insertBefore(e,document.body.firstChild),e},ll=(0,gt.createLogger)("foundation-notifications"),dl={alert:e=>{alert(nl(e))},toast:(e,t)=>{var o,i,a,n,s,r,l,d,c,u,p,h;const m=t.split("-")[0],f=sl("notify-container",t);if(f)switch(f.style.position="fixed",null===(i=null===(o=null==e?void 0:e.config)||void 0===o?void 0:o.toast)||void 0===i?void 0:i.position){case"top-left":f.style.top="0",f.style.left="0";break;case"bottom-left":f.style.bottom="0",f.style.left="0";break;case"bottom-right":f.style.bottom="0",f.style.right="0";break;default:f.style.top="0",f.style.right="0"}const v=document.createElement(`${m}-toast`),g=document.createElement("div");g.setAttribute("slot","top"),g.textContent=e.title;const b=document.createElement("div");b.setAttribute("slot","content"),b.textContent=(null==e?void 0:e.body)||"";const y=document.createElement("div");y.setAttribute("slot","date"),y.textContent=(new Date).toLocaleTimeString(),v.setAttribute("notify",(null===(n=null===(a=null==e?void 0:e.config)||void 0===a?void 0:a.toast)||void 0===n?void 0:n.type)||""),(null===(r=null===(s=null==e?void 0:e.config)||void 0===s?void 0:s.toast)||void 0===r?void 0:r.autoClose)&&v.setAttribute("auto-close",`${null===(d=null===(l=null==e?void 0:e.config)||void 0===l?void 0:l.toast)||void 0===d?void 0:d.autoClose}`),(null===(u=null===(c=null==e?void 0:e.config)||void 0===c?void 0:c.toast)||void 0===u?void 0:u.closeTimeout)&&v.setAttribute("close-timeout",`${null===(h=null===(p=null==e?void 0:e.config)||void 0===p?void 0:p.toast)||void 0===h?void 0:h.closeTimeout}`),v.appendChild(g),v.appendChild(b),v.appendChild(y),f.appendChild(v)},dialog:(e,t)=>{const o=t.split("-")[0],i=document.createElement(`${o}-notification-dialog`);sl("dialog-container",t).appendChild(i),i.notification=e,i.show()},snackbar:(e,t)=>{const o=t.split("-")[0],i=document.createElement(`${o}-snackbar`);sl("snack-container",t).appendChild(i),i.notification=e},banner:(e,t,o)=>{var i;const a=t.split("-")[0],n=document.createElement(`${a}-banner`),s=(e=>{for(var t,o;e&&!(e instanceof ShadowRoot);){const i=null===(t=null==e?void 0:e.getRootNode())||void 0===t?void 0:t.getElementById("banner-anchor");if(i)return i.style.position="relative",i;e=null===(o=null==e?void 0:e.getRootNode())||void 0===o?void 0:o.host}return rl()})(o);(null===(i=null==s?void 0:s.children)||void 0===i?void 0:i.length)>0&&(n.style.position="absolute",n.style.top="0",n.style.left="0",n.style.width="100%"),s.appendChild(n),n.notification=e}},cl=(e,t,o)=>{var i,a;ll.log({message:nl(e),level:(i=e,(null==i?void 0:i.logLevel)||(null===(a=null==i?void 0:i.config)||void 0===a?void 0:a.logLevel)||gt.LogLevel.Debug)});Object.keys((null==e?void 0:e.config)||{}).forEach((i=>{dl[i]&&dl[i](e,t,o)}))};class ul{withTitle(e){return this.title=e,this}withBody(e){return this.body=e,this}withLogLevel(e){return this.logLevel=e,this}withAlert(e){return this.alert=e,this}withToast(e){return this.toast=e,this}withBanner(e){return this.banner=e,this}withSnackbar(e){return this.snackbar=e,this}withDialog(e){return this.dialog=e,this}build(){if(!this.title)throw new Error("Title is required");if(!this.body)throw new Error("Missing required param 'body'");let e={title:this.title,body:this.body},t={};return this.logLevel in gt.LogLevel&&(e=Object.assign({logLevel:this.logLevel},e)),this.alert&&(t=Object.assign({alert:this.alert},t),e=Object.assign({config:t},e)),this.toast&&(t=Object.assign({toast:this.toast},t),e=Object.assign({config:t},e)),this.banner&&(t=Object.assign({banner:this.banner},t),e=Object.assign({config:t},e)),this.snackbar&&(t=Object.assign({snackbar:this.snackbar},t),e=Object.assign({config:t},e)),this.dialog&&(t=Object.assign({dialog:this.dialog},t),e=Object.assign({config:t},e)),e}}class pl{withPosition(e){return this.position=e,this}withAutoClose(e){return this.autoClose=e,this}withCloseTimeout(e){return this.closeTimeout=e,this}withType(e){return this.type=e,this}build(){let e={};return this.position&&(e=Object.assign({position:this.position},e)),this.autoClose&&(e=Object.assign({autoClose:this.autoClose},e)),this.closeTimeout&&(e=Object.assign({closeTimeout:this.closeTimeout},e)),this.type&&(e=Object.assign({type:this.type},e)),e}}const hl={mode:"open",delegatesFocus:!0};class ml extends r.FoundationElement{constructor(){super(...arguments),this.logger=(0,gt.createLogger)("notification-listener"),this.closeTimeout=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.addEventListener(al.NOTIFICATION_EVENT,(e=>{e.stopImmediatePropagation(),cl(e.detail,this.tagName,this.notificationListener)})),this.resourceName&&(yield this.datasource.init({resourceName:this.resourceName},!0),null===(t=this.datasource.stream)||void 0===t||t.subscribe((e=>{var t,o;if(!e.ROW)return;const i=null==e?void 0:e.ROW[0];if(e.SEQUENCE_ID>1&&"INSERT"===i.DETAILS.OPERATION){const e=i.HEADER,a=i.MESSAGE,n=null===(t=i.NOTIFY_SEVERITY)||void 0===t?void 0:t.toLowerCase(),s=i.EXPIRY?i.EXPIRY-i.CREATED_AT:0;cl((new ul).withTitle(e).withBody(a).withToast((new pl).withType(n).withAutoClose(null!==(o=!!s)&&void 0!==o?o:!!this.closeTimeout).withCloseTimeout(null!=s?s:this.closeTimeout).build()).build(),this.tagName,this.notificationListener)}})))}))}}(0,n.__decorate)([s.observable],ml.prototype,"notificationListener",void 0),(0,n.__decorate)([(0,s.attr)({attribute:"resource-name"})],ml.prototype,"resourceName",void 0),(0,n.__decorate)([(0,s.attr)({attribute:"close-timeout",converter:s.nullableNumberConverter})],ml.prototype,"closeTimeout",void 0),(0,n.__decorate)([Fo.Yh],ml.prototype,"datasource",void 0);const fl=ml.compose({baseName:"notification-listener",template:il,shadowOptions:hl});var vl;let gl=vl=class extends tl{constructor(){super(...arguments),this.optionElement="fast-option",this.isSnapshot=!0}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});var t;return(0,n.__awaiter)(this,void 0,void 0,(function*(){e.connectedCallback.call(this),this.fields=this.labelField?null===(t=this.valueField)||void 0===t?void 0:t.concat(" ",this.labelField):this.valueField,this.select=this.parentElement,this.select.addEventListener("change",(e=>{const t=this.options.find((t=>t.label===e.target.value));this.select.$emit("value-change",t)})),this.select&&this.valueField&&(this.resourceName&&this.connect.isConnected||this.data)&&this.fetchGenesisData(),this.valueField||vo.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 vl||this.select.removeChild(e)})),this.select.value="",this.select.initialValue=""}syncComponentData(e){var t;const o=null!=e?e:Array.from(this.rowsSyncedWithStream.values());this.options=o.map((e=>({value:e[this.valueField],label:this.labelFormatter?this.labelFormatter(e[this.labelField]):e[this.labelField]})));this.options.map((({value:e,label:t})=>{const o=document.createElement(this.optionElement);return o.textContent=t||e,o.value=e,o})).forEach((e=>{this.select.appendChild(e)}));const i=this.initialSelectedValue?null===(t=this.options.find((e=>e.value===this.initialSelectedValue)))||void 0===t?void 0:t.label:"";s.DOM.queueUpdate((()=>{this.select.value=i}))}handleStreamInserts(e){vo.debug("handleStreamInserts - Method not implemented.")}handleStreamDeletes(e){vo.debug("handleStreamDeletes - Method not implemented.")}handleStreamUpdates(e){vo.debug("handleStreamUpdates - Method not implemented.")}};(0,n.__decorate)([(0,s.attr)({attribute:"label-field"})],gl.prototype,"labelField",void 0),(0,n.__decorate)([(0,s.attr)({attribute:"value-field"})],gl.prototype,"valueField",void 0),(0,n.__decorate)([s.observable],gl.prototype,"labelFormatter",void 0),gl=vl=(0,n.__decorate)([(0,s.customElement)({name:"options-datasource"})],gl);let bl=class extends tl{constructor(){super(...arguments),this.isSnapshot=!0}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});var t;return(0,n.__awaiter)(this,void 0,void 0,(function*(){e.connectedCallback.call(this),this.fields=this.labelField?null===(t=this.valueField)||void 0===t?void 0:t.concat(" ",this.labelField):this.valueField,this.select=this.parentElement,this.select&&this.valueField&&(this.resourceName&&this.connect.isConnected||this.data)&&this.fetchGenesisData(),this.valueField||vo.warn('Specify field for values in options (e.g value-field="VALUE") and optionally field for label which is supported only in select and combobox (e.g label-field="NAME")')}))}clearData(){this.select.options=[]}syncComponentData(e){const t=(null!=e?e:Array.from(this.rowsSyncedWithStream.values())).map((e=>({value:e[this.valueField],label:e[this.labelField]})));this.select.options=t}handleStreamInserts(e){vo.debug("handleStreamInserts - Method not implemented.")}handleStreamDeletes(e){vo.debug("handleStreamDeletes - Method not implemented.")}handleStreamUpdates(e){vo.debug("handleStreamUpdates - Method not implemented.")}};(0,n.__decorate)([(0,s.attr)({attribute:"value-field"})],bl.prototype,"valueField",void 0),(0,n.__decorate)([(0,s.attr)({attribute:"label-field"})],bl.prototype,"labelField",void 0),bl=(0,n.__decorate)([(0,s.customElement)({name:"multiselect-datasource"})],bl);const yl=(e,t)=>o=>{const i="function"==typeof t?t:(a=t,e=>Object.assign(Object.assign({},a),e));var a;return s.FASTElement.define(class extends e{},i(o))};function wl(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 xl=o(1279);let Fl=class extends(xl.F0.from(s.FASTElement)){connectedCallback(){super.connectedCallback(),s.DOM.queueUpdate((()=>(0,n.__awaiter)(this,void 0,void 0,(function*(){this.$router.config=this.config}))))}};Fl=(0,n.__decorate)([(0,s.customElement)({name:"foundation-router"})],Fl);const $l=()=>qr().register(Yr)},19082:(e,t,o)=>{"use strict";function i(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var i in o)e[i]=o[i]}return e}o.d(t,{Z:()=>a});var a=function e(t,o){function a(e,a,n){if("undefined"!=typeof document){"number"==typeof(n=i({},o,n)).expires&&(n.expires=new Date(Date.now()+864e5*n.expires)),n.expires&&(n.expires=n.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var s="";for(var r in n)n[r]&&(s+="; "+r,!0!==n[r]&&(s+="="+n[r].split(";")[0]));return document.cookie=e+"="+t.write(a,e)+s}}return Object.create({set:a,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var o=document.cookie?document.cookie.split("; "):[],i={},a=0;a<o.length;a++){var n=o[a].split("="),s=n.slice(1).join("=");try{var r=decodeURIComponent(n[0]);if(i[r]=t.read(s,r),e===r)break}catch(e){}}return e?i[e]:i}},remove:function(e,t){a(e,"",i({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,i({},this.attributes,t))},withConverter:function(t){return e(i({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(o)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"})}}]);
|
|
2199
|
-
//# sourceMappingURL=278.
|
|
2199
|
+
//# sourceMappingURL=278.bb2f3e989183780321c91c083131e633.js.map
|