@fctc/edu-logic-lib 1.2.5 → 1.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-TWFPZEDT.mjs → chunk-D6JOEAHZ.mjs} +1 -1
- package/dist/{chunk-4WC7TEQB.mjs → chunk-FHLYWVIS.mjs} +2 -2
- package/dist/{chunk-4HCNCH3K.mjs → chunk-FYXKZIEA.mjs} +1 -1
- package/dist/{chunk-AT7T7PUJ.mjs → chunk-H4DZE53S.mjs} +1 -1
- package/dist/{chunk-UBGANIIB.mjs → chunk-NCEZ3SX3.mjs} +1 -1
- package/dist/{chunk-QKRSQCY2.mjs → chunk-XW2BSIJM.mjs} +1 -1
- package/dist/environment.mjs +1 -1
- package/dist/hooks.mjs +1 -1
- package/dist/index.d.mts +1 -2
- package/dist/index.mjs +1 -1
- package/dist/models.mjs +1 -1
- package/dist/provider.mjs +1 -1
- package/dist/services.mjs +1 -1
- package/dist/store.d.mts +402 -59
- package/dist/store.mjs +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$1}from'./chunk-CDLT5L7M.mjs';import {f,b as b$1,c,e,d,g,a as a$2,h}from'./chunk-
|
|
1
|
+
import {a as a$1}from'./chunk-CDLT5L7M.mjs';import {f,b as b$1,c,e,d,g,a as a$2,h}from'./chunk-XW2BSIJM.mjs';import {b as b$2,a,m}from'./chunk-6QAALOXO.mjs';import {useMutation,useQuery}from'@tanstack/react-query';import w,{useEffect}from'react';var ve=()=>useMutation({mutationFn:e=>b$1.forgotPassword(e)}),M=ve;var Ge=()=>useMutation({mutationFn:e=>b$1.getProviders(e?.db)}),P=Ge;var he=()=>useMutation({mutationFn:e=>b$1.isValidToken(e)}),A=he;var Pe=()=>useMutation({mutationFn:e=>b$1.login(e)}),I=Pe;var Ie=()=>useMutation({mutationFn:e=>b$1.loginSocial(e)}),b=Ie;var qe=()=>useMutation({mutationFn:e=>b$1.resetPassword(e.data,e.token)}),q=qe;var Oe=()=>useMutation({mutationFn:e=>b$1.updatePassword(e.data,e.token)}),E=Oe;var De=e=>{let[t,o]=w.useState(true),[r,s]=w.useState(false),[p,y]=w.useState(false),{invisible:x,required:l,readonly:F,onchangeData:f,rootField:G,index:xe,name:Fe}=e,ge=G?`${G?.name}.${xe}.${Fe}`:null;return useEffect(()=>{f&&Object.keys(f).length>0&&(s(typeof l=="object"?b$2(f,l):a(f,l)),o(b$2(f,x)),y(typeof l=="object"?b$2(f,F):a(f,F)));},[f]),{invisible:t,required:r,readonly:p,nameField:ge}},O=De;var Ue=()=>useMutation({mutationFn:e=>c.getInfoCompany(e)}),T=Ue;var Ve=()=>useMutation({mutationFn:()=>c.getCurrentCompany()}),D=Ve;var Be=()=>useMutation({mutationFn:({data:e$1})=>e.changeStatus({data:e$1})}),R=Be;var We=()=>useMutation({mutationFn:({data:e$1})=>e.deleteComment({data:e$1})}),U=We;var _e=({data:e$1,queryKey:t})=>useQuery({queryKey:t,queryFn:()=>e.getComment({data:e$1}).then(o=>{if(o)return o}),enabled:!!e$1.thread_id&&!isNaN(e$1.thread_id),refetchOnWindowFocus:false}),L=_e;var Ne=({data:e$1,queryKey:t,enabled:o})=>useQuery({queryKey:t,queryFn:()=>e.getFormView({data:e$1}).then(r=>{if(r)return r}),enabled:o,refetchOnWindowFocus:false}),V=Ne;var Je=({data:e$1,queryKey:t,src:o})=>useQuery({queryKey:t,queryFn:()=>e.getImage({data:e$1}).then(r=>{if(r)return r}),enabled:!o&&!m(o),refetchOnWindowFocus:false}),K=Je;var Ye=()=>useMutation({mutationFn:({data:e$1})=>e.sentComment({data:e$1})}),B=Ye;var Xe=()=>useMutation({mutationFn:({data:e$1})=>e.uploadImage({data:e$1})}),Q=Xe;var et=()=>useMutation({mutationFn:({model:e,domain:t,ids:o,fields:r,type:s,importCompat:p,context:y,groupby:x})=>d.exportExcel({model:e,domain:t,ids:o,fields:r,type:s,importCompat:p,context:y,groupby:x})}),W=et;var ot=()=>useMutation({mutationFn:({ids:e,model:t,isShow:o,parentField:r,fieldType:s,parentName:p,prefix:y,name:x,context:l,importCompat:F})=>d.getFieldExport({ids:e,model:t,isShow:o,parentField:r,fieldType:s,parentName:p,prefix:y,name:x,context:l,importCompat:F})}),k=ot;var nt=({model:e,context:t})=>useQuery({queryKey:[],queryFn:()=>d.getFileExcel({model:e,context:t}).then(o=>o||[]),refetchOnWindowFocus:false}),_=nt;var ut=()=>useMutation({mutationFn:({id:e,selectedSheet:t,isHeader:o,context:r})=>d.parsePreview({id:e,selectedSheet:t,isHeader:o,context:r})}),j=ut;var at=()=>useMutation({mutationFn:({formData:e})=>d.uploadFile({formData:e})}),N=at;var pt=()=>useMutation({mutationFn:({formData:e})=>d.uploadIdFile({formData:e})}),$=pt;var lt=()=>useMutation({mutationFn:({fields:e,columns:t,idFile:o,options:r,dryrun:s,context:p})=>d.executeImport({fields:e,columns:t,idFile:o,options:r,dryrun:s,context:p})}),J=lt;var ct=()=>useMutation({mutationFn:({ids:e,model:t})=>f.delete({ids:e,model:t})}),H=ct;var xt=({data:e,queryKey:t,viewResponse:o})=>useQuery({queryKey:t,queryFn:()=>f.getAll({data:e}).then(r=>{if(r)return r}),enabled:!!e.specification&&!!e.model&&!!e.domain&&!!o,refetchOnWindowFocus:false}),Y=xt;var gt=()=>useMutation({mutationFn:({model:e,ids:t,specification:o,context:r})=>f.getDetail({model:e,ids:t,specification:o,context:r})}),z=gt;var vt=({model:e})=>useQuery({queryKey:[`field-onchange-${e}`,e],queryFn:()=>f.getListFieldsOnchange({model:e}).then(t=>{if(t)return t}),refetchOnWindowFocus:false,staleTime:1/0}),X=vt;var wt=()=>({initModel:t=>{switch(t?.name){default:return new a$1(t)}}}),Z=wt;var Gt=()=>({toDataJS:f.toDataJS,parseORM:f.parseORMOdoo}),ee=Gt;var ht=()=>useMutation({mutationFn:({ids:e,model:t,specification:o,context:r,object:s,fieldChange:p})=>f.onChange({ids:e,model:t,specification:o,context:r,object:s,fieldChange:p})}),te=ht;var Pt=()=>useMutation({mutationFn:({ids:e,model:t,data:o,specification:r,context:s})=>f.save({ids:e,model:t,data:o,specification:r,context:s})}),oe=Pt;var It=()=>useMutation({mutationFn:()=>g.getProfile()}),re=It;var qt=()=>useMutation({mutationFn:({id:e,context:t})=>g.getUser({id:e,context:t})}),ne=qt;var Ot=()=>useMutation({mutationFn:({data:e})=>g.switchUserLocale({id:e.id,values:e.values})}),ie=Ot;var Dt=()=>useMutation({mutationFn:({model:e,ids:t,context:o,method:r})=>a$2.callButton({model:e,ids:t,context:o,method:r}),onSuccess:e=>e}),ue=Dt;var Ut=()=>useMutation({mutationFn:({id:e,model:t,context:o})=>a$2.duplicateRecord({id:e,model:t,context:o})}),me=Ut;var Vt=(e,t,o)=>useQuery({queryKey:t,queryFn:()=>f.getAll({data:e}).then(r=>r||[]),enabled:o,refetchOnWindowFocus:false,staleTime:0}),ae=Vt;var Bt=({context:e,enabled:t,queryKey:o})=>useQuery({queryKey:o,queryFn:async()=>{let r=await h.getMenu(e);return r?.records&&Array.isArray(r.records)&&r.records.length>0?r.records:[]},refetchOnWindowFocus:false,staleTime:1/0,enabled:t}),se=Bt;var Wt=({data:e,queryKey:t,enabled:o})=>useQuery({queryKey:t,queryFn:()=>h.getSelectionItem({data:e}),enabled:o,refetchOnWindowFocus:false}),pe=Wt;var _t=(e,t)=>useQuery({queryKey:["get_view_by_action",e],queryFn:()=>h.getView(e),enabled:!!t,refetchOnWindowFocus:false,staleTime:1/0}),fe=_t;var Nt=({idAction:e,context:t})=>useQuery({queryKey:["load_action",e],queryFn:()=>a$2.loadAction({idAction:e,context:t}),enabled:false,staleTime:1/0,gcTime:1/0}),le=Nt;var Jt=()=>useMutation({mutationFn:({id:e,report:t,db:o})=>a$2.print({id:e,report:t,db:o})}),de=Jt;var Yt=()=>useMutation({mutationFn:({model:e,ids:t,context:o})=>a$2.removeRows({model:e,ids:t,context:o})}),ce=Yt;var Xt=({idAction:e,context:t})=>useQuery({queryKey:["run_action",e],queryFn:()=>a$2.runAction({idAction:e,context:t}),enabled:false,staleTime:1/0,gcTime:1/0}),ye=Xt;export{z as A,X as B,Z as C,ee as D,te as E,oe as F,re as G,ne as H,ie as I,ue as J,me as K,ae as L,se as M,pe as N,fe as O,le as P,de as Q,ce as R,ye as S,M as a,P as b,A as c,I as d,b as e,q as f,E as g,O as h,T as i,D as j,R as k,U as l,L as m,V as n,K as o,B as p,Q as q,W as r,k as s,_ as t,j as u,N as v,$ as w,J as x,H as y,Y as z};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {useDispatch,useSelector}from'react-redux';import {createSlice,configureStore}from'@reduxjs/toolkit';var j={baseUrl:"",requests:null,companies:[],user:{},envFile:null,defaultCompany:{id:null,logo:"",secondary_color:"",primary_color:""},context:{uid:null,allowed_company_ids:[],lang:"vi_VN",tz:"Asia/Saigon"}},y=createSlice({name:"env",initialState:j,reducers:{setEnv:(e,t)=>{Object.assign(e,t.payload);},setUid:(e,t)=>{e.context.uid=t.payload;},setAllowCompanies:(e,t)=>{e.context.allowed_company_ids=t.payload;},setCompanies:(e,t)=>{e.companies=t.payload;},setDefaultCompany:(e,t)=>{e.defaultCompany=t.payload;},setLang:(e,t)=>{e.context.lang=t.payload;},setUser:(e,t)=>{e.user=t.payload;},setEnvFile:(e,t)=>{e.envFile=t.payload;}}}),{setEnv:V,setUid:C,setLang:$,setAllowCompanies:U,setCompanies:B,setDefaultCompany:K,setUser:H,setEnvFile:G}=y.actions,W=e=>e.env,
|
|
2
|
-
export{
|
|
1
|
+
import {useDispatch,useSelector}from'react-redux';import {createSlice,configureStore}from'@reduxjs/toolkit';var j={baseUrl:"",requests:null,companies:[],user:{},envFile:null,defaultCompany:{id:null,logo:"",secondary_color:"",primary_color:""},context:{uid:null,allowed_company_ids:[],lang:"vi_VN",tz:"Asia/Saigon"}},y=createSlice({name:"env",initialState:j,reducers:{setEnv:(e,t)=>{Object.assign(e,t.payload);},setUid:(e,t)=>{e.context.uid=t.payload;},setAllowCompanies:(e,t)=>{e.context.allowed_company_ids=t.payload;},setCompanies:(e,t)=>{e.companies=t.payload;},setDefaultCompany:(e,t)=>{e.defaultCompany=t.payload;},setLang:(e,t)=>{e.context.lang=t.payload;},setUser:(e,t)=>{e.user=t.payload;},setEnvFile:(e,t)=>{e.envFile=t.payload;}}}),{setEnv:V,setUid:C,setLang:$,setAllowCompanies:U,setCompanies:B,setDefaultCompany:K,setUser:H,setEnvFile:G}=y.actions,W=e=>e.env,N=y.reducer;var z={dataParse:null,idFile:null,isFileLoaded:false,loadingImport:false,selectedFile:null,errorData:null},m=createSlice({name:"excel",initialState:z,reducers:{setDataParse:(e,t)=>{e.dataParse=t.payload;},setIdFile:(e,t)=>{e.idFile=t.payload;},setIsFileLoaded:(e,t)=>{e.isFileLoaded=t.payload;},setLoadingImport:(e,t)=>{e.loadingImport=t.payload;},setSelectedFile:(e,t)=>{e.selectedFile=t.payload;},setErrorData:(e,t)=>{e.errorData=t.payload;}}}),{setDataParse:q,setIdFile:J,setIsFileLoaded:Q,setLoadingImport:X,setSelectedFile:Z,setErrorData:ee}=m.actions,te=e=>e.excel,P=m.reducer;var re={viewDataStore:{},isShowingModalDetail:false,isShowModalTranslate:false,formSubmitComponent:{},fieldTranslation:null,listSubject:{},dataUser:{}},A=createSlice({name:"form",initialState:re,reducers:{setViewDataStore:(e,t)=>{e.viewDataStore=t.payload;},setIsShowingModalDetail:(e,t)=>{e.isShowingModalDetail=t.payload;},setIsShowModalTranslate:(e,t)=>{e.isShowModalTranslate=t.payload;},setFormSubmitComponent:(e,t)=>{e.formSubmitComponent[t.payload.key]=t.payload.component;},setFieldTranslate:(e,t)=>{e.fieldTranslation=t.payload;},setListSubject:(e,t)=>{e.listSubject=t.payload;},setDataUser:(e,t)=>{e.dataUser=t.payload;}}}),{setViewDataStore:ae,setIsShowingModalDetail:ne,setIsShowModalTranslate:se,setFormSubmitComponent:ie,setFieldTranslate:ce,setListSubject:le,setDataUser:de}=A.actions,pe=e=>e.form,T=A.reducer;var fe={pageLimit:10,fields:{},order:"",selectedRowKeys:[],indexRowTableModal:-2,footerGroupTable:{},page:0,domainTable:[]},h=createSlice({name:"list",initialState:fe,reducers:{setPageLimit:(e,t)=>{e.pageLimit=t.payload;},setFields:(e,t)=>{e.fields=t.payload;},setOrder:(e,t)=>{e.order=t.payload;},setSelectedRowKeys:(e,t)=>{e.selectedRowKeys=t.payload;},setIndexRowTableModal:(e,t)=>{e.indexRowTableModal=t.payload;},setPage:(e,t)=>{e.page=t.payload;},setDomainTable:(e,t)=>{e.domainTable=t.payload;}}}),{setPageLimit:ye,setFields:me,setOrder:he,setSelectedRowKeys:Se,setIndexRowTableModal:be,setPage:ge,setDomainTable:we}=h.actions,xe=e=>e.list,R=h.reducer;var ve={menuList:[]},S=createSlice({name:"navbar",initialState:ve,reducers:{setMenuList:(e,t)=>{e.menuList=t.payload;}}}),{setMenuList:De}=S.actions,Ne=e=>e.navbar,M=S.reducer;var Ae={profile:{}},b=createSlice({name:"profile",initialState:Ae,reducers:{setProfile:(e,t)=>{e.profile=t.payload;}}}),{setProfile:Te}=b.actions,Re=e=>e.profile,I=b.reducer;var Ie={groupByDomain:null,tableHead:[],searchString:"",hoveredIndexSearchList:null,selectedTags:[],firstDomain:null,searchMap:{},typeFieldsSearch:"",modelSearch:"",filterBy:[],groupBy:[]},g=createSlice({name:"search",initialState:Ie,reducers:{setGroupByDomain:(e,t)=>{e.groupByDomain=t.payload;},setTableHead:(e,t)=>{e.tableHead=t.payload;},setSearchString:(e,t)=>{e.searchString=t.payload;},setHoveredIndexSearchList:(e,t)=>{e.hoveredIndexSearchList=t.payload;},setSelectedTags:(e,t)=>{e.selectedTags=t.payload;},setFirstDomain:(e,t)=>{e.firstDomain=t.payload;},setTypeFieldsSearch:(e,t)=>{e.typeFieldsSearch=t.payload;},setModelSearch:(e,t)=>{e.modelSearch=t.payload;},setFilterBy:(e,t)=>{e.filterBy=t.payload;},setGroupBy:(e,t)=>{e.groupBy=t.payload;},setSearchMap:(e,t)=>{e.searchMap=t.payload;},updateSearchMap:(e,t)=>{e.searchMap[t.payload.key]||(e.searchMap[t.payload.key]=[]),e.searchMap[t.payload.key].push(t.payload.value);},removeKeyFromSearchMap:(e,t)=>{let{key:o,item:n}=t.payload,s=e.searchMap[o];if(s)if(n){let i=s.filter(a=>a.name!==n.name);i.length>0?e.searchMap[o]=i:delete e.searchMap[o];}else delete e.searchMap[o];},clearSearchMap:e=>{e.searchMap={};}}}),{setGroupByDomain:Fe,setSelectedTags:Oe,setSearchString:_e,setHoveredIndexSearchList:Le,setFirstDomain:ke,setTableHead:je,setFilterBy:Ve,setTypeFieldsSearch:Ce,setModelSearch:$e,setSearchMap:Ue,updateSearchMap:Be,removeKeyFromSearchMap:Ke,setGroupBy:He,clearSearchMap:Ge}=g.actions,We=e=>e.search,Ye=e=>e.search.searchMap,F=g.reducer;function x(e){return `Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var w=()=>Math.random().toString(36).substring(7).split("").join("."),ze={INIT:`@@redux/INIT${w()}`,REPLACE:`@@redux/REPLACE${w()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${w()}`},d=ze;function qe(e){if(typeof e!="object"||e===null)return false;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function Je(e){if(e===void 0)return "undefined";if(e===null)return "null";let t=typeof e;switch(t){case "boolean":case "string":case "number":case "symbol":case "function":return t}if(Array.isArray(e))return "array";if(Ze(e))return "date";if(Xe(e))return "error";let o=Qe(e);switch(o){case "Symbol":case "Promise":case "WeakMap":case "WeakSet":case "Map":case "Set":return o}return Object.prototype.toString.call(e).slice(8,-1).toLowerCase().replace(/\s/g,"")}function Qe(e){return typeof e.constructor=="function"?e.constructor.name:null}function Xe(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function Ze(e){return e instanceof Date?true:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function et(e){let t=typeof e;return process.env.NODE_ENV!=="production"&&(t=Je(e)),t}function O(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function tt(e,t,o,n){let s=Object.keys(t),i=o&&o.type===d.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(s.length===0)return "Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!qe(e))return `The ${i} has unexpected type of "${et(e)}". Expected argument to be an object with the following keys: "${s.join('", "')}"`;let a=Object.keys(e).filter(r=>!t.hasOwnProperty(r)&&!n[r]);if(a.forEach(r=>{n[r]=true;}),!(o&&o.type===d.REPLACE)&&a.length>0)return `Unexpected ${a.length>1?"keys":"key"} "${a.join('", "')}" found in ${i}. Expected to find one of the known reducer keys instead: "${s.join('", "')}". Unexpected keys will be ignored.`}function ot(e){Object.keys(e).forEach(t=>{let o=e[t];if(typeof o(void 0,{type:d.INIT})>"u")throw new Error(process.env.NODE_ENV==="production"?x(12):`The slice reducer for key "${t}" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof o(void 0,{type:d.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(process.env.NODE_ENV==="production"?x(13):`The slice reducer for key "${t}" returned undefined when probed with a random type. Don't try to handle '${d.INIT}' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.`)});}function _(e){let t=Object.keys(e),o={};for(let a=0;a<t.length;a++){let r=t[a];process.env.NODE_ENV!=="production"&&typeof e[r]>"u"&&O(`No reducer provided for key "${r}"`),typeof e[r]=="function"&&(o[r]=e[r]);}let n=Object.keys(o),s;process.env.NODE_ENV!=="production"&&(s={});let i;try{ot(o);}catch(a){i=a;}return function(r={},p){if(i)throw i;if(process.env.NODE_ENV!=="production"){let c=tt(r,o,p,s);c&&O(c);}let l=false,E={};for(let c=0;c<n.length;c++){let u=n[c],L=o[u],v=r[u],f=L(v,p);if(typeof f>"u"){let D=p&&p.type;throw new Error(process.env.NODE_ENV==="production"?x(14):`When called with an action of type ${D?`"${String(D)}"`:"(unknown type)"}, the slice reducer for key "${u}" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.`)}E[u]=f,l=l||f!==v;}return l=l||n.length!==Object.keys(r).length,l?E:r}}var at=_({env:N,navbar:M,list:R,search:F,form:T,excel:P,profile:I}),nt=configureStore({reducer:at,middleware:e=>e({serializableCheck:false})});var ct=useDispatch,lt=useSelector;
|
|
2
|
+
export{Ke as $,h as A,ye as B,me as C,he as D,Se as E,be as F,ge as G,we as H,xe as I,S as J,De as K,Ne as L,b as M,Te as N,Re as O,g as P,Fe as Q,Oe as R,_e as S,Le as T,ke as U,je as V,Ve as W,Ce as X,$e as Y,Ue as Z,Be as _,y as a,He as aa,V as b,Ge as ba,C as c,We as ca,$ as d,Ye as da,U as e,nt as ea,B as f,ct as fa,K as g,lt as ga,H as h,G as i,W as j,m as k,q as l,J as m,Q as n,X as o,Z as p,ee as q,te as r,ae as s,ne as t,se as u,ie as v,ce as w,le as x,de as y,pe as z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$1}from'./chunk-CDLT5L7M.mjs';import {c,g}from'./chunk-
|
|
1
|
+
import {a as a$1}from'./chunk-CDLT5L7M.mjs';import {c,g}from'./chunk-XW2BSIJM.mjs';var t=class extends a$1{constructor(r){super(r);}async getCurrentCompany(){return await c.getCurrentCompany()}async getUserCompany(r){return await c.getInfoCompany(r)}},s=t;var a=class extends a$1{constructor(r){super(r);}async getProfile(){return await g.getProfile()}},m=a;export{s as a,m as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {b,c as c$1,d,e,f,g,h,
|
|
1
|
+
import {b,c as c$1,d,e,f,g,h,ea}from'./chunk-FHLYWVIS.mjs';import {c,a,b as b$1}from'./chunk-GHOANIO5.mjs';var n=class{envStore;baseUrl;requests;context;defaultCompany;config;companies;user;db;localStorageUtils;sessionStorageUtils;constructor(t,e,o){this.envStore=t,this.localStorageUtils=e,this.sessionStorageUtils=o,this.setup();}setup(){let t=this.envStore.getState().env;this.baseUrl=t?.baseUrl,this.requests=t?.requests,this.context=t?.context,this.defaultCompany=t?.defaultCompany,this.config=t?.config,this.companies=t?.companies||[],this.user=t?.user,this.db=t?.db;}setupEnv(t){let e=this.envStore.dispatch,o={...t,localStorageUtils:this.localStorageUtils,sessionStorageUtils:this.sessionStorageUtils},U=c.init(o);e(b({...o,requests:U})),this.setup();}setUid(t){let e=this.envStore.dispatch;e(c$1(t)),this.setup();}setLang(t){let e=this.envStore.dispatch;e(d(t)),this.setup();}setAllowCompanies(t){let e$1=this.envStore.dispatch;e$1(e(t)),this.setup();}setCompanies(t){let e=this.envStore.dispatch;e(f(t)),this.setup();}setDefaultCompany(t){let e=this.envStore.dispatch;e(g(t)),this.setup();}setUserInfo(t){let e=this.envStore.dispatch;e(h(t)),this.setup();}},s=null;function m({localStorageUtils:a,sessionStorageUtils:t}){return s=new n(ea,a,t),s}function y(){return s||(s=new n(ea,a(),b$1())),s}export{n as a,s as b,m as c,y as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {h}from'./chunk-
|
|
1
|
+
import {h}from'./chunk-XW2BSIJM.mjs';import {ea}from'./chunk-FHLYWVIS.mjs';import {useState,useEffect}from'react';import {QueryClient,QueryClientProvider,useQueryClient}from'@tanstack/react-query';import {jsx,Fragment}from'react/jsx-runtime';import {Provider}from'react-redux';var n=({children:r})=>{let[i]=useState(()=>new QueryClient({defaultOptions:{queries:{refetchOnWindowFocus:false,refetchOnMount:false,refetchOnReconnect:false,retry:false}}}));return jsx(QueryClientProvider,{client:i,children:r})};var c=({children:r})=>jsx(Provider,{store:ea,children:r});var l=({children:r})=>jsx(c,{children:jsx(n,{children:r})});var v=({children:r})=>{let i=useQueryClient(),[m,p]=useState(false);return useEffect(()=>{let a=()=>{i.clear(),localStorage.removeItem("__api_version__");};if((async()=>{let o=await h.getVersion();localStorage.getItem("__api_version__")!==o?.api_version?(a(),localStorage.setItem("__api_version__",o?.api_version)):console.log("Api version:",o?.api_version),p(true);})(),typeof window<"u"){let o=e=>{let t=e.key.toLowerCase();((t==="f5"||t==="r")&&e.ctrlKey&&(t!=="r"||e.shiftKey)||t==="r"&&e.metaKey&&e.shiftKey||t==="r"&&e.metaKey&&e.altKey)&&a();};return window.addEventListener("keydown",o),()=>window.removeEventListener("keydown",o)}},[i]),m?jsx(Fragment,{children:r}):null};export{n as a,l as b,v as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {g as g$1}from'./chunk-6QAALOXO.mjs';import {d}from'./chunk-AT7T7PUJ.mjs';import {c}from'./chunk-3VUHHO7T.mjs';var P={async loadAction({idAction:e,context:t}){let n=d(),o={action_id:e,with_context:{...t}};return n.requests.post("/load_action",o,{headers:{"Content-Type":"application/json"}})},async callButton({model:e,ids:t=[],context:n,method:o}){try{let r=d(),a={model:e,method:o,ids:t,with_context:n};return r.requests.post("/call",a,{headers:{"Content-Type":"application/json"}})}catch(r){throw console.error("Error when calling button action:",r),r}},async removeRows({model:e,ids:t,context:n}){let o=d(),r={model:e,method:"unlink",ids:t,with_context:n};return o.requests.post("/call",r,{headers:{"Content-Type":"application/json"}})},async duplicateRecord({model:e,id:t,context:n}){let o=d(),r={model:e,method:"copy",ids:t,with_context:n};return o.requests.post("/call",r,{headers:{"Content-Type":"application/json"}})},async print({id:e,report:t,db:n}){let o=d(),a=g$1({report:t,id:e,type:"pdf",file_response:true,db:n}),i=`/report?${a}`;return o.requests.get(i,{headers:{"Content-Type":"application/json"},responseType:"arraybuffer"})},async runAction({idAction:e,context:t}){let n=d(),o={action_id:e,with_context:{...t}};return n.requests.post("/run_action",o,{headers:{"Content-Type":"application/json"}})}},f=P;var x={async login(e){let t=d(),n=Object.fromEntries(Object.entries({username:e.email,password:e.password,grant_type:t?.config?.grantType||"",client_id:t?.config?.clientId||"",client_secret:t?.config?.clientSecret||""}).filter(([r,a])=>!!a)),o=new URLSearchParams(n).toString();return t?.requests?.post(e.path,o,{headers:{"Content-Type":"application/x-www-form-urlencoded"}})},async forgotPassword(e){let t=d(),n={login:e,url:`${window.location.origin}/reset-password`};return t?.requests?.post("/reset_password",n,{headers:{"Content-Type":"application/json"}})},async resetPassword(e,t){let n=d(),o={token:t,password:e.password,new_password:e.confirmPassword};return n?.requests?.post("/change_password",o,{headers:{"Content-Type":"application/json"}})},async updatePassword(e,t){let n=d(),o={token:t,old_password:e.oldPassword,new_password:e.newPassword};return n?.requests?.post("/change_password_parent",o,{headers:{"Content-Type":"application/json"}})},async isValidToken(e){let t=d(),n={token:e};return t?.requests?.post("/check_token",n,{headers:{"Content-Type":"application/json"}})},async loginSocial({state:e,access_token:t}){return d()?.requests?.post("/token/generate",{state:e,access_token:t},{headers:{"Content-Type":"application/json"}})},async getProviders(e){return d()?.requests?.get("/oauth/providers",{params:{db:e}})}},h=x;var S={async getCurrentCompany(){return await d().requests.get("/company",{headers:{"Content-Type":"application/json"}})},async getInfoCompany(e){let t=d(),n={ids:[e],model:"res.company",method:"web_read",kwargs:{specification:{primary_color:{},secondary_color:{},logo:{},display_name:{},secondary_logo:{}}}};return await t?.requests?.post("/call",n,{headers:{"Content-Type":"application/json"}})}},g=S;var j={async uploadFile({formData:e}){return d().requests.post("/upload/file",e,{headers:{"Content-Type":"multipart/form-data"}})},async uploadIdFile({formData:e}){return d().requests.post("/upload/file",e,{headers:{"Content-Type":"multipart/form-data"}})},async parsePreview({id:e,selectedSheet:t,isHeader:n,context:o}){let r=d(),a={model:"base_import.import",method:"parse_preview",ids:[e],kwargs:{options:{import_skip_records:[],import_set_empty_fields:[],fallback_values:{},name_create_enabled_fields:{},encoding:"",separator:"",quoting:'"',date_format:"",datetime_format:"",float_thousand_separator:",",float_decimal_separator:".",advanced:true,has_headers:n,keep_matches:false,limit:2e3,sheets:[],sheet:t,skip:0,tracking_disable:true}},with_context:o};return r.requests.post("/call",a,{headers:{"Content-Type":"multipart/form-data"}})},async executeImport({columns:e,fields:t,idFile:n,options:o,dryrun:r,context:a}){let i=d(),c={model:"base_import.import",method:"execute_import",ids:[n],kwargs:{fields:t,columns:e,options:o,dryrun:r},with_context:a};return i.requests.post("/call",c,{headers:{"Content-Type":"multipart/form-data"}})},async getFileExcel({model:e,context:t}){let n=d(),o={model:e,method:"get_import_templates",args:[],with_context:t};return n.requests.post("/call",o)},async getFieldExport({ids:e,model:t,isShow:n,parentField:o,fieldType:r,parentName:a,prefix:i,name:c,context:d$1,importCompat:l}){let E=d(),p={model:t,import_compat:l,domain:[["id","in",e]],with_context:d$1};return n&&(p.parent_field=o,p.parent_field_type=r,p.parent_name=a,p.name=c,p.prefix=i,p.exclude=[null]),E.requests.post("/export/get_fields",p)},async exportExcel({model:e,domain:t,ids:n,fields:o,type:r,importCompat:a,context:i,groupby:c}){let d$1=d(),l={model:e,domain:t,ids:n,import_compat:a,fields:o,with_context:i,groupby:c??[]};return d$1.requests.post_excel(`/export/${r}`,l)}},w=j;var L={async getComment({data:e}){try{let t=d(),n={thread_id:e.thread_id,thread_model:e.thread_model,limit:100,with_context:{lang:e.lang}};return t.requests.post("/chatter/thread/messages",n,{headers:{"Content-Type":"application/json"}})}catch(t){throw console.error("Error when sending message:",t),t}},async sentComment({data:e}){try{let t=d(),n={context:{tz:"Asia/Saigon",uid:2,allowed_company_ids:[1],mail_post_autofollow:!1,temporary_id:142183.01},post_data:{body:e.message,message_type:"comment",attachment_ids:e.attachment_ids,attachment_tokens:[],subtype_xmlid:e.subtype},thread_id:Number(e.thread_id),thread_model:e.thread_model};return t.requests.post("/chatter/message/post",n,{headers:{"Content-Type":"application/json"}})}catch(t){throw console.error("Error when sent message:",t),t}},async deleteComment({data:e}){try{let t=d(),n={attachment_ids:[],attachment_tokens:[],body:"",message_id:e.message_id};return t.requests.post("/chatter/message/update_content",n,{headers:{"Content-Type":"application/json"}})}catch(t){throw console.error("Error when sent message:",t),t}},async getImage({data:e}){try{return d().requests.get(`/web/image?filename=${e.filename}&unique=${e.checksum}&width=1920&height=300`,{headers:{"Content-Type":"application/json"}})}catch(t){throw console.error("Error when sent message:",t),t}},async uploadImage({data:e}){try{return d().requests.post("/mail/attachment/upload",e,{headers:{"Content-Type":"multipart/form-data"}})}catch(t){throw console.error("Error when sent message:",t),t}},async getFormView({data:e}){try{let t=d(),n={model:e.model,method:"get_formview_action",ids:e.id?[e.id]:[],with_context:e.context};return t.requests.post("/call",n,{headers:{"Content-Type":"application/json"}})}catch(t){throw console.error("Error when fetching form view:",t),t}},async changeStatus({data:e}){let t=d(),n={[e.name]:e.stage_id},o={model:e.model,method:"web_save",with_context:{lang:e.lang,allowed_company_ids:[1],uid:2,search_default_my_ticket:true,search_default_is_open:true},ids:[e.id],kwargs:{vals:n,specification:{}}};return t.requests.post("/call",o,{headers:{"Content-Type":"application/json"}})}},C=L;var m=2,_={async getAll({data:e}){let t=d(),n=e.type=="calendar"?{fields:e?.fields}:e.fields&&e.fields.length>0&&e.groupby&&e.groupby.length>0&&e.groupby[0]?{fields:e.fields,groupby:e.groupby}:{count_limit:10001,order:e.sort,specification:e.specification},o={model:String(e.model),method:e.type=="calendar"?"search_read":n.fields&&n.groupby?"web_read_group":"web_search_read",ids:e.ids,with_context:e.context,kwargs:{domain:e.domain,limit:e.limit,offset:e.offset,...n}};return t?.requests.post("/call",o,{headers:{"Content-Type":"application/json"}})},async getList({model:e,ids:t=[],specification:n={},domain:o=[],offset:r,order:a,context:i={},limit:c=10}){let d$1=d(),l={model:e,method:"web_search_read",ids:t,with_context:i,kwargs:{specification:n,domain:o,limit:c,offset:r,order:a}};return d$1?.requests?.post("/call",l,{headers:{"Content-Type":"application/json"}})},async getDetail({ids:e=[],model:t,specification:n,context:o}){let r=d(),a={model:t,method:"web_read",ids:e,with_context:o,kwargs:{specification:n}};return r?.requests?.post("/call",a,{headers:{"Content-Type":"application/json"}})},async save({model:e,ids:t=[],data:n={},specification:o={},context:r={}}){let a=d(),i={model:e,method:"web_save",with_context:r,ids:t,kwargs:{vals:n,specification:o}};return a?.requests?.post("/call",i,{headers:{"Content-Type":"application/json"}})},async delete({ids:e=[],model:t}){let n=d(),o={model:t,method:"unlink",ids:e};return n?.requests?.post("/call",o,{headers:{"Content-Type":"application/json"}})},async onChange({ids:e=[],model:t,object:n,specification:o,context:r,fieldChange:a}){let i=d(),c={model:t,method:"onchange",ids:e,with_context:r,args:[n||{},a||[],o]};return i?.requests?.post("/call",c,{headers:{"Content-Type":"application/json"}})},async getListFieldsOnchange({model:e}){let t=d(),n={model:e,method:"get_fields_onchange"};return t?.requests?.post("/call",n,{headers:{"Content-Type":"application/json"}})},parseORMOdoo(e){for(let t in e)t==="display_name"&&delete e[t],!e[t]&&e[t]!==0?e[t]=false:e[t]==="Draft"&&(e[t]="/");return {...e}},toDataJS(e,t,n){for(let o in e)e[o]===false?t&&n?t?.models?.[n]?.[o]?.type!=="boolean"&&(e[o]=null):e[o]=null:e[o]==="/"?e[o]="Draft":e[o]!==false&&n!==void 0&&(t?.models?.[n]?.[o]?.type==="one2many"||t?.models?.[n]?.[o]?.type==="many2many")&&(e[o]=(e[o]??=[])?.map((r,a)=>{let i=t?.models?.[n]?.[o]?.relation;if(i!==void 0)if(t?.models?.[i])if(r?.length>=3){if(r[0]===2){delete e[o][a];return}return _.toDataJS({...r[m],id:`virtual_${a}`},t,i)}else return _.toDataJS(r,t,i);else if(r?.length>=3){if(!r[m]||r[0]===2){delete e[o][a];return}return r[m]}else return r}));return {...e}}},v=_;var D={async getProfile(){return d().requests.get("/userinfo",{headers:{"Content-Type":"application/x-www-form-urlencoded"}})},async getUser({context:e,id:t}){let n=d(),o={model:"res.users",method:"web_read",ids:[t],with_context:e,kwargs:{specification:{display_name:{},image_1920:{},name:{},login:{},email:{},password:{},visible_group_id:{fields:{id:{},display_name:{}}},company_id:{fields:{id:{},display_name:{}}}}}};return n.requests.post("/call",o,{headers:{"Content-Type":"application/json"}})},switchUserLocale:async({id:e,values:t})=>{let n=d(),o={model:"res.users",domain:[["id","=",e]],values:t};return n?.requests.post(c?.CREATE_UPDATE_PATH,o,{headers:{"Content-Type":"application/json"}})}},A=D;var q={async getView({model:e,views:t,context:n={},options:o={},aid:r}){let a=d(),i={load_filters:true,toolbar:true,action_id:r},c={model:e,method:"get_fields_view_v2",kwargs:{views:t,options:{...o,...i}},with_context:n};return a?.requests?.post("/call",c,{headers:{"Content-Type":"application/json"}})},async getMenu(e){let t=d(),n={model:"ir.ui.menu",method:"web_search_read",ids:[],with_context:e,kwargs:{specification:{active:{},name:{},is_display:{},sequence:{},complete_name:{},action:{fields:{display_name:{},type:{},binding_view_types:{}}},url_icon:{},web_icon:{},web_icon_data:{},groups_id:{fields:{full_name:{}},limit:40,order:""},display_name:{},child_id:{fields:{active:{},name:{},is_display:{},sequence:{},complete_name:{},action:{fields:{display_name:{},type:{},binding_view_types:{}}},url_icon:{},web_icon:{},web_icon_data:{},groups_id:{fields:{full_name:{}},limit:40,order:""},display_name:{},child_id:{fields:{active:{},name:{},is_display:{},sequence:{},complete_name:{},action:{fields:{display_name:{},type:{},binding_view_types:{}}},url_icon:{},web_icon:{},web_icon_data:{},groups_id:{fields:{full_name:{}},limit:40,order:""},display_name:{},child_id:{fields:{active:{},name:{},is_display:{},sequence:{},complete_name:{},action:{fields:{display_name:{},type:{},binding_view_types:{}}},url_icon:{},web_icon:{},web_icon_data:{},groups_id:{fields:{full_name:{}},limit:40,order:""},display_name:{},child_id:{fields:{},limit:40,order:""}},limit:40,order:""}},limit:40,order:""}},limit:40,order:""}},domain:["&",["is_display","=",true],"&",["active","=",true],["parent_id","=",false]]}};return t?.requests?.post("/call",n,{headers:{"Content-Type":"application/json"}})},async getSelectionItem({data:e}){let t=d(),n={model:e.model,ids:[],method:"get_data_select",with_context:e.context,kwargs:{count_limit:10001,domain:e.domain?e.domain:[],offset:0,order:"",specification:e?.specification??{id:{},name:{},display_name:{}}}};return t?.requests.post("/call",n,{headers:{"Content-Type":"application/json"}})},async loadMessages(){return d().requests.post("/load_message_failures",{},{headers:{"Content-Type":"application/json"}})},async getVersion(){return d()?.requests.get("",{headers:{"Content-Type":"application/json"}})}},T=q;export{f as a,h as b,g as c,w as d,C as e,v as f,A as g,T as h};
|
|
1
|
+
import {g as g$1}from'./chunk-6QAALOXO.mjs';import {d}from'./chunk-H4DZE53S.mjs';import {c}from'./chunk-3VUHHO7T.mjs';var P={async loadAction({idAction:e,context:t}){let n=d(),o={action_id:e,with_context:{...t}};return n.requests.post("/load_action",o,{headers:{"Content-Type":"application/json"}})},async callButton({model:e,ids:t=[],context:n,method:o}){try{let r=d(),a={model:e,method:o,ids:t,with_context:n};return r.requests.post("/call",a,{headers:{"Content-Type":"application/json"}})}catch(r){throw console.error("Error when calling button action:",r),r}},async removeRows({model:e,ids:t,context:n}){let o=d(),r={model:e,method:"unlink",ids:t,with_context:n};return o.requests.post("/call",r,{headers:{"Content-Type":"application/json"}})},async duplicateRecord({model:e,id:t,context:n}){let o=d(),r={model:e,method:"copy",ids:t,with_context:n};return o.requests.post("/call",r,{headers:{"Content-Type":"application/json"}})},async print({id:e,report:t,db:n}){let o=d(),a=g$1({report:t,id:e,type:"pdf",file_response:true,db:n}),i=`/report?${a}`;return o.requests.get(i,{headers:{"Content-Type":"application/json"},responseType:"arraybuffer"})},async runAction({idAction:e,context:t}){let n=d(),o={action_id:e,with_context:{...t}};return n.requests.post("/run_action",o,{headers:{"Content-Type":"application/json"}})}},f=P;var x={async login(e){let t=d(),n=Object.fromEntries(Object.entries({username:e.email,password:e.password,grant_type:t?.config?.grantType||"",client_id:t?.config?.clientId||"",client_secret:t?.config?.clientSecret||""}).filter(([r,a])=>!!a)),o=new URLSearchParams(n).toString();return t?.requests?.post(e.path,o,{headers:{"Content-Type":"application/x-www-form-urlencoded"}})},async forgotPassword(e){let t=d(),n={login:e,url:`${window.location.origin}/reset-password`};return t?.requests?.post("/reset_password",n,{headers:{"Content-Type":"application/json"}})},async resetPassword(e,t){let n=d(),o={token:t,password:e.password,new_password:e.confirmPassword};return n?.requests?.post("/change_password",o,{headers:{"Content-Type":"application/json"}})},async updatePassword(e,t){let n=d(),o={token:t,old_password:e.oldPassword,new_password:e.newPassword};return n?.requests?.post("/change_password_parent",o,{headers:{"Content-Type":"application/json"}})},async isValidToken(e){let t=d(),n={token:e};return t?.requests?.post("/check_token",n,{headers:{"Content-Type":"application/json"}})},async loginSocial({state:e,access_token:t}){return d()?.requests?.post("/token/generate",{state:e,access_token:t},{headers:{"Content-Type":"application/json"}})},async getProviders(e){return d()?.requests?.get("/oauth/providers",{params:{db:e}})}},h=x;var S={async getCurrentCompany(){return await d().requests.get("/company",{headers:{"Content-Type":"application/json"}})},async getInfoCompany(e){let t=d(),n={ids:[e],model:"res.company",method:"web_read",kwargs:{specification:{primary_color:{},secondary_color:{},logo:{},display_name:{},secondary_logo:{}}}};return await t?.requests?.post("/call",n,{headers:{"Content-Type":"application/json"}})}},g=S;var j={async uploadFile({formData:e}){return d().requests.post("/upload/file",e,{headers:{"Content-Type":"multipart/form-data"}})},async uploadIdFile({formData:e}){return d().requests.post("/upload/file",e,{headers:{"Content-Type":"multipart/form-data"}})},async parsePreview({id:e,selectedSheet:t,isHeader:n,context:o}){let r=d(),a={model:"base_import.import",method:"parse_preview",ids:[e],kwargs:{options:{import_skip_records:[],import_set_empty_fields:[],fallback_values:{},name_create_enabled_fields:{},encoding:"",separator:"",quoting:'"',date_format:"",datetime_format:"",float_thousand_separator:",",float_decimal_separator:".",advanced:true,has_headers:n,keep_matches:false,limit:2e3,sheets:[],sheet:t,skip:0,tracking_disable:true}},with_context:o};return r.requests.post("/call",a,{headers:{"Content-Type":"multipart/form-data"}})},async executeImport({columns:e,fields:t,idFile:n,options:o,dryrun:r,context:a}){let i=d(),c={model:"base_import.import",method:"execute_import",ids:[n],kwargs:{fields:t,columns:e,options:o,dryrun:r},with_context:a};return i.requests.post("/call",c,{headers:{"Content-Type":"multipart/form-data"}})},async getFileExcel({model:e,context:t}){let n=d(),o={model:e,method:"get_import_templates",args:[],with_context:t};return n.requests.post("/call",o)},async getFieldExport({ids:e,model:t,isShow:n,parentField:o,fieldType:r,parentName:a,prefix:i,name:c,context:d$1,importCompat:l}){let E=d(),p={model:t,import_compat:l,domain:[["id","in",e]],with_context:d$1};return n&&(p.parent_field=o,p.parent_field_type=r,p.parent_name=a,p.name=c,p.prefix=i,p.exclude=[null]),E.requests.post("/export/get_fields",p)},async exportExcel({model:e,domain:t,ids:n,fields:o,type:r,importCompat:a,context:i,groupby:c}){let d$1=d(),l={model:e,domain:t,ids:n,import_compat:a,fields:o,with_context:i,groupby:c??[]};return d$1.requests.post_excel(`/export/${r}`,l)}},w=j;var L={async getComment({data:e}){try{let t=d(),n={thread_id:e.thread_id,thread_model:e.thread_model,limit:100,with_context:{lang:e.lang}};return t.requests.post("/chatter/thread/messages",n,{headers:{"Content-Type":"application/json"}})}catch(t){throw console.error("Error when sending message:",t),t}},async sentComment({data:e}){try{let t=d(),n={context:{tz:"Asia/Saigon",uid:2,allowed_company_ids:[1],mail_post_autofollow:!1,temporary_id:142183.01},post_data:{body:e.message,message_type:"comment",attachment_ids:e.attachment_ids,attachment_tokens:[],subtype_xmlid:e.subtype},thread_id:Number(e.thread_id),thread_model:e.thread_model};return t.requests.post("/chatter/message/post",n,{headers:{"Content-Type":"application/json"}})}catch(t){throw console.error("Error when sent message:",t),t}},async deleteComment({data:e}){try{let t=d(),n={attachment_ids:[],attachment_tokens:[],body:"",message_id:e.message_id};return t.requests.post("/chatter/message/update_content",n,{headers:{"Content-Type":"application/json"}})}catch(t){throw console.error("Error when sent message:",t),t}},async getImage({data:e}){try{return d().requests.get(`/web/image?filename=${e.filename}&unique=${e.checksum}&width=1920&height=300`,{headers:{"Content-Type":"application/json"}})}catch(t){throw console.error("Error when sent message:",t),t}},async uploadImage({data:e}){try{return d().requests.post("/mail/attachment/upload",e,{headers:{"Content-Type":"multipart/form-data"}})}catch(t){throw console.error("Error when sent message:",t),t}},async getFormView({data:e}){try{let t=d(),n={model:e.model,method:"get_formview_action",ids:e.id?[e.id]:[],with_context:e.context};return t.requests.post("/call",n,{headers:{"Content-Type":"application/json"}})}catch(t){throw console.error("Error when fetching form view:",t),t}},async changeStatus({data:e}){let t=d(),n={[e.name]:e.stage_id},o={model:e.model,method:"web_save",with_context:{lang:e.lang,allowed_company_ids:[1],uid:2,search_default_my_ticket:true,search_default_is_open:true},ids:[e.id],kwargs:{vals:n,specification:{}}};return t.requests.post("/call",o,{headers:{"Content-Type":"application/json"}})}},C=L;var m=2,_={async getAll({data:e}){let t=d(),n=e.type=="calendar"?{fields:e?.fields}:e.fields&&e.fields.length>0&&e.groupby&&e.groupby.length>0&&e.groupby[0]?{fields:e.fields,groupby:e.groupby}:{count_limit:10001,order:e.sort,specification:e.specification},o={model:String(e.model),method:e.type=="calendar"?"search_read":n.fields&&n.groupby?"web_read_group":"web_search_read",ids:e.ids,with_context:e.context,kwargs:{domain:e.domain,limit:e.limit,offset:e.offset,...n}};return t?.requests.post("/call",o,{headers:{"Content-Type":"application/json"}})},async getList({model:e,ids:t=[],specification:n={},domain:o=[],offset:r,order:a,context:i={},limit:c=10}){let d$1=d(),l={model:e,method:"web_search_read",ids:t,with_context:i,kwargs:{specification:n,domain:o,limit:c,offset:r,order:a}};return d$1?.requests?.post("/call",l,{headers:{"Content-Type":"application/json"}})},async getDetail({ids:e=[],model:t,specification:n,context:o}){let r=d(),a={model:t,method:"web_read",ids:e,with_context:o,kwargs:{specification:n}};return r?.requests?.post("/call",a,{headers:{"Content-Type":"application/json"}})},async save({model:e,ids:t=[],data:n={},specification:o={},context:r={}}){let a=d(),i={model:e,method:"web_save",with_context:r,ids:t,kwargs:{vals:n,specification:o}};return a?.requests?.post("/call",i,{headers:{"Content-Type":"application/json"}})},async delete({ids:e=[],model:t}){let n=d(),o={model:t,method:"unlink",ids:e};return n?.requests?.post("/call",o,{headers:{"Content-Type":"application/json"}})},async onChange({ids:e=[],model:t,object:n,specification:o,context:r,fieldChange:a}){let i=d(),c={model:t,method:"onchange",ids:e,with_context:r,args:[n||{},a||[],o]};return i?.requests?.post("/call",c,{headers:{"Content-Type":"application/json"}})},async getListFieldsOnchange({model:e}){let t=d(),n={model:e,method:"get_fields_onchange"};return t?.requests?.post("/call",n,{headers:{"Content-Type":"application/json"}})},parseORMOdoo(e){for(let t in e)t==="display_name"&&delete e[t],!e[t]&&e[t]!==0?e[t]=false:e[t]==="Draft"&&(e[t]="/");return {...e}},toDataJS(e,t,n){for(let o in e)e[o]===false?t&&n?t?.models?.[n]?.[o]?.type!=="boolean"&&(e[o]=null):e[o]=null:e[o]==="/"?e[o]="Draft":e[o]!==false&&n!==void 0&&(t?.models?.[n]?.[o]?.type==="one2many"||t?.models?.[n]?.[o]?.type==="many2many")&&(e[o]=(e[o]??=[])?.map((r,a)=>{let i=t?.models?.[n]?.[o]?.relation;if(i!==void 0)if(t?.models?.[i])if(r?.length>=3){if(r[0]===2){delete e[o][a];return}return _.toDataJS({...r[m],id:`virtual_${a}`},t,i)}else return _.toDataJS(r,t,i);else if(r?.length>=3){if(!r[m]||r[0]===2){delete e[o][a];return}return r[m]}else return r}));return {...e}}},v=_;var D={async getProfile(){return d().requests.get("/userinfo",{headers:{"Content-Type":"application/x-www-form-urlencoded"}})},async getUser({context:e,id:t}){let n=d(),o={model:"res.users",method:"web_read",ids:[t],with_context:e,kwargs:{specification:{display_name:{},image_1920:{},name:{},login:{},email:{},password:{},visible_group_id:{fields:{id:{},display_name:{}}},company_id:{fields:{id:{},display_name:{}}}}}};return n.requests.post("/call",o,{headers:{"Content-Type":"application/json"}})},switchUserLocale:async({id:e,values:t})=>{let n=d(),o={model:"res.users",domain:[["id","=",e]],values:t};return n?.requests.post(c?.CREATE_UPDATE_PATH,o,{headers:{"Content-Type":"application/json"}})}},A=D;var q={async getView({model:e,views:t,context:n={},options:o={},aid:r}){let a=d(),i={load_filters:true,toolbar:true,action_id:r},c={model:e,method:"get_fields_view_v2",kwargs:{views:t,options:{...o,...i}},with_context:n};return a?.requests?.post("/call",c,{headers:{"Content-Type":"application/json"}})},async getMenu(e){let t=d(),n={model:"ir.ui.menu",method:"web_search_read",ids:[],with_context:e,kwargs:{specification:{active:{},name:{},is_display:{},sequence:{},complete_name:{},action:{fields:{display_name:{},type:{},binding_view_types:{}}},url_icon:{},web_icon:{},web_icon_data:{},groups_id:{fields:{full_name:{}},limit:40,order:""},display_name:{},child_id:{fields:{active:{},name:{},is_display:{},sequence:{},complete_name:{},action:{fields:{display_name:{},type:{},binding_view_types:{}}},url_icon:{},web_icon:{},web_icon_data:{},groups_id:{fields:{full_name:{}},limit:40,order:""},display_name:{},child_id:{fields:{active:{},name:{},is_display:{},sequence:{},complete_name:{},action:{fields:{display_name:{},type:{},binding_view_types:{}}},url_icon:{},web_icon:{},web_icon_data:{},groups_id:{fields:{full_name:{}},limit:40,order:""},display_name:{},child_id:{fields:{active:{},name:{},is_display:{},sequence:{},complete_name:{},action:{fields:{display_name:{},type:{},binding_view_types:{}}},url_icon:{},web_icon:{},web_icon_data:{},groups_id:{fields:{full_name:{}},limit:40,order:""},display_name:{},child_id:{fields:{},limit:40,order:""}},limit:40,order:""}},limit:40,order:""}},limit:40,order:""}},domain:["&",["is_display","=",true],"&",["active","=",true],["parent_id","=",false]]}};return t?.requests?.post("/call",n,{headers:{"Content-Type":"application/json"}})},async getSelectionItem({data:e}){let t=d(),n={model:e.model,ids:[],method:"get_data_select",with_context:e.context,kwargs:{count_limit:10001,domain:e.domain?e.domain:[],offset:0,order:"",specification:e?.specification??{id:{},name:{},display_name:{}}}};return t?.requests.post("/call",n,{headers:{"Content-Type":"application/json"}})},async loadMessages(){return d().requests.post("/load_message_failures",{},{headers:{"Content-Type":"application/json"}})},async getVersion(){return d()?.requests.get("",{headers:{"Content-Type":"application/json"}})}},T=q;export{f as a,h as b,g as c,w as d,C as e,v as f,A as g,T as h};
|
package/dist/environment.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as EnvStore,b as env,d as getEnv,c as initEnv}from'./chunk-
|
|
1
|
+
export{a as EnvStore,b as env,d as getEnv,c as initEnv}from'./chunk-H4DZE53S.mjs';import'./chunk-FHLYWVIS.mjs';import'./chunk-GHOANIO5.mjs';import'./chunk-3VUHHO7T.mjs';
|
package/dist/hooks.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{J as useButton,k as useChangeStatus,y as useDelete,l as useDeleteComment,K as useDuplicateRecord,x as useExecuteImport,r as useExportExcel,h as useField,a as useForgotPassword,z as useGetAll,m as useGetComment,i as useGetCompanyInfo,j as useGetCurrentCompany,A as useGetDetail,s as useGetFieldExport,B as useGetFieldOnChange,t as useGetFileExcel,n as useGetFormView,o as useGetImage,L as useGetListData,M as useGetMenu,G as useGetProfile,b as useGetProvider,N as useGetSelection,H as useGetUser,O as useGetView,c as useIsValidToken,P as useLoadAction,d as useLoginCredential,e as useLoginSocial,C as useModel,D as useOdooDataTransform,E as useOnChangeForm,u as useParsePreview,Q as usePrint,R as useRemoveRow,f as useResetPassword,S as useRunAction,F as useSave,p as useSendComment,I as useSwitchLocale,g as useUpdatePassword,v as useUploadFile,w as useUploadIdFile,q as useUploadImage}from'./chunk-
|
|
1
|
+
export{J as useButton,k as useChangeStatus,y as useDelete,l as useDeleteComment,K as useDuplicateRecord,x as useExecuteImport,r as useExportExcel,h as useField,a as useForgotPassword,z as useGetAll,m as useGetComment,i as useGetCompanyInfo,j as useGetCurrentCompany,A as useGetDetail,s as useGetFieldExport,B as useGetFieldOnChange,t as useGetFileExcel,n as useGetFormView,o as useGetImage,L as useGetListData,M as useGetMenu,G as useGetProfile,b as useGetProvider,N as useGetSelection,H as useGetUser,O as useGetView,c as useIsValidToken,P as useLoadAction,d as useLoginCredential,e as useLoginSocial,C as useModel,D as useOdooDataTransform,E as useOnChangeForm,u as useParsePreview,Q as usePrint,R as useRemoveRow,f as useResetPassword,S as useRunAction,F as useSave,p as useSendComment,I as useSwitchLocale,g as useUpdatePassword,v as useUploadFile,w as useUploadIdFile,q as useUploadImage}from'./chunk-D6JOEAHZ.mjs';import'./chunk-CDLT5L7M.mjs';import'./chunk-XW2BSIJM.mjs';import'./chunk-6QAALOXO.mjs';import'./chunk-ZC4WZW6I.mjs';import'./chunk-H4DZE53S.mjs';import'./chunk-FHLYWVIS.mjs';import'./chunk-GHOANIO5.mjs';import'./chunk-3VUHHO7T.mjs';
|
package/dist/index.d.mts
CHANGED
|
@@ -7,7 +7,7 @@ export { B as BaseModel } from './index-C_nK1Mii.mjs';
|
|
|
7
7
|
export { CompanyModel, UserModel } from './models.mjs';
|
|
8
8
|
export { MainProvider, ReactQueryProvider, VersionGate } from './provider.mjs';
|
|
9
9
|
export { ActionService, AuthService, CompanyService, ExcelService, FormService, ModelService, UserService, ViewService } from './services.mjs';
|
|
10
|
-
export { AppDispatch, RootState, clearSearchMap, envSlice, envStore, excelSlice,
|
|
10
|
+
export { AppDispatch, RootState, clearSearchMap, envSlice, envStore, excelSlice, listSlice, navbarSlice, profileSlice, removeKeyFromSearchMap, searchSlice, selectEnv, selectExcel, selectForm, selectList, selectNavbar, selectProfile, selectSearch, selectSearchMap, setAllowCompanies, setCompanies, setDataParse, setDataUser, setDefaultCompany, setDomainTable, setEnv, setEnvFile, setErrorData, setFieldTranslate, setFields, setFilterBy, setFirstDomain, setFormSubmitComponent, setGroupBy, setGroupByDomain, setHoveredIndexSearchList, setIdFile, setIndexRowTableModal, setIsFileLoaded, setIsShowModalTranslate, setIsShowingModalDetail, setLang, setListSubject, setLoadingImport, setMenuList, setModelSearch, setOrder, setPage, setPageLimit, setProfile, setSearchMap, setSearchString, setSelectedFile, setSelectedRowKeys, setSelectedTags, setTableHead, setTypeFieldsSearch, setUid, setUser, setViewDataStore, updateSearchMap, useAppDispatch, useAppSelector } from './store.mjs';
|
|
11
11
|
export { C as ContextApi, D as DeleteParams, F as ForgotPasswordBody, G as GetAllParams, a as GetDetailParams, b as GetListParams, e as GetViewParams, L as LoginCredentialBody, O as OnChangeParams, R as ResetPasswordRequest, S as SaveParams, c as SocialTokenBody, d as Specification, U as UpdatePasswordRequest, f as View, V as ViewData, u as updatePasswordBody } from './view-type-BTzRpkT7.mjs';
|
|
12
12
|
export { B as BaseModelInit } from './base-model-type-DvO53Lwi.mjs';
|
|
13
13
|
export { Config } from './types.mjs';
|
|
@@ -19,4 +19,3 @@ import 'react';
|
|
|
19
19
|
import 'react-redux';
|
|
20
20
|
import 'redux-thunk';
|
|
21
21
|
import 'redux';
|
|
22
|
-
import 'immer';
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import'./chunk-WAXGOBY2.mjs';export{J as useButton,k as useChangeStatus,y as useDelete,l as useDeleteComment,K as useDuplicateRecord,x as useExecuteImport,r as useExportExcel,h as useField,a as useForgotPassword,z as useGetAll,m as useGetComment,i as useGetCompanyInfo,j as useGetCurrentCompany,A as useGetDetail,s as useGetFieldExport,B as useGetFieldOnChange,t as useGetFileExcel,n as useGetFormView,o as useGetImage,L as useGetListData,M as useGetMenu,G as useGetProfile,b as useGetProvider,N as useGetSelection,H as useGetUser,O as useGetView,c as useIsValidToken,P as useLoadAction,d as useLoginCredential,e as useLoginSocial,C as useModel,D as useOdooDataTransform,E as useOnChangeForm,u as useParsePreview,Q as usePrint,R as useRemoveRow,f as useResetPassword,S as useRunAction,F as useSave,p as useSendComment,I as useSwitchLocale,g as useUpdatePassword,v as useUploadFile,w as useUploadIdFile,q as useUploadImage}from'./chunk-
|
|
1
|
+
import'./chunk-WAXGOBY2.mjs';export{J as useButton,k as useChangeStatus,y as useDelete,l as useDeleteComment,K as useDuplicateRecord,x as useExecuteImport,r as useExportExcel,h as useField,a as useForgotPassword,z as useGetAll,m as useGetComment,i as useGetCompanyInfo,j as useGetCurrentCompany,A as useGetDetail,s as useGetFieldExport,B as useGetFieldOnChange,t as useGetFileExcel,n as useGetFormView,o as useGetImage,L as useGetListData,M as useGetMenu,G as useGetProfile,b as useGetProvider,N as useGetSelection,H as useGetUser,O as useGetView,c as useIsValidToken,P as useLoadAction,d as useLoginCredential,e as useLoginSocial,C as useModel,D as useOdooDataTransform,E as useOnChangeForm,u as useParsePreview,Q as usePrint,R as useRemoveRow,f as useResetPassword,S as useRunAction,F as useSave,p as useSendComment,I as useSwitchLocale,g as useUpdatePassword,v as useUploadFile,w as useUploadIdFile,q as useUploadImage}from'./chunk-D6JOEAHZ.mjs';export{a as CompanyModel,b as UserModel}from'./chunk-FYXKZIEA.mjs';export{a as BaseModel}from'./chunk-CDLT5L7M.mjs';export{b as MainProvider,a as ReactQueryProvider,c as VersionGate}from'./chunk-NCEZ3SX3.mjs';export{a as ActionService,b as AuthService,c as CompanyService,d as ExcelService,e as FormService,f as ModelService,g as UserService,h as ViewService}from'./chunk-XW2BSIJM.mjs';export{o as checkIsImageLink,f as domainHelper,c as evalJSONContext,d as evalJSONDomain,p as formatFileSize,e as formatSortingString,j as formatUrlPath,i as getFieldsOnChange,q as getSubdomain,m as isBase64File,n as isBase64Image,k as removeUndefinedFields,h as stringToColor,g as toQueryString,l as useTabModel}from'./chunk-6QAALOXO.mjs';export{d as ComponentType,a as FieldTypeConstants,b as MethodType,c as ModelConstants,e as SearchType,f as WIDGETAVATAR,g as WIDGETCOLOR,i as WIDGETNOSTRING,h as WIDGETSTATUS}from'./chunk-ZC4WZW6I.mjs';export{a as EnvStore,b as env,d as getEnv,c as initEnv}from'./chunk-H4DZE53S.mjs';export{ba as clearSearchMap,a as envSlice,ea as envStore,k as excelSlice,A as listSlice,J as navbarSlice,M as profileSlice,$ as removeKeyFromSearchMap,P as searchSlice,j as selectEnv,r as selectExcel,z as selectForm,I as selectList,L as selectNavbar,O as selectProfile,ca as selectSearch,da as selectSearchMap,e as setAllowCompanies,f as setCompanies,l as setDataParse,y as setDataUser,g as setDefaultCompany,H as setDomainTable,b as setEnv,i as setEnvFile,q as setErrorData,w as setFieldTranslate,C as setFields,W as setFilterBy,U as setFirstDomain,v as setFormSubmitComponent,aa as setGroupBy,Q as setGroupByDomain,T as setHoveredIndexSearchList,m as setIdFile,F as setIndexRowTableModal,n as setIsFileLoaded,u as setIsShowModalTranslate,t as setIsShowingModalDetail,d as setLang,x as setListSubject,o as setLoadingImport,K as setMenuList,Y as setModelSearch,D as setOrder,G as setPage,B as setPageLimit,N as setProfile,Z as setSearchMap,S as setSearchString,p as setSelectedFile,E as setSelectedRowKeys,R as setSelectedTags,V as setTableHead,X as setTypeFieldsSearch,c as setUid,h as setUser,s as setViewDataStore,_ as updateSearchMap,fa as useAppDispatch,ga as useAppSelector}from'./chunk-FHLYWVIS.mjs';export{c as axiosClient}from'./chunk-GHOANIO5.mjs';export{a as KeyConstants,b as MethodConstants,c as UriConstants}from'./chunk-3VUHHO7T.mjs';
|
package/dist/models.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as CompanyModel,b as UserModel}from'./chunk-
|
|
1
|
+
export{a as CompanyModel,b as UserModel}from'./chunk-FYXKZIEA.mjs';export{a as BaseModel}from'./chunk-CDLT5L7M.mjs';import'./chunk-XW2BSIJM.mjs';import'./chunk-6QAALOXO.mjs';import'./chunk-ZC4WZW6I.mjs';import'./chunk-H4DZE53S.mjs';import'./chunk-FHLYWVIS.mjs';import'./chunk-GHOANIO5.mjs';import'./chunk-3VUHHO7T.mjs';
|
package/dist/provider.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{b as MainProvider,a as ReactQueryProvider,c as VersionGate}from'./chunk-
|
|
1
|
+
export{b as MainProvider,a as ReactQueryProvider,c as VersionGate}from'./chunk-NCEZ3SX3.mjs';import'./chunk-XW2BSIJM.mjs';import'./chunk-6QAALOXO.mjs';import'./chunk-ZC4WZW6I.mjs';import'./chunk-H4DZE53S.mjs';import'./chunk-FHLYWVIS.mjs';import'./chunk-GHOANIO5.mjs';import'./chunk-3VUHHO7T.mjs';
|
package/dist/services.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as ActionService,b as AuthService,c as CompanyService,d as ExcelService,e as FormService,f as ModelService,g as UserService,h as ViewService}from'./chunk-
|
|
1
|
+
export{a as ActionService,b as AuthService,c as CompanyService,d as ExcelService,e as FormService,f as ModelService,g as UserService,h as ViewService}from'./chunk-XW2BSIJM.mjs';import'./chunk-6QAALOXO.mjs';import'./chunk-ZC4WZW6I.mjs';import'./chunk-H4DZE53S.mjs';import'./chunk-FHLYWVIS.mjs';import'./chunk-GHOANIO5.mjs';import'./chunk-3VUHHO7T.mjs';
|
package/dist/store.d.mts
CHANGED
|
@@ -3,7 +3,6 @@ import * as _reduxjs_toolkit from '@reduxjs/toolkit';
|
|
|
3
3
|
import { PayloadAction } from '@reduxjs/toolkit';
|
|
4
4
|
import * as redux_thunk from 'redux-thunk';
|
|
5
5
|
import * as redux from 'redux';
|
|
6
|
-
import * as immer from 'immer';
|
|
7
6
|
|
|
8
7
|
declare const envStore: _reduxjs_toolkit.EnhancedStore<{
|
|
9
8
|
env: {
|
|
@@ -80,7 +79,7 @@ declare const envSlice: _reduxjs_toolkit.Slice<{
|
|
|
80
79
|
tz: string;
|
|
81
80
|
};
|
|
82
81
|
}, {
|
|
83
|
-
setEnv: (state:
|
|
82
|
+
setEnv: (state: {
|
|
84
83
|
baseUrl: string;
|
|
85
84
|
requests: null;
|
|
86
85
|
companies: never[];
|
|
@@ -98,11 +97,11 @@ declare const envSlice: _reduxjs_toolkit.Slice<{
|
|
|
98
97
|
lang: string;
|
|
99
98
|
tz: string;
|
|
100
99
|
};
|
|
101
|
-
}
|
|
100
|
+
}, action: {
|
|
102
101
|
payload: any;
|
|
103
102
|
type: string;
|
|
104
103
|
}) => void;
|
|
105
|
-
setUid: (state:
|
|
104
|
+
setUid: (state: {
|
|
106
105
|
baseUrl: string;
|
|
107
106
|
requests: null;
|
|
108
107
|
companies: never[];
|
|
@@ -120,11 +119,11 @@ declare const envSlice: _reduxjs_toolkit.Slice<{
|
|
|
120
119
|
lang: string;
|
|
121
120
|
tz: string;
|
|
122
121
|
};
|
|
123
|
-
}
|
|
122
|
+
}, action: {
|
|
124
123
|
payload: any;
|
|
125
124
|
type: string;
|
|
126
125
|
}) => void;
|
|
127
|
-
setAllowCompanies: (state:
|
|
126
|
+
setAllowCompanies: (state: {
|
|
128
127
|
baseUrl: string;
|
|
129
128
|
requests: null;
|
|
130
129
|
companies: never[];
|
|
@@ -142,11 +141,11 @@ declare const envSlice: _reduxjs_toolkit.Slice<{
|
|
|
142
141
|
lang: string;
|
|
143
142
|
tz: string;
|
|
144
143
|
};
|
|
145
|
-
}
|
|
144
|
+
}, action: {
|
|
146
145
|
payload: any;
|
|
147
146
|
type: string;
|
|
148
147
|
}) => void;
|
|
149
|
-
setCompanies: (state:
|
|
148
|
+
setCompanies: (state: {
|
|
150
149
|
baseUrl: string;
|
|
151
150
|
requests: null;
|
|
152
151
|
companies: never[];
|
|
@@ -164,11 +163,11 @@ declare const envSlice: _reduxjs_toolkit.Slice<{
|
|
|
164
163
|
lang: string;
|
|
165
164
|
tz: string;
|
|
166
165
|
};
|
|
167
|
-
}
|
|
166
|
+
}, action: {
|
|
168
167
|
payload: any;
|
|
169
168
|
type: string;
|
|
170
169
|
}) => void;
|
|
171
|
-
setDefaultCompany: (state:
|
|
170
|
+
setDefaultCompany: (state: {
|
|
172
171
|
baseUrl: string;
|
|
173
172
|
requests: null;
|
|
174
173
|
companies: never[];
|
|
@@ -186,11 +185,11 @@ declare const envSlice: _reduxjs_toolkit.Slice<{
|
|
|
186
185
|
lang: string;
|
|
187
186
|
tz: string;
|
|
188
187
|
};
|
|
189
|
-
}
|
|
188
|
+
}, action: {
|
|
190
189
|
payload: any;
|
|
191
190
|
type: string;
|
|
192
191
|
}) => void;
|
|
193
|
-
setLang: (state:
|
|
192
|
+
setLang: (state: {
|
|
194
193
|
baseUrl: string;
|
|
195
194
|
requests: null;
|
|
196
195
|
companies: never[];
|
|
@@ -208,11 +207,11 @@ declare const envSlice: _reduxjs_toolkit.Slice<{
|
|
|
208
207
|
lang: string;
|
|
209
208
|
tz: string;
|
|
210
209
|
};
|
|
211
|
-
}
|
|
210
|
+
}, action: {
|
|
212
211
|
payload: any;
|
|
213
212
|
type: string;
|
|
214
213
|
}) => void;
|
|
215
|
-
setUser: (state:
|
|
214
|
+
setUser: (state: {
|
|
216
215
|
baseUrl: string;
|
|
217
216
|
requests: null;
|
|
218
217
|
companies: never[];
|
|
@@ -230,11 +229,11 @@ declare const envSlice: _reduxjs_toolkit.Slice<{
|
|
|
230
229
|
lang: string;
|
|
231
230
|
tz: string;
|
|
232
231
|
};
|
|
233
|
-
}
|
|
232
|
+
}, action: {
|
|
234
233
|
payload: any;
|
|
235
234
|
type: string;
|
|
236
235
|
}) => void;
|
|
237
|
-
setEnvFile: (state:
|
|
236
|
+
setEnvFile: (state: {
|
|
238
237
|
baseUrl: string;
|
|
239
238
|
requests: null;
|
|
240
239
|
companies: never[];
|
|
@@ -252,7 +251,7 @@ declare const envSlice: _reduxjs_toolkit.Slice<{
|
|
|
252
251
|
lang: string;
|
|
253
252
|
tz: string;
|
|
254
253
|
};
|
|
255
|
-
}
|
|
254
|
+
}, action: {
|
|
256
255
|
payload: any;
|
|
257
256
|
type: string;
|
|
258
257
|
}) => void;
|
|
@@ -312,12 +311,54 @@ interface ExcelState {
|
|
|
312
311
|
errorData: any;
|
|
313
312
|
}
|
|
314
313
|
declare const excelSlice: _reduxjs_toolkit.Slice<ExcelState, {
|
|
315
|
-
setDataParse: (state:
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
314
|
+
setDataParse: (state: {
|
|
315
|
+
dataParse: any | null;
|
|
316
|
+
idFile: any | null;
|
|
317
|
+
isFileLoaded: boolean;
|
|
318
|
+
loadingImport: any;
|
|
319
|
+
selectedFile: any;
|
|
320
|
+
errorData: any;
|
|
321
|
+
}, action: PayloadAction<any>) => void;
|
|
322
|
+
setIdFile: (state: {
|
|
323
|
+
dataParse: any | null;
|
|
324
|
+
idFile: any | null;
|
|
325
|
+
isFileLoaded: boolean;
|
|
326
|
+
loadingImport: any;
|
|
327
|
+
selectedFile: any;
|
|
328
|
+
errorData: any;
|
|
329
|
+
}, action: PayloadAction<any>) => void;
|
|
330
|
+
setIsFileLoaded: (state: {
|
|
331
|
+
dataParse: any | null;
|
|
332
|
+
idFile: any | null;
|
|
333
|
+
isFileLoaded: boolean;
|
|
334
|
+
loadingImport: any;
|
|
335
|
+
selectedFile: any;
|
|
336
|
+
errorData: any;
|
|
337
|
+
}, action: PayloadAction<any>) => void;
|
|
338
|
+
setLoadingImport: (state: {
|
|
339
|
+
dataParse: any | null;
|
|
340
|
+
idFile: any | null;
|
|
341
|
+
isFileLoaded: boolean;
|
|
342
|
+
loadingImport: any;
|
|
343
|
+
selectedFile: any;
|
|
344
|
+
errorData: any;
|
|
345
|
+
}, action: PayloadAction<any>) => void;
|
|
346
|
+
setSelectedFile: (state: {
|
|
347
|
+
dataParse: any | null;
|
|
348
|
+
idFile: any | null;
|
|
349
|
+
isFileLoaded: boolean;
|
|
350
|
+
loadingImport: any;
|
|
351
|
+
selectedFile: any;
|
|
352
|
+
errorData: any;
|
|
353
|
+
}, action: PayloadAction<any>) => void;
|
|
354
|
+
setErrorData: (state: {
|
|
355
|
+
dataParse: any | null;
|
|
356
|
+
idFile: any | null;
|
|
357
|
+
isFileLoaded: boolean;
|
|
358
|
+
loadingImport: any;
|
|
359
|
+
selectedFile: any;
|
|
360
|
+
errorData: any;
|
|
361
|
+
}, action: PayloadAction<any>) => void;
|
|
321
362
|
}, "excel", "excel", _reduxjs_toolkit.SliceSelectors<ExcelState>>;
|
|
322
363
|
declare const setDataParse: _reduxjs_toolkit.ActionCreatorWithPayload<any, "excel/setDataParse">;
|
|
323
364
|
declare const setIdFile: _reduxjs_toolkit.ActionCreatorWithPayload<any, "excel/setIdFile">;
|
|
@@ -339,18 +380,6 @@ interface FormState {
|
|
|
339
380
|
listSubject: any;
|
|
340
381
|
dataUser: any;
|
|
341
382
|
}
|
|
342
|
-
declare const formSlice: _reduxjs_toolkit.Slice<FormState, {
|
|
343
|
-
setViewDataStore: (state: FormState, action: PayloadAction<ViewDataStore>) => void;
|
|
344
|
-
setIsShowingModalDetail: (state: FormState, action: PayloadAction<boolean>) => void;
|
|
345
|
-
setIsShowModalTranslate: (state: FormState, action: PayloadAction<boolean>) => void;
|
|
346
|
-
setFormSubmitComponent: (state: immer.WritableDraft<FormState>, action: PayloadAction<{
|
|
347
|
-
key: string;
|
|
348
|
-
component: any;
|
|
349
|
-
}>) => void;
|
|
350
|
-
setFieldTranslate: (state: FormState, action: PayloadAction<any>) => void;
|
|
351
|
-
setListSubject: (state: FormState, action: PayloadAction<any>) => void;
|
|
352
|
-
setDataUser: (state: FormState, action: PayloadAction<any>) => void;
|
|
353
|
-
}, "form", "form", _reduxjs_toolkit.SliceSelectors<FormState>>;
|
|
354
383
|
declare const setViewDataStore: _reduxjs_toolkit.ActionCreatorWithPayload<ViewDataStore, "form/setViewDataStore">;
|
|
355
384
|
declare const setIsShowingModalDetail: _reduxjs_toolkit.ActionCreatorWithPayload<boolean, "form/setIsShowingModalDetail">;
|
|
356
385
|
declare const setIsShowModalTranslate: _reduxjs_toolkit.ActionCreatorWithPayload<boolean, "form/setIsShowModalTranslate">;
|
|
@@ -374,13 +403,104 @@ interface ListState {
|
|
|
374
403
|
domainTable?: any;
|
|
375
404
|
}
|
|
376
405
|
declare const listSlice: _reduxjs_toolkit.Slice<ListState, {
|
|
377
|
-
setPageLimit: (state:
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
406
|
+
setPageLimit: (state: {
|
|
407
|
+
pageLimit: number;
|
|
408
|
+
fields: {
|
|
409
|
+
[x: string]: any;
|
|
410
|
+
};
|
|
411
|
+
order: string | null;
|
|
412
|
+
selectedRowKeys: number[];
|
|
413
|
+
indexRowTableModal: number;
|
|
414
|
+
footerGroupTable: {
|
|
415
|
+
[x: string]: any;
|
|
416
|
+
};
|
|
417
|
+
page: number;
|
|
418
|
+
domainTable?: any;
|
|
419
|
+
}, action: PayloadAction<number>) => void;
|
|
420
|
+
setFields: (state: {
|
|
421
|
+
pageLimit: number;
|
|
422
|
+
fields: {
|
|
423
|
+
[x: string]: any;
|
|
424
|
+
};
|
|
425
|
+
order: string | null;
|
|
426
|
+
selectedRowKeys: number[];
|
|
427
|
+
indexRowTableModal: number;
|
|
428
|
+
footerGroupTable: {
|
|
429
|
+
[x: string]: any;
|
|
430
|
+
};
|
|
431
|
+
page: number;
|
|
432
|
+
domainTable?: any;
|
|
433
|
+
}, action: PayloadAction<Record<string, any>>) => void;
|
|
434
|
+
setOrder: (state: {
|
|
435
|
+
pageLimit: number;
|
|
436
|
+
fields: {
|
|
437
|
+
[x: string]: any;
|
|
438
|
+
};
|
|
439
|
+
order: string | null;
|
|
440
|
+
selectedRowKeys: number[];
|
|
441
|
+
indexRowTableModal: number;
|
|
442
|
+
footerGroupTable: {
|
|
443
|
+
[x: string]: any;
|
|
444
|
+
};
|
|
445
|
+
page: number;
|
|
446
|
+
domainTable?: any;
|
|
447
|
+
}, action: PayloadAction<string | null>) => void;
|
|
448
|
+
setSelectedRowKeys: (state: {
|
|
449
|
+
pageLimit: number;
|
|
450
|
+
fields: {
|
|
451
|
+
[x: string]: any;
|
|
452
|
+
};
|
|
453
|
+
order: string | null;
|
|
454
|
+
selectedRowKeys: number[];
|
|
455
|
+
indexRowTableModal: number;
|
|
456
|
+
footerGroupTable: {
|
|
457
|
+
[x: string]: any;
|
|
458
|
+
};
|
|
459
|
+
page: number;
|
|
460
|
+
domainTable?: any;
|
|
461
|
+
}, action: PayloadAction<number[]>) => void;
|
|
462
|
+
setIndexRowTableModal: (state: {
|
|
463
|
+
pageLimit: number;
|
|
464
|
+
fields: {
|
|
465
|
+
[x: string]: any;
|
|
466
|
+
};
|
|
467
|
+
order: string | null;
|
|
468
|
+
selectedRowKeys: number[];
|
|
469
|
+
indexRowTableModal: number;
|
|
470
|
+
footerGroupTable: {
|
|
471
|
+
[x: string]: any;
|
|
472
|
+
};
|
|
473
|
+
page: number;
|
|
474
|
+
domainTable?: any;
|
|
475
|
+
}, action: PayloadAction<number>) => void;
|
|
476
|
+
setPage: (state: {
|
|
477
|
+
pageLimit: number;
|
|
478
|
+
fields: {
|
|
479
|
+
[x: string]: any;
|
|
480
|
+
};
|
|
481
|
+
order: string | null;
|
|
482
|
+
selectedRowKeys: number[];
|
|
483
|
+
indexRowTableModal: number;
|
|
484
|
+
footerGroupTable: {
|
|
485
|
+
[x: string]: any;
|
|
486
|
+
};
|
|
487
|
+
page: number;
|
|
488
|
+
domainTable?: any;
|
|
489
|
+
}, action: PayloadAction<number>) => void;
|
|
490
|
+
setDomainTable: (state: {
|
|
491
|
+
pageLimit: number;
|
|
492
|
+
fields: {
|
|
493
|
+
[x: string]: any;
|
|
494
|
+
};
|
|
495
|
+
order: string | null;
|
|
496
|
+
selectedRowKeys: number[];
|
|
497
|
+
indexRowTableModal: number;
|
|
498
|
+
footerGroupTable: {
|
|
499
|
+
[x: string]: any;
|
|
500
|
+
};
|
|
501
|
+
page: number;
|
|
502
|
+
domainTable?: any;
|
|
503
|
+
}, action: PayloadAction<any[]>) => void;
|
|
384
504
|
}, "list", "list", _reduxjs_toolkit.SliceSelectors<ListState>>;
|
|
385
505
|
declare const setPageLimit: _reduxjs_toolkit.ActionCreatorWithPayload<number, "list/setPageLimit">;
|
|
386
506
|
declare const setFields: _reduxjs_toolkit.ActionCreatorWithPayload<Record<string, any>, "list/setFields">;
|
|
@@ -395,7 +515,9 @@ interface NavbarStateType {
|
|
|
395
515
|
menuList: any;
|
|
396
516
|
}
|
|
397
517
|
declare const navbarSlice: _reduxjs_toolkit.Slice<NavbarStateType, {
|
|
398
|
-
setMenuList: (state:
|
|
518
|
+
setMenuList: (state: {
|
|
519
|
+
menuList: any;
|
|
520
|
+
}, action: {
|
|
399
521
|
payload: any;
|
|
400
522
|
type: string;
|
|
401
523
|
}) => void;
|
|
@@ -431,7 +553,32 @@ interface ProfileStateType {
|
|
|
431
553
|
profile: UserInfor;
|
|
432
554
|
}
|
|
433
555
|
declare const profileSlice: _reduxjs_toolkit.Slice<ProfileStateType, {
|
|
434
|
-
setProfile: (state:
|
|
556
|
+
setProfile: (state: {
|
|
557
|
+
profile: {
|
|
558
|
+
address?: {
|
|
559
|
+
country?: boolean | undefined;
|
|
560
|
+
formatted?: string | undefined;
|
|
561
|
+
locality?: boolean | undefined;
|
|
562
|
+
postal_code?: boolean | undefined;
|
|
563
|
+
region?: boolean | undefined;
|
|
564
|
+
street_address?: boolean | undefined;
|
|
565
|
+
} | undefined;
|
|
566
|
+
email?: string | undefined;
|
|
567
|
+
locale?: string | undefined;
|
|
568
|
+
name?: string | undefined;
|
|
569
|
+
partner_id?: {
|
|
570
|
+
id?: number | undefined;
|
|
571
|
+
stud_id?: boolean | undefined;
|
|
572
|
+
} | undefined;
|
|
573
|
+
phone_number?: boolean | undefined;
|
|
574
|
+
sub?: number | undefined;
|
|
575
|
+
updated_at?: string | undefined;
|
|
576
|
+
username?: string | undefined;
|
|
577
|
+
website?: boolean | undefined;
|
|
578
|
+
zoneinfo?: string | undefined;
|
|
579
|
+
image?: string | undefined;
|
|
580
|
+
};
|
|
581
|
+
}, action: {
|
|
435
582
|
payload: any;
|
|
436
583
|
type: string;
|
|
437
584
|
}) => void;
|
|
@@ -453,26 +600,222 @@ interface SearchState {
|
|
|
453
600
|
groupBy: any;
|
|
454
601
|
}
|
|
455
602
|
declare const searchSlice: _reduxjs_toolkit.Slice<SearchState, {
|
|
456
|
-
setGroupByDomain: (state:
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
603
|
+
setGroupByDomain: (state: {
|
|
604
|
+
groupByDomain: any;
|
|
605
|
+
tableHead: any;
|
|
606
|
+
searchString: string;
|
|
607
|
+
hoveredIndexSearchList: any;
|
|
608
|
+
selectedTags: [];
|
|
609
|
+
firstDomain: any;
|
|
610
|
+
searchMap: {
|
|
611
|
+
[x: string]: any[];
|
|
612
|
+
};
|
|
613
|
+
typeFieldsSearch: string;
|
|
614
|
+
modelSearch: string;
|
|
615
|
+
filterBy: any;
|
|
616
|
+
groupBy: any;
|
|
617
|
+
}, action: PayloadAction<string | null>) => void;
|
|
618
|
+
setTableHead: (state: {
|
|
619
|
+
groupByDomain: any;
|
|
620
|
+
tableHead: any;
|
|
621
|
+
searchString: string;
|
|
622
|
+
hoveredIndexSearchList: any;
|
|
623
|
+
selectedTags: [];
|
|
624
|
+
firstDomain: any;
|
|
625
|
+
searchMap: {
|
|
626
|
+
[x: string]: any[];
|
|
627
|
+
};
|
|
628
|
+
typeFieldsSearch: string;
|
|
629
|
+
modelSearch: string;
|
|
630
|
+
filterBy: any;
|
|
631
|
+
groupBy: any;
|
|
632
|
+
}, action: any) => void;
|
|
633
|
+
setSearchString: (state: {
|
|
634
|
+
groupByDomain: any;
|
|
635
|
+
tableHead: any;
|
|
636
|
+
searchString: string;
|
|
637
|
+
hoveredIndexSearchList: any;
|
|
638
|
+
selectedTags: [];
|
|
639
|
+
firstDomain: any;
|
|
640
|
+
searchMap: {
|
|
641
|
+
[x: string]: any[];
|
|
642
|
+
};
|
|
643
|
+
typeFieldsSearch: string;
|
|
644
|
+
modelSearch: string;
|
|
645
|
+
filterBy: any;
|
|
646
|
+
groupBy: any;
|
|
647
|
+
}, action: PayloadAction<string>) => void;
|
|
648
|
+
setHoveredIndexSearchList: (state: {
|
|
649
|
+
groupByDomain: any;
|
|
650
|
+
tableHead: any;
|
|
651
|
+
searchString: string;
|
|
652
|
+
hoveredIndexSearchList: any;
|
|
653
|
+
selectedTags: [];
|
|
654
|
+
firstDomain: any;
|
|
655
|
+
searchMap: {
|
|
656
|
+
[x: string]: any[];
|
|
657
|
+
};
|
|
658
|
+
typeFieldsSearch: string;
|
|
659
|
+
modelSearch: string;
|
|
660
|
+
filterBy: any;
|
|
661
|
+
groupBy: any;
|
|
662
|
+
}, action: PayloadAction<number | null>) => void;
|
|
663
|
+
setSelectedTags: (state: {
|
|
664
|
+
groupByDomain: any;
|
|
665
|
+
tableHead: any;
|
|
666
|
+
searchString: string;
|
|
667
|
+
hoveredIndexSearchList: any;
|
|
668
|
+
selectedTags: [];
|
|
669
|
+
firstDomain: any;
|
|
670
|
+
searchMap: {
|
|
671
|
+
[x: string]: any[];
|
|
672
|
+
};
|
|
673
|
+
typeFieldsSearch: string;
|
|
674
|
+
modelSearch: string;
|
|
675
|
+
filterBy: any;
|
|
676
|
+
groupBy: any;
|
|
677
|
+
}, action: PayloadAction<any>) => void;
|
|
678
|
+
setFirstDomain: (state: {
|
|
679
|
+
groupByDomain: any;
|
|
680
|
+
tableHead: any;
|
|
681
|
+
searchString: string;
|
|
682
|
+
hoveredIndexSearchList: any;
|
|
683
|
+
selectedTags: [];
|
|
684
|
+
firstDomain: any;
|
|
685
|
+
searchMap: {
|
|
686
|
+
[x: string]: any[];
|
|
687
|
+
};
|
|
688
|
+
typeFieldsSearch: string;
|
|
689
|
+
modelSearch: string;
|
|
690
|
+
filterBy: any;
|
|
691
|
+
groupBy: any;
|
|
692
|
+
}, action: PayloadAction<any>) => void;
|
|
693
|
+
setTypeFieldsSearch: (state: {
|
|
694
|
+
groupByDomain: any;
|
|
695
|
+
tableHead: any;
|
|
696
|
+
searchString: string;
|
|
697
|
+
hoveredIndexSearchList: any;
|
|
698
|
+
selectedTags: [];
|
|
699
|
+
firstDomain: any;
|
|
700
|
+
searchMap: {
|
|
701
|
+
[x: string]: any[];
|
|
702
|
+
};
|
|
703
|
+
typeFieldsSearch: string;
|
|
704
|
+
modelSearch: string;
|
|
705
|
+
filterBy: any;
|
|
706
|
+
groupBy: any;
|
|
707
|
+
}, action: PayloadAction<any>) => void;
|
|
708
|
+
setModelSearch: (state: {
|
|
709
|
+
groupByDomain: any;
|
|
710
|
+
tableHead: any;
|
|
711
|
+
searchString: string;
|
|
712
|
+
hoveredIndexSearchList: any;
|
|
713
|
+
selectedTags: [];
|
|
714
|
+
firstDomain: any;
|
|
715
|
+
searchMap: {
|
|
716
|
+
[x: string]: any[];
|
|
717
|
+
};
|
|
718
|
+
typeFieldsSearch: string;
|
|
719
|
+
modelSearch: string;
|
|
720
|
+
filterBy: any;
|
|
721
|
+
groupBy: any;
|
|
722
|
+
}, action: PayloadAction<string>) => void;
|
|
723
|
+
setFilterBy: (state: {
|
|
724
|
+
groupByDomain: any;
|
|
725
|
+
tableHead: any;
|
|
726
|
+
searchString: string;
|
|
727
|
+
hoveredIndexSearchList: any;
|
|
728
|
+
selectedTags: [];
|
|
729
|
+
firstDomain: any;
|
|
730
|
+
searchMap: {
|
|
731
|
+
[x: string]: any[];
|
|
732
|
+
};
|
|
733
|
+
typeFieldsSearch: string;
|
|
734
|
+
modelSearch: string;
|
|
735
|
+
filterBy: any;
|
|
736
|
+
groupBy: any;
|
|
737
|
+
}, action: PayloadAction<any>) => void;
|
|
738
|
+
setGroupBy: (state: {
|
|
739
|
+
groupByDomain: any;
|
|
740
|
+
tableHead: any;
|
|
741
|
+
searchString: string;
|
|
742
|
+
hoveredIndexSearchList: any;
|
|
743
|
+
selectedTags: [];
|
|
744
|
+
firstDomain: any;
|
|
745
|
+
searchMap: {
|
|
746
|
+
[x: string]: any[];
|
|
747
|
+
};
|
|
748
|
+
typeFieldsSearch: string;
|
|
749
|
+
modelSearch: string;
|
|
750
|
+
filterBy: any;
|
|
751
|
+
groupBy: any;
|
|
752
|
+
}, action: PayloadAction<any>) => void;
|
|
753
|
+
setSearchMap: (state: {
|
|
754
|
+
groupByDomain: any;
|
|
755
|
+
tableHead: any;
|
|
756
|
+
searchString: string;
|
|
757
|
+
hoveredIndexSearchList: any;
|
|
758
|
+
selectedTags: [];
|
|
759
|
+
firstDomain: any;
|
|
760
|
+
searchMap: {
|
|
761
|
+
[x: string]: any[];
|
|
762
|
+
};
|
|
763
|
+
typeFieldsSearch: string;
|
|
764
|
+
modelSearch: string;
|
|
765
|
+
filterBy: any;
|
|
766
|
+
groupBy: any;
|
|
767
|
+
}, action: PayloadAction<Record<string, any>>) => void;
|
|
768
|
+
updateSearchMap: (state: {
|
|
769
|
+
groupByDomain: any;
|
|
770
|
+
tableHead: any;
|
|
771
|
+
searchString: string;
|
|
772
|
+
hoveredIndexSearchList: any;
|
|
773
|
+
selectedTags: [];
|
|
774
|
+
firstDomain: any;
|
|
775
|
+
searchMap: {
|
|
776
|
+
[x: string]: any[];
|
|
777
|
+
};
|
|
778
|
+
typeFieldsSearch: string;
|
|
779
|
+
modelSearch: string;
|
|
780
|
+
filterBy: any;
|
|
781
|
+
groupBy: any;
|
|
782
|
+
}, action: PayloadAction<{
|
|
468
783
|
key: string;
|
|
469
784
|
value: any;
|
|
470
785
|
}>) => void;
|
|
471
|
-
removeKeyFromSearchMap: (state:
|
|
786
|
+
removeKeyFromSearchMap: (state: {
|
|
787
|
+
groupByDomain: any;
|
|
788
|
+
tableHead: any;
|
|
789
|
+
searchString: string;
|
|
790
|
+
hoveredIndexSearchList: any;
|
|
791
|
+
selectedTags: [];
|
|
792
|
+
firstDomain: any;
|
|
793
|
+
searchMap: {
|
|
794
|
+
[x: string]: any[];
|
|
795
|
+
};
|
|
796
|
+
typeFieldsSearch: string;
|
|
797
|
+
modelSearch: string;
|
|
798
|
+
filterBy: any;
|
|
799
|
+
groupBy: any;
|
|
800
|
+
}, action: PayloadAction<{
|
|
472
801
|
key: string;
|
|
473
802
|
item?: any;
|
|
474
803
|
}>) => void;
|
|
475
|
-
clearSearchMap: (state:
|
|
804
|
+
clearSearchMap: (state: {
|
|
805
|
+
groupByDomain: any;
|
|
806
|
+
tableHead: any;
|
|
807
|
+
searchString: string;
|
|
808
|
+
hoveredIndexSearchList: any;
|
|
809
|
+
selectedTags: [];
|
|
810
|
+
firstDomain: any;
|
|
811
|
+
searchMap: {
|
|
812
|
+
[x: string]: any[];
|
|
813
|
+
};
|
|
814
|
+
typeFieldsSearch: string;
|
|
815
|
+
modelSearch: string;
|
|
816
|
+
filterBy: any;
|
|
817
|
+
groupBy: any;
|
|
818
|
+
}) => void;
|
|
476
819
|
}, "search", "search", _reduxjs_toolkit.SliceSelectors<SearchState>>;
|
|
477
820
|
declare const setGroupByDomain: _reduxjs_toolkit.ActionCreatorWithPayload<string | null, "search/setGroupByDomain">;
|
|
478
821
|
declare const setSelectedTags: _reduxjs_toolkit.ActionCreatorWithPayload<any, "search/setSelectedTags">;
|
|
@@ -502,4 +845,4 @@ type AppDispatch = typeof envStore.dispatch;
|
|
|
502
845
|
declare const useAppDispatch: () => AppDispatch;
|
|
503
846
|
declare const useAppSelector: TypedUseSelectorHook<RootState>;
|
|
504
847
|
|
|
505
|
-
export { type AppDispatch, type RootState, clearSearchMap, envSlice, envStore, excelSlice,
|
|
848
|
+
export { type AppDispatch, type RootState, clearSearchMap, envSlice, envStore, excelSlice, listSlice, navbarSlice, profileSlice, removeKeyFromSearchMap, searchSlice, selectEnv, selectExcel, selectForm, selectList, selectNavbar, selectProfile, selectSearch, selectSearchMap, setAllowCompanies, setCompanies, setDataParse, setDataUser, setDefaultCompany, setDomainTable, setEnv, setEnvFile, setErrorData, setFieldTranslate, setFields, setFilterBy, setFirstDomain, setFormSubmitComponent, setGroupBy, setGroupByDomain, setHoveredIndexSearchList, setIdFile, setIndexRowTableModal, setIsFileLoaded, setIsShowModalTranslate, setIsShowingModalDetail, setLang, setListSubject, setLoadingImport, setMenuList, setModelSearch, setOrder, setPage, setPageLimit, setProfile, setSearchMap, setSearchString, setSelectedFile, setSelectedRowKeys, setSelectedTags, setTableHead, setTypeFieldsSearch, setUid, setUser, setViewDataStore, updateSearchMap, useAppDispatch, useAppSelector };
|
package/dist/store.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{ba as clearSearchMap,a as envSlice,ea as envStore,k as excelSlice,A as listSlice,J as navbarSlice,M as profileSlice,$ as removeKeyFromSearchMap,P as searchSlice,j as selectEnv,r as selectExcel,z as selectForm,I as selectList,L as selectNavbar,O as selectProfile,ca as selectSearch,da as selectSearchMap,e as setAllowCompanies,f as setCompanies,l as setDataParse,y as setDataUser,g as setDefaultCompany,H as setDomainTable,b as setEnv,i as setEnvFile,q as setErrorData,w as setFieldTranslate,C as setFields,W as setFilterBy,U as setFirstDomain,v as setFormSubmitComponent,aa as setGroupBy,Q as setGroupByDomain,T as setHoveredIndexSearchList,m as setIdFile,F as setIndexRowTableModal,n as setIsFileLoaded,u as setIsShowModalTranslate,t as setIsShowingModalDetail,d as setLang,x as setListSubject,o as setLoadingImport,K as setMenuList,Y as setModelSearch,D as setOrder,G as setPage,B as setPageLimit,N as setProfile,Z as setSearchMap,S as setSearchString,p as setSelectedFile,E as setSelectedRowKeys,R as setSelectedTags,V as setTableHead,X as setTypeFieldsSearch,c as setUid,h as setUser,s as setViewDataStore,_ as updateSearchMap,fa as useAppDispatch,ga as useAppSelector}from'./chunk-FHLYWVIS.mjs';
|