@fluid-topics/ft-checkbox
Advanced tools
Comparing version 0.2.17 to 0.2.18
@@ -76,3 +76,3 @@ !function(t){ | ||
${this.getTemplate()} | ||
`}updated(t){super.updated(t),setTimeout((()=>{var e;this.contentAvailableCallback(t),(null===(e=this.exportpartsPrefix)||void 0===e?void 0:e.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}),0)}setExportpartsAttribute(t){var e,i,o,r,s,n;let a=[];for(let l of t){let t=null==l?void 0:l.trim();if(t)for(let l of null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==i?i:[]){let e=null!==(r=null===(o=l.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==r?r:[],i=null!==(n=null===(s=l.getAttribute("exportparts"))||void 0===s?void 0:s.split(",").map((t=>t.split(":")[1])))&&void 0!==n?n:[];const h=[...new Set([...e,...i])].filter((t=>null!=t&&t.trim().length>0)).map((t=>t.trim())).map((e=>`${e}:${t}--${e}`));a.push(...h)}}this.setAttribute("exportparts",a.join(", "))}contentAvailableCallback(t){}}ft([o()],dt.prototype,"exportpartsPrefix",void 0),ft([function(t,e){const i=()=>JSON.parse(JSON.stringify(t));return o({type:Object,converter:{fromAttribute:t=>{if(null==t)return i();try{return JSON.parse(t)}catch{return i()}},toAttribute:t=>JSON.stringify(t)},...null!=e?e:{}})}([])],dt.prototype,"exportpartsPrefixes",void 0),d` | ||
`}updated(t){super.updated(t),setTimeout((()=>{var e;this.contentAvailableCallback(t),(null===(e=this.exportpartsPrefix)||void 0===e?void 0:e.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}),0)}setExportpartsAttribute(t){var e,i,o,r,s,n;const a=t=>null!=t&&t.trim().length>0,l=t.filter(a).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const h=new Set;for(let t of null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==i?i:[]){const e=null!==(r=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==r?r:[],i=null!==(n=null===(s=t.getAttribute("exportparts"))||void 0===s?void 0:s.split(",").map((t=>t.split(":")[1])))&&void 0!==n?n:[];new Array(...e,...i).filter(a).map((t=>t.trim())).forEach((t=>h.add(t)))}if(0===h.size)return void this.removeAttribute("exportparts");const c=[...h.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...c].join(", "))}contentAvailableCallback(t){}}ft([o()],dt.prototype,"exportpartsPrefix",void 0),ft([function(t,e){const i=()=>JSON.parse(JSON.stringify(t));return o({type:Object,converter:{fromAttribute:t=>{if(null==t)return i();try{return JSON.parse(t)}catch{return i()}},toAttribute:t=>JSON.stringify(t)},...null!=e?e:{}})}([])],dt.prototype,"exportpartsPrefixes",void 0),d` | ||
.ft-no-text-select { | ||
@@ -79,0 +79,0 @@ -webkit-touch-callout: none; |
{ | ||
"name": "@fluid-topics/ft-checkbox", | ||
"version": "0.2.17", | ||
"version": "0.2.18", | ||
"description": "A checkbox component", | ||
@@ -22,8 +22,8 @@ "keywords": [ | ||
"dependencies": { | ||
"@fluid-topics/ft-ripple": "^0.2.17", | ||
"@fluid-topics/ft-typography": "^0.2.17", | ||
"@fluid-topics/ft-wc-utils": "^0.2.17", | ||
"@fluid-topics/ft-ripple": "^0.2.18", | ||
"@fluid-topics/ft-typography": "^0.2.18", | ||
"@fluid-topics/ft-wc-utils": "^0.2.18", | ||
"lit": "2.1.3" | ||
}, | ||
"gitHead": "7f1e7d4377a6bac24d6d797b342f25166ee44031" | ||
"gitHead": "ef8d35d4cfa0669cf38aa2e3d40e02ba46f4d7f9" | ||
} |
100887
8
1120