@fctc/widget-logic 3.2.6 → 3.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/index.js +3 -3
- package/dist/index.mjs +3 -3
- package/dist/widget.d.mts +1 -1
- package/dist/widget.d.ts +1 -1
- package/dist/widget.js +3 -3
- package/dist/widget.mjs +3 -3
- package/package.json +94 -94
package/dist/index.js
CHANGED
|
@@ -5377,7 +5377,7 @@ var many2oneFieldController = (props) => {
|
|
|
5377
5377
|
JSON.parse(JSON.stringify({ ...formValues, context: contextObject })) ?? {}
|
|
5378
5378
|
)
|
|
5379
5379
|
);
|
|
5380
|
-
}, [domain]);
|
|
5380
|
+
}, [domain, formValues]);
|
|
5381
5381
|
(0, import_react16.useEffect)(() => {
|
|
5382
5382
|
if (!propValue && tempSelectedOption) {
|
|
5383
5383
|
methods.setValue(name, null);
|
|
@@ -5673,7 +5673,7 @@ var many2manyTagsController = (props) => {
|
|
|
5673
5673
|
xNode
|
|
5674
5674
|
});
|
|
5675
5675
|
const customNoOptionsMessage = () => placeholderNoOption;
|
|
5676
|
-
const
|
|
5676
|
+
const transfer = (data2) => {
|
|
5677
5677
|
return data2?.map((val) => ({
|
|
5678
5678
|
id: val.value,
|
|
5679
5679
|
display_name: val.label
|
|
@@ -5687,7 +5687,7 @@ var many2manyTagsController = (props) => {
|
|
|
5687
5687
|
return {
|
|
5688
5688
|
options,
|
|
5689
5689
|
customNoOptionsMessage,
|
|
5690
|
-
|
|
5690
|
+
transfer,
|
|
5691
5691
|
isUser
|
|
5692
5692
|
};
|
|
5693
5693
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -5458,7 +5458,7 @@ var many2oneFieldController = (props) => {
|
|
|
5458
5458
|
JSON.parse(JSON.stringify({ ...formValues, context: contextObject })) ?? {}
|
|
5459
5459
|
)
|
|
5460
5460
|
);
|
|
5461
|
-
}, [domain]);
|
|
5461
|
+
}, [domain, formValues]);
|
|
5462
5462
|
useEffect10(() => {
|
|
5463
5463
|
if (!propValue && tempSelectedOption) {
|
|
5464
5464
|
methods.setValue(name, null);
|
|
@@ -5754,7 +5754,7 @@ var many2manyTagsController = (props) => {
|
|
|
5754
5754
|
xNode
|
|
5755
5755
|
});
|
|
5756
5756
|
const customNoOptionsMessage = () => placeholderNoOption;
|
|
5757
|
-
const
|
|
5757
|
+
const transfer = (data2) => {
|
|
5758
5758
|
return data2?.map((val) => ({
|
|
5759
5759
|
id: val.value,
|
|
5760
5760
|
display_name: val.label
|
|
@@ -5768,7 +5768,7 @@ var many2manyTagsController = (props) => {
|
|
|
5768
5768
|
return {
|
|
5769
5769
|
options,
|
|
5770
5770
|
customNoOptionsMessage,
|
|
5771
|
-
|
|
5771
|
+
transfer,
|
|
5772
5772
|
isUser
|
|
5773
5773
|
};
|
|
5774
5774
|
};
|
package/dist/widget.d.mts
CHANGED
|
@@ -121,7 +121,7 @@ interface IMany2ManyTagFieldProps extends IInputFieldProps {
|
|
|
121
121
|
declare const many2manyTagsController: (props: IMany2ManyTagFieldProps) => {
|
|
122
122
|
options: any;
|
|
123
123
|
customNoOptionsMessage: () => string;
|
|
124
|
-
|
|
124
|
+
transfer: (data: any) => any;
|
|
125
125
|
isUser: boolean;
|
|
126
126
|
};
|
|
127
127
|
|
package/dist/widget.d.ts
CHANGED
|
@@ -121,7 +121,7 @@ interface IMany2ManyTagFieldProps extends IInputFieldProps {
|
|
|
121
121
|
declare const many2manyTagsController: (props: IMany2ManyTagFieldProps) => {
|
|
122
122
|
options: any;
|
|
123
123
|
customNoOptionsMessage: () => string;
|
|
124
|
-
|
|
124
|
+
transfer: (data: any) => any;
|
|
125
125
|
isUser: boolean;
|
|
126
126
|
};
|
|
127
127
|
|
package/dist/widget.js
CHANGED
|
@@ -4622,7 +4622,7 @@ var many2oneFieldController = (props) => {
|
|
|
4622
4622
|
JSON.parse(JSON.stringify({ ...formValues, context: contextObject })) ?? {}
|
|
4623
4623
|
)
|
|
4624
4624
|
);
|
|
4625
|
-
}, [domain]);
|
|
4625
|
+
}, [domain, formValues]);
|
|
4626
4626
|
(0, import_react16.useEffect)(() => {
|
|
4627
4627
|
if (!propValue && tempSelectedOption) {
|
|
4628
4628
|
methods.setValue(name, null);
|
|
@@ -4918,7 +4918,7 @@ var many2manyTagsController = (props) => {
|
|
|
4918
4918
|
xNode
|
|
4919
4919
|
});
|
|
4920
4920
|
const customNoOptionsMessage = () => placeholderNoOption;
|
|
4921
|
-
const
|
|
4921
|
+
const transfer = (data2) => {
|
|
4922
4922
|
return data2?.map((val) => ({
|
|
4923
4923
|
id: val.value,
|
|
4924
4924
|
display_name: val.label
|
|
@@ -4932,7 +4932,7 @@ var many2manyTagsController = (props) => {
|
|
|
4932
4932
|
return {
|
|
4933
4933
|
options,
|
|
4934
4934
|
customNoOptionsMessage,
|
|
4935
|
-
|
|
4935
|
+
transfer,
|
|
4936
4936
|
isUser
|
|
4937
4937
|
};
|
|
4938
4938
|
};
|
package/dist/widget.mjs
CHANGED
|
@@ -4680,7 +4680,7 @@ var many2oneFieldController = (props) => {
|
|
|
4680
4680
|
JSON.parse(JSON.stringify({ ...formValues, context: contextObject })) ?? {}
|
|
4681
4681
|
)
|
|
4682
4682
|
);
|
|
4683
|
-
}, [domain]);
|
|
4683
|
+
}, [domain, formValues]);
|
|
4684
4684
|
useEffect10(() => {
|
|
4685
4685
|
if (!propValue && tempSelectedOption) {
|
|
4686
4686
|
methods.setValue(name, null);
|
|
@@ -4976,7 +4976,7 @@ var many2manyTagsController = (props) => {
|
|
|
4976
4976
|
xNode
|
|
4977
4977
|
});
|
|
4978
4978
|
const customNoOptionsMessage = () => placeholderNoOption;
|
|
4979
|
-
const
|
|
4979
|
+
const transfer = (data2) => {
|
|
4980
4980
|
return data2?.map((val) => ({
|
|
4981
4981
|
id: val.value,
|
|
4982
4982
|
display_name: val.label
|
|
@@ -4990,7 +4990,7 @@ var many2manyTagsController = (props) => {
|
|
|
4990
4990
|
return {
|
|
4991
4991
|
options,
|
|
4992
4992
|
customNoOptionsMessage,
|
|
4993
|
-
|
|
4993
|
+
transfer,
|
|
4994
4994
|
isUser
|
|
4995
4995
|
};
|
|
4996
4996
|
};
|
package/package.json
CHANGED
|
@@ -1,94 +1,94 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@fctc/widget-logic",
|
|
3
|
-
"version": "3.2.
|
|
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
|
-
"./hooks": {
|
|
14
|
-
"types": "./dist/hooks.d.ts",
|
|
15
|
-
"import": "./dist/hooks.mjs",
|
|
16
|
-
"require": "./dist/hooks.cjs"
|
|
17
|
-
},
|
|
18
|
-
"./widget": {
|
|
19
|
-
"types": "./dist/widget.d.ts",
|
|
20
|
-
"import": "./dist/widget.mjs",
|
|
21
|
-
"require": "./dist/widget.cjs"
|
|
22
|
-
},
|
|
23
|
-
"./icons": {
|
|
24
|
-
"types": "./dist/icons.d.ts",
|
|
25
|
-
"import": "./dist/icons.mjs",
|
|
26
|
-
"require": "./dist/icons.cjs"
|
|
27
|
-
},
|
|
28
|
-
"./utils": {
|
|
29
|
-
"types": "./dist/utils.d.ts",
|
|
30
|
-
"import": "./dist/utils.mjs",
|
|
31
|
-
"require": "./dist/utils.cjs"
|
|
32
|
-
},
|
|
33
|
-
"./store": {
|
|
34
|
-
"types": "./dist/store.d.ts",
|
|
35
|
-
"import": "./dist/store.mjs",
|
|
36
|
-
"require": "./dist/store.cjs"
|
|
37
|
-
},
|
|
38
|
-
"./config": {
|
|
39
|
-
"types": "./dist/config.d.ts",
|
|
40
|
-
"import": "./dist/config.mjs",
|
|
41
|
-
"require": "./dist/config.cjs"
|
|
42
|
-
},
|
|
43
|
-
"./constants": {
|
|
44
|
-
"types": "./dist/constants.d.ts",
|
|
45
|
-
"import": "./dist/constants.mjs",
|
|
46
|
-
"require": "./dist/constants.cjs"
|
|
47
|
-
},
|
|
48
|
-
"./environment": {
|
|
49
|
-
"types": "./dist/environment.d.ts",
|
|
50
|
-
"import": "./dist/environment.mjs",
|
|
51
|
-
"require": "./dist/environment.cjs"
|
|
52
|
-
},
|
|
53
|
-
"./provider": {
|
|
54
|
-
"types": "./dist/provider.d.ts",
|
|
55
|
-
"import": "./dist/provider.mjs",
|
|
56
|
-
"require": "./dist/provider.cjs"
|
|
57
|
-
},
|
|
58
|
-
"./services": {
|
|
59
|
-
"types": "./dist/services.d.ts",
|
|
60
|
-
"import": "./dist/services.mjs",
|
|
61
|
-
"require": "./dist/services.cjs"
|
|
62
|
-
},
|
|
63
|
-
"./types": {
|
|
64
|
-
"types": "./dist/types.d.ts",
|
|
65
|
-
"import": "./dist/types.mjs",
|
|
66
|
-
"require": "./dist/types.cjs"
|
|
67
|
-
}
|
|
68
|
-
},
|
|
69
|
-
"files": [
|
|
70
|
-
"dist"
|
|
71
|
-
],
|
|
72
|
-
"scripts": {
|
|
73
|
-
"build": "tsup",
|
|
74
|
-
"test": "jest"
|
|
75
|
-
},
|
|
76
|
-
"dependencies": {
|
|
77
|
-
"@fctc/interface-logic": "^2.8.9",
|
|
78
|
-
"@headlessui/react": "^2.2.6",
|
|
79
|
-
"@tanstack/react-query": "^5.84.0",
|
|
80
|
-
"i18next": "^25.3.2",
|
|
81
|
-
"i18next-browser-languagedetector": "^8.2.0",
|
|
82
|
-
"react-i18next": "^15.6.1",
|
|
83
|
-
"react-tooltip": "^5.29.1"
|
|
84
|
-
},
|
|
85
|
-
"devDependencies": {
|
|
86
|
-
"@types/react": "^18.3.1",
|
|
87
|
-
"jest": "^29.7.0",
|
|
88
|
-
"react": "18.0.0",
|
|
89
|
-
"tsup": "^8.0.0",
|
|
90
|
-
"typescript": "^5.8.2"
|
|
91
|
-
},
|
|
92
|
-
"packageManager": "yarn@1.22.0",
|
|
93
|
-
"peerDependencies": {}
|
|
94
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@fctc/widget-logic",
|
|
3
|
+
"version": "3.2.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
|
+
"./hooks": {
|
|
14
|
+
"types": "./dist/hooks.d.ts",
|
|
15
|
+
"import": "./dist/hooks.mjs",
|
|
16
|
+
"require": "./dist/hooks.cjs"
|
|
17
|
+
},
|
|
18
|
+
"./widget": {
|
|
19
|
+
"types": "./dist/widget.d.ts",
|
|
20
|
+
"import": "./dist/widget.mjs",
|
|
21
|
+
"require": "./dist/widget.cjs"
|
|
22
|
+
},
|
|
23
|
+
"./icons": {
|
|
24
|
+
"types": "./dist/icons.d.ts",
|
|
25
|
+
"import": "./dist/icons.mjs",
|
|
26
|
+
"require": "./dist/icons.cjs"
|
|
27
|
+
},
|
|
28
|
+
"./utils": {
|
|
29
|
+
"types": "./dist/utils.d.ts",
|
|
30
|
+
"import": "./dist/utils.mjs",
|
|
31
|
+
"require": "./dist/utils.cjs"
|
|
32
|
+
},
|
|
33
|
+
"./store": {
|
|
34
|
+
"types": "./dist/store.d.ts",
|
|
35
|
+
"import": "./dist/store.mjs",
|
|
36
|
+
"require": "./dist/store.cjs"
|
|
37
|
+
},
|
|
38
|
+
"./config": {
|
|
39
|
+
"types": "./dist/config.d.ts",
|
|
40
|
+
"import": "./dist/config.mjs",
|
|
41
|
+
"require": "./dist/config.cjs"
|
|
42
|
+
},
|
|
43
|
+
"./constants": {
|
|
44
|
+
"types": "./dist/constants.d.ts",
|
|
45
|
+
"import": "./dist/constants.mjs",
|
|
46
|
+
"require": "./dist/constants.cjs"
|
|
47
|
+
},
|
|
48
|
+
"./environment": {
|
|
49
|
+
"types": "./dist/environment.d.ts",
|
|
50
|
+
"import": "./dist/environment.mjs",
|
|
51
|
+
"require": "./dist/environment.cjs"
|
|
52
|
+
},
|
|
53
|
+
"./provider": {
|
|
54
|
+
"types": "./dist/provider.d.ts",
|
|
55
|
+
"import": "./dist/provider.mjs",
|
|
56
|
+
"require": "./dist/provider.cjs"
|
|
57
|
+
},
|
|
58
|
+
"./services": {
|
|
59
|
+
"types": "./dist/services.d.ts",
|
|
60
|
+
"import": "./dist/services.mjs",
|
|
61
|
+
"require": "./dist/services.cjs"
|
|
62
|
+
},
|
|
63
|
+
"./types": {
|
|
64
|
+
"types": "./dist/types.d.ts",
|
|
65
|
+
"import": "./dist/types.mjs",
|
|
66
|
+
"require": "./dist/types.cjs"
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
"files": [
|
|
70
|
+
"dist"
|
|
71
|
+
],
|
|
72
|
+
"scripts": {
|
|
73
|
+
"build": "tsup",
|
|
74
|
+
"test": "jest"
|
|
75
|
+
},
|
|
76
|
+
"dependencies": {
|
|
77
|
+
"@fctc/interface-logic": "^2.8.9",
|
|
78
|
+
"@headlessui/react": "^2.2.6",
|
|
79
|
+
"@tanstack/react-query": "^5.84.0",
|
|
80
|
+
"i18next": "^25.3.2",
|
|
81
|
+
"i18next-browser-languagedetector": "^8.2.0",
|
|
82
|
+
"react-i18next": "^15.6.1",
|
|
83
|
+
"react-tooltip": "^5.29.1"
|
|
84
|
+
},
|
|
85
|
+
"devDependencies": {
|
|
86
|
+
"@types/react": "^18.3.1",
|
|
87
|
+
"jest": "^29.7.0",
|
|
88
|
+
"react": "18.0.0",
|
|
89
|
+
"tsup": "^8.0.0",
|
|
90
|
+
"typescript": "^5.8.2"
|
|
91
|
+
},
|
|
92
|
+
"packageManager": "yarn@1.22.0",
|
|
93
|
+
"peerDependencies": {}
|
|
94
|
+
}
|