@everymatrix/nuts-inbox-widget 1.44.0 → 1.45.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/app-globals-3a1e7e63.js +5 -0
- package/dist/cjs/index-ae4a5047.js +1329 -0
- package/dist/cjs/loader.cjs.js +7 -13
- package/dist/cjs/nuts-inbox-widget.cjs.js +17 -11
- package/dist/cjs/nuts-inbox-widget_3.cjs.entry.js +2276 -1736
- package/dist/collection/api/methods/index.js +120 -120
- package/dist/collection/collection-manifest.json +5 -5
- package/dist/collection/components/nuts-inbox-widget/nuts-inbox-widget.js +511 -515
- package/dist/collection/components/nuts-notification/nuts-notification.css +8 -8
- package/dist/collection/components/nuts-notification/nuts-notification.js +585 -579
- package/dist/collection/components/nuts-popover/nuts-popover.css +8 -8
- package/dist/collection/components/nuts-popover/nuts-popover.js +392 -404
- package/dist/collection/types/nuts-inbox-widget.types.js +21 -21
- package/dist/collection/utils/locale.utils.js +42 -42
- package/dist/collection/utils/utils.js +12 -12
- package/dist/esm/app-globals-0f993ce5.js +3 -0
- package/dist/esm/index-64960aae.js +1301 -0
- package/dist/esm/loader.js +7 -13
- package/dist/esm/nuts-inbox-widget.js +14 -11
- package/dist/esm/nuts-inbox-widget_3.entry.js +2276 -1736
- package/dist/nuts-inbox-widget/nuts-inbox-widget.esm.js +1 -1
- package/dist/nuts-inbox-widget/p-707e3b6f.entry.js +1 -0
- package/dist/nuts-inbox-widget/p-80fb2012.js +2 -0
- package/dist/nuts-inbox-widget/p-e1255160.js +1 -0
- package/dist/stencil.config.dev.js +14 -0
- package/dist/stencil.config.js +14 -19
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/nuts-inbox-widget/.stencil/packages/stencil/nuts-inbox-widget/stencil.config.d.ts +2 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/nuts-inbox-widget/.stencil/packages/stencil/nuts-inbox-widget/stencil.config.dev.d.ts +2 -0
- package/dist/types/api/methods/types.d.ts +33 -33
- package/dist/types/components/nuts-inbox-widget/nuts-inbox-widget.d.ts +92 -92
- package/dist/types/components/nuts-notification/nuts-notification.d.ts +100 -100
- package/dist/types/components/nuts-popover/nuts-popover.d.ts +70 -70
- package/dist/types/components.d.ts +53 -5
- package/dist/types/stencil-public-runtime.d.ts +142 -33
- package/dist/types/types/nuts-inbox-widget.types.d.ts +74 -74
- package/loader/cdn.js +1 -3
- package/loader/index.cjs.js +1 -3
- package/loader/index.d.ts +13 -1
- package/loader/index.es2017.js +1 -3
- package/loader/index.js +1 -3
- package/loader/package.json +1 -0
- package/package.json +9 -5
- package/dist/cjs/index-84dbe58e.js +0 -1356
- package/dist/components/index.d.ts +0 -26
- package/dist/components/index.js +0 -1
- package/dist/components/nuts-inbox-widget.d.ts +0 -11
- package/dist/components/nuts-inbox-widget.js +0 -4082
- package/dist/components/nuts-notification.d.ts +0 -11
- package/dist/components/nuts-notification.js +0 -6
- package/dist/components/nuts-notification2.js +0 -36119
- package/dist/components/nuts-popover.d.ts +0 -11
- package/dist/components/nuts-popover.js +0 -6
- package/dist/components/nuts-popover2.js +0 -170
- package/dist/esm/index-722b5754.js +0 -1329
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/css-shim.js +0 -1
- package/dist/esm/polyfills/dom.js +0 -79
- package/dist/esm/polyfills/es5-html-element.js +0 -1
- package/dist/esm/polyfills/index.js +0 -34
- package/dist/esm/polyfills/system.js +0 -6
- package/dist/nuts-inbox-widget/p-11f92a64.js +0 -1
- package/dist/nuts-inbox-widget/p-d0db9d2d.entry.js +0 -1
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-stencil/packages/nuts-inbox-widget/.stencil/packages/nuts-inbox-widget/stencil.config.d.ts +0 -2
|
@@ -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)=>t in e,s=(e,t)=>(0,console.error)(e,t),r=new Map,i=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",u="undefined"!=typeof window?window:{},a=u.document||{head:{}},f={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)},h=e=>Promise.resolve(e),p=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),d=!1,m=[],y=[],w=(e,t)=>n=>{e.push(n),d||(d=!0,t&&4&f.l?$(b):f.raf(b))},v=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){s(e)}e.length=0},b=()=>{v(m),v(y),(d=m.length>0)&&f.raf(b)},$=e=>h().then(e),g=w(y,!0),S={},j=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:()=>E,map:()=>C,ok:()=>O,unwrap:()=>x,unwrapErr:()=>P});var O=e=>({isOk:!0,isErr:!1,value:e}),E=e=>({isOk:!1,isErr:!0,value:e});function C(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>O(e))):O(n)}if(e.isErr)return E(e.value);throw"should never get here"}var M,x=e=>{if(e.isOk)return e.value;throw e.value},P=e=>{if(e.isErr)return e.value;throw e.value},R=(e,t,...n)=>{let l=null,o=null,s=!1,r=!1;const i=[],c=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?c(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!j(l))&&(l+=""),s&&r?i[i.length-1].i+=l:i.push(s?A(null,l):l),r=s)};if(c(n),t){t.key&&(o=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}const u=A(e,null);return u.u=t,i.length>0&&(u.h=i),u.p=o,u},A=(e,t)=>({l:0,m:e,i:t,v:null,h:null,u:null,p:null}),T={},D=e=>n(e).$hostElement$,F=(e,t,n)=>{const l=D(e);return{emit:e=>H(l,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},H=(e,t,n)=>{const l=f.ce(t,n);return e.dispatchEvent(l),l},L=new WeakMap,N=e=>"sc-"+e.$,U=(e,t,n,l,s,r)=>{if(n!==l){let i=o(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,o=q(n),s=q(l);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("key"===t);else if("ref"===t)l&&l(e);else if(i||"o"!==t[0]||"n"!==t[1]){const o=j(l);if((i||o&&null!==l)&&!s)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&r||s)&&!o&&e.setAttribute(t,l=!0===l?"":l)}else if(t="-"===t[2]?t.slice(3):o(u,c)?c.slice(2):c[2]+t.slice(3),n||l){const o=t.endsWith(G);t=t.replace(V,""),n&&f.rel(e,t,n,o),l&&f.ael(e,t,l,o)}}},W=/\s/,q=e=>e?e.split(W):[],G="Capture",V=RegExp(G+"$"),_=(e,t,n)=>{const l=11===t.v.nodeType&&t.v.host?t.v.host:t.v,o=e&&e.u||S,s=t.u||S;for(const e of z(Object.keys(o)))e in s||U(l,e,o[e],void 0,n,t.l);for(const e of z(Object.keys(s)))U(l,e,o[e],s[e],n,t.l)};function z(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var B=!1,I=(e,t,n)=>{const l=t.h[n];let o,s,r=0;if(null!==l.i)o=l.v=a.createTextNode(l.i);else{if(B||(B="svg"===l.m),o=l.v=a.createElementNS(B?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",l.m),B&&"foreignObject"===l.m&&(B=!1),_(null,l,B),o.getRootNode().querySelector("body"),l.h)for(r=0;r<l.h.length;++r)s=I(e,l,r),s&&o.appendChild(s);"svg"===l.m?B=!1:"foreignObject"===o.tagName&&(B=!0)}return o["s-hn"]=M,o},J=(e,t,n,l,o,s)=>{let r,i=e;for(i.shadowRoot&&i.tagName===M&&(i=i.shadowRoot);o<=s;++o)l[o]&&(r=I(null,n,o),r&&(l[o].v=r,Z(i,r,t)))},K=(e,t,n)=>{for(let l=t;l<=n;++l){const t=e[l];if(t){const e=t.v;Y(t),e&&e.remove()}}},Q=(e,t,n=!1)=>e.m===t.m&&(!!n||e.p===t.p),X=(e,t,n=!1)=>{const l=t.v=e.v,o=e.h,s=t.h,r=t.m,i=t.i;null===i?(_(e,t,B="svg"===r||"foreignObject"!==r&&B),null!==o&&null!==s?((e,t,n,l,o=!1)=>{let s,r,i=0,c=0,u=0,a=0,f=t.length-1,h=t[0],p=t[f],d=l.length-1,m=l[0],y=l[d];for(;i<=f&&c<=d;)if(null==h)h=t[++i];else if(null==p)p=t[--f];else if(null==m)m=l[++c];else if(null==y)y=l[--d];else if(Q(h,m,o))X(h,m,o),h=t[++i],m=l[++c];else if(Q(p,y,o))X(p,y,o),p=t[--f],y=l[--d];else if(Q(h,y,o))X(h,y,o),Z(e,h.v,p.v.nextSibling),h=t[++i],y=l[--d];else if(Q(p,m,o))X(p,m,o),Z(e,p.v,h.v),p=t[--f],m=l[++c];else{for(u=-1,a=i;a<=f;++a)if(t[a]&&null!==t[a].p&&t[a].p===m.p){u=a;break}u>=0?(r=t[u],r.m!==m.m?s=I(t&&t[c],n,u):(X(r,m,o),t[u]=void 0,s=r.v),m=l[++c]):(s=I(t&&t[c],n,c),m=l[++c]),s&&Z(h.v.parentNode,s,h.v)}i>f?J(e,null==l[d+1]?null:l[d+1].v,n,l,c,d):c>d&&K(t,i,f)})(l,o,t,s,n):null!==s?(null!==e.i&&(l.textContent=""),J(l,null,t,s,0,s.length-1)):!n&&null!==o&&K(o,0,o.length-1),B&&"svg"===r&&(B=!1)):e.i!==i&&(l.data=i)},Y=e=>{e.u&&e.u.ref&&e.u.ref(null),e.h&&e.h.map(Y)},Z=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),ee=(e,t)=>{t&&!e.S&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.S=t)))},te=(e,t)=>{if(e.l|=16,!(4&e.l))return ee(e,e.j),g((()=>ne(e,t)));e.l|=512},ne=(e,t)=>{const n=e.t;if(!n)throw Error(`Can't render component <${e.$hostElement$.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return t&&(e.l|=256,e.k&&(e.k.map((([e,t])=>ue(n,e,t))),e.k=void 0),l=ue(n,"componentWillLoad")),le(l,(()=>se(e,n,t)))},le=(e,t)=>oe(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),oe=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,se=async(e,t,n)=>{var l;const o=e.$hostElement$,s=o["s-rc"];n&&(e=>{const t=e.O,n=e.$hostElement$,l=t.l,o=((e,t)=>{var n;const l=N(t),o=i.get(l);if(e=11===e.nodeType?e:a,o)if("string"==typeof o){let s,r=L.get(e=e.head||e);if(r||L.set(e,r=new Set),!r.has(l)){{s=a.createElement("style"),s.innerHTML=o;const l=null!=(n=f.C)?n:k(a);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+=c),r&&r.add(l)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return l})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&2&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(e);re(e,t,o,n),s&&(s.map((e=>e())),o["s-rc"]=void 0);{const t=null!=(l=o["s-p"])?l:[],n=()=>ie(e);0===t.length?n():(Promise.all(t).then(n),e.l|=4,t.length=0)}},re=(e,t,n,l)=>{try{t=t.render(),e.l&=-17,e.l|=2,((e,t,n=!1)=>{const l=e.$hostElement$,o=e.O,s=e.M||A(null,null),r=(e=>e&&e.m===T)(t)?t:R(null,null,t);if(M=l.tagName,o.P&&(r.u=r.u||{},o.P.map((([e,t])=>r.u[t]=l[e]))),n&&r.u)for(const e of Object.keys(r.u))l.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(r.u[e]=l[e]);r.m=null,r.l|=4,e.M=r,r.v=s.v=l.shadowRoot||l,X(s,r,n)})(e,t,l)}catch(t){s(t,e.$hostElement$)}return null},ie=e=>{const t=e.$hostElement$,n=e.j;ue(e.t,"componentDidRender"),64&e.l||(e.l|=64,ae(t),e.R(t),n||ce()),e.S&&(e.S(),e.S=void 0),512&e.l&&$((()=>te(e,!1))),e.l&=-517},ce=()=>{ae(a.documentElement),$((()=>H(u,"appload",{detail:{namespace:"nuts-inbox-widget"}})))},ue=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){s(e)}},ae=e=>e.classList.add("hydrated"),fe=(e,t,l)=>{var o,r;const i=e.prototype;if(t.A||t.T||e.watchers){e.watchers&&!t.T&&(t.T=e.watchers);const c=Object.entries(null!=(o=t.A)?o:{});if(c.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 r=n(e);if(!r)throw Error(`Couldn't find host element for "${o.$}" 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=r.$hostElement$,c=r.D.get(t),u=r.l,a=r.t;if(l=((e,t)=>null==e||j(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e)(l,o.A[t][0]),(!(8&u)||void 0===c)&&l!==c&&(!Number.isNaN(c)||!Number.isNaN(l))&&(r.D.set(t,l),a)){if(o.T&&128&u){const e=o.T[t];e&&e.map((e=>{try{a[e](l,c,t)}catch(e){s(e,i)}}))}2==(18&u)&&te(r,!1)}})(this,e,l,t)},configurable:!0,enumerable:!0})})),1&l){const l=new Map;i.attributeChangedCallback=function(e,o,s){f.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.T)?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!=(r=t.T)?r:{}),...c.filter((([e,t])=>15&t[0])).map((([e,n])=>{var o;const s=n[1]||e;return l.set(s,e),512&n[0]&&(null==(o=t.P)||o.push([e,s])),s}))]))}}return e},he=e=>{ue(e,"connectedCallback")},pe=(e,l={})=>{var o;const h=[],d=l.exclude||[],m=u.customElements,y=a.head,w=y.querySelector("meta[charset]"),v=a.createElement("style"),b=[];let $,g=!0;Object.assign(f,l),f.o=new URL(l.resourcesUrl||"./",a.baseURI).href;let S=!1;if(e.map((e=>{e[1].map((l=>{var o;const c={l:l[0],$:l[1],A:l[2],F:l[3]};4&c.l&&(S=!0),c.A=l[2],c.F=l[3],c.P=[],c.T=null!=(o=l[4])?o:{};const u=c.$,a=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const l={l:0,$hostElement$:e,O:n,D:new Map};l.H=new Promise((e=>l.R=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,l)})(e=this,c),1&c.l)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${c.$}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else e.attachShadow({mode:"open"})}connectedCallback(){const e=n(this);this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,de(this,e,c.F)),$&&(clearTimeout($),$=null),g?b.push(this):f.jmp((()=>(e=>{if(!(1&f.l)){const t=n(e),l=t.O,o=()=>{};if(1&t.l)de(e,t,l.F),(null==t?void 0:t.t)?he(t.t):(null==t?void 0:t.H)&&t.H.then((()=>he(t.t)));else{t.l|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){ee(t,t.j=n);break}}l.A&&Object.entries(l.A).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.L){const e=(e=>{const t=e.$.replace(/-/g,"_"),n=e.L;if(!n)return;const l=r.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(r.set(n,e),e[t])),s)
|
|
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.$}#${t.N}" was not found`);l.isProxied||(n.T=l.watchers,fe(l,n,2),l.isProxied=!0);const o=()=>{};t.l|=8;try{new l(t)}catch(e){s(e)}t.l&=-9,t.l|=128,o(),he(t.t)}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=N(n);if(!i.has(t)){const l=()=>{};((e,t,n)=>{let l=i.get(e);p&&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 o=t.j,c=()=>te(t,!0);o&&o["s-rc"]?o["s-rc"].push(c):c()})(e,t,l)}o()}})(this)))}disconnectedCallback(){f.jmp((()=>(async()=>{if(!(1&f.l)){const e=n(this);e.U&&(e.U.map((e=>e())),e.U=void 0),(null==e?void 0:e.t)||(null==e?void 0:e.H)&&e.H.then((()=>{}))}})()))}componentOnReady(){return n(this).H}};c.L=e[0],d.includes(u)||m.get(u)||(h.push(u),m.define(u,fe(a,c,1)))}))})),h.length>0&&(S&&(v.textContent+=c),v.textContent+=h.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",v.innerHTML.length)){v.setAttribute("data-styles","");const e=null!=(o=f.C)?o:k(a);null!=e&&v.setAttribute("nonce",e),y.insertBefore(v,w?w.nextSibling:y.firstChild)}g=!1,b.length?b.map((e=>e.connectedCallback())):f.jmp((()=>$=setTimeout(ce,30)))},de=(e,t,n)=>{n&&n.map((([n,l,o])=>{const s=ye(e,n),r=me(t,o),i=we(n);f.ael(s,l,r,i),(t.U=t.U||[]).push((()=>f.rel(s,l,r,i)))}))},me=(e,t)=>n=>{var l;try{256&e.l?null==(l=e.t)||l[t](n):(e.k=e.k||[]).push([t,n])}catch(e){s(e)}},ye=(e,t)=>8&t?u:e,we=e=>({passive:!!(1&e),capture:!!(2&e)}),ve=e=>f.C=e;export{pe as b,F as c,D as g,R as h,h as p,l as r,ve as s}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const o=()=>{};export{o as g}
|
package/dist/stencil.config.js
CHANGED
|
@@ -1,22 +1,17 @@
|
|
|
1
|
-
import { sass } from
|
|
1
|
+
import { sass } from "@stencil/sass";
|
|
2
2
|
export const config = {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
{
|
|
8
|
-
|
|
9
|
-
esmLoaderPath: '../loader',
|
|
3
|
+
namespace: 'nuts-inbox-widget',
|
|
4
|
+
taskQueue: 'async',
|
|
5
|
+
sourceMap: false,
|
|
6
|
+
minifyJs: true,
|
|
7
|
+
extras: {
|
|
8
|
+
experimentalImportInjection: true
|
|
10
9
|
},
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
type: 'www',
|
|
19
|
-
serviceWorker: null, // disable service workers
|
|
20
|
-
},
|
|
21
|
-
],
|
|
10
|
+
plugins: [sass()],
|
|
11
|
+
outputTargets: [
|
|
12
|
+
{
|
|
13
|
+
type: 'dist',
|
|
14
|
+
esmLoaderPath: '../loader'
|
|
15
|
+
}
|
|
16
|
+
]
|
|
22
17
|
};
|
|
@@ -1,65 +1,65 @@
|
|
|
1
1
|
import { Notification, InitializeSessionBodyContent } from '../../types/nuts-inbox-widget.types';
|
|
2
2
|
export interface BaseMethodParams {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
baseUrl: string;
|
|
4
|
+
headers: Headers;
|
|
5
5
|
}
|
|
6
6
|
export interface InitializeSessionParams extends BaseMethodParams {
|
|
7
|
-
|
|
7
|
+
body: InitializeSessionBodyContent;
|
|
8
8
|
}
|
|
9
9
|
export interface InitializeSessionResponseData {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
data: {
|
|
11
|
+
profile: {
|
|
12
|
+
firstName: string;
|
|
13
|
+
lastName: string;
|
|
14
|
+
_id: string;
|
|
15
|
+
};
|
|
16
|
+
token: string;
|
|
15
17
|
};
|
|
16
|
-
token: string;
|
|
17
|
-
};
|
|
18
18
|
}
|
|
19
19
|
export interface InitializeSessionReturnData {
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
token: string;
|
|
21
|
+
unseenCounter: number;
|
|
22
22
|
}
|
|
23
23
|
export interface UnseenCountParams extends BaseMethodParams {
|
|
24
24
|
}
|
|
25
25
|
export interface UnseenCountResponseData {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
data: {
|
|
27
|
+
count: number;
|
|
28
|
+
};
|
|
29
29
|
}
|
|
30
30
|
export interface DeleteMessageParams extends BaseMethodParams {
|
|
31
|
-
|
|
31
|
+
messageId: string;
|
|
32
32
|
}
|
|
33
33
|
export interface MarkMessageBodyParams {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
34
|
+
messageId: string;
|
|
35
|
+
mark: {
|
|
36
|
+
seen: boolean;
|
|
37
|
+
read: boolean;
|
|
38
|
+
};
|
|
39
39
|
}
|
|
40
40
|
export interface MarkMessageParams extends BaseMethodParams {
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
body: MarkMessageBodyParams;
|
|
42
|
+
unread: boolean;
|
|
43
43
|
}
|
|
44
44
|
export interface MarkMessageResponseData {
|
|
45
|
-
|
|
45
|
+
data: Notification[];
|
|
46
46
|
}
|
|
47
47
|
export interface MarkMessageReturnData {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
48
|
+
messageSeen: boolean;
|
|
49
|
+
messageRead: boolean;
|
|
50
|
+
showSettingsModal: boolean;
|
|
51
51
|
}
|
|
52
52
|
export interface GetNotificationsParams extends BaseMethodParams {
|
|
53
|
-
|
|
53
|
+
page: number;
|
|
54
54
|
}
|
|
55
55
|
export interface GetNotificationsResponseData {
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
totalCount: number;
|
|
57
|
+
data: Notification[];
|
|
58
58
|
}
|
|
59
59
|
export interface GetNotificationsReturnData {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
60
|
+
isLoading: boolean;
|
|
61
|
+
numberOfNotifications: number;
|
|
62
|
+
notifications: Notification[];
|
|
63
63
|
}
|
|
64
64
|
export interface MarkAllMessagesParams extends BaseMethodParams {
|
|
65
65
|
}
|
|
@@ -1,96 +1,96 @@
|
|
|
1
1
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
2
|
import { Notification } from '../../types/nuts-inbox-widget.types';
|
|
3
3
|
export declare class NutsInboxWidget {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
4
|
+
/**
|
|
5
|
+
* HTTP Endpoint URL for NuTS
|
|
6
|
+
*/
|
|
7
|
+
backendUrl: string;
|
|
8
|
+
/**
|
|
9
|
+
* Socket Endpoint URL for NuTS
|
|
10
|
+
*/
|
|
11
|
+
socketUrl: string;
|
|
12
|
+
/**
|
|
13
|
+
* The ID of the user
|
|
14
|
+
*/
|
|
15
|
+
userId: string;
|
|
16
|
+
/**
|
|
17
|
+
* The sessionID of the user
|
|
18
|
+
*/
|
|
19
|
+
sessionId: string;
|
|
20
|
+
/**
|
|
21
|
+
* Indicates if the associated sessionId is an admin or a player sessionId
|
|
22
|
+
*/
|
|
23
|
+
admin?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* The operatorID on which we can find the user
|
|
26
|
+
*/
|
|
27
|
+
operatorId: string;
|
|
28
|
+
/**
|
|
29
|
+
* The subscriberID
|
|
30
|
+
*/
|
|
31
|
+
subscriberId?: string;
|
|
32
|
+
/**
|
|
33
|
+
* The deviceID from which the user access the website
|
|
34
|
+
*/
|
|
35
|
+
deviceId?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Language of the widget
|
|
38
|
+
*/
|
|
39
|
+
language: string;
|
|
40
|
+
/**
|
|
41
|
+
* Environment on which the widget is used (possible values: `stage`, `prod`)
|
|
42
|
+
*/
|
|
43
|
+
environment: string;
|
|
44
|
+
/**
|
|
45
|
+
* Novu application identifier
|
|
46
|
+
*/
|
|
47
|
+
applicationIdentifier: string;
|
|
48
|
+
/**
|
|
49
|
+
* Client custom styling via inline styles
|
|
50
|
+
*/
|
|
51
|
+
clientStyling: string;
|
|
52
|
+
/**
|
|
53
|
+
* Client styling url for a css file
|
|
54
|
+
*/
|
|
55
|
+
clientStylingUrl: string;
|
|
56
|
+
/**
|
|
57
|
+
* Position of the widget (possible values: `left` and `right`) - this changes the `justify-content` property of the `.BellIconWrapper` class
|
|
58
|
+
*/
|
|
59
|
+
bellIconPosition: string;
|
|
60
|
+
/**
|
|
61
|
+
* Clicking on the notification will automatically redirect you to the redirectURL attached to the notification (`default` behaviour). It can be changed to `postMessage` and instead of the redirect it will emit a postMessage with the redirectURL and the parent website can take actions
|
|
62
|
+
*/
|
|
63
|
+
notificationAction: string;
|
|
64
|
+
/**
|
|
65
|
+
* Translations via URL
|
|
66
|
+
*/
|
|
67
|
+
translationUrl: string;
|
|
68
|
+
private stylingContainer;
|
|
69
|
+
private isLoading;
|
|
70
|
+
private popoverVisible;
|
|
71
|
+
private unseenCount;
|
|
72
|
+
private socketRef;
|
|
73
|
+
private bellIconRef;
|
|
74
|
+
private token;
|
|
75
|
+
private baseUrl;
|
|
76
|
+
private initializeSessionBody;
|
|
77
|
+
private defaultHeaders;
|
|
78
|
+
notificationFeed: EventEmitter<Notification[]>;
|
|
79
|
+
newNotification: EventEmitter<any>;
|
|
80
|
+
initializeHandler(newValue: string, oldValue: string): void;
|
|
81
|
+
el: HTMLElement;
|
|
82
|
+
clickOutsideHandle(ev: MouseEvent): void;
|
|
83
|
+
positionIcon(): void;
|
|
84
|
+
setupSocket(): void;
|
|
85
|
+
togglePopover: () => void;
|
|
86
|
+
setClientStyling: () => void;
|
|
87
|
+
setClientStylingURL: () => void;
|
|
88
|
+
connectedCallback(): Promise<void>;
|
|
89
|
+
handleNewTranslations(): void;
|
|
90
|
+
componentWillLoad(): Promise<void>;
|
|
91
|
+
componentDidRender(): void;
|
|
92
|
+
assignRefToStylingContainer: (ref: HTMLElement) => void;
|
|
93
|
+
assignRefToBell: (ref: HTMLElement) => void;
|
|
94
|
+
renderBellIcon(): HTMLElement;
|
|
95
|
+
render(): any;
|
|
96
96
|
}
|
|
@@ -1,103 +1,103 @@
|
|
|
1
1
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
2
|
export declare class NutsNotification {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Src for badge / avatar
|
|
5
|
+
*/
|
|
6
|
+
badge: string;
|
|
7
|
+
/**
|
|
8
|
+
* Text content of the notification
|
|
9
|
+
*/
|
|
10
|
+
content: string;
|
|
11
|
+
/**
|
|
12
|
+
* Date of the notification
|
|
13
|
+
*/
|
|
14
|
+
date: string;
|
|
15
|
+
/**
|
|
16
|
+
* Wether or not to show notification settings
|
|
17
|
+
*/
|
|
18
|
+
showSettings: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Wether or not the item has been read
|
|
21
|
+
*/
|
|
22
|
+
read: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Wether or not the item has been seen
|
|
25
|
+
*/
|
|
26
|
+
seen: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Language code of the content
|
|
29
|
+
*/
|
|
30
|
+
language: string;
|
|
31
|
+
/**
|
|
32
|
+
* The sessionID of the user
|
|
33
|
+
*/
|
|
34
|
+
sessionId: string;
|
|
35
|
+
/**
|
|
36
|
+
* Indicates if the associated sessionId is an admin or a player sessionId
|
|
37
|
+
*/
|
|
38
|
+
admin?: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Unique ID of the user who receives the notification
|
|
41
|
+
*/
|
|
42
|
+
userId: string;
|
|
43
|
+
/**
|
|
44
|
+
* Unique ID of the notification content
|
|
45
|
+
*/
|
|
46
|
+
messageId: string;
|
|
47
|
+
/**
|
|
48
|
+
* Unique ID of the operator domain
|
|
49
|
+
*/
|
|
50
|
+
operatorId: string;
|
|
51
|
+
/**
|
|
52
|
+
* Token used in authorization of notification transactions
|
|
53
|
+
*/
|
|
54
|
+
token: string;
|
|
55
|
+
/**
|
|
56
|
+
* Endpoint for notification transactions
|
|
57
|
+
*/
|
|
58
|
+
backendUrl: string;
|
|
59
|
+
/**
|
|
60
|
+
* Redirect address in case of external url
|
|
61
|
+
*/
|
|
62
|
+
redirectUrl: string;
|
|
63
|
+
/**
|
|
64
|
+
* Determines notification behaviour onClick
|
|
65
|
+
*/
|
|
66
|
+
notificationAction: string;
|
|
67
|
+
/**
|
|
68
|
+
* Custom styling passed as a URL
|
|
69
|
+
*/
|
|
70
|
+
clientStylingUrl: string;
|
|
71
|
+
/**
|
|
72
|
+
* Translations via URL
|
|
73
|
+
*/
|
|
74
|
+
translationUrl: string;
|
|
75
|
+
/**
|
|
76
|
+
* Clienty styling passed as a string
|
|
77
|
+
*/
|
|
78
|
+
clientStyling: string;
|
|
79
|
+
showSettingsModal: boolean;
|
|
80
|
+
messageSeen: boolean;
|
|
81
|
+
messageRead: boolean;
|
|
82
|
+
displayedContent: string;
|
|
83
|
+
private stylingContainer;
|
|
84
|
+
private dropdownArrowRef;
|
|
85
|
+
private defaultHeaders;
|
|
86
|
+
private baseUrl;
|
|
87
|
+
messageDeteled: EventEmitter<any>;
|
|
88
|
+
settingsOpened: EventEmitter<any>;
|
|
89
|
+
allNotificationsReadHandler(): void;
|
|
90
|
+
settingsOpenedHandler(event: CustomEvent<any>): void;
|
|
91
|
+
handleNewTranslations(): void;
|
|
92
|
+
componentWillLoad(): Promise<void>;
|
|
93
|
+
connectedCallback(): void;
|
|
94
|
+
toggleSettingsModal: (e: MouseEvent) => void;
|
|
95
|
+
toggleNotificationRead: (event?: MouseEvent) => Promise<void>;
|
|
96
|
+
deleteNotification: () => Promise<void>;
|
|
97
|
+
notificationActionHandler: () => void;
|
|
98
|
+
setClientStyling: () => void;
|
|
99
|
+
setClientStylingURL: () => void;
|
|
100
|
+
assignRefToStylingContainer: (ref: HTMLElement) => void;
|
|
101
|
+
assignRefToDropdownArrow: (ref: HTMLElement) => void;
|
|
102
|
+
render(): any;
|
|
103
103
|
}
|