@genesislcap/foundation-header 10.3.1 → 11.3.1
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/README.md +2 -2
- package/dist/dts/main/main.d.ts.map +1 -1
- package/dist/dts/main/main.styles.d.ts.map +1 -1
- package/dist/dts/styles/index.d.ts +1 -1
- package/dist/dts/styles/index.d.ts.map +1 -1
- package/dist/dts/utils/logger.d.ts.map +1 -1
- package/dist/esm/components/components.js +0 -1
- package/dist/esm/components/index.js +0 -1
- package/dist/esm/index.federated.js +0 -1
- package/dist/esm/index.js +0 -1
- package/dist/esm/main/index.js +0 -1
- package/dist/esm/main/main.js +4 -5
- package/dist/esm/main/main.styles.js +1 -4
- package/dist/esm/main/main.template.js +0 -1
- package/dist/esm/styles/colors.js +0 -1
- package/dist/esm/styles/index.js +1 -2
- package/dist/esm/styles/styles.js +0 -1
- package/dist/esm/utils/index.js +0 -1
- package/dist/esm/utils/logger.js +0 -1
- package/package.json +12 -10
- package/dist/1.0.0.remoteEntry.js +0 -1
- package/dist/185.185.90f433f531991b7de936.js +0 -2
- package/dist/185.bfe96e990dc6f09220d09b8c95f4b54c.js.map +0 -1
- package/dist/31607cf9ccd469a62208.svg +0 -3
- package/dist/338.338.6641454ca7888d1fe36e.js +0 -2
- package/dist/338.94cb9596c131c99ac58a37f38ad25ce7.js.map +0 -1
- package/dist/397.397.2a1b48dbb33962f24b3a.js +0 -3
- package/dist/397.397.2a1b48dbb33962f24b3a.js.LICENSE.txt +0 -1
- package/dist/397.83dbb3ca8f1fe8d1a694b8c2feffc11b.js.map +0 -1
- package/dist/453.453.a2247ddad6f6385d77e5.js +0 -326
- package/dist/453.547b1f466caf28aca7644e9032ba33d9.js.map +0 -1
- package/dist/506.216099078d895d583f069d47bbbbc118.js.map +0 -1
- package/dist/506.506.2df96cfa49403c056e18.js +0 -3
- package/dist/506.506.2df96cfa49403c056e18.js.LICENSE.txt +0 -4
- package/dist/540.540.16a5312961af053a4ac4.js +0 -2
- package/dist/540.6abb416013642069288d5369cb3126c7.js.map +0 -1
- package/dist/641.5d1b071000ebacbeffeb45846633c4ce.js.map +0 -1
- package/dist/641.641.0d19c60ce5b96cee96e9.js +0 -3
- package/dist/641.641.0d19c60ce5b96cee96e9.js.LICENSE.txt +0 -4
- package/dist/667.667.76a963874a8ced0ba03f.js +0 -2
- package/dist/667.e80f70ba5418c8fd00213d1c8ef97b86.js.map +0 -1
- package/dist/853.234215e17d31fe35e24b3b9241a6b6fd.js.map +0 -1
- package/dist/853.853.2cdc8d94fdad1718e016.js +0 -2
- package/dist/868.868.1c7d7e3d7821494b3ae2.js +0 -3434
- package/dist/868.f796e350acd03aa052fa27272aa83afc.js.map +0 -1
- package/dist/dashboard.json +0 -1
- package/dist/dts/styles/typography.d.ts +0 -5
- package/dist/dts/styles/typography.d.ts.map +0 -1
- package/dist/esm/components/components.js.map +0 -1
- package/dist/esm/components/index.js.map +0 -1
- package/dist/esm/index.federated.js.map +0 -1
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/main/index.js.map +0 -1
- package/dist/esm/main/main.js.map +0 -1
- package/dist/esm/main/main.styles.js.map +0 -1
- package/dist/esm/main/main.template.js.map +0 -1
- package/dist/esm/styles/colors.js.map +0 -1
- package/dist/esm/styles/index.js.map +0 -1
- package/dist/esm/styles/styles.js.map +0 -1
- package/dist/esm/styles/typography.js +0 -20
- package/dist/esm/styles/typography.js.map +0 -1
- package/dist/esm/utils/index.js.map +0 -1
- package/dist/esm/utils/logger.js.map +0 -1
- package/dist/favicon.ico +0 -0
- package/dist/foundationHeader.685f4ee8e2cde1d2ba841d4feadbe883.js.map +0 -1
- package/dist/index.ejs +0 -23
- package/dist/index.html +0 -10
- package/dist/info.ejs +0 -13
- package/dist/info.html +0 -19
- package/dist/main.3ceec8a83bd7daabb733313329a49b5e.js.map +0 -1
- package/dist/main.af1b29c4ad243e418158.js +0 -2
- package/dist/npm.analytics.13d3017bcb2734b958e1c261c7e620d1.js.map +0 -1
- package/dist/npm.analytics.343.868701a34bf55591b35e.js +0 -2
- package/dist/npm.consola.713.a6a01a645775febbd05a.js +0 -2
- package/dist/npm.consola.d0475457692e79d2065981689ecbe6c8.js.map +0 -1
- package/dist/npm.dialog-polyfill.39e8a4cd9784ad9e0690d28f17eefeb3.js.map +0 -1
- package/dist/npm.dialog-polyfill.47.857e1cc698756a1d4d9f.js +0 -2
- package/dist/npm.finos.690.1d362c820f7a29e44178.js +0 -2
- package/dist/npm.finos.7eb5017b5506c0dd6de2c2bee763a997.js.map +0 -1
- package/dist/npm.fortawesome.104.6fdfed399ac3d4bcd076.js +0 -2
- package/dist/npm.fortawesome.96f1e7115d1e111bde725447b64f04a9.js.map +0 -1
- package/dist/npm.microsoft.127.63be836a7ee60f2db5e3.js +0 -6406
- package/dist/npm.microsoft.127.63be836a7ee60f2db5e3.js.LICENSE.txt +0 -14
- package/dist/npm.microsoft.93b16332ce7f1e3a889ad69e0403d652.js.map +0 -1
- package/dist/npm.rxjs.271.3c690069442a312eaee2.js +0 -2
- package/dist/npm.rxjs.3e4127a7515023cc78b8548028afb653.js.map +0 -1
- package/dist/remoteEntry.js +0 -2
- package/dist/serve.json +0 -3
|
@@ -1,3434 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_genesislcap_foundation_header=self.webpackChunk_genesislcap_foundation_header||[]).push([[868],{6436:function(e){e.exports=function(){"use strict";var e=1e3,t=6e4,o=36e5,a="millisecond",r="second",i="minute",n="hour",s="day",l="week",c="month",d="quarter",p="year",u="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+)?$/,g=/\[([^\]]+)]|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])+"]"}},b=function(e,t,o){var a=String(e);return!a||a.length>=t?e:""+Array(t+1-a.length).join(o)+e},f={s:b,z:function(e){var t=-e.utcOffset(),o=Math.abs(t),a=Math.floor(o/60),r=o%60;return(t<=0?"+":"-")+b(a,2,"0")+":"+b(r,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()),r=t.clone().add(a,c),i=o-r<0,n=t.clone().add(a+(i?-1:1),c);return+(-(a+(o-r)/(i?r-n:n-r))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:c,y:p,w:l,d:s,D:u,h:n,m:i,s:r,ms:a,Q:d}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},y="en",x={};x[y]=v;var $=function(e){return e instanceof S},w=function e(t,o,a){var r;if(!t)return y;if("string"==typeof t){var i=t.toLowerCase();x[i]&&(r=i),o&&(x[i]=o,r=i);var n=t.split("-");if(!r&&n.length>1)return e(n[0])}else{var s=t.name;x[s]=t,r=s}return!a&&r&&(y=r),r||!a&&y},F=function(e,t){if($(e))return e.clone();var o="object"==typeof t?t:{};return o.date=e,o.args=arguments,new S(o)},k=f;k.l=w,k.i=$,k.w=function(e,t){return F(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var S=function(){function v(e){this.$L=w(e.locale,null,!0),this.parse(e)}var b=v.prototype;return b.parse=function(e){this.$d=function(e){var t=e.date,o=e.utc;if(null===t)return new Date(NaN);if(k.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 r=a[2]-1||0,i=(a[7]||"0").substring(0,3);return o?new Date(Date.UTC(a[1],r,a[3]||1,a[4]||0,a[5]||0,a[6]||0,i)):new Date(a[1],r,a[3]||1,a[4]||0,a[5]||0,a[6]||0,i)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},b.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()},b.$utils=function(){return k},b.isValid=function(){return!(this.$d.toString()===h)},b.isSame=function(e,t){var o=F(e);return this.startOf(t)<=o&&o<=this.endOf(t)},b.isAfter=function(e,t){return F(e)<this.startOf(t)},b.isBefore=function(e,t){return this.endOf(t)<F(e)},b.$g=function(e,t,o){return k.u(e)?this[t]:this.set(o,e)},b.unix=function(){return Math.floor(this.valueOf()/1e3)},b.valueOf=function(){return this.$d.getTime()},b.startOf=function(e,t){var o=this,a=!!k.u(t)||t,d=k.p(e),h=function(e,t){var r=k.w(o.$u?Date.UTC(o.$y,t,e):new Date(o.$y,t,e),o);return a?r:r.endOf(s)},m=function(e,t){return k.w(o.toDate()[e].apply(o.toDate("s"),(a?[0,0,0,0]:[23,59,59,999]).slice(t)),o)},g=this.$W,v=this.$M,b=this.$D,f="set"+(this.$u?"UTC":"");switch(d){case p:return a?h(1,0):h(31,11);case c:return a?h(1,v):h(0,v+1);case l:var y=this.$locale().weekStart||0,x=(g<y?g+7:g)-y;return h(a?b-x:b+(6-x),v);case s:case u:return m(f+"Hours",0);case n:return m(f+"Minutes",1);case i:return m(f+"Seconds",2);case r:return m(f+"Milliseconds",3);default:return this.clone()}},b.endOf=function(e){return this.startOf(e,!1)},b.$set=function(e,t){var o,l=k.p(e),d="set"+(this.$u?"UTC":""),h=(o={},o[s]=d+"Date",o[u]=d+"Date",o[c]=d+"Month",o[p]=d+"FullYear",o[n]=d+"Hours",o[i]=d+"Minutes",o[r]=d+"Seconds",o[a]=d+"Milliseconds",o)[l],m=l===s?this.$D+(t-this.$W):t;if(l===c||l===p){var g=this.clone().set(u,1);g.$d[h](m),g.init(),this.$d=g.set(u,Math.min(this.$D,g.daysInMonth())).$d}else h&&this.$d[h](m);return this.init(),this},b.set=function(e,t){return this.clone().$set(e,t)},b.get=function(e){return this[k.p(e)]()},b.add=function(a,d){var u,h=this;a=Number(a);var m=k.p(d),g=function(e){var t=F(h);return k.w(t.date(t.date()+Math.round(e*a)),h)};if(m===c)return this.set(c,this.$M+a);if(m===p)return this.set(p,this.$y+a);if(m===s)return g(1);if(m===l)return g(7);var v=(u={},u[i]=t,u[n]=o,u[r]=e,u)[m]||1,b=this.$d.getTime()+a*v;return k.w(b,this)},b.subtract=function(e,t){return this.add(-1*e,t)},b.format=function(e){var t=this,o=this.$locale();if(!this.isValid())return o.invalidDate||h;var a=e||"YYYY-MM-DDTHH:mm:ssZ",r=k.z(this),i=this.$H,n=this.$m,s=this.$M,l=o.weekdays,c=o.months,d=function(e,o,r,i){return e&&(e[o]||e(t,a))||r[o].slice(0,i)},p=function(e){return k.s(i%12||12,e,"0")},u=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:k.s(s+1,2,"0"),MMM:d(o.monthsShort,s,c,3),MMMM:d(c,s),D:this.$D,DD:k.s(this.$D,2,"0"),d:String(this.$W),dd:d(o.weekdaysMin,this.$W,l,2),ddd:d(o.weekdaysShort,this.$W,l,3),dddd:l[this.$W],H:String(i),HH:k.s(i,2,"0"),h:p(1),hh:p(2),a:u(i,n,!0),A:u(i,n,!1),m:String(n),mm:k.s(n,2,"0"),s:String(this.$s),ss:k.s(this.$s,2,"0"),SSS:k.s(this.$ms,3,"0"),Z:r};return a.replace(g,(function(e,t){return t||m[e]||r.replace(":","")}))},b.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},b.diff=function(a,u,h){var m,g=k.p(u),v=F(a),b=(v.utcOffset()-this.utcOffset())*t,f=this-v,y=k.m(this,v);return y=(m={},m[p]=y/12,m[c]=y,m[d]=y/3,m[l]=(f-b)/6048e5,m[s]=(f-b)/864e5,m[n]=f/o,m[i]=f/t,m[r]=f/e,m)[g]||f,h?y:k.a(y)},b.daysInMonth=function(){return this.endOf(c).$D},b.$locale=function(){return x[this.$L]},b.locale=function(e,t){if(!e)return this.$L;var o=this.clone(),a=w(e,t,!0);return a&&(o.$L=a),o},b.clone=function(){return k.w(this.$d,this)},b.toDate=function(){return new Date(this.valueOf())},b.toJSON=function(){return this.isValid()?this.toISOString():null},b.toISOString=function(){return this.$d.toISOString()},b.toString=function(){return this.$d.toUTCString()},v}(),O=S.prototype;return F.prototype=O,[["$ms",a],["$s",r],["$m",i],["$H",n],["$W",s],["$M",c],["$y",p],["$D",u]].forEach((function(e){O[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),F.extend=function(e,t){return e.$i||(e(t,S,F),e.$i=!0),F},F.locale=w,F.isDayjs=$,F.unix=function(e){return F(1e3*e)},F.en=x[y],F.Ls=x,F.p={},F}()},9299: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}}}()},176:(e,t,o)=>{"use strict";function a(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}o.d(t,{N:()=>a})},2585:(e,t,o)=>{"use strict";o.r(t),o.d(t,{ActionsMenu:()=>h,Anchor:()=>we,Badge:()=>Le,Banner:()=>je,Breadcrumb:()=>rt,BreadcrumbItem:()=>Ze,Button:()=>mt,Card:()=>kt,Checkbox:()=>Rt,ColorHEX:()=>k,Combobox:()=>ao,DataGrid:()=>Mo,DataGridCell:()=>No,DataGridRow:()=>Ao,DatePicker:()=>Pa,Dialog:()=>Sa,Disclosure:()=>Ka,Divider:()=>lr,DropdownMenu:()=>br,ErrorBanner:()=>Mr,ErrorBoundary:()=>Dr,ErrorDialog:()=>Pr,FastAppearanceValues:()=>eo,FileUpload:()=>ui,Filter:()=>Mi,FilterBar:()=>Xi,FlexLayout:()=>rn,Flipper:()=>gn,Flyout:()=>Sn,GridLayout:()=>Mn,GridLayoutItem:()=>Pn,Icon:()=>es,ListboxOption:()=>us,Menu:()=>xs,MenuItem:()=>Cs,Modal:()=>Ps,Multiselect:()=>Qs,NeutralRapidColorHEX:()=>D,NumberField:()=>pl,PrimaryRapidColorHEX:()=>S,Progress:()=>kl,ProgressRing:()=>Al,Radio:()=>Vl,RadioGroup:()=>ec,RapidColorHEX:()=>z,SecondaryRapidColorHEX:()=>O,SegmentedControl:()=>hc,SegmentedItem:()=>yc,Select:()=>Nc,Skeleton:()=>Pc,Slider:()=>Jc,Snackbar:()=>cc,Switch:()=>ld,Tab:()=>fd,TabPanel:()=>zd,Tabs:()=>Ed,TextArea:()=>qd,TextField:()=>op,Toast:()=>up,Toolbar:()=>wp,Tooltip:()=>Lp,TreeItem:()=>Bp,TreeView:()=>Qp,UrlInput:()=>lu,ZeroAppearanceColor:()=>Qt,ZeroAppearanceValues:()=>to,ZeroDesignSystemProvider:()=>ca,accentBluePalette:()=>U,accentBlueSwatch:()=>V,accentFillActive:()=>g.accentFillActive,accentFillActiveDelta:()=>g.accentFillActiveDelta,accentFillFocus:()=>g.accentFillFocus,accentFillFocusDelta:()=>g.accentFillFocusDelta,accentFillHover:()=>g.accentFillHover,accentFillHoverDelta:()=>g.accentFillHoverDelta,accentFillRest:()=>g.accentFillRest,accentFillRestDelta:()=>g.accentFillRestDelta,accentForegroundActive:()=>g.accentForegroundActive,accentForegroundActiveDelta:()=>g.accentForegroundActiveDelta,accentForegroundFocus:()=>g.accentForegroundFocus,accentForegroundFocusDelta:()=>g.accentForegroundFocusDelta,accentForegroundHover:()=>g.accentForegroundHover,accentForegroundHoverDelta:()=>g.accentForegroundHoverDelta,accentForegroundRest:()=>g.accentForegroundRest,accentForegroundRestDelta:()=>g.accentForegroundRestDelta,accentPalette:()=>g.accentPalette,accentPaletteValue:()=>oa,baseComponents:()=>uu,baseHeightMultiplier:()=>g.baseHeightMultiplier,baseLayerLuminance:()=>g.baseLayerLuminance,baseLayerLuminanceValue:()=>ra,blackWebRGBA:()=>M,bodyFont:()=>g.bodyFont,bodyFontValue:()=>la,chartPinkWebRGBA:()=>ie,controlCornerRadius:()=>g.controlCornerRadius,controlCornerRadiusValue:()=>na,defaultBreadcrumbConfig:()=>nt,defaultDatePickerConfig:()=>ja,defaultDialogConfig:()=>wa,defaultFileUploadConfig:()=>di,defaultFlyoutConfig:()=>Fn,defaultIconConfig:()=>ts,defaultModalConfig:()=>Es,defaultMultiselectConfig:()=>el,defaultNumberFieldConfig:()=>ul,defaultRapidActiveBGColor:()=>Zt,defaultRapidBGColor:()=>Yt,defaultRapidBorderUnfocusedColor:()=>Jt,defaultRapidLabelColor:()=>qt,defaultRapidTextColor:()=>Vt,defaultSegmentedControlConfig:()=>gc,defaultSegmentedItemConfig:()=>$c,defaultToastConfig:()=>dp,defaultUrlInputConfig:()=>cu,defaultZeroProgressRingConfig:()=>Rl,density:()=>g.density,designSystemProviderStyles:()=>Jo,designUnit:()=>g.designUnit,designUnitValue:()=>sa,direction:()=>g.direction,directionValue:()=>ia,disabledOpacity:()=>g.disabledOpacity,dropdownMenuBaseStyles:()=>dr,extractMenuItems:()=>pr,fillColor:()=>g.fillColor,focusStrokeInner:()=>g.focusStrokeInner,focusStrokeOuter:()=>g.focusStrokeOuter,focusStrokeWidth:()=>g.focusStrokeWidth,foregroundOnAccentActive:()=>g.foregroundOnAccentActive,foregroundOnAccentActiveLarge:()=>g.foregroundOnAccentActiveLarge,foregroundOnAccentFocus:()=>g.foregroundOnAccentFocus,foregroundOnAccentFocusLarge:()=>g.foregroundOnAccentFocusLarge,foregroundOnAccentHover:()=>g.foregroundOnAccentHover,foregroundOnAccentHoverLarge:()=>g.foregroundOnAccentHoverLarge,foregroundOnAccentRest:()=>g.foregroundOnAccentRest,foregroundOnAccentRestLarge:()=>g.foregroundOnAccentRestLarge,getDropdownMenuTemplate:()=>ur,getWebRGBA:()=>N,loadRobotoFontFaces:()=>Yo,longGreenWebRGBA:()=>Q,mixinRobotoFont:()=>qo,multiselectStyles:()=>Js,multiselectTemplate:()=>Ks,neutralFillActive:()=>g.neutralFillActive,neutralFillActiveDelta:()=>g.neutralFillActiveDelta,neutralFillFocus:()=>g.neutralFillFocus,neutralFillFocusDelta:()=>g.neutralFillFocusDelta,neutralFillHover:()=>g.neutralFillHover,neutralFillHoverDelta:()=>g.neutralFillHoverDelta,neutralFillInputActive:()=>g.neutralFillInputActive,neutralFillInputActiveDelta:()=>g.neutralFillInputActiveDelta,neutralFillInputFocus:()=>g.neutralFillInputFocus,neutralFillInputFocusDelta:()=>g.neutralFillInputFocusDelta,neutralFillInputHover:()=>g.neutralFillInputHover,neutralFillInputHoverDelta:()=>g.neutralFillInputHoverDelta,neutralFillInputRest:()=>g.neutralFillInputRest,neutralFillInputRestDelta:()=>g.neutralFillInputRestDelta,neutralFillLayerRest:()=>g.neutralFillLayerRest,neutralFillLayerRestDelta:()=>g.neutralFillLayerRestDelta,neutralFillRest:()=>g.neutralFillRest,neutralFillRestDelta:()=>g.neutralFillRestDelta,neutralFillStealthActive:()=>g.neutralFillStealthActive,neutralFillStealthActiveDelta:()=>g.neutralFillStealthActiveDelta,neutralFillStealthFocus:()=>g.neutralFillStealthFocus,neutralFillStealthFocusDelta:()=>g.neutralFillStealthFocusDelta,neutralFillStealthHover:()=>g.neutralFillStealthHover,neutralFillStealthHoverDelta:()=>g.neutralFillStealthHoverDelta,neutralFillStealthRest:()=>g.neutralFillStealthRest,neutralFillStealthRestDelta:()=>g.neutralFillStealthRestDelta,neutralFillStrongActive:()=>g.neutralFillStrongActive,neutralFillStrongActiveDelta:()=>g.neutralFillStrongActiveDelta,neutralFillStrongFocus:()=>g.neutralFillStrongFocus,neutralFillStrongFocusDelta:()=>g.neutralFillStrongFocusDelta,neutralFillStrongHover:()=>g.neutralFillStrongHover,neutralFillStrongHoverDelta:()=>g.neutralFillStrongHoverDelta,neutralFillStrongRest:()=>g.neutralFillStrongRest,neutralFillStrongRestDelta:()=>g.neutralFillStrongRestDelta,neutralForegroundHint:()=>g.neutralForegroundHint,neutralForegroundRest:()=>g.neutralForegroundRest,neutralLayer1:()=>g.neutralLayer1,neutralLayer2:()=>g.neutralLayer2,neutralLayer3:()=>g.neutralLayer3,neutralLayer4:()=>g.neutralLayer4,neutralLayerCardContainer:()=>g.neutralLayerCardContainer,neutralLayerFloating:()=>g.neutralLayerFloating,neutralPalette:()=>g.neutralPalette,neutralPaletteValue:()=>aa,neutralStrokeActive:()=>g.neutralStrokeActive,neutralStrokeActiveDelta:()=>g.neutralStrokeActiveDelta,neutralStrokeDividerRest:()=>g.neutralStrokeDividerRest,neutralStrokeDividerRestDelta:()=>g.neutralStrokeDividerRestDelta,neutralStrokeFocus:()=>g.neutralStrokeFocus,neutralStrokeFocusDelta:()=>g.neutralStrokeFocusDelta,neutralStrokeHover:()=>g.neutralStrokeHover,neutralStrokeHoverDelta:()=>g.neutralStrokeHoverDelta,neutralStrokeRest:()=>g.neutralStrokeRest,neutralStrokeRestDelta:()=>g.neutralStrokeRestDelta,primaryBlueWebRGBA:()=>G,primaryPurpleWebRGBA:()=>W,provideDesignSystem:()=>gu,rapidBGColorHEX:()=>T,rapidBodyFont:()=>ta,rapidDefaultCardFillColor:()=>j,rapidDefaultCardPalette:()=>P,rapidDefaultFillColor:()=>E,registerZeroDesignSystem:()=>vu,robotoFontFaces:()=>Uo,robotoFontFamily:()=>Wo,secondaryOrangeWebRGBA:()=>X,secondaryTealWebRGBA:()=>K,shortPinkWebRGBA:()=>te,strokeWidth:()=>g.strokeWidth,typeRampBaseFontSize:()=>g.typeRampBaseFontSize,typeRampBaseLineHeight:()=>g.typeRampBaseLineHeight,typeRampMinus1FontSize:()=>g.typeRampMinus1FontSize,typeRampMinus1LineHeight:()=>g.typeRampMinus1LineHeight,typeRampMinus2FontSize:()=>g.typeRampMinus2FontSize,typeRampMinus2LineHeight:()=>g.typeRampMinus2LineHeight,typeRampPlus1FontSize:()=>g.typeRampPlus1FontSize,typeRampPlus1LineHeight:()=>g.typeRampPlus1LineHeight,typeRampPlus2FontSize:()=>g.typeRampPlus2FontSize,typeRampPlus2LineHeight:()=>g.typeRampPlus2LineHeight,typeRampPlus3FontSize:()=>g.typeRampPlus3FontSize,typeRampPlus3LineHeight:()=>g.typeRampPlus3LineHeight,typeRampPlus4FontSize:()=>g.typeRampPlus4FontSize,typeRampPlus4LineHeight:()=>g.typeRampPlus4LineHeight,typeRampPlus5FontSize:()=>g.typeRampPlus5FontSize,typeRampPlus5LineHeight:()=>g.typeRampPlus5LineHeight,typeRampPlus6FontSize:()=>g.typeRampPlus6FontSize,typeRampPlus6LineHeight:()=>g.typeRampPlus6LineHeight,warningYellowWebRGBA:()=>ae,whiteWebRGBA:()=>A,zeroActionsMenu:()=>m,zeroActionsMenuStyles:()=>u,zeroAnchor:()=>Fe,zeroAnchorStyles:()=>$e,zeroAnchorTemplate:()=>w,zeroBadge:()=>Ae,zeroBadgeStyles:()=>Ne,zeroBadgeTemplate:()=>Ce,zeroBanner:()=>Pe,zeroBannerShadowOptions:()=>He,zeroBannerStyles:()=>Ee,zeroBannerTemplate:()=>Me,zeroBreadcrumb:()=>st,zeroBreadcrumbItem:()=>Ke,zeroBreadcrumbItemStyles:()=>Xe,zeroBreadcrumbItemTemplate:()=>qe,zeroBreadcrumbShadowOptions:()=>it,zeroBreadcrumbStyles:()=>at,zeroBreadcrumbTemplate:()=>ot,zeroButton:()=>gt,zeroButtonStyles:()=>xe,zeroButtonTemplate:()=>ht,zeroCard:()=>St,zeroCardStyles:()=>Ft,zeroCardTemplate:()=>wt,zeroCheckbox:()=>Mt,zeroCheckboxStyles:()=>At,zeroCheckboxTemplate:()=>Lt,zeroCombobox:()=>ro,zeroComboboxStyles:()=>oo,zeroComboboxTemplate:()=>Bt,zeroDataGrid:()=>To,zeroDataGridCell:()=>Lo,zeroDataGridCellStyles:()=>Co,zeroDataGridRow:()=>Ro,zeroDataGridRowStyles:()=>_o,zeroDataGridStyles:()=>Do,zeroDataGridTemplate:()=>zo,zeroDatePicker:()=>Ba,zeroDatePickerShadowOptions:()=>Ha,zeroDatePickerStyles:()=>Ea,zeroDatePickerTemplate:()=>Ia,zeroDesignSystemProvider:()=>da,zeroDialog:()=>Oa,zeroDialogShadowOptions:()=>ka,zeroDialogStyles:()=>$a,zeroDialogTemplate:()=>ma,zeroDisclosure:()=>Ja,zeroDisclosureStyles:()=>Za,zeroDisclosureTemplate:()=>Xa,zeroDivider:()=>cr,zeroDividerStyles:()=>sr,zeroDividerTemplate:()=>nr,zeroDropdownMenu:()=>fr,zeroDropdownMenuStyles:()=>vr,zeroDropdownMenuTemplate:()=>hr,zeroErrorBanner:()=>Tr,zeroErrorBannerShadowOptions:()=>Rr,zeroErrorBannerTemplate:()=>Ar,zeroErrorBoundary:()=>zr,zeroErrorBoundaryShadowOptions:()=>Or,zeroErrorDialog:()=>Br,zeroFileUpload:()=>hi,zeroFileUploadShadowOptions:()=>pi,zeroFileUploadStyles:()=>li,zeroFileUploadTemplate:()=>Vr,zeroFilter:()=>Ti,zeroFilterBar:()=>Zi,zeroFilterBarStyles:()=>Ui,zeroFilterBarTemplate:()=>qi,zeroFilterStyles:()=>mi,zeroFilterTemplate:()=>Ri,zeroFlexLayout:()=>nn,zeroFlipper:()=>vn,zeroFlipperStyles:()=>mn,zeroFlipperTemplate:()=>hn,zeroFlyout:()=>On,zeroFlyoutShadowOptions:()=>kn,zeroFlyoutStyles:()=>wn,zeroFlyoutTemplate:()=>bn,zeroGridLayout:()=>Tn,zeroGridLayoutItem:()=>Bn,zeroGridLayoutItemTemplate:()=>In,zeroIcon:()=>as,zeroIconShadowOptions:()=>os,zeroIconStyles:()=>Qn,zeroListboxOption:()=>hs,zeroListboxOptionStyles:()=>ps,zeroListboxOptionTemplate:()=>ds,zeroMenu:()=>$s,zeroMenuItem:()=>Ns,zeroMenuItemShadowOptions:()=>_s,zeroMenuItemStyles:()=>zs,zeroMenuShadowOptions:()=>ys,zeroModal:()=>Bs,zeroModalShadowOptions:()=>js,zeroModalStyles:()=>Is,zeroModalTemplate:()=>As,zeroMultiselect:()=>ol,zeroMultiselectShadowOptions:()=>tl,zeroNumberField:()=>gl,zeroNumberFieldShadowOptions:()=>ml,zeroNumberFieldStyles:()=>dl,zeroNumberFieldTemplate:()=>hl,zeroProgress:()=>Sl,zeroProgressRing:()=>Ml,zeroProgressRingStyles:()=>Ll,zeroProgressRingTemplate:()=>Nl,zeroProgressStyles:()=>Fl,zeroProgressTemplate:()=>wl,zeroRadio:()=>Ul,zeroRadioGroup:()=>tc,zeroRadioGroupStyles:()=>Ql,zeroRadioGroupTemplate:()=>Jl,zeroRadioStyles:()=>Gl,zeroRadioTemplate:()=>Bl,zeroSegmentedControl:()=>vc,zeroSegmentedControlShadowOptions:()=>mc,zeroSegmentedControlStyles:()=>uc,zeroSegmentedControlTemplate:()=>pc,zeroSegmentedItem:()=>wc,zeroSegmentedItemShadowOptions:()=>xc,zeroSegmentedItemStyles:()=>fc,zeroSegmentedItemTemplate:()=>bc,zeroSelect:()=>Lc,zeroSelectStyles:()=>Cc,zeroSelectTemplate:()=>_c,zeroSkeleton:()=>Bc,zeroSkeletonStyles:()=>jc,zeroSkeletonTemplate:()=>Hc,zeroSlider:()=>Qc,zeroSliderStyles:()=>Kc,zeroSliderTemplate:()=>Zc,zeroSnackbar:()=>dc,zeroSnackbarShadowOptions:()=>lc,zeroSnackbarStyles:()=>sc,zeroSwitch:()=>cd,zeroSwitchStyles:()=>sd,zeroSwitchTemplate:()=>nd,zeroTab:()=>yd,zeroTabPanel:()=>_d,zeroTabPanelStyles:()=>Dd,zeroTabPanelTemplate:()=>Od,zeroTabStyles:()=>bd,zeroTabTemplate:()=>vd,zeroTabs:()=>Hd,zeroTabsStyles:()=>Id,zeroTabsTemplate:()=>Td,zeroTextArea:()=>Xd,zeroTextAreaStyles:()=>Wd,zeroTextAreaTemplate:()=>Yd,zeroTextField:()=>ap,zeroTextFieldStyles:()=>cl,zeroTextFieldTemplate:()=>tp,zeroToast:()=>hp,zeroToastShadowOptions:()=>pp,zeroToastStyles:()=>cp,zeroToastTemplate:()=>ip,zeroToolbar:()=>Fp,zeroToolbarStyles:()=>$p,zeroToolbarTemplate:()=>xp,zeroTooltip:()=>Ap,zeroTooltipStyles:()=>Np,zeroTooltipTemplate:()=>Cp,zeroTreeItem:()=>Gp,zeroTreeItemStyles:()=>Pp,zeroTreeItemTemplate:()=>jp,zeroTreeView:()=>eu,zeroTreeViewStyles:()=>Jp,zeroTreeViewTemplate:()=>Kp,zeroUrlInput:()=>pu,zeroUrlInputShadowOptions:()=>du,zeroUrlInputStyles:()=>su,zeroUrlInputTemplate:()=>nu});var a={};o.r(a),o.d(a,{accentFillActive:()=>g.accentFillActive,accentFillActiveDelta:()=>g.accentFillActiveDelta,accentFillFocus:()=>g.accentFillFocus,accentFillFocusDelta:()=>g.accentFillFocusDelta,accentFillHover:()=>g.accentFillHover,accentFillHoverDelta:()=>g.accentFillHoverDelta,accentFillRest:()=>g.accentFillRest,accentFillRestDelta:()=>g.accentFillRestDelta,accentForegroundActive:()=>g.accentForegroundActive,accentForegroundActiveDelta:()=>g.accentForegroundActiveDelta,accentForegroundFocus:()=>g.accentForegroundFocus,accentForegroundFocusDelta:()=>g.accentForegroundFocusDelta,accentForegroundHover:()=>g.accentForegroundHover,accentForegroundHoverDelta:()=>g.accentForegroundHoverDelta,accentForegroundRest:()=>g.accentForegroundRest,accentForegroundRestDelta:()=>g.accentForegroundRestDelta,accentPalette:()=>g.accentPalette,baseHeightMultiplier:()=>g.baseHeightMultiplier,baseLayerLuminance:()=>g.baseLayerLuminance,bodyFont:()=>g.bodyFont,controlCornerRadius:()=>g.controlCornerRadius,density:()=>g.density,designUnit:()=>g.designUnit,direction:()=>g.direction,disabledOpacity:()=>g.disabledOpacity,fillColor:()=>g.fillColor,focusStrokeInner:()=>g.focusStrokeInner,focusStrokeOuter:()=>g.focusStrokeOuter,focusStrokeWidth:()=>g.focusStrokeWidth,foregroundOnAccentActive:()=>g.foregroundOnAccentActive,foregroundOnAccentActiveLarge:()=>g.foregroundOnAccentActiveLarge,foregroundOnAccentFocus:()=>g.foregroundOnAccentFocus,foregroundOnAccentFocusLarge:()=>g.foregroundOnAccentFocusLarge,foregroundOnAccentHover:()=>g.foregroundOnAccentHover,foregroundOnAccentHoverLarge:()=>g.foregroundOnAccentHoverLarge,foregroundOnAccentRest:()=>g.foregroundOnAccentRest,foregroundOnAccentRestLarge:()=>g.foregroundOnAccentRestLarge,neutralFillActive:()=>g.neutralFillActive,neutralFillActiveDelta:()=>g.neutralFillActiveDelta,neutralFillFocus:()=>g.neutralFillFocus,neutralFillFocusDelta:()=>g.neutralFillFocusDelta,neutralFillHover:()=>g.neutralFillHover,neutralFillHoverDelta:()=>g.neutralFillHoverDelta,neutralFillInputActive:()=>g.neutralFillInputActive,neutralFillInputActiveDelta:()=>g.neutralFillInputActiveDelta,neutralFillInputFocus:()=>g.neutralFillInputFocus,neutralFillInputFocusDelta:()=>g.neutralFillInputFocusDelta,neutralFillInputHover:()=>g.neutralFillInputHover,neutralFillInputHoverDelta:()=>g.neutralFillInputHoverDelta,neutralFillInputRest:()=>g.neutralFillInputRest,neutralFillInputRestDelta:()=>g.neutralFillInputRestDelta,neutralFillLayerRest:()=>g.neutralFillLayerRest,neutralFillLayerRestDelta:()=>g.neutralFillLayerRestDelta,neutralFillRest:()=>g.neutralFillRest,neutralFillRestDelta:()=>g.neutralFillRestDelta,neutralFillStealthActive:()=>g.neutralFillStealthActive,neutralFillStealthActiveDelta:()=>g.neutralFillStealthActiveDelta,neutralFillStealthFocus:()=>g.neutralFillStealthFocus,neutralFillStealthFocusDelta:()=>g.neutralFillStealthFocusDelta,neutralFillStealthHover:()=>g.neutralFillStealthHover,neutralFillStealthHoverDelta:()=>g.neutralFillStealthHoverDelta,neutralFillStealthRest:()=>g.neutralFillStealthRest,neutralFillStealthRestDelta:()=>g.neutralFillStealthRestDelta,neutralFillStrongActive:()=>g.neutralFillStrongActive,neutralFillStrongActiveDelta:()=>g.neutralFillStrongActiveDelta,neutralFillStrongFocus:()=>g.neutralFillStrongFocus,neutralFillStrongFocusDelta:()=>g.neutralFillStrongFocusDelta,neutralFillStrongHover:()=>g.neutralFillStrongHover,neutralFillStrongHoverDelta:()=>g.neutralFillStrongHoverDelta,neutralFillStrongRest:()=>g.neutralFillStrongRest,neutralFillStrongRestDelta:()=>g.neutralFillStrongRestDelta,neutralForegroundHint:()=>g.neutralForegroundHint,neutralForegroundRest:()=>g.neutralForegroundRest,neutralLayer1:()=>g.neutralLayer1,neutralLayer2:()=>g.neutralLayer2,neutralLayer3:()=>g.neutralLayer3,neutralLayer4:()=>g.neutralLayer4,neutralLayerCardContainer:()=>g.neutralLayerCardContainer,neutralLayerFloating:()=>g.neutralLayerFloating,neutralPalette:()=>g.neutralPalette,neutralStrokeActive:()=>g.neutralStrokeActive,neutralStrokeActiveDelta:()=>g.neutralStrokeActiveDelta,neutralStrokeDividerRest:()=>g.neutralStrokeDividerRest,neutralStrokeDividerRestDelta:()=>g.neutralStrokeDividerRestDelta,neutralStrokeFocus:()=>g.neutralStrokeFocus,neutralStrokeFocusDelta:()=>g.neutralStrokeFocusDelta,neutralStrokeHover:()=>g.neutralStrokeHover,neutralStrokeHoverDelta:()=>g.neutralStrokeHoverDelta,neutralStrokeRest:()=>g.neutralStrokeRest,neutralStrokeRestDelta:()=>g.neutralStrokeRestDelta,rapidBodyFont:()=>ta,strokeWidth:()=>g.strokeWidth,typeRampBaseFontSize:()=>g.typeRampBaseFontSize,typeRampBaseLineHeight:()=>g.typeRampBaseLineHeight,typeRampMinus1FontSize:()=>g.typeRampMinus1FontSize,typeRampMinus1LineHeight:()=>g.typeRampMinus1LineHeight,typeRampMinus2FontSize:()=>g.typeRampMinus2FontSize,typeRampMinus2LineHeight:()=>g.typeRampMinus2LineHeight,typeRampPlus1FontSize:()=>g.typeRampPlus1FontSize,typeRampPlus1LineHeight:()=>g.typeRampPlus1LineHeight,typeRampPlus2FontSize:()=>g.typeRampPlus2FontSize,typeRampPlus2LineHeight:()=>g.typeRampPlus2LineHeight,typeRampPlus3FontSize:()=>g.typeRampPlus3FontSize,typeRampPlus3LineHeight:()=>g.typeRampPlus3LineHeight,typeRampPlus4FontSize:()=>g.typeRampPlus4FontSize,typeRampPlus4LineHeight:()=>g.typeRampPlus4LineHeight,typeRampPlus5FontSize:()=>g.typeRampPlus5FontSize,typeRampPlus5LineHeight:()=>g.typeRampPlus5LineHeight,typeRampPlus6FontSize:()=>g.typeRampPlus6FontSize,typeRampPlus6LineHeight:()=>g.typeRampPlus6LineHeight});var r={};o.r(r),o.d(r,{accentPaletteValue:()=>oa,baseLayerLuminanceValue:()=>ra,bodyFontValue:()=>la,controlCornerRadiusValue:()=>na,designUnitValue:()=>sa,directionValue:()=>ia,neutralPaletteValue:()=>aa});var i=o(5373),n=o(1273),s=o(2830),l=o(8753);const c=(e,t)=>n.css`
|
|
2
|
-
:host {
|
|
3
|
-
--actions-opener-height-multiplier: 0.7px;
|
|
4
|
-
--actions-opener-bg-color: 249 254 255;
|
|
5
|
-
--menu-item-height-multiplier: 0.7px;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.actions-container {
|
|
9
|
-
align-items: center;
|
|
10
|
-
display: flex;
|
|
11
|
-
height: 100%;
|
|
12
|
-
justify-content: right;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.actions-menu {
|
|
16
|
-
display: none;
|
|
17
|
-
position: absolute;
|
|
18
|
-
max-width: 350px;
|
|
19
|
-
overflow-y: auto;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.actions-vertical .actions-menu {
|
|
23
|
-
padding: calc(var(--design-unit) * 1px);
|
|
24
|
-
max-height: 175px;
|
|
25
|
-
z-index: 100;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.actions-menu:not(.hidden):hover {
|
|
29
|
-
display: inline-flex;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.hidden {
|
|
33
|
-
display: none;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.visible {
|
|
37
|
-
display: inline-flex;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.actions-opener {
|
|
41
|
-
align-self: center;
|
|
42
|
-
display: flex;
|
|
43
|
-
height: calc(
|
|
44
|
-
(var(--base-height-multiplier) + var(--density)) * var(--design-unit) *
|
|
45
|
-
var(--actions-opener-height-multiplier)
|
|
46
|
-
);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
svg {
|
|
50
|
-
width: 100%;
|
|
51
|
-
height: 100%;
|
|
52
|
-
fill: #879ba6;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.actions-opener:hover svg {
|
|
56
|
-
fill: #fff;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
fast-menu-item {
|
|
60
|
-
display: flex;
|
|
61
|
-
user-select: none;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
fast-menu-item::part(content) {
|
|
65
|
-
margin-inline: 10px;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
fast-menu-item[disabled] {
|
|
69
|
-
pointer-events: none;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.menu-item {
|
|
73
|
-
flex: 1;
|
|
74
|
-
max-height: calc(
|
|
75
|
-
(var(--base-height-multiplier) + var(--density)) * var(--design-unit) *
|
|
76
|
-
var(--menu-item-height-multiplier)
|
|
77
|
-
);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.actions-vertical .menu-item {
|
|
81
|
-
flex: 1 1 auto;
|
|
82
|
-
justify-content: center;
|
|
83
|
-
margin: calc(var(--design-unit) * 1px);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.actions-vertical .visible,
|
|
87
|
-
.actions-vertical .actions-menu:not(.hidden):hover {
|
|
88
|
-
display: flex;
|
|
89
|
-
flex-direction: column;
|
|
90
|
-
}
|
|
91
|
-
`,d=n.html`
|
|
92
|
-
<div
|
|
93
|
-
class="actions-container${e=>e.isVertical?" actions-vertical":""}"
|
|
94
|
-
part="actions-container"
|
|
95
|
-
>
|
|
96
|
-
<fast-button
|
|
97
|
-
id="actiosnMenuTrigger"
|
|
98
|
-
class="actions-opener${e=>e.open?" opened":""}"
|
|
99
|
-
appearance="${e=>e.buttonAppearance}"
|
|
100
|
-
part="actions-opener"
|
|
101
|
-
@click=${e=>e.toggleActionsMenuVisibility()}
|
|
102
|
-
>
|
|
103
|
-
${e=>e.open?"✖":n.html`
|
|
104
|
-
${e.name}
|
|
105
|
-
`}
|
|
106
|
-
</fast-button>
|
|
107
|
-
<fast-menu
|
|
108
|
-
${(0,n.ref)("actionsMenu")}
|
|
109
|
-
class="actions-menu ${e=>e.classNames}"
|
|
110
|
-
part="actions-menu"
|
|
111
|
-
>
|
|
112
|
-
${(0,n.repeat)((e=>e.allActions),n.html`
|
|
113
|
-
${(0,n.when)(((e,t)=>e.isDisabled&&e.isDisabled(t.parent.rowData)),n.html`
|
|
114
|
-
<fast-menu-item
|
|
115
|
-
class="menu-item"
|
|
116
|
-
tabindex="${(e,t)=>t.index}"
|
|
117
|
-
disabled
|
|
118
|
-
>
|
|
119
|
-
${e=>e.name}
|
|
120
|
-
</fast-menu-item>
|
|
121
|
-
`)}
|
|
122
|
-
${(0,n.when)(((e,t)=>!e.isDisabled||!e.isDisabled(t.parent.rowData)),n.html`
|
|
123
|
-
<fast-menu-item
|
|
124
|
-
class="menu-item"
|
|
125
|
-
tabindex="${(e,t)=>t.index}"
|
|
126
|
-
@click=${(e,t)=>t.parent.onActionMenuItemClick(e.callback)}
|
|
127
|
-
style="${e=>e.color?`color: ${e.color};`:""}"
|
|
128
|
-
>
|
|
129
|
-
${e=>e.name}
|
|
130
|
-
</fast-menu-item>
|
|
131
|
-
`)}
|
|
132
|
-
`,{positioning:!0})}
|
|
133
|
-
</fast-menu>
|
|
134
|
-
</div>
|
|
135
|
-
`;class p extends s.I{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,i.__decorate)([n.observable],p.prototype,"actions",void 0),(0,i.__decorate)([(0,n.attr)({attribute:"is-vertical",mode:"boolean"})],p.prototype,"isVertical",void 0),(0,i.__decorate)([(0,n.attr)({attribute:"add-default-actions",mode:"boolean"})],p.prototype,"addDefaultActions",void 0),(0,i.__decorate)([(0,n.attr)({attribute:"auto-close-on-action",mode:"boolean"})],p.prototype,"autoCloseOnAction",void 0),(0,i.__decorate)([n.observable],p.prototype,"classNames",void 0),(0,i.__decorate)([n.observable],p.prototype,"definition",void 0),(0,i.__decorate)([n.attr],p.prototype,"name",void 0),(0,i.__decorate)([(0,n.attr)({attribute:"open",mode:"boolean"})],p.prototype,"open",void 0),(0,i.__decorate)([n.attr],p.prototype,"buttonAppearance",void 0);p.compose({baseName:"actions-menu",styles:(e,t)=>n.css`
|
|
136
|
-
${c()}
|
|
137
|
-
`,template:d});const u=(e,t)=>n.css`
|
|
138
|
-
:host {
|
|
139
|
-
--actions-opener-heigght-multiplier: 0.6px;
|
|
140
|
-
--menu-item-height-multiplier: 0.5px;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
${c()}
|
|
144
|
-
`;class h extends p{}const m=h.compose({baseName:"actions-menu",styles:u,template:d});var g=o(2617),v=o(7945);const b=(e,t)=>(0,v.g)(e,t),f=(e,t)=>n.css`
|
|
145
|
-
${(0,g.anchorStyles)(e,t)}
|
|
146
|
-
`;class y extends g.Anchor{}const x={delegatesFocus:!0,mode:"open"},$={},w=(y.compose(Object.assign({baseName:"anchor",template:b,styles:f,shadowOptions:x},$)),(e,t)=>b(e,t)),F=(e,t)=>n.css`
|
|
147
|
-
${(0,g.buttonStyles)(e,t)}
|
|
148
|
-
`;var k,S,O,D,z,_=o(4954);!function(e){e.black="#000000",e.white="#FFFFFF",e.almostWhite="#F1F1F1",e.lightGrey="#2E3339",e.mediumGrey="#2C2F33",e.darkGrey="#1F2126",e.darkerGrey="#141519"}(k||(k={})),function(e){e.blue="#0eafe2",e.purple="#654df9"}(S||(S={})),function(e){e.orange="#ff6d52",e.teal="#08c3a5"}(O||(O={})),function(e){e.grey="#7c909b"}(D||(D={})),function(e){e.chartPink="#fb8176",e.longGreen="#7acc79",e.shortPink="#f14376",e.warningYellow="fcb35f",e.green="#44c14c",e.lightGreen="#69cd70",e.red="#ef4d28",e.lightRed="#ee6588",e.dodgerBlue="#33a9ff",e.lightDodgerBlue="#5cbaff",e.violet="#9b1e74",e.lightViolet="#b528af",e.white="#f9f9f9",e.silver="#c1c1c1",e.salomie="#ffdf94",e.lightSalomie="#ccb276",e.melon="#ffbbb2",e.lightMelon="#cc968e",e.portage="#8a99f5",e.lightPortage="#adb8f8",e.ice="#97f4eb",e.lightIce="#6befe2"}(z||(z={}));var C=o(4157);const N=(e,t=1)=>new C.h(e.r,e.g,e.b,t).toStringWebRGBA(),L=(0,_.in)(k.white),A=(e=1)=>N(L,e),R=(0,_.in)(k.black),M=(e=1)=>N(R,e),T="#585858",I=(0,_.in)(T),E=g.SwatchRGB.create(I.r,I.g,I.b),H=(0,_.in)("#202126"),j=g.SwatchRGB.create(H.r,H.g,H.b),P=g.PaletteRGB.from(j),B=(0,_.in)(S.blue),G=(e=1)=>N(B,e),V=g.SwatchRGB.create(B.r,B.g,B.b),U=g.PaletteRGB.from(V),Y=(0,_.in)(S.purple),W=(e=1)=>N(Y,e),q=(0,_.in)(O.orange),X=(e=1)=>N(q,e),Z=(0,_.in)(O.teal),K=(e=1)=>N(Z,e),J=(0,_.in)(z.longGreen),Q=(e=1)=>N(J,e),ee=(0,_.in)(z.chartPink),te=(e=1)=>N(ee,e),oe=(0,_.in)(z.warningYellow),ae=(e=1)=>N(oe,e),re=(0,_.in)(z.chartPink),ie=(e=1)=>N(re,e);var ne=o(831);function se(e,t){return new ne.w("appearance",e,t)}const le=.3,ce=.1,de=.5,pe=n.css`
|
|
149
|
-
:host([appearance='primary-blue']) {
|
|
150
|
-
background: ${G(le)};
|
|
151
|
-
border: 1px solid ${S.blue};
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
:host([appearance='primary-blue']:hover) {
|
|
155
|
-
background: ${S.blue};
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
:host([appearance='primary-blue']:active) {
|
|
159
|
-
background: ${G(ce)};
|
|
160
|
-
border: 1px solid ${G(le)};
|
|
161
|
-
color: ${A(de)};
|
|
162
|
-
}
|
|
163
|
-
`,ue=n.css`
|
|
164
|
-
:host([appearance='primary-purple']) {
|
|
165
|
-
background: ${W(le)};
|
|
166
|
-
border: 1px solid ${S.purple};
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
:host([appearance='primary-purple']:hover) {
|
|
170
|
-
background: ${S.purple};
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
:host([appearance='primary-purple']:active) {
|
|
174
|
-
background: ${W(ce)};
|
|
175
|
-
border: 1px solid ${W(le)};
|
|
176
|
-
color: ${A(de)};
|
|
177
|
-
}
|
|
178
|
-
`,he=n.css`
|
|
179
|
-
:host {
|
|
180
|
-
--primary-gradient-angle: -113.5deg;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
:host([appearance='primary-gradient']) {
|
|
184
|
-
background-image: linear-gradient(
|
|
185
|
-
var(--primary-gradient-angle),
|
|
186
|
-
${S.blue},
|
|
187
|
-
${S.purple}
|
|
188
|
-
);
|
|
189
|
-
background-origin: border-box;
|
|
190
|
-
border: solid 1px transparent;
|
|
191
|
-
box-shadow: 2px 1000px 1px rgb(0 0 0 / 50%) inset;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
:host([appearance='primary-gradient']:hover) {
|
|
195
|
-
background-image: linear-gradient(
|
|
196
|
-
var(--primary-gradient-angle),
|
|
197
|
-
${S.blue},
|
|
198
|
-
${S.purple}
|
|
199
|
-
);
|
|
200
|
-
background-origin: border-box;
|
|
201
|
-
border: solid 1px transparent;
|
|
202
|
-
box-shadow: 2px 1000px 1px transparent inset;
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
:host([appearance='primary-gradient']:active) {
|
|
206
|
-
background-image: linear-gradient(
|
|
207
|
-
var(--primary-gradient-angle),
|
|
208
|
-
${G(le)},
|
|
209
|
-
${W(le)}
|
|
210
|
-
);
|
|
211
|
-
background-origin: border-box;
|
|
212
|
-
border: solid 1px transparent;
|
|
213
|
-
box-shadow: 2px 1000px 1px rgb(0 0 0 / 30%) inset;
|
|
214
|
-
color: ${A(de)};
|
|
215
|
-
}
|
|
216
|
-
`,me=n.css`
|
|
217
|
-
:host([appearance='secondary-orange']) {
|
|
218
|
-
background: ${X(le)};
|
|
219
|
-
border: 1px solid ${O.orange};
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
:host([appearance='secondary-orange']:hover) {
|
|
223
|
-
background: ${O.orange};
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
:host([appearance='secondary-orange']:active) {
|
|
227
|
-
background: ${X(ce)};
|
|
228
|
-
border: 1px solid ${X(le)};
|
|
229
|
-
color: ${A(de)};
|
|
230
|
-
}
|
|
231
|
-
`,ge=n.css`
|
|
232
|
-
:host([appearance='secondary-teal']) {
|
|
233
|
-
background: ${K(le)};
|
|
234
|
-
border: 1px solid ${O.teal};
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
:host([appearance='secondary-teal']:hover) {
|
|
238
|
-
background: ${O.teal};
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
:host([appearance='secondary-teal']:active) {
|
|
242
|
-
background: ${K(ce)};
|
|
243
|
-
border: 1px solid ${K(le)};
|
|
244
|
-
color: ${A(de)};
|
|
245
|
-
}
|
|
246
|
-
`,ve=n.css`
|
|
247
|
-
:host([appearance='neutral-grey']) {
|
|
248
|
-
background: ${g.neutralFillRest};
|
|
249
|
-
border: 1px solid ${g.neutralStrokeRest};
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
:host([appearance='neutral-grey']:hover) {
|
|
253
|
-
background: ${g.neutralFillHover};
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
:host([appearance='neutral-grey']:active) {
|
|
257
|
-
background: ${g.neutralFillActive};
|
|
258
|
-
border: 1px solid ${g.neutralStrokeActive};
|
|
259
|
-
color: ${g.neutralForegroundRest};
|
|
260
|
-
}
|
|
261
|
-
`,be=n.css`
|
|
262
|
-
:host {
|
|
263
|
-
--primary-gradient-angle: -113.5deg;
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
:host([appearance='outline-primary-gradient']) {
|
|
267
|
-
background: linear-gradient(
|
|
268
|
-
var(--primary-gradient-angle),
|
|
269
|
-
${S.blue} 0%,
|
|
270
|
-
${S.purple} 100%
|
|
271
|
-
)
|
|
272
|
-
top/100% 1px,
|
|
273
|
-
linear-gradient(
|
|
274
|
-
var(--primary-gradient-angle),
|
|
275
|
-
${S.blue} 0%,
|
|
276
|
-
${S.purple} 100%
|
|
277
|
-
)
|
|
278
|
-
bottom/100% 1px;
|
|
279
|
-
background-origin: border-box;
|
|
280
|
-
background-repeat: no-repeat;
|
|
281
|
-
border: 1px solid transparent;
|
|
282
|
-
border-right-color: ${S.blue};
|
|
283
|
-
border-left-color: ${S.purple};
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
:host([appearance='outline-primary-gradient']:hover) {
|
|
287
|
-
background: unset;
|
|
288
|
-
background-repeat: unset;
|
|
289
|
-
background-image: linear-gradient(
|
|
290
|
-
var(--primary-gradient-angle),
|
|
291
|
-
${S.blue},
|
|
292
|
-
${S.purple}
|
|
293
|
-
);
|
|
294
|
-
background-origin: border-box;
|
|
295
|
-
box-shadow: 1px 1000px 1px rgb(0 0 0 / 50%) inset;
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
:host([appearance='outline-primary-gradient']:active) {
|
|
299
|
-
box-shadow: unset;
|
|
300
|
-
background: linear-gradient(
|
|
301
|
-
var(--primary-gradient-angle),
|
|
302
|
-
${G(le)} 0%,
|
|
303
|
-
${W(le)} 100%
|
|
304
|
-
)
|
|
305
|
-
top/100% 1px,
|
|
306
|
-
linear-gradient(
|
|
307
|
-
var(--primary-gradient-angle),
|
|
308
|
-
${G(le)} 0%,
|
|
309
|
-
${W(le)} 100%
|
|
310
|
-
)
|
|
311
|
-
bottom/100% 1px;
|
|
312
|
-
background-origin: border-box;
|
|
313
|
-
background-repeat: no-repeat;
|
|
314
|
-
border: 1px solid transparent;
|
|
315
|
-
border-right-color: ${G(le)};
|
|
316
|
-
border-left-color: ${W(le)};
|
|
317
|
-
color: ${A(de)};
|
|
318
|
-
}
|
|
319
|
-
`,fe=n.css`
|
|
320
|
-
:host([appearance='outline-secondary-orange']) {
|
|
321
|
-
background: transparent;
|
|
322
|
-
border: 1px solid ${O.orange};
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
:host([appearance='outline-secondary-orange']:hover) {
|
|
326
|
-
background: ${X(le)};
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
:host([appearance='outline-secondary-orange']:active) {
|
|
330
|
-
background: transparent;
|
|
331
|
-
border: 1px solid ${X(le)};
|
|
332
|
-
color: ${A(de)};
|
|
333
|
-
}
|
|
334
|
-
`,ye=n.css`
|
|
335
|
-
:host([appearance='outline-secondary-teal']) {
|
|
336
|
-
background: transparent;
|
|
337
|
-
border: 1px solid ${O.teal};
|
|
338
|
-
}
|
|
339
|
-
|
|
340
|
-
:host([appearance='outline-secondary-teal']:hover) {
|
|
341
|
-
background: ${K(le)};
|
|
342
|
-
}
|
|
343
|
-
|
|
344
|
-
:host([appearance='outline-secondary-teal']:active) {
|
|
345
|
-
background: transparent;
|
|
346
|
-
border: 1px solid ${K(le)};
|
|
347
|
-
color: ${A(de)};
|
|
348
|
-
}
|
|
349
|
-
`,xe=(e,t)=>n.css`
|
|
350
|
-
${F(e,t)}
|
|
351
|
-
${n.css`
|
|
352
|
-
:host {
|
|
353
|
-
margin: 5px;
|
|
354
|
-
}
|
|
355
|
-
`}
|
|
356
|
-
`.withBehaviors(se("primary-blue",pe),se("primary-purple",ue),se("primary-gradient",he),se("secondary-orange",me),se("secondary-teal",ge),se("neutral-grey",ve),se("outline-primary-gradient",be),se("outline-secondary-orange",fe),se("outline-secondary-teal",ye)),$e=(e,t)=>n.css`
|
|
357
|
-
${f(e,t)}
|
|
358
|
-
${xe(e,t)}
|
|
359
|
-
`.withBehaviors(...xe(e,t).behaviors);class we extends y{}const Fe=we.compose(Object.assign({baseName:"anchor",template:w,styles:$e,shadowOptions:x},$));var ke=o(7631);const Se=(e,t)=>(0,ke.Z)(e,t),Oe=(e,t)=>n.css`
|
|
360
|
-
${(0,g.badgeStyles)(e,t)}
|
|
361
|
-
`;class De extends g.Badge{}const ze=void 0,_e={},Ce=(De.compose(Object.assign({baseName:"badge",template:Se,styles:Oe,shadowOptions:ze},_e)),(e,t)=>Se(e,t)),Ne=(e,t)=>n.css`
|
|
362
|
-
${Oe(e,t)}
|
|
363
|
-
:host {
|
|
364
|
-
--badge-fill-primary: ${G()};
|
|
365
|
-
--badge-fill-secondary: ${K()};
|
|
366
|
-
--badge-fill-pink: ${ie()};
|
|
367
|
-
--badge-fill-transparent: transparent;
|
|
368
|
-
--badge-color-black: #000;
|
|
369
|
-
--badge-color-white: #fff;
|
|
370
|
-
}
|
|
371
|
-
|
|
372
|
-
:host .control {
|
|
373
|
-
padding: calc(${g.designUnit} * 1px) calc(${g.designUnit} * 2px);
|
|
374
|
-
}
|
|
375
|
-
`;class Le extends De{}const Ae=Le.compose(Object.assign({baseName:"badge",template:Ce,styles:Ne,shadowOptions:ze},_e)),Re=n.css`
|
|
376
|
-
@keyframes delete-animate {
|
|
377
|
-
from {
|
|
378
|
-
height: 100px;
|
|
379
|
-
opacity: 100%;
|
|
380
|
-
}
|
|
381
|
-
|
|
382
|
-
to {
|
|
383
|
-
height: 0;
|
|
384
|
-
opacity: 0%;
|
|
385
|
-
}
|
|
386
|
-
}
|
|
387
|
-
|
|
388
|
-
@keyframes append-animate {
|
|
389
|
-
from {
|
|
390
|
-
height: 0;
|
|
391
|
-
opacity: 0%;
|
|
392
|
-
}
|
|
393
|
-
|
|
394
|
-
to {
|
|
395
|
-
height: var(--banner-height);
|
|
396
|
-
opacity: 100%;
|
|
397
|
-
}
|
|
398
|
-
}
|
|
399
|
-
|
|
400
|
-
:host {
|
|
401
|
-
--banner-width: 100%;
|
|
402
|
-
--banner-height: 65px;
|
|
403
|
-
--flow: row;
|
|
404
|
-
}
|
|
405
|
-
|
|
406
|
-
@media screen and (max-width: 640px) {
|
|
407
|
-
:host {
|
|
408
|
-
--flow: column;
|
|
409
|
-
--banner-height: 100px;
|
|
410
|
-
}
|
|
411
|
-
}
|
|
412
|
-
|
|
413
|
-
.banner {
|
|
414
|
-
animation: append-animate 0.3s linear;
|
|
415
|
-
width: var(--banner-width);
|
|
416
|
-
height: var(--banner-height);
|
|
417
|
-
background-color: var(--fill-color);
|
|
418
|
-
display: flex;
|
|
419
|
-
flex-direction: var(--flow);
|
|
420
|
-
padding: 5px 8px;
|
|
421
|
-
box-sizing: border-box;
|
|
422
|
-
overflow: hidden;
|
|
423
|
-
}
|
|
424
|
-
|
|
425
|
-
.banner-delete {
|
|
426
|
-
animation: delete-animate 0.3s linear;
|
|
427
|
-
opacity: 0%;
|
|
428
|
-
}
|
|
429
|
-
|
|
430
|
-
.content {
|
|
431
|
-
display: flex;
|
|
432
|
-
align-items: center;
|
|
433
|
-
flex: 2;
|
|
434
|
-
font-size: 12px;
|
|
435
|
-
overflow: hidden;
|
|
436
|
-
}
|
|
437
|
-
|
|
438
|
-
.action {
|
|
439
|
-
display: flex;
|
|
440
|
-
flex-direction: row-reverse;
|
|
441
|
-
align-items: center;
|
|
442
|
-
gap: 10px;
|
|
443
|
-
flex: 1;
|
|
444
|
-
overflow: hidden;
|
|
445
|
-
}
|
|
446
|
-
`,Me=n.html`
|
|
447
|
-
<div class="banner ${e=>e.dismissAnimation}" ${(0,n.ref)("banner")}>
|
|
448
|
-
<div part="content" class="content">
|
|
449
|
-
<slot name="content"></slot>
|
|
450
|
-
</div>
|
|
451
|
-
<div part="action" class="action">
|
|
452
|
-
<slot name="action" class="action"></slot>
|
|
453
|
-
</div>
|
|
454
|
-
</div>
|
|
455
|
-
`,Te={mode:"open",delegatesFocus:!0};class Ie extends s.I{constructor(){super(...arguments),this.dismissAnimation=""}connectedCallback(){super.connectedCallback()}dismiss(){return this.dismissAnimation="banner-delete",new Promise((e=>{this.banner.onanimationend=()=>{this.remove(),e()}}))}}(0,i.__decorate)([n.observable],Ie.prototype,"dismissAnimation",void 0);Ie.compose({baseName:"banner",styles:Re,template:Me,shadowOptions:Te});const Ee=n.css`
|
|
456
|
-
${Re}
|
|
457
|
-
.banner {
|
|
458
|
-
background-color: ${g.neutralLayer1};
|
|
459
|
-
}
|
|
460
|
-
`,He=Te;class je extends Ie{}const Pe=je.compose({baseName:"banner",shadowOptions:He,styles:Ee,template:Me});var Be=o(1553);const Ge=(e,t)=>(0,Be.Y)(e,t),Ve=(e,t)=>n.css`
|
|
461
|
-
${(0,g.breadcrumbItemStyles)(e,t)}
|
|
462
|
-
`;class Ue extends g.BreadcrumbItem{}const Ye=void 0,We={separator:"/"},qe=(Ue.compose(Object.assign({baseName:"breadcrumb-item",template:Ge,styles:Ve,shadowOptions:Ye},We)),(e,t)=>Ge(e,t)),Xe=(e,t)=>n.css`
|
|
463
|
-
${Ve(e,t)}
|
|
464
|
-
:host {
|
|
465
|
-
--neutral-foreground-rest: #18b2e3;
|
|
466
|
-
--accent-foreground-rest: #f1f1f1;
|
|
467
|
-
--accent-foreground-hover: #f1f1f1;
|
|
468
|
-
}
|
|
469
|
-
|
|
470
|
-
.separator {
|
|
471
|
-
color: var(--neutral-stroke-rest);
|
|
472
|
-
}
|
|
473
|
-
`;class Ze extends Ue{}const Ke=Ze.compose(Object.assign({baseName:"breadcrumb-item",template:qe,styles:Xe,shadowOptions:Ye},We));var Je=o(2574);const Qe=(e,t)=>(0,Je.D)(e,t),et=(e,t)=>n.css`
|
|
474
|
-
${(0,g.breadcrumbStyles)(e,t)}
|
|
475
|
-
`;class tt extends g.Breadcrumb{}tt.compose(Object.assign({baseName:"breadcrumb",template:Qe,styles:et,shadowOptions:undefined},{}));const ot=(e,t)=>Qe(e,t),at=(e,t)=>n.css`
|
|
476
|
-
${et(e,t)}
|
|
477
|
-
`;class rt extends tt{}const it=void 0,nt={},st=rt.compose(Object.assign({baseName:"breadcrumb",template:ot,styles:at,shadowOptions:it},nt));var lt=o(5539);const ct=(e,t)=>(0,lt.u)(e,t);class dt extends g.Button{}const pt={delegatesFocus:!0,mode:"open"},ut={},ht=(dt.compose(Object.assign({baseName:"button",template:ct,styles:F,shadowOptions:pt},ut)),(e,t)=>ct(e,t));class mt extends dt{}const gt=mt.compose(Object.assign({baseName:"button",template:ht,styles:xe,shadowOptions:pt},ut));var vt=o(5582);const bt=(e,t)=>(0,vt.O)(e,t),ft=(e,t)=>n.css`
|
|
478
|
-
${(0,g.cardStyles)(e,t)}
|
|
479
|
-
:host {
|
|
480
|
-
background-color: var(--fui-card-fill-color);
|
|
481
|
-
color: var(--fui-card-foreground-color);
|
|
482
|
-
}
|
|
483
|
-
`;class yt extends g.Card{}const xt=void 0,$t={},wt=(yt.compose(Object.assign({baseName:"card",template:bt,styles:ft,shadowOptions:xt},$t)),(e,t)=>bt(e,t)),Ft=(e,t)=>n.css`
|
|
484
|
-
${ft(e,t)}
|
|
485
|
-
:host {
|
|
486
|
-
background-color: var(--zero-card-fill-color, var(--neutral-layer-2));
|
|
487
|
-
color: ${g.neutralForegroundRest};
|
|
488
|
-
}
|
|
489
|
-
`;class kt extends yt{}const St=kt.compose(Object.assign({baseName:"card",template:wt,styles:Ft,shadowOptions:xt},$t));var Ot=o(1070);const Dt=(e,t)=>(0,Ot.X)(e,t),zt=(e,t)=>n.css`
|
|
490
|
-
${(0,g.checkboxStyles)(e,t)}
|
|
491
|
-
`;class _t extends g.Checkbox{}const Ct=void 0,Nt={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 '},Lt=(_t.compose(Object.assign({baseName:"checkbox",template:Dt,styles:zt,shadowOptions:Ct},Nt)),(e,t)=>Dt(e,t)),At=(e,t)=>n.css`
|
|
492
|
-
${zt(e,t)}
|
|
493
|
-
:host {
|
|
494
|
-
--primary-gradient-angle: -113.5deg;
|
|
495
|
-
--foreground-on-accent-rest: ${k.white};
|
|
496
|
-
--foreground-on-accent-hover: ${k.white};
|
|
497
|
-
--neutral-stroke-hover: ${k.white};
|
|
498
|
-
--foreground-on-accent-active: ${k.white};
|
|
499
|
-
}
|
|
500
|
-
|
|
501
|
-
.checked-indicator {
|
|
502
|
-
background-image: linear-gradient(
|
|
503
|
-
var(--primary-gradient-angle),
|
|
504
|
-
${S.blue},
|
|
505
|
-
${S.purple}
|
|
506
|
-
);
|
|
507
|
-
background-origin: border-box;
|
|
508
|
-
box-shadow: 2px 1000px 1px rgb(0 0 0 / 20%) inset;
|
|
509
|
-
border-radius: calc(var(--control-corner-radius) * 1px);
|
|
510
|
-
}
|
|
511
|
-
`;class Rt extends _t{}const Mt=Rt.compose(Object.assign({baseName:"checkbox",template:Lt,styles:At,shadowOptions:Ct},Nt));var Tt=o(8609);const It=(e,t)=>(0,Tt.M)(e,t),Et=(e,t)=>n.css`
|
|
512
|
-
${(0,g.comboboxStyles)(e,t)}
|
|
513
|
-
`;class Ht extends g.Combobox{}const jt=void 0,Pt={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 '},Bt=(Ht.compose(Object.assign({baseName:"combobox",template:It,styles:Et,shadowOptions:jt},Pt)),(e,t)=>It(e,t)),Gt=(0,_.in)("#F1F1F1"),Vt=N(Gt,1),Ut=(0,_.in)("#879BA6"),Yt=N(Ut,.06),Wt=(0,_.in)("#879BA6"),qt=N(Wt,1),Xt=(0,_.in)("#121212"),Zt=N(Xt,1),Kt=(0,_.in)("#2e3339"),Jt=N(Kt,1);var Qt;!function(e){e.PrimaryBlue="primary-blue",e.PrimaryPurple="primary-purple",e.PrimaryGradient="primary-gradient",e.SecondaryOrange="secondary-orange",e.SecondaryTeal="secondary-teal",e.NeutralGrey="neutral-grey",e.OutlinePrimaryGradient="outline-primary-gradient",e.OutlineSecondaryOrange="outline-secondary-orange",e.OutlineSecondaryTeal="outline-secondary-teal"}(Qt||(Qt={}));const eo=["accent","lightweight","neutral","outline","stealth"],to=Object.values(Qt),oo=(e,t)=>n.css`
|
|
514
|
-
${Et(e,t)}
|
|
515
|
-
:host {
|
|
516
|
-
--primary-gradient-angle: -113.5deg;
|
|
517
|
-
|
|
518
|
-
border-radius: calc(var(--control-corner-radius) * 1px);
|
|
519
|
-
border-color: ${Jt};
|
|
520
|
-
background: ${Yt};
|
|
521
|
-
}
|
|
522
|
-
|
|
523
|
-
:host(:focus-within:not([disabled])) {
|
|
524
|
-
background: linear-gradient(
|
|
525
|
-
var(--primary-gradient-angle),
|
|
526
|
-
${S.blue} 0%,
|
|
527
|
-
${S.purple} 100%
|
|
528
|
-
)
|
|
529
|
-
top/100% 1px,
|
|
530
|
-
linear-gradient(
|
|
531
|
-
var(--primary-gradient-angle),
|
|
532
|
-
${S.blue} 0%,
|
|
533
|
-
${S.purple} 100%
|
|
534
|
-
)
|
|
535
|
-
bottom/100% 1px;
|
|
536
|
-
background-origin: border-box;
|
|
537
|
-
background-repeat: no-repeat;
|
|
538
|
-
border: 1px solid transparent;
|
|
539
|
-
border-right-color: ${S.blue};
|
|
540
|
-
border-left-color: ${S.purple};
|
|
541
|
-
}
|
|
542
|
-
|
|
543
|
-
:host(:hover:not([disabled]):not([open])) {
|
|
544
|
-
border-color: ${Vt};
|
|
545
|
-
background: ${Yt};
|
|
546
|
-
}
|
|
547
|
-
|
|
548
|
-
:host([open][position='below']) .listbox {
|
|
549
|
-
padding: 0;
|
|
550
|
-
margin-top: calc(${g.designUnit} * 1px);
|
|
551
|
-
border-radius: 4px;
|
|
552
|
-
border: 1px solid ${k.lightGrey};
|
|
553
|
-
}
|
|
554
|
-
|
|
555
|
-
:host([open]) .control {
|
|
556
|
-
background: ${Zt};
|
|
557
|
-
}
|
|
558
|
-
|
|
559
|
-
:host(:not([disabled])) .control:active {
|
|
560
|
-
background: none;
|
|
561
|
-
}
|
|
562
|
-
`;class ao extends Ht{}const ro=ao.compose(Object.assign({baseName:"combobox",template:Bt,styles:oo,shadowOptions:jt},Pt));var io=o(2140);const no=(e,t)=>n.css`
|
|
563
|
-
:host {
|
|
564
|
-
--light-size: 12px;
|
|
565
|
-
--height: calc(var(--design-unit) * 2px + var(--light-size));
|
|
566
|
-
|
|
567
|
-
display: flex;
|
|
568
|
-
justify-content: center;
|
|
569
|
-
align-items: center;
|
|
570
|
-
width: 100%;
|
|
571
|
-
height: var(--height);
|
|
572
|
-
margin: calc(var(--design-unit) * 2px) 0;
|
|
573
|
-
|
|
574
|
-
/* https://www.colorxs.com/color/traffic-light-green-2032-20 */
|
|
575
|
-
--green: 50 164 49;
|
|
576
|
-
--trafic-light-green: rgb(var(--green));
|
|
577
|
-
--trafic-light-green-glow:
|
|
578
|
-
rgb(var(--green) / 40%) 0 0 4px 4px,
|
|
579
|
-
rgb(var(--green) / 20%) 0 0 8px 8px;
|
|
580
|
-
|
|
581
|
-
/* https://www.colorxs.com/color/ral-3020-traffic-red */
|
|
582
|
-
--red: 187 30 16;
|
|
583
|
-
--trafic-light-red: rgb(var(--red));
|
|
584
|
-
--trafic-light-red-glow:
|
|
585
|
-
rgb(var(--red) / 40%) 0 0 4px 4px,
|
|
586
|
-
rgb(var(--red) / 20%) 0 0 8px 8px;
|
|
587
|
-
}
|
|
588
|
-
|
|
589
|
-
.light {
|
|
590
|
-
height: var(--light-size);
|
|
591
|
-
width: var(--light-size);
|
|
592
|
-
margin: 1rem;
|
|
593
|
-
border-radius: 100%;
|
|
594
|
-
}
|
|
595
|
-
|
|
596
|
-
.green {
|
|
597
|
-
background: var(--trafic-light-green);
|
|
598
|
-
box-shadow: var(--trafic-light-green-glow);
|
|
599
|
-
}
|
|
600
|
-
|
|
601
|
-
.red {
|
|
602
|
-
background: var(--trafic-light-red);
|
|
603
|
-
box-shadow: var(--trafic-light-red-glow);
|
|
604
|
-
}
|
|
605
|
-
|
|
606
|
-
.label {
|
|
607
|
-
font-family: 'Courier New', Courier, monospace;
|
|
608
|
-
font-size: small;
|
|
609
|
-
color: grey;
|
|
610
|
-
overflow: hidden;
|
|
611
|
-
text-overflow: ellipsis;
|
|
612
|
-
white-space: nowrap;
|
|
613
|
-
}
|
|
614
|
-
`,so=n.html`
|
|
615
|
-
<div class=${e=>(0,l.A)(["light",!0],[e.colour,!0])}></div>
|
|
616
|
-
${(0,n.when)((e=>e.showLabel),n.html`
|
|
617
|
-
<div class="label">${e=>e.label}</div>
|
|
618
|
-
`)}
|
|
619
|
-
`;class lo extends s.I{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,i.__decorate)([io.Connect],lo.prototype,"connect",void 0),(0,i.__decorate)([io.Session],lo.prototype,"session",void 0),(0,i.__decorate)([(0,n.attr)({mode:"boolean",attribute:"show-label"})],lo.prototype,"showLabel",void 0),(0,i.__decorate)([n.observable],lo.prototype,"label",void 0),(0,i.__decorate)([n.observable],lo.prototype,"colour",void 0);lo.compose({baseName:"connection-indicator",template:so,styles:no});const co=class extends lo{}.compose({baseName:"connection-indicator",template:so,styles:no});var po=o(5663);const uo=(e,t)=>n.css`
|
|
620
|
-
${(0,g.dataGridCellStyles)(e,t)}
|
|
621
|
-
`;class ho extends g.DataGridCell{}const mo=void 0,go={};ho.compose(Object.assign({baseName:"data-grid-cell",template:po.c,styles:uo,shadowOptions:mo},go));var vo=o(1263);const bo=(e,t)=>n.css`
|
|
622
|
-
${(0,g.dataGridRowStyles)(e,t)}
|
|
623
|
-
`;class fo extends g.DataGridRow{}const yo=void 0,xo={},$o=(fo.compose(Object.assign({baseName:"data-grid-row",template:vo.f,styles:bo,shadowOptions:yo},xo)),(e,t)=>n.css`
|
|
624
|
-
${(0,g.dataGridStyles)(e,t)}
|
|
625
|
-
`);var wo=o(5996);const Fo=(e,t)=>(0,wo.c)(e,t);class ko extends g.DataGrid{}const So=void 0,Oo={},Do=(ko.compose(Object.assign({baseName:"data-grid",template:Fo,styles:$o,shadowOptions:So},Oo)),(e,t)=>n.css`
|
|
626
|
-
${$o(e,t)}
|
|
627
|
-
::slotted(.sticky-header),
|
|
628
|
-
::slotted(.header) {
|
|
629
|
-
border-bottom-color: var(--neutral-color);
|
|
630
|
-
|
|
631
|
-
--neutral-foreground-rest: ${qt};
|
|
632
|
-
}
|
|
633
|
-
|
|
634
|
-
::slotted([role='row']) {
|
|
635
|
-
background-color: #1f2126;
|
|
636
|
-
}
|
|
637
|
-
`),zo=(e,t)=>Fo(e,t),_o=(e,t)=>n.css`
|
|
638
|
-
${bo(e,t)}
|
|
639
|
-
`,Co=(e,t)=>n.css`
|
|
640
|
-
${uo(e,t)}
|
|
641
|
-
`;class No extends ho{}const Lo=No.compose(Object.assign({baseName:"data-grid-cell",template:po.c,styles:Co,shadowOptions:mo},go));class Ao extends fo{}const Ro=Ao.compose(Object.assign({baseName:"data-grid-row",template:vo.f,styles:_o,shadowOptions:yo},xo));class Mo extends ko{}const To=Mo.compose(Object.assign({baseName:"data-grid",template:zo,styles:Do,shadowOptions:So},Oo)),Io=(e,t,o)=>{const a=o?(e,t)=>e.setValueFor(o,t):(e,t)=>e.withDefault(t);Object.keys(e).forEach((o=>{const r=`${o}Value`;t[r]&&a(e[o],t[r])}))};function Eo(e){return(t,o)=>{t[o+"Changed"]=function(t,o){null!=o?e.setValueFor(this,o):e.deleteValueFor(this)}}}const Ho={toView:e=>null==e?null:null==e?void 0:e.toColorString(),fromView(e){if(null==e)return null;const t=(0,_.in)(e);return t?g.SwatchRGB.create(t.r,t.g,t.b):null}},jo=e=>g.PaletteRGB.from(g.SwatchRGB.from((0,_.in)(e)));var Po=o(7981),Bo=o(4925),Go=o(3384),Vo=o(1113);const Uo="\n @import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap')\n",Yo=()=>{(0,Po.loadFontFaces)(Uo,"roboto-font-faces")},Wo='Roboto, "Segoe UI", Arial, Helvetica, sans-serif;',qo=(e=Po.FontStyle.Normal,t=Po.FontWeight.Regular)=>(0,Po.getFontMixin)(Wo,e,t);Yo();const Xo=n.css`
|
|
642
|
-
${(0,Bo.j)("flex")}
|
|
643
|
-
:host {
|
|
644
|
-
flex: 1;
|
|
645
|
-
}
|
|
646
|
-
`,Zo=n.css`
|
|
647
|
-
:host {
|
|
648
|
-
background-color: ${g.neutralFillStealthActive};
|
|
649
|
-
}
|
|
650
|
-
`.withBehaviors((0,Go.vF)(n.css`
|
|
651
|
-
:host {
|
|
652
|
-
background-color: ${Vo.H.ButtonFace};
|
|
653
|
-
box-shadow: 0 0 0 1px ${Vo.H.CanvasText};
|
|
654
|
-
color: ${Vo.H.ButtonText};
|
|
655
|
-
}
|
|
656
|
-
`)),Ko=(e,t,o)=>n.css`
|
|
657
|
-
${e.name} ${"h"+t} {
|
|
658
|
-
font-size: var(--type-ramp-plus-${o}-font-size);
|
|
659
|
-
line-height: var(--type-ramp-plus-${o}-line-height);
|
|
660
|
-
margin: 0;
|
|
661
|
-
${qo(Po.FontStyle.Normal,Po.FontWeight.Bold)}
|
|
662
|
-
}
|
|
663
|
-
`,Jo=e=>{const t=(e=>n.css`
|
|
664
|
-
:host {
|
|
665
|
-
color: ${g.neutralForegroundRest};
|
|
666
|
-
${qo()}
|
|
667
|
-
}
|
|
668
|
-
|
|
669
|
-
${Ko(e,"1","6")}
|
|
670
|
-
${Ko(e,"2","5")}
|
|
671
|
-
${Ko(e,"3","4")}
|
|
672
|
-
${Ko(e,"4","3")}
|
|
673
|
-
${Ko(e,"5","2")}
|
|
674
|
-
${Ko(e,"6","1")}
|
|
675
|
-
`)(e);return t.addStylesTo(document),n.css`
|
|
676
|
-
${Xo}
|
|
677
|
-
${Zo}
|
|
678
|
-
${t}
|
|
679
|
-
`};var Qo=o(6718);const{create:ea}=Qo.L,ta=ea("body-font").withDefault(Wo),oa=jo(S.blue),aa=jo(D.grey),ra=g.StandardLuminance.DarkMode;const ia=o(5699).N.ltr,na=4,sa=4,la=Wo;class ca extends g.DesignSystemProvider{constructor(){super(),Io(a,r,this)}}(0,i.__decorate)([(0,n.attr)({attribute:"card-fill-color",converter:Ho}),Eo(g.neutralFillStealthRest)],ca.prototype,"cardFillColor",void 0),(0,i.__decorate)([(0,n.attr)({attribute:"card-foreground-color",converter:Ho}),Eo(g.neutralForegroundRest)],ca.prototype,"cardForegroundColor",void 0);const da=ca.compose({baseName:"design-system-provider",template:n.html`
|
|
680
|
-
<slot></slot>
|
|
681
|
-
`,styles:Jo});var pa=o(8090);const ua=n.css`
|
|
682
|
-
.close-icon {
|
|
683
|
-
position: absolute;
|
|
684
|
-
right: calc(var(--design-unit) * 2px);
|
|
685
|
-
top: calc(var(--design-unit) * 2px);
|
|
686
|
-
cursor: pointer;
|
|
687
|
-
}
|
|
688
|
-
|
|
689
|
-
.close-icon svg {
|
|
690
|
-
border-radius: calc(var(--control-corner-radius) * 1px);
|
|
691
|
-
padding: calc(var(--design-unit) * 2px);
|
|
692
|
-
}
|
|
693
|
-
|
|
694
|
-
dialog {
|
|
695
|
-
background-color: var(--dialog-background, var(--fill-color));
|
|
696
|
-
padding: calc(var(--design-unit) * 2px) calc(var(--design-unit) * 4px)
|
|
697
|
-
calc(var(--design-unit) * 4px);
|
|
698
|
-
overflow: inherit;
|
|
699
|
-
}
|
|
700
|
-
|
|
701
|
-
:host([position='right']) dialog .content-wrapper,
|
|
702
|
-
:host([position='left']) dialog .content-wrapper,
|
|
703
|
-
:host([position='left']) dialog,
|
|
704
|
-
:host([position='right']) dialog {
|
|
705
|
-
height: 100%;
|
|
706
|
-
}
|
|
707
|
-
|
|
708
|
-
:host([position='left']) dialog {
|
|
709
|
-
margin-left: 0;
|
|
710
|
-
}
|
|
711
|
-
|
|
712
|
-
:host([position='right']) dialog {
|
|
713
|
-
margin-right: 0;
|
|
714
|
-
}
|
|
715
|
-
|
|
716
|
-
::slotted(zero-divider) {
|
|
717
|
-
width: 100%;
|
|
718
|
-
}
|
|
719
|
-
`,ha=(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`,ma=n.html`
|
|
720
|
-
<dialog ${(0,n.ref)("mainElement")}>
|
|
721
|
-
<div class="content-wrapper">
|
|
722
|
-
<div part="top" class="top">
|
|
723
|
-
<slot name="top"></slot>
|
|
724
|
-
${(0,n.when)((e=>e.showCloseIcon),n.html`
|
|
725
|
-
<div class="close-icon" @click=${e=>e.close()}>${ha()}</div>
|
|
726
|
-
`)}
|
|
727
|
-
</div>
|
|
728
|
-
<slot></slot>
|
|
729
|
-
<div part="bottom" class="bottom">
|
|
730
|
-
<slot name="bottom"></slot>
|
|
731
|
-
</div>
|
|
732
|
-
</div>
|
|
733
|
-
</dialog>
|
|
734
|
-
`,ga={mode:"open",delegatesFocus:!0},va={};class ba extends s.I{constructor(){super(...arguments),this.position="centre",this.showCloseIcon=!0}connectedCallback(){super.connectedCallback(),window.HTMLDialogElement||pa.Z.registerDialog(this.mainElement),this.mainElement.addEventListener("close",(()=>{this.onCloseCallback&&this.onCloseCallback()}))}get open(){return this.mainElement.hasAttribute("open")}close(){this.mainElement.close()}}(0,i.__decorate)([n.attr],ba.prototype,"position",void 0),(0,i.__decorate)([(0,n.attr)({mode:"boolean",attribute:"show-close-icon"})],ba.prototype,"showCloseIcon",void 0),(0,i.__decorate)([n.observable],ba.prototype,"onShowCallback",void 0),(0,i.__decorate)([n.observable],ba.prototype,"onCloseCallback",void 0),(0,i.__decorate)([n.volatile],ba.prototype,"open",null);class fa extends ba{show(){this.onShowCallback&&this.onShowCallback(),this.mainElement.show()}}fa.compose(Object.assign({baseName:"dialog",styles:ua,template:ma,shadowOptions:ga},va));const ya=(0,_.in)("#121212"),xa=N(ya,1),$a=n.css`
|
|
735
|
-
${ua}
|
|
736
|
-
:host {
|
|
737
|
-
--dialog-background: ${g.neutralLayer2};
|
|
738
|
-
}
|
|
739
|
-
|
|
740
|
-
dialog {
|
|
741
|
-
position: fixed;
|
|
742
|
-
top: 0;
|
|
743
|
-
bottom: 0;
|
|
744
|
-
color: rgb(255 255 255 / 30%);
|
|
745
|
-
border-radius: calc(var(--control-corner-radius) * 1px);
|
|
746
|
-
border: 1px solid ${k.lightGrey};
|
|
747
|
-
text-align: left;
|
|
748
|
-
line-height: normal;
|
|
749
|
-
box-shadow: 0 2px 15px 0 rgb(0 0 0 / 35%);
|
|
750
|
-
}
|
|
751
|
-
|
|
752
|
-
.top {
|
|
753
|
-
display: flex;
|
|
754
|
-
align-items: center;
|
|
755
|
-
justify-content: space-between;
|
|
756
|
-
color: ${k.almostWhite};
|
|
757
|
-
margin-bottom: calc(var(--design-unit) * 2px);
|
|
758
|
-
}
|
|
759
|
-
|
|
760
|
-
.bottom {
|
|
761
|
-
display: flex;
|
|
762
|
-
flex-wrap: wrap;
|
|
763
|
-
justify-content: flex-end;
|
|
764
|
-
color: ${k.almostWhite};
|
|
765
|
-
}
|
|
766
|
-
|
|
767
|
-
:host slot:first-of-type {
|
|
768
|
-
color: ${g.neutralForegroundRest};
|
|
769
|
-
}
|
|
770
|
-
|
|
771
|
-
::slotted(zero-button) {
|
|
772
|
-
margin-top: calc(var(--design-unit) * 4px - 1px);
|
|
773
|
-
}
|
|
774
|
-
|
|
775
|
-
.content-wrapper {
|
|
776
|
-
min-width: var(--dialog-min-width);
|
|
777
|
-
min-height: var(--dialog-min-height);
|
|
778
|
-
height: fit-content;
|
|
779
|
-
width: fit-content;
|
|
780
|
-
max-width: var(--dialog-max-width);
|
|
781
|
-
max-height: var(--dialog-max-height);
|
|
782
|
-
display: flex;
|
|
783
|
-
flex-direction: column;
|
|
784
|
-
justify-content: space-between;
|
|
785
|
-
align-items: stretch;
|
|
786
|
-
}
|
|
787
|
-
|
|
788
|
-
.close-icon:hover svg {
|
|
789
|
-
background-color: ${A(.05)};
|
|
790
|
-
}
|
|
791
|
-
|
|
792
|
-
.close-icon:hover svg g path {
|
|
793
|
-
fill: ${A(1)};
|
|
794
|
-
}
|
|
795
|
-
|
|
796
|
-
.close-icon:active svg {
|
|
797
|
-
background-color: ${xa};
|
|
798
|
-
}
|
|
799
|
-
|
|
800
|
-
.close-icon:active svg g path {
|
|
801
|
-
fill: ${A(.33)};
|
|
802
|
-
}
|
|
803
|
-
`,wa=va,Fa=ma,ka=ga;class Sa extends fa{}const Oa=Sa.compose(Object.assign({baseName:"dialog",shadowOptions:ka,styles:$a,template:Fa},wa));var Da=o(6436),za=o.n(Da);const _a=n.css`
|
|
804
|
-
:host {
|
|
805
|
-
position: relative;
|
|
806
|
-
}
|
|
807
|
-
|
|
808
|
-
.date-toggle {
|
|
809
|
-
padding: 0 0 0 15px;
|
|
810
|
-
border: none;
|
|
811
|
-
appearance: none;
|
|
812
|
-
background: #eee;
|
|
813
|
-
color: #333;
|
|
814
|
-
border-radius: calc(var(--control-corner-radius) * 1px);
|
|
815
|
-
cursor: pointer;
|
|
816
|
-
text-transform: capitalize;
|
|
817
|
-
}
|
|
818
|
-
|
|
819
|
-
.date-toggle zero-icon {
|
|
820
|
-
padding: 10px;
|
|
821
|
-
}
|
|
822
|
-
|
|
823
|
-
.calendar-dropdown {
|
|
824
|
-
display: none;
|
|
825
|
-
width: 300px;
|
|
826
|
-
z-index: 999;
|
|
827
|
-
position: absolute;
|
|
828
|
-
top: 100%;
|
|
829
|
-
left: 50%;
|
|
830
|
-
transform: translate(-50%, 8px);
|
|
831
|
-
margin: 10px 0 0;
|
|
832
|
-
padding: 20px;
|
|
833
|
-
background: var(--neutral-foreground-rest);
|
|
834
|
-
border-radius: calc(var(--control-corner-radius) * 1px);
|
|
835
|
-
box-shadow: 0 0 8px rgb(0 0 0 / 20%);
|
|
836
|
-
}
|
|
837
|
-
|
|
838
|
-
.calendar-dropdown.top {
|
|
839
|
-
top: auto;
|
|
840
|
-
bottom: 100%;
|
|
841
|
-
margin: 0 0 5px;
|
|
842
|
-
transform: translate(-50%, -8px);
|
|
843
|
-
}
|
|
844
|
-
|
|
845
|
-
.calendar-dropdown.left {
|
|
846
|
-
top: 50%;
|
|
847
|
-
left: 0;
|
|
848
|
-
margin: 0 0 0 5px;
|
|
849
|
-
transform: translate(calc(-8px + -100%), -50%);
|
|
850
|
-
}
|
|
851
|
-
|
|
852
|
-
.calendar-dropdown.right {
|
|
853
|
-
top: 50%;
|
|
854
|
-
left: 100%;
|
|
855
|
-
transform: translate(8px, -50%);
|
|
856
|
-
}
|
|
857
|
-
|
|
858
|
-
.calendar-dropdown.visible {
|
|
859
|
-
display: block;
|
|
860
|
-
}
|
|
861
|
-
|
|
862
|
-
.header {
|
|
863
|
-
display: flex;
|
|
864
|
-
justify-content: space-between;
|
|
865
|
-
align-items: center;
|
|
866
|
-
margin: 0 0 10px;
|
|
867
|
-
}
|
|
868
|
-
|
|
869
|
-
.header h3 {
|
|
870
|
-
margin: 0;
|
|
871
|
-
text-transform: capitalize;
|
|
872
|
-
font-weight: bold;
|
|
873
|
-
color: var(--foreground-on-accent-rest);
|
|
874
|
-
}
|
|
875
|
-
|
|
876
|
-
.header .months-arrows {
|
|
877
|
-
display: flex;
|
|
878
|
-
flex-direction: row;
|
|
879
|
-
}
|
|
880
|
-
|
|
881
|
-
.header .icon-container {
|
|
882
|
-
display: flex;
|
|
883
|
-
width: 25px;
|
|
884
|
-
height: 25px;
|
|
885
|
-
justify-content: center;
|
|
886
|
-
align-items: center;
|
|
887
|
-
cursor: pointer;
|
|
888
|
-
}
|
|
889
|
-
|
|
890
|
-
.header .icon-container:first-child {
|
|
891
|
-
margin-right: calc(var(--design-unit) * 2px);
|
|
892
|
-
}
|
|
893
|
-
|
|
894
|
-
.header .prev-month,
|
|
895
|
-
.header .next-month {
|
|
896
|
-
color: var(--foreground-on-accent-rest);
|
|
897
|
-
font-size: 18px;
|
|
898
|
-
}
|
|
899
|
-
|
|
900
|
-
.week-days {
|
|
901
|
-
display: grid;
|
|
902
|
-
grid-template-columns: repeat(7, 1fr);
|
|
903
|
-
grid-gap: 5px;
|
|
904
|
-
margin-bottom: 10px;
|
|
905
|
-
color: var(--foreground-on-accent-rest);
|
|
906
|
-
}
|
|
907
|
-
|
|
908
|
-
.week-days span {
|
|
909
|
-
display: flex;
|
|
910
|
-
justify-content: center;
|
|
911
|
-
align-items: center;
|
|
912
|
-
font-size: 14px;
|
|
913
|
-
font-weight: bold;
|
|
914
|
-
text-transform: capitalize;
|
|
915
|
-
}
|
|
916
|
-
|
|
917
|
-
.month-days {
|
|
918
|
-
display: grid;
|
|
919
|
-
grid-template-columns: repeat(7, 1fr);
|
|
920
|
-
grid-gap: 5px;
|
|
921
|
-
}
|
|
922
|
-
|
|
923
|
-
.month-day {
|
|
924
|
-
padding: 8px 5px;
|
|
925
|
-
color: #808080;
|
|
926
|
-
background: none;
|
|
927
|
-
display: flex;
|
|
928
|
-
justify-content: center;
|
|
929
|
-
align-items: center;
|
|
930
|
-
border-radius: calc(var(--control-corner-radius) * 4px);
|
|
931
|
-
cursor: pointer;
|
|
932
|
-
border: none;
|
|
933
|
-
}
|
|
934
|
-
|
|
935
|
-
.month-day.current {
|
|
936
|
-
opacity: 100%;
|
|
937
|
-
color: var(--foreground-on-accent-rest);
|
|
938
|
-
}
|
|
939
|
-
|
|
940
|
-
.month-day.selected {
|
|
941
|
-
background: var(--accent-foreground-rest);
|
|
942
|
-
color: var(--neutral-foreground-rest);
|
|
943
|
-
}
|
|
944
|
-
|
|
945
|
-
.month-day:hover {
|
|
946
|
-
background: var(--neutral-stroke-hover);
|
|
947
|
-
color: (--neutral-foreground-rest);
|
|
948
|
-
}
|
|
949
|
-
`,Ca=n.html`
|
|
950
|
-
<foundation-button type="button" class="date-toggle" ${(0,n.ref)("toggleButton")}>
|
|
951
|
-
${e=>e.formatDate}
|
|
952
|
-
<zero-icon variant="regular" name="calendar-alt"></zero-icon>
|
|
953
|
-
</foundation-button>
|
|
954
|
-
<div class="calendar-dropdown ${e=>e.calendarDropdownClasses} ${e=>e.position}">
|
|
955
|
-
<div class="header">
|
|
956
|
-
<h3>${e=>e.currentMonth} ${e=>e.currentYear}</h3>
|
|
957
|
-
<div class="months-arrows">
|
|
958
|
-
<div class="icon-container" ${(0,n.ref)("prevBtn")}>
|
|
959
|
-
<zero-icon name="angle-left" class="prev-month" aria-label="previous month"></zero-icon>
|
|
960
|
-
</div>
|
|
961
|
-
<div class="icon-container" ${(0,n.ref)("nextBtn")}>
|
|
962
|
-
<zero-icon name="angle-right" class="next-month" aria-label="next month"></zero-icon>
|
|
963
|
-
</div>
|
|
964
|
-
</div>
|
|
965
|
-
</div>
|
|
966
|
-
<div class="week-days">
|
|
967
|
-
${(0,n.repeat)((e=>e.calendar.weekDays),n.html`
|
|
968
|
-
<span>${(e,t)=>e.substring(0,t.parent.substringNumber)}</span>
|
|
969
|
-
`)}
|
|
970
|
-
</div>
|
|
971
|
-
<div class="month-days" ${(0,n.ref)("calendarDaysContainer")}>
|
|
972
|
-
${(0,n.repeat)((e=>e.monthList),n.html`
|
|
973
|
-
<button
|
|
974
|
-
class="month-day
|
|
975
|
-
${(e,t)=>t.parent.isSelectedDate(e)?"selected":""}
|
|
976
|
-
${(e,t)=>e.monthNumber===t.parent.calendar.month.number?"current":""}"
|
|
977
|
-
@click=${(e,t)=>t.parent.selectDay(e)}
|
|
978
|
-
>
|
|
979
|
-
${(e,t)=>e.date}
|
|
980
|
-
</button>
|
|
981
|
-
`)}
|
|
982
|
-
</div>
|
|
983
|
-
</div>
|
|
984
|
-
`;class Na{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()}}var La=o(9299),Aa=o.n(La);za().extend(Aa());class Ra{constructor(e=null,t="default"){const o=new Na(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+=za()(o.date).isLeapYear()?1:0)}getDay(e){return new Na(new Date(this.year,this.number-1,e),this.lang)}}za().extend(Aa());class Ma{constructor(e=null,t=null,o="default"){this.weekDays=Array.from({length:7}),this.today=new Na(null,o),this.year=null!=e?e:this.today.year,this.month=new Ra(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 Ra(new Date(this.year,e-1),this.lang)}getPreviousMonth(){return 1===this.month.number?new Ra(new Date(this.year-1,11),this.lang):new Ra(new Date(this.year,this.month.number-2),this.lang)}getNextMonth(){return 1===this.month.number?new Ra(new Date(this.year+1,0),this.lang):new Ra(new Date(this.year,this.month.number+2),this.lang)}goToDate(e,t){this.month=new Ra(new Date(t,e-1),this.lang),this.year=t}goToNextYear(){this.year+=1,this.month=new Ra(new Date(this.year,0),this.lang)}goToPreviousYear(){this.year-=1,this.month=new Ra(new Date(this.year,11),this.lang)}goToNextMonth(){if(12===this.month.number)return this.goToNextYear();this.month=new Ra(new Date(this.year,this.month.number+1-1),this.lang)}goToPreviousMonth(){if(1===this.month.number)return this.goToPreviousYear();this.month=new Ra(new Date(this.year,this.month.number-1-1),this.lang)}}class Ta extends s.I{formatChanged(e,t){t&&this.calendar&&(this.formatDate=za()(this.currentDate.Date).format(t))}valueChanged(e,t){t&&this.calendar&&(this.currentDate=new Na(new Date(t)),this.calendar.goToDate(this.currentDate.monthNumber,this.currentDate.year),this.formatDate=za()(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 Na(o,t),this.value=za()(this.currentDate.Date).format("MM-DD-YYYY"),this.calendar=new Ma(this.currentDate.year,this.currentDate.monthNumber,t)}connectedCallback(){super.connectedCallback(),this.currentMonth=this.calendar.month.name,this.currentYear=this.calendar.year,this.formatDate=za()(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 za()(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){za()(e.Date).isSame(this.currentDate.Date)||(this.currentDate=e,e.monthNumber!==this.calendar.month.number&&this.prevMonth(),this.formatDate=za()(this.currentDate.Date).format(this.format),this.value=za()(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,r=Array.from({length:a});for(let e=o;e<a;e+=1)r[e]=this.calendar.month.getDay(e+1-o);for(let e=0;e<o;e+=1){const a=o-(e+1);r[e]=t.getDay(t.numberOfDays-a)}return r}}(0,i.__decorate)([n.attr],Ta.prototype,"format",void 0),(0,i.__decorate)([n.attr],Ta.prototype,"visible",void 0),(0,i.__decorate)([n.attr],Ta.prototype,"position",void 0),(0,i.__decorate)([n.attr],Ta.prototype,"value",void 0),(0,i.__decorate)([n.observable],Ta.prototype,"currentDate",void 0),(0,i.__decorate)([n.observable],Ta.prototype,"currentMonth",void 0),(0,i.__decorate)([n.observable],Ta.prototype,"currentYear",void 0),(0,i.__decorate)([n.observable],Ta.prototype,"calendarDropdownClasses",void 0),(0,i.__decorate)([n.observable],Ta.prototype,"formatDate",void 0),(0,i.__decorate)([n.observable],Ta.prototype,"monthList",void 0);Ta.compose(Object.assign({baseName:"date-picker",styles:_a,template:Ca,shadowOptions:undefined},{}));const Ia=()=>Ca,Ea=()=>n.css`
|
|
985
|
-
${_a}
|
|
986
|
-
.date-toggle {
|
|
987
|
-
background: var(--neutral-layer-card-container);
|
|
988
|
-
color: var(--neutral-foreground-rest);
|
|
989
|
-
}
|
|
990
|
-
|
|
991
|
-
.calendar-dropdown {
|
|
992
|
-
background: ${k.mediumGrey};
|
|
993
|
-
}
|
|
994
|
-
|
|
995
|
-
.week-days,
|
|
996
|
-
.header h3,
|
|
997
|
-
.header .months-arrows .icon-container zero-icon {
|
|
998
|
-
color: var(--neutral-stroke-rest);
|
|
999
|
-
}
|
|
1000
|
-
|
|
1001
|
-
.header .months-arrows .icon-container {
|
|
1002
|
-
background-color: var(--neutral-layer-card-container);
|
|
1003
|
-
}
|
|
1004
|
-
|
|
1005
|
-
.month-day.current {
|
|
1006
|
-
color: ${k.almostWhite};
|
|
1007
|
-
}
|
|
1008
|
-
`,Ha=void 0,ja={};class Pa extends Ta{}const Ba=Pa.compose(Object.assign({baseName:"date-picker",template:Ia,styles:Ea,shadowOptions:Ha},ja));var Ga=o(1440),Va=o(456);const Ua=(e,t)=>(0,Va.C)(e,t),Ya=(e,t)=>n.css`
|
|
1009
|
-
${(0,g.disclosureStyles)(e,t)}
|
|
1010
|
-
`;class Wa extends Ga.p{}const qa={},Xa=(Wa.compose(Object.assign({baseName:"disclosure",template:Ua,styles:Ya,shadowOptions:undefined},qa)),(e,t)=>Ua(e,t)),Za=(e,t)=>n.css`
|
|
1011
|
-
${Ya(e,t)}
|
|
1012
|
-
`;class Ka extends Wa{}const Ja=Ka.compose(Object.assign({baseName:"disclosure",template:Xa,styles:Za,shadowOptions:ga},qa));var Qa=o(7016),er=o(54);const tr=(e,t)=>(0,er.q)(e,t),or=(e,t)=>n.css`
|
|
1013
|
-
${(0,g.dividerStyles)(e,t)}
|
|
1014
|
-
`;class ar extends Qa.i{}const rr=void 0,ir={},nr=(ar.compose(Object.assign({baseName:"divider",template:tr,styles:or,shadowOptions:rr},ir)),(e,t)=>tr(e,t)),sr=(e,t)=>n.css`
|
|
1015
|
-
${or(e,t)}
|
|
1016
|
-
`;class lr extends ar{}const cr=lr.compose(Object.assign({baseName:"divider",template:nr,styles:sr,shadowOptions:rr},ir)),dr=(e,t,o)=>n.css`
|
|
1017
|
-
:host {
|
|
1018
|
-
--dropdown-opener-height-multiplier: 0.7px;
|
|
1019
|
-
--menu-item-height-multiplier: 0.7px;
|
|
1020
|
-
}
|
|
1021
|
-
|
|
1022
|
-
.actions-menu {
|
|
1023
|
-
display: inline-flex;
|
|
1024
|
-
flex-direction: column;
|
|
1025
|
-
max-height: calc(
|
|
1026
|
-
var(--max-height) -
|
|
1027
|
-
((var(--base-height-multiplier) + var(--density)) * var(--design-unit) * 1px)
|
|
1028
|
-
);
|
|
1029
|
-
position: absolute;
|
|
1030
|
-
z-index: 1;
|
|
1031
|
-
gap: calc(var(--design-unit) * 1px);
|
|
1032
|
-
}
|
|
1033
|
-
|
|
1034
|
-
.hidden {
|
|
1035
|
-
display: none;
|
|
1036
|
-
}
|
|
1037
|
-
|
|
1038
|
-
.actions-opener {
|
|
1039
|
-
display: flex;
|
|
1040
|
-
justify-content: center;
|
|
1041
|
-
height: calc(
|
|
1042
|
-
(var(--base-height-multiplier) + var(--density)) * var(--design-unit) *
|
|
1043
|
-
var(--dropdown-opener-height-multiplier)
|
|
1044
|
-
);
|
|
1045
|
-
max-width: 120px;
|
|
1046
|
-
}
|
|
1047
|
-
|
|
1048
|
-
${e}-menu-item {
|
|
1049
|
-
display: flex;
|
|
1050
|
-
user-select: none;
|
|
1051
|
-
}
|
|
1052
|
-
|
|
1053
|
-
${e}-menu-item::part(content) {
|
|
1054
|
-
margin-inline: 5px;
|
|
1055
|
-
}
|
|
1056
|
-
|
|
1057
|
-
${e}-menu-item::part(expand-collapse-glyph-container) {
|
|
1058
|
-
margin-inline-end: 5px;
|
|
1059
|
-
}
|
|
1060
|
-
|
|
1061
|
-
${e}-menu-item::part(expand-collapse) {
|
|
1062
|
-
margin-inline-start: 5px;
|
|
1063
|
-
}
|
|
1064
|
-
|
|
1065
|
-
${e}-menu-item[disabled] {
|
|
1066
|
-
pointer-events: none;
|
|
1067
|
-
}
|
|
1068
|
-
|
|
1069
|
-
${e}-icon {
|
|
1070
|
-
padding-left: 5px;
|
|
1071
|
-
}
|
|
1072
|
-
|
|
1073
|
-
.menu-item {
|
|
1074
|
-
max-height: calc(
|
|
1075
|
-
(var(--base-height-multiplier) + var(--density)) * var(--design-unit) *
|
|
1076
|
-
var(--menu-item-height-multiplier)
|
|
1077
|
-
);
|
|
1078
|
-
}
|
|
1079
|
-
`,pr=(e,t)=>n.html`
|
|
1080
|
-
${(0,n.repeat)((()=>e),n.html`
|
|
1081
|
-
${(0,n.when)((e=>e.isDisabled&&e.isDisabled()),n.html`
|
|
1082
|
-
<${t}-menu-item class="menu-item" disabled>${e=>e.name}</${t}-menu-item>
|
|
1083
|
-
`)}
|
|
1084
|
-
${(0,n.when)((e=>!e.isDisabled||!e.isDisabled()),n.html`
|
|
1085
|
-
<${t}-menu-item
|
|
1086
|
-
class="menu-item"
|
|
1087
|
-
@click=${e=>e.submenu?"":e.callback()}
|
|
1088
|
-
style="${e=>e.color?`color: ${e.color};`:""}"
|
|
1089
|
-
>
|
|
1090
|
-
${(0,n.when)((e=>e.icon),n.html`
|
|
1091
|
-
<${t}-icon
|
|
1092
|
-
name=${e=>e.icon.name}
|
|
1093
|
-
size=${e=>e.icon.size}
|
|
1094
|
-
variant=${e=>e.icon.variant}
|
|
1095
|
-
slot="start"
|
|
1096
|
-
></${t}-icon>
|
|
1097
|
-
`)}
|
|
1098
|
-
${e=>e.name}
|
|
1099
|
-
${(0,n.when)((e=>e.submenu),n.html`
|
|
1100
|
-
<${t}-menu>${e=>pr(e.submenu,t)}</${t}-menu>
|
|
1101
|
-
`)}
|
|
1102
|
-
</${t}-menu-item>
|
|
1103
|
-
`)}
|
|
1104
|
-
`)}
|
|
1105
|
-
`,ur=e=>n.html`
|
|
1106
|
-
<div class="actions-container" part="actions-container">
|
|
1107
|
-
<${e}-button
|
|
1108
|
-
id="actiosnMenuTrigger"
|
|
1109
|
-
class="actions-opener"
|
|
1110
|
-
appearance="${e=>e.buttonAppearance}"
|
|
1111
|
-
part="actions-opener"
|
|
1112
|
-
@click=${e=>e.toggleDropdownMenuVisibility()}
|
|
1113
|
-
:disabled=${e=>e.disabled}
|
|
1114
|
-
>
|
|
1115
|
-
${e=>e.name}
|
|
1116
|
-
</${e}-button>
|
|
1117
|
-
<${e}-menu
|
|
1118
|
-
${(0,n.ref)("dropdownMenu")}
|
|
1119
|
-
class="actions-menu ${e=>e.classNames}"
|
|
1120
|
-
part="actions-menu"
|
|
1121
|
-
>
|
|
1122
|
-
${t=>pr(t.allItems,e)}
|
|
1123
|
-
</${e}-menu>
|
|
1124
|
-
</div>
|
|
1125
|
-
`,hr=n.html`
|
|
1126
|
-
${e=>ur(e.tagName.toLowerCase().split("-")[0])}
|
|
1127
|
-
`,mr=(e,t)=>!e.composedPath().includes(t);class gr extends s.I{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){mr(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,i.__decorate)([n.observable],gr.prototype,"items",void 0),(0,i.__decorate)([(0,n.attr)({attribute:"auto-close",mode:"boolean"})],gr.prototype,"autoClose",void 0),(0,i.__decorate)([(0,n.attr)({attribute:"disable-button",mode:"boolean"})],gr.prototype,"disabled",void 0),(0,i.__decorate)([n.observable],gr.prototype,"classNames",void 0),(0,i.__decorate)([n.attr],gr.prototype,"name",void 0),(0,i.__decorate)([(0,n.attr)({attribute:"open",mode:"boolean"})],gr.prototype,"open",void 0),(0,i.__decorate)([n.attr],gr.prototype,"buttonAppearance",void 0);gr.compose({baseName:"dropdown-menu",styles:(e,t)=>n.css`
|
|
1128
|
-
${dr("foundation",e,t)}
|
|
1129
|
-
`,template:hr});const vr=(e,t)=>n.css`
|
|
1130
|
-
${dr("zero",e,t)}
|
|
1131
|
-
`;class br extends gr{}const fr=br.compose({baseName:"dropdown-menu",styles:vr,template:hr});var yr;!function(e){e.ERROR_BOUNDARY_EVENT="error-boundary-event"}(yr||(yr={}));const xr=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"}`},$r=(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},wr=(0,Po.createLogger)("foundation-error"),Fr={alert:e=>{alert(xr(e))},notification:(e,t)=>{var o,a,r,i,n,s,l,c,d,p,u;const h=t.split("-")[0],m=$r("notify-container",t);m&&(m.style.position="fixed",m.style.top="0",m.style.right="0");const g=document.createElement(`${h}-toast`),v=document.createElement("div");v.setAttribute("slot","top"),v.textContent=null!==(o=e.title)&&void 0!==o?o:"Error";const b=document.createElement("div");b.setAttribute("slot","content"),b.textContent=(null==e?void 0:e.errorDetails)||"";const f=document.createElement("div");f.setAttribute("slot","date"),f.textContent=(new Date).toLocaleTimeString(),g.setAttribute("notify",(null===(r=null===(a=null==e?void 0:e.config)||void 0===a?void 0:a.notification)||void 0===r?void 0:r.type)||""),(null===(n=null===(i=null==e?void 0:e.config)||void 0===i?void 0:i.notification)||void 0===n?void 0:n.autoClose)&&g.setAttribute("auto-close",`${null===(l=null===(s=null==e?void 0:e.config)||void 0===s?void 0:s.notification)||void 0===l?void 0:l.autoClose}`),(null===(d=null===(c=null==e?void 0:e.config)||void 0===c?void 0:c.notification)||void 0===d?void 0:d.closeTimeout)&&g.setAttribute("close-timeout",`${null===(u=null===(p=null==e?void 0:e.config)||void 0===p?void 0:p.notification)||void 0===u?void 0:u.closeTimeout}`),g.appendChild(v),g.appendChild(b),g.appendChild(f),m.appendChild(g)},dialog:(e,t)=>{const o=t.split("-")[0],a=document.createElement(`${o}-error-dialog`);$r("dialog-container",t).appendChild(a),a.error=e,a.show()},snackbar:(e,t)=>{const o=t.split("-")[0],a=document.createElement(`${o}-snackbar`);$r("snack-container",t).appendChild(a),a.error=e}},kr=n.html`
|
|
1132
|
-
<template ${(0,n.ref)("anchor")}>
|
|
1133
|
-
<slot></slot>
|
|
1134
|
-
</template>
|
|
1135
|
-
`;class Sr extends s.I{constructor(){super(...arguments),this.logger=(0,Po.createLogger)("error-boundary")}connectedCallback(){super.connectedCallback(),this.addEventListener(yr.ERROR_BOUNDARY_EVENT,(e=>{var t,o,a,r;e.stopImmediatePropagation(),t=e.detail,o=this.tagName,wr.log({message:xr(t),level:(a=t,(null==a?void 0:a.logLevel)||(null===(r=null==a?void 0:a.config)||void 0===r?void 0:r.logLevel)||Po.LogLevel.Error)}),Object.keys((null==t?void 0:t.config)||{}).forEach((e=>{Fr[e]&&Fr[e](t,o)}))}))}}(0,i.__decorate)([n.observable],Sr.prototype,"anchor",void 0);Sr.compose({baseName:"error-boundary",template:kr,shadowOptions:{mode:"open",delegatesFocus:!0}});const Or={mode:"open",delegatesFocus:!0};class Dr extends Sr{}const zr=Dr.compose({baseName:"error-boundary",template:kr,shadowOptions:Or}),_r=n.html`
|
|
1136
|
-
<foundation-banner ${(0,n.ref)("banner")}>
|
|
1137
|
-
<div slot="content">
|
|
1138
|
-
<div>${e=>{var t;return(null===(t=e.error)||void 0===t?void 0:t.errorDetails)||"Place holder for error message"}}</div>
|
|
1139
|
-
</div>
|
|
1140
|
-
|
|
1141
|
-
<foundation-button slot="action" appearance="lightweight" @click=${e=>{var t;return null===(t=e.banner)||void 0===t?void 0:t.dismiss()}}>
|
|
1142
|
-
${e=>{var t,o,a,r;return(null===(r=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===r?void 0:r.label)||"Ignore"}}
|
|
1143
|
-
</foundation-button>
|
|
1144
|
-
${(0,n.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}),n.html`
|
|
1145
|
-
<foundation-button
|
|
1146
|
-
slot="action"
|
|
1147
|
-
appearance="lightweight"
|
|
1148
|
-
@click=${(e,t)=>{var o;null==e||e.action(),null===(o=t.parent)||void 0===o||o.dismiss()}}
|
|
1149
|
-
>
|
|
1150
|
-
${e=>e.label}
|
|
1151
|
-
</foundation-button>
|
|
1152
|
-
`)}
|
|
1153
|
-
</foundation-banner>
|
|
1154
|
-
`,Cr=(0,Po.createLogger)("foundation-ui"),Nr={mode:"open",delegatesFocus:!0};class Lr extends s.I{connectedCallback(){super.connectedCallback()}dismiss(){return(0,i.__awaiter)(this,void 0,void 0,(function*(){try{yield this.banner.dismiss(),this.remove()}catch(e){Cr.error(e)}}))}}(0,i.__decorate)([n.observable],Lr.prototype,"error",void 0);Lr.compose({baseName:"error-banner",template:_r,shadowOptions:Nr});const Ar=n.html`
|
|
1155
|
-
<zero-banner ${(0,n.ref)("banner")}>
|
|
1156
|
-
<div slot="content">
|
|
1157
|
-
<div>${e=>{var t;return(null===(t=e.error)||void 0===t?void 0:t.errorDetails)||"Place holder for error message"}}</div>
|
|
1158
|
-
</div>
|
|
1159
|
-
|
|
1160
|
-
<zero-button slot="action" appearance="lightweight" @click=${e=>e.dismiss()}>
|
|
1161
|
-
${e=>{var t,o,a,r;return(null===(r=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===r?void 0:r.label)||"Ignore"}}
|
|
1162
|
-
</zero-button>
|
|
1163
|
-
|
|
1164
|
-
${(0,n.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}),n.html`
|
|
1165
|
-
<zero-button
|
|
1166
|
-
slot="action"
|
|
1167
|
-
appearance="lightweight"
|
|
1168
|
-
@click=${(e,t)=>{null==e||e.action(),t.parent.dismiss()}}
|
|
1169
|
-
>
|
|
1170
|
-
${e=>e.label}
|
|
1171
|
-
</zero-button>
|
|
1172
|
-
`)}
|
|
1173
|
-
</zero-banner>
|
|
1174
|
-
`,Rr=Nr;class Mr extends Lr{}const Tr=Mr.compose({baseName:"error-banner",template:Ar,shadowOptions:Rr}),Ir=n.html`
|
|
1175
|
-
${e=>{return t=e.tagName.toLowerCase().split("-")[0],n.html`
|
|
1176
|
-
<${t}-dialog show-close-icon="false" ${(0,n.ref)("dialog")}>
|
|
1177
|
-
<h2 slot="top" class="title">${e=>{var t;return null===(t=e.error)||void 0===t?void 0:t.title}}</h2>
|
|
1178
|
-
<div class="details">${e=>{var t;return(null===(t=e.error)||void 0===t?void 0:t.errorDetails)||"Place holder for error message"}}</div>
|
|
1179
|
-
<${t}-button slot="bottom" appearance="lightweight" @click=${e=>e.dismiss()}>
|
|
1180
|
-
${e=>{var t,o,a,r;return(null===(r=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===r?void 0:r.label)||"Ignore"}}
|
|
1181
|
-
</${t}-button>
|
|
1182
|
-
${(0,n.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}),n.html`
|
|
1183
|
-
<${t}-button
|
|
1184
|
-
slot="bottom"
|
|
1185
|
-
appearance="lightweight"
|
|
1186
|
-
@click=${(e,t)=>{null==e||e.action(),t.parent.dismiss()}}
|
|
1187
|
-
>
|
|
1188
|
-
${e=>e.label}
|
|
1189
|
-
</${t}-button>
|
|
1190
|
-
`)}
|
|
1191
|
-
</${t}-dialog>
|
|
1192
|
-
`;var t}}
|
|
1193
|
-
`,Er=n.css`
|
|
1194
|
-
:host {
|
|
1195
|
-
--design-unit: 3;
|
|
1196
|
-
--dialog-max-width: 358px;
|
|
1197
|
-
--dialog-min-width: 358px;
|
|
1198
|
-
--dialog-max-height: 128px;
|
|
1199
|
-
--error-details-min-height: 40px;
|
|
1200
|
-
}
|
|
1201
|
-
|
|
1202
|
-
.title {
|
|
1203
|
-
margin-top: calc(var(--design-unit) * 2px);
|
|
1204
|
-
font-size: 14px;
|
|
1205
|
-
}
|
|
1206
|
-
|
|
1207
|
-
.details {
|
|
1208
|
-
font-size: 12px;
|
|
1209
|
-
overflow: hidden;
|
|
1210
|
-
min-height: var(--error-details-min-height);
|
|
1211
|
-
}
|
|
1212
|
-
`,Hr={mode:"open",delegatesFocus:!0};class jr extends s.I{connectedCallback(){super.connectedCallback()}show(){this.dialog.show()}dismiss(){try{this.dialog.close(),this.remove()}catch(e){Cr.error(e)}}}(0,i.__decorate)([n.observable],jr.prototype,"error",void 0);jr.compose({baseName:"error-dialog",template:Ir,styles:Er,shadowOptions:Hr});class Pr extends jr{}const Br=Pr.compose({baseName:"error-dialog",styles:Er,template:Ir,shadowOptions:Hr}),Gr=e=>n.html`
|
|
1213
|
-
<template>
|
|
1214
|
-
<div class="file-selection">
|
|
1215
|
-
<input type="file" multiple ${(0,n.ref)("fileInput")}
|
|
1216
|
-
@change=${(e,t)=>e.onInputChange(t.event)} :accept="${e=>e.accept}"/>
|
|
1217
|
-
<${e}-text-field readOnly type="text" id="fileName"
|
|
1218
|
-
:label="${e=>e.label}"
|
|
1219
|
-
:value="${e=>e.fileName}">
|
|
1220
|
-
${e=>e.label}
|
|
1221
|
-
${(0,n.when)((e=>e.fileName),n.html`
|
|
1222
|
-
<${e}-icon slot="end" class="clear-icon" name="xmark"
|
|
1223
|
-
@click=${e=>e.clearSelection()}></${e}-icon>
|
|
1224
|
-
`)}
|
|
1225
|
-
</${e}-text-field>
|
|
1226
|
-
|
|
1227
|
-
<${e}-button @click=${e=>e.handleClick()}>Browse</${e}-button>
|
|
1228
|
-
<${e}-button @click=${e=>e.handleFileUpload()}
|
|
1229
|
-
:disabled="${e=>!e.fileName}">Upload</${e}-button>
|
|
1230
|
-
</div>
|
|
1231
|
-
<div class="uploader-grid">
|
|
1232
|
-
<${e}-data-grid generate-header="sticky"
|
|
1233
|
-
:rowsData="${e=>e.uploadedFilesList}"
|
|
1234
|
-
:columnDefinitions="${e=>e.filesGridColumnDefinitions}">
|
|
1235
|
-
</${e}-data-grid>
|
|
1236
|
-
</div>
|
|
1237
|
-
</template>
|
|
1238
|
-
`,Vr=n.html`
|
|
1239
|
-
${e=>Gr(e.tagName.toLowerCase().split("-")[0])}
|
|
1240
|
-
`,Ur=n.css`
|
|
1241
|
-
/* Host */
|
|
1242
|
-
:host {
|
|
1243
|
-
display: flex;
|
|
1244
|
-
flex-direction: column;
|
|
1245
|
-
width: 100%;
|
|
1246
|
-
height: 100%;
|
|
1247
|
-
}
|
|
1248
|
-
|
|
1249
|
-
.file-selection {
|
|
1250
|
-
display: flex;
|
|
1251
|
-
align-items: end;
|
|
1252
|
-
justify-content: start;
|
|
1253
|
-
padding-bottom: 10px;
|
|
1254
|
-
}
|
|
1255
|
-
|
|
1256
|
-
.file-selection :nth-last-child(-n + 2) {
|
|
1257
|
-
margin: 0;
|
|
1258
|
-
margin-left: 10px;
|
|
1259
|
-
}
|
|
1260
|
-
|
|
1261
|
-
input[type='file'] {
|
|
1262
|
-
display: none;
|
|
1263
|
-
}
|
|
1264
|
-
|
|
1265
|
-
.clear-icon {
|
|
1266
|
-
cursor: pointer;
|
|
1267
|
-
}
|
|
1268
|
-
|
|
1269
|
-
.uploader-grid {
|
|
1270
|
-
display: flex;
|
|
1271
|
-
flex-direction: row;
|
|
1272
|
-
height: 250px;
|
|
1273
|
-
width: 600px;
|
|
1274
|
-
}
|
|
1275
|
-
|
|
1276
|
-
zero-data-grid,
|
|
1277
|
-
foundation-data-grid {
|
|
1278
|
-
overflow-y: auto;
|
|
1279
|
-
}
|
|
1280
|
-
`,Yr=(0,Po.createLogger)("foundation-criteria");var Wr;!function(e){e.AND="&&",e.OR="||",e.NOT="!",e.GT=">",e.GE=">=",e.LT="<",e.LE="<=",e.NE="!=",e.EQ="=="}(Wr||(Wr={}));class qr{constructor(e){this.$$operator=e}static And(){return new qr(Wr.AND)}static Or(){return new qr(Wr.OR)}static Not(){return new qr(Wr.NOT)}static GreaterThan(){return new qr(Wr.GT)}static GreaterThanOrEqual(){return new qr(Wr.GE)}static LessThan(){return new qr(Wr.LT)}static LessThanOrEqual(){return new qr(Wr.LE)}static NotEqual(){return new qr(Wr.NE)}static Equal(){return new qr(Wr.EQ)}get operator(){return this.$$operator}}const Xr="default";class Zr{constructor(){this.expressions={},this.And=(e,t={})=>this.withExpression(e,t,qr.And()),this.Or=(e,t={})=>this.withExpression(e,t,qr.Or()),this.Not=(e,t={})=>this.withExpression(e,t,qr.Not())}withExpression(e,t={},o=qr.And()){const{condition:a,join:r,groupName:i}=t,n=(e,t=Xr)=>{var i;const n=null!==(i=this.expressions[t])&&void 0!==i?i:[];this.expressions[t]=[...n,{join:o||r,condition:a,expression:e}]};if(Array.isArray(e))if(r){const t=e.filter((e=>{const t=e instanceof qr;return t&&Yr.warn("Inline joins will be discarded when join is defined in ExpressionOptions"),!t}));if(i)t.forEach((e=>{n(e,i)}));else{const e=(s=r,t.flat().flatMap(((e,t,o)=>o.length-1!==t?[e,s]:e)));n(e,Xr)}}else n(e,Xr);else n(e,e.group);var s;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 qr){if(o[t-1]instanceof qr)throw new Error("Adjacent Join operations detected")}})),a.push(`(${e.map((e=>this.parseExpression(e,void 0))).join("")})`)):e instanceof qr?a.push(` ${e.operator} `):e&&a.push(e.serialiser(e)),a.join("")}}const Kr=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},Jr=e=>t=>`${t.field} ${e} ${Kr(t)}`,Qr=e=>Jr(Wr.EQ)(e);class ei{constructor(e){this.serialiser=Qr,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 ti=["image/png","image/bmp","image/gif","image/jpeg","image/jpg"],oi=["text/plain","text/csv"],ai=["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"],ri=n.html`
|
|
1281
|
-
${(0,n.when)((e=>e.rowData),n.html`
|
|
1282
|
-
${e=>"DATETIME"===e.columnDefinition.type?(0,Po.formatDateTimeTimestamp)(e.rowData[e.columnDefinition.columnDataKey]):e.rowData[e.columnDefinition.columnDataKey]}
|
|
1283
|
-
`)}
|
|
1284
|
-
`;class ii extends s.I{constructor(){super(...arguments),this.acceptedFormats=[],this.accept="",this.fileSizeLimitBytes=104857600,this.uploadedFilesResourceName="ALL_FILE_ATTACHMENTS",this.uploadEventName="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,...ti]:"office/*"===t?e=[...e,...ai]:"text/*"===t?e=[...e,...oi]: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,i.__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 Zr).withExpression((new ei).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:io.logger.error(`Unsupported operation type: ${o.DETAILS.OPERATION}`)}}setRowData(){return(0,i.__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=>{io.logger.error(e)}),{CRITERIA_MATCH:this.gridCriteria})}))}setColumnDefs(){var e;return(0,i.__awaiter)(this,void 0,void 0,(function*(){const t=yield this.connect.getMetadata(this.uploadedFilesResourceName),o=(this.gridFields.length>0&&t.FIELD?t.FIELD.filter((e=>this.gridFields.split(" ").includes(e.NAME))):null!==(e=t.FIELD)&&void 0!==e?e:[]).map((e=>({columnDataKey:e.NAME,title:e.NAME.toLowerCase().split("_").map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join(" "),type:e.TYPE,cellTemplate:ri})));this.filesGridColumnDefinitions=o}))}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,i.__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=((e,t="/gwf/")=>{let o;return o="https://"+location.hostname+t+e,o})(this.uploadEventName),o=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))))})(t,e,this.session.getItem("authToken","session"));if(o.ERROR)return io.logger.error(o.ERROR),void this.$emit("errorOut",o.ERROR);io.logger.info(o),this.clearSelection()}catch(e){io.logger.error(e)}}))}clearSelection(){this.fileName="",this.selectedFiles=[]}}(0,i.__decorate)([n.observable],ii.prototype,"gridCriteria",void 0),(0,i.__decorate)([io.Connect],ii.prototype,"connect",void 0),(0,i.__decorate)([io.Session],ii.prototype,"session",void 0),(0,i.__decorate)([n.attr],ii.prototype,"label",void 0),(0,i.__decorate)([n.attr],ii.prototype,"accept",void 0),(0,i.__decorate)([(0,n.attr)({attribute:"file-size-limit-bytes"})],ii.prototype,"fileSizeLimitBytes",void 0),(0,i.__decorate)([(0,n.attr)({attribute:"uploaded-files-resource-name"})],ii.prototype,"uploadedFilesResourceName",void 0),(0,i.__decorate)([(0,n.attr)({attribute:"upload-event-name"})],ii.prototype,"uploadEventName",void 0),(0,i.__decorate)([(0,n.attr)({attribute:"field-name"})],ii.prototype,"fieldName",void 0),(0,i.__decorate)([(0,n.attr)({attribute:"entity-id"})],ii.prototype,"entityId",void 0),(0,i.__decorate)([(0,n.attr)({attribute:"upload-key"})],ii.prototype,"uploadKey",void 0),(0,i.__decorate)([(0,n.attr)({attribute:"grid-fields"})],ii.prototype,"gridFields",void 0),(0,i.__decorate)([n.observable],ii.prototype,"fileName",void 0),(0,i.__decorate)([n.observable],ii.prototype,"uploadedFilesList",void 0),(0,i.__decorate)([n.observable],ii.prototype,"filesGridColumnDefinitions",void 0);const ni=void 0,si={},li=(ii.compose(Object.assign({baseName:"file-upload",styles:Ur,template:Vr,shadowOptions:ni},si)),n.css`
|
|
1285
|
-
${Ur}
|
|
1286
|
-
::-webkit-scrollbar {
|
|
1287
|
-
width: 12px;
|
|
1288
|
-
}
|
|
1289
|
-
|
|
1290
|
-
::-webkit-scrollbar-track {
|
|
1291
|
-
background: rgb(31 33 38);
|
|
1292
|
-
}
|
|
1293
|
-
|
|
1294
|
-
::-webkit-scrollbar-thumb {
|
|
1295
|
-
width: 8px;
|
|
1296
|
-
border-radius: 10px;
|
|
1297
|
-
box-shadow: inset 0 0 6px rgba(0 0 0 / 30%);
|
|
1298
|
-
background-color: var(--neutral-color);
|
|
1299
|
-
border: 3px solid rgb(31 33 38);
|
|
1300
|
-
}
|
|
1301
|
-
`),ci=n.html`
|
|
1302
|
-
${Gr("zero")}
|
|
1303
|
-
`,di=si,pi=ni;class ui extends ii{}const hi=ui.compose(Object.assign({baseName:"file-upload",shadowOptions:pi,styles:li,template:ci},di)),mi=n.css`
|
|
1304
|
-
.filter-wrapper {
|
|
1305
|
-
border: 1px solid gray;
|
|
1306
|
-
border-radius: calc(var(--design-unit) * 2px);
|
|
1307
|
-
padding: calc(var(--design-unit) * 1px);
|
|
1308
|
-
}
|
|
1309
|
-
|
|
1310
|
-
.close-icon {
|
|
1311
|
-
display: flex;
|
|
1312
|
-
place-content: center;
|
|
1313
|
-
align-items: center;
|
|
1314
|
-
flex-direction: column;
|
|
1315
|
-
align-content: center;
|
|
1316
|
-
justify-content: center;
|
|
1317
|
-
margin: calc(var(--design-unit) * 1px);
|
|
1318
|
-
padding: calc(var(--design-unit) * 1px);
|
|
1319
|
-
border: 1px solid transparent;
|
|
1320
|
-
border-radius: calc(var(--design-unit) * 2px);
|
|
1321
|
-
cursor: pointer;
|
|
1322
|
-
}
|
|
1323
|
-
|
|
1324
|
-
.close-icon,
|
|
1325
|
-
.cloase-icon svg path {
|
|
1326
|
-
transition-property: all;
|
|
1327
|
-
transition-timing-function: linear;
|
|
1328
|
-
transition-duration: 300ms;
|
|
1329
|
-
}
|
|
1330
|
-
|
|
1331
|
-
.close-icon:hover {
|
|
1332
|
-
border-color: red;
|
|
1333
|
-
background: rgb(255 0 0 / 25%);
|
|
1334
|
-
}
|
|
1335
|
-
|
|
1336
|
-
.close-icon:hover svg path {
|
|
1337
|
-
fill: red;
|
|
1338
|
-
}
|
|
1339
|
-
|
|
1340
|
-
.flex-row {
|
|
1341
|
-
display: flex;
|
|
1342
|
-
flex-direction: row;
|
|
1343
|
-
align-content: center;
|
|
1344
|
-
justify-content: space-between;
|
|
1345
|
-
align-items: center;
|
|
1346
|
-
}
|
|
1347
|
-
|
|
1348
|
-
.flex-row zero-text-field,
|
|
1349
|
-
.flex-row zero-select,
|
|
1350
|
-
.flex-row foundation-text-field,
|
|
1351
|
-
.flex-row foundation-select {
|
|
1352
|
-
flex: 1;
|
|
1353
|
-
}
|
|
1354
|
-
`,gi=n.html`
|
|
1355
|
-
<div class="close-icon" @click=${e=>e.clear()}>${ha()}</div>
|
|
1356
|
-
`,vi=n.html`
|
|
1357
|
-
<div class="flex-row">
|
|
1358
|
-
<div>${e=>e.label}</div>
|
|
1359
|
-
${gi}
|
|
1360
|
-
</div>
|
|
1361
|
-
<div class="flex-row">
|
|
1362
|
-
<foundation-text-field
|
|
1363
|
-
${(0,n.ref)("textFilterField")}
|
|
1364
|
-
type="text"
|
|
1365
|
-
:value=${(0,Po.sync)((e=>e.textFilter))}
|
|
1366
|
-
/>
|
|
1367
|
-
</div>
|
|
1368
|
-
`,bi=n.html`
|
|
1369
|
-
<div class="flex-row">
|
|
1370
|
-
<div>${e=>e.label}</div>
|
|
1371
|
-
${gi}
|
|
1372
|
-
</div>
|
|
1373
|
-
<div class="flex-row">
|
|
1374
|
-
<foundation-text-field
|
|
1375
|
-
${(0,n.ref)("numFilterFieldMin")}
|
|
1376
|
-
type="number"
|
|
1377
|
-
:value=${(0,Po.sync)((e=>e.numFilterMin))}
|
|
1378
|
-
placeholder="min"
|
|
1379
|
-
></foundation-text-field>
|
|
1380
|
-
<foundation-text-field
|
|
1381
|
-
${(0,n.ref)("numFilterFieldMax")}
|
|
1382
|
-
type="number"
|
|
1383
|
-
:value=${(0,Po.sync)((e=>e.numFilterMax))}
|
|
1384
|
-
placeholder="max"
|
|
1385
|
-
></foundation-text-field>
|
|
1386
|
-
</div>
|
|
1387
|
-
`,fi=n.html`
|
|
1388
|
-
<div class="flex-row">
|
|
1389
|
-
<div>${e=>e.label}</div>
|
|
1390
|
-
${gi}
|
|
1391
|
-
</div>
|
|
1392
|
-
<div class="flex-row">
|
|
1393
|
-
<foundation-text-field
|
|
1394
|
-
${(0,n.ref)("dateFilterFieldMin")}
|
|
1395
|
-
type="date"
|
|
1396
|
-
:value=${(0,Po.sync)((e=>e.dateFilterMin))}
|
|
1397
|
-
></foundation-text-field>
|
|
1398
|
-
<foundation-text-field
|
|
1399
|
-
${(0,n.ref)("dateFilterFieldMax")}
|
|
1400
|
-
type="date"
|
|
1401
|
-
:value=${(0,Po.sync)((e=>e.dateFilterMax))}
|
|
1402
|
-
></foundation-text-field>
|
|
1403
|
-
</div>
|
|
1404
|
-
`;function yi(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 xi=[{name:"All",value:"all",selected:!0},{name:"True",value:"true"},{name:"False",value:"false"},{name:"N/A",value:"null"}],$i=n.html`
|
|
1405
|
-
<div class="flex-row">
|
|
1406
|
-
<div>${e=>e.label}</div>
|
|
1407
|
-
${gi}
|
|
1408
|
-
</div>
|
|
1409
|
-
<div class="flex-row">
|
|
1410
|
-
<foundation-select @change="${(e,t)=>e.onBooleanFilterSelection(yi(t))}}">
|
|
1411
|
-
${(0,n.repeat)((()=>xi),n.html`
|
|
1412
|
-
<foundation-option value="${e=>e.value}" selected="${e=>e.selected}">
|
|
1413
|
-
${e=>e.name}
|
|
1414
|
-
</foundation-option>
|
|
1415
|
-
`)}
|
|
1416
|
-
</foundation-select>
|
|
1417
|
-
</div>
|
|
1418
|
-
`,wi=n.html`
|
|
1419
|
-
<div class="flex-row">
|
|
1420
|
-
<div>${e=>e.label}</div>
|
|
1421
|
-
${gi}
|
|
1422
|
-
</div>
|
|
1423
|
-
<div class="flex-row">
|
|
1424
|
-
<zero-select @change="${(e,t)=>e.onEnumFilterSelection(yi(t))}}">
|
|
1425
|
-
${(0,n.repeat)((e=>e.enumFilterOptions),n.html`
|
|
1426
|
-
<zero-option value="${e=>e.value}" selected="${e=>e.selected}">
|
|
1427
|
-
${e=>e.name}
|
|
1428
|
-
</zero-option>
|
|
1429
|
-
`)}
|
|
1430
|
-
</zero-select>
|
|
1431
|
-
</div>
|
|
1432
|
-
`,Fi=n.html`
|
|
1433
|
-
<div class="filter-wrapper">${e=>(e=>{switch(e.type){case"number":return bi;case"date":return fi;case"boolean":return $i;case"enum":return wi;default:return vi}})(e)}</div>
|
|
1434
|
-
`;var ki;!function(e){e.change="filter-changed",e.clear="filter-cleared"}(ki||(ki={}));class Si extends s.I{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(ki.clear,{fieldName:this.fieldName,target:this.target});const o=`Expr.containsIgnoreCase(${this.fieldName},'${t}')`;this.$emit(ki.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(ki.clear,{fieldName:this.fieldName,target:this.target});const o=`${this.fieldName} >= ${e}`,a=`${this.fieldName} <= ${t}`,r=Number.isFinite(e)?Number.isFinite(t)?`(${o} && ${a})`:o:a;this.$emit(ki.change,{fieldName:this.fieldName,filter:r,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(ki.clear,{fieldName:this.fieldName});const o=`Expr.dateTimeIsAfter(${this.fieldName}, '${this.formatDate(e)}')`,a=`Expr.dateTimeIsBefore(${this.fieldName}, '${this.formatDate(t)}')`,r=Number.isFinite(e)?Number.isFinite(t)?`(${o} && ${a})`:o:a;this.$emit(ki.change,{fieldName:this.fieldName,filter:r,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(ki.clear,{fieldName:this.fieldName,target:this.target})}onBooleanFilterSelection(e){e&&"all"!==e?this.$emit(ki.change,{fieldName:this.fieldName,filter:`${this.fieldName} == ${e}`,target:this.target}):this.$emit(ki.clear,{fieldName:this.fieldName,target:this.target})}onEnumFilterSelection(e){e&&"all"!==e?this.$emit(ki.change,{fieldName:this.fieldName,filter:`${this.fieldName} == "${e}"`,target:this.target}):this.$emit(ki.clear,{fieldName:this.fieldName,target:this.target})}}(0,i.__decorate)([n.attr],Si.prototype,"fieldName",void 0),(0,i.__decorate)([n.attr],Si.prototype,"type",void 0),(0,i.__decorate)([n.attr],Si.prototype,"label",void 0),(0,i.__decorate)([n.attr],Si.prototype,"target",void 0),(0,i.__decorate)([n.observable],Si.prototype,"textFilter",void 0),(0,i.__decorate)([n.observable],Si.prototype,"numFilterMin",void 0),(0,i.__decorate)([n.observable],Si.prototype,"numFilterMax",void 0),(0,i.__decorate)([n.observable],Si.prototype,"dateFilterMin",void 0),(0,i.__decorate)([n.observable],Si.prototype,"dateFilterMax",void 0),(0,i.__decorate)([n.attr],Si.prototype,"enumOptions",void 0),(0,i.__decorate)([n.observable],Si.prototype,"enumFilterOptions",void 0);Si.compose({baseName:"filter",template:Fi,styles:mi});const Oi=n.html`
|
|
1435
|
-
<div class="close-icon" @click=${e=>e.clear()}>${ha()}</div>
|
|
1436
|
-
`,Di=n.html`
|
|
1437
|
-
<div class="flex-row">
|
|
1438
|
-
<div>${e=>e.label}</div>
|
|
1439
|
-
${Oi}
|
|
1440
|
-
</div>
|
|
1441
|
-
<div class="flex-row">
|
|
1442
|
-
<zero-text-field ${(0,n.ref)("textFilterField")} type="text" :value=${(0,Po.sync)((e=>e.textFilter))} />
|
|
1443
|
-
</div>
|
|
1444
|
-
`,zi=n.html`
|
|
1445
|
-
<div class="flex-row">
|
|
1446
|
-
<div>${e=>e.label}</div>
|
|
1447
|
-
${Oi}
|
|
1448
|
-
</div>
|
|
1449
|
-
<div class="flex-row">
|
|
1450
|
-
<zero-text-field
|
|
1451
|
-
${(0,n.ref)("numFilterFieldMin")}
|
|
1452
|
-
type="number"
|
|
1453
|
-
:value=${(0,Po.sync)((e=>e.numFilterMin))}
|
|
1454
|
-
placeholder="min"
|
|
1455
|
-
></zero-text-field>
|
|
1456
|
-
<zero-text-field
|
|
1457
|
-
${(0,n.ref)("numFilterFieldMax")}
|
|
1458
|
-
type="number"
|
|
1459
|
-
:value=${(0,Po.sync)((e=>e.numFilterMax))}
|
|
1460
|
-
placeholder="max"
|
|
1461
|
-
></zero-text-field>
|
|
1462
|
-
</div>
|
|
1463
|
-
`,_i=n.html`
|
|
1464
|
-
<div class="flex-row">
|
|
1465
|
-
<div>${e=>e.label}</div>
|
|
1466
|
-
${Oi}
|
|
1467
|
-
</div>
|
|
1468
|
-
<div class="flex-row">
|
|
1469
|
-
<zero-text-field
|
|
1470
|
-
${(0,n.ref)("dateFilterFieldMin")}
|
|
1471
|
-
type="date"
|
|
1472
|
-
:value=${(0,Po.sync)((e=>e.dateFilterMin))}
|
|
1473
|
-
placeholder="min"
|
|
1474
|
-
></zero-text-field>
|
|
1475
|
-
<zero-text-field
|
|
1476
|
-
${(0,n.ref)("dateFilterFieldMax")}
|
|
1477
|
-
type="date"
|
|
1478
|
-
:value=${(0,Po.sync)((e=>e.dateFilterMax))}
|
|
1479
|
-
placeholder="max"
|
|
1480
|
-
></zero-text-field>
|
|
1481
|
-
</div>
|
|
1482
|
-
`;function Ci(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 Ni=[{name:"All",value:"all",selected:!0},{name:"True",value:"true"},{name:"False",value:"false"},{name:"N/A",value:"null"}],Li=n.html`
|
|
1483
|
-
<div class="flex-row">
|
|
1484
|
-
<div>${e=>e.label}</div>
|
|
1485
|
-
${Oi}
|
|
1486
|
-
</div>
|
|
1487
|
-
<div class="flex-row">
|
|
1488
|
-
<zero-select @change="${(e,t)=>e.onBooleanFilterSelection(Ci(t))}}">
|
|
1489
|
-
${(0,n.repeat)((()=>Ni),n.html`
|
|
1490
|
-
<zero-option value="${e=>e.value}" selected="${e=>e.selected}">
|
|
1491
|
-
${e=>e.name}
|
|
1492
|
-
</zero-option>
|
|
1493
|
-
`)}
|
|
1494
|
-
</zero-select>
|
|
1495
|
-
</div>
|
|
1496
|
-
`,Ai=n.html`
|
|
1497
|
-
<div class="flex-row">
|
|
1498
|
-
<div>${e=>e.label}</div>
|
|
1499
|
-
${Oi}
|
|
1500
|
-
</div>
|
|
1501
|
-
<div class="flex-row">
|
|
1502
|
-
<zero-select @change="${(e,t)=>e.onEnumFilterSelection(Ci(t))}}">
|
|
1503
|
-
${(0,n.repeat)((e=>e.enumFilterOptions),n.html`
|
|
1504
|
-
<zero-option value="${e=>e.value}" selected="${e=>e.selected}">
|
|
1505
|
-
${e=>e.name}
|
|
1506
|
-
</zero-option>
|
|
1507
|
-
`)}
|
|
1508
|
-
</zero-select>
|
|
1509
|
-
</div>
|
|
1510
|
-
`,Ri=n.html`
|
|
1511
|
-
<div class="filter-wrapper">${e=>(e=>{switch(e.type){case"number":return zi;case"date":return _i;case"boolean":return Li;case"enum":return Ai;default:return Di}})(e)}</div>
|
|
1512
|
-
`;class Mi extends Si{constructor(){super(...arguments),this.type=super.type,this.enumFilterOptions=super.enumFilterOptions}}(0,i.__decorate)([n.attr],Mi.prototype,"fieldName",void 0),(0,i.__decorate)([n.attr],Mi.prototype,"label",void 0),(0,i.__decorate)([n.attr],Mi.prototype,"type",void 0),(0,i.__decorate)([n.attr],Mi.prototype,"target",void 0),(0,i.__decorate)([n.observable],Mi.prototype,"enumFilterOptions",void 0);const Ti=Mi.compose({baseName:"filter",template:Ri,styles:mi});var Ii=o(796);const Ei=(e,t)=>n.css`
|
|
1513
|
-
.filter-bar {
|
|
1514
|
-
background-color: #2c2f33;
|
|
1515
|
-
padding: calc(var(--design-unit) * 2px);
|
|
1516
|
-
transition: all 0.5s ease-out;
|
|
1517
|
-
}
|
|
1518
|
-
|
|
1519
|
-
.filter-grid {
|
|
1520
|
-
display: grid;
|
|
1521
|
-
grid-template-columns: repeat(3, 1fr);
|
|
1522
|
-
grid-auto-rows: minmax(64px, auto);
|
|
1523
|
-
gap: calc(var(--design-unit) * 1px);
|
|
1524
|
-
align-items: end;
|
|
1525
|
-
justify-items: stretch;
|
|
1526
|
-
}
|
|
1527
|
-
|
|
1528
|
-
.toggle {
|
|
1529
|
-
display: flex;
|
|
1530
|
-
justify-content: center;
|
|
1531
|
-
min-height: 20px;
|
|
1532
|
-
cursor: pointer;
|
|
1533
|
-
border-radius: calc(var(--control-corner-radius) * 1px) calc(var(--control-corner-radius) * 1px)
|
|
1534
|
-
0 0;
|
|
1535
|
-
border-top: 2px solid;
|
|
1536
|
-
color: #f44378;
|
|
1537
|
-
}
|
|
1538
|
-
|
|
1539
|
-
.collapsed {
|
|
1540
|
-
max-height: 0;
|
|
1541
|
-
padding: 0;
|
|
1542
|
-
overflow: hidden;
|
|
1543
|
-
}
|
|
1544
|
-
|
|
1545
|
-
.toggle-collapsed {
|
|
1546
|
-
color: #48ed9c;
|
|
1547
|
-
}
|
|
1548
|
-
`,Hi=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"}},ji=n.html`
|
|
1549
|
-
<p>Fetching metadata for ${e=>e.resource}...</p>
|
|
1550
|
-
`,Pi=n.html`
|
|
1551
|
-
${(0,n.when)((e=>e.collapsed),n.html`
|
|
1552
|
-
<foundation-icon name="arrow-up"></foundation-icon>
|
|
1553
|
-
`)}
|
|
1554
|
-
${(0,n.when)((e=>!e.collapsed),n.html`
|
|
1555
|
-
<foundation-icon name="arrow-down"></foundation-icon>
|
|
1556
|
-
`)}
|
|
1557
|
-
`,Bi=n.html`
|
|
1558
|
-
<div
|
|
1559
|
-
class=${e=>(0,l.A)(["toggle",!0],["toggle-collapsed",e.collapsed])}
|
|
1560
|
-
@click="${e=>e.toggle()}"
|
|
1561
|
-
>
|
|
1562
|
-
${Pi}
|
|
1563
|
-
</div>
|
|
1564
|
-
<div class=${e=>(0,l.A)(["filter-bar",!0],["collapsed",e.collapsed])}>
|
|
1565
|
-
<div class="filter-grid" ${(0,n.ref)("filterGrid")}>
|
|
1566
|
-
${(0,n.repeat)((e=>e.fields),n.html`
|
|
1567
|
-
<foundation-filter
|
|
1568
|
-
label="${e=>e.UI_LABEL}"
|
|
1569
|
-
target="${(e,t)=>{var o;return null===(o=t.parent)||void 0===o?void 0:o.target}}"
|
|
1570
|
-
type="${e=>Hi(e.TYPE)}"
|
|
1571
|
-
fieldName="${e=>e.NAME}"
|
|
1572
|
-
></foundation-filter>
|
|
1573
|
-
`)}
|
|
1574
|
-
</div>
|
|
1575
|
-
</div>
|
|
1576
|
-
`,Gi=n.html`
|
|
1577
|
-
${e=>e.ready?Bi:ji}
|
|
1578
|
-
`;class Vi extends s.I{constructor(){super(...arguments),this.columns=5,this.ready=!1,this.collapsed=!0}connectedCallback(){super.connectedCallback(),this.init()}initLabels(){var e,t,o,a,r;let i=!1,n=[];(null===(e=null==this?void 0:this.labels)||void 0===e?void 0:e.length)&&(n=null===(t=this.labels.split(","))||void 0===t?void 0:t.map((e=>e.trim())),i=(null===(o=this.fields)||void 0===o?void 0:o.length)===(null==n?void 0:n.length));for(let e=0;null!==(r=e<(null===(a=this.fields)||void 0===a?void 0:a.length))&&void 0!==r&&r;e+=1){const t=i?n[e]:this.camelCasePreserveWhitespace(this.fields[e].NAME.replace(/_/g," "));this.fields[e].UI_LABEL=t}}camelCasePreserveWhitespace(e){return e.split(" ").map((e=>(0,Ii.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=>Cr.error(e)))}adjustColumnStyles(){this.filterGrid&&(this.filterGrid.style["grid-template-columns"]=`repeat(${this.columns}, 1fr)`)}toggle(){this.ready&&(this.collapsed=!this.collapsed)}}(0,i.__decorate)([n.attr],Vi.prototype,"resource",void 0),(0,i.__decorate)([n.attr],Vi.prototype,"only",void 0),(0,i.__decorate)([n.attr],Vi.prototype,"labels",void 0),(0,i.__decorate)([n.attr],Vi.prototype,"target",void 0),(0,i.__decorate)([n.attr],Vi.prototype,"columns",void 0),(0,i.__decorate)([n.observable],Vi.prototype,"ready",void 0),(0,i.__decorate)([n.observable],Vi.prototype,"fields",void 0),(0,i.__decorate)([io.Connect],Vi.prototype,"connect",void 0),(0,i.__decorate)([n.observable],Vi.prototype,"collapsed",void 0);Vi.compose({baseName:"filter-bar",template:Gi,styles:Ei});const Ui=(e,t)=>n.css`
|
|
1579
|
-
${Ei()}
|
|
1580
|
-
.toggle,
|
|
1581
|
-
.toggle-collapsed {
|
|
1582
|
-
background: var(--ag-background-color, #181d1f);
|
|
1583
|
-
color: #ccc;
|
|
1584
|
-
}
|
|
1585
|
-
|
|
1586
|
-
.toggle:hover,
|
|
1587
|
-
.toggle-collapsed:hover {
|
|
1588
|
-
color: var(--ag-alpine-active-color, #2196f3);
|
|
1589
|
-
}
|
|
1590
|
-
`,Yi=n.html`
|
|
1591
|
-
${(0,n.when)((e=>e.collapsed),n.html`
|
|
1592
|
-
<zero-icon name="chevron-down"></zero-icon>
|
|
1593
|
-
`)}
|
|
1594
|
-
${(0,n.when)((e=>!e.collapsed),n.html`
|
|
1595
|
-
<zero-icon name="chevron-up"></zero-icon>
|
|
1596
|
-
`)}
|
|
1597
|
-
`,Wi=n.html`
|
|
1598
|
-
<div
|
|
1599
|
-
class=${e=>(0,l.A)(["toggle",!0],["toggle-collapsed",e.collapsed])}
|
|
1600
|
-
@click="${e=>e.toggle()}"
|
|
1601
|
-
>
|
|
1602
|
-
${Yi}
|
|
1603
|
-
</div>
|
|
1604
|
-
<div class=${e=>(0,l.A)(["filter-bar",!0],["collapsed",e.collapsed])}>
|
|
1605
|
-
<div class="filter-grid" ${(0,n.ref)("filterGrid")}>
|
|
1606
|
-
${(0,n.repeat)((e=>e.fields),n.html`
|
|
1607
|
-
<zero-filter
|
|
1608
|
-
label="${e=>e.UI_LABEL}"
|
|
1609
|
-
target="${(e,t)=>{var o;return null===(o=t.parent)||void 0===o?void 0:o.target}}"
|
|
1610
|
-
type="${e=>Hi(e.TYPE)}"
|
|
1611
|
-
fieldName="${e=>e.NAME}"
|
|
1612
|
-
enumOptions="${e=>e.VALID_VALUES}"
|
|
1613
|
-
/>
|
|
1614
|
-
`)}
|
|
1615
|
-
</div>
|
|
1616
|
-
</div>
|
|
1617
|
-
`,qi=n.html`
|
|
1618
|
-
${Wi}
|
|
1619
|
-
`;class Xi extends Vi{constructor(){super(...arguments),this.ready=super.ready,this.collapsed=!0}}(0,i.__decorate)([n.attr],Xi.prototype,"resource",void 0),(0,i.__decorate)([n.attr],Xi.prototype,"only",void 0),(0,i.__decorate)([n.attr],Xi.prototype,"labels",void 0),(0,i.__decorate)([n.attr],Xi.prototype,"target",void 0),(0,i.__decorate)([n.observable],Xi.prototype,"ready",void 0),(0,i.__decorate)([n.observable],Xi.prototype,"fields",void 0),(0,i.__decorate)([n.observable],Xi.prototype,"collapsed",void 0);const Zi=Xi.compose({baseName:"filter-bar",template:qi,styles:Ui});var Ki;!function(e){e.sm="(max-width: 640px)",e.md="(min-width: 641px) and (max-width: 1023px)",e.lg="(min-width: 1024px)"}(Ki||(Ki={}));const Ji=e=>{const t=e?`-${e}`:"";return n.css`
|
|
1620
|
-
${t&&`@media only screen and ${Ki[e]} {`}
|
|
1621
|
-
:host(.spacing${t}-1x) slot {
|
|
1622
|
-
gap: calc(var(--design-unit) * 2px);
|
|
1623
|
-
}
|
|
1624
|
-
|
|
1625
|
-
:host(.spacing${t}-2x) slot {
|
|
1626
|
-
gap: calc(var(--design-unit) * 4px);
|
|
1627
|
-
}
|
|
1628
|
-
|
|
1629
|
-
:host(.spacing${t}-3x) slot {
|
|
1630
|
-
gap: calc(var(--design-unit) * 6px);
|
|
1631
|
-
}
|
|
1632
|
-
|
|
1633
|
-
:host(.spacing${t}-4x) slot {
|
|
1634
|
-
gap: calc(var(--design-unit) * 8px);
|
|
1635
|
-
}
|
|
1636
|
-
|
|
1637
|
-
:host(.spacing${t}-5x) slot {
|
|
1638
|
-
gap: calc(var(--design-unit) * 10px);
|
|
1639
|
-
}
|
|
1640
|
-
|
|
1641
|
-
:host(.spacing${t}-6x) slot {
|
|
1642
|
-
gap: calc(var(--design-unit) * 12px);
|
|
1643
|
-
}
|
|
1644
|
-
|
|
1645
|
-
:host(.flex${t}-column) slot {
|
|
1646
|
-
flex-direction: column;
|
|
1647
|
-
}
|
|
1648
|
-
|
|
1649
|
-
:host(.flex${t}-column-reverse) slot {
|
|
1650
|
-
flex-direction: column-reverse;
|
|
1651
|
-
}
|
|
1652
|
-
|
|
1653
|
-
:host(.flex${t}-row) slot {
|
|
1654
|
-
flex-direction: row;
|
|
1655
|
-
}
|
|
1656
|
-
|
|
1657
|
-
:host(.flex${t}-row-reverse) slot {
|
|
1658
|
-
flex-direction: row-reverse;
|
|
1659
|
-
}
|
|
1660
|
-
|
|
1661
|
-
:host(.flex${t}-wrap) slot {
|
|
1662
|
-
flex-wrap: wrap;
|
|
1663
|
-
}
|
|
1664
|
-
|
|
1665
|
-
:host(.flex${t}-wrap-reverse) slot {
|
|
1666
|
-
flex-wrap: wrap-reverse;
|
|
1667
|
-
}
|
|
1668
|
-
|
|
1669
|
-
:host(.justify${t}-start) slot {
|
|
1670
|
-
justify-content: flex-start;
|
|
1671
|
-
}
|
|
1672
|
-
|
|
1673
|
-
:host(.justify${t}-end) slot {
|
|
1674
|
-
justify-content: flex-end;
|
|
1675
|
-
}
|
|
1676
|
-
|
|
1677
|
-
:host(.justify${t}-center) slot {
|
|
1678
|
-
justify-content: center;
|
|
1679
|
-
}
|
|
1680
|
-
|
|
1681
|
-
:host(.justify${t}-between) slot {
|
|
1682
|
-
justify-content: space-between;
|
|
1683
|
-
}
|
|
1684
|
-
|
|
1685
|
-
:host(.justify${t}-around) slot {
|
|
1686
|
-
justify-content: space-around;
|
|
1687
|
-
}
|
|
1688
|
-
|
|
1689
|
-
:host(.justify${t}-evenly) slot {
|
|
1690
|
-
justify-content: space-evenly;
|
|
1691
|
-
}
|
|
1692
|
-
|
|
1693
|
-
:host(.items${t}-start) slot {
|
|
1694
|
-
align-items: flex-start;
|
|
1695
|
-
}
|
|
1696
|
-
|
|
1697
|
-
:host(.items${t}-end) slot {
|
|
1698
|
-
align-items: flex-end;
|
|
1699
|
-
}
|
|
1700
|
-
|
|
1701
|
-
:host(.items${t}-center) slot {
|
|
1702
|
-
align-items: center;
|
|
1703
|
-
}
|
|
1704
|
-
|
|
1705
|
-
:host(.items${t}-stretch) slot {
|
|
1706
|
-
align-items: stretch;
|
|
1707
|
-
}
|
|
1708
|
-
|
|
1709
|
-
:host(.items${t}-baseline) slot {
|
|
1710
|
-
align-items: baseline;
|
|
1711
|
-
}
|
|
1712
|
-
|
|
1713
|
-
:host(.content${t}-start) slot {
|
|
1714
|
-
align-content: flex-start;
|
|
1715
|
-
}
|
|
1716
|
-
|
|
1717
|
-
:host(.content${t}-end) slot {
|
|
1718
|
-
align-content: flex-end;
|
|
1719
|
-
}
|
|
1720
|
-
|
|
1721
|
-
:host(.content${t}-center) slot {
|
|
1722
|
-
align-content: center;
|
|
1723
|
-
}
|
|
1724
|
-
|
|
1725
|
-
:host(.content${t}-between) slot {
|
|
1726
|
-
align-content: space-between;
|
|
1727
|
-
}
|
|
1728
|
-
|
|
1729
|
-
:host(.content${t}-around) slot {
|
|
1730
|
-
align-content: space-around;
|
|
1731
|
-
}
|
|
1732
|
-
|
|
1733
|
-
:host(.content${t}-evenly) slot {
|
|
1734
|
-
align-content: space-evenly;
|
|
1735
|
-
}
|
|
1736
|
-
${t&&"}"}
|
|
1737
|
-
`},Qi=n.css`
|
|
1738
|
-
:host {
|
|
1739
|
-
width: 100%;
|
|
1740
|
-
height: 100%;
|
|
1741
|
-
}
|
|
1742
|
-
|
|
1743
|
-
slot {
|
|
1744
|
-
width: 100%;
|
|
1745
|
-
height: 100%;
|
|
1746
|
-
display: flex;
|
|
1747
|
-
}
|
|
1748
|
-
|
|
1749
|
-
${Ji()}
|
|
1750
|
-
${Ji("lg")}
|
|
1751
|
-
${Ji("md")}
|
|
1752
|
-
${Ji("sm")}
|
|
1753
|
-
`,en=n.html`
|
|
1754
|
-
<template>
|
|
1755
|
-
<slot></slot>
|
|
1756
|
-
</template>
|
|
1757
|
-
`,tn=void 0,on={};class an extends s.I{}an.compose(Object.assign({baseName:"flex-layout",styles:Qi,template:en,shadowOptions:tn},on));class rn extends an{}const nn=rn.compose(Object.assign({baseName:"flex-layout",shadowOptions:tn,styles:Qi,template:en},on));var sn=o(5160);const ln=(e,t)=>(0,sn._)(e,t),cn=(e,t)=>n.css`
|
|
1758
|
-
${(0,g.flipperStyles)(e,t)}
|
|
1759
|
-
`;class dn extends g.Flipper{}const pn=void 0,un={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 '},hn=(dn.compose(Object.assign({baseName:"flipper",template:ln,styles:cn,shadowOptions:pn},un)),(e,t)=>ln(e,t)),mn=(e,t)=>n.css`
|
|
1760
|
-
${cn(e,t)}
|
|
1761
|
-
:host {
|
|
1762
|
-
--foreground-on-accent-rest: ${k.white};
|
|
1763
|
-
--foreground-on-accent-hover: ${k.white};
|
|
1764
|
-
--foreground-on-accent-active: ${k.white};
|
|
1765
|
-
--primary-gradient-angle: -113.5deg;
|
|
1766
|
-
}
|
|
1767
|
-
|
|
1768
|
-
:host::before {
|
|
1769
|
-
background: linear-gradient(
|
|
1770
|
-
var(--primary-gradient-angle),
|
|
1771
|
-
${G(.7)},
|
|
1772
|
-
${W(.7)}
|
|
1773
|
-
);
|
|
1774
|
-
}
|
|
1775
|
-
|
|
1776
|
-
:host(:hover)::before {
|
|
1777
|
-
background: linear-gradient(
|
|
1778
|
-
var(--primary-gradient-angle),
|
|
1779
|
-
${S.blue},
|
|
1780
|
-
${S.purple}
|
|
1781
|
-
);
|
|
1782
|
-
}
|
|
1783
|
-
`;class gn extends dn{}const vn=gn.compose(Object.assign({baseName:"flipper",template:hn,styles:mn,shadowOptions:pn},un)),bn=n.html`
|
|
1784
|
-
<template ?closed=${e=>e.closed} ?visuallyhidden=${e=>e.visuallyhidden}>
|
|
1785
|
-
<div class="container">
|
|
1786
|
-
<div class="background" @click=${e=>e.closeFlyout()}></div>
|
|
1787
|
-
<div class="flyout" @transitionend=${e=>e.closingFinished()}>
|
|
1788
|
-
<div class="header">
|
|
1789
|
-
<div class="title">
|
|
1790
|
-
<slot name="title"></slot>
|
|
1791
|
-
</div>
|
|
1792
|
-
<div class="exit" @click=${e=>e.closeFlyout()}>
|
|
1793
|
-
<zero-icon name="times"></zero-icon>
|
|
1794
|
-
</div>
|
|
1795
|
-
</div>
|
|
1796
|
-
<div class="content">
|
|
1797
|
-
<slot></slot>
|
|
1798
|
-
</div>
|
|
1799
|
-
<div class="footer">
|
|
1800
|
-
<slot name="footer"></slot>
|
|
1801
|
-
</div>
|
|
1802
|
-
</div>
|
|
1803
|
-
</div>
|
|
1804
|
-
</template>
|
|
1805
|
-
`,fn=n.css`
|
|
1806
|
-
/* Host */
|
|
1807
|
-
:host {
|
|
1808
|
-
display: inline-block;
|
|
1809
|
-
height: 100vh;
|
|
1810
|
-
position: absolute;
|
|
1811
|
-
width: 100vw;
|
|
1812
|
-
}
|
|
1813
|
-
|
|
1814
|
-
:host([closed]) {
|
|
1815
|
-
display: none;
|
|
1816
|
-
}
|
|
1817
|
-
|
|
1818
|
-
div.container {
|
|
1819
|
-
height: 100%;
|
|
1820
|
-
width: 100%;
|
|
1821
|
-
}
|
|
1822
|
-
|
|
1823
|
-
/* flyout */
|
|
1824
|
-
div.flyout {
|
|
1825
|
-
background-color: white;
|
|
1826
|
-
color: black;
|
|
1827
|
-
height: 100%;
|
|
1828
|
-
position: absolute;
|
|
1829
|
-
/* stylelint-disable-next-line function-name-case */
|
|
1830
|
-
transition: transform ${225..toString()}ms ease-in;
|
|
1831
|
-
width: 20%;
|
|
1832
|
-
z-index: 2001;
|
|
1833
|
-
}
|
|
1834
|
-
|
|
1835
|
-
:host([position='left']) div.flyout {
|
|
1836
|
-
left: 0;
|
|
1837
|
-
transform: translateX(0%);
|
|
1838
|
-
}
|
|
1839
|
-
|
|
1840
|
-
:host([position='right']) div.flyout {
|
|
1841
|
-
right: 0;
|
|
1842
|
-
transform: translateX(0%);
|
|
1843
|
-
}
|
|
1844
|
-
|
|
1845
|
-
:host([visuallyhidden][position='left']) div.flyout {
|
|
1846
|
-
left: 0;
|
|
1847
|
-
transform: translateX(-100%);
|
|
1848
|
-
}
|
|
1849
|
-
|
|
1850
|
-
:host([visuallyhidden][position='right']) div.flyout {
|
|
1851
|
-
right: 0;
|
|
1852
|
-
transform: translateX(100%);
|
|
1853
|
-
}
|
|
1854
|
-
|
|
1855
|
-
div.header {
|
|
1856
|
-
align-items: center;
|
|
1857
|
-
display: flex;
|
|
1858
|
-
padding: calc(var(--design-unit) * 3px) calc(var(--design-unit) * 2px);
|
|
1859
|
-
}
|
|
1860
|
-
|
|
1861
|
-
div.title {
|
|
1862
|
-
flex-grow: 1;
|
|
1863
|
-
}
|
|
1864
|
-
|
|
1865
|
-
div.header zero-icon {
|
|
1866
|
-
cursor: pointer;
|
|
1867
|
-
}
|
|
1868
|
-
|
|
1869
|
-
div.footer {
|
|
1870
|
-
bottom: 0;
|
|
1871
|
-
position: absolute;
|
|
1872
|
-
width: 100%;
|
|
1873
|
-
}
|
|
1874
|
-
|
|
1875
|
-
/* Background */
|
|
1876
|
-
div.background {
|
|
1877
|
-
background-color: black;
|
|
1878
|
-
height: 100%;
|
|
1879
|
-
opacity: 50%;
|
|
1880
|
-
position: absolute;
|
|
1881
|
-
/* stylelint-disable-next-line function-name-case */
|
|
1882
|
-
transition: opacity ${225..toString()}ms linear;
|
|
1883
|
-
width: 100%;
|
|
1884
|
-
z-index: 2000;
|
|
1885
|
-
}
|
|
1886
|
-
|
|
1887
|
-
:host([visuallyhidden]) div.background {
|
|
1888
|
-
opacity: 0%;
|
|
1889
|
-
}
|
|
1890
|
-
`;class yn extends s.I{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,i.__decorate)([n.attr],yn.prototype,"position",void 0),(0,i.__decorate)([(0,n.attr)({mode:"boolean"})],yn.prototype,"closed",void 0),(0,i.__decorate)([(0,n.attr)({mode:"boolean"})],yn.prototype,"visuallyhidden",void 0);const xn=void 0,$n={},wn=(yn.compose(Object.assign({baseName:"flyout",styles:fn,template:bn,shadowOptions:xn},$n)),n.css`
|
|
1891
|
-
${fn}
|
|
1892
|
-
div.flyout {
|
|
1893
|
-
background-color: ${g.neutralLayer2};
|
|
1894
|
-
border-color: ${g.neutralFillHover};
|
|
1895
|
-
color: ${g.neutralForegroundRest};
|
|
1896
|
-
}
|
|
1897
|
-
|
|
1898
|
-
:host([position='left']) div.flyout {
|
|
1899
|
-
border-right-style: solid;
|
|
1900
|
-
border-right-width: 1px;
|
|
1901
|
-
}
|
|
1902
|
-
|
|
1903
|
-
:host([position='right']) div.flyout {
|
|
1904
|
-
border-left-style: solid;
|
|
1905
|
-
border-left-width: 1px;
|
|
1906
|
-
}
|
|
1907
|
-
|
|
1908
|
-
div.exit {
|
|
1909
|
-
cursor: pointer;
|
|
1910
|
-
padding: 5px 8px;
|
|
1911
|
-
}
|
|
1912
|
-
|
|
1913
|
-
div.exit:hover {
|
|
1914
|
-
background-color: ${g.neutralFillHover};
|
|
1915
|
-
border-radius: 3px;
|
|
1916
|
-
}
|
|
1917
|
-
`),Fn=$n,kn=xn;class Sn extends yn{}const On=Sn.compose(Object.assign({baseName:"flyout",shadowOptions:kn,styles:wn,template:bn},Fn));var Dn;!function(e){e.sm="(max-width: 640px)",e.md="(min-width: 641px) and (max-width: 1023px)",e.lg="(min-width: 1024px)"}(Dn||(Dn={}));const zn=e=>{const t=e?`-${e}`:"";return n.css`
|
|
1918
|
-
${t&&`@media only screen and ${Dn[e]} {`}
|
|
1919
|
-
:host(.spacing${t}-1x) slot {
|
|
1920
|
-
gap: calc(var(--design-unit) * 2px);
|
|
1921
|
-
}
|
|
1922
|
-
|
|
1923
|
-
:host(.spacing${t}-2x) slot {
|
|
1924
|
-
gap: calc(var(--design-unit) * 4px);
|
|
1925
|
-
}
|
|
1926
|
-
|
|
1927
|
-
:host(.spacing${t}-3x) slot {
|
|
1928
|
-
gap: calc(var(--design-unit) * 6px);
|
|
1929
|
-
}
|
|
1930
|
-
|
|
1931
|
-
:host(.spacing${t}-4x) slot {
|
|
1932
|
-
gap: calc(var(--design-unit) * 8px);
|
|
1933
|
-
}
|
|
1934
|
-
|
|
1935
|
-
:host(.spacing${t}-5x) slot {
|
|
1936
|
-
gap: calc(var(--design-unit) * 10px);
|
|
1937
|
-
}
|
|
1938
|
-
|
|
1939
|
-
:host(.spacing${t}-6x) slot {
|
|
1940
|
-
gap: calc(var(--design-unit) * 12px);
|
|
1941
|
-
}
|
|
1942
|
-
|
|
1943
|
-
:host(.flow${t}-row) slot {
|
|
1944
|
-
grid-auto-flow: row;
|
|
1945
|
-
}
|
|
1946
|
-
|
|
1947
|
-
:host(.flow${t}-column) slot {
|
|
1948
|
-
grid-auto-flow: column;
|
|
1949
|
-
}
|
|
1950
|
-
|
|
1951
|
-
:host(.flow${t}-row-dense) slot {
|
|
1952
|
-
grid-auto-flow: row dense;
|
|
1953
|
-
}
|
|
1954
|
-
|
|
1955
|
-
:host(.flow${t}-column-dense) slot {
|
|
1956
|
-
grid-auto-flow: column dense;
|
|
1957
|
-
}
|
|
1958
|
-
|
|
1959
|
-
:host(.content${t}-center) slot {
|
|
1960
|
-
place-content: center;
|
|
1961
|
-
}
|
|
1962
|
-
|
|
1963
|
-
:host(.content${t}-start) slot {
|
|
1964
|
-
place-content: start;
|
|
1965
|
-
}
|
|
1966
|
-
|
|
1967
|
-
:host(.content${t}-end) slot {
|
|
1968
|
-
place-content: end;
|
|
1969
|
-
}
|
|
1970
|
-
|
|
1971
|
-
:host(.content${t}-between) slot {
|
|
1972
|
-
place-content: space-between;
|
|
1973
|
-
}
|
|
1974
|
-
|
|
1975
|
-
:host(.content${t}-around) slot {
|
|
1976
|
-
place-content: space-around;
|
|
1977
|
-
}
|
|
1978
|
-
|
|
1979
|
-
:host(.content${t}-evenly) slot {
|
|
1980
|
-
place-content: space-evenly;
|
|
1981
|
-
}
|
|
1982
|
-
|
|
1983
|
-
:host(.content${t}-stretch) slot {
|
|
1984
|
-
place-content: stretch;
|
|
1985
|
-
}
|
|
1986
|
-
|
|
1987
|
-
:host(.place${t}-items-start) slot {
|
|
1988
|
-
place-items: start;
|
|
1989
|
-
}
|
|
1990
|
-
|
|
1991
|
-
:host(.place${t}-items-end) slot {
|
|
1992
|
-
place-items: end;
|
|
1993
|
-
}
|
|
1994
|
-
|
|
1995
|
-
:host(.place${t}-items-center) slot {
|
|
1996
|
-
place-items: center;
|
|
1997
|
-
}
|
|
1998
|
-
|
|
1999
|
-
:host(.place${t}-items-stretch) slot {
|
|
2000
|
-
place-items: stretch;
|
|
2001
|
-
}
|
|
2002
|
-
${t&&"}"}
|
|
2003
|
-
`},_n=n.css`
|
|
2004
|
-
slot {
|
|
2005
|
-
width: 100%;
|
|
2006
|
-
height: 100%;
|
|
2007
|
-
display: grid;
|
|
2008
|
-
}
|
|
2009
|
-
|
|
2010
|
-
${zn()}
|
|
2011
|
-
${zn("lg")}
|
|
2012
|
-
${zn("md")}
|
|
2013
|
-
${zn("sm")}
|
|
2014
|
-
`,Cn=n.html`
|
|
2015
|
-
<template>
|
|
2016
|
-
<slot></slot>
|
|
2017
|
-
</template>
|
|
2018
|
-
`,Nn=void 0,Ln={};class An{constructor(e,t,o,a="1fr",r="1fr"){this.listenerCache=new WeakMap,this.query=window.matchMedia(e);const i=t&&n.cssPartial`grid-template-columns: repeat(${t}, ${a});`,s=o&&n.cssPartial`grid-template-rows: repeat(${o}, ${r});`;this.styles=n.css`
|
|
2019
|
-
slot {
|
|
2020
|
-
${s||""}
|
|
2021
|
-
${i||""}
|
|
2022
|
-
}
|
|
2023
|
-
`}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 Rn extends s.I{constructor(){super(...arguments),this.behaviors=[]}connectedCallback(){super.connectedCallback(),this.behaviors=Object.keys(Dn).map((e=>{if(this[`col-${e}-count`]||this[`row-${e}-count`])return new An(Dn[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"]&&n.cssPartial`grid-template-rows: repeat(${this["row-count"]}, ${this["row-height"]||"1fr"});`,t=this["col-count"]&&n.cssPartial`grid-template-columns: repeat(${this["col-count"]}, ${this["col-width"]||"1fr"});`;this.baseStyles=n.css`
|
|
2024
|
-
slot {
|
|
2025
|
-
${e||""}
|
|
2026
|
-
${t||""}
|
|
2027
|
-
}
|
|
2028
|
-
`,this.$fastController.addStyles(this.baseStyles),this.$fastController.addBehaviors(this.behaviors)}disconnectedCallback(){super.disconnectedCallback(),this.$fastController.removeBehaviors(this.behaviors),this.$fastController.removeStyles(this.baseStyles)}}(0,i.__decorate)([n.attr],Rn.prototype,"col-count",void 0),(0,i.__decorate)([n.attr],Rn.prototype,"col-width",void 0),(0,i.__decorate)([n.attr],Rn.prototype,"col-lg-count",void 0),(0,i.__decorate)([n.attr],Rn.prototype,"col-lg-width",void 0),(0,i.__decorate)([n.attr],Rn.prototype,"col-md-count",void 0),(0,i.__decorate)([n.attr],Rn.prototype,"col-md-width",void 0),(0,i.__decorate)([n.attr],Rn.prototype,"col-sm-count",void 0),(0,i.__decorate)([n.attr],Rn.prototype,"col-sm-width",void 0),(0,i.__decorate)([n.attr],Rn.prototype,"row-count",void 0),(0,i.__decorate)([n.attr],Rn.prototype,"row-height",void 0),(0,i.__decorate)([n.attr],Rn.prototype,"row-lg-count",void 0),(0,i.__decorate)([n.attr],Rn.prototype,"row-lg-height",void 0),(0,i.__decorate)([n.attr],Rn.prototype,"row-md-count",void 0),(0,i.__decorate)([n.attr],Rn.prototype,"row-md-height",void 0),(0,i.__decorate)([n.attr],Rn.prototype,"row-sm-count",void 0),(0,i.__decorate)([n.attr],Rn.prototype,"row-sm-height",void 0);Rn.compose(Object.assign({baseName:"grid-layout",styles:_n,template:Cn,shadowOptions:Nn},Ln));class Mn extends Rn{}const Tn=Mn.compose(Object.assign({baseName:"grid-layout",shadowOptions:Nn,styles:_n,template:Cn},Ln)),In=n.html`
|
|
2029
|
-
<template>
|
|
2030
|
-
<style>
|
|
2031
|
-
:host {
|
|
2032
|
-
width: 100%;
|
|
2033
|
-
height: 100%;
|
|
2034
|
-
${e=>e.setGridItemProperties(e.colNumber,e.rowNumber,e.width,e.height)}
|
|
2035
|
-
}
|
|
2036
|
-
|
|
2037
|
-
@media only screen and (min-width: 1025px) {
|
|
2038
|
-
:host {
|
|
2039
|
-
${e=>e.setGridItemProperties(e.colLgNumber,e.rowLgNumber,e.widthLg,e.heightLg)}
|
|
2040
|
-
}
|
|
2041
|
-
}
|
|
2042
|
-
|
|
2043
|
-
@media only screen and (min-width: 641px) and (max-width: 1024px) {
|
|
2044
|
-
:host {
|
|
2045
|
-
${e=>e.setGridItemProperties(e.colMdNumber,e.rowMdNumber,e.widthSm,e.heightMd)}
|
|
2046
|
-
}
|
|
2047
|
-
}
|
|
2048
|
-
|
|
2049
|
-
@media only screen and (max-width: 640px) {
|
|
2050
|
-
:host {
|
|
2051
|
-
${e=>e.setGridItemProperties(e.colSmNumber,e.rowSmNumber,e.widthSm,e.heightSm)}
|
|
2052
|
-
}
|
|
2053
|
-
}
|
|
2054
|
-
</style>
|
|
2055
|
-
<slot></slot>
|
|
2056
|
-
</template>
|
|
2057
|
-
`,En=void 0,Hn={};class jn extends s.I{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,i.__decorate)([(0,n.attr)({attribute:"col-number"})],jn.prototype,"colNumber",void 0),(0,i.__decorate)([(0,n.attr)({attribute:"col-sm-number"})],jn.prototype,"colSmNumber",void 0),(0,i.__decorate)([(0,n.attr)({attribute:"col-md-number"})],jn.prototype,"colMdNumber",void 0),(0,i.__decorate)([(0,n.attr)({attribute:"col-lg-number"})],jn.prototype,"colLgNumber",void 0),(0,i.__decorate)([(0,n.attr)({attribute:"row-number"})],jn.prototype,"rowNumber",void 0),(0,i.__decorate)([(0,n.attr)({attribute:"row-sm-number"})],jn.prototype,"rowSmNumber",void 0),(0,i.__decorate)([(0,n.attr)({attribute:"row-md-number"})],jn.prototype,"rowMdNumber",void 0),(0,i.__decorate)([(0,n.attr)({attribute:"row-lg-number"})],jn.prototype,"rowLgNumber",void 0),(0,i.__decorate)([(0,n.attr)({attribute:"width"})],jn.prototype,"width",void 0),(0,i.__decorate)([(0,n.attr)({attribute:"width-sm"})],jn.prototype,"widthSm",void 0),(0,i.__decorate)([(0,n.attr)({attribute:"width-md"})],jn.prototype,"widthMd",void 0),(0,i.__decorate)([(0,n.attr)({attribute:"width-lg"})],jn.prototype,"widthLg",void 0),(0,i.__decorate)([(0,n.attr)({attribute:"height"})],jn.prototype,"height",void 0),(0,i.__decorate)([(0,n.attr)({attribute:"height-sm"})],jn.prototype,"heightSm",void 0),(0,i.__decorate)([(0,n.attr)({attribute:"height-md"})],jn.prototype,"heightMd",void 0),(0,i.__decorate)([(0,n.attr)({attribute:"height-lg"})],jn.prototype,"heightLg",void 0);jn.compose(Object.assign({baseName:"grid-layout-item",template:In,shadowOptions:En},Hn));class Pn extends jn{}const Bn=Pn.compose(Object.assign({baseName:"grid-layout-item",shadowOptions:En,template:In},Hn)),Gn=n.html`
|
|
2058
|
-
<template>
|
|
2059
|
-
<i ${(0,n.ref)("iElement")} class=${e=>`fa-${e.variant} fa-${e.name} fa-${e.size}`}>
|
|
2060
|
-
<slot></slot>
|
|
2061
|
-
</i>
|
|
2062
|
-
</template>
|
|
2063
|
-
`;var Vn=o(6531),Un=o(3719),Yn=o(8160),Wn=o(723);const qn=(e,t)=>n.css`
|
|
2064
|
-
${Vn.vI.add(Un.mRB,Yn.NCV,Wn.vnX),Vn.vz.css()}
|
|
2065
|
-
`,Xn={mode:"open",delegatesFocus:!0},Zn={};var Kn;!function(e){e.solid="fas",e.regular="far",e.brand="fab"}(Kn||(Kn={}));class Jn extends s.I{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,Vn.N)({prefix:Kn[this.variant],iconName:this.name}),t=(0,Vn.qv)(e);t&&t.node&&Array.from(t.node).map((e=>this.iElement.appendChild(e)))}}(0,i.__decorate)([n.observable],Jn.prototype,"iElement",void 0),(0,i.__decorate)([n.attr],Jn.prototype,"variant",void 0),(0,i.__decorate)([n.attr],Jn.prototype,"name",void 0),(0,i.__decorate)([n.attr],Jn.prototype,"size",void 0);Jn.compose(Object.assign({baseName:"icon",template:Gn,styles:qn,shadowOptions:Xn},Zn));const Qn=(e,t)=>n.css`
|
|
2066
|
-
${qn()}
|
|
2067
|
-
`;class es extends Jn{}const ts=Zn,os=Xn,as=es.compose(Object.assign({baseName:"icon",template:Gn,styles:Qn,shadowOptions:os},ts));var rs=o(7564);const is=(e,t)=>(0,rs.T)(e,t),ns=(e,t)=>n.css`
|
|
2068
|
-
${(0,g.optionStyles)(e,t)}
|
|
2069
|
-
`;class ss extends g.ListboxOption{}const ls=void 0,cs={},ds=(ss.compose(Object.assign({baseName:"option",template:is,styles:ns,shadowOptions:ls},cs)),(e,t)=>is(e,t)),ps=(e,t)=>n.css`
|
|
2070
|
-
${ns(e,t)}
|
|
2071
|
-
:host {
|
|
2072
|
-
background-color: ${k.darkGrey};
|
|
2073
|
-
margin: 0;
|
|
2074
|
-
border-radius: 0;
|
|
2075
|
-
border: 1px solid ${k.lightGrey};
|
|
2076
|
-
}
|
|
2077
|
-
|
|
2078
|
-
:host(:hover:not([disabled])) {
|
|
2079
|
-
background-color: ${k.mediumGrey};
|
|
2080
|
-
}
|
|
2081
|
-
|
|
2082
|
-
:host(.selected) {
|
|
2083
|
-
background-color: ${k.darkerGrey};
|
|
2084
|
-
color: ${S.blue};
|
|
2085
|
-
}
|
|
2086
|
-
`;class us extends ss{}const hs=us.compose(Object.assign({baseName:"option",template:ds,styles:ps,shadowOptions:ls},cs));var ms=o(3142);const gs=(e,t)=>(0,ms.K)(e,t),vs=(e,t)=>n.css`
|
|
2087
|
-
${(0,g.menuStyles)(e,t)}
|
|
2088
|
-
`;class bs extends g.Menu{}const fs=void 0,ys=(bs.compose(Object.assign({baseName:"menu",template:gs,styles:vs,shadowOptions:fs},{})),fs);class xs extends bs{}const $s=xs.compose({baseName:"menu",template:gs,styles:(e,t)=>n.css`
|
|
2089
|
-
${vs(e,t)}
|
|
2090
|
-
|
|
2091
|
-
:host {
|
|
2092
|
-
padding: 0;
|
|
2093
|
-
}
|
|
2094
|
-
`,shadowOptions:ys});var ws=o(8828);const Fs=(e,t)=>(0,ws.Z)(e,t),ks=(e,t)=>n.css`
|
|
2095
|
-
${(0,g.menuItemStyles)(e,t)}
|
|
2096
|
-
`;class Ss extends g.MenuItem{connectedCallback(){super.connectedCallback(),this.addEventListener("click",(()=>this.$emit("onMenuClick")))}}const Os=void 0,Ds={expandCollapseGlyph:'\n <svg \n class="expand-collapse-glyph"\n part="expand-collapse-glyph" \n viewBox="0 0 16 16" \n xmlns="http://www.w3.org/2000/svg">\n <path\n d="M4.023 15.273L11.29 8 4.023.727l.704-.704L12.71 8l-7.984 7.977-.704-.704z"\n />\n </svg>\n '},zs=(Ss.compose(Object.assign({baseName:"menu-item",template:Fs,styles:ks,shadowOptions:Os},Ds)),(e,t)=>n.css`
|
|
2097
|
-
${ks(e,t)}
|
|
2098
|
-
|
|
2099
|
-
:host {
|
|
2100
|
-
background: none;
|
|
2101
|
-
margin: 0;
|
|
2102
|
-
}
|
|
2103
|
-
`),_s=Os;class Cs extends Ss{}const Ns=Cs.compose(Object.assign({baseName:"menu-item",template:Fs,styles:zs,shadowOptions:_s},Ds)),Ls=n.css`
|
|
2104
|
-
${ua}
|
|
2105
|
-
`,As=n.html`
|
|
2106
|
-
${ma}
|
|
2107
|
-
`,Rs={mode:"open",delegatesFocus:!0},Ms={};class Ts extends ba{show(){this.onShowCallback&&this.onShowCallback(),this.mainElement.showModal()}}Ts.compose(Object.assign({baseName:"modal",styles:Ls,template:As,shadowOptions:Rs},Ms));const Is=n.css`
|
|
2108
|
-
${$a}
|
|
2109
|
-
`,Es=Ms,Hs=As,js=Rs;class Ps extends Ts{}const Bs=Ps.compose(Object.assign({baseName:"modal",shadowOptions:js,styles:Is,template:Hs},Es));var Gs=o(9775);const Vs=(e="foundation")=>n.html`
|
|
2110
|
-
<label
|
|
2111
|
-
part="label"
|
|
2112
|
-
for="control"
|
|
2113
|
-
class="${e=>e.defaultSlottedNodes&&e.defaultSlottedNodes.length?"label":"label label__hidden"}"
|
|
2114
|
-
>
|
|
2115
|
-
<slot
|
|
2116
|
-
${(0,n.slotted)({property:"defaultSlottedNodes",filter:Gs.E})}
|
|
2117
|
-
></slot>
|
|
2118
|
-
</label>
|
|
2119
|
-
<div class="root">
|
|
2120
|
-
<div class="control">
|
|
2121
|
-
<svg
|
|
2122
|
-
${(0,n.ref)("arrowIcon")}
|
|
2123
|
-
@click=${e=>e.toggle()}
|
|
2124
|
-
id="arrow-icon"
|
|
2125
|
-
version="1.1"
|
|
2126
|
-
xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
2127
|
-
width="16px"
|
|
2128
|
-
height="10px"
|
|
2129
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
2130
|
-
>
|
|
2131
|
-
<g transform="matrix(1 0 0 1 -357 -108 )">
|
|
2132
|
-
<path
|
|
2133
|
-
d="M 15.839679358717452 7.564483924860394 C 15.94655978623915 7.670429077869895 16 7.792266003830264 16 7.929994702742739 C 16 8.06772340165439 15.94655978623915 8.189560327615172 15.839679358717452 8.295505480624673 L 15.038076152304509 9.090094128194075 C 14.93119572478281 9.196039281203163 14.808283233132897 9.249011857707707 14.669338677354567 9.249011857707707 C 14.53039412157644 9.249011857707707 14.407481629926528 9.196039281203163 14.300601202404827 9.090094128194075 L 8 2.84462735829865 L 1.6993987975951717 9.090094128194075 C 1.592518370073473 9.196039281203163 1.46960587842356 9.249011857707707 1.3306613226454322 9.249011857707707 C 1.1917167668671027 9.249011857707707 1.0688042752171896 9.196039281203163 0.9619238476954908 9.090094128194075 L 0.1603206412825481 8.295505480624673 C 0.05344021376084937 8.189560327615172 0 8.06772340165439 0 7.929994702742739 C 0 7.792266003830264 0.05344021376084937 7.670429077869895 0.1603206412825481 7.564483924860394 L 7.631262525050058 0.15891772951363237 C 7.738142952571757 0.05297257650454412 7.861055444221872 0 8 0 C 8.138944555778128 0 8.261857047428244 0.05297257650454412 8.368737474949942 0.15891772951363237 L 15.839679358717452 7.564483924860394 Z "
|
|
2134
|
-
fill-rule="nonzero"
|
|
2135
|
-
fill="white"
|
|
2136
|
-
stroke="none"
|
|
2137
|
-
transform="matrix(1 0 0 1 357 108 )"
|
|
2138
|
-
/>
|
|
2139
|
-
</g>
|
|
2140
|
-
</svg>
|
|
2141
|
-
<input
|
|
2142
|
-
readonly
|
|
2143
|
-
type="text"
|
|
2144
|
-
id="display-field"
|
|
2145
|
-
:value="${e=>e.getDisplayValue}"
|
|
2146
|
-
@click=${e=>e.toggle()}
|
|
2147
|
-
/>
|
|
2148
|
-
</div>
|
|
2149
|
-
<div ${(0,n.ref)("optionsElement")} class="options">
|
|
2150
|
-
${(0,n.when)((e=>e.search),n.html`
|
|
2151
|
-
<${e}-text-field
|
|
2152
|
-
id="filter-search"
|
|
2153
|
-
placeholder="${e=>e.getPlaceholder}"
|
|
2154
|
-
@input=${(e,t)=>e.setFilter(t.event)}
|
|
2155
|
-
@change=${(e,t)=>e.changeHandler(t.event)}
|
|
2156
|
-
></${e}-text-field>
|
|
2157
|
-
`)}
|
|
2158
|
-
<div class="checkbox-container">
|
|
2159
|
-
${(0,n.when)((e=>e.all),n.html`
|
|
2160
|
-
<${e}-checkbox
|
|
2161
|
-
@click=${e=>e.selectCheckboxAll()}
|
|
2162
|
-
@change=${(e,t)=>e.changeHandler(t.event)}
|
|
2163
|
-
?current-checked="${e=>e.isAllSelected}"
|
|
2164
|
-
>
|
|
2165
|
-
All ${e=>e.name}
|
|
2166
|
-
</${e}-checkbox>
|
|
2167
|
-
`)}
|
|
2168
|
-
${(0,n.repeat)((e=>e.filteredAvailableOptions),n.html`
|
|
2169
|
-
<${e}-checkbox
|
|
2170
|
-
@click=${(e,t)=>t.parent.selectCheckboxOne(e)}
|
|
2171
|
-
@change=${(e,t)=>t.parent.changeHandler(t.event)}
|
|
2172
|
-
?current-checked="${(e,t)=>t.parent.isOptionSelected(e)}"
|
|
2173
|
-
>
|
|
2174
|
-
${e=>e}
|
|
2175
|
-
</${e}-checkbox>
|
|
2176
|
-
`)}
|
|
2177
|
-
</div>
|
|
2178
|
-
</div>
|
|
2179
|
-
</div>
|
|
2180
|
-
`,Us=n.html`
|
|
2181
|
-
${Vs()}
|
|
2182
|
-
`,Ys=n.css`
|
|
2183
|
-
.root {
|
|
2184
|
-
position: relative;
|
|
2185
|
-
width: inherit;
|
|
2186
|
-
}
|
|
2187
|
-
|
|
2188
|
-
.control {
|
|
2189
|
-
cursor: pointer;
|
|
2190
|
-
position: relative;
|
|
2191
|
-
display: flex;
|
|
2192
|
-
align-items: center;
|
|
2193
|
-
width: 100%;
|
|
2194
|
-
border-radius: calc(var(--control-corner-radius) * 1px);
|
|
2195
|
-
}
|
|
2196
|
-
|
|
2197
|
-
#display-field {
|
|
2198
|
-
width: 100%;
|
|
2199
|
-
cursor: pointer;
|
|
2200
|
-
color: rgb(241 241 241);
|
|
2201
|
-
min-height: 36px;
|
|
2202
|
-
padding: 0 8px;
|
|
2203
|
-
border-width: 0;
|
|
2204
|
-
background: var(--neutral-fill-input-rest);
|
|
2205
|
-
border-radius: calc(var(--control-corner-radius) * 1px);
|
|
2206
|
-
}
|
|
2207
|
-
|
|
2208
|
-
#display-field:focus {
|
|
2209
|
-
outline: 1px solid var(--accent-fill-rest);
|
|
2210
|
-
background: var(--neutral-fill-input-rest);
|
|
2211
|
-
border-style: none;
|
|
2212
|
-
box-shadow: none;
|
|
2213
|
-
}
|
|
2214
|
-
|
|
2215
|
-
#display-field:hover:not(:focus) {
|
|
2216
|
-
outline: 1px solid rgb(231 232 232);
|
|
2217
|
-
}
|
|
2218
|
-
|
|
2219
|
-
button {
|
|
2220
|
-
pointer-events: none;
|
|
2221
|
-
}
|
|
2222
|
-
|
|
2223
|
-
#arrow-icon {
|
|
2224
|
-
position: absolute;
|
|
2225
|
-
left: calc(100% - 28px);
|
|
2226
|
-
padding: 0;
|
|
2227
|
-
cursor: pointer;
|
|
2228
|
-
transform: rotate(180deg);
|
|
2229
|
-
transition: transform 0.2s linear 0s;
|
|
2230
|
-
}
|
|
2231
|
-
|
|
2232
|
-
#arrow-icon.flipped {
|
|
2233
|
-
transform: rotate(0deg);
|
|
2234
|
-
}
|
|
2235
|
-
|
|
2236
|
-
.options {
|
|
2237
|
-
display: flex;
|
|
2238
|
-
flex-direction: column;
|
|
2239
|
-
position: absolute;
|
|
2240
|
-
height: max-content;
|
|
2241
|
-
overflow-y: hidden;
|
|
2242
|
-
margin-top: 5px;
|
|
2243
|
-
border: 1px solid rgba(46 51 57 / 100%);
|
|
2244
|
-
border-radius: 4px;
|
|
2245
|
-
background: var(--neutral-fill-input-rest);
|
|
2246
|
-
width: 100%;
|
|
2247
|
-
max-height: 0;
|
|
2248
|
-
visibility: hidden;
|
|
2249
|
-
transition: max-height 0.4s ease 0s, visibility 0.4s ease 0s;
|
|
2250
|
-
z-index: 999;
|
|
2251
|
-
}
|
|
2252
|
-
|
|
2253
|
-
.position-above {
|
|
2254
|
-
bottom: 100%;
|
|
2255
|
-
}
|
|
2256
|
-
|
|
2257
|
-
.checkbox-container {
|
|
2258
|
-
display: flex;
|
|
2259
|
-
flex-direction: column;
|
|
2260
|
-
overflow-y: scroll;
|
|
2261
|
-
scrollbar-width: thin;
|
|
2262
|
-
scrollbar-color: rgb(46 48 53) rgb(31 33 38);
|
|
2263
|
-
}
|
|
2264
|
-
|
|
2265
|
-
#filter-search {
|
|
2266
|
-
padding: 5px;
|
|
2267
|
-
}
|
|
2268
|
-
|
|
2269
|
-
::-webkit-scrollbar {
|
|
2270
|
-
width: 12px;
|
|
2271
|
-
}
|
|
2272
|
-
|
|
2273
|
-
::-webkit-scrollbar-track {
|
|
2274
|
-
background: rgb(31 33 38);
|
|
2275
|
-
}
|
|
2276
|
-
|
|
2277
|
-
::-webkit-scrollbar-thumb {
|
|
2278
|
-
width: 8px;
|
|
2279
|
-
border-radius: 10px;
|
|
2280
|
-
box-shadow: inset 0 0 6px rgba(0 0 0 / 30%);
|
|
2281
|
-
background-color: rgb(46 48 53);
|
|
2282
|
-
border: 3px solid rgb(31 33 38);
|
|
2283
|
-
}
|
|
2284
|
-
|
|
2285
|
-
.visible {
|
|
2286
|
-
visibility: visible;
|
|
2287
|
-
max-height: ${230..toString()}px;
|
|
2288
|
-
}
|
|
2289
|
-
|
|
2290
|
-
::slotted(foundation-checkbox),
|
|
2291
|
-
foundation-checkbox {
|
|
2292
|
-
border-bottom: 1px solid rgb(46 48 52);
|
|
2293
|
-
padding: 5px 0 5px 5px;
|
|
2294
|
-
margin: 0;
|
|
2295
|
-
}
|
|
2296
|
-
|
|
2297
|
-
::slotted(foundation-checkbox:hover),
|
|
2298
|
-
foundation-checkbox:hover {
|
|
2299
|
-
background-color: rgb(45 47 51);
|
|
2300
|
-
cursor: pointer;
|
|
2301
|
-
}
|
|
2302
|
-
|
|
2303
|
-
::slotted(foundation-checkbox)::part(label),
|
|
2304
|
-
foundation-checkbox::part(label) {
|
|
2305
|
-
overflow-x: hidden;
|
|
2306
|
-
text-overflow: ellipsis;
|
|
2307
|
-
white-space: nowrap;
|
|
2308
|
-
}
|
|
2309
|
-
|
|
2310
|
-
.label {
|
|
2311
|
-
display: block;
|
|
2312
|
-
cursor: pointer;
|
|
2313
|
-
font-size: var(--type-ramp-base-font-size);
|
|
2314
|
-
line-height: var(--type-ramp-base-line-height);
|
|
2315
|
-
font-family: Roboto-Medium, sans-serif;
|
|
2316
|
-
font-style: normal;
|
|
2317
|
-
margin: calc(var(--design-unit) * 2px) 0;
|
|
2318
|
-
}
|
|
2319
|
-
`;var Ws;!function(e){e.BELOW="below",e.ABOVE="above",e.DYNAMIC="dynamic"}(Ws||(Ws={}));const qs=void 0,Xs={};class Zs extends s.I{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=Ws.BELOW,this.initialisedOptions=!1}openChanged(e,t){var o,a,r,i;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===(r=this.arrowIcon)||void 0===r||r.classList.remove("flipped"),null===(i=this.optionsElement)||void 0===i||i.classList.remove("visible"))}connectedCallback(){var e;super.connectedCallback(),this.position===Ws.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!==Ws.DYNAMIC||this.setDropdownPosition(),this.open=!this.open}setDropdownPosition(){var e,t;(this.scrollContainer||this.parentElement).clientHeight-(this.offsetTop-(this.scrollContainer||this.parentElement).scrollTop)<230+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){mr(e,this)&&(this.open=!1)}}(0,i.__decorate)([n.attr],Zs.prototype,"name",void 0),(0,i.__decorate)([(0,n.attr)({mode:"boolean"})],Zs.prototype,"all",void 0),(0,i.__decorate)([(0,n.attr)({mode:"boolean"})],Zs.prototype,"allSelected",void 0),(0,i.__decorate)([(0,n.attr)({mode:"boolean"})],Zs.prototype,"search",void 0),(0,i.__decorate)([n.observable],Zs.prototype,"defaultSlottedNodes",void 0),(0,i.__decorate)([n.observable],Zs.prototype,"open",void 0),(0,i.__decorate)([n.observable],Zs.prototype,"options",void 0),(0,i.__decorate)([n.observable],Zs.prototype,"selectedOptions",void 0),(0,i.__decorate)([n.observable],Zs.prototype,"filteredAvailableOptions",void 0),(0,i.__decorate)([n.observable],Zs.prototype,"scrollContainer",void 0),(0,i.__decorate)([n.observable],Zs.prototype,"position",void 0),(0,i.__decorate)([n.observable],Zs.prototype,"onAllSelectedCallback",void 0),(0,i.__decorate)([n.volatile],Zs.prototype,"getDisplayValue",null),(0,i.__decorate)([n.volatile],Zs.prototype,"getPlaceholder",null),(0,i.__decorate)([n.volatile],Zs.prototype,"isAllSelected",null);Zs.compose(Object.assign({baseName:"multiselect",template:Us,styles:Ys,shadowOptions:qs},Xs));const Ks=n.html`
|
|
2320
|
-
${Vs("zero")}
|
|
2321
|
-
`,Js=n.css`
|
|
2322
|
-
${Ys}
|
|
2323
|
-
|
|
2324
|
-
:host {
|
|
2325
|
-
--primary-gradient-angle: -113.5deg;
|
|
2326
|
-
}
|
|
2327
|
-
|
|
2328
|
-
#display-field {
|
|
2329
|
-
background: ${Yt};
|
|
2330
|
-
}
|
|
2331
|
-
|
|
2332
|
-
#display-field:focus {
|
|
2333
|
-
outline: none;
|
|
2334
|
-
background: linear-gradient(
|
|
2335
|
-
var(--primary-gradient-angle),
|
|
2336
|
-
${S.blue} 0%,
|
|
2337
|
-
${S.purple} 100%
|
|
2338
|
-
)
|
|
2339
|
-
top/100% 1px,
|
|
2340
|
-
linear-gradient(
|
|
2341
|
-
var(--primary-gradient-angle),
|
|
2342
|
-
${S.blue} 0%,
|
|
2343
|
-
${S.purple} 100%
|
|
2344
|
-
)
|
|
2345
|
-
bottom/100% 1px;
|
|
2346
|
-
background-origin: border-box;
|
|
2347
|
-
background-repeat: no-repeat;
|
|
2348
|
-
border: 1px solid transparent;
|
|
2349
|
-
border-right-color: ${S.blue};
|
|
2350
|
-
border-left-color: ${S.purple};
|
|
2351
|
-
}
|
|
2352
|
-
|
|
2353
|
-
::slotted(zero-checkbox),
|
|
2354
|
-
zero-checkbox {
|
|
2355
|
-
border-bottom: 1px solid rgb(46 48 52);
|
|
2356
|
-
padding: 5px 0 5px 5px;
|
|
2357
|
-
margin: 0;
|
|
2358
|
-
}
|
|
2359
|
-
|
|
2360
|
-
::slotted(zero-checkbox:hover),
|
|
2361
|
-
zero-checkbox:hover {
|
|
2362
|
-
background-color: rgb(45 47 51);
|
|
2363
|
-
cursor: pointer;
|
|
2364
|
-
}
|
|
2365
|
-
|
|
2366
|
-
::slotted(zero-checkbox)::part(label),
|
|
2367
|
-
zero-checkbox::part(label) {
|
|
2368
|
-
overflow-x: hidden;
|
|
2369
|
-
text-overflow: ellipsis;
|
|
2370
|
-
white-space: nowrap;
|
|
2371
|
-
}
|
|
2372
|
-
|
|
2373
|
-
.label {
|
|
2374
|
-
color: ${qt};
|
|
2375
|
-
}
|
|
2376
|
-
`;class Qs extends Zs{}const el=Xs,tl=qs,ol=Qs.compose(Object.assign({baseName:"multiselect",template:Ks,styles:Js,shadowOptions:tl},el));var al=o(1275);const rl=(e,t)=>n.html`
|
|
2377
|
-
${(0,al.M)(e,t)}
|
|
2378
|
-
`;class il extends g.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,i.__decorate)([(0,n.attr)({mode:"boolean"})],il.prototype,"hideStep",void 0),(0,i.__decorate)([n.attr],il.prototype,"value",void 0),(0,i.__decorate)([(0,n.attr)({mode:"boolean"})],il.prototype,"withFormatting",void 0);const nl={delegatesFocus:!0,mode:"open"},sl={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 '},ll=(il.compose(Object.assign({baseName:"number-field",template:rl,styles:(e,t)=>n.css`
|
|
2379
|
-
${(0,g.numberFieldStyles)(e,t)}
|
|
2380
|
-
::part(label) {
|
|
2381
|
-
color: var(--neutral-foreground-rest);
|
|
2382
|
-
}
|
|
2383
|
-
|
|
2384
|
-
fast-text-field {
|
|
2385
|
-
display: unset;
|
|
2386
|
-
}
|
|
2387
|
-
|
|
2388
|
-
.controls {
|
|
2389
|
-
margin-bottom: auto;
|
|
2390
|
-
margin-inline-end: 5px;
|
|
2391
|
-
margin-top: auto;
|
|
2392
|
-
}
|
|
2393
|
-
|
|
2394
|
-
.step-down,
|
|
2395
|
-
.step-up {
|
|
2396
|
-
display: block;
|
|
2397
|
-
fill: var(--neutral-foreground-rest);
|
|
2398
|
-
}
|
|
2399
|
-
|
|
2400
|
-
.step-down-glyph,
|
|
2401
|
-
.step-up-glyph {
|
|
2402
|
-
padding: unset;
|
|
2403
|
-
}
|
|
2404
|
-
|
|
2405
|
-
::part(end) {
|
|
2406
|
-
margin-inline-end: unset;
|
|
2407
|
-
}
|
|
2408
|
-
`,shadowOptions:nl},sl)),(e,t)=>n.css`
|
|
2409
|
-
${(0,g.textFieldStyles)(e,t)}
|
|
2410
|
-
|
|
2411
|
-
input {
|
|
2412
|
-
color-scheme: ${Po.activeColorScheme};
|
|
2413
|
-
}
|
|
2414
|
-
`),cl=(e,t)=>n.css`
|
|
2415
|
-
${ll(e,t)}
|
|
2416
|
-
:host {
|
|
2417
|
-
--primary-gradient-angle: -113.5deg;
|
|
2418
|
-
}
|
|
2419
|
-
|
|
2420
|
-
:host .control {
|
|
2421
|
-
height: 100%;
|
|
2422
|
-
border-radius: calc(var(--control-corner-radius) * 1px);
|
|
2423
|
-
}
|
|
2424
|
-
|
|
2425
|
-
:host .root {
|
|
2426
|
-
border: calc(var(--stroke-width) * 1px) solid ${Jt};
|
|
2427
|
-
background-color: ${Yt};
|
|
2428
|
-
}
|
|
2429
|
-
|
|
2430
|
-
:host(:hover:not([disabled])) .root {
|
|
2431
|
-
border-color: ${Vt};
|
|
2432
|
-
background: none;
|
|
2433
|
-
}
|
|
2434
|
-
|
|
2435
|
-
:host(:focus-within:not([disabled])) .root {
|
|
2436
|
-
background: linear-gradient(
|
|
2437
|
-
var(--primary-gradient-angle),
|
|
2438
|
-
${S.blue} 0%,
|
|
2439
|
-
${S.purple} 100%
|
|
2440
|
-
)
|
|
2441
|
-
top/100% 1px,
|
|
2442
|
-
linear-gradient(
|
|
2443
|
-
var(--primary-gradient-angle),
|
|
2444
|
-
${S.blue} 0%,
|
|
2445
|
-
${S.purple} 100%
|
|
2446
|
-
)
|
|
2447
|
-
bottom/100% 1px;
|
|
2448
|
-
background-color: ${Zt};
|
|
2449
|
-
background-origin: border-box;
|
|
2450
|
-
background-repeat: no-repeat;
|
|
2451
|
-
border: 1px solid transparent;
|
|
2452
|
-
border-right-color: ${S.blue};
|
|
2453
|
-
border-left-color: ${S.purple};
|
|
2454
|
-
box-shadow: none;
|
|
2455
|
-
}
|
|
2456
|
-
|
|
2457
|
-
.label {
|
|
2458
|
-
color: ${qt};
|
|
2459
|
-
font-family: Roboto-Medium, sans-serif;
|
|
2460
|
-
font-style: normal;
|
|
2461
|
-
margin: calc(var(--design-unit) * 2px) 0;
|
|
2462
|
-
}
|
|
2463
|
-
`,dl=(e,t)=>n.css`
|
|
2464
|
-
:host .root {
|
|
2465
|
-
--focus-stroke-outer: transparent;
|
|
2466
|
-
}
|
|
2467
|
-
${cl(e,t)}
|
|
2468
|
-
`;class pl extends il{}const ul=sl,hl=rl,ml=nl,gl=pl.compose(Object.assign({baseName:"number-field",template:hl,styles:dl,shadowOptions:ml},ul));var vl=o(5393);const bl=(e,t)=>(0,vl.n)(e,t),fl=(e,t)=>n.css`
|
|
2469
|
-
${(0,g.progressStyles)(e,t)}
|
|
2470
|
-
:host {
|
|
2471
|
-
height: calc(var(--design-unit) * 2px);
|
|
2472
|
-
}
|
|
2473
|
-
`;class yl extends g.Progress{}const xl=void 0,$l={indeterminateIndicator1:'<span class="indeterminate-indicator-1" part="indeterminate-indicator-1"></span>',indeterminateIndicator2:'<span class="indeterminate-indicator-1" part="indeterminate-indicator-1"></span>'},wl=(yl.compose(Object.assign({baseName:"progress",template:bl,styles:fl,shadowOptions:xl},$l)),(e,t)=>bl(e,t)),Fl=(e,t)=>n.css`
|
|
2474
|
-
${fl(e,t)}
|
|
2475
|
-
:host([appearance="secondary-teal"]) {
|
|
2476
|
-
--accent-foreground-rest: ${O.teal};
|
|
2477
|
-
}
|
|
2478
|
-
|
|
2479
|
-
:host([appearance='secondary-orange']) {
|
|
2480
|
-
--accent-foreground-rest: ${O.orange};
|
|
2481
|
-
}
|
|
2482
|
-
`;class kl extends yl{}const Sl=kl.compose(Object.assign({baseName:"progress",template:wl,styles:Fl,shadowOptions:xl},$l));var Ol=o(1725);const Dl=(e,t)=>n.css`
|
|
2483
|
-
${(0,g.progressRingStyles)(e,t)}
|
|
2484
|
-
`;class zl extends g.Progress{}const _l=void 0,Cl={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 '},Nl=(zl.compose(Object.assign({baseName:"progress-ring",template:(e,t)=>(0,Ol.Z)(e,t),styles:Dl,shadowOptions:_l},Cl)),(e,t)=>n.html`
|
|
2485
|
-
<template
|
|
2486
|
-
role="progressbar"
|
|
2487
|
-
aria-valuenow="${e=>e.value}"
|
|
2488
|
-
aria-valuemin="${e=>e.min}"
|
|
2489
|
-
aria-valuemax="${e=>e.max}"
|
|
2490
|
-
class="${e=>e.paused?"paused":""}"
|
|
2491
|
-
>
|
|
2492
|
-
${(0,n.when)((e=>"number"==typeof e.value),n.html`
|
|
2493
|
-
<svg class="progress" part="progress" viewBox="0 0 16 16" slot="determinate">
|
|
2494
|
-
<defs>
|
|
2495
|
-
<linearGradient id="linear">
|
|
2496
|
-
<stop offset="0%" stop-color="${S.purple}" />
|
|
2497
|
-
<stop offset="60%" stop-color="${S.blue}" />
|
|
2498
|
-
</linearGradient>
|
|
2499
|
-
</defs>
|
|
2500
|
-
<circle class="background" part="background" cx="8px" cy="8px" r="7px"></circle>
|
|
2501
|
-
<circle
|
|
2502
|
-
class="determinate"
|
|
2503
|
-
part="determinate"
|
|
2504
|
-
style="stroke-dasharray: ${e=>44*e.percentComplete/100}px ${44}px"
|
|
2505
|
-
cx="8px"
|
|
2506
|
-
cy="8px"
|
|
2507
|
-
r="7px"
|
|
2508
|
-
></circle>
|
|
2509
|
-
</svg>
|
|
2510
|
-
`)}
|
|
2511
|
-
${(0,n.when)((e=>"number"!=typeof e.value),n.html`
|
|
2512
|
-
<slot name="indeterminate" slot="indeterminate">
|
|
2513
|
-
${t.indeterminateIndicator||""}
|
|
2514
|
-
</slot>
|
|
2515
|
-
`)}
|
|
2516
|
-
</template>
|
|
2517
|
-
`),Ll=(e,t)=>n.css`
|
|
2518
|
-
${Dl(e,t)}
|
|
2519
|
-
.indeterminate-indicator-1, .determinate {
|
|
2520
|
-
stroke: ${"url(#linear)"};
|
|
2521
|
-
}
|
|
2522
|
-
`;class Al extends zl{}const Rl={indeterminateIndicator:`\n <svg class="progress" part="progress" viewBox="0 0 16 16">\n <defs>\n <linearGradient id="linear">\n <stop offset="0%" stop-color="${S.purple}"/>\n <stop offset="100%" stop-color="${S.blue}"/>\n </linearGradient>\n </defs>\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 `},Ml=Al.compose(Object.assign({baseName:"progress-ring",template:Nl,styles:Ll,shadowOptions:_l},Rl));var Tl=o(6058);const Il=(e,t)=>(0,Tl.C)(e,t),El=(e,t)=>n.css`
|
|
2523
|
-
${(0,g.radioStyles)(e,t)}
|
|
2524
|
-
`;class Hl extends g.Radio{}const jl=void 0,Pl={checkedIndicator:'\n <div part="checked-indicator" class="checked-indicator"></div>\n '},Bl=(Hl.compose(Object.assign({baseName:"radio",template:Il,styles:El,shadowOptions:jl},Pl)),(e,t)=>Il(e,t)),Gl=(e,t)=>n.css`
|
|
2525
|
-
${El(e,t)}
|
|
2526
|
-
:host {
|
|
2527
|
-
--primary-gradient-angle: -113.5deg;
|
|
2528
|
-
}
|
|
2529
|
-
|
|
2530
|
-
:host .control {
|
|
2531
|
-
background: transparent;
|
|
2532
|
-
}
|
|
2533
|
-
|
|
2534
|
-
:host([aria-checked='true']) .control {
|
|
2535
|
-
background: transparent;
|
|
2536
|
-
border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);
|
|
2537
|
-
}
|
|
2538
|
-
|
|
2539
|
-
:host(:not([disabled])) .control:hover {
|
|
2540
|
-
background: transparent;
|
|
2541
|
-
}
|
|
2542
|
-
|
|
2543
|
-
:host([aria-checked='true']:not([disabled])) .control:hover {
|
|
2544
|
-
background: transparent;
|
|
2545
|
-
border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-hover);
|
|
2546
|
-
}
|
|
2547
|
-
|
|
2548
|
-
.checked-indicator,
|
|
2549
|
-
:host([aria-checked='true']:not([disabled])) .control:hover .checked-indicator {
|
|
2550
|
-
background: linear-gradient(
|
|
2551
|
-
var(--primary-gradient-angle),
|
|
2552
|
-
${S.blue},
|
|
2553
|
-
${S.purple}
|
|
2554
|
-
);
|
|
2555
|
-
}
|
|
2556
|
-
`;class Vl extends Hl{}const Ul=Vl.compose(Object.assign({baseName:"radio",template:Bl,styles:Gl,shadowOptions:jl},Pl));var Yl=o(1629);const Wl=(e,t)=>(0,Yl.l)(e,t),ql=(e,t)=>n.css`
|
|
2557
|
-
${(0,g.radioGroupStyles)(e,t)}
|
|
2558
|
-
`;class Xl extends g.RadioGroup{}const Zl=void 0,Kl={},Jl=(Xl.compose(Object.assign({baseName:"radio-group",template:Wl,styles:ql,shadowOptions:Zl},Kl)),(e,t)=>Wl(e,t)),Ql=(e,t)=>n.css`
|
|
2559
|
-
${ql(e,t)}
|
|
2560
|
-
:host([appearance="accent"]) {
|
|
2561
|
-
background: green;
|
|
2562
|
-
}
|
|
2563
|
-
`;class ec extends Xl{}const tc=ec.compose(Object.assign({baseName:"radio-group",template:Jl,styles:Ql,shadowOptions:Zl},Kl)),oc=n.css`
|
|
2564
|
-
@keyframes append-animate {
|
|
2565
|
-
from {
|
|
2566
|
-
transform: translateX(100%);
|
|
2567
|
-
opacity: 0%;
|
|
2568
|
-
}
|
|
2569
|
-
|
|
2570
|
-
to {
|
|
2571
|
-
transform: translateX(0%);
|
|
2572
|
-
opacity: 100%;
|
|
2573
|
-
}
|
|
2574
|
-
}
|
|
2575
|
-
|
|
2576
|
-
@keyframes delete-animate {
|
|
2577
|
-
from {
|
|
2578
|
-
transform: translateX(0%);
|
|
2579
|
-
opacity: 100%;
|
|
2580
|
-
}
|
|
2581
|
-
|
|
2582
|
-
to {
|
|
2583
|
-
transform: translateX(100%);
|
|
2584
|
-
opacity: 0%;
|
|
2585
|
-
}
|
|
2586
|
-
}
|
|
2587
|
-
|
|
2588
|
-
:host {
|
|
2589
|
-
--snackbar-min-width: 356px;
|
|
2590
|
-
--snackbar-min-height: 55px;
|
|
2591
|
-
--snackbar-max-width: 496px;
|
|
2592
|
-
--snackbar-max-height: 55px;
|
|
2593
|
-
}
|
|
2594
|
-
|
|
2595
|
-
.snackbar {
|
|
2596
|
-
animation: append-animate 0.3s linear;
|
|
2597
|
-
max-width: var(--snackbar-max-width);
|
|
2598
|
-
min-width: var(--snackbar-min-width);
|
|
2599
|
-
max-height: var(--snackbar-max-height);
|
|
2600
|
-
background-color: var(--fill-color);
|
|
2601
|
-
border-radius: calc(var(--control-corner-radius) * 1px);
|
|
2602
|
-
border-width: thin;
|
|
2603
|
-
border-color: var(--neutral-fill-rest);
|
|
2604
|
-
box-shadow: 0 2px 5px 0 rgb(0 0 0 / 35%);
|
|
2605
|
-
box-sizing: border-box;
|
|
2606
|
-
display: flex;
|
|
2607
|
-
position: fixed;
|
|
2608
|
-
bottom: 5px;
|
|
2609
|
-
flex-direction: row;
|
|
2610
|
-
padding: 2px 16px;
|
|
2611
|
-
}
|
|
2612
|
-
|
|
2613
|
-
.snackbar-delete {
|
|
2614
|
-
animation: delete-animate 0.3s linear;
|
|
2615
|
-
opacity: 0%;
|
|
2616
|
-
}
|
|
2617
|
-
|
|
2618
|
-
.snackbar::after {
|
|
2619
|
-
content: '';
|
|
2620
|
-
position: absolute;
|
|
2621
|
-
top: 50%;
|
|
2622
|
-
transform: translateY(-50%);
|
|
2623
|
-
left: 0;
|
|
2624
|
-
height: calc(100% - 2px);
|
|
2625
|
-
width: 2px;
|
|
2626
|
-
border-radius: 2px;
|
|
2627
|
-
}
|
|
2628
|
-
|
|
2629
|
-
.content {
|
|
2630
|
-
display: flex;
|
|
2631
|
-
align-items: center;
|
|
2632
|
-
flex: 2;
|
|
2633
|
-
font-size: 12px;
|
|
2634
|
-
overflow: hidden;
|
|
2635
|
-
}
|
|
2636
|
-
|
|
2637
|
-
.action {
|
|
2638
|
-
display: flex;
|
|
2639
|
-
flex-direction: row-reverse;
|
|
2640
|
-
align-items: center;
|
|
2641
|
-
gap: 10px;
|
|
2642
|
-
flex: 1;
|
|
2643
|
-
overflow: hidden;
|
|
2644
|
-
}
|
|
2645
|
-
`,ac=n.html`
|
|
2646
|
-
<div class="snackbar ${e=>e.deleteAnimation}" ${(0,n.ref)("snackbar")}>
|
|
2647
|
-
<div part="content" class="content">
|
|
2648
|
-
<div>${e=>{var t;return(null===(t=e.error)||void 0===t?void 0:t.errorDetails)||"Place holder for error message"}}</div>
|
|
2649
|
-
</div>
|
|
2650
|
-
<div part="action" class="action">
|
|
2651
|
-
${(0,n.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}),n.html`
|
|
2652
|
-
<foundation-button
|
|
2653
|
-
slot="action"
|
|
2654
|
-
appearance="lightweight"
|
|
2655
|
-
@click=${(e,t)=>{var o;null==e||e.action(),null===(o=t.parent)||void 0===o||o.dismiss()}}
|
|
2656
|
-
>
|
|
2657
|
-
${e=>e.label}
|
|
2658
|
-
</foundation-button>
|
|
2659
|
-
`)}
|
|
2660
|
-
</div>
|
|
2661
|
-
</div>
|
|
2662
|
-
`,rc={mode:"open",delegatesFocus:!0};class ic extends s.I{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,r;this.type=null!==(r=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!==r?r:""}dismiss(){this.remove()}}(0,i.__decorate)([n.observable],ic.prototype,"error",void 0),(0,i.__decorate)([n.observable],ic.prototype,"deleteAnimation",void 0),(0,i.__decorate)([(0,n.attr)({attribute:"close-timeout"})],ic.prototype,"closeTimeout",void 0),(0,i.__decorate)([(0,n.attr)({attribute:"auto-close"})],ic.prototype,"autoClose",void 0),(0,i.__decorate)([(0,n.attr)({attribute:"type"})],ic.prototype,"type",void 0);ic.compose({baseName:"snackbar",styles:oc,template:ac,shadowOptions:rc});const nc=n.html`
|
|
2663
|
-
<div class="snackbar ${e=>e.deleteAnimation}" ${(0,n.ref)("snackbar")}>
|
|
2664
|
-
<div part="content" class="content">
|
|
2665
|
-
<div>${e=>{var t;return(null===(t=e.error)||void 0===t?void 0:t.errorDetails)||"Place holder for error message"}}</div>
|
|
2666
|
-
</div>
|
|
2667
|
-
<div part="action" class="action">
|
|
2668
|
-
${(0,n.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}),n.html`
|
|
2669
|
-
<zero-button
|
|
2670
|
-
slot="action"
|
|
2671
|
-
appearance="lightweight"
|
|
2672
|
-
@click=${(e,t)=>{var o;null==e||e.action(),null===(o=t.parent)||void 0===o||o.dismiss()}}
|
|
2673
|
-
>
|
|
2674
|
-
${e=>e.label}
|
|
2675
|
-
</zero-button>
|
|
2676
|
-
`)}
|
|
2677
|
-
</div>
|
|
2678
|
-
</div>
|
|
2679
|
-
`,sc=n.css`
|
|
2680
|
-
${oc}
|
|
2681
|
-
.snackbar {
|
|
2682
|
-
border: calc(var(--stroke-width) * 1px) solid ${g.neutralLayer2};
|
|
2683
|
-
background-color: ${g.neutralLayer1};
|
|
2684
|
-
}
|
|
2685
|
-
|
|
2686
|
-
:host([type='error']) .snackbar::after {
|
|
2687
|
-
background-color: ${ie(1)};
|
|
2688
|
-
}
|
|
2689
|
-
`,lc=rc;class cc extends ic{}const dc=cc.compose({baseName:"snackbar",shadowOptions:lc,styles:sc,template:nc}),pc=(e,t)=>((e,t)=>(0,Yl.l)(e,t))(e,t),uc=(e,t)=>n.css`
|
|
2690
|
-
${((e,t)=>n.css`
|
|
2691
|
-
${(0,g.radioGroupStyles)(e,t)}
|
|
2692
|
-
::slotted(foundation-segmented-item:first-of-type) {
|
|
2693
|
-
border-radius: calc(var(--control-corner-radius) * 1px) 0 0
|
|
2694
|
-
calc(var(--control-corner-radius) * 1px);
|
|
2695
|
-
border-right-width: 0;
|
|
2696
|
-
}
|
|
2697
|
-
|
|
2698
|
-
::slotted(foundation-segmented-item:last-of-type) {
|
|
2699
|
-
border-radius: 0 calc(var(--control-corner-radius) * 1px)
|
|
2700
|
-
calc(var(--control-corner-radius) * 1px) 0;
|
|
2701
|
-
border-left-width: 0;
|
|
2702
|
-
}
|
|
2703
|
-
`)(e,t)}
|
|
2704
|
-
:host {
|
|
2705
|
-
--primary-gradient-angle: -113.5deg;
|
|
2706
|
-
}
|
|
2707
|
-
|
|
2708
|
-
:host ::slotted(*) {
|
|
2709
|
-
transition: color 0.4s ease 0s;
|
|
2710
|
-
}
|
|
2711
|
-
|
|
2712
|
-
:host ::slotted(zero-segmented-item:first-of-type) {
|
|
2713
|
-
border-radius: calc(var(--control-corner-radius) * 1px) 0 0
|
|
2714
|
-
calc(var(--control-corner-radius) * 1px);
|
|
2715
|
-
border-right-width: 0;
|
|
2716
|
-
}
|
|
2717
|
-
|
|
2718
|
-
:host ::slotted(zero-segmented-item:last-of-type) {
|
|
2719
|
-
border-radius: 0 calc(var(--control-corner-radius) * 1px)
|
|
2720
|
-
calc(var(--control-corner-radius) * 1px) 0;
|
|
2721
|
-
border-left-width: 0;
|
|
2722
|
-
}
|
|
2723
|
-
|
|
2724
|
-
:host ::slotted(*[aria-checked='true']) {
|
|
2725
|
-
background: ${g.neutralFillStealthRest};
|
|
2726
|
-
background-origin: border-box;
|
|
2727
|
-
border-color: transparent;
|
|
2728
|
-
box-shadow: 2px 1000px 1px rgb(0 0 0 / 50%) inset;
|
|
2729
|
-
}
|
|
2730
|
-
|
|
2731
|
-
:host([appearance='primary']) ::slotted(*[aria-checked='true']) {
|
|
2732
|
-
background: linear-gradient(
|
|
2733
|
-
var(--primary-gradient-angle),
|
|
2734
|
-
${S.blue},
|
|
2735
|
-
${S.purple}
|
|
2736
|
-
);
|
|
2737
|
-
background-origin: border-box;
|
|
2738
|
-
border-color: transparent;
|
|
2739
|
-
box-shadow: 2px 1000px 1px rgb(0 0 0 / 50%) inset;
|
|
2740
|
-
}
|
|
2741
|
-
`;class hc extends Xl{}const mc=void 0,gc={},vc=hc.compose(Object.assign({baseName:"segmented-control",template:pc,styles:uc,shadowOptions:mc},gc)),bc=(e,t)=>n.html`
|
|
2742
|
-
<template
|
|
2743
|
-
role="radio"
|
|
2744
|
-
aria-checked="${e=>e.checked}"
|
|
2745
|
-
aria-required="${e=>e.required}"
|
|
2746
|
-
aria-disabled="${e=>e.disabled}"
|
|
2747
|
-
aria-readonly="${e=>e.readOnly}"
|
|
2748
|
-
@keypress="${(e,t)=>e.keypressHandler(t.event)}"
|
|
2749
|
-
@click="${(e,t)=>e.clickHandler(t.event)}"
|
|
2750
|
-
>
|
|
2751
|
-
<span>
|
|
2752
|
-
<slot></slot>
|
|
2753
|
-
</span>
|
|
2754
|
-
</template>
|
|
2755
|
-
`,fc=(e,t)=>n.css`
|
|
2756
|
-
${((e,t)=>n.css`
|
|
2757
|
-
${(0,g.radioStyles)(e,t)}
|
|
2758
|
-
:host {
|
|
2759
|
-
padding: calc(var(--design-unit) * 2px) calc(var(--design-unit) * 4px);
|
|
2760
|
-
border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);
|
|
2761
|
-
cursor: pointer;
|
|
2762
|
-
}
|
|
2763
|
-
|
|
2764
|
-
:host([aria-checked='true']) {
|
|
2765
|
-
background: var(--accent-foreground-rest);
|
|
2766
|
-
}
|
|
2767
|
-
`)(e,t)}
|
|
2768
|
-
:host {
|
|
2769
|
-
color: var(--neutral-stroke-rest);
|
|
2770
|
-
font-size: var(--type-ramp-minus-1-font-size);
|
|
2771
|
-
}
|
|
2772
|
-
|
|
2773
|
-
:host([aria-checked='true']) {
|
|
2774
|
-
color: ${k.white};
|
|
2775
|
-
}
|
|
2776
|
-
`;class yc extends Hl{}const xc=void 0,$c={},wc=yc.compose(Object.assign({baseName:"segmented-item",template:bc,styles:fc,shadowOptions:xc},$c));var Fc=o(2923);const kc=(e,t)=>(0,Fc.U)(e,t),Sc=(e,t)=>n.css`
|
|
2777
|
-
${(0,g.selectStyles)(e,t)}
|
|
2778
|
-
`;class Oc extends g.Select{}const Dc=void 0,zc={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 '},_c=(Oc.compose(Object.assign({baseName:"select",template:kc,styles:Sc,shadowOptions:Dc},zc)),(e,t)=>kc(e,t)),Cc=(e,t)=>n.css`
|
|
2779
|
-
${Sc(e,t)}
|
|
2780
|
-
:host {
|
|
2781
|
-
--primary-gradient-angle: -113.5deg;
|
|
2782
|
-
|
|
2783
|
-
border-radius: calc(var(--control-corner-radius) * 1px);
|
|
2784
|
-
border-color: ${Jt};
|
|
2785
|
-
background: ${Yt};
|
|
2786
|
-
}
|
|
2787
|
-
|
|
2788
|
-
:host(:focus-within:not([disabled])) {
|
|
2789
|
-
background: linear-gradient(
|
|
2790
|
-
var(--primary-gradient-angle),
|
|
2791
|
-
${S.blue} 0%,
|
|
2792
|
-
${S.purple} 100%
|
|
2793
|
-
)
|
|
2794
|
-
top/100% 1px,
|
|
2795
|
-
linear-gradient(
|
|
2796
|
-
var(--primary-gradient-angle),
|
|
2797
|
-
${S.blue} 0%,
|
|
2798
|
-
${S.purple} 100%
|
|
2799
|
-
)
|
|
2800
|
-
bottom/100% 1px;
|
|
2801
|
-
background-origin: border-box;
|
|
2802
|
-
background-repeat: no-repeat;
|
|
2803
|
-
border: 1px solid transparent;
|
|
2804
|
-
border-right-color: ${S.blue};
|
|
2805
|
-
border-left-color: ${S.purple};
|
|
2806
|
-
}
|
|
2807
|
-
|
|
2808
|
-
:host(:hover:not([disabled]):not(.open)) {
|
|
2809
|
-
border-color: ${Vt};
|
|
2810
|
-
background: ${Yt};
|
|
2811
|
-
}
|
|
2812
|
-
|
|
2813
|
-
:host([open][position='below']) .listbox {
|
|
2814
|
-
padding: 0;
|
|
2815
|
-
margin-top: calc(${g.designUnit} * 1px);
|
|
2816
|
-
border-radius: 4px;
|
|
2817
|
-
border: 1px solid ${k.lightGrey};
|
|
2818
|
-
}
|
|
2819
|
-
|
|
2820
|
-
:host([open]) .control {
|
|
2821
|
-
background: ${Zt};
|
|
2822
|
-
}
|
|
2823
|
-
|
|
2824
|
-
:host(:not([disabled])) .control:active {
|
|
2825
|
-
background: none;
|
|
2826
|
-
}
|
|
2827
|
-
`;class Nc extends Oc{}const Lc=Nc.compose(Object.assign({baseName:"select",template:_c,styles:Cc,shadowOptions:Dc},zc));var Ac=o(3436);const Rc=(e,t)=>(0,Ac.U)(e,t),Mc=(e,t)=>n.css`
|
|
2828
|
-
${(0,g.skeletonStyles)(e,t)}
|
|
2829
|
-
`;class Tc extends g.Skeleton{}const Ic=void 0,Ec={},Hc=(Tc.compose(Object.assign({baseName:"skeleton",template:Rc,styles:Mc,shadowOptions:Ic},Ec)),(e,t)=>Rc(e,t)),jc=(e,t)=>n.css`
|
|
2830
|
-
${Mc(e,t)}
|
|
2831
|
-
`;class Pc extends Tc{}const Bc=Pc.compose(Object.assign({baseName:"skeleton",template:Hc,styles:jc,shadowOptions:Ic},Ec));var Gc=o(2921),Vc=o(1847);const Uc=(e,t)=>n.html`
|
|
2832
|
-
<template
|
|
2833
|
-
role="slider"
|
|
2834
|
-
class="${e=>e.readOnly?"readonly":""}
|
|
2835
|
-
${e=>e.orientation||Gc.i.horizontal}"
|
|
2836
|
-
tabindex="${e=>e.disabled?null:0}"
|
|
2837
|
-
aria-valuetext="${e=>e.valueTextFormatter(e.value)}"
|
|
2838
|
-
aria-valuenow="${e=>e.value}"
|
|
2839
|
-
aria-valuemin="${e=>e.min}"
|
|
2840
|
-
aria-valuemax="${e=>e.max}"
|
|
2841
|
-
aria-disabled="${e=>!!e.disabled||void 0}"
|
|
2842
|
-
aria-readonly="${e=>!!e.readOnly||void 0}"
|
|
2843
|
-
aria-orientation="${e=>e.orientation}"
|
|
2844
|
-
class="${e=>e.orientation}"
|
|
2845
|
-
>
|
|
2846
|
-
<div part="positioning-region" class="positioning-region">
|
|
2847
|
-
<div ${(0,n.ref)("track")} part="track-container" class="track">
|
|
2848
|
-
<div
|
|
2849
|
-
class="track-progress"
|
|
2850
|
-
style="${e=>{const t=1-(0,Vc.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;`}}"
|
|
2851
|
-
></div>
|
|
2852
|
-
</div>
|
|
2853
|
-
<slot></slot>
|
|
2854
|
-
<div
|
|
2855
|
-
${(0,n.ref)("thumb")}
|
|
2856
|
-
part="thumb-container"
|
|
2857
|
-
class="thumb-container"
|
|
2858
|
-
style="${e=>e.position}"
|
|
2859
|
-
>
|
|
2860
|
-
<slot name="thumb">${t.thumb||""}</slot>
|
|
2861
|
-
</div>
|
|
2862
|
-
</div>
|
|
2863
|
-
</template>
|
|
2864
|
-
`,Yc=(e,t)=>n.css`
|
|
2865
|
-
${(0,g.sliderStyles)(e,t)}
|
|
2866
|
-
.track-progress {
|
|
2867
|
-
background-color: var(--accent-fill-rest);
|
|
2868
|
-
border-radius: calc(var(--control-corner-radius) * 1px);
|
|
2869
|
-
}
|
|
2870
|
-
`;class Wc extends g.Slider{}const qc=void 0,Xc={thumb:'\n <div class="thumb-cursor"></div>\n '},Zc=(Wc.compose(Object.assign({baseName:"slider",template:Uc,styles:Yc,shadowOptions:qc},Xc)),(e,t)=>Uc(0,t)),Kc=(e,t)=>n.css`
|
|
2871
|
-
${Yc(e,t)}
|
|
2872
|
-
:host {
|
|
2873
|
-
--primary-gradient-angle: -113.5deg;
|
|
2874
|
-
}
|
|
2875
|
-
|
|
2876
|
-
.thumb-cursor {
|
|
2877
|
-
background: linear-gradient(
|
|
2878
|
-
var(--primary-gradient-angle),
|
|
2879
|
-
${S.blue},
|
|
2880
|
-
${S.purple}
|
|
2881
|
-
);
|
|
2882
|
-
border-radius: calc(var(--control-corner-radius) * 2px);
|
|
2883
|
-
}
|
|
2884
|
-
|
|
2885
|
-
.thumb-cursor:hover,
|
|
2886
|
-
.thumb-cursor:active {
|
|
2887
|
-
background: linear-gradient(
|
|
2888
|
-
var(--primary-gradient-angle),
|
|
2889
|
-
${S.blue},
|
|
2890
|
-
${S.purple}
|
|
2891
|
-
);
|
|
2892
|
-
border-radius: transparent;
|
|
2893
|
-
}
|
|
2894
|
-
|
|
2895
|
-
:host(:focus-visible) .thumb-cursor {
|
|
2896
|
-
box-shadow: 0 0 0 0;
|
|
2897
|
-
}
|
|
2898
|
-
|
|
2899
|
-
.thumb-cursor:hover::after,
|
|
2900
|
-
.thumb-cursor:active::after {
|
|
2901
|
-
content: '';
|
|
2902
|
-
height: calc(var(--thumb-size) * 2px);
|
|
2903
|
-
width: calc(var(--thumb-size) * 2px);
|
|
2904
|
-
border-radius: calc(var(--control-corner-radius) * 4px);
|
|
2905
|
-
position: absolute;
|
|
2906
|
-
top: 50%;
|
|
2907
|
-
left: 50%;
|
|
2908
|
-
transform: translate(-50%, -50%);
|
|
2909
|
-
z-index: -1;
|
|
2910
|
-
}
|
|
2911
|
-
|
|
2912
|
-
.thumb-cursor:hover::after {
|
|
2913
|
-
background-color: ${G(.1)};
|
|
2914
|
-
}
|
|
2915
|
-
|
|
2916
|
-
.thumb-cursor:active::after {
|
|
2917
|
-
background-color: ${G(.2)};
|
|
2918
|
-
}
|
|
2919
|
-
|
|
2920
|
-
.track {
|
|
2921
|
-
background-color: ${k.mediumGrey};
|
|
2922
|
-
}
|
|
2923
|
-
|
|
2924
|
-
.track-progress {
|
|
2925
|
-
background-color: var(--neutral-stroke-rest);
|
|
2926
|
-
}
|
|
2927
|
-
`;class Jc extends Wc{}const Qc=Jc.compose(Object.assign({baseName:"slider",template:Zc,styles:Kc,shadowOptions:qc},Xc));var ed=o(1554);const td=(e,t)=>(0,ed.o)(e,t),od=(e,t)=>n.css`
|
|
2928
|
-
${(0,g.switchStyles)(e,t)}
|
|
2929
|
-
.checked-indicator {
|
|
2930
|
-
transform: scale(1.3);
|
|
2931
|
-
}
|
|
2932
|
-
|
|
2933
|
-
.switch {
|
|
2934
|
-
border-radius: calc(var(--control-corner-radius) * 3px);
|
|
2935
|
-
}
|
|
2936
|
-
|
|
2937
|
-
.checked-indicator {
|
|
2938
|
-
border-radius: calc(var(--control-corner-radius) * 2px);
|
|
2939
|
-
}
|
|
2940
|
-
`;class ad extends g.Switch{}const rd=void 0,id={switch:'<div class="checked-indicator" part="checked-indicator"></div>'},nd=(ad.compose(Object.assign({baseName:"switch",template:td,styles:od,shadowOptions:rd},id)),(e,t)=>td(e,t)),sd=(e,t)=>n.css`
|
|
2941
|
-
${od(e,t)}
|
|
2942
|
-
:host {
|
|
2943
|
-
--primary-gradient-angle: -113.5deg;
|
|
2944
|
-
}
|
|
2945
|
-
|
|
2946
|
-
.switch {
|
|
2947
|
-
background: none;
|
|
2948
|
-
border-color: ${g.neutralFillStealthRest};
|
|
2949
|
-
}
|
|
2950
|
-
|
|
2951
|
-
.checked-indicator {
|
|
2952
|
-
background: ${g.neutralFillStealthRest};
|
|
2953
|
-
}
|
|
2954
|
-
|
|
2955
|
-
.switch:hover {
|
|
2956
|
-
border-color: ${k.white};
|
|
2957
|
-
background: none;
|
|
2958
|
-
}
|
|
2959
|
-
|
|
2960
|
-
:host([aria-checked='true']) .switch {
|
|
2961
|
-
background: none;
|
|
2962
|
-
}
|
|
2963
|
-
|
|
2964
|
-
:host([aria-checked='true']) .checked-indicator {
|
|
2965
|
-
background: linear-gradient(
|
|
2966
|
-
var(--primary-gradient-angle),
|
|
2967
|
-
${S.blue},
|
|
2968
|
-
${S.purple}
|
|
2969
|
-
);
|
|
2970
|
-
}
|
|
2971
|
-
|
|
2972
|
-
:host([aria-checked='true']:not([disabled])) .switch:hover,
|
|
2973
|
-
:host([aria-checked='true']:not([disabled])) .switch:active {
|
|
2974
|
-
background: none;
|
|
2975
|
-
}
|
|
2976
|
-
|
|
2977
|
-
:host([aria-checked='true']:not([disabled])) .switch:hover .checked-indicator,
|
|
2978
|
-
:host([aria-checked='true']:not([disabled])) .switch:active .checked-indicator {
|
|
2979
|
-
background: linear-gradient(
|
|
2980
|
-
var(--primary-gradient-angle),
|
|
2981
|
-
${S.blue},
|
|
2982
|
-
${S.purple}
|
|
2983
|
-
);
|
|
2984
|
-
}
|
|
2985
|
-
`;class ld extends ad{}const cd=ld.compose(Object.assign({baseName:"switch",template:nd,styles:sd,shadowOptions:rd},id));var dd=o(491);const pd=(e,t)=>(0,dd.O)(e,t),ud=(e,t)=>n.css`
|
|
2986
|
-
${(0,g.tabStyles)(e,t)}
|
|
2987
|
-
`;class hd extends g.Tab{}const md=void 0,gd={},vd=(hd.compose(Object.assign({baseName:"tab",template:pd,styles:ud,shadowOptions:md},gd)),(e,t)=>pd(e,t)),bd=(e,t)=>n.css`
|
|
2988
|
-
${ud(e,t)}
|
|
2989
|
-
:host {
|
|
2990
|
-
background-color: ${g.neutralLayer2};
|
|
2991
|
-
border-radius: calc(var(--control-corner-radius) * 2px) calc(var(--control-corner-radius) * 2px)
|
|
2992
|
-
0 0;
|
|
2993
|
-
border: calc(var(--stroke-width) * 1px) solid ${k.lightGrey};
|
|
2994
|
-
box-shadow: 0 0 15px 0 rgb(0 0 0 / 30%);
|
|
2995
|
-
margin-right: 5px;
|
|
2996
|
-
}
|
|
2997
|
-
|
|
2998
|
-
:host([aria-selected='true']),
|
|
2999
|
-
:host([aria-selected='true']:hover) {
|
|
3000
|
-
background-color: ${g.neutralLayer4};
|
|
3001
|
-
border-bottom: 1px solid var(--zero-card-fill-color);
|
|
3002
|
-
}
|
|
3003
|
-
|
|
3004
|
-
:host([appearance='secondary']) {
|
|
3005
|
-
border-radius: 0;
|
|
3006
|
-
border: 0;
|
|
3007
|
-
box-shadow: none;
|
|
3008
|
-
margin-right: 0;
|
|
3009
|
-
background-color: var(--zero-card-fill-color);
|
|
3010
|
-
}
|
|
3011
|
-
`;class fd extends hd{}const yd=fd.compose(Object.assign({baseName:"tab",template:vd,styles:bd,shadowOptions:md},gd));var xd=o(3076);const $d=(e,t)=>(0,xd.o)(e,t),wd=(e,t)=>n.css`
|
|
3012
|
-
${(0,g.tabPanelStyles)(e,t)}
|
|
3013
|
-
`;class Fd extends g.TabPanel{}const kd=void 0,Sd={},Od=(Fd.compose(Object.assign({baseName:"tab-panel",template:$d,styles:wd,shadowOptions:kd},Sd)),(e,t)=>$d(e,t)),Dd=(e,t)=>n.css`
|
|
3014
|
-
${wd(e,t)}
|
|
3015
|
-
:host {
|
|
3016
|
-
padding: 0;
|
|
3017
|
-
}
|
|
3018
|
-
`;class zd extends Fd{}const _d=zd.compose(Object.assign({baseName:"tab-panel",template:Od,styles:Dd,shadowOptions:kd},Sd));var Cd=o(3737);const Nd=(e,t)=>(0,Cd.q)(e,t),Ld=(e,t)=>n.css`
|
|
3019
|
-
${(0,g.tabsStyles)(e,t)}
|
|
3020
|
-
`;class Ad extends g.Tabs{}const Rd=void 0,Md={},Td=(Ad.compose(Object.assign({baseName:"tabs",template:Nd,styles:Ld,shadowOptions:Rd},Md)),(e,t)=>Nd(e,t)),Id=(e,t)=>n.css`
|
|
3021
|
-
${Ld(e,t)}
|
|
3022
|
-
:host .tablist {
|
|
3023
|
-
padding: 0;
|
|
3024
|
-
display: block;
|
|
3025
|
-
background-color: ${g.neutralLayer3};
|
|
3026
|
-
width: 100%;
|
|
3027
|
-
height: 42px;
|
|
3028
|
-
border-bottom: calc(var(--stroke-width) * 1px) solid ${k.lightGrey};
|
|
3029
|
-
}
|
|
3030
|
-
|
|
3031
|
-
:host .tabpanel {
|
|
3032
|
-
background-color: var(--zero-card-fill-color);
|
|
3033
|
-
}
|
|
3034
|
-
|
|
3035
|
-
:host .end,
|
|
3036
|
-
:host .start {
|
|
3037
|
-
padding: 0 30px 0 16px;
|
|
3038
|
-
height: calc(100% - 1px);
|
|
3039
|
-
display: flex;
|
|
3040
|
-
align-items: center;
|
|
3041
|
-
border-bottom: calc(var(--stroke-width) * 1px) solid ${k.lightGrey};
|
|
3042
|
-
background-color: var(--neutral-layer-3);
|
|
3043
|
-
}
|
|
3044
|
-
|
|
3045
|
-
:host([appearance='secondary']) .tablist {
|
|
3046
|
-
display: grid;
|
|
3047
|
-
grid-template-columns: repeat(18, max-content);
|
|
3048
|
-
background-color: var(--zero-card-fill-color);
|
|
3049
|
-
border-left: calc(var(--stroke-width) * 1px) solid ${k.lightGrey};
|
|
3050
|
-
border-right: calc(var(--stroke-width) * 1px) solid ${k.lightGrey};
|
|
3051
|
-
}
|
|
3052
|
-
|
|
3053
|
-
/* We don't want to show the active indicator on the tabs */
|
|
3054
|
-
/* stylelint-disable-next-line selector-class-pattern */
|
|
3055
|
-
.activeIndicator {
|
|
3056
|
-
display: none;
|
|
3057
|
-
}
|
|
3058
|
-
|
|
3059
|
-
/* stylelint-disable-next-line selector-class-pattern */
|
|
3060
|
-
:host([appearance='secondary']) .tablist .activeIndicator {
|
|
3061
|
-
border-radius: 0;
|
|
3062
|
-
display: block;
|
|
3063
|
-
height: 2px;
|
|
3064
|
-
margin-top: 0;
|
|
3065
|
-
}
|
|
3066
|
-
`;class Ed extends Ad{}const Hd=Ed.compose(Object.assign({baseName:"tabs",template:Td,styles:Id,shadowOptions:Rd},Md));var jd=o(6819);const Pd=(e,t)=>(0,jd.Z)(e,t),Bd=(e,t)=>n.css`
|
|
3067
|
-
${(0,g.textAreaStyles)(e,t)}
|
|
3068
|
-
:host .control {
|
|
3069
|
-
padding: calc(var(--design-unit) * 3px);
|
|
3070
|
-
}
|
|
3071
|
-
`;class Gd extends g.TextArea{}const Vd=void 0,Ud={},Yd=(Gd.compose(Object.assign({baseName:"text-area",template:Pd,styles:Bd,shadowOptions:Vd},Ud)),(e,t)=>Pd(e,t)),Wd=(e,t)=>n.css`
|
|
3072
|
-
${Bd(e,t)}
|
|
3073
|
-
:host {
|
|
3074
|
-
--primary-gradient-angle: -113.5deg;
|
|
3075
|
-
}
|
|
3076
|
-
|
|
3077
|
-
:host .control {
|
|
3078
|
-
height: 100%;
|
|
3079
|
-
background-color: ${Yt};
|
|
3080
|
-
border: calc(var(--stroke-width) * 1px) solid ${Jt};
|
|
3081
|
-
border-radius: calc(var(--control-corner-radius) * 1px);
|
|
3082
|
-
}
|
|
3083
|
-
|
|
3084
|
-
:host(:hover:not([disabled])) .control {
|
|
3085
|
-
border-color: ${Vt};
|
|
3086
|
-
background: ${Yt};
|
|
3087
|
-
}
|
|
3088
|
-
|
|
3089
|
-
:host(:focus-within:not([disabled])) .control {
|
|
3090
|
-
background: linear-gradient(
|
|
3091
|
-
var(--primary-gradient-angle),
|
|
3092
|
-
${S.blue} 0%,
|
|
3093
|
-
${S.purple} 100%
|
|
3094
|
-
)
|
|
3095
|
-
top/100% 1px,
|
|
3096
|
-
linear-gradient(
|
|
3097
|
-
var(--primary-gradient-angle),
|
|
3098
|
-
${S.blue} 0%,
|
|
3099
|
-
${S.purple} 100%
|
|
3100
|
-
)
|
|
3101
|
-
bottom/100% 1px;
|
|
3102
|
-
background-origin: border-box;
|
|
3103
|
-
background-repeat: no-repeat;
|
|
3104
|
-
border: 1px solid transparent;
|
|
3105
|
-
border-right-color: ${S.blue};
|
|
3106
|
-
border-left-color: ${S.purple};
|
|
3107
|
-
background-color: ${Zt};
|
|
3108
|
-
box-shadow: none;
|
|
3109
|
-
}
|
|
3110
|
-
|
|
3111
|
-
.label {
|
|
3112
|
-
color: ${qt};
|
|
3113
|
-
font-family: Roboto-Medium, sans-serif;
|
|
3114
|
-
font-style: normal;
|
|
3115
|
-
margin: calc(var(--design-unit) * 2px) 0;
|
|
3116
|
-
}
|
|
3117
|
-
`;class qd extends Gd{}const Xd=qd.compose(Object.assign({baseName:"text-area",template:Yd,styles:Wd,shadowOptions:Vd},Ud));var Zd=o(3800);const Kd=(e,t)=>n.html`
|
|
3118
|
-
<template
|
|
3119
|
-
class="
|
|
3120
|
-
${e=>e.readOnly?"readonly":""}
|
|
3121
|
-
"
|
|
3122
|
-
>
|
|
3123
|
-
<label
|
|
3124
|
-
part="label"
|
|
3125
|
-
for="${e=>e.id?e.id:"control"}"
|
|
3126
|
-
class="${e=>e.defaultSlottedNodes&&e.defaultSlottedNodes.length?"label":"label label__hidden"}"
|
|
3127
|
-
>
|
|
3128
|
-
<slot ${(0,n.slotted)({property:"defaultSlottedNodes",filter:Gs.E})}></slot>
|
|
3129
|
-
</label>
|
|
3130
|
-
<div class="root" part="root">
|
|
3131
|
-
${(0,Zd.m9)(e,t)}
|
|
3132
|
-
<input
|
|
3133
|
-
name="${e=>e.name}"
|
|
3134
|
-
autocomplete="${e=>e.autocomplete}"
|
|
3135
|
-
autocapitalize="${e=>e.autocapitalize}"
|
|
3136
|
-
id="${e=>e.id?e.id:"control"}"
|
|
3137
|
-
class="control"
|
|
3138
|
-
part="control"
|
|
3139
|
-
@input="${e=>e.handleTextInput()}"
|
|
3140
|
-
@change="${e=>e.handleChange()}"
|
|
3141
|
-
step="${e=>e.step}"
|
|
3142
|
-
?autofocus="${e=>e.autofocus}"
|
|
3143
|
-
?disabled="${e=>e.disabled}"
|
|
3144
|
-
list="${e=>e.list}"
|
|
3145
|
-
maxlength="${e=>e.maxlength}"
|
|
3146
|
-
minlength="${e=>e.minlength}"
|
|
3147
|
-
pattern="${e=>e.pattern}"
|
|
3148
|
-
placeholder="${e=>e.placeholder}"
|
|
3149
|
-
?readonly="${e=>e.readOnly}"
|
|
3150
|
-
?required="${e=>e.required}"
|
|
3151
|
-
size="${e=>e.size}"
|
|
3152
|
-
?spellcheck="${e=>e.spellcheck}"
|
|
3153
|
-
:value="${e=>e.value}"
|
|
3154
|
-
type="${e=>e.type}"
|
|
3155
|
-
aria-atomic="${e=>e.ariaAtomic}"
|
|
3156
|
-
aria-busy="${e=>e.ariaBusy}"
|
|
3157
|
-
aria-controls="${e=>e.ariaControls}"
|
|
3158
|
-
aria-current="${e=>e.ariaCurrent}"
|
|
3159
|
-
aria-describedby="${e=>e.ariaDescribedby}"
|
|
3160
|
-
aria-details="${e=>e.ariaDetails}"
|
|
3161
|
-
aria-disabled="${e=>e.ariaDisabled}"
|
|
3162
|
-
aria-errormessage="${e=>e.ariaErrormessage}"
|
|
3163
|
-
aria-flowto="${e=>e.ariaFlowto}"
|
|
3164
|
-
aria-haspopup="${e=>e.ariaHaspopup}"
|
|
3165
|
-
aria-hidden="${e=>e.ariaHidden}"
|
|
3166
|
-
aria-invalid="${e=>e.ariaInvalid}"
|
|
3167
|
-
aria-keyshortcuts="${e=>e.ariaKeyshortcuts}"
|
|
3168
|
-
aria-label="${e=>e.ariaLabel}"
|
|
3169
|
-
aria-labelledby="${e=>e.ariaLabelledby}"
|
|
3170
|
-
aria-live="${e=>e.ariaLive}"
|
|
3171
|
-
aria-owns="${e=>e.ariaOwns}"
|
|
3172
|
-
aria-relevant="${e=>e.ariaRelevant}"
|
|
3173
|
-
aria-roledescription="${e=>e.ariaRoledescription}"
|
|
3174
|
-
${(0,n.ref)("control")}
|
|
3175
|
-
/>
|
|
3176
|
-
${(0,Zd.LC)(e,t)}
|
|
3177
|
-
</div>
|
|
3178
|
-
</template>
|
|
3179
|
-
`;class Jd extends g.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,i.__decorate)([n.attr],Jd.prototype,"autocomplete",void 0),(0,i.__decorate)([n.attr],Jd.prototype,"autocapitalize",void 0),(0,i.__decorate)([n.attr],Jd.prototype,"step",void 0);const Qd={mode:"open",delegatesFocus:!0},ep={},tp=(Jd.compose(Object.assign({baseName:"text-field",template:Kd,styles:ll,shadowOptions:Qd},ep)),(e,t)=>Kd(e,t));class op extends Jd{}const ap=op.compose(Object.assign({baseName:"text-field",template:tp,styles:cl,shadowOptions:Qd},ep)),rp=n.css`
|
|
3180
|
-
@keyframes append-animate {
|
|
3181
|
-
from {
|
|
3182
|
-
transform: translateX(100%);
|
|
3183
|
-
opacity: 0%;
|
|
3184
|
-
}
|
|
3185
|
-
|
|
3186
|
-
to {
|
|
3187
|
-
transform: translateX(0%);
|
|
3188
|
-
opacity: 100%;
|
|
3189
|
-
}
|
|
3190
|
-
}
|
|
3191
|
-
|
|
3192
|
-
@keyframes delete-animate {
|
|
3193
|
-
from {
|
|
3194
|
-
transform: translateX(0%);
|
|
3195
|
-
opacity: 100%;
|
|
3196
|
-
}
|
|
3197
|
-
|
|
3198
|
-
to {
|
|
3199
|
-
transform: translateX(100%);
|
|
3200
|
-
opacity: 0%;
|
|
3201
|
-
}
|
|
3202
|
-
}
|
|
3203
|
-
|
|
3204
|
-
:host {
|
|
3205
|
-
--toast-min-width: 356px;
|
|
3206
|
-
--toast-min-height: 128px;
|
|
3207
|
-
--toast-max-width: 356px;
|
|
3208
|
-
--toast-max-height: 272px;
|
|
3209
|
-
}
|
|
3210
|
-
|
|
3211
|
-
.toast {
|
|
3212
|
-
animation: append-animate 0.3s linear;
|
|
3213
|
-
max-width: var(--toast-max-width);
|
|
3214
|
-
min-width: var(--toast-min-width);
|
|
3215
|
-
background-color: var(--fill-color);
|
|
3216
|
-
border-radius: calc(var(--control-corner-radius) * 1px);
|
|
3217
|
-
border-width: thin;
|
|
3218
|
-
border-color: var(--neutral-fill-rest);
|
|
3219
|
-
box-shadow: 0 2px 15px 0 rgb(0 0 0 / 35%);
|
|
3220
|
-
display: flex;
|
|
3221
|
-
position: relative;
|
|
3222
|
-
flex-direction: row;
|
|
3223
|
-
padding: 8px 8px 8px 15px;
|
|
3224
|
-
margin: 5px;
|
|
3225
|
-
}
|
|
3226
|
-
|
|
3227
|
-
.toast-delete {
|
|
3228
|
-
animation: delete-animate 0.3s linear;
|
|
3229
|
-
opacity: 0%;
|
|
3230
|
-
}
|
|
3231
|
-
|
|
3232
|
-
.toast::after {
|
|
3233
|
-
content: '';
|
|
3234
|
-
position: absolute;
|
|
3235
|
-
top: 50%;
|
|
3236
|
-
transform: translateY(-50%);
|
|
3237
|
-
left: 5px;
|
|
3238
|
-
height: calc(100% - 10px);
|
|
3239
|
-
width: 4px;
|
|
3240
|
-
border-radius: 2px;
|
|
3241
|
-
background-color: red;
|
|
3242
|
-
}
|
|
3243
|
-
|
|
3244
|
-
.content-wrapper {
|
|
3245
|
-
height: fit-content;
|
|
3246
|
-
width: 100%;
|
|
3247
|
-
display: flex;
|
|
3248
|
-
flex-direction: column;
|
|
3249
|
-
justify-content: space-between;
|
|
3250
|
-
align-items: stretch;
|
|
3251
|
-
}
|
|
3252
|
-
|
|
3253
|
-
.bottom {
|
|
3254
|
-
width: 70%;
|
|
3255
|
-
}
|
|
3256
|
-
|
|
3257
|
-
.top {
|
|
3258
|
-
width: 100%;
|
|
3259
|
-
display: flex;
|
|
3260
|
-
flex-direction: row;
|
|
3261
|
-
justify-content: space-between;
|
|
3262
|
-
align-items: center;
|
|
3263
|
-
}
|
|
3264
|
-
|
|
3265
|
-
.content {
|
|
3266
|
-
width: 85%;
|
|
3267
|
-
font-size: 12px;
|
|
3268
|
-
}
|
|
3269
|
-
|
|
3270
|
-
.date {
|
|
3271
|
-
color: var(--neutral-foreground-hint);
|
|
3272
|
-
font-size: 12px;
|
|
3273
|
-
margin: 0 0 5px;
|
|
3274
|
-
}
|
|
3275
|
-
|
|
3276
|
-
.close-icon svg {
|
|
3277
|
-
cursor: pointer;
|
|
3278
|
-
}
|
|
3279
|
-
`,ip=n.html`
|
|
3280
|
-
<div class="toast ${e=>e.deleteAnimation}" ${(0,n.ref)("toast")}>
|
|
3281
|
-
<div class="content-wrapper">
|
|
3282
|
-
<div part="top" class="top">
|
|
3283
|
-
<slot name="top"></slot>
|
|
3284
|
-
<div class="close-icon" @click=${e=>e.close()}>${ha()}</div>
|
|
3285
|
-
</div>
|
|
3286
|
-
<div part="content" class="content">
|
|
3287
|
-
<slot name="content"></slot>
|
|
3288
|
-
</div>
|
|
3289
|
-
<div part="date" class="date">
|
|
3290
|
-
<slot name="date"></slot>
|
|
3291
|
-
</div>
|
|
3292
|
-
<div part="bottom" class="bottom">
|
|
3293
|
-
<slot name="bottom"></slot>
|
|
3294
|
-
</div>
|
|
3295
|
-
</div>
|
|
3296
|
-
</div>
|
|
3297
|
-
`,np={mode:"open",delegatesFocus:!0},sp={};class lp extends s.I{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,i.__decorate)([n.observable],lp.prototype,"deleteAnimation",void 0),(0,i.__decorate)([(0,n.attr)({attribute:"close-timeout"})],lp.prototype,"closeTimeout",void 0),(0,i.__decorate)([(0,n.attr)({attribute:"auto-close"})],lp.prototype,"autoClose",void 0);lp.compose(Object.assign({baseName:"toast",styles:rp,template:ip,shadowOptions:np},sp));const cp=n.css`
|
|
3298
|
-
${rp}
|
|
3299
|
-
.toast {
|
|
3300
|
-
border: calc(var(--stroke-width) * 1px) solid ${g.neutralLayer3};
|
|
3301
|
-
background-color: ${g.neutralLayer1};
|
|
3302
|
-
}
|
|
3303
|
-
|
|
3304
|
-
.toast::after {
|
|
3305
|
-
background-color: ${G(1)};
|
|
3306
|
-
}
|
|
3307
|
-
|
|
3308
|
-
:host([notify='warning']) .toast::after {
|
|
3309
|
-
background-color: ${ie(1)};
|
|
3310
|
-
}
|
|
3311
|
-
|
|
3312
|
-
:host([notify='success']) .toast::after {
|
|
3313
|
-
background-color: ${K(1)};
|
|
3314
|
-
}
|
|
3315
|
-
`,dp=sp,pp=np;class up extends lp{}const hp=up.compose(Object.assign({baseName:"toast",shadowOptions:pp,styles:cp,template:ip},dp));var mp=o(2636);const gp=(e,t)=>(0,mp.T)(e,t),vp=(e,t)=>n.css`
|
|
3316
|
-
${(0,g.toolbarStyles)(e,t)}
|
|
3317
|
-
`;class bp extends g.Toolbar{}const fp=void 0,yp={},xp=(bp.compose(Object.assign({baseName:"toolbar",template:gp,styles:vp,shadowOptions:fp},yp)),(e,t)=>gp(e,t)),$p=(e,t)=>n.css`
|
|
3318
|
-
${vp(e,t)}
|
|
3319
|
-
`;class wp extends bp{}const Fp=wp.compose(Object.assign({baseName:"toolbar",template:xp,styles:$p,shadowOptions:fp},yp));var kp=o(5500);const Sp=(e,t)=>(0,kp.e)(e,t),Op=(e,t)=>n.css`
|
|
3320
|
-
${(0,g.tooltipStyles)(e,t)}
|
|
3321
|
-
`;class Dp extends g.Tooltip{}const zp=void 0,_p={},Cp=(Dp.compose(Object.assign({baseName:"tooltip",template:Sp,styles:Op,shadowOptions:zp},_p)),(e,t)=>Sp(e,t)),Np=(e,t)=>n.css`
|
|
3322
|
-
${Op(e,t)}
|
|
3323
|
-
`;class Lp extends Dp{}const Ap=Lp.compose(Object.assign({baseName:"tooltip",template:Cp,styles:Np,shadowOptions:zp},_p));var Rp=o(3996);const Mp=(e,t)=>(0,Rp.W)(e,t),Tp=(e,t)=>n.css`
|
|
3324
|
-
${(0,g.treeItemStyles)(e,t)}
|
|
3325
|
-
:host {
|
|
3326
|
-
--focus-stroke-width: 0;
|
|
3327
|
-
--tree-item-nested-width: 1em;
|
|
3328
|
-
}
|
|
3329
|
-
|
|
3330
|
-
:host([selected])::after {
|
|
3331
|
-
height: calc(((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) * 1px);
|
|
3332
|
-
width: 5px;
|
|
3333
|
-
top: 0;
|
|
3334
|
-
border-radius: 0;
|
|
3335
|
-
}
|
|
3336
|
-
|
|
3337
|
-
.positioning-region {
|
|
3338
|
-
height: calc(((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) * 1px);
|
|
3339
|
-
}
|
|
3340
|
-
`;class Ip extends g.TreeItem{}const Ep=void 0,Hp={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>'},jp=(Ip.compose(Object.assign({baseName:"tree-item",template:Mp,styles:Tp,shadowOptions:Ep},Hp)),(e,t)=>Mp(e,t)),Pp=(e,t)=>n.css`
|
|
3341
|
-
${Tp(e,t)}
|
|
3342
|
-
:host {
|
|
3343
|
-
--primary-gradient-angle: -113.5deg;
|
|
3344
|
-
--base-height-multiplier: 15;
|
|
3345
|
-
|
|
3346
|
-
font-size: --type-ramp-base-font-size;
|
|
3347
|
-
background-color: transparent;
|
|
3348
|
-
}
|
|
3349
|
-
|
|
3350
|
-
:host([selected])::after {
|
|
3351
|
-
background: linear-gradient(
|
|
3352
|
-
var(--primary-gradient-angle),
|
|
3353
|
-
${S.blue} 10%,
|
|
3354
|
-
${S.purple} 100%
|
|
3355
|
-
)
|
|
3356
|
-
top/100% 1px,
|
|
3357
|
-
linear-gradient(
|
|
3358
|
-
var(--primary-gradient-angle),
|
|
3359
|
-
${S.blue} 10%,
|
|
3360
|
-
${S.purple} 100%
|
|
3361
|
-
)
|
|
3362
|
-
bottom/100% 1px;
|
|
3363
|
-
background-origin: border-box;
|
|
3364
|
-
background-size: cover;
|
|
3365
|
-
background-repeat: no-repeat;
|
|
3366
|
-
}
|
|
3367
|
-
`;class Bp extends Ip{}const Gp=Bp.compose(Object.assign({baseName:"tree-item",template:jp,styles:Pp,shadowOptions:Ep},Hp));var Vp=o(1460),Up=o(79);const Yp=(e,t)=>(0,Up.E)(e,t),Wp=(e,t)=>n.css`
|
|
3368
|
-
${(0,g.treeViewStyles)(e,t)}
|
|
3369
|
-
`;class qp extends Vp.L{}const Xp=void 0,Zp={},Kp=(qp.compose(Object.assign({baseName:"tree-view",template:Yp,styles:Wp,shadowOptions:Xp},Zp)),(e,t)=>Yp(e,t)),Jp=(e,t)=>n.css`
|
|
3370
|
-
${Wp(e,t)}
|
|
3371
|
-
`;class Qp extends qp{}const eu=Qp.compose(Object.assign({baseName:"tree-view",template:Kp,styles:Jp,shadowOptions:Xp},Zp)),tu=n.html`
|
|
3372
|
-
<div class="container" value=${e=>e.value}>
|
|
3373
|
-
<fast-text-field
|
|
3374
|
-
class="url-input"
|
|
3375
|
-
required
|
|
3376
|
-
type="url"
|
|
3377
|
-
:value=${e=>e.focused&&!e.readOnly?e.value:""}
|
|
3378
|
-
@blur=${(e,t)=>{var o;return e.readOnly?"":e.saveUrl(null===(o=t.event)||void 0===o?void 0:o.target.value)}}
|
|
3379
|
-
@focus=${e=>e.focus()}
|
|
3380
|
-
:readOnly=${e=>e.readOnly}
|
|
3381
|
-
}
|
|
3382
|
-
></fast-text-field>
|
|
3383
|
-
${(0,n.when)((e=>e.readOnly||!e.focused),n.html`
|
|
3384
|
-
<a class="url-input-link" href=${e=>e.value} target="_blank">${e=>e.value}</a>
|
|
3385
|
-
`)}
|
|
3386
|
-
</div>
|
|
3387
|
-
`,ou=(e,t)=>n.css`
|
|
3388
|
-
.container {
|
|
3389
|
-
position: relative;
|
|
3390
|
-
width: 100%;
|
|
3391
|
-
}
|
|
3392
|
-
|
|
3393
|
-
.url-input {
|
|
3394
|
-
position: relative;
|
|
3395
|
-
width: 100%;
|
|
3396
|
-
}
|
|
3397
|
-
|
|
3398
|
-
.url-input-link {
|
|
3399
|
-
position: absolute;
|
|
3400
|
-
left: 10px;
|
|
3401
|
-
top: 10px;
|
|
3402
|
-
max-width: 100%;
|
|
3403
|
-
white-space: nowrap;
|
|
3404
|
-
overflow: hidden;
|
|
3405
|
-
text-overflow: ellipsis;
|
|
3406
|
-
}
|
|
3407
|
-
`,au=void 0,ru={};class iu extends g.TextField{constructor(){super(...arguments),this.value=""}saveUrl(e){this.value=e.startsWith("http")?e:"https://"+e,this.focused=!1}focus(){this.focused=!0}}(0,i.__decorate)([n.observable],iu.prototype,"value",void 0),(0,i.__decorate)([n.observable],iu.prototype,"focused",void 0);iu.compose(Object.assign({baseName:"url-input",template:tu,styles:ou,shadowOptions:au},ru));const nu=n.html`
|
|
3408
|
-
<div class="container" value=${e=>e.value}>
|
|
3409
|
-
<zero-text-field
|
|
3410
|
-
class="url-input"
|
|
3411
|
-
required
|
|
3412
|
-
type="url"
|
|
3413
|
-
:value=${e=>e.focused&&!e.readOnly?e.value:""}
|
|
3414
|
-
@blur=${(e,t)=>{var o;return e.readOnly?"":e.saveUrl(null===(o=t.event)||void 0===o?void 0:o.target.value)}}
|
|
3415
|
-
@focus=${e=>e.focus()}
|
|
3416
|
-
:readOnly=${e=>e.readOnly}
|
|
3417
|
-
}
|
|
3418
|
-
></zero-text-field>
|
|
3419
|
-
${(0,n.when)((e=>e.readOnly||!e.focused),n.html`
|
|
3420
|
-
<a class="url-input-link" href=${e=>e.value} target="_blank">${e=>e.value}</a>
|
|
3421
|
-
`)}
|
|
3422
|
-
</div>
|
|
3423
|
-
`,su=(e,t)=>n.css`
|
|
3424
|
-
${ou()}
|
|
3425
|
-
a {
|
|
3426
|
-
color: ${S.blue};
|
|
3427
|
-
opacity: 65%;
|
|
3428
|
-
}
|
|
3429
|
-
|
|
3430
|
-
a:hover {
|
|
3431
|
-
opacity: 100%;
|
|
3432
|
-
}
|
|
3433
|
-
`;class lu extends Jd{constructor(){super(...arguments),this.value=""}saveUrl(e){this.value=e.startsWith("http")?e:"https://"+e,this.focused=!1}focus(){this.focused=!0}}(0,i.__decorate)([n.observable],lu.prototype,"value",void 0),(0,i.__decorate)([n.observable],lu.prototype,"focused",void 0);const cu=ru,du=au,pu=lu.compose(Object.assign({baseName:"url-input",template:nu,styles:su,shadowOptions:au},ru)),uu={zeroActionsMenu:m,zeroAnchor:Fe,zeroBadge:Ae,zeroBanner:Pe,zeroBreadcrumbItem:Ke,zeroBreadcrumb:st,zeroButton:gt,zeroCard:St,zeroCheckbox:Mt,zeroCombobox:ro,zeroConnectionIndicator:co,zeroDataGrid:To,zeroDesignSystemProvider:da,zeroDialog:Oa,zeroDatePicker:Ba,zeroDisclosure:Ja,zeroDivider:cr,zeroDropdownMenu:fr,zeroErrorBoundary:zr,zeroErrorBanner:Tr,zeroErrorDialog:Br,zeroFileUpload:hi,zeroFilter:Ti,zeroFilterBar:Zi,zeroFlexLayout:nn,zeroFlipper:vn,zeroFlyout:On,zeroGridLayout:Tn,zeroGridLayoutItem:Bn,zeroIcon:as,zeroListboxOption:hs,zeroMenu:$s,zeroMenuItem:Ns,zeroModal:Bs,zeroMultiselect:ol,zeroNumberField:gl,zeroProgress:Sl,zeroProgressRing:Ml,zeroRadio:Ul,zeroRadioGroup:tc,zeroSegmentedControl:vc,zeroSegmentedItem:wc,zeroSelect:Lc,zeroSkeleton:Bc,zeroSlider:Qc,zeroSnackbar:dc,zeroSwitch:cd,zeroTab:yd,zeroTabPanel:_d,zeroTabs:Hd,zeroTextArea:Xd,zeroTextField:ap,zeroToast:hp,zeroToolbar:Fp,zeroTooltip:Ap,zeroTreeItem:Gp,zeroTreeView:eu,zeroUrlInput:pu,register(e,...t){if(e)for(const o in this)"register"!==o&&this[o]().register(e,...t)}};function hu(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)}})}var mu=o(9389);const gu=(e,t="zero")=>{e&&Io(a,r,e);return hu(mu.K.getOrCreate(e).withPrefix(t))},vu=()=>gu().register(uu)}}]);
|
|
3434
|
-
//# sourceMappingURL=868.f796e350acd03aa052fa27272aa83afc.js.map
|