@maggioli-design-system/mds-table-row 4.7.1 → 4.8.1
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.
- package/dist/cjs/{index-6df370d5.js → index-19c36c53.js} +56 -4
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/mds-table-row.cjs.entry.js +22 -3
- package/dist/cjs/mds-table-row.cjs.js +2 -2
- package/dist/collection/common/aria.js +17 -1
- package/dist/collection/common/device.js +6 -0
- package/dist/collection/common/keyboard-manager.js +2 -2
- package/dist/collection/components/mds-table-row/mds-table-row.css +45 -2
- package/dist/collection/components/mds-table-row/mds-table-row.js +39 -1
- package/dist/collection/dictionary/file-extensions.js +114 -56
- package/dist/collection/dictionary/text.js +60 -1
- package/dist/components/mds-table-row.js +23 -3
- package/dist/documentation.json +22 -1
- package/dist/esm/{index-6aef85b9.js → index-a948f479.js} +56 -5
- package/dist/esm/loader.js +3 -3
- package/dist/esm/mds-table-row.entry.js +22 -3
- package/dist/esm/mds-table-row.js +3 -3
- package/dist/esm-es5/index-a948f479.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mds-table-row.entry.js +1 -1
- package/dist/esm-es5/mds-table-row.js +1 -1
- package/dist/mds-table-row/mds-table-row.esm.js +1 -1
- package/dist/mds-table-row/mds-table-row.js +1 -1
- package/dist/mds-table-row/p-5ab8c209.system.entry.js +1 -0
- package/dist/mds-table-row/p-98955251.system.js +1 -0
- package/dist/mds-table-row/p-bfa177c6.system.js +2 -0
- package/dist/mds-table-row/p-d906e5c7.entry.js +1 -0
- package/dist/mds-table-row/p-faec61cc.js +2 -0
- package/dist/stats.json +92 -43
- package/dist/types/common/aria.d.ts +3 -1
- package/dist/types/common/device.d.ts +2 -0
- package/dist/types/components/mds-table-row/mds-table-row.d.ts +7 -0
- package/dist/types/components.d.ts +2 -0
- package/dist/types/dictionary/text.d.ts +3 -1
- package/dist/types/type/text.d.ts +2 -0
- package/documentation.json +38 -6
- package/package.json +2 -2
- package/readme.md +17 -3
- package/src/common/aria.ts +22 -2
- package/src/common/device.ts +9 -0
- package/src/common/keyboard-manager.ts +2 -2
- package/src/components/mds-table-row/css/mds-table-row-actions.css +38 -0
- package/src/components/mds-table-row/css/mds-table-row-pref-animation.css +4 -2
- package/src/components/mds-table-row/mds-table-row.css +4 -0
- package/src/components/mds-table-row/mds-table-row.tsx +37 -1
- package/src/components/mds-table-row/readme.md +4 -3
- package/src/components.d.ts +2 -0
- package/src/dictionary/file-extensions.ts +115 -56
- package/src/dictionary/text.ts +64 -0
- package/src/fixtures/icons.json +8 -0
- package/src/fixtures/iconsauce.json +5 -0
- package/src/meta/file-format/locale.el.json +39 -0
- package/src/meta/file-format/locale.en.json +39 -0
- package/src/meta/file-format/locale.es.json +39 -0
- package/src/meta/file-format/locale.it.json +39 -0
- package/src/type/text.ts +59 -0
- package/www/build/mds-table-row.esm.js +1 -1
- package/www/build/mds-table-row.js +1 -1
- package/www/build/p-5ab8c209.system.entry.js +1 -0
- package/www/build/p-98955251.system.js +1 -0
- package/www/build/p-bfa177c6.system.js +2 -0
- package/www/build/p-d906e5c7.entry.js +1 -0
- package/www/build/p-faec61cc.js +2 -0
- package/dist/esm-es5/index-6aef85b9.js +0 -1
- package/dist/mds-table-row/p-6fd17720.js +0 -2
- package/dist/mds-table-row/p-81af01a5.entry.js +0 -1
- package/dist/mds-table-row/p-93ae789e.system.js +0 -2
- package/dist/mds-table-row/p-a349d802.system.js +0 -1
- package/dist/mds-table-row/p-fa157b43.system.entry.js +0 -1
- package/www/build/p-6fd17720.js +0 -2
- package/www/build/p-81af01a5.entry.js +0 -1
- package/www/build/p-93ae789e.system.js +0 -2
- package/www/build/p-a349d802.system.js +0 -1
- package/www/build/p-fa157b43.system.entry.js +0 -1
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var e=Object.defineProperty,t=new WeakMap,n=e=>t.get(e),l=(e,n)=>t.set(n.t=e,n),o=(e,t)=>(0,console.error)(e,t),s=new Map,i=new Map,r="slot-fb{display:contents}slot-fb[hidden]{display:none}",c="undefined"!=typeof window?window:{},u=c.document||{head:{}},a={l:0,o:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},f=e=>Promise.resolve(e),h=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),d=!1,p=[],m=[],y=(e,t)=>n=>{e.push(n),d||(d=!0,t&&4&a.l?v(w):a.raf(w))},$=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){o(e)}e.length=0},w=()=>{$(p),$(m),(d=p.length>0)&&a.raf(w)},v=e=>f().then(e),b=y(m,!0),S={},g=e=>"object"==(e=typeof e)||"function"===e;function j(e){var t,n,l;return null!=(l=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?l:void 0}((t,n)=>{for(var l in n)e(t,l,{get:n[l],enumerable:!0})})({},{err:()=>E,map:()=>O,ok:()=>k,unwrap:()=>M,unwrapErr:()=>P});var k=e=>({isOk:!0,isErr:!1,value:e}),E=e=>({isOk:!1,isErr:!0,value:e});function O(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>k(e))):k(n)}if(e.isErr)return E(e.value);throw"should never get here"}var C,M=e=>{if(e.isOk)return e.value;throw e.value},P=e=>{if(e.isErr)return e.value;throw e.value},x=(e,t,...n)=>{let l=null,o=null,s=!1,i=!1;const r=[],c=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?c(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!g(l))&&(l+=""),s&&i?r[r.length-1].i+=l:r.push(s?A(null,l):l),i=s)};if(c(n),t){t.key&&(o=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}const u=A(e,null);return u.u=t,r.length>0&&(u.h=r),u.p=o,u},A=(e,t)=>({l:0,m:e,i:t,$:null,h:null,u:null,p:null}),H={},D=e=>n(e).$hostElement$,L=new WeakMap,T=e=>"sc-"+e.v,N=(e,t,n,l,o,s)=>{if(n!==l){let i=((e,t)=>t in e)(e,t);if(t.toLowerCase(),"class"===t){const t=e.classList,o=U(n),s=U(l);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("style"===t){for(const t in n)l&&null!=l[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in l)n&&l[t]===n[t]||(t.includes("-")?e.style.setProperty(t,l[t]):e.style[t]=l[t])}else if("key"===t);else{const r=g(l);if((i||r&&null!==l)&&!o)try{if(e.tagName.includes("-"))e[t]=l;else{const o=null==l?"":l;"list"===t?i=!1:null!=n&&e[t]==o||("function"==typeof e.__lookupSetter__(t)?e[t]=o:e.setAttribute(t,o))}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(t)||e.removeAttribute(t):(!i||4&s||o)&&!r&&e.setAttribute(t,l=!0===l?"":l)}}},R=/\s/,U=e=>e?e.split(R):[],W=(e,t,n)=>{const l=11===t.$.nodeType&&t.$.host?t.$.host:t.$,o=e&&e.u||S,s=t.u||S;for(const e of F(Object.keys(o)))e in s||N(l,e,o[e],void 0,n,t.l);for(const e of F(Object.keys(s)))N(l,e,o[e],s[e],n,t.l)};function F(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var q=!1,G=!1,V=(e,t,n)=>{const l=t.h[n];let o,s,i=0;if(null!==l.i)o=l.$=u.createTextNode(l.i);else if(o=l.$=u.createElement(l.m),W(null,l,G),o.getRootNode().querySelector("body"),l.h)for(i=0;i<l.h.length;++i)s=V(e,l,i),s&&o.appendChild(s);return o["s-hn"]=C,o},_=(e,t,n,l,o,s)=>{let i,r=e;for(r.shadowRoot&&r.tagName===C&&(r=r.shadowRoot);o<=s;++o)l[o]&&(i=V(null,n,o),i&&(l[o].$=i,J(r,i,t)))},z=(e,t,n)=>{for(let l=t;l<=n;++l){const t=e[l];if(t){const e=t.$;e&&e.remove()}}},B=(e,t,n=!1)=>e.m===t.m&&(!!n||e.p===t.p),I=(e,t,n=!1)=>{const l=t.$=e.$,o=e.h,s=t.h,i=t.i;null===i?(("slot"!==t.m||q)&&W(e,t,G),null!==o&&null!==s?((e,t,n,l,o=!1)=>{let s,i,r=0,c=0,u=0,a=0,f=t.length-1,h=t[0],d=t[f],p=l.length-1,m=l[0],y=l[p];for(;r<=f&&c<=p;)if(null==h)h=t[++r];else if(null==d)d=t[--f];else if(null==m)m=l[++c];else if(null==y)y=l[--p];else if(B(h,m,o))I(h,m,o),h=t[++r],m=l[++c];else if(B(d,y,o))I(d,y,o),d=t[--f],y=l[--p];else if(B(h,y,o))I(h,y,o),J(e,h.$,d.$.nextSibling),h=t[++r],y=l[--p];else if(B(d,m,o))I(d,m,o),J(e,d.$,h.$),d=t[--f],m=l[++c];else{for(u=-1,a=r;a<=f;++a)if(t[a]&&null!==t[a].p&&t[a].p===m.p){u=a;break}u>=0?(i=t[u],i.m!==m.m?s=V(t&&t[c],n,u):(I(i,m,o),t[u]=void 0,s=i.$),m=l[++c]):(s=V(t&&t[c],n,c),m=l[++c]),s&&J(h.$.parentNode,s,h.$)}r>f?_(e,null==l[p+1]?null:l[p+1].$,n,l,c,p):c>p&&z(t,r,f)})(l,o,t,s,n):null!==s?(null!==e.i&&(l.textContent=""),_(l,null,t,s,0,s.length-1)):!n&&null!==o&&z(o,0,o.length-1)):e.i!==i&&(l.data=i)},J=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),K=(e,t)=>{t&&!e.S&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.S=t)))},Q=(e,t)=>{if(e.l|=16,!(4&e.l))return K(e,e.j),b((()=>X(e,t)));e.l|=512},X=(e,t)=>{const n=e.t;if(!n)throw Error(`Can't render component <${e.$hostElement$.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return t&&(e.l|=256,e.k&&(e.k.map((([e,t])=>oe(n,e,t))),e.k=void 0),l=oe(n,"componentWillLoad")),Y(l,(()=>ee(e,n,t)))},Y=(e,t)=>Z(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),Z=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,ee=async(e,t,n)=>{var l;const o=e.$hostElement$,s=o["s-rc"];n&&(e=>{const t=e.O,n=e.$hostElement$,l=t.l,o=((e,t)=>{var n;const l=T(t),o=i.get(l);if(e=11===e.nodeType?e:u,o)if("string"==typeof o){let s,i=L.get(e=e.head||e);if(i||L.set(e,i=new Set),!i.has(l)){{s=u.createElement("style"),s.innerHTML=o;const l=null!=(n=a.C)?n:j(u);if(null!=l&&s.setAttribute("nonce",l),!(1&t.l))if("HEAD"===e.nodeName){const t=e.querySelectorAll("link[rel=preconnect]"),n=t.length>0?t[t.length-1].nextSibling:e.querySelector("style");e.insertBefore(s,n)}else if("host"in e)if(h){const t=new CSSStyleSheet;t.replaceSync(o),e.adoptedStyleSheets=[t,...e.adoptedStyleSheets]}else{const t=e.querySelector("style");t?t.innerHTML=o+t.innerHTML:e.prepend(s)}else e.append(s);1&t.l&&"HEAD"!==e.nodeName&&e.insertBefore(s,null)}4&t.l&&(s.innerHTML+=r),i&&i.add(l)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return l})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&2&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(e);te(e,t,o,n),s&&(s.map((e=>e())),o["s-rc"]=void 0);{const t=null!=(l=o["s-p"])?l:[],n=()=>ne(e);0===t.length?n():(Promise.all(t).then(n),e.l|=4,t.length=0)}},te=(e,t,n,l)=>{try{t=t.render(),e.l&=-17,e.l|=2,((e,t,n=!1)=>{const l=e.$hostElement$,o=e.O,s=e.M||A(null,null),i=(e=>e&&e.m===H)(t)?t:x(null,null,t);if(C=l.tagName,o.P&&(i.u=i.u||{},o.P.map((([e,t])=>i.u[t]=l[e]))),n&&i.u)for(const e of Object.keys(i.u))l.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(i.u[e]=l[e]);i.m=null,i.l|=4,e.M=i,i.$=s.$=l.shadowRoot||l,q=!!(1&o.l),I(s,i,n)})(e,t,l)}catch(t){o(t,e.$hostElement$)}return null},ne=e=>{const t=e.$hostElement$,n=e.t,l=e.j;64&e.l||(e.l|=64,se(t),oe(n,"componentDidLoad"),e.A(t),l||le()),e.S&&(e.S(),e.S=void 0),512&e.l&&v((()=>Q(e,!1))),e.l&=-517},le=()=>{se(u.documentElement),v((()=>(e=>{const t=a.ce("appload",{detail:{namespace:"mds-table-row"}});return e.dispatchEvent(t),t})(c)))},oe=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){o(e)}},se=e=>e.setAttribute("hydrated",""),ie=(e,t,l)=>{var o,s;const i=e.prototype;if(t.H){const r=Object.entries(null!=(o=t.H)?o:{});if(r.map((([e,[o]])=>{(31&o||2&l&&32&o)&&Object.defineProperty(i,e,{get(){return((e,t)=>n(this).D.get(t))(0,e)},set(l){((e,t,l,o)=>{const s=n(e);if(!s)throw Error(`Couldn't find host element for "${o.v}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const i=s.D.get(t),r=s.l,c=s.t;l=((e,t)=>null==e||g(e)?e:4&t?"false"!==e&&(""===e||!!e):e)(l,o.H[t][0]),8&r&&void 0!==i||l===i||Number.isNaN(i)&&Number.isNaN(l)||(s.D.set(t,l),c&&2==(18&r)&&Q(s,!1))})(this,e,l,t)},configurable:!0,enumerable:!0})})),1&l){const l=new Map;i.attributeChangedCallback=function(e,o,s){a.jmp((()=>{var r;const c=l.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const l=n(this),i=null==l?void 0:l.l;if(i&&!(8&i)&&128&i&&s!==o){const n=l.t,i=null==(r=t.L)?void 0:r[e];null==i||i.forEach((t=>{null!=n[t]&&n[t].call(n,s,o,e)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=t.L)?s:{}),...r.filter((([e,t])=>15&t[0])).map((([e,n])=>{var o;const s=n[1]||e;return l.set(s,e),512&n[0]&&(null==(o=t.P)||o.push([e,s])),s}))]))}}return e},re=(e,l={})=>{var f;const d=[],p=l.exclude||[],m=c.customElements,y=u.head,$=y.querySelector("meta[charset]"),w=u.createElement("style"),v=[];let b,S=!0;Object.assign(a,l),a.o=new URL(l.resourcesUrl||"./",u.baseURI).href;let g=!1;if(e.map((e=>{e[1].map((l=>{const r={l:l[0],v:l[1],H:l[2],T:l[3]};4&r.l&&(g=!0),r.H=l[2],r.T=l[3],r.P=[];const c=r.v,u=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const l={l:0,$hostElement$:e,O:n,D:new Map};l.N=new Promise((e=>l.A=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,l)})(e=this,r),1&r.l)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${r.v}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else e.attachShadow({mode:"open"})}connectedCallback(){const e=n(this);this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,ce(this,e,r.T)),b&&(clearTimeout(b),b=null),S?v.push(this):a.jmp((()=>(e=>{if(!(1&a.l)){const t=n(e),l=t.O,r=()=>{};if(1&t.l)ce(e,t,l.T),(null==t?void 0:t.t)||(null==t?void 0:t.N)&&t.N.then((()=>{}));else{t.l|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){K(t,t.j=n);break}}l.H&&Object.entries(l.H).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let l;if(!(32&t.l)){if(t.l|=32,n.R){const e=(e=>{const t=e.v.replace(/-/g,"_"),n=e.R;if(!n)return;const l=s.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(s.set(n,e),e[t])),o)
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(e&&"then"in e){const t=()=>{};l=await e,t()}else l=e;if(!l)throw Error(`Constructor for "${n.v}#${t.U}" was not found`);l.isProxied||(ie(l,n,2),l.isProxied=!0);const i=()=>{};t.l|=8;try{new l(t)}catch(e){o(e)}t.l&=-9,i()}else l=e.constructor,customElements.whenDefined(e.localName).then((()=>t.l|=128));if(l&&l.style){let e;"string"==typeof l.style&&(e=l.style);const t=T(n);if(!i.has(t)){const l=()=>{};((e,t,n)=>{let l=i.get(e);h&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,i.set(e,l)})(t,e,!!(1&n.l)),l()}}}const r=t.j,c=()=>Q(t,!0);r&&r["s-rc"]?r["s-rc"].push(c):c()})(e,t,l)}r()}})(this)))}disconnectedCallback(){a.jmp((()=>(async()=>{if(!(1&a.l)){const e=n(this);e.W&&(e.W.map((e=>e())),e.W=void 0),(null==e?void 0:e.t)||(null==e?void 0:e.N)&&e.N.then((()=>{}))}})()))}componentOnReady(){return n(this).N}};r.R=e[0],p.includes(c)||m.get(c)||(d.push(c),m.define(c,ie(u,r,1)))}))})),d.length>0&&(g&&(w.textContent+=r),w.textContent+=d.sort()+"{visibility:hidden}[hydrated]{visibility:inherit}",w.innerHTML.length)){w.setAttribute("data-styles","");const e=null!=(f=a.C)?f:j(u);null!=e&&w.setAttribute("nonce",e),y.insertBefore(w,$?$.nextSibling:y.firstChild)}S=!1,v.length?v.map((e=>e.connectedCallback())):a.jmp((()=>b=setTimeout(le,30)))},ce=(e,t,n)=>{n&&n.map((([n,l,o])=>{const s=ae(e,n),i=ue(t,o),r=fe(n);a.ael(s,l,i,r),(t.W=t.W||[]).push((()=>a.rel(s,l,i,r)))}))},ue=(e,t)=>n=>{var l;try{256&e.l?null==(l=e.t)||l[t](n):(e.k=e.k||[]).push([t,n])}catch(e){o(e)}},ae=(e,t)=>4&t?u:e,fe=e=>({passive:!!(1&e),capture:!!(2&e)}),he=e=>a.C=e;export{H,re as b,D as g,x as h,f as p,l as r,he as s}
|
package/dist/stats.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "2024-
|
|
2
|
+
"timestamp": "2024-12-05T16:19:09",
|
|
3
3
|
"compiler": {
|
|
4
4
|
"name": "node",
|
|
5
5
|
"version": "22.11.0"
|
|
@@ -9,14 +9,15 @@
|
|
|
9
9
|
"fsNamespace": "mds-table-row",
|
|
10
10
|
"components": 1,
|
|
11
11
|
"entries": 1,
|
|
12
|
-
"bundles":
|
|
12
|
+
"bundles": 91,
|
|
13
13
|
"outputs": [
|
|
14
14
|
{
|
|
15
15
|
"name": "dist-collection",
|
|
16
|
-
"files":
|
|
16
|
+
"files": 43,
|
|
17
17
|
"generatedFiles": [
|
|
18
18
|
"./dist/collection/common/aria.js",
|
|
19
19
|
"./dist/collection/common/date.js",
|
|
20
|
+
"./dist/collection/common/device.js",
|
|
20
21
|
"./dist/collection/common/file.js",
|
|
21
22
|
"./dist/collection/common/icon.js",
|
|
22
23
|
"./dist/collection/common/keyboard-manager.js",
|
|
@@ -74,19 +75,19 @@
|
|
|
74
75
|
"files": 42,
|
|
75
76
|
"generatedFiles": [
|
|
76
77
|
"./dist/cjs/app-globals-3a1e7e63.js",
|
|
77
|
-
"./dist/cjs/index-
|
|
78
|
+
"./dist/cjs/index-19c36c53.js",
|
|
78
79
|
"./dist/cjs/index.cjs.js",
|
|
79
80
|
"./dist/cjs/loader.cjs.js",
|
|
80
81
|
"./dist/cjs/mds-table-row.cjs.entry.js",
|
|
81
82
|
"./dist/cjs/mds-table-row.cjs.js",
|
|
82
83
|
"./dist/esm-es5/app-globals-0f993ce5.js",
|
|
83
|
-
"./dist/esm-es5/index-
|
|
84
|
+
"./dist/esm-es5/index-a948f479.js",
|
|
84
85
|
"./dist/esm-es5/index.js",
|
|
85
86
|
"./dist/esm-es5/loader.js",
|
|
86
87
|
"./dist/esm-es5/mds-table-row.entry.js",
|
|
87
88
|
"./dist/esm-es5/mds-table-row.js",
|
|
88
89
|
"./dist/esm/app-globals-0f993ce5.js",
|
|
89
|
-
"./dist/esm/index-
|
|
90
|
+
"./dist/esm/index-a948f479.js",
|
|
90
91
|
"./dist/esm/index.js",
|
|
91
92
|
"./dist/esm/loader.js",
|
|
92
93
|
"./dist/esm/mds-table-row.entry.js",
|
|
@@ -98,23 +99,23 @@
|
|
|
98
99
|
"./dist/mds-table-row/mds-table-row.js",
|
|
99
100
|
"./dist/mds-table-row/p-50ea2036.system.js",
|
|
100
101
|
"./dist/mds-table-row/p-56ba5cbf.system.js",
|
|
101
|
-
"./dist/mds-table-row/p-
|
|
102
|
-
"./dist/mds-table-row/p-
|
|
103
|
-
"./dist/mds-table-row/p-
|
|
104
|
-
"./dist/mds-table-row/p-
|
|
102
|
+
"./dist/mds-table-row/p-5ab8c209.system.entry.js",
|
|
103
|
+
"./dist/mds-table-row/p-98955251.system.js",
|
|
104
|
+
"./dist/mds-table-row/p-bfa177c6.system.js",
|
|
105
|
+
"./dist/mds-table-row/p-d906e5c7.entry.js",
|
|
105
106
|
"./dist/mds-table-row/p-e1255160.js",
|
|
106
|
-
"./dist/mds-table-row/p-
|
|
107
|
+
"./dist/mds-table-row/p-faec61cc.js",
|
|
107
108
|
"./www/build/index.esm.js",
|
|
108
109
|
"./www/build/mds-table-row.esm.js",
|
|
109
110
|
"./www/build/mds-table-row.js",
|
|
110
111
|
"./www/build/p-50ea2036.system.js",
|
|
111
112
|
"./www/build/p-56ba5cbf.system.js",
|
|
112
|
-
"./www/build/p-
|
|
113
|
-
"./www/build/p-
|
|
114
|
-
"./www/build/p-
|
|
115
|
-
"./www/build/p-
|
|
113
|
+
"./www/build/p-5ab8c209.system.entry.js",
|
|
114
|
+
"./www/build/p-98955251.system.js",
|
|
115
|
+
"./www/build/p-bfa177c6.system.js",
|
|
116
|
+
"./www/build/p-d906e5c7.entry.js",
|
|
116
117
|
"./www/build/p-e1255160.js",
|
|
117
|
-
"./www/build/p-
|
|
118
|
+
"./www/build/p-faec61cc.js"
|
|
118
119
|
]
|
|
119
120
|
},
|
|
120
121
|
{
|
|
@@ -147,12 +148,12 @@
|
|
|
147
148
|
"components": [
|
|
148
149
|
"mds-table-row"
|
|
149
150
|
],
|
|
150
|
-
"bundleId": "p-
|
|
151
|
-
"fileName": "p-
|
|
151
|
+
"bundleId": "p-d906e5c7",
|
|
152
|
+
"fileName": "p-d906e5c7.entry.js",
|
|
152
153
|
"imports": [
|
|
153
|
-
"p-
|
|
154
|
+
"p-faec61cc.js"
|
|
154
155
|
],
|
|
155
|
-
"originalByteSize":
|
|
156
|
+
"originalByteSize": 5387
|
|
156
157
|
}
|
|
157
158
|
],
|
|
158
159
|
"esm": [
|
|
@@ -164,9 +165,9 @@
|
|
|
164
165
|
"bundleId": "mds-table-row",
|
|
165
166
|
"fileName": "mds-table-row.entry.js",
|
|
166
167
|
"imports": [
|
|
167
|
-
"index-
|
|
168
|
+
"index-a948f479.js"
|
|
168
169
|
],
|
|
169
|
-
"originalByteSize":
|
|
170
|
+
"originalByteSize": 5391
|
|
170
171
|
}
|
|
171
172
|
],
|
|
172
173
|
"es5": [
|
|
@@ -178,9 +179,9 @@
|
|
|
178
179
|
"bundleId": "mds-table-row",
|
|
179
180
|
"fileName": "mds-table-row.entry.js",
|
|
180
181
|
"imports": [
|
|
181
|
-
"index-
|
|
182
|
+
"index-a948f479.js"
|
|
182
183
|
],
|
|
183
|
-
"originalByteSize":
|
|
184
|
+
"originalByteSize": 5391
|
|
184
185
|
}
|
|
185
186
|
],
|
|
186
187
|
"system": [
|
|
@@ -189,12 +190,12 @@
|
|
|
189
190
|
"components": [
|
|
190
191
|
"mds-table-row"
|
|
191
192
|
],
|
|
192
|
-
"bundleId": "p-
|
|
193
|
-
"fileName": "p-
|
|
193
|
+
"bundleId": "p-5ab8c209.system",
|
|
194
|
+
"fileName": "p-5ab8c209.system.entry.js",
|
|
194
195
|
"imports": [
|
|
195
|
-
"p-
|
|
196
|
+
"p-bfa177c6.system.js"
|
|
196
197
|
],
|
|
197
|
-
"originalByteSize":
|
|
198
|
+
"originalByteSize": 5816
|
|
198
199
|
}
|
|
199
200
|
],
|
|
200
201
|
"commonjs": [
|
|
@@ -206,9 +207,9 @@
|
|
|
206
207
|
"bundleId": "mds-table-row.cjs",
|
|
207
208
|
"fileName": "mds-table-row.cjs.entry.js",
|
|
208
209
|
"imports": [
|
|
209
|
-
"index-
|
|
210
|
+
"index-19c36c53.js"
|
|
210
211
|
],
|
|
211
|
-
"originalByteSize":
|
|
212
|
+
"originalByteSize": 5480
|
|
212
213
|
}
|
|
213
214
|
]
|
|
214
215
|
},
|
|
@@ -217,7 +218,7 @@
|
|
|
217
218
|
"tag": "mds-table-row",
|
|
218
219
|
"path": "./src/components/mds-table-row/mds-table-row.js",
|
|
219
220
|
"source": "./src/components/mds-table-row/mds-table-row.tsx",
|
|
220
|
-
"elementRef":
|
|
221
|
+
"elementRef": "host",
|
|
221
222
|
"componentClassName": "MdsTableRow",
|
|
222
223
|
"assetsDirs": [],
|
|
223
224
|
"dependencies": [],
|
|
@@ -247,7 +248,9 @@
|
|
|
247
248
|
}
|
|
248
249
|
],
|
|
249
250
|
"methods": [],
|
|
250
|
-
"potentialCmpRefs": [
|
|
251
|
+
"potentialCmpRefs": [
|
|
252
|
+
"mds-table-cell"
|
|
253
|
+
],
|
|
251
254
|
"properties": [
|
|
252
255
|
{
|
|
253
256
|
"name": "interactive",
|
|
@@ -267,6 +270,25 @@
|
|
|
267
270
|
"text": ""
|
|
268
271
|
},
|
|
269
272
|
"internal": false
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
"name": "overlayActions",
|
|
276
|
+
"type": "boolean",
|
|
277
|
+
"attribute": "overlay-actions",
|
|
278
|
+
"reflect": true,
|
|
279
|
+
"mutable": true,
|
|
280
|
+
"required": false,
|
|
281
|
+
"optional": false,
|
|
282
|
+
"complexType": {
|
|
283
|
+
"original": "boolean",
|
|
284
|
+
"resolved": "boolean",
|
|
285
|
+
"references": {}
|
|
286
|
+
},
|
|
287
|
+
"docs": {
|
|
288
|
+
"tags": [],
|
|
289
|
+
"text": ""
|
|
290
|
+
},
|
|
291
|
+
"internal": false
|
|
270
292
|
}
|
|
271
293
|
],
|
|
272
294
|
"shadowDelegatesFocus": false,
|
|
@@ -283,7 +305,7 @@
|
|
|
283
305
|
"excludeFromCollection": false,
|
|
284
306
|
"isCollectionDependency": false,
|
|
285
307
|
"componentClassName": "MdsTableRow",
|
|
286
|
-
"elementRef":
|
|
308
|
+
"elementRef": "host",
|
|
287
309
|
"encapsulation": "shadow",
|
|
288
310
|
"shadowDelegatesFocus": false,
|
|
289
311
|
"properties": [
|
|
@@ -305,6 +327,25 @@
|
|
|
305
327
|
"text": ""
|
|
306
328
|
},
|
|
307
329
|
"internal": false
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
"name": "overlayActions",
|
|
333
|
+
"type": "boolean",
|
|
334
|
+
"attribute": "overlay-actions",
|
|
335
|
+
"reflect": true,
|
|
336
|
+
"mutable": true,
|
|
337
|
+
"required": false,
|
|
338
|
+
"optional": false,
|
|
339
|
+
"complexType": {
|
|
340
|
+
"original": "boolean",
|
|
341
|
+
"resolved": "boolean",
|
|
342
|
+
"references": {}
|
|
343
|
+
},
|
|
344
|
+
"docs": {
|
|
345
|
+
"tags": [],
|
|
346
|
+
"text": ""
|
|
347
|
+
},
|
|
348
|
+
"internal": false
|
|
308
349
|
}
|
|
309
350
|
],
|
|
310
351
|
"virtualProperties": [],
|
|
@@ -352,8 +393,8 @@
|
|
|
352
393
|
"sourceFilePath": "/builds/maggiolispa/ricerca-sviluppo-new-media/magma/design-system/projects/stencil/.build/mds-table-row/src/components/mds-table-row/mds-table-row.tsx",
|
|
353
394
|
"sourceMapPath": null,
|
|
354
395
|
"hasAttributeChangedCallbackFn": false,
|
|
355
|
-
"hasComponentWillLoadFn":
|
|
356
|
-
"hasComponentDidLoadFn":
|
|
396
|
+
"hasComponentWillLoadFn": true,
|
|
397
|
+
"hasComponentDidLoadFn": true,
|
|
357
398
|
"hasComponentShouldUpdateFn": false,
|
|
358
399
|
"hasComponentWillUpdateFn": false,
|
|
359
400
|
"hasComponentDidUpdateFn": false,
|
|
@@ -364,7 +405,7 @@
|
|
|
364
405
|
"hasDisconnectedCallbackFn": false,
|
|
365
406
|
"hasElement": false,
|
|
366
407
|
"hasEvent": false,
|
|
367
|
-
"hasLifecycle":
|
|
408
|
+
"hasLifecycle": true,
|
|
368
409
|
"hasListener": true,
|
|
369
410
|
"hasListenerTarget": true,
|
|
370
411
|
"hasListenerTargetWindow": false,
|
|
@@ -386,27 +427,34 @@
|
|
|
386
427
|
"hasStyle": true,
|
|
387
428
|
"hasVdomAttribute": true,
|
|
388
429
|
"hasVdomXlink": false,
|
|
389
|
-
"hasVdomClass":
|
|
430
|
+
"hasVdomClass": true,
|
|
390
431
|
"hasVdomFunctional": false,
|
|
391
432
|
"hasVdomKey": true,
|
|
392
433
|
"hasVdomListener": false,
|
|
393
434
|
"hasVdomPropOrAttr": true,
|
|
394
435
|
"hasVdomRef": false,
|
|
395
436
|
"hasVdomRender": true,
|
|
396
|
-
"hasVdomStyle":
|
|
397
|
-
"hasVdomText":
|
|
437
|
+
"hasVdomStyle": true,
|
|
438
|
+
"hasVdomText": true,
|
|
398
439
|
"hasWatchCallback": false,
|
|
399
440
|
"isPlain": false,
|
|
400
441
|
"htmlAttrNames": [
|
|
401
442
|
"key",
|
|
402
|
-
"role"
|
|
443
|
+
"role",
|
|
444
|
+
"class",
|
|
445
|
+
"style",
|
|
446
|
+
"name"
|
|
403
447
|
],
|
|
404
448
|
"htmlTagNames": [
|
|
405
|
-
"slot"
|
|
449
|
+
"slot",
|
|
450
|
+
"mds-table-cell",
|
|
451
|
+
"div"
|
|
406
452
|
],
|
|
407
453
|
"htmlParts": [],
|
|
408
454
|
"isUpdateable": true,
|
|
409
|
-
"potentialCmpRefs": [
|
|
455
|
+
"potentialCmpRefs": [
|
|
456
|
+
"mds-table-cell"
|
|
457
|
+
],
|
|
410
458
|
"dependents": [],
|
|
411
459
|
"dependencies": [],
|
|
412
460
|
"directDependents": [],
|
|
@@ -418,12 +466,13 @@
|
|
|
418
466
|
],
|
|
419
467
|
"componentGraph": {
|
|
420
468
|
"sc-mds-table-row": [
|
|
421
|
-
"p-
|
|
469
|
+
"p-faec61cc.js"
|
|
422
470
|
]
|
|
423
471
|
},
|
|
424
472
|
"sourceGraph": {
|
|
425
473
|
"./src/common/aria.ts": [],
|
|
426
474
|
"./src/common/date.ts": [],
|
|
475
|
+
"./src/common/device.ts": [],
|
|
427
476
|
"./src/common/file.ts": [],
|
|
428
477
|
"./src/common/icon.ts": [],
|
|
429
478
|
"./src/common/keyboard-manager.ts": [],
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
declare const unslugName: (name: string) => string;
|
|
2
2
|
declare const setAttributeIfEmpty: (element: HTMLElement, attribute: string, value: string) => string;
|
|
3
|
+
declare const removeAttributesIf: (element: HTMLElement, attribute: string, valueCheck: string | undefined, cleanAttributes: string | string[]) => boolean;
|
|
4
|
+
declare const ifAttribute: (element: HTMLElement, attribute: string, valueCheck?: string) => boolean;
|
|
3
5
|
declare const hashValue: (value: string) => string;
|
|
4
6
|
declare const hashRandomValue: (value?: string) => string;
|
|
5
|
-
export {
|
|
7
|
+
export { hashRandomValue, hashValue, removeAttributesIf, setAttributeIfEmpty, ifAttribute, unslugName, };
|
|
@@ -2,7 +2,14 @@
|
|
|
2
2
|
* @slot default - Put `mds-table-cell` element/s.
|
|
3
3
|
*/
|
|
4
4
|
export declare class MdsTableRow {
|
|
5
|
+
host: HTMLMdsTableRowElement;
|
|
6
|
+
private actions;
|
|
7
|
+
private hasActions;
|
|
8
|
+
private sizerWidth;
|
|
5
9
|
interactive: boolean;
|
|
10
|
+
overlayActions: boolean;
|
|
6
11
|
tableInteractiveHandler(event: CustomEvent<boolean>): void;
|
|
12
|
+
componentWillLoad(): void;
|
|
13
|
+
componentDidLoad(): void;
|
|
7
14
|
render(): any;
|
|
8
15
|
}
|
|
@@ -8,6 +8,7 @@ import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
|
8
8
|
export namespace Components {
|
|
9
9
|
interface MdsTableRow {
|
|
10
10
|
"interactive": boolean;
|
|
11
|
+
"overlayActions": boolean;
|
|
11
12
|
}
|
|
12
13
|
}
|
|
13
14
|
declare global {
|
|
@@ -24,6 +25,7 @@ declare global {
|
|
|
24
25
|
declare namespace LocalJSX {
|
|
25
26
|
interface MdsTableRow {
|
|
26
27
|
"interactive"?: boolean;
|
|
28
|
+
"overlayActions"?: boolean;
|
|
27
29
|
}
|
|
28
30
|
interface IntrinsicElements {
|
|
29
31
|
"mds-table-row": MdsTableRow;
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
+
declare const typographyTagDictionary: string[];
|
|
2
|
+
declare const typographyHeadingTagDictionary: string[];
|
|
1
3
|
declare const truncateDictionary: string[];
|
|
2
|
-
export { truncateDictionary, };
|
|
4
|
+
export { truncateDictionary, typographyHeadingTagDictionary, typographyTagDictionary, };
|
|
@@ -1 +1,3 @@
|
|
|
1
|
+
export type TypographyTagType = 'abbr' | 'address' | 'article' | 'b' | 'bdo' | 'blockquote' | 'cite' | 'code' | 'dd' | 'del' | 'details' | 'dfn' | 'div' | 'dl' | 'dt' | 'em' | 'figcaption' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'i' | 'ins' | 'kbd' | 'label' | 'legend' | 'li' | 'mark' | 'ol' | 'p' | 'pre' | 'q' | 'rb' | 'rt' | 'ruby' | 's' | 'samp' | 'small' | 'span' | 'strong' | 'sub' | 'summary' | 'sup' | 'time' | 'u' | 'ul' | 'var';
|
|
2
|
+
export type TypographyHeadingTagType = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
1
3
|
export type TypographyTruncateType = 'all' | 'none' | 'word';
|
package/documentation.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "2024-
|
|
2
|
+
"timestamp": "2024-12-05T15:33:30",
|
|
3
3
|
"compiler": {
|
|
4
4
|
"name": "@stencil/core",
|
|
5
5
|
"version": "4.22.2",
|
|
@@ -40,6 +40,27 @@
|
|
|
40
40
|
],
|
|
41
41
|
"optional": false,
|
|
42
42
|
"required": false
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"name": "overlayActions",
|
|
46
|
+
"type": "boolean",
|
|
47
|
+
"complexType": {
|
|
48
|
+
"original": "boolean",
|
|
49
|
+
"resolved": "boolean",
|
|
50
|
+
"references": {}
|
|
51
|
+
},
|
|
52
|
+
"mutable": true,
|
|
53
|
+
"attr": "overlay-actions",
|
|
54
|
+
"reflectToAttr": true,
|
|
55
|
+
"docs": "",
|
|
56
|
+
"docsTags": [],
|
|
57
|
+
"values": [
|
|
58
|
+
{
|
|
59
|
+
"type": "boolean"
|
|
60
|
+
}
|
|
61
|
+
],
|
|
62
|
+
"optional": false,
|
|
63
|
+
"required": false
|
|
43
64
|
}
|
|
44
65
|
],
|
|
45
66
|
"methods": [],
|
|
@@ -61,8 +82,14 @@
|
|
|
61
82
|
],
|
|
62
83
|
"parts": [],
|
|
63
84
|
"dependents": [],
|
|
64
|
-
"dependencies": [
|
|
65
|
-
|
|
85
|
+
"dependencies": [
|
|
86
|
+
"mds-table-cell"
|
|
87
|
+
],
|
|
88
|
+
"dependencyGraph": {
|
|
89
|
+
"mds-table-row": [
|
|
90
|
+
"mds-table-cell"
|
|
91
|
+
]
|
|
92
|
+
}
|
|
66
93
|
}
|
|
67
94
|
],
|
|
68
95
|
"typeLibrary": {
|
|
@@ -476,6 +503,11 @@
|
|
|
476
503
|
"docstring": "",
|
|
477
504
|
"path": "src/components/mds-push-notification/meta/event-detail.ts"
|
|
478
505
|
},
|
|
506
|
+
"src/type/text.ts::TypographyHeadingTagType": {
|
|
507
|
+
"declaration": "export type TypographyHeadingTagType =\n | 'h1'\n | 'h2'\n | 'h3'\n | 'h4'\n | 'h5'\n | 'h6'",
|
|
508
|
+
"docstring": "",
|
|
509
|
+
"path": "src/type/text.ts"
|
|
510
|
+
},
|
|
479
511
|
"src/components/mds-stepper-bar/meta/event-detail.ts::MdsStepperBarEventDetail": {
|
|
480
512
|
"declaration": "export interface MdsStepperBarEventDetail {\n step: number\n value: string\n}",
|
|
481
513
|
"docstring": "",
|
|
@@ -507,7 +539,7 @@
|
|
|
507
539
|
"path": "src/components/mds-tab-item/meta/event-detail.ts"
|
|
508
540
|
},
|
|
509
541
|
"src/components/mds-table-header-cell/meta/types.ts::SortDirectionType": {
|
|
510
|
-
"declaration": "export type SortDirectionType =\n | '
|
|
542
|
+
"declaration": "export type SortDirectionType =\n | 'ascending'\n | 'descending'\n | 'none'",
|
|
511
543
|
"docstring": "",
|
|
512
544
|
"path": "src/components/mds-table-header-cell/meta/types.ts"
|
|
513
545
|
},
|
|
@@ -516,10 +548,10 @@
|
|
|
516
548
|
"docstring": "",
|
|
517
549
|
"path": "src/components/mds-text/meta/types.ts"
|
|
518
550
|
},
|
|
519
|
-
"src/
|
|
551
|
+
"src/type/text.ts::TypographyTagType": {
|
|
520
552
|
"declaration": "export type TypographyTagType =\n | 'abbr'\n | 'address'\n | 'article'\n | 'b'\n | 'bdo'\n | 'blockquote'\n | 'cite'\n | 'code'\n | 'dd'\n | 'del'\n | 'details'\n | 'dfn'\n | 'div'\n | 'dl'\n | 'dt'\n | 'em'\n | 'figcaption'\n | 'h1'\n | 'h2'\n | 'h3'\n | 'h4'\n | 'h5'\n | 'h6'\n | 'i'\n | 'ins'\n | 'kbd'\n | 'label'\n | 'legend'\n | 'li'\n | 'mark'\n | 'ol'\n | 'p'\n | 'pre'\n | 'q'\n | 'rb'\n | 'rt'\n | 'ruby'\n | 's'\n | 'samp'\n | 'small'\n | 'span'\n | 'strong'\n | 'sub'\n | 'summary'\n | 'sup'\n | 'time'\n | 'u'\n | 'ul'\n | 'var'",
|
|
521
553
|
"docstring": "",
|
|
522
|
-
"path": "src/
|
|
554
|
+
"path": "src/type/text.ts"
|
|
523
555
|
},
|
|
524
556
|
"src/type/variant.ts::ThemeLuminanceVariantType": {
|
|
525
557
|
"declaration": "export type ThemeLuminanceVariantType =\n | 'dark'\n | 'light'",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maggioli-design-system/mds-table-row",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.8.1",
|
|
4
4
|
"description": "mds-table-row is a web-component from Magma Design System, built with StencilJS, TypeScript, Storybook. It's based on the web-component standard and it's designed to be agnostic from the JavaScript framework you are using.",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"prepublishOnly": "npm run build"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@maggioli-design-system/mds-table-cell": "4.7.
|
|
26
|
+
"@maggioli-design-system/mds-table-cell": "4.7.2",
|
|
27
27
|
"@maggioli-design-system/styles": "15.5.0",
|
|
28
28
|
"@stencil/core": "4.22.2"
|
|
29
29
|
},
|
package/readme.md
CHANGED
|
@@ -9,9 +9,10 @@ This is a web-component from Maggioli Design System [Magma](https://magma.maggio
|
|
|
9
9
|
|
|
10
10
|
## Properties
|
|
11
11
|
|
|
12
|
-
| Property
|
|
13
|
-
|
|
|
14
|
-
| `interactive`
|
|
12
|
+
| Property | Attribute | Description | Type | Default |
|
|
13
|
+
| ---------------- | ----------------- | ----------- | --------- | ----------- |
|
|
14
|
+
| `interactive` | `interactive` | | `boolean` | `undefined` |
|
|
15
|
+
| `overlayActions` | `overlay-actions` | | `boolean` | `undefined` |
|
|
15
16
|
|
|
16
17
|
|
|
17
18
|
## Slots
|
|
@@ -21,6 +22,19 @@ This is a web-component from Maggioli Design System [Magma](https://magma.maggio
|
|
|
21
22
|
| `"default"` | Put `mds-table-cell` element/s. |
|
|
22
23
|
|
|
23
24
|
|
|
25
|
+
## Dependencies
|
|
26
|
+
|
|
27
|
+
### Depends on
|
|
28
|
+
|
|
29
|
+
- [mds-table-cell](../mds-table-cell)
|
|
30
|
+
|
|
31
|
+
### Graph
|
|
32
|
+
```mermaid
|
|
33
|
+
graph TD;
|
|
34
|
+
mds-table-row --> mds-table-cell
|
|
35
|
+
style mds-table-row fill:#f9f,stroke:#333,stroke-width:4px
|
|
36
|
+
```
|
|
37
|
+
|
|
24
38
|
----------------------------------------------
|
|
25
39
|
|
|
26
40
|
Built with love @ [Gruppo Maggioli](https://www.maggioli.com) from [R&D Department](https://www.maggioli.com/it-it/chi-siamo/ricerca-sviluppo)
|
package/src/common/aria.ts
CHANGED
|
@@ -20,6 +20,24 @@ const setAttributeIfEmpty = (element: HTMLElement, attribute: string, value: str
|
|
|
20
20
|
return value
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
+
const removeAttributesIf = (element: HTMLElement, attribute: string, valueCheck: string = 'true', cleanAttributes: string | string[]): boolean => {
|
|
24
|
+
if (ifAttribute(element, attribute, valueCheck)) {
|
|
25
|
+
const attributesList = Array.isArray(cleanAttributes) ? cleanAttributes : [cleanAttributes]
|
|
26
|
+
attributesList.forEach(attributeToRemove => {
|
|
27
|
+
element.removeAttribute(attributeToRemove)
|
|
28
|
+
})
|
|
29
|
+
return true
|
|
30
|
+
}
|
|
31
|
+
return false
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
const ifAttribute = (element: HTMLElement, attribute: string, valueCheck: string = 'true'): boolean => {
|
|
35
|
+
if (element.hasAttribute(attribute) && element.getAttribute(attribute) === valueCheck) {
|
|
36
|
+
return true
|
|
37
|
+
}
|
|
38
|
+
return false
|
|
39
|
+
}
|
|
40
|
+
|
|
23
41
|
const hashValue = (value: string): string => `${value}-${hash(value)}`
|
|
24
42
|
|
|
25
43
|
const hashRandomValue = (value?: string): string => {
|
|
@@ -32,8 +50,10 @@ const hashRandomValue = (value?: string): string => {
|
|
|
32
50
|
}
|
|
33
51
|
|
|
34
52
|
export {
|
|
35
|
-
unslugName,
|
|
36
|
-
setAttributeIfEmpty,
|
|
37
53
|
hashRandomValue,
|
|
38
54
|
hashValue,
|
|
55
|
+
removeAttributesIf,
|
|
56
|
+
setAttributeIfEmpty,
|
|
57
|
+
ifAttribute,
|
|
58
|
+
unslugName,
|
|
39
59
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
const isMobileDevice = (): boolean => {
|
|
2
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3
|
+
const userAgent = navigator.userAgent || navigator.vendor || (window as any).opera
|
|
4
|
+
return /android|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(userAgent)
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export {
|
|
8
|
+
isMobileDevice,
|
|
9
|
+
}
|
|
@@ -36,14 +36,14 @@ export class KeyboardManager {
|
|
|
36
36
|
|
|
37
37
|
attachEscapeBehavior = (callback: () => void): void => {
|
|
38
38
|
this.escapeCallback = callback
|
|
39
|
-
if (window !== undefined) {
|
|
39
|
+
if (typeof window !== 'undefined') {
|
|
40
40
|
window.addEventListener('keydown', this.handleEscapeBehaviorDispatchEvent.bind(this))
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
detachEscapeBehavior = (): void => {
|
|
45
45
|
this.escapeCallback = () => { return }
|
|
46
|
-
if (window !== undefined) {
|
|
46
|
+
if (typeof window !== 'undefined') {
|
|
47
47
|
window.removeEventListener('keydown', this.handleEscapeBehaviorDispatchEvent.bind(this))
|
|
48
48
|
}
|
|
49
49
|
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
.actions-view {
|
|
2
|
+
align-items: center;
|
|
3
|
+
display: flex;
|
|
4
|
+
inset: 0;
|
|
5
|
+
justify-content: end;
|
|
6
|
+
pointer-events: none;
|
|
7
|
+
position: absolute;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.actions {
|
|
11
|
+
align-items: center;
|
|
12
|
+
background-color: var(--mds-table-cell-background);
|
|
13
|
+
display: inline-flex;
|
|
14
|
+
gap: var(--mds-table-row-actions-gap);
|
|
15
|
+
inset: 0;
|
|
16
|
+
margin-right: 100%;
|
|
17
|
+
padding-right: 0;
|
|
18
|
+
pointer-events: auto;
|
|
19
|
+
position: sticky;
|
|
20
|
+
right: 0;
|
|
21
|
+
transform: translateX(100%);
|
|
22
|
+
transition-duration: theme('transitionDuration.500');
|
|
23
|
+
transition-property: transform, background-color, padding-right;
|
|
24
|
+
transition-timing-function: theme('transitionTimingFunction.out-expo');
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
:host(:hover) .actions {
|
|
28
|
+
transform: translateX(100%);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
:host([overlay-actions]:not([overlay-actions="false"])) .actions {
|
|
32
|
+
padding-right: var(--mds-table-cell-padding);
|
|
33
|
+
transform: translateX(100%);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
:host([overlay-actions]:not([overlay-actions="false"]):hover) .actions {
|
|
37
|
+
transform: translateX(0);
|
|
38
|
+
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
@tailwind utilities;
|
|
2
2
|
|
|
3
3
|
@container style(--magma-pref-animation: reduce) {
|
|
4
|
-
:host
|
|
4
|
+
:host,
|
|
5
|
+
.actions {
|
|
5
6
|
transition-duration: 0s;
|
|
6
7
|
}
|
|
7
8
|
}
|
|
@@ -9,7 +10,8 @@
|
|
|
9
10
|
@container style(--magma-pref-animation: system) {
|
|
10
11
|
|
|
11
12
|
@media (prefers-reduced-motion) {
|
|
12
|
-
:host
|
|
13
|
+
:host,
|
|
14
|
+
.actions {
|
|
13
15
|
transition-duration: 0s;
|
|
14
16
|
}
|
|
15
17
|
}
|