@fluid-topics/ftds-combobox 2.2.0 → 2.2.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/build/ftds-combobox.light.js +2 -1
- package/build/ftds-combobox.min.js +103 -102
- package/package.json +10 -10
|
@@ -2377,7 +2377,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
2377
2377
|
.hidden {
|
|
2378
2378
|
display: none;
|
|
2379
2379
|
}
|
|
2380
|
-
`;var Cs=b(De());var ue=function(e,t,r,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(i=(a<3?s(i):a>3?s(t,r,i):s(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},W=class extends co.FtLitElement{constructor(){super(...arguments),this.closeButtonLabel="close info",this.openButtonIcon=p.
|
|
2380
|
+
`;var Cs=b(De());var ue=function(e,t,r,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(i=(a<3?s(i):a>3?s(t,r,i):s(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},W=class extends co.FtLitElement{constructor(){super(...arguments),this.closeButtonLabel="close info",this.openButtonIcon=p.QUESTION,this.openButtonIconVariant=f.solid,this.openButtonLabel="more info",this.openButtonTooltipPosition="bottom",this.opened=!1,this.hidden=!1,this.openButtonSize=ze.small,this.openButtonFamily=Ut.info,this.isTriggerSlotAssigned=!1,this.heading="",this.margins=en.default,this.wrapperId="ftds-popover-wrapper",this.headingId="ftds-popover-heading",this.contentId="ftds-popover-content",this.maxWidth=J.maxWidth,this.onTriggerSlotChange=()=>{var t,r;let n=(r=(t=this.triggerSlot)===null||t===void 0?void 0:t.assignedElements())!==null&&r!==void 0?r:[];this.isTriggerSlotAssigned=n.length>0},this.onTriggerKeydown=t=>{(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),this.open())},this.watchFocusIn=t=>{this.popoverWrapper&&!t.composedPath().includes(this.popoverWrapper)&&this.close()},this.watchEscapeKey=t=>{var r;t.key==="Escape"&&(this.close(),(r=this.openingElement)===null||r===void 0||r.focus())}}get openingElement(){var t;let r=(t=this.triggerSlot)===null||t===void 0?void 0:t.assignedElements();return r?.length&&r[0]instanceof HTMLElement?r[0]:this.openingButton}render(){let t={opened:this.opened};return this.hidden?Je.nothing:Je.html`
|
|
2381
2381
|
<div part="root-container" class="${(0,Cs.classMap)(t)}">
|
|
2382
2382
|
<slot name="trigger"
|
|
2383
2383
|
@slotchange=${this.onTriggerSlotChange}
|
|
@@ -2403,6 +2403,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
2403
2403
|
</div>
|
|
2404
2404
|
`:Je.nothing}renderOpeningButton(){return Je.html`
|
|
2405
2405
|
<ftds-button @focusin=${this.close}
|
|
2406
|
+
secondary
|
|
2406
2407
|
part="opening-button"
|
|
2407
2408
|
icon="${this.openButtonIcon}"
|
|
2408
2409
|
variant="${this.openButtonIconVariant}"
|