@fctc/interface-logic 2.7.6 → 2.7.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/configs.js CHANGED
@@ -1779,6 +1779,8 @@ function evaluate(ast, context = {}) {
1779
1779
  } else if (ast2.key === "get" && typeof leftVal === "object") {
1780
1780
  result = DICT[ast2.key];
1781
1781
  leftVal = toPyDict(leftVal);
1782
+ } else if (typeof leftVal === "number") {
1783
+ result = leftVal;
1782
1784
  } else {
1783
1785
  result = leftVal[ast2.key];
1784
1786
  }
package/dist/configs.mjs CHANGED
@@ -1743,6 +1743,8 @@ function evaluate(ast, context = {}) {
1743
1743
  } else if (ast2.key === "get" && typeof leftVal === "object") {
1744
1744
  result = DICT[ast2.key];
1745
1745
  leftVal = toPyDict(leftVal);
1746
+ } else if (typeof leftVal === "number") {
1747
+ result = leftVal;
1746
1748
  } else {
1747
1749
  result = leftVal[ast2.key];
1748
1750
  }
@@ -1781,6 +1781,8 @@ function evaluate(ast, context = {}) {
1781
1781
  } else if (ast2.key === "get" && typeof leftVal === "object") {
1782
1782
  result = DICT[ast2.key];
1783
1783
  leftVal = toPyDict(leftVal);
1784
+ } else if (typeof leftVal === "number") {
1785
+ result = leftVal;
1784
1786
  } else {
1785
1787
  result = leftVal[ast2.key];
1786
1788
  }
@@ -1743,6 +1743,8 @@ function evaluate(ast, context = {}) {
1743
1743
  } else if (ast2.key === "get" && typeof leftVal === "object") {
1744
1744
  result = DICT[ast2.key];
1745
1745
  leftVal = toPyDict(leftVal);
1746
+ } else if (typeof leftVal === "number") {
1747
+ result = leftVal;
1746
1748
  } else {
1747
1749
  result = leftVal[ast2.key];
1748
1750
  }
package/dist/hooks.d.mts CHANGED
@@ -466,6 +466,7 @@ declare const useManageOnChange: () => _tanstack_react_query.UseMutationResult<u
466
466
  args: any;
467
467
  service: string;
468
468
  xNode: string;
469
+ method: string;
469
470
  }, unknown>;
470
471
 
471
472
  export { useButton, useChangeStatus, useCreateEntity, useCreateSession, useDelete, useDeleteComment, useDeleteEntity, useDuplicateRecord, useExecuteImport, useExportExcel, useForgotPassword, useForgotPasswordSSO, useGet2FAMethods, useGetASession, useGetAccessByCode, useGetActionDetail, useGetAll, useGetCalendar, useGetComment, useGetCompanyInfo, useGetConversionRate, useGetCurrency, useGetCurrentCompany, useGetDetail, useGetFieldExport, useGetFieldOnChange, useGetFileExcel, useGetFormView, useGetGroups, useGetImage, useGetList, useGetListCompany, useGetListData, useGetListMyBankAccount, useGetMenu, useGetPos, useGetPrintReport, useGetProGressBar, useGetProfile, useGetProvider, useGetResequence, useGetSelection, useGetUser, useGetView, useGrantAccess, useHandleClosingSession, useIsValidToken, useLoadAction, useLoadDataPosSession, useLoadMessage, useLoginCredential, useLoginSocial, useLogout, useManageOnChange, useManageSession, useModel, useOdooDataTransform, useOnChangeForm, useParsePreview, usePrint, useRemoveRow, useRemoveTotpSetup, useRequestSetupTotp, useResetPassword, useResetPasswordSSO, useRunAction, useSave, useSendComment, useSettingsWebRead2fa, useSignInSSO, useSwitchLocale, useUpdateClosedSession, useUpdateEntity, useUpdatePassword, useUploadFile, useUploadFileExcel, useUploadIdFile, useUploadImage, useValidateActionToken, useVerify2FA, useVerifyTotp };
package/dist/hooks.d.ts CHANGED
@@ -466,6 +466,7 @@ declare const useManageOnChange: () => _tanstack_react_query.UseMutationResult<u
466
466
  args: any;
467
467
  service: string;
468
468
  xNode: string;
469
+ method: string;
469
470
  }, unknown>;
470
471
 
471
472
  export { useButton, useChangeStatus, useCreateEntity, useCreateSession, useDelete, useDeleteComment, useDeleteEntity, useDuplicateRecord, useExecuteImport, useExportExcel, useForgotPassword, useForgotPasswordSSO, useGet2FAMethods, useGetASession, useGetAccessByCode, useGetActionDetail, useGetAll, useGetCalendar, useGetComment, useGetCompanyInfo, useGetConversionRate, useGetCurrency, useGetCurrentCompany, useGetDetail, useGetFieldExport, useGetFieldOnChange, useGetFileExcel, useGetFormView, useGetGroups, useGetImage, useGetList, useGetListCompany, useGetListData, useGetListMyBankAccount, useGetMenu, useGetPos, useGetPrintReport, useGetProGressBar, useGetProfile, useGetProvider, useGetResequence, useGetSelection, useGetUser, useGetView, useGrantAccess, useHandleClosingSession, useIsValidToken, useLoadAction, useLoadDataPosSession, useLoadMessage, useLoginCredential, useLoginSocial, useLogout, useManageOnChange, useManageSession, useModel, useOdooDataTransform, useOnChangeForm, useParsePreview, usePrint, useRemoveRow, useRemoveTotpSetup, useRequestSetupTotp, useResetPassword, useResetPasswordSSO, useRunAction, useSave, useSendComment, useSettingsWebRead2fa, useSignInSSO, useSwitchLocale, useUpdateClosedSession, useUpdateEntity, useUpdatePassword, useUploadFile, useUploadFileExcel, useUploadIdFile, useUploadImage, useValidateActionToken, useVerify2FA, useVerifyTotp };
package/dist/hooks.js CHANGED
@@ -1902,6 +1902,8 @@ function evaluate(ast, context = {}) {
1902
1902
  } else if (ast2.key === "get" && typeof leftVal === "object") {
1903
1903
  result = DICT[ast2.key];
1904
1904
  leftVal = toPyDict(leftVal);
1905
+ } else if (typeof leftVal === "number") {
1906
+ result = leftVal;
1905
1907
  } else {
1906
1908
  result = leftVal[ast2.key];
1907
1909
  }
@@ -4980,6 +4982,7 @@ function useViewService() {
4980
4982
  const manageOnChange = (0, import_react14.useCallback)(
4981
4983
  ({
4982
4984
  model,
4985
+ method,
4983
4986
  ids,
4984
4987
  args,
4985
4988
  xNode,
@@ -4987,7 +4990,7 @@ function useViewService() {
4987
4990
  }) => {
4988
4991
  const jsonData = {
4989
4992
  model,
4990
- method: "onchange" /* ONCHANGE */,
4993
+ method,
4991
4994
  ids,
4992
4995
  args
4993
4996
  };
@@ -6636,10 +6639,12 @@ var useManageOnChange = () => {
6636
6639
  ids,
6637
6640
  args,
6638
6641
  service,
6639
- xNode
6642
+ xNode,
6643
+ method
6640
6644
  }) => {
6641
6645
  return manageOnChange({
6642
6646
  model,
6647
+ method,
6643
6648
  ids,
6644
6649
  args,
6645
6650
  service,
package/dist/hooks.mjs CHANGED
@@ -1786,6 +1786,8 @@ function evaluate(ast, context = {}) {
1786
1786
  } else if (ast2.key === "get" && typeof leftVal === "object") {
1787
1787
  result = DICT[ast2.key];
1788
1788
  leftVal = toPyDict(leftVal);
1789
+ } else if (typeof leftVal === "number") {
1790
+ result = leftVal;
1789
1791
  } else {
1790
1792
  result = leftVal[ast2.key];
1791
1793
  }
@@ -4864,6 +4866,7 @@ function useViewService() {
4864
4866
  const manageOnChange = useCallback10(
4865
4867
  ({
4866
4868
  model,
4869
+ method,
4867
4870
  ids,
4868
4871
  args,
4869
4872
  xNode,
@@ -4871,7 +4874,7 @@ function useViewService() {
4871
4874
  }) => {
4872
4875
  const jsonData = {
4873
4876
  model,
4874
- method: "onchange" /* ONCHANGE */,
4877
+ method,
4875
4878
  ids,
4876
4879
  args
4877
4880
  };
@@ -6520,10 +6523,12 @@ var useManageOnChange = () => {
6520
6523
  ids,
6521
6524
  args,
6522
6525
  service,
6523
- xNode
6526
+ xNode,
6527
+ method
6524
6528
  }) => {
6525
6529
  return manageOnChange({
6526
6530
  model,
6531
+ method,
6527
6532
  ids,
6528
6533
  args,
6529
6534
  service,
package/dist/provider.js CHANGED
@@ -2479,6 +2479,8 @@ function evaluate(ast, context = {}) {
2479
2479
  } else if (ast2.key === "get" && typeof leftVal === "object") {
2480
2480
  result = DICT[ast2.key];
2481
2481
  leftVal = toPyDict(leftVal);
2482
+ } else if (typeof leftVal === "number") {
2483
+ result = leftVal;
2482
2484
  } else {
2483
2485
  result = leftVal[ast2.key];
2484
2486
  }
@@ -4916,6 +4918,7 @@ function useViewService() {
4916
4918
  const manageOnChange = (0, import_react10.useCallback)(
4917
4919
  ({
4918
4920
  model,
4921
+ method,
4919
4922
  ids,
4920
4923
  args,
4921
4924
  xNode,
@@ -4923,7 +4926,7 @@ function useViewService() {
4923
4926
  }) => {
4924
4927
  const jsonData = {
4925
4928
  model,
4926
- method: "onchange" /* ONCHANGE */,
4929
+ method,
4927
4930
  ids,
4928
4931
  args
4929
4932
  };
@@ -6990,10 +6993,12 @@ var useManageOnChange = () => {
6990
6993
  ids,
6991
6994
  args,
6992
6995
  service,
6993
- xNode
6996
+ xNode,
6997
+ method
6994
6998
  }) => {
6995
6999
  return manageOnChange({
6996
7000
  model,
7001
+ method,
6997
7002
  ids,
6998
7003
  args,
6999
7004
  service,
package/dist/provider.mjs CHANGED
@@ -2436,6 +2436,8 @@ function evaluate(ast, context = {}) {
2436
2436
  } else if (ast2.key === "get" && typeof leftVal === "object") {
2437
2437
  result = DICT[ast2.key];
2438
2438
  leftVal = toPyDict(leftVal);
2439
+ } else if (typeof leftVal === "number") {
2440
+ result = leftVal;
2439
2441
  } else {
2440
2442
  result = leftVal[ast2.key];
2441
2443
  }
@@ -4873,6 +4875,7 @@ function useViewService() {
4873
4875
  const manageOnChange = useCallback9(
4874
4876
  ({
4875
4877
  model,
4878
+ method,
4876
4879
  ids,
4877
4880
  args,
4878
4881
  xNode,
@@ -4880,7 +4883,7 @@ function useViewService() {
4880
4883
  }) => {
4881
4884
  const jsonData = {
4882
4885
  model,
4883
- method: "onchange" /* ONCHANGE */,
4886
+ method,
4884
4887
  ids,
4885
4888
  args
4886
4889
  };
@@ -6947,10 +6950,12 @@ var useManageOnChange = () => {
6947
6950
  ids,
6948
6951
  args,
6949
6952
  service,
6950
- xNode
6953
+ xNode,
6954
+ method
6951
6955
  }) => {
6952
6956
  return manageOnChange({
6953
6957
  model,
6958
+ method,
6954
6959
  ids,
6955
6960
  args,
6956
6961
  service,
@@ -350,8 +350,9 @@ declare function useViewService(): {
350
350
  service: string;
351
351
  xNode: string;
352
352
  }) => any;
353
- manageOnChange: ({ model, ids, args, xNode, service, }: {
353
+ manageOnChange: ({ model, method, ids, args, xNode, service, }: {
354
354
  model: string;
355
+ method: string;
355
356
  ids: any;
356
357
  args: any;
357
358
  service: string;
@@ -350,8 +350,9 @@ declare function useViewService(): {
350
350
  service: string;
351
351
  xNode: string;
352
352
  }) => any;
353
- manageOnChange: ({ model, ids, args, xNode, service, }: {
353
+ manageOnChange: ({ model, method, ids, args, xNode, service, }: {
354
354
  model: string;
355
+ method: string;
355
356
  ids: any;
356
357
  args: any;
357
358
  service: string;
package/dist/services.js CHANGED
@@ -1820,6 +1820,8 @@ function evaluate(ast, context = {}) {
1820
1820
  } else if (ast2.key === "get" && typeof leftVal === "object") {
1821
1821
  result = DICT[ast2.key];
1822
1822
  leftVal = toPyDict(leftVal);
1823
+ } else if (typeof leftVal === "number") {
1824
+ result = leftVal;
1823
1825
  } else {
1824
1826
  result = leftVal[ast2.key];
1825
1827
  }
@@ -5122,6 +5124,7 @@ function useViewService() {
5122
5124
  const manageOnChange = (0, import_react14.useCallback)(
5123
5125
  ({
5124
5126
  model,
5127
+ method,
5125
5128
  ids,
5126
5129
  args,
5127
5130
  xNode,
@@ -5129,7 +5132,7 @@ function useViewService() {
5129
5132
  }) => {
5130
5133
  const jsonData = {
5131
5134
  model,
5132
- method: "onchange" /* ONCHANGE */,
5135
+ method,
5133
5136
  ids,
5134
5137
  args
5135
5138
  };
package/dist/services.mjs CHANGED
@@ -1776,6 +1776,8 @@ function evaluate(ast, context = {}) {
1776
1776
  } else if (ast2.key === "get" && typeof leftVal === "object") {
1777
1777
  result = DICT[ast2.key];
1778
1778
  leftVal = toPyDict(leftVal);
1779
+ } else if (typeof leftVal === "number") {
1780
+ result = leftVal;
1779
1781
  } else {
1780
1782
  result = leftVal[ast2.key];
1781
1783
  }
@@ -5078,6 +5080,7 @@ function useViewService() {
5078
5080
  const manageOnChange = useCallback10(
5079
5081
  ({
5080
5082
  model,
5083
+ method,
5081
5084
  ids,
5082
5085
  args,
5083
5086
  xNode,
@@ -5085,7 +5088,7 @@ function useViewService() {
5085
5088
  }) => {
5086
5089
  const jsonData = {
5087
5090
  model,
5088
- method: "onchange" /* ONCHANGE */,
5091
+ method,
5089
5092
  ids,
5090
5093
  args
5091
5094
  };
package/dist/utils.js CHANGED
@@ -2113,6 +2113,8 @@ function evaluate(ast, context = {}) {
2113
2113
  } else if (ast2.key === "get" && typeof leftVal === "object") {
2114
2114
  result = DICT[ast2.key];
2115
2115
  leftVal = toPyDict(leftVal);
2116
+ } else if (typeof leftVal === "number") {
2117
+ result = leftVal;
2116
2118
  } else {
2117
2119
  result = leftVal[ast2.key];
2118
2120
  }
package/dist/utils.mjs CHANGED
@@ -2048,6 +2048,8 @@ function evaluate(ast, context = {}) {
2048
2048
  } else if (ast2.key === "get" && typeof leftVal === "object") {
2049
2049
  result = DICT[ast2.key];
2050
2050
  leftVal = toPyDict(leftVal);
2051
+ } else if (typeof leftVal === "number") {
2052
+ result = leftVal;
2051
2053
  } else {
2052
2054
  result = leftVal[ast2.key];
2053
2055
  }
package/package.json CHANGED
@@ -1,90 +1,90 @@
1
- {
2
- "name": "@fctc/interface-logic",
3
- "version": "2.7.6",
4
- "types": "dist/index.d.ts",
5
- "main": "dist/index.cjs",
6
- "module": "dist/index.mjs",
7
- "exports": {
8
- ".": {
9
- "types": "./dist/index.d.ts",
10
- "import": "./dist/index.mjs",
11
- "require": "./dist/index.cjs"
12
- },
13
- "./configs": {
14
- "types": "./dist/configs.d.ts",
15
- "import": "./dist/configs.mjs",
16
- "require": "./dist/configs.cjs"
17
- },
18
- "./constants": {
19
- "types": "./dist/constants.d.ts",
20
- "import": "./dist/constants.mjs",
21
- "require": "./dist/constants.cjs"
22
- },
23
- "./environment": {
24
- "types": "./dist/environment.d.ts",
25
- "import": "./dist/environment.mjs",
26
- "require": "./dist/environment.cjs"
27
- },
28
- "./hooks": {
29
- "types": "./dist/hooks.d.ts",
30
- "import": "./dist/hooks.mjs",
31
- "require": "./dist/hooks.cjs"
32
- },
33
- "./provider": {
34
- "types": "./dist/provider.d.ts",
35
- "import": "./dist/provider.mjs",
36
- "require": "./dist/provider.cjs"
37
- },
38
- "./services": {
39
- "types": "./dist/services.d.ts",
40
- "import": "./dist/services.mjs",
41
- "require": "./dist/services.cjs"
42
- },
43
- "./store": {
44
- "types": "./dist/store.d.ts",
45
- "import": "./dist/store.mjs",
46
- "require": "./dist/store.cjs"
47
- },
48
- "./utils": {
49
- "types": "./dist/utils.d.ts",
50
- "import": "./dist/utils.mjs",
51
- "require": "./dist/utils.cjs"
52
- },
53
- "./types": {
54
- "types": "./dist/types.d.ts",
55
- "import": "./dist/types.mjs",
56
- "require": "./dist/types.cjs"
57
- },
58
- "./models": {
59
- "types": "./dist/models.d.ts",
60
- "import": "./dist/models.mjs",
61
- "require": "./dist/models.cjs"
62
- }
63
- },
64
- "files": [
65
- "dist"
66
- ],
67
- "scripts": {
68
- "build": "tsup",
69
- "test": "jest"
70
- },
71
- "peerDependencies": {
72
- "react": "18.0.0",
73
- "@tanstack/react-query": "^5.83.0"
74
- },
75
- "dependencies": {
76
- "@reduxjs/toolkit": "^2.8.2",
77
- "@tanstack/react-query": "^5.83.0",
78
- "axios": "^1.11.0",
79
- "moment": "^2.30.1",
80
- "react-redux": "^9.2.0"
81
- },
82
- "devDependencies": {
83
- "@types/react": "^18.3.1",
84
- "react": "18.0.0",
85
- "jest": "^29.7.0",
86
- "tsup": "^8.0.0",
87
- "typescript": "^5.8.2"
88
- },
89
- "packageManager": "yarn@1.22.0"
90
- }
1
+ {
2
+ "name": "@fctc/interface-logic",
3
+ "version": "2.7.7",
4
+ "types": "dist/index.d.ts",
5
+ "main": "dist/index.cjs",
6
+ "module": "dist/index.mjs",
7
+ "exports": {
8
+ ".": {
9
+ "types": "./dist/index.d.ts",
10
+ "import": "./dist/index.mjs",
11
+ "require": "./dist/index.cjs"
12
+ },
13
+ "./configs": {
14
+ "types": "./dist/configs.d.ts",
15
+ "import": "./dist/configs.mjs",
16
+ "require": "./dist/configs.cjs"
17
+ },
18
+ "./constants": {
19
+ "types": "./dist/constants.d.ts",
20
+ "import": "./dist/constants.mjs",
21
+ "require": "./dist/constants.cjs"
22
+ },
23
+ "./environment": {
24
+ "types": "./dist/environment.d.ts",
25
+ "import": "./dist/environment.mjs",
26
+ "require": "./dist/environment.cjs"
27
+ },
28
+ "./hooks": {
29
+ "types": "./dist/hooks.d.ts",
30
+ "import": "./dist/hooks.mjs",
31
+ "require": "./dist/hooks.cjs"
32
+ },
33
+ "./provider": {
34
+ "types": "./dist/provider.d.ts",
35
+ "import": "./dist/provider.mjs",
36
+ "require": "./dist/provider.cjs"
37
+ },
38
+ "./services": {
39
+ "types": "./dist/services.d.ts",
40
+ "import": "./dist/services.mjs",
41
+ "require": "./dist/services.cjs"
42
+ },
43
+ "./store": {
44
+ "types": "./dist/store.d.ts",
45
+ "import": "./dist/store.mjs",
46
+ "require": "./dist/store.cjs"
47
+ },
48
+ "./utils": {
49
+ "types": "./dist/utils.d.ts",
50
+ "import": "./dist/utils.mjs",
51
+ "require": "./dist/utils.cjs"
52
+ },
53
+ "./types": {
54
+ "types": "./dist/types.d.ts",
55
+ "import": "./dist/types.mjs",
56
+ "require": "./dist/types.cjs"
57
+ },
58
+ "./models": {
59
+ "types": "./dist/models.d.ts",
60
+ "import": "./dist/models.mjs",
61
+ "require": "./dist/models.cjs"
62
+ }
63
+ },
64
+ "files": [
65
+ "dist"
66
+ ],
67
+ "scripts": {
68
+ "build": "tsup",
69
+ "test": "jest"
70
+ },
71
+ "peerDependencies": {
72
+ "react": "18.0.0",
73
+ "@tanstack/react-query": "^5.83.0"
74
+ },
75
+ "dependencies": {
76
+ "@reduxjs/toolkit": "^2.8.2",
77
+ "@tanstack/react-query": "^5.83.0",
78
+ "axios": "^1.11.0",
79
+ "moment": "^2.30.1",
80
+ "react-redux": "^9.2.0"
81
+ },
82
+ "devDependencies": {
83
+ "@types/react": "^18.3.1",
84
+ "react": "18.0.0",
85
+ "jest": "^29.7.0",
86
+ "tsup": "^8.0.0",
87
+ "typescript": "^5.8.2"
88
+ },
89
+ "packageManager": "yarn@1.22.0"
90
+ }