Files
pocketbase/ui/dist/assets/FieldsQueryParam-C2FWryom.js
T
2026-07-22 19:58:31 +03:00

8 lines
1.7 KiB
JavaScript

import{S as J,i as O,s as P,N as Q,b as R,d as j,t as z,a as A,r as D,f as G,h as e,m as K,n as t,k as c,u as i,c as U,o as V}from"./index-CFLdYWyn.js";function W(f){let n,o,u,d,v,s,p,y,g,F,a,S,_,w,b,E,C,r,$,L,q,H,M,N,m,T,k,B,x;return a=new Q({props:{content:"?fields=*,"+f[0]+"expand.relField.name"}}),{c(){n=t("tr"),o=t("td"),o.textContent="fields",u=c(),d=t("td"),d.innerHTML='<span class="label">String</span>',v=c(),s=t("td"),p=t("p"),y=i(`Comma separated string of the fields to return in the JSON response
`),g=t("em"),g.textContent="(by default returns all fields)",F=i(`. Ex.:
`),U(a.$$.fragment),S=c(),_=t("p"),_.innerHTML="<code>*</code> targets all keys from the specific depth level.",w=c(),b=t("p"),b.textContent="In addition, the following field modifiers are also supported:",E=c(),C=t("ul"),r=t("li"),$=t("code"),$.textContent=":excerpt(maxLength, withEllipsis?)",L=c(),q=t("br"),H=i(`
Returns a short plain text version of the field string value.
`),M=t("br"),N=i(`
Ex.:
`),m=t("code"),T=i("?fields=*,"),k=i(f[0]),B=i("description:excerpt(200,true)"),V(o,"id","query-page")},m(l,h){G(l,n,h),e(n,o),e(n,u),e(n,d),e(n,v),e(n,s),e(s,p),e(p,y),e(p,g),e(p,F),K(a,p,null),e(s,S),e(s,_),e(s,w),e(s,b),e(s,E),e(s,C),e(C,r),e(r,$),e(r,L),e(r,q),e(r,H),e(r,M),e(r,N),e(r,m),e(m,T),e(m,k),e(m,B),x=!0},p(l,[h]){const I={};h&1&&(I.content="?fields=*,"+l[0]+"expand.relField.name"),a.$set(I),(!x||h&1)&&D(k,l[0])},i(l){x||(A(a.$$.fragment,l),x=!0)},o(l){z(a.$$.fragment,l),x=!1},d(l){l&&R(n),j(a)}}}function X(f,n,o){let{prefix:u=""}=n;return f.$$set=d=>{"prefix"in d&&o(0,u=d.prefix)},[u]}class Z extends J{constructor(n){super(),O(this,n,X,W,P,{prefix:0})}}export{Z as F};