@3t-transform/threeteeui 0.1.69 → 0.1.70

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.
Files changed (65) hide show
  1. package/dist/cjs/{index-43af0e62.js → index-4cfa8e25.js} +59 -0
  2. package/dist/cjs/loader.cjs.js +2 -2
  3. package/dist/cjs/tttx-button.cjs.entry.js +1 -1
  4. package/dist/cjs/tttx-dialog-box.cjs.entry.js +1 -1
  5. package/dist/cjs/tttx-filter.cjs.entry.js +1 -1
  6. package/dist/cjs/tttx-form.cjs.entry.js +1 -1
  7. package/dist/cjs/tttx-icon.cjs.entry.js +1 -1
  8. package/dist/cjs/tttx-keyvalue-block.cjs.entry.js +1 -1
  9. package/dist/cjs/tttx-list.cjs.entry.js +12 -22
  10. package/dist/cjs/tttx-loading-spinner.cjs.entry.js +1 -1
  11. package/dist/cjs/tttx-qrcode.cjs.entry.js +1 -1
  12. package/dist/cjs/tttx-select-box.cjs.entry.js +2 -2
  13. package/dist/cjs/tttx-sorter.cjs.entry.js +1 -1
  14. package/dist/cjs/tttx-standalone-input.cjs.entry.js +1 -1
  15. package/dist/cjs/tttx-tag.cjs.entry.js +1 -1
  16. package/dist/cjs/tttx-toolbar.cjs.entry.js +1 -1
  17. package/dist/cjs/tttx-tree-view.cjs.entry.js +1 -1
  18. package/dist/cjs/tttx.cjs.js +2 -2
  19. package/dist/collection/components/molecules/tttx-list/tttx-list.css +21 -3
  20. package/dist/collection/components/molecules/tttx-list/tttx-list.js +13 -46
  21. package/dist/collection/components/molecules/tttx-list/tttx-list.stories.js +134 -4
  22. package/dist/collection/components/molecules/tttx-select-box/tttx-select-box.css +1 -1
  23. package/dist/components/tttx-list.js +13 -24
  24. package/dist/components/tttx-select-box.js +1 -1
  25. package/dist/esm/{index-1c711ead.js → index-6a372ea6.js} +59 -1
  26. package/dist/esm/loader.js +3 -3
  27. package/dist/esm/tttx-button.entry.js +1 -1
  28. package/dist/esm/tttx-dialog-box.entry.js +1 -1
  29. package/dist/esm/tttx-filter.entry.js +1 -1
  30. package/dist/esm/tttx-form.entry.js +1 -1
  31. package/dist/esm/tttx-icon.entry.js +1 -1
  32. package/dist/esm/tttx-keyvalue-block.entry.js +1 -1
  33. package/dist/esm/tttx-list.entry.js +12 -22
  34. package/dist/esm/tttx-loading-spinner.entry.js +1 -1
  35. package/dist/esm/tttx-qrcode.entry.js +1 -1
  36. package/dist/esm/tttx-select-box.entry.js +2 -2
  37. package/dist/esm/tttx-sorter.entry.js +1 -1
  38. package/dist/esm/tttx-standalone-input.entry.js +1 -1
  39. package/dist/esm/tttx-tag.entry.js +1 -1
  40. package/dist/esm/tttx-toolbar.entry.js +1 -1
  41. package/dist/esm/tttx-tree-view.entry.js +1 -1
  42. package/dist/esm/tttx.js +3 -3
  43. package/dist/tttx/{p-6535df53.entry.js → p-3597dea7.entry.js} +1 -1
  44. package/dist/tttx/p-3f1b6013.js +2 -0
  45. package/dist/tttx/{p-cff962bf.entry.js → p-50cdce65.entry.js} +1 -1
  46. package/dist/tttx/{p-225e6fa6.entry.js → p-5290db99.entry.js} +1 -1
  47. package/dist/tttx/{p-3c7e11d9.entry.js → p-5b7b8539.entry.js} +1 -1
  48. package/dist/tttx/{p-f80ab1d8.entry.js → p-6fe0af4e.entry.js} +1 -1
  49. package/dist/tttx/p-750cf31b.entry.js +1 -0
  50. package/dist/tttx/{p-2f066b53.entry.js → p-75c31e23.entry.js} +1 -1
  51. package/dist/tttx/{p-e6bbdae3.entry.js → p-818574fe.entry.js} +1 -1
  52. package/dist/tttx/{p-57621fdb.entry.js → p-895526aa.entry.js} +1 -1
  53. package/dist/tttx/{p-68680d65.entry.js → p-a6582ab0.entry.js} +1 -1
  54. package/dist/tttx/{p-6a40d3cc.entry.js → p-c0c022cd.entry.js} +1 -1
  55. package/dist/tttx/{p-a658e1ac.entry.js → p-c714f7c0.entry.js} +1 -1
  56. package/dist/tttx/{p-64479f02.entry.js → p-d77e74fd.entry.js} +1 -1
  57. package/dist/tttx/{p-3467c62e.entry.js → p-e55a967b.entry.js} +1 -1
  58. package/dist/tttx/{p-53fa8b4d.entry.js → p-e89b053f.entry.js} +1 -1
  59. package/dist/tttx/tttx.esm.js +1 -1
  60. package/dist/types/components/molecules/tttx-list/interfaces.d.ts +30 -1
  61. package/dist/types/components/molecules/tttx-list/tttx-list.d.ts +0 -2
  62. package/dist/types/components.d.ts +1 -2
  63. package/package.json +1 -1
  64. package/dist/tttx/p-40c66a2e.entry.js +0 -1
  65. package/dist/tttx/p-c544551b.js +0 -2
@@ -1 +0,0 @@
1
- import{r as i,c as t,h as e}from"./p-c544551b.js";import{p as o,d as s}from"./p-5ed38d61.js";import"./p-112455b1.js";const n=class{constructor(e){i(this,e),this.rowClick=t(this,"listRowClick",7),this.rowCheckboxClick=t(this,"listRowCheckboxClick",7),this.data=void 0,this._data=void 0,this.name=void 0}onDataChange(){if(this.data){this._data="string"==typeof this.data?JSON.parse(this.data):[...this.data];for(const i of this._data)i.hasCheckbox&&void 0===i.checked&&(i.checked=!1)}}componentWillLoad(){this.onDataChange()}onRowCheckboxHandler(i,t){i.stopPropagation(),t.rowData&&(t.hasCheckbox&&(t.checked=!t.checked),this._data=[...this._data],this.rowCheckboxClick.emit({key:t.key,name:this.name,data:t.rowData,checked:t.checked}))}onRowClickHandler(i){i.clickable&&i.rowData&&this.rowClick.emit({key:i.key,name:this.name,data:i.rowData})}async setAllCheckboxes(i){for(const t of this._data)t.hasCheckbox&&(t.checked=i);this._data=[...this._data]}renderListItem(i){const t=o.sanitize(i.element,s);return e("li",{class:"item "+(i.clickable?"clickable":""),onClick:()=>{this.onRowClickHandler(i)}},i.hasCheckbox&&e("div",{class:"checkbox"},e("tttx-icon",{icon:i.checked?"check_box":"check_box_outline_blank",color:i.checked?"blue":"grey",onClick:t=>{this.onRowCheckboxHandler(t,i)}})),i.element&&e("span",{class:"item-content",innerHTML:t}),i.icon&&e("span",{class:"icons"},e("tttx-icon",{class:"align-right",icon:i.icon,color:"black"})))}render(){if(this._data)return e("ul",{class:"list"},this._data.map((i=>this.renderListItem(i))))}static get watchers(){return{data:["onDataChange"]}}};n.style='.material-symbols-rounded{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}.material-symbols-rounded{font-family:"Material Symbols Rounded", sans-serif;font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;color:#9e9e9e}:host{display:flex;flex-direction:column}.list{margin:0;padding:0}li{display:flex;align-items:flex-start}li.item{list-style:none;margin:0;padding:8px;border-bottom:1px solid #d5d5d5;min-height:36px}li.item:first-of-type{border-top:1px solid #d5d5d5}li.item.clickable:hover{cursor:pointer}li.item.clickable:active{background-color:#e6e6e6}li.item .icons{display:flex;justify-content:flex-end;flex-grow:1;align-items:center;height:36px}li.item .icons tttx-icon:hover{cursor:pointer}li.item .icons *{display:flex}li:hover{background-color:#1111110D}.align-right{margin-left:auto}.item-content{display:flex;align-items:center;flex-grow:2;min-height:36px}.checkbox{padding:6px;margin-left:-8px}';export{n as tttx_list}
@@ -1,2 +0,0 @@
1
- let e,n,t=!1;const l={},s=e=>"object"==(e=typeof e)||"function"===e;function o(e){var n,t,l;return null!==(l=null===(t=null===(n=e.head)||void 0===n?void 0:n.querySelector('meta[name="csp-nonce"]'))||void 0===t?void 0:t.getAttribute("content"))&&void 0!==l?l:void 0}const i=(e,n,...t)=>{let l=null,o=null,i=!1,r=!1;const u=[],a=n=>{for(let t=0;t<n.length;t++)l=n[t],Array.isArray(l)?a(l):null!=l&&"boolean"!=typeof l&&((i="function"!=typeof e&&!s(l))&&(l+=""),i&&r?u[u.length-1].t+=l:u.push(i?c(null,l):l),r=i)};if(a(t),n){n.key&&(o=n.key);{const e=n.className||n.class;e&&(n.class="object"!=typeof e?e:Object.keys(e).filter((n=>e[n])).join(" "))}}const f=c(e,null);return f.l=n,u.length>0&&(f.o=u),f.i=o,f},c=(e,n)=>({u:0,m:e,t:n,h:null,o:null,l:null,i:null}),r={},u=e=>V(e).p,a=(e,n,t)=>{const l=u(e);return{emit:e=>f(l,n,{bubbles:!!(4&t),composed:!!(2&t),cancelable:!!(1&t),detail:e})}},f=(e,n,t)=>{const l=Y.ce(n,t);return e.dispatchEvent(l),l},d=new WeakMap,m=e=>"sc-"+e.$,y=(e,n,t,l,o,i)=>{if(t!==l){let c=B(e,n),r=n.toLowerCase();if("class"===n){const n=e.classList,s=p(t),o=p(l);n.remove(...s.filter((e=>e&&!o.includes(e)))),n.add(...o.filter((e=>e&&!s.includes(e))))}else if("style"===n){for(const n in t)l&&null!=l[n]||(n.includes("-")?e.style.removeProperty(n):e.style[n]="");for(const n in l)t&&l[n]===t[n]||(n.includes("-")?e.style.setProperty(n,l[n]):e.style[n]=l[n])}else if("key"===n);else if("ref"===n)l&&l(e);else if(c||"o"!==n[0]||"n"!==n[1]){const r=s(l);if((c||r&&null!==l)&&!o)try{if(e.tagName.includes("-"))e[n]=l;else{const s=null==l?"":l;"list"===n?c=!1:null!=t&&e[n]==s||(e[n]=s)}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(n)||e.removeAttribute(n):(!c||4&i||o)&&!r&&e.setAttribute(n,l=!0===l?"":l)}else n="-"===n[2]?n.slice(3):B(Q,r)?r.slice(2):r[2]+n.slice(3),t&&Y.rel(e,n,t,!1),l&&Y.ael(e,n,l,!1)}},h=/\s/,p=e=>e?e.split(h):[],$=(e,n,t,s)=>{const o=11===n.h.nodeType&&n.h.host?n.h.host:n.h,i=e&&e.l||l,c=n.l||l;for(s in i)s in c||y(o,s,i[s],void 0,t,n.u);for(s in c)y(o,s,i[s],c[s],t,n.u)},b=(n,t,l)=>{const s=t.o[l];let o,i,c=0;if(null!==s.t)o=s.h=X.createTextNode(s.t);else if(o=s.h=X.createElement(s.m),$(null,s,!1),null!=e&&o["s-si"]!==e&&o.classList.add(o["s-si"]=e),s.o)for(c=0;c<s.o.length;++c)i=b(n,s,c),i&&o.appendChild(i);return o},v=(e,t,l,s,o,i)=>{let c,r=e;for(r.shadowRoot&&r.tagName===n&&(r=r.shadowRoot);o<=i;++o)s[o]&&(c=b(null,l,o),c&&(s[o].h=c,r.insertBefore(c,t)))},w=(e,n,t,l,s)=>{for(;n<=t;++n)(l=e[n])&&(s=l.h,j(l),s.remove())},S=(e,n)=>e.m===n.m&&e.i===n.i,g=(e,n)=>{const t=n.h=e.h,l=e.o,s=n.o,o=n.t;null===o?("slot"===n.m||$(e,n,!1),null!==l&&null!==s?((e,n,t,l)=>{let s,o,i=0,c=0,r=0,u=0,a=n.length-1,f=n[0],d=n[a],m=l.length-1,y=l[0],h=l[m];for(;i<=a&&c<=m;)if(null==f)f=n[++i];else if(null==d)d=n[--a];else if(null==y)y=l[++c];else if(null==h)h=l[--m];else if(S(f,y))g(f,y),f=n[++i],y=l[++c];else if(S(d,h))g(d,h),d=n[--a],h=l[--m];else if(S(f,h))g(f,h),e.insertBefore(f.h,d.h.nextSibling),f=n[++i],h=l[--m];else if(S(d,y))g(d,y),e.insertBefore(d.h,f.h),d=n[--a],y=l[++c];else{for(r=-1,u=i;u<=a;++u)if(n[u]&&null!==n[u].i&&n[u].i===y.i){r=u;break}r>=0?(o=n[r],o.m!==y.m?s=b(n&&n[c],t,r):(g(o,y),n[r]=void 0,s=o.h),y=l[++c]):(s=b(n&&n[c],t,c),y=l[++c]),s&&f.h.parentNode.insertBefore(s,f.h)}i>a?v(e,null==l[m+1]?null:l[m+1].h,t,l,c,m):c>m&&w(n,i,a)})(t,l,n,s):null!==s?(null!==e.t&&(t.textContent=""),v(t,null,n,s,0,s.length-1)):null!==l&&w(l,0,l.length-1)):e.t!==o&&(t.data=o)},j=e=>{e.l&&e.l.ref&&e.l.ref(null),e.o&&e.o.map(j)},k=(e,n)=>{n&&!e.v&&n["s-p"]&&n["s-p"].push(new Promise((n=>e.v=n)))},M=(e,n)=>{if(e.u|=16,!(4&e.u))return k(e,e.S),ce((()=>O(e,n)));e.u|=512},O=(e,n)=>{const t=e.g;let l;return n&&(e.u|=256,e.j&&(e.j.map((([e,n])=>R(t,e,n))),e.j=null),l=R(t,"componentWillLoad")),l=W(l,(()=>R(t,"componentWillRender"))),W(l,(()=>C(e,t,n)))},C=async(e,n,t)=>{const l=e.p,s=l["s-rc"];t&&(e=>{const n=e.k,t=e.p,l=n.u,s=((e,n)=>{var t;let l=m(n);const s=K.get(l);if(e=11===e.nodeType?e:X,s)if("string"==typeof s){let n,i=d.get(e=e.head||e);if(i||d.set(e,i=new Set),!i.has(l)){{n=X.createElement("style"),n.innerHTML=s;const l=null!==(t=Y.M)&&void 0!==t?t:o(X);null!=l&&n.setAttribute("nonce",l),e.insertBefore(n,e.querySelector("link"))}i&&i.add(l)}}else e.adoptedStyleSheets.includes(s)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,s]);return l})(t.shadowRoot?t.shadowRoot:t.getRootNode(),n);10&l&&(t["s-sc"]=s,t.classList.add(s+"-h"),2&l&&t.classList.add(s+"-s"))})(e);P(e,n),s&&(s.map((e=>e())),l["s-rc"]=void 0);{const n=l["s-p"],t=()=>x(e);0===n.length?t():(Promise.all(n).then(t),e.u|=4,n.length=0)}},P=(t,l)=>{try{l=l.render(),t.u&=-17,t.u|=2,((t,l)=>{const s=t.p,o=t.O||c(null,null),u=(e=>e&&e.m===r)(l)?l:i(null,null,l);n=s.tagName,u.m=null,u.u|=4,t.O=u,u.h=o.h=s.shadowRoot||s,e=s["s-sc"],g(o,u)})(t,l)}catch(e){G(e,t.p)}return null},x=e=>{const n=e.p,t=e.g,l=e.S;R(t,"componentDidRender"),64&e.u||(e.u|=64,E(n),R(t,"componentDidLoad"),e.C(n),l||L()),e.P(n),e.v&&(e.v(),e.v=void 0),512&e.u&&ie((()=>M(e,!1))),e.u&=-517},L=()=>{E(X.documentElement),ie((()=>f(Q,"appload",{detail:{namespace:"tttx"}})))},R=(e,n,t)=>{if(e&&e[n])try{return e[n](t)}catch(e){G(e)}},W=(e,n)=>e&&e.then?e.then(n):n(),E=e=>e.classList.add("hydrated"),N=(e,n,t)=>{if(n.L){e.watchers&&(n.R=e.watchers);const l=Object.entries(n.L),o=e.prototype;if(l.map((([e,[l]])=>{31&l||2&t&&32&l?Object.defineProperty(o,e,{get(){return((e,n)=>V(this).W.get(n))(0,e)},set(t){((e,n,t,l)=>{const o=V(e),i=o.p,c=o.W.get(n),r=o.u,u=o.g;if(t=((e,n)=>null==e||s(e)?e:4&n?"false"!==e&&(""===e||!!e):2&n?parseFloat(e):1&n?e+"":e)(t,l.L[n][0]),(!(8&r)||void 0===c)&&t!==c&&(!Number.isNaN(c)||!Number.isNaN(t))&&(o.W.set(n,t),u)){if(l.R&&128&r){const e=l.R[n];e&&e.map((e=>{try{u[e](t,c,n)}catch(e){G(e,i)}}))}2==(18&r)&&M(o,!1)}})(this,e,t,n)},configurable:!0,enumerable:!0}):1&t&&64&l&&Object.defineProperty(o,e,{value(...n){const t=V(this);return t.N.then((()=>t.g[e](...n)))}})})),1&t){const n=new Map;o.attributeChangedCallback=function(e,t,l){Y.jmp((()=>{const t=n.get(e);if(this.hasOwnProperty(t))l=this[t],delete this[t];else if(o.hasOwnProperty(t)&&"number"==typeof this[t]&&this[t]==l)return;this[t]=(null!==l||"boolean"!=typeof this[t])&&l}))},e.observedAttributes=l.filter((([e,n])=>15&n[0])).map((([e,t])=>{const l=t[1]||e;return n.set(l,e),l}))}}return e},T=(e,n={})=>{var t;const l=[],s=n.exclude||[],i=Q.customElements,c=X.head,r=c.querySelector("meta[charset]"),u=X.createElement("style"),a=[];let f,d=!0;Object.assign(Y,n),Y.T=new URL(n.resourcesUrl||"./",X.baseURI).href,e.map((e=>{e[1].map((t=>{const o={u:t[0],$:t[1],L:t[2],A:t[3]};o.L=t[2],o.A=t[3],o.R={};const c=n.transformTagName?n.transformTagName(o.$):o.$,r=class extends HTMLElement{constructor(e){super(e),z(e=this,o),1&o.u&&e.attachShadow({mode:"open"})}connectedCallback(){f&&(clearTimeout(f),f=null),d?a.push(this):Y.jmp((()=>(e=>{if(0==(1&Y.u)){const n=V(e),t=n.k,l=()=>{};if(1&n.u)A(e,n,t.A);else{n.u|=1;{let t=e;for(;t=t.parentNode||t.host;)if(t["s-p"]){k(n,n.S=t);break}}t.L&&Object.entries(t.L).map((([n,[t]])=>{if(31&t&&e.hasOwnProperty(n)){const t=e[n];delete e[n],e[n]=t}})),(async(e,n,t,l,s)=>{if(0==(32&n.u)){{if(n.u|=32,(s=J(t)).then){const e=()=>{};s=await s,e()}s.isProxied||(t.R=s.watchers,N(s,t,2),s.isProxied=!0);const e=()=>{};n.u|=8;try{new s(n)}catch(e){G(e)}n.u&=-9,n.u|=128,e()}if(s.style){let e=s.style;const n=m(t);if(!K.has(n)){const l=()=>{};((e,n,t)=>{let l=K.get(e);ee&&t?(l=l||new CSSStyleSheet,"string"==typeof l?l=n:l.replaceSync(n)):l=n,K.set(e,l)})(n,e,!!(1&t.u)),l()}}}const o=n.S,i=()=>M(n,!0);o&&o["s-rc"]?o["s-rc"].push(i):i()})(0,n,t)}l()}})(this)))}disconnectedCallback(){Y.jmp((()=>(()=>{if(0==(1&Y.u)){const e=V(this);e.D&&(e.D.map((e=>e())),e.D=void 0)}})()))}componentOnReady(){return V(this).F}};o.H=e[0],s.includes(c)||i.get(c)||(l.push(c),i.define(c,N(r,o,1)))}))}));{u.innerHTML=l+"{visibility:hidden}.hydrated{visibility:inherit}",u.setAttribute("data-styles","");const e=null!==(t=Y.M)&&void 0!==t?t:o(X);null!=e&&u.setAttribute("nonce",e),c.insertBefore(u,r?r.nextSibling:c.firstChild)}d=!1,a.length?a.map((e=>e.connectedCallback())):Y.jmp((()=>f=setTimeout(L,30)))},A=(e,n,t)=>{t&&t.map((([t,l,s])=>{const o=F(e,t),i=D(n,s),c=H(t);Y.ael(o,l,i,c),(n.D=n.D||[]).push((()=>Y.rel(o,l,i,c)))}))},D=(e,n)=>t=>{try{256&e.u?e.g[n](t):(e.j=e.j||[]).push([n,t])}catch(e){G(e)}},F=(e,n)=>8&n?Q:e,H=e=>0!=(2&e),U=e=>Y.M=e,q=new WeakMap,V=e=>q.get(e),_=(e,n)=>q.set(n.g=e,n),z=(e,n)=>{const t={u:0,p:e,k:n,W:new Map};return t.N=new Promise((e=>t.P=e)),t.F=new Promise((e=>t.C=e)),e["s-p"]=[],e["s-rc"]=[],A(e,t,n.A),q.set(e,t)},B=(e,n)=>n in e,G=(e,n)=>(0,console.error)(e,n),I=new Map,J=e=>{const n=e.$.replace(/-/g,"_"),t=e.H,l=I.get(t);return l?l[n]:import(`./${t}.entry.js`).then((e=>(I.set(t,e),e[n])),G)
2
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/},K=new Map,Q="undefined"!=typeof window?window:{},X=Q.document||{head:{}},Y={u:0,T:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,n,t,l)=>e.addEventListener(n,t,l),rel:(e,n,t,l)=>e.removeEventListener(n,t,l),ce:(e,n)=>new CustomEvent(e,n)},Z=e=>Promise.resolve(e),ee=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),ne=[],te=[],le=(e,n)=>l=>{e.push(l),t||(t=!0,n&&4&Y.u?ie(oe):Y.raf(oe))},se=e=>{for(let n=0;n<e.length;n++)try{e[n](performance.now())}catch(e){G(e)}e.length=0},oe=()=>{se(ne),se(te),(t=ne.length>0)&&Y.raf(oe)},ie=e=>Z().then(e),ce=le(te,!0);export{r as H,T as b,a as c,u as g,i as h,Z as p,_ as r,U as s}