overgrid-vue 1.6.7 → 1.6.9
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/index.d.ts +34 -1
- package/dist/overgrid.es.js +5 -3
- package/dist/overgrid.umd.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -31,6 +31,17 @@ export declare const OverGrid: {
|
|
|
31
31
|
}[];
|
|
32
32
|
}> & Readonly<{}>, {
|
|
33
33
|
fields: OverGridFields;
|
|
34
|
+
records: {
|
|
35
|
+
records: Ref<any[], any[]>;
|
|
36
|
+
fetchRecords: () => Promise<void>;
|
|
37
|
+
pagination: OverGridUsePaginationInterface;
|
|
38
|
+
ordering: OverGridUseOrderingInterface;
|
|
39
|
+
loading: Ref<boolean, boolean>;
|
|
40
|
+
autoRefresh: OverGridUseAutoRefreshInterface;
|
|
41
|
+
columnFilters: OverGridUseColumnFiltersInterface;
|
|
42
|
+
search: OverGridUseSearchInterface;
|
|
43
|
+
};
|
|
44
|
+
refresh: () => Promise<void>;
|
|
34
45
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
35
46
|
operationsDropdown: ({
|
|
36
47
|
$: ComponentInternalInstance;
|
|
@@ -145,6 +156,17 @@ export declare const OverGrid: {
|
|
|
145
156
|
}[];
|
|
146
157
|
}> & Readonly<{}>, {
|
|
147
158
|
fields: OverGridFields;
|
|
159
|
+
records: {
|
|
160
|
+
records: Ref<any[], any[]>;
|
|
161
|
+
fetchRecords: () => Promise<void>;
|
|
162
|
+
pagination: OverGridUsePaginationInterface;
|
|
163
|
+
ordering: OverGridUseOrderingInterface;
|
|
164
|
+
loading: Ref<boolean, boolean>;
|
|
165
|
+
autoRefresh: OverGridUseAutoRefreshInterface;
|
|
166
|
+
columnFilters: OverGridUseColumnFiltersInterface;
|
|
167
|
+
search: OverGridUseSearchInterface;
|
|
168
|
+
};
|
|
169
|
+
refresh: () => Promise<void>;
|
|
148
170
|
}, {}, {}, {}, {}>;
|
|
149
171
|
__isFragment?: never;
|
|
150
172
|
__isTeleport?: never;
|
|
@@ -157,6 +179,17 @@ component: any;
|
|
|
157
179
|
}[];
|
|
158
180
|
}> & Readonly<{}>, {
|
|
159
181
|
fields: OverGridFields;
|
|
182
|
+
records: {
|
|
183
|
+
records: Ref<any[], any[]>;
|
|
184
|
+
fetchRecords: () => Promise<void>;
|
|
185
|
+
pagination: OverGridUsePaginationInterface;
|
|
186
|
+
ordering: OverGridUseOrderingInterface;
|
|
187
|
+
loading: Ref<boolean, boolean>;
|
|
188
|
+
autoRefresh: OverGridUseAutoRefreshInterface;
|
|
189
|
+
columnFilters: OverGridUseColumnFiltersInterface;
|
|
190
|
+
search: OverGridUseSearchInterface;
|
|
191
|
+
};
|
|
192
|
+
refresh: () => Promise<void>;
|
|
160
193
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
161
194
|
$slots: {
|
|
162
195
|
extraRow?(_: {
|
|
@@ -532,7 +565,7 @@ declare class OverGridFields {
|
|
|
532
565
|
addDateField(key: string, title: string, extraConfig?: any): OverGridField;
|
|
533
566
|
addEnumField(key: string, title: string, enumMapping: OverGridEnumMapping, extraConfig?: any): OverGridField;
|
|
534
567
|
addBooleanField(key: string, title: string, extraConfig?: any): OverGridField;
|
|
535
|
-
addActionButtonField(title: string, buttons: OverGridActionButton[]): OverGridField;
|
|
568
|
+
addActionButtonField(title: string, buttons: OverGridActionButton[] | ((record: any) => OverGridActionButton[])): OverGridField;
|
|
536
569
|
}
|
|
537
570
|
|
|
538
571
|
export declare interface OverGridOrderConfig {
|
package/dist/overgrid.es.js
CHANGED
|
@@ -23767,8 +23767,8 @@ const {
|
|
|
23767
23767
|
},
|
|
23768
23768
|
setup(e) {
|
|
23769
23769
|
const t = e, r = Je(() => {
|
|
23770
|
-
var i, s, o, l;
|
|
23771
|
-
return !t.formatterConfig || !((s = (i = t.formatterConfig) == null ? void 0 : i.config) != null && s.buttons) ? [] : (l = (o = t.formatterConfig) == null ? void 0 : o.config) == null ? void 0 : l.buttons;
|
|
23770
|
+
var i, s, o, l, f, u, c, h;
|
|
23771
|
+
return !t.formatterConfig || !((s = (i = t.formatterConfig) == null ? void 0 : i.config) != null && s.buttons) ? [] : typeof ((l = (o = t.formatterConfig) == null ? void 0 : o.config) == null ? void 0 : l.buttons) == "function" ? (u = (f = t.formatterConfig) == null ? void 0 : f.config) == null ? void 0 : u.buttons(t.record) : (h = (c = t.formatterConfig) == null ? void 0 : c.config) == null ? void 0 : h.buttons;
|
|
23772
23772
|
}), n = Je(() => {
|
|
23773
23773
|
var i = r.value, s = [];
|
|
23774
23774
|
for (var o in i)
|
|
@@ -23984,7 +23984,9 @@ const {
|
|
|
23984
23984
|
return s.search.isToolbarOptionEnabled.value || u.isToolbarOptionEnabled.value || ((p = r.config.refreshable) == null ? void 0 : p.manualActive) || o.isToolbarOptionEnabled.value || l.isToolbarOptionEnabled.value || f.isToolbarOptionEnabled.value || s.autoRefresh.isToolbarOptionEnabled.value || s.pagination.isToolbarOptionEnabled.value;
|
|
23985
23985
|
});
|
|
23986
23986
|
return t({
|
|
23987
|
-
fields: i
|
|
23987
|
+
fields: i,
|
|
23988
|
+
records: s,
|
|
23989
|
+
refresh: s.fetchRecords
|
|
23988
23990
|
}), (p, v) => {
|
|
23989
23991
|
var E, y, N;
|
|
23990
23992
|
return G(), Q("div", {
|
package/dist/overgrid.umd.js
CHANGED
|
@@ -148,4 +148,4 @@ se.version="2.30.1",X2(Je),se.fn=Q,se.min=Pw,se.max=Iw,se.now=Lw,se.utc=br,se.un
|
|
|
148
148
|
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(a=>n.set(a)),n}static accessor(t){const n=(this[ru]=this[ru]={accessors:{}}).accessors,a=this.prototype;function i(s){const o=Ga(s);n[o]||(tS(a,s),n[o]=!0)}return z.isArray(t)?t.forEach(i):i(t),this}};Jt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),z.reduceDescriptors(Jt.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}}),z.freezeMethods(Jt);function cl(e,t){const r=this||Ya,n=t||r,a=Jt.from(n.headers);let i=n.data;return z.forEach(e,function(o){i=o.call(r,i,a.normalize(),t?t.status:void 0)}),a.normalize(),i}function nu(e){return!!(e&&e.__CANCEL__)}function ca(e,t,r){ke.call(this,e??"canceled",ke.ERR_CANCELED,t,r),this.name="CanceledError"}z.inherits(ca,ke,{__CANCEL__:!0});function au(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new ke("Request failed with status code "+r.status,[ke.ERR_BAD_REQUEST,ke.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function rS(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function nS(e,t){e=e||10;const r=new Array(e),n=new Array(e);let a=0,i=0,s;return t=t!==void 0?t:1e3,function(f){const c=Date.now(),u=n[i];s||(s=c),r[a]=f,n[a]=c;let h=i,d=0;for(;h!==a;)d+=r[h++],h=h%e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),c-s<t)return;const m=u&&c-u;return m?Math.round(d*1e3/m):void 0}}function aS(e,t){let r=0,n=1e3/t,a,i;const s=(c,u=Date.now())=>{r=u,a=null,i&&(clearTimeout(i),i=null),e.apply(null,c)};return[(...c)=>{const u=Date.now(),h=u-r;h>=n?s(c,u):(a=c,i||(i=setTimeout(()=>{i=null,s(a)},n-h)))},()=>a&&s(a)]}const ps=(e,t,r=3)=>{let n=0;const a=nS(50,250);return aS(i=>{const s=i.loaded,o=i.lengthComputable?i.total:void 0,f=s-n,c=a(f),u=s<=o;n=s;const h={loaded:s,total:o,progress:o?s/o:void 0,bytes:f,rate:c||void 0,estimated:c&&o&&u?(o-s)/c:void 0,event:i,lengthComputable:o!=null,[t?"download":"upload"]:!0};e(h)},r)},iu=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},su=e=>(...t)=>z.asap(()=>e(...t)),iS=Lt.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,Lt.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(Lt.origin),Lt.navigator&&/(msie|trident)/i.test(Lt.navigator.userAgent)):()=>!0,sS=Lt.hasStandardBrowserEnv?{write(e,t,r,n,a,i){const s=[e+"="+encodeURIComponent(t)];z.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),z.isString(n)&&s.push("path="+n),z.isString(a)&&s.push("domain="+a),i===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function oS(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function lS(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function ou(e,t,r){let n=!oS(t);return e&&(n||r==!1)?lS(e,t):t}const lu=e=>e instanceof Jt?{...e}:e;function bn(e,t){t=t||{};const r={};function n(c,u,h,d){return z.isPlainObject(c)&&z.isPlainObject(u)?z.merge.call({caseless:d},c,u):z.isPlainObject(u)?z.merge({},u):z.isArray(u)?u.slice():u}function a(c,u,h,d){if(z.isUndefined(u)){if(!z.isUndefined(c))return n(void 0,c,h,d)}else return n(c,u,h,d)}function i(c,u){if(!z.isUndefined(u))return n(void 0,u)}function s(c,u){if(z.isUndefined(u)){if(!z.isUndefined(c))return n(void 0,c)}else return n(void 0,u)}function o(c,u,h){if(h in t)return n(c,u);if(h in e)return n(void 0,c)}const f={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:o,headers:(c,u,h)=>a(lu(c),lu(u),h,!0)};return z.forEach(Object.keys(Object.assign({},e,t)),function(u){const h=f[u]||a,d=h(e[u],t[u],u);z.isUndefined(d)&&h!==o||(r[u]=d)}),r}const fu=e=>{const t=bn({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:a,xsrfCookieName:i,headers:s,auth:o}=t;t.headers=s=Jt.from(s),t.url=Jc(ou(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),o&&s.set("Authorization","Basic "+btoa((o.username||"")+":"+(o.password?unescape(encodeURIComponent(o.password)):"")));let f;if(z.isFormData(r)){if(Lt.hasStandardBrowserEnv||Lt.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((f=s.getContentType())!==!1){const[c,...u]=f?f.split(";").map(h=>h.trim()).filter(Boolean):[];s.setContentType([c||"multipart/form-data",...u].join("; "))}}if(Lt.hasStandardBrowserEnv&&(n&&z.isFunction(n)&&(n=n(t)),n||n!==!1&&iS(t.url))){const c=a&&i&&sS.read(i);c&&s.set(a,c)}return t},fS=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(r,n){const a=fu(e);let i=a.data;const s=Jt.from(a.headers).normalize();let{responseType:o,onUploadProgress:f,onDownloadProgress:c}=a,u,h,d,m,p;function _(){m&&m(),p&&p(),a.cancelToken&&a.cancelToken.unsubscribe(u),a.signal&&a.signal.removeEventListener("abort",u)}let x=new XMLHttpRequest;x.open(a.method.toUpperCase(),a.url,!0),x.timeout=a.timeout;function g(){if(!x)return;const E=Jt.from("getAllResponseHeaders"in x&&x.getAllResponseHeaders()),D={data:!o||o==="text"||o==="json"?x.responseText:x.response,status:x.status,statusText:x.statusText,headers:E,config:e,request:x};au(function(T){r(T),_()},function(T){n(T),_()},D),x=null}"onloadend"in x?x.onloadend=g:x.onreadystatechange=function(){!x||x.readyState!==4||x.status===0&&!(x.responseURL&&x.responseURL.indexOf("file:")===0)||setTimeout(g)},x.onabort=function(){x&&(n(new ke("Request aborted",ke.ECONNABORTED,e,x)),x=null)},x.onerror=function(){n(new ke("Network Error",ke.ERR_NETWORK,e,x)),x=null},x.ontimeout=function(){let B=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const D=a.transitional||eu;a.timeoutErrorMessage&&(B=a.timeoutErrorMessage),n(new ke(B,D.clarifyTimeoutError?ke.ETIMEDOUT:ke.ECONNABORTED,e,x)),x=null},i===void 0&&s.setContentType(null),"setRequestHeader"in x&&z.forEach(s.toJSON(),function(B,D){x.setRequestHeader(D,B)}),z.isUndefined(a.withCredentials)||(x.withCredentials=!!a.withCredentials),o&&o!=="json"&&(x.responseType=a.responseType),c&&([d,p]=ps(c,!0),x.addEventListener("progress",d)),f&&x.upload&&([h,m]=ps(f),x.upload.addEventListener("progress",h),x.upload.addEventListener("loadend",m)),(a.cancelToken||a.signal)&&(u=E=>{x&&(n(!E||E.type?new ca(null,e,x):E),x.abort(),x=null)},a.cancelToken&&a.cancelToken.subscribe(u),a.signal&&(a.signal.aborted?u():a.signal.addEventListener("abort",u)));const S=rS(a.url);if(S&&Lt.protocols.indexOf(S)===-1){n(new ke("Unsupported protocol "+S+":",ke.ERR_BAD_REQUEST,e));return}x.send(i||null)})},cS=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,a;const i=function(c){if(!a){a=!0,o();const u=c instanceof Error?c:this.reason;n.abort(u instanceof ke?u:new ca(u instanceof Error?u.message:u))}};let s=t&&setTimeout(()=>{s=null,i(new ke(`timeout ${t} of ms exceeded`,ke.ETIMEDOUT))},t);const o=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(i):c.removeEventListener("abort",i)}),e=null)};e.forEach(c=>c.addEventListener("abort",i));const{signal:f}=n;return f.unsubscribe=()=>z.asap(o),f}},uS=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,a;for(;n<r;)a=n+t,yield e.slice(n,a),n=a},hS=async function*(e,t){for await(const r of dS(e))yield*uS(r,t)},dS=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:n}=await t.read();if(r)break;yield n}}finally{await t.cancel()}},cu=(e,t,r,n)=>{const a=hS(e,t);let i=0,s,o=f=>{s||(s=!0,n&&n(f))};return new ReadableStream({async pull(f){try{const{done:c,value:u}=await a.next();if(c){o(),f.close();return}let h=u.byteLength;if(r){let d=i+=h;r(d)}f.enqueue(new Uint8Array(u))}catch(c){throw o(c),c}},cancel(f){return o(f),a.return()}},{highWaterMark:2})},xs=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",uu=xs&&typeof ReadableStream=="function",mS=xs&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),hu=(e,...t)=>{try{return!!e(...t)}catch{return!1}},pS=uu&&hu(()=>{let e=!1;const t=new Request(Lt.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),du=64*1024,ul=uu&&hu(()=>z.isReadableStream(new Response("").body)),_s={stream:ul&&(e=>e.body)};xs&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!_s[t]&&(_s[t]=z.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new ke(`Response type '${t}' is not supported`,ke.ERR_NOT_SUPPORT,n)})})})(new Response);const xS=async e=>{if(e==null)return 0;if(z.isBlob(e))return e.size;if(z.isSpecCompliantForm(e))return(await new Request(Lt.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(z.isArrayBufferView(e)||z.isArrayBuffer(e))return e.byteLength;if(z.isURLSearchParams(e)&&(e=e+""),z.isString(e))return(await mS(e)).byteLength},_S=async(e,t)=>{const r=z.toFiniteNumber(e.getContentLength());return r??xS(t)},hl={http:LT,xhr:fS,fetch:xs&&(async e=>{let{url:t,method:r,data:n,signal:a,cancelToken:i,timeout:s,onDownloadProgress:o,onUploadProgress:f,responseType:c,headers:u,withCredentials:h="same-origin",fetchOptions:d}=fu(e);c=c?(c+"").toLowerCase():"text";let m=cS([a,i&&i.toAbortSignal()],s),p;const _=m&&m.unsubscribe&&(()=>{m.unsubscribe()});let x;try{if(f&&pS&&r!=="get"&&r!=="head"&&(x=await _S(u,n))!==0){let D=new Request(t,{method:"POST",body:n,duplex:"half"}),H;if(z.isFormData(n)&&(H=D.headers.get("content-type"))&&u.setContentType(H),D.body){const[T,R]=iu(x,ps(su(f)));n=cu(D.body,du,T,R)}}z.isString(h)||(h=h?"include":"omit");const g="credentials"in Request.prototype;p=new Request(t,{...d,signal:m,method:r.toUpperCase(),headers:u.normalize().toJSON(),body:n,duplex:"half",credentials:g?h:void 0});let S=await fetch(p,d);const E=ul&&(c==="stream"||c==="response");if(ul&&(o||E&&_)){const D={};["status","statusText","headers"].forEach(b=>{D[b]=S[b]});const H=z.toFiniteNumber(S.headers.get("content-length")),[T,R]=o&&iu(H,ps(su(o),!0))||[];S=new Response(cu(S.body,du,T,()=>{R&&R(),_&&_()}),D)}c=c||"text";let B=await _s[z.findKey(_s,c)||"text"](S,e);return!E&&_&&_(),await new Promise((D,H)=>{au(D,H,{data:B,headers:Jt.from(S.headers),status:S.status,statusText:S.statusText,config:e,request:p})})}catch(g){throw _&&_(),g&&g.name==="TypeError"&&/Load failed|fetch/i.test(g.message)?Object.assign(new ke("Network Error",ke.ERR_NETWORK,e,p),{cause:g.cause||g}):ke.from(g,g&&g.code,e,p)}})};z.forEach(hl,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const mu=e=>`- ${e}`,gS=e=>z.isFunction(e)||e===null||e===!1,pu={getAdapter:e=>{e=z.isArray(e)?e:[e];const{length:t}=e;let r,n;const a={};for(let i=0;i<t;i++){r=e[i];let s;if(n=r,!gS(r)&&(n=hl[(s=String(r)).toLowerCase()],n===void 0))throw new ke(`Unknown adapter '${s}'`);if(n)break;a[s||"#"+i]=n}if(!n){const i=Object.entries(a).map(([o,f])=>`adapter ${o} `+(f===!1?"is not supported by the environment":"is not available in the build"));let s=t?i.length>1?`since :
|
|
149
149
|
`+i.map(mu).join(`
|
|
150
150
|
`):" "+mu(i[0]):"as no adapter specified";throw new ke("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return n},adapters:hl};function dl(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ca(null,e)}function xu(e){return dl(e),e.headers=Jt.from(e.headers),e.data=cl.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),pu.getAdapter(e.adapter||Ya.adapter)(e).then(function(n){return dl(e),n.data=cl.call(e,e.transformResponse,n),n.headers=Jt.from(n.headers),n},function(n){return nu(n)||(dl(e),n&&n.response&&(n.response.data=cl.call(e,e.transformResponse,n.response),n.response.headers=Jt.from(n.response.headers))),Promise.reject(n)})}const _u="1.10.0",gs={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{gs[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const gu={};gs.transitional=function(t,r,n){function a(i,s){return"[Axios v"+_u+"] Transitional option '"+i+"'"+s+(n?". "+n:"")}return(i,s,o)=>{if(t===!1)throw new ke(a(s," has been removed"+(r?" in "+r:"")),ke.ERR_DEPRECATED);return r&&!gu[s]&&(gu[s]=!0,console.warn(a(s," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(i,s,o):!0}},gs.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function vS(e,t,r){if(typeof e!="object")throw new ke("options must be an object",ke.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let a=n.length;for(;a-- >0;){const i=n[a],s=t[i];if(s){const o=e[i],f=o===void 0||s(o,i,e);if(f!==!0)throw new ke("option "+i+" must be "+f,ke.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new ke("Unknown option "+i,ke.ERR_BAD_OPTION)}}const vs={assertOptions:vS,validators:gs},Rr=vs.validators;let Cn=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Qc,response:new Qc}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let a={};Error.captureStackTrace?Error.captureStackTrace(a):a=new Error;const i=a.stack?a.stack.replace(/^.+\n/,""):"";try{n.stack?i&&!String(n.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(n.stack+=`
|
|
151
|
-
`+i):n.stack=i}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=bn(this.defaults,r);const{transitional:n,paramsSerializer:a,headers:i}=r;n!==void 0&&vs.assertOptions(n,{silentJSONParsing:Rr.transitional(Rr.boolean),forcedJSONParsing:Rr.transitional(Rr.boolean),clarifyTimeoutError:Rr.transitional(Rr.boolean)},!1),a!=null&&(z.isFunction(a)?r.paramsSerializer={serialize:a}:vs.assertOptions(a,{encode:Rr.function,serialize:Rr.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),vs.assertOptions(r,{baseUrl:Rr.spelling("baseURL"),withXsrfToken:Rr.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let s=i&&z.merge(i.common,i[r.method]);i&&z.forEach(["delete","get","head","post","put","patch","common"],p=>{delete i[p]}),r.headers=Jt.concat(s,i);const o=[];let f=!0;this.interceptors.request.forEach(function(_){typeof _.runWhen=="function"&&_.runWhen(r)===!1||(f=f&&_.synchronous,o.unshift(_.fulfilled,_.rejected))});const c=[];this.interceptors.response.forEach(function(_){c.push(_.fulfilled,_.rejected)});let u,h=0,d;if(!f){const p=[xu.bind(this),void 0];for(p.unshift.apply(p,o),p.push.apply(p,c),d=p.length,u=Promise.resolve(r);h<d;)u=u.then(p[h++],p[h++]);return u}d=o.length;let m=r;for(h=0;h<d;){const p=o[h++],_=o[h++];try{m=p(m)}catch(x){_.call(this,x);break}}try{u=xu.call(this,m)}catch(p){return Promise.reject(p)}for(h=0,d=c.length;h<d;)u=u.then(c[h++],c[h++]);return u}getUri(t){t=bn(this.defaults,t);const r=ou(t.baseURL,t.url,t.allowAbsoluteUrls);return Jc(r,t.params,t.paramsSerializer)}};z.forEach(["delete","get","head","options"],function(t){Cn.prototype[t]=function(r,n){return this.request(bn(n||{},{method:t,url:r,data:(n||{}).data}))}}),z.forEach(["post","put","patch"],function(t){function r(n){return function(i,s,o){return this.request(bn(o||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:s}))}}Cn.prototype[t]=r(),Cn.prototype[t+"Form"]=r(!0)});let wS=class Tu{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const n=this;this.promise.then(a=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](a);n._listeners=null}),this.promise.then=a=>{let i;const s=new Promise(o=>{n.subscribe(o),i=o}).then(a);return s.cancel=function(){n.unsubscribe(i)},s},t(function(i,s,o){n.reason||(n.reason=new ca(i,s,o),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new Tu(function(a){t=a}),cancel:t}}};function yS(e){return function(r){return e.apply(null,r)}}function ES(e){return z.isObject(e)&&e.isAxiosError===!0}const ml={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ml).forEach(([e,t])=>{ml[t]=e});function vu(e){const t=new Cn(e),r=Ic(Cn.prototype.request,t);return z.extend(r,Cn.prototype,t,{allOwnKeys:!0}),z.extend(r,t,null,{allOwnKeys:!0}),r.create=function(a){return vu(bn(e,a))},r}const ot=vu(Ya);ot.Axios=Cn,ot.CanceledError=ca,ot.CancelToken=wS,ot.isCancel=nu,ot.VERSION=_u,ot.toFormData=ds,ot.AxiosError=ke,ot.Cancel=ot.CanceledError,ot.all=function(t){return Promise.all(t)},ot.spread=yS,ot.isAxiosError=ES,ot.mergeConfig=bn,ot.AxiosHeaders=Jt,ot.formToJSON=e=>tu(z.isHTMLForm(e)?new FormData(e):e),ot.getAdapter=pu.getAdapter,ot.HttpStatusCode=ml,ot.default=ot;const{Axios:Vk,AxiosError:Wk,CanceledError:$k,isCancel:Hk,CancelToken:zk,VERSION:Yk,all:Gk,Cancel:jk,isAxiosError:Xk,spread:Kk,toFormData:qk,AxiosHeaders:Zk,HttpStatusCode:Jk,formToJSON:Qk,getAdapter:eF,mergeConfig:tF}=ot,TS=e=>e?e(ot):ot,SS=(e,t,r,n)=>{let a=new URLSearchParams;return t&&t.active&&(t.page||t.page===0)&&t.pageSize&&(a.set("page",t.page.toString()),a.set("size",t.pageSize.toString())),e&&Array.isArray(e)&&e.length>0&&a.set("orders",JSON.stringify(e)),r&&Array.isArray(r)&&r.length>0&&a.set("filters",JSON.stringify(r)),n&&typeof n=="string"&&n.trim().length>0&&a.set("query",n.trim()),a},kS=e=>{const t=l.ref([]),r=K4(e.pagination,e.gridUniqueId),n=q4(e.orderConfiguration),a=J4(e.columnFilters),i=Q4(e.search),s=os(),o=l.ref(!1),f=TS(e.axiosConfigurator),c=async()=>{o.value=!0;let h=await f.get(e.endpoint,{params:e.serverTransformation?e.serverTransformation(n.rawState.value,r.state,a.filters.value,i.query.value):SS(n.rawState.value,r.state,a.filters.value,i.query.value),responseType:"json"});r.setByResponse(h.data);let d=e.rootkey&&h.data[e.rootkey]?h.data[e.rootkey]:h.data;if(Array.isArray(d)||(s.error('The response data is not an array. Please check your server response format and the "rootkey" configuration.'),d=[]),e.events&&e.events.onDataLoad){let m=e.events.onDataLoad(d);typeof m=="object"&&(d=m)}e.events&&e.events.onDataLoadWithFullResponse&&e.events.onDataLoadWithFullResponse(h),t.value=d||[],l.nextTick(function(){var m;e.events&&e.events.readyAfterRefresh&&((m=e.events)==null||m.readyAfterRefresh())}),o.value=!1},u=Z4(e.refreshable,e.gridUniqueId,c);return l.watch(()=>[r.state.page,r.state.pageSize],h=>{s.info("Page changed to:",h),c()}),l.watch(()=>n.rawState,()=>{c()},{deep:!0}),l.watch(()=>a.filters,()=>{c()},{deep:!0}),l.watch(()=>i.query.value,()=>{i.debounce(c)},{deep:!0}),{records:t,fetchRecords:c,pagination:r,ordering:n,loading:o,autoRefresh:u,columnFilters:a,search:i}},FS=(e,t)=>{const r=l.ref(!1),n=l.ref(null);function a(){r.value=!0}function i(){r.value=!1}function s(c){n.value=c,localStorage.setItem("overgrid-column-selector-"+t,JSON.stringify(n.value))}function o(c){return n.value===null?c:c.filter(u=>{var h;return(h=n.value)==null?void 0:h.includes(u.key)})}if(localStorage.getItem("overgrid-column-selector-"+t)){const c=JSON.parse(localStorage.getItem("overgrid-column-selector-"+t)||"[]");n.value=c.length>0?c:null}const f=l.computed(()=>!!(e&&e.active));return{showModal:a,closeModal:i,isModalShown:r,selectedFields:n,setColumns:s,filter:o,isToolbarOptionEnabled:f}},AS=e=>{const t=l.ref(!1);function r(){t.value=!0}function n(){t.value=!1}const a=l.computed(()=>!!(e!=null&&e.active&&(e!=null&&e.xlsxEnabled||e!=null&&e.csvEnabled)));return{showModal:r,closeModal:n,isModalShown:t,isToolbarOptionEnabled:a}},OS=e=>{const t=os();function r(n){return e!=null&&e.active?e!=null&&e.fn&&typeof e.fn=="function"&&(e!=null&&e.fn(n))?e.classList+" overgrid-row-highlighted"||"":(t.warn('Row highlighter configuration is not defined a function in "fn" key.'),""):""}return{getClassList:r}},bS=e=>{const t=l.ref(!1);function r(){t.value=!0}function n(){t.value=!1}const a=l.computed(()=>e!==!0);return{showModal:r,closeModal:n,isModalShown:t,isToolbarOptionEnabled:a}},CS=(e,t,r)=>{const n=l.ref([]),a=os();e&&e.active&&!t&&a.warn("Bulk operations are active, but no idkey is provided. Please provide an idkey to enable bulk operations."),l.watch(()=>n.value,()=>{r&&typeof r=="function"&&r(n.value)},{deep:!0});const i=l.computed(()=>{var s;return!!(e&&e.active&&((s=e.methods)==null?void 0:s.length)>0&&t)});return{checkedRows:n,isToolbarOptionEnabled:i}},NS=l.defineComponent({__name:"BulkOperationsDropdown",props:{config:{},bulkOperator:{}},setup(e){const t=wt(),r=e,n=l.ref("");function a(){let i;if(r.config){for(var s in r.config.methods)if(r.config.methods[s].key==n.value){i=r.config.methods[s].action;break}i&&i(r.bulkOperator.checkedRows.value,()=>{n.value="",r.bulkOperator.checkedRows.value=[]})}}return(i,s)=>{var o;return l.openBlock(),l.createBlock(is,{rounded:"full",variant:"primary",size:"sm",customClass:"overgrid-select min-w-32 sm:min-w-48",disabled:r.bulkOperator.checkedRows.value.length<=0,modelValue:n.value,"onUpdate:modelValue":s[0]||(s[0]=f=>n.value=f),options:(o=r.config)!=null&&o.methods?r.config.methods.map(f=>({key:f.key,text:f.title})):[],onChange:a,enableNullOption:!0,nullOptionText:l.unref(t).l("selected_rows",{selectedCount:r.bulkOperator.checkedRows.value.length.toString()})},null,8,["disabled","modelValue","options","nullOptionText"])}}}),DS=(e,t)=>{const r=os(),n=l.ref([]);e&&e.active&&!t&&r.warn("Extra row functionality is active in configuration, but no idkey is provided (its required). Please provide an idkey to enable extra row functionality.");function a(f){f&&n.value.push(f)}function i(f){if(!f)return;const c=n.value.indexOf(f);c!==-1&&n.value.splice(c,1)}function s(f){f&&(o(f)?i(f):a(f))}function o(f){return f?n.value.includes(f):!1}return{openedRows:n,isRowOpened:o,toggleRow:s,openRow:a,closeRow:i}},RS={key:1,class:"flex flex-row gap-1"},BS=l.defineComponent({__name:"EnumFormatter",props:{data:{},l:{type:Function},formatterConfig:{},rowid:{},fieldKey:{},record:{},refreshGrid:{type:Function},openExtraRow:{type:Function}},setup(e){return(t,r)=>{var n,a,i,s,o,f,c,u,h,d,m,p;return Array.isArray(t.data)?(l.openBlock(),l.createElementBlock("span",RS,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.data,(_,x)=>{var g,S,E,B,D,H,T,R,b,Y,L,K;return l.openBlock(),l.createElementBlock("span",{key:x,class:l.normalizeClass(((B=(E=(S=(g=t.formatterConfig)==null?void 0:g.config)==null?void 0:S.mapping)==null?void 0:E[_])==null?void 0:B.class)||"")},l.toDisplayString((R=(T=(H=(D=t.formatterConfig)==null?void 0:D.config)==null?void 0:H.mapping)==null?void 0:T[_])!=null&&R.title?(K=(L=(Y=(b=t.formatterConfig)==null?void 0:b.config)==null?void 0:Y.mapping)==null?void 0:L[_])==null?void 0:K.title:_),3)}),128))])):(l.openBlock(),l.createElementBlock("span",{key:0,class:l.normalizeClass(((s=(i=(a=(n=t.formatterConfig)==null?void 0:n.config)==null?void 0:a.mapping)==null?void 0:i[t.data])==null?void 0:s.class)||"")},l.toDisplayString((u=(c=(f=(o=t.formatterConfig)==null?void 0:o.config)==null?void 0:f.mapping)==null?void 0:c[t.data])!=null&&u.title?(p=(m=(d=(h=t.formatterConfig)==null?void 0:h.config)==null?void 0:d.mapping)==null?void 0:m[t.data])==null?void 0:p.title:t.data),3))}}}),MS=l.defineComponent({__name:"BooleanFormatter",props:{data:{},l:{type:Function},formatterConfig:{},rowid:{},fieldKey:{},record:{},refreshGrid:{type:Function},openExtraRow:{type:Function}},setup(e){return(t,r)=>{var n,a,i,s;return l.toDisplayString(t.data?(n=t.formatterConfig.config)!=null&&n.trueText?(a=t.formatterConfig.config)==null?void 0:a.trueText:t.l("yes"):(i=t.formatterConfig.config)!=null&&i.falseText?(s=t.formatterConfig.config)==null?void 0:s.falseText:t.l("no"))}}}),PS=l.defineComponent({__name:"ClassFormatter",props:{data:{},l:{type:Function},formatterConfig:{},rowid:{},fieldKey:{},record:{},refreshGrid:{type:Function},openExtraRow:{type:Function}},setup(e){return(t,r)=>{var n,a;return l.openBlock(),l.createElementBlock("span",{class:l.normalizeClass(((a=(n=t.formatterConfig)==null?void 0:n.config)==null?void 0:a.class)||"")},l.toDisplayString(t.data),3)}}}),IS=l.defineComponent({__name:"DateFormatter",props:{data:{},l:{type:Function},formatterConfig:{},rowid:{},fieldKey:{},record:{},refreshGrid:{type:Function},openExtraRow:{type:Function}},setup(e){return(t,r)=>{var n,a,i,s,o,f;return l.openBlock(),l.createElementBlock("span",{class:l.normalizeClass(((a=(n=t.formatterConfig)==null?void 0:n.config)==null?void 0:a.class)||"")},l.toDisplayString(l.unref(se)(t.data,((s=(i=t.formatterConfig)==null?void 0:i.config)==null?void 0:s.inputFormat)||"YYYY-MM-DD").format(((f=(o=t.formatterConfig)==null?void 0:o.config)==null?void 0:f.outputFormat)||"YYYY-MM-DD")),3)}}}),LS=l.defineComponent({__name:"NumberFormatter",props:{data:{},l:{type:Function},formatterConfig:{},rowid:{},fieldKey:{},record:{},refreshGrid:{type:Function},openExtraRow:{type:Function}},setup(e){const t=e,r=l.computed(()=>{var a,i,s,o,f,c,u,h,d,m,p,_,x,g;return t.data?parseFloat(t.data).toLocaleString((i=(a=t.formatterConfig)==null?void 0:a.config)!=null&&i.locale?(o=(s=t.formatterConfig)==null?void 0:s.config)==null?void 0:o.locale:"en-EN",{minimumFractionDigits:((c=(f=t.formatterConfig)==null?void 0:f.config)==null?void 0:c.minimumFractionDigits)||0,maximumFractionDigits:((h=(u=t.formatterConfig)==null?void 0:u.config)==null?void 0:h.maximumFractionDigits)||2,useGrouping:((m=(d=t.formatterConfig)==null?void 0:d.config)==null?void 0:m.useGrouping)!==void 0&&typeof((_=(p=t.formatterConfig)==null?void 0:p.config)==null?void 0:_.useGrouping)=="boolean"?(g=(x=t.formatterConfig)==null?void 0:x.config)==null?void 0:g.useGrouping:!0}):""});return(n,a)=>{var i,s;return l.openBlock(),l.createElementBlock("span",{class:l.normalizeClass(((s=(i=n.formatterConfig)==null?void 0:i.config)==null?void 0:s.class)||"")},l.toDisplayString(r.value),3)}}}),US={key:0,class:"flex flex-row items-center gap-1.5 pr-1"},VS=["innerHTML"],WS={key:1,class:"flex items-center ml-1.5"},$S={class:"!rounded-md font-inter w-full"},HS={class:"my-1 rounded-lg"},zS=["disabled","data-test-value","onClick"],YS=l.defineComponent({__name:"ActionButtonsFormatter",props:{data:{},l:{type:Function},formatterConfig:{},rowid:{},fieldKey:{},record:{},refreshGrid:{type:Function},openExtraRow:{type:Function}},setup(e){const t=e,r=l.computed(()=>{var i,s,o,f;return!t.formatterConfig||!((s=(i=t.formatterConfig)==null?void 0:i.config)!=null&&s.buttons)?[]:(f=(o=t.formatterConfig)==null?void 0:o.config)==null?void 0:f.buttons}),n=l.computed(()=>{var i=r.value,s=[];for(var o in i)i[o].dropdowned&&s.push(i[o]);return s}),a=l.computed(()=>{var i=r.value,s=[];for(var o in i)i[o].dropdowned||s.push(i[o]);return s});return(i,s)=>{var o,f,c,u;return l.openBlock(),l.createElementBlock("div",{"data-test":"",class:"flex flex-row overflow-y-visible",onMousedown:s[0]||(s[0]=l.withModifiers(()=>{},["stop"]))},[a.value.length>0?(l.openBlock(),l.createElementBlock("span",US,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(a.value,(h,d)=>(l.openBlock(),l.createBlock(Wt,{rounded:"",iconOnly:"",variant:h.variant,onClick:m=>{h.action(m,i.fieldKey,i.data,i.record)},disabled:h.disabled?h.disabled:!1,"data-test":"overgrid-action-button","data-test-value":h.testValueAttribute,key:d,customClass:h.classList},l.createSlots({_:2},[h.icon?{name:"iconLeft",fn:l.withCtx(()=>[l.createElementVNode("span",{innerHTML:h.icon},null,8,VS)]),key:"0"}:void 0]),1032,["variant","onClick","disabled","data-test-value","customClass"]))),128))])):l.createCommentVNode("",!0),n.value.length>0?(l.openBlock(),l.createElementBlock("span",WS,[l.createVNode(Ts,{orientation:(f=(o=t.formatterConfig)==null?void 0:o.config)!=null&&f.dropdownOrientation?(u=(c=t.formatterConfig)==null?void 0:c.config)==null?void 0:u.dropdownOrientation:"right"},{iconButton:l.withCtx(()=>[l.createVNode(Wt,{rounded:"",iconOnly:"",variant:"ghost","data-test":"overgrid-action-button-dropdown"},{iconLeft:l.withCtx(()=>s[1]||(s[1]=[l.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-4 min-w-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 5v.01M12 12v.01M12 19v.01M12 6a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2z"})],-1)])),_:1})]),content:l.withCtx(()=>[l.createElementVNode("div",$S,[l.createElementVNode("ul",HS,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(n.value,(h,d)=>(l.openBlock(),l.createElementBlock("li",{class:"hover:bg-black/5",key:d},[l.createElementVNode("a",{href:"javascript:void(null);",disabled:h.disabled?h.disabled:!1,"data-test-value":h.testValueAttribute,onClick:m=>{h.action(m,i.fieldKey,i.data,i.record)},class:"font-normal text-left flex flex-row items-center p-3 py-1.5 gap-1"},l.toDisplayString(h.title),9,zS)]))),128))])])]),_:1},8,["orientation"])])):l.createCommentVNode("",!0)],32)}}}),GS=["innerHTML"],jS=l.defineComponent({__name:"HtmlFormatter",props:{data:{},l:{type:Function},formatterConfig:{},rowid:{},fieldKey:{},record:{},refreshGrid:{type:Function},openExtraRow:{type:Function}},setup(e){const t=e;return(r,n)=>(l.openBlock(),l.createElementBlock("div",{innerHTML:t.data},null,8,GS))}}),XS=l.defineComponent({__name:"RootFormatter",props:{theme:{},type:{},data:{},rowid:{},formatterConfig:{},fieldKey:{},record:{},refreshGrid:{type:Function},openExtraRow:{type:Function},customFormatters:{}},setup(e){const t=wt(),r=e,n=[{name:"EnumFormatter",component:BS},{name:"BooleanFormatter",component:MS},{name:"ClassFormatter",component:PS},{name:"DateFormatter",component:IS},{name:"NumberFormatter",component:LS},{name:"ActionButtonsFormatter",component:YS},{name:"HtmlFormatter",component:jS}].concat(r.customFormatters||[]);return(a,i)=>(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(l.unref(n),s=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[a.type===s.name?(l.openBlock(),l.createBlock(l.resolveDynamicComponent(s.component),{key:0,l:l.unref(t).l,data:r.data,formatterConfig:a.formatterConfig,rowid:a.rowid,fieldKey:a.fieldKey,record:a.record,refreshGrid:a.refreshGrid,openExtraRow:a.openExtraRow},null,8,["l","data","formatterConfig","rowid","fieldKey","record","refreshGrid","openExtraRow"])):l.createCommentVNode("",!0)],64))),256))}}),KS=["data-theme","grid-unique-id"],qS={key:0,class:"overgrid-toolbar flex flex-row items-center justify-center h-12"},ZS={class:"flex flex-row gap-2 items-center justify-center overgrid-toolbar-right-section"},JS={class:"overgrid-scroller w-full max-w-full overflow-x-auto"},QS={class:"overgrid-table w-full rounded-xl overflow-hidden"},ek={class:"overgrid-header h-12"},tk={key:0,class:"overgrid-cell h-12 overgrid-extra-row-cell text-sm w-12"},rk={key:1,class:"overgrid-cell h-12 overgrid-checkbox-cell text-sm w-12"},nk=["onClick"],ak={class:"overgrid-column-title whitespace-nowrap"},ik={class:"flex flex-row items-center justify-center gap-2"},sk={key:0,class:"overgrid-orderer-container flex flex-row items-center justify-center"},ok={key:1,class:"overgrid-column-filters-container flex flex-row items-center justify-center"},lk={class:"overgrid-body"},fk={key:0,class:"overgrid-cell px-4 overgrid-btn-extra-row text-sm"},ck={key:1,class:"overgrid-cell px-4 overgrid-checkbox-cell text-sm"},uk={class:"overgrid-checkbox-label flex items-center justify-center"},hk={key:0,class:"overgrid-extra-row"},dk=["colspan"],mk={key:2,class:"overgrid-ui-loader absolute w-full h-full top-0 left-0 flex items-center justify-center"},pk={class:"overgrid-ui-loader-message"},xk=l.defineComponent({__name:"OverGrid",props:{config:{},customFormatters:{}},setup(e,{expose:t}){var p,_;const r=e;l.ref(document.documentElement.clientWidth);const n=l.ref(null),a=wt(r.config.locale||"en"),i=X4(),s=kS(r.config),o=FS(r.config.columnSelector,r.config.gridUniqueId),f=AS(r.config.currentPageExport),c=bS((p=r.config)!=null&&p.hideAboutWindow?r.config.hideAboutWindow:!1),u=CS(r.config.bulkOperations,r.config.idkey,(_=r.config.events)==null?void 0:_.onBulkSelectChanges),h=DS(r.config.extraRow,r.config.idkey),d=OS(r.config.rowHighlighter);l.onMounted(()=>{s.fetchRecords()});const m=l.computed(()=>{var x;return s.search.isToolbarOptionEnabled.value||u.isToolbarOptionEnabled.value||((x=r.config.refreshable)==null?void 0:x.manualActive)||o.isToolbarOptionEnabled.value||f.isToolbarOptionEnabled.value||c.isToolbarOptionEnabled.value||s.autoRefresh.isToolbarOptionEnabled.value||s.pagination.isToolbarOptionEnabled.value});return t({fields:i}),(x,g)=>{var S,E,B;return l.openBlock(),l.createElementBlock("div",{class:"overgrid relative w-full max-w-full","data-theme":r.config.theme||"default","grid-unique-id":r.config.gridUniqueId},[m.value?(l.openBlock(),l.createElementBlock("div",qS,[l.unref(s).search.isToolbarOptionEnabled.value?(l.openBlock(),l.createBlock(Y4,{key:0,searchConfig:r.config.search,searcher:l.unref(s).search},null,8,["searchConfig","searcher"])):l.createCommentVNode("",!0),g[1]||(g[1]=l.createElementVNode("span",{class:"overgrid-toolbar-spacer flex grow"},null,-1)),l.createElementVNode("div",ZS,[l.unref(u).isToolbarOptionEnabled.value?(l.openBlock(),l.createBlock(NS,{key:0,config:r.config.bulkOperations,bulkOperator:l.unref(u)},null,8,["config","bulkOperator"])):l.createCommentVNode("",!0),(S=r.config.refreshable)!=null&&S.manualActive?(l.openBlock(),l.createBlock(Wt,{key:1,onClick:l.unref(s).fetchRecords,customClass:"overgrid-btn-manual-refresh",variant:"primary",size:"sm",iconOnly:"",rounded:""},{iconLeft:l.withCtx(()=>[l.createVNode(dt,{type:"refresh",class:"w-4 h-4"})]),_:1},8,["onClick"])):l.createCommentVNode("",!0),l.unref(o).isToolbarOptionEnabled.value||l.unref(f).isToolbarOptionEnabled.value||l.unref(c).isToolbarOptionEnabled.value||l.unref(s).autoRefresh.isToolbarOptionEnabled.value||l.unref(s).pagination.isToolbarOptionEnabled.value?(l.openBlock(),l.createBlock(Ts,{key:2,orientation:"left",ref_key:"operationsDropdown",ref:n,class:"overgrid-operations-dropdown"},{iconButton:l.withCtx(()=>[l.createVNode(Wt,{customClass:"overgrid-btn-operations",variant:"primary",size:"sm",iconOnly:"",rounded:""},{iconLeft:l.withCtx(()=>[l.createVNode(dt,{type:"horizontal-dots",class:"w-4 h-4"})]),_:1})]),content:l.withCtx(()=>{var D,H,T,R,b;return[l.unref(o).isToolbarOptionEnabled.value||l.unref(f).isToolbarOptionEnabled.value||l.unref(c).isToolbarOptionEnabled.value?(l.openBlock(),l.createBlock(Qu,{key:0,config:r.config,columnSelector:l.unref(o),currentPageExporter:l.unref(f),aboutModal:l.unref(c),closeDropdown:(D=n.value)==null?void 0:D.close,ref:"baseOperations"},null,8,["config","columnSelector","currentPageExporter","aboutModal","closeDropdown"])):l.createCommentVNode("",!0),l.unref(s).autoRefresh.isToolbarOptionEnabled.value?(l.openBlock(),l.createBlock(sh,{key:1,autoRefresher:l.unref(s).autoRefresh,config:(H=r.config)==null?void 0:H.refreshable,closeDropdown:(T=n.value)==null?void 0:T.close},null,8,["autoRefresher","config","closeDropdown"])):l.createCommentVNode("",!0),l.unref(s).pagination.isToolbarOptionEnabled.value?(l.openBlock(),l.createBlock(uh,{key:2,paginator:l.unref(s).pagination,config:(R=r.config)==null?void 0:R.pagination,closeDropdown:(b=n.value)==null?void 0:b.close},null,8,["paginator","config","closeDropdown"])):l.createCommentVNode("",!0)]}),_:1},512)):l.createCommentVNode("",!0)])])):l.createCommentVNode("",!0),l.createElementVNode("div",JS,[l.createElementVNode("table",QS,[l.createElementVNode("thead",ek,[l.createElementVNode("tr",null,[r.config.extraRow&&r.config.extraRow.active&&r.config.idkey?(l.openBlock(),l.createElementBlock("th",tk,g[2]||(g[2]=[l.createElementVNode("label",{class:""},null,-1)]))):l.createCommentVNode("",!0),r.config.bulkOperations&&r.config.bulkOperations.active&&((E=r.config.bulkOperations.methods)==null?void 0:E.length)>0&&r.config.idkey?(l.openBlock(),l.createElementBlock("th",rk,g[3]||(g[3]=[l.createElementVNode("label",{class:""},null,-1)]))):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(l.unref(o).filter(l.unref(i).mappingVisible()),D=>{var H,T,R,b;return l.openBlock(),l.createElementBlock("th",{class:"overgrid-cell text-sm h-12",key:"head_"+D.key},[l.createElementVNode("div",{class:l.normalizeClass(["flex flex-row items-center overgrid-column-title-container h-12 px-4",{"overgrid-column-title-container-hoverable cursor-pointer":((H=r.config.orderConfiguration)==null?void 0:H.active)&&D.orderable}]),style:l.normalizeStyle({width:D.width||"auto"}),onClick:()=>l.unref(s).ordering.toggleField(D)},[l.createElementVNode("span",ak,l.toDisplayString(D.title),1),g[4]||(g[4]=l.createElementVNode("span",{class:"grow min-w-3"},null,-1)),l.createElementVNode("div",ik,[(T=r.config.orderConfiguration)!=null&&T.active&&D.orderable?(l.openBlock(),l.createElementBlock("div",sk,[l.createVNode(Iu,{orderer:l.unref(s).ordering,field:D,config:r.config.orderConfiguration},null,8,["orderer","field","config"])])):l.createCommentVNode("",!0),(R=r.config.columnFilters)!=null&&R.active&&((b=D.columnFilter)!=null&&b.active)?(l.openBlock(),l.createElementBlock("div",ok,[l.createVNode(zu,{columnFilter:l.unref(s).columnFilters,field:D,config:r.config.columnFilters},null,8,["columnFilter","field","config"])])):l.createCommentVNode("",!0)])],14,nk)])}),128))])]),l.createElementVNode("tbody",lk,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(l.unref(s).records.value,(D,H)=>{var T,R;return l.openBlock(),l.createElementBlock(l.Fragment,{key:"record_"+H},[l.createElementVNode("tr",{class:l.normalizeClass(["overgrid-row h-12",l.unref(d).getClassList(D)])},[r.config.extraRow&&r.config.extraRow.active&&r.config.idkey?(l.openBlock(),l.createElementBlock("td",fk,[l.createVNode(Wt,{onClick:b=>{var Y;return l.unref(h).toggleRow((Y=D[r.config.idkey])==null?void 0:Y.toString())},customClass:"overgrid-btn-manual-refresh",variant:"light",size:"sm",iconOnly:"",rounded:""},{iconLeft:l.withCtx(()=>{var b;return[l.unref(h).isRowOpened((b=D[r.config.idkey])==null?void 0:b.toString())?(l.openBlock(),l.createBlock(dt,{key:1,type:"chevron-down",class:"w-3 h-3"})):(l.openBlock(),l.createBlock(dt,{key:0,type:"chevron-right",class:"w-3 h-3"}))]}),_:2},1032,["onClick"])])):l.createCommentVNode("",!0),r.config.bulkOperations&&r.config.bulkOperations.active&&((T=r.config.bulkOperations.methods)==null?void 0:T.length)>0&&r.config.idkey?(l.openBlock(),l.createElementBlock("td",ck,[l.createElementVNode("label",uk,[l.createVNode(Ja,{value:(R=D[r.config.idkey])==null?void 0:R.toString(),modelValue:l.unref(u).checkedRows.value,"onUpdate:modelValue":g[0]||(g[0]=b=>l.unref(u).checkedRows.value=b),variant:"secondary"},null,8,["value","modelValue"])])])):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(l.unref(o).filter(l.unref(i).mappingVisible()),b=>(l.openBlock(),l.createElementBlock("td",{class:"overgrid-cell px-4 text-sm",key:"body_"+b.key},[b.formatter&&typeof b.formatter=="object"&&b.formatter.type?(l.openBlock(),l.createBlock(XS,{key:0,theme:r.config.theme?r.config.theme:"default",type:b.formatter.type,data:b.middleware?b.middleware(D[b.key],D):D[b.key],formatterConfig:b.formatter,rowid:r.config.idkey?D[r.config.idkey]:null,fieldKey:b.key,record:D,refreshGrid:()=>{l.unref(s).fetchRecords()},customFormatters:r.customFormatters,openExtraRow:Y=>{r.config.idkey&&l.unref(h).toggleRow(Y)}},null,8,["theme","type","data","formatterConfig","rowid","fieldKey","record","refreshGrid","customFormatters","openExtraRow"])):(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[l.createTextVNode(l.toDisplayString(b.middleware?b.middleware(D[b.key],D):D[b.key]),1)],64))]))),128))],2),l.createVNode(l.Transition,{name:"overgrid-anim-extra-row"},{default:l.withCtx(()=>{var b,Y,L;return[r.config.extraRow&&r.config.extraRow.active&&r.config.idkey?l.withDirectives((l.openBlock(),l.createElementBlock("tr",hk,[l.createElementVNode("td",{class:"overgrid-extra-row-cell",colspan:l.unref(o).filter(l.unref(i).mappingVisible()).length+(r.config.bulkOperations&&r.config.bulkOperations.active&&((b=r.config.bulkOperations.methods)==null?void 0:b.length)>0&&r.config.idkey?1:0)+1},[l.renderSlot(x.$slots,"extraRow",{record:D,extraSlotParams:(Y=r.config.extraRow)==null?void 0:Y.extraSlotParams})],8,dk)],512)),[[l.vShow,l.unref(h).isRowOpened((L=D[r.config.idkey])==null?void 0:L.toString())]]):l.createCommentVNode("",!0)]}),_:2},1024)],64)}),128))])])]),(B=r.config.pagination)!=null&&B.active?(l.openBlock(),l.createBlock(Ru,{key:1,paginator:l.unref(s).pagination},null,8,["paginator"])):l.createCommentVNode("",!0),l.unref(s).loading.value?(l.openBlock(),l.createElementBlock("div",mk,[l.createElementVNode("span",pk,l.toDisplayString(l.unref(a).l("loading_data")),1)])):l.createCommentVNode("",!0),l.createVNode(Ah,{mappingVisible:l.unref(i).mappingVisible(),columnSelector:l.unref(o)},null,8,["mappingVisible","columnSelector"]),l.createVNode(t4,{currentPageExporterConfig:r.config.currentPageExport,mappingVisible:l.unref(o).filter(l.unref(i).mappingVisible()),currentPageExporter:l.unref(f),currentRecords:l.unref(s).records},null,8,["currentPageExporterConfig","mappingVisible","currentPageExporter","currentRecords"]),l.createVNode(G4,{aboutModal:l.unref(c)},null,8,["aboutModal"]),l.createVNode(d4,{columnFilters:l.unref(s).columnFilters},null,8,["columnFilters"]),l.createVNode(E4,{columnFilters:l.unref(s).columnFilters},null,8,["columnFilters"]),l.createVNode(R4,{columnFilters:l.unref(s).columnFilters},null,8,["columnFilters"]),l.createVNode(V4,{columnFilters:l.unref(s).columnFilters},null,8,["columnFilters"]),l.createVNode(H4,{columnFilters:l.unref(s).columnFilters},null,8,["columnFilters"])],8,KS)}}});Qt.OverGrid=xk,Object.defineProperty(Qt,Symbol.toStringTag,{value:"Module"})});
|
|
151
|
+
`+i):n.stack=i}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=bn(this.defaults,r);const{transitional:n,paramsSerializer:a,headers:i}=r;n!==void 0&&vs.assertOptions(n,{silentJSONParsing:Rr.transitional(Rr.boolean),forcedJSONParsing:Rr.transitional(Rr.boolean),clarifyTimeoutError:Rr.transitional(Rr.boolean)},!1),a!=null&&(z.isFunction(a)?r.paramsSerializer={serialize:a}:vs.assertOptions(a,{encode:Rr.function,serialize:Rr.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),vs.assertOptions(r,{baseUrl:Rr.spelling("baseURL"),withXsrfToken:Rr.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let s=i&&z.merge(i.common,i[r.method]);i&&z.forEach(["delete","get","head","post","put","patch","common"],p=>{delete i[p]}),r.headers=Jt.concat(s,i);const o=[];let f=!0;this.interceptors.request.forEach(function(_){typeof _.runWhen=="function"&&_.runWhen(r)===!1||(f=f&&_.synchronous,o.unshift(_.fulfilled,_.rejected))});const c=[];this.interceptors.response.forEach(function(_){c.push(_.fulfilled,_.rejected)});let u,h=0,d;if(!f){const p=[xu.bind(this),void 0];for(p.unshift.apply(p,o),p.push.apply(p,c),d=p.length,u=Promise.resolve(r);h<d;)u=u.then(p[h++],p[h++]);return u}d=o.length;let m=r;for(h=0;h<d;){const p=o[h++],_=o[h++];try{m=p(m)}catch(x){_.call(this,x);break}}try{u=xu.call(this,m)}catch(p){return Promise.reject(p)}for(h=0,d=c.length;h<d;)u=u.then(c[h++],c[h++]);return u}getUri(t){t=bn(this.defaults,t);const r=ou(t.baseURL,t.url,t.allowAbsoluteUrls);return Jc(r,t.params,t.paramsSerializer)}};z.forEach(["delete","get","head","options"],function(t){Cn.prototype[t]=function(r,n){return this.request(bn(n||{},{method:t,url:r,data:(n||{}).data}))}}),z.forEach(["post","put","patch"],function(t){function r(n){return function(i,s,o){return this.request(bn(o||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:s}))}}Cn.prototype[t]=r(),Cn.prototype[t+"Form"]=r(!0)});let wS=class Tu{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const n=this;this.promise.then(a=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](a);n._listeners=null}),this.promise.then=a=>{let i;const s=new Promise(o=>{n.subscribe(o),i=o}).then(a);return s.cancel=function(){n.unsubscribe(i)},s},t(function(i,s,o){n.reason||(n.reason=new ca(i,s,o),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new Tu(function(a){t=a}),cancel:t}}};function yS(e){return function(r){return e.apply(null,r)}}function ES(e){return z.isObject(e)&&e.isAxiosError===!0}const ml={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ml).forEach(([e,t])=>{ml[t]=e});function vu(e){const t=new Cn(e),r=Ic(Cn.prototype.request,t);return z.extend(r,Cn.prototype,t,{allOwnKeys:!0}),z.extend(r,t,null,{allOwnKeys:!0}),r.create=function(a){return vu(bn(e,a))},r}const ot=vu(Ya);ot.Axios=Cn,ot.CanceledError=ca,ot.CancelToken=wS,ot.isCancel=nu,ot.VERSION=_u,ot.toFormData=ds,ot.AxiosError=ke,ot.Cancel=ot.CanceledError,ot.all=function(t){return Promise.all(t)},ot.spread=yS,ot.isAxiosError=ES,ot.mergeConfig=bn,ot.AxiosHeaders=Jt,ot.formToJSON=e=>tu(z.isHTMLForm(e)?new FormData(e):e),ot.getAdapter=pu.getAdapter,ot.HttpStatusCode=ml,ot.default=ot;const{Axios:Vk,AxiosError:Wk,CanceledError:$k,isCancel:Hk,CancelToken:zk,VERSION:Yk,all:Gk,Cancel:jk,isAxiosError:Xk,spread:Kk,toFormData:qk,AxiosHeaders:Zk,HttpStatusCode:Jk,formToJSON:Qk,getAdapter:eF,mergeConfig:tF}=ot,TS=e=>e?e(ot):ot,SS=(e,t,r,n)=>{let a=new URLSearchParams;return t&&t.active&&(t.page||t.page===0)&&t.pageSize&&(a.set("page",t.page.toString()),a.set("size",t.pageSize.toString())),e&&Array.isArray(e)&&e.length>0&&a.set("orders",JSON.stringify(e)),r&&Array.isArray(r)&&r.length>0&&a.set("filters",JSON.stringify(r)),n&&typeof n=="string"&&n.trim().length>0&&a.set("query",n.trim()),a},kS=e=>{const t=l.ref([]),r=K4(e.pagination,e.gridUniqueId),n=q4(e.orderConfiguration),a=J4(e.columnFilters),i=Q4(e.search),s=os(),o=l.ref(!1),f=TS(e.axiosConfigurator),c=async()=>{o.value=!0;let h=await f.get(e.endpoint,{params:e.serverTransformation?e.serverTransformation(n.rawState.value,r.state,a.filters.value,i.query.value):SS(n.rawState.value,r.state,a.filters.value,i.query.value),responseType:"json"});r.setByResponse(h.data);let d=e.rootkey&&h.data[e.rootkey]?h.data[e.rootkey]:h.data;if(Array.isArray(d)||(s.error('The response data is not an array. Please check your server response format and the "rootkey" configuration.'),d=[]),e.events&&e.events.onDataLoad){let m=e.events.onDataLoad(d);typeof m=="object"&&(d=m)}e.events&&e.events.onDataLoadWithFullResponse&&e.events.onDataLoadWithFullResponse(h),t.value=d||[],l.nextTick(function(){var m;e.events&&e.events.readyAfterRefresh&&((m=e.events)==null||m.readyAfterRefresh())}),o.value=!1},u=Z4(e.refreshable,e.gridUniqueId,c);return l.watch(()=>[r.state.page,r.state.pageSize],h=>{s.info("Page changed to:",h),c()}),l.watch(()=>n.rawState,()=>{c()},{deep:!0}),l.watch(()=>a.filters,()=>{c()},{deep:!0}),l.watch(()=>i.query.value,()=>{i.debounce(c)},{deep:!0}),{records:t,fetchRecords:c,pagination:r,ordering:n,loading:o,autoRefresh:u,columnFilters:a,search:i}},FS=(e,t)=>{const r=l.ref(!1),n=l.ref(null);function a(){r.value=!0}function i(){r.value=!1}function s(c){n.value=c,localStorage.setItem("overgrid-column-selector-"+t,JSON.stringify(n.value))}function o(c){return n.value===null?c:c.filter(u=>{var h;return(h=n.value)==null?void 0:h.includes(u.key)})}if(localStorage.getItem("overgrid-column-selector-"+t)){const c=JSON.parse(localStorage.getItem("overgrid-column-selector-"+t)||"[]");n.value=c.length>0?c:null}const f=l.computed(()=>!!(e&&e.active));return{showModal:a,closeModal:i,isModalShown:r,selectedFields:n,setColumns:s,filter:o,isToolbarOptionEnabled:f}},AS=e=>{const t=l.ref(!1);function r(){t.value=!0}function n(){t.value=!1}const a=l.computed(()=>!!(e!=null&&e.active&&(e!=null&&e.xlsxEnabled||e!=null&&e.csvEnabled)));return{showModal:r,closeModal:n,isModalShown:t,isToolbarOptionEnabled:a}},OS=e=>{const t=os();function r(n){return e!=null&&e.active?e!=null&&e.fn&&typeof e.fn=="function"&&(e!=null&&e.fn(n))?e.classList+" overgrid-row-highlighted"||"":(t.warn('Row highlighter configuration is not defined a function in "fn" key.'),""):""}return{getClassList:r}},bS=e=>{const t=l.ref(!1);function r(){t.value=!0}function n(){t.value=!1}const a=l.computed(()=>e!==!0);return{showModal:r,closeModal:n,isModalShown:t,isToolbarOptionEnabled:a}},CS=(e,t,r)=>{const n=l.ref([]),a=os();e&&e.active&&!t&&a.warn("Bulk operations are active, but no idkey is provided. Please provide an idkey to enable bulk operations."),l.watch(()=>n.value,()=>{r&&typeof r=="function"&&r(n.value)},{deep:!0});const i=l.computed(()=>{var s;return!!(e&&e.active&&((s=e.methods)==null?void 0:s.length)>0&&t)});return{checkedRows:n,isToolbarOptionEnabled:i}},NS=l.defineComponent({__name:"BulkOperationsDropdown",props:{config:{},bulkOperator:{}},setup(e){const t=wt(),r=e,n=l.ref("");function a(){let i;if(r.config){for(var s in r.config.methods)if(r.config.methods[s].key==n.value){i=r.config.methods[s].action;break}i&&i(r.bulkOperator.checkedRows.value,()=>{n.value="",r.bulkOperator.checkedRows.value=[]})}}return(i,s)=>{var o;return l.openBlock(),l.createBlock(is,{rounded:"full",variant:"primary",size:"sm",customClass:"overgrid-select min-w-32 sm:min-w-48",disabled:r.bulkOperator.checkedRows.value.length<=0,modelValue:n.value,"onUpdate:modelValue":s[0]||(s[0]=f=>n.value=f),options:(o=r.config)!=null&&o.methods?r.config.methods.map(f=>({key:f.key,text:f.title})):[],onChange:a,enableNullOption:!0,nullOptionText:l.unref(t).l("selected_rows",{selectedCount:r.bulkOperator.checkedRows.value.length.toString()})},null,8,["disabled","modelValue","options","nullOptionText"])}}}),DS=(e,t)=>{const r=os(),n=l.ref([]);e&&e.active&&!t&&r.warn("Extra row functionality is active in configuration, but no idkey is provided (its required). Please provide an idkey to enable extra row functionality.");function a(f){f&&n.value.push(f)}function i(f){if(!f)return;const c=n.value.indexOf(f);c!==-1&&n.value.splice(c,1)}function s(f){f&&(o(f)?i(f):a(f))}function o(f){return f?n.value.includes(f):!1}return{openedRows:n,isRowOpened:o,toggleRow:s,openRow:a,closeRow:i}},RS={key:1,class:"flex flex-row gap-1"},BS=l.defineComponent({__name:"EnumFormatter",props:{data:{},l:{type:Function},formatterConfig:{},rowid:{},fieldKey:{},record:{},refreshGrid:{type:Function},openExtraRow:{type:Function}},setup(e){return(t,r)=>{var n,a,i,s,o,f,c,u,h,d,m,p;return Array.isArray(t.data)?(l.openBlock(),l.createElementBlock("span",RS,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.data,(_,x)=>{var g,S,E,B,D,H,T,R,b,Y,L,K;return l.openBlock(),l.createElementBlock("span",{key:x,class:l.normalizeClass(((B=(E=(S=(g=t.formatterConfig)==null?void 0:g.config)==null?void 0:S.mapping)==null?void 0:E[_])==null?void 0:B.class)||"")},l.toDisplayString((R=(T=(H=(D=t.formatterConfig)==null?void 0:D.config)==null?void 0:H.mapping)==null?void 0:T[_])!=null&&R.title?(K=(L=(Y=(b=t.formatterConfig)==null?void 0:b.config)==null?void 0:Y.mapping)==null?void 0:L[_])==null?void 0:K.title:_),3)}),128))])):(l.openBlock(),l.createElementBlock("span",{key:0,class:l.normalizeClass(((s=(i=(a=(n=t.formatterConfig)==null?void 0:n.config)==null?void 0:a.mapping)==null?void 0:i[t.data])==null?void 0:s.class)||"")},l.toDisplayString((u=(c=(f=(o=t.formatterConfig)==null?void 0:o.config)==null?void 0:f.mapping)==null?void 0:c[t.data])!=null&&u.title?(p=(m=(d=(h=t.formatterConfig)==null?void 0:h.config)==null?void 0:d.mapping)==null?void 0:m[t.data])==null?void 0:p.title:t.data),3))}}}),MS=l.defineComponent({__name:"BooleanFormatter",props:{data:{},l:{type:Function},formatterConfig:{},rowid:{},fieldKey:{},record:{},refreshGrid:{type:Function},openExtraRow:{type:Function}},setup(e){return(t,r)=>{var n,a,i,s;return l.toDisplayString(t.data?(n=t.formatterConfig.config)!=null&&n.trueText?(a=t.formatterConfig.config)==null?void 0:a.trueText:t.l("yes"):(i=t.formatterConfig.config)!=null&&i.falseText?(s=t.formatterConfig.config)==null?void 0:s.falseText:t.l("no"))}}}),PS=l.defineComponent({__name:"ClassFormatter",props:{data:{},l:{type:Function},formatterConfig:{},rowid:{},fieldKey:{},record:{},refreshGrid:{type:Function},openExtraRow:{type:Function}},setup(e){return(t,r)=>{var n,a;return l.openBlock(),l.createElementBlock("span",{class:l.normalizeClass(((a=(n=t.formatterConfig)==null?void 0:n.config)==null?void 0:a.class)||"")},l.toDisplayString(t.data),3)}}}),IS=l.defineComponent({__name:"DateFormatter",props:{data:{},l:{type:Function},formatterConfig:{},rowid:{},fieldKey:{},record:{},refreshGrid:{type:Function},openExtraRow:{type:Function}},setup(e){return(t,r)=>{var n,a,i,s,o,f;return l.openBlock(),l.createElementBlock("span",{class:l.normalizeClass(((a=(n=t.formatterConfig)==null?void 0:n.config)==null?void 0:a.class)||"")},l.toDisplayString(l.unref(se)(t.data,((s=(i=t.formatterConfig)==null?void 0:i.config)==null?void 0:s.inputFormat)||"YYYY-MM-DD").format(((f=(o=t.formatterConfig)==null?void 0:o.config)==null?void 0:f.outputFormat)||"YYYY-MM-DD")),3)}}}),LS=l.defineComponent({__name:"NumberFormatter",props:{data:{},l:{type:Function},formatterConfig:{},rowid:{},fieldKey:{},record:{},refreshGrid:{type:Function},openExtraRow:{type:Function}},setup(e){const t=e,r=l.computed(()=>{var a,i,s,o,f,c,u,h,d,m,p,_,x,g;return t.data?parseFloat(t.data).toLocaleString((i=(a=t.formatterConfig)==null?void 0:a.config)!=null&&i.locale?(o=(s=t.formatterConfig)==null?void 0:s.config)==null?void 0:o.locale:"en-EN",{minimumFractionDigits:((c=(f=t.formatterConfig)==null?void 0:f.config)==null?void 0:c.minimumFractionDigits)||0,maximumFractionDigits:((h=(u=t.formatterConfig)==null?void 0:u.config)==null?void 0:h.maximumFractionDigits)||2,useGrouping:((m=(d=t.formatterConfig)==null?void 0:d.config)==null?void 0:m.useGrouping)!==void 0&&typeof((_=(p=t.formatterConfig)==null?void 0:p.config)==null?void 0:_.useGrouping)=="boolean"?(g=(x=t.formatterConfig)==null?void 0:x.config)==null?void 0:g.useGrouping:!0}):""});return(n,a)=>{var i,s;return l.openBlock(),l.createElementBlock("span",{class:l.normalizeClass(((s=(i=n.formatterConfig)==null?void 0:i.config)==null?void 0:s.class)||"")},l.toDisplayString(r.value),3)}}}),US={key:0,class:"flex flex-row items-center gap-1.5 pr-1"},VS=["innerHTML"],WS={key:1,class:"flex items-center ml-1.5"},$S={class:"!rounded-md font-inter w-full"},HS={class:"my-1 rounded-lg"},zS=["disabled","data-test-value","onClick"],YS=l.defineComponent({__name:"ActionButtonsFormatter",props:{data:{},l:{type:Function},formatterConfig:{},rowid:{},fieldKey:{},record:{},refreshGrid:{type:Function},openExtraRow:{type:Function}},setup(e){const t=e,r=l.computed(()=>{var i,s,o,f,c,u,h,d;return!t.formatterConfig||!((s=(i=t.formatterConfig)==null?void 0:i.config)!=null&&s.buttons)?[]:typeof((f=(o=t.formatterConfig)==null?void 0:o.config)==null?void 0:f.buttons)=="function"?(u=(c=t.formatterConfig)==null?void 0:c.config)==null?void 0:u.buttons(t.record):(d=(h=t.formatterConfig)==null?void 0:h.config)==null?void 0:d.buttons}),n=l.computed(()=>{var i=r.value,s=[];for(var o in i)i[o].dropdowned&&s.push(i[o]);return s}),a=l.computed(()=>{var i=r.value,s=[];for(var o in i)i[o].dropdowned||s.push(i[o]);return s});return(i,s)=>{var o,f,c,u;return l.openBlock(),l.createElementBlock("div",{"data-test":"",class:"flex flex-row overflow-y-visible",onMousedown:s[0]||(s[0]=l.withModifiers(()=>{},["stop"]))},[a.value.length>0?(l.openBlock(),l.createElementBlock("span",US,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(a.value,(h,d)=>(l.openBlock(),l.createBlock(Wt,{rounded:"",iconOnly:"",variant:h.variant,onClick:m=>{h.action(m,i.fieldKey,i.data,i.record)},disabled:h.disabled?h.disabled:!1,"data-test":"overgrid-action-button","data-test-value":h.testValueAttribute,key:d,customClass:h.classList},l.createSlots({_:2},[h.icon?{name:"iconLeft",fn:l.withCtx(()=>[l.createElementVNode("span",{innerHTML:h.icon},null,8,VS)]),key:"0"}:void 0]),1032,["variant","onClick","disabled","data-test-value","customClass"]))),128))])):l.createCommentVNode("",!0),n.value.length>0?(l.openBlock(),l.createElementBlock("span",WS,[l.createVNode(Ts,{orientation:(f=(o=t.formatterConfig)==null?void 0:o.config)!=null&&f.dropdownOrientation?(u=(c=t.formatterConfig)==null?void 0:c.config)==null?void 0:u.dropdownOrientation:"right"},{iconButton:l.withCtx(()=>[l.createVNode(Wt,{rounded:"",iconOnly:"",variant:"ghost","data-test":"overgrid-action-button-dropdown"},{iconLeft:l.withCtx(()=>s[1]||(s[1]=[l.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-4 min-w-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 5v.01M12 12v.01M12 19v.01M12 6a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2z"})],-1)])),_:1})]),content:l.withCtx(()=>[l.createElementVNode("div",$S,[l.createElementVNode("ul",HS,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(n.value,(h,d)=>(l.openBlock(),l.createElementBlock("li",{class:"hover:bg-black/5",key:d},[l.createElementVNode("a",{href:"javascript:void(null);",disabled:h.disabled?h.disabled:!1,"data-test-value":h.testValueAttribute,onClick:m=>{h.action(m,i.fieldKey,i.data,i.record)},class:"font-normal text-left flex flex-row items-center p-3 py-1.5 gap-1"},l.toDisplayString(h.title),9,zS)]))),128))])])]),_:1},8,["orientation"])])):l.createCommentVNode("",!0)],32)}}}),GS=["innerHTML"],jS=l.defineComponent({__name:"HtmlFormatter",props:{data:{},l:{type:Function},formatterConfig:{},rowid:{},fieldKey:{},record:{},refreshGrid:{type:Function},openExtraRow:{type:Function}},setup(e){const t=e;return(r,n)=>(l.openBlock(),l.createElementBlock("div",{innerHTML:t.data},null,8,GS))}}),XS=l.defineComponent({__name:"RootFormatter",props:{theme:{},type:{},data:{},rowid:{},formatterConfig:{},fieldKey:{},record:{},refreshGrid:{type:Function},openExtraRow:{type:Function},customFormatters:{}},setup(e){const t=wt(),r=e,n=[{name:"EnumFormatter",component:BS},{name:"BooleanFormatter",component:MS},{name:"ClassFormatter",component:PS},{name:"DateFormatter",component:IS},{name:"NumberFormatter",component:LS},{name:"ActionButtonsFormatter",component:YS},{name:"HtmlFormatter",component:jS}].concat(r.customFormatters||[]);return(a,i)=>(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(l.unref(n),s=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[a.type===s.name?(l.openBlock(),l.createBlock(l.resolveDynamicComponent(s.component),{key:0,l:l.unref(t).l,data:r.data,formatterConfig:a.formatterConfig,rowid:a.rowid,fieldKey:a.fieldKey,record:a.record,refreshGrid:a.refreshGrid,openExtraRow:a.openExtraRow},null,8,["l","data","formatterConfig","rowid","fieldKey","record","refreshGrid","openExtraRow"])):l.createCommentVNode("",!0)],64))),256))}}),KS=["data-theme","grid-unique-id"],qS={key:0,class:"overgrid-toolbar flex flex-row items-center justify-center h-12"},ZS={class:"flex flex-row gap-2 items-center justify-center overgrid-toolbar-right-section"},JS={class:"overgrid-scroller w-full max-w-full overflow-x-auto"},QS={class:"overgrid-table w-full rounded-xl overflow-hidden"},ek={class:"overgrid-header h-12"},tk={key:0,class:"overgrid-cell h-12 overgrid-extra-row-cell text-sm w-12"},rk={key:1,class:"overgrid-cell h-12 overgrid-checkbox-cell text-sm w-12"},nk=["onClick"],ak={class:"overgrid-column-title whitespace-nowrap"},ik={class:"flex flex-row items-center justify-center gap-2"},sk={key:0,class:"overgrid-orderer-container flex flex-row items-center justify-center"},ok={key:1,class:"overgrid-column-filters-container flex flex-row items-center justify-center"},lk={class:"overgrid-body"},fk={key:0,class:"overgrid-cell px-4 overgrid-btn-extra-row text-sm"},ck={key:1,class:"overgrid-cell px-4 overgrid-checkbox-cell text-sm"},uk={class:"overgrid-checkbox-label flex items-center justify-center"},hk={key:0,class:"overgrid-extra-row"},dk=["colspan"],mk={key:2,class:"overgrid-ui-loader absolute w-full h-full top-0 left-0 flex items-center justify-center"},pk={class:"overgrid-ui-loader-message"},xk=l.defineComponent({__name:"OverGrid",props:{config:{},customFormatters:{}},setup(e,{expose:t}){var p,_;const r=e;l.ref(document.documentElement.clientWidth);const n=l.ref(null),a=wt(r.config.locale||"en"),i=X4(),s=kS(r.config),o=FS(r.config.columnSelector,r.config.gridUniqueId),f=AS(r.config.currentPageExport),c=bS((p=r.config)!=null&&p.hideAboutWindow?r.config.hideAboutWindow:!1),u=CS(r.config.bulkOperations,r.config.idkey,(_=r.config.events)==null?void 0:_.onBulkSelectChanges),h=DS(r.config.extraRow,r.config.idkey),d=OS(r.config.rowHighlighter);l.onMounted(()=>{s.fetchRecords()});const m=l.computed(()=>{var x;return s.search.isToolbarOptionEnabled.value||u.isToolbarOptionEnabled.value||((x=r.config.refreshable)==null?void 0:x.manualActive)||o.isToolbarOptionEnabled.value||f.isToolbarOptionEnabled.value||c.isToolbarOptionEnabled.value||s.autoRefresh.isToolbarOptionEnabled.value||s.pagination.isToolbarOptionEnabled.value});return t({fields:i,records:s,refresh:s.fetchRecords}),(x,g)=>{var S,E,B;return l.openBlock(),l.createElementBlock("div",{class:"overgrid relative w-full max-w-full","data-theme":r.config.theme||"default","grid-unique-id":r.config.gridUniqueId},[m.value?(l.openBlock(),l.createElementBlock("div",qS,[l.unref(s).search.isToolbarOptionEnabled.value?(l.openBlock(),l.createBlock(Y4,{key:0,searchConfig:r.config.search,searcher:l.unref(s).search},null,8,["searchConfig","searcher"])):l.createCommentVNode("",!0),g[1]||(g[1]=l.createElementVNode("span",{class:"overgrid-toolbar-spacer flex grow"},null,-1)),l.createElementVNode("div",ZS,[l.unref(u).isToolbarOptionEnabled.value?(l.openBlock(),l.createBlock(NS,{key:0,config:r.config.bulkOperations,bulkOperator:l.unref(u)},null,8,["config","bulkOperator"])):l.createCommentVNode("",!0),(S=r.config.refreshable)!=null&&S.manualActive?(l.openBlock(),l.createBlock(Wt,{key:1,onClick:l.unref(s).fetchRecords,customClass:"overgrid-btn-manual-refresh",variant:"primary",size:"sm",iconOnly:"",rounded:""},{iconLeft:l.withCtx(()=>[l.createVNode(dt,{type:"refresh",class:"w-4 h-4"})]),_:1},8,["onClick"])):l.createCommentVNode("",!0),l.unref(o).isToolbarOptionEnabled.value||l.unref(f).isToolbarOptionEnabled.value||l.unref(c).isToolbarOptionEnabled.value||l.unref(s).autoRefresh.isToolbarOptionEnabled.value||l.unref(s).pagination.isToolbarOptionEnabled.value?(l.openBlock(),l.createBlock(Ts,{key:2,orientation:"left",ref_key:"operationsDropdown",ref:n,class:"overgrid-operations-dropdown"},{iconButton:l.withCtx(()=>[l.createVNode(Wt,{customClass:"overgrid-btn-operations",variant:"primary",size:"sm",iconOnly:"",rounded:""},{iconLeft:l.withCtx(()=>[l.createVNode(dt,{type:"horizontal-dots",class:"w-4 h-4"})]),_:1})]),content:l.withCtx(()=>{var D,H,T,R,b;return[l.unref(o).isToolbarOptionEnabled.value||l.unref(f).isToolbarOptionEnabled.value||l.unref(c).isToolbarOptionEnabled.value?(l.openBlock(),l.createBlock(Qu,{key:0,config:r.config,columnSelector:l.unref(o),currentPageExporter:l.unref(f),aboutModal:l.unref(c),closeDropdown:(D=n.value)==null?void 0:D.close,ref:"baseOperations"},null,8,["config","columnSelector","currentPageExporter","aboutModal","closeDropdown"])):l.createCommentVNode("",!0),l.unref(s).autoRefresh.isToolbarOptionEnabled.value?(l.openBlock(),l.createBlock(sh,{key:1,autoRefresher:l.unref(s).autoRefresh,config:(H=r.config)==null?void 0:H.refreshable,closeDropdown:(T=n.value)==null?void 0:T.close},null,8,["autoRefresher","config","closeDropdown"])):l.createCommentVNode("",!0),l.unref(s).pagination.isToolbarOptionEnabled.value?(l.openBlock(),l.createBlock(uh,{key:2,paginator:l.unref(s).pagination,config:(R=r.config)==null?void 0:R.pagination,closeDropdown:(b=n.value)==null?void 0:b.close},null,8,["paginator","config","closeDropdown"])):l.createCommentVNode("",!0)]}),_:1},512)):l.createCommentVNode("",!0)])])):l.createCommentVNode("",!0),l.createElementVNode("div",JS,[l.createElementVNode("table",QS,[l.createElementVNode("thead",ek,[l.createElementVNode("tr",null,[r.config.extraRow&&r.config.extraRow.active&&r.config.idkey?(l.openBlock(),l.createElementBlock("th",tk,g[2]||(g[2]=[l.createElementVNode("label",{class:""},null,-1)]))):l.createCommentVNode("",!0),r.config.bulkOperations&&r.config.bulkOperations.active&&((E=r.config.bulkOperations.methods)==null?void 0:E.length)>0&&r.config.idkey?(l.openBlock(),l.createElementBlock("th",rk,g[3]||(g[3]=[l.createElementVNode("label",{class:""},null,-1)]))):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(l.unref(o).filter(l.unref(i).mappingVisible()),D=>{var H,T,R,b;return l.openBlock(),l.createElementBlock("th",{class:"overgrid-cell text-sm h-12",key:"head_"+D.key},[l.createElementVNode("div",{class:l.normalizeClass(["flex flex-row items-center overgrid-column-title-container h-12 px-4",{"overgrid-column-title-container-hoverable cursor-pointer":((H=r.config.orderConfiguration)==null?void 0:H.active)&&D.orderable}]),style:l.normalizeStyle({width:D.width||"auto"}),onClick:()=>l.unref(s).ordering.toggleField(D)},[l.createElementVNode("span",ak,l.toDisplayString(D.title),1),g[4]||(g[4]=l.createElementVNode("span",{class:"grow min-w-3"},null,-1)),l.createElementVNode("div",ik,[(T=r.config.orderConfiguration)!=null&&T.active&&D.orderable?(l.openBlock(),l.createElementBlock("div",sk,[l.createVNode(Iu,{orderer:l.unref(s).ordering,field:D,config:r.config.orderConfiguration},null,8,["orderer","field","config"])])):l.createCommentVNode("",!0),(R=r.config.columnFilters)!=null&&R.active&&((b=D.columnFilter)!=null&&b.active)?(l.openBlock(),l.createElementBlock("div",ok,[l.createVNode(zu,{columnFilter:l.unref(s).columnFilters,field:D,config:r.config.columnFilters},null,8,["columnFilter","field","config"])])):l.createCommentVNode("",!0)])],14,nk)])}),128))])]),l.createElementVNode("tbody",lk,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(l.unref(s).records.value,(D,H)=>{var T,R;return l.openBlock(),l.createElementBlock(l.Fragment,{key:"record_"+H},[l.createElementVNode("tr",{class:l.normalizeClass(["overgrid-row h-12",l.unref(d).getClassList(D)])},[r.config.extraRow&&r.config.extraRow.active&&r.config.idkey?(l.openBlock(),l.createElementBlock("td",fk,[l.createVNode(Wt,{onClick:b=>{var Y;return l.unref(h).toggleRow((Y=D[r.config.idkey])==null?void 0:Y.toString())},customClass:"overgrid-btn-manual-refresh",variant:"light",size:"sm",iconOnly:"",rounded:""},{iconLeft:l.withCtx(()=>{var b;return[l.unref(h).isRowOpened((b=D[r.config.idkey])==null?void 0:b.toString())?(l.openBlock(),l.createBlock(dt,{key:1,type:"chevron-down",class:"w-3 h-3"})):(l.openBlock(),l.createBlock(dt,{key:0,type:"chevron-right",class:"w-3 h-3"}))]}),_:2},1032,["onClick"])])):l.createCommentVNode("",!0),r.config.bulkOperations&&r.config.bulkOperations.active&&((T=r.config.bulkOperations.methods)==null?void 0:T.length)>0&&r.config.idkey?(l.openBlock(),l.createElementBlock("td",ck,[l.createElementVNode("label",uk,[l.createVNode(Ja,{value:(R=D[r.config.idkey])==null?void 0:R.toString(),modelValue:l.unref(u).checkedRows.value,"onUpdate:modelValue":g[0]||(g[0]=b=>l.unref(u).checkedRows.value=b),variant:"secondary"},null,8,["value","modelValue"])])])):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(l.unref(o).filter(l.unref(i).mappingVisible()),b=>(l.openBlock(),l.createElementBlock("td",{class:"overgrid-cell px-4 text-sm",key:"body_"+b.key},[b.formatter&&typeof b.formatter=="object"&&b.formatter.type?(l.openBlock(),l.createBlock(XS,{key:0,theme:r.config.theme?r.config.theme:"default",type:b.formatter.type,data:b.middleware?b.middleware(D[b.key],D):D[b.key],formatterConfig:b.formatter,rowid:r.config.idkey?D[r.config.idkey]:null,fieldKey:b.key,record:D,refreshGrid:()=>{l.unref(s).fetchRecords()},customFormatters:r.customFormatters,openExtraRow:Y=>{r.config.idkey&&l.unref(h).toggleRow(Y)}},null,8,["theme","type","data","formatterConfig","rowid","fieldKey","record","refreshGrid","customFormatters","openExtraRow"])):(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[l.createTextVNode(l.toDisplayString(b.middleware?b.middleware(D[b.key],D):D[b.key]),1)],64))]))),128))],2),l.createVNode(l.Transition,{name:"overgrid-anim-extra-row"},{default:l.withCtx(()=>{var b,Y,L;return[r.config.extraRow&&r.config.extraRow.active&&r.config.idkey?l.withDirectives((l.openBlock(),l.createElementBlock("tr",hk,[l.createElementVNode("td",{class:"overgrid-extra-row-cell",colspan:l.unref(o).filter(l.unref(i).mappingVisible()).length+(r.config.bulkOperations&&r.config.bulkOperations.active&&((b=r.config.bulkOperations.methods)==null?void 0:b.length)>0&&r.config.idkey?1:0)+1},[l.renderSlot(x.$slots,"extraRow",{record:D,extraSlotParams:(Y=r.config.extraRow)==null?void 0:Y.extraSlotParams})],8,dk)],512)),[[l.vShow,l.unref(h).isRowOpened((L=D[r.config.idkey])==null?void 0:L.toString())]]):l.createCommentVNode("",!0)]}),_:2},1024)],64)}),128))])])]),(B=r.config.pagination)!=null&&B.active?(l.openBlock(),l.createBlock(Ru,{key:1,paginator:l.unref(s).pagination},null,8,["paginator"])):l.createCommentVNode("",!0),l.unref(s).loading.value?(l.openBlock(),l.createElementBlock("div",mk,[l.createElementVNode("span",pk,l.toDisplayString(l.unref(a).l("loading_data")),1)])):l.createCommentVNode("",!0),l.createVNode(Ah,{mappingVisible:l.unref(i).mappingVisible(),columnSelector:l.unref(o)},null,8,["mappingVisible","columnSelector"]),l.createVNode(t4,{currentPageExporterConfig:r.config.currentPageExport,mappingVisible:l.unref(o).filter(l.unref(i).mappingVisible()),currentPageExporter:l.unref(f),currentRecords:l.unref(s).records},null,8,["currentPageExporterConfig","mappingVisible","currentPageExporter","currentRecords"]),l.createVNode(G4,{aboutModal:l.unref(c)},null,8,["aboutModal"]),l.createVNode(d4,{columnFilters:l.unref(s).columnFilters},null,8,["columnFilters"]),l.createVNode(E4,{columnFilters:l.unref(s).columnFilters},null,8,["columnFilters"]),l.createVNode(R4,{columnFilters:l.unref(s).columnFilters},null,8,["columnFilters"]),l.createVNode(V4,{columnFilters:l.unref(s).columnFilters},null,8,["columnFilters"]),l.createVNode(H4,{columnFilters:l.unref(s).columnFilters},null,8,["columnFilters"])],8,KS)}}});Qt.OverGrid=xk,Object.defineProperty(Qt,Symbol.toStringTag,{value:"Module"})});
|