@momentum-ui/web-components 2.26.11 → 2.26.12

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.
@@ -1203,7 +1203,7 @@
1203
1203
  ${this.hasNotification?a.html` <span class="md-avatar__notification-badge"></span> `:l.nothing}
1204
1204
  ${this.renderPresence()}
1205
1205
  </div>
1206
- `}};y([(0,a.property)({type:Number,attribute:"tab-index",reflect:!0})],e.prototype,"tabIndex",null),y([(0,a.property)({type:String})],e.prototype,"alt",void 0),y([(0,a.property)({type:String})],e.prototype,"src",void 0),y([(0,a.property)({type:String})],e.prototype,"label",void 0),y([(0,a.property)({type:String})],e.prototype,"title",void 0),y([(0,a.property)({type:String})],e.prototype,"color",void 0),y([(0,a.property)({type:Boolean})],e.prototype,"decrypting",void 0),y([(0,a.property)({type:String})],e.prototype,"role",void 0),y([(0,a.property)({type:String,attribute:"icon-name"})],e.prototype,"iconName",void 0),y([(0,a.property)({type:Boolean})],e.prototype,"failurePresence",void 0),y([(0,a.property)({type:String})],e.prototype,"type",void 0),y([(0,a.property)({type:String,attribute:"presence-type"})],e.prototype,"presenceType",void 0),y([(0,a.property)({type:Boolean})],e.prototype,"newMomentum",void 0),y([(0,a.property)({type:Boolean})],e.prototype,"typing",void 0),y([(0,a.property)({type:Number})],e.prototype,"size",void 0),y([(0,a.property)({type:Boolean,attribute:"has-notification"})],e.prototype,"hasNotification",void 0),y([(0,a.property)({type:Boolean})],e.prototype,"clickable",void 0),y([(0,a.property)({attribute:!1})],e.prototype,"clickFunction",void 0),y([(0,a.property)({type:String,attribute:"avatar-style"})],e.prototype,"avatarStyle",void 0),y([(0,a.property)({type:String})],e.prototype,"state",void 0),y([(0,a.internalProperty)()],e.prototype,"imageLoaded",void 0),y([(0,a.internalProperty)()],e.prototype,"imageErrored",void 0),y([(0,a.internalProperty)()],e.prototype,"presenceColor",void 0),y([(0,a.internalProperty)()],e.prototype,"presenceIcon",void 0),e=y([(0,s.w)("md-avatar")],e),t.ELEMENT=e}(o||(o={}))},39791:(t,e,i)=>{i.r(e),i.d(e,{Accordion:()=>o.Accordion,AccordionItem:()=>s.AccordionItem,ActivityButton:()=>r.ActivityButton,AdvanceList:()=>n.AdvanceList,Alert:()=>l.Alert,AlertBanner:()=>a.AlertBanner,AudioPlayer:()=>d.AudioPlayer,Avatar:()=>h.Avatar,AvatarType:()=>p,Badge:()=>u.Badge,Breadcrumb:()=>E.Breadcrumb,Button:()=>$.Button,ButtonGroup:()=>S.ButtonGroup,Card:()=>A.Card,CardAi:()=>T.CardAi,CardV2:()=>k.CardV2,ChatMessage:()=>I.ChatMessage,Checkbox:()=>L.Checkbox,CheckboxGroup:()=>O.CheckboxGroup,Chip:()=>M.Chip,Coachmark:()=>P.Coachmark,CoachmarkPopover:()=>D.CoachmarkPopover,CodeEditor:()=>F,ComboBox:()=>N.ComboBox,CompositeAvatar:()=>c.CompositeAvatar,CountryCodePicker:()=>j.CountryCodePicker,DatePicker:()=>H.DatePicker,DatePickerCalendar:()=>K.DatePickerCalendar,DatePickerDay:()=>W.DatePickerDay,DatePickerMonth:()=>G.DatePickerMonth,DatePickerWeek:()=>Y.DatePickerWeek,DateRangePicker:()=>U.DateRangePicker,DateTimePicker:()=>q.DateTimePicker,Draggable:()=>X.Draggable,DraggableItem:()=>Z.DraggableItem,Dropdown:()=>Q.Dropdown,EditableTextfield:()=>J.EditableTextfield,Favorite:()=>tt.Favorite,FloatingButtonBar:()=>nt,FloatingMinimizedModal:()=>at.FloatingMinimizedModal,FloatingModal:()=>lt.FloatingModal,Form:()=>mt.Form,FormArray:()=>ct,FormControl:()=>ht,FormGroup:()=>pt,Grabber:()=>yt.Grabber,HelpText:()=>vt.HelpText,Icon:()=>g.Icon,Input:()=>gt.Input,InputFile:()=>bt.InputFile,Label:()=>ft.Label,Link:()=>wt.Link,List:()=>At.List,ListItem:()=>It.ListItem,ListItemV2:()=>St,ListV2:()=>Tt,Loading:()=>Lt.Loading,MeetingAlert:()=>Ot.MeetingAlert,Menu:()=>Dt.Menu,MenuItem:()=>Pt.MenuItem,MenuOverlay:()=>Mt.MenuOverlay,Modal:()=>Rt.Modal,NotificationBadge:()=>C,Pagination:()=>_t.Pagination,PhoneInput:()=>Bt.PhoneInput,Popover:()=>zt.Popover,PopoverController:()=>zt.PopoverController,Presence:()=>Ft.Presence,ProgressBar:()=>Vt.ProgressBar,Radio:()=>Nt.Radio,RadioGroup:()=>jt.RadioGroup,Skeleton:()=>qt,Slider:()=>Kt.Slider,Spinner:()=>Wt.Spinner,Tab:()=>Xt.Tab,TabPanel:()=>Zt.TabPanel,Table:()=>Yt.Table,TableAdvanced:()=>Gt.TableAdvanced,Tabs:()=>Qt.Tabs,TaskItem:()=>Jt.TaskItem,Theme:()=>te.Theme,ThemeManager:()=>se.ThemeManager,TimePicker:()=>ee.TimePicker,ToggleSwitch:()=>ie.ToggleSwitch,Tooltip:()=>et.Tooltip,Validators:()=>ut,iconUrlManager:()=>oe.O,registerThemeManagerGlobally:()=>se.registerThemeManagerGlobally,themeManager:()=>se.themeManager});var o=i(33328),s=i(6779),r=i(94891),n=i(28307),a=i(19479),l=i(74896),d=i(23779),h=i(38028);const p=["bot","group","self","typing",""];var c=i(2207),u=i(63704),m=i(3001),y=i(41488),v=i(17518),b=i(73679),g=i(61200),f=i(15427);const w=y.css`:host{color:var(--badge-notification-primary-foreground-color);font-size:var(--font-size-body-small,.75rem);font-weight:var(--brand-font-weight-medium,500);line-height:var(--font-lineheight-body-small,1rem);font-family:var(--brand-font-medium);box-sizing:border-box;align-items:center;display:flex;height:fit-content;justify-content:center;width:fit-content}.md-notification-badge-overlay{outline:.0625rem solid var(--badge-notification-overlay-border-color)}.md-notification-badge-text{box-sizing:border-box;padding:0 .25rem;border-radius:6.25rem;min-width:1rem;display:flex;justify-content:center;background-color:var(--badge-notification-primary-background-color)}.md-notification-badge-dot{width:.75rem;height:.75rem;border-radius:50%;background-color:var(--badge-notification-primary-background-color)}.md-notification-badge-icon{padding:2px;size:1rem;border-radius:50%;box-sizing:border-box}.md-notification-badge-icon__primary{background-color:var(--badge-notification-primary-background-color);color:var(--badge-notification-primary-foreground-color)}.md-notification-badge-icon__success{background-color:var(--badge-notification-success-background-color);color:var(--badge-notification-success-foreground-color)}.md-notification-badge-icon__warning{background-color:var(--badge-notification-warning-background-color);color:var(--badge-notification-warning-foreground-color)}.md-notification-badge-icon__error{background-color:var(--badge-notification-error-background-color);color:var(--badge-notification-error-foreground-color)}.md-notification-badge-icon__secondary{background-color:var(--badge-notification-secondary-background-color);color:var(--badge-notification-secondary-foreground-color)}@media(forced-colors:active){.md-notification-badge-dot,.md-notification-badge-icon,.md-notification-badge-text{outline:.125rem solid}}`;var x=function(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};let C=class extends y.LitElement{constructor(){super(...arguments),this.variant=f.zY.VARIANT,this.maxCounter=f.zY.MAX_COUNTER,this.overlay=!1,this.ariaLabel=null}static get styles(){return[w]}getCounterText(t,e){return void 0===e||"number"!=typeof e||0===t?"":e>t?`${t}+`:t>f.zY.MAX_COUNTER_LIMIT||e>f.zY.MAX_COUNTER_LIMIT?`${f.zY.MAX_COUNTER_LIMIT}+`:e.toString()}getBadgeIcon(t,e){return y.html`
1206
+ `}};y([(0,a.property)({type:Number,attribute:"tab-index",reflect:!0})],e.prototype,"tabIndex",null),y([(0,a.property)({type:String})],e.prototype,"alt",void 0),y([(0,a.property)({type:String})],e.prototype,"src",void 0),y([(0,a.property)({type:String})],e.prototype,"label",void 0),y([(0,a.property)({type:String})],e.prototype,"title",void 0),y([(0,a.property)({type:String})],e.prototype,"color",void 0),y([(0,a.property)({type:Boolean})],e.prototype,"decrypting",void 0),y([(0,a.property)({type:String})],e.prototype,"role",void 0),y([(0,a.property)({type:String,attribute:"icon-name"})],e.prototype,"iconName",void 0),y([(0,a.property)({type:Boolean})],e.prototype,"failurePresence",void 0),y([(0,a.property)({type:String})],e.prototype,"type",void 0),y([(0,a.property)({type:String,attribute:"presence-type"})],e.prototype,"presenceType",void 0),y([(0,a.property)({type:Boolean})],e.prototype,"newMomentum",void 0),y([(0,a.property)({type:Boolean})],e.prototype,"typing",void 0),y([(0,a.property)({type:Number})],e.prototype,"size",void 0),y([(0,a.property)({type:Boolean,attribute:"has-notification"})],e.prototype,"hasNotification",void 0),y([(0,a.property)({type:Boolean})],e.prototype,"clickable",void 0),y([(0,a.property)({attribute:!1})],e.prototype,"clickFunction",void 0),y([(0,a.property)({type:String,attribute:"avatar-style"})],e.prototype,"avatarStyle",void 0),y([(0,a.property)({type:String})],e.prototype,"state",void 0),y([(0,a.internalProperty)()],e.prototype,"imageLoaded",void 0),y([(0,a.internalProperty)()],e.prototype,"imageErrored",void 0),y([(0,a.internalProperty)()],e.prototype,"presenceColor",void 0),y([(0,a.internalProperty)()],e.prototype,"presenceIcon",void 0),e=y([(0,s.w)("md-avatar")],e),t.ELEMENT=e}(o||(o={}))},39791:(t,e,i)=>{i.r(e),i.d(e,{Accordion:()=>o.Accordion,AccordionItem:()=>s.AccordionItem,ActivityButton:()=>r.ActivityButton,AdvanceList:()=>n.AdvanceList,Alert:()=>l.Alert,AlertBanner:()=>a.AlertBanner,ArrayValidators:()=>yt,AudioPlayer:()=>d.AudioPlayer,Avatar:()=>h.Avatar,AvatarType:()=>p,Badge:()=>u.Badge,Breadcrumb:()=>E.Breadcrumb,Button:()=>$.Button,ButtonGroup:()=>S.ButtonGroup,Card:()=>A.Card,CardAi:()=>T.CardAi,CardV2:()=>k.CardV2,ChatMessage:()=>I.ChatMessage,Checkbox:()=>L.Checkbox,CheckboxGroup:()=>O.CheckboxGroup,Chip:()=>M.Chip,Coachmark:()=>P.Coachmark,CoachmarkPopover:()=>D.CoachmarkPopover,CodeEditor:()=>F,ComboBox:()=>N.ComboBox,CompositeAvatar:()=>c.CompositeAvatar,CountryCodePicker:()=>j.CountryCodePicker,DatePicker:()=>H.DatePicker,DatePickerCalendar:()=>K.DatePickerCalendar,DatePickerDay:()=>W.DatePickerDay,DatePickerMonth:()=>G.DatePickerMonth,DatePickerWeek:()=>Y.DatePickerWeek,DateRangePicker:()=>U.DateRangePicker,DateTimePicker:()=>q.DateTimePicker,Draggable:()=>X.Draggable,DraggableItem:()=>Z.DraggableItem,Dropdown:()=>Q.Dropdown,EditableTextfield:()=>J.EditableTextfield,Favorite:()=>tt.Favorite,FloatingButtonBar:()=>nt,FloatingMinimizedModal:()=>at.FloatingMinimizedModal,FloatingModal:()=>lt.FloatingModal,Form:()=>vt.Form,FormArray:()=>ct,FormControl:()=>ht,FormGroup:()=>pt,Grabber:()=>bt.Grabber,HelpText:()=>gt.HelpText,Icon:()=>g.Icon,Input:()=>wt.Input,InputFile:()=>ft.InputFile,Label:()=>xt.Label,Link:()=>Ct.Link,List:()=>Lt.List,ListItem:()=>Ot.ListItem,ListItemV2:()=>Tt,ListV2:()=>At,Loading:()=>Mt.Loading,MeetingAlert:()=>Dt.MeetingAlert,Menu:()=>Rt.Menu,MenuItem:()=>_t.MenuItem,MenuOverlay:()=>Pt.MenuOverlay,Modal:()=>Bt.Modal,NotificationBadge:()=>C,Pagination:()=>zt.Pagination,PhoneInput:()=>Ft.PhoneInput,Popover:()=>Vt.Popover,PopoverController:()=>Vt.PopoverController,Presence:()=>Nt.Presence,ProgressBar:()=>jt.ProgressBar,Radio:()=>Ut.Radio,RadioGroup:()=>qt.RadioGroup,Skeleton:()=>Kt,Slider:()=>Gt.Slider,Spinner:()=>Yt.Spinner,Tab:()=>Qt.Tab,TabPanel:()=>Jt.TabPanel,Table:()=>Zt.Table,TableAdvanced:()=>Xt.TableAdvanced,Tabs:()=>te.Tabs,TaskItem:()=>ee.TaskItem,Theme:()=>ie.Theme,ThemeManager:()=>ne.ThemeManager,TimePicker:()=>oe.TimePicker,ToggleSwitch:()=>se.ToggleSwitch,Tooltip:()=>et.Tooltip,Validators:()=>ut,iconUrlManager:()=>re.O,registerThemeManagerGlobally:()=>ne.registerThemeManagerGlobally,themeManager:()=>ne.themeManager});var o=i(33328),s=i(6779),r=i(94891),n=i(28307),a=i(19479),l=i(74896),d=i(23779),h=i(38028);const p=["bot","group","self","typing",""];var c=i(2207),u=i(63704),m=i(3001),y=i(41488),v=i(17518),b=i(73679),g=i(61200),f=i(15427);const w=y.css`:host{color:var(--badge-notification-primary-foreground-color);font-size:var(--font-size-body-small,.75rem);font-weight:var(--brand-font-weight-medium,500);line-height:var(--font-lineheight-body-small,1rem);font-family:var(--brand-font-medium);box-sizing:border-box;align-items:center;display:flex;height:fit-content;justify-content:center;width:fit-content}.md-notification-badge-overlay{outline:.0625rem solid var(--badge-notification-overlay-border-color)}.md-notification-badge-text{box-sizing:border-box;padding:0 .25rem;border-radius:6.25rem;min-width:1rem;display:flex;justify-content:center;background-color:var(--badge-notification-primary-background-color)}.md-notification-badge-dot{width:.75rem;height:.75rem;border-radius:50%;background-color:var(--badge-notification-primary-background-color)}.md-notification-badge-icon{padding:2px;size:1rem;border-radius:50%;box-sizing:border-box}.md-notification-badge-icon__primary{background-color:var(--badge-notification-primary-background-color);color:var(--badge-notification-primary-foreground-color)}.md-notification-badge-icon__success{background-color:var(--badge-notification-success-background-color);color:var(--badge-notification-success-foreground-color)}.md-notification-badge-icon__warning{background-color:var(--badge-notification-warning-background-color);color:var(--badge-notification-warning-foreground-color)}.md-notification-badge-icon__error{background-color:var(--badge-notification-error-background-color);color:var(--badge-notification-error-foreground-color)}.md-notification-badge-icon__secondary{background-color:var(--badge-notification-secondary-background-color);color:var(--badge-notification-secondary-foreground-color)}@media(forced-colors:active){.md-notification-badge-dot,.md-notification-badge-icon,.md-notification-badge-text{outline:.125rem solid}}`;var x=function(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};let C=class extends y.LitElement{constructor(){super(...arguments),this.variant=f.zY.VARIANT,this.maxCounter=f.zY.MAX_COUNTER,this.overlay=!1,this.ariaLabel=null}static get styles(){return[w]}getCounterText(t,e){return void 0===e||"number"!=typeof e||0===t?"":e>t?`${t}+`:t>f.zY.MAX_COUNTER_LIMIT||e>f.zY.MAX_COUNTER_LIMIT?`${f.zY.MAX_COUNTER_LIMIT}+`:e.toString()}getBadgeIcon(t,e){return y.html`
1207
1207
  <md-icon
1208
1208
  class="md-notification-badge-icon ${(0,v.classMap)({"md-notification-badge-overlay":this.overlay,[`md-notification-badge-icon__${e}`]:!0})}"
1209
1209
  iconSet="momentumDesign"
@@ -1281,7 +1281,7 @@
1281
1281
  `}getActionTemplate(t){return t.isIconOnly?this.getTooltipCircleButtonTemplate(t):this.getPillButtonTemplate(t)}getActionGroupTemplate(t){return y.html` ${this.separatorTemplate} ${t.actions.map(t=>this.getActionTemplate(t))} `}render(){return y.html`
1282
1282
  ${this.showCloseButton?this.closeButtonTemplate:it.nothing} ${this.getSecondaryLabelTemplate(this.leadingLabel)}
1283
1283
  ${this.actions.map(t=>this.getActionGroupTemplate(t))}
1284
- `}};rt([(0,y.property)({type:String})],nt.prototype,"leadingLabel",void 0),rt([(0,y.property)({type:String})],nt.prototype,"closeButtonAriaLabel",void 0),rt([(0,y.property)({type:Boolean})],nt.prototype,"showCloseButton",void 0),rt([(0,y.property)({type:Array})],nt.prototype,"actions",void 0),nt=rt([(0,y.customElement)("md-floating-button-bar")],nt);var at=i(58871),lt=i(73093);class dt{constructor(){this.listeners=new Set}onChange(t){return this.listeners.add(t),{unsubscribe:()=>{this.listeners.delete(t)}}}emitChange(){for(const t of Array.from(this.listeners))t(this)}}class ht extends dt{constructor(t,e=[]){super(),this.validationErrors=[],this.touched=!1,this.groupErrors=[],this.currentValue=t,this.validators=e,this.validate()}get value(){return this.currentValue}markAsTouched(){this.touched=!0,this.validate()}get valid(){return 0===this.validationErrors.length&&0===this.groupErrors.length}get errors(){return[...this.touched?this.validationErrors:[],...this.groupErrors]}addGroupError(t){const e=this.groupErrors.filter(e=>e.type!==t.type);this.groupErrors=[...e,t],this.emitChange()}clearGroupErrorsByType(t){const e=this.groupErrors.filter(e=>e.type!==t);e.length!==this.groupErrors.length&&(this.groupErrors=e,this.emitChange())}setValue(t){this.currentValue=t,this.markAsTouched()}validate(){this.emitChange(),this.validationErrors=this.validators.map(t=>t(this.currentValue)).filter(t=>null!==t)}}class pt extends dt{constructor(t){var e;super(),this.controls=t;for(const t of Object.keys(this.controls)){const i=this.controls[t];null===(e=i.onChange)||void 0===e||e.call(i,()=>this.emitChange())}}get(t){return this.controls[t]}get value(){const t={};for(const e in this.controls)t[e]=this.controls[e].value;return t}get valid(){return Object.values(this.controls).every(t=>t.valid)}validate(){for(const t of Object.values(this.controls))t.validate();this.emitChange()}markAllAsTouched(){Object.values(this.controls).forEach(t=>{var e,i;null===(e=t.markAllAsTouched)||void 0===e||e.call(t),null===(i=t.markAsTouched)||void 0===i||i.call(t)})}}class ct extends dt{constructor(t,e=[]){var i;super(),this.controls=t,this.arrayValidators=e,this.inArrayValidation=!1,this.childChanged=()=>{this.inArrayValidation||this.runArrayValidators(),this.emitChange()},this.arrayValidators=e;for(const t of this.controls)null===(i=t.onChange)||void 0===i||i.call(t,()=>{this.childChanged()}),this.childChanged()}at(t){return this.controls[t]}runArrayValidators(){if(this.arrayValidators.length){this.inArrayValidation=!0;try{for(const t of this.arrayValidators)t(this)}finally{this.inArrayValidation=!1}}}push(t){var e;this.controls.push(t),null===(e=t.onChange)||void 0===e||e.call(t,()=>{this.childChanged()}),this.childChanged()}removeAt(t){this.controls.splice(t,1),this.childChanged()}get value(){return this.controls.map(t=>t.value)}get valid(){return this.controls.every(t=>t.valid)}get length(){return this.controls.length}getControls(){return this.controls}validate(){this.controls.forEach(t=>t.validate()),this.childChanged()}markAllAsTouched(){this.controls.forEach(t=>{var e,i;null===(e=t.markAllAsTouched)||void 0===e||e.call(t),null===(i=t.markAsTouched)||void 0===i||i.call(t)})}}const ut={required:()=>t=>null==t||"string"==typeof t&&""===t.trim()?{type:"required"}:null,minLength:t=>e=>e.length<t?{type:"minLength",count:t}:null,maxLength:t=>e=>e.length>t?{type:"maxLength",count:t}:null,nonNegative:()=>t=>null==t?null:t<0?{type:"nonNegative"}:null};var mt=i(97866),yt=i(69112),vt=i(20109),bt=i(52619),gt=i(96408),ft=i(6396),wt=i(19026),xt=i(90195),Ct=i(26283);const Et=y.css`:host{--list-item-border-radius:0;--list-item-expand-duration:400ms;--list-item-hover-bg-color:var(--md-button-secondary-hover-bg-color);--list-item-active-bg-color:var(--md-button-secondary-pressed-bg-color);--list-item-disabled-bg-color:none;--list-item-disabled-text-color:var(--md-textColor-disabled);--list-item-primary-label-color:var(--md-textColor-primary);--list-item-secondary-label-color:var(--md-textColor-secondary);--list-item-primary-label-font-size:14px;--list-item-secondary-label-font-size:12px;--list-item-bg-color:none;border-radius:var(--list-item-border-radius);background-color:var(--list-item-bg-color)}:host(:focus-visible){box-shadow:none!important}:host([variant=inset-rectangle]){--list-item-border-radius:0.5rem}:host([variant=inset-pill]){--list-item-border-radius:3.125rem}:host([disabled]){--list-item-primary-label-color:var(--list-item-disabled-text-color);--list-item-secondary-label-color:var(--list-item-disabled-text-color);--list-item-bg-color:var(--list-item-disabled-bg-color)}.header{border-radius:var(--list-item-border-radius);padding:.5rem;display:flex;justify-content:space-between;align-items:center;cursor:pointer}.header:hover:not(:disabled){background-color:var(--list-item-hover-bg-color)}.header:active:not(:disabled){background-color:var(--list-item-active-bg-color)}:host(:focus-visible) .header{box-shadow:0 0 0 .125rem var(--list-focus-border-color)}:host::part(header-leading),:host::part(header-trailing){display:flex;align-items:center;gap:.5rem}:host::part(primary-label),:host::part(secondary-label),:host::part(tertiary-label){display:block;line-height:1rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host::part(primary-label){font-size:var(--list-item-primary-label-font-size);color:var(--list-item-primary-label-color)}:host::part(secondary-label),:host::part(tertiary-label){font-size:var(--list-item-secondary-label-font-size);color:var(--list-item-secondary-label-color)}.expand-icon{transition:transform var(--list-item-expand-duration)}.panel-container{display:grid;grid-template-rows:0fr;overflow:hidden;transition:grid-template-rows var(--list-item-expand-duration) ease-out}.expandable-content{min-height:0;visibility:hidden;transform:translateY(-15px);margin:0 10px;transition:all var(--list-item-expand-duration)}:host([expanded]) .panel-container{padding-top:0;grid-template-rows:1fr}:host([expanded]) .expandable-content{visibility:visible;transform:translateY(0);margin:10px}:host([expanded]) .expand-icon{transform:rotate(90deg)}:host{--md-list-v2-gap:0;--md-list-v2-orientation:column;padding:0;margin:0;display:flex;flex-direction:var(--md-list-v2-orientation);gap:var(--md-list-v2-gap)}:host([orientation=horizontal]){--md-list-v2-orientation:row}:host([gap=sm]){--md-list-v2-gap:0.25rem}:host([gap=md]){--md-list-v2-gap:0.5rem}:host([gap=lg]){--md-list-v2-gap:1rem}`;var St,$t=function(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends y.LitElement{constructor(){super(...arguments),this.expandable=!1,this.expanded=!1,this.disabled=!1,this.variant="full-width",this.expandLabel="Expand"}render(){return y.html`
1284
+ `}};rt([(0,y.property)({type:String})],nt.prototype,"leadingLabel",void 0),rt([(0,y.property)({type:String})],nt.prototype,"closeButtonAriaLabel",void 0),rt([(0,y.property)({type:Boolean})],nt.prototype,"showCloseButton",void 0),rt([(0,y.property)({type:Array})],nt.prototype,"actions",void 0),nt=rt([(0,y.customElement)("md-floating-button-bar")],nt);var at=i(58871),lt=i(73093);class dt{constructor(){this.listeners=new Set}onChange(t){return this.listeners.add(t),{unsubscribe:()=>{this.listeners.delete(t)}}}emitChange(){for(const t of Array.from(this.listeners))t(this)}}class ht extends dt{constructor(t,e=[]){super(),this.validationErrors=[],this.touched=!1,this.groupErrors=[],this.currentValue=t,this.validators=e,this.validate()}get value(){return this.currentValue}markAsTouched(){this.touched=!0,this.validate()}get valid(){return 0===this.validationErrors.length&&0===this.groupErrors.length}get errors(){return[...this.touched?this.validationErrors:[],...this.groupErrors]}addGroupError(t){const e=this.groupErrors.filter(e=>e.type!==t.type);this.groupErrors=[...e,t],this.emitChange()}clearGroupErrorsByType(t){const e=this.groupErrors.filter(e=>e.type!==t);e.length!==this.groupErrors.length&&(this.groupErrors=e,this.emitChange())}setValue(t){this.currentValue=t,this.markAsTouched()}validate(){this.emitChange(),this.validationErrors=this.validators.map(t=>t(this.currentValue)).filter(t=>null!==t)}}class pt extends dt{constructor(t){var e;super(),this.controls=t;for(const t of Object.keys(this.controls)){const i=this.controls[t];null===(e=i.onChange)||void 0===e||e.call(i,()=>this.emitChange())}}get(t){return this.controls[t]}get value(){const t={};for(const e in this.controls)t[e]=this.controls[e].value;return t}get valid(){return Object.values(this.controls).every(t=>t.valid)}validate(){for(const t of Object.values(this.controls))t.validate();this.emitChange()}markAllAsTouched(){Object.values(this.controls).forEach(t=>{var e,i;null===(e=t.markAllAsTouched)||void 0===e||e.call(t),null===(i=t.markAsTouched)||void 0===i||i.call(t)})}}class ct extends dt{constructor(t,e=[]){var i;super(),this.controls=t,this.arrayValidators=e,this.inArrayValidation=!1,this.childChanged=()=>{this.inArrayValidation||this.runArrayValidators(),this.emitChange()},this.arrayValidators=e;for(const t of this.controls)null===(i=t.onChange)||void 0===i||i.call(t,()=>{this.childChanged()}),this.childChanged()}at(t){return this.controls[t]}runArrayValidators(){if(this.arrayValidators.length){this.inArrayValidation=!0;try{for(const t of this.arrayValidators)t(this)}finally{this.inArrayValidation=!1}}}push(t){var e;this.controls.push(t),null===(e=t.onChange)||void 0===e||e.call(t,()=>{this.childChanged()}),this.childChanged()}removeAt(t){this.controls.splice(t,1),this.childChanged()}get value(){return this.controls.map(t=>t.value)}get valid(){return this.controls.every(t=>t.valid)}get length(){return this.controls.length}getControls(){return this.controls}validate(){this.controls.forEach(t=>t.validate()),this.childChanged()}markAllAsTouched(){this.controls.forEach(t=>{var e,i;null===(e=t.markAllAsTouched)||void 0===e||e.call(t),null===(i=t.markAsTouched)||void 0===i||i.call(t)})}}const ut={required:()=>t=>null==t||"string"==typeof t&&""===t.trim()?{type:"required"}:null,minLength:t=>e=>e.length<t?{type:"minLength",count:t}:null,maxLength:t=>e=>e.length>t?{type:"maxLength",count:t}:null,nonNegative:()=>t=>null==t?null:t<0?{type:"nonNegative"}:null},mt="increasingOnly",yt={strictIncreasingOnly:function(t){return e=>{const i=e.getControls();let o=null;for(const e of i)t(e).clearGroupErrorsByType(mt);for(const e of i){const i=t(e),s=i.value;if(null==s||Number.isNaN(s))break;if(null!=o&&Number(s)<=Number(o)){i.addGroupError({type:mt,count:o});break}o=s}}}};var vt=i(97866),bt=i(69112),gt=i(20109),ft=i(52619),wt=i(96408),xt=i(6396),Ct=i(19026),Et=i(90195),St=i(26283);const $t=y.css`:host{--list-item-border-radius:0;--list-item-expand-duration:400ms;--list-item-hover-bg-color:var(--md-button-secondary-hover-bg-color);--list-item-active-bg-color:var(--md-button-secondary-pressed-bg-color);--list-item-disabled-bg-color:none;--list-item-disabled-text-color:var(--md-textColor-disabled);--list-item-primary-label-color:var(--md-textColor-primary);--list-item-secondary-label-color:var(--md-textColor-secondary);--list-item-primary-label-font-size:14px;--list-item-secondary-label-font-size:12px;--list-item-bg-color:none;border-radius:var(--list-item-border-radius);background-color:var(--list-item-bg-color)}:host(:focus-visible){box-shadow:none!important}:host([variant=inset-rectangle]){--list-item-border-radius:0.5rem}:host([variant=inset-pill]){--list-item-border-radius:3.125rem}:host([disabled]){--list-item-primary-label-color:var(--list-item-disabled-text-color);--list-item-secondary-label-color:var(--list-item-disabled-text-color);--list-item-bg-color:var(--list-item-disabled-bg-color)}.header{border-radius:var(--list-item-border-radius);padding:.5rem;display:flex;justify-content:space-between;align-items:center;cursor:pointer}.header:hover:not(:disabled){background-color:var(--list-item-hover-bg-color)}.header:active:not(:disabled){background-color:var(--list-item-active-bg-color)}:host(:focus-visible) .header{box-shadow:0 0 0 .125rem var(--list-focus-border-color)}:host::part(header-leading),:host::part(header-trailing){display:flex;align-items:center;gap:.5rem}:host::part(primary-label),:host::part(secondary-label),:host::part(tertiary-label){display:block;line-height:1rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host::part(primary-label){font-size:var(--list-item-primary-label-font-size);color:var(--list-item-primary-label-color)}:host::part(secondary-label),:host::part(tertiary-label){font-size:var(--list-item-secondary-label-font-size);color:var(--list-item-secondary-label-color)}.expand-icon{transition:transform var(--list-item-expand-duration)}.panel-container{display:grid;grid-template-rows:0fr;overflow:hidden;transition:grid-template-rows var(--list-item-expand-duration) ease-out}.expandable-content{min-height:0;visibility:hidden;transform:translateY(-15px);margin:0 10px;transition:all var(--list-item-expand-duration)}:host([expanded]) .panel-container{padding-top:0;grid-template-rows:1fr}:host([expanded]) .expandable-content{visibility:visible;transform:translateY(0);margin:10px}:host([expanded]) .expand-icon{transform:rotate(90deg)}:host{--md-list-v2-gap:0;--md-list-v2-orientation:column;padding:0;margin:0;display:flex;flex-direction:var(--md-list-v2-orientation);gap:var(--md-list-v2-gap)}:host([orientation=horizontal]){--md-list-v2-orientation:row}:host([gap=sm]){--md-list-v2-gap:0.25rem}:host([gap=md]){--md-list-v2-gap:0.5rem}:host([gap=lg]){--md-list-v2-gap:1rem}`;var Tt,kt=function(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends y.LitElement{constructor(){super(...arguments),this.expandable=!1,this.expanded=!1,this.disabled=!1,this.variant="full-width",this.expandLabel="Expand"}render(){return y.html`
1285
1285
  <slot name="content">
1286
1286
  <div class="header">
1287
1287
  <div part="header-leading">
@@ -1332,7 +1332,7 @@
1332
1332
  @click=${this.stopEventPropagation}
1333
1333
  @keyup=${this.stopEventPropagation}
1334
1334
  @keydown=${this.stopEventPropagation}
1335
- ></slot>`}stopArrowKeyEventPropagation(t){t instanceof KeyboardEvent&&(0,Ct.q)(t.key)&&t.stopPropagation()}isExpandCollapseKey(t){return t===xt.Uz.ArrowRight||t===xt.Uz.ArrowLeft}stopEventPropagation(t){(t instanceof KeyboardEvent&&((0,Ct.o)(t.key)||this.isExpandCollapseKey(t.key))||t instanceof MouseEvent)&&t.stopPropagation()}setExpanded(t){this.expanded=t,this.setAttribute("aria-expanded",String(this.expanded)),this.dispatchEvent(new CustomEvent("list-item-expanded",{bubbles:!0,detail:this.expanded}))}_handleExpand(t){t.stopPropagation(),this.expandable&&this.setExpanded(!this.expanded)}_handleListItemClick(t){const e=t.composedPath(),i=e[0];!e.includes(this.header)&&i!==this||this.disabled||this.dispatchEvent(new CustomEvent("list-item-click",{bubbles:!0}))}_handleArrowKeyExpand(t){t.key!==xt.Uz.ArrowRight||this.expanded?t.key===xt.Uz.ArrowLeft&&this.expanded&&(t.stopPropagation(),this.setExpanded(!1)):(t.stopPropagation(),this.setExpanded(!0))}connectedCallback(){super.connectedCallback(),this.setAttribute("role","listitem"),this.setAttribute("tabindex","0"),this.addEventListener("click",this._handleListItemClick),this.expandable&&this.addEventListener("keydown",this._handleArrowKeyExpand)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this._handleListItemClick),this.removeEventListener("keydown",this._handleArrowKeyExpand)}static get styles(){return Et}};$t([(0,y.property)({type:String,reflect:!0})],e.prototype,"label",void 0),$t([(0,y.property)({type:String,reflect:!0,attribute:"secondary-label"})],e.prototype,"secondaryLabel",void 0),$t([(0,y.property)({type:String,reflect:!0,attribute:"tertiary-label"})],e.prototype,"tertiaryLabel",void 0),$t([(0,y.property)({type:Boolean})],e.prototype,"expandable",void 0),$t([(0,y.property)({type:Boolean,reflect:!0})],e.prototype,"expanded",void 0),$t([(0,y.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",void 0),$t([(0,y.property)({type:String})],e.prototype,"variant",void 0),$t([(0,y.property)({type:String,attribute:"expand-label"})],e.prototype,"expandLabel",void 0),$t([(0,y.query)(".header")],e.prototype,"header",void 0),e=$t([(0,y.customElement)("md-list-item-v2")],e),t.ELEMENT=e}(St||(St={}));var Tt,kt=function(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends y.LitElement{constructor(){super(...arguments),this.gap="none",this.orientation="vertical"}connectedCallback(){super.connectedCallback(),this.setAttribute("role","list"),this.addEventListener("keydown",this.handleKeyDown)}render(){return y.html` <slot @click=${this.handleMouseClick}></slot>`}get listItems(){return Array.from(this.assignedNodes).filter(t=>t instanceof St.ELEMENT&&!t.disabled)}handleMouseClick(t){const e=this.getCurrentIndex(t.target);this.resetTabIndexAndSetActiveTabIndex(e)}getNewIndexBasedOnKey(t,e,i){switch(t){case xt.Uz.ArrowDown:return(e+1)%i;case xt.Uz.ArrowUp:return(e-1+i)%i;case xt.Uz.Home:return 0;case xt.Uz.End:return i-1;default:return}}handleKeyDown(t){var e;const i=this.getCurrentIndex(t.target),o=this.getNewIndexBasedOnKey(t.key,i,this.listItems.length);void 0!==o&&(null===(e=this.listItems[o])||void 0===e||e.focus(),this.resetTabIndexAndSetActiveTabIndex(o))}getCurrentIndex(t){return this.listItems.findIndex(e=>e===t||e===t.parentElement)}resetTabIndexAndSetActiveTabIndex(t){this.listItems.forEach((e,i)=>{const o=t===i?"0":"-1";e.setAttribute("tabindex",o)})}static get styles(){return Et}};kt([(0,y.property)({type:String})],e.prototype,"gap",void 0),kt([(0,y.property)({type:String})],e.prototype,"orientation",void 0),kt([(0,y.queryAssignedNodes)()],e.prototype,"assignedNodes",void 0),e=kt([(0,y.customElement)("md-list-v2")],e),t.ELEMENT=e}(Tt||(Tt={}));var At=i(68490),It=i(66245),Lt=i(69788),Ot=i(61997),Mt=i(11323),Dt=i(84032),Pt=i(48171),Rt=i(32252),_t=i(23026),Bt=i(84205),zt=i(71128),Ft=i(15300),Vt=i(58287),Nt=i(81144),jt=i(32217);const Ut=y.css`:host{width:100%;height:100%;display:block;background-color:var(--md-textColor-primary);opacity:.5}:host([variant=circle]){border-radius:50%}:host([variant=rectangular]){border-radius:0}:host([variant=rounded]){border-radius:.5rem}:host([animation=none]){animation:none}:host([animation=pulse]){animation:skeleton-pulse 2s ease-in-out infinite}@keyframes skeleton-pulse{0%{opacity:.5}50%{opacity:.25}100%{opacity:.5}}`;var qt,Ht=function(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends y.LitElement{constructor(){super(...arguments),this.variant="rounded",this.animation="pulse"}render(){var t,e;return this.style.width=null!==(t=this.width)&&void 0!==t?t:this.style.width,this.style.height=null!==(e=this.height)&&void 0!==e?e:this.style.height,y.html`<slot></slot>`}static get styles(){return[Ut]}};Ht([(0,y.property)({type:String})],e.prototype,"width",void 0),Ht([(0,y.property)({type:String})],e.prototype,"height",void 0),Ht([(0,y.property)({reflect:!0})],e.prototype,"variant",void 0),Ht([(0,y.property)({reflect:!0})],e.prototype,"animation",void 0),e=Ht([(0,y.customElement)("md-skeleton")],e),t.ELEMENT=e}(qt||(qt={}));var Kt=i(25428),Wt=i(12176),Gt=i(77935),Yt=i(40428),Xt=i(16643),Zt=i(97737),Qt=i(50226),Jt=i(86610),te=i(1072),ee=i(49256),ie=i(20331),oe=i(81786),se=i(37719)},40333:t=>{t.exports=o},40428:(t,e,i)=>{i.d(e,{Table:()=>o}),i(61200);var o,s=i(31890),r=i(26272),n=i(41488),a=i(40333),l=i(17518),d=i(28187),h=i.n(d),p=i(43604),c=function(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends n.LitElement{constructor(){super(...arguments),this.tabledata="",this.zebra=!1,this.clean=!1,this.sorting=!1,this.nodata="No data Loaded",this.stickheader=!1,this.label="Table",this.noBorders=!1,this.format="default",this.warning=[],this.errors=[],this.sort={columnName:"",sortting:!1},this.csvData=void 0,this.config={quoteChar:'"',escapeChar:'""',header:!1,preview:0,comments:!1,step:void 0,complete:void 0}}connectedCallback(){super.connectedCallback(),this.results=h().parse(this.tabledata,this.config),this.headerRow=this.results.data[0],this.csvData=this.results.data.slice(1,this.results.data.length),this.requestUpdate("tabledata"),this.linkCellItems()}get rowItem(){return this.rowTable}linkCellItems(){const t=this.rowTable;null==t||t.forEach((t,e)=>{this.warning.forEach(i=>{e+1===i.row&&t.querySelectorAll('td[role="cell"').forEach((t,e)=>{e+1===i.col&&(t.classList.add("warning"),t.insertAdjacentHTML("beforeend",'<md-icon name="warning-regular" size="24" iconSet="momentumDesign" color="var(--md-alert-warning-text-color)"></md-icon>'))})}),this.errors.forEach(i=>{e+1===i.row&&t.querySelectorAll('td[role="cell"').forEach((t,e)=>{e+1===i.col&&(t.classList.add("error"),t.insertAdjacentHTML("beforeend",'<md-icon name="clear-bold" size="24" iconSet="momentumDesign" color="var(--md-alert-error-text-color)"></md-icon>'))})})})}sortTab(t,e){const i=t.target,o=Array.from(this.csvData),s=this.headerRow.indexOf(e);e!==this.sort.columnName||!0!==this.sort.sortting?(o.sort(function(t,e){const i=t[s].toLowerCase(),o=e[s].toLowerCase();return i>o?1:i<o?-1:0}),this.sort.sortting=!0,i.classList.remove("sortedZyx"),i.classList.add("sortedAbc")):(o.reverse(),this.sort.sortting=!1,i.classList.remove("sortedAbc"),i.classList.add("sortedZyx")),this.sort.columnName=e,this.csvData=o,this.requestUpdate("csvData")}update(t){super.update(t),t.has("tabledata")&&(this.results=h().parse(this.tabledata,this.config),this.headerRow=this.results.data[0],this.csvData=this.results.data.slice(1,this.results.data.length),this.linkCellItems())}static get styles(){return[r.A,p.A]}get tableClassMap(){return{"md-table--clean":this.clean,"md-table--no-borders":this.noBorders,"md-table--stripped":this.zebra,"md-table--sorting":this.sorting}}getSortTemplate(t){return this.sort.columnName!==t?a.nothing:n.html`
1335
+ ></slot>`}stopArrowKeyEventPropagation(t){t instanceof KeyboardEvent&&(0,St.q)(t.key)&&t.stopPropagation()}isExpandCollapseKey(t){return t===Et.Uz.ArrowRight||t===Et.Uz.ArrowLeft}stopEventPropagation(t){(t instanceof KeyboardEvent&&((0,St.o)(t.key)||this.isExpandCollapseKey(t.key))||t instanceof MouseEvent)&&t.stopPropagation()}setExpanded(t){this.expanded=t,this.setAttribute("aria-expanded",String(this.expanded)),this.dispatchEvent(new CustomEvent("list-item-expanded",{bubbles:!0,detail:this.expanded}))}_handleExpand(t){t.stopPropagation(),this.expandable&&this.setExpanded(!this.expanded)}_handleListItemClick(t){const e=t.composedPath(),i=e[0];!e.includes(this.header)&&i!==this||this.disabled||this.dispatchEvent(new CustomEvent("list-item-click",{bubbles:!0}))}_handleArrowKeyExpand(t){t.key!==Et.Uz.ArrowRight||this.expanded?t.key===Et.Uz.ArrowLeft&&this.expanded&&(t.stopPropagation(),this.setExpanded(!1)):(t.stopPropagation(),this.setExpanded(!0))}connectedCallback(){super.connectedCallback(),this.setAttribute("role","listitem"),this.setAttribute("tabindex","0"),this.addEventListener("click",this._handleListItemClick),this.expandable&&this.addEventListener("keydown",this._handleArrowKeyExpand)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this._handleListItemClick),this.removeEventListener("keydown",this._handleArrowKeyExpand)}static get styles(){return $t}};kt([(0,y.property)({type:String,reflect:!0})],e.prototype,"label",void 0),kt([(0,y.property)({type:String,reflect:!0,attribute:"secondary-label"})],e.prototype,"secondaryLabel",void 0),kt([(0,y.property)({type:String,reflect:!0,attribute:"tertiary-label"})],e.prototype,"tertiaryLabel",void 0),kt([(0,y.property)({type:Boolean})],e.prototype,"expandable",void 0),kt([(0,y.property)({type:Boolean,reflect:!0})],e.prototype,"expanded",void 0),kt([(0,y.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",void 0),kt([(0,y.property)({type:String})],e.prototype,"variant",void 0),kt([(0,y.property)({type:String,attribute:"expand-label"})],e.prototype,"expandLabel",void 0),kt([(0,y.query)(".header")],e.prototype,"header",void 0),e=kt([(0,y.customElement)("md-list-item-v2")],e),t.ELEMENT=e}(Tt||(Tt={}));var At,It=function(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends y.LitElement{constructor(){super(...arguments),this.gap="none",this.orientation="vertical"}connectedCallback(){super.connectedCallback(),this.setAttribute("role","list"),this.addEventListener("keydown",this.handleKeyDown)}render(){return y.html` <slot @click=${this.handleMouseClick}></slot>`}get listItems(){return Array.from(this.assignedNodes).filter(t=>t instanceof Tt.ELEMENT&&!t.disabled)}handleMouseClick(t){const e=this.getCurrentIndex(t.target);this.resetTabIndexAndSetActiveTabIndex(e)}getNewIndexBasedOnKey(t,e,i){switch(t){case Et.Uz.ArrowDown:return(e+1)%i;case Et.Uz.ArrowUp:return(e-1+i)%i;case Et.Uz.Home:return 0;case Et.Uz.End:return i-1;default:return}}handleKeyDown(t){var e;const i=this.getCurrentIndex(t.target),o=this.getNewIndexBasedOnKey(t.key,i,this.listItems.length);void 0!==o&&(null===(e=this.listItems[o])||void 0===e||e.focus(),this.resetTabIndexAndSetActiveTabIndex(o))}getCurrentIndex(t){return this.listItems.findIndex(e=>e===t||e===t.parentElement)}resetTabIndexAndSetActiveTabIndex(t){this.listItems.forEach((e,i)=>{const o=t===i?"0":"-1";e.setAttribute("tabindex",o)})}static get styles(){return $t}};It([(0,y.property)({type:String})],e.prototype,"gap",void 0),It([(0,y.property)({type:String})],e.prototype,"orientation",void 0),It([(0,y.queryAssignedNodes)()],e.prototype,"assignedNodes",void 0),e=It([(0,y.customElement)("md-list-v2")],e),t.ELEMENT=e}(At||(At={}));var Lt=i(68490),Ot=i(66245),Mt=i(69788),Dt=i(61997),Pt=i(11323),Rt=i(84032),_t=i(48171),Bt=i(32252),zt=i(23026),Ft=i(84205),Vt=i(71128),Nt=i(15300),jt=i(58287),Ut=i(81144),qt=i(32217);const Ht=y.css`:host{width:100%;height:100%;display:block;background-color:var(--md-textColor-primary);opacity:.5}:host([variant=circle]){border-radius:50%}:host([variant=rectangular]){border-radius:0}:host([variant=rounded]){border-radius:.5rem}:host([animation=none]){animation:none}:host([animation=pulse]){animation:skeleton-pulse 2s ease-in-out infinite}@keyframes skeleton-pulse{0%{opacity:.5}50%{opacity:.25}100%{opacity:.5}}`;var Kt,Wt=function(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends y.LitElement{constructor(){super(...arguments),this.variant="rounded",this.animation="pulse"}render(){var t,e;return this.style.width=null!==(t=this.width)&&void 0!==t?t:this.style.width,this.style.height=null!==(e=this.height)&&void 0!==e?e:this.style.height,y.html`<slot></slot>`}static get styles(){return[Ht]}};Wt([(0,y.property)({type:String})],e.prototype,"width",void 0),Wt([(0,y.property)({type:String})],e.prototype,"height",void 0),Wt([(0,y.property)({reflect:!0})],e.prototype,"variant",void 0),Wt([(0,y.property)({reflect:!0})],e.prototype,"animation",void 0),e=Wt([(0,y.customElement)("md-skeleton")],e),t.ELEMENT=e}(Kt||(Kt={}));var Gt=i(25428),Yt=i(12176),Xt=i(77935),Zt=i(40428),Qt=i(16643),Jt=i(97737),te=i(50226),ee=i(86610),ie=i(1072),oe=i(49256),se=i(20331),re=i(81786),ne=i(37719)},40333:t=>{t.exports=o},40428:(t,e,i)=>{i.d(e,{Table:()=>o}),i(61200);var o,s=i(31890),r=i(26272),n=i(41488),a=i(40333),l=i(17518),d=i(28187),h=i.n(d),p=i(43604),c=function(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends n.LitElement{constructor(){super(...arguments),this.tabledata="",this.zebra=!1,this.clean=!1,this.sorting=!1,this.nodata="No data Loaded",this.stickheader=!1,this.label="Table",this.noBorders=!1,this.format="default",this.warning=[],this.errors=[],this.sort={columnName:"",sortting:!1},this.csvData=void 0,this.config={quoteChar:'"',escapeChar:'""',header:!1,preview:0,comments:!1,step:void 0,complete:void 0}}connectedCallback(){super.connectedCallback(),this.results=h().parse(this.tabledata,this.config),this.headerRow=this.results.data[0],this.csvData=this.results.data.slice(1,this.results.data.length),this.requestUpdate("tabledata"),this.linkCellItems()}get rowItem(){return this.rowTable}linkCellItems(){const t=this.rowTable;null==t||t.forEach((t,e)=>{this.warning.forEach(i=>{e+1===i.row&&t.querySelectorAll('td[role="cell"').forEach((t,e)=>{e+1===i.col&&(t.classList.add("warning"),t.insertAdjacentHTML("beforeend",'<md-icon name="warning-regular" size="24" iconSet="momentumDesign" color="var(--md-alert-warning-text-color)"></md-icon>'))})}),this.errors.forEach(i=>{e+1===i.row&&t.querySelectorAll('td[role="cell"').forEach((t,e)=>{e+1===i.col&&(t.classList.add("error"),t.insertAdjacentHTML("beforeend",'<md-icon name="clear-bold" size="24" iconSet="momentumDesign" color="var(--md-alert-error-text-color)"></md-icon>'))})})})}sortTab(t,e){const i=t.target,o=Array.from(this.csvData),s=this.headerRow.indexOf(e);e!==this.sort.columnName||!0!==this.sort.sortting?(o.sort(function(t,e){const i=t[s].toLowerCase(),o=e[s].toLowerCase();return i>o?1:i<o?-1:0}),this.sort.sortting=!0,i.classList.remove("sortedZyx"),i.classList.add("sortedAbc")):(o.reverse(),this.sort.sortting=!1,i.classList.remove("sortedAbc"),i.classList.add("sortedZyx")),this.sort.columnName=e,this.csvData=o,this.requestUpdate("csvData")}update(t){super.update(t),t.has("tabledata")&&(this.results=h().parse(this.tabledata,this.config),this.headerRow=this.results.data[0],this.csvData=this.results.data.slice(1,this.results.data.length),this.linkCellItems())}static get styles(){return[r.A,p.A]}get tableClassMap(){return{"md-table--clean":this.clean,"md-table--no-borders":this.noBorders,"md-table--stripped":this.zebra,"md-table--sorting":this.sorting}}getSortTemplate(t){return this.sort.columnName!==t?a.nothing:n.html`
1336
1336
  <md-icon
1337
1337
  name=${this.sort.sortting?"sort-descending-bold":"sort-ascending-bold"}
1338
1338
  iconSet="momentumDesign"
@@ -47,7 +47,7 @@ export { Favorite } from "./components/favorite/Favorite";
47
47
  export { FloatingButtonActionGroup, FloatingButtonBar, FloatingButtonBarAction } from "./components/floating-button-bar/FloatingButtonBar";
48
48
  export { FloatingMinimizedModal } from "./components/floating-modal/FloatingMinimizedModal";
49
49
  export { FloatingModal } from "./components/floating-modal/FloatingModal";
50
- export { AbstractControl, FormArray, FormControl, FormGroup, ValidationError, Validators } from "./components/form";
50
+ export { AbstractControl, FormArray, FormControl, FormGroup, ValidationError, Validators, ArrayValidators } from "./components/form";
51
51
  export { Form } from "./components/form/Form";
52
52
  export { Grabber } from "./components/grabber/Grabber";
53
53
  export { HelpText } from "./components/help-text/HelpText";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momentum-ui/web-components",
3
- "version": "2.26.11",
3
+ "version": "2.26.12",
4
4
  "author": "Yana Harris",
5
5
  "license": "MIT",
6
6
  "repository": "https://github.com/momentum-design/momentum-ui.git",