@maggioli-design-system/mds-table-row 5.4.4 → 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.
- package/dist/cjs/mds-table-row.cjs.entry.js +25 -25
- package/dist/collection/common/locale.js +10 -8
- package/dist/collection/common/number.js +5 -0
- package/dist/collection/common/slot.js +10 -1
- package/dist/collection/common/unit.js +16 -1
- package/dist/collection/components/mds-table-row/mds-table-row.js +15 -17
- package/dist/collection/dictionary/button.js +20 -1
- package/dist/collection/dictionary/icon.js +1 -1
- package/dist/components/mds-table-row.js +25 -25
- package/dist/documentation.json +1 -1
- package/dist/esm/mds-table-row.entry.js +25 -25
- package/dist/esm-es5/mds-table-row.entry.js +1 -1
- package/dist/mds-table-row/mds-table-row.esm.js +1 -1
- package/dist/mds-table-row/p-cc861814.entry.js +6 -0
- package/dist/mds-table-row/p-cd3437c0.system.js +1 -1
- package/dist/mds-table-row/p-fc4793d9.system.entry.js +6 -0
- package/dist/stats.json +23 -22
- package/dist/types/common/number.d.ts +2 -0
- package/dist/types/common/slot.d.ts +2 -1
- package/dist/types/common/unit.d.ts +3 -1
- package/dist/types/components/mds-table-row/mds-table-row.d.ts +3 -1
- package/dist/types/dictionary/button.d.ts +4 -1
- package/dist/types/type/button.d.ts +2 -0
- package/documentation.json +27 -2
- package/package.json +1 -1
- package/src/common/locale.ts +10 -8
- package/src/common/number.ts +8 -0
- package/src/common/slot.ts +12 -0
- package/src/common/unit.ts +23 -0
- package/src/components/mds-table-row/mds-table-row.tsx +9 -11
- package/src/dictionary/button.ts +25 -0
- package/src/dictionary/icon.ts +2 -1
- package/src/fixtures/icons.json +9 -0
- package/src/tailwind/components.css +1 -1
- package/src/type/button.ts +15 -0
- package/www/build/mds-table-row.esm.js +1 -1
- package/www/build/p-cc861814.entry.js +6 -0
- package/www/build/p-cd3437c0.system.js +1 -1
- package/www/build/p-fc4793d9.system.entry.js +6 -0
- package/dist/mds-table-row/p-86e316e3.entry.js +0 -6
- package/dist/mds-table-row/p-fbe91c6f.system.entry.js +0 -6
- package/src/fixtures/iconsauce.json +0 -310
- package/www/build/p-86e316e3.entry.js +0 -6
- package/www/build/p-fbe91c6f.system.entry.js +0 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(t,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={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="};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-
|
|
2
|
+
"timestamp": "2025-12-01T11:31:45",
|
|
3
3
|
"compiler": {
|
|
4
4
|
"name": "node",
|
|
5
|
-
"version": "22.
|
|
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":
|
|
12
|
+
"bundles": 103,
|
|
13
13
|
"outputs": [
|
|
14
14
|
{
|
|
15
15
|
"name": "dist-collection",
|
|
16
|
-
"files":
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
163
|
-
"fileName": "p-
|
|
163
|
+
"bundleId": "p-cc861814",
|
|
164
|
+
"fileName": "p-cc861814.entry.js",
|
|
164
165
|
"imports": [
|
|
165
166
|
"p-4a407cb6.js"
|
|
166
167
|
],
|
|
167
|
-
"originalByteSize":
|
|
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":
|
|
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":
|
|
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-
|
|
205
|
-
"fileName": "p-
|
|
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":
|
|
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":
|
|
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":
|
|
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":
|
|
598
|
-
"hasDisconnectedCallbackFn":
|
|
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": [],
|
|
@@ -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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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,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';
|
package/documentation.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "2025-
|
|
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
|
},
|
|
@@ -577,6 +582,11 @@
|
|
|
577
582
|
"docstring": "",
|
|
578
583
|
"path": "src/type/typography.ts"
|
|
579
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
|
+
},
|
|
580
590
|
"src/components/mds-modal/meta/types.ts::ModalPositionType": {
|
|
581
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'",
|
|
582
592
|
"docstring": "",
|
|
@@ -617,6 +627,11 @@
|
|
|
617
627
|
"docstring": "",
|
|
618
628
|
"path": "src/components/mds-policy-ai/meta/types.ts"
|
|
619
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
|
+
},
|
|
620
635
|
"src/components/mds-pref-animation/meta/types.ts::AnimationModeType": {
|
|
621
636
|
"declaration": "export type AnimationModeType =\n | 'reduce'\n | 'no-preference'\n | 'system'",
|
|
622
637
|
"docstring": "",
|
|
@@ -697,6 +712,11 @@
|
|
|
697
712
|
"docstring": "",
|
|
698
713
|
"path": "src/components/mds-radial-menu/meta/types.ts"
|
|
699
714
|
},
|
|
715
|
+
"src/components.d.ts::ModalOverflowType": {
|
|
716
|
+
"declaration": "any",
|
|
717
|
+
"docstring": "",
|
|
718
|
+
"path": "src/components.d.ts"
|
|
719
|
+
},
|
|
700
720
|
"src/components/mds-stepper-bar/meta/event-detail.ts::MdsStepperBarEventDetail": {
|
|
701
721
|
"declaration": "export interface MdsStepperBarEventDetail {\n step: number\n value: string\n}",
|
|
702
722
|
"docstring": "",
|
|
@@ -707,6 +727,11 @@
|
|
|
707
727
|
"docstring": "",
|
|
708
728
|
"path": "src/components/mds-stepper-bar-item/meta/event-detail.ts"
|
|
709
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
|
+
},
|
|
710
735
|
"src/type/animation.ts::HorizontalActionsAnimationType": {
|
|
711
736
|
"declaration": "export type HorizontalActionsAnimationType =\n | 'fade'\n | 'slide'",
|
|
712
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
|
+
"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",
|
package/src/common/locale.ts
CHANGED
|
@@ -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
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
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 => {
|
package/src/common/slot.ts
CHANGED
|
@@ -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
|
}
|
package/src/common/unit.ts
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
62
|
-
|
|
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
|
-
|
|
68
|
+
disconnectedCallback () {
|
|
69
|
+
this.observer.disconnect()
|
|
72
70
|
}
|
|
73
71
|
|
|
74
72
|
private handleSelectionChange = (e: CustomEvent): void => {
|
package/src/dictionary/button.ts
CHANGED
|
@@ -12,6 +12,18 @@ const buttonVariantDictionary = [
|
|
|
12
12
|
'warning',
|
|
13
13
|
]
|
|
14
14
|
|
|
15
|
+
const buttonDropdownVariantDictionary = [
|
|
16
|
+
'ai',
|
|
17
|
+
'dark',
|
|
18
|
+
'error',
|
|
19
|
+
'info',
|
|
20
|
+
'light',
|
|
21
|
+
'primary',
|
|
22
|
+
'secondary',
|
|
23
|
+
'success',
|
|
24
|
+
'warning',
|
|
25
|
+
]
|
|
26
|
+
|
|
15
27
|
const buttonToneVariantDictionary = [
|
|
16
28
|
'strong',
|
|
17
29
|
'weak',
|
|
@@ -19,6 +31,11 @@ const buttonToneVariantDictionary = [
|
|
|
19
31
|
'quiet',
|
|
20
32
|
]
|
|
21
33
|
|
|
34
|
+
const buttonToneMinimalVariantDictionary = [
|
|
35
|
+
'strong',
|
|
36
|
+
'weak',
|
|
37
|
+
]
|
|
38
|
+
|
|
22
39
|
const buttonTargetDictionary = [
|
|
23
40
|
'blank',
|
|
24
41
|
'self',
|
|
@@ -31,6 +48,11 @@ const buttonSizeDictionary = [
|
|
|
31
48
|
'xl',
|
|
32
49
|
]
|
|
33
50
|
|
|
51
|
+
const tabSizeDictionary = [
|
|
52
|
+
'sm',
|
|
53
|
+
'md',
|
|
54
|
+
]
|
|
55
|
+
|
|
34
56
|
const buttonIconPositionDictionary = [
|
|
35
57
|
'left',
|
|
36
58
|
'right',
|
|
@@ -43,10 +65,13 @@ const buttonTypeDictionary = [
|
|
|
43
65
|
]
|
|
44
66
|
|
|
45
67
|
export {
|
|
68
|
+
buttonDropdownVariantDictionary,
|
|
46
69
|
buttonIconPositionDictionary,
|
|
47
70
|
buttonSizeDictionary,
|
|
48
71
|
buttonTargetDictionary,
|
|
72
|
+
buttonToneMinimalVariantDictionary,
|
|
49
73
|
buttonToneVariantDictionary,
|
|
50
74
|
buttonTypeDictionary,
|
|
51
75
|
buttonVariantDictionary,
|
|
76
|
+
tabSizeDictionary,
|
|
52
77
|
}
|
package/src/dictionary/icon.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import jsonIconsDictionary from '../fixtures/icons.json'
|
|
2
|
-
import jsonMggIconsDictionary from '
|
|
2
|
+
import jsonMggIconsDictionary from '@maggioli-design-system/svg-icons/dist/iconsauce.json'
|
|
3
|
+
|
|
3
4
|
const iconsDictionary = jsonIconsDictionary
|
|
4
5
|
const mggIconsDictionary = jsonMggIconsDictionary
|
|
5
6
|
const svgIconsDictionary = [
|
package/src/fixtures/icons.json
CHANGED
|
@@ -343,6 +343,7 @@
|
|
|
343
343
|
"mi/baseline/add-circle",
|
|
344
344
|
"mi/baseline/adobe",
|
|
345
345
|
"mi/baseline/agriculture",
|
|
346
|
+
"mi/baseline/alternate-email",
|
|
346
347
|
"mi/baseline/animation",
|
|
347
348
|
"mi/baseline/arrow-back",
|
|
348
349
|
"mi/baseline/arrow-back-ios-new",
|
|
@@ -376,6 +377,7 @@
|
|
|
376
377
|
"mi/baseline/directions-run",
|
|
377
378
|
"mi/baseline/directions-walk",
|
|
378
379
|
"mi/baseline/done",
|
|
380
|
+
"mi/baseline/done-all",
|
|
379
381
|
"mi/baseline/downhill-skiing",
|
|
380
382
|
"mi/baseline/draw",
|
|
381
383
|
"mi/baseline/eco",
|
|
@@ -426,6 +428,7 @@
|
|
|
426
428
|
"mi/baseline/remove-circle",
|
|
427
429
|
"mi/baseline/remove-red-eye",
|
|
428
430
|
"mi/baseline/route",
|
|
431
|
+
"mi/baseline/search",
|
|
429
432
|
"mi/baseline/send",
|
|
430
433
|
"mi/baseline/settings",
|
|
431
434
|
"mi/baseline/south",
|
|
@@ -433,6 +436,8 @@
|
|
|
433
436
|
"mi/baseline/sports-soccer",
|
|
434
437
|
"mi/baseline/stadium",
|
|
435
438
|
"mi/baseline/terminal",
|
|
439
|
+
"mi/baseline/text-format",
|
|
440
|
+
"mi/baseline/text-rotate-up",
|
|
436
441
|
"mi/baseline/timer",
|
|
437
442
|
"mi/baseline/tv",
|
|
438
443
|
"mi/baseline/undo",
|
|
@@ -446,16 +451,20 @@
|
|
|
446
451
|
"mi/baseline/warning",
|
|
447
452
|
"mi/baseline/warning-amber",
|
|
448
453
|
"mi/baseline/web",
|
|
454
|
+
"mi/baseline/wrap-text",
|
|
449
455
|
"mi/baseline/wysiwyg",
|
|
450
456
|
"mi/outline/auto-awesome",
|
|
451
457
|
"mi/outline/backspace",
|
|
452
458
|
"mi/outline/circle",
|
|
453
459
|
"mi/outline/dark-mode",
|
|
454
460
|
"mi/outline/help-outline",
|
|
461
|
+
"mi/outline/ios-share",
|
|
455
462
|
"mi/outline/mic",
|
|
456
463
|
"mi/outline/mic-off",
|
|
457
464
|
"mi/outline/policy",
|
|
458
465
|
"mi/outline/schedule",
|
|
466
|
+
"mi/outline/thumb-down",
|
|
467
|
+
"mi/outline/thumb-up",
|
|
459
468
|
"mi/round/arrow-circle-down",
|
|
460
469
|
"mi/round/email",
|
|
461
470
|
"mi/round/menu",
|