@fctc/widget-logic 4.5.6 → 4.5.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 -2
- package/dist/index.mjs +3 -2
- package/dist/widget.d.mts +1 -0
- package/dist/widget.d.ts +1 -0
- package/dist/widget.js +3 -2
- package/dist/widget.mjs +3 -2
- package/package.json +94 -94
package/dist/index.js
CHANGED
|
@@ -5348,7 +5348,8 @@ var many2oneFieldController = (props) => {
|
|
|
5348
5348
|
service,
|
|
5349
5349
|
xNode,
|
|
5350
5350
|
isForm,
|
|
5351
|
-
widget
|
|
5351
|
+
widget,
|
|
5352
|
+
in_list_view
|
|
5352
5353
|
} = props;
|
|
5353
5354
|
const { env } = (0, provider_exports.useEnv)();
|
|
5354
5355
|
const { action, user } = useAppProvider();
|
|
@@ -5435,7 +5436,7 @@ var many2oneFieldController = (props) => {
|
|
|
5435
5436
|
methods?.setValue(name, null, { shouldDirty: true });
|
|
5436
5437
|
setTempSelectedOption(null);
|
|
5437
5438
|
} else if (propValue) {
|
|
5438
|
-
if (isForm && optionsObject?.service && optionsObject?.model && !propValue?.display_name) {
|
|
5439
|
+
if (isForm && optionsObject?.service && optionsObject?.model && !propValue?.display_name && !in_list_view) {
|
|
5439
5440
|
fetchGetDetail.mutate(
|
|
5440
5441
|
{
|
|
5441
5442
|
model: optionsObject?.model,
|
package/dist/index.mjs
CHANGED
|
@@ -5443,7 +5443,8 @@ var many2oneFieldController = (props) => {
|
|
|
5443
5443
|
service,
|
|
5444
5444
|
xNode,
|
|
5445
5445
|
isForm,
|
|
5446
|
-
widget
|
|
5446
|
+
widget,
|
|
5447
|
+
in_list_view
|
|
5447
5448
|
} = props;
|
|
5448
5449
|
const { env } = (0, provider_exports.useEnv)();
|
|
5449
5450
|
const { action, user } = useAppProvider();
|
|
@@ -5530,7 +5531,7 @@ var many2oneFieldController = (props) => {
|
|
|
5530
5531
|
methods?.setValue(name, null, { shouldDirty: true });
|
|
5531
5532
|
setTempSelectedOption(null);
|
|
5532
5533
|
} else if (propValue) {
|
|
5533
|
-
if (isForm && optionsObject?.service && optionsObject?.model && !propValue?.display_name) {
|
|
5534
|
+
if (isForm && optionsObject?.service && optionsObject?.model && !propValue?.display_name && !in_list_view) {
|
|
5534
5535
|
fetchGetDetail.mutate(
|
|
5535
5536
|
{
|
|
5536
5537
|
model: optionsObject?.model,
|
package/dist/widget.d.mts
CHANGED
package/dist/widget.d.ts
CHANGED
package/dist/widget.js
CHANGED
|
@@ -4574,7 +4574,8 @@ var many2oneFieldController = (props) => {
|
|
|
4574
4574
|
service,
|
|
4575
4575
|
xNode,
|
|
4576
4576
|
isForm,
|
|
4577
|
-
widget
|
|
4577
|
+
widget,
|
|
4578
|
+
in_list_view
|
|
4578
4579
|
} = props;
|
|
4579
4580
|
const { env } = (0, provider_exports.useEnv)();
|
|
4580
4581
|
const { action, user } = useAppProvider();
|
|
@@ -4661,7 +4662,7 @@ var many2oneFieldController = (props) => {
|
|
|
4661
4662
|
methods?.setValue(name, null, { shouldDirty: true });
|
|
4662
4663
|
setTempSelectedOption(null);
|
|
4663
4664
|
} else if (propValue) {
|
|
4664
|
-
if (isForm && optionsObject?.service && optionsObject?.model && !propValue?.display_name) {
|
|
4665
|
+
if (isForm && optionsObject?.service && optionsObject?.model && !propValue?.display_name && !in_list_view) {
|
|
4665
4666
|
fetchGetDetail.mutate(
|
|
4666
4667
|
{
|
|
4667
4668
|
model: optionsObject?.model,
|
package/dist/widget.mjs
CHANGED
|
@@ -4646,7 +4646,8 @@ var many2oneFieldController = (props) => {
|
|
|
4646
4646
|
service,
|
|
4647
4647
|
xNode,
|
|
4648
4648
|
isForm,
|
|
4649
|
-
widget
|
|
4649
|
+
widget,
|
|
4650
|
+
in_list_view
|
|
4650
4651
|
} = props;
|
|
4651
4652
|
const { env } = (0, provider_exports.useEnv)();
|
|
4652
4653
|
const { action, user } = useAppProvider();
|
|
@@ -4733,7 +4734,7 @@ var many2oneFieldController = (props) => {
|
|
|
4733
4734
|
methods?.setValue(name, null, { shouldDirty: true });
|
|
4734
4735
|
setTempSelectedOption(null);
|
|
4735
4736
|
} else if (propValue) {
|
|
4736
|
-
if (isForm && optionsObject?.service && optionsObject?.model && !propValue?.display_name) {
|
|
4737
|
+
if (isForm && optionsObject?.service && optionsObject?.model && !propValue?.display_name && !in_list_view) {
|
|
4737
4738
|
fetchGetDetail.mutate(
|
|
4738
4739
|
{
|
|
4739
4740
|
model: optionsObject?.model,
|
package/package.json
CHANGED
|
@@ -1,94 +1,94 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@fctc/widget-logic",
|
|
3
|
-
"version": "4.5.
|
|
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": "^3.9.4",
|
|
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": "4.5.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": "^3.9.4",
|
|
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
|
+
}
|