@mgdis/mg-components 4.2.0 → 4.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{index-64cee0c8.js → index-94497267.js} +220 -202
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/mg-badge_23.cjs.entry.js +21 -9
- package/dist/cjs/mg-components.cjs.js +2 -2
- package/dist/cjs/mg-modal.cjs.entry.js +9 -3
- package/dist/cjs/mg-popover.cjs.entry.js +3 -3
- package/dist/cjs/{popper-71bf3058.js → popper-11d5f714.js} +60 -49
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/atoms/mg-badge/mg-badge.js +3 -1
- package/dist/collection/components/atoms/mg-input-title/mg-input-title.js +3 -1
- package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.js +3 -1
- package/dist/collection/components/molecules/inputs/MgInput.js +3 -1
- package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.js +1 -1
- package/dist/collection/components/molecules/mg-modal/mg-modal.css +2 -2
- package/dist/collection/components/molecules/mg-modal/mg-modal.js +7 -1
- package/dist/collection/components/molecules/mg-panel/mg-panel.js +3 -1
- package/dist/collection/components/molecules/mg-popover/mg-popover.css +3 -5
- package/dist/collection/components/molecules/mg-tabs/mg-tabs.js +3 -1
- package/dist/components/MgInput.js +3 -1
- package/dist/components/mg-badge2.js +3 -1
- package/dist/components/mg-input-numeric.js +1 -1
- package/dist/components/mg-input-title2.js +3 -1
- package/dist/components/mg-modal.js +8 -2
- package/dist/components/mg-panel.js +3 -1
- package/dist/components/mg-popover.js +1 -1
- package/dist/components/mg-tabs.js +3 -1
- package/dist/components/mg-tooltip2.js +3 -1
- package/dist/components/popper.js +60 -49
- package/dist/esm/{index-120f47fd.js → index-aad0184c.js} +220 -202
- package/dist/esm/loader.js +2 -2
- package/dist/esm/mg-badge_23.entry.js +21 -9
- package/dist/esm/mg-components.js +2 -2
- package/dist/esm/mg-modal.entry.js +9 -3
- package/dist/esm/mg-popover.entry.js +3 -3
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/esm/{popper-93ecb064.js → popper-f860750c.js} +60 -49
- package/dist/mg-components/mg-components.css +1 -1
- package/dist/mg-components/mg-components.esm.js +1 -1
- package/dist/mg-components/p-25452f60.entry.js +1 -0
- package/dist/mg-components/p-3899d5d2.js +2 -0
- package/dist/mg-components/p-a20fc541.entry.js +1 -0
- package/dist/mg-components/{p-b380a0df.entry.js → p-e08bc19a.entry.js} +1 -1
- package/dist/mg-components/p-ec26fc38.js +1 -0
- package/dist/types/components/molecules/mg-modal/mg-modal.d.ts +1 -0
- package/dist/types/stencil-public-runtime.d.ts +15 -4
- package/package.json +2 -2
- package/dist/mg-components/p-21991be8.entry.js +0 -1
- package/dist/mg-components/p-36a64f8c.entry.js +0 -1
- package/dist/mg-components/p-4c66f794.js +0 -1
- package/dist/mg-components/p-7bc32a2f.js +0 -2
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
let t,e,n,l=!1,o=!1,s=!1,r=!1,c=!1;const i="undefined"!=typeof window?window:{},f=i.document||{head:{}},a={t:0,l:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,l)=>t.addEventListener(e,n,l),rel:(t,e,n,l)=>t.removeEventListener(e,n,l),ce:(t,e)=>new CustomEvent(t,e)},u=t=>Promise.resolve(t),$=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),d=(t,e,n)=>{n&&n.map((([n,l,o])=>{const s=m(t,n),r=h(e,o),c=p(n);a.ael(s,l,r,c),(e.o=e.o||[]).push((()=>a.rel(s,l,r,c)))}))},h=(t,e)=>n=>{try{256&t.t?t.i[e](n):(t.u=t.u||[]).push([e,n])}catch(t){at(t)}},m=(t,e)=>8&e?i:t,p=t=>0!=(2&t),y=new WeakMap,b=t=>"sc-"+t.$,w={},g=t=>"object"==(t=typeof t)||"function"===t,v=(t,e,...n)=>{let l=null,o=null,s=!1,r=!1;const c=[],i=e=>{for(let n=0;n<e.length;n++)l=e[n],Array.isArray(l)?i(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof t&&!g(l))&&(l+=""),s&&r?c[c.length-1].h+=l:c.push(s?j(null,l):l),r=s)};if(i(n),e){e.name&&(o=e.name);{const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}}if("function"==typeof t)return t(null===e?{}:e,c,O);const f=j(t,null);return f.m=e,c.length>0&&(f.p=c),f.g=o,f},j=(t,e)=>({t:0,v:t,h:e,j:null,p:null,m:null,g:null}),S={},O={forEach:(t,e)=>t.map(k).forEach(e),map:(t,e)=>t.map(k).map(e).map(M)},k=t=>({vattrs:t.m,vchildren:t.p,vkey:t.S,vname:t.g,vtag:t.v,vtext:t.h}),M=t=>{if("function"==typeof t.vtag){const e=Object.assign({},t.vattrs);return t.vkey&&(e.key=t.vkey),t.vname&&(e.name=t.vname),v(t.vtag,e,...t.vchildren||[])}const e=j(t.vtag,t.vtext);return e.m=t.vattrs,e.p=t.vchildren,e.S=t.vkey,e.g=t.vname,e},C=(t,e,n,l,o,s)=>{if(n!==l){let r=ft(t,e),c=e.toLowerCase();if("class"===e){const e=t.classList,o=x(n),s=x(l);e.remove(...o.filter((t=>t&&!s.includes(t)))),e.add(...s.filter((t=>t&&!o.includes(t))))}else if("style"===e){for(const e in n)l&&null!=l[e]||(e.includes("-")?t.style.removeProperty(e):t.style[e]="");for(const e in l)n&&l[e]===n[e]||(e.includes("-")?t.style.setProperty(e,l[e]):t.style[e]=l[e])}else if("ref"===e)l&&l(t);else if(r||"o"!==e[0]||"n"!==e[1]){const c=g(l);if((r||c&&null!==l)&&!o)try{if(t.tagName.includes("-"))t[e]=l;else{const o=null==l?"":l;"list"===e?r=!1:null!=n&&t[e]==o||(t[e]=o)}}catch(t){}null==l||!1===l?!1===l&&""!==t.getAttribute(e)||t.removeAttribute(e):(!r||4&s||o)&&!c&&t.setAttribute(e,l=!0===l?"":l)}else e="-"===e[2]?e.slice(3):ft(i,c)?c.slice(2):c[2]+e.slice(3),n&&a.rel(t,e,n,!1),l&&a.ael(t,e,l,!1)}},R=/\s/,x=t=>t?t.split(R):[],P=(t,e,n,l)=>{const o=11===e.j.nodeType&&e.j.host?e.j.host:e.j,s=t&&t.m||w,r=e.m||w;for(l in s)l in r||C(o,l,s[l],void 0,n,e.t);for(l in r)C(o,l,s[l],r[l],n,e.t)},T=(o,c,i,a)=>{const u=c.p[i];let $,d,h,m=0;if(l||(s=!0,"slot"===u.v&&(t&&a.classList.add(t+"-s"),u.t|=u.p?2:1)),null!==u.h)$=u.j=f.createTextNode(u.h);else if(1&u.t)$=u.j=f.createTextNode("");else{if(r||(r="svg"===u.v),$=u.j=f.createElementNS(r?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",2&u.t?"slot-fb":u.v),r&&"foreignObject"===u.v&&(r=!1),P(null,u,r),null!=t&&$["s-si"]!==t&&$.classList.add($["s-si"]=t),u.p)for(m=0;m<u.p.length;++m)d=T(o,u,m,$),d&&$.appendChild(d);"svg"===u.v?r=!1:"foreignObject"===$.tagName&&(r=!0)}return $["s-hn"]=n,3&u.t&&($["s-sr"]=!0,$["s-cr"]=e,$["s-sn"]=u.g||"",h=o&&o.p&&o.p[i],h&&h.v===u.v&&o.j&&E(o.j,!1)),$},E=(t,e)=>{a.t|=1;const l=t.childNodes;for(let t=l.length-1;t>=0;t--){const o=l[t];o["s-hn"]!==n&&o["s-ol"]&&(D(o).insertBefore(o,A(o)),o["s-ol"].remove(),o["s-ol"]=void 0,s=!0),e&&E(o,e)}a.t&=-2},L=(t,e,l,o,s,r)=>{let c,i=t["s-cr"]&&t["s-cr"].parentNode||t;for(i.shadowRoot&&i.tagName===n&&(i=i.shadowRoot);s<=r;++s)o[s]&&(c=T(null,l,s,t),c&&(o[s].j=c,i.insertBefore(c,A(e))))},N=(t,e,n,l,s)=>{for(;e<=n;++e)(l=t[e])&&(s=l.j,_(l),o=!0,s["s-ol"]?s["s-ol"].remove():E(s,!0),s.remove())},W=(t,e)=>t.v===e.v&&("slot"!==t.v||t.g===e.g),A=t=>t&&t["s-ol"]||t,D=t=>(t["s-ol"]?t["s-ol"]:t).parentNode,F=(t,e)=>{const n=e.j=t.j,l=t.p,o=e.p,s=e.v,c=e.h;let i;null===c?(r="svg"===s||"foreignObject"!==s&&r,"slot"===s||P(t,e,r),null!==l&&null!==o?((t,e,n,l)=>{let o,s=0,r=0,c=e.length-1,i=e[0],f=e[c],a=l.length-1,u=l[0],$=l[a];for(;s<=c&&r<=a;)null==i?i=e[++s]:null==f?f=e[--c]:null==u?u=l[++r]:null==$?$=l[--a]:W(i,u)?(F(i,u),i=e[++s],u=l[++r]):W(f,$)?(F(f,$),f=e[--c],$=l[--a]):W(i,$)?("slot"!==i.v&&"slot"!==$.v||E(i.j.parentNode,!1),F(i,$),t.insertBefore(i.j,f.j.nextSibling),i=e[++s],$=l[--a]):W(f,u)?("slot"!==i.v&&"slot"!==$.v||E(f.j.parentNode,!1),F(f,u),t.insertBefore(f.j,i.j),f=e[--c],u=l[++r]):(o=T(e&&e[r],n,r,t),u=l[++r],o&&D(i.j).insertBefore(o,A(i.j)));s>c?L(t,null==l[a+1]?null:l[a+1].j,n,l,r,a):r>a&&N(e,s,c)})(n,l,e,o):null!==o?(null!==t.h&&(n.textContent=""),L(n,null,e,o,0,o.length-1)):null!==l&&N(l,0,l.length-1),r&&"svg"===s&&(r=!1)):(i=n["s-cr"])?i.parentNode.textContent=c:t.h!==c&&(n.data=c)},H=t=>{const e=t.childNodes;let n,l,o,s,r,c;for(l=0,o=e.length;l<o;l++)if(n=e[l],1===n.nodeType){if(n["s-sr"])for(r=n["s-sn"],n.hidden=!1,s=0;s<o;s++)if(c=e[s].nodeType,e[s]["s-hn"]!==n["s-hn"]||""!==r){if(1===c&&r===e[s].getAttribute("slot")){n.hidden=!0;break}}else if(1===c||3===c&&""!==e[s].textContent.trim()){n.hidden=!0;break}H(n)}},U=[],q=t=>{let e,n,l,s,r,c,i=0;const f=t.childNodes,a=f.length;for(;i<a;i++){if(e=f[i],e["s-sr"]&&(n=e["s-cr"])&&n.parentNode)for(l=n.parentNode.childNodes,s=e["s-sn"],c=l.length-1;c>=0;c--)n=l[c],n["s-cn"]||n["s-nr"]||n["s-hn"]===e["s-hn"]||(V(n,s)?(r=U.find((t=>t.O===n)),o=!0,n["s-sn"]=n["s-sn"]||s,r?r.k=e:U.push({k:e,O:n}),n["s-sr"]&&U.map((t=>{V(t.O,n["s-sn"])&&(r=U.find((t=>t.O===n)),r&&!t.k&&(t.k=r.k))}))):U.some((t=>t.O===n))||U.push({O:n}));1===e.nodeType&&q(e)}},V=(t,e)=>1===t.nodeType?null===t.getAttribute("slot")&&""===e||t.getAttribute("slot")===e:t["s-sn"]===e||""===e,_=t=>{t.m&&t.m.ref&&t.m.ref(null),t.p&&t.p.map(_)},z=t=>rt(t).M,B=(t,e,n)=>{const l=z(t);return{emit:t=>G(l,e,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:t})}},G=(t,e,n)=>{const l=a.ce(e,n);return t.dispatchEvent(l),l},I=(t,e)=>{e&&!t.C&&e["s-p"]&&e["s-p"].push(new Promise((e=>t.C=e)))},J=(t,e)=>{if(t.t|=16,!(4&t.t))return I(t,t.R),gt((()=>K(t,e)));t.t|=512},K=(t,e)=>{const n=t.i;let l;return e&&(t.t|=256,t.u&&(t.u.map((([t,e])=>tt(n,t,e))),t.u=null),l=tt(n,"componentWillLoad")),et(l,(()=>Q(t,n,e)))},Q=async(t,e,n)=>{const l=t.M,o=l["s-rc"];n&&(t=>{const e=t.P,n=t.M,l=e.t,o=((t,e)=>{let n=b(e);const l=dt.get(n);if(t=11===t.nodeType?t:f,l)if("string"==typeof l){let e,o=y.get(t=t.head||t);o||y.set(t,o=new Set),o.has(n)||(e=f.createElement("style"),e.innerHTML=l,t.insertBefore(e,t.querySelector("link")),o&&o.add(n))}else t.adoptedStyleSheets.includes(l)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,l]);return n})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&l&&(n["s-sc"]=o,n.classList.add(o+"-h"),2&l&&n.classList.add(o+"-s"))})(t);X(t,e),o&&(o.map((t=>t())),l["s-rc"]=void 0);{const e=l["s-p"],n=()=>Y(t);0===e.length?n():(Promise.all(e).then(n),t.t|=4,e.length=0)}},X=(r,c)=>{try{c=c.render(),r.t&=-17,r.t|=2,((r,c)=>{const i=r.M,u=r.P,$=r.T||j(null,null),d=(t=>t&&t.v===S)(c)?c:v(null,null,c);if(n=i.tagName,u.L&&(d.m=d.m||{},u.L.map((([t,e])=>d.m[e]=i[t]))),d.v=null,d.t|=4,r.T=d,d.j=$.j=i.shadowRoot||i,t=i["s-sc"],e=i["s-cr"],l=0!=(1&u.t),o=!1,F($,d),a.t|=1,s){let t,e,n,l,o,s;q(d.j);let r=0;for(;r<U.length;r++)t=U[r],e=t.O,e["s-ol"]||(n=f.createTextNode(""),n["s-nr"]=e,e.parentNode.insertBefore(e["s-ol"]=n,e));for(r=0;r<U.length;r++)if(t=U[r],e=t.O,t.k){for(l=t.k.parentNode,o=t.k.nextSibling,n=e["s-ol"];n=n.previousSibling;)if(s=n["s-nr"],s&&s["s-sn"]===e["s-sn"]&&l===s.parentNode&&(s=s.nextSibling,!s||!s["s-nr"])){o=s;break}(!o&&l!==e.parentNode||e.nextSibling!==o)&&e!==o&&(!e["s-hn"]&&e["s-ol"]&&(e["s-hn"]=e["s-ol"].parentNode.nodeName),l.insertBefore(e,o))}else 1===e.nodeType&&(e.hidden=!0)}o&&H(d.j),a.t&=-2,U.length=0})(r,c)}catch(t){at(t,r.M)}return null},Y=t=>{const e=t.M,n=t.i,l=t.R;tt(n,"componentDidRender"),64&t.t||(t.t|=64,nt(e),tt(n,"componentDidLoad"),t.N(e),l||Z()),t.W(e),t.C&&(t.C(),t.C=void 0),512&t.t&&wt((()=>J(t,!1))),t.t&=-517},Z=()=>{nt(f.documentElement),wt((()=>G(i,"appload",{detail:{namespace:"mg-components"}})))},tt=(t,e,n)=>{if(t&&t[e])try{return t[e](n)}catch(t){at(t)}},et=(t,e)=>t&&t.then?t.then(e):e(),nt=t=>t.classList.add("hydrated"),lt=(t,e,n)=>{if(e.A){t.watchers&&(e.D=t.watchers);const l=Object.entries(e.A),o=t.prototype;if(l.map((([t,[l]])=>{31&l||2&n&&32&l?Object.defineProperty(o,t,{get(){return((t,e)=>rt(this).F.get(e))(0,t)},set(n){((t,e,n,l)=>{const o=rt(t),s=o.M,r=o.F.get(e),c=o.t,i=o.i;if(n=((t,e)=>null==t||g(t)?t:4&e?"false"!==t&&(""===t||!!t):2&e?parseFloat(t):1&e?t+"":t)(n,l.A[e][0]),(!(8&c)||void 0===r)&&n!==r&&(!Number.isNaN(r)||!Number.isNaN(n))&&(o.F.set(e,n),i)){if(l.D&&128&c){const t=l.D[e];t&&t.map((t=>{try{i[t](n,r,e)}catch(t){at(t,s)}}))}2==(18&c)&&J(o,!1)}})(this,t,n,e)},configurable:!0,enumerable:!0}):1&n&&64&l&&Object.defineProperty(o,t,{value(...e){const n=rt(this);return n.H.then((()=>n.i[t](...e)))}})})),1&n){const n=new Map;o.attributeChangedCallback=function(t,e,l){a.jmp((()=>{const e=n.get(t);if(this.hasOwnProperty(e))l=this[e],delete this[e];else if(o.hasOwnProperty(e)&&"number"==typeof this[e]&&this[e]==l)return;this[e]=(null!==l||"boolean"!=typeof this[e])&&l}))},t.observedAttributes=l.filter((([t,e])=>15&e[0])).map((([t,l])=>{const o=l[1]||t;return n.set(o,t),512&l[0]&&e.L.push([t,o]),o}))}}return t},ot=(t,e={})=>{const n=[],l=e.exclude||[],o=i.customElements,s=f.head,r=s.querySelector("meta[charset]"),c=f.createElement("style"),u=[];let h,m=!0;Object.assign(a,e),a.l=new URL(e.resourcesUrl||"./",f.baseURI).href,t.map((t=>{t[1].map((e=>{const s={t:e[0],$:e[1],A:e[2],U:e[3]};s.A=e[2],s.U=e[3],s.L=[],s.D={};const r=s.$,c=class extends HTMLElement{constructor(t){super(t),it(t=this,s),1&s.t&&t.attachShadow({mode:"open"})}connectedCallback(){h&&(clearTimeout(h),h=null),m?u.push(this):a.jmp((()=>(t=>{if(0==(1&a.t)){const e=rt(t),n=e.P,l=()=>{};if(1&e.t)d(t,e,n.U);else{e.t|=1,12&n.t&&(t=>{const e=t["s-cr"]=f.createComment("");e["s-cn"]=!0,t.insertBefore(e,t.firstChild)})(t);{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){I(e,e.R=n);break}}n.A&&Object.entries(n.A).map((([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n,l,o)=>{if(0==(32&e.t)){{if(e.t|=32,(o=$t(n)).then){const t=()=>{};o=await o,t()}o.isProxied||(n.D=o.watchers,lt(o,n,2),o.isProxied=!0);const t=()=>{};e.t|=8;try{new o(e)}catch(t){at(t)}e.t&=-9,e.t|=128,t()}if(o.style){let t=o.style;const e=b(n);if(!dt.has(e)){const l=()=>{};((t,e,n)=>{let l=dt.get(t);$&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=e:l.replaceSync(e)):l=e,dt.set(t,l)})(e,t,!!(1&n.t)),l()}}}const s=e.R,r=()=>J(e,!0);s&&s["s-rc"]?s["s-rc"].push(r):r()})(0,e,n)}l()}})(this)))}disconnectedCallback(){a.jmp((()=>(()=>{if(0==(1&a.t)){const t=rt(this);t.o&&(t.o.map((t=>t())),t.o=void 0)}})()))}componentOnReady(){return rt(this).q}};s.V=t[0],l.includes(r)||o.get(r)||(n.push(r),o.define(r,lt(c,s,1)))}))})),c.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",c.setAttribute("data-styles",""),s.insertBefore(c,r?r.nextSibling:s.firstChild),m=!1,u.length?u.map((t=>t.connectedCallback())):a.jmp((()=>h=setTimeout(Z,30)))},st=new WeakMap,rt=t=>st.get(t),ct=(t,e)=>st.set(e.i=t,e),it=(t,e)=>{const n={t:0,M:t,P:e,F:new Map};return n.H=new Promise((t=>n.W=t)),n.q=new Promise((t=>n.N=t)),t["s-p"]=[],t["s-rc"]=[],d(t,n,e.U),st.set(t,n)},ft=(t,e)=>e in t,at=(t,e)=>(0,console.error)(t,e),ut=new Map,$t=t=>{const e=t.$.replace(/-/g,"_"),n=t.V,l=ut.get(n);return l?l[e]:import(`./${n}.entry.js`).then((t=>(ut.set(n,t),t[e])),at)
|
|
2
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/},dt=new Map,ht=[],mt=[],pt=(t,e)=>n=>{t.push(n),c||(c=!0,e&&4&a.t?wt(bt):a.raf(bt))},yt=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){at(t)}t.length=0},bt=()=>{yt(ht),yt(mt),(c=ht.length>0)&&a.raf(bt)},wt=t=>u().then(t),gt=pt(mt,!0);export{S as H,ot as b,B as c,z as g,v as h,u as p,ct as r}
|