@fctc/interface-logic 2.3.9 → 2.4.1

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/hooks.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as _tanstack_react_query from '@tanstack/react-query';
2
- import { L as LoginCredentialBody, d as SocialTokenBody, F as ForgotPasswordBody, u as updatePasswordBody, V as ViewData, C as ContextApi, c as GetSelectionType, f as GetViewParams } from './view-type-DioSS9fJ.mjs';
2
+ import { L as LoginCredentialBody, d as SocialTokenBody, F as ForgotPasswordBody, u as updatePasswordBody, V as ViewData, C as ContextApi, c as GetSelectionType, f as GetViewParams } from './view-type-xxw9OeSR.mjs';
3
3
 
4
4
  declare const useForgotPassword: () => _tanstack_react_query.UseMutationResult<any, Error, string, unknown>;
5
5
 
package/dist/hooks.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as _tanstack_react_query from '@tanstack/react-query';
2
- import { L as LoginCredentialBody, d as SocialTokenBody, F as ForgotPasswordBody, u as updatePasswordBody, V as ViewData, C as ContextApi, c as GetSelectionType, f as GetViewParams } from './view-type-DioSS9fJ.js';
2
+ import { L as LoginCredentialBody, d as SocialTokenBody, F as ForgotPasswordBody, u as updatePasswordBody, V as ViewData, C as ContextApi, c as GetSelectionType, f as GetViewParams } from './view-type-xxw9OeSR.js';
3
3
 
4
4
  declare const useForgotPassword: () => _tanstack_react_query.UseMutationResult<any, Error, string, unknown>;
5
5
 
package/dist/hooks.js CHANGED
@@ -4229,7 +4229,8 @@ function useViewService() {
4229
4229
  context = {},
4230
4230
  options = {},
4231
4231
  aid,
4232
- service
4232
+ service,
4233
+ xNode
4233
4234
  }) => {
4234
4235
  const defaultOptions = {
4235
4236
  load_filters: true,
@@ -4250,7 +4251,8 @@ function useViewService() {
4250
4251
  jsonDataView,
4251
4252
  {
4252
4253
  headers: {
4253
- "Content-Type": "application/json"
4254
+ "Content-Type": "application/json",
4255
+ ...xNode ? { x_node: xNode } : {}
4254
4256
  }
4255
4257
  },
4256
4258
  service
@@ -5537,7 +5539,8 @@ var useGetListData = (listDataProps, queryKey, enabled, service, xNode) => {
5537
5539
  }),
5538
5540
  enabled,
5539
5541
  refetchOnWindowFocus: false,
5540
- staleTime: 0
5542
+ staleTime: 0,
5543
+ placeholderData: import_react_query50.keepPreviousData
5541
5544
  });
5542
5545
  };
5543
5546
  var use_get_list_data_default = useGetListData;
package/dist/hooks.mjs CHANGED
@@ -4125,7 +4125,8 @@ function useViewService() {
4125
4125
  context = {},
4126
4126
  options = {},
4127
4127
  aid,
4128
- service
4128
+ service,
4129
+ xNode
4129
4130
  }) => {
4130
4131
  const defaultOptions = {
4131
4132
  load_filters: true,
@@ -4146,7 +4147,8 @@ function useViewService() {
4146
4147
  jsonDataView,
4147
4148
  {
4148
4149
  headers: {
4149
- "Content-Type": "application/json"
4150
+ "Content-Type": "application/json",
4151
+ ...xNode ? { x_node: xNode } : {}
4150
4152
  }
4151
4153
  },
4152
4154
  service
@@ -5420,7 +5422,7 @@ var useGetGroups = ({
5420
5422
  var use_get_groups_default = useGetGroups;
5421
5423
 
5422
5424
  // src/hooks/view/use-get-list-data.ts
5423
- import { useQuery as useQuery14 } from "@tanstack/react-query";
5425
+ import { keepPreviousData, useQuery as useQuery14 } from "@tanstack/react-query";
5424
5426
  var useGetListData = (listDataProps, queryKey, enabled, service, xNode) => {
5425
5427
  const { getAll } = useModelService();
5426
5428
  return useQuery14({
@@ -5433,7 +5435,8 @@ var useGetListData = (listDataProps, queryKey, enabled, service, xNode) => {
5433
5435
  }),
5434
5436
  enabled,
5435
5437
  refetchOnWindowFocus: false,
5436
- staleTime: 0
5438
+ staleTime: 0,
5439
+ placeholderData: keepPreviousData
5437
5440
  });
5438
5441
  };
5439
5442
  var use_get_list_data_default = useGetListData;
@@ -3,7 +3,7 @@ import { ReactNode } from 'react';
3
3
  import { L as LocalStorageUtilsType, S as SessionStorageUtilsType } from './session-storage-ARp_lhTD.mjs';
4
4
  import { useForgotPassword, useForgotPasswordSSO, useGetProvider, useIsValidToken, useLoginCredential, useLoginSocial, useResetPassword, useResetPasswordSSO, useUpdatePassword, useLogout, useGetAccessByCode, useValidateActionToken, useGetCompanyInfo, useGetCurrentCompany, useGetListCompany, useExecuteImport, useExportExcel, useGetFieldExport, useGetFileExcel, useParsePreview, useUploadFileExcel, useUploadIdFile, useChangeStatus, useDeleteComment, useGetComment, useGetFormView, useGetImage, useSendComment, useUploadImage, useDelete, useGetAll, useGetConversionRate, useGetCurrency, useGetDetail, useGetFieldOnChange, useGetListMyBankAccount, useModel, useOdooDataTransform, useOnChangeForm, useSave, useGetProfile, useGetUser, useSwitchLocale, useButton, useDuplicateRecord, useGet2FAMethods, useGetActionDetail, useGetCalendar, useGetGroups, useGetListData, useGetMenu, useGetPrintReport, useGetProGressBar, useGetResequence, useGetSelection, useGetView, useLoadAction, useLoadMessage, usePrint, useRemoveRow, useRunAction, useSignInSSO, useVerify2FA, useGrantAccess, useRemoveTotpSetup, useRequestSetupTotp, useSettingsWebRead2fa, useVerifyTotp, useUploadFile } from './hooks.mjs';
5
5
  import '@tanstack/react-query';
6
- import './view-type-DioSS9fJ.mjs';
6
+ import './view-type-xxw9OeSR.mjs';
7
7
 
8
8
  declare const MainProvider: ({ children }: {
9
9
  children: ReactNode;
@@ -3,7 +3,7 @@ import { ReactNode } from 'react';
3
3
  import { L as LocalStorageUtilsType, S as SessionStorageUtilsType } from './session-storage-ARp_lhTD.js';
4
4
  import { useForgotPassword, useForgotPasswordSSO, useGetProvider, useIsValidToken, useLoginCredential, useLoginSocial, useResetPassword, useResetPasswordSSO, useUpdatePassword, useLogout, useGetAccessByCode, useValidateActionToken, useGetCompanyInfo, useGetCurrentCompany, useGetListCompany, useExecuteImport, useExportExcel, useGetFieldExport, useGetFileExcel, useParsePreview, useUploadFileExcel, useUploadIdFile, useChangeStatus, useDeleteComment, useGetComment, useGetFormView, useGetImage, useSendComment, useUploadImage, useDelete, useGetAll, useGetConversionRate, useGetCurrency, useGetDetail, useGetFieldOnChange, useGetListMyBankAccount, useModel, useOdooDataTransform, useOnChangeForm, useSave, useGetProfile, useGetUser, useSwitchLocale, useButton, useDuplicateRecord, useGet2FAMethods, useGetActionDetail, useGetCalendar, useGetGroups, useGetListData, useGetMenu, useGetPrintReport, useGetProGressBar, useGetResequence, useGetSelection, useGetView, useLoadAction, useLoadMessage, usePrint, useRemoveRow, useRunAction, useSignInSSO, useVerify2FA, useGrantAccess, useRemoveTotpSetup, useRequestSetupTotp, useSettingsWebRead2fa, useVerifyTotp, useUploadFile } from './hooks.js';
5
5
  import '@tanstack/react-query';
6
- import './view-type-DioSS9fJ.js';
6
+ import './view-type-xxw9OeSR.js';
7
7
 
8
8
  declare const MainProvider: ({ children }: {
9
9
  children: ReactNode;
package/dist/provider.js CHANGED
@@ -4177,7 +4177,8 @@ function useViewService() {
4177
4177
  context = {},
4178
4178
  options = {},
4179
4179
  aid,
4180
- service
4180
+ service,
4181
+ xNode
4181
4182
  }) => {
4182
4183
  const defaultOptions = {
4183
4184
  load_filters: true,
@@ -4198,7 +4199,8 @@ function useViewService() {
4198
4199
  jsonDataView,
4199
4200
  {
4200
4201
  headers: {
4201
- "Content-Type": "application/json"
4202
+ "Content-Type": "application/json",
4203
+ ...xNode ? { x_node: xNode } : {}
4202
4204
  }
4203
4205
  },
4204
4206
  service
@@ -5903,7 +5905,8 @@ var useGetListData = (listDataProps, queryKey, enabled, service, xNode) => {
5903
5905
  }),
5904
5906
  enabled,
5905
5907
  refetchOnWindowFocus: false,
5906
- staleTime: 0
5908
+ staleTime: 0,
5909
+ placeholderData: import_react_query50.keepPreviousData
5907
5910
  });
5908
5911
  };
5909
5912
  var use_get_list_data_default = useGetListData;
package/dist/provider.mjs CHANGED
@@ -4134,7 +4134,8 @@ function useViewService() {
4134
4134
  context = {},
4135
4135
  options = {},
4136
4136
  aid,
4137
- service
4137
+ service,
4138
+ xNode
4138
4139
  }) => {
4139
4140
  const defaultOptions = {
4140
4141
  load_filters: true,
@@ -4155,7 +4156,8 @@ function useViewService() {
4155
4156
  jsonDataView,
4156
4157
  {
4157
4158
  headers: {
4158
- "Content-Type": "application/json"
4159
+ "Content-Type": "application/json",
4160
+ ...xNode ? { x_node: xNode } : {}
4159
4161
  }
4160
4162
  },
4161
4163
  service
@@ -5847,7 +5849,7 @@ var useGetGroups = ({
5847
5849
  var use_get_groups_default = useGetGroups;
5848
5850
 
5849
5851
  // src/hooks/view/use-get-list-data.ts
5850
- import { useQuery as useQuery14 } from "@tanstack/react-query";
5852
+ import { keepPreviousData, useQuery as useQuery14 } from "@tanstack/react-query";
5851
5853
  var useGetListData = (listDataProps, queryKey, enabled, service, xNode) => {
5852
5854
  const { getAll } = useModelService();
5853
5855
  return useQuery14({
@@ -5860,7 +5862,8 @@ var useGetListData = (listDataProps, queryKey, enabled, service, xNode) => {
5860
5862
  }),
5861
5863
  enabled,
5862
5864
  refetchOnWindowFocus: false,
5863
- staleTime: 0
5865
+ staleTime: 0,
5866
+ placeholderData: keepPreviousData
5864
5867
  });
5865
5868
  };
5866
5869
  var use_get_list_data_default = useGetListData;
@@ -1,4 +1,4 @@
1
- import { C as ContextApi, L as LoginCredentialBody, R as ResetPasswordRequest, U as UpdatePasswordRequest, b as GetListParams, a as GetDetailParams, S as SaveParams, D as DeleteParams, O as OnChangeParams, V as ViewData, f as GetViewParams, c as GetSelectionType } from './view-type-DioSS9fJ.mjs';
1
+ import { C as ContextApi, L as LoginCredentialBody, R as ResetPasswordRequest, U as UpdatePasswordRequest, b as GetListParams, a as GetDetailParams, S as SaveParams, D as DeleteParams, O as OnChangeParams, V as ViewData, f as GetViewParams, c as GetSelectionType } from './view-type-xxw9OeSR.mjs';
2
2
 
3
3
  declare function useActionService(): {
4
4
  loadAction: ({ idAction, context, service, xNode, }: {
@@ -212,7 +212,7 @@ declare function useUserService(): {
212
212
  };
213
213
 
214
214
  declare function useViewService(): {
215
- getView: ({ model, views, context, options, aid, service, }: GetViewParams) => Promise<any>;
215
+ getView: ({ model, views, context, options, aid, service, xNode, }: GetViewParams) => Promise<any>;
216
216
  getMenu: (context: any, specification: any, domain: any) => Promise<any>;
217
217
  getActionDetail: (aid: number, context: any) => Promise<any>;
218
218
  getResequence: ({ model, ids, context, offset, }: {
@@ -1,4 +1,4 @@
1
- import { C as ContextApi, L as LoginCredentialBody, R as ResetPasswordRequest, U as UpdatePasswordRequest, b as GetListParams, a as GetDetailParams, S as SaveParams, D as DeleteParams, O as OnChangeParams, V as ViewData, f as GetViewParams, c as GetSelectionType } from './view-type-DioSS9fJ.js';
1
+ import { C as ContextApi, L as LoginCredentialBody, R as ResetPasswordRequest, U as UpdatePasswordRequest, b as GetListParams, a as GetDetailParams, S as SaveParams, D as DeleteParams, O as OnChangeParams, V as ViewData, f as GetViewParams, c as GetSelectionType } from './view-type-xxw9OeSR.js';
2
2
 
3
3
  declare function useActionService(): {
4
4
  loadAction: ({ idAction, context, service, xNode, }: {
@@ -212,7 +212,7 @@ declare function useUserService(): {
212
212
  };
213
213
 
214
214
  declare function useViewService(): {
215
- getView: ({ model, views, context, options, aid, service, }: GetViewParams) => Promise<any>;
215
+ getView: ({ model, views, context, options, aid, service, xNode, }: GetViewParams) => Promise<any>;
216
216
  getMenu: (context: any, specification: any, domain: any) => Promise<any>;
217
217
  getActionDetail: (aid: number, context: any) => Promise<any>;
218
218
  getResequence: ({ model, ids, context, offset, }: {
package/dist/services.js CHANGED
@@ -4347,7 +4347,8 @@ function useViewService() {
4347
4347
  context = {},
4348
4348
  options = {},
4349
4349
  aid,
4350
- service
4350
+ service,
4351
+ xNode
4351
4352
  }) => {
4352
4353
  const defaultOptions = {
4353
4354
  load_filters: true,
@@ -4368,7 +4369,8 @@ function useViewService() {
4368
4369
  jsonDataView,
4369
4370
  {
4370
4371
  headers: {
4371
- "Content-Type": "application/json"
4372
+ "Content-Type": "application/json",
4373
+ ...xNode ? { x_node: xNode } : {}
4372
4374
  }
4373
4375
  },
4374
4376
  service
package/dist/services.mjs CHANGED
@@ -2946,7 +2946,7 @@ import { useQuery as useQuery12 } from "@tanstack/react-query";
2946
2946
  import { useQuery as useQuery13 } from "@tanstack/react-query";
2947
2947
 
2948
2948
  // src/hooks/view/use-get-list-data.ts
2949
- import { useQuery as useQuery14 } from "@tanstack/react-query";
2949
+ import { keepPreviousData, useQuery as useQuery14 } from "@tanstack/react-query";
2950
2950
 
2951
2951
  // src/hooks/view/use-get-menu.ts
2952
2952
  import { useQuery as useQuery15 } from "@tanstack/react-query";
@@ -4303,7 +4303,8 @@ function useViewService() {
4303
4303
  context = {},
4304
4304
  options = {},
4305
4305
  aid,
4306
- service
4306
+ service,
4307
+ xNode
4307
4308
  }) => {
4308
4309
  const defaultOptions = {
4309
4310
  load_filters: true,
@@ -4324,7 +4325,8 @@ function useViewService() {
4324
4325
  jsonDataView,
4325
4326
  {
4326
4327
  headers: {
4327
- "Content-Type": "application/json"
4328
+ "Content-Type": "application/json",
4329
+ ...xNode ? { x_node: xNode } : {}
4328
4330
  }
4329
4331
  },
4330
4332
  service
package/dist/types.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- export { C as ContextApi, D as DeleteParams, F as ForgotPasswordBody, G as GetAllParams, a as GetDetailParams, b as GetListParams, c as GetSelectionType, f as GetViewParams, L as LoginCredentialBody, O as OnChangeParams, R as ResetPasswordRequest, S as SaveParams, d as SocialTokenBody, e as Specification, U as UpdatePasswordRequest, g as View, V as ViewData, u as updatePasswordBody } from './view-type-DioSS9fJ.mjs';
1
+ export { C as ContextApi, D as DeleteParams, F as ForgotPasswordBody, G as GetAllParams, a as GetDetailParams, b as GetListParams, c as GetSelectionType, f as GetViewParams, L as LoginCredentialBody, O as OnChangeParams, R as ResetPasswordRequest, S as SaveParams, d as SocialTokenBody, e as Specification, U as UpdatePasswordRequest, g as View, V as ViewData, u as updatePasswordBody } from './view-type-xxw9OeSR.mjs';
2
2
 
3
3
  interface Config {
4
4
  baseUrl: string;
package/dist/types.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { C as ContextApi, D as DeleteParams, F as ForgotPasswordBody, G as GetAllParams, a as GetDetailParams, b as GetListParams, c as GetSelectionType, f as GetViewParams, L as LoginCredentialBody, O as OnChangeParams, R as ResetPasswordRequest, S as SaveParams, d as SocialTokenBody, e as Specification, U as UpdatePasswordRequest, g as View, V as ViewData, u as updatePasswordBody } from './view-type-DioSS9fJ.js';
1
+ export { C as ContextApi, D as DeleteParams, F as ForgotPasswordBody, G as GetAllParams, a as GetDetailParams, b as GetListParams, c as GetSelectionType, f as GetViewParams, L as LoginCredentialBody, O as OnChangeParams, R as ResetPasswordRequest, S as SaveParams, d as SocialTokenBody, e as Specification, U as UpdatePasswordRequest, g as View, V as ViewData, u as updatePasswordBody } from './view-type-xxw9OeSR.js';
2
2
 
3
3
  interface Config {
4
4
  baseUrl: string;
@@ -116,6 +116,7 @@ interface GetViewParams {
116
116
  options?: Option;
117
117
  aid?: number | string | null | boolean;
118
118
  service?: string;
119
+ xNode?: string;
119
120
  }
120
121
 
121
122
  export type { ContextApi as C, DeleteParams as D, ForgotPasswordBody as F, GetAllParams as G, LoginCredentialBody as L, OnChangeParams as O, ResetPasswordRequest as R, SaveParams as S, UpdatePasswordRequest as U, ViewData as V, GetDetailParams as a, GetListParams as b, GetSelectionType as c, SocialTokenBody as d, Specification as e, GetViewParams as f, View as g, updatePasswordBody as u };
@@ -116,6 +116,7 @@ interface GetViewParams {
116
116
  options?: Option;
117
117
  aid?: number | string | null | boolean;
118
118
  service?: string;
119
+ xNode?: string;
119
120
  }
120
121
 
121
122
  export type { ContextApi as C, DeleteParams as D, ForgotPasswordBody as F, GetAllParams as G, LoginCredentialBody as L, OnChangeParams as O, ResetPasswordRequest as R, SaveParams as S, UpdatePasswordRequest as U, ViewData as V, GetDetailParams as a, GetListParams as b, GetSelectionType as c, SocialTokenBody as d, Specification as e, GetViewParams as f, View as g, updatePasswordBody as u };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fctc/interface-logic",
3
- "version": "2.3.9",
3
+ "version": "2.4.1",
4
4
  "types": "dist/index.d.ts",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",