@fctc/widget-logic 1.0.8 → 1.0.9

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/action.d.mts CHANGED
@@ -4,7 +4,7 @@ interface UseArchieveProps {
4
4
  model: string;
5
5
  ids: number[];
6
6
  context: any;
7
- actionName: 'archieve' | 'unarchive';
7
+ actionName: 'archive' | 'unarchive';
8
8
  };
9
9
  onSuccess?: (res: any) => void;
10
10
  onError?: (err: any) => void;
package/dist/action.d.ts CHANGED
@@ -4,7 +4,7 @@ interface UseArchieveProps {
4
4
  model: string;
5
5
  ids: number[];
6
6
  context: any;
7
- actionName: 'archieve' | 'unarchive';
7
+ actionName: 'archive' | 'unarchive';
8
8
  };
9
9
  onSuccess?: (res: any) => void;
10
10
  onError?: (err: any) => void;
package/dist/action.js CHANGED
@@ -36,7 +36,6 @@ var useArchieveHandler = ({
36
36
  onSettled
37
37
  }) => {
38
38
  const archieve = (0, import_interface_logic.useButton)();
39
- const env = (0, import_interface_logic.getEnv)();
40
39
  const handleDuplicateRecord = () => {
41
40
  archieve.mutate(
42
41
  {
@@ -64,7 +63,6 @@ var useDuplicateRowHandler = ({
64
63
  onSettled
65
64
  }) => {
66
65
  const duplicateRecord = (0, import_interface_logic2.useDuplicateRecord)();
67
- const env = (0, import_interface_logic2.getEnv)();
68
66
  const handleDuplicateRecord = () => {
69
67
  duplicateRecord.mutate(
70
68
  {
@@ -91,7 +89,6 @@ var useGetFieldExportHandler = ({
91
89
  onSettled
92
90
  }) => {
93
91
  const fieldExport = (0, import_interface_logic3.useGetFieldExport)();
94
- const env = (0, import_interface_logic3.getEnv)();
95
92
  const handleGetFieldExport = () => {
96
93
  fieldExport.mutate(
97
94
  {
@@ -125,7 +122,6 @@ var useExportExcelHandler = ({
125
122
  onSettled
126
123
  }) => {
127
124
  const exportExcel = (0, import_interface_logic4.useExportExcel)();
128
- const env = (0, import_interface_logic4.getEnv)();
129
125
  const handleExport = () => {
130
126
  exportExcel.mutate(
131
127
  {
package/dist/action.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  // src/action/use-archieve-row.tsx
2
- import { getEnv, useButton } from "@fctc/interface-logic";
2
+ import { useButton } from "@fctc/interface-logic";
3
3
  var useArchieveHandler = ({
4
4
  data,
5
5
  onSuccess,
@@ -7,7 +7,6 @@ var useArchieveHandler = ({
7
7
  onSettled
8
8
  }) => {
9
9
  const archieve = useButton();
10
- const env = getEnv();
11
10
  const handleDuplicateRecord = () => {
12
11
  archieve.mutate(
13
12
  {
@@ -27,7 +26,7 @@ var useArchieveHandler = ({
27
26
  };
28
27
 
29
28
  // src/action/use-duplicate-row.tsx
30
- import { getEnv as getEnv2, useDuplicateRecord } from "@fctc/interface-logic";
29
+ import { useDuplicateRecord } from "@fctc/interface-logic";
31
30
  var useDuplicateRowHandler = ({
32
31
  data,
33
32
  onSuccess,
@@ -35,7 +34,6 @@ var useDuplicateRowHandler = ({
35
34
  onSettled
36
35
  }) => {
37
36
  const duplicateRecord = useDuplicateRecord();
38
- const env = getEnv2();
39
37
  const handleDuplicateRecord = () => {
40
38
  duplicateRecord.mutate(
41
39
  {
@@ -54,7 +52,7 @@ var useDuplicateRowHandler = ({
54
52
  };
55
53
 
56
54
  // src/action/use-get-field-export.tsx
57
- import { getEnv as getEnv3, useGetFieldExport } from "@fctc/interface-logic";
55
+ import { useGetFieldExport } from "@fctc/interface-logic";
58
56
  var useGetFieldExportHandler = ({
59
57
  data,
60
58
  onSuccess,
@@ -62,7 +60,6 @@ var useGetFieldExportHandler = ({
62
60
  onSettled
63
61
  }) => {
64
62
  const fieldExport = useGetFieldExport();
65
- const env = getEnv3();
66
63
  const handleGetFieldExport = () => {
67
64
  fieldExport.mutate(
68
65
  {
@@ -88,7 +85,7 @@ var useGetFieldExportHandler = ({
88
85
  };
89
86
 
90
87
  // src/action/use-export-excel.tsx
91
- import { evalJSONDomain, getEnv as getEnv4, useExportExcel } from "@fctc/interface-logic";
88
+ import { evalJSONDomain, useExportExcel } from "@fctc/interface-logic";
92
89
  var useExportExcelHandler = ({
93
90
  data,
94
91
  onSuccess,
@@ -96,7 +93,6 @@ var useExportExcelHandler = ({
96
93
  onSettled
97
94
  }) => {
98
95
  const exportExcel = useExportExcel();
99
- const env = getEnv4();
100
96
  const handleExport = () => {
101
97
  exportExcel.mutate(
102
98
  {
package/dist/form.js CHANGED
@@ -92,7 +92,6 @@ var useRemoveRowHandler = ({
92
92
  onSettled
93
93
  }) => {
94
94
  const remove = (0, import_interface_logic3.useRemoveRow)();
95
- const env = (0, import_interface_logic3.getEnv)();
96
95
  const handleRemoveRow = () => {
97
96
  remove.mutate(
98
97
  {
package/dist/form.mjs CHANGED
@@ -56,7 +56,7 @@ var useSaveFormHandler = ({
56
56
  };
57
57
 
58
58
  // src/widget/form/use-remove-row.tsx
59
- import { getEnv, useRemoveRow } from "@fctc/interface-logic";
59
+ import { useRemoveRow } from "@fctc/interface-logic";
60
60
  var useRemoveRowHandler = ({
61
61
  data,
62
62
  onSuccess,
@@ -64,7 +64,6 @@ var useRemoveRowHandler = ({
64
64
  onSettled
65
65
  }) => {
66
66
  const remove = useRemoveRow();
67
- const env = getEnv();
68
67
  const handleRemoveRow = () => {
69
68
  remove.mutate(
70
69
  {
package/dist/index.js CHANGED
@@ -2206,7 +2206,6 @@ var useArchieveHandler = ({
2206
2206
  onSettled
2207
2207
  }) => {
2208
2208
  const archieve = (0, import_interface_logic.useButton)();
2209
- const env = (0, import_interface_logic.getEnv)();
2210
2209
  const handleDuplicateRecord = () => {
2211
2210
  archieve.mutate(
2212
2211
  {
@@ -2234,7 +2233,6 @@ var useDuplicateRowHandler = ({
2234
2233
  onSettled
2235
2234
  }) => {
2236
2235
  const duplicateRecord = (0, import_interface_logic2.useDuplicateRecord)();
2237
- const env = (0, import_interface_logic2.getEnv)();
2238
2236
  const handleDuplicateRecord = () => {
2239
2237
  duplicateRecord.mutate(
2240
2238
  {
@@ -2261,7 +2259,6 @@ var useGetFieldExportHandler = ({
2261
2259
  onSettled
2262
2260
  }) => {
2263
2261
  const fieldExport = (0, import_interface_logic3.useGetFieldExport)();
2264
- const env = (0, import_interface_logic3.getEnv)();
2265
2262
  const handleGetFieldExport = () => {
2266
2263
  fieldExport.mutate(
2267
2264
  {
@@ -2295,7 +2292,6 @@ var useExportExcelHandler = ({
2295
2292
  onSettled
2296
2293
  }) => {
2297
2294
  const exportExcel = (0, import_interface_logic4.useExportExcel)();
2298
- const env = (0, import_interface_logic4.getEnv)();
2299
2295
  const handleExport = () => {
2300
2296
  exportExcel.mutate(
2301
2297
  {
@@ -2384,7 +2380,6 @@ var useRemoveRowHandler = ({
2384
2380
  onSettled
2385
2381
  }) => {
2386
2382
  const remove = (0, import_interface_logic7.useRemoveRow)();
2387
- const env = (0, import_interface_logic7.getEnv)();
2388
2383
  const handleRemoveRow = () => {
2389
2384
  remove.mutate(
2390
2385
  {
package/dist/index.mjs CHANGED
@@ -2178,7 +2178,7 @@ var require_react = __commonJS({
2178
2178
  });
2179
2179
 
2180
2180
  // src/action/use-archieve-row.tsx
2181
- import { getEnv, useButton } from "@fctc/interface-logic";
2181
+ import { useButton } from "@fctc/interface-logic";
2182
2182
  var useArchieveHandler = ({
2183
2183
  data,
2184
2184
  onSuccess,
@@ -2186,7 +2186,6 @@ var useArchieveHandler = ({
2186
2186
  onSettled
2187
2187
  }) => {
2188
2188
  const archieve = useButton();
2189
- const env = getEnv();
2190
2189
  const handleDuplicateRecord = () => {
2191
2190
  archieve.mutate(
2192
2191
  {
@@ -2206,7 +2205,7 @@ var useArchieveHandler = ({
2206
2205
  };
2207
2206
 
2208
2207
  // src/action/use-duplicate-row.tsx
2209
- import { getEnv as getEnv2, useDuplicateRecord } from "@fctc/interface-logic";
2208
+ import { useDuplicateRecord } from "@fctc/interface-logic";
2210
2209
  var useDuplicateRowHandler = ({
2211
2210
  data,
2212
2211
  onSuccess,
@@ -2214,7 +2213,6 @@ var useDuplicateRowHandler = ({
2214
2213
  onSettled
2215
2214
  }) => {
2216
2215
  const duplicateRecord = useDuplicateRecord();
2217
- const env = getEnv2();
2218
2216
  const handleDuplicateRecord = () => {
2219
2217
  duplicateRecord.mutate(
2220
2218
  {
@@ -2233,7 +2231,7 @@ var useDuplicateRowHandler = ({
2233
2231
  };
2234
2232
 
2235
2233
  // src/action/use-get-field-export.tsx
2236
- import { getEnv as getEnv3, useGetFieldExport } from "@fctc/interface-logic";
2234
+ import { useGetFieldExport } from "@fctc/interface-logic";
2237
2235
  var useGetFieldExportHandler = ({
2238
2236
  data,
2239
2237
  onSuccess,
@@ -2241,7 +2239,6 @@ var useGetFieldExportHandler = ({
2241
2239
  onSettled
2242
2240
  }) => {
2243
2241
  const fieldExport = useGetFieldExport();
2244
- const env = getEnv3();
2245
2242
  const handleGetFieldExport = () => {
2246
2243
  fieldExport.mutate(
2247
2244
  {
@@ -2267,7 +2264,7 @@ var useGetFieldExportHandler = ({
2267
2264
  };
2268
2265
 
2269
2266
  // src/action/use-export-excel.tsx
2270
- import { evalJSONDomain, getEnv as getEnv4, useExportExcel } from "@fctc/interface-logic";
2267
+ import { evalJSONDomain, useExportExcel } from "@fctc/interface-logic";
2271
2268
  var useExportExcelHandler = ({
2272
2269
  data,
2273
2270
  onSuccess,
@@ -2275,7 +2272,6 @@ var useExportExcelHandler = ({
2275
2272
  onSettled
2276
2273
  }) => {
2277
2274
  const exportExcel = useExportExcel();
2278
- const env = getEnv4();
2279
2275
  const handleExport = () => {
2280
2276
  exportExcel.mutate(
2281
2277
  {
@@ -2356,7 +2352,7 @@ var useSaveFormHandler = ({
2356
2352
  };
2357
2353
 
2358
2354
  // src/widget/form/use-remove-row.tsx
2359
- import { getEnv as getEnv5, useRemoveRow } from "@fctc/interface-logic";
2355
+ import { useRemoveRow } from "@fctc/interface-logic";
2360
2356
  var useRemoveRowHandler = ({
2361
2357
  data,
2362
2358
  onSuccess,
@@ -2364,7 +2360,6 @@ var useRemoveRowHandler = ({
2364
2360
  onSettled
2365
2361
  }) => {
2366
2362
  const remove = useRemoveRow();
2367
- const env = getEnv5();
2368
2363
  const handleRemoveRow = () => {
2369
2364
  remove.mutate(
2370
2365
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fctc/widget-logic",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "main": "dist/index.cjs",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",