@fluid-topics/ftds-collapsible-block 2.1.18 → 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:
@@ -5,7 +5,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
5
5
  .highlight-html-match {
6
6
  background: ${rs};
7
7
  }
8
- `;function M4(e,t,r){var a,o;let i=e.getAttribute("data-highlight-html-query");if((i??"")!==(t??"")){let c=new _4(e);if(c.unmark(),t&&t.trim()){let s={className:(a=r?.className)!==null&&a!==void 0?a:"highlight-html-match",acrossElements:!0};r?.attributes!=null&&(s.each=(f=>{for(let g in r.attributes)f.setAttribute(g,r.attributes[g])})),c.mark(t.replace(/"[^"]+"/g,""),{...s,separateWordSearch:!0}),((o=t.match(/"[^"]+"/g))!==null&&o!==void 0?o:[]).forEach(f=>c.mark(f.replace(/"/g,""),{...s,separateWordSearch:!1}))}}e.setAttribute("data-highlight-html-query",t??"")}var ao={};B(ao,{noTextInputDefaultClearButton:()=>P4,noTextSelect:()=>no,safariEllipsisFix:()=>T4,wordWrap:()=>z4});var no=G`
8
+ `;function M4(e,t,r){var a,o;let i=e.getAttribute("data-highlight-html-query");if((i??"")!==(t??"")){let c=new _4(e);if(c.unmark(),t&&t.trim()){let s={className:(a=r?.className)!==null&&a!==void 0?a:"highlight-html-match",acrossElements:!0};r?.attributes!=null&&(s.each=f=>{for(let g in r.attributes)f.setAttribute(g,r.attributes[g])}),c.mark(t.replace(/"[^"]+"/g,""),{...s,separateWordSearch:!0}),((o=t.match(/"[^"]+"/g))!==null&&o!==void 0?o:[]).forEach(f=>c.mark(f.replace(/"/g,""),{...s,separateWordSearch:!1}))}}e.setAttribute("data-highlight-html-query",t??"")}var ao={};B(ao,{noTextInputDefaultClearButton:()=>P4,noTextSelect:()=>no,safariEllipsisFix:()=>T4,wordWrap:()=>z4});var no=G`
9
9
  .ft-no-text-select {
10
10
  -webkit-touch-callout: none;
11
11
  -webkit-user-select: none;
@@ -495,7 +495,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
495
495
  <slot name="side-bar" @slotchange=${this.onSlotchange}></slot>
496
496
  </div>
497
497
  </div>
498
- `}onKeydown(t){this.selectable&&t.code==="Space"&&t.preventDefault()}onKeyup(t){this.selectable&&t.code==="Space"&&this.dispatchEvent(new CustomEvent("change",{detail:!this.selected}))}onClick(){this.selectable&&this.dispatchEvent(new CustomEvent("change",{detail:!this.selected}))}onSlotchange(){var t,r;this.hasHeader=this.headerContent.length>0||!!this.headerText,this.hasHeaderActions=this.headerActionsContent.length>0,this.hasBody=qr(this.bodyContent).trim().length>0||((r=(t=this.bodyContent)===null||t===void 0?void 0:t.assignedElements())!==null&&r!==void 0?r:[]).length>0,this.hasFooter=this.footerContent.length>0,this.hasFooterActions=this.footerActionsContent.length>0,this.hasSideBar=this.sideBarContent.length>0}};V.elementDefinitions={"ftds-typography":ae,"ft-ripple":Y};V.styles=mn;ee([_()],V.prototype,"headerText",void 0);ee([_({type:Boolean})],V.prototype,"headerBorder",void 0);ee([_()],V.prototype,"headerHref",void 0);ee([_({type:Boolean})],V.prototype,"selectable",void 0);ee([_({type:Boolean})],V.prototype,"selected",void 0);ee([j()],V.prototype,"hasHeader",void 0);ee([j()],V.prototype,"hasHeaderActions",void 0);ee([j()],V.prototype,"hasBody",void 0);ee([j()],V.prototype,"hasFooter",void 0);ee([j()],V.prototype,"hasFooterActions",void 0);ee([j()],V.prototype,"hasSideBar",void 0);ee([ct({slot:"header"})],V.prototype,"headerContent",void 0);ee([ct({slot:"header-actions"})],V.prototype,"headerActionsContent",void 0);ee([Nt("#body slot")],V.prototype,"bodyContent",void 0);ee([ct({slot:"footer",flatten:!0})],V.prototype,"footerContent",void 0);ee([ct({slot:"footer-actions"})],V.prototype,"footerActionsContent",void 0);ee([ct({slot:"side-bar"})],V.prototype,"sideBarContent",void 0);var gn={size:n.create("--ftds-icon-font-size","","SIZE","24px")},$l=[G`
498
+ `}onKeydown(t){this.selectable&&t.key===" "&&t.preventDefault()}onKeyup(t){this.selectable&&t.key===" "&&this.dispatchEvent(new CustomEvent("change",{detail:!this.selected}))}onClick(){this.selectable&&this.dispatchEvent(new CustomEvent("change",{detail:!this.selected}))}onSlotchange(){var t,r;this.hasHeader=this.headerContent.length>0||!!this.headerText,this.hasHeaderActions=this.headerActionsContent.length>0,this.hasBody=qr(this.bodyContent).trim().length>0||((r=(t=this.bodyContent)===null||t===void 0?void 0:t.assignedElements())!==null&&r!==void 0?r:[]).length>0,this.hasFooter=this.footerContent.length>0,this.hasFooterActions=this.footerActionsContent.length>0,this.hasSideBar=this.sideBarContent.length>0}};V.elementDefinitions={"ftds-typography":ae,"ft-ripple":Y};V.styles=mn;ee([_()],V.prototype,"headerText",void 0);ee([_({type:Boolean})],V.prototype,"headerBorder",void 0);ee([_()],V.prototype,"headerHref",void 0);ee([_({type:Boolean})],V.prototype,"selectable",void 0);ee([_({type:Boolean})],V.prototype,"selected",void 0);ee([j()],V.prototype,"hasHeader",void 0);ee([j()],V.prototype,"hasHeaderActions",void 0);ee([j()],V.prototype,"hasBody",void 0);ee([j()],V.prototype,"hasFooter",void 0);ee([j()],V.prototype,"hasFooterActions",void 0);ee([j()],V.prototype,"hasSideBar",void 0);ee([ct({slot:"header"})],V.prototype,"headerContent",void 0);ee([ct({slot:"header-actions"})],V.prototype,"headerActionsContent",void 0);ee([Nt("#body slot")],V.prototype,"bodyContent",void 0);ee([ct({slot:"footer",flatten:!0})],V.prototype,"footerContent",void 0);ee([ct({slot:"footer-actions"})],V.prototype,"footerActionsContent",void 0);ee([ct({slot:"side-bar"})],V.prototype,"sideBarContent",void 0);var gn={size:n.create("--ftds-icon-font-size","","SIZE","24px")},$l=[G`
499
499
  :host {
500
500
  display: inline-flex;
501
501
  }
@@ -1703,7 +1703,7 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a
1703
1703
  slot="footer"></slot>
1704
1704
  `)}
1705
1705
  </ftds-card>
1706
- `}onKeydown(t){(t.code==="Enter"||t.code==="Space")&&(t.preventDefault(),this.collapsed=!this.collapsed)}};Fe.elementDefinitions={"ftds-card":V,"ftds-icon":ce,"ftds-typography":ae,"ft-ripple":Y};Fe.styles=[mn,U2];Fi([_({type:Boolean,reflect:!0})],Fe.prototype,"collapsed",void 0);Fi([_({type:Boolean,reflect:!0})],Fe.prototype,"headerBorder",void 0);Fi([_()],Fe.prototype,"headerText",void 0);var F2={"ftds-collapsible-block":Fe};ye(F2);})();
1706
+ `}onKeydown(t){(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),this.collapsed=!this.collapsed)}};Fe.elementDefinitions={"ftds-card":V,"ftds-icon":ce,"ftds-typography":ae,"ft-ripple":Y};Fe.styles=[mn,U2];Fi([_({type:Boolean,reflect:!0})],Fe.prototype,"collapsed",void 0);Fi([_({type:Boolean,reflect:!0})],Fe.prototype,"headerBorder",void 0);Fi([_()],Fe.prototype,"headerText",void 0);var F2={"ftds-collapsible-block":Fe};ye(F2);})();
1707
1707
  /*! Bundled license information:
1708
1708
 
1709
1709
  @webcomponents/scoped-custom-element-registry/src/scoped-custom-element-registry.js:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ftds-collapsible-block",
3
- "version": "2.1.18",
3
+ "version": "2.1.20",
4
4
  "description": "A collapsible block design system component",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,12 +19,12 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-wc-utils": "2.1.18",
23
- "@fluid-topics/ftds-card": "2.1.18",
22
+ "@fluid-topics/ft-wc-utils": "2.1.20",
23
+ "@fluid-topics/ftds-card": "2.1.20",
24
24
  "lit": "3.1.0"
25
25
  },
26
26
  "devDependencies": {
27
- "@fluid-topics/ft-wc-test-utils": "2.1.18"
27
+ "@fluid-topics/ft-wc-test-utils": "2.1.20"
28
28
  },
29
- "gitHead": "2effe252f9ab22ede85f961b8464ec8aa4d27870"
29
+ "gitHead": "77e9f03085f977dde887e175b964bf66b862253f"
30
30
  }