@maggioli-design-system/mds-table-row 3.1.0 → 4.0.0

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 (74) hide show
  1. package/dist/cjs/{index-f0f000bc.js → index-1066e7b9.js} +58 -3
  2. package/dist/cjs/loader.cjs.js +3 -3
  3. package/dist/cjs/mds-table-row.cjs.entry.js +1 -1
  4. package/dist/cjs/mds-table-row.cjs.js +3 -3
  5. package/dist/collection/collection-manifest.json +1 -1
  6. package/dist/collection/common/keyboard-manager.js +40 -0
  7. package/dist/collection/components/mds-table-row/mds-table-row.js +2 -2
  8. package/dist/collection/dictionary/icon.js +3 -1
  9. package/dist/collection/dictionary/typography.js +5 -1
  10. package/dist/components/mds-table-row.js +1 -1
  11. package/dist/esm/{index-fa7f6909.js → index-be386e76.js} +58 -3
  12. package/dist/esm/loader.js +4 -4
  13. package/dist/esm/mds-table-row.entry.js +1 -1
  14. package/dist/esm/mds-table-row.js +4 -4
  15. package/dist/esm-es5/{index-fa7f6909.js → index-be386e76.js} +1 -1
  16. package/dist/esm-es5/loader.js +1 -1
  17. package/dist/esm-es5/mds-table-row.entry.js +1 -1
  18. package/dist/esm-es5/mds-table-row.js +1 -1
  19. package/dist/mds-table-row/mds-table-row.esm.js +1 -1
  20. package/dist/mds-table-row/mds-table-row.js +1 -1
  21. package/dist/mds-table-row/{p-b0f4e920.system.js → p-2647d8bd.system.js} +1 -1
  22. package/dist/mds-table-row/{p-4c63953c.entry.js → p-30a6116a.entry.js} +1 -1
  23. package/dist/mds-table-row/{p-f26de3ab.js → p-426bd1f3.js} +1 -1
  24. package/dist/mds-table-row/{p-e2b31e90.system.entry.js → p-7d3f05d4.system.entry.js} +1 -1
  25. package/dist/mds-table-row/p-fb327bab.system.js +1 -0
  26. package/dist/stats.json +54 -51
  27. package/dist/types/common/keyboard-manager.d.ts +11 -0
  28. package/dist/types/dictionary/icon.d.ts +2 -1
  29. package/dist/types/dictionary/typography.d.ts +2 -1
  30. package/dist/types/stencil-public-runtime.d.ts +11 -0
  31. package/dist/types/{types → type}/typography.d.ts +1 -0
  32. package/package.json +4 -4
  33. package/src/common/keyboard-manager.ts +46 -0
  34. package/src/components/mds-table-row/mds-table-row.tsx +1 -1
  35. package/src/dictionary/icon.ts +4 -0
  36. package/src/dictionary/typography.ts +9 -3
  37. package/src/fixtures/icons.json +174 -0
  38. package/src/fixtures/iconsauce.json +175 -0
  39. package/src/tailwind/components.css +1 -0
  40. package/src/{types → type}/typography.ts +4 -0
  41. package/www/build/mds-table-row.esm.js +1 -1
  42. package/www/build/mds-table-row.js +1 -1
  43. package/www/build/{p-b0f4e920.system.js → p-2647d8bd.system.js} +1 -1
  44. package/www/build/{p-4c63953c.entry.js → p-30a6116a.entry.js} +1 -1
  45. package/www/build/{p-f26de3ab.js → p-426bd1f3.js} +1 -1
  46. package/www/build/{p-e2b31e90.system.entry.js → p-7d3f05d4.system.entry.js} +1 -1
  47. package/www/build/p-fb327bab.system.js +1 -0
  48. package/dist/mds-table-row/p-e6313d30.system.js +0 -1
  49. package/www/build/p-e6313d30.system.js +0 -1
  50. /package/dist/collection/{types → type}/autocomplete.js +0 -0
  51. /package/dist/collection/{types → type}/button.js +0 -0
  52. /package/dist/collection/{types → type}/floating-ui.js +0 -0
  53. /package/dist/collection/{types → type}/form-rel.js +0 -0
  54. /package/dist/collection/{types → type}/input-text-type.js +0 -0
  55. /package/dist/collection/{types → type}/input-value-type.js +0 -0
  56. /package/dist/collection/{types → type}/loading.js +0 -0
  57. /package/dist/collection/{types → type}/typography.js +0 -0
  58. /package/dist/collection/{types → type}/variant.js +0 -0
  59. /package/dist/types/{types → type}/autocomplete.d.ts +0 -0
  60. /package/dist/types/{types → type}/button.d.ts +0 -0
  61. /package/dist/types/{types → type}/floating-ui.d.ts +0 -0
  62. /package/dist/types/{types → type}/form-rel.d.ts +0 -0
  63. /package/dist/types/{types → type}/input-text-type.d.ts +0 -0
  64. /package/dist/types/{types → type}/input-value-type.d.ts +0 -0
  65. /package/dist/types/{types → type}/loading.d.ts +0 -0
  66. /package/dist/types/{types → type}/variant.d.ts +0 -0
  67. /package/src/{types → type}/autocomplete.ts +0 -0
  68. /package/src/{types → type}/button.ts +0 -0
  69. /package/src/{types → type}/floating-ui.ts +0 -0
  70. /package/src/{types → type}/form-rel.ts +0 -0
  71. /package/src/{types → type}/input-text-type.ts +0 -0
  72. /package/src/{types → type}/input-value-type.ts +0 -0
  73. /package/src/{types → type}/loading.ts +0 -0
  74. /package/src/{types → type}/variant.ts +0 -0
@@ -1,2 +1,2 @@
1
- let t,n,e=!1;const l={},o=t=>"object"==(t=typeof t)||"function"===t;function s(t){var n,e,l;return null!==(l=null===(e=null===(n=t.head)||void 0===n?void 0:n.querySelector('meta[name="csp-nonce"]'))||void 0===e?void 0:e.getAttribute("content"))&&void 0!==l?l:void 0}const r=(t,n,...e)=>{let l=null,s=!1,r=!1;const c=[],u=n=>{for(let e=0;e<n.length;e++)l=n[e],Array.isArray(l)?u(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof t&&!o(l))&&(l+=""),s&&r?c[c.length-1].t+=l:c.push(s?i(null,l):l),r=s)};u(e);const a=i(t,null);return a.l=n,c.length>0&&(a.o=c),a},i=(t,n)=>({i:0,u:t,t:n,h:null,o:null,l:null}),c={},u=new WeakMap,a=t=>"sc-"+t.$,f=(t,n,e,l,s,r)=>{if(e!==l){let i=q(t,n);n.toLowerCase();{const c=o(l);if((i||c&&null!==l)&&!s)try{if(t.tagName.includes("-"))t[n]=l;else{const o=null==l?"":l;"list"===n?i=!1:null!=e&&t[n]==o||(t[n]=o)}}catch(t){}null==l||!1===l?!1===l&&""!==t.getAttribute(n)||t.removeAttribute(n):(!i||4&r||s)&&!c&&t.setAttribute(n,l=!0===l?"":l)}}},d=(t,n,e,o)=>{const s=11===n.h.nodeType&&n.h.host?n.h.host:n.h,r=t&&t.l||l,i=n.l||l;for(o in r)o in i||f(s,o,r[o],void 0,e,n.i);for(o in i)f(s,o,r[o],i[o],e,n.i)},h=(n,e,l)=>{const o=e.o[l];let s,r,i=0;if(s=o.h=D.createElement(o.u),d(null,o,!1),null!=t&&s["s-si"]!==t&&s.classList.add(s["s-si"]=t),o.o)for(i=0;i<o.o.length;++i)r=h(n,o,i),r&&s.appendChild(r);return s},$=(t,e,l,o,s,r)=>{let i,c=t;for(c.shadowRoot&&c.tagName===n&&(c=c.shadowRoot);s<=r;++s)o[s]&&(i=h(null,l,s),i&&(o[s].h=i,c.insertBefore(i,e)))},y=(t,n,e,l)=>{for(;n<=e;++n)(l=t[n])&&l.h.remove()},m=(t,n)=>t.u===n.u,p=(t,n)=>{const e=n.h=t.h,l=t.o,o=n.o;"slot"===n.u||d(t,n,!1),null!==l&&null!==o?((t,n,e,l)=>{let o,s=0,r=0,i=n.length-1,c=n[0],u=n[i],a=l.length-1,f=l[0],d=l[a];for(;s<=i&&r<=a;)null==c?c=n[++s]:null==u?u=n[--i]:null==f?f=l[++r]:null==d?d=l[--a]:m(c,f)?(p(c,f),c=n[++s],f=l[++r]):m(u,d)?(p(u,d),u=n[--i],d=l[--a]):m(c,d)?(p(c,d),t.insertBefore(c.h,u.h.nextSibling),c=n[++s],d=l[--a]):m(u,f)?(p(u,f),t.insertBefore(u.h,c.h),u=n[--i],f=l[++r]):(o=h(n&&n[r],e,r),f=l[++r],o&&c.h.parentNode.insertBefore(o,c.h));s>i?$(t,null==l[a+1]?null:l[a+1].h,e,l,r,a):r>a&&y(n,s,i)})(e,l,n,o):null!==o?$(e,null,n,o,0,o.length-1):null!==l&&y(l,0,l.length-1)},w=(t,n)=>{n&&!t.m&&n["s-p"]&&n["s-p"].push(new Promise((n=>t.m=n)))},b=(t,n)=>{if(t.i|=16,!(4&t.i))return w(t,t.p),nt((()=>v(t,n)));t.i|=512},v=(t,n)=>{const e=t.v;return n&&(t.i|=256,t.S&&(t.S.map((([t,n])=>k(e,t,n))),t.S=null)),C(void 0,(()=>S(t,e,n)))},S=async(t,n,e)=>{const l=t.g,o=l["s-rc"];e&&(t=>{const n=t.M,e=t.g,l=n.i,o=((t,n)=>{var e;let l=a(n);const o=z.get(l);if(t=11===t.nodeType?t:D,o)if("string"==typeof o){let n,r=u.get(t=t.head||t);if(r||u.set(t,r=new Set),!r.has(l)){{n=D.createElement("style"),n.innerHTML=o;const l=null!==(e=G.j)&&void 0!==e?e:s(D);null!=l&&n.setAttribute("nonce",l),t.insertBefore(n,t.querySelector("link"))}r&&r.add(l)}}else t.adoptedStyleSheets.includes(o)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,o]);return l})(e.shadowRoot?e.shadowRoot:e.getRootNode(),n);10&l&&(e["s-sc"]=o,e.classList.add(o+"-h"))})(t);g(t,n),o&&(o.map((t=>t())),l["s-rc"]=void 0);{const n=l["s-p"],e=()=>M(t);0===n.length?e():(Promise.all(n).then(e),t.i|=4,n.length=0)}},g=(e,l)=>{try{l=l.render(),e.i&=-17,e.i|=2,((e,l)=>{const o=e.g,s=e.M,u=e.k||i(null,null),a=(t=>t&&t.u===c)(l)?l:r(null,null,l);n=o.tagName,s.C&&(a.l=a.l||{},s.C.map((([t,n])=>a.l[n]=o[t]))),a.u=null,a.i|=4,e.k=a,a.h=u.h=o.shadowRoot||o,t=o["s-sc"],p(u,a)})(e,l)}catch(t){F(t,e.g)}return null},M=t=>{const n=t.g,e=t.p;64&t.i||(t.i|=64,O(n),t.O(n),e||j()),t.m&&(t.m(),t.m=void 0),512&t.i&&tt((()=>b(t,!1))),t.i&=-517},j=()=>{O(D.documentElement),tt((()=>(t=>{const n=G.ce("appload",{detail:{namespace:"mds-table-row"}});return t.dispatchEvent(n),n})(B)))},k=(t,n,e)=>{if(t&&t[n])try{return t[n](e)}catch(t){F(t)}},C=(t,n)=>t&&t.then?t.then(n):n(),O=t=>t.setAttribute("hydrated",""),P=(t,n,e)=>{if(n.P){const l=Object.entries(n.P),s=t.prototype;if(l.map((([t,[l]])=>{(31&l||2&e&&32&l)&&Object.defineProperty(s,t,{get(){return((t,n)=>R(this).N.get(n))(0,t)},set(e){((t,n,e,l)=>{const s=R(t),r=s.N.get(n),i=s.i,c=s.v;e=((t,n)=>null==t||o(t)?t:4&n?"false"!==t&&(""===t||!!t):t)(e,l.P[n][0]),8&i&&void 0!==r||e===r||Number.isNaN(r)&&Number.isNaN(e)||(s.N.set(n,e),c&&2==(18&i)&&b(s,!1))})(this,t,e,n)},configurable:!0,enumerable:!0})})),1&e){const e=new Map;s.attributeChangedCallback=function(t,n,l){G.jmp((()=>{const n=e.get(t);if(this.hasOwnProperty(n))l=this[n],delete this[n];else if(s.hasOwnProperty(n)&&"number"==typeof this[n]&&this[n]==l)return;this[n]=(null!==l||"boolean"!=typeof this[n])&&l}))},t.observedAttributes=l.filter((([t,n])=>15&n[0])).map((([t,l])=>{const o=l[1]||t;return e.set(o,t),512&l[0]&&n.C.push([t,o]),o}))}}return t},x=(t,n={})=>{var e;const l=[],o=n.exclude||[],r=B.customElements,i=D.head,c=i.querySelector("meta[charset]"),u=D.createElement("style"),f=[];let d,h=!0;Object.assign(G,n),G.T=new URL(n.resourcesUrl||"./",D.baseURI).href,t.map((t=>{t[1].map((n=>{const e={i:n[0],$:n[1],P:n[2],A:n[3]};e.P=n[2],e.A=n[3],e.C=[];const s=e.$,i=class extends HTMLElement{constructor(t){super(t),W(t=this,e),1&e.i&&t.attachShadow({mode:"open"})}connectedCallback(){d&&(clearTimeout(d),d=null),h?f.push(this):G.jmp((()=>(t=>{if(0==(1&G.i)){const n=R(t),e=n.M,l=()=>{};if(1&n.i)E(t,n,e.A);else{n.i|=1;{let e=t;for(;e=e.parentNode||e.host;)if(e["s-p"]){w(n,n.p=e);break}}e.P&&Object.entries(e.P).map((([n,[e]])=>{if(31&e&&t.hasOwnProperty(n)){const e=t[n];delete t[n],t[n]=e}})),(async(t,n,e,l,o)=>{if(0==(32&n.i)){{if(n.i|=32,(o=_(e)).then){const t=()=>{};o=await o,t()}o.isProxied||(P(o,e,2),o.isProxied=!0);const t=()=>{};n.i|=8;try{new o(n)}catch(t){F(t)}n.i&=-9,t()}if(o.style){let t=o.style;const n=a(e);if(!z.has(n)){const l=()=>{};((t,n,e)=>{let l=z.get(t);J&&e?(l=l||new CSSStyleSheet,"string"==typeof l?l=n:l.replaceSync(n)):l=n,z.set(t,l)})(n,t,!!(1&e.i)),l()}}}const s=n.p,r=()=>b(n,!0);s&&s["s-rc"]?s["s-rc"].push(r):r()})(0,n,e)}l()}})(this)))}disconnectedCallback(){G.jmp((()=>(()=>{if(0==(1&G.i)){const t=R(this);t.H&&(t.H.map((t=>t())),t.H=void 0)}})()))}componentOnReady(){return R(this).L}};e.R=t[0],o.includes(s)||r.get(s)||(l.push(s),r.define(s,P(i,e,1)))}))}));{u.innerHTML=l+"{visibility:hidden}[hydrated]{visibility:inherit}",u.setAttribute("data-styles","");const t=null!==(e=G.j)&&void 0!==e?e:s(D);null!=t&&u.setAttribute("nonce",t),i.insertBefore(u,c?c.nextSibling:i.firstChild)}h=!1,f.length?f.map((t=>t.connectedCallback())):G.jmp((()=>d=setTimeout(j,30)))},E=(t,n,e)=>{e&&e.map((([e,l,o])=>{const s=T(t,e),r=N(n,o),i=A(e);G.ael(s,l,r,i),(n.H=n.H||[]).push((()=>G.rel(s,l,r,i)))}))},N=(t,n)=>e=>{try{256&t.i?t.v[n](e):(t.S=t.S||[]).push([n,e])}catch(t){F(t)}},T=(t,n)=>16&n?D.body:t,A=t=>0!=(2&t),H=t=>G.j=t,L=new WeakMap,R=t=>L.get(t),U=(t,n)=>L.set(n.v=t,n),W=(t,n)=>{const e={i:0,g:t,M:n,N:new Map};return e.L=new Promise((t=>e.O=t)),t["s-p"]=[],t["s-rc"]=[],E(t,e,n.A),L.set(t,e)},q=(t,n)=>n in t,F=(t,n)=>(0,console.error)(t,n),V=new Map,_=t=>{const n=t.$.replace(/-/g,"_"),e=t.R,l=V.get(e);return l?l[n]:import(`./${e}.entry.js`).then((t=>(V.set(e,t),t[n])),F)
1
+ let t,n,e=!1;const l={},o=t=>"object"==(t=typeof t)||"function"===t;function s(t){var n,e,l;return null!==(l=null===(e=null===(n=t.head)||void 0===n?void 0:n.querySelector('meta[name="csp-nonce"]'))||void 0===e?void 0:e.getAttribute("content"))&&void 0!==l?l:void 0}const r=(t,n,...e)=>{let l=null,s=!1,r=!1;const c=[],u=n=>{for(let e=0;e<n.length;e++)l=n[e],Array.isArray(l)?u(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof t&&!o(l))&&(l+=""),s&&r?c[c.length-1].t+=l:c.push(s?i(null,l):l),r=s)};u(e);const a=i(t,null);return a.l=n,c.length>0&&(a.o=c),a},i=(t,n)=>({i:0,u:t,t:n,h:null,o:null,l:null}),c={},u=new WeakMap,a=t=>"sc-"+t.$,f=(t,n,e,l,s,r)=>{if(e!==l){let i=q(t,n);n.toLowerCase();{const c=o(l);if((i||c&&null!==l)&&!s)try{if(t.tagName.includes("-"))t[n]=l;else{const o=null==l?"":l;"list"===n?i=!1:null!=e&&t[n]==o||(t[n]=o)}}catch(t){}null==l||!1===l?!1===l&&""!==t.getAttribute(n)||t.removeAttribute(n):(!i||4&r||s)&&!c&&t.setAttribute(n,l=!0===l?"":l)}}},d=(t,n,e,o)=>{const s=11===n.h.nodeType&&n.h.host?n.h.host:n.h,r=t&&t.l||l,i=n.l||l;for(o in r)o in i||f(s,o,r[o],void 0,e,n.i);for(o in i)f(s,o,r[o],i[o],e,n.i)},h=(n,e,l)=>{const o=e.o[l];let s,r,i=0;if(s=o.h=D.createElement(o.u),d(null,o,!1),null!=t&&s["s-si"]!==t&&s.classList.add(s["s-si"]=t),o.o)for(i=0;i<o.o.length;++i)r=h(n,o,i),r&&s.appendChild(r);return s},$=(t,e,l,o,s,r)=>{let i,c=t;for(c.shadowRoot&&c.tagName===n&&(c=c.shadowRoot);s<=r;++s)o[s]&&(i=h(null,l,s),i&&(o[s].h=i,c.insertBefore(i,e)))},y=(t,n,e,l)=>{for(;n<=e;++n)(l=t[n])&&l.h.remove()},m=(t,n)=>t.u===n.u,p=(t,n)=>{const e=n.h=t.h,l=t.o,o=n.o;"slot"===n.u||d(t,n,!1),null!==l&&null!==o?((t,n,e,l)=>{let o,s=0,r=0,i=n.length-1,c=n[0],u=n[i],a=l.length-1,f=l[0],d=l[a];for(;s<=i&&r<=a;)null==c?c=n[++s]:null==u?u=n[--i]:null==f?f=l[++r]:null==d?d=l[--a]:m(c,f)?(p(c,f),c=n[++s],f=l[++r]):m(u,d)?(p(u,d),u=n[--i],d=l[--a]):m(c,d)?(p(c,d),t.insertBefore(c.h,u.h.nextSibling),c=n[++s],d=l[--a]):m(u,f)?(p(u,f),t.insertBefore(u.h,c.h),u=n[--i],f=l[++r]):(o=h(n&&n[r],e,r),f=l[++r],o&&c.h.parentNode.insertBefore(o,c.h));s>i?$(t,null==l[a+1]?null:l[a+1].h,e,l,r,a):r>a&&y(n,s,i)})(e,l,n,o):null!==o?$(e,null,n,o,0,o.length-1):null!==l&&y(l,0,l.length-1)},w=(t,n)=>{n&&!t.m&&n["s-p"]&&n["s-p"].push(new Promise((n=>t.m=n)))},b=(t,n)=>{if(t.i|=16,!(4&t.i))return w(t,t.p),nt((()=>v(t,n)));t.i|=512},v=(t,n)=>{const e=t.v;return n&&(t.i|=256,t.S&&(t.S.map((([t,n])=>k(e,t,n))),t.S=null)),C(void 0,(()=>S(t,e,n)))},S=async(t,n,e)=>{const l=t.g,o=l["s-rc"];e&&(t=>{const n=t.M,e=t.g,l=n.i,o=((t,n)=>{var e;let l=a(n);const o=z.get(l);if(t=11===t.nodeType?t:D,o)if("string"==typeof o){let n,r=u.get(t=t.head||t);if(r||u.set(t,r=new Set),!r.has(l)){{n=D.createElement("style"),n.innerHTML=o;const l=null!==(e=G.j)&&void 0!==e?e:s(D);null!=l&&n.setAttribute("nonce",l),t.insertBefore(n,t.querySelector("link"))}r&&r.add(l)}}else t.adoptedStyleSheets.includes(o)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,o]);return l})(e.shadowRoot?e.shadowRoot:e.getRootNode(),n);10&l&&(e["s-sc"]=o,e.classList.add(o+"-h"))})(t);g(t,n),o&&(o.map((t=>t())),l["s-rc"]=void 0);{const n=l["s-p"],e=()=>M(t);0===n.length?e():(Promise.all(n).then(e),t.i|=4,n.length=0)}},g=(e,l)=>{try{l=l.render(),e.i&=-17,e.i|=2,((e,l)=>{const o=e.g,s=e.M,u=e.k||i(null,null),a=(t=>t&&t.u===c)(l)?l:r(null,null,l);n=o.tagName,s.C&&(a.l=a.l||{},s.C.map((([t,n])=>a.l[n]=o[t]))),a.u=null,a.i|=4,e.k=a,a.h=u.h=o.shadowRoot||o,t=o["s-sc"],p(u,a)})(e,l)}catch(t){F(t,e.g)}return null},M=t=>{const n=t.g,e=t.p;64&t.i||(t.i|=64,O(n),t.O(n),e||j()),t.m&&(t.m(),t.m=void 0),512&t.i&&tt((()=>b(t,!1))),t.i&=-517},j=()=>{O(D.documentElement),tt((()=>(t=>{const n=G.ce("appload",{detail:{namespace:"mds-table-row"}});return t.dispatchEvent(n),n})(B)))},k=(t,n,e)=>{if(t&&t[n])try{return t[n](e)}catch(t){F(t)}},C=(t,n)=>t&&t.then?t.then(n):n(),O=t=>t.setAttribute("hydrated",""),P=(t,n,e)=>{if(n.P){const l=Object.entries(n.P),s=t.prototype;if(l.map((([t,[l]])=>{(31&l||2&e&&32&l)&&Object.defineProperty(s,t,{get(){return((t,n)=>R(this).N.get(n))(0,t)},set(e){((t,n,e,l)=>{const s=R(t),r=s.N.get(n),i=s.i,c=s.v;e=((t,n)=>null==t||o(t)?t:4&n?"false"!==t&&(""===t||!!t):t)(e,l.P[n][0]),8&i&&void 0!==r||e===r||Number.isNaN(r)&&Number.isNaN(e)||(s.N.set(n,e),c&&2==(18&i)&&b(s,!1))})(this,t,e,n)},configurable:!0,enumerable:!0})})),1&e){const e=new Map;s.attributeChangedCallback=function(t,n,l){G.jmp((()=>{const n=e.get(t);if(this.hasOwnProperty(n))l=this[n],delete this[n];else if(s.hasOwnProperty(n)&&"number"==typeof this[n]&&this[n]==l)return;this[n]=(null!==l||"boolean"!=typeof this[n])&&l}))},t.observedAttributes=l.filter((([t,n])=>15&n[0])).map((([t,l])=>{const o=l[1]||t;return e.set(o,t),512&l[0]&&n.C.push([t,o]),o}))}}return t},x=(t,n={})=>{var e;const l=[],o=n.exclude||[],r=B.customElements,i=D.head,c=i.querySelector("meta[charset]"),u=D.createElement("style"),f=[];let d,h=!0;Object.assign(G,n),G.T=new URL(n.resourcesUrl||"./",D.baseURI).href,t.map((t=>{t[1].map((n=>{const e={i:n[0],$:n[1],P:n[2],A:n[3]};e.P=n[2],e.A=n[3],e.C=[];const s=e.$,i=class extends HTMLElement{constructor(t){super(t),W(t=this,e),1&e.i&&t.attachShadow({mode:"open"})}connectedCallback(){d&&(clearTimeout(d),d=null),h?f.push(this):G.jmp((()=>(t=>{if(0==(1&G.i)){const n=R(t),e=n.M,l=()=>{};if(1&n.i)E(t,n,e.A);else{n.i|=1;{let e=t;for(;e=e.parentNode||e.host;)if(e["s-p"]){w(n,n.p=e);break}}e.P&&Object.entries(e.P).map((([n,[e]])=>{if(31&e&&t.hasOwnProperty(n)){const e=t[n];delete t[n],t[n]=e}})),(async(t,n,e,l,o)=>{if(0==(32&n.i)){{if(n.i|=32,(o=_(e)).then){const t=()=>{};o=await o,t()}o.isProxied||(P(o,e,2),o.isProxied=!0);const t=()=>{};n.i|=8;try{new o(n)}catch(t){F(t)}n.i&=-9,t()}if(o.style){let t=o.style;const n=a(e);if(!z.has(n)){const l=()=>{};((t,n,e)=>{let l=z.get(t);J&&e?(l=l||new CSSStyleSheet,"string"==typeof l?l=n:l.replaceSync(n)):l=n,z.set(t,l)})(n,t,!!(1&e.i)),l()}}}const s=n.p,r=()=>b(n,!0);s&&s["s-rc"]?s["s-rc"].push(r):r()})(0,n,e)}l()}})(this)))}disconnectedCallback(){G.jmp((()=>(()=>{if(0==(1&G.i)){const t=R(this);t.H&&(t.H.map((t=>t())),t.H=void 0)}})()))}componentOnReady(){return R(this).L}};e.R=t[0],o.includes(s)||r.get(s)||(l.push(s),r.define(s,P(i,e,1)))}))}));{u.innerHTML=l+"{visibility:hidden}[hydrated]{visibility:inherit}",u.setAttribute("data-styles","");const t=null!==(e=G.j)&&void 0!==e?e:s(D);null!=t&&u.setAttribute("nonce",t),i.insertBefore(u,c?c.nextSibling:i.firstChild)}h=!1,f.length?f.map((t=>t.connectedCallback())):G.jmp((()=>d=setTimeout(j,30)))},E=(t,n,e)=>{e&&e.map((([e,l,o])=>{const s=T(t,e),r=N(n,o),i=A(e);G.ael(s,l,r,i),(n.H=n.H||[]).push((()=>G.rel(s,l,r,i)))}))},N=(t,n)=>e=>{try{256&t.i?t.v[n](e):(t.S=t.S||[]).push([n,e])}catch(t){F(t)}},T=(t,n)=>4&n?D:t,A=t=>0!=(2&t),H=t=>G.j=t,L=new WeakMap,R=t=>L.get(t),U=(t,n)=>L.set(n.v=t,n),W=(t,n)=>{const e={i:0,g:t,M:n,N:new Map};return e.L=new Promise((t=>e.O=t)),t["s-p"]=[],t["s-rc"]=[],E(t,e,n.A),L.set(t,e)},q=(t,n)=>n in t,F=(t,n)=>(0,console.error)(t,n),V=new Map,_=t=>{const n=t.$.replace(/-/g,"_"),e=t.R,l=V.get(e);return l?l[n]:import(`./${e}.entry.js`).then((t=>(V.set(e,t),t[n])),F)
2
2
  /*!__STENCIL_STATIC_IMPORT_SWITCH__*/},z=new Map,B="undefined"!=typeof window?window:{},D=B.document||{head:{}},G={i:0,T:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,n,e,l)=>t.addEventListener(n,e,l),rel:(t,n,e,l)=>t.removeEventListener(n,e,l),ce:(t,n)=>new CustomEvent(t,n)},I=t=>Promise.resolve(t),J=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),K=[],Q=[],X=(t,n)=>l=>{t.push(l),e||(e=!0,n&&4&G.i?tt(Z):G.raf(Z))},Y=t=>{for(let n=0;n<t.length;n++)try{t[n](performance.now())}catch(t){F(t)}t.length=0},Z=()=>{Y(K),Y(Q),(e=K.length>0)&&G.raf(Z)},tt=t=>I().then(t),nt=X(Q,!0);export{c as H,x as b,r as h,I as p,U as r,H as s}
@@ -1 +1 @@
1
- System.register(["./p-b0f4e920.system.js"],(function(t){"use strict";var r,o,e;return{setters:[function(t){r=t.r;o=t.h;e=t.H}],execute:function(){var a=".fixed{position:fixed}.absolute{position:absolute}.border{border-width:1px}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host{display:table-row}:host([interactive]:hover){--mds-table-cell-background:var(--mds-table-cell-background-hover, rgb(var(--tone-neutral)))}";var s=t("mds_table_row",function(){function t(t){r(this,t);this.interactive=undefined}t.prototype.tableInteractiveHandler=function(t){this.interactive=t.detail};t.prototype.render=function(){return o(e,{role:"row"},o("slot",null))};return t}());s.style=a}}}));
1
+ System.register(["./p-2647d8bd.system.js"],(function(t){"use strict";var r,o,e;return{setters:[function(t){r=t.r;o=t.h;e=t.H}],execute:function(){var a=".fixed{position:fixed}.absolute{position:absolute}.border{border-width:1px}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host{display:table-row}:host([interactive]:hover){--mds-table-cell-background:var(--mds-table-cell-background-hover, rgb(var(--tone-neutral)))}";var s=t("mds_table_row",function(){function t(t){r(this,t);this.interactive=undefined}t.prototype.tableInteractiveHandler=function(t){this.interactive=t.detail};t.prototype.render=function(){return o(e,{role:"row"},o("slot",null))};return t}());s.style=a}}}));
@@ -0,0 +1 @@
1
+ System.register(["./p-2647d8bd.system.js"],(function(e,t){"use strict";var r,n;return{setters:[function(t){r=t.p;n=t.b;e("setNonce",t.s)}],execute:function(){var e=function(){var e=t.meta.url;var n={};if(e!==""){n.resourcesUrl=new URL(".",e).href}return r(n)};e().then((function(e){return n([["p-7d3f05d4.system",[[1,"mds-table-row",{interactive:[1540]},[[4,"mdsTableInteractiveChange","tableInteractiveHandler"]]]]]],e)}))}}}));
package/dist/stats.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "timestamp": "2023-01-20T18:28:46",
2
+ "timestamp": "2023-03-09T10:59:52",
3
3
  "compiler": {
4
4
  "name": "node",
5
5
  "version": "18.3.0"
@@ -9,13 +9,14 @@
9
9
  "fsNamespace": "mds-table-row",
10
10
  "components": 1,
11
11
  "entries": 1,
12
- "bundles": 63,
12
+ "bundles": 64,
13
13
  "outputs": [
14
14
  {
15
15
  "name": "dist-collection",
16
- "files": 22,
16
+ "files": 23,
17
17
  "generatedFiles": [
18
18
  "./dist/collection/common/aria.js",
19
+ "./dist/collection/common/keyboard-manager.js",
19
20
  "./dist/collection/components/mds-table-row/mds-table-row.js",
20
21
  "./dist/collection/dictionary/autocomplete.js",
21
22
  "./dist/collection/dictionary/button.js",
@@ -28,15 +29,15 @@
28
29
  "./dist/collection/dictionary/variant.js",
29
30
  "./dist/collection/fixtures/cities.js",
30
31
  "./dist/collection/interface/input-value.js",
31
- "./dist/collection/types/autocomplete.js",
32
- "./dist/collection/types/button.js",
33
- "./dist/collection/types/floating-ui.js",
34
- "./dist/collection/types/form-rel.js",
35
- "./dist/collection/types/input-text-type.js",
36
- "./dist/collection/types/input-value-type.js",
37
- "./dist/collection/types/loading.js",
38
- "./dist/collection/types/typography.js",
39
- "./dist/collection/types/variant.js"
32
+ "./dist/collection/type/autocomplete.js",
33
+ "./dist/collection/type/button.js",
34
+ "./dist/collection/type/floating-ui.js",
35
+ "./dist/collection/type/form-rel.js",
36
+ "./dist/collection/type/input-text-type.js",
37
+ "./dist/collection/type/input-value-type.js",
38
+ "./dist/collection/type/loading.js",
39
+ "./dist/collection/type/typography.js",
40
+ "./dist/collection/type/variant.js"
40
41
  ]
41
42
  },
42
43
  {
@@ -53,17 +54,17 @@
53
54
  "name": "dist-lazy",
54
55
  "files": 35,
55
56
  "generatedFiles": [
56
- "./dist/cjs/index-f0f000bc.js",
57
+ "./dist/cjs/index-1066e7b9.js",
57
58
  "./dist/cjs/index.cjs.js",
58
59
  "./dist/cjs/loader.cjs.js",
59
60
  "./dist/cjs/mds-table-row.cjs.entry.js",
60
61
  "./dist/cjs/mds-table-row.cjs.js",
61
- "./dist/esm-es5/index-fa7f6909.js",
62
+ "./dist/esm-es5/index-be386e76.js",
62
63
  "./dist/esm-es5/index.js",
63
64
  "./dist/esm-es5/loader.js",
64
65
  "./dist/esm-es5/mds-table-row.entry.js",
65
66
  "./dist/esm-es5/mds-table-row.js",
66
- "./dist/esm/index-fa7f6909.js",
67
+ "./dist/esm/index-be386e76.js",
67
68
  "./dist/esm/index.js",
68
69
  "./dist/esm/loader.js",
69
70
  "./dist/esm/mds-table-row.entry.js",
@@ -73,21 +74,21 @@
73
74
  "./dist/mds-table-row/index.esm.js",
74
75
  "./dist/mds-table-row/mds-table-row.esm.js",
75
76
  "./dist/mds-table-row/mds-table-row.js",
76
- "./dist/mds-table-row/p-4c63953c.entry.js",
77
+ "./dist/mds-table-row/p-2647d8bd.system.js",
78
+ "./dist/mds-table-row/p-30a6116a.entry.js",
79
+ "./dist/mds-table-row/p-426bd1f3.js",
77
80
  "./dist/mds-table-row/p-50ea2036.system.js",
78
- "./dist/mds-table-row/p-b0f4e920.system.js",
79
- "./dist/mds-table-row/p-e2b31e90.system.entry.js",
80
- "./dist/mds-table-row/p-e6313d30.system.js",
81
- "./dist/mds-table-row/p-f26de3ab.js",
81
+ "./dist/mds-table-row/p-7d3f05d4.system.entry.js",
82
+ "./dist/mds-table-row/p-fb327bab.system.js",
82
83
  "./www/build/index.esm.js",
83
84
  "./www/build/mds-table-row.esm.js",
84
85
  "./www/build/mds-table-row.js",
85
- "./www/build/p-4c63953c.entry.js",
86
+ "./www/build/p-2647d8bd.system.js",
87
+ "./www/build/p-30a6116a.entry.js",
88
+ "./www/build/p-426bd1f3.js",
86
89
  "./www/build/p-50ea2036.system.js",
87
- "./www/build/p-b0f4e920.system.js",
88
- "./www/build/p-e2b31e90.system.entry.js",
89
- "./www/build/p-e6313d30.system.js",
90
- "./www/build/p-f26de3ab.js"
90
+ "./www/build/p-7d3f05d4.system.entry.js",
91
+ "./www/build/p-fb327bab.system.js"
91
92
  ]
92
93
  },
93
94
  {
@@ -120,10 +121,10 @@
120
121
  "components": [
121
122
  "mds-table-row"
122
123
  ],
123
- "bundleId": "p-4c63953c",
124
- "fileName": "p-4c63953c.entry.js",
124
+ "bundleId": "p-30a6116a",
125
+ "fileName": "p-30a6116a.entry.js",
125
126
  "imports": [
126
- "p-f26de3ab.js"
127
+ "p-426bd1f3.js"
127
128
  ],
128
129
  "originalByteSize": 1067
129
130
  }
@@ -137,7 +138,7 @@
137
138
  "bundleId": "mds-table-row",
138
139
  "fileName": "mds-table-row.entry.js",
139
140
  "imports": [
140
- "index-fa7f6909.js"
141
+ "index-be386e76.js"
141
142
  ],
142
143
  "originalByteSize": 1071
143
144
  }
@@ -151,7 +152,7 @@
151
152
  "bundleId": "mds-table-row",
152
153
  "fileName": "mds-table-row.entry.js",
153
154
  "imports": [
154
- "index-fa7f6909.js"
155
+ "index-be386e76.js"
155
156
  ],
156
157
  "originalByteSize": 1071
157
158
  }
@@ -162,10 +163,10 @@
162
163
  "components": [
163
164
  "mds-table-row"
164
165
  ],
165
- "bundleId": "p-e2b31e90.system",
166
- "fileName": "p-e2b31e90.system.entry.js",
166
+ "bundleId": "p-7d3f05d4.system",
167
+ "fileName": "p-7d3f05d4.system.entry.js",
167
168
  "imports": [
168
- "p-b0f4e920.system.js"
169
+ "p-2647d8bd.system.js"
169
170
  ],
170
171
  "originalByteSize": 1352
171
172
  }
@@ -179,7 +180,7 @@
179
180
  "bundleId": "mds-table-row.cjs",
180
181
  "fileName": "mds-table-row.cjs.entry.js",
181
182
  "imports": [
182
- "index-f0f000bc.js"
183
+ "index-1066e7b9.js"
183
184
  ],
184
185
  "originalByteSize": 1141
185
186
  }
@@ -209,11 +210,11 @@
209
210
  "legacyContext": [],
210
211
  "listeners": [
211
212
  {
212
- "name": "tableInteractive",
213
+ "name": "mdsTableInteractiveChange",
213
214
  "method": "tableInteractiveHandler",
214
215
  "capture": false,
215
216
  "passive": false,
216
- "target": "body"
217
+ "target": "document"
217
218
  }
218
219
  ],
219
220
  "methods": [],
@@ -280,11 +281,11 @@
280
281
  "methods": [],
281
282
  "listeners": [
282
283
  {
283
- "name": "tableInteractive",
284
+ "name": "mdsTableInteractiveChange",
284
285
  "method": "tableInteractiveHandler",
285
286
  "capture": false,
286
287
  "passive": false,
287
- "target": "body"
288
+ "target": "document"
288
289
  }
289
290
  ],
290
291
  "events": [],
@@ -333,8 +334,8 @@
333
334
  "hasListener": true,
334
335
  "hasListenerTarget": true,
335
336
  "hasListenerTargetWindow": false,
336
- "hasListenerTargetDocument": false,
337
- "hasListenerTargetBody": true,
337
+ "hasListenerTargetDocument": true,
338
+ "hasListenerTargetBody": false,
338
339
  "hasListenerTargetParent": false,
339
340
  "hasMember": true,
340
341
  "hasMethod": false,
@@ -382,18 +383,20 @@
382
383
  ],
383
384
  "componentGraph": {
384
385
  "sc-mds-table-row": [
385
- "p-f26de3ab.js"
386
+ "p-426bd1f3.js"
386
387
  ]
387
388
  },
388
389
  "sourceGraph": {
389
390
  "./src/common/aria.ts": [],
391
+ "./src/common/keyboard-manager.ts": [],
390
392
  "./src/components/mds-table-row/mds-table-row.tsx": [],
391
393
  "./src/dictionary/autocomplete.ts": [],
392
394
  "./src/dictionary/button.ts": [],
393
395
  "./src/dictionary/color.ts": [],
394
396
  "./src/dictionary/floating-ui.ts": [],
395
397
  "./src/dictionary/icon.ts": [
396
- "./src/fixtures/icons.json"
398
+ "./src/fixtures/icons.json",
399
+ "./src/fixtures/iconsauce.json"
397
400
  ],
398
401
  "./src/dictionary/input-text-type.ts": [],
399
402
  "./src/dictionary/loading.ts": [],
@@ -401,15 +404,15 @@
401
404
  "./src/dictionary/variant.ts": [],
402
405
  "./src/fixtures/cities.ts": [],
403
406
  "./src/interface/input-value.ts": [],
404
- "./src/types/autocomplete.ts": [],
405
- "./src/types/button.ts": [],
406
- "./src/types/floating-ui.ts": [],
407
- "./src/types/form-rel.ts": [],
408
- "./src/types/input-text-type.ts": [],
409
- "./src/types/input-value-type.ts": [],
410
- "./src/types/loading.ts": [],
411
- "./src/types/typography.ts": [],
412
- "./src/types/variant.ts": []
407
+ "./src/type/autocomplete.ts": [],
408
+ "./src/type/button.ts": [],
409
+ "./src/type/floating-ui.ts": [],
410
+ "./src/type/form-rel.ts": [],
411
+ "./src/type/input-text-type.ts": [],
412
+ "./src/type/input-value-type.ts": [],
413
+ "./src/type/loading.ts": [],
414
+ "./src/type/typography.ts": [],
415
+ "./src/type/variant.ts": []
413
416
  },
414
417
  "collections": []
415
418
  }
@@ -0,0 +1,11 @@
1
+ export declare class KeyboardManager {
2
+ private escapeCallback;
3
+ private elements;
4
+ private handleClickBehaviorDispatchEvent;
5
+ private handleEscapeBehaviorDispatchEvent;
6
+ addElement: (el: HTMLElement, name?: string) => void;
7
+ attachClickBehavior: (name?: string) => void;
8
+ detachClickBehavior: (name?: string) => void;
9
+ attachEscapeBehavior: (callBack: () => void) => void;
10
+ detachEscapeBehavior: () => void;
11
+ }
@@ -1,2 +1,3 @@
1
1
  declare const iconsDictionary: string[];
2
- export { iconsDictionary, };
2
+ declare const mggIconsDictionary: string[];
3
+ export { iconsDictionary, mggIconsDictionary, };
@@ -1,9 +1,10 @@
1
1
  declare const typographyDictionary: string[];
2
2
  declare const typographyVariationsDictionary: string[];
3
+ declare const typographyReadingVariationsDictionary: string[];
3
4
  declare const typographyMonoDictionary: string[];
4
5
  declare const typographyTitleDictionary: string[];
5
6
  declare const typographyInfoDictionary: string[];
6
7
  declare const typographyReadDictionary: string[];
7
8
  declare const typographySmallerDictionary: string[];
8
9
  declare const typographyTooltipDictionary: string[];
9
- export { typographyDictionary, typographyVariationsDictionary, typographyMonoDictionary, typographyTitleDictionary, typographyInfoDictionary, typographyReadDictionary, typographySmallerDictionary, typographyTooltipDictionary, };
10
+ export { typographyDictionary, typographyInfoDictionary, typographyReadingVariationsDictionary, typographyMonoDictionary, typographyReadDictionary, typographySmallerDictionary, typographyTitleDictionary, typographyTooltipDictionary, typographyVariationsDictionary, };
@@ -485,6 +485,14 @@ export interface FunctionalUtilities {
485
485
  export interface FunctionalComponent<T = {}> {
486
486
  (props: T, children: VNode[], utils: FunctionalUtilities): VNode | VNode[];
487
487
  }
488
+ /**
489
+ * A Child VDOM node
490
+ *
491
+ * This has most of the same properties as {@link VNode} but friendlier names
492
+ * (i.e. `vtag` instead of `$tag$`, `vchildren` instead of `$children$`) in
493
+ * order to provide a friendlier public interface for users of the
494
+ * {@link FunctionalUtilities}).
495
+ */
488
496
  export interface ChildNode {
489
497
  vtag?: string | number | Function;
490
498
  vkey?: string | number;
@@ -531,6 +539,9 @@ export declare function h(sel: any, children: Array<VNode | undefined | null>):
531
539
  export declare function h(sel: any, data: VNodeData | null, text: string): VNode;
532
540
  export declare function h(sel: any, data: VNodeData | null, children: Array<VNode | undefined | null>): VNode;
533
541
  export declare function h(sel: any, data: VNodeData | null, children: VNode): VNode;
542
+ /**
543
+ * A virtual DOM node
544
+ */
534
545
  export interface VNode {
535
546
  $flags$: number;
536
547
  $tag$: string | number | Function;
@@ -1,5 +1,6 @@
1
1
  export type TypographyType = 'action' | 'caption' | 'snippet' | 'detail' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'hack' | 'label' | 'option' | 'paragraph' | 'tip';
2
2
  export type TypographyVariants = 'title' | 'info' | 'read' | 'code';
3
+ export type TypographyReadingVariants = 'info' | 'read';
3
4
  export type TypographyTitleType = 'action' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
4
5
  export type TypographyInfoType = 'caption' | 'detail' | 'label' | 'option' | 'paragraph' | 'tip';
5
6
  export type TypographyReadType = 'caption' | 'detail' | 'paragraph';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maggioli-design-system/mds-table-row",
3
- "version": "3.1.0",
3
+ "version": "4.0.0",
4
4
  "description": "mds-table-row is a web-component from Maggioli Design System Magma, built with StencilJS, TypeScript, Storybook. It's based on the web-component standard and it's designed to be agnostic from the JavaScirpt framework you are using.",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",
@@ -22,9 +22,9 @@
22
22
  "prepublishOnly": "npm run build"
23
23
  },
24
24
  "dependencies": {
25
- "@maggioli-design-system/mds-table-cell": "^3.1.0",
26
- "@maggioli-design-system/styles": "^10.0.1",
27
- "@stencil/core": "^2.22.1"
25
+ "@maggioli-design-system/mds-table-cell": "^4.0.0",
26
+ "@maggioli-design-system/styles": "^11.2.1",
27
+ "@stencil/core": "^2.22.2"
28
28
  },
29
29
  "license": "MIT",
30
30
  "author": {
@@ -0,0 +1,46 @@
1
+ export class KeyboardManager {
2
+ private escapeCallback: () => void
3
+ private elements = []
4
+
5
+ private handleClickBehaviorDispatchEvent = (event: KeyboardEvent): void => {
6
+ if (event.code === 'Space' || event.code === 'Enter' || event.code === 'NumpadEnter') {
7
+ (event.target as HTMLElement).click()
8
+ }
9
+ }
10
+
11
+ private handleEscapeBehaviorDispatchEvent = (event: KeyboardEvent): void => {
12
+ if (event.code === 'Escape' && this.escapeCallback) {
13
+ this.escapeCallback()
14
+ }
15
+ }
16
+
17
+ addElement = (el: HTMLElement, name = 'element'): void => {
18
+ this.elements[name] = el
19
+ }
20
+
21
+ attachClickBehavior = (name = 'element'): void => {
22
+ if (this.elements[name]) {
23
+ this.elements[name].addEventListener('keydown', this.handleClickBehaviorDispatchEvent)
24
+ }
25
+ }
26
+
27
+ detachClickBehavior = (name = 'element'): void => {
28
+ if (this.elements[name]) {
29
+ this.elements[name].removeEventListener('keydown', this.handleClickBehaviorDispatchEvent)
30
+ }
31
+ }
32
+
33
+ attachEscapeBehavior = (callBack: () => void): void => {
34
+ this.escapeCallback = callBack
35
+ if (typeof window !== undefined) {
36
+ window.addEventListener('keydown', this.handleEscapeBehaviorDispatchEvent.bind(this))
37
+ }
38
+ }
39
+
40
+ detachEscapeBehavior = (): void => {
41
+ this.escapeCallback = null
42
+ if (typeof window !== undefined) {
43
+ window.removeEventListener('keydown', this.handleEscapeBehaviorDispatchEvent.bind(this))
44
+ }
45
+ }
46
+ }
@@ -8,7 +8,7 @@ export class MdsTableRow {
8
8
 
9
9
  @Prop({ mutable: true, reflect: true }) interactive: boolean
10
10
 
11
- @Listen('tableInteractive', { target: 'body' })
11
+ @Listen('mdsTableInteractiveChange', { target: 'document' })
12
12
  tableInteractiveHandler (event: CustomEvent<boolean>): void {
13
13
  this.interactive = event.detail
14
14
  }
@@ -1,5 +1,9 @@
1
1
  import jsonIconsDictionary from '../fixtures/icons.json'
2
+ import jsonMggIconsDictionary from '../fixtures/iconsauce.json'
2
3
  const iconsDictionary = jsonIconsDictionary
4
+ const mggIconsDictionary = jsonMggIconsDictionary
5
+
3
6
  export {
4
7
  iconsDictionary,
8
+ mggIconsDictionary,
5
9
  }
@@ -23,6 +23,11 @@ const typographyVariationsDictionary = [
23
23
  'code',
24
24
  ]
25
25
 
26
+ const typographyReadingVariationsDictionary = [
27
+ 'info',
28
+ 'read',
29
+ ]
30
+
26
31
  const typographyMonoDictionary = [
27
32
  'snippet',
28
33
  'hack',
@@ -66,11 +71,12 @@ const typographyTooltipDictionary = [
66
71
 
67
72
  export {
68
73
  typographyDictionary,
69
- typographyVariationsDictionary,
70
- typographyMonoDictionary,
71
- typographyTitleDictionary,
72
74
  typographyInfoDictionary,
75
+ typographyReadingVariationsDictionary,
76
+ typographyMonoDictionary,
73
77
  typographyReadDictionary,
74
78
  typographySmallerDictionary,
79
+ typographyTitleDictionary,
75
80
  typographyTooltipDictionary,
81
+ typographyVariationsDictionary,
76
82
  }