@everymatrix/bonus-pagination-limits 1.53.0 → 1.53.11
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-1be04242.entry.js +1 -0
- package/dist/bonus-pagination-limits/p-e9ca3082.js +2 -0
- package/dist/cjs/bonus-pagination-limits.cjs.entry.js +10 -2
- package/dist/cjs/bonus-pagination-limits.cjs.js +2 -2
- package/dist/cjs/{index-a29c4900.js → index-a0d90e1c.js} +160 -62
- 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 +17 -1
- package/dist/esm/bonus-pagination-limits.entry.js +10 -2
- package/dist/esm/bonus-pagination-limits.js +3 -3
- package/dist/esm/{index-72f6de0f.js → index-74647e81.js} +160 -62
- package/dist/esm/loader.js +2 -2
- 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 +2 -0
- 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 +2 -0
- package/package.json +1 -1
- package/dist/bonus-pagination-limits/p-c4107576.entry.js +0 -1
- package/dist/bonus-pagination-limits/p-ff6aa153.js +0 -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 +0 -2
- 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 +0 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as a,b as t}from"./p-
|
|
1
|
+
import{p as a,b as t}from"./p-e9ca3082.js";export{s as setNonce}from"./p-e9ca3082.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-1be04242",[[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-e9ca3082.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}
|
|
@@ -0,0 +1,2 @@
|
|
|
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})(),p=!1,m=[],y=[],v=(t,e)=>n=>{t.push(n),p||(p=!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(m),b(y),(p=m.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.p=o,u},A=(t,e)=>({l:0,m:t,i:e,v:null,h:null,u:null,p:null}),H={},N=(t,e)=>null==t||g(t)?t:2&e?parseFloat(t):1&e?t+"":t,R=(t,e,l)=>{const o=(t=>n(t).$hostElement$)(t);return{emit:t=>T(o,e,{bubbles:!!(4&l),composed:!!(2&l),cancelable:!!(1&l),detail:t})}},T=(t,e,n)=>{const l=f.ce(e,n);return t.dispatchEvent(l),l},D=new WeakMap,F=t=>"sc-"+t.$,L=(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)}}},W=/\s/,U=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(W):[]),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||L(l,t,o[t],void 0,n,e.l);for(const t of _(Object.keys(s)))L(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.m),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.m===e.m&&(n?(n&&!t.p&&e.p&&(t.p=e.p),!0):t.p===e.p),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],p=l.length-1,m=l[0],y=l[p];for(;r<=f&&c<=p;)if(null==h)h=e[++r];else if(null==d)d=e[--f];else if(null==m)m=l[++c];else if(null==y)y=l[--p];else if(K(h,m,o))Q(h,m,o),h=e[++r],m=l[++c];else if(K(d,y,o))Q(d,y,o),d=e[--f],y=l[--p];else if(K(h,y,o))Q(h,y,o),X(t,h.v,d.v.nextSibling),h=e[++r],y=l[--p];else if(K(d,m,o))Q(d,m,o),X(t,d.v,h.v),d=e[--f],m=l[++c];else{for(u=-1,a=r;a<=f;++a)if(e[a]&&null!==e[a].p&&e[a].p===m.p){u=a;break}u>=0?(i=e[u],i.m!==m.m?s=B(e&&e[c],n,u):(Q(i,m,o),e[u]=void 0,s=i.v),m=l[++c]):(s=B(e&&e[c],n,c),m=l[++c]),s&&X(h.v.parentNode,s,h.v)}r>f?I(t,null==l[p+1]?null:l[p+1].v,n,l,c,p):c>p&&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=F(e),o=r.get(l);if(t=11===t.nodeType?t:a,o)if("string"==typeof o){let s,i=D.get(t=t.head||t);if(i||D.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&&"HEAD"!==t.nodeName&&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.m===H)(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.m=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=()=>{ct(a.documentElement),w((()=>T(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=N(l,o.H[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.H){const r=Object.entries(null!=(o=e.H)?o:{});if(r.map((([t,[o]])=>{if(31&o||2&l&&32&o){const{get:s,set:r}=Object.getOwnPropertyDescriptor(i,t)||{};s&&(e.H[t][0]|=2048),r&&(e.H[t][0]|=4096),(1&l||!s)&&Object.defineProperty(i,t,{get(){{if(!(2048&e.H[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,N(s,o)),void ut(this,t,s=32&o?this[t]:i.$hostElement$[t],e)}{if(!(1&l&&4096&e.H[t][0]))return ut(this,t,s,e),void(1&l&&!i.t&&i.N.then((()=>{4096&e.H[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]=N(s,o),ut(this,t,i.t[t],e)};i.t?n():i.N.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.R)?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.R)?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=[],p=l.exclude||[],m=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],H:l[2],T:l[3]};4&o.l&&(g=!0),o.H=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.N=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.N)&&e.N.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.H&&Object.entries(l.H).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)){e.l|=32;{const o=((t,e)=>{const n=t.$.replace(/-/g,"_"),l=t.D;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.F}" 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()}if(l&&l.style){let t;"string"==typeof l.style&&(t=l.style);const e=F(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.N)&&e.N.then((()=>{}))}D.has(t)&&D.delete(t),t.shadowRoot&&D.has(t.shadowRoot)&&D.delete(t.shadowRoot)})(this))),f.raf((()=>{var t;const e=n(this);(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).N}};o.D=t[0],p.includes(c)||m.get(c)||(h.push(c),m.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,R as c,x as h,h as p,l as r,ht 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-a0d90e1c.js');
|
|
6
6
|
|
|
7
7
|
const DEFAULT_LANGUAGE = 'en';
|
|
8
8
|
const SUPPORTED_LANGUAGES = ['pt-br', 'en', 'es-mx', 'hu', 'hr'];
|
|
@@ -35,9 +35,17 @@ 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
|
+
*/
|
|
38
41
|
this.language = 'en';
|
|
42
|
+
/**
|
|
43
|
+
* Translation via url
|
|
44
|
+
*/
|
|
39
45
|
this.translationUrl = '';
|
|
40
|
-
|
|
46
|
+
/**
|
|
47
|
+
* Default limit for per page, default: 10
|
|
48
|
+
*/
|
|
41
49
|
this.limit = 10;
|
|
42
50
|
this.pageLimits = [10, 25, 50];
|
|
43
51
|
}
|
|
@@ -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-a0d90e1c.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.25.1 | 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,19 +21,23 @@ 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, 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 };
|
|
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, modernPropertyDecls: 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.25.1 | 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
|
|
34
36
|
var hostRefs = /* @__PURE__ */ new WeakMap();
|
|
35
37
|
var getHostRef = (ref) => hostRefs.get(ref);
|
|
36
|
-
var registerInstance = (lazyInstance, hostRef) =>
|
|
38
|
+
var registerInstance = (lazyInstance, hostRef) => {
|
|
39
|
+
hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
40
|
+
};
|
|
37
41
|
var registerHost = (hostElement, cmpMeta) => {
|
|
38
42
|
const hostRef = {
|
|
39
43
|
$flags$: 0,
|
|
@@ -46,7 +50,8 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
|
46
50
|
hostElement["s-p"] = [];
|
|
47
51
|
hostElement["s-rc"] = [];
|
|
48
52
|
}
|
|
49
|
-
|
|
53
|
+
const ref = hostRefs.set(hostElement, hostRef);
|
|
54
|
+
return ref;
|
|
50
55
|
};
|
|
51
56
|
var isMemberInElement = (elm, memberName) => memberName in elm;
|
|
52
57
|
var consoleError = (e, el) => (0, console.error)(e, el);
|
|
@@ -83,16 +88,22 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
83
88
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
84
89
|
/* webpackMode: "lazy" */
|
|
85
90
|
`./${bundleId}.entry.js${""}`
|
|
86
|
-
)); }).then(
|
|
87
|
-
{
|
|
88
|
-
|
|
91
|
+
)); }).then(
|
|
92
|
+
(importedModule) => {
|
|
93
|
+
{
|
|
94
|
+
cmpModules.set(bundleId, importedModule);
|
|
95
|
+
}
|
|
96
|
+
return importedModule[exportName];
|
|
97
|
+
},
|
|
98
|
+
(e) => {
|
|
99
|
+
consoleError(e, hostRef.$hostElement$);
|
|
89
100
|
}
|
|
90
|
-
|
|
91
|
-
}, consoleError);
|
|
101
|
+
);
|
|
92
102
|
};
|
|
93
103
|
|
|
94
104
|
// src/client/client-style.ts
|
|
95
105
|
var styles = /* @__PURE__ */ new Map();
|
|
106
|
+
var HYDRATED_STYLE_ID = "sty-id";
|
|
96
107
|
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
97
108
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
98
109
|
var win = typeof window !== "undefined" ? window : {};
|
|
@@ -151,12 +162,6 @@ var flush = () => {
|
|
|
151
162
|
};
|
|
152
163
|
var nextTick = (cb) => promiseResolve().then(cb);
|
|
153
164
|
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;
|
|
160
165
|
var isComplexType = (o) => {
|
|
161
166
|
o = typeof o;
|
|
162
167
|
return o === "object" || o === "function";
|
|
@@ -357,7 +362,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
357
362
|
}
|
|
358
363
|
if (!appliedStyles.has(scopeId2)) {
|
|
359
364
|
{
|
|
360
|
-
styleElm = doc.createElement("style");
|
|
365
|
+
styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
|
|
361
366
|
styleElm.innerHTML = style;
|
|
362
367
|
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
363
368
|
if (nonce != null) {
|
|
@@ -367,7 +372,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
367
372
|
if (styleContainerNode.nodeName === "HEAD") {
|
|
368
373
|
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
369
374
|
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
370
|
-
styleContainerNode.insertBefore(
|
|
375
|
+
styleContainerNode.insertBefore(
|
|
376
|
+
styleElm,
|
|
377
|
+
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
378
|
+
);
|
|
371
379
|
} else if ("host" in styleContainerNode) {
|
|
372
380
|
if (supportsConstructableStylesheets) {
|
|
373
381
|
const stylesheet = new CSSStyleSheet();
|
|
@@ -412,16 +420,18 @@ var attachStyles = (hostRef) => {
|
|
|
412
420
|
endAttachStyles();
|
|
413
421
|
};
|
|
414
422
|
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
415
|
-
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
423
|
+
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
|
|
416
424
|
if (oldValue !== newValue) {
|
|
417
425
|
let isProp = isMemberInElement(elm, memberName);
|
|
418
426
|
let ln = memberName.toLowerCase();
|
|
419
427
|
if (memberName === "class") {
|
|
420
428
|
const classList = elm.classList;
|
|
421
429
|
const oldClasses = parseClassList(oldValue);
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
430
|
+
let newClasses = parseClassList(newValue);
|
|
431
|
+
{
|
|
432
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
433
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
434
|
+
}
|
|
425
435
|
} else if (memberName === "key") ; else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
|
|
426
436
|
if (memberName[2] === "-") {
|
|
427
437
|
memberName = memberName.slice(3);
|
|
@@ -455,7 +465,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
455
465
|
elm.setAttribute(memberName, n);
|
|
456
466
|
}
|
|
457
467
|
}
|
|
458
|
-
} else {
|
|
468
|
+
} else if (elm[memberName] !== newValue) {
|
|
459
469
|
elm[memberName] = newValue;
|
|
460
470
|
}
|
|
461
471
|
} catch (e) {
|
|
@@ -477,24 +487,44 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
477
487
|
}
|
|
478
488
|
};
|
|
479
489
|
var parseClassListRegex = /\s/;
|
|
480
|
-
var parseClassList = (value) =>
|
|
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
|
+
};
|
|
481
499
|
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
482
500
|
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
483
501
|
|
|
484
502
|
// src/runtime/vdom/update-element.ts
|
|
485
|
-
var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
|
503
|
+
var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
|
|
486
504
|
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
487
|
-
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ ||
|
|
488
|
-
const newVnodeAttrs = newVnode.$attrs$ ||
|
|
505
|
+
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
|
|
506
|
+
const newVnodeAttrs = newVnode.$attrs$ || {};
|
|
489
507
|
{
|
|
490
508
|
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
491
509
|
if (!(memberName in newVnodeAttrs)) {
|
|
492
|
-
setAccessor(
|
|
510
|
+
setAccessor(
|
|
511
|
+
elm,
|
|
512
|
+
memberName,
|
|
513
|
+
oldVnodeAttrs[memberName],
|
|
514
|
+
void 0,
|
|
515
|
+
isSvgMode2,
|
|
516
|
+
newVnode.$flags$);
|
|
493
517
|
}
|
|
494
518
|
}
|
|
495
519
|
}
|
|
496
520
|
for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
|
497
|
-
setAccessor(
|
|
521
|
+
setAccessor(
|
|
522
|
+
elm,
|
|
523
|
+
memberName,
|
|
524
|
+
oldVnodeAttrs[memberName],
|
|
525
|
+
newVnodeAttrs[memberName],
|
|
526
|
+
isSvgMode2,
|
|
527
|
+
newVnode.$flags$);
|
|
498
528
|
}
|
|
499
529
|
};
|
|
500
530
|
function sortedAttrNames(attrNames) {
|
|
@@ -506,13 +536,10 @@ function sortedAttrNames(attrNames) {
|
|
|
506
536
|
attrNames
|
|
507
537
|
);
|
|
508
538
|
}
|
|
509
|
-
|
|
510
|
-
// src/runtime/vdom/vdom-render.ts
|
|
511
|
-
var scopeId;
|
|
512
539
|
var hostTagName;
|
|
513
540
|
var useNativeShadowDom = false;
|
|
514
541
|
var isSvgMode = false;
|
|
515
|
-
var createElm = (oldParentVNode, newParentVNode, childIndex
|
|
542
|
+
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
516
543
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
517
544
|
let i2 = 0;
|
|
518
545
|
let elm;
|
|
@@ -526,11 +553,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
526
553
|
{
|
|
527
554
|
updateElement(null, newVNode2, isSvgMode);
|
|
528
555
|
}
|
|
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
|
-
}
|
|
534
556
|
if (newVNode2.$children$) {
|
|
535
557
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
536
558
|
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
@@ -656,6 +678,9 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
|
656
678
|
if (!isInitialRender) {
|
|
657
679
|
return leftVNode.$key$ === rightVNode.$key$;
|
|
658
680
|
}
|
|
681
|
+
if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
|
|
682
|
+
leftVNode.$key$ = rightVNode.$key$;
|
|
683
|
+
}
|
|
659
684
|
return true;
|
|
660
685
|
}
|
|
661
686
|
return false;
|
|
@@ -689,8 +714,9 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
689
714
|
}
|
|
690
715
|
};
|
|
691
716
|
var insertBefore = (parent, newNode, reference) => {
|
|
692
|
-
|
|
693
|
-
|
|
717
|
+
{
|
|
718
|
+
return parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
719
|
+
}
|
|
694
720
|
};
|
|
695
721
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
696
722
|
const hostElm = hostRef.$hostElement$;
|
|
@@ -722,7 +748,14 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
722
748
|
// src/runtime/update-component.ts
|
|
723
749
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
724
750
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
725
|
-
ancestorComponent["s-p"].push(
|
|
751
|
+
const index = ancestorComponent["s-p"].push(
|
|
752
|
+
new Promise(
|
|
753
|
+
(r) => hostRef.$onRenderResolve$ = () => {
|
|
754
|
+
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
755
|
+
r();
|
|
756
|
+
}
|
|
757
|
+
)
|
|
758
|
+
);
|
|
726
759
|
}
|
|
727
760
|
};
|
|
728
761
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -749,7 +782,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
749
782
|
let maybePromise;
|
|
750
783
|
if (isInitialLoad) {
|
|
751
784
|
{
|
|
752
|
-
maybePromise = safeCall(instance, "componentWillLoad");
|
|
785
|
+
maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
|
|
753
786
|
}
|
|
754
787
|
}
|
|
755
788
|
endSchedule();
|
|
@@ -848,12 +881,12 @@ var appDidLoad = (who) => {
|
|
|
848
881
|
}
|
|
849
882
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
850
883
|
};
|
|
851
|
-
var safeCall = (instance, method, arg) => {
|
|
884
|
+
var safeCall = (instance, method, arg, elm) => {
|
|
852
885
|
if (instance && instance[method]) {
|
|
853
886
|
try {
|
|
854
887
|
return instance[method](arg);
|
|
855
888
|
} catch (e) {
|
|
856
|
-
consoleError(e);
|
|
889
|
+
consoleError(e, elm);
|
|
857
890
|
}
|
|
858
891
|
}
|
|
859
892
|
return void 0;
|
|
@@ -896,15 +929,68 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
896
929
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
897
930
|
members.map(([memberName, [memberFlags]]) => {
|
|
898
931
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
932
|
+
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
|
933
|
+
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
934
|
+
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
935
|
+
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
936
|
+
Object.defineProperty(prototype, memberName, {
|
|
937
|
+
get() {
|
|
938
|
+
{
|
|
939
|
+
if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
|
|
940
|
+
return getValue(this, memberName);
|
|
941
|
+
}
|
|
942
|
+
const ref = getHostRef(this);
|
|
943
|
+
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
944
|
+
if (!instance) return;
|
|
945
|
+
return instance[memberName];
|
|
946
|
+
}
|
|
947
|
+
},
|
|
948
|
+
configurable: true,
|
|
949
|
+
enumerable: true
|
|
950
|
+
});
|
|
951
|
+
}
|
|
899
952
|
Object.defineProperty(prototype, memberName, {
|
|
900
|
-
get() {
|
|
901
|
-
return getValue(this, memberName);
|
|
902
|
-
},
|
|
903
953
|
set(newValue) {
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
954
|
+
const ref = getHostRef(this);
|
|
955
|
+
if (origSetter) {
|
|
956
|
+
const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
957
|
+
if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
|
|
958
|
+
newValue = ref.$instanceValues$.get(memberName);
|
|
959
|
+
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
960
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
961
|
+
}
|
|
962
|
+
origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
|
|
963
|
+
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
964
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
965
|
+
return;
|
|
966
|
+
}
|
|
967
|
+
{
|
|
968
|
+
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
969
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
970
|
+
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
971
|
+
ref.$onReadyPromise$.then(() => {
|
|
972
|
+
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
973
|
+
ref.$lazyInstance$[memberName] = newValue;
|
|
974
|
+
}
|
|
975
|
+
});
|
|
976
|
+
}
|
|
977
|
+
return;
|
|
978
|
+
}
|
|
979
|
+
const setterSetVal = () => {
|
|
980
|
+
const currentValue = ref.$lazyInstance$[memberName];
|
|
981
|
+
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
982
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
983
|
+
}
|
|
984
|
+
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
|
|
985
|
+
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
986
|
+
};
|
|
987
|
+
if (ref.$lazyInstance$) {
|
|
988
|
+
setterSetVal();
|
|
989
|
+
} else {
|
|
990
|
+
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
991
|
+
}
|
|
992
|
+
}
|
|
993
|
+
}
|
|
908
994
|
});
|
|
909
995
|
}
|
|
910
996
|
});
|
|
@@ -914,7 +1000,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
914
1000
|
plt.jmp(() => {
|
|
915
1001
|
var _a2;
|
|
916
1002
|
const propName = attrNameToPropName.get(attrName);
|
|
917
|
-
if (this.hasOwnProperty(propName)) {
|
|
1003
|
+
if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
|
|
918
1004
|
newValue = this[propName];
|
|
919
1005
|
delete this[propName];
|
|
920
1006
|
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
|
|
@@ -934,7 +1020,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
934
1020
|
}
|
|
935
1021
|
return;
|
|
936
1022
|
}
|
|
937
|
-
|
|
1023
|
+
const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
|
|
1024
|
+
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1025
|
+
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1026
|
+
this[propName] = newValue;
|
|
1027
|
+
}
|
|
938
1028
|
});
|
|
939
1029
|
};
|
|
940
1030
|
Cstr.observedAttributes = Array.from(
|
|
@@ -961,9 +1051,8 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
961
1051
|
let Cstr;
|
|
962
1052
|
if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
|
|
963
1053
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
const CstrImport = loadModule(cmpMeta);
|
|
1054
|
+
{
|
|
1055
|
+
const CstrImport = loadModule(cmpMeta, hostRef);
|
|
967
1056
|
if (CstrImport && "then" in CstrImport) {
|
|
968
1057
|
const endLoad = uniqueTime();
|
|
969
1058
|
Cstr = await CstrImport;
|
|
@@ -985,16 +1074,12 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
985
1074
|
try {
|
|
986
1075
|
new Cstr(hostRef);
|
|
987
1076
|
} catch (e) {
|
|
988
|
-
consoleError(e);
|
|
1077
|
+
consoleError(e, elm);
|
|
989
1078
|
}
|
|
990
1079
|
{
|
|
991
1080
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
992
1081
|
}
|
|
993
1082
|
endNewInstance();
|
|
994
|
-
} else {
|
|
995
|
-
Cstr = elm.constructor;
|
|
996
|
-
const cmpTag = elm.localName;
|
|
997
|
-
customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
|
|
998
1083
|
}
|
|
999
1084
|
if (Cstr && Cstr.style) {
|
|
1000
1085
|
let style;
|
|
@@ -1017,7 +1102,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1017
1102
|
schedule();
|
|
1018
1103
|
}
|
|
1019
1104
|
};
|
|
1020
|
-
var fireConnectedCallback = (instance) => {
|
|
1105
|
+
var fireConnectedCallback = (instance, elm) => {
|
|
1021
1106
|
};
|
|
1022
1107
|
|
|
1023
1108
|
// src/runtime/connected-callback.ts
|
|
@@ -1057,7 +1142,7 @@ var connectedCallback = (elm) => {
|
|
|
1057
1142
|
endConnected();
|
|
1058
1143
|
}
|
|
1059
1144
|
};
|
|
1060
|
-
var disconnectInstance = (instance) => {
|
|
1145
|
+
var disconnectInstance = (instance, elm) => {
|
|
1061
1146
|
};
|
|
1062
1147
|
var disconnectedCallback = async (elm) => {
|
|
1063
1148
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
@@ -1066,6 +1151,12 @@ var disconnectedCallback = async (elm) => {
|
|
|
1066
1151
|
hostRef.$onReadyPromise$.then(() => disconnectInstance());
|
|
1067
1152
|
}
|
|
1068
1153
|
}
|
|
1154
|
+
if (rootAppliedStyles.has(elm)) {
|
|
1155
|
+
rootAppliedStyles.delete(elm);
|
|
1156
|
+
}
|
|
1157
|
+
if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
|
|
1158
|
+
rootAppliedStyles.delete(elm.shadowRoot);
|
|
1159
|
+
}
|
|
1069
1160
|
};
|
|
1070
1161
|
|
|
1071
1162
|
// src/runtime/bootstrap-lazy.ts
|
|
@@ -1127,6 +1218,13 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1127
1218
|
}
|
|
1128
1219
|
disconnectedCallback() {
|
|
1129
1220
|
plt.jmp(() => disconnectedCallback(this));
|
|
1221
|
+
plt.raf(() => {
|
|
1222
|
+
var _a3;
|
|
1223
|
+
const hostRef = getHostRef(this);
|
|
1224
|
+
if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
|
|
1225
|
+
delete hostRef.$vnode$.$elm$;
|
|
1226
|
+
}
|
|
1227
|
+
});
|
|
1130
1228
|
}
|
|
1131
1229
|
componentOnReady() {
|
|
1132
1230
|
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-a0d90e1c.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
const defineCustomElements = async (win, options) => {
|
|
@@ -2,9 +2,17 @@ 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
|
+
*/
|
|
5
8
|
this.language = 'en';
|
|
9
|
+
/**
|
|
10
|
+
* Translation via url
|
|
11
|
+
*/
|
|
6
12
|
this.translationUrl = '';
|
|
7
|
-
|
|
13
|
+
/**
|
|
14
|
+
* Default limit for per page, default: 10
|
|
15
|
+
*/
|
|
8
16
|
this.limit = 10;
|
|
9
17
|
this.pageLimits = [10, 25, 50];
|
|
10
18
|
}
|
|
@@ -69,6 +77,8 @@ export class BonusPaginationLimits {
|
|
|
69
77
|
"tags": [],
|
|
70
78
|
"text": "Language of the widget"
|
|
71
79
|
},
|
|
80
|
+
"getter": false,
|
|
81
|
+
"setter": false,
|
|
72
82
|
"attribute": "language",
|
|
73
83
|
"reflect": true,
|
|
74
84
|
"defaultValue": "'en'"
|
|
@@ -87,6 +97,8 @@ export class BonusPaginationLimits {
|
|
|
87
97
|
"tags": [],
|
|
88
98
|
"text": "Translation via url"
|
|
89
99
|
},
|
|
100
|
+
"getter": false,
|
|
101
|
+
"setter": false,
|
|
90
102
|
"attribute": "translation-url",
|
|
91
103
|
"reflect": true,
|
|
92
104
|
"defaultValue": "''"
|
|
@@ -105,6 +117,8 @@ export class BonusPaginationLimits {
|
|
|
105
117
|
"tags": [],
|
|
106
118
|
"text": "Limits list string split with coma,default: `10,25,50`;"
|
|
107
119
|
},
|
|
120
|
+
"getter": false,
|
|
121
|
+
"setter": false,
|
|
108
122
|
"attribute": "page-limit-options",
|
|
109
123
|
"reflect": true
|
|
110
124
|
},
|
|
@@ -122,6 +136,8 @@ export class BonusPaginationLimits {
|
|
|
122
136
|
"tags": [],
|
|
123
137
|
"text": "Default limit for per page, default: 10"
|
|
124
138
|
},
|
|
139
|
+
"getter": false,
|
|
140
|
+
"setter": false,
|
|
125
141
|
"attribute": "limit",
|
|
126
142
|
"reflect": true,
|
|
127
143
|
"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-74647e81.js';
|
|
2
2
|
|
|
3
3
|
const DEFAULT_LANGUAGE = 'en';
|
|
4
4
|
const SUPPORTED_LANGUAGES = ['pt-br', 'en', 'es-mx', 'hu', 'hr'];
|
|
@@ -31,9 +31,17 @@ 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
|
+
*/
|
|
34
37
|
this.language = 'en';
|
|
38
|
+
/**
|
|
39
|
+
* Translation via url
|
|
40
|
+
*/
|
|
35
41
|
this.translationUrl = '';
|
|
36
|
-
|
|
42
|
+
/**
|
|
43
|
+
* Default limit for per page, default: 10
|
|
44
|
+
*/
|
|
37
45
|
this.limit = 10;
|
|
38
46
|
this.pageLimits = [10, 25, 50];
|
|
39
47
|
}
|
|
@@ -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-74647e81.js';
|
|
2
|
+
export { s as setNonce } from './index-74647e81.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.25.1 | MIT Licensed | https://stenciljs.com
|
|
7
7
|
*/
|
|
8
8
|
var patchBrowser = () => {
|
|
9
9
|
const importMeta = import.meta.url;
|
|
@@ -1,17 +1,21 @@
|
|
|
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, 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 };
|
|
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, modernPropertyDecls: 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.25.1 | 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
|
|
12
14
|
var hostRefs = /* @__PURE__ */ new WeakMap();
|
|
13
15
|
var getHostRef = (ref) => hostRefs.get(ref);
|
|
14
|
-
var registerInstance = (lazyInstance, hostRef) =>
|
|
16
|
+
var registerInstance = (lazyInstance, hostRef) => {
|
|
17
|
+
hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
18
|
+
};
|
|
15
19
|
var registerHost = (hostElement, cmpMeta) => {
|
|
16
20
|
const hostRef = {
|
|
17
21
|
$flags$: 0,
|
|
@@ -24,7 +28,8 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
|
24
28
|
hostElement["s-p"] = [];
|
|
25
29
|
hostElement["s-rc"] = [];
|
|
26
30
|
}
|
|
27
|
-
|
|
31
|
+
const ref = hostRefs.set(hostElement, hostRef);
|
|
32
|
+
return ref;
|
|
28
33
|
};
|
|
29
34
|
var isMemberInElement = (elm, memberName) => memberName in elm;
|
|
30
35
|
var consoleError = (e, el) => (0, console.error)(e, el);
|
|
@@ -61,16 +66,22 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
61
66
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
62
67
|
/* webpackMode: "lazy" */
|
|
63
68
|
`./${bundleId}.entry.js${""}`
|
|
64
|
-
).then(
|
|
65
|
-
{
|
|
66
|
-
|
|
69
|
+
).then(
|
|
70
|
+
(importedModule) => {
|
|
71
|
+
{
|
|
72
|
+
cmpModules.set(bundleId, importedModule);
|
|
73
|
+
}
|
|
74
|
+
return importedModule[exportName];
|
|
75
|
+
},
|
|
76
|
+
(e) => {
|
|
77
|
+
consoleError(e, hostRef.$hostElement$);
|
|
67
78
|
}
|
|
68
|
-
|
|
69
|
-
}, consoleError);
|
|
79
|
+
);
|
|
70
80
|
};
|
|
71
81
|
|
|
72
82
|
// src/client/client-style.ts
|
|
73
83
|
var styles = /* @__PURE__ */ new Map();
|
|
84
|
+
var HYDRATED_STYLE_ID = "sty-id";
|
|
74
85
|
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
75
86
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
76
87
|
var win = typeof window !== "undefined" ? window : {};
|
|
@@ -129,12 +140,6 @@ var flush = () => {
|
|
|
129
140
|
};
|
|
130
141
|
var nextTick = (cb) => promiseResolve().then(cb);
|
|
131
142
|
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;
|
|
138
143
|
var isComplexType = (o) => {
|
|
139
144
|
o = typeof o;
|
|
140
145
|
return o === "object" || o === "function";
|
|
@@ -335,7 +340,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
335
340
|
}
|
|
336
341
|
if (!appliedStyles.has(scopeId2)) {
|
|
337
342
|
{
|
|
338
|
-
styleElm = doc.createElement("style");
|
|
343
|
+
styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
|
|
339
344
|
styleElm.innerHTML = style;
|
|
340
345
|
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
341
346
|
if (nonce != null) {
|
|
@@ -345,7 +350,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
345
350
|
if (styleContainerNode.nodeName === "HEAD") {
|
|
346
351
|
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
347
352
|
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
348
|
-
styleContainerNode.insertBefore(
|
|
353
|
+
styleContainerNode.insertBefore(
|
|
354
|
+
styleElm,
|
|
355
|
+
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
356
|
+
);
|
|
349
357
|
} else if ("host" in styleContainerNode) {
|
|
350
358
|
if (supportsConstructableStylesheets) {
|
|
351
359
|
const stylesheet = new CSSStyleSheet();
|
|
@@ -390,16 +398,18 @@ var attachStyles = (hostRef) => {
|
|
|
390
398
|
endAttachStyles();
|
|
391
399
|
};
|
|
392
400
|
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
393
|
-
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
401
|
+
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
|
|
394
402
|
if (oldValue !== newValue) {
|
|
395
403
|
let isProp = isMemberInElement(elm, memberName);
|
|
396
404
|
let ln = memberName.toLowerCase();
|
|
397
405
|
if (memberName === "class") {
|
|
398
406
|
const classList = elm.classList;
|
|
399
407
|
const oldClasses = parseClassList(oldValue);
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
408
|
+
let newClasses = parseClassList(newValue);
|
|
409
|
+
{
|
|
410
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
411
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
412
|
+
}
|
|
403
413
|
} else if (memberName === "key") ; else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
|
|
404
414
|
if (memberName[2] === "-") {
|
|
405
415
|
memberName = memberName.slice(3);
|
|
@@ -433,7 +443,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
433
443
|
elm.setAttribute(memberName, n);
|
|
434
444
|
}
|
|
435
445
|
}
|
|
436
|
-
} else {
|
|
446
|
+
} else if (elm[memberName] !== newValue) {
|
|
437
447
|
elm[memberName] = newValue;
|
|
438
448
|
}
|
|
439
449
|
} catch (e) {
|
|
@@ -455,24 +465,44 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
455
465
|
}
|
|
456
466
|
};
|
|
457
467
|
var parseClassListRegex = /\s/;
|
|
458
|
-
var parseClassList = (value) =>
|
|
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
|
+
};
|
|
459
477
|
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
460
478
|
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
461
479
|
|
|
462
480
|
// src/runtime/vdom/update-element.ts
|
|
463
|
-
var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
|
481
|
+
var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
|
|
464
482
|
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
465
|
-
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ ||
|
|
466
|
-
const newVnodeAttrs = newVnode.$attrs$ ||
|
|
483
|
+
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
|
|
484
|
+
const newVnodeAttrs = newVnode.$attrs$ || {};
|
|
467
485
|
{
|
|
468
486
|
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
469
487
|
if (!(memberName in newVnodeAttrs)) {
|
|
470
|
-
setAccessor(
|
|
488
|
+
setAccessor(
|
|
489
|
+
elm,
|
|
490
|
+
memberName,
|
|
491
|
+
oldVnodeAttrs[memberName],
|
|
492
|
+
void 0,
|
|
493
|
+
isSvgMode2,
|
|
494
|
+
newVnode.$flags$);
|
|
471
495
|
}
|
|
472
496
|
}
|
|
473
497
|
}
|
|
474
498
|
for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
|
475
|
-
setAccessor(
|
|
499
|
+
setAccessor(
|
|
500
|
+
elm,
|
|
501
|
+
memberName,
|
|
502
|
+
oldVnodeAttrs[memberName],
|
|
503
|
+
newVnodeAttrs[memberName],
|
|
504
|
+
isSvgMode2,
|
|
505
|
+
newVnode.$flags$);
|
|
476
506
|
}
|
|
477
507
|
};
|
|
478
508
|
function sortedAttrNames(attrNames) {
|
|
@@ -484,13 +514,10 @@ function sortedAttrNames(attrNames) {
|
|
|
484
514
|
attrNames
|
|
485
515
|
);
|
|
486
516
|
}
|
|
487
|
-
|
|
488
|
-
// src/runtime/vdom/vdom-render.ts
|
|
489
|
-
var scopeId;
|
|
490
517
|
var hostTagName;
|
|
491
518
|
var useNativeShadowDom = false;
|
|
492
519
|
var isSvgMode = false;
|
|
493
|
-
var createElm = (oldParentVNode, newParentVNode, childIndex
|
|
520
|
+
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
494
521
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
495
522
|
let i2 = 0;
|
|
496
523
|
let elm;
|
|
@@ -504,11 +531,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
504
531
|
{
|
|
505
532
|
updateElement(null, newVNode2, isSvgMode);
|
|
506
533
|
}
|
|
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
|
-
}
|
|
512
534
|
if (newVNode2.$children$) {
|
|
513
535
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
514
536
|
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
@@ -634,6 +656,9 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
|
634
656
|
if (!isInitialRender) {
|
|
635
657
|
return leftVNode.$key$ === rightVNode.$key$;
|
|
636
658
|
}
|
|
659
|
+
if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
|
|
660
|
+
leftVNode.$key$ = rightVNode.$key$;
|
|
661
|
+
}
|
|
637
662
|
return true;
|
|
638
663
|
}
|
|
639
664
|
return false;
|
|
@@ -667,8 +692,9 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
667
692
|
}
|
|
668
693
|
};
|
|
669
694
|
var insertBefore = (parent, newNode, reference) => {
|
|
670
|
-
|
|
671
|
-
|
|
695
|
+
{
|
|
696
|
+
return parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
697
|
+
}
|
|
672
698
|
};
|
|
673
699
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
674
700
|
const hostElm = hostRef.$hostElement$;
|
|
@@ -700,7 +726,14 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
700
726
|
// src/runtime/update-component.ts
|
|
701
727
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
702
728
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
703
|
-
ancestorComponent["s-p"].push(
|
|
729
|
+
const index = ancestorComponent["s-p"].push(
|
|
730
|
+
new Promise(
|
|
731
|
+
(r) => hostRef.$onRenderResolve$ = () => {
|
|
732
|
+
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
733
|
+
r();
|
|
734
|
+
}
|
|
735
|
+
)
|
|
736
|
+
);
|
|
704
737
|
}
|
|
705
738
|
};
|
|
706
739
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -727,7 +760,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
727
760
|
let maybePromise;
|
|
728
761
|
if (isInitialLoad) {
|
|
729
762
|
{
|
|
730
|
-
maybePromise = safeCall(instance, "componentWillLoad");
|
|
763
|
+
maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
|
|
731
764
|
}
|
|
732
765
|
}
|
|
733
766
|
endSchedule();
|
|
@@ -826,12 +859,12 @@ var appDidLoad = (who) => {
|
|
|
826
859
|
}
|
|
827
860
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
828
861
|
};
|
|
829
|
-
var safeCall = (instance, method, arg) => {
|
|
862
|
+
var safeCall = (instance, method, arg, elm) => {
|
|
830
863
|
if (instance && instance[method]) {
|
|
831
864
|
try {
|
|
832
865
|
return instance[method](arg);
|
|
833
866
|
} catch (e) {
|
|
834
|
-
consoleError(e);
|
|
867
|
+
consoleError(e, elm);
|
|
835
868
|
}
|
|
836
869
|
}
|
|
837
870
|
return void 0;
|
|
@@ -874,15 +907,68 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
874
907
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
875
908
|
members.map(([memberName, [memberFlags]]) => {
|
|
876
909
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
910
|
+
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
|
911
|
+
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
912
|
+
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
913
|
+
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
914
|
+
Object.defineProperty(prototype, memberName, {
|
|
915
|
+
get() {
|
|
916
|
+
{
|
|
917
|
+
if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
|
|
918
|
+
return getValue(this, memberName);
|
|
919
|
+
}
|
|
920
|
+
const ref = getHostRef(this);
|
|
921
|
+
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
922
|
+
if (!instance) return;
|
|
923
|
+
return instance[memberName];
|
|
924
|
+
}
|
|
925
|
+
},
|
|
926
|
+
configurable: true,
|
|
927
|
+
enumerable: true
|
|
928
|
+
});
|
|
929
|
+
}
|
|
877
930
|
Object.defineProperty(prototype, memberName, {
|
|
878
|
-
get() {
|
|
879
|
-
return getValue(this, memberName);
|
|
880
|
-
},
|
|
881
931
|
set(newValue) {
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
932
|
+
const ref = getHostRef(this);
|
|
933
|
+
if (origSetter) {
|
|
934
|
+
const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
935
|
+
if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
|
|
936
|
+
newValue = ref.$instanceValues$.get(memberName);
|
|
937
|
+
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
938
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
939
|
+
}
|
|
940
|
+
origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
|
|
941
|
+
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
942
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
943
|
+
return;
|
|
944
|
+
}
|
|
945
|
+
{
|
|
946
|
+
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
947
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
948
|
+
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
949
|
+
ref.$onReadyPromise$.then(() => {
|
|
950
|
+
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
951
|
+
ref.$lazyInstance$[memberName] = newValue;
|
|
952
|
+
}
|
|
953
|
+
});
|
|
954
|
+
}
|
|
955
|
+
return;
|
|
956
|
+
}
|
|
957
|
+
const setterSetVal = () => {
|
|
958
|
+
const currentValue = ref.$lazyInstance$[memberName];
|
|
959
|
+
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
960
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
961
|
+
}
|
|
962
|
+
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
|
|
963
|
+
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
964
|
+
};
|
|
965
|
+
if (ref.$lazyInstance$) {
|
|
966
|
+
setterSetVal();
|
|
967
|
+
} else {
|
|
968
|
+
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
969
|
+
}
|
|
970
|
+
}
|
|
971
|
+
}
|
|
886
972
|
});
|
|
887
973
|
}
|
|
888
974
|
});
|
|
@@ -892,7 +978,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
892
978
|
plt.jmp(() => {
|
|
893
979
|
var _a2;
|
|
894
980
|
const propName = attrNameToPropName.get(attrName);
|
|
895
|
-
if (this.hasOwnProperty(propName)) {
|
|
981
|
+
if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
|
|
896
982
|
newValue = this[propName];
|
|
897
983
|
delete this[propName];
|
|
898
984
|
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
|
|
@@ -912,7 +998,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
912
998
|
}
|
|
913
999
|
return;
|
|
914
1000
|
}
|
|
915
|
-
|
|
1001
|
+
const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
|
|
1002
|
+
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1003
|
+
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1004
|
+
this[propName] = newValue;
|
|
1005
|
+
}
|
|
916
1006
|
});
|
|
917
1007
|
};
|
|
918
1008
|
Cstr.observedAttributes = Array.from(
|
|
@@ -939,9 +1029,8 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
939
1029
|
let Cstr;
|
|
940
1030
|
if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
|
|
941
1031
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
const CstrImport = loadModule(cmpMeta);
|
|
1032
|
+
{
|
|
1033
|
+
const CstrImport = loadModule(cmpMeta, hostRef);
|
|
945
1034
|
if (CstrImport && "then" in CstrImport) {
|
|
946
1035
|
const endLoad = uniqueTime();
|
|
947
1036
|
Cstr = await CstrImport;
|
|
@@ -963,16 +1052,12 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
963
1052
|
try {
|
|
964
1053
|
new Cstr(hostRef);
|
|
965
1054
|
} catch (e) {
|
|
966
|
-
consoleError(e);
|
|
1055
|
+
consoleError(e, elm);
|
|
967
1056
|
}
|
|
968
1057
|
{
|
|
969
1058
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
970
1059
|
}
|
|
971
1060
|
endNewInstance();
|
|
972
|
-
} else {
|
|
973
|
-
Cstr = elm.constructor;
|
|
974
|
-
const cmpTag = elm.localName;
|
|
975
|
-
customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
|
|
976
1061
|
}
|
|
977
1062
|
if (Cstr && Cstr.style) {
|
|
978
1063
|
let style;
|
|
@@ -995,7 +1080,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
995
1080
|
schedule();
|
|
996
1081
|
}
|
|
997
1082
|
};
|
|
998
|
-
var fireConnectedCallback = (instance) => {
|
|
1083
|
+
var fireConnectedCallback = (instance, elm) => {
|
|
999
1084
|
};
|
|
1000
1085
|
|
|
1001
1086
|
// src/runtime/connected-callback.ts
|
|
@@ -1035,7 +1120,7 @@ var connectedCallback = (elm) => {
|
|
|
1035
1120
|
endConnected();
|
|
1036
1121
|
}
|
|
1037
1122
|
};
|
|
1038
|
-
var disconnectInstance = (instance) => {
|
|
1123
|
+
var disconnectInstance = (instance, elm) => {
|
|
1039
1124
|
};
|
|
1040
1125
|
var disconnectedCallback = async (elm) => {
|
|
1041
1126
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
@@ -1044,6 +1129,12 @@ var disconnectedCallback = async (elm) => {
|
|
|
1044
1129
|
hostRef.$onReadyPromise$.then(() => disconnectInstance());
|
|
1045
1130
|
}
|
|
1046
1131
|
}
|
|
1132
|
+
if (rootAppliedStyles.has(elm)) {
|
|
1133
|
+
rootAppliedStyles.delete(elm);
|
|
1134
|
+
}
|
|
1135
|
+
if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
|
|
1136
|
+
rootAppliedStyles.delete(elm.shadowRoot);
|
|
1137
|
+
}
|
|
1047
1138
|
};
|
|
1048
1139
|
|
|
1049
1140
|
// src/runtime/bootstrap-lazy.ts
|
|
@@ -1105,6 +1196,13 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1105
1196
|
}
|
|
1106
1197
|
disconnectedCallback() {
|
|
1107
1198
|
plt.jmp(() => disconnectedCallback(this));
|
|
1199
|
+
plt.raf(() => {
|
|
1200
|
+
var _a3;
|
|
1201
|
+
const hostRef = getHostRef(this);
|
|
1202
|
+
if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
|
|
1203
|
+
delete hostRef.$vnode$.$elm$;
|
|
1204
|
+
}
|
|
1205
|
+
});
|
|
1108
1206
|
}
|
|
1109
1207
|
componentOnReady() {
|
|
1110
1208
|
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-74647e81.js';
|
|
2
|
+
export { s as setNonce } from './index-74647e81.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 +0,0 @@
|
|
|
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}
|
|
@@ -1,2 +0,0 @@
|
|
|
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}
|