@devtable/settings-form 13.44.2 → 14.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- const o = "13.44.2";
1
+ const o = "14.0.0";
2
2
  export {
3
3
  o as version
4
4
  };
@@ -1984,7 +1984,7 @@ function Br({
1984
1984
  focus: !1
1985
1985
  }, label: n("datasource.cant_edit.preset"), children: /* @__PURE__ */ e.jsx(O, { size: s.button.size, color: "gray", variant: "light", leftSection: /* @__PURE__ */ e.jsx(Wt, { size: 16 }), sx: {
1986
1986
  transform: "none !important"
1987
- }, children: n("common.actions.edit") }) }) : a.type !== "http" ? /* @__PURE__ */ e.jsx(at, { withArrow: !0, events: {
1987
+ }, children: n("common.actions.edit") }) }) : a.type !== "http" && a.type !== "merico_metric_system" ? /* @__PURE__ */ e.jsx(at, { withArrow: !0, events: {
1988
1988
  hover: !0,
1989
1989
  touch: !1,
1990
1990
  focus: !1
@@ -2962,7 +2962,7 @@ const Ea = ze("DataSourceList", ({
2962
2962
  ] })
2963
2963
  ] })
2964
2964
  ] });
2965
- }), Pa = () => import("./package-1832d66f.mjs").then(({
2965
+ }), Pa = () => import("./package-d6e15ce5.mjs").then(({
2966
2966
  version: a
2967
2967
  }) => (console.log(`[@devtable/settings-form] version: ${a}`), a));
2968
2968
  export {
@@ -33,4 +33,4 @@ React keys must be passed directly to JSX without using spread:
33
33
  `),post:["function post_process(res, utils) {"," // your code goes here"," return data","}"].join(`
34
34
  `)};function En({submit:r,styles:t=V}){const{t:s}=y.useTranslation(),{control:n,setValue:i,handleSubmit:l}=j.useForm({defaultValues:{type:"http",key:"",config:{host:"",processing:{pre:Ce.pre,post:Ce.post}}}});return e.jsx(o.Box,{mx:"auto",children:e.jsxs("form",{onSubmit:l(r),children:[e.jsx(j.Controller,{name:"key",control:n,render:({field:c})=>e.jsx(o.TextInput,{mb:t.spacing,size:t.size,required:!0,label:s("common.name"),placeholder:s("common.name_placeholder"),...c})}),e.jsx(o.Divider,{label:s("datasource.connection_info"),labelPosition:"center"}),e.jsx(j.Controller,{name:"config.host",control:n,render:({field:c})=>e.jsx(o.TextInput,{mb:t.spacing,size:t.size,label:s("datasource.http.base_url"),sx:{flexGrow:1},...c})}),e.jsxs(o.Group,{grow:!0,children:[e.jsx(j.Controller,{name:"config.processing.pre",control:n,render:({field:c})=>e.jsx(we,{label:s("datasource.http.processing.pre.label"),modalTitle:s("datasource.http.processing.pre.description"),defaultValue:Ce.pre,...c,styles:t})}),e.jsx(j.Controller,{name:"config.processing.post",control:n,render:({field:c})=>e.jsx(we,{label:s("datasource.http.processing.post.label"),modalTitle:s("datasource.http.processing.post.description"),defaultValue:Ce.post,...c,styles:t})})]}),e.jsx(o.Group,{justify:"flex-end",mt:t.spacing,children:e.jsx(W,{size:t.button.size})})]})})}function An({postSubmit:r,styles:t=V}){const{t:s}=y.useTranslation(),[n,i]=P.useState("postgresql"),l=async({type:p,key:h,config:b})=>{T.showNotification({id:"for-creating",title:s("common.state.pending"),message:s("datasource.state.adding"),loading:!0,autoClose:!1});try{console.log({type:p,key:h,config:b}),await R.datasource.create(p,h,b),T.updateNotification({id:"for-creating",title:s("common.state.successful"),message:s("datasource.state.added"),color:"green",autoClose:!0}),r()}catch(v){console.error(v),T.updateNotification({id:"for-creating",title:s("common.state.failed"),message:v.message,color:"red",autoClose:!0})}},c=p=>{i(p)},u=n==="postgresql"||n==="mysql",d=n==="http";return e.jsxs(o.Box,{mx:"auto",children:[e.jsx(o.SegmentedControl,{fullWidth:!0,mb:t.spacing,size:t.size,data:[{label:"PostgreSQL",value:"postgresql"},{label:"MySQL",value:"mysql"},{label:"HTTP",value:"http"}],value:n,onChange:c}),u&&e.jsx(_n,{styles:t}),u&&e.jsx(Dn,{submit:l,styles:t,type:n}),d&&e.jsx(En,{submit:l,styles:t})]})}function ct({onSuccess:r,styles:t=V}){const{t:s}=y.useTranslation(),[n,i]=P.useState(!1),l=()=>i(!0),c=()=>i(!1),u=()=>{r(),c()};return e.jsxs(e.Fragment,{children:[e.jsx(o.Modal,{opened:n,onClose:()=>i(!1),title:s("datasource.add"),trapFocus:!0,onDragStart:d=>{d.stopPropagation()},children:e.jsx(An,{postSubmit:u,styles:t})}),e.jsx(o.Button,{size:t.button.size,onClick:l,leftSection:e.jsx(A.IconPlaylistAdd,{size:20}),children:s("datasource.add")})]})}const Pn={http:"HTTP",mysql:"MySQL",postgresql:"PostgreSQL",merico_metric_system:"Merico Metric System"},On={http:e.jsx(A.IconNetwork,{}),mysql:e.jsx(A.IconBrandMysql,{}),postgresql:e.jsx(A.IconDatabase,{}),merico_metric_system:e.jsx(A.IconTopologyRing3,{})};function $n({type:r}){return e.jsxs(o.Group,{children:[e.jsx(o.ActionIcon,{variant:"subtle",size:"xs",sx:{transform:"none !important"},children:On[r]}),e.jsx(o.Text,{sx:{cusor:"default",userSelect:"none"},children:Pn[r]})]})}function dt({id:r,name:t,isProtected:s,onSuccess:n,styles:i=V}){const{t:l}=y.useTranslation(),c=ae.useModals(),u=async()=>{r&&(T.showNotification({id:"for-deleting",title:l("common.state.pending"),message:l("datasource.state.deleting"),loading:!0,autoClose:!1}),await R.datasource.delete(r),T.updateNotification({id:"for-deleting",title:l("common.state.successful"),message:l("datasource.state.deleted",{name:t}),color:"green",autoClose:!0}),n())},d=()=>c.openConfirmModal({title:l("datasource.delete.title"),children:e.jsx(o.Text,{size:i.size,children:l("datasource.delete.hint")}),labels:{confirm:l("common.actions.confirm"),cancel:l("common.actions.cancel")},onCancel:()=>console.log("Cancel"),onConfirm:u,cancelProps:{size:i.button.size},confirmProps:{color:"red",size:i.button.size}});return s?e.jsx(o.Tooltip,{withArrow:!0,events:{hover:!0,touch:!1,focus:!1},label:l("datasource.delete.cant_delete_preset"),children:e.jsx(o.Button,{size:i.button.size,color:"gray",variant:"light",leftSection:e.jsx(A.IconLock,{size:16}),sx:{transform:"none !important"},children:l("common.actions.delete")})}):e.jsx(o.Button,{size:i.button.size,color:"red",onClick:d,leftSection:e.jsx(A.IconTrash,{size:16}),children:l("common.actions.delete")})}const ft={pre:["function pre_process({ method, url, params, headers, data }, utils) {"," // your code goes here"," return { method, url, params, headers, data }","}"].join(`
35
35
  `),post:["function post_process(resp, utils) {"," return resp.data","}"].join(`
36
- `)};function Mn({name:r,config:t,submit:s,styles:n=V}){const{t:i}=y.useTranslation(),{control:l,handleSubmit:c}=j.useForm({defaultValues:{config:t}});return e.jsx(o.Box,{mx:"auto",children:e.jsxs("form",{onSubmit:c(s),children:[e.jsx(o.TextInput,{mb:n.spacing,size:n.size,required:!0,label:i("common.name"),value:r,readOnly:!0}),e.jsx(o.Divider,{label:i("datasource.connection_info"),labelPosition:"center"}),e.jsx(j.Controller,{name:"config.host",control:l,render:({field:u})=>e.jsx(o.TextInput,{mb:n.spacing,size:n.size,label:i("datasource.http.base_url"),sx:{flexGrow:1},...u})}),e.jsxs(o.Group,{grow:!0,children:[e.jsx(j.Controller,{name:"config.processing.pre",control:l,render:({field:u})=>e.jsx(we,{label:i("datasource.http.processing.pre.label"),modalTitle:i("datasource.http.processing.pre.description"),defaultValue:ft.pre,...u,styles:n})}),e.jsx(j.Controller,{name:"config.processing.post",control:l,render:({field:u})=>e.jsx(we,{label:i("datasource.http.processing.post.label"),modalTitle:i("datasource.http.processing.post.description"),defaultValue:ft.post,...u,styles:n})})]}),e.jsx(o.Group,{justify:"flex-end",mt:n.spacing,children:e.jsx(W,{size:n.button.size})})]})})}function In({dataSource:r,postSubmit:t,styles:s=V}){const{t:n}=y.useTranslation(),i=async({config:l})=>{T.showNotification({id:"for-updating",title:n("common.state.pending"),message:n("datasource.state.updating"),loading:!0,autoClose:!1});try{console.log({config:l}),await R.datasource.update(r.id,l),T.updateNotification({id:"for-updating",title:n("common.state.successful"),message:n("datasource.state.updated"),color:"green",autoClose:!0}),t()}catch(c){T.updateNotification({id:"for-updating",title:n("common.state.failed"),message:c.message,color:"red",autoClose:!0})}};return r.config?e.jsx(o.Box,{mx:"auto",children:e.jsx(Mn,{name:r.key,config:r.config,submit:i,styles:s})}):(console.error(new Error("unexpected empty config of a http datasource")),null)}function Rn({dataSource:r,onSuccess:t,styles:s=V}){const{t:n}=y.useTranslation(),[i,l]=P.useState(!1),c=()=>l(!0),u=()=>l(!1),d=()=>{t(),u()};return r.is_preset?e.jsx(o.Tooltip,{withArrow:!0,events:{hover:!0,touch:!1,focus:!1},label:n("datasource.cant_edit.preset"),children:e.jsx(o.Button,{size:s.button.size,color:"gray",variant:"light",leftSection:e.jsx(A.IconLock,{size:16}),sx:{transform:"none !important"},children:n("common.actions.edit")})}):r.type!=="http"?e.jsx(o.Tooltip,{withArrow:!0,events:{hover:!0,touch:!1,focus:!1},label:n("datasource.cant_edit.db"),children:e.jsx(o.Button,{size:s.button.size,color:"gray",variant:"light",leftSection:e.jsx(A.IconEdit,{size:16}),sx:{transform:"none !important"},children:n("common.actions.edit")})}):e.jsxs(e.Fragment,{children:[e.jsx(o.Modal,{opened:i,onClose:()=>l(!1),title:n("datasource.edit"),trapFocus:!0,onDragStart:p=>{p.stopPropagation()},children:e.jsx(In,{dataSource:r,postSubmit:d,styles:s})}),e.jsx(o.Button,{size:s.button.size,color:"blue",onClick:c,leftSection:e.jsx(A.IconEdit,{size:16}),children:n("common.actions.edit")})]})}const Ln=be("DataSourceList",({styles:r=V})=>{const{t}=y.useTranslation(),{data:s=[],loading:n,refresh:i}=K.useRequest(async()=>{const{data:l}=await R.datasource.list();return l},{refreshDeps:[]});return e.jsxs(e.Fragment,{children:[e.jsx(o.Group,{pt:r.spacing,justify:"flex-end",children:e.jsx(ct,{onSuccess:i})}),e.jsxs(o.Box,{mt:r.spacing,sx:{position:"relative"},children:[e.jsx(o.LoadingOverlay,{visible:n}),e.jsxs(o.Table,{horizontalSpacing:r.spacing,verticalSpacing:r.spacing,fz:r.size,highlightOnHover:!0,children:[e.jsx(o.Table.Thead,{children:e.jsxs(o.Table.Tr,{children:[e.jsx(o.Table.Th,{children:t("common.type")}),e.jsx(o.Table.Th,{children:t("common.name")}),e.jsx(o.Table.Th,{children:t("common.action")})]})}),e.jsx(o.Table.Tbody,{children:s.map(l=>{const{id:c,key:u,type:d,is_preset:p}=l,h=d==="merico_metric_system";return e.jsxs(o.Table.Tr,{children:[e.jsx(o.Table.Td,{width:230,children:e.jsx($n,{type:d})}),e.jsx(o.Table.Td,{children:u}),e.jsx(o.Table.Td,{width:400,children:e.jsxs(o.Group,{justify:"flex-start",children:[e.jsx(Rn,{dataSource:l,onSuccess:i,styles:r}),e.jsx(dt,{isProtected:p||h,id:c,name:u,onSuccess:i,styles:r})]})})]},u)})})]})]})]})}),qn=({option:r,...t})=>{const{label:s,value:n,description:i}=r;return e.jsxs(o.Stack,{gap:2,...t,children:[e.jsx(o.Text,{size:"sm",children:s}),e.jsx(o.Text,{size:"xs",c:"dimmed",className:"role-description",children:i})]})},qe=P.forwardRef(({styles:r,value:t,onChange:s},n)=>{const{t:i}=y.useTranslation(),{data:l=[],loading:c}=K.useRequest(async()=>(await R.role.list()).map(d=>({label:d.id,value:d.id,description:d.description,disabled:d.id==="SUPERADMIN"})),{refreshDeps:[]});return e.jsx(o.Select,{ref:n,mb:r.spacing,size:r.size,required:!0,label:i("role.label"),renderOption:qn,data:l,disabled:c,styles:()=>({item:{"&[data-selected]":{"&, &:hover":{".role-description":{color:"rgba(255,255,255,.8)"}}}}}),value:t,onChange:u=>u!==null&&s(u),comboboxProps:{withinPortal:!0},maxDropdownHeight:500})}),H={size:"sm",spacing:"md",button:{size:"xs"}};function kn({postSubmit:r,styles:t=H,initialRoleID:s}){const{t:n}=y.useTranslation(),{control:i,handleSubmit:l}=j.useForm({defaultValues:{name:"",email:"",role_id:s,password:""}}),c=async({name:u,email:d,password:p,role_id:h})=>{try{T.showNotification({id:"for-creating",title:n("common.state.pending"),message:n("account.state.adding"),loading:!0,autoClose:!1}),await R.account.create(u,d,p,h),T.updateNotification({id:"for-creating",title:n("common.state.successful"),message:n("account.state.added"),color:"green",autoClose:!0,loading:!1}),r()}catch(b){T.updateNotification({id:"for-creating",title:n("common.state.failed"),message:b.message,color:"red",autoClose:!0,loading:!1})}};return e.jsx(o.Box,{mx:"auto",mb:10,children:e.jsxs("form",{onSubmit:l(c),children:[e.jsx(j.Controller,{name:"name",control:i,render:({field:u})=>e.jsx(o.TextInput,{mb:t.spacing,size:t.size,required:!0,label:n("account.username"),...u})}),e.jsx(j.Controller,{name:"email",control:i,render:({field:u})=>e.jsx(o.TextInput,{mb:t.spacing,size:t.size,required:!0,label:n("account.email"),...u})}),e.jsx(j.Controller,{name:"password",control:i,render:({field:u})=>e.jsx(o.PasswordInput,{mb:t.spacing,size:t.size,required:!0,label:n("account.password"),description:n("account.password_hint"),...u})}),e.jsx(j.Controller,{name:"role_id",control:i,render:({field:u})=>e.jsx(qe,{styles:t,...u})}),e.jsx(o.Group,{justify:"flex-end",mt:t.spacing,children:e.jsx(W,{size:t.button.size})})]})})}function pt({onSuccess:r,styles:t=H,initialRoleID:s}){const{t:n}=y.useTranslation(),[i,l]=P.useState(!1),c=()=>l(!0),u=()=>l(!1),d=()=>{r(),u()};return e.jsxs(e.Fragment,{children:[e.jsx(o.Modal,{opened:i,onClose:()=>l(!1),title:n("account.add"),trapFocus:!0,onDragStart:p=>{p.stopPropagation()},children:e.jsx(kn,{postSubmit:d,styles:t,initialRoleID:s})}),e.jsx(o.Button,{size:t.button.size,onClick:c,leftSection:e.jsx(A.IconPlaylistAdd,{size:20}),children:n("account.add")})]})}function mt({id:r,name:t,onSuccess:s,styles:n=H}){const{t:i}=y.useTranslation(),l=ae.useModals(),c=async()=>{if(r){T.showNotification({id:"for-deleting",title:i("common.state.pending"),message:i("account.state.deleting"),loading:!0,autoClose:!1});try{await R.account.delete(r),T.updateNotification({id:"for-deleting",title:i("common.state.successful"),message:i("account.state.deleted",{name:t}),color:"green",autoClose:!0,loading:!1}),s()}catch(d){T.updateNotification({id:"for-deleting",title:i("common.state.failed"),message:d.message,color:"red",autoClose:!0,loading:!1})}}},u=()=>l.openConfirmModal({title:i("account.delete"),labels:{confirm:i("common.actions.confirm"),cancel:i("common.actions.cancel")},onCancel:()=>console.log("Cancel"),onConfirm:c,cancelProps:{size:n.button.size},confirmProps:{color:"red",size:n.button.size}});return e.jsx(o.Button,{size:n.button.size,color:"red",onClick:u,leftSection:e.jsx(A.IconTrash,{size:20}),children:i("common.actions.delete")})}function Nn({id:r,name:t,email:s,role_id:n,postSubmit:i,styles:l=H}){const{t:c}=y.useTranslation(),{control:u,handleSubmit:d,watch:p}=j.useForm({defaultValues:{name:t,email:s,role_id:n,reset_password:!1,new_password:""}}),h=async({name:C,email:q,role_id:Y,reset_password:X,new_password:k})=>{try{T.showNotification({id:"for-updating",title:c("common.state.pending"),message:c("account.state.updating"),loading:!0,autoClose:!1}),await R.account.edit({id:r,name:C.trim(),email:q.trim(),role_id:Y,reset_password:X,new_password:k.trim()}),T.updateNotification({id:"for-updating",title:c("common.state.successful"),message:c("account.state.updated"),color:"green",autoClose:!0,loading:!1}),i()}catch(D){T.updateNotification({id:"for-updating",title:c("common.state.failed"),message:D.message,color:"red",autoClose:!0,loading:!1})}},[b,v]=p(["reset_password","new_password"]);return e.jsx(o.Box,{mx:"auto",mb:10,children:e.jsxs("form",{onSubmit:d(h),children:[e.jsx(j.Controller,{name:"name",control:u,render:({field:C})=>e.jsx(o.TextInput,{mb:l.spacing,size:l.size,required:!0,label:c("account.username"),...C})}),e.jsx(j.Controller,{name:"email",control:u,render:({field:C})=>e.jsx(o.TextInput,{mb:l.spacing,size:l.size,required:!0,label:c("account.email"),...C})}),e.jsx(j.Controller,{name:"role_id",control:u,render:({field:C})=>e.jsx(qe,{styles:l,...C})}),e.jsx(o.Divider,{my:20,variant:"dashed",label:"",labelPosition:"center"}),e.jsx(j.Controller,{name:"reset_password",control:u,render:({field:C})=>e.jsx(o.Switch,{mb:l.spacing,size:l.size,label:c("account.reset_password"),checked:C.value,onChange:q=>C.onChange(q.currentTarget.checked),styles:{label:{verticalAlign:"middle"}}})}),b&&e.jsx(j.Controller,{name:"new_password",control:u,render:({field:C})=>e.jsx(o.PasswordInput,{autoComplete:"off",mb:l.spacing,size:l.size,required:!0,description:c("account.password_hint"),label:c("account.new_password"),...C})}),e.jsx(o.Group,{justify:"flex-end",mt:l.spacing,children:e.jsx(W,{size:l.button.size})})]})})}function Fn({account:r,onSuccess:t,styles:s=H}){const{t:n}=y.useTranslation(),[i,l]=P.useState(!1),c=()=>l(!0),u=()=>l(!1),d=()=>{t(),u()};return e.jsxs(e.Fragment,{children:[e.jsx(o.Modal,{opened:i,onClose:()=>l(!1),title:n("account.editing_xx",{name:r.name}),trapFocus:!0,onDragStart:p=>{p.stopPropagation()},children:e.jsx(Nn,{...r,postSubmit:d,styles:s})}),e.jsx(o.Button,{size:s.button.size,onClick:c,leftSection:e.jsx(A.IconEdit,{size:20}),children:n("common.actions.edit")})]})}const Bn=be("AccountList",({styles:r=H})=>{var u;const{t}=y.useTranslation(),{data:s=[],loading:n,refresh:i}=K.useRequest(async()=>{const{data:d}=await R.account.list();return d},{refreshDeps:[]}),{data:l=[],loading:c}=K.useRequest(async()=>(await R.role.list()).map(p=>({label:p.id,value:p.id,description:p.description,disabled:p.id==="SUPERADMIN"})),{refreshDeps:[]});return e.jsxs(e.Fragment,{children:[e.jsx(o.Group,{pt:r.spacing,justify:"flex-end",children:e.jsx(pt,{onSuccess:i,initialRoleID:((u=l==null?void 0:l[0])==null?void 0:u.value)??"INACTIVE"})}),e.jsxs(o.Box,{mt:r.spacing,sx:{position:"relative"},children:[e.jsx(o.LoadingOverlay,{visible:n||c}),e.jsxs(o.Table,{horizontalSpacing:r.spacing,verticalSpacing:r.spacing,fz:r.size,highlightOnHover:!0,children:[e.jsx(o.Table.Thead,{children:e.jsxs(o.Table.Tr,{children:[e.jsx(o.Table.Th,{children:t("account.username")}),e.jsx(o.Table.Th,{children:t("account.email")}),e.jsx(o.Table.Th,{children:t("role.label")}),e.jsx(o.Table.Th,{children:t("common.action")})]})}),e.jsx(o.Table.Tbody,{children:s.map(d=>{const{id:p,name:h,email:b,role_id:v}=d;return e.jsxs(o.Table.Tr,{children:[e.jsx(o.Table.Td,{width:200,children:h}),e.jsx(o.Table.Td,{width:200,children:b}),e.jsx(o.Table.Td,{width:200,children:v}),e.jsx(o.Table.Td,{width:200,children:e.jsxs(o.Group,{justify:"flex-start",children:[e.jsx(Fn,{account:d,onSuccess:i}),e.jsx(mt,{id:p,name:h,onSuccess:i})]})})]},p)})})]})]})]})});function Un({postSubmit:r,styles:t=H}){const{t:s}=y.useTranslation(),{control:n,handleSubmit:i}=j.useForm({defaultValues:{name:"",password:""}}),l=async({name:c,password:u})=>{try{T.showNotification({id:"for-login",title:s("common.state.pending"),message:s("account.state.logging_in"),loading:!0,autoClose:!1});const d=await R.account.login(c.trim(),u.trim());window.localStorage.setItem("token",d.token),T.updateNotification({id:"for-login",title:s("common.state.successful"),message:s("account.state.logged_in"),color:"green",autoClose:!0,loading:!1}),r(d)}catch(d){T.updateNotification({id:"for-login",title:s("common.state.failed"),message:d.message,color:"red",autoClose:!0,loading:!1})}};return e.jsx(o.Box,{mx:"auto",children:e.jsxs("form",{onSubmit:i(l),children:[e.jsx(j.Controller,{name:"name",control:n,render:({field:c})=>e.jsx(o.TextInput,{mb:t.spacing,size:t.size,required:!0,label:s("account.username"),...c})}),e.jsx(j.Controller,{name:"password",control:n,render:({field:c})=>e.jsx(o.PasswordInput,{mb:t.spacing,size:t.size,required:!0,label:s("account.password"),...c})}),e.jsx(o.Group,{justify:"flex-end",mt:t.spacing,children:e.jsx(W,{size:t.button.size})})]})})}const Yn=be("Login",({styles:r=H,onSuccess:t})=>e.jsx(e.Fragment,{children:e.jsx(o.Box,{mt:r.spacing,sx:{position:"relative"},children:e.jsx(Un,{styles:r,postSubmit:t})})})),De={size:"sm",spacing:"md",button:{size:"xs"}};function Vn({postSubmit:r,styles:t=De,initialRoleID:s}){const{t:n}=y.useTranslation(),{control:i,handleSubmit:l}=j.useForm({defaultValues:{name:"",role_id:s}}),c=async({name:u,role_id:d})=>{try{T.showNotification({id:"for-creating",title:n("common.state.pending"),message:n("api_key.state.adding"),loading:!0,autoClose:!1});const{app_id:p,app_secret:h}=await R.api_key.create(u,d);T.updateNotification({id:"for-creating",title:n("common.state.successful"),message:n("api_key.state.added"),color:"green",autoClose:!0,loading:!1}),r(p,h)}catch(p){T.updateNotification({id:"for-creating",title:n("common.state.failed"),message:p.message,color:"red",autoClose:!0,loading:!1})}};return e.jsx(o.Box,{mx:"auto",mb:10,children:e.jsxs("form",{onSubmit:l(c),children:[e.jsx(j.Controller,{name:"name",control:i,render:({field:u})=>e.jsx(o.TextInput,{mb:t.spacing,size:t.size,required:!0,label:n("common.name"),...u})}),e.jsx(j.Controller,{name:"role_id",control:i,render:({field:u})=>e.jsx(qe,{styles:t,...u})}),e.jsx(o.Group,{justify:"flex-end",mt:t.spacing,children:e.jsx(W,{size:t.button.size})})]})})}function ht({onSuccess:r,styles:t=De,initialRoleID:s}){const{t:n}=y.useTranslation(),i=ae.useModals(),[l,c]=P.useState(!1),u=()=>c(!0),d=()=>c(!1),p=(h,b)=>{d(),i.openModal({title:n("api_key.save.title"),children:e.jsxs(o.Stack,{children:[e.jsx(o.Text,{size:"sm",c:"dimmed",children:n("api_key.save.warn")}),e.jsx(o.TextInput,{defaultValue:h,disabled:!0,label:n("api_key.app_id"),styles:{input:{cursor:"text !important"}}}),e.jsx(o.TextInput,{defaultValue:b,disabled:!0,label:n("api_key.app_secret"),styles:{input:{cursor:"text !important"}}}),e.jsx(o.Button,{size:"sm",onClick:()=>{ae.closeAllModals()},children:n("api_key.save.saved")})]}),onClose:()=>{r()}})};return e.jsxs(e.Fragment,{children:[e.jsx(o.Modal,{opened:l,onClose:()=>c(!1),title:n("api_key.add"),trapFocus:!0,onDragStart:h=>{h.stopPropagation()},children:e.jsx(Vn,{postSubmit:p,styles:t,initialRoleID:s})}),e.jsx(o.Button,{size:t.button.size,onClick:u,leftSection:e.jsx(A.IconPlaylistAdd,{size:20}),children:n("api_key.add")})]})}function gt({id:r,name:t,onSuccess:s,styles:n=De}){const{t:i}=y.useTranslation(),l=ae.useModals(),c=async()=>{if(r){T.showNotification({id:"for-deleting",title:i("common.state.pending"),message:i("global_sql_snippet.state.deleting"),loading:!0,autoClose:!1});try{await R.api_key.delete(r),T.updateNotification({id:"for-deleting",title:i("common.state.successful"),message:i("global_sql_snippet.state.deleted",{name:t}),color:"green",autoClose:!0,loading:!1}),s()}catch(d){T.updateNotification({id:"for-deleting",title:i("common.state.failed"),message:d.message,color:"red",autoClose:!0,loading:!1})}}},u=()=>l.openConfirmModal({title:i("api_key.delete"),labels:{confirm:i("common.actions.confirm"),cancel:i("common.actions.cancel")},onCancel:()=>console.log("Cancel"),onConfirm:c,cancelProps:{size:n.button.size},confirmProps:{color:"red",size:n.button.size}});return e.jsx(o.Button,{size:n.button.size,color:"red",onClick:u,leftSection:e.jsx(A.IconTrash,{size:20}),children:i("common.actions.delete")})}const Gn=be("APIKeyList",({styles:r=De})=>{var u;const{t}=y.useTranslation(),{data:s=[],loading:n,refresh:i}=K.useRequest(async()=>{const{data:d}=await R.api_key.list();return d},{refreshDeps:[]}),{data:l=[],loading:c}=K.useRequest(async()=>(await R.role.list()).map(p=>({label:p.id,value:p.id,description:p.description,disabled:p.id==="SUPERADMIN"})),{refreshDeps:[]});return e.jsxs(e.Fragment,{children:[e.jsx(o.Group,{pt:r.spacing,justify:"flex-end",children:e.jsx(ht,{onSuccess:i,initialRoleID:((u=l==null?void 0:l[0])==null?void 0:u.value)??"INACTIVE"})}),e.jsxs(o.Box,{mt:r.spacing,sx:{position:"relative"},children:[e.jsx(o.LoadingOverlay,{visible:n||c}),e.jsxs(o.Table,{horizontalSpacing:r.spacing,verticalSpacing:r.spacing,fz:r.size,highlightOnHover:!0,children:[e.jsx(o.Table.Thead,{children:e.jsxs(o.Table.Tr,{children:[e.jsx(o.Table.Th,{children:t("common.name")}),e.jsx(o.Table.Th,{children:t("api_key.app_id")}),e.jsx(o.Table.Th,{children:t("role.label")}),e.jsx(o.Table.Th,{children:t("common.action")})]})}),e.jsx(o.Table.Tbody,{children:s.map(d=>{const{id:p,name:h,app_id:b,role_id:v}=d;return e.jsxs(o.Table.Tr,{children:[e.jsx(o.Table.Td,{width:200,children:h}),e.jsx(o.Table.Td,{width:200,children:b}),e.jsx(o.Table.Td,{width:200,children:v}),e.jsx(o.Table.Td,{width:200,children:e.jsx(o.Group,{justify:"flex-start",children:e.jsx(gt,{id:p,name:h,onSuccess:i})})})]},p)})})]})]})]})}),ue={size:"sm",spacing:"md",button:{size:"xs"}};function Wn({postSubmit:r,styles:t=ue}){const{t:s}=y.useTranslation(),{control:n,handleSubmit:i}=j.useForm({defaultValues:{id:"",content:""}}),l=async c=>{try{T.showNotification({id:"for-creating",title:s("common.state.pending"),message:s("global_sql_snippet.state.adding"),loading:!0,autoClose:!1}),await R.sql_snippet.create(c),T.updateNotification({id:"for-creating",title:s("common.state.successful"),message:s("global_sql_snippet.state.added"),color:"green",autoClose:!0}),r()}catch(u){T.updateNotification({id:"for-creating",title:s("common.state.failed"),message:u.message,color:"red",autoClose:!0})}};return e.jsx(o.Box,{mx:"auto",children:e.jsxs("form",{onSubmit:i(l),children:[e.jsx(j.Controller,{name:"id",control:n,render:({field:c})=>e.jsx(o.TextInput,{mb:t.spacing,size:t.size,required:!0,label:s("common.name"),placeholder:s("common.name_placeholder"),...c})}),e.jsx(j.Controller,{name:"content",control:n,render:({field:c})=>e.jsxs(o.Stack,{gap:4,children:[e.jsx(o.Text,{size:"14px",fw:500,c:"#212529",sx:{cursor:"default"},children:s("global_sql_snippet.content")}),e.jsx(ut,{height:"600px",...c})]})}),e.jsx(o.Group,{justify:"flex-end",mt:t.spacing,children:e.jsx(W,{size:t.button.size})})]})})}function xt({onSuccess:r,styles:t=ue}){const{t:s}=y.useTranslation(),[n,i]=P.useState(!1),l=()=>i(!0),c=()=>i(!1),u=()=>{c(),r()};return e.jsxs(e.Fragment,{children:[e.jsx(o.Modal,{opened:n,onClose:()=>i(!1),title:s("global_sql_snippet.add"),trapFocus:!0,onDragStart:d=>{d.stopPropagation()},size:"80vw",children:e.jsx(Wn,{postSubmit:u,styles:t})}),e.jsx(o.Button,{size:t.button.size,onClick:l,leftSection:e.jsx(A.IconPlaylistAdd,{size:18}),children:s("global_sql_snippet.add")})]})}function Kn({postSubmit:r,styles:t=ue,id:s,content:n}){const{t:i}=y.useTranslation(),{control:l,handleSubmit:c}=j.useForm({defaultValues:{id:s,content:n}}),u=async d=>{try{T.showNotification({id:"for-updating",title:i("common.state.pending"),message:i("global_sql_snippet.state.updating"),loading:!0,autoClose:!1}),await R.sql_snippet.update(d),T.updateNotification({id:"for-updating",title:i("common.state.successful"),message:i("global_sql_snippet.state.updated"),color:"green",autoClose:!0}),r()}catch(p){T.updateNotification({id:"for-updating",title:i("common.state.failed"),message:p.message,color:"red",autoClose:!0})}};return e.jsx(o.Box,{mx:"auto",children:e.jsxs("form",{onSubmit:c(u),children:[e.jsx(j.Controller,{name:"id",control:l,render:({field:d})=>e.jsx(o.TextInput,{mb:t.spacing,size:t.size,required:!0,label:i("common.name"),placeholder:i("common.name_placeholder"),...d})}),e.jsx(j.Controller,{name:"content",control:l,render:({field:d})=>e.jsxs(o.Stack,{gap:4,children:[e.jsx(o.Text,{size:"14px",fw:500,c:"#212529",sx:{cursor:"default"},children:i("global_sql_snippet.content")}),e.jsx(ut,{height:"600px",...d})]})}),e.jsx(o.Group,{justify:"flex-end",mt:t.spacing,children:e.jsx(W,{size:t.button.size})})]})})}function bt({onSuccess:r,styles:t=ue,...s}){const{t:n}=y.useTranslation(),[i,l]=P.useState(!1),c=()=>l(!0),u=()=>l(!1),d=()=>{u(),r()};return e.jsxs(e.Fragment,{children:[e.jsx(o.Modal,{opened:i,onClose:()=>l(!1),title:n("global_sql_snippet.edit"),trapFocus:!0,onDragStart:p=>{p.stopPropagation()},size:"80vw",children:e.jsx(Kn,{postSubmit:d,styles:t,...s})}),e.jsx(o.Button,{size:t.button.size,onClick:c,leftSection:e.jsx(A.IconEdit,{size:18}),children:n("common.actions.edit")})]})}function vt({id:r,onSuccess:t,styles:s=ue}){const{t:n}=y.useTranslation(),i=ae.useModals(),l=async()=>{if(r){T.showNotification({id:"for-deleting",title:n("common.state.pending"),message:n("global_sql_snippet.state.deleting"),loading:!0,autoClose:!1});try{await R.sql_snippet.delete(r),T.updateNotification({id:"for-deleting",title:n("common.state.successful"),message:n("global_sql_snippet.state.deleted",{name:r}),color:"green",autoClose:!0}),t()}catch(u){T.updateNotification({id:"for-deleting",title:n("common.state.failed"),message:u.message,color:"red",autoClose:!0})}}},c=()=>i.openConfirmModal({title:n("global_sql_snippet.delete"),labels:{confirm:n("common.actions.confirm"),cancel:n("common.actions.cancel")},onCancel:()=>console.log("Cancel"),onConfirm:l,cancelProps:{size:s.button.size},confirmProps:{color:"red",size:s.button.size}});return e.jsx(o.Button,{size:s.button.size,color:"red",onClick:c,leftSection:e.jsx(A.IconTrash,{size:20}),children:n("common.actions.edit")})}function Qn({content:r}){return e.jsxs(o.HoverCard,{width:"60vw",shadow:"md",children:[e.jsx(o.HoverCard.Target,{children:e.jsx(o.ActionIcon,{variant:"subtle",size:16,children:e.jsx(A.IconEye,{})})}),e.jsx(o.HoverCard.Dropdown,{children:e.jsx(Kt.CodeHighlight,{code:r,language:"sql",withCopyButton:!1})})]})}const Jn=be("DataSourceList",({styles:r=ue})=>{const{t}=y.useTranslation(),{data:s=[],loading:n,refresh:i}=K.useRequest(async()=>{const{data:l}=await R.sql_snippet.list({pagination:{page:1,pagesize:10}});return l},{refreshDeps:[]});return e.jsxs(e.Fragment,{children:[e.jsxs(o.Group,{pt:r.spacing,justify:"space-between",children:[e.jsx(o.Alert,{children:t("global_sql_snippet.description")}),e.jsx(xt,{onSuccess:i})]}),e.jsxs(o.Box,{mt:r.spacing,sx:{position:"relative"},children:[e.jsx(o.LoadingOverlay,{visible:n}),e.jsxs(o.Table,{horizontalSpacing:r.spacing,verticalSpacing:r.spacing,fz:r.size,highlightOnHover:!0,children:[e.jsx(o.Table.Thead,{children:e.jsxs(o.Table.Tr,{children:[e.jsx(o.Table.Th,{children:t("common.name")}),e.jsx(o.Table.Th,{}),e.jsx(o.Table.Th,{children:t("common.created_at")}),e.jsx(o.Table.Th,{children:t("common.updated_at")}),e.jsx(o.Table.Th,{children:t("common.action")})]})}),e.jsx(o.Table.Tbody,{children:s.map(l=>{const{id:c,content:u,create_time:d,update_time:p}=l;return e.jsxs(o.Table.Tr,{children:[e.jsx(o.Table.Td,{children:c}),e.jsx(o.Table.Td,{width:50,children:e.jsx(Qn,{content:u})}),e.jsx(o.Table.Td,{width:200,children:d}),e.jsx(o.Table.Td,{width:200,children:p}),e.jsx(o.Table.Td,{width:400,children:e.jsxs(o.Group,{justify:"flex-start",children:[e.jsx(bt,{...l,onSuccess:i}),e.jsx(vt,{id:c,onSuccess:i})]})})]},c)})})]})]})]})}),Hn=()=>Promise.resolve().then(()=>Xn).then(({version:r})=>(console.log(`[@devtable/settings-form] version: ${r}`),r)),Xn=Object.freeze(Object.defineProperty({__proto__:null,version:"13.44.2"},Symbol.toStringTag,{value:"Module"}));x.APIClient=O,x.APIKeyList=Gn,x.AccountList=Bn,x.AddAPIKey=ht,x.AddAccount=pt,x.AddDataSource=ct,x.AddSQLSnippet=xt,x.DataSourceList=Ln,x.DefaultApiClient=Xe,x.DeleteAPIKey=gt,x.DeleteAccount=mt,x.DeleteDataSource=dt,x.DeleteSQLSnippet=vt,x.FacadeApiClient=Ze,x.Login=Yn,x.SQLSnippetList=Jn,x.UpdateSQLSnippet=bt,x.configureAPIClient=tt,x.facadeApiClient=et,x.getVersion=Hn,Object.defineProperty(x,Symbol.toStringTag,{value:"Module"})});
36
+ `)};function Mn({name:r,config:t,submit:s,styles:n=V}){const{t:i}=y.useTranslation(),{control:l,handleSubmit:c}=j.useForm({defaultValues:{config:t}});return e.jsx(o.Box,{mx:"auto",children:e.jsxs("form",{onSubmit:c(s),children:[e.jsx(o.TextInput,{mb:n.spacing,size:n.size,required:!0,label:i("common.name"),value:r,readOnly:!0}),e.jsx(o.Divider,{label:i("datasource.connection_info"),labelPosition:"center"}),e.jsx(j.Controller,{name:"config.host",control:l,render:({field:u})=>e.jsx(o.TextInput,{mb:n.spacing,size:n.size,label:i("datasource.http.base_url"),sx:{flexGrow:1},...u})}),e.jsxs(o.Group,{grow:!0,children:[e.jsx(j.Controller,{name:"config.processing.pre",control:l,render:({field:u})=>e.jsx(we,{label:i("datasource.http.processing.pre.label"),modalTitle:i("datasource.http.processing.pre.description"),defaultValue:ft.pre,...u,styles:n})}),e.jsx(j.Controller,{name:"config.processing.post",control:l,render:({field:u})=>e.jsx(we,{label:i("datasource.http.processing.post.label"),modalTitle:i("datasource.http.processing.post.description"),defaultValue:ft.post,...u,styles:n})})]}),e.jsx(o.Group,{justify:"flex-end",mt:n.spacing,children:e.jsx(W,{size:n.button.size})})]})})}function In({dataSource:r,postSubmit:t,styles:s=V}){const{t:n}=y.useTranslation(),i=async({config:l})=>{T.showNotification({id:"for-updating",title:n("common.state.pending"),message:n("datasource.state.updating"),loading:!0,autoClose:!1});try{console.log({config:l}),await R.datasource.update(r.id,l),T.updateNotification({id:"for-updating",title:n("common.state.successful"),message:n("datasource.state.updated"),color:"green",autoClose:!0}),t()}catch(c){T.updateNotification({id:"for-updating",title:n("common.state.failed"),message:c.message,color:"red",autoClose:!0})}};return r.config?e.jsx(o.Box,{mx:"auto",children:e.jsx(Mn,{name:r.key,config:r.config,submit:i,styles:s})}):(console.error(new Error("unexpected empty config of a http datasource")),null)}function Rn({dataSource:r,onSuccess:t,styles:s=V}){const{t:n}=y.useTranslation(),[i,l]=P.useState(!1),c=()=>l(!0),u=()=>l(!1),d=()=>{t(),u()};return r.is_preset?e.jsx(o.Tooltip,{withArrow:!0,events:{hover:!0,touch:!1,focus:!1},label:n("datasource.cant_edit.preset"),children:e.jsx(o.Button,{size:s.button.size,color:"gray",variant:"light",leftSection:e.jsx(A.IconLock,{size:16}),sx:{transform:"none !important"},children:n("common.actions.edit")})}):r.type!=="http"&&r.type!=="merico_metric_system"?e.jsx(o.Tooltip,{withArrow:!0,events:{hover:!0,touch:!1,focus:!1},label:n("datasource.cant_edit.db"),children:e.jsx(o.Button,{size:s.button.size,color:"gray",variant:"light",leftSection:e.jsx(A.IconEdit,{size:16}),sx:{transform:"none !important"},children:n("common.actions.edit")})}):e.jsxs(e.Fragment,{children:[e.jsx(o.Modal,{opened:i,onClose:()=>l(!1),title:n("datasource.edit"),trapFocus:!0,onDragStart:p=>{p.stopPropagation()},children:e.jsx(In,{dataSource:r,postSubmit:d,styles:s})}),e.jsx(o.Button,{size:s.button.size,color:"blue",onClick:c,leftSection:e.jsx(A.IconEdit,{size:16}),children:n("common.actions.edit")})]})}const Ln=be("DataSourceList",({styles:r=V})=>{const{t}=y.useTranslation(),{data:s=[],loading:n,refresh:i}=K.useRequest(async()=>{const{data:l}=await R.datasource.list();return l},{refreshDeps:[]});return e.jsxs(e.Fragment,{children:[e.jsx(o.Group,{pt:r.spacing,justify:"flex-end",children:e.jsx(ct,{onSuccess:i})}),e.jsxs(o.Box,{mt:r.spacing,sx:{position:"relative"},children:[e.jsx(o.LoadingOverlay,{visible:n}),e.jsxs(o.Table,{horizontalSpacing:r.spacing,verticalSpacing:r.spacing,fz:r.size,highlightOnHover:!0,children:[e.jsx(o.Table.Thead,{children:e.jsxs(o.Table.Tr,{children:[e.jsx(o.Table.Th,{children:t("common.type")}),e.jsx(o.Table.Th,{children:t("common.name")}),e.jsx(o.Table.Th,{children:t("common.action")})]})}),e.jsx(o.Table.Tbody,{children:s.map(l=>{const{id:c,key:u,type:d,is_preset:p}=l,h=d==="merico_metric_system";return e.jsxs(o.Table.Tr,{children:[e.jsx(o.Table.Td,{width:230,children:e.jsx($n,{type:d})}),e.jsx(o.Table.Td,{children:u}),e.jsx(o.Table.Td,{width:400,children:e.jsxs(o.Group,{justify:"flex-start",children:[e.jsx(Rn,{dataSource:l,onSuccess:i,styles:r}),e.jsx(dt,{isProtected:p||h,id:c,name:u,onSuccess:i,styles:r})]})})]},u)})})]})]})]})}),qn=({option:r,...t})=>{const{label:s,value:n,description:i}=r;return e.jsxs(o.Stack,{gap:2,...t,children:[e.jsx(o.Text,{size:"sm",children:s}),e.jsx(o.Text,{size:"xs",c:"dimmed",className:"role-description",children:i})]})},qe=P.forwardRef(({styles:r,value:t,onChange:s},n)=>{const{t:i}=y.useTranslation(),{data:l=[],loading:c}=K.useRequest(async()=>(await R.role.list()).map(d=>({label:d.id,value:d.id,description:d.description,disabled:d.id==="SUPERADMIN"})),{refreshDeps:[]});return e.jsx(o.Select,{ref:n,mb:r.spacing,size:r.size,required:!0,label:i("role.label"),renderOption:qn,data:l,disabled:c,styles:()=>({item:{"&[data-selected]":{"&, &:hover":{".role-description":{color:"rgba(255,255,255,.8)"}}}}}),value:t,onChange:u=>u!==null&&s(u),comboboxProps:{withinPortal:!0},maxDropdownHeight:500})}),H={size:"sm",spacing:"md",button:{size:"xs"}};function kn({postSubmit:r,styles:t=H,initialRoleID:s}){const{t:n}=y.useTranslation(),{control:i,handleSubmit:l}=j.useForm({defaultValues:{name:"",email:"",role_id:s,password:""}}),c=async({name:u,email:d,password:p,role_id:h})=>{try{T.showNotification({id:"for-creating",title:n("common.state.pending"),message:n("account.state.adding"),loading:!0,autoClose:!1}),await R.account.create(u,d,p,h),T.updateNotification({id:"for-creating",title:n("common.state.successful"),message:n("account.state.added"),color:"green",autoClose:!0,loading:!1}),r()}catch(b){T.updateNotification({id:"for-creating",title:n("common.state.failed"),message:b.message,color:"red",autoClose:!0,loading:!1})}};return e.jsx(o.Box,{mx:"auto",mb:10,children:e.jsxs("form",{onSubmit:l(c),children:[e.jsx(j.Controller,{name:"name",control:i,render:({field:u})=>e.jsx(o.TextInput,{mb:t.spacing,size:t.size,required:!0,label:n("account.username"),...u})}),e.jsx(j.Controller,{name:"email",control:i,render:({field:u})=>e.jsx(o.TextInput,{mb:t.spacing,size:t.size,required:!0,label:n("account.email"),...u})}),e.jsx(j.Controller,{name:"password",control:i,render:({field:u})=>e.jsx(o.PasswordInput,{mb:t.spacing,size:t.size,required:!0,label:n("account.password"),description:n("account.password_hint"),...u})}),e.jsx(j.Controller,{name:"role_id",control:i,render:({field:u})=>e.jsx(qe,{styles:t,...u})}),e.jsx(o.Group,{justify:"flex-end",mt:t.spacing,children:e.jsx(W,{size:t.button.size})})]})})}function pt({onSuccess:r,styles:t=H,initialRoleID:s}){const{t:n}=y.useTranslation(),[i,l]=P.useState(!1),c=()=>l(!0),u=()=>l(!1),d=()=>{r(),u()};return e.jsxs(e.Fragment,{children:[e.jsx(o.Modal,{opened:i,onClose:()=>l(!1),title:n("account.add"),trapFocus:!0,onDragStart:p=>{p.stopPropagation()},children:e.jsx(kn,{postSubmit:d,styles:t,initialRoleID:s})}),e.jsx(o.Button,{size:t.button.size,onClick:c,leftSection:e.jsx(A.IconPlaylistAdd,{size:20}),children:n("account.add")})]})}function mt({id:r,name:t,onSuccess:s,styles:n=H}){const{t:i}=y.useTranslation(),l=ae.useModals(),c=async()=>{if(r){T.showNotification({id:"for-deleting",title:i("common.state.pending"),message:i("account.state.deleting"),loading:!0,autoClose:!1});try{await R.account.delete(r),T.updateNotification({id:"for-deleting",title:i("common.state.successful"),message:i("account.state.deleted",{name:t}),color:"green",autoClose:!0,loading:!1}),s()}catch(d){T.updateNotification({id:"for-deleting",title:i("common.state.failed"),message:d.message,color:"red",autoClose:!0,loading:!1})}}},u=()=>l.openConfirmModal({title:i("account.delete"),labels:{confirm:i("common.actions.confirm"),cancel:i("common.actions.cancel")},onCancel:()=>console.log("Cancel"),onConfirm:c,cancelProps:{size:n.button.size},confirmProps:{color:"red",size:n.button.size}});return e.jsx(o.Button,{size:n.button.size,color:"red",onClick:u,leftSection:e.jsx(A.IconTrash,{size:20}),children:i("common.actions.delete")})}function Nn({id:r,name:t,email:s,role_id:n,postSubmit:i,styles:l=H}){const{t:c}=y.useTranslation(),{control:u,handleSubmit:d,watch:p}=j.useForm({defaultValues:{name:t,email:s,role_id:n,reset_password:!1,new_password:""}}),h=async({name:C,email:q,role_id:Y,reset_password:X,new_password:k})=>{try{T.showNotification({id:"for-updating",title:c("common.state.pending"),message:c("account.state.updating"),loading:!0,autoClose:!1}),await R.account.edit({id:r,name:C.trim(),email:q.trim(),role_id:Y,reset_password:X,new_password:k.trim()}),T.updateNotification({id:"for-updating",title:c("common.state.successful"),message:c("account.state.updated"),color:"green",autoClose:!0,loading:!1}),i()}catch(D){T.updateNotification({id:"for-updating",title:c("common.state.failed"),message:D.message,color:"red",autoClose:!0,loading:!1})}},[b,v]=p(["reset_password","new_password"]);return e.jsx(o.Box,{mx:"auto",mb:10,children:e.jsxs("form",{onSubmit:d(h),children:[e.jsx(j.Controller,{name:"name",control:u,render:({field:C})=>e.jsx(o.TextInput,{mb:l.spacing,size:l.size,required:!0,label:c("account.username"),...C})}),e.jsx(j.Controller,{name:"email",control:u,render:({field:C})=>e.jsx(o.TextInput,{mb:l.spacing,size:l.size,required:!0,label:c("account.email"),...C})}),e.jsx(j.Controller,{name:"role_id",control:u,render:({field:C})=>e.jsx(qe,{styles:l,...C})}),e.jsx(o.Divider,{my:20,variant:"dashed",label:"",labelPosition:"center"}),e.jsx(j.Controller,{name:"reset_password",control:u,render:({field:C})=>e.jsx(o.Switch,{mb:l.spacing,size:l.size,label:c("account.reset_password"),checked:C.value,onChange:q=>C.onChange(q.currentTarget.checked),styles:{label:{verticalAlign:"middle"}}})}),b&&e.jsx(j.Controller,{name:"new_password",control:u,render:({field:C})=>e.jsx(o.PasswordInput,{autoComplete:"off",mb:l.spacing,size:l.size,required:!0,description:c("account.password_hint"),label:c("account.new_password"),...C})}),e.jsx(o.Group,{justify:"flex-end",mt:l.spacing,children:e.jsx(W,{size:l.button.size})})]})})}function Fn({account:r,onSuccess:t,styles:s=H}){const{t:n}=y.useTranslation(),[i,l]=P.useState(!1),c=()=>l(!0),u=()=>l(!1),d=()=>{t(),u()};return e.jsxs(e.Fragment,{children:[e.jsx(o.Modal,{opened:i,onClose:()=>l(!1),title:n("account.editing_xx",{name:r.name}),trapFocus:!0,onDragStart:p=>{p.stopPropagation()},children:e.jsx(Nn,{...r,postSubmit:d,styles:s})}),e.jsx(o.Button,{size:s.button.size,onClick:c,leftSection:e.jsx(A.IconEdit,{size:20}),children:n("common.actions.edit")})]})}const Bn=be("AccountList",({styles:r=H})=>{var u;const{t}=y.useTranslation(),{data:s=[],loading:n,refresh:i}=K.useRequest(async()=>{const{data:d}=await R.account.list();return d},{refreshDeps:[]}),{data:l=[],loading:c}=K.useRequest(async()=>(await R.role.list()).map(p=>({label:p.id,value:p.id,description:p.description,disabled:p.id==="SUPERADMIN"})),{refreshDeps:[]});return e.jsxs(e.Fragment,{children:[e.jsx(o.Group,{pt:r.spacing,justify:"flex-end",children:e.jsx(pt,{onSuccess:i,initialRoleID:((u=l==null?void 0:l[0])==null?void 0:u.value)??"INACTIVE"})}),e.jsxs(o.Box,{mt:r.spacing,sx:{position:"relative"},children:[e.jsx(o.LoadingOverlay,{visible:n||c}),e.jsxs(o.Table,{horizontalSpacing:r.spacing,verticalSpacing:r.spacing,fz:r.size,highlightOnHover:!0,children:[e.jsx(o.Table.Thead,{children:e.jsxs(o.Table.Tr,{children:[e.jsx(o.Table.Th,{children:t("account.username")}),e.jsx(o.Table.Th,{children:t("account.email")}),e.jsx(o.Table.Th,{children:t("role.label")}),e.jsx(o.Table.Th,{children:t("common.action")})]})}),e.jsx(o.Table.Tbody,{children:s.map(d=>{const{id:p,name:h,email:b,role_id:v}=d;return e.jsxs(o.Table.Tr,{children:[e.jsx(o.Table.Td,{width:200,children:h}),e.jsx(o.Table.Td,{width:200,children:b}),e.jsx(o.Table.Td,{width:200,children:v}),e.jsx(o.Table.Td,{width:200,children:e.jsxs(o.Group,{justify:"flex-start",children:[e.jsx(Fn,{account:d,onSuccess:i}),e.jsx(mt,{id:p,name:h,onSuccess:i})]})})]},p)})})]})]})]})});function Un({postSubmit:r,styles:t=H}){const{t:s}=y.useTranslation(),{control:n,handleSubmit:i}=j.useForm({defaultValues:{name:"",password:""}}),l=async({name:c,password:u})=>{try{T.showNotification({id:"for-login",title:s("common.state.pending"),message:s("account.state.logging_in"),loading:!0,autoClose:!1});const d=await R.account.login(c.trim(),u.trim());window.localStorage.setItem("token",d.token),T.updateNotification({id:"for-login",title:s("common.state.successful"),message:s("account.state.logged_in"),color:"green",autoClose:!0,loading:!1}),r(d)}catch(d){T.updateNotification({id:"for-login",title:s("common.state.failed"),message:d.message,color:"red",autoClose:!0,loading:!1})}};return e.jsx(o.Box,{mx:"auto",children:e.jsxs("form",{onSubmit:i(l),children:[e.jsx(j.Controller,{name:"name",control:n,render:({field:c})=>e.jsx(o.TextInput,{mb:t.spacing,size:t.size,required:!0,label:s("account.username"),...c})}),e.jsx(j.Controller,{name:"password",control:n,render:({field:c})=>e.jsx(o.PasswordInput,{mb:t.spacing,size:t.size,required:!0,label:s("account.password"),...c})}),e.jsx(o.Group,{justify:"flex-end",mt:t.spacing,children:e.jsx(W,{size:t.button.size})})]})})}const Yn=be("Login",({styles:r=H,onSuccess:t})=>e.jsx(e.Fragment,{children:e.jsx(o.Box,{mt:r.spacing,sx:{position:"relative"},children:e.jsx(Un,{styles:r,postSubmit:t})})})),De={size:"sm",spacing:"md",button:{size:"xs"}};function Vn({postSubmit:r,styles:t=De,initialRoleID:s}){const{t:n}=y.useTranslation(),{control:i,handleSubmit:l}=j.useForm({defaultValues:{name:"",role_id:s}}),c=async({name:u,role_id:d})=>{try{T.showNotification({id:"for-creating",title:n("common.state.pending"),message:n("api_key.state.adding"),loading:!0,autoClose:!1});const{app_id:p,app_secret:h}=await R.api_key.create(u,d);T.updateNotification({id:"for-creating",title:n("common.state.successful"),message:n("api_key.state.added"),color:"green",autoClose:!0,loading:!1}),r(p,h)}catch(p){T.updateNotification({id:"for-creating",title:n("common.state.failed"),message:p.message,color:"red",autoClose:!0,loading:!1})}};return e.jsx(o.Box,{mx:"auto",mb:10,children:e.jsxs("form",{onSubmit:l(c),children:[e.jsx(j.Controller,{name:"name",control:i,render:({field:u})=>e.jsx(o.TextInput,{mb:t.spacing,size:t.size,required:!0,label:n("common.name"),...u})}),e.jsx(j.Controller,{name:"role_id",control:i,render:({field:u})=>e.jsx(qe,{styles:t,...u})}),e.jsx(o.Group,{justify:"flex-end",mt:t.spacing,children:e.jsx(W,{size:t.button.size})})]})})}function ht({onSuccess:r,styles:t=De,initialRoleID:s}){const{t:n}=y.useTranslation(),i=ae.useModals(),[l,c]=P.useState(!1),u=()=>c(!0),d=()=>c(!1),p=(h,b)=>{d(),i.openModal({title:n("api_key.save.title"),children:e.jsxs(o.Stack,{children:[e.jsx(o.Text,{size:"sm",c:"dimmed",children:n("api_key.save.warn")}),e.jsx(o.TextInput,{defaultValue:h,disabled:!0,label:n("api_key.app_id"),styles:{input:{cursor:"text !important"}}}),e.jsx(o.TextInput,{defaultValue:b,disabled:!0,label:n("api_key.app_secret"),styles:{input:{cursor:"text !important"}}}),e.jsx(o.Button,{size:"sm",onClick:()=>{ae.closeAllModals()},children:n("api_key.save.saved")})]}),onClose:()=>{r()}})};return e.jsxs(e.Fragment,{children:[e.jsx(o.Modal,{opened:l,onClose:()=>c(!1),title:n("api_key.add"),trapFocus:!0,onDragStart:h=>{h.stopPropagation()},children:e.jsx(Vn,{postSubmit:p,styles:t,initialRoleID:s})}),e.jsx(o.Button,{size:t.button.size,onClick:u,leftSection:e.jsx(A.IconPlaylistAdd,{size:20}),children:n("api_key.add")})]})}function gt({id:r,name:t,onSuccess:s,styles:n=De}){const{t:i}=y.useTranslation(),l=ae.useModals(),c=async()=>{if(r){T.showNotification({id:"for-deleting",title:i("common.state.pending"),message:i("global_sql_snippet.state.deleting"),loading:!0,autoClose:!1});try{await R.api_key.delete(r),T.updateNotification({id:"for-deleting",title:i("common.state.successful"),message:i("global_sql_snippet.state.deleted",{name:t}),color:"green",autoClose:!0,loading:!1}),s()}catch(d){T.updateNotification({id:"for-deleting",title:i("common.state.failed"),message:d.message,color:"red",autoClose:!0,loading:!1})}}},u=()=>l.openConfirmModal({title:i("api_key.delete"),labels:{confirm:i("common.actions.confirm"),cancel:i("common.actions.cancel")},onCancel:()=>console.log("Cancel"),onConfirm:c,cancelProps:{size:n.button.size},confirmProps:{color:"red",size:n.button.size}});return e.jsx(o.Button,{size:n.button.size,color:"red",onClick:u,leftSection:e.jsx(A.IconTrash,{size:20}),children:i("common.actions.delete")})}const Gn=be("APIKeyList",({styles:r=De})=>{var u;const{t}=y.useTranslation(),{data:s=[],loading:n,refresh:i}=K.useRequest(async()=>{const{data:d}=await R.api_key.list();return d},{refreshDeps:[]}),{data:l=[],loading:c}=K.useRequest(async()=>(await R.role.list()).map(p=>({label:p.id,value:p.id,description:p.description,disabled:p.id==="SUPERADMIN"})),{refreshDeps:[]});return e.jsxs(e.Fragment,{children:[e.jsx(o.Group,{pt:r.spacing,justify:"flex-end",children:e.jsx(ht,{onSuccess:i,initialRoleID:((u=l==null?void 0:l[0])==null?void 0:u.value)??"INACTIVE"})}),e.jsxs(o.Box,{mt:r.spacing,sx:{position:"relative"},children:[e.jsx(o.LoadingOverlay,{visible:n||c}),e.jsxs(o.Table,{horizontalSpacing:r.spacing,verticalSpacing:r.spacing,fz:r.size,highlightOnHover:!0,children:[e.jsx(o.Table.Thead,{children:e.jsxs(o.Table.Tr,{children:[e.jsx(o.Table.Th,{children:t("common.name")}),e.jsx(o.Table.Th,{children:t("api_key.app_id")}),e.jsx(o.Table.Th,{children:t("role.label")}),e.jsx(o.Table.Th,{children:t("common.action")})]})}),e.jsx(o.Table.Tbody,{children:s.map(d=>{const{id:p,name:h,app_id:b,role_id:v}=d;return e.jsxs(o.Table.Tr,{children:[e.jsx(o.Table.Td,{width:200,children:h}),e.jsx(o.Table.Td,{width:200,children:b}),e.jsx(o.Table.Td,{width:200,children:v}),e.jsx(o.Table.Td,{width:200,children:e.jsx(o.Group,{justify:"flex-start",children:e.jsx(gt,{id:p,name:h,onSuccess:i})})})]},p)})})]})]})]})}),ue={size:"sm",spacing:"md",button:{size:"xs"}};function Wn({postSubmit:r,styles:t=ue}){const{t:s}=y.useTranslation(),{control:n,handleSubmit:i}=j.useForm({defaultValues:{id:"",content:""}}),l=async c=>{try{T.showNotification({id:"for-creating",title:s("common.state.pending"),message:s("global_sql_snippet.state.adding"),loading:!0,autoClose:!1}),await R.sql_snippet.create(c),T.updateNotification({id:"for-creating",title:s("common.state.successful"),message:s("global_sql_snippet.state.added"),color:"green",autoClose:!0}),r()}catch(u){T.updateNotification({id:"for-creating",title:s("common.state.failed"),message:u.message,color:"red",autoClose:!0})}};return e.jsx(o.Box,{mx:"auto",children:e.jsxs("form",{onSubmit:i(l),children:[e.jsx(j.Controller,{name:"id",control:n,render:({field:c})=>e.jsx(o.TextInput,{mb:t.spacing,size:t.size,required:!0,label:s("common.name"),placeholder:s("common.name_placeholder"),...c})}),e.jsx(j.Controller,{name:"content",control:n,render:({field:c})=>e.jsxs(o.Stack,{gap:4,children:[e.jsx(o.Text,{size:"14px",fw:500,c:"#212529",sx:{cursor:"default"},children:s("global_sql_snippet.content")}),e.jsx(ut,{height:"600px",...c})]})}),e.jsx(o.Group,{justify:"flex-end",mt:t.spacing,children:e.jsx(W,{size:t.button.size})})]})})}function xt({onSuccess:r,styles:t=ue}){const{t:s}=y.useTranslation(),[n,i]=P.useState(!1),l=()=>i(!0),c=()=>i(!1),u=()=>{c(),r()};return e.jsxs(e.Fragment,{children:[e.jsx(o.Modal,{opened:n,onClose:()=>i(!1),title:s("global_sql_snippet.add"),trapFocus:!0,onDragStart:d=>{d.stopPropagation()},size:"80vw",children:e.jsx(Wn,{postSubmit:u,styles:t})}),e.jsx(o.Button,{size:t.button.size,onClick:l,leftSection:e.jsx(A.IconPlaylistAdd,{size:18}),children:s("global_sql_snippet.add")})]})}function Kn({postSubmit:r,styles:t=ue,id:s,content:n}){const{t:i}=y.useTranslation(),{control:l,handleSubmit:c}=j.useForm({defaultValues:{id:s,content:n}}),u=async d=>{try{T.showNotification({id:"for-updating",title:i("common.state.pending"),message:i("global_sql_snippet.state.updating"),loading:!0,autoClose:!1}),await R.sql_snippet.update(d),T.updateNotification({id:"for-updating",title:i("common.state.successful"),message:i("global_sql_snippet.state.updated"),color:"green",autoClose:!0}),r()}catch(p){T.updateNotification({id:"for-updating",title:i("common.state.failed"),message:p.message,color:"red",autoClose:!0})}};return e.jsx(o.Box,{mx:"auto",children:e.jsxs("form",{onSubmit:c(u),children:[e.jsx(j.Controller,{name:"id",control:l,render:({field:d})=>e.jsx(o.TextInput,{mb:t.spacing,size:t.size,required:!0,label:i("common.name"),placeholder:i("common.name_placeholder"),...d})}),e.jsx(j.Controller,{name:"content",control:l,render:({field:d})=>e.jsxs(o.Stack,{gap:4,children:[e.jsx(o.Text,{size:"14px",fw:500,c:"#212529",sx:{cursor:"default"},children:i("global_sql_snippet.content")}),e.jsx(ut,{height:"600px",...d})]})}),e.jsx(o.Group,{justify:"flex-end",mt:t.spacing,children:e.jsx(W,{size:t.button.size})})]})})}function bt({onSuccess:r,styles:t=ue,...s}){const{t:n}=y.useTranslation(),[i,l]=P.useState(!1),c=()=>l(!0),u=()=>l(!1),d=()=>{u(),r()};return e.jsxs(e.Fragment,{children:[e.jsx(o.Modal,{opened:i,onClose:()=>l(!1),title:n("global_sql_snippet.edit"),trapFocus:!0,onDragStart:p=>{p.stopPropagation()},size:"80vw",children:e.jsx(Kn,{postSubmit:d,styles:t,...s})}),e.jsx(o.Button,{size:t.button.size,onClick:c,leftSection:e.jsx(A.IconEdit,{size:18}),children:n("common.actions.edit")})]})}function vt({id:r,onSuccess:t,styles:s=ue}){const{t:n}=y.useTranslation(),i=ae.useModals(),l=async()=>{if(r){T.showNotification({id:"for-deleting",title:n("common.state.pending"),message:n("global_sql_snippet.state.deleting"),loading:!0,autoClose:!1});try{await R.sql_snippet.delete(r),T.updateNotification({id:"for-deleting",title:n("common.state.successful"),message:n("global_sql_snippet.state.deleted",{name:r}),color:"green",autoClose:!0}),t()}catch(u){T.updateNotification({id:"for-deleting",title:n("common.state.failed"),message:u.message,color:"red",autoClose:!0})}}},c=()=>i.openConfirmModal({title:n("global_sql_snippet.delete"),labels:{confirm:n("common.actions.confirm"),cancel:n("common.actions.cancel")},onCancel:()=>console.log("Cancel"),onConfirm:l,cancelProps:{size:s.button.size},confirmProps:{color:"red",size:s.button.size}});return e.jsx(o.Button,{size:s.button.size,color:"red",onClick:c,leftSection:e.jsx(A.IconTrash,{size:20}),children:n("common.actions.edit")})}function Qn({content:r}){return e.jsxs(o.HoverCard,{width:"60vw",shadow:"md",children:[e.jsx(o.HoverCard.Target,{children:e.jsx(o.ActionIcon,{variant:"subtle",size:16,children:e.jsx(A.IconEye,{})})}),e.jsx(o.HoverCard.Dropdown,{children:e.jsx(Kt.CodeHighlight,{code:r,language:"sql",withCopyButton:!1})})]})}const Jn=be("DataSourceList",({styles:r=ue})=>{const{t}=y.useTranslation(),{data:s=[],loading:n,refresh:i}=K.useRequest(async()=>{const{data:l}=await R.sql_snippet.list({pagination:{page:1,pagesize:10}});return l},{refreshDeps:[]});return e.jsxs(e.Fragment,{children:[e.jsxs(o.Group,{pt:r.spacing,justify:"space-between",children:[e.jsx(o.Alert,{children:t("global_sql_snippet.description")}),e.jsx(xt,{onSuccess:i})]}),e.jsxs(o.Box,{mt:r.spacing,sx:{position:"relative"},children:[e.jsx(o.LoadingOverlay,{visible:n}),e.jsxs(o.Table,{horizontalSpacing:r.spacing,verticalSpacing:r.spacing,fz:r.size,highlightOnHover:!0,children:[e.jsx(o.Table.Thead,{children:e.jsxs(o.Table.Tr,{children:[e.jsx(o.Table.Th,{children:t("common.name")}),e.jsx(o.Table.Th,{}),e.jsx(o.Table.Th,{children:t("common.created_at")}),e.jsx(o.Table.Th,{children:t("common.updated_at")}),e.jsx(o.Table.Th,{children:t("common.action")})]})}),e.jsx(o.Table.Tbody,{children:s.map(l=>{const{id:c,content:u,create_time:d,update_time:p}=l;return e.jsxs(o.Table.Tr,{children:[e.jsx(o.Table.Td,{children:c}),e.jsx(o.Table.Td,{width:50,children:e.jsx(Qn,{content:u})}),e.jsx(o.Table.Td,{width:200,children:d}),e.jsx(o.Table.Td,{width:200,children:p}),e.jsx(o.Table.Td,{width:400,children:e.jsxs(o.Group,{justify:"flex-start",children:[e.jsx(bt,{...l,onSuccess:i}),e.jsx(vt,{id:c,onSuccess:i})]})})]},c)})})]})]})]})}),Hn=()=>Promise.resolve().then(()=>Xn).then(({version:r})=>(console.log(`[@devtable/settings-form] version: ${r}`),r)),Xn=Object.freeze(Object.defineProperty({__proto__:null,version:"14.0.0"},Symbol.toStringTag,{value:"Module"}));x.APIClient=O,x.APIKeyList=Gn,x.AccountList=Bn,x.AddAPIKey=ht,x.AddAccount=pt,x.AddDataSource=ct,x.AddSQLSnippet=xt,x.DataSourceList=Ln,x.DefaultApiClient=Xe,x.DeleteAPIKey=gt,x.DeleteAccount=mt,x.DeleteDataSource=dt,x.DeleteSQLSnippet=vt,x.FacadeApiClient=Ze,x.Login=Yn,x.SQLSnippetList=Jn,x.UpdateSQLSnippet=bt,x.configureAPIClient=tt,x.facadeApiClient=et,x.getVersion=Hn,Object.defineProperty(x,Symbol.toStringTag,{value:"Module"})});
package/dist/stats.html CHANGED
@@ -4822,7 +4822,7 @@ var drawChart = (function (exports) {
4822
4822
  </script>
4823
4823
  <script>
4824
4824
  /*<!--*/
4825
- const data = {"version":2,"tree":{"name":"root","children":[{"name":"settings-form.umd.js","children":[{"name":"\u0000/Users/leto/github/merico-dev/table/node_modules/react","children":[{"uid":"60ae233c-1","name":"jsx-runtime.js?commonjs-module"},{"name":"cjs","children":[{"uid":"60ae233c-3","name":"react-jsx-runtime.production.min.js?commonjs-exports"},{"uid":"60ae233c-7","name":"react-jsx-runtime.development.js?commonjs-exports"}]}]},{"name":"Users/leto/github/merico-dev/table","children":[{"name":"node_modules","children":[{"name":"react","children":[{"name":"cjs","children":[{"uid":"60ae233c-5","name":"react-jsx-runtime.production.min.js"},{"uid":"60ae233c-9","name":"react-jsx-runtime.development.js"}]},{"uid":"60ae233c-11","name":"jsx-runtime.js"}]},{"name":"dayjs/esm","children":[{"uid":"60ae233c-29","name":"constant.js"},{"name":"locale/en.js","uid":"60ae233c-31"},{"uid":"60ae233c-33","name":"utils.js"},{"uid":"60ae233c-35","name":"index.js"}]}]},{"name":"shared/src/api-client","children":[{"uid":"60ae233c-13","name":"utils.ts"},{"uid":"60ae233c-15","name":"default-api-client.ts"},{"uid":"60ae233c-17","name":"facade-api-client.ts"}]}]},{"name":"src","children":[{"name":"api-caller","children":[{"uid":"60ae233c-19","name":"request.ts"},{"uid":"60ae233c-21","name":"account.ts"},{"uid":"60ae233c-23","name":"api-key.ts"},{"uid":"60ae233c-25","name":"datasource.ts"},{"uid":"60ae233c-27","name":"role.ts"},{"uid":"60ae233c-37","name":"sql_snippet.ts"},{"uid":"60ae233c-39","name":"index.ts"}]},{"name":"datasource","children":[{"uid":"60ae233c-41","name":"styles.ts"},{"name":"add-data-source","children":[{"uid":"60ae233c-43","name":"db-permission-tips.tsx"},{"name":"forms","children":[{"uid":"60ae233c-61","name":"database.tsx"},{"uid":"60ae233c-67","name":"http.tsx"}]},{"uid":"60ae233c-69","name":"index.tsx"}]},{"name":"components","children":[{"name":"function-string-field","children":[{"uid":"60ae233c-63","name":"function-string-editor.tsx"},{"uid":"60ae233c-65","name":"index.tsx"}]},{"uid":"60ae233c-71","name":"data-source-icon.tsx"}]},{"uid":"60ae233c-73","name":"delete-data-source.tsx"},{"name":"edit-data-source","children":[{"name":"forms/http.tsx","uid":"60ae233c-75"},{"uid":"60ae233c-77","name":"index.tsx"}]},{"uid":"60ae233c-79","name":"data-source-list.tsx"}]},{"name":"components","children":[{"uid":"60ae233c-45","name":"minimal-mocaco-editor.tsx"},{"uid":"60ae233c-47","name":"submit-form-button.tsx"},{"uid":"60ae233c-59","name":"with-entry.tsx"}]},{"name":"i18n","children":[{"uid":"60ae233c-49","name":"en.ts"},{"uid":"60ae233c-51","name":"zh.ts"},{"uid":"60ae233c-53","name":"i18n.ts"},{"uid":"60ae233c-55","name":"i18next-context.tsx"}]},{"name":"utils/load-monaco-editor.ts","uid":"60ae233c-57"},{"name":"account","children":[{"uid":"60ae233c-81","name":"role-selector.tsx"},{"uid":"60ae233c-83","name":"styles.ts"},{"uid":"60ae233c-85","name":"add-account.tsx"},{"uid":"60ae233c-87","name":"delete-account.tsx"},{"uid":"60ae233c-89","name":"edit-account.tsx"},{"uid":"60ae233c-91","name":"account-list.tsx"},{"name":"login","children":[{"uid":"60ae233c-93","name":"form.tsx"},{"uid":"60ae233c-95","name":"index.tsx"}]}]},{"name":"api-key","children":[{"uid":"60ae233c-97","name":"styles.ts"},{"uid":"60ae233c-99","name":"add-api-key.tsx"},{"uid":"60ae233c-101","name":"delete-api-key.tsx"},{"uid":"60ae233c-103","name":"api-key-list.tsx"}]},{"name":"sql_snippet","children":[{"uid":"60ae233c-105","name":"styles.ts"},{"uid":"60ae233c-107","name":"add-sql_snippet.tsx"},{"uid":"60ae233c-109","name":"update-sql_snippet.tsx"},{"uid":"60ae233c-111","name":"delete-sql_snippet.tsx"},{"uid":"60ae233c-113","name":"sql_snippet-list.tsx"}]},{"uid":"60ae233c-115","name":"index.ts"}]},{"uid":"60ae233c-117","name":"package.json"}]}],"isRoot":true},"nodeParts":{"60ae233c-1":{"renderedLength":33,"gzipLength":0,"brotliLength":0,"metaUid":"60ae233c-0"},"60ae233c-3":{"renderedLength":42,"gzipLength":0,"brotliLength":0,"metaUid":"60ae233c-2"},"60ae233c-5":{"renderedLength":1217,"gzipLength":0,"brotliLength":0,"metaUid":"60ae233c-4"},"60ae233c-7":{"renderedLength":39,"gzipLength":0,"brotliLength":0,"metaUid":"60ae233c-6"},"60ae233c-9":{"renderedLength":46244,"gzipLength":0,"brotliLength":0,"metaUid":"60ae233c-8"},"60ae233c-11":{"renderedLength":237,"gzipLength":0,"brotliLength":0,"metaUid":"60ae233c-10"},"60ae233c-13":{"renderedLength":949,"gzipLength":0,"brotliLength":0,"metaUid":"60ae233c-12"},"60ae233c-15":{"renderedLength":2262,"gzipLength":0,"brotliLength":0,"metaUid":"60ae233c-14"},"60ae233c-17":{"renderedLength":422,"gzipLength":0,"brotliLength":0,"metaUid":"60ae233c-16"},"60ae233c-19":{"renderedLength":426,"gzipLength":0,"brotliLength":0,"metaUid":"60ae233c-18"},"60ae233c-21":{"renderedLength":1913,"gzipLength":0,"brotliLength":0,"metaUid":"60ae233c-20"},"60ae233c-23":{"renderedLength":641,"gzipLength":0,"brotliLength":0,"metaUid":"60ae233c-22"},"60ae233c-25":{"renderedLength":730,"gzipLength":0,"brotliLength":0,"metaUid":"60ae233c-24"},"60ae233c-27":{"renderedLength":132,"gzipLength":0,"brotliLength":0,"metaUid":"60ae233c-26"},"60ae233c-29":{"renderedLength":1011,"gzipLength":0,"brotliLength":0,"metaUid":"60ae233c-28"},"60ae233c-31":{"renderedLength":496,"gzipLength":0,"brotliLength":0,"metaUid":"60ae233c-30"},"60ae233c-33":{"renderedLength":1623,"gzipLength":0,"brotliLength":0,"metaUid":"60ae233c-32"},"60ae233c-35":{"renderedLength":14006,"gzipLength":0,"brotliLength":0,"metaUid":"60ae233c-34"},"60ae233c-37":{"renderedLength":1079,"gzipLength":0,"brotliLength":0,"metaUid":"60ae233c-36"},"60ae233c-39":{"renderedLength":94,"gzipLength":0,"brotliLength":0,"metaUid":"60ae233c-38"},"60ae233c-41":{"renderedLength":104,"gzipLength":0,"brotliLength":0,"metaUid":"60ae233c-40"},"60ae233c-43":{"renderedLength":570,"gzipLength":0,"brotliLength":0,"metaUid":"60ae233c-42"},"60ae233c-45":{"renderedLength":675,"gzipLength":0,"brotliLength":0,"metaUid":"60ae233c-44"},"60ae233c-47":{"renderedLength":370,"gzipLength":0,"brotliLength":0,"metaUid":"60ae233c-46"},"60ae233c-49":{"renderedLength":4266,"gzipLength":0,"brotliLength":0,"metaUid":"60ae233c-48"},"60ae233c-51":{"renderedLength":4276,"gzipLength":0,"brotliLength":0,"metaUid":"60ae233c-50"},"60ae233c-53":{"renderedLength":253,"gzipLength":0,"brotliLength":0,"metaUid":"60ae233c-52"},"60ae233c-55":{"renderedLength":246,"gzipLength":0,"brotliLength":0,"metaUid":"60ae233c-54"},"60ae233c-57":{"renderedLength":551,"gzipLength":0,"brotliLength":0,"metaUid":"60ae233c-56"},"60ae233c-59":{"renderedLength":625,"gzipLength":0,"brotliLength":0,"metaUid":"60ae233c-58"},"60ae233c-61":{"renderedLength":3109,"gzipLength":0,"brotliLength":0,"metaUid":"60ae233c-60"},"60ae233c-63":{"renderedLength":502,"gzipLength":0,"brotliLength":0,"metaUid":"60ae233c-62"},"60ae233c-65":{"renderedLength":2398,"gzipLength":0,"brotliLength":0,"metaUid":"60ae233c-64"},"60ae233c-67":{"renderedLength":2894,"gzipLength":0,"brotliLength":0,"metaUid":"60ae233c-66"},"60ae233c-69":{"renderedLength":3130,"gzipLength":0,"brotliLength":0,"metaUid":"60ae233c-68"},"60ae233c-71":{"renderedLength":958,"gzipLength":0,"brotliLength":0,"metaUid":"60ae233c-70"},"60ae233c-73":{"renderedLength":2217,"gzipLength":0,"brotliLength":0,"metaUid":"60ae233c-72"},"60ae233c-75":{"renderedLength":2514,"gzipLength":0,"brotliLength":0,"metaUid":"60ae233c-74"},"60ae233c-77":{"renderedLength":3551,"gzipLength":0,"brotliLength":0,"metaUid":"60ae233c-76"},"60ae233c-79":{"renderedLength":2739,"gzipLength":0,"brotliLength":0,"metaUid":"60ae233c-78"},"60ae233c-81":{"renderedLength":1553,"gzipLength":0,"brotliLength":0,"metaUid":"60ae233c-80"},"60ae233c-83":{"renderedLength":104,"gzipLength":0,"brotliLength":0,"metaUid":"60ae233c-82"},"60ae233c-85":{"renderedLength":3856,"gzipLength":0,"brotliLength":0,"metaUid":"60ae233c-84"},"60ae233c-87":{"renderedLength":1830,"gzipLength":0,"brotliLength":0,"metaUid":"60ae233c-86"},"60ae233c-89":{"renderedLength":4968,"gzipLength":0,"brotliLength":0,"metaUid":"60ae233c-88"},"60ae233c-91":{"renderedLength":3158,"gzipLength":0,"brotliLength":0,"metaUid":"60ae233c-90"},"60ae233c-93":{"renderedLength":2262,"gzipLength":0,"brotliLength":0,"metaUid":"60ae233c-92"},"60ae233c-95":{"renderedLength":397,"gzipLength":0,"brotliLength":0,"metaUid":"60ae233c-94"},"60ae233c-97":{"renderedLength":104,"gzipLength":0,"brotliLength":0,"metaUid":"60ae233c-96"},"60ae233c-99":{"renderedLength":4259,"gzipLength":0,"brotliLength":0,"metaUid":"60ae233c-98"},"60ae233c-101":{"renderedLength":1851,"gzipLength":0,"brotliLength":0,"metaUid":"60ae233c-100"},"60ae233c-103":{"renderedLength":3016,"gzipLength":0,"brotliLength":0,"metaUid":"60ae233c-102"},"60ae233c-105":{"renderedLength":102,"gzipLength":0,"brotliLength":0,"metaUid":"60ae233c-104"},"60ae233c-107":{"renderedLength":3370,"gzipLength":0,"brotliLength":0,"metaUid":"60ae233c-106"},"60ae233c-109":{"renderedLength":3409,"gzipLength":0,"brotliLength":0,"metaUid":"60ae233c-108"},"60ae233c-111":{"renderedLength":1808,"gzipLength":0,"brotliLength":0,"metaUid":"60ae233c-110"},"60ae233c-113":{"renderedLength":3839,"gzipLength":0,"brotliLength":0,"metaUid":"60ae233c-112"},"60ae233c-115":{"renderedLength":187,"gzipLength":0,"brotliLength":0,"metaUid":"60ae233c-114"},"60ae233c-117":{"renderedLength":28,"gzipLength":0,"brotliLength":0,"metaUid":"60ae233c-116"}},"nodeMetas":{"60ae233c-0":{"id":"\u0000/Users/leto/github/merico-dev/table/node_modules/react/jsx-runtime.js?commonjs-module","moduleParts":{"settings-form.umd.js":"60ae233c-1"},"imported":[],"importedBy":[{"uid":"60ae233c-10"}]},"60ae233c-2":{"id":"\u0000/Users/leto/github/merico-dev/table/node_modules/react/cjs/react-jsx-runtime.production.min.js?commonjs-exports","moduleParts":{"settings-form.umd.js":"60ae233c-3"},"imported":[],"importedBy":[{"uid":"60ae233c-4"}]},"60ae233c-4":{"id":"/Users/leto/github/merico-dev/table/node_modules/react/cjs/react-jsx-runtime.production.min.js","moduleParts":{"settings-form.umd.js":"60ae233c-5"},"imported":[{"uid":"60ae233c-139"},{"uid":"60ae233c-2"},{"uid":"60ae233c-142"}],"importedBy":[{"uid":"60ae233c-10"}]},"60ae233c-6":{"id":"\u0000/Users/leto/github/merico-dev/table/node_modules/react/cjs/react-jsx-runtime.development.js?commonjs-exports","moduleParts":{"settings-form.umd.js":"60ae233c-7"},"imported":[],"importedBy":[{"uid":"60ae233c-8"}]},"60ae233c-8":{"id":"/Users/leto/github/merico-dev/table/node_modules/react/cjs/react-jsx-runtime.development.js","moduleParts":{"settings-form.umd.js":"60ae233c-9"},"imported":[{"uid":"60ae233c-139"},{"uid":"60ae233c-6"},{"uid":"60ae233c-142"}],"importedBy":[{"uid":"60ae233c-10"}]},"60ae233c-10":{"id":"/Users/leto/github/merico-dev/table/node_modules/react/jsx-runtime.js","moduleParts":{"settings-form.umd.js":"60ae233c-11"},"imported":[{"uid":"60ae233c-139"},{"uid":"60ae233c-0"},{"uid":"60ae233c-4"},{"uid":"60ae233c-8"}],"importedBy":[{"uid":"60ae233c-68"},{"uid":"60ae233c-78"},{"uid":"60ae233c-72"},{"uid":"60ae233c-84"},{"uid":"60ae233c-90"},{"uid":"60ae233c-86"},{"uid":"60ae233c-94"},{"uid":"60ae233c-98"},{"uid":"60ae233c-102"},{"uid":"60ae233c-100"},{"uid":"60ae233c-106"},{"uid":"60ae233c-108"},{"uid":"60ae233c-112"},{"uid":"60ae233c-110"},{"uid":"60ae233c-42"},{"uid":"60ae233c-60"},{"uid":"60ae233c-66"},{"uid":"60ae233c-70"},{"uid":"60ae233c-76"},{"uid":"60ae233c-80"},{"uid":"60ae233c-88"},{"uid":"60ae233c-92"},{"uid":"60ae233c-44"},{"uid":"60ae233c-64"},{"uid":"60ae233c-46"},{"uid":"60ae233c-58"},{"uid":"60ae233c-74"},{"uid":"60ae233c-62"},{"uid":"60ae233c-54"}]},"60ae233c-12":{"id":"/Users/leto/github/merico-dev/table/shared/src/api-client/utils.ts","moduleParts":{"settings-form.umd.js":"60ae233c-13"},"imported":[{"uid":"60ae233c-143"}],"importedBy":[{"uid":"60ae233c-138"},{"uid":"60ae233c-14"}]},"60ae233c-14":{"id":"/Users/leto/github/merico-dev/table/shared/src/api-client/default-api-client.ts","moduleParts":{"settings-form.umd.js":"60ae233c-15"},"imported":[{"uid":"60ae233c-144"},{"uid":"60ae233c-12"},{"uid":"60ae233c-145"}],"importedBy":[{"uid":"60ae233c-138"}]},"60ae233c-16":{"id":"/Users/leto/github/merico-dev/table/shared/src/api-client/facade-api-client.ts","moduleParts":{"settings-form.umd.js":"60ae233c-17"},"imported":[],"importedBy":[{"uid":"60ae233c-138"}]},"60ae233c-18":{"id":"/src/api-caller/request.ts","moduleParts":{"settings-form.umd.js":"60ae233c-19"},"imported":[{"uid":"60ae233c-127"}],"importedBy":[{"uid":"60ae233c-114"},{"uid":"60ae233c-20"},{"uid":"60ae233c-22"},{"uid":"60ae233c-24"},{"uid":"60ae233c-26"},{"uid":"60ae233c-36"},{"uid":"60ae233c-58"}]},"60ae233c-20":{"id":"/src/api-caller/account.ts","moduleParts":{"settings-form.umd.js":"60ae233c-21"},"imported":[{"uid":"60ae233c-18"}],"importedBy":[{"uid":"60ae233c-38"}]},"60ae233c-22":{"id":"/src/api-caller/api-key.ts","moduleParts":{"settings-form.umd.js":"60ae233c-23"},"imported":[{"uid":"60ae233c-18"}],"importedBy":[{"uid":"60ae233c-38"}]},"60ae233c-24":{"id":"/src/api-caller/datasource.ts","moduleParts":{"settings-form.umd.js":"60ae233c-25"},"imported":[{"uid":"60ae233c-18"}],"importedBy":[{"uid":"60ae233c-38"}]},"60ae233c-26":{"id":"/src/api-caller/role.ts","moduleParts":{"settings-form.umd.js":"60ae233c-27"},"imported":[{"uid":"60ae233c-18"}],"importedBy":[{"uid":"60ae233c-38"}]},"60ae233c-28":{"id":"/Users/leto/github/merico-dev/table/node_modules/dayjs/esm/constant.js","moduleParts":{"settings-form.umd.js":"60ae233c-29"},"imported":[],"importedBy":[{"uid":"60ae233c-34"},{"uid":"60ae233c-32"}]},"60ae233c-30":{"id":"/Users/leto/github/merico-dev/table/node_modules/dayjs/esm/locale/en.js","moduleParts":{"settings-form.umd.js":"60ae233c-31"},"imported":[],"importedBy":[{"uid":"60ae233c-34"}]},"60ae233c-32":{"id":"/Users/leto/github/merico-dev/table/node_modules/dayjs/esm/utils.js","moduleParts":{"settings-form.umd.js":"60ae233c-33"},"imported":[{"uid":"60ae233c-28"}],"importedBy":[{"uid":"60ae233c-34"}]},"60ae233c-34":{"id":"/Users/leto/github/merico-dev/table/node_modules/dayjs/esm/index.js","moduleParts":{"settings-form.umd.js":"60ae233c-35"},"imported":[{"uid":"60ae233c-28"},{"uid":"60ae233c-30"},{"uid":"60ae233c-32"}],"importedBy":[{"uid":"60ae233c-36"}]},"60ae233c-36":{"id":"/src/api-caller/sql_snippet.ts","moduleParts":{"settings-form.umd.js":"60ae233c-37"},"imported":[{"uid":"60ae233c-34"},{"uid":"60ae233c-18"}],"importedBy":[{"uid":"60ae233c-38"}]},"60ae233c-38":{"id":"/src/api-caller/index.ts","moduleParts":{"settings-form.umd.js":"60ae233c-39"},"imported":[{"uid":"60ae233c-20"},{"uid":"60ae233c-22"},{"uid":"60ae233c-24"},{"uid":"60ae233c-26"},{"uid":"60ae233c-36"}],"importedBy":[{"uid":"60ae233c-68"},{"uid":"60ae233c-78"},{"uid":"60ae233c-72"},{"uid":"60ae233c-84"},{"uid":"60ae233c-90"},{"uid":"60ae233c-86"},{"uid":"60ae233c-98"},{"uid":"60ae233c-102"},{"uid":"60ae233c-100"},{"uid":"60ae233c-106"},{"uid":"60ae233c-108"},{"uid":"60ae233c-112"},{"uid":"60ae233c-110"},{"uid":"60ae233c-76"},{"uid":"60ae233c-80"},{"uid":"60ae233c-88"},{"uid":"60ae233c-92"}]},"60ae233c-40":{"id":"/src/datasource/styles.ts","moduleParts":{"settings-form.umd.js":"60ae233c-41"},"imported":[],"importedBy":[{"uid":"60ae233c-68"},{"uid":"60ae233c-78"},{"uid":"60ae233c-72"},{"uid":"60ae233c-42"},{"uid":"60ae233c-60"},{"uid":"60ae233c-66"},{"uid":"60ae233c-76"},{"uid":"60ae233c-74"}]},"60ae233c-42":{"id":"/src/datasource/add-data-source/db-permission-tips.tsx","moduleParts":{"settings-form.umd.js":"60ae233c-43"},"imported":[{"uid":"60ae233c-10"},{"uid":"60ae233c-128"},{"uid":"60ae233c-130"},{"uid":"60ae233c-132"},{"uid":"60ae233c-40"}],"importedBy":[{"uid":"60ae233c-68"}]},"60ae233c-44":{"id":"/src/components/minimal-mocaco-editor.tsx","moduleParts":{"settings-form.umd.js":"60ae233c-45"},"imported":[{"uid":"60ae233c-10"},{"uid":"60ae233c-140"},{"uid":"60ae233c-131"}],"importedBy":[{"uid":"60ae233c-106"},{"uid":"60ae233c-108"},{"uid":"60ae233c-134"}]},"60ae233c-46":{"id":"/src/components/submit-form-button.tsx","moduleParts":{"settings-form.umd.js":"60ae233c-47"},"imported":[{"uid":"60ae233c-10"},{"uid":"60ae233c-128"},{"uid":"60ae233c-130"},{"uid":"60ae233c-132"}],"importedBy":[{"uid":"60ae233c-134"}]},"60ae233c-48":{"id":"/src/i18n/en.ts","moduleParts":{"settings-form.umd.js":"60ae233c-49"},"imported":[],"importedBy":[{"uid":"60ae233c-52"}]},"60ae233c-50":{"id":"/src/i18n/zh.ts","moduleParts":{"settings-form.umd.js":"60ae233c-51"},"imported":[],"importedBy":[{"uid":"60ae233c-52"}]},"60ae233c-52":{"id":"/src/i18n/i18n.ts","moduleParts":{"settings-form.umd.js":"60ae233c-53"},"imported":[{"uid":"60ae233c-146"},{"uid":"60ae233c-132"},{"uid":"60ae233c-147"},{"uid":"60ae233c-148"},{"uid":"60ae233c-48"},{"uid":"60ae233c-50"}],"importedBy":[{"uid":"60ae233c-54"}]},"60ae233c-54":{"id":"/src/i18n/i18next-context.tsx","moduleParts":{"settings-form.umd.js":"60ae233c-55"},"imported":[{"uid":"60ae233c-10"},{"uid":"60ae233c-131"},{"uid":"60ae233c-132"},{"uid":"60ae233c-52"}],"importedBy":[{"uid":"60ae233c-58"}]},"60ae233c-56":{"id":"/src/utils/load-monaco-editor.ts","moduleParts":{"settings-form.umd.js":"60ae233c-57"},"imported":[{"uid":"60ae233c-140"},{"uid":"60ae233c-131"}],"importedBy":[{"uid":"60ae233c-58"}]},"60ae233c-58":{"id":"/src/components/with-entry.tsx","moduleParts":{"settings-form.umd.js":"60ae233c-59"},"imported":[{"uid":"60ae233c-10"},{"uid":"60ae233c-131"},{"uid":"60ae233c-18"},{"uid":"60ae233c-54"},{"uid":"60ae233c-56"},{"uid":"60ae233c-128"}],"importedBy":[{"uid":"60ae233c-134"}]},"60ae233c-60":{"id":"/src/datasource/add-data-source/forms/database.tsx","moduleParts":{"settings-form.umd.js":"60ae233c-61"},"imported":[{"uid":"60ae233c-10"},{"uid":"60ae233c-128"},{"uid":"60ae233c-131"},{"uid":"60ae233c-136"},{"uid":"60ae233c-134"},{"uid":"60ae233c-40"},{"uid":"60ae233c-132"}],"importedBy":[{"uid":"60ae233c-68"}]},"60ae233c-62":{"id":"/src/datasource/components/function-string-field/function-string-editor.tsx","moduleParts":{"settings-form.umd.js":"60ae233c-63"},"imported":[{"uid":"60ae233c-10"},{"uid":"60ae233c-128"},{"uid":"60ae233c-140"}],"importedBy":[{"uid":"60ae233c-64"}]},"60ae233c-64":{"id":"/src/datasource/components/function-string-field/index.tsx","moduleParts":{"settings-form.umd.js":"60ae233c-65"},"imported":[{"uid":"60ae233c-10"},{"uid":"60ae233c-128"},{"uid":"60ae233c-130"},{"uid":"60ae233c-133"},{"uid":"60ae233c-131"},{"uid":"60ae233c-132"},{"uid":"60ae233c-62"}],"importedBy":[{"uid":"60ae233c-66"},{"uid":"60ae233c-74"}]},"60ae233c-66":{"id":"/src/datasource/add-data-source/forms/http.tsx","moduleParts":{"settings-form.umd.js":"60ae233c-67"},"imported":[{"uid":"60ae233c-10"},{"uid":"60ae233c-128"},{"uid":"60ae233c-136"},{"uid":"60ae233c-40"},{"uid":"60ae233c-64"},{"uid":"60ae233c-134"},{"uid":"60ae233c-132"}],"importedBy":[{"uid":"60ae233c-68"}]},"60ae233c-68":{"id":"/src/datasource/add-data-source/index.tsx","moduleParts":{"settings-form.umd.js":"60ae233c-69"},"imported":[{"uid":"60ae233c-10"},{"uid":"60ae233c-128"},{"uid":"60ae233c-129"},{"uid":"60ae233c-130"},{"uid":"60ae233c-131"},{"uid":"60ae233c-132"},{"uid":"60ae233c-38"},{"uid":"60ae233c-40"},{"uid":"60ae233c-42"},{"uid":"60ae233c-60"},{"uid":"60ae233c-66"}],"importedBy":[{"uid":"60ae233c-118"},{"uid":"60ae233c-78"}]},"60ae233c-70":{"id":"/src/datasource/components/data-source-icon.tsx","moduleParts":{"settings-form.umd.js":"60ae233c-71"},"imported":[{"uid":"60ae233c-10"},{"uid":"60ae233c-130"},{"uid":"60ae233c-128"}],"importedBy":[{"uid":"60ae233c-78"}]},"60ae233c-72":{"id":"/src/datasource/delete-data-source.tsx","moduleParts":{"settings-form.umd.js":"60ae233c-73"},"imported":[{"uid":"60ae233c-10"},{"uid":"60ae233c-128"},{"uid":"60ae233c-135"},{"uid":"60ae233c-129"},{"uid":"60ae233c-130"},{"uid":"60ae233c-132"},{"uid":"60ae233c-38"},{"uid":"60ae233c-40"}],"importedBy":[{"uid":"60ae233c-118"},{"uid":"60ae233c-78"}]},"60ae233c-74":{"id":"/src/datasource/edit-data-source/forms/http.tsx","moduleParts":{"settings-form.umd.js":"60ae233c-75"},"imported":[{"uid":"60ae233c-10"},{"uid":"60ae233c-128"},{"uid":"60ae233c-136"},{"uid":"60ae233c-132"},{"uid":"60ae233c-134"},{"uid":"60ae233c-64"},{"uid":"60ae233c-40"}],"importedBy":[{"uid":"60ae233c-76"}]},"60ae233c-76":{"id":"/src/datasource/edit-data-source/index.tsx","moduleParts":{"settings-form.umd.js":"60ae233c-77"},"imported":[{"uid":"60ae233c-10"},{"uid":"60ae233c-128"},{"uid":"60ae233c-129"},{"uid":"60ae233c-130"},{"uid":"60ae233c-131"},{"uid":"60ae233c-38"},{"uid":"60ae233c-40"},{"uid":"60ae233c-74"},{"uid":"60ae233c-132"}],"importedBy":[{"uid":"60ae233c-78"}]},"60ae233c-78":{"id":"/src/datasource/data-source-list.tsx","moduleParts":{"settings-form.umd.js":"60ae233c-79"},"imported":[{"uid":"60ae233c-10"},{"uid":"60ae233c-128"},{"uid":"60ae233c-133"},{"uid":"60ae233c-132"},{"uid":"60ae233c-38"},{"uid":"60ae233c-134"},{"uid":"60ae233c-68"},{"uid":"60ae233c-70"},{"uid":"60ae233c-72"},{"uid":"60ae233c-76"},{"uid":"60ae233c-40"}],"importedBy":[{"uid":"60ae233c-118"}]},"60ae233c-80":{"id":"/src/account/role-selector.tsx","moduleParts":{"settings-form.umd.js":"60ae233c-81"},"imported":[{"uid":"60ae233c-10"},{"uid":"60ae233c-128"},{"uid":"60ae233c-133"},{"uid":"60ae233c-131"},{"uid":"60ae233c-132"},{"uid":"60ae233c-38"}],"importedBy":[{"uid":"60ae233c-84"},{"uid":"60ae233c-98"},{"uid":"60ae233c-88"}]},"60ae233c-82":{"id":"/src/account/styles.ts","moduleParts":{"settings-form.umd.js":"60ae233c-83"},"imported":[],"importedBy":[{"uid":"60ae233c-84"},{"uid":"60ae233c-90"},{"uid":"60ae233c-86"},{"uid":"60ae233c-94"},{"uid":"60ae233c-88"},{"uid":"60ae233c-92"}]},"60ae233c-84":{"id":"/src/account/add-account.tsx","moduleParts":{"settings-form.umd.js":"60ae233c-85"},"imported":[{"uid":"60ae233c-10"},{"uid":"60ae233c-128"},{"uid":"60ae233c-129"},{"uid":"60ae233c-131"},{"uid":"60ae233c-136"},{"uid":"60ae233c-130"},{"uid":"60ae233c-38"},{"uid":"60ae233c-134"},{"uid":"60ae233c-80"},{"uid":"60ae233c-82"},{"uid":"60ae233c-132"}],"importedBy":[{"uid":"60ae233c-119"},{"uid":"60ae233c-90"}]},"60ae233c-86":{"id":"/src/account/delete-account.tsx","moduleParts":{"settings-form.umd.js":"60ae233c-87"},"imported":[{"uid":"60ae233c-10"},{"uid":"60ae233c-128"},{"uid":"60ae233c-135"},{"uid":"60ae233c-129"},{"uid":"60ae233c-130"},{"uid":"60ae233c-132"},{"uid":"60ae233c-38"},{"uid":"60ae233c-82"}],"importedBy":[{"uid":"60ae233c-119"},{"uid":"60ae233c-90"}]},"60ae233c-88":{"id":"/src/account/edit-account.tsx","moduleParts":{"settings-form.umd.js":"60ae233c-89"},"imported":[{"uid":"60ae233c-10"},{"uid":"60ae233c-128"},{"uid":"60ae233c-129"},{"uid":"60ae233c-130"},{"uid":"60ae233c-131"},{"uid":"60ae233c-136"},{"uid":"60ae233c-132"},{"uid":"60ae233c-38"},{"uid":"60ae233c-134"},{"uid":"60ae233c-80"},{"uid":"60ae233c-82"}],"importedBy":[{"uid":"60ae233c-90"}]},"60ae233c-90":{"id":"/src/account/account-list.tsx","moduleParts":{"settings-form.umd.js":"60ae233c-91"},"imported":[{"uid":"60ae233c-10"},{"uid":"60ae233c-128"},{"uid":"60ae233c-133"},{"uid":"60ae233c-132"},{"uid":"60ae233c-38"},{"uid":"60ae233c-134"},{"uid":"60ae233c-84"},{"uid":"60ae233c-86"},{"uid":"60ae233c-88"},{"uid":"60ae233c-82"}],"importedBy":[{"uid":"60ae233c-119"}]},"60ae233c-92":{"id":"/src/account/login/form.tsx","moduleParts":{"settings-form.umd.js":"60ae233c-93"},"imported":[{"uid":"60ae233c-10"},{"uid":"60ae233c-128"},{"uid":"60ae233c-129"},{"uid":"60ae233c-136"},{"uid":"60ae233c-38"},{"uid":"60ae233c-82"},{"uid":"60ae233c-134"},{"uid":"60ae233c-132"}],"importedBy":[{"uid":"60ae233c-94"}]},"60ae233c-94":{"id":"/src/account/login/index.tsx","moduleParts":{"settings-form.umd.js":"60ae233c-95"},"imported":[{"uid":"60ae233c-10"},{"uid":"60ae233c-128"},{"uid":"60ae233c-134"},{"uid":"60ae233c-82"},{"uid":"60ae233c-92"}],"importedBy":[{"uid":"60ae233c-119"}]},"60ae233c-96":{"id":"/src/api-key/styles.ts","moduleParts":{"settings-form.umd.js":"60ae233c-97"},"imported":[],"importedBy":[{"uid":"60ae233c-98"},{"uid":"60ae233c-102"},{"uid":"60ae233c-100"}]},"60ae233c-98":{"id":"/src/api-key/add-api-key.tsx","moduleParts":{"settings-form.umd.js":"60ae233c-99"},"imported":[{"uid":"60ae233c-10"},{"uid":"60ae233c-128"},{"uid":"60ae233c-135"},{"uid":"60ae233c-129"},{"uid":"60ae233c-131"},{"uid":"60ae233c-136"},{"uid":"60ae233c-80"},{"uid":"60ae233c-38"},{"uid":"60ae233c-134"},{"uid":"60ae233c-96"},{"uid":"60ae233c-132"},{"uid":"60ae233c-130"}],"importedBy":[{"uid":"60ae233c-120"},{"uid":"60ae233c-102"}]},"60ae233c-100":{"id":"/src/api-key/delete-api-key.tsx","moduleParts":{"settings-form.umd.js":"60ae233c-101"},"imported":[{"uid":"60ae233c-10"},{"uid":"60ae233c-128"},{"uid":"60ae233c-135"},{"uid":"60ae233c-129"},{"uid":"60ae233c-130"},{"uid":"60ae233c-132"},{"uid":"60ae233c-38"},{"uid":"60ae233c-96"}],"importedBy":[{"uid":"60ae233c-120"},{"uid":"60ae233c-102"}]},"60ae233c-102":{"id":"/src/api-key/api-key-list.tsx","moduleParts":{"settings-form.umd.js":"60ae233c-103"},"imported":[{"uid":"60ae233c-10"},{"uid":"60ae233c-128"},{"uid":"60ae233c-133"},{"uid":"60ae233c-132"},{"uid":"60ae233c-38"},{"uid":"60ae233c-134"},{"uid":"60ae233c-98"},{"uid":"60ae233c-100"},{"uid":"60ae233c-96"}],"importedBy":[{"uid":"60ae233c-120"}]},"60ae233c-104":{"id":"/src/sql_snippet/styles.ts","moduleParts":{"settings-form.umd.js":"60ae233c-105"},"imported":[],"importedBy":[{"uid":"60ae233c-106"},{"uid":"60ae233c-108"},{"uid":"60ae233c-112"},{"uid":"60ae233c-110"}]},"60ae233c-106":{"id":"/src/sql_snippet/add-sql_snippet.tsx","moduleParts":{"settings-form.umd.js":"60ae233c-107"},"imported":[{"uid":"60ae233c-10"},{"uid":"60ae233c-128"},{"uid":"60ae233c-129"},{"uid":"60ae233c-130"},{"uid":"60ae233c-131"},{"uid":"60ae233c-136"},{"uid":"60ae233c-132"},{"uid":"60ae233c-38"},{"uid":"60ae233c-134"},{"uid":"60ae233c-44"},{"uid":"60ae233c-104"}],"importedBy":[{"uid":"60ae233c-121"},{"uid":"60ae233c-112"}]},"60ae233c-108":{"id":"/src/sql_snippet/update-sql_snippet.tsx","moduleParts":{"settings-form.umd.js":"60ae233c-109"},"imported":[{"uid":"60ae233c-10"},{"uid":"60ae233c-128"},{"uid":"60ae233c-129"},{"uid":"60ae233c-130"},{"uid":"60ae233c-131"},{"uid":"60ae233c-136"},{"uid":"60ae233c-38"},{"uid":"60ae233c-44"},{"uid":"60ae233c-104"},{"uid":"60ae233c-134"},{"uid":"60ae233c-132"}],"importedBy":[{"uid":"60ae233c-121"},{"uid":"60ae233c-112"}]},"60ae233c-110":{"id":"/src/sql_snippet/delete-sql_snippet.tsx","moduleParts":{"settings-form.umd.js":"60ae233c-111"},"imported":[{"uid":"60ae233c-10"},{"uid":"60ae233c-128"},{"uid":"60ae233c-135"},{"uid":"60ae233c-129"},{"uid":"60ae233c-130"},{"uid":"60ae233c-132"},{"uid":"60ae233c-38"},{"uid":"60ae233c-104"}],"importedBy":[{"uid":"60ae233c-121"},{"uid":"60ae233c-112"}]},"60ae233c-112":{"id":"/src/sql_snippet/sql_snippet-list.tsx","moduleParts":{"settings-form.umd.js":"60ae233c-113"},"imported":[{"uid":"60ae233c-10"},{"uid":"60ae233c-128"},{"uid":"60ae233c-137"},{"uid":"60ae233c-133"},{"uid":"60ae233c-38"},{"uid":"60ae233c-106"},{"uid":"60ae233c-110"},{"uid":"60ae233c-104"},{"uid":"60ae233c-130"},{"uid":"60ae233c-132"},{"uid":"60ae233c-134"},{"uid":"60ae233c-108"}],"importedBy":[{"uid":"60ae233c-121"}]},"60ae233c-114":{"id":"/src/index.ts","moduleParts":{"settings-form.umd.js":"60ae233c-115"},"imported":[{"uid":"60ae233c-118"},{"uid":"60ae233c-119"},{"uid":"60ae233c-120"},{"uid":"60ae233c-121"},{"uid":"60ae233c-18"},{"uid":"60ae233c-122"},{"uid":"60ae233c-123"},{"uid":"60ae233c-124"},{"uid":"60ae233c-125"},{"uid":"60ae233c-126"},{"uid":"60ae233c-116","dynamic":true}],"importedBy":[],"isEntry":true},"60ae233c-116":{"id":"/package.json","moduleParts":{"settings-form.umd.js":"60ae233c-117"},"imported":[],"importedBy":[{"uid":"60ae233c-114"}]},"60ae233c-118":{"id":"/src/datasource/index.tsx","moduleParts":{},"imported":[{"uid":"60ae233c-68"},{"uid":"60ae233c-78"},{"uid":"60ae233c-72"}],"importedBy":[{"uid":"60ae233c-114"}]},"60ae233c-119":{"id":"/src/account/index.tsx","moduleParts":{},"imported":[{"uid":"60ae233c-84"},{"uid":"60ae233c-90"},{"uid":"60ae233c-86"},{"uid":"60ae233c-94"}],"importedBy":[{"uid":"60ae233c-114"}]},"60ae233c-120":{"id":"/src/api-key/index.tsx","moduleParts":{},"imported":[{"uid":"60ae233c-98"},{"uid":"60ae233c-102"},{"uid":"60ae233c-100"}],"importedBy":[{"uid":"60ae233c-114"}]},"60ae233c-121":{"id":"/src/sql_snippet/index.tsx","moduleParts":{},"imported":[{"uid":"60ae233c-106"},{"uid":"60ae233c-108"},{"uid":"60ae233c-112"},{"uid":"60ae233c-110"}],"importedBy":[{"uid":"60ae233c-114"}]},"60ae233c-122":{"id":"/src/api-caller/account.typed.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"60ae233c-114"}]},"60ae233c-123":{"id":"/src/api-caller/api-key.typed.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"60ae233c-114"}]},"60ae233c-124":{"id":"/src/api-caller/datasource.typed.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"60ae233c-114"}]},"60ae233c-125":{"id":"/src/api-caller/role.typed.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"60ae233c-114"}]},"60ae233c-126":{"id":"/src/api-caller/sql_snippet.typed.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"60ae233c-114"}]},"60ae233c-127":{"id":"/Users/leto/github/merico-dev/table/shared/src/index.ts","moduleParts":{},"imported":[{"uid":"60ae233c-138"}],"importedBy":[{"uid":"60ae233c-18"}]},"60ae233c-128":{"id":"@mantine/core","moduleParts":{},"imported":[],"importedBy":[{"uid":"60ae233c-68"},{"uid":"60ae233c-78"},{"uid":"60ae233c-72"},{"uid":"60ae233c-84"},{"uid":"60ae233c-90"},{"uid":"60ae233c-86"},{"uid":"60ae233c-94"},{"uid":"60ae233c-98"},{"uid":"60ae233c-102"},{"uid":"60ae233c-100"},{"uid":"60ae233c-106"},{"uid":"60ae233c-108"},{"uid":"60ae233c-112"},{"uid":"60ae233c-110"},{"uid":"60ae233c-42"},{"uid":"60ae233c-60"},{"uid":"60ae233c-66"},{"uid":"60ae233c-70"},{"uid":"60ae233c-76"},{"uid":"60ae233c-80"},{"uid":"60ae233c-88"},{"uid":"60ae233c-92"},{"uid":"60ae233c-64"},{"uid":"60ae233c-46"},{"uid":"60ae233c-58"},{"uid":"60ae233c-74"},{"uid":"60ae233c-62"}],"isExternal":true},"60ae233c-129":{"id":"@mantine/notifications","moduleParts":{},"imported":[],"importedBy":[{"uid":"60ae233c-68"},{"uid":"60ae233c-72"},{"uid":"60ae233c-84"},{"uid":"60ae233c-86"},{"uid":"60ae233c-98"},{"uid":"60ae233c-100"},{"uid":"60ae233c-106"},{"uid":"60ae233c-108"},{"uid":"60ae233c-110"},{"uid":"60ae233c-76"},{"uid":"60ae233c-88"},{"uid":"60ae233c-92"}],"isExternal":true},"60ae233c-130":{"id":"@tabler/icons-react","moduleParts":{},"imported":[],"importedBy":[{"uid":"60ae233c-68"},{"uid":"60ae233c-72"},{"uid":"60ae233c-84"},{"uid":"60ae233c-86"},{"uid":"60ae233c-98"},{"uid":"60ae233c-100"},{"uid":"60ae233c-106"},{"uid":"60ae233c-108"},{"uid":"60ae233c-112"},{"uid":"60ae233c-110"},{"uid":"60ae233c-42"},{"uid":"60ae233c-70"},{"uid":"60ae233c-76"},{"uid":"60ae233c-88"},{"uid":"60ae233c-64"},{"uid":"60ae233c-46"}],"isExternal":true},"60ae233c-131":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"60ae233c-68"},{"uid":"60ae233c-84"},{"uid":"60ae233c-98"},{"uid":"60ae233c-106"},{"uid":"60ae233c-108"},{"uid":"60ae233c-60"},{"uid":"60ae233c-76"},{"uid":"60ae233c-80"},{"uid":"60ae233c-88"},{"uid":"60ae233c-44"},{"uid":"60ae233c-64"},{"uid":"60ae233c-58"},{"uid":"60ae233c-142"},{"uid":"60ae233c-54"},{"uid":"60ae233c-56"}],"isExternal":true},"60ae233c-132":{"id":"react-i18next","moduleParts":{},"imported":[],"importedBy":[{"uid":"60ae233c-68"},{"uid":"60ae233c-78"},{"uid":"60ae233c-72"},{"uid":"60ae233c-84"},{"uid":"60ae233c-90"},{"uid":"60ae233c-86"},{"uid":"60ae233c-98"},{"uid":"60ae233c-102"},{"uid":"60ae233c-100"},{"uid":"60ae233c-106"},{"uid":"60ae233c-108"},{"uid":"60ae233c-112"},{"uid":"60ae233c-110"},{"uid":"60ae233c-42"},{"uid":"60ae233c-60"},{"uid":"60ae233c-66"},{"uid":"60ae233c-76"},{"uid":"60ae233c-80"},{"uid":"60ae233c-88"},{"uid":"60ae233c-92"},{"uid":"60ae233c-64"},{"uid":"60ae233c-46"},{"uid":"60ae233c-74"},{"uid":"60ae233c-54"},{"uid":"60ae233c-52"}],"isExternal":true},"60ae233c-133":{"id":"ahooks","moduleParts":{},"imported":[],"importedBy":[{"uid":"60ae233c-78"},{"uid":"60ae233c-90"},{"uid":"60ae233c-102"},{"uid":"60ae233c-112"},{"uid":"60ae233c-80"},{"uid":"60ae233c-64"}],"isExternal":true},"60ae233c-134":{"id":"/src/components/index.ts","moduleParts":{},"imported":[{"uid":"60ae233c-44"},{"uid":"60ae233c-46"},{"uid":"60ae233c-58"}],"importedBy":[{"uid":"60ae233c-78"},{"uid":"60ae233c-84"},{"uid":"60ae233c-90"},{"uid":"60ae233c-94"},{"uid":"60ae233c-98"},{"uid":"60ae233c-102"},{"uid":"60ae233c-106"},{"uid":"60ae233c-108"},{"uid":"60ae233c-112"},{"uid":"60ae233c-60"},{"uid":"60ae233c-66"},{"uid":"60ae233c-88"},{"uid":"60ae233c-92"},{"uid":"60ae233c-74"}]},"60ae233c-135":{"id":"@mantine/modals","moduleParts":{},"imported":[],"importedBy":[{"uid":"60ae233c-72"},{"uid":"60ae233c-86"},{"uid":"60ae233c-98"},{"uid":"60ae233c-100"},{"uid":"60ae233c-110"}],"isExternal":true},"60ae233c-136":{"id":"react-hook-form","moduleParts":{},"imported":[],"importedBy":[{"uid":"60ae233c-84"},{"uid":"60ae233c-98"},{"uid":"60ae233c-106"},{"uid":"60ae233c-108"},{"uid":"60ae233c-60"},{"uid":"60ae233c-66"},{"uid":"60ae233c-88"},{"uid":"60ae233c-92"},{"uid":"60ae233c-74"}],"isExternal":true},"60ae233c-137":{"id":"@mantine/code-highlight","moduleParts":{},"imported":[],"importedBy":[{"uid":"60ae233c-112"}],"isExternal":true},"60ae233c-138":{"id":"/Users/leto/github/merico-dev/table/shared/src/api-client/index.ts","moduleParts":{},"imported":[{"uid":"60ae233c-141"},{"uid":"60ae233c-12"},{"uid":"60ae233c-14"},{"uid":"60ae233c-16"}],"importedBy":[{"uid":"60ae233c-127"}]},"60ae233c-139":{"id":"\u0000commonjsHelpers.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"60ae233c-10"},{"uid":"60ae233c-4"},{"uid":"60ae233c-8"}]},"60ae233c-140":{"id":"@monaco-editor/react","moduleParts":{},"imported":[],"importedBy":[{"uid":"60ae233c-44"},{"uid":"60ae233c-62"},{"uid":"60ae233c-56"}],"isExternal":true},"60ae233c-141":{"id":"/Users/leto/github/merico-dev/table/shared/src/api-client/types.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"60ae233c-138"}]},"60ae233c-142":{"id":"\u0000react?commonjs-external","moduleParts":{},"imported":[{"uid":"60ae233c-131"}],"importedBy":[{"uid":"60ae233c-4"},{"uid":"60ae233c-8"}]},"60ae233c-143":{"id":"crypto-js","moduleParts":{},"imported":[],"importedBy":[{"uid":"60ae233c-12"}],"isExternal":true},"60ae233c-144":{"id":"lodash","moduleParts":{},"imported":[],"importedBy":[{"uid":"60ae233c-14"}],"isExternal":true},"60ae233c-145":{"id":"axios","moduleParts":{},"imported":[],"importedBy":[{"uid":"60ae233c-14"}],"isExternal":true},"60ae233c-146":{"id":"i18next","moduleParts":{},"imported":[],"importedBy":[{"uid":"60ae233c-52"}],"isExternal":true},"60ae233c-147":{"id":"i18next-browser-languagedetector","moduleParts":{},"imported":[],"importedBy":[{"uid":"60ae233c-52"}],"isExternal":true},"60ae233c-148":{"id":"intl-pluralrules","moduleParts":{},"imported":[],"importedBy":[{"uid":"60ae233c-52"}],"isExternal":true}},"env":{"rollup":"3.29.4"},"options":{"gzip":false,"brotli":false,"sourcemap":false}};
4825
+ const data = {"version":2,"tree":{"name":"root","children":[{"name":"settings-form.umd.js","children":[{"name":"\u0000/Users/leto/github/merico-dev/table/node_modules/react","children":[{"uid":"2d5bf724-1","name":"jsx-runtime.js?commonjs-module"},{"name":"cjs","children":[{"uid":"2d5bf724-3","name":"react-jsx-runtime.production.min.js?commonjs-exports"},{"uid":"2d5bf724-7","name":"react-jsx-runtime.development.js?commonjs-exports"}]}]},{"name":"Users/leto/github/merico-dev/table","children":[{"name":"node_modules","children":[{"name":"react","children":[{"name":"cjs","children":[{"uid":"2d5bf724-5","name":"react-jsx-runtime.production.min.js"},{"uid":"2d5bf724-9","name":"react-jsx-runtime.development.js"}]},{"uid":"2d5bf724-11","name":"jsx-runtime.js"}]},{"name":"dayjs/esm","children":[{"uid":"2d5bf724-29","name":"constant.js"},{"name":"locale/en.js","uid":"2d5bf724-31"},{"uid":"2d5bf724-33","name":"utils.js"},{"uid":"2d5bf724-35","name":"index.js"}]}]},{"name":"shared/src/api-client","children":[{"uid":"2d5bf724-13","name":"utils.ts"},{"uid":"2d5bf724-15","name":"default-api-client.ts"},{"uid":"2d5bf724-17","name":"facade-api-client.ts"}]}]},{"name":"src","children":[{"name":"api-caller","children":[{"uid":"2d5bf724-19","name":"request.ts"},{"uid":"2d5bf724-21","name":"account.ts"},{"uid":"2d5bf724-23","name":"api-key.ts"},{"uid":"2d5bf724-25","name":"datasource.ts"},{"uid":"2d5bf724-27","name":"role.ts"},{"uid":"2d5bf724-37","name":"sql_snippet.ts"},{"uid":"2d5bf724-39","name":"index.ts"}]},{"name":"datasource","children":[{"uid":"2d5bf724-41","name":"styles.ts"},{"name":"add-data-source","children":[{"uid":"2d5bf724-43","name":"db-permission-tips.tsx"},{"name":"forms","children":[{"uid":"2d5bf724-61","name":"database.tsx"},{"uid":"2d5bf724-67","name":"http.tsx"}]},{"uid":"2d5bf724-69","name":"index.tsx"}]},{"name":"components","children":[{"name":"function-string-field","children":[{"uid":"2d5bf724-63","name":"function-string-editor.tsx"},{"uid":"2d5bf724-65","name":"index.tsx"}]},{"uid":"2d5bf724-71","name":"data-source-icon.tsx"}]},{"uid":"2d5bf724-73","name":"delete-data-source.tsx"},{"name":"edit-data-source","children":[{"name":"forms/http.tsx","uid":"2d5bf724-75"},{"uid":"2d5bf724-77","name":"index.tsx"}]},{"uid":"2d5bf724-79","name":"data-source-list.tsx"}]},{"name":"components","children":[{"uid":"2d5bf724-45","name":"minimal-mocaco-editor.tsx"},{"uid":"2d5bf724-47","name":"submit-form-button.tsx"},{"uid":"2d5bf724-59","name":"with-entry.tsx"}]},{"name":"i18n","children":[{"uid":"2d5bf724-49","name":"en.ts"},{"uid":"2d5bf724-51","name":"zh.ts"},{"uid":"2d5bf724-53","name":"i18n.ts"},{"uid":"2d5bf724-55","name":"i18next-context.tsx"}]},{"name":"utils/load-monaco-editor.ts","uid":"2d5bf724-57"},{"name":"account","children":[{"uid":"2d5bf724-81","name":"role-selector.tsx"},{"uid":"2d5bf724-83","name":"styles.ts"},{"uid":"2d5bf724-85","name":"add-account.tsx"},{"uid":"2d5bf724-87","name":"delete-account.tsx"},{"uid":"2d5bf724-89","name":"edit-account.tsx"},{"uid":"2d5bf724-91","name":"account-list.tsx"},{"name":"login","children":[{"uid":"2d5bf724-93","name":"form.tsx"},{"uid":"2d5bf724-95","name":"index.tsx"}]}]},{"name":"api-key","children":[{"uid":"2d5bf724-97","name":"styles.ts"},{"uid":"2d5bf724-99","name":"add-api-key.tsx"},{"uid":"2d5bf724-101","name":"delete-api-key.tsx"},{"uid":"2d5bf724-103","name":"api-key-list.tsx"}]},{"name":"sql_snippet","children":[{"uid":"2d5bf724-105","name":"styles.ts"},{"uid":"2d5bf724-107","name":"add-sql_snippet.tsx"},{"uid":"2d5bf724-109","name":"update-sql_snippet.tsx"},{"uid":"2d5bf724-111","name":"delete-sql_snippet.tsx"},{"uid":"2d5bf724-113","name":"sql_snippet-list.tsx"}]},{"uid":"2d5bf724-115","name":"index.ts"}]},{"uid":"2d5bf724-117","name":"package.json"}]}],"isRoot":true},"nodeParts":{"2d5bf724-1":{"renderedLength":33,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-0"},"2d5bf724-3":{"renderedLength":42,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-2"},"2d5bf724-5":{"renderedLength":1217,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-4"},"2d5bf724-7":{"renderedLength":39,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-6"},"2d5bf724-9":{"renderedLength":46244,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-8"},"2d5bf724-11":{"renderedLength":237,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-10"},"2d5bf724-13":{"renderedLength":949,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-12"},"2d5bf724-15":{"renderedLength":2262,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-14"},"2d5bf724-17":{"renderedLength":422,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-16"},"2d5bf724-19":{"renderedLength":426,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-18"},"2d5bf724-21":{"renderedLength":1913,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-20"},"2d5bf724-23":{"renderedLength":641,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-22"},"2d5bf724-25":{"renderedLength":730,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-24"},"2d5bf724-27":{"renderedLength":132,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-26"},"2d5bf724-29":{"renderedLength":1011,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-28"},"2d5bf724-31":{"renderedLength":496,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-30"},"2d5bf724-33":{"renderedLength":1623,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-32"},"2d5bf724-35":{"renderedLength":14006,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-34"},"2d5bf724-37":{"renderedLength":1079,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-36"},"2d5bf724-39":{"renderedLength":94,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-38"},"2d5bf724-41":{"renderedLength":104,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-40"},"2d5bf724-43":{"renderedLength":570,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-42"},"2d5bf724-45":{"renderedLength":675,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-44"},"2d5bf724-47":{"renderedLength":370,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-46"},"2d5bf724-49":{"renderedLength":4266,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-48"},"2d5bf724-51":{"renderedLength":4276,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-50"},"2d5bf724-53":{"renderedLength":253,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-52"},"2d5bf724-55":{"renderedLength":246,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-54"},"2d5bf724-57":{"renderedLength":551,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-56"},"2d5bf724-59":{"renderedLength":625,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-58"},"2d5bf724-61":{"renderedLength":3109,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-60"},"2d5bf724-63":{"renderedLength":502,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-62"},"2d5bf724-65":{"renderedLength":2398,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-64"},"2d5bf724-67":{"renderedLength":2894,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-66"},"2d5bf724-69":{"renderedLength":3130,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-68"},"2d5bf724-71":{"renderedLength":958,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-70"},"2d5bf724-73":{"renderedLength":2217,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-72"},"2d5bf724-75":{"renderedLength":2514,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-74"},"2d5bf724-77":{"renderedLength":3597,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-76"},"2d5bf724-79":{"renderedLength":2739,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-78"},"2d5bf724-81":{"renderedLength":1553,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-80"},"2d5bf724-83":{"renderedLength":104,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-82"},"2d5bf724-85":{"renderedLength":3856,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-84"},"2d5bf724-87":{"renderedLength":1830,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-86"},"2d5bf724-89":{"renderedLength":4968,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-88"},"2d5bf724-91":{"renderedLength":3158,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-90"},"2d5bf724-93":{"renderedLength":2262,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-92"},"2d5bf724-95":{"renderedLength":397,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-94"},"2d5bf724-97":{"renderedLength":104,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-96"},"2d5bf724-99":{"renderedLength":4259,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-98"},"2d5bf724-101":{"renderedLength":1851,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-100"},"2d5bf724-103":{"renderedLength":3016,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-102"},"2d5bf724-105":{"renderedLength":102,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-104"},"2d5bf724-107":{"renderedLength":3370,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-106"},"2d5bf724-109":{"renderedLength":3409,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-108"},"2d5bf724-111":{"renderedLength":1808,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-110"},"2d5bf724-113":{"renderedLength":3839,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-112"},"2d5bf724-115":{"renderedLength":187,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-114"},"2d5bf724-117":{"renderedLength":27,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-116"}},"nodeMetas":{"2d5bf724-0":{"id":"\u0000/Users/leto/github/merico-dev/table/node_modules/react/jsx-runtime.js?commonjs-module","moduleParts":{"settings-form.umd.js":"2d5bf724-1"},"imported":[],"importedBy":[{"uid":"2d5bf724-10"}]},"2d5bf724-2":{"id":"\u0000/Users/leto/github/merico-dev/table/node_modules/react/cjs/react-jsx-runtime.production.min.js?commonjs-exports","moduleParts":{"settings-form.umd.js":"2d5bf724-3"},"imported":[],"importedBy":[{"uid":"2d5bf724-4"}]},"2d5bf724-4":{"id":"/Users/leto/github/merico-dev/table/node_modules/react/cjs/react-jsx-runtime.production.min.js","moduleParts":{"settings-form.umd.js":"2d5bf724-5"},"imported":[{"uid":"2d5bf724-139"},{"uid":"2d5bf724-2"},{"uid":"2d5bf724-142"}],"importedBy":[{"uid":"2d5bf724-10"}]},"2d5bf724-6":{"id":"\u0000/Users/leto/github/merico-dev/table/node_modules/react/cjs/react-jsx-runtime.development.js?commonjs-exports","moduleParts":{"settings-form.umd.js":"2d5bf724-7"},"imported":[],"importedBy":[{"uid":"2d5bf724-8"}]},"2d5bf724-8":{"id":"/Users/leto/github/merico-dev/table/node_modules/react/cjs/react-jsx-runtime.development.js","moduleParts":{"settings-form.umd.js":"2d5bf724-9"},"imported":[{"uid":"2d5bf724-139"},{"uid":"2d5bf724-6"},{"uid":"2d5bf724-142"}],"importedBy":[{"uid":"2d5bf724-10"}]},"2d5bf724-10":{"id":"/Users/leto/github/merico-dev/table/node_modules/react/jsx-runtime.js","moduleParts":{"settings-form.umd.js":"2d5bf724-11"},"imported":[{"uid":"2d5bf724-139"},{"uid":"2d5bf724-0"},{"uid":"2d5bf724-4"},{"uid":"2d5bf724-8"}],"importedBy":[{"uid":"2d5bf724-68"},{"uid":"2d5bf724-78"},{"uid":"2d5bf724-72"},{"uid":"2d5bf724-84"},{"uid":"2d5bf724-90"},{"uid":"2d5bf724-86"},{"uid":"2d5bf724-94"},{"uid":"2d5bf724-98"},{"uid":"2d5bf724-102"},{"uid":"2d5bf724-100"},{"uid":"2d5bf724-106"},{"uid":"2d5bf724-108"},{"uid":"2d5bf724-112"},{"uid":"2d5bf724-110"},{"uid":"2d5bf724-42"},{"uid":"2d5bf724-60"},{"uid":"2d5bf724-66"},{"uid":"2d5bf724-70"},{"uid":"2d5bf724-76"},{"uid":"2d5bf724-80"},{"uid":"2d5bf724-88"},{"uid":"2d5bf724-92"},{"uid":"2d5bf724-44"},{"uid":"2d5bf724-64"},{"uid":"2d5bf724-46"},{"uid":"2d5bf724-58"},{"uid":"2d5bf724-74"},{"uid":"2d5bf724-62"},{"uid":"2d5bf724-54"}]},"2d5bf724-12":{"id":"/Users/leto/github/merico-dev/table/shared/src/api-client/utils.ts","moduleParts":{"settings-form.umd.js":"2d5bf724-13"},"imported":[{"uid":"2d5bf724-143"}],"importedBy":[{"uid":"2d5bf724-138"},{"uid":"2d5bf724-14"}]},"2d5bf724-14":{"id":"/Users/leto/github/merico-dev/table/shared/src/api-client/default-api-client.ts","moduleParts":{"settings-form.umd.js":"2d5bf724-15"},"imported":[{"uid":"2d5bf724-144"},{"uid":"2d5bf724-12"},{"uid":"2d5bf724-145"}],"importedBy":[{"uid":"2d5bf724-138"}]},"2d5bf724-16":{"id":"/Users/leto/github/merico-dev/table/shared/src/api-client/facade-api-client.ts","moduleParts":{"settings-form.umd.js":"2d5bf724-17"},"imported":[],"importedBy":[{"uid":"2d5bf724-138"}]},"2d5bf724-18":{"id":"/src/api-caller/request.ts","moduleParts":{"settings-form.umd.js":"2d5bf724-19"},"imported":[{"uid":"2d5bf724-127"}],"importedBy":[{"uid":"2d5bf724-114"},{"uid":"2d5bf724-20"},{"uid":"2d5bf724-22"},{"uid":"2d5bf724-24"},{"uid":"2d5bf724-26"},{"uid":"2d5bf724-36"},{"uid":"2d5bf724-58"}]},"2d5bf724-20":{"id":"/src/api-caller/account.ts","moduleParts":{"settings-form.umd.js":"2d5bf724-21"},"imported":[{"uid":"2d5bf724-18"}],"importedBy":[{"uid":"2d5bf724-38"}]},"2d5bf724-22":{"id":"/src/api-caller/api-key.ts","moduleParts":{"settings-form.umd.js":"2d5bf724-23"},"imported":[{"uid":"2d5bf724-18"}],"importedBy":[{"uid":"2d5bf724-38"}]},"2d5bf724-24":{"id":"/src/api-caller/datasource.ts","moduleParts":{"settings-form.umd.js":"2d5bf724-25"},"imported":[{"uid":"2d5bf724-18"}],"importedBy":[{"uid":"2d5bf724-38"}]},"2d5bf724-26":{"id":"/src/api-caller/role.ts","moduleParts":{"settings-form.umd.js":"2d5bf724-27"},"imported":[{"uid":"2d5bf724-18"}],"importedBy":[{"uid":"2d5bf724-38"}]},"2d5bf724-28":{"id":"/Users/leto/github/merico-dev/table/node_modules/dayjs/esm/constant.js","moduleParts":{"settings-form.umd.js":"2d5bf724-29"},"imported":[],"importedBy":[{"uid":"2d5bf724-34"},{"uid":"2d5bf724-32"}]},"2d5bf724-30":{"id":"/Users/leto/github/merico-dev/table/node_modules/dayjs/esm/locale/en.js","moduleParts":{"settings-form.umd.js":"2d5bf724-31"},"imported":[],"importedBy":[{"uid":"2d5bf724-34"}]},"2d5bf724-32":{"id":"/Users/leto/github/merico-dev/table/node_modules/dayjs/esm/utils.js","moduleParts":{"settings-form.umd.js":"2d5bf724-33"},"imported":[{"uid":"2d5bf724-28"}],"importedBy":[{"uid":"2d5bf724-34"}]},"2d5bf724-34":{"id":"/Users/leto/github/merico-dev/table/node_modules/dayjs/esm/index.js","moduleParts":{"settings-form.umd.js":"2d5bf724-35"},"imported":[{"uid":"2d5bf724-28"},{"uid":"2d5bf724-30"},{"uid":"2d5bf724-32"}],"importedBy":[{"uid":"2d5bf724-36"}]},"2d5bf724-36":{"id":"/src/api-caller/sql_snippet.ts","moduleParts":{"settings-form.umd.js":"2d5bf724-37"},"imported":[{"uid":"2d5bf724-34"},{"uid":"2d5bf724-18"}],"importedBy":[{"uid":"2d5bf724-38"}]},"2d5bf724-38":{"id":"/src/api-caller/index.ts","moduleParts":{"settings-form.umd.js":"2d5bf724-39"},"imported":[{"uid":"2d5bf724-20"},{"uid":"2d5bf724-22"},{"uid":"2d5bf724-24"},{"uid":"2d5bf724-26"},{"uid":"2d5bf724-36"}],"importedBy":[{"uid":"2d5bf724-68"},{"uid":"2d5bf724-78"},{"uid":"2d5bf724-72"},{"uid":"2d5bf724-84"},{"uid":"2d5bf724-90"},{"uid":"2d5bf724-86"},{"uid":"2d5bf724-98"},{"uid":"2d5bf724-102"},{"uid":"2d5bf724-100"},{"uid":"2d5bf724-106"},{"uid":"2d5bf724-108"},{"uid":"2d5bf724-112"},{"uid":"2d5bf724-110"},{"uid":"2d5bf724-76"},{"uid":"2d5bf724-80"},{"uid":"2d5bf724-88"},{"uid":"2d5bf724-92"}]},"2d5bf724-40":{"id":"/src/datasource/styles.ts","moduleParts":{"settings-form.umd.js":"2d5bf724-41"},"imported":[],"importedBy":[{"uid":"2d5bf724-68"},{"uid":"2d5bf724-78"},{"uid":"2d5bf724-72"},{"uid":"2d5bf724-42"},{"uid":"2d5bf724-60"},{"uid":"2d5bf724-66"},{"uid":"2d5bf724-76"},{"uid":"2d5bf724-74"}]},"2d5bf724-42":{"id":"/src/datasource/add-data-source/db-permission-tips.tsx","moduleParts":{"settings-form.umd.js":"2d5bf724-43"},"imported":[{"uid":"2d5bf724-10"},{"uid":"2d5bf724-128"},{"uid":"2d5bf724-130"},{"uid":"2d5bf724-132"},{"uid":"2d5bf724-40"}],"importedBy":[{"uid":"2d5bf724-68"}]},"2d5bf724-44":{"id":"/src/components/minimal-mocaco-editor.tsx","moduleParts":{"settings-form.umd.js":"2d5bf724-45"},"imported":[{"uid":"2d5bf724-10"},{"uid":"2d5bf724-140"},{"uid":"2d5bf724-131"}],"importedBy":[{"uid":"2d5bf724-106"},{"uid":"2d5bf724-108"},{"uid":"2d5bf724-134"}]},"2d5bf724-46":{"id":"/src/components/submit-form-button.tsx","moduleParts":{"settings-form.umd.js":"2d5bf724-47"},"imported":[{"uid":"2d5bf724-10"},{"uid":"2d5bf724-128"},{"uid":"2d5bf724-130"},{"uid":"2d5bf724-132"}],"importedBy":[{"uid":"2d5bf724-134"}]},"2d5bf724-48":{"id":"/src/i18n/en.ts","moduleParts":{"settings-form.umd.js":"2d5bf724-49"},"imported":[],"importedBy":[{"uid":"2d5bf724-52"}]},"2d5bf724-50":{"id":"/src/i18n/zh.ts","moduleParts":{"settings-form.umd.js":"2d5bf724-51"},"imported":[],"importedBy":[{"uid":"2d5bf724-52"}]},"2d5bf724-52":{"id":"/src/i18n/i18n.ts","moduleParts":{"settings-form.umd.js":"2d5bf724-53"},"imported":[{"uid":"2d5bf724-146"},{"uid":"2d5bf724-132"},{"uid":"2d5bf724-147"},{"uid":"2d5bf724-148"},{"uid":"2d5bf724-48"},{"uid":"2d5bf724-50"}],"importedBy":[{"uid":"2d5bf724-54"}]},"2d5bf724-54":{"id":"/src/i18n/i18next-context.tsx","moduleParts":{"settings-form.umd.js":"2d5bf724-55"},"imported":[{"uid":"2d5bf724-10"},{"uid":"2d5bf724-131"},{"uid":"2d5bf724-132"},{"uid":"2d5bf724-52"}],"importedBy":[{"uid":"2d5bf724-58"}]},"2d5bf724-56":{"id":"/src/utils/load-monaco-editor.ts","moduleParts":{"settings-form.umd.js":"2d5bf724-57"},"imported":[{"uid":"2d5bf724-140"},{"uid":"2d5bf724-131"}],"importedBy":[{"uid":"2d5bf724-58"}]},"2d5bf724-58":{"id":"/src/components/with-entry.tsx","moduleParts":{"settings-form.umd.js":"2d5bf724-59"},"imported":[{"uid":"2d5bf724-10"},{"uid":"2d5bf724-131"},{"uid":"2d5bf724-18"},{"uid":"2d5bf724-54"},{"uid":"2d5bf724-56"},{"uid":"2d5bf724-128"}],"importedBy":[{"uid":"2d5bf724-134"}]},"2d5bf724-60":{"id":"/src/datasource/add-data-source/forms/database.tsx","moduleParts":{"settings-form.umd.js":"2d5bf724-61"},"imported":[{"uid":"2d5bf724-10"},{"uid":"2d5bf724-128"},{"uid":"2d5bf724-131"},{"uid":"2d5bf724-136"},{"uid":"2d5bf724-134"},{"uid":"2d5bf724-40"},{"uid":"2d5bf724-132"}],"importedBy":[{"uid":"2d5bf724-68"}]},"2d5bf724-62":{"id":"/src/datasource/components/function-string-field/function-string-editor.tsx","moduleParts":{"settings-form.umd.js":"2d5bf724-63"},"imported":[{"uid":"2d5bf724-10"},{"uid":"2d5bf724-128"},{"uid":"2d5bf724-140"}],"importedBy":[{"uid":"2d5bf724-64"}]},"2d5bf724-64":{"id":"/src/datasource/components/function-string-field/index.tsx","moduleParts":{"settings-form.umd.js":"2d5bf724-65"},"imported":[{"uid":"2d5bf724-10"},{"uid":"2d5bf724-128"},{"uid":"2d5bf724-130"},{"uid":"2d5bf724-133"},{"uid":"2d5bf724-131"},{"uid":"2d5bf724-132"},{"uid":"2d5bf724-62"}],"importedBy":[{"uid":"2d5bf724-66"},{"uid":"2d5bf724-74"}]},"2d5bf724-66":{"id":"/src/datasource/add-data-source/forms/http.tsx","moduleParts":{"settings-form.umd.js":"2d5bf724-67"},"imported":[{"uid":"2d5bf724-10"},{"uid":"2d5bf724-128"},{"uid":"2d5bf724-136"},{"uid":"2d5bf724-40"},{"uid":"2d5bf724-64"},{"uid":"2d5bf724-134"},{"uid":"2d5bf724-132"}],"importedBy":[{"uid":"2d5bf724-68"}]},"2d5bf724-68":{"id":"/src/datasource/add-data-source/index.tsx","moduleParts":{"settings-form.umd.js":"2d5bf724-69"},"imported":[{"uid":"2d5bf724-10"},{"uid":"2d5bf724-128"},{"uid":"2d5bf724-129"},{"uid":"2d5bf724-130"},{"uid":"2d5bf724-131"},{"uid":"2d5bf724-132"},{"uid":"2d5bf724-38"},{"uid":"2d5bf724-40"},{"uid":"2d5bf724-42"},{"uid":"2d5bf724-60"},{"uid":"2d5bf724-66"}],"importedBy":[{"uid":"2d5bf724-118"},{"uid":"2d5bf724-78"}]},"2d5bf724-70":{"id":"/src/datasource/components/data-source-icon.tsx","moduleParts":{"settings-form.umd.js":"2d5bf724-71"},"imported":[{"uid":"2d5bf724-10"},{"uid":"2d5bf724-130"},{"uid":"2d5bf724-128"}],"importedBy":[{"uid":"2d5bf724-78"}]},"2d5bf724-72":{"id":"/src/datasource/delete-data-source.tsx","moduleParts":{"settings-form.umd.js":"2d5bf724-73"},"imported":[{"uid":"2d5bf724-10"},{"uid":"2d5bf724-128"},{"uid":"2d5bf724-135"},{"uid":"2d5bf724-129"},{"uid":"2d5bf724-130"},{"uid":"2d5bf724-132"},{"uid":"2d5bf724-38"},{"uid":"2d5bf724-40"}],"importedBy":[{"uid":"2d5bf724-118"},{"uid":"2d5bf724-78"}]},"2d5bf724-74":{"id":"/src/datasource/edit-data-source/forms/http.tsx","moduleParts":{"settings-form.umd.js":"2d5bf724-75"},"imported":[{"uid":"2d5bf724-10"},{"uid":"2d5bf724-128"},{"uid":"2d5bf724-136"},{"uid":"2d5bf724-132"},{"uid":"2d5bf724-134"},{"uid":"2d5bf724-64"},{"uid":"2d5bf724-40"}],"importedBy":[{"uid":"2d5bf724-76"}]},"2d5bf724-76":{"id":"/src/datasource/edit-data-source/index.tsx","moduleParts":{"settings-form.umd.js":"2d5bf724-77"},"imported":[{"uid":"2d5bf724-10"},{"uid":"2d5bf724-128"},{"uid":"2d5bf724-129"},{"uid":"2d5bf724-130"},{"uid":"2d5bf724-131"},{"uid":"2d5bf724-38"},{"uid":"2d5bf724-40"},{"uid":"2d5bf724-74"},{"uid":"2d5bf724-132"}],"importedBy":[{"uid":"2d5bf724-78"}]},"2d5bf724-78":{"id":"/src/datasource/data-source-list.tsx","moduleParts":{"settings-form.umd.js":"2d5bf724-79"},"imported":[{"uid":"2d5bf724-10"},{"uid":"2d5bf724-128"},{"uid":"2d5bf724-133"},{"uid":"2d5bf724-132"},{"uid":"2d5bf724-38"},{"uid":"2d5bf724-134"},{"uid":"2d5bf724-68"},{"uid":"2d5bf724-70"},{"uid":"2d5bf724-72"},{"uid":"2d5bf724-76"},{"uid":"2d5bf724-40"}],"importedBy":[{"uid":"2d5bf724-118"}]},"2d5bf724-80":{"id":"/src/account/role-selector.tsx","moduleParts":{"settings-form.umd.js":"2d5bf724-81"},"imported":[{"uid":"2d5bf724-10"},{"uid":"2d5bf724-128"},{"uid":"2d5bf724-133"},{"uid":"2d5bf724-131"},{"uid":"2d5bf724-132"},{"uid":"2d5bf724-38"}],"importedBy":[{"uid":"2d5bf724-84"},{"uid":"2d5bf724-98"},{"uid":"2d5bf724-88"}]},"2d5bf724-82":{"id":"/src/account/styles.ts","moduleParts":{"settings-form.umd.js":"2d5bf724-83"},"imported":[],"importedBy":[{"uid":"2d5bf724-84"},{"uid":"2d5bf724-90"},{"uid":"2d5bf724-86"},{"uid":"2d5bf724-94"},{"uid":"2d5bf724-88"},{"uid":"2d5bf724-92"}]},"2d5bf724-84":{"id":"/src/account/add-account.tsx","moduleParts":{"settings-form.umd.js":"2d5bf724-85"},"imported":[{"uid":"2d5bf724-10"},{"uid":"2d5bf724-128"},{"uid":"2d5bf724-129"},{"uid":"2d5bf724-131"},{"uid":"2d5bf724-136"},{"uid":"2d5bf724-130"},{"uid":"2d5bf724-38"},{"uid":"2d5bf724-134"},{"uid":"2d5bf724-80"},{"uid":"2d5bf724-82"},{"uid":"2d5bf724-132"}],"importedBy":[{"uid":"2d5bf724-119"},{"uid":"2d5bf724-90"}]},"2d5bf724-86":{"id":"/src/account/delete-account.tsx","moduleParts":{"settings-form.umd.js":"2d5bf724-87"},"imported":[{"uid":"2d5bf724-10"},{"uid":"2d5bf724-128"},{"uid":"2d5bf724-135"},{"uid":"2d5bf724-129"},{"uid":"2d5bf724-130"},{"uid":"2d5bf724-132"},{"uid":"2d5bf724-38"},{"uid":"2d5bf724-82"}],"importedBy":[{"uid":"2d5bf724-119"},{"uid":"2d5bf724-90"}]},"2d5bf724-88":{"id":"/src/account/edit-account.tsx","moduleParts":{"settings-form.umd.js":"2d5bf724-89"},"imported":[{"uid":"2d5bf724-10"},{"uid":"2d5bf724-128"},{"uid":"2d5bf724-129"},{"uid":"2d5bf724-130"},{"uid":"2d5bf724-131"},{"uid":"2d5bf724-136"},{"uid":"2d5bf724-132"},{"uid":"2d5bf724-38"},{"uid":"2d5bf724-134"},{"uid":"2d5bf724-80"},{"uid":"2d5bf724-82"}],"importedBy":[{"uid":"2d5bf724-90"}]},"2d5bf724-90":{"id":"/src/account/account-list.tsx","moduleParts":{"settings-form.umd.js":"2d5bf724-91"},"imported":[{"uid":"2d5bf724-10"},{"uid":"2d5bf724-128"},{"uid":"2d5bf724-133"},{"uid":"2d5bf724-132"},{"uid":"2d5bf724-38"},{"uid":"2d5bf724-134"},{"uid":"2d5bf724-84"},{"uid":"2d5bf724-86"},{"uid":"2d5bf724-88"},{"uid":"2d5bf724-82"}],"importedBy":[{"uid":"2d5bf724-119"}]},"2d5bf724-92":{"id":"/src/account/login/form.tsx","moduleParts":{"settings-form.umd.js":"2d5bf724-93"},"imported":[{"uid":"2d5bf724-10"},{"uid":"2d5bf724-128"},{"uid":"2d5bf724-129"},{"uid":"2d5bf724-136"},{"uid":"2d5bf724-38"},{"uid":"2d5bf724-82"},{"uid":"2d5bf724-134"},{"uid":"2d5bf724-132"}],"importedBy":[{"uid":"2d5bf724-94"}]},"2d5bf724-94":{"id":"/src/account/login/index.tsx","moduleParts":{"settings-form.umd.js":"2d5bf724-95"},"imported":[{"uid":"2d5bf724-10"},{"uid":"2d5bf724-128"},{"uid":"2d5bf724-134"},{"uid":"2d5bf724-82"},{"uid":"2d5bf724-92"}],"importedBy":[{"uid":"2d5bf724-119"}]},"2d5bf724-96":{"id":"/src/api-key/styles.ts","moduleParts":{"settings-form.umd.js":"2d5bf724-97"},"imported":[],"importedBy":[{"uid":"2d5bf724-98"},{"uid":"2d5bf724-102"},{"uid":"2d5bf724-100"}]},"2d5bf724-98":{"id":"/src/api-key/add-api-key.tsx","moduleParts":{"settings-form.umd.js":"2d5bf724-99"},"imported":[{"uid":"2d5bf724-10"},{"uid":"2d5bf724-128"},{"uid":"2d5bf724-135"},{"uid":"2d5bf724-129"},{"uid":"2d5bf724-131"},{"uid":"2d5bf724-136"},{"uid":"2d5bf724-80"},{"uid":"2d5bf724-38"},{"uid":"2d5bf724-134"},{"uid":"2d5bf724-96"},{"uid":"2d5bf724-132"},{"uid":"2d5bf724-130"}],"importedBy":[{"uid":"2d5bf724-120"},{"uid":"2d5bf724-102"}]},"2d5bf724-100":{"id":"/src/api-key/delete-api-key.tsx","moduleParts":{"settings-form.umd.js":"2d5bf724-101"},"imported":[{"uid":"2d5bf724-10"},{"uid":"2d5bf724-128"},{"uid":"2d5bf724-135"},{"uid":"2d5bf724-129"},{"uid":"2d5bf724-130"},{"uid":"2d5bf724-132"},{"uid":"2d5bf724-38"},{"uid":"2d5bf724-96"}],"importedBy":[{"uid":"2d5bf724-120"},{"uid":"2d5bf724-102"}]},"2d5bf724-102":{"id":"/src/api-key/api-key-list.tsx","moduleParts":{"settings-form.umd.js":"2d5bf724-103"},"imported":[{"uid":"2d5bf724-10"},{"uid":"2d5bf724-128"},{"uid":"2d5bf724-133"},{"uid":"2d5bf724-132"},{"uid":"2d5bf724-38"},{"uid":"2d5bf724-134"},{"uid":"2d5bf724-98"},{"uid":"2d5bf724-100"},{"uid":"2d5bf724-96"}],"importedBy":[{"uid":"2d5bf724-120"}]},"2d5bf724-104":{"id":"/src/sql_snippet/styles.ts","moduleParts":{"settings-form.umd.js":"2d5bf724-105"},"imported":[],"importedBy":[{"uid":"2d5bf724-106"},{"uid":"2d5bf724-108"},{"uid":"2d5bf724-112"},{"uid":"2d5bf724-110"}]},"2d5bf724-106":{"id":"/src/sql_snippet/add-sql_snippet.tsx","moduleParts":{"settings-form.umd.js":"2d5bf724-107"},"imported":[{"uid":"2d5bf724-10"},{"uid":"2d5bf724-128"},{"uid":"2d5bf724-129"},{"uid":"2d5bf724-130"},{"uid":"2d5bf724-131"},{"uid":"2d5bf724-136"},{"uid":"2d5bf724-132"},{"uid":"2d5bf724-38"},{"uid":"2d5bf724-134"},{"uid":"2d5bf724-44"},{"uid":"2d5bf724-104"}],"importedBy":[{"uid":"2d5bf724-121"},{"uid":"2d5bf724-112"}]},"2d5bf724-108":{"id":"/src/sql_snippet/update-sql_snippet.tsx","moduleParts":{"settings-form.umd.js":"2d5bf724-109"},"imported":[{"uid":"2d5bf724-10"},{"uid":"2d5bf724-128"},{"uid":"2d5bf724-129"},{"uid":"2d5bf724-130"},{"uid":"2d5bf724-131"},{"uid":"2d5bf724-136"},{"uid":"2d5bf724-38"},{"uid":"2d5bf724-44"},{"uid":"2d5bf724-104"},{"uid":"2d5bf724-134"},{"uid":"2d5bf724-132"}],"importedBy":[{"uid":"2d5bf724-121"},{"uid":"2d5bf724-112"}]},"2d5bf724-110":{"id":"/src/sql_snippet/delete-sql_snippet.tsx","moduleParts":{"settings-form.umd.js":"2d5bf724-111"},"imported":[{"uid":"2d5bf724-10"},{"uid":"2d5bf724-128"},{"uid":"2d5bf724-135"},{"uid":"2d5bf724-129"},{"uid":"2d5bf724-130"},{"uid":"2d5bf724-132"},{"uid":"2d5bf724-38"},{"uid":"2d5bf724-104"}],"importedBy":[{"uid":"2d5bf724-121"},{"uid":"2d5bf724-112"}]},"2d5bf724-112":{"id":"/src/sql_snippet/sql_snippet-list.tsx","moduleParts":{"settings-form.umd.js":"2d5bf724-113"},"imported":[{"uid":"2d5bf724-10"},{"uid":"2d5bf724-128"},{"uid":"2d5bf724-137"},{"uid":"2d5bf724-133"},{"uid":"2d5bf724-38"},{"uid":"2d5bf724-106"},{"uid":"2d5bf724-110"},{"uid":"2d5bf724-104"},{"uid":"2d5bf724-130"},{"uid":"2d5bf724-132"},{"uid":"2d5bf724-134"},{"uid":"2d5bf724-108"}],"importedBy":[{"uid":"2d5bf724-121"}]},"2d5bf724-114":{"id":"/src/index.ts","moduleParts":{"settings-form.umd.js":"2d5bf724-115"},"imported":[{"uid":"2d5bf724-118"},{"uid":"2d5bf724-119"},{"uid":"2d5bf724-120"},{"uid":"2d5bf724-121"},{"uid":"2d5bf724-18"},{"uid":"2d5bf724-122"},{"uid":"2d5bf724-123"},{"uid":"2d5bf724-124"},{"uid":"2d5bf724-125"},{"uid":"2d5bf724-126"},{"uid":"2d5bf724-116","dynamic":true}],"importedBy":[],"isEntry":true},"2d5bf724-116":{"id":"/package.json","moduleParts":{"settings-form.umd.js":"2d5bf724-117"},"imported":[],"importedBy":[{"uid":"2d5bf724-114"}]},"2d5bf724-118":{"id":"/src/datasource/index.tsx","moduleParts":{},"imported":[{"uid":"2d5bf724-68"},{"uid":"2d5bf724-78"},{"uid":"2d5bf724-72"}],"importedBy":[{"uid":"2d5bf724-114"}]},"2d5bf724-119":{"id":"/src/account/index.tsx","moduleParts":{},"imported":[{"uid":"2d5bf724-84"},{"uid":"2d5bf724-90"},{"uid":"2d5bf724-86"},{"uid":"2d5bf724-94"}],"importedBy":[{"uid":"2d5bf724-114"}]},"2d5bf724-120":{"id":"/src/api-key/index.tsx","moduleParts":{},"imported":[{"uid":"2d5bf724-98"},{"uid":"2d5bf724-102"},{"uid":"2d5bf724-100"}],"importedBy":[{"uid":"2d5bf724-114"}]},"2d5bf724-121":{"id":"/src/sql_snippet/index.tsx","moduleParts":{},"imported":[{"uid":"2d5bf724-106"},{"uid":"2d5bf724-108"},{"uid":"2d5bf724-112"},{"uid":"2d5bf724-110"}],"importedBy":[{"uid":"2d5bf724-114"}]},"2d5bf724-122":{"id":"/src/api-caller/account.typed.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"2d5bf724-114"}]},"2d5bf724-123":{"id":"/src/api-caller/api-key.typed.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"2d5bf724-114"}]},"2d5bf724-124":{"id":"/src/api-caller/datasource.typed.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"2d5bf724-114"}]},"2d5bf724-125":{"id":"/src/api-caller/role.typed.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"2d5bf724-114"}]},"2d5bf724-126":{"id":"/src/api-caller/sql_snippet.typed.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"2d5bf724-114"}]},"2d5bf724-127":{"id":"/Users/leto/github/merico-dev/table/shared/src/index.ts","moduleParts":{},"imported":[{"uid":"2d5bf724-138"}],"importedBy":[{"uid":"2d5bf724-18"}]},"2d5bf724-128":{"id":"@mantine/core","moduleParts":{},"imported":[],"importedBy":[{"uid":"2d5bf724-68"},{"uid":"2d5bf724-78"},{"uid":"2d5bf724-72"},{"uid":"2d5bf724-84"},{"uid":"2d5bf724-90"},{"uid":"2d5bf724-86"},{"uid":"2d5bf724-94"},{"uid":"2d5bf724-98"},{"uid":"2d5bf724-102"},{"uid":"2d5bf724-100"},{"uid":"2d5bf724-106"},{"uid":"2d5bf724-108"},{"uid":"2d5bf724-112"},{"uid":"2d5bf724-110"},{"uid":"2d5bf724-42"},{"uid":"2d5bf724-60"},{"uid":"2d5bf724-66"},{"uid":"2d5bf724-70"},{"uid":"2d5bf724-76"},{"uid":"2d5bf724-80"},{"uid":"2d5bf724-88"},{"uid":"2d5bf724-92"},{"uid":"2d5bf724-64"},{"uid":"2d5bf724-46"},{"uid":"2d5bf724-58"},{"uid":"2d5bf724-74"},{"uid":"2d5bf724-62"}],"isExternal":true},"2d5bf724-129":{"id":"@mantine/notifications","moduleParts":{},"imported":[],"importedBy":[{"uid":"2d5bf724-68"},{"uid":"2d5bf724-72"},{"uid":"2d5bf724-84"},{"uid":"2d5bf724-86"},{"uid":"2d5bf724-98"},{"uid":"2d5bf724-100"},{"uid":"2d5bf724-106"},{"uid":"2d5bf724-108"},{"uid":"2d5bf724-110"},{"uid":"2d5bf724-76"},{"uid":"2d5bf724-88"},{"uid":"2d5bf724-92"}],"isExternal":true},"2d5bf724-130":{"id":"@tabler/icons-react","moduleParts":{},"imported":[],"importedBy":[{"uid":"2d5bf724-68"},{"uid":"2d5bf724-72"},{"uid":"2d5bf724-84"},{"uid":"2d5bf724-86"},{"uid":"2d5bf724-98"},{"uid":"2d5bf724-100"},{"uid":"2d5bf724-106"},{"uid":"2d5bf724-108"},{"uid":"2d5bf724-112"},{"uid":"2d5bf724-110"},{"uid":"2d5bf724-42"},{"uid":"2d5bf724-70"},{"uid":"2d5bf724-76"},{"uid":"2d5bf724-88"},{"uid":"2d5bf724-64"},{"uid":"2d5bf724-46"}],"isExternal":true},"2d5bf724-131":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"2d5bf724-68"},{"uid":"2d5bf724-84"},{"uid":"2d5bf724-98"},{"uid":"2d5bf724-106"},{"uid":"2d5bf724-108"},{"uid":"2d5bf724-60"},{"uid":"2d5bf724-76"},{"uid":"2d5bf724-80"},{"uid":"2d5bf724-88"},{"uid":"2d5bf724-44"},{"uid":"2d5bf724-64"},{"uid":"2d5bf724-58"},{"uid":"2d5bf724-142"},{"uid":"2d5bf724-54"},{"uid":"2d5bf724-56"}],"isExternal":true},"2d5bf724-132":{"id":"react-i18next","moduleParts":{},"imported":[],"importedBy":[{"uid":"2d5bf724-68"},{"uid":"2d5bf724-78"},{"uid":"2d5bf724-72"},{"uid":"2d5bf724-84"},{"uid":"2d5bf724-90"},{"uid":"2d5bf724-86"},{"uid":"2d5bf724-98"},{"uid":"2d5bf724-102"},{"uid":"2d5bf724-100"},{"uid":"2d5bf724-106"},{"uid":"2d5bf724-108"},{"uid":"2d5bf724-112"},{"uid":"2d5bf724-110"},{"uid":"2d5bf724-42"},{"uid":"2d5bf724-60"},{"uid":"2d5bf724-66"},{"uid":"2d5bf724-76"},{"uid":"2d5bf724-80"},{"uid":"2d5bf724-88"},{"uid":"2d5bf724-92"},{"uid":"2d5bf724-64"},{"uid":"2d5bf724-46"},{"uid":"2d5bf724-74"},{"uid":"2d5bf724-54"},{"uid":"2d5bf724-52"}],"isExternal":true},"2d5bf724-133":{"id":"ahooks","moduleParts":{},"imported":[],"importedBy":[{"uid":"2d5bf724-78"},{"uid":"2d5bf724-90"},{"uid":"2d5bf724-102"},{"uid":"2d5bf724-112"},{"uid":"2d5bf724-80"},{"uid":"2d5bf724-64"}],"isExternal":true},"2d5bf724-134":{"id":"/src/components/index.ts","moduleParts":{},"imported":[{"uid":"2d5bf724-44"},{"uid":"2d5bf724-46"},{"uid":"2d5bf724-58"}],"importedBy":[{"uid":"2d5bf724-78"},{"uid":"2d5bf724-84"},{"uid":"2d5bf724-90"},{"uid":"2d5bf724-94"},{"uid":"2d5bf724-98"},{"uid":"2d5bf724-102"},{"uid":"2d5bf724-106"},{"uid":"2d5bf724-108"},{"uid":"2d5bf724-112"},{"uid":"2d5bf724-60"},{"uid":"2d5bf724-66"},{"uid":"2d5bf724-88"},{"uid":"2d5bf724-92"},{"uid":"2d5bf724-74"}]},"2d5bf724-135":{"id":"@mantine/modals","moduleParts":{},"imported":[],"importedBy":[{"uid":"2d5bf724-72"},{"uid":"2d5bf724-86"},{"uid":"2d5bf724-98"},{"uid":"2d5bf724-100"},{"uid":"2d5bf724-110"}],"isExternal":true},"2d5bf724-136":{"id":"react-hook-form","moduleParts":{},"imported":[],"importedBy":[{"uid":"2d5bf724-84"},{"uid":"2d5bf724-98"},{"uid":"2d5bf724-106"},{"uid":"2d5bf724-108"},{"uid":"2d5bf724-60"},{"uid":"2d5bf724-66"},{"uid":"2d5bf724-88"},{"uid":"2d5bf724-92"},{"uid":"2d5bf724-74"}],"isExternal":true},"2d5bf724-137":{"id":"@mantine/code-highlight","moduleParts":{},"imported":[],"importedBy":[{"uid":"2d5bf724-112"}],"isExternal":true},"2d5bf724-138":{"id":"/Users/leto/github/merico-dev/table/shared/src/api-client/index.ts","moduleParts":{},"imported":[{"uid":"2d5bf724-141"},{"uid":"2d5bf724-12"},{"uid":"2d5bf724-14"},{"uid":"2d5bf724-16"}],"importedBy":[{"uid":"2d5bf724-127"}]},"2d5bf724-139":{"id":"\u0000commonjsHelpers.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"2d5bf724-10"},{"uid":"2d5bf724-4"},{"uid":"2d5bf724-8"}]},"2d5bf724-140":{"id":"@monaco-editor/react","moduleParts":{},"imported":[],"importedBy":[{"uid":"2d5bf724-44"},{"uid":"2d5bf724-62"},{"uid":"2d5bf724-56"}],"isExternal":true},"2d5bf724-141":{"id":"/Users/leto/github/merico-dev/table/shared/src/api-client/types.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"2d5bf724-138"}]},"2d5bf724-142":{"id":"\u0000react?commonjs-external","moduleParts":{},"imported":[{"uid":"2d5bf724-131"}],"importedBy":[{"uid":"2d5bf724-4"},{"uid":"2d5bf724-8"}]},"2d5bf724-143":{"id":"crypto-js","moduleParts":{},"imported":[],"importedBy":[{"uid":"2d5bf724-12"}],"isExternal":true},"2d5bf724-144":{"id":"lodash","moduleParts":{},"imported":[],"importedBy":[{"uid":"2d5bf724-14"}],"isExternal":true},"2d5bf724-145":{"id":"axios","moduleParts":{},"imported":[],"importedBy":[{"uid":"2d5bf724-14"}],"isExternal":true},"2d5bf724-146":{"id":"i18next","moduleParts":{},"imported":[],"importedBy":[{"uid":"2d5bf724-52"}],"isExternal":true},"2d5bf724-147":{"id":"i18next-browser-languagedetector","moduleParts":{},"imported":[],"importedBy":[{"uid":"2d5bf724-52"}],"isExternal":true},"2d5bf724-148":{"id":"intl-pluralrules","moduleParts":{},"imported":[],"importedBy":[{"uid":"2d5bf724-52"}],"isExternal":true}},"env":{"rollup":"3.29.4"},"options":{"gzip":false,"brotli":false,"sourcemap":false}};
4826
4826
 
4827
4827
  const run = () => {
4828
4828
  const width = window.innerWidth;
package/dist/version.json CHANGED
@@ -1,4 +1,4 @@
1
1
  {
2
- "semver": "13.44.2",
3
- "version": "eebe30e1f6e27c0ec59e3847362505cf6171e753"
2
+ "semver": "14.0.0",
3
+ "version": "142d48ac95875cc64c551691fdddf7f19fbe7a41"
4
4
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devtable/settings-form",
3
- "version": "13.44.2",
3
+ "version": "14.0.0",
4
4
  "license": "Apache-2.0",
5
5
  "publishConfig": {
6
6
  "access": "public",