@maggioli-design-system/mds-table-row 5.4.3 → 5.4.5

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 (49) hide show
  1. package/dist/cjs/mds-table-row.cjs.entry.js +25 -25
  2. package/dist/collection/common/locale.js +10 -8
  3. package/dist/collection/common/number.js +5 -0
  4. package/dist/collection/common/slot.js +10 -1
  5. package/dist/collection/common/unit.js +16 -1
  6. package/dist/collection/components/mds-table-row/mds-table-row.js +15 -17
  7. package/dist/collection/dictionary/button.js +20 -1
  8. package/dist/collection/dictionary/icon.js +1 -1
  9. package/dist/collection/dictionary/variant.js +9 -1
  10. package/dist/components/mds-table-row.js +25 -25
  11. package/dist/documentation.json +1 -1
  12. package/dist/esm/mds-table-row.entry.js +25 -25
  13. package/dist/esm-es5/mds-table-row.entry.js +1 -1
  14. package/dist/mds-table-row/mds-table-row.esm.js +1 -1
  15. package/dist/mds-table-row/p-cc861814.entry.js +6 -0
  16. package/dist/mds-table-row/p-cd3437c0.system.js +1 -1
  17. package/dist/mds-table-row/p-fc4793d9.system.entry.js +6 -0
  18. package/dist/stats.json +23 -22
  19. package/dist/types/common/number.d.ts +2 -0
  20. package/dist/types/common/slot.d.ts +2 -1
  21. package/dist/types/common/unit.d.ts +3 -1
  22. package/dist/types/components/mds-table-row/mds-table-row.d.ts +3 -1
  23. package/dist/types/dictionary/button.d.ts +4 -1
  24. package/dist/types/dictionary/variant.d.ts +2 -1
  25. package/dist/types/type/button.d.ts +2 -0
  26. package/dist/types/type/variant.d.ts +1 -0
  27. package/documentation.json +34 -4
  28. package/package.json +3 -3
  29. package/src/common/locale.ts +10 -8
  30. package/src/common/number.ts +8 -0
  31. package/src/common/slot.ts +12 -0
  32. package/src/common/unit.ts +23 -0
  33. package/src/components/mds-table-row/mds-table-row.tsx +9 -11
  34. package/src/dictionary/button.ts +25 -0
  35. package/src/dictionary/icon.ts +2 -1
  36. package/src/dictionary/variant.ts +11 -1
  37. package/src/fixtures/icons.json +15 -0
  38. package/src/tailwind/components.css +1 -1
  39. package/src/type/button.ts +15 -0
  40. package/src/type/variant.ts +8 -0
  41. package/www/build/mds-table-row.esm.js +1 -1
  42. package/www/build/p-cc861814.entry.js +6 -0
  43. package/www/build/p-cd3437c0.system.js +1 -1
  44. package/www/build/p-fc4793d9.system.entry.js +6 -0
  45. package/dist/mds-table-row/p-86e316e3.entry.js +0 -6
  46. package/dist/mds-table-row/p-fbe91c6f.system.entry.js +0 -6
  47. package/src/fixtures/iconsauce.json +0 -306
  48. package/www/build/p-86e316e3.entry.js +0 -6
  49. package/www/build/p-fbe91c6f.system.entry.js +0 -6
@@ -0,0 +1,6 @@
1
+ import{r as t,h as e,H as r,g as a}from"./p-4a407cb6.js";"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;var d={exports:{}};d.exports=function(){
2
+ /*!
3
+ * mustache.js - Logic-less {{mustache}} templates with JavaScript
4
+ * http://github.com/janl/mustache.js
5
+ */
6
+ var t=Object.prototype.toString,e=Array.isArray||function(e){return"[object Array]"===t.call(e)};function r(t){return"function"==typeof t}function a(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function d(t,e){return null!=t&&"object"==typeof t&&e in t}var i=RegExp.prototype.test;var s=/\S/;function o(t){return!function(t,e){return i.call(t,e)}(s,t)}var n={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"};var h=/\s*/,c=/\s+/,l=/\s*=/,y=/\s*\}/,m=/#|\^|\/|>|\{|&|=|!/;function b(t){this.string=t,this.tail=t,this.pos=0}function u(t,e){this.view=t,this.cache={".":this.view},this.parent=e}function f(){this.templateCache={_cache:{},set:function(t,e){this._cache[t]=e},get:function(t){return this._cache[t]},clear:function(){this._cache={}}}}b.prototype.eos=function(){return""===this.tail},b.prototype.scan=function(t){var e=this.tail.match(t);if(!e||0!==e.index)return"";var r=e[0];return this.tail=this.tail.substring(r.length),this.pos+=r.length,r},b.prototype.scanUntil=function(t){var e,r=this.tail.search(t);switch(r){case-1:e=this.tail,this.tail="";break;case 0:e="";break;default:e=this.tail.substring(0,r),this.tail=this.tail.substring(r)}return this.pos+=e.length,e},u.prototype.push=function(t){return new u(t,this)},u.prototype.lookup=function(t){var e,a,i,s=this.cache;if(s.hasOwnProperty(t))e=s[t];else{for(var o,n,h,c=this,l=!1;c;){if(t.indexOf(".")>0)for(o=c.view,n=t.split("."),h=0;null!=o&&h<n.length;)h===n.length-1&&(l=d(o,n[h])||(i=n[h],null!=(a=o)&&"object"!=typeof a&&a.hasOwnProperty&&a.hasOwnProperty(i))),o=o[n[h++]];else o=c.view[t],l=d(c.view,t);if(l){e=o;break}c=c.parent}s[t]=e}return r(e)&&(e=e.call(this.view)),e},f.prototype.clearCache=function(){void 0!==this.templateCache&&this.templateCache.clear()},f.prototype.parse=function(t,r){var d=this.templateCache,i=t+":"+(r||p.tags).join(":"),s=void 0!==d,n=s?d.get(i):void 0;return null==n&&(n=function(t,r){if(!t)return[];var d,i,s,n=!1,u=[],f=[],v=[],w=!1,g=!1,k="",x=0;function R(){if(w&&!g)for(;v.length;)delete f[v.pop()];else v=[];w=!1,g=!1}function j(t){if("string"==typeof t&&(t=t.split(c,2)),!e(t)||2!==t.length)throw new Error("Invalid tags: "+t);d=new RegExp(a(t[0])+"\\s*"),i=new RegExp("\\s*"+a(t[1])),s=new RegExp("\\s*"+a("}"+t[1]))}j(r||p.tags);for(var E,z,X,S,C,D,L=new b(t);!L.eos();){if(E=L.pos,X=L.scanUntil(d))for(var O=0,T=X.length;O<T;++O)o(S=X.charAt(O))?(v.push(f.length),k+=S):(g=!0,n=!0,k+=" "),f.push(["text",S,E,E+1]),E+=1,"\n"===S&&(R(),k="",x=0,n=!1);if(!L.scan(d))break;if(w=!0,z=L.scan(m)||"name",L.scan(h),"="===z?(X=L.scanUntil(l),L.scan(l),L.scanUntil(i)):"{"===z?(X=L.scanUntil(s),L.scan(y),L.scanUntil(i),z="&"):X=L.scanUntil(i),!L.scan(i))throw new Error("Unclosed tag at "+L.pos);if(C=">"==z?[z,X,E,L.pos,k,x,n]:[z,X,E,L.pos],x++,f.push(C),"#"===z||"^"===z)u.push(C);else if("/"===z){if(!(D=u.pop()))throw new Error('Unopened section "'+X+'" at '+E);if(D[1]!==X)throw new Error('Unclosed section "'+D[1]+'" at '+E)}else"name"===z||"{"===z||"&"===z?g=!0:"="===z&&j(X)}if(R(),D=u.pop())throw new Error('Unclosed section "'+D[1]+'" at '+L.pos);return function(t){for(var e,r=[],a=r,d=[],i=0,s=t.length;i<s;++i)switch((e=t[i])[0]){case"#":case"^":a.push(e),d.push(e),a=e[4]=[];break;case"/":d.pop()[5]=e[2],a=d.length>0?d[d.length-1][4]:r;break;default:a.push(e)}return r}(function(t){for(var e,r,a=[],d=0,i=t.length;d<i;++d)(e=t[d])&&("text"===e[0]&&r&&"text"===r[0]?(r[1]+=e[1],r[3]=e[3]):(a.push(e),r=e));return a}(f))}(t,r),s&&d.set(i,n)),n},f.prototype.render=function(t,e,r,a){var d=this.getConfigTags(a),i=this.parse(t,d),s=e instanceof u?e:new u(e,void 0);return this.renderTokens(i,s,r,t,a)},f.prototype.renderTokens=function(t,e,r,a,d){for(var i,s,o,n="",h=0,c=t.length;h<c;++h)o=void 0,"#"===(s=(i=t[h])[0])?o=this.renderSection(i,e,r,a,d):"^"===s?o=this.renderInverted(i,e,r,a,d):">"===s?o=this.renderPartial(i,e,r,d):"&"===s?o=this.unescapedValue(i,e):"name"===s?o=this.escapedValue(i,e,d):"text"===s&&(o=this.rawValue(i)),void 0!==o&&(n+=o);return n},f.prototype.renderSection=function(t,a,d,i,s){var o=this,n="",h=a.lookup(t[1]);if(h){if(e(h))for(var c=0,l=h.length;c<l;++c)n+=this.renderTokens(t[4],a.push(h[c]),d,i,s);else if("object"==typeof h||"string"==typeof h||"number"==typeof h)n+=this.renderTokens(t[4],a.push(h),d,i,s);else if(r(h)){if("string"!=typeof i)throw new Error("Cannot use higher-order sections without the original template");null!=(h=h.call(a.view,i.slice(t[3],t[5]),(function(t){return o.render(t,a,d,s)})))&&(n+=h)}else n+=this.renderTokens(t[4],a,d,i,s);return n}},f.prototype.renderInverted=function(t,r,a,d,i){var s=r.lookup(t[1]);if(!s||e(s)&&0===s.length)return this.renderTokens(t[4],r,a,d,i)},f.prototype.indentPartial=function(t,e,r){for(var a=e.replace(/[^ \t]/g,""),d=t.split("\n"),i=0;i<d.length;i++)d[i].length&&(i>0||!r)&&(d[i]=a+d[i]);return d.join("\n")},f.prototype.renderPartial=function(t,e,a,d){if(a){var i=this.getConfigTags(d),s=r(a)?a(t[1]):a[t[1]];if(null!=s){var o=t[4],n=s;0==t[5]&&o&&(n=this.indentPartial(s,o,t[6]));var h=this.parse(n,i);return this.renderTokens(h,e,a,n,d)}}},f.prototype.unescapedValue=function(t,e){var r=e.lookup(t[1]);if(null!=r)return r},f.prototype.escapedValue=function(t,e,r){var a=this.getConfigEscape(r)||p.escape,d=e.lookup(t[1]);if(null!=d)return"number"==typeof d&&a===p.escape?String(d):a(d)},f.prototype.rawValue=function(t){return t[1]},f.prototype.getConfigTags=function(t){return e(t)?t:t&&"object"==typeof t?t.tags:void 0},f.prototype.getConfigEscape=function(t){return t&&"object"==typeof t&&!e(t)?t.escape:void 0};var p={name:"mustache.js",version:"4.2.0",tags:["{{","}}"],clearCache:void 0,escape:void 0,parse:void 0,render:void 0,Scanner:void 0,Context:void 0,Writer:void 0,set templateCache(t){v.templateCache=t},get templateCache(){return v.templateCache}},v=new f;return p.clearCache=function(){return v.clearCache()},p.parse=function(t,e){return v.parse(t,e)},p.render=function(t,r,a,d){if("string"!=typeof t)throw new TypeError('Invalid template! Template should be a "string" but "'+((e(i=t)?"array":typeof i)+'" was given as the first argument for mustache#render(template, view, partials)'));var i;return v.render(t,r,a,d)},p.escape=function(t){return String(t).replace(/[&<>"'`=\/]/g,(function(t){return n[t]}))},p.Scanner=b,p.Context=u,p.Writer=f,p}();class i{constructor(t){this.rollbackLanguage="en",this.set=t=>{this.config=t},this.lang=t=>(this.element=t,this.closestElement=this.element.closest("[lang]"),this.closestElement&&this.closestElement.lang?(this.language=this.closestElement.lang,this.language):(this.language=this.rollbackLanguage,this.language)),this.update=t=>{const e=null!=t?t:this.element.shadowRoot;e&&e.querySelectorAll("*").forEach((t=>{t.tagName.toLowerCase().startsWith("mds-")&&t&&"updateLang"in t&&t.updateLang()}))},this.pluralize=(t,e)=>{const r=this.config[this.language]?this.config[this.language][t]:this.config[this.rollbackLanguage][t],a=[];Array.isArray(r)?(a.push(r[0]),a.push(r[1])):(a.push(r),a.push(r));const[i]=a;let s=i;const o=Object.keys(e);if(o.length>0){const[t]=o;"number"==typeof e[t]&&1!==e[t]&&(s=a[1])}return d.exports.render(s,e)},this.get=(t,e)=>e?this.pluralize(t,e):this.config[this.language]?this.config[this.language][t]:this.config[this.rollbackLanguage][t],t&&this.set(t)}}const s={selectRow:"Επιλογή γραμμής",unselectRow:"Αποεπιλογή γραμμής"},o={selectRow:"Select row",unselectRow:"Deselect row"},n={selectRow:"Seleccionar fila",unselectRow:"Deseleccionar fila"},h={selectRow:"Seleziona riga",unselectRow:"Deseleziona riga"},c=()=>!!navigator&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent),l=class{constructor(e){t(this,e),this.hasActions=!0,this.t=new i({el:s,en:o,es:n,it:h}),this.selectable=void 0,this.handleSelectionChange=t=>{var e;this.selected=t.detail.checked,null===(e=this.host.closest("mds-table"))||void 0===e||e.updateSelection()}}async updateLang(){this.language=this.t.lang(this.host),this.t.update()}componentWillLoad(){this.language=this.t.lang(this.host),this.hasActions=null!==this.host.querySelector(':scope > [slot="action"]')}componentDidLoad(){this.hasActions&&this.initObserver()}initObserver(){this.observer=new ResizeObserver((t=>{this.sizerWidth=`${t[0].borderBoxSize[0].inlineSize.toString()}px`})),this.observer.observe(this.actions)}disconnectedCallback(){this.observer.disconnect()}render(){return e(r,{key:"277b0609922308962be67d5223876d6be4ea321b",role:"row"},this.selectable&&e("mds-table-cell",{key:"33f896d45cd10ea97413982185b77d7e239347c3",class:"selection-cell"},e("div",{key:"070e43bcb4f866baace272dd324675d659f40ec5",class:"checkbox-wrapper"},e("mds-input-switch",{key:"07ac8bbacf6cf4d56181bf9ce3be7102ddb82b01",title:this.t.get(this.selected?"unselectRow":"selectRow"),lang:this.language,type:"checkbox",checked:this.selected,onMdsInputSwitchChange:this.handleSelectionChange}))),e("slot",{key:"c08978557b2dc6fd1cafc821339f549f29e6e3a0"}),this.hasActions&&c()&&e("mds-table-cell",{key:"1024be5f867afae4b62f9a03ef1123440db3a1d8",class:"actions-cell actions-cell--disable"},e("div",{key:"974b3a22e3a919a78b719a76519d6f079ab38510",class:"actions"},e("slot",{key:"d0500bd757bf9676eb7ae531e985498729bed2f3",name:"action"}))),this.hasActions&&!c()&&e("mds-table-cell",{key:"34b3e5bd99ab221249fb3315463c43a5e94f7ec8",class:"actions-cell"},e("div",{key:"caa9459c5c9f85c8b1e1324b9323896d63120d65",class:"actions-sizer",style:{minHeight:"1px",maxWidth:this.sizerWidth,minWidth:this.sizerWidth}}),e("div",{key:"82d8b7ffa26e5e30858da01c0cb3ce26bf33caf4",class:"actions-view"},e("div",{key:"52e14745af69b6d9e68c1e255fc21c68756eaf24",class:"actions",ref:t=>this.actions=t,style:{marginRight:`calc(${this.sizerWidth} + var(--mds-table-cell-padding))`}},e("slot",{key:"bb78e4e64e59b8b51dc3730e9db2c4e87bffc5d1",name:"action"})))))}get host(){return a(this)}};l.style=':host{--mds-table-row-color-hover:var(--mds-table-color, rgb(var(--tone-neutral-02)));--mds-table-row-color-alt:var(--mds-table-color-alt, rgb(var(--tone-neutral-02)));--mds-table-row-background-hover:var(--mds-table-background, rgb(var(--tone-neutral)));--mds-table-row-background-alt:var(--mds-table-background-alt, rgb(var(--tone-neutral)));--mds-table-row-actions-gap:var(--mds-table-actions-gap, 1rem);-webkit-transition-duration:200ms;transition-duration:200ms;-webkit-transition-timing-function:cubic-bezier(0, 0, 0.2, 1);transition-timing-function:cubic-bezier(0, 0, 0.2, 1);color:var(--mds-table-row-color);display:table-row;position:relative;-webkit-transition-property:color;transition-property:color}.selection-cell{vertical-align:middle}.checkbox-wrapper{display:-ms-flexbox;display:flex}:host([interactive]:hover){--mds-table-row-actions-background:var(--mds-table-row-background-hover);--mds-table-row-background:var(--mds-table-row-background-hover);--mds-table-row-color:var(--mds-table-row-color-hover)}:host([selected]){--mds-table-row-background:var(--mds-table-row-background-hover);--mds-table-row-color:var(--mds-table-row-color-hover)}:host([sorted]){--mds-table-row-background:var(--mds-table-row-background-alt);--mds-table-row-color:var(--mds-table-row-color-alt)}:host([sorted][selected]){--mds-table-row-background:var(--mds-table-row-background-hover);--mds-table-row-color:var(--mds-table-row-color-hover)}.actions-view{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;inset:0;-ms-flex-pack:end;justify-content:end;pointer-events:none;position:absolute}.actions{--mds-table-row-actions-background:var(--mds-table-row-background);-ms-flex-align:center;align-items:center;background-color:var(--mds-table-row-actions-background);border-bottom-left-radius:calc(0.5rem + var(--mds-table-border-width) * 2);border-top-left-radius:calc(0.5rem + var(--mds-table-border-width) * 2);display:-ms-inline-flexbox;display:inline-flex;gap:var(--mds-table-row-actions-gap);inset:0;margin-right:100%;padding:calc(var(--mds-table-border-width) * 2);padding-right:0;pointer-events:auto;position:-webkit-sticky;position:sticky;right:0;-webkit-transform:translateX(100%);transform:translateX(100%);-webkit-transition-duration:500ms;transition-duration:500ms;-webkit-transition-property:background-color, padding-right, -webkit-transform;transition-property:background-color, padding-right, -webkit-transform;transition-property:transform, background-color, padding-right;transition-property:transform, background-color, padding-right, -webkit-transform;-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1)}:host(:hover) .actions{-webkit-transform:translateX(100%);transform:translateX(100%)}:host([overlay-actions]) .actions{padding-right:var(--mds-table-cell-padding);-webkit-transform:translateX(100%);transform:translateX(100%)}:host([overlay-actions]:hover) .actions{--mds-table-row-actions-background:var(--mds-table-row-background);-webkit-transform:translateX(0);transform:translateX(0)}:host-context(mds-table[interactive="false"]):host(:hover) .actions,:host-context(mds-table:not([interactive])):host(:hover) .actions{--mds-table-row-actions-background:var(--mds-table-row-background-hover)}:host-context(mds-table[selection]:not([interactive])):host(:not([selected]):hover) .actions,:host-context(mds-table[selection][interactive="false"]):host(:not([selected]):hover) .actions,:host-context(mds-table[selection]:not([interactive])):host([selected="false"]:hover) .actions,:host-context(mds-table[selection][interactive="false"]):host([selected="false"]:hover) .actions{--mds-table-row-actions-background:var(--mds-table-row-background-alt)}.actions-cell--disable,.actions-cell--disable .actions{position:static !important}.actions-cell--disable .actions{margin-right:0 !important;-webkit-transform:translateX(0) !important;transform:translateX(0) !important}:host-context(.pref-animation-reduce){-webkit-transition-duration:0s;transition-duration:0s}@media (prefers-reduced-motion){:host-context(.pref-animation-system){-webkit-transition-duration:0s;transition-duration:0s}}:host(:not(:is([hydrated],.hydrated))){-webkit-animation-duration:0s;animation-duration:0s;border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;opacity:0;outline-color:transparent;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s;visibility:hidden}mds-accordion:not(:is([hydrated],.hydrated)),mds-accordion-item:not(:is([hydrated],.hydrated)),mds-accordion-timer:not(:is([hydrated],.hydrated)),mds-accordion-timer-item:not(:is([hydrated],.hydrated)),mds-author:not(:is([hydrated],.hydrated)),mds-avatar:not(:is([hydrated],.hydrated)),mds-badge:not(:is([hydrated],.hydrated)),mds-banner:not(:is([hydrated],.hydrated)),mds-benchmark-bar:not(:is([hydrated],.hydrated)),mds-bibliography:not(:is([hydrated],.hydrated)),mds-breadcrumb:not(:is([hydrated],.hydrated)),mds-breadcrumb-item:not(:is([hydrated],.hydrated)),mds-button:not(:is([hydrated],.hydrated)),mds-card:not(:is([hydrated],.hydrated)),mds-card-content:not(:is([hydrated],.hydrated)),mds-card-footer:not(:is([hydrated],.hydrated)),mds-card-header:not(:is([hydrated],.hydrated)),mds-card-media:not(:is([hydrated],.hydrated)),mds-chip:not(:is([hydrated],.hydrated)),mds-details:not(:is([hydrated],.hydrated)),mds-dropdown:not(:is([hydrated],.hydrated)),mds-entity:not(:is([hydrated],.hydrated)),mds-file:not(:is([hydrated],.hydrated)),mds-file-preview:not(:is([hydrated],.hydrated)),mds-filter:not(:is([hydrated],.hydrated)),mds-filter-item:not(:is([hydrated],.hydrated)),mds-header:not(:is([hydrated],.hydrated)),mds-header-bar:not(:is([hydrated],.hydrated)),mds-help:not(:is([hydrated],.hydrated)),mds-horizontal-scroll:not(:is([hydrated],.hydrated)),mds-hr:not(:is([hydrated],.hydrated)),mds-icon:not(:is([hydrated],.hydrated)),mds-img:not(:is([hydrated],.hydrated)),mds-input:not(:is([hydrated],.hydrated)),mds-input-field:not(:is([hydrated],.hydrated)),mds-input-range:not(:is([hydrated],.hydrated)),mds-input-select:not(:is([hydrated],.hydrated)),mds-input-switch:not(:is([hydrated],.hydrated)),mds-input-tip:not(:is([hydrated],.hydrated)),mds-input-tip-item:not(:is([hydrated],.hydrated)),mds-input-upload:not(:is([hydrated],.hydrated)),mds-keyboard:not(:is([hydrated],.hydrated)),mds-keyboard-key:not(:is([hydrated],.hydrated)),mds-kpi:not(:is([hydrated],.hydrated)),mds-kpi-item:not(:is([hydrated],.hydrated)),mds-label:not(:is([hydrated],.hydrated)),mds-list:not(:is([hydrated],.hydrated)),mds-list-item:not(:is([hydrated],.hydrated)),mds-modal:not(:is([hydrated],.hydrated)),mds-note:not(:is([hydrated],.hydrated)),mds-notification:not(:is([hydrated],.hydrated)),mds-paginator:not(:is([hydrated],.hydrated)),mds-paginator-item:not(:is([hydrated],.hydrated)),mds-pref:not(:is([hydrated],.hydrated)),mds-pref-animation:not(:is([hydrated],.hydrated)),mds-pref-consumption:not(:is([hydrated],.hydrated)),mds-pref-contrast:not(:is([hydrated],.hydrated)),mds-pref-language:not(:is([hydrated],.hydrated)),mds-pref-language-item:not(:is([hydrated],.hydrated)),mds-pref-theme:not(:is([hydrated],.hydrated)),mds-price-table:not(:is([hydrated],.hydrated)),mds-price-table-features:not(:is([hydrated],.hydrated)),mds-price-table-features-cell:not(:is([hydrated],.hydrated)),mds-price-table-features-row:not(:is([hydrated],.hydrated)),mds-price-table-header:not(:is([hydrated],.hydrated)),mds-price-table-list:not(:is([hydrated],.hydrated)),mds-price-table-list-item:not(:is([hydrated],.hydrated)),mds-progress:not(:is([hydrated],.hydrated)),mds-push-notification:not(:is([hydrated],.hydrated)),mds-push-notifications:not(:is([hydrated],.hydrated)),mds-quote:not(:is([hydrated],.hydrated)),mds-separator:not(:is([hydrated],.hydrated)),mds-spinner:not(:is([hydrated],.hydrated)),mds-stepper-bar:not(:is([hydrated],.hydrated)),mds-stepper-bar-item:not(:is([hydrated],.hydrated)),mds-tab:not(:is([hydrated],.hydrated)),mds-tab-bar:not(:is([hydrated],.hydrated)),mds-tab-bar-item:not(:is([hydrated],.hydrated)),mds-tab-item:not(:is([hydrated],.hydrated)),mds-table:not(:is([hydrated],.hydrated)),mds-table-body:not(:is([hydrated],.hydrated)),mds-table-cell:not(:is([hydrated],.hydrated)),mds-table-footer:not(:is([hydrated],.hydrated)),mds-table-header:not(:is([hydrated],.hydrated)),mds-table-header-cell:not(:is([hydrated],.hydrated)),mds-table-row:not(:is([hydrated],.hydrated)),mds-text:not(:is([hydrated],.hydrated)),mds-toast:not(:is([hydrated],.hydrated)),mds-tooltip:not(:is([hydrated],.hydrated)),mds-tree:not(:is([hydrated],.hydrated)),mds-tree-item:not(:is([hydrated],.hydrated)),mds-url-view:not(:is([hydrated],.hydrated)),mds-usage:not(:is([hydrated],.hydrated)),mds-video-wall:not(:is([hydrated],.hydrated)),mds-zero:not(:is([hydrated],.hydrated)){-webkit-animation-duration:0s;animation-duration:0s;border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;opacity:0;outline-color:transparent;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s;visibility:hidden}';export{l as mds_table_row}
@@ -1 +1 @@
1
- var __awaiter=this&&this.__awaiter||function(t,e,n,r){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,c){function u(t){try{a(r.next(t))}catch(t){c(t)}}function o(t){try{a(r["throw"](t))}catch(t){c(t)}}function a(t){t.done?n(t.value):i(t.value).then(u,o)}a((r=r.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(c[0]&1)throw c[1];return c[1]},trys:[],ops:[]},r,i,c,u;return u={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(u[Symbol.iterator]=function(){return this}),u;function o(t){return function(e){return a([t,e])}}function a(o){if(r)throw new TypeError("Generator is already executing.");while(u&&(u=0,o[0]&&(n=0)),n)try{if(r=1,i&&(c=o[0]&2?i["return"]:o[0]?i["throw"]||((c=i["return"])&&c.call(i),0):i.next)&&!(c=c.call(i,o[1])).done)return c;if(i=0,c)o=[o[0]&2,c.value];switch(o[0]){case 0:case 1:c=o;break;case 4:n.label++;return{value:o[1],done:false};case 5:n.label++;i=o[1];o=[0];continue;case 7:o=n.ops.pop();n.trys.pop();continue;default:if(!(c=n.trys,c=c.length>0&&c[c.length-1])&&(o[0]===6||o[0]===2)){n=0;continue}if(o[0]===3&&(!c||o[1]>c[0]&&o[1]<c[3])){n.label=o[1];break}if(o[0]===6&&n.label<c[1]){n.label=c[1];c=o;break}if(c&&n.label<c[2]){n.label=c[2];n.ops.push(o);break}if(c[2])n.ops.pop();n.trys.pop();continue}o=e.call(t,n)}catch(t){o=[6,t];i=0}finally{r=c=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};System.register(["./p-f835b87d.system.js","./p-56ba5cbf.system.js"],(function(t,e){"use strict";var n,r,i;return{setters:[function(e){n=e.p;r=e.b;t("setNonce",e.s)},function(t){i=t.g}],execute:function(){var t=this;var c=function(){var t=e.meta.url;var r={};if(t!==""){r.resourcesUrl=new URL(".",t).href}return n(r)};c().then((function(e){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:return[4,i()];case 1:t.sent();return[2,r([["p-fbe91c6f.system",[[1,"mds-table-row",{interactive:[516],overlayActions:[516,"overlay-actions"],selectable:[516],selected:[1540],value:[520],sizerWidth:[32],language:[32],updateLang:[64]}]]]],e)]}}))}))}))}}}));
1
+ var __awaiter=this&&this.__awaiter||function(t,n,e,r){function i(t){return t instanceof e?t:new e((function(n){n(t)}))}return new(e||(e=Promise))((function(e,c){function u(t){try{a(r.next(t))}catch(t){c(t)}}function o(t){try{a(r["throw"](t))}catch(t){c(t)}}function a(t){t.done?e(t.value):i(t.value).then(u,o)}a((r=r.apply(t,n||[])).next())}))};var __generator=this&&this.__generator||function(t,n){var e={label:0,sent:function(){if(c[0]&1)throw c[1];return c[1]},trys:[],ops:[]},r,i,c,u;return u={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(u[Symbol.iterator]=function(){return this}),u;function o(t){return function(n){return a([t,n])}}function a(o){if(r)throw new TypeError("Generator is already executing.");while(u&&(u=0,o[0]&&(e=0)),e)try{if(r=1,i&&(c=o[0]&2?i["return"]:o[0]?i["throw"]||((c=i["return"])&&c.call(i),0):i.next)&&!(c=c.call(i,o[1])).done)return c;if(i=0,c)o=[o[0]&2,c.value];switch(o[0]){case 0:case 1:c=o;break;case 4:e.label++;return{value:o[1],done:false};case 5:e.label++;i=o[1];o=[0];continue;case 7:o=e.ops.pop();e.trys.pop();continue;default:if(!(c=e.trys,c=c.length>0&&c[c.length-1])&&(o[0]===6||o[0]===2)){e=0;continue}if(o[0]===3&&(!c||o[1]>c[0]&&o[1]<c[3])){e.label=o[1];break}if(o[0]===6&&e.label<c[1]){e.label=c[1];c=o;break}if(c&&e.label<c[2]){e.label=c[2];e.ops.push(o);break}if(c[2])e.ops.pop();e.trys.pop();continue}o=n.call(t,e)}catch(t){o=[6,t];i=0}finally{r=c=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};System.register(["./p-f835b87d.system.js","./p-56ba5cbf.system.js"],(function(t,n){"use strict";var e,r,i;return{setters:[function(n){e=n.p;r=n.b;t("setNonce",n.s)},function(t){i=t.g}],execute:function(){var t=this;var c=function(){var t=n.meta.url;var r={};if(t!==""){r.resourcesUrl=new URL(".",t).href}return e(r)};c().then((function(n){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:return[4,i()];case 1:t.sent();return[2,r([["p-fc4793d9.system",[[1,"mds-table-row",{interactive:[516],overlayActions:[516,"overlay-actions"],selectable:[516],selected:[1540],value:[520],sizerWidth:[32],language:[32],updateLang:[64]}]]]],n)]}}))}))}))}}}));
@@ -0,0 +1,6 @@
1
+ var __awaiter=this&&this.__awaiter||function(t,e,r,a){function n(t){return t instanceof r?t:new r((function(e){e(t)}))}return new(r||(r=Promise))((function(r,i){function d(t){try{o(a.next(t))}catch(t){i(t)}}function s(t){try{o(a["throw"](t))}catch(t){i(t)}}function o(t){t.done?r(t.value):n(t.value).then(d,s)}o((a=a.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},a,n,i,d;return d={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(d[Symbol.iterator]=function(){return this}),d;function s(t){return function(e){return o([t,e])}}function o(s){if(a)throw new TypeError("Generator is already executing.");while(d&&(d=0,s[0]&&(r=0)),r)try{if(a=1,n&&(i=s[0]&2?n["return"]:s[0]?n["throw"]||((i=n["return"])&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;if(n=0,i)s=[s[0]&2,i.value];switch(s[0]){case 0:case 1:i=s;break;case 4:r.label++;return{value:s[1],done:false};case 5:r.label++;n=s[1];s=[0];continue;case 7:s=r.ops.pop();r.trys.pop();continue;default:if(!(i=r.trys,i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){r.label=s[1];break}if(s[0]===6&&r.label<i[1]){r.label=i[1];i=s;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(s);break}if(i[2])r.ops.pop();r.trys.pop();continue}s=e.call(t,r)}catch(t){s=[6,t];n=0}finally{a=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};System.register(["./p-f835b87d.system.js"],(function(t){"use strict";var e,r,a,n;return{setters:[function(t){e=t.r;r=t.h;a=t.H;n=t.g}],execute:function(){var i=typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};var d={exports:{}};(function(t,e){(function(e,r){t.exports=r()})(i,(function(){
2
+ /*!
3
+ * mustache.js - Logic-less {{mustache}} templates with JavaScript
4
+ * http://github.com/janl/mustache.js
5
+ */
6
+ var t=Object.prototype.toString;var e=Array.isArray||function e(r){return t.call(r)==="[object Array]"};function r(t){return typeof t==="function"}function a(t){return e(t)?"array":typeof t}function n(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function i(t,e){return t!=null&&typeof t==="object"&&e in t}function d(t,e){return t!=null&&typeof t!=="object"&&t.hasOwnProperty&&t.hasOwnProperty(e)}var s=RegExp.prototype.test;function o(t,e){return s.call(t,e)}var h=/\S/;function c(t){return!o(h,t)}var l={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"};function f(t){return String(t).replace(/[&<>"'`=\/]/g,(function t(e){return l[e]}))}var u=/\s*/;var y=/\s+/;var b=/\s*=/;var m=/\s*\}/;var v=/#|\^|\/|>|\{|&|=|!/;function p(t,r){if(!t)return[];var a=false;var i=[];var d=[];var s=[];var o=false;var h=false;var l="";var f=0;function p(){if(o&&!h){while(s.length)delete d[s.pop()]}else{s=[]}o=false;h=false}var x,R,E;function S(t){if(typeof t==="string")t=t.split(y,2);if(!e(t)||t.length!==2)throw new Error("Invalid tags: "+t);x=new RegExp(n(t[0])+"\\s*");R=new RegExp("\\s*"+n(t[1]));E=new RegExp("\\s*"+n("}"+t[1]))}S(r||j.tags);var _=new k(t);var z,X,C,T,D,O;while(!_.eos()){z=_.pos;C=_.scanUntil(x);if(C){for(var U=0,A=C.length;U<A;++U){T=C.charAt(U);if(c(T)){s.push(d.length);l+=T}else{h=true;a=true;l+=" "}d.push(["text",T,z,z+1]);z+=1;if(T==="\n"){p();l="";f=0;a=false}}}if(!_.scan(x))break;o=true;X=_.scan(v)||"name";_.scan(u);if(X==="="){C=_.scanUntil(b);_.scan(b);_.scanUntil(R)}else if(X==="{"){C=_.scanUntil(E);_.scan(m);_.scanUntil(R);X="&"}else{C=_.scanUntil(R)}if(!_.scan(R))throw new Error("Unclosed tag at "+_.pos);if(X==">"){D=[X,C,z,_.pos,l,f,a]}else{D=[X,C,z,_.pos]}f++;d.push(D);if(X==="#"||X==="^"){i.push(D)}else if(X==="/"){O=i.pop();if(!O)throw new Error('Unopened section "'+C+'" at '+z);if(O[1]!==C)throw new Error('Unclosed section "'+O[1]+'" at '+z)}else if(X==="name"||X==="{"||X==="&"){h=true}else if(X==="="){S(C)}}p();O=i.pop();if(O)throw new Error('Unclosed section "'+O[1]+'" at '+_.pos);return g(w(d))}function w(t){var e=[];var r,a;for(var n=0,i=t.length;n<i;++n){r=t[n];if(r){if(r[0]==="text"&&a&&a[0]==="text"){a[1]+=r[1];a[3]=r[3]}else{e.push(r);a=r}}}return e}function g(t){var e=[];var r=e;var a=[];var n,i;for(var d=0,s=t.length;d<s;++d){n=t[d];switch(n[0]){case"#":case"^":r.push(n);a.push(n);r=n[4]=[];break;case"/":i=a.pop();i[5]=n[2];r=a.length>0?a[a.length-1][4]:e;break;default:r.push(n)}}return e}function k(t){this.string=t;this.tail=t;this.pos=0}k.prototype.eos=function t(){return this.tail===""};k.prototype.scan=function t(e){var r=this.tail.match(e);if(!r||r.index!==0)return"";var a=r[0];this.tail=this.tail.substring(a.length);this.pos+=a.length;return a};k.prototype.scanUntil=function t(e){var r=this.tail.search(e),a;switch(r){case-1:a=this.tail;this.tail="";break;case 0:a="";break;default:a=this.tail.substring(0,r);this.tail=this.tail.substring(r)}this.pos+=a.length;return a};function x(t,e){this.view=t;this.cache={".":this.view};this.parent=e}x.prototype.push=function t(e){return new x(e,this)};x.prototype.lookup=function t(e){var a=this.cache;var n;if(a.hasOwnProperty(e)){n=a[e]}else{var s=this,o,h,c,l=false;while(s){if(e.indexOf(".")>0){o=s.view;h=e.split(".");c=0;while(o!=null&&c<h.length){if(c===h.length-1)l=i(o,h[c])||d(o,h[c]);o=o[h[c++]]}}else{o=s.view[e];l=i(s.view,e)}if(l){n=o;break}s=s.parent}a[e]=n}if(r(n))n=n.call(this.view);return n};function R(){this.templateCache={_cache:{},set:function t(e,r){this._cache[e]=r},get:function t(e){return this._cache[e]},clear:function t(){this._cache={}}}}R.prototype.clearCache=function t(){if(typeof this.templateCache!=="undefined"){this.templateCache.clear()}};R.prototype.parse=function t(e,r){var a=this.templateCache;var n=e+":"+(r||j.tags).join(":");var i=typeof a!=="undefined";var d=i?a.get(n):undefined;if(d==undefined){d=p(e,r);i&&a.set(n,d)}return d};R.prototype.render=function t(e,r,a,n){var i=this.getConfigTags(n);var d=this.parse(e,i);var s=r instanceof x?r:new x(r,undefined);return this.renderTokens(d,s,a,e,n)};R.prototype.renderTokens=function t(e,r,a,n,i){var d="";var s,o,h;for(var c=0,l=e.length;c<l;++c){h=undefined;s=e[c];o=s[0];if(o==="#")h=this.renderSection(s,r,a,n,i);else if(o==="^")h=this.renderInverted(s,r,a,n,i);else if(o===">")h=this.renderPartial(s,r,a,i);else if(o==="&")h=this.unescapedValue(s,r);else if(o==="name")h=this.escapedValue(s,r,i);else if(o==="text")h=this.rawValue(s);if(h!==undefined)d+=h}return d};R.prototype.renderSection=function t(a,n,i,d,s){var o=this;var h="";var c=n.lookup(a[1]);function l(t){return o.render(t,n,i,s)}if(!c)return;if(e(c)){for(var f=0,u=c.length;f<u;++f){h+=this.renderTokens(a[4],n.push(c[f]),i,d,s)}}else if(typeof c==="object"||typeof c==="string"||typeof c==="number"){h+=this.renderTokens(a[4],n.push(c),i,d,s)}else if(r(c)){if(typeof d!=="string")throw new Error("Cannot use higher-order sections without the original template");c=c.call(n.view,d.slice(a[3],a[5]),l);if(c!=null)h+=c}else{h+=this.renderTokens(a[4],n,i,d,s)}return h};R.prototype.renderInverted=function t(r,a,n,i,d){var s=a.lookup(r[1]);if(!s||e(s)&&s.length===0)return this.renderTokens(r[4],a,n,i,d)};R.prototype.indentPartial=function t(e,r,a){var n=r.replace(/[^ \t]/g,"");var i=e.split("\n");for(var d=0;d<i.length;d++){if(i[d].length&&(d>0||!a)){i[d]=n+i[d]}}return i.join("\n")};R.prototype.renderPartial=function t(e,a,n,i){if(!n)return;var d=this.getConfigTags(i);var s=r(n)?n(e[1]):n[e[1]];if(s!=null){var o=e[6];var h=e[5];var c=e[4];var l=s;if(h==0&&c){l=this.indentPartial(s,c,o)}var f=this.parse(l,d);return this.renderTokens(f,a,n,l,i)}};R.prototype.unescapedValue=function t(e,r){var a=r.lookup(e[1]);if(a!=null)return a};R.prototype.escapedValue=function t(e,r,a){var n=this.getConfigEscape(a)||j.escape;var i=r.lookup(e[1]);if(i!=null)return typeof i==="number"&&n===j.escape?String(i):n(i)};R.prototype.rawValue=function t(e){return e[1]};R.prototype.getConfigTags=function t(r){if(e(r)){return r}else if(r&&typeof r==="object"){return r.tags}else{return undefined}};R.prototype.getConfigEscape=function t(r){if(r&&typeof r==="object"&&!e(r)){return r.escape}else{return undefined}};var j={name:"mustache.js",version:"4.2.0",tags:["{{","}}"],clearCache:undefined,escape:undefined,parse:undefined,render:undefined,Scanner:undefined,Context:undefined,Writer:undefined,set templateCache(t){E.templateCache=t},get templateCache(){return E.templateCache}};var E=new R;j.clearCache=function t(){return E.clearCache()};j.parse=function t(e,r){return E.parse(e,r)};j.render=function t(e,r,n,i){if(typeof e!=="string"){throw new TypeError('Invalid template! Template should be a "string" '+'but "'+a(e)+'" was given as the first '+"argument for mustache#render(template, view, partials)")}return E.render(e,r,n,i)};j.escape=f;j.Scanner=k;j.Context=x;j.Writer=R;return j}))})(d);var s=function(){function t(t){var e=this;this.rollbackLanguage="en";this.set=function(t){e.config=t};this.lang=function(t){e.element=t;e.closestElement=e.element.closest("[lang]");if(e.closestElement){if(e.closestElement.lang){e.language=e.closestElement.lang;return e.language}}e.language=e.rollbackLanguage;return e.language};this.update=function(t){var r=t!==null&&t!==void 0?t:e.element.shadowRoot;if(r){r.querySelectorAll("*").forEach((function(t){if(t.tagName.toLowerCase().startsWith("mds-")){if(t&&"updateLang"in t){t.updateLang()}}}))}};this.pluralize=function(t,r){var a=e.config[e.language]?e.config[e.language][t]:e.config[e.rollbackLanguage][t];var n=[];if(Array.isArray(a)){n.push(a[0]);n.push(a[1])}else{n.push(a);n.push(a)}var i=n[0];var s=i;var o=Object.keys(r);if(o.length>0){var h=o[0];if(typeof r[h]==="number"){if(r[h]!==1){s=n[1]}}}return d.exports.render(s,r)};this.get=function(t,r){if(r){return e.pluralize(t,r)}return e.config[e.language]?e.config[e.language][t]:e.config[e.rollbackLanguage][t]};if(t){this.set(t)}}return t}();var o="Επιλογή γραμμής";var h="Αποεπιλογή γραμμής";var c={selectRow:o,unselectRow:h};var l="Select row";var f="Deselect row";var u={selectRow:l,unselectRow:f};var y="Seleccionar fila";var b="Deseleccionar fila";var m={selectRow:y,unselectRow:b};var v="Seleziona riga";var p="Deseleziona riga";var w={selectRow:v,unselectRow:p};var g=function(){if(navigator){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}return false};var k=':host{--mds-table-row-color-hover:var(--mds-table-color, rgb(var(--tone-neutral-02)));--mds-table-row-color-alt:var(--mds-table-color-alt, rgb(var(--tone-neutral-02)));--mds-table-row-background-hover:var(--mds-table-background, rgb(var(--tone-neutral)));--mds-table-row-background-alt:var(--mds-table-background-alt, rgb(var(--tone-neutral)));--mds-table-row-actions-gap:var(--mds-table-actions-gap, 1rem);-webkit-transition-duration:200ms;transition-duration:200ms;-webkit-transition-timing-function:cubic-bezier(0, 0, 0.2, 1);transition-timing-function:cubic-bezier(0, 0, 0.2, 1);color:var(--mds-table-row-color);display:table-row;position:relative;-webkit-transition-property:color;transition-property:color}.selection-cell{vertical-align:middle}.checkbox-wrapper{display:-ms-flexbox;display:flex}:host([interactive]:hover){--mds-table-row-actions-background:var(--mds-table-row-background-hover);--mds-table-row-background:var(--mds-table-row-background-hover);--mds-table-row-color:var(--mds-table-row-color-hover)}:host([selected]){--mds-table-row-background:var(--mds-table-row-background-hover);--mds-table-row-color:var(--mds-table-row-color-hover)}:host([sorted]){--mds-table-row-background:var(--mds-table-row-background-alt);--mds-table-row-color:var(--mds-table-row-color-alt)}:host([sorted][selected]){--mds-table-row-background:var(--mds-table-row-background-hover);--mds-table-row-color:var(--mds-table-row-color-hover)}.actions-view{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;inset:0;-ms-flex-pack:end;justify-content:end;pointer-events:none;position:absolute}.actions{--mds-table-row-actions-background:var(--mds-table-row-background);-ms-flex-align:center;align-items:center;background-color:var(--mds-table-row-actions-background);border-bottom-left-radius:calc(0.5rem + var(--mds-table-border-width) * 2);border-top-left-radius:calc(0.5rem + var(--mds-table-border-width) * 2);display:-ms-inline-flexbox;display:inline-flex;gap:var(--mds-table-row-actions-gap);inset:0;margin-right:100%;padding:calc(var(--mds-table-border-width) * 2);padding-right:0;pointer-events:auto;position:-webkit-sticky;position:sticky;right:0;-webkit-transform:translateX(100%);transform:translateX(100%);-webkit-transition-duration:500ms;transition-duration:500ms;-webkit-transition-property:background-color, padding-right, -webkit-transform;transition-property:background-color, padding-right, -webkit-transform;transition-property:transform, background-color, padding-right;transition-property:transform, background-color, padding-right, -webkit-transform;-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1)}:host(:hover) .actions{-webkit-transform:translateX(100%);transform:translateX(100%)}:host([overlay-actions]) .actions{padding-right:var(--mds-table-cell-padding);-webkit-transform:translateX(100%);transform:translateX(100%)}:host([overlay-actions]:hover) .actions{--mds-table-row-actions-background:var(--mds-table-row-background);-webkit-transform:translateX(0);transform:translateX(0)}:host-context(mds-table[interactive="false"]):host(:hover) .actions,:host-context(mds-table:not([interactive])):host(:hover) .actions{--mds-table-row-actions-background:var(--mds-table-row-background-hover)}:host-context(mds-table[selection]:not([interactive])):host(:not([selected]):hover) .actions,:host-context(mds-table[selection][interactive="false"]):host(:not([selected]):hover) .actions,:host-context(mds-table[selection]:not([interactive])):host([selected="false"]:hover) .actions,:host-context(mds-table[selection][interactive="false"]):host([selected="false"]:hover) .actions{--mds-table-row-actions-background:var(--mds-table-row-background-alt)}.actions-cell--disable,.actions-cell--disable .actions{position:static !important}.actions-cell--disable .actions{margin-right:0 !important;-webkit-transform:translateX(0) !important;transform:translateX(0) !important}:host-context(.pref-animation-reduce){-webkit-transition-duration:0s;transition-duration:0s}@media (prefers-reduced-motion){:host-context(.pref-animation-system){-webkit-transition-duration:0s;transition-duration:0s}}:host(:not(:is([hydrated],.hydrated))){-webkit-animation-duration:0s;animation-duration:0s;border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;opacity:0;outline-color:transparent;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s;visibility:hidden}mds-accordion:not(:is([hydrated],.hydrated)),mds-accordion-item:not(:is([hydrated],.hydrated)),mds-accordion-timer:not(:is([hydrated],.hydrated)),mds-accordion-timer-item:not(:is([hydrated],.hydrated)),mds-author:not(:is([hydrated],.hydrated)),mds-avatar:not(:is([hydrated],.hydrated)),mds-badge:not(:is([hydrated],.hydrated)),mds-banner:not(:is([hydrated],.hydrated)),mds-benchmark-bar:not(:is([hydrated],.hydrated)),mds-bibliography:not(:is([hydrated],.hydrated)),mds-breadcrumb:not(:is([hydrated],.hydrated)),mds-breadcrumb-item:not(:is([hydrated],.hydrated)),mds-button:not(:is([hydrated],.hydrated)),mds-card:not(:is([hydrated],.hydrated)),mds-card-content:not(:is([hydrated],.hydrated)),mds-card-footer:not(:is([hydrated],.hydrated)),mds-card-header:not(:is([hydrated],.hydrated)),mds-card-media:not(:is([hydrated],.hydrated)),mds-chip:not(:is([hydrated],.hydrated)),mds-details:not(:is([hydrated],.hydrated)),mds-dropdown:not(:is([hydrated],.hydrated)),mds-entity:not(:is([hydrated],.hydrated)),mds-file:not(:is([hydrated],.hydrated)),mds-file-preview:not(:is([hydrated],.hydrated)),mds-filter:not(:is([hydrated],.hydrated)),mds-filter-item:not(:is([hydrated],.hydrated)),mds-header:not(:is([hydrated],.hydrated)),mds-header-bar:not(:is([hydrated],.hydrated)),mds-help:not(:is([hydrated],.hydrated)),mds-horizontal-scroll:not(:is([hydrated],.hydrated)),mds-hr:not(:is([hydrated],.hydrated)),mds-icon:not(:is([hydrated],.hydrated)),mds-img:not(:is([hydrated],.hydrated)),mds-input:not(:is([hydrated],.hydrated)),mds-input-field:not(:is([hydrated],.hydrated)),mds-input-range:not(:is([hydrated],.hydrated)),mds-input-select:not(:is([hydrated],.hydrated)),mds-input-switch:not(:is([hydrated],.hydrated)),mds-input-tip:not(:is([hydrated],.hydrated)),mds-input-tip-item:not(:is([hydrated],.hydrated)),mds-input-upload:not(:is([hydrated],.hydrated)),mds-keyboard:not(:is([hydrated],.hydrated)),mds-keyboard-key:not(:is([hydrated],.hydrated)),mds-kpi:not(:is([hydrated],.hydrated)),mds-kpi-item:not(:is([hydrated],.hydrated)),mds-label:not(:is([hydrated],.hydrated)),mds-list:not(:is([hydrated],.hydrated)),mds-list-item:not(:is([hydrated],.hydrated)),mds-modal:not(:is([hydrated],.hydrated)),mds-note:not(:is([hydrated],.hydrated)),mds-notification:not(:is([hydrated],.hydrated)),mds-paginator:not(:is([hydrated],.hydrated)),mds-paginator-item:not(:is([hydrated],.hydrated)),mds-pref:not(:is([hydrated],.hydrated)),mds-pref-animation:not(:is([hydrated],.hydrated)),mds-pref-consumption:not(:is([hydrated],.hydrated)),mds-pref-contrast:not(:is([hydrated],.hydrated)),mds-pref-language:not(:is([hydrated],.hydrated)),mds-pref-language-item:not(:is([hydrated],.hydrated)),mds-pref-theme:not(:is([hydrated],.hydrated)),mds-price-table:not(:is([hydrated],.hydrated)),mds-price-table-features:not(:is([hydrated],.hydrated)),mds-price-table-features-cell:not(:is([hydrated],.hydrated)),mds-price-table-features-row:not(:is([hydrated],.hydrated)),mds-price-table-header:not(:is([hydrated],.hydrated)),mds-price-table-list:not(:is([hydrated],.hydrated)),mds-price-table-list-item:not(:is([hydrated],.hydrated)),mds-progress:not(:is([hydrated],.hydrated)),mds-push-notification:not(:is([hydrated],.hydrated)),mds-push-notifications:not(:is([hydrated],.hydrated)),mds-quote:not(:is([hydrated],.hydrated)),mds-separator:not(:is([hydrated],.hydrated)),mds-spinner:not(:is([hydrated],.hydrated)),mds-stepper-bar:not(:is([hydrated],.hydrated)),mds-stepper-bar-item:not(:is([hydrated],.hydrated)),mds-tab:not(:is([hydrated],.hydrated)),mds-tab-bar:not(:is([hydrated],.hydrated)),mds-tab-bar-item:not(:is([hydrated],.hydrated)),mds-tab-item:not(:is([hydrated],.hydrated)),mds-table:not(:is([hydrated],.hydrated)),mds-table-body:not(:is([hydrated],.hydrated)),mds-table-cell:not(:is([hydrated],.hydrated)),mds-table-footer:not(:is([hydrated],.hydrated)),mds-table-header:not(:is([hydrated],.hydrated)),mds-table-header-cell:not(:is([hydrated],.hydrated)),mds-table-row:not(:is([hydrated],.hydrated)),mds-text:not(:is([hydrated],.hydrated)),mds-toast:not(:is([hydrated],.hydrated)),mds-tooltip:not(:is([hydrated],.hydrated)),mds-tree:not(:is([hydrated],.hydrated)),mds-tree-item:not(:is([hydrated],.hydrated)),mds-url-view:not(:is([hydrated],.hydrated)),mds-usage:not(:is([hydrated],.hydrated)),mds-video-wall:not(:is([hydrated],.hydrated)),mds-zero:not(:is([hydrated],.hydrated)){-webkit-animation-duration:0s;animation-duration:0s;border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;opacity:0;outline-color:transparent;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s;visibility:hidden}';var x=k;var R=t("mds_table_row",function(){function t(t){var r=this;e(this,t);this.hasActions=true;this.t=new s({el:c,en:u,es:m,it:w});this.selectable=undefined;this.handleSelectionChange=function(t){var e;r.selected=t.detail.checked;(e=r.host.closest("mds-table"))===null||e===void 0?void 0:e.updateSelection()}}t.prototype.updateLang=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.language=this.t.lang(this.host);this.t.update();return[2]}))}))};t.prototype.componentWillLoad=function(){this.language=this.t.lang(this.host);this.hasActions=this.host.querySelector(':scope > [slot="action"]')!==null};t.prototype.componentDidLoad=function(){if(this.hasActions)this.initObserver()};t.prototype.initObserver=function(){var t=this;this.observer=new ResizeObserver((function(e){t.sizerWidth="".concat(e[0].borderBoxSize[0].inlineSize.toString(),"px")}));this.observer.observe(this.actions)};t.prototype.disconnectedCallback=function(){this.observer.disconnect()};t.prototype.render=function(){var t=this;return r(a,{key:"277b0609922308962be67d5223876d6be4ea321b",role:"row"},this.selectable&&r("mds-table-cell",{key:"33f896d45cd10ea97413982185b77d7e239347c3",class:"selection-cell"},r("div",{key:"070e43bcb4f866baace272dd324675d659f40ec5",class:"checkbox-wrapper"},r("mds-input-switch",{key:"07ac8bbacf6cf4d56181bf9ce3be7102ddb82b01",title:this.t.get(this.selected?"unselectRow":"selectRow"),lang:this.language,type:"checkbox",checked:this.selected,onMdsInputSwitchChange:this.handleSelectionChange}))),r("slot",{key:"c08978557b2dc6fd1cafc821339f549f29e6e3a0"}),this.hasActions&&g()&&r("mds-table-cell",{key:"1024be5f867afae4b62f9a03ef1123440db3a1d8",class:"actions-cell actions-cell--disable"},r("div",{key:"974b3a22e3a919a78b719a76519d6f079ab38510",class:"actions"},r("slot",{key:"d0500bd757bf9676eb7ae531e985498729bed2f3",name:"action"}))),this.hasActions&&!g()&&r("mds-table-cell",{key:"34b3e5bd99ab221249fb3315463c43a5e94f7ec8",class:"actions-cell"},r("div",{key:"caa9459c5c9f85c8b1e1324b9323896d63120d65",class:"actions-sizer",style:{minHeight:"1px",maxWidth:this.sizerWidth,minWidth:this.sizerWidth}}),r("div",{key:"82d8b7ffa26e5e30858da01c0cb3ce26bf33caf4",class:"actions-view"},r("div",{key:"52e14745af69b6d9e68c1e255fc21c68756eaf24",class:"actions",ref:function(e){return t.actions=e},style:{marginRight:"calc(".concat(this.sizerWidth," + var(--mds-table-cell-padding))")}},r("slot",{key:"bb78e4e64e59b8b51dc3730e9db2c4e87bffc5d1",name:"action"})))))};Object.defineProperty(t.prototype,"host",{get:function(){return n(this)},enumerable:false,configurable:true});return t}());R.style=x}}}));
package/dist/stats.json CHANGED
@@ -1,19 +1,19 @@
1
1
  {
2
- "timestamp": "2025-05-14T14:25:06",
2
+ "timestamp": "2025-12-01T11:31:45",
3
3
  "compiler": {
4
4
  "name": "node",
5
- "version": "22.11.0"
5
+ "version": "22.15.0"
6
6
  },
7
7
  "app": {
8
8
  "namespace": "MdsTableRow",
9
9
  "fsNamespace": "mds-table-row",
10
10
  "components": 1,
11
11
  "entries": 1,
12
- "bundles": 102,
12
+ "bundles": 103,
13
13
  "outputs": [
14
14
  {
15
15
  "name": "dist-collection",
16
- "files": 54,
16
+ "files": 55,
17
17
  "generatedFiles": [
18
18
  "./dist/collection/common/aria.js",
19
19
  "./dist/collection/common/browser.js",
@@ -24,6 +24,7 @@
24
24
  "./dist/collection/common/icon.js",
25
25
  "./dist/collection/common/keyboard-manager.js",
26
26
  "./dist/collection/common/locale.js",
27
+ "./dist/collection/common/number.js",
27
28
  "./dist/collection/common/slot.js",
28
29
  "./dist/collection/common/string.js",
29
30
  "./dist/collection/common/unit.js",
@@ -111,22 +112,22 @@
111
112
  "./dist/mds-table-row/p-4a407cb6.js",
112
113
  "./dist/mds-table-row/p-50ea2036.system.js",
113
114
  "./dist/mds-table-row/p-56ba5cbf.system.js",
114
- "./dist/mds-table-row/p-86e316e3.entry.js",
115
+ "./dist/mds-table-row/p-cc861814.entry.js",
115
116
  "./dist/mds-table-row/p-cd3437c0.system.js",
116
117
  "./dist/mds-table-row/p-e1255160.js",
117
118
  "./dist/mds-table-row/p-f835b87d.system.js",
118
- "./dist/mds-table-row/p-fbe91c6f.system.entry.js",
119
+ "./dist/mds-table-row/p-fc4793d9.system.entry.js",
119
120
  "./www/build/index.esm.js",
120
121
  "./www/build/mds-table-row.esm.js",
121
122
  "./www/build/mds-table-row.js",
122
123
  "./www/build/p-4a407cb6.js",
123
124
  "./www/build/p-50ea2036.system.js",
124
125
  "./www/build/p-56ba5cbf.system.js",
125
- "./www/build/p-86e316e3.entry.js",
126
+ "./www/build/p-cc861814.entry.js",
126
127
  "./www/build/p-cd3437c0.system.js",
127
128
  "./www/build/p-e1255160.js",
128
129
  "./www/build/p-f835b87d.system.js",
129
- "./www/build/p-fbe91c6f.system.entry.js"
130
+ "./www/build/p-fc4793d9.system.entry.js"
130
131
  ]
131
132
  },
132
133
  {
@@ -159,12 +160,12 @@
159
160
  "components": [
160
161
  "mds-table-row"
161
162
  ],
162
- "bundleId": "p-86e316e3",
163
- "fileName": "p-86e316e3.entry.js",
163
+ "bundleId": "p-cc861814",
164
+ "fileName": "p-cc861814.entry.js",
164
165
  "imports": [
165
166
  "p-4a407cb6.js"
166
167
  ],
167
- "originalByteSize": 41238
168
+ "originalByteSize": 41148
168
169
  }
169
170
  ],
170
171
  "esm": [
@@ -178,7 +179,7 @@
178
179
  "imports": [
179
180
  "index-f0269a3c.js"
180
181
  ],
181
- "originalByteSize": 41242
182
+ "originalByteSize": 41152
182
183
  }
183
184
  ],
184
185
  "es5": [
@@ -192,7 +193,7 @@
192
193
  "imports": [
193
194
  "index-f0269a3c.js"
194
195
  ],
195
- "originalByteSize": 41242
196
+ "originalByteSize": 41152
196
197
  }
197
198
  ],
198
199
  "system": [
@@ -201,12 +202,12 @@
201
202
  "components": [
202
203
  "mds-table-row"
203
204
  ],
204
- "bundleId": "p-fbe91c6f.system",
205
- "fileName": "p-fbe91c6f.system.entry.js",
205
+ "bundleId": "p-fc4793d9.system",
206
+ "fileName": "p-fc4793d9.system.entry.js",
206
207
  "imports": [
207
208
  "p-f835b87d.system.js"
208
209
  ],
209
- "originalByteSize": 43899
210
+ "originalByteSize": 43809
210
211
  }
211
212
  ],
212
213
  "commonjs": [
@@ -220,7 +221,7 @@
220
221
  "imports": [
221
222
  "index-16788a13.js"
222
223
  ],
223
- "originalByteSize": 41367
224
+ "originalByteSize": 41277
224
225
  }
225
226
  ]
226
227
  },
@@ -588,14 +589,14 @@
588
589
  "sourceMapPath": null,
589
590
  "hasAttributeChangedCallbackFn": false,
590
591
  "hasComponentWillLoadFn": true,
591
- "hasComponentDidLoadFn": false,
592
+ "hasComponentDidLoadFn": true,
592
593
  "hasComponentShouldUpdateFn": false,
593
594
  "hasComponentWillUpdateFn": false,
594
595
  "hasComponentDidUpdateFn": false,
595
596
  "hasComponentWillRenderFn": false,
596
597
  "hasComponentDidRenderFn": false,
597
- "hasConnectedCallbackFn": true,
598
- "hasDisconnectedCallbackFn": false,
598
+ "hasConnectedCallbackFn": false,
599
+ "hasDisconnectedCallbackFn": true,
599
600
  "hasElement": false,
600
601
  "hasEvent": false,
601
602
  "hasLifecycle": true,
@@ -684,6 +685,7 @@
684
685
  "./src/common/icon.ts": [],
685
686
  "./src/common/keyboard-manager.ts": [],
686
687
  "./src/common/locale.ts": [],
688
+ "./src/common/number.ts": [],
687
689
  "./src/common/slot.ts": [],
688
690
  "./src/common/string.ts": [],
689
691
  "./src/common/unit.ts": [],
@@ -716,8 +718,7 @@
716
718
  "./src/dictionary/file-extensions.ts": [],
717
719
  "./src/dictionary/floating-ui.ts": [],
718
720
  "./src/dictionary/icon.ts": [
719
- "./src/fixtures/icons.json",
720
- "./src/fixtures/iconsauce.json"
721
+ "./src/fixtures/icons.json"
721
722
  ],
722
723
  "./src/dictionary/input.ts": [],
723
724
  "./src/dictionary/keyboard.ts": [],
@@ -0,0 +1,2 @@
1
+ declare const randomNumber: (min: number, max: number, integer?: boolean) => number;
2
+ export { randomNumber, };
@@ -1,4 +1,5 @@
1
1
  declare const hasSlottedElements: (el: HTMLElement, name?: string) => boolean;
2
2
  declare const hasSlottedNodes: (el: HTMLElement, name?: string) => boolean;
3
3
  declare const hasSlotted: (el: HTMLElement, name?: string) => boolean;
4
- export { hasSlottedElements, hasSlottedNodes, hasSlotted, };
4
+ declare const hasSlottedContent: (el: HTMLElement, name?: string) => boolean;
5
+ export { hasSlottedElements, hasSlottedNodes, hasSlottedContent, hasSlotted, };
@@ -1,3 +1,5 @@
1
1
  declare const cssDurationToMilliseconds: (duration: string, defaultValue?: number) => number;
2
+ declare const cssDurationToSeconds: (duration: string, defaultValue?: number) => number;
2
3
  declare const cssSizeToNumber: (size: string, defaultValue?: number) => number;
3
- export { cssDurationToMilliseconds, cssSizeToNumber, };
4
+ declare const cssRotationToNumber: (size: string, defaultValue?: number) => number;
5
+ export { cssDurationToMilliseconds, cssDurationToSeconds, cssRotationToNumber, cssSizeToNumber, };
@@ -6,6 +6,7 @@ export declare class MdsTableRow {
6
6
  host: HTMLMdsTableRowElement;
7
7
  private actions;
8
8
  private hasActions;
9
+ private observer;
9
10
  sizerWidth: string;
10
11
  private t;
11
12
  language: string;
@@ -16,8 +17,9 @@ export declare class MdsTableRow {
16
17
  selected?: boolean;
17
18
  readonly value?: string | number;
18
19
  componentWillLoad(): void;
19
- connectedCallback(): void;
20
+ componentDidLoad(): void;
20
21
  private initObserver;
22
+ disconnectedCallback(): void;
21
23
  private handleSelectionChange;
22
24
  render(): any;
23
25
  }
@@ -1,7 +1,10 @@
1
1
  declare const buttonVariantDictionary: string[];
2
+ declare const buttonDropdownVariantDictionary: string[];
2
3
  declare const buttonToneVariantDictionary: string[];
4
+ declare const buttonToneMinimalVariantDictionary: string[];
3
5
  declare const buttonTargetDictionary: string[];
4
6
  declare const buttonSizeDictionary: string[];
7
+ declare const tabSizeDictionary: string[];
5
8
  declare const buttonIconPositionDictionary: string[];
6
9
  declare const buttonTypeDictionary: string[];
7
- export { buttonIconPositionDictionary, buttonSizeDictionary, buttonTargetDictionary, buttonToneVariantDictionary, buttonTypeDictionary, buttonVariantDictionary, };
10
+ export { buttonDropdownVariantDictionary, buttonIconPositionDictionary, buttonSizeDictionary, buttonTargetDictionary, buttonToneMinimalVariantDictionary, buttonToneVariantDictionary, buttonTypeDictionary, buttonVariantDictionary, tabSizeDictionary, };
@@ -1,6 +1,7 @@
1
1
  declare const themeVariantDictionary: string[];
2
2
  declare const themeLuminanceVariantDictionary: string[];
3
3
  declare const themeStatusVariantDictionary: string[];
4
+ declare const themeInputVariantDictionary: string[];
4
5
  declare const themeFullVariantDictionary: string[];
5
6
  declare const themeFullVariantAvatarDictionary: string[];
6
7
  declare const themeLabelVariantDictionary: string[];
@@ -10,4 +11,4 @@ declare const toneActionVariantDictionary: string[];
10
11
  declare const toneSimpleVariantDictionary: string[];
11
12
  declare const toneSmartVariantDictionary: string[];
12
13
  declare const toneMinimalVariantDictionary: string[];
13
- export { themeFullVariantAvatarDictionary, themeFullVariantDictionary, themeLabelVariantDictionary, themeLuminanceVariantDictionary, themeStatusVariantDictionary, themeVariantDictionary, themeVariantChipDictionary, toneActionVariantDictionary, toneMinimalVariantDictionary, toneSimpleVariantDictionary, toneSmartVariantDictionary, toneVariantDictionary, };
14
+ export { themeFullVariantAvatarDictionary, themeFullVariantDictionary, themeInputVariantDictionary, themeLabelVariantDictionary, themeLuminanceVariantDictionary, themeStatusVariantDictionary, themeVariantChipDictionary, themeVariantDictionary, toneActionVariantDictionary, toneMinimalVariantDictionary, toneSimpleVariantDictionary, toneSmartVariantDictionary, toneVariantDictionary, };
@@ -1,5 +1,7 @@
1
1
  export type ButtonType = 'a' | 'button' | 'reset' | 'submit';
2
2
  export type ButtonTargetType = 'self' | 'blank';
3
3
  export type ButtonSizeType = 'sm' | 'md' | 'lg' | 'xl';
4
+ export type TabSizeType = 'sm' | 'md';
4
5
  export type ButtonIconPositionType = 'left' | 'right';
5
6
  export type ButtonVariantType = 'ai' | 'apple' | 'dark' | 'error' | 'google' | 'info' | 'light' | 'primary' | 'secondary' | 'success' | 'warning';
7
+ export type ButtonDropdownVariantType = 'ai' | 'dark' | 'error' | 'info' | 'light' | 'primary' | 'secondary' | 'success' | 'warning';
@@ -1,4 +1,5 @@
1
1
  export type ThemeStatusVariantType = 'error' | 'info' | 'success' | 'warning';
2
+ export type ThemeInputVariantType = 'primary' | 'ai' | 'error' | 'info' | 'success' | 'warning';
2
3
  export type ThemeVariantType = 'ai' | 'dark' | 'error' | 'info' | 'light' | 'primary' | 'success' | 'warning';
3
4
  export type ThemeFullVariantType = 'amaranth' | 'aqua' | 'blue' | 'dark' | 'error' | 'green' | 'info' | 'light' | 'lime' | 'orange' | 'orchid' | 'sky' | 'success' | 'violet' | 'warning' | 'yellow';
4
5
  export type ThemeFullVariantAvatarType = 'amaranth' | 'aqua' | 'blue' | 'error' | 'green' | 'info' | 'lime' | 'orange' | 'orchid' | 'primary' | 'sky' | 'success' | 'violet' | 'warning' | 'yellow';
@@ -1,5 +1,5 @@
1
1
  {
2
- "timestamp": "2025-05-14T12:14:14",
2
+ "timestamp": "2025-12-01T11:04:54",
3
3
  "compiler": {
4
4
  "name": "@stencil/core",
5
5
  "version": "4.27.2",
@@ -347,6 +347,11 @@
347
347
  "docstring": "",
348
348
  "path": "src/type/text.ts"
349
349
  },
350
+ "src/type/button.ts::ButtonDropdownVariantType": {
351
+ "declaration": "export type ButtonDropdownVariantType =\n | 'ai'\n | 'dark'\n | 'error'\n | 'info'\n | 'light'\n | 'primary'\n | 'secondary'\n | 'success'\n | 'warning'",
352
+ "docstring": "",
353
+ "path": "src/type/button.ts"
354
+ },
350
355
  "src/components/mds-calendar-cell/meta/types.ts::CalendarCellType": {
351
356
  "declaration": "export type CalendarCellType =\n | 'other'\n | 'current'\n | 'weekend'",
352
357
  "docstring": "",
@@ -368,7 +373,7 @@
368
373
  "path": "src/type/variant.ts"
369
374
  },
370
375
  "src/components/mds-chip/meta/interface.ts::MdsChipEvent": {
371
- "declaration": "interface MdsChipEvent {\n event: Event\n element: HTMLMdsChipElement\n}",
376
+ "declaration": "interface MdsChipEvent {\n event: Event\n selected?: boolean\n element: HTMLMdsChipElement\n}",
372
377
  "docstring": "",
373
378
  "path": "src/components/mds-chip/meta/interface.ts"
374
379
  },
@@ -487,8 +492,8 @@
487
492
  "docstring": "",
488
493
  "path": "src/type/input.ts"
489
494
  },
490
- "src/type/variant.ts::ThemeStatusVariantType": {
491
- "declaration": "export type ThemeStatusVariantType =\n | 'error'\n | 'info'\n | 'success'\n | 'warning'",
495
+ "src/type/variant.ts::ThemeInputVariantType": {
496
+ "declaration": "export type ThemeInputVariantType =\n | 'primary'\n | 'ai'\n | 'error'\n | 'info'\n | 'success'\n | 'warning'",
492
497
  "docstring": "",
493
498
  "path": "src/type/variant.ts"
494
499
  },
@@ -517,6 +522,11 @@
517
522
  "docstring": "",
518
523
  "path": "src/components/mds-input/meta/validators.ts"
519
524
  },
525
+ "src/type/variant.ts::ThemeStatusVariantType": {
526
+ "declaration": "export type ThemeStatusVariantType =\n | 'error'\n | 'info'\n | 'success'\n | 'warning'",
527
+ "docstring": "",
528
+ "path": "src/type/variant.ts"
529
+ },
520
530
  "src/components/mds-input-switch/meta/types.ts::InputSwitchSizeType": {
521
531
  "declaration": "export type InputSwitchSizeType =\n | 'sm'\n | 'md'\n | 'lg'",
522
532
  "docstring": "",
@@ -572,6 +582,11 @@
572
582
  "docstring": "",
573
583
  "path": "src/type/typography.ts"
574
584
  },
585
+ "src/components/mds-mention/meta/type.ts::MentionSize": {
586
+ "declaration": "export type MentionSize =\n | 'sm'\n | 'md'\n | 'lg'",
587
+ "docstring": "",
588
+ "path": "src/components/mds-mention/meta/type.ts"
589
+ },
575
590
  "src/components/mds-modal/meta/types.ts::ModalPositionType": {
576
591
  "declaration": "export type ModalPositionType =\n | 'bottom'\n | 'bottom-left'\n | 'bottom-right'\n | 'center'\n | 'left'\n | 'right'\n | 'top'\n | 'top-left'\n | 'top-right'",
577
592
  "docstring": "",
@@ -612,6 +627,11 @@
612
627
  "docstring": "",
613
628
  "path": "src/components/mds-policy-ai/meta/types.ts"
614
629
  },
630
+ "src/type/button.ts::TabSizeType": {
631
+ "declaration": "export type TabSizeType =\n | 'sm'\n | 'md'",
632
+ "docstring": "",
633
+ "path": "src/type/button.ts"
634
+ },
615
635
  "src/components/mds-pref-animation/meta/types.ts::AnimationModeType": {
616
636
  "declaration": "export type AnimationModeType =\n | 'reduce'\n | 'no-preference'\n | 'system'",
617
637
  "docstring": "",
@@ -692,6 +712,11 @@
692
712
  "docstring": "",
693
713
  "path": "src/components/mds-radial-menu/meta/types.ts"
694
714
  },
715
+ "src/components.d.ts::ModalOverflowType": {
716
+ "declaration": "any",
717
+ "docstring": "",
718
+ "path": "src/components.d.ts"
719
+ },
695
720
  "src/components/mds-stepper-bar/meta/event-detail.ts::MdsStepperBarEventDetail": {
696
721
  "declaration": "export interface MdsStepperBarEventDetail {\n step: number\n value: string\n}",
697
722
  "docstring": "",
@@ -702,6 +727,11 @@
702
727
  "docstring": "",
703
728
  "path": "src/components/mds-stepper-bar-item/meta/event-detail.ts"
704
729
  },
730
+ "src/components/mds-tab/meta/type.ts::DirectionType": {
731
+ "declaration": "export type DirectionType =\n | 'horizontal'\n | 'vertical'",
732
+ "docstring": "",
733
+ "path": "src/components/mds-tab/meta/type.ts"
734
+ },
705
735
  "src/type/animation.ts::HorizontalActionsAnimationType": {
706
736
  "declaration": "export type HorizontalActionsAnimationType =\n | 'fade'\n | 'slide'",
707
737
  "docstring": "",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maggioli-design-system/mds-table-row",
3
- "version": "5.4.3",
3
+ "version": "5.4.5",
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,8 +23,8 @@
23
23
  "prepublishOnly": "npm run build"
24
24
  },
25
25
  "dependencies": {
26
- "@maggioli-design-system/mds-table-cell": "5.3.1",
27
- "@maggioli-design-system/styles": "15.10.0",
26
+ "@maggioli-design-system/mds-table-cell": "5.3.2",
27
+ "@maggioli-design-system/styles": "15.11.0",
28
28
  "@stencil/core": "4.27.2"
29
29
  },
30
30
  "license": "MIT",
@@ -41,15 +41,17 @@ export class Locale {
41
41
 
42
42
  update = (doc?: Document | ShadowRoot): void => {
43
43
  const context = doc ?? this.element.shadowRoot
44
- context && context.querySelectorAll('*').forEach(el => {
45
- if (el.tagName.toLowerCase().startsWith('mds-')) {
46
- // eslint-disable-next-line no-restricted-syntax
47
- if (el && 'updateLang' in el) {
48
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
49
- (el as any).updateLang()
44
+ if (context) {
45
+ context.querySelectorAll('*').forEach(el => {
46
+ if (el.tagName.toLowerCase().startsWith('mds-')) {
47
+ // eslint-disable-next-line no-restricted-syntax
48
+ if (el && 'updateLang' in el) {
49
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
50
+ (el as any).updateLang()
51
+ }
50
52
  }
51
- }
52
- })
53
+ })
54
+ }
53
55
  }
54
56
 
55
57
  private pluralize = (tag: string | string[], context: Record<string, string | number | boolean>): string => {
@@ -0,0 +1,8 @@
1
+ const randomNumber = (min: number, max: number, integer: boolean = false): number => {
2
+ const num = Math.random() * (max - min) + min
3
+ return integer ? Math.floor(num) : num
4
+ }
5
+
6
+ export {
7
+ randomNumber,
8
+ }
@@ -28,8 +28,20 @@ const hasSlotted = (el: HTMLElement, name?: string): boolean => {
28
28
  return false
29
29
  }
30
30
 
31
+ const hasSlottedContent = (el: HTMLElement, name?: string): boolean => {
32
+ const query = name ? `slot[name="${name}"]` : 'slot:not([name])'
33
+ const slot: HTMLSlotElement = el.shadowRoot?.querySelector(query) as HTMLSlotElement
34
+ if (!slot) return false
35
+
36
+ const assignedNodes = slot.assignedNodes({ flatten: true })
37
+ return assignedNodes.some(node =>
38
+ node.nodeType === Node.TEXT_NODE && node.textContent?.trim() !== '',
39
+ )
40
+ }
41
+
31
42
  export {
32
43
  hasSlottedElements,
33
44
  hasSlottedNodes,
45
+ hasSlottedContent,
34
46
  hasSlotted,
35
47
  }
@@ -11,6 +11,19 @@ const cssDurationToMilliseconds = (duration: string, defaultValue = 1000): numbe
11
11
  return defaultValue
12
12
  }
13
13
 
14
+ const cssDurationToSeconds = (duration: string, defaultValue = 1000): number => {
15
+
16
+ if (duration.includes('ms')) {
17
+ return Number(duration.replace('ms', '')) / 1000
18
+ }
19
+
20
+ if (duration.includes('s')) {
21
+ return Number(duration.replace('s', ''))
22
+ }
23
+
24
+ return defaultValue
25
+ }
26
+
14
27
  const cssSizeToNumber = (size: string, defaultValue = 0): number => {
15
28
  if (size.includes('px')) {
16
29
  return Number(size.replace('px', ''))
@@ -27,7 +40,17 @@ const cssSizeToNumber = (size: string, defaultValue = 0): number => {
27
40
  return defaultValue
28
41
  }
29
42
 
43
+ const cssRotationToNumber = (size: string, defaultValue = 0): number => {
44
+ if (size.includes('deg')) {
45
+ return Number(size.replace('deg', ''))
46
+ }
47
+
48
+ return defaultValue
49
+ }
50
+
30
51
  export {
31
52
  cssDurationToMilliseconds,
53
+ cssDurationToSeconds,
54
+ cssRotationToNumber,
32
55
  cssSizeToNumber,
33
56
  }
@@ -23,6 +23,7 @@ export class MdsTableRow {
23
23
  @Element() host: HTMLMdsTableRowElement
24
24
  private actions: HTMLDivElement
25
25
  private hasActions: boolean = true
26
+ private observer: ResizeObserver
26
27
  @State() sizerWidth: string
27
28
  private t:Locale = new Locale({
28
29
  el: localeEl,
@@ -52,23 +53,20 @@ export class MdsTableRow {
52
53
  this.hasActions = this.host.querySelector(':scope > [slot="action"]') !== null
53
54
  }
54
55
 
55
- connectedCallback (): void {
56
+ componentDidLoad (): void {
56
57
  // needed to capture sizer width when become visible
57
- this.initObserver()
58
+ if (this.hasActions) this.initObserver()
58
59
  }
59
60
 
60
61
  private initObserver () {
61
- const observer = new IntersectionObserver(entries => {
62
- if (entries[0].isIntersecting && this.actions) {
63
- this.sizerWidth = `${this.actions.offsetWidth.toString()}px`
64
- observer.unobserve(this.host) // stop observer
65
- }
66
- }, {
67
- root: this.host.parentElement,
68
- threshold: 1, // trigger observer when is entirely visible
62
+ this.observer = new ResizeObserver(entry => {
63
+ this.sizerWidth = `${entry[0].borderBoxSize[0].inlineSize.toString()}px`
69
64
  })
65
+ this.observer.observe(this.actions)
66
+ }
70
67
 
71
- observer.observe(this.host)
68
+ disconnectedCallback () {
69
+ this.observer.disconnect()
72
70
  }
73
71
 
74
72
  private handleSelectionChange = (e: CustomEvent): void => {