@fluid-topics/ftds-collapsible-block 2.1.19 → 2.1.20

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.
@@ -61,7 +61,7 @@ export class FtdsCollapsibleBlock extends FtLitElement {
61
61
  `;
62
62
  }
63
63
  onKeydown(event) {
64
- if (event.code === "Enter" || event.code === "Space") {
64
+ if (event.key === "Enter" || event.key === " ") {
65
65
  event.preventDefault();
66
66
  this.collapsed = !this.collapsed;
67
67
  }
@@ -415,7 +415,7 @@ Also for action icons.`,a.colorGray200),contentGlobalSubtle:e.extend("--ftds-con
415
415
  <slot name="side-bar" @slotchange=${this.onSlotchange}></slot>
416
416
  </div>
417
417
  </div>
418
- `}onKeydown(r){this.selectable&&r.code==="Space"&&r.preventDefault()}onKeyup(r){this.selectable&&r.code==="Space"&&this.dispatchEvent(new CustomEvent("change",{detail:!this.selected}))}onClick(){this.selectable&&this.dispatchEvent(new CustomEvent("change",{detail:!this.selected}))}onSlotchange(){var r,o;this.hasHeader=this.headerContent.length>0||!!this.headerText,this.hasHeaderActions=this.headerActionsContent.length>0,this.hasBody=(0,Xe.unslotText)(this.bodyContent).trim().length>0||((o=(r=this.bodyContent)===null||r===void 0?void 0:r.assignedElements())!==null&&o!==void 0?o:[]).length>0,this.hasFooter=this.footerContent.length>0,this.hasFooterActions=this.footerActionsContent.length>0,this.hasSideBar=this.sideBarContent.length>0}};z.elementDefinitions={"ftds-typography":H,"ft-ripple":E};z.styles=je;G([(0,N.property)()],z.prototype,"headerText",void 0);G([(0,N.property)({type:Boolean})],z.prototype,"headerBorder",void 0);G([(0,N.property)()],z.prototype,"headerHref",void 0);G([(0,N.property)({type:Boolean})],z.prototype,"selectable",void 0);G([(0,N.property)({type:Boolean})],z.prototype,"selected",void 0);G([(0,N.state)()],z.prototype,"hasHeader",void 0);G([(0,N.state)()],z.prototype,"hasHeaderActions",void 0);G([(0,N.state)()],z.prototype,"hasBody",void 0);G([(0,N.state)()],z.prototype,"hasFooter",void 0);G([(0,N.state)()],z.prototype,"hasFooterActions",void 0);G([(0,N.state)()],z.prototype,"hasSideBar",void 0);G([(0,N.queryAssignedNodes)({slot:"header"})],z.prototype,"headerContent",void 0);G([(0,N.queryAssignedNodes)({slot:"header-actions"})],z.prototype,"headerActionsContent",void 0);G([(0,N.query)("#body slot")],z.prototype,"bodyContent",void 0);G([(0,N.queryAssignedNodes)({slot:"footer",flatten:!0})],z.prototype,"footerContent",void 0);G([(0,N.queryAssignedNodes)({slot:"footer-actions"})],z.prototype,"footerActionsContent",void 0);G([(0,N.queryAssignedNodes)({slot:"side-bar"})],z.prototype,"sideBarContent",void 0);var va=S(I()),La=S(B()),Sa=S(re());var ba=S(B()),Re=S(I());var x1=S(B()),Qe=S(I()),qe={size:Qe.FtCssVariableFactory.create("--ftds-icon-font-size","","SIZE","24px")},v1=[x1.css`
418
+ `}onKeydown(r){this.selectable&&r.key===" "&&r.preventDefault()}onKeyup(r){this.selectable&&r.key===" "&&this.dispatchEvent(new CustomEvent("change",{detail:!this.selected}))}onClick(){this.selectable&&this.dispatchEvent(new CustomEvent("change",{detail:!this.selected}))}onSlotchange(){var r,o;this.hasHeader=this.headerContent.length>0||!!this.headerText,this.hasHeaderActions=this.headerActionsContent.length>0,this.hasBody=(0,Xe.unslotText)(this.bodyContent).trim().length>0||((o=(r=this.bodyContent)===null||r===void 0?void 0:r.assignedElements())!==null&&o!==void 0?o:[]).length>0,this.hasFooter=this.footerContent.length>0,this.hasFooterActions=this.footerActionsContent.length>0,this.hasSideBar=this.sideBarContent.length>0}};z.elementDefinitions={"ftds-typography":H,"ft-ripple":E};z.styles=je;G([(0,N.property)()],z.prototype,"headerText",void 0);G([(0,N.property)({type:Boolean})],z.prototype,"headerBorder",void 0);G([(0,N.property)()],z.prototype,"headerHref",void 0);G([(0,N.property)({type:Boolean})],z.prototype,"selectable",void 0);G([(0,N.property)({type:Boolean})],z.prototype,"selected",void 0);G([(0,N.state)()],z.prototype,"hasHeader",void 0);G([(0,N.state)()],z.prototype,"hasHeaderActions",void 0);G([(0,N.state)()],z.prototype,"hasBody",void 0);G([(0,N.state)()],z.prototype,"hasFooter",void 0);G([(0,N.state)()],z.prototype,"hasFooterActions",void 0);G([(0,N.state)()],z.prototype,"hasSideBar",void 0);G([(0,N.queryAssignedNodes)({slot:"header"})],z.prototype,"headerContent",void 0);G([(0,N.queryAssignedNodes)({slot:"header-actions"})],z.prototype,"headerActionsContent",void 0);G([(0,N.query)("#body slot")],z.prototype,"bodyContent",void 0);G([(0,N.queryAssignedNodes)({slot:"footer",flatten:!0})],z.prototype,"footerContent",void 0);G([(0,N.queryAssignedNodes)({slot:"footer-actions"})],z.prototype,"footerActionsContent",void 0);G([(0,N.queryAssignedNodes)({slot:"side-bar"})],z.prototype,"sideBarContent",void 0);var va=S(I()),La=S(B()),Sa=S(re());var ba=S(B()),Re=S(I());var x1=S(B()),Qe=S(I()),qe={size:Qe.FtCssVariableFactory.create("--ftds-icon-font-size","","SIZE","24px")},v1=[x1.css`
419
419
  :host {
420
420
  display: inline-flex;
421
421
  }
@@ -1623,7 +1623,7 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a
1623
1623
  slot="footer"></slot>
1624
1624
  `)}
1625
1625
  </ftds-card>
1626
- `}onKeydown(r){(r.code==="Enter"||r.code==="Space")&&(r.preventDefault(),this.collapsed=!this.collapsed)}};te.elementDefinitions={"ftds-card":z,"ftds-icon":$,"ftds-typography":H,"ft-ripple":E};te.styles=[je,_a];u2([(0,ht.property)({type:Boolean,reflect:!0})],te.prototype,"collapsed",void 0);u2([(0,ht.property)({type:Boolean,reflect:!0})],te.prototype,"headerBorder",void 0);u2([(0,ht.property)()],te.prototype,"headerText",void 0);var Ia={"ftds-collapsible-block":te};(0,Pa.customElements)(Ia);})();
1626
+ `}onKeydown(r){(r.key==="Enter"||r.key===" ")&&(r.preventDefault(),this.collapsed=!this.collapsed)}};te.elementDefinitions={"ftds-card":z,"ftds-icon":$,"ftds-typography":H,"ft-ripple":E};te.styles=[je,_a];u2([(0,ht.property)({type:Boolean,reflect:!0})],te.prototype,"collapsed",void 0);u2([(0,ht.property)({type:Boolean,reflect:!0})],te.prototype,"headerBorder",void 0);u2([(0,ht.property)()],te.prototype,"headerText",void 0);var Ia={"ftds-collapsible-block":te};(0,Pa.customElements)(Ia);})();
1627
1627
  /*! Bundled license information:
1628
1628
 
1629
1629
  lit-html/lit-html.js: