quasar-factory-lib 0.0.43 โ†’ 0.0.44

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.
@@ -1,6 +1,5 @@
1
1
  declare const filterMethod: {
2
2
  filter(self: {
3
- filterTerms: string;
4
3
  filteredRows: object[] | [];
5
4
  }, rows: string | [], terms: {
6
5
  search: string;
@@ -13071,7 +13071,7 @@ const Yp = {
13071
13071
  }
13072
13072
  }, qy = {
13073
13073
  filter(e, t, n) {
13074
- if (e.store.filterValue !== "") {
13074
+ if (n.search !== "") {
13075
13075
  const o = [], r = n.search ? n.search.toLowerCase() : "";
13076
13076
  for (let l = 0; l < e.rows.length; l++)
13077
13077
  this.containsSearchTermInRow(e.rows[l], r) && o.push(e.rows[l]);
@@ -4,7 +4,7 @@
4
4
  * @license MIT
5
5
  */const R_=process.env.NODE_ENV!=="production"?Symbol("pinia"):Symbol();var sn;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(sn||(sn={}));const yl=typeof window<"u",Hu=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof global=="object"&&global.global===global?global:typeof globalThis=="object"?globalThis:{HTMLElement:null};function M_(e,{autoBom:t=!1}={}){return t&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\uFEFF",e],{type:e.type}):e}function El(e,t,n){const o=new XMLHttpRequest;o.open("GET",e),o.responseType="blob",o.onload=function(){Ku(o.response,t,n)},o.onerror=function(){console.error("could not download file")},o.send()}function zu(e){const t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function Wo(e){try{e.dispatchEvent(new MouseEvent("click"))}catch{const n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(n)}}const Yo=typeof navigator=="object"?navigator:{userAgent:""},ju=/Macintosh/.test(Yo.userAgent)&&/AppleWebKit/.test(Yo.userAgent)&&!/Safari/.test(Yo.userAgent),Ku=yl?typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype&&!ju?B_:"msSaveOrOpenBlob"in Yo?F_:q_:()=>{};function B_(e,t="download",n){const o=document.createElement("a");o.download=t,o.rel="noopener",typeof e=="string"?(o.href=e,o.origin!==location.origin?zu(o.href)?El(e,t,n):(o.target="_blank",Wo(o)):Wo(o)):(o.href=URL.createObjectURL(e),setTimeout(function(){URL.revokeObjectURL(o.href)},4e4),setTimeout(function(){Wo(o)},0))}function F_(e,t="download",n){if(typeof e=="string")if(zu(e))El(e,t,n);else{const o=document.createElement("a");o.href=e,o.target="_blank",setTimeout(function(){Wo(o)})}else navigator.msSaveOrOpenBlob(M_(e,n),t)}function q_(e,t,n,o){if(o=o||open("","_blank"),o&&(o.document.title=o.document.body.innerText="downloading..."),typeof e=="string")return El(e,t,n);const r=e.type==="application/octet-stream",a=/constructor/i.test(String(Hu.HTMLElement))||"safari"in Hu,i=/CriOS\/[\d]+/.test(navigator.userAgent);if((i||r&&a||ju)&&typeof FileReader<"u"){const s=new FileReader;s.onloadend=function(){let u=s.result;if(typeof u!="string")throw o=null,new Error("Wrong reader.result type");u=i?u:u.replace(/^data:[^;]*;/,"data:attachment/file;"),o?o.location.href=u:location.assign(u),o=null},s.readAsDataURL(e)}else{const s=URL.createObjectURL(e);o?o.location.assign(s):location.href=s,o=null,setTimeout(function(){URL.revokeObjectURL(s)},4e4)}}function Ge(e,t){const n="๐Ÿ "+e;typeof __VUE_DEVTOOLS_TOAST__=="function"?__VUE_DEVTOOLS_TOAST__(n,t):t==="error"?console.error(n):t==="warn"?console.warn(n):console.log(n)}function Sl(e){return"_a"in e&&"install"in e}function Wu(){if(!("clipboard"in navigator))return Ge("Your browser doesn't support the Clipboard API","error"),!0}function Yu(e){return e instanceof Error&&e.message.toLowerCase().includes("document is not focused")?(Ge('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.',"warn"),!0):!1}async function $_(e){if(!Wu())try{await navigator.clipboard.writeText(JSON.stringify(e.state.value)),Ge("Global state copied to clipboard.")}catch(t){if(Yu(t))return;Ge("Failed to serialize the state. Check the console for more details.","error"),console.error(t)}}async function U_(e){if(!Wu())try{Gu(e,JSON.parse(await navigator.clipboard.readText())),Ge("Global state pasted from clipboard.")}catch(t){if(Yu(t))return;Ge("Failed to deserialize the state from clipboard. Check the console for more details.","error"),console.error(t)}}async function H_(e){try{Ku(new Blob([JSON.stringify(e.state.value)],{type:"text/plain;charset=utf-8"}),"pinia-state.json")}catch(t){Ge("Failed to export the state as JSON. Check the console for more details.","error"),console.error(t)}}let Mt;function z_(){Mt||(Mt=document.createElement("input"),Mt.type="file",Mt.accept=".json");function e(){return new Promise((t,n)=>{Mt.onchange=async()=>{const o=Mt.files;if(!o)return t(null);const r=o.item(0);return t(r?{text:await r.text(),file:r}:null)},Mt.oncancel=()=>t(null),Mt.onerror=n,Mt.click()})}return e}async function j_(e){try{const n=await z_()();if(!n)return;const{text:o,file:r}=n;Gu(e,JSON.parse(o)),Ge(`Global state imported from "${r.name}".`)}catch(t){Ge("Failed to import the state from JSON. Check the console for more details.","error"),console.error(t)}}function Gu(e,t){for(const n in t){const o=e.state.value[n];o?Object.assign(o,t[n]):e.state.value[n]=t[n]}}function wt(e){return{_custom:{display:e}}}const Qu="๐Ÿ Pinia (root)",Go="_root";function K_(e){return Sl(e)?{id:Go,label:Qu}:{id:e.$id,label:e.$id}}function W_(e){if(Sl(e)){const n=Array.from(e._s.keys()),o=e._s;return{state:n.map(a=>({editable:!0,key:a,value:e.state.value[a]})),getters:n.filter(a=>o.get(a)._getters).map(a=>{const i=o.get(a);return{editable:!1,key:a,value:i._getters.reduce((s,u)=>(s[u]=i[u],s),{})}})}}const t={state:Object.keys(e.$state).map(n=>({editable:!0,key:n,value:e.$state[n]}))};return e._getters&&e._getters.length&&(t.getters=e._getters.map(n=>({editable:!1,key:n,value:e[n]}))),e._customProperties.size&&(t.customProperties=Array.from(e._customProperties).map(n=>({editable:!0,key:n,value:e[n]}))),t}function Y_(e){return e?Array.isArray(e)?e.reduce((t,n)=>(t.keys.push(n.key),t.operations.push(n.type),t.oldValue[n.key]=n.oldValue,t.newValue[n.key]=n.newValue,t),{oldValue:{},keys:[],operations:[],newValue:{}}):{operation:wt(e.type),key:wt(e.key),oldValue:e.oldValue,newValue:e.newValue}:{}}function G_(e){switch(e){case sn.direct:return"mutation";case sn.patchFunction:return"$patch";case sn.patchObject:return"$patch";default:return"unknown"}}let Dn=!0;const Qo=[],un="pinia:mutations",nt="pinia",{assign:Q_}=Object,Xo=e=>"๐Ÿ "+e;function X_(e,t){Zs({id:"dev.esm.pinia",label:"Pinia ๐Ÿ",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:Qo,app:e},n=>{typeof n.now!="function"&&Ge("You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."),n.addTimelineLayer({id:un,label:"Pinia ๐Ÿ",color:15064968}),n.addInspector({id:nt,label:"Pinia ๐Ÿ",icon:"storage",treeFilterPlaceholder:"Search stores",actions:[{icon:"content_copy",action:()=>{$_(t)},tooltip:"Serialize and copy the state"},{icon:"content_paste",action:async()=>{await U_(t),n.sendInspectorTree(nt),n.sendInspectorState(nt)},tooltip:"Replace the state with the content of your clipboard"},{icon:"save",action:()=>{H_(t)},tooltip:"Save the state as a JSON file"},{icon:"folder_open",action:async()=>{await j_(t),n.sendInspectorTree(nt),n.sendInspectorState(nt)},tooltip:"Import the state from a JSON file"}],nodeActions:[{icon:"restore",tooltip:'Reset the state (with "$reset")',action:o=>{const r=t._s.get(o);r?typeof r.$reset!="function"?Ge(`Cannot reset "${o}" store because it doesn't have a "$reset" method implemented.`,"warn"):(r.$reset(),Ge(`Store "${o}" reset.`)):Ge(`Cannot reset "${o}" store because it wasn't found.`,"warn")}}]}),n.on.inspectComponent(o=>{const r=o.componentInstance&&o.componentInstance.proxy;if(r&&r._pStores){const a=o.componentInstance.proxy._pStores;Object.values(a).forEach(i=>{o.instanceData.state.push({type:Xo(i.$id),key:"state",editable:!0,value:i._isOptionsAPI?{_custom:{value:l.toRaw(i.$state),actions:[{icon:"restore",tooltip:"Reset the state of this store",action:()=>i.$reset()}]}}:Object.keys(i.$state).reduce((s,u)=>(s[u]=i.$state[u],s),{})}),i._getters&&i._getters.length&&o.instanceData.state.push({type:Xo(i.$id),key:"getters",editable:!1,value:i._getters.reduce((s,u)=>{try{s[u]=i[u]}catch(f){s[u]=f}return s},{})})})}}),n.on.getInspectorTree(o=>{if(o.app===e&&o.inspectorId===nt){let r=[t];r=r.concat(Array.from(t._s.values())),o.rootNodes=(o.filter?r.filter(a=>"$id"in a?a.$id.toLowerCase().includes(o.filter.toLowerCase()):Qu.toLowerCase().includes(o.filter.toLowerCase())):r).map(K_)}}),globalThis.$pinia=t,n.on.getInspectorState(o=>{if(o.app===e&&o.inspectorId===nt){const r=o.nodeId===Go?t:t._s.get(o.nodeId);if(!r)return;r&&(o.nodeId!==Go&&(globalThis.$store=l.toRaw(r)),o.state=W_(r))}}),n.on.editInspectorState(o=>{if(o.app===e&&o.inspectorId===nt){const r=o.nodeId===Go?t:t._s.get(o.nodeId);if(!r)return Ge(`store "${o.nodeId}" not found`,"error");const{path:a}=o;Sl(r)?a.unshift("state"):(a.length!==1||!r._customProperties.has(a[0])||a[0]in r.$state)&&a.unshift("$state"),Dn=!1,o.set(r,a,o.state.value),Dn=!0}}),n.on.editComponentState(o=>{if(o.type.startsWith("๐Ÿ")){const r=o.type.replace(/^๐Ÿ\s*/,""),a=t._s.get(r);if(!a)return Ge(`store "${r}" not found`,"error");const{path:i}=o;if(i[0]!=="state")return Ge(`Invalid path for store "${r}":
6
6
  ${i}
7
- Only state can be modified.`);i[0]="$state",Dn=!1,o.set(a,i,o.state.value),Dn=!0}})})}function Z_(e,t){Qo.includes(Xo(t.$id))||Qo.push(Xo(t.$id)),Zs({id:"dev.esm.pinia",label:"Pinia ๐Ÿ",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:Qo,app:e,settings:{logStoreChanges:{label:"Notify about new/deleted stores",type:"boolean",defaultValue:!0}}},n=>{const o=typeof n.now=="function"?n.now.bind(n):Date.now;t.$onAction(({after:i,onError:s,name:u,args:f})=>{const d=Xu++;n.addTimelineEvent({layerId:un,event:{time:o(),title:"๐Ÿ›ซ "+u,subtitle:"start",data:{store:wt(t.$id),action:wt(u),args:f},groupId:d}}),i(c=>{Kt=void 0,n.addTimelineEvent({layerId:un,event:{time:o(),title:"๐Ÿ›ฌ "+u,subtitle:"end",data:{store:wt(t.$id),action:wt(u),args:f,result:c},groupId:d}})}),s(c=>{Kt=void 0,n.addTimelineEvent({layerId:un,event:{time:o(),logType:"error",title:"๐Ÿ’ฅ "+u,subtitle:"end",data:{store:wt(t.$id),action:wt(u),args:f,error:c},groupId:d}})})},!0),t._customProperties.forEach(i=>{l.watch(()=>l.unref(t[i]),(s,u)=>{n.notifyComponentUpdate(),n.sendInspectorState(nt),Dn&&n.addTimelineEvent({layerId:un,event:{time:o(),title:"Change",subtitle:i,data:{newValue:s,oldValue:u},groupId:Kt}})},{deep:!0})}),t.$subscribe(({events:i,type:s},u)=>{if(n.notifyComponentUpdate(),n.sendInspectorState(nt),!Dn)return;const f={time:o(),title:G_(s),data:Q_({store:wt(t.$id)},Y_(i)),groupId:Kt};s===sn.patchFunction?f.subtitle="โคต๏ธ":s===sn.patchObject?f.subtitle="๐Ÿงฉ":i&&!Array.isArray(i)&&(f.subtitle=i.type),i&&(f.data["rawEvent(s)"]={_custom:{display:"DebuggerEvent",type:"object",tooltip:"raw DebuggerEvent[]",value:i}}),n.addTimelineEvent({layerId:un,event:f})},{detached:!0,flush:"sync"});const r=t._hotUpdate;t._hotUpdate=l.markRaw(i=>{r(i),n.addTimelineEvent({layerId:un,event:{time:o(),title:"๐Ÿ”ฅ "+t.$id,subtitle:"HMR update",data:{store:wt(t.$id),info:wt("HMR update")}}}),n.notifyComponentUpdate(),n.sendInspectorTree(nt),n.sendInspectorState(nt)});const{$dispose:a}=t;t.$dispose=()=>{a(),n.notifyComponentUpdate(),n.sendInspectorTree(nt),n.sendInspectorState(nt),n.getSettings().logStoreChanges&&Ge(`Disposed "${t.$id}" store ๐Ÿ—‘`)},n.notifyComponentUpdate(),n.sendInspectorTree(nt),n.sendInspectorState(nt),n.getSettings().logStoreChanges&&Ge(`"${t.$id}" store installed ๐Ÿ†•`)})}let Xu=0,Kt;function Zu(e,t,n){const o=t.reduce((r,a)=>(r[a]=l.toRaw(e)[a],r),{});for(const r in o)e[r]=function(){const a=Xu,i=n?new Proxy(e,{get(...u){return Kt=a,Reflect.get(...u)},set(...u){return Kt=a,Reflect.set(...u)}}):e;Kt=a;const s=o[r].apply(i,arguments);return Kt=void 0,s}}function J_({app:e,store:t,options:n}){if(!t.$id.startsWith("__hot:")){if(t._isOptionsAPI=!!n.state,!t._p._testing){Zu(t,Object.keys(n.actions),t._isOptionsAPI);const o=t._hotUpdate;l.toRaw(t)._hotUpdate=function(r){o.apply(this,arguments),Zu(t,Object.keys(r._hmrPayload.actions),!!t._isOptionsAPI)}}Z_(e,t)}}function Ju(){const e=l.effectScope(!0),t=e.run(()=>l.ref({}));let n=[],o=[];const r=l.markRaw({install(a){r._a=a,a.provide(R_,r),a.config.globalProperties.$pinia=r,process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&yl&&X_(a,r),o.forEach(i=>n.push(i)),o=[]},use(a){return this._a?n.push(a):o.push(a),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&yl&&typeof Proxy<"u"&&r.use(J_),r}process.env.NODE_ENV!=="production"?Symbol("pinia:skipHydration"):Symbol();const e0={en:{table:{search:"Search",cancel:"Cancel",confirm:"Save"},confirmDialog:{cancel:"Cancel",confirm:"Confirm",yes:"Yes",no:"No"},form:{rules:{emptyField:"The field cannot be empty",exceedCharactersTypeList:"Field must not exceed {0} characters"}},header:{hello:"Hello"},global:{total:"Total"}},es:{table:{search:"Buscar",cancel:"Cancelar",confirm:"Guardar"},confirmDialog:{cancel:"Cancelar",confirm:"Confirmar",yes:"Sรญ",no:"No"},form:{rules:{emptyField:"El campo no puede estar vacรญo",exceedCharactersTypeList:"El campo no debe exceder mรกs de {0} caracteres"}},header:{hello:"Hola"},global:{total:"Total"}}},Cl={handleInfiniteScrollNewTable(e){e.$nextTick(()=>{const t=e.smallDevice?"q-table__grid-content":"q-table__middle scroll",n=e.smallDevice?"Grid":"Table",o=document.getElementsByClassName(t),r=o.length>0?o[0]:window,a=i=>{const{scrollHeight:s,scrollTop:u,clientHeight:f}=i.target;Math.abs(s-f-u)<1&&(console.log(`[${n}] You are at the bottom!`,e.totalPage),e.totalPage++)};window.removeEventListener("scroll",a),r.removeEventListener("scroll",a),r.addEventListener("scroll",a)})},paginationNewTable(e,t){return t.slice(0,e.pageLength)},handleInfiniteScrollModal(e,t){e.$nextTick(()=>{const n=document.getElementById(t),o=e.smallDevice?"q-table__grid-content":"q-table__middle scroll",a=n.getElementsByClassName(o)[0],i=s=>{const u=s.target;if(e.smallDevice)a.scrollTop+a.clientHeight>=a.scrollHeight&&(console.log("[Grid] You are at the bottom!"),e.totalPageModal++);else{const{scrollHeight:f,scrollTop:d,clientHeight:c}=u;Math.abs(f-c-d)<1&&(console.log("[Table] You are at the bottom!"),e.totalPageModal++)}};window.removeEventListener("scroll",i),a.removeEventListener("scroll",i),a.addEventListener("scroll",i)})},paginationModal(e,t){return t.slice(0,e.pageLengthModal)}},t0={filter(e,t,n){if(e.store.filterValue!==""){const o=[],r=n.search?n.search.toLowerCase():"";for(let a=0;a<e.rows.length;a++)this.containsSearchTermInRow(e.rows[a],r)&&o.push(e.rows[a]);return e.filteredRows=o,Cl.paginationNewTable(e,o)}else return Cl.paginationNewTable(e,t)},containsSearchTermInRow(e,t){if(t!==""){const o=Object.values(e).map(r=>(r+"").toLowerCase());for(let r=0;r<o.length;r++)if(o[r].includes(t))return!0}return!1}},n0={setTableHeight(){const e=document.getElementsByClassName("q-footer")[0];let t="";if(e){const a=window.getComputedStyle(e).height;a!=="auto"&&(t=a.replace("px",""))}const n=document.getElementsByClassName("q-header")[0];let o="";if(n){const a=window.getComputedStyle(n).height;a!=="auto"&&(o=a.replace("px",""))}const r=Number(t)+Number(o);return`height:${window.innerHeight-r}px`}},o0={sortMethod(e,t,n,o=[]){const r=[...e];return t&&(o.includes(t)?this.sortDates(t,n,r):r.sort((a,i)=>{const s=n?i:a,u=n?a:i;return s[t]>u[t]?1:s[t]<u[t]?-1:0})),r},sortDates(e,t,n){n.sort(function(o,r){const a=o[e],i=r[e];let s=t?i:a,u=t?a:i;return s=s.split("/").reverse().join("-"),u=u.split("/").reverse().join("-"),s.localeCompare(u)})}};Ju();/*!
7
+ Only state can be modified.`);i[0]="$state",Dn=!1,o.set(a,i,o.state.value),Dn=!0}})})}function Z_(e,t){Qo.includes(Xo(t.$id))||Qo.push(Xo(t.$id)),Zs({id:"dev.esm.pinia",label:"Pinia ๐Ÿ",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:Qo,app:e,settings:{logStoreChanges:{label:"Notify about new/deleted stores",type:"boolean",defaultValue:!0}}},n=>{const o=typeof n.now=="function"?n.now.bind(n):Date.now;t.$onAction(({after:i,onError:s,name:u,args:f})=>{const d=Xu++;n.addTimelineEvent({layerId:un,event:{time:o(),title:"๐Ÿ›ซ "+u,subtitle:"start",data:{store:wt(t.$id),action:wt(u),args:f},groupId:d}}),i(c=>{Kt=void 0,n.addTimelineEvent({layerId:un,event:{time:o(),title:"๐Ÿ›ฌ "+u,subtitle:"end",data:{store:wt(t.$id),action:wt(u),args:f,result:c},groupId:d}})}),s(c=>{Kt=void 0,n.addTimelineEvent({layerId:un,event:{time:o(),logType:"error",title:"๐Ÿ’ฅ "+u,subtitle:"end",data:{store:wt(t.$id),action:wt(u),args:f,error:c},groupId:d}})})},!0),t._customProperties.forEach(i=>{l.watch(()=>l.unref(t[i]),(s,u)=>{n.notifyComponentUpdate(),n.sendInspectorState(nt),Dn&&n.addTimelineEvent({layerId:un,event:{time:o(),title:"Change",subtitle:i,data:{newValue:s,oldValue:u},groupId:Kt}})},{deep:!0})}),t.$subscribe(({events:i,type:s},u)=>{if(n.notifyComponentUpdate(),n.sendInspectorState(nt),!Dn)return;const f={time:o(),title:G_(s),data:Q_({store:wt(t.$id)},Y_(i)),groupId:Kt};s===sn.patchFunction?f.subtitle="โคต๏ธ":s===sn.patchObject?f.subtitle="๐Ÿงฉ":i&&!Array.isArray(i)&&(f.subtitle=i.type),i&&(f.data["rawEvent(s)"]={_custom:{display:"DebuggerEvent",type:"object",tooltip:"raw DebuggerEvent[]",value:i}}),n.addTimelineEvent({layerId:un,event:f})},{detached:!0,flush:"sync"});const r=t._hotUpdate;t._hotUpdate=l.markRaw(i=>{r(i),n.addTimelineEvent({layerId:un,event:{time:o(),title:"๐Ÿ”ฅ "+t.$id,subtitle:"HMR update",data:{store:wt(t.$id),info:wt("HMR update")}}}),n.notifyComponentUpdate(),n.sendInspectorTree(nt),n.sendInspectorState(nt)});const{$dispose:a}=t;t.$dispose=()=>{a(),n.notifyComponentUpdate(),n.sendInspectorTree(nt),n.sendInspectorState(nt),n.getSettings().logStoreChanges&&Ge(`Disposed "${t.$id}" store ๐Ÿ—‘`)},n.notifyComponentUpdate(),n.sendInspectorTree(nt),n.sendInspectorState(nt),n.getSettings().logStoreChanges&&Ge(`"${t.$id}" store installed ๐Ÿ†•`)})}let Xu=0,Kt;function Zu(e,t,n){const o=t.reduce((r,a)=>(r[a]=l.toRaw(e)[a],r),{});for(const r in o)e[r]=function(){const a=Xu,i=n?new Proxy(e,{get(...u){return Kt=a,Reflect.get(...u)},set(...u){return Kt=a,Reflect.set(...u)}}):e;Kt=a;const s=o[r].apply(i,arguments);return Kt=void 0,s}}function J_({app:e,store:t,options:n}){if(!t.$id.startsWith("__hot:")){if(t._isOptionsAPI=!!n.state,!t._p._testing){Zu(t,Object.keys(n.actions),t._isOptionsAPI);const o=t._hotUpdate;l.toRaw(t)._hotUpdate=function(r){o.apply(this,arguments),Zu(t,Object.keys(r._hmrPayload.actions),!!t._isOptionsAPI)}}Z_(e,t)}}function Ju(){const e=l.effectScope(!0),t=e.run(()=>l.ref({}));let n=[],o=[];const r=l.markRaw({install(a){r._a=a,a.provide(R_,r),a.config.globalProperties.$pinia=r,process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&yl&&X_(a,r),o.forEach(i=>n.push(i)),o=[]},use(a){return this._a?n.push(a):o.push(a),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&yl&&typeof Proxy<"u"&&r.use(J_),r}process.env.NODE_ENV!=="production"?Symbol("pinia:skipHydration"):Symbol();const e0={en:{table:{search:"Search",cancel:"Cancel",confirm:"Save"},confirmDialog:{cancel:"Cancel",confirm:"Confirm",yes:"Yes",no:"No"},form:{rules:{emptyField:"The field cannot be empty",exceedCharactersTypeList:"Field must not exceed {0} characters"}},header:{hello:"Hello"},global:{total:"Total"}},es:{table:{search:"Buscar",cancel:"Cancelar",confirm:"Guardar"},confirmDialog:{cancel:"Cancelar",confirm:"Confirmar",yes:"Sรญ",no:"No"},form:{rules:{emptyField:"El campo no puede estar vacรญo",exceedCharactersTypeList:"El campo no debe exceder mรกs de {0} caracteres"}},header:{hello:"Hola"},global:{total:"Total"}}},Cl={handleInfiniteScrollNewTable(e){e.$nextTick(()=>{const t=e.smallDevice?"q-table__grid-content":"q-table__middle scroll",n=e.smallDevice?"Grid":"Table",o=document.getElementsByClassName(t),r=o.length>0?o[0]:window,a=i=>{const{scrollHeight:s,scrollTop:u,clientHeight:f}=i.target;Math.abs(s-f-u)<1&&(console.log(`[${n}] You are at the bottom!`,e.totalPage),e.totalPage++)};window.removeEventListener("scroll",a),r.removeEventListener("scroll",a),r.addEventListener("scroll",a)})},paginationNewTable(e,t){return t.slice(0,e.pageLength)},handleInfiniteScrollModal(e,t){e.$nextTick(()=>{const n=document.getElementById(t),o=e.smallDevice?"q-table__grid-content":"q-table__middle scroll",a=n.getElementsByClassName(o)[0],i=s=>{const u=s.target;if(e.smallDevice)a.scrollTop+a.clientHeight>=a.scrollHeight&&(console.log("[Grid] You are at the bottom!"),e.totalPageModal++);else{const{scrollHeight:f,scrollTop:d,clientHeight:c}=u;Math.abs(f-c-d)<1&&(console.log("[Table] You are at the bottom!"),e.totalPageModal++)}};window.removeEventListener("scroll",i),a.removeEventListener("scroll",i),a.addEventListener("scroll",i)})},paginationModal(e,t){return t.slice(0,e.pageLengthModal)}},t0={filter(e,t,n){if(n.search!==""){const o=[],r=n.search?n.search.toLowerCase():"";for(let a=0;a<e.rows.length;a++)this.containsSearchTermInRow(e.rows[a],r)&&o.push(e.rows[a]);return e.filteredRows=o,Cl.paginationNewTable(e,o)}else return Cl.paginationNewTable(e,t)},containsSearchTermInRow(e,t){if(t!==""){const o=Object.values(e).map(r=>(r+"").toLowerCase());for(let r=0;r<o.length;r++)if(o[r].includes(t))return!0}return!1}},n0={setTableHeight(){const e=document.getElementsByClassName("q-footer")[0];let t="";if(e){const a=window.getComputedStyle(e).height;a!=="auto"&&(t=a.replace("px",""))}const n=document.getElementsByClassName("q-header")[0];let o="";if(n){const a=window.getComputedStyle(n).height;a!=="auto"&&(o=a.replace("px",""))}const r=Number(t)+Number(o);return`height:${window.innerHeight-r}px`}},o0={sortMethod(e,t,n,o=[]){const r=[...e];return t&&(o.includes(t)?this.sortDates(t,n,r):r.sort((a,i)=>{const s=n?i:a,u=n?a:i;return s[t]>u[t]?1:s[t]<u[t]?-1:0})),r},sortDates(e,t,n){n.sort(function(o,r){const a=o[e],i=r[e];let s=t?i:a,u=t?a:i;return s=s.split("/").reverse().join("-"),u=u.split("/").reverse().join("-"),s.localeCompare(u)})}};Ju();/*!
8
8
  * shared v10.0.5
9
9
  * (c) 2024 kazuya kawaguchi
10
10
  * Released under the MIT License.
package/package.json CHANGED
@@ -97,6 +97,6 @@
97
97
  "release": "standard-version"
98
98
  },
99
99
  "type": "module",
100
- "version": "0.0.43",
100
+ "version": "0.0.44",
101
101
  "author": ""
102
102
  }
@@ -2,8 +2,8 @@
2
2
 
3
3
  import infiniteScroll from './infiniteScroll'
4
4
  const filterMethod = {
5
- filter (self: {filterTerms: string, filteredRows: object [] | [] }, rows: string | [], terms: { search: string }): object[] | [] {
6
- if (self.store.filterValue !== '') {
5
+ filter (self: { filteredRows: object [] | [] }, rows: string | [], terms: { search: string }): object[] | [] {
6
+ if (terms.search !== '') {
7
7
  const filteredRows = []
8
8
  const lowerSearch = terms.search ? terms.search.toLowerCase() : ''
9
9
  for (let i = 0; i < self.rows.length; i++) {