@everymatrix/bonus-pagination-limits 1.54.12 → 1.55.0
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/bonus-pagination-limits/bonus-pagination-limits.esm.js +1 -1
- package/dist/bonus-pagination-limits/p-c4107576.entry.js +1 -0
- package/dist/bonus-pagination-limits/p-ff6aa153.js +2 -0
- package/dist/cjs/bonus-pagination-limits.cjs.entry.js +2 -10
- package/dist/cjs/bonus-pagination-limits.cjs.js +2 -2
- package/dist/cjs/{index-10b5f6b9.js → index-a29c4900.js} +61 -165
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/bonus-pagination-limits/bonus-pagination-limits.js +1 -17
- package/dist/esm/bonus-pagination-limits.entry.js +2 -10
- package/dist/esm/bonus-pagination-limits.js +3 -3
- package/dist/esm/{index-e27ccae3.js → index-72f6de0f.js} +61 -165
- package/dist/esm/loader.js +2 -2
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/bonus-pagination-limits/.stencil/packages/stencil/bonus-pagination-limits/stencil.config.d.ts +2 -0
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/bonus-pagination-limits/.stencil/packages/stencil/bonus-pagination-limits/stencil.config.dev.d.ts +2 -0
- package/package.json +1 -1
- package/dist/bonus-pagination-limits/p-340985fe.js +0 -2
- package/dist/bonus-pagination-limits/p-c5777f71.entry.js +0 -1
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/bonus-pagination-limits/.stencil/packages/stencil/bonus-pagination-limits/stencil.config.d.ts +0 -2
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/bonus-pagination-limits/.stencil/packages/stencil/bonus-pagination-limits/stencil.config.dev.d.ts +0 -2
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/bonus-pagination-limits/.stencil/tools/plugins/index.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/bonus-pagination-limits/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/bonus-pagination-limits/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/bonus-pagination-limits/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as
|
|
1
|
+
import{p as a,b as t}from"./p-ff6aa153.js";export{s as setNonce}from"./p-ff6aa153.js";import{g as i}from"./p-e1255160.js";(()=>{const t=import.meta.url,i={};return""!==t&&(i.resourcesUrl=new URL(".",t).href),a(i)})().then((async a=>(await i(),t([["p-c4107576",[[0,"bonus-pagination-limits",{language:[513],translationUrl:[513,"translation-url"],pageLimitOptions:[513,"page-limit-options"],limit:[1538],pageLimits:[32]}]]]],a))));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as i,c as e,h as a}from"./p-ff6aa153.js";const t=["pt-br","en","es-mx","hu","hr"],r={en:{pageLimitLabel:"Show"},hu:{pageLimitLabel:"Show"},hr:{pageLimitLabel:"Show"},"pt-br":{pageLimitLabel:"Show"},"es-mx":{pageLimitLabel:"Show"}},o=class{constructor(a){i(this,a),this.pageLimitChanged=e(this,"pageLimitChanged",7),this.language="en",this.translationUrl="",this.pageLimitOptions=void 0,this.limit=10,this.pageLimits=[10,25,50]}onPageLimitClicked(i){this.limit=i,this.pageLimitChanged.emit({limit:this.limit})}componentWillLoad(){if(this.pageLimitOptions)try{this.pageLimits=this.pageLimitOptions.split(",").map((i=>parseInt(i))),this.pageLimits.includes(this.limit)||(this.limit=this.pageLimits[0])}catch(i){console.error("Error when parse PageLimitOptions",i)}}renderStylingWrapper(){return a("general-styling-wrapper",{targetTranslations:r,translationUrl:this.translationUrl})}render(){return a("div",{key:"57f5e61ee287f72d0427a2e4f646e37c6b9358b9",class:"PaginationWrapper"},a("span",{key:"5f82b19fcf269086659b3faa475d9967b2af57fa",class:"NoOfItemsToDisplayMessage"},(()=>{const i=this.language;return r[void 0!==i&&t.includes(i)?i:"en"].pageLimitLabel})()),a("ul",{key:"559c2d5378a352691583567579a8e681d092ddd3",class:"PaginationArea"},this.pageLimits.map((i=>a("li",{class:(this.limit==i?"Active":"")+" PageSize Item",onClick:()=>{this.onPageLimitClicked(i)}},i)))),a("general-styling-wrapper",{key:"a8b9632e7421318e330f33b9c1cc9eb7121e35e9",targetTranslations:r,translationUrl:this.translationUrl}),this.renderStylingWrapper())}};o.style=":host{display:block}.NoOfItemsToDisplayMessage{display:inline-block;margin:0.1rem;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:var(--emw--color-primary, #191a19);line-height:1.8}.PaginationWrapper{display:flex;flex-direction:row}ul.PaginationArea{margin-block:5px;display:flex;flex-direction:row;padding:0px}ul.PaginationArea li.Item.Active:hover{color:var(--emw--color-primary, #eaefea);background-color:var(--emw--color-secondary, #191a19)}ul.PaginationArea li.Item.Active,ul.PaginationArea li.Item:hover{background-color:var(--emw--color-primary, rgba(169, 171, 169, 0.7));font-weight:bold;border-radius:0.3rem}ul.PaginationArea li.Item{padding-inline-start:0px;list-style:none;padding:5px 6px;margin:2px;cursor:pointer;display:inline-block}";export{o as bonus_pagination_limits}
|
|
@@ -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),i=new Map,r=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),m=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),p=!1,d=[],y=[],$=(e,t)=>n=>{e.push(n),p||(p=!0,t&&4&f.l?v(w):f.raf(w))},b=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){s(e)}e.length=0},w=()=>{b(d),b(y),(p=d.length>0)&&f.raf(w)},v=e=>h().then(e),S=$(y,!0),g={},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:()=>O,map:()=>C,ok:()=>E,unwrap:()=>P,unwrapErr:()=>x});var E=e=>({isOk:!0,isErr:!1,value:e}),O=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=>E(e))):E(n)}if(e.isErr)return O(e.value);throw"should never get here"}var M,P=e=>{if(e.isOk)return e.value;throw e.value},x=e=>{if(e.isErr)return e.value;throw e.value},A=(e,t,...n)=>{let l=null,o=null,s=!1,i=!1;const r=[],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&&i?r[r.length-1].i+=l:r.push(s?H(null,l):l),i=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=H(e,null);return u.u=t,r.length>0&&(u.h=r),u.m=o,u},H=(e,t)=>({l:0,p:e,i:t,$:null,h:null,u:null,m:null}),R={},T=(e,t,l)=>{const o=(e=>n(e).$hostElement$)(e);return{emit:e=>D(o,t,{bubbles:!!(4&l),composed:!!(2&l),cancelable:!!(1&l),detail:e})}},D=(e,t,n)=>{const l=f.ce(t,n);return e.dispatchEvent(l),l},F=new WeakMap,L=e=>"sc-"+e.v,N=(e,t,n,l,s,i)=>{if(n!==l){let r=o(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,o=U(n),s=U(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(r||"o"!==t[0]||"n"!==t[1]){const o=j(l);if((r||o&&null!==l)&&!s)try{if(e.tagName.includes("-"))e[t]=l;else{const o=null==l?"":l;"list"===t?r=!1:null!=n&&e[t]==o||("function"==typeof e.__lookupSetter__(t)?e[t]=o:e.setAttribute(t,o))}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(t)||e.removeAttribute(t):(!r||4&i||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(q);t=t.replace(G,""),n&&f.rel(e,t,n,o),l&&f.ael(e,t,l,o)}}},W=/\s/,U=e=>e?e.split(W):[],q="Capture",G=RegExp(q+"$"),V=(e,t,n)=>{const l=11===t.$.nodeType&&t.$.host?t.$.host:t.$,o=e&&e.u||g,s=t.u||g;for(const e of _(Object.keys(o)))e in s||N(l,e,o[e],void 0,n,t.l);for(const e of _(Object.keys(s)))N(l,e,o[e],s[e],n,t.l)};function _(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var z=!1,B=(e,t,n)=>{const l=t.h[n];let o,s,i=0;if(null!==l.i)o=l.$=a.createTextNode(l.i);else if(o=l.$=a.createElement(l.p),V(null,l,z),o.getRootNode().querySelector("body"),l.h)for(i=0;i<l.h.length;++i)s=B(e,l,i),s&&o.appendChild(s);return o["s-hn"]=M,o},I=(e,t,n,l,o,s)=>{let i,r=e;for(;o<=s;++o)l[o]&&(i=B(null,n,o),i&&(l[o].$=i,X(r,i,t)))},J=(e,t,n)=>{for(let l=t;l<=n;++l){const t=e[l];if(t){const e=t.$;e&&e.remove()}}},K=(e,t,n=!1)=>e.p===t.p&&(!!n||e.m===t.m),Q=(e,t,n=!1)=>{const l=t.$=e.$,o=e.h,s=t.h,i=t.i;null===i?(V(e,t,z),null!==o&&null!==s?((e,t,n,l,o=!1)=>{let s,i,r=0,c=0,u=0,a=0,f=t.length-1,h=t[0],m=t[f],p=l.length-1,d=l[0],y=l[p];for(;r<=f&&c<=p;)if(null==h)h=t[++r];else if(null==m)m=t[--f];else if(null==d)d=l[++c];else if(null==y)y=l[--p];else if(K(h,d,o))Q(h,d,o),h=t[++r],d=l[++c];else if(K(m,y,o))Q(m,y,o),m=t[--f],y=l[--p];else if(K(h,y,o))Q(h,y,o),X(e,h.$,m.$.nextSibling),h=t[++r],y=l[--p];else if(K(m,d,o))Q(m,d,o),X(e,m.$,h.$),m=t[--f],d=l[++c];else{for(u=-1,a=r;a<=f;++a)if(t[a]&&null!==t[a].m&&t[a].m===d.m){u=a;break}u>=0?(i=t[u],i.p!==d.p?s=B(t&&t[c],n,u):(Q(i,d,o),t[u]=void 0,s=i.$),d=l[++c]):(s=B(t&&t[c],n,c),d=l[++c]),s&&X(h.$.parentNode,s,h.$)}r>f?I(e,null==l[p+1]?null:l[p+1].$,n,l,c,p):c>p&&J(t,r,f)})(l,o,t,s,n):null!==s?(null!==e.i&&(l.textContent=""),I(l,null,t,s,0,s.length-1)):!n&&null!==o&&J(o,0,o.length-1)):e.i!==i&&(l.data=i)},X=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),Y=(e,t)=>{t&&!e.S&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.S=t)))},Z=(e,t)=>{if(e.l|=16,!(4&e.l))return Y(e,e.j),S((()=>ee(e,t)));e.l|=512},ee=(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=re(n,"componentWillLoad")),te(l,(()=>le(e,n,t)))},te=(e,t)=>ne(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),ne=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,le=async(e,t,n)=>{var l;const o=e.$hostElement$,s=o["s-rc"];n&&(e=>{const t=e.k;((e,t)=>{var n;const l=L(t),o=r.get(l);if(e=11===e.nodeType?e:a,o)if("string"==typeof o){let s,i=F.get(e=e.head||e);if(i||F.set(e,i=new Set),!i.has(l)){{s=a.createElement("style"),s.innerHTML=o;const l=null!=(n=f.O)?n:k(a);if(null!=l&&s.setAttribute("nonce",l),!(1&t.l))if("HEAD"===e.nodeName){const t=e.querySelectorAll("link[rel=preconnect]"),n=t.length>0?t[t.length-1].nextSibling:e.querySelector("style");e.insertBefore(s,n)}else if("host"in e)if(m){const t=new CSSStyleSheet;t.replaceSync(o),e.adoptedStyleSheets=[t,...e.adoptedStyleSheets]}else{const t=e.querySelector("style");t?t.innerHTML=o+t.innerHTML:e.prepend(s)}else e.append(s);1&t.l&&"HEAD"!==e.nodeName&&e.insertBefore(s,null)}4&t.l&&(s.innerHTML+=c),i&&i.add(l)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o])})(e.$hostElement$.getRootNode(),t)})(e);oe(e,t,o,n),s&&(s.map((e=>e())),o["s-rc"]=void 0);{const t=null!=(l=o["s-p"])?l:[],n=()=>se(e);0===t.length?n():(Promise.all(t).then(n),e.l|=4,t.length=0)}},oe=(e,t,n,l)=>{try{t=t.render(),e.l&=-17,e.l|=2,((e,t,n=!1)=>{const l=e.$hostElement$,o=e.k,s=e.C||H(null,null),i=(e=>e&&e.p===R)(t)?t:A(null,null,t);if(M=l.tagName,o.M&&(i.u=i.u||{},o.M.map((([e,t])=>i.u[t]=l[e]))),n&&i.u)for(const e of Object.keys(i.u))l.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(i.u[e]=l[e]);i.p=null,i.l|=4,e.C=i,i.$=s.$=l,Q(s,i,n)})(e,t,l)}catch(t){s(t,e.$hostElement$)}return null},se=e=>{const t=e.$hostElement$,n=e.j;64&e.l||(e.l|=64,ce(t),e.P(t),n||ie()),e.S&&(e.S(),e.S=void 0),512&e.l&&v((()=>Z(e,!1))),e.l&=-517},ie=()=>{ce(a.documentElement),v((()=>D(u,"appload",{detail:{namespace:"bonus-pagination-limits"}})))},re=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){s(e)}},ce=e=>e.classList.add("hydrated"),ue=(e,t,l)=>{var o,s;const i=e.prototype;if(t.A){const r=Object.entries(null!=(o=t.A)?o:{});if(r.map((([e,[o]])=>{(31&o||2&l&&32&o)&&Object.defineProperty(i,e,{get(){return((e,t)=>n(this).H.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.v}" 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.H.get(t),r=s.l,c=s.t;l=((e,t)=>null==e||j(e)?e:2&t?parseFloat(e):1&t?e+"":e)(l,o.A[t][0]),8&r&&void 0!==i||l===i||Number.isNaN(i)&&Number.isNaN(l)||(s.H.set(t,l),c&&2==(18&r)&&Z(s,!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.R)?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.R)?s:{}),...r.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.M)||o.push([e,s])),s}))]))}}return e},ae=(e,l={})=>{var o;const h=[],p=l.exclude||[],d=u.customElements,y=a.head,$=y.querySelector("meta[charset]"),b=a.createElement("style"),w=[];let v,S=!0;Object.assign(f,l),f.o=new URL(l.resourcesUrl||"./",a.baseURI).href;let g=!1;if(e.map((e=>{e[1].map((l=>{const o={l:l[0],v:l[1],A:l[2],T:l[3]};4&o.l&&(g=!0),o.A=l[2],o.M=[];const c=o.v,u=class extends HTMLElement{constructor(e){super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const l={l:0,$hostElement$:e,k:n,H:new Map};l.D=new Promise((e=>l.P=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,l)})(e=this,o)}connectedCallback(){this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),v&&(clearTimeout(v),v=null),S?w.push(this):f.jmp((()=>(e=>{if(!(1&f.l)){const t=n(e),l=t.k,o=()=>{};if(1&t.l)(null==t?void 0:t.t)||(null==t?void 0:t.D)&&t.D.then((()=>{}));else{t.l|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){Y(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.F){const e=(e=>{const t=e.v.replace(/-/g,"_"),n=e.F;if(!n)return;const l=i.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(i.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.v}#${t.L}" was not found`);l.isProxied||(ue(l,n,2),l.isProxied=!0);const o=()=>{};t.l|=8;try{new l(t)}catch(e){s(e)}t.l&=-9,o()}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=L(n);if(!r.has(t)){const l=()=>{};((e,t,n)=>{let l=r.get(e);m&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,r.set(e,l)})(t,e,!!(1&n.l)),l()}}}const o=t.j,c=()=>Z(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);(null==e?void 0:e.t)||(null==e?void 0:e.D)&&e.D.then((()=>{}))}})()))}componentOnReady(){return n(this).D}};o.F=e[0],p.includes(c)||d.get(c)||(h.push(c),d.define(c,ue(u,o,1)))}))})),h.length>0&&(g&&(b.textContent+=c),b.textContent+=h.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",b.innerHTML.length)){b.setAttribute("data-styles","");const e=null!=(o=f.O)?o:k(a);null!=e&&b.setAttribute("nonce",e),y.insertBefore(b,$?$.nextSibling:y.firstChild)}S=!1,w.length?w.map((e=>e.connectedCallback())):f.jmp((()=>v=setTimeout(ie,30)))},fe=e=>f.O=e;export{ae as b,T as c,A as h,h as p,l as r,fe as s}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-a29c4900.js');
|
|
6
6
|
|
|
7
7
|
const DEFAULT_LANGUAGE = 'en';
|
|
8
8
|
const SUPPORTED_LANGUAGES = ['pt-br', 'en', 'es-mx', 'hu', 'hr'];
|
|
@@ -35,17 +35,9 @@ const BonusPaginationLimits = class {
|
|
|
35
35
|
constructor(hostRef) {
|
|
36
36
|
index.registerInstance(this, hostRef);
|
|
37
37
|
this.pageLimitChanged = index.createEvent(this, "pageLimitChanged", 7);
|
|
38
|
-
/**
|
|
39
|
-
* Language of the widget
|
|
40
|
-
*/
|
|
41
38
|
this.language = 'en';
|
|
42
|
-
/**
|
|
43
|
-
* Translation via url
|
|
44
|
-
*/
|
|
45
39
|
this.translationUrl = '';
|
|
46
|
-
|
|
47
|
-
* Default limit for per page, default: 10
|
|
48
|
-
*/
|
|
40
|
+
this.pageLimitOptions = undefined;
|
|
49
41
|
this.limit = 10;
|
|
50
42
|
this.pageLimits = [10, 25, 50];
|
|
51
43
|
}
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-a29c4900.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
/*
|
|
9
|
-
Stencil Client Patch Browser v4.
|
|
9
|
+
Stencil Client Patch Browser v4.22.3 | MIT Licensed | https://stenciljs.com
|
|
10
10
|
*/
|
|
11
11
|
var patchBrowser = () => {
|
|
12
12
|
const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('bonus-pagination-limits.cjs.js', document.baseURI).href));
|
|
@@ -21,23 +21,19 @@ function _interopNamespace(e) {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
const NAMESPACE = 'bonus-pagination-limits';
|
|
24
|
-
const BUILD = /* bonus-pagination-limits */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false,
|
|
24
|
+
const BUILD = /* bonus-pagination-limits */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: false, propMutable: true, propNumber: true, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: false, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: false };
|
|
25
25
|
|
|
26
26
|
/*
|
|
27
|
-
Stencil Client Platform v4.
|
|
27
|
+
Stencil Client Platform v4.22.3 | MIT Licensed | https://stenciljs.com
|
|
28
28
|
*/
|
|
29
29
|
var __defProp = Object.defineProperty;
|
|
30
30
|
var __export = (target, all) => {
|
|
31
31
|
for (var name in all)
|
|
32
32
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
33
33
|
};
|
|
34
|
-
|
|
35
|
-
// src/client/client-host-ref.ts
|
|
36
34
|
var hostRefs = /* @__PURE__ */ new WeakMap();
|
|
37
35
|
var getHostRef = (ref) => hostRefs.get(ref);
|
|
38
|
-
var registerInstance = (lazyInstance, hostRef) =>
|
|
39
|
-
hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
40
|
-
};
|
|
36
|
+
var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
41
37
|
var registerHost = (hostElement, cmpMeta) => {
|
|
42
38
|
const hostRef = {
|
|
43
39
|
$flags$: 0,
|
|
@@ -50,8 +46,7 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
|
50
46
|
hostElement["s-p"] = [];
|
|
51
47
|
hostElement["s-rc"] = [];
|
|
52
48
|
}
|
|
53
|
-
|
|
54
|
-
return ref;
|
|
49
|
+
return hostRefs.set(hostElement, hostRef);
|
|
55
50
|
};
|
|
56
51
|
var isMemberInElement = (elm, memberName) => memberName in elm;
|
|
57
52
|
var consoleError = (e, el) => (0, console.error)(e, el);
|
|
@@ -88,22 +83,16 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
88
83
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
89
84
|
/* webpackMode: "lazy" */
|
|
90
85
|
`./${bundleId}.entry.js${""}`
|
|
91
|
-
)); }).then(
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
cmpModules.set(bundleId, importedModule);
|
|
95
|
-
}
|
|
96
|
-
return importedModule[exportName];
|
|
97
|
-
},
|
|
98
|
-
(e) => {
|
|
99
|
-
consoleError(e, hostRef.$hostElement$);
|
|
86
|
+
)); }).then((importedModule) => {
|
|
87
|
+
{
|
|
88
|
+
cmpModules.set(bundleId, importedModule);
|
|
100
89
|
}
|
|
101
|
-
|
|
90
|
+
return importedModule[exportName];
|
|
91
|
+
}, consoleError);
|
|
102
92
|
};
|
|
103
93
|
|
|
104
94
|
// src/client/client-style.ts
|
|
105
95
|
var styles = /* @__PURE__ */ new Map();
|
|
106
|
-
var HYDRATED_STYLE_ID = "sty-id";
|
|
107
96
|
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
108
97
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
109
98
|
var win = typeof window !== "undefined" ? window : {};
|
|
@@ -162,6 +151,12 @@ var flush = () => {
|
|
|
162
151
|
};
|
|
163
152
|
var nextTick = (cb) => promiseResolve().then(cb);
|
|
164
153
|
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
|
154
|
+
|
|
155
|
+
// src/utils/constants.ts
|
|
156
|
+
var EMPTY_OBJ = {};
|
|
157
|
+
|
|
158
|
+
// src/utils/helpers.ts
|
|
159
|
+
var isDef = (v) => v != null;
|
|
165
160
|
var isComplexType = (o) => {
|
|
166
161
|
o = typeof o;
|
|
167
162
|
return o === "object" || o === "function";
|
|
@@ -362,7 +357,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
362
357
|
}
|
|
363
358
|
if (!appliedStyles.has(scopeId2)) {
|
|
364
359
|
{
|
|
365
|
-
styleElm =
|
|
360
|
+
styleElm = doc.createElement("style");
|
|
366
361
|
styleElm.innerHTML = style;
|
|
367
362
|
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
368
363
|
if (nonce != null) {
|
|
@@ -372,10 +367,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
372
367
|
if (styleContainerNode.nodeName === "HEAD") {
|
|
373
368
|
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
374
369
|
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
375
|
-
styleContainerNode.insertBefore(
|
|
376
|
-
styleElm,
|
|
377
|
-
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
378
|
-
);
|
|
370
|
+
styleContainerNode.insertBefore(styleElm, referenceNode2);
|
|
379
371
|
} else if ("host" in styleContainerNode) {
|
|
380
372
|
if (supportsConstructableStylesheets) {
|
|
381
373
|
const stylesheet = new CSSStyleSheet();
|
|
@@ -393,7 +385,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
393
385
|
styleContainerNode.append(styleElm);
|
|
394
386
|
}
|
|
395
387
|
}
|
|
396
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
388
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
|
|
397
389
|
styleContainerNode.insertBefore(styleElm, null);
|
|
398
390
|
}
|
|
399
391
|
}
|
|
@@ -420,18 +412,16 @@ var attachStyles = (hostRef) => {
|
|
|
420
412
|
endAttachStyles();
|
|
421
413
|
};
|
|
422
414
|
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
423
|
-
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags
|
|
415
|
+
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
424
416
|
if (oldValue !== newValue) {
|
|
425
417
|
let isProp = isMemberInElement(elm, memberName);
|
|
426
418
|
let ln = memberName.toLowerCase();
|
|
427
419
|
if (memberName === "class") {
|
|
428
420
|
const classList = elm.classList;
|
|
429
421
|
const oldClasses = parseClassList(oldValue);
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
434
|
-
}
|
|
422
|
+
const newClasses = parseClassList(newValue);
|
|
423
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
424
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
435
425
|
} else if (memberName === "key") ; else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
|
|
436
426
|
if (memberName[2] === "-") {
|
|
437
427
|
memberName = memberName.slice(3);
|
|
@@ -465,7 +455,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
465
455
|
elm.setAttribute(memberName, n);
|
|
466
456
|
}
|
|
467
457
|
}
|
|
468
|
-
} else
|
|
458
|
+
} else {
|
|
469
459
|
elm[memberName] = newValue;
|
|
470
460
|
}
|
|
471
461
|
} catch (e) {
|
|
@@ -487,44 +477,24 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
487
477
|
}
|
|
488
478
|
};
|
|
489
479
|
var parseClassListRegex = /\s/;
|
|
490
|
-
var parseClassList = (value) =>
|
|
491
|
-
if (typeof value === "object" && value && "baseVal" in value) {
|
|
492
|
-
value = value.baseVal;
|
|
493
|
-
}
|
|
494
|
-
if (!value || typeof value !== "string") {
|
|
495
|
-
return [];
|
|
496
|
-
}
|
|
497
|
-
return value.split(parseClassListRegex);
|
|
498
|
-
};
|
|
480
|
+
var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
|
|
499
481
|
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
500
482
|
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
501
483
|
|
|
502
484
|
// src/runtime/vdom/update-element.ts
|
|
503
|
-
var updateElement = (oldVnode, newVnode, isSvgMode2
|
|
485
|
+
var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
|
504
486
|
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
505
|
-
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ ||
|
|
506
|
-
const newVnodeAttrs = newVnode.$attrs$ ||
|
|
487
|
+
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
|
|
488
|
+
const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
|
|
507
489
|
{
|
|
508
490
|
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
509
491
|
if (!(memberName in newVnodeAttrs)) {
|
|
510
|
-
setAccessor(
|
|
511
|
-
elm,
|
|
512
|
-
memberName,
|
|
513
|
-
oldVnodeAttrs[memberName],
|
|
514
|
-
void 0,
|
|
515
|
-
isSvgMode2,
|
|
516
|
-
newVnode.$flags$);
|
|
492
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
|
|
517
493
|
}
|
|
518
494
|
}
|
|
519
495
|
}
|
|
520
496
|
for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
|
521
|
-
setAccessor(
|
|
522
|
-
elm,
|
|
523
|
-
memberName,
|
|
524
|
-
oldVnodeAttrs[memberName],
|
|
525
|
-
newVnodeAttrs[memberName],
|
|
526
|
-
isSvgMode2,
|
|
527
|
-
newVnode.$flags$);
|
|
497
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
|
|
528
498
|
}
|
|
529
499
|
};
|
|
530
500
|
function sortedAttrNames(attrNames) {
|
|
@@ -536,10 +506,13 @@ function sortedAttrNames(attrNames) {
|
|
|
536
506
|
attrNames
|
|
537
507
|
);
|
|
538
508
|
}
|
|
509
|
+
|
|
510
|
+
// src/runtime/vdom/vdom-render.ts
|
|
511
|
+
var scopeId;
|
|
539
512
|
var hostTagName;
|
|
540
513
|
var useNativeShadowDom = false;
|
|
541
514
|
var isSvgMode = false;
|
|
542
|
-
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
515
|
+
var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
543
516
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
544
517
|
let i2 = 0;
|
|
545
518
|
let elm;
|
|
@@ -553,6 +526,11 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
553
526
|
{
|
|
554
527
|
updateElement(null, newVNode2, isSvgMode);
|
|
555
528
|
}
|
|
529
|
+
const rootNode = elm.getRootNode();
|
|
530
|
+
const isElementWithinShadowRoot = !rootNode.querySelector("body");
|
|
531
|
+
if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
532
|
+
elm.classList.add(elm["s-si"] = scopeId);
|
|
533
|
+
}
|
|
556
534
|
if (newVNode2.$children$) {
|
|
557
535
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
558
536
|
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
@@ -678,9 +656,6 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
|
678
656
|
if (!isInitialRender) {
|
|
679
657
|
return leftVNode.$key$ === rightVNode.$key$;
|
|
680
658
|
}
|
|
681
|
-
if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
|
|
682
|
-
leftVNode.$key$ = rightVNode.$key$;
|
|
683
|
-
}
|
|
684
659
|
return true;
|
|
685
660
|
}
|
|
686
661
|
return false;
|
|
@@ -714,9 +689,8 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
714
689
|
}
|
|
715
690
|
};
|
|
716
691
|
var insertBefore = (parent, newNode, reference) => {
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
}
|
|
692
|
+
const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
693
|
+
return inserted;
|
|
720
694
|
};
|
|
721
695
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
722
696
|
const hostElm = hostRef.$hostElement$;
|
|
@@ -741,21 +715,14 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
741
715
|
rootVnode.$flags$ |= 4 /* isHost */;
|
|
742
716
|
hostRef.$vnode$ = rootVnode;
|
|
743
717
|
rootVnode.$elm$ = oldVNode.$elm$ = hostElm;
|
|
744
|
-
useNativeShadowDom = supportsShadow
|
|
718
|
+
useNativeShadowDom = supportsShadow ;
|
|
745
719
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
746
720
|
};
|
|
747
721
|
|
|
748
722
|
// src/runtime/update-component.ts
|
|
749
723
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
750
724
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
751
|
-
|
|
752
|
-
new Promise(
|
|
753
|
-
(r) => hostRef.$onRenderResolve$ = () => {
|
|
754
|
-
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
755
|
-
r();
|
|
756
|
-
}
|
|
757
|
-
)
|
|
758
|
-
);
|
|
725
|
+
ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
|
|
759
726
|
}
|
|
760
727
|
};
|
|
761
728
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -782,7 +749,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
782
749
|
let maybePromise;
|
|
783
750
|
if (isInitialLoad) {
|
|
784
751
|
{
|
|
785
|
-
maybePromise = safeCall(instance, "componentWillLoad"
|
|
752
|
+
maybePromise = safeCall(instance, "componentWillLoad");
|
|
786
753
|
}
|
|
787
754
|
}
|
|
788
755
|
endSchedule();
|
|
@@ -876,14 +843,17 @@ var postUpdateComponent = (hostRef) => {
|
|
|
876
843
|
}
|
|
877
844
|
};
|
|
878
845
|
var appDidLoad = (who) => {
|
|
846
|
+
{
|
|
847
|
+
addHydratedFlag(doc.documentElement);
|
|
848
|
+
}
|
|
879
849
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
880
850
|
};
|
|
881
|
-
var safeCall = (instance, method, arg
|
|
851
|
+
var safeCall = (instance, method, arg) => {
|
|
882
852
|
if (instance && instance[method]) {
|
|
883
853
|
try {
|
|
884
854
|
return instance[method](arg);
|
|
885
855
|
} catch (e) {
|
|
886
|
-
consoleError(e
|
|
856
|
+
consoleError(e);
|
|
887
857
|
}
|
|
888
858
|
}
|
|
889
859
|
return void 0;
|
|
@@ -926,68 +896,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
926
896
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
927
897
|
members.map(([memberName, [memberFlags]]) => {
|
|
928
898
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
929
|
-
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
|
930
|
-
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
931
|
-
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
932
|
-
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
933
|
-
Object.defineProperty(prototype, memberName, {
|
|
934
|
-
get() {
|
|
935
|
-
{
|
|
936
|
-
if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
|
|
937
|
-
return getValue(this, memberName);
|
|
938
|
-
}
|
|
939
|
-
const ref = getHostRef(this);
|
|
940
|
-
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
941
|
-
if (!instance) return;
|
|
942
|
-
return instance[memberName];
|
|
943
|
-
}
|
|
944
|
-
},
|
|
945
|
-
configurable: true,
|
|
946
|
-
enumerable: true
|
|
947
|
-
});
|
|
948
|
-
}
|
|
949
899
|
Object.defineProperty(prototype, memberName, {
|
|
900
|
+
get() {
|
|
901
|
+
return getValue(this, memberName);
|
|
902
|
+
},
|
|
950
903
|
set(newValue) {
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
newValue = ref.$instanceValues$.get(memberName);
|
|
956
|
-
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
957
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
958
|
-
}
|
|
959
|
-
origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
|
|
960
|
-
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
961
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
962
|
-
return;
|
|
963
|
-
}
|
|
964
|
-
{
|
|
965
|
-
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
966
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
967
|
-
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
968
|
-
ref.$onReadyPromise$.then(() => {
|
|
969
|
-
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
970
|
-
ref.$lazyInstance$[memberName] = newValue;
|
|
971
|
-
}
|
|
972
|
-
});
|
|
973
|
-
}
|
|
974
|
-
return;
|
|
975
|
-
}
|
|
976
|
-
const setterSetVal = () => {
|
|
977
|
-
const currentValue = ref.$lazyInstance$[memberName];
|
|
978
|
-
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
979
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
980
|
-
}
|
|
981
|
-
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
|
|
982
|
-
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
983
|
-
};
|
|
984
|
-
if (ref.$lazyInstance$) {
|
|
985
|
-
setterSetVal();
|
|
986
|
-
} else {
|
|
987
|
-
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
988
|
-
}
|
|
989
|
-
}
|
|
990
|
-
}
|
|
904
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
905
|
+
},
|
|
906
|
+
configurable: true,
|
|
907
|
+
enumerable: true
|
|
991
908
|
});
|
|
992
909
|
}
|
|
993
910
|
});
|
|
@@ -997,7 +914,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
997
914
|
plt.jmp(() => {
|
|
998
915
|
var _a2;
|
|
999
916
|
const propName = attrNameToPropName.get(attrName);
|
|
1000
|
-
if (this.hasOwnProperty(propName)
|
|
917
|
+
if (this.hasOwnProperty(propName)) {
|
|
1001
918
|
newValue = this[propName];
|
|
1002
919
|
delete this[propName];
|
|
1003
920
|
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
|
|
@@ -1017,11 +934,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1017
934
|
}
|
|
1018
935
|
return;
|
|
1019
936
|
}
|
|
1020
|
-
|
|
1021
|
-
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1022
|
-
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1023
|
-
this[propName] = newValue;
|
|
1024
|
-
}
|
|
937
|
+
this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1025
938
|
});
|
|
1026
939
|
};
|
|
1027
940
|
Cstr.observedAttributes = Array.from(
|
|
@@ -1050,7 +963,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1050
963
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
1051
964
|
const bundleId = cmpMeta.$lazyBundleId$;
|
|
1052
965
|
if (bundleId) {
|
|
1053
|
-
const CstrImport = loadModule(cmpMeta
|
|
966
|
+
const CstrImport = loadModule(cmpMeta);
|
|
1054
967
|
if (CstrImport && "then" in CstrImport) {
|
|
1055
968
|
const endLoad = uniqueTime();
|
|
1056
969
|
Cstr = await CstrImport;
|
|
@@ -1072,7 +985,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1072
985
|
try {
|
|
1073
986
|
new Cstr(hostRef);
|
|
1074
987
|
} catch (e) {
|
|
1075
|
-
consoleError(e
|
|
988
|
+
consoleError(e);
|
|
1076
989
|
}
|
|
1077
990
|
{
|
|
1078
991
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
@@ -1104,7 +1017,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1104
1017
|
schedule();
|
|
1105
1018
|
}
|
|
1106
1019
|
};
|
|
1107
|
-
var fireConnectedCallback = (instance
|
|
1020
|
+
var fireConnectedCallback = (instance) => {
|
|
1108
1021
|
};
|
|
1109
1022
|
|
|
1110
1023
|
// src/runtime/connected-callback.ts
|
|
@@ -1144,7 +1057,7 @@ var connectedCallback = (elm) => {
|
|
|
1144
1057
|
endConnected();
|
|
1145
1058
|
}
|
|
1146
1059
|
};
|
|
1147
|
-
var disconnectInstance = (instance
|
|
1060
|
+
var disconnectInstance = (instance) => {
|
|
1148
1061
|
};
|
|
1149
1062
|
var disconnectedCallback = async (elm) => {
|
|
1150
1063
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
@@ -1153,12 +1066,6 @@ var disconnectedCallback = async (elm) => {
|
|
|
1153
1066
|
hostRef.$onReadyPromise$.then(() => disconnectInstance());
|
|
1154
1067
|
}
|
|
1155
1068
|
}
|
|
1156
|
-
if (rootAppliedStyles.has(elm)) {
|
|
1157
|
-
rootAppliedStyles.delete(elm);
|
|
1158
|
-
}
|
|
1159
|
-
if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
|
|
1160
|
-
rootAppliedStyles.delete(elm.shadowRoot);
|
|
1161
|
-
}
|
|
1162
1069
|
};
|
|
1163
1070
|
|
|
1164
1071
|
// src/runtime/bootstrap-lazy.ts
|
|
@@ -1220,17 +1127,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1220
1127
|
}
|
|
1221
1128
|
disconnectedCallback() {
|
|
1222
1129
|
plt.jmp(() => disconnectedCallback(this));
|
|
1223
|
-
plt.raf(() => {
|
|
1224
|
-
var _a3;
|
|
1225
|
-
const hostRef = getHostRef(this);
|
|
1226
|
-
const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
|
|
1227
|
-
if (i2 > -1) {
|
|
1228
|
-
deferredConnectedCallbacks.splice(i2, 1);
|
|
1229
|
-
}
|
|
1230
|
-
if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
|
|
1231
|
-
delete hostRef.$vnode$.$elm$;
|
|
1232
|
-
}
|
|
1233
|
-
});
|
|
1234
1130
|
}
|
|
1235
1131
|
componentOnReady() {
|
|
1236
1132
|
return getHostRef(this).$onReadyPromise$;
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-a29c4900.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
const defineCustomElements = async (win, options) => {
|
|
@@ -2,17 +2,9 @@ import { h } from "@stencil/core";
|
|
|
2
2
|
import { translate, TRANSLATIONS } from "../../utils/locale.utils";
|
|
3
3
|
export class BonusPaginationLimits {
|
|
4
4
|
constructor() {
|
|
5
|
-
/**
|
|
6
|
-
* Language of the widget
|
|
7
|
-
*/
|
|
8
5
|
this.language = 'en';
|
|
9
|
-
/**
|
|
10
|
-
* Translation via url
|
|
11
|
-
*/
|
|
12
6
|
this.translationUrl = '';
|
|
13
|
-
|
|
14
|
-
* Default limit for per page, default: 10
|
|
15
|
-
*/
|
|
7
|
+
this.pageLimitOptions = undefined;
|
|
16
8
|
this.limit = 10;
|
|
17
9
|
this.pageLimits = [10, 25, 50];
|
|
18
10
|
}
|
|
@@ -77,8 +69,6 @@ export class BonusPaginationLimits {
|
|
|
77
69
|
"tags": [],
|
|
78
70
|
"text": "Language of the widget"
|
|
79
71
|
},
|
|
80
|
-
"getter": false,
|
|
81
|
-
"setter": false,
|
|
82
72
|
"attribute": "language",
|
|
83
73
|
"reflect": true,
|
|
84
74
|
"defaultValue": "'en'"
|
|
@@ -97,8 +87,6 @@ export class BonusPaginationLimits {
|
|
|
97
87
|
"tags": [],
|
|
98
88
|
"text": "Translation via url"
|
|
99
89
|
},
|
|
100
|
-
"getter": false,
|
|
101
|
-
"setter": false,
|
|
102
90
|
"attribute": "translation-url",
|
|
103
91
|
"reflect": true,
|
|
104
92
|
"defaultValue": "''"
|
|
@@ -117,8 +105,6 @@ export class BonusPaginationLimits {
|
|
|
117
105
|
"tags": [],
|
|
118
106
|
"text": "Limits list string split with coma,default: `10,25,50`;"
|
|
119
107
|
},
|
|
120
|
-
"getter": false,
|
|
121
|
-
"setter": false,
|
|
122
108
|
"attribute": "page-limit-options",
|
|
123
109
|
"reflect": true
|
|
124
110
|
},
|
|
@@ -136,8 +122,6 @@ export class BonusPaginationLimits {
|
|
|
136
122
|
"tags": [],
|
|
137
123
|
"text": "Default limit for per page, default: 10"
|
|
138
124
|
},
|
|
139
|
-
"getter": false,
|
|
140
|
-
"setter": false,
|
|
141
125
|
"attribute": "limit",
|
|
142
126
|
"reflect": true,
|
|
143
127
|
"defaultValue": "10"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-72f6de0f.js';
|
|
2
2
|
|
|
3
3
|
const DEFAULT_LANGUAGE = 'en';
|
|
4
4
|
const SUPPORTED_LANGUAGES = ['pt-br', 'en', 'es-mx', 'hu', 'hr'];
|
|
@@ -31,17 +31,9 @@ const BonusPaginationLimits = class {
|
|
|
31
31
|
constructor(hostRef) {
|
|
32
32
|
registerInstance(this, hostRef);
|
|
33
33
|
this.pageLimitChanged = createEvent(this, "pageLimitChanged", 7);
|
|
34
|
-
/**
|
|
35
|
-
* Language of the widget
|
|
36
|
-
*/
|
|
37
34
|
this.language = 'en';
|
|
38
|
-
/**
|
|
39
|
-
* Translation via url
|
|
40
|
-
*/
|
|
41
35
|
this.translationUrl = '';
|
|
42
|
-
|
|
43
|
-
* Default limit for per page, default: 10
|
|
44
|
-
*/
|
|
36
|
+
this.pageLimitOptions = undefined;
|
|
45
37
|
this.limit = 10;
|
|
46
38
|
this.pageLimits = [10, 25, 50];
|
|
47
39
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-72f6de0f.js';
|
|
2
|
+
export { s as setNonce } from './index-72f6de0f.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
4
|
|
|
5
5
|
/*
|
|
6
|
-
Stencil Client Patch Browser v4.
|
|
6
|
+
Stencil Client Patch Browser v4.22.3 | MIT Licensed | https://stenciljs.com
|
|
7
7
|
*/
|
|
8
8
|
var patchBrowser = () => {
|
|
9
9
|
const importMeta = import.meta.url;
|
|
@@ -1,21 +1,17 @@
|
|
|
1
1
|
const NAMESPACE = 'bonus-pagination-limits';
|
|
2
|
-
const BUILD = /* bonus-pagination-limits */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false,
|
|
2
|
+
const BUILD = /* bonus-pagination-limits */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: false, propMutable: true, propNumber: true, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: false, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: false };
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
|
-
Stencil Client Platform v4.
|
|
5
|
+
Stencil Client Platform v4.22.3 | MIT Licensed | https://stenciljs.com
|
|
6
6
|
*/
|
|
7
7
|
var __defProp = Object.defineProperty;
|
|
8
8
|
var __export = (target, all) => {
|
|
9
9
|
for (var name in all)
|
|
10
10
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
11
|
};
|
|
12
|
-
|
|
13
|
-
// src/client/client-host-ref.ts
|
|
14
12
|
var hostRefs = /* @__PURE__ */ new WeakMap();
|
|
15
13
|
var getHostRef = (ref) => hostRefs.get(ref);
|
|
16
|
-
var registerInstance = (lazyInstance, hostRef) =>
|
|
17
|
-
hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
18
|
-
};
|
|
14
|
+
var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
19
15
|
var registerHost = (hostElement, cmpMeta) => {
|
|
20
16
|
const hostRef = {
|
|
21
17
|
$flags$: 0,
|
|
@@ -28,8 +24,7 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
|
28
24
|
hostElement["s-p"] = [];
|
|
29
25
|
hostElement["s-rc"] = [];
|
|
30
26
|
}
|
|
31
|
-
|
|
32
|
-
return ref;
|
|
27
|
+
return hostRefs.set(hostElement, hostRef);
|
|
33
28
|
};
|
|
34
29
|
var isMemberInElement = (elm, memberName) => memberName in elm;
|
|
35
30
|
var consoleError = (e, el) => (0, console.error)(e, el);
|
|
@@ -66,22 +61,16 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
66
61
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
67
62
|
/* webpackMode: "lazy" */
|
|
68
63
|
`./${bundleId}.entry.js${""}`
|
|
69
|
-
).then(
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
cmpModules.set(bundleId, importedModule);
|
|
73
|
-
}
|
|
74
|
-
return importedModule[exportName];
|
|
75
|
-
},
|
|
76
|
-
(e) => {
|
|
77
|
-
consoleError(e, hostRef.$hostElement$);
|
|
64
|
+
).then((importedModule) => {
|
|
65
|
+
{
|
|
66
|
+
cmpModules.set(bundleId, importedModule);
|
|
78
67
|
}
|
|
79
|
-
|
|
68
|
+
return importedModule[exportName];
|
|
69
|
+
}, consoleError);
|
|
80
70
|
};
|
|
81
71
|
|
|
82
72
|
// src/client/client-style.ts
|
|
83
73
|
var styles = /* @__PURE__ */ new Map();
|
|
84
|
-
var HYDRATED_STYLE_ID = "sty-id";
|
|
85
74
|
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
86
75
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
87
76
|
var win = typeof window !== "undefined" ? window : {};
|
|
@@ -140,6 +129,12 @@ var flush = () => {
|
|
|
140
129
|
};
|
|
141
130
|
var nextTick = (cb) => promiseResolve().then(cb);
|
|
142
131
|
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
|
132
|
+
|
|
133
|
+
// src/utils/constants.ts
|
|
134
|
+
var EMPTY_OBJ = {};
|
|
135
|
+
|
|
136
|
+
// src/utils/helpers.ts
|
|
137
|
+
var isDef = (v) => v != null;
|
|
143
138
|
var isComplexType = (o) => {
|
|
144
139
|
o = typeof o;
|
|
145
140
|
return o === "object" || o === "function";
|
|
@@ -340,7 +335,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
340
335
|
}
|
|
341
336
|
if (!appliedStyles.has(scopeId2)) {
|
|
342
337
|
{
|
|
343
|
-
styleElm =
|
|
338
|
+
styleElm = doc.createElement("style");
|
|
344
339
|
styleElm.innerHTML = style;
|
|
345
340
|
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
346
341
|
if (nonce != null) {
|
|
@@ -350,10 +345,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
350
345
|
if (styleContainerNode.nodeName === "HEAD") {
|
|
351
346
|
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
352
347
|
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
353
|
-
styleContainerNode.insertBefore(
|
|
354
|
-
styleElm,
|
|
355
|
-
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
356
|
-
);
|
|
348
|
+
styleContainerNode.insertBefore(styleElm, referenceNode2);
|
|
357
349
|
} else if ("host" in styleContainerNode) {
|
|
358
350
|
if (supportsConstructableStylesheets) {
|
|
359
351
|
const stylesheet = new CSSStyleSheet();
|
|
@@ -371,7 +363,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
371
363
|
styleContainerNode.append(styleElm);
|
|
372
364
|
}
|
|
373
365
|
}
|
|
374
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
366
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
|
|
375
367
|
styleContainerNode.insertBefore(styleElm, null);
|
|
376
368
|
}
|
|
377
369
|
}
|
|
@@ -398,18 +390,16 @@ var attachStyles = (hostRef) => {
|
|
|
398
390
|
endAttachStyles();
|
|
399
391
|
};
|
|
400
392
|
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
401
|
-
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags
|
|
393
|
+
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
402
394
|
if (oldValue !== newValue) {
|
|
403
395
|
let isProp = isMemberInElement(elm, memberName);
|
|
404
396
|
let ln = memberName.toLowerCase();
|
|
405
397
|
if (memberName === "class") {
|
|
406
398
|
const classList = elm.classList;
|
|
407
399
|
const oldClasses = parseClassList(oldValue);
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
412
|
-
}
|
|
400
|
+
const newClasses = parseClassList(newValue);
|
|
401
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
402
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
413
403
|
} else if (memberName === "key") ; else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
|
|
414
404
|
if (memberName[2] === "-") {
|
|
415
405
|
memberName = memberName.slice(3);
|
|
@@ -443,7 +433,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
443
433
|
elm.setAttribute(memberName, n);
|
|
444
434
|
}
|
|
445
435
|
}
|
|
446
|
-
} else
|
|
436
|
+
} else {
|
|
447
437
|
elm[memberName] = newValue;
|
|
448
438
|
}
|
|
449
439
|
} catch (e) {
|
|
@@ -465,44 +455,24 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
465
455
|
}
|
|
466
456
|
};
|
|
467
457
|
var parseClassListRegex = /\s/;
|
|
468
|
-
var parseClassList = (value) =>
|
|
469
|
-
if (typeof value === "object" && value && "baseVal" in value) {
|
|
470
|
-
value = value.baseVal;
|
|
471
|
-
}
|
|
472
|
-
if (!value || typeof value !== "string") {
|
|
473
|
-
return [];
|
|
474
|
-
}
|
|
475
|
-
return value.split(parseClassListRegex);
|
|
476
|
-
};
|
|
458
|
+
var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
|
|
477
459
|
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
478
460
|
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
479
461
|
|
|
480
462
|
// src/runtime/vdom/update-element.ts
|
|
481
|
-
var updateElement = (oldVnode, newVnode, isSvgMode2
|
|
463
|
+
var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
|
482
464
|
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
483
|
-
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ ||
|
|
484
|
-
const newVnodeAttrs = newVnode.$attrs$ ||
|
|
465
|
+
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
|
|
466
|
+
const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
|
|
485
467
|
{
|
|
486
468
|
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
487
469
|
if (!(memberName in newVnodeAttrs)) {
|
|
488
|
-
setAccessor(
|
|
489
|
-
elm,
|
|
490
|
-
memberName,
|
|
491
|
-
oldVnodeAttrs[memberName],
|
|
492
|
-
void 0,
|
|
493
|
-
isSvgMode2,
|
|
494
|
-
newVnode.$flags$);
|
|
470
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
|
|
495
471
|
}
|
|
496
472
|
}
|
|
497
473
|
}
|
|
498
474
|
for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
|
499
|
-
setAccessor(
|
|
500
|
-
elm,
|
|
501
|
-
memberName,
|
|
502
|
-
oldVnodeAttrs[memberName],
|
|
503
|
-
newVnodeAttrs[memberName],
|
|
504
|
-
isSvgMode2,
|
|
505
|
-
newVnode.$flags$);
|
|
475
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
|
|
506
476
|
}
|
|
507
477
|
};
|
|
508
478
|
function sortedAttrNames(attrNames) {
|
|
@@ -514,10 +484,13 @@ function sortedAttrNames(attrNames) {
|
|
|
514
484
|
attrNames
|
|
515
485
|
);
|
|
516
486
|
}
|
|
487
|
+
|
|
488
|
+
// src/runtime/vdom/vdom-render.ts
|
|
489
|
+
var scopeId;
|
|
517
490
|
var hostTagName;
|
|
518
491
|
var useNativeShadowDom = false;
|
|
519
492
|
var isSvgMode = false;
|
|
520
|
-
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
493
|
+
var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
521
494
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
522
495
|
let i2 = 0;
|
|
523
496
|
let elm;
|
|
@@ -531,6 +504,11 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
531
504
|
{
|
|
532
505
|
updateElement(null, newVNode2, isSvgMode);
|
|
533
506
|
}
|
|
507
|
+
const rootNode = elm.getRootNode();
|
|
508
|
+
const isElementWithinShadowRoot = !rootNode.querySelector("body");
|
|
509
|
+
if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
510
|
+
elm.classList.add(elm["s-si"] = scopeId);
|
|
511
|
+
}
|
|
534
512
|
if (newVNode2.$children$) {
|
|
535
513
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
536
514
|
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
@@ -656,9 +634,6 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
|
656
634
|
if (!isInitialRender) {
|
|
657
635
|
return leftVNode.$key$ === rightVNode.$key$;
|
|
658
636
|
}
|
|
659
|
-
if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
|
|
660
|
-
leftVNode.$key$ = rightVNode.$key$;
|
|
661
|
-
}
|
|
662
637
|
return true;
|
|
663
638
|
}
|
|
664
639
|
return false;
|
|
@@ -692,9 +667,8 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
692
667
|
}
|
|
693
668
|
};
|
|
694
669
|
var insertBefore = (parent, newNode, reference) => {
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
}
|
|
670
|
+
const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
671
|
+
return inserted;
|
|
698
672
|
};
|
|
699
673
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
700
674
|
const hostElm = hostRef.$hostElement$;
|
|
@@ -719,21 +693,14 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
719
693
|
rootVnode.$flags$ |= 4 /* isHost */;
|
|
720
694
|
hostRef.$vnode$ = rootVnode;
|
|
721
695
|
rootVnode.$elm$ = oldVNode.$elm$ = hostElm;
|
|
722
|
-
useNativeShadowDom = supportsShadow
|
|
696
|
+
useNativeShadowDom = supportsShadow ;
|
|
723
697
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
724
698
|
};
|
|
725
699
|
|
|
726
700
|
// src/runtime/update-component.ts
|
|
727
701
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
728
702
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
729
|
-
|
|
730
|
-
new Promise(
|
|
731
|
-
(r) => hostRef.$onRenderResolve$ = () => {
|
|
732
|
-
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
733
|
-
r();
|
|
734
|
-
}
|
|
735
|
-
)
|
|
736
|
-
);
|
|
703
|
+
ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
|
|
737
704
|
}
|
|
738
705
|
};
|
|
739
706
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -760,7 +727,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
760
727
|
let maybePromise;
|
|
761
728
|
if (isInitialLoad) {
|
|
762
729
|
{
|
|
763
|
-
maybePromise = safeCall(instance, "componentWillLoad"
|
|
730
|
+
maybePromise = safeCall(instance, "componentWillLoad");
|
|
764
731
|
}
|
|
765
732
|
}
|
|
766
733
|
endSchedule();
|
|
@@ -854,14 +821,17 @@ var postUpdateComponent = (hostRef) => {
|
|
|
854
821
|
}
|
|
855
822
|
};
|
|
856
823
|
var appDidLoad = (who) => {
|
|
824
|
+
{
|
|
825
|
+
addHydratedFlag(doc.documentElement);
|
|
826
|
+
}
|
|
857
827
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
858
828
|
};
|
|
859
|
-
var safeCall = (instance, method, arg
|
|
829
|
+
var safeCall = (instance, method, arg) => {
|
|
860
830
|
if (instance && instance[method]) {
|
|
861
831
|
try {
|
|
862
832
|
return instance[method](arg);
|
|
863
833
|
} catch (e) {
|
|
864
|
-
consoleError(e
|
|
834
|
+
consoleError(e);
|
|
865
835
|
}
|
|
866
836
|
}
|
|
867
837
|
return void 0;
|
|
@@ -904,68 +874,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
904
874
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
905
875
|
members.map(([memberName, [memberFlags]]) => {
|
|
906
876
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
907
|
-
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
|
908
|
-
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
909
|
-
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
910
|
-
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
911
|
-
Object.defineProperty(prototype, memberName, {
|
|
912
|
-
get() {
|
|
913
|
-
{
|
|
914
|
-
if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
|
|
915
|
-
return getValue(this, memberName);
|
|
916
|
-
}
|
|
917
|
-
const ref = getHostRef(this);
|
|
918
|
-
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
919
|
-
if (!instance) return;
|
|
920
|
-
return instance[memberName];
|
|
921
|
-
}
|
|
922
|
-
},
|
|
923
|
-
configurable: true,
|
|
924
|
-
enumerable: true
|
|
925
|
-
});
|
|
926
|
-
}
|
|
927
877
|
Object.defineProperty(prototype, memberName, {
|
|
878
|
+
get() {
|
|
879
|
+
return getValue(this, memberName);
|
|
880
|
+
},
|
|
928
881
|
set(newValue) {
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
newValue = ref.$instanceValues$.get(memberName);
|
|
934
|
-
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
935
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
936
|
-
}
|
|
937
|
-
origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
|
|
938
|
-
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
939
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
940
|
-
return;
|
|
941
|
-
}
|
|
942
|
-
{
|
|
943
|
-
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
944
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
945
|
-
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
946
|
-
ref.$onReadyPromise$.then(() => {
|
|
947
|
-
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
948
|
-
ref.$lazyInstance$[memberName] = newValue;
|
|
949
|
-
}
|
|
950
|
-
});
|
|
951
|
-
}
|
|
952
|
-
return;
|
|
953
|
-
}
|
|
954
|
-
const setterSetVal = () => {
|
|
955
|
-
const currentValue = ref.$lazyInstance$[memberName];
|
|
956
|
-
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
957
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
958
|
-
}
|
|
959
|
-
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
|
|
960
|
-
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
961
|
-
};
|
|
962
|
-
if (ref.$lazyInstance$) {
|
|
963
|
-
setterSetVal();
|
|
964
|
-
} else {
|
|
965
|
-
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
966
|
-
}
|
|
967
|
-
}
|
|
968
|
-
}
|
|
882
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
883
|
+
},
|
|
884
|
+
configurable: true,
|
|
885
|
+
enumerable: true
|
|
969
886
|
});
|
|
970
887
|
}
|
|
971
888
|
});
|
|
@@ -975,7 +892,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
975
892
|
plt.jmp(() => {
|
|
976
893
|
var _a2;
|
|
977
894
|
const propName = attrNameToPropName.get(attrName);
|
|
978
|
-
if (this.hasOwnProperty(propName)
|
|
895
|
+
if (this.hasOwnProperty(propName)) {
|
|
979
896
|
newValue = this[propName];
|
|
980
897
|
delete this[propName];
|
|
981
898
|
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
|
|
@@ -995,11 +912,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
995
912
|
}
|
|
996
913
|
return;
|
|
997
914
|
}
|
|
998
|
-
|
|
999
|
-
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1000
|
-
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1001
|
-
this[propName] = newValue;
|
|
1002
|
-
}
|
|
915
|
+
this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1003
916
|
});
|
|
1004
917
|
};
|
|
1005
918
|
Cstr.observedAttributes = Array.from(
|
|
@@ -1028,7 +941,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1028
941
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
1029
942
|
const bundleId = cmpMeta.$lazyBundleId$;
|
|
1030
943
|
if (bundleId) {
|
|
1031
|
-
const CstrImport = loadModule(cmpMeta
|
|
944
|
+
const CstrImport = loadModule(cmpMeta);
|
|
1032
945
|
if (CstrImport && "then" in CstrImport) {
|
|
1033
946
|
const endLoad = uniqueTime();
|
|
1034
947
|
Cstr = await CstrImport;
|
|
@@ -1050,7 +963,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1050
963
|
try {
|
|
1051
964
|
new Cstr(hostRef);
|
|
1052
965
|
} catch (e) {
|
|
1053
|
-
consoleError(e
|
|
966
|
+
consoleError(e);
|
|
1054
967
|
}
|
|
1055
968
|
{
|
|
1056
969
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
@@ -1082,7 +995,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1082
995
|
schedule();
|
|
1083
996
|
}
|
|
1084
997
|
};
|
|
1085
|
-
var fireConnectedCallback = (instance
|
|
998
|
+
var fireConnectedCallback = (instance) => {
|
|
1086
999
|
};
|
|
1087
1000
|
|
|
1088
1001
|
// src/runtime/connected-callback.ts
|
|
@@ -1122,7 +1035,7 @@ var connectedCallback = (elm) => {
|
|
|
1122
1035
|
endConnected();
|
|
1123
1036
|
}
|
|
1124
1037
|
};
|
|
1125
|
-
var disconnectInstance = (instance
|
|
1038
|
+
var disconnectInstance = (instance) => {
|
|
1126
1039
|
};
|
|
1127
1040
|
var disconnectedCallback = async (elm) => {
|
|
1128
1041
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
@@ -1131,12 +1044,6 @@ var disconnectedCallback = async (elm) => {
|
|
|
1131
1044
|
hostRef.$onReadyPromise$.then(() => disconnectInstance());
|
|
1132
1045
|
}
|
|
1133
1046
|
}
|
|
1134
|
-
if (rootAppliedStyles.has(elm)) {
|
|
1135
|
-
rootAppliedStyles.delete(elm);
|
|
1136
|
-
}
|
|
1137
|
-
if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
|
|
1138
|
-
rootAppliedStyles.delete(elm.shadowRoot);
|
|
1139
|
-
}
|
|
1140
1047
|
};
|
|
1141
1048
|
|
|
1142
1049
|
// src/runtime/bootstrap-lazy.ts
|
|
@@ -1198,17 +1105,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1198
1105
|
}
|
|
1199
1106
|
disconnectedCallback() {
|
|
1200
1107
|
plt.jmp(() => disconnectedCallback(this));
|
|
1201
|
-
plt.raf(() => {
|
|
1202
|
-
var _a3;
|
|
1203
|
-
const hostRef = getHostRef(this);
|
|
1204
|
-
const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
|
|
1205
|
-
if (i2 > -1) {
|
|
1206
|
-
deferredConnectedCallbacks.splice(i2, 1);
|
|
1207
|
-
}
|
|
1208
|
-
if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
|
|
1209
|
-
delete hostRef.$vnode$.$elm$;
|
|
1210
|
-
}
|
|
1211
|
-
});
|
|
1212
1108
|
}
|
|
1213
1109
|
componentOnReady() {
|
|
1214
1110
|
return getHostRef(this).$onReadyPromise$;
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { b as bootstrapLazy } from './index-72f6de0f.js';
|
|
2
|
+
export { s as setNonce } from './index-72f6de0f.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
4
|
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|
package/package.json
CHANGED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var t=Object.defineProperty,e=new WeakMap,n=t=>e.get(t),l=(t,n)=>{e.set(n.t=t,n)},o=(t,e)=>e in t,s=(t,e)=>(0,console.error)(t,e),i=new Map,r=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: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)},h=t=>Promise.resolve(t),d=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),m=!1,p=[],y=[],v=(t,e)=>n=>{t.push(n),m||(m=!0,e&&4&f.l?w($):f.raf($))},b=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){s(t)}t.length=0},$=()=>{b(p),b(y),(m=p.length>0)&&f.raf($)},w=t=>h().then(t),S=v(y,!0),g=t=>"object"==(t=typeof t)||"function"===t;function j(t){var e,n,l;return null!=(l=null==(n=null==(e=t.head)?void 0:e.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?l:void 0}((e,n)=>{for(var l in n)t(e,l,{get:n[l],enumerable:!0})})({},{err:()=>k,map:()=>E,ok:()=>O,unwrap:()=>M,unwrapErr:()=>P});var O=t=>({isOk:!0,isErr:!1,value:t}),k=t=>({isOk:!1,isErr:!0,value:t});function E(t,e){if(t.isOk){const n=e(t.value);return n instanceof Promise?n.then((t=>O(t))):O(n)}if(t.isErr)return k(t.value);throw"should never get here"}var C,M=t=>{if(t.isOk)return t.value;throw t.value},P=t=>{if(t.isErr)return t.value;throw t.value},x=(t,e,...n)=>{let l=null,o=null,s=!1,i=!1;const r=[],c=e=>{for(let n=0;n<e.length;n++)l=e[n],Array.isArray(l)?c(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof t&&!g(l))&&(l+=""),s&&i?r[r.length-1].i+=l:r.push(s?A(null,l):l),i=s)};if(c(n),e){e.key&&(o=e.key);{const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}}const u=A(t,null);return u.u=e,r.length>0&&(u.h=r),u.m=o,u},A=(t,e)=>({l:0,p:t,i:e,v:null,h:null,u:null,m:null}),N={},R=(t,e)=>null==t||g(t)?t:2&e?parseFloat(t):1&e?t+"":t,T=(t,e,l)=>{const o=(t=>n(t).$hostElement$)(t);return{emit:t=>F(o,e,{bubbles:!!(4&l),composed:!!(2&l),cancelable:!!(1&l),detail:t})}},F=(t,e,n)=>{const l=f.ce(e,n);return t.dispatchEvent(l),l},H=new WeakMap,L=t=>"sc-"+t.$,W=(t,e,n,l,s,i)=>{if(n!==l){let r=o(t,e),c=e.toLowerCase();if("class"===e){const e=t.classList,o=U(n);let s=U(l);e.remove(...o.filter((t=>t&&!s.includes(t)))),e.add(...s.filter((t=>t&&!o.includes(t))))}else if("key"===e);else if(r||"o"!==e[0]||"n"!==e[1]){const o=g(l);if((r||o&&null!==l)&&!s)try{if(t.tagName.includes("-"))t[e]!==l&&(t[e]=l);else{const o=null==l?"":l;"list"===e?r=!1:null!=n&&t[e]==o||("function"==typeof t.__lookupSetter__(e)?t[e]=o:t.setAttribute(e,o))}}catch(t){}null==l||!1===l?!1===l&&""!==t.getAttribute(e)||t.removeAttribute(e):(!r||4&i||s)&&!o&&t.setAttribute(e,l=!0===l?"":l)}else if(e="-"===e[2]?e.slice(3):o(u,c)?c.slice(2):c[2]+e.slice(3),n||l){const o=e.endsWith(V);e=e.replace(q,""),n&&f.rel(t,e,n,o),l&&f.ael(t,e,l,o)}}},D=/\s/,U=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(D):[]),V="Capture",q=RegExp(V+"$"),G=(t,e,n)=>{const l=11===e.v.nodeType&&e.v.host?e.v.host:e.v,o=t&&t.u||{},s=e.u||{};for(const t of _(Object.keys(o)))t in s||W(l,t,o[t],void 0,n,e.l);for(const t of _(Object.keys(s)))W(l,t,o[t],s[t],n,e.l)};function _(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var z=!1,B=(t,e,n)=>{const l=e.h[n];let o,s,i=0;if(null!==l.i)o=l.v=a.createTextNode(l.i);else if(o=l.v=a.createElement(l.p),G(null,l,z),l.h)for(i=0;i<l.h.length;++i)s=B(t,l,i),s&&o.appendChild(s);return o["s-hn"]=C,o},I=(t,e,n,l,o,s)=>{let i,r=t;for(;o<=s;++o)l[o]&&(i=B(null,n,o),i&&(l[o].v=i,X(r,i,e)))},J=(t,e,n)=>{for(let l=e;l<=n;++l){const e=t[l];if(e){const t=e.v;t&&t.remove()}}},K=(t,e,n=!1)=>t.p===e.p&&(n?(n&&!t.m&&e.m&&(t.m=e.m),!0):t.m===e.m),Q=(t,e,n=!1)=>{const l=e.v=t.v,o=t.h,s=e.h,i=e.i;null===i?(G(t,e,z),null!==o&&null!==s?((t,e,n,l,o=!1)=>{let s,i,r=0,c=0,u=0,a=0,f=e.length-1,h=e[0],d=e[f],m=l.length-1,p=l[0],y=l[m];for(;r<=f&&c<=m;)if(null==h)h=e[++r];else if(null==d)d=e[--f];else if(null==p)p=l[++c];else if(null==y)y=l[--m];else if(K(h,p,o))Q(h,p,o),h=e[++r],p=l[++c];else if(K(d,y,o))Q(d,y,o),d=e[--f],y=l[--m];else if(K(h,y,o))Q(h,y,o),X(t,h.v,d.v.nextSibling),h=e[++r],y=l[--m];else if(K(d,p,o))Q(d,p,o),X(t,d.v,h.v),d=e[--f],p=l[++c];else{for(u=-1,a=r;a<=f;++a)if(e[a]&&null!==e[a].m&&e[a].m===p.m){u=a;break}u>=0?(i=e[u],i.p!==p.p?s=B(e&&e[c],n,u):(Q(i,p,o),e[u]=void 0,s=i.v),p=l[++c]):(s=B(e&&e[c],n,c),p=l[++c]),s&&X(h.v.parentNode,s,h.v)}r>f?I(t,null==l[m+1]?null:l[m+1].v,n,l,c,m):c>m&&J(e,r,f)})(l,o,e,s,n):null!==s?(null!==t.i&&(l.textContent=""),I(l,null,e,s,0,s.length-1)):!n&&null!==o&&J(o,0,o.length-1)):t.i!==i&&(l.data=i)},X=(t,e,n)=>null==t?void 0:t.insertBefore(e,n),Y=(t,e)=>{if(e&&!t.S&&e["s-p"]){const n=e["s-p"].push(new Promise((l=>t.S=()=>{e["s-p"].splice(n-1,1),l()})))}},Z=(t,e)=>{if(t.l|=16,!(4&t.l))return Y(t,t.j),S((()=>tt(t,e)));t.l|=512},tt=(t,e)=>{const n=t.$hostElement$,l=t.t;if(!l)throw Error(`Can't render component <${n.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 o;return e&&(o=rt(l,"componentWillLoad",void 0,n)),et(o,(()=>lt(t,l,e)))},et=(t,e)=>nt(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),nt=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,lt=async(t,e,n)=>{var l;const o=t.$hostElement$,s=o["s-rc"];n&&(t=>{const e=t.O;((t,e)=>{var n;const l=L(e),o=r.get(l);if(t=11===t.nodeType?t:a,o)if("string"==typeof o){let s,i=H.get(t=t.head||t);if(i||H.set(t,i=new Set),!i.has(l)){{s=document.querySelector(`[sty-id="${l}"]`)||a.createElement("style"),s.innerHTML=o;const i=null!=(n=f.k)?n:j(a);if(null!=i&&s.setAttribute("nonce",i),!(1&e.l))if("HEAD"===t.nodeName){const e=t.querySelectorAll("link[rel=preconnect]"),n=e.length>0?e[e.length-1].nextSibling:t.querySelector("style");t.insertBefore(s,(null==n?void 0:n.parentNode)===t?n:null)}else if("host"in t)if(d){const e=new CSSStyleSheet;e.replaceSync(o),t.adoptedStyleSheets=[e,...t.adoptedStyleSheets]}else{const e=t.querySelector("style");e?e.innerHTML=o+e.innerHTML:t.prepend(s)}else t.append(s);1&e.l&&t.insertBefore(s,null)}4&e.l&&(s.innerHTML+=c),i&&i.add(l)}}else t.adoptedStyleSheets.includes(o)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,o])})(t.$hostElement$.getRootNode(),e)})(t);ot(t,e,o,n),s&&(s.map((t=>t())),o["s-rc"]=void 0);{const e=null!=(l=o["s-p"])?l:[],n=()=>st(t);0===e.length?n():(Promise.all(e).then(n),t.l|=4,e.length=0)}},ot=(t,e,n,l)=>{try{e=e.render(),t.l&=-17,t.l|=2,((t,e,n=!1)=>{const l=t.$hostElement$,o=t.O,s=t.C||A(null,null),i=(t=>t&&t.p===N)(e)?e:x(null,null,e);if(C=l.tagName,o.M&&(i.u=i.u||{},o.M.map((([t,e])=>i.u[e]=l[t]))),n&&i.u)for(const t of Object.keys(i.u))l.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(i.u[t]=l[t]);i.p=null,i.l|=4,t.C=i,i.v=s.v=l,Q(s,i,n)})(t,e,l)}catch(e){s(e,t.$hostElement$)}return null},st=t=>{const e=t.$hostElement$,n=t.j;64&t.l||(t.l|=64,ct(e),t.P(e),n||it()),t.S&&(t.S(),t.S=void 0),512&t.l&&w((()=>Z(t,!1))),t.l&=-517},it=()=>{w((()=>F(u,"appload",{detail:{namespace:"bonus-pagination-limits"}})))},rt=(t,e,n,l)=>{if(t&&t[e])try{return t[e](n)}catch(t){s(t,l)}},ct=t=>t.classList.add("hydrated"),ut=(t,e,l,o)=>{const s=n(t);if(!s)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=s.A.get(e),r=s.l,c=s.t;l=R(l,o.N[e][0]),8&r&&void 0!==i||l===i||Number.isNaN(i)&&Number.isNaN(l)||(s.A.set(e,l),c&&2==(18&r)&&Z(s,!1))},at=(t,e,l)=>{var o,s;const i=t.prototype;if(e.N){const r=Object.entries(null!=(o=e.N)?o:{});if(r.map((([t,[o]])=>{if(31&o||2&l&&32&o){const{get:s,set:r}=Object.getOwnPropertyDescriptor(i,t)||{};s&&(e.N[t][0]|=2048),r&&(e.N[t][0]|=4096),(1&l||!s)&&Object.defineProperty(i,t,{get(){{if(!(2048&e.N[t][0]))return((t,e)=>n(this).A.get(e))(0,t);const l=n(this),o=l?l.t:i;if(!o)return;return o[t]}},configurable:!0,enumerable:!0}),Object.defineProperty(i,t,{set(s){const i=n(this);if(r){const n=32&o?this[t]:i.$hostElement$[t];return void 0===n&&i.A.get(t)?s=i.A.get(t):!i.A.get(t)&&n&&i.A.set(t,n),r.call(this,R(s,o)),void ut(this,t,s=32&o?this[t]:i.$hostElement$[t],e)}{if(!(1&l&&4096&e.N[t][0]))return ut(this,t,s,e),void(1&l&&!i.t&&i.R.then((()=>{4096&e.N[t][0]&&i.t[t]!==i.A.get(t)&&(i.t[t]=s)})));const n=()=>{const n=i.t[t];!i.A.get(t)&&n&&i.A.set(t,n),i.t[t]=R(s,o),ut(this,t,i.t[t],e)};i.t?n():i.R.then((()=>n()))}}})}})),1&l){const l=new Map;i.attributeChangedCallback=function(t,o,s){f.jmp((()=>{var r;const c=l.get(t);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=e.T)?void 0:r[t];null==i||i.forEach((e=>{null!=n[e]&&n[e].call(n,s,o,t)}))}return}}const u=Object.getOwnPropertyDescriptor(i,c);(s=(null!==s||"boolean"!=typeof this[c])&&s)===this[c]||u.get&&!u.set||(this[c]=s)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=e.T)?s:{}),...r.filter((([t,e])=>15&e[0])).map((([t,n])=>{var o;const s=n[1]||t;return l.set(s,t),512&n[0]&&(null==(o=e.M)||o.push([t,s])),s}))]))}}return t},ft=(t,l={})=>{var o;const h=[],m=l.exclude||[],p=u.customElements,y=a.head,v=y.querySelector("meta[charset]"),b=a.createElement("style"),$=[];let w,S=!0;Object.assign(f,l),f.o=new URL(l.resourcesUrl||"./",a.baseURI).href;let g=!1;if(t.map((t=>{t[1].map((l=>{const o={l:l[0],$:l[1],N:l[2],F:l[3]};4&o.l&&(g=!0),o.N=l[2],o.M=[];const c=o.$,u=class extends HTMLElement{constructor(t){super(t),this.hasRegisteredEventListeners=!1,((t,n)=>{const l={l:0,$hostElement$:t,O:n,A:new Map};l.R=new Promise((t=>l.P=t)),t["s-p"]=[],t["s-rc"]=[],e.set(t,l)})(t=this,o)}connectedCallback(){this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),w&&(clearTimeout(w),w=null),S?$.push(this):f.jmp((()=>(t=>{if(!(1&f.l)){const e=n(t),l=e.O,o=()=>{};if(1&e.l)(null==e?void 0:e.t)||(null==e?void 0:e.R)&&e.R.then((()=>{}));else{e.l|=1;{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){Y(e,e.j=n);break}}l.N&&Object.entries(l.N).map((([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n)=>{let l;if(!(32&e.l)){if(e.l|=32,n.H){const o=((t,e)=>{const n=t.$.replace(/-/g,"_"),l=t.H;if(!l)return;const o=i.get(l);return o?o[n]:import(`./${l}.entry.js`).then((t=>(i.set(l,t),t[n])),(t=>{s(t,e.$hostElement$)}))
|
|
2
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n,e);if(o&&"then"in o){const t=()=>{};l=await o,t()}else l=o;if(!l)throw Error(`Constructor for "${n.$}#${e.L}" was not found`);l.isProxied||(at(l,n,2),l.isProxied=!0);const r=()=>{};e.l|=8;try{new l(e)}catch(e){s(e,t)}e.l&=-9,r()}else l=t.constructor,customElements.whenDefined(t.localName).then((()=>e.l|=128));if(l&&l.style){let t;"string"==typeof l.style&&(t=l.style);const e=L(n);if(!r.has(e)){const l=()=>{};((t,e,n)=>{let l=r.get(t);d&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=e:l.replaceSync(e)):l=e,r.set(t,l)})(e,t,!!(1&n.l)),l()}}}const o=e.j,c=()=>Z(e,!0);o&&o["s-rc"]?o["s-rc"].push(c):c()})(t,e,l)}o()}})(this)))}disconnectedCallback(){f.jmp((()=>(async t=>{if(!(1&f.l)){const e=n(t);(null==e?void 0:e.t)||(null==e?void 0:e.R)&&e.R.then((()=>{}))}H.has(t)&&H.delete(t),t.shadowRoot&&H.has(t.shadowRoot)&&H.delete(t.shadowRoot)})(this))),f.raf((()=>{var t;const e=n(this),l=$.findIndex((t=>t===this));l>-1&&$.splice(l,1),(null==(t=null==e?void 0:e.C)?void 0:t.v)instanceof Node&&!e.C.v.isConnected&&delete e.C.v}))}componentOnReady(){return n(this).R}};o.H=t[0],m.includes(c)||p.get(c)||(h.push(c),p.define(c,at(u,o,1)))}))})),h.length>0&&(g&&(b.textContent+=c),b.textContent+=h.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",b.innerHTML.length)){b.setAttribute("data-styles","");const t=null!=(o=f.k)?o:j(a);null!=t&&b.setAttribute("nonce",t),y.insertBefore(b,v?v.nextSibling:y.firstChild)}S=!1,$.length?$.map((t=>t.connectedCallback())):f.jmp((()=>w=setTimeout(it,30)))},ht=t=>f.k=t;export{ft as b,T as c,x as h,h as p,l as r,ht as s}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as i,c as e,h as a}from"./p-340985fe.js";const t=["pt-br","en","es-mx","hu","hr"],r={en:{pageLimitLabel:"Show"},hu:{pageLimitLabel:"Show"},hr:{pageLimitLabel:"Show"},"pt-br":{pageLimitLabel:"Show"},"es-mx":{pageLimitLabel:"Show"}},o=class{constructor(a){i(this,a),this.pageLimitChanged=e(this,"pageLimitChanged",7),this.language="en",this.translationUrl="",this.limit=10,this.pageLimits=[10,25,50]}onPageLimitClicked(i){this.limit=i,this.pageLimitChanged.emit({limit:this.limit})}componentWillLoad(){if(this.pageLimitOptions)try{this.pageLimits=this.pageLimitOptions.split(",").map((i=>parseInt(i))),this.pageLimits.includes(this.limit)||(this.limit=this.pageLimits[0])}catch(i){console.error("Error when parse PageLimitOptions",i)}}renderStylingWrapper(){return a("general-styling-wrapper",{targetTranslations:r,translationUrl:this.translationUrl})}render(){return a("div",{key:"57f5e61ee287f72d0427a2e4f646e37c6b9358b9",class:"PaginationWrapper"},a("span",{key:"5f82b19fcf269086659b3faa475d9967b2af57fa",class:"NoOfItemsToDisplayMessage"},(()=>{const i=this.language;return r[void 0!==i&&t.includes(i)?i:"en"].pageLimitLabel})()),a("ul",{key:"559c2d5378a352691583567579a8e681d092ddd3",class:"PaginationArea"},this.pageLimits.map((i=>a("li",{class:(this.limit==i?"Active":"")+" PageSize Item",onClick:()=>{this.onPageLimitClicked(i)}},i)))),a("general-styling-wrapper",{key:"a8b9632e7421318e330f33b9c1cc9eb7121e35e9",targetTranslations:r,translationUrl:this.translationUrl}),this.renderStylingWrapper())}};o.style=":host{display:block}.NoOfItemsToDisplayMessage{display:inline-block;margin:0.1rem;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:var(--emw--color-primary, #191a19);line-height:1.8}.PaginationWrapper{display:flex;flex-direction:row}ul.PaginationArea{margin-block:5px;display:flex;flex-direction:row;padding:0px}ul.PaginationArea li.Item.Active:hover{color:var(--emw--color-primary, #eaefea);background-color:var(--emw--color-secondary, #191a19)}ul.PaginationArea li.Item.Active,ul.PaginationArea li.Item:hover{background-color:var(--emw--color-primary, rgba(169, 171, 169, 0.7));font-weight:bold;border-radius:0.3rem}ul.PaginationArea li.Item{padding-inline-start:0px;list-style:none;padding:5px 6px;margin:2px;cursor:pointer;display:inline-block}";export{o as bonus_pagination_limits}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|