@everymatrix/general-styling-wrapper 1.0.69

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 (46) hide show
  1. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  2. package/dist/cjs/general-styling-wrapper.cjs.entry.js +81 -0
  3. package/dist/cjs/general-styling-wrapper.cjs.js +25 -0
  4. package/dist/cjs/index-a5dafaa1.js +1383 -0
  5. package/dist/cjs/index.cjs.js +2 -0
  6. package/dist/cjs/loader.cjs.js +15 -0
  7. package/dist/collection/collection-manifest.json +12 -0
  8. package/dist/collection/components/general-styling-wrapper/general-styling-wrapper.css +3 -0
  9. package/dist/collection/components/general-styling-wrapper/general-styling-wrapper.js +144 -0
  10. package/dist/collection/components/general-styling-wrapper/index.js +1 -0
  11. package/dist/collection/index.js +1 -0
  12. package/dist/collection/utils/device.utils.js +0 -0
  13. package/dist/collection/utils/locale.utils.js +15 -0
  14. package/dist/collection/utils/utils.js +3 -0
  15. package/dist/esm/app-globals-0f993ce5.js +3 -0
  16. package/dist/esm/general-styling-wrapper.entry.js +77 -0
  17. package/dist/esm/general-styling-wrapper.js +20 -0
  18. package/dist/esm/index-17391e29.js +1356 -0
  19. package/dist/esm/index.js +1 -0
  20. package/dist/esm/loader.js +11 -0
  21. package/dist/general-styling-wrapper/general-styling-wrapper.esm.js +1 -0
  22. package/dist/general-styling-wrapper/index.esm.js +0 -0
  23. package/dist/general-styling-wrapper/p-6458f4e1.js +2 -0
  24. package/dist/general-styling-wrapper/p-a40e8b20.entry.js +1 -0
  25. package/dist/general-styling-wrapper/p-e1255160.js +1 -0
  26. package/dist/index.cjs.js +1 -0
  27. package/dist/index.js +1 -0
  28. package/dist/stencil.config.dev.js +17 -0
  29. package/dist/stencil.config.js +17 -0
  30. package/dist/types/Users/raul.vasile/workspace/everymatrix/widgets-monorepo/packages/stencil/general-styling-wrapper/.stencil/packages/stencil/general-styling-wrapper/stencil.config.d.ts +2 -0
  31. package/dist/types/Users/raul.vasile/workspace/everymatrix/widgets-monorepo/packages/stencil/general-styling-wrapper/.stencil/packages/stencil/general-styling-wrapper/stencil.config.dev.d.ts +2 -0
  32. package/dist/types/components/general-styling-wrapper/general-styling-wrapper.d.ts +26 -0
  33. package/dist/types/components/general-styling-wrapper/index.d.ts +1 -0
  34. package/dist/types/components.d.ts +71 -0
  35. package/dist/types/index.d.ts +1 -0
  36. package/dist/types/stencil-public-runtime.d.ts +1674 -0
  37. package/dist/types/utils/device.utils.d.ts +0 -0
  38. package/dist/types/utils/locale.utils.d.ts +8 -0
  39. package/dist/types/utils/utils.d.ts +1 -0
  40. package/loader/cdn.js +1 -0
  41. package/loader/index.cjs.js +1 -0
  42. package/loader/index.d.ts +24 -0
  43. package/loader/index.es2017.js +1 -0
  44. package/loader/index.js +2 -0
  45. package/loader/package.json +11 -0
  46. package/package.json +26 -0
@@ -0,0 +1 @@
1
+
@@ -0,0 +1,11 @@
1
+ import { b as bootstrapLazy } from './index-17391e29.js';
2
+ export { s as setNonce } from './index-17391e29.js';
3
+ import { g as globalScripts } from './app-globals-0f993ce5.js';
4
+
5
+ const defineCustomElements = async (win, options) => {
6
+ if (typeof window === 'undefined') return undefined;
7
+ await globalScripts();
8
+ return bootstrapLazy([["general-styling-wrapper",[[4,"general-styling-wrapper",{"clientStyling":[1,"client-styling"],"clientStylingUrl":[1,"client-styling-url"],"translationUrl":[1,"translation-url"],"targetTranslations":[16]}]]]], options);
9
+ };
10
+
11
+ export { defineCustomElements };
@@ -0,0 +1 @@
1
+ import{p as t,b as n}from"./p-6458f4e1.js";export{s as setNonce}from"./p-6458f4e1.js";import{g as r}from"./p-e1255160.js";(()=>{const n=import.meta.url,r={};return""!==n&&(r.resourcesUrl=new URL(".",n).href),t(r)})().then((async t=>(await r(),n([["p-a40e8b20",[[4,"general-styling-wrapper",{clientStyling:[1,"client-styling"],clientStylingUrl:[1,"client-styling-url"],translationUrl:[1,"translation-url"],targetTranslations:[16]}]]]],t))));
File without changes
@@ -0,0 +1,2 @@
1
+ var e=Object.defineProperty,t=new WeakMap,n=e=>t.get(e),l=(e,n)=>t.set(n.t=e,n),o=(e,t)=>(0,console.error)(e,t),s=new Map,i=new Map,r="slot-fb{display:contents}slot-fb[hidden]{display:none}",c="undefined"!=typeof window?window:{},f=c.document||{head:{}},u={l:0,o:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},a=e=>Promise.resolve(e),d=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),h=!1,m=[],p=[],$=(e,t)=>n=>{e.push(n),h||(h=!0,t&&4&u.l?b(v):u.raf(v))},y=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){o(e)}e.length=0},v=()=>{y(m),y(p),(h=m.length>0)&&u.raf(v)},b=e=>a().then(e),w=$(p,!0),g={},S=e=>"object"==(e=typeof e)||"function"===e;function k(e){var t,n,l;return null!=(l=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?l:void 0}((t,n)=>{for(var l in n)e(t,l,{get:n[l],enumerable:!0})})({},{err:()=>O,map:()=>E,ok:()=>j,unwrap:()=>P,unwrapErr:()=>R});var j=e=>({isOk:!0,isErr:!1,value:e}),O=e=>({isOk:!1,isErr:!0,value:e});function E(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>j(e))):j(n)}if(e.isErr)return O(e.value);throw"should never get here"}var C,M,P=e=>{if(e.isOk)return e.value;throw e.value},R=e=>{if(e.isErr)return e.value;throw e.value},T=(e,t,...n)=>{let l=null,o=null,s=null,i=!1,r=!1;const c=[],f=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?f(l):null!=l&&"boolean"!=typeof l&&((i="function"!=typeof e&&!S(l))&&(l+=""),i&&r?c[c.length-1].i+=l:c.push(i?x(null,l):l),r=i)};if(f(n),t){t.key&&(o=t.key),t.name&&(s=t.name);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}const u=x(e,null);return u.u=t,c.length>0&&(u.h=c),u.m=o,u.p=s,u},x=(e,t)=>({l:0,$:e,i:t,v:null,h:null,u:null,m:null,p:null}),A={},N=e=>n(e).$hostElement$,D=new WeakMap,H=e=>"sc-"+e.S,L=(e,t,n,l,o,s)=>{if(n!==l){let i=((e,t)=>t in e)(e,t);if(t.toLowerCase(),"class"===t){const t=e.classList,o=F(n),s=F(l);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("key"===t);else{const r=S(l);if((i||r&&null!==l)&&!o)try{if(e.tagName.includes("-"))e[t]=l;else{const o=null==l?"":l;"list"===t?i=!1:null!=n&&e[t]==o||(e[t]=o)}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(t)||e.removeAttribute(t):(!i||4&s||o)&&!r&&e.setAttribute(t,l=!0===l?"":l)}}},W=/\s/,F=e=>e?e.split(W):[],U=(e,t,n)=>{const l=11===t.v.nodeType&&t.v.host?t.v.host:t.v,o=e&&e.u||g,s=t.u||g;for(const e of q(Object.keys(o)))e in s||L(l,e,o[e],void 0,n,t.l);for(const e of q(Object.keys(s)))L(l,e,o[e],s[e],n,t.l)};function q(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var G=!1,I=!1,V=!1,_=!1,z=(e,t,n)=>{var l;const o=t.h[n];let s,i,r,c=0;if(G||(V=!0,"slot"===o.$&&(o.l|=o.h?2:1)),1&o.l)s=o.v=f.createTextNode("");else if(s=o.v=f.createElement(!G&&2&o.l?"slot-fb":o.$),U(null,o,_),s.getRootNode().querySelector("body"),o.h)for(c=0;c<o.h.length;++c)i=z(e,o,c),i&&s.appendChild(i);return s["s-hn"]=M,3&o.l&&(s["s-sr"]=!0,s["s-cr"]=C,s["s-sn"]=o.p||"",s["s-rf"]=null==(l=o.u)?void 0:l.ref,r=e&&e.h&&e.h[n],r&&r.$===o.$&&e.v&&B(e.v,!1)),s},B=(e,t)=>{u.l|=1;const n=Array.from(e.childNodes);for(let e=n.length-1;e>=0;e--){const l=n[e];l["s-hn"]!==M&&l["s-ol"]&&(oe(Y(l),l,X(l)),l["s-ol"].remove(),l["s-ol"]=void 0,l["s-sh"]=void 0,V=!0),t&&B(l,t)}u.l&=-2},J=(e,t,n,l,o,s)=>{let i,r=e["s-cr"]&&e["s-cr"].parentNode||e;for(;o<=s;++o)l[o]&&(i=z(null,n,o),i&&(l[o].v=i,oe(r,i,X(t))))},K=(e,t,n)=>{for(let l=t;l<=n;++l){const t=e[l];if(t){const e=t.v;e&&(I=!0,e["s-ol"]?e["s-ol"].remove():B(e,!0),e.remove())}}},Q=(e,t,n=!1)=>!(e.$!==t.$||("slot"===e.$?"k"in e&&n&&8!==e.v.nodeType||e.p!==t.p:!n&&e.m!==t.m)),X=e=>e&&e["s-ol"]||e,Y=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,Z=(e,t,n=!1)=>{const l=t.v=e.v,o=e.h,s=t.h;("slot"!==t.$||G)&&U(e,t,_),null!==o&&null!==s?((e,t,n,l,o=!1)=>{let s,i,r=0,c=0,f=0,u=0,a=t.length-1,d=t[0],h=t[a],m=l.length-1,p=l[0],$=l[m];for(;r<=a&&c<=m;)if(null==d)d=t[++r];else if(null==h)h=t[--a];else if(null==p)p=l[++c];else if(null==$)$=l[--m];else if(Q(d,p,o))Z(d,p,o),d=t[++r],p=l[++c];else if(Q(h,$,o))Z(h,$,o),h=t[--a],$=l[--m];else if(Q(d,$,o))"slot"!==d.$&&"slot"!==$.$||B(d.v.parentNode,!1),Z(d,$,o),oe(e,d.v,h.v.nextSibling),d=t[++r],$=l[--m];else if(Q(h,p,o))"slot"!==d.$&&"slot"!==$.$||B(h.v.parentNode,!1),Z(h,p,o),oe(e,h.v,d.v),h=t[--a],p=l[++c];else{for(f=-1,u=r;u<=a;++u)if(t[u]&&null!==t[u].m&&t[u].m===p.m){f=u;break}f>=0?(i=t[f],i.$!==p.$?s=z(t&&t[c],n,f):(Z(i,p,o),t[f]=void 0,s=i.v),p=l[++c]):(s=z(t&&t[c],n,c),p=l[++c]),s&&oe(Y(d.v),s,X(d.v))}r>a?J(e,null==l[m+1]?null:l[m+1].v,n,l,c,m):c>m&&K(t,r,a)})(l,o,t,s,n):null!==s?J(l,null,t,s,0,s.length-1):!n&&null!==o&&K(o,0,o.length-1)},ee=e=>{const t=e.childNodes;for(const e of t)if(1===e.nodeType){if(e["s-sr"]){const n=e["s-sn"];e.hidden=!1;for(const l of t)if(l!==e)if(l["s-hn"]!==e["s-hn"]||""!==n){if(1===l.nodeType&&(n===l.getAttribute("slot")||n===l["s-sn"])||3===l.nodeType&&n===l["s-sn"]){e.hidden=!0;break}}else if(1===l.nodeType||3===l.nodeType&&""!==l.textContent.trim()){e.hidden=!0;break}}ee(e)}},te=[],ne=e=>{let t,n,l;for(const o of e.childNodes){if(o["s-sr"]&&(t=o["s-cr"])&&t.parentNode){n=t.parentNode.childNodes;const e=o["s-sn"];for(l=n.length-1;l>=0;l--)if(t=n[l],!t["s-cn"]&&!t["s-nr"]&&t["s-hn"]!==o["s-hn"])if(le(t,e)){let n=te.find((e=>e.j===t));I=!0,t["s-sn"]=t["s-sn"]||e,n?(n.j["s-sh"]=o["s-hn"],n.O=o):(t["s-sh"]=o["s-hn"],te.push({O:o,j:t})),t["s-sr"]&&te.map((e=>{le(e.j,t["s-sn"])&&(n=te.find((e=>e.j===t)),n&&!e.O&&(e.O=n.O))}))}else te.some((e=>e.j===t))||te.push({j:t})}1===o.nodeType&&ne(o)}},le=(e,t)=>1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t,oe=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),se=(e,t)=>{t&&!e.C&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.C=t)))},ie=(e,t)=>{if(e.l|=16,!(4&e.l))return se(e,e.M),w((()=>re(e,t)));e.l|=512},re=(e,t)=>{const n=e.t;if(!n)throw Error(`Can't render component <${e.$hostElement$.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return t&&(l=me(n,"componentWillLoad")),ce(l,(()=>ue(e,n,t)))},ce=(e,t)=>fe(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),fe=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,ue=async(e,t,n)=>{var l;const o=e.$hostElement$,s=o["s-rc"];n&&(e=>{const t=e.P;((e,t)=>{var n;const l=H(t),o=i.get(l);if(e=11===e.nodeType?e:f,o)if("string"==typeof o){let s,i=D.get(e=e.head||e);if(i||D.set(e,i=new Set),!i.has(l)){{s=f.createElement("style"),s.innerHTML=o;const l=null!=(n=u.R)?n:k(f);null!=l&&s.setAttribute("nonce",l),(!(1&t.l)||1&t.l&&"HEAD"!==e.nodeName)&&e.insertBefore(s,e.querySelector("link"))}4&t.l&&(s.innerHTML+=r),i&&i.add(l)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o])})(e.$hostElement$.getRootNode(),t)})(e);ae(e,t,o,n),s&&(s.map((e=>e())),o["s-rc"]=void 0);{const t=null!=(l=o["s-p"])?l:[],n=()=>de(e);0===t.length?n():(Promise.all(t).then(n),e.l|=4,t.length=0)}},ae=(e,t,n,l)=>{try{t=t.render(),e.l&=-17,e.l|=2,((e,t,n=!1)=>{var l,o,s,i;const r=e.$hostElement$,c=e.T||x(null,null),a=(e=>e&&e.$===A)(t)?t:T(null,null,t);if(M=r.tagName,n&&a.u)for(const e of Object.keys(a.u))r.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(a.u[e]=r[e]);if(a.$=null,a.l|=4,e.T=a,a.v=c.v=r,G=!1,C=r["s-cr"],I=!1,Z(c,a,n),u.l|=1,V){ne(a.v);for(const e of te){const t=e.j;if(!t["s-ol"]){const e=f.createTextNode("");e["s-nr"]=t,oe(t.parentNode,t["s-ol"]=e,t)}}for(const e of te){const t=e.j,r=e.O;if(r){const e=r.parentNode;let n=r.nextSibling;{let s=null==(l=t["s-ol"])?void 0:l.previousSibling;for(;s;){let l=null!=(o=s["s-nr"])?o:null;if(l&&l["s-sn"]===t["s-sn"]&&e===l.parentNode){for(l=l.nextSibling;l===t||(null==l?void 0:l["s-sr"]);)l=null==l?void 0:l.nextSibling;if(!l||!l["s-nr"]){n=l;break}}s=s.previousSibling}}(!n&&e!==t.parentNode||t.nextSibling!==n)&&t!==n&&(!t["s-hn"]&&t["s-ol"]&&(t["s-hn"]=t["s-ol"].parentNode.nodeName),oe(e,t,n),1===t.nodeType&&(t.hidden=null!=(s=t["s-ih"])&&s)),t&&"function"==typeof r["s-rf"]&&r["s-rf"](t)}else 1===t.nodeType&&(n&&(t["s-ih"]=null!=(i=t.hidden)&&i),t.hidden=!0)}}I&&ee(a.v),u.l&=-2,te.length=0,C=void 0})(e,t,l)}catch(t){o(t,e.$hostElement$)}return null},de=e=>{const t=e.$hostElement$,n=e.M;me(e.t,"componentDidRender"),64&e.l||(e.l|=64,pe(t),e.A(t),n||he()),e.C&&(e.C(),e.C=void 0),512&e.l&&b((()=>ie(e,!1))),e.l&=-517},he=()=>{pe(f.documentElement),b((()=>(e=>{const t=u.ce("appload",{detail:{namespace:"general-styling-wrapper"}});return e.dispatchEvent(t),t})(c)))},me=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){o(e)}},pe=e=>e.classList.add("hydrated"),$e=(e,t,l)=>{var o,s;const i=e.prototype;if(t.N){const r=Object.entries(null!=(o=t.N)?o:{});if(r.map((([e,[o]])=>{(31&o||2&l&&32&o)&&Object.defineProperty(i,e,{get(){return((e,t)=>n(this).D.get(t))(0,e)},set(l){((e,t,l,o)=>{const s=n(e);if(!s)throw Error(`Couldn't find host element for "${o.S}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const i=s.D.get(t),r=s.l,c=s.t;l=((e,t)=>null==e||S(e)?e:1&t?e+"":e)(l,o.N[t][0]),8&r&&void 0!==i||l===i||Number.isNaN(i)&&Number.isNaN(l)||(s.D.set(t,l),c&&2==(18&r)&&ie(s,!1))})(this,e,l,t)},configurable:!0,enumerable:!0})})),1&l){const l=new Map;i.attributeChangedCallback=function(e,o,s){u.jmp((()=>{var r;const c=l.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const l=n(this),i=null==l?void 0:l.l;if(i&&!(8&i)&&128&i&&s!==o){const n=l.t,i=null==(r=t.H)?void 0:r[e];null==i||i.forEach((t=>{null!=n[t]&&n[t].call(n,s,o,e)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=t.H)?s:{}),...r.filter((([e,t])=>15&t[0])).map((([e,t])=>{const n=t[1]||e;return l.set(n,e),n}))]))}}return e},ye=(e,l={})=>{var a;const h=[],m=l.exclude||[],p=c.customElements,$=f.head,y=$.querySelector("meta[charset]"),v=f.createElement("style"),b=[];let w,g=!0;Object.assign(u,l),u.o=new URL(l.resourcesUrl||"./",f.baseURI).href;let S=!1;if(e.map((e=>{e[1].map((l=>{const r={l:l[0],S:l[1],N:l[2],L:l[3]};4&r.l&&(S=!0),r.N=l[2];const c=r.S,a=class extends HTMLElement{constructor(e){super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const l={l:0,$hostElement$:e,P:n,D:new Map};l.W=new Promise((e=>l.A=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,l)})(e=this,r)}connectedCallback(){this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),w&&(clearTimeout(w),w=null),g?b.push(this):u.jmp((()=>(e=>{if(!(1&u.l)){const t=n(e),l=t.P,r=()=>{};if(1&t.l)(null==t?void 0:t.t)||(null==t?void 0:t.W)&&t.W.then((()=>{}));else{t.l|=1,12&l.l&&(e=>{const t=e["s-cr"]=f.createComment("");t["s-cn"]=!0,oe(e,t,e.firstChild)})(e);{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){se(t,t.M=n);break}}l.N&&Object.entries(l.N).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let l;if(!(32&t.l)){if(t.l|=32,n.F){const e=(e=>{const t=e.S.replace(/-/g,"_"),n=e.F;if(!n)return;const l=s.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(s.set(n,e),e[t])),o)
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(e&&"then"in e){const t=()=>{};l=await e,t()}else l=e;if(!l)throw Error(`Constructor for "${n.S}#${t.U}" was not found`);l.isProxied||($e(l,n,2),l.isProxied=!0);const i=()=>{};t.l|=8;try{new l(t)}catch(e){o(e)}t.l&=-9,i()}else l=e.constructor,customElements.whenDefined(e.localName).then((()=>t.l|=128));if(l&&l.style){let e;"string"==typeof l.style&&(e=l.style);const t=H(n);if(!i.has(t)){const l=()=>{};((e,t,n)=>{let l=i.get(e);d&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,i.set(e,l)})(t,e,!!(1&n.l)),l()}}}const r=t.M,c=()=>ie(t,!0);r&&r["s-rc"]?r["s-rc"].push(c):c()})(e,t,l)}r()}})(this)))}disconnectedCallback(){u.jmp((()=>(async()=>{if(!(1&u.l)){const e=n(this);(null==e?void 0:e.t)||(null==e?void 0:e.W)&&e.W.then((()=>{}))}})()))}componentOnReady(){return n(this).W}};r.F=e[0],m.includes(c)||p.get(c)||(h.push(c),p.define(c,$e(a,r,1)))}))})),h.length>0&&(S&&(v.textContent+=r),v.textContent+=h.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",v.innerHTML.length)){v.setAttribute("data-styles","");const e=null!=(a=u.R)?a:k(f);null!=e&&v.setAttribute("nonce",e),$.insertBefore(v,y?y.nextSibling:$.firstChild)}g=!1,b.length?b.map((e=>e.connectedCallback())):u.jmp((()=>w=setTimeout(he,30)))},ve=e=>u.R=e;export{ye as b,N as g,T as h,a as p,l as r,ve as s}
@@ -0,0 +1 @@
1
+ import{r as t,h as s,g as e}from"./p-6458f4e1.js";const i=class{constructor(s){t(this,s),this.stylingAppends=!1,this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.el.prepend(t)},this.setClientStylingURL=()=>{let t=new URL(this.clientStylingUrl),s=document.createElement("style");fetch(t.href).then((t=>t.text())).then((t=>{s.innerHTML=t,setTimeout((()=>{this.el.prepend(s)}),1)})).catch((t=>{console.log("error ",t)}))},this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.targetTranslations=void 0}componentDidRender(){this.stylingAppends||(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.stylingAppends=!0)}async componentWillLoad(){const t=[];if(this.translationUrl){const i=(s=this.translationUrl,e=this.targetTranslations,new Promise((t=>{fetch(s).then((t=>t.json())).then((s=>{Object.keys(s).forEach((t=>{e[t]=e[t]?e[t]:{};for(let i in s[t])e[t][i]=s[t][i]})),t(!0)}))})));t.push(i)}var s,e;return await Promise.all(t)}render(){return s("div",{key:"4d3414408c7662f88331dbe655966237f74d6958",class:"StyleShell"},s("slot",{key:"1d004644d84602c4314bdf5dfc26b55b160f57df",name:"mainContent"}))}get el(){return e(this)}};i.style=":host{display:block}";export{i as general_styling_wrapper}
@@ -0,0 +1 @@
1
+ const o=()=>{};export{o as g}
@@ -0,0 +1 @@
1
+ module.exports = require('./cjs/index.cjs.js');
package/dist/index.js ADDED
@@ -0,0 +1 @@
1
+ export * from './esm/index.js';
@@ -0,0 +1,17 @@
1
+ import { sass } from "@stencil/sass";
2
+ export const config = {
3
+ namespace: 'general-styling-wrapper',
4
+ taskQueue: 'async',
5
+ sourceMap: true,
6
+ minifyJs: false,
7
+ extras: {
8
+ experimentalImportInjection: true
9
+ },
10
+ plugins: [sass()],
11
+ outputTargets: [
12
+ {
13
+ type: 'www',
14
+ serviceWorker: null // disable service workers
15
+ }
16
+ ]
17
+ };
@@ -0,0 +1,17 @@
1
+ import { sass } from "@stencil/sass";
2
+ export const config = {
3
+ namespace: 'general-styling-wrapper',
4
+ taskQueue: 'async',
5
+ sourceMap: false,
6
+ minifyJs: true,
7
+ extras: {
8
+ experimentalImportInjection: true
9
+ },
10
+ plugins: [sass()],
11
+ outputTargets: [
12
+ {
13
+ type: 'dist',
14
+ esmLoaderPath: '../loader'
15
+ }
16
+ ]
17
+ };
@@ -0,0 +1,2 @@
1
+ import { Config } from '../../../../../../../../../../../../stencil-public-runtime';
2
+ export declare const config: Config;
@@ -0,0 +1,2 @@
1
+ import { Config } from '../../../../../../../../../../../../stencil-public-runtime';
2
+ export declare const config: Config;
@@ -0,0 +1,26 @@
1
+ import { Translations } from '../../utils/locale.utils';
2
+ export declare class GeneralStylingWrapper {
3
+ /**
4
+ * Client custom styling via inline styles
5
+ */
6
+ clientStyling: string;
7
+ /**
8
+ * Client custom styling via url
9
+ */
10
+ clientStylingUrl: string;
11
+ /**
12
+ * Translation via url
13
+ */
14
+ translationUrl: string;
15
+ /**
16
+ * Translation be merged to
17
+ */
18
+ targetTranslations: Translations;
19
+ el: HTMLElement;
20
+ stylingAppends: boolean;
21
+ componentDidRender(): void;
22
+ componentWillLoad(): Promise<any[]>;
23
+ setClientStyling: () => void;
24
+ setClientStylingURL: () => void;
25
+ render(): any;
26
+ }
@@ -0,0 +1 @@
1
+ export { GeneralStylingWrapper } from './general-styling-wrapper';
@@ -0,0 +1,71 @@
1
+ /* eslint-disable */
2
+ /* tslint:disable */
3
+ /**
4
+ * This is an autogenerated file created by the Stencil compiler.
5
+ * It contains typing information for all components that exist in this project.
6
+ */
7
+ import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
8
+ import { Translations } from "./utils/locale.utils";
9
+ export { Translations } from "./utils/locale.utils";
10
+ export namespace Components {
11
+ interface GeneralStylingWrapper {
12
+ /**
13
+ * Client custom styling via inline styles
14
+ */
15
+ "clientStyling": string;
16
+ /**
17
+ * Client custom styling via url
18
+ */
19
+ "clientStylingUrl": string;
20
+ /**
21
+ * Translation be merged to
22
+ */
23
+ "targetTranslations": Translations;
24
+ /**
25
+ * Translation via url
26
+ */
27
+ "translationUrl": string;
28
+ }
29
+ }
30
+ declare global {
31
+ interface HTMLGeneralStylingWrapperElement extends Components.GeneralStylingWrapper, HTMLStencilElement {
32
+ }
33
+ var HTMLGeneralStylingWrapperElement: {
34
+ prototype: HTMLGeneralStylingWrapperElement;
35
+ new (): HTMLGeneralStylingWrapperElement;
36
+ };
37
+ interface HTMLElementTagNameMap {
38
+ "general-styling-wrapper": HTMLGeneralStylingWrapperElement;
39
+ }
40
+ }
41
+ declare namespace LocalJSX {
42
+ interface GeneralStylingWrapper {
43
+ /**
44
+ * Client custom styling via inline styles
45
+ */
46
+ "clientStyling"?: string;
47
+ /**
48
+ * Client custom styling via url
49
+ */
50
+ "clientStylingUrl"?: string;
51
+ /**
52
+ * Translation be merged to
53
+ */
54
+ "targetTranslations"?: Translations;
55
+ /**
56
+ * Translation via url
57
+ */
58
+ "translationUrl"?: string;
59
+ }
60
+ interface IntrinsicElements {
61
+ "general-styling-wrapper": GeneralStylingWrapper;
62
+ }
63
+ }
64
+ export { LocalJSX as JSX };
65
+ declare module "@stencil/core" {
66
+ export namespace JSX {
67
+ interface IntrinsicElements {
68
+ "general-styling-wrapper": LocalJSX.GeneralStylingWrapper & JSXBase.HTMLAttributes<HTMLGeneralStylingWrapperElement>;
69
+ }
70
+ }
71
+ }
@@ -0,0 +1 @@
1
+ export * from './components';