@fctc/widget-logic 2.4.9 → 2.4.10
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.js +5 -1
- package/dist/hooks.mjs +5 -1
- package/dist/index.js +11 -20
- package/dist/index.mjs +11 -20
- package/dist/widget.d.mts +0 -4
- package/dist/widget.d.ts +0 -4
- package/dist/widget.js +6 -19
- package/dist/widget.mjs +6 -19
- package/package.json +96 -96
package/dist/hooks.js
CHANGED
|
@@ -170,7 +170,11 @@ var useMenu = ({
|
|
|
170
170
|
const { env } = (0, provider_exports.useEnv)();
|
|
171
171
|
const { useGetMenu: useGetMenu2 } = (0, provider_exports.useService)();
|
|
172
172
|
const [action, callAction] = useCallAction();
|
|
173
|
-
const menuData = useGetMenu2(
|
|
173
|
+
const menuData = useGetMenu2(
|
|
174
|
+
context,
|
|
175
|
+
specification,
|
|
176
|
+
!!context && Object.keys(context).length > 0
|
|
177
|
+
);
|
|
174
178
|
const [menuId, setMenuId] = (0, import_react2.useState)(void 0);
|
|
175
179
|
const configedIconData = (0, import_react2.useMemo)(() => {
|
|
176
180
|
const data = menuData.data;
|
package/dist/hooks.mjs
CHANGED
|
@@ -150,7 +150,11 @@ var useMenu = ({
|
|
|
150
150
|
const { env } = (0, provider_exports.useEnv)();
|
|
151
151
|
const { useGetMenu: useGetMenu2 } = (0, provider_exports.useService)();
|
|
152
152
|
const [action, callAction] = useCallAction();
|
|
153
|
-
const menuData = useGetMenu2(
|
|
153
|
+
const menuData = useGetMenu2(
|
|
154
|
+
context,
|
|
155
|
+
specification,
|
|
156
|
+
!!context && Object.keys(context).length > 0
|
|
157
|
+
);
|
|
154
158
|
const [menuId, setMenuId] = useState2(void 0);
|
|
155
159
|
const configedIconData = useMemo(() => {
|
|
156
160
|
const data = menuData.data;
|
package/dist/index.js
CHANGED
|
@@ -4220,7 +4220,11 @@ var useMenu = ({
|
|
|
4220
4220
|
const { env } = (0, provider_exports.useEnv)();
|
|
4221
4221
|
const { useGetMenu: useGetMenu2 } = (0, provider_exports.useService)();
|
|
4222
4222
|
const [action, callAction] = useCallAction();
|
|
4223
|
-
const menuData = useGetMenu2(
|
|
4223
|
+
const menuData = useGetMenu2(
|
|
4224
|
+
context,
|
|
4225
|
+
specification,
|
|
4226
|
+
!!context && Object.keys(context).length > 0
|
|
4227
|
+
);
|
|
4224
4228
|
const [menuId, setMenuId] = (0, import_react2.useState)(void 0);
|
|
4225
4229
|
const configedIconData = (0, import_react2.useMemo)(() => {
|
|
4226
4230
|
const data = menuData.data;
|
|
@@ -5292,9 +5296,7 @@ var many2oneFieldController = (props) => {
|
|
|
5292
5296
|
name,
|
|
5293
5297
|
context: fieldContext,
|
|
5294
5298
|
options: fieldOptions,
|
|
5295
|
-
showDetail
|
|
5296
|
-
service,
|
|
5297
|
-
xNode
|
|
5299
|
+
showDetail
|
|
5298
5300
|
} = props;
|
|
5299
5301
|
const { env } = (0, provider_exports.useEnv)();
|
|
5300
5302
|
const [options, setOptions] = (0, import_react16.useState)([]);
|
|
@@ -5325,7 +5327,6 @@ var many2oneFieldController = (props) => {
|
|
|
5325
5327
|
}
|
|
5326
5328
|
};
|
|
5327
5329
|
const queryKey = [`data_${relation}`, domainObject];
|
|
5328
|
-
console.log("data", data);
|
|
5329
5330
|
const {
|
|
5330
5331
|
data: dataOfSelection,
|
|
5331
5332
|
refetch,
|
|
@@ -5333,9 +5334,7 @@ var many2oneFieldController = (props) => {
|
|
|
5333
5334
|
} = useGetSelection3({
|
|
5334
5335
|
data,
|
|
5335
5336
|
queryKey,
|
|
5336
|
-
enabled: false
|
|
5337
|
-
service,
|
|
5338
|
-
xNode
|
|
5337
|
+
enabled: false
|
|
5339
5338
|
});
|
|
5340
5339
|
const selectOptions = (0, import_react16.useMemo)(() => {
|
|
5341
5340
|
return dataOfSelection?.records?.map((val) => ({
|
|
@@ -5462,7 +5461,7 @@ var import_environment2 = require("@fctc/interface-logic/environment");
|
|
|
5462
5461
|
var import_hooks6 = require("@fctc/interface-logic/hooks");
|
|
5463
5462
|
var import_utils7 = require("@fctc/interface-logic/utils");
|
|
5464
5463
|
var many2oneButtonController = (props) => {
|
|
5465
|
-
const { domain, methods, relation
|
|
5464
|
+
const { domain, methods, relation } = props;
|
|
5466
5465
|
const actionDataString = sessionStorage.getItem("actionData");
|
|
5467
5466
|
const env = (0, import_environment2.getEnv)();
|
|
5468
5467
|
const domainObject = (0, import_utils7.evalJSONDomain)(domain, methods?.getValues() || {});
|
|
@@ -5473,9 +5472,7 @@ var many2oneButtonController = (props) => {
|
|
|
5473
5472
|
domain: domainObject,
|
|
5474
5473
|
context: { ...env.context, ...(0, import_utils7.evalJSONContext)(actionData?.context) }
|
|
5475
5474
|
},
|
|
5476
|
-
queryKey: [`data_${relation}`, domainObject]
|
|
5477
|
-
service,
|
|
5478
|
-
xNode
|
|
5475
|
+
queryKey: [`data_${relation}`, domainObject]
|
|
5479
5476
|
});
|
|
5480
5477
|
const options = dataOfSelection?.records?.map((val) => ({
|
|
5481
5478
|
value: val.id,
|
|
@@ -5645,9 +5642,7 @@ var many2manyTagsController = (props) => {
|
|
|
5645
5642
|
options: optionsFields,
|
|
5646
5643
|
widget,
|
|
5647
5644
|
formValues,
|
|
5648
|
-
placeholderNoOption
|
|
5649
|
-
service,
|
|
5650
|
-
xNode
|
|
5645
|
+
placeholderNoOption
|
|
5651
5646
|
} = props;
|
|
5652
5647
|
const isUser = relation === "res.users" || relation === "res.partner";
|
|
5653
5648
|
const { env } = (0, provider_exports.useEnv)();
|
|
@@ -5670,12 +5665,9 @@ var many2manyTagsController = (props) => {
|
|
|
5670
5665
|
enabled: true,
|
|
5671
5666
|
context: env.context
|
|
5672
5667
|
};
|
|
5673
|
-
console.log("data", data);
|
|
5674
5668
|
const { data: dataOfSelection } = useGetSelection3({
|
|
5675
5669
|
data,
|
|
5676
|
-
queryKey: [`data_${relation}`, domainObject]
|
|
5677
|
-
service,
|
|
5678
|
-
xNode
|
|
5670
|
+
queryKey: [`data_${relation}`, domainObject]
|
|
5679
5671
|
});
|
|
5680
5672
|
const customNoOptionsMessage = () => placeholderNoOption;
|
|
5681
5673
|
const tranfer = (data2) => {
|
|
@@ -7143,7 +7135,6 @@ var tableGroupController = (props) => {
|
|
|
7143
7135
|
setSelectedRowKeys2([...clonedKeys, -1]);
|
|
7144
7136
|
setTimeout(() => setSelectedRowKeys2(clonedKeys), 500);
|
|
7145
7137
|
} else if (isShowGroup && selectedRowKeys?.length > 0 && typeTableGroup === "list" && !checkedAll && !allIdsNull) {
|
|
7146
|
-
console.log("abc");
|
|
7147
7138
|
const filteredKeys = selectedRowKeys.filter((id) => id > -1);
|
|
7148
7139
|
setSelectedRowKeys2(filteredKeys);
|
|
7149
7140
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -4294,7 +4294,11 @@ var useMenu = ({
|
|
|
4294
4294
|
const { env } = (0, provider_exports.useEnv)();
|
|
4295
4295
|
const { useGetMenu: useGetMenu2 } = (0, provider_exports.useService)();
|
|
4296
4296
|
const [action, callAction] = useCallAction();
|
|
4297
|
-
const menuData = useGetMenu2(
|
|
4297
|
+
const menuData = useGetMenu2(
|
|
4298
|
+
context,
|
|
4299
|
+
specification,
|
|
4300
|
+
!!context && Object.keys(context).length > 0
|
|
4301
|
+
);
|
|
4298
4302
|
const [menuId, setMenuId] = useState2(void 0);
|
|
4299
4303
|
const configedIconData = useMemo(() => {
|
|
4300
4304
|
const data = menuData.data;
|
|
@@ -5373,9 +5377,7 @@ var many2oneFieldController = (props) => {
|
|
|
5373
5377
|
name,
|
|
5374
5378
|
context: fieldContext,
|
|
5375
5379
|
options: fieldOptions,
|
|
5376
|
-
showDetail
|
|
5377
|
-
service,
|
|
5378
|
-
xNode
|
|
5380
|
+
showDetail
|
|
5379
5381
|
} = props;
|
|
5380
5382
|
const { env } = (0, provider_exports.useEnv)();
|
|
5381
5383
|
const [options, setOptions] = useState7([]);
|
|
@@ -5406,7 +5408,6 @@ var many2oneFieldController = (props) => {
|
|
|
5406
5408
|
}
|
|
5407
5409
|
};
|
|
5408
5410
|
const queryKey = [`data_${relation}`, domainObject];
|
|
5409
|
-
console.log("data", data);
|
|
5410
5411
|
const {
|
|
5411
5412
|
data: dataOfSelection,
|
|
5412
5413
|
refetch,
|
|
@@ -5414,9 +5415,7 @@ var many2oneFieldController = (props) => {
|
|
|
5414
5415
|
} = useGetSelection3({
|
|
5415
5416
|
data,
|
|
5416
5417
|
queryKey,
|
|
5417
|
-
enabled: false
|
|
5418
|
-
service,
|
|
5419
|
-
xNode
|
|
5418
|
+
enabled: false
|
|
5420
5419
|
});
|
|
5421
5420
|
const selectOptions = useMemo8(() => {
|
|
5422
5421
|
return dataOfSelection?.records?.map((val) => ({
|
|
@@ -5543,7 +5542,7 @@ import { getEnv as getEnv2 } from "@fctc/interface-logic/environment";
|
|
|
5543
5542
|
import { useGetSelection as useGetSelection2 } from "@fctc/interface-logic/hooks";
|
|
5544
5543
|
import { evalJSONDomain as evalJSONDomain3, evalJSONContext as evalJSONContext3 } from "@fctc/interface-logic/utils";
|
|
5545
5544
|
var many2oneButtonController = (props) => {
|
|
5546
|
-
const { domain, methods, relation
|
|
5545
|
+
const { domain, methods, relation } = props;
|
|
5547
5546
|
const actionDataString = sessionStorage.getItem("actionData");
|
|
5548
5547
|
const env = getEnv2();
|
|
5549
5548
|
const domainObject = evalJSONDomain3(domain, methods?.getValues() || {});
|
|
@@ -5554,9 +5553,7 @@ var many2oneButtonController = (props) => {
|
|
|
5554
5553
|
domain: domainObject,
|
|
5555
5554
|
context: { ...env.context, ...evalJSONContext3(actionData?.context) }
|
|
5556
5555
|
},
|
|
5557
|
-
queryKey: [`data_${relation}`, domainObject]
|
|
5558
|
-
service,
|
|
5559
|
-
xNode
|
|
5556
|
+
queryKey: [`data_${relation}`, domainObject]
|
|
5560
5557
|
});
|
|
5561
5558
|
const options = dataOfSelection?.records?.map((val) => ({
|
|
5562
5559
|
value: val.id,
|
|
@@ -5730,9 +5727,7 @@ var many2manyTagsController = (props) => {
|
|
|
5730
5727
|
options: optionsFields,
|
|
5731
5728
|
widget,
|
|
5732
5729
|
formValues,
|
|
5733
|
-
placeholderNoOption
|
|
5734
|
-
service,
|
|
5735
|
-
xNode
|
|
5730
|
+
placeholderNoOption
|
|
5736
5731
|
} = props;
|
|
5737
5732
|
const isUser = relation === "res.users" || relation === "res.partner";
|
|
5738
5733
|
const { env } = (0, provider_exports.useEnv)();
|
|
@@ -5755,12 +5750,9 @@ var many2manyTagsController = (props) => {
|
|
|
5755
5750
|
enabled: true,
|
|
5756
5751
|
context: env.context
|
|
5757
5752
|
};
|
|
5758
|
-
console.log("data", data);
|
|
5759
5753
|
const { data: dataOfSelection } = useGetSelection3({
|
|
5760
5754
|
data,
|
|
5761
|
-
queryKey: [`data_${relation}`, domainObject]
|
|
5762
|
-
service,
|
|
5763
|
-
xNode
|
|
5755
|
+
queryKey: [`data_${relation}`, domainObject]
|
|
5764
5756
|
});
|
|
5765
5757
|
const customNoOptionsMessage = () => placeholderNoOption;
|
|
5766
5758
|
const tranfer = (data2) => {
|
|
@@ -7231,7 +7223,6 @@ var tableGroupController = (props) => {
|
|
|
7231
7223
|
setSelectedRowKeys2([...clonedKeys, -1]);
|
|
7232
7224
|
setTimeout(() => setSelectedRowKeys2(clonedKeys), 500);
|
|
7233
7225
|
} else if (isShowGroup && selectedRowKeys?.length > 0 && typeTableGroup === "list" && !checkedAll && !allIdsNull) {
|
|
7234
|
-
console.log("abc");
|
|
7235
7226
|
const filteredKeys = selectedRowKeys.filter((id) => id > -1);
|
|
7236
7227
|
setSelectedRowKeys2(filteredKeys);
|
|
7237
7228
|
}
|
package/dist/widget.d.mts
CHANGED
|
@@ -28,8 +28,6 @@ interface IMany2OneProps extends IInputFieldProps {
|
|
|
28
28
|
showDetail?: boolean;
|
|
29
29
|
actionData?: any;
|
|
30
30
|
sessionStorageUtils?: any;
|
|
31
|
-
service?: string;
|
|
32
|
-
xNode?: string;
|
|
33
31
|
}
|
|
34
32
|
|
|
35
33
|
declare const many2oneFieldController: (props: IMany2OneProps) => {
|
|
@@ -108,8 +106,6 @@ declare const many2manyFieldController: (props: IMany2ManyControllerProps) => {
|
|
|
108
106
|
interface IMany2ManyTagFieldProps extends IInputFieldProps {
|
|
109
107
|
options: any;
|
|
110
108
|
placeholderNoOption: string;
|
|
111
|
-
service?: string;
|
|
112
|
-
xNode?: string;
|
|
113
109
|
}
|
|
114
110
|
|
|
115
111
|
declare const many2manyTagsController: (props: IMany2ManyTagFieldProps) => {
|
package/dist/widget.d.ts
CHANGED
|
@@ -28,8 +28,6 @@ interface IMany2OneProps extends IInputFieldProps {
|
|
|
28
28
|
showDetail?: boolean;
|
|
29
29
|
actionData?: any;
|
|
30
30
|
sessionStorageUtils?: any;
|
|
31
|
-
service?: string;
|
|
32
|
-
xNode?: string;
|
|
33
31
|
}
|
|
34
32
|
|
|
35
33
|
declare const many2oneFieldController: (props: IMany2OneProps) => {
|
|
@@ -108,8 +106,6 @@ declare const many2manyFieldController: (props: IMany2ManyControllerProps) => {
|
|
|
108
106
|
interface IMany2ManyTagFieldProps extends IInputFieldProps {
|
|
109
107
|
options: any;
|
|
110
108
|
placeholderNoOption: string;
|
|
111
|
-
service?: string;
|
|
112
|
-
xNode?: string;
|
|
113
109
|
}
|
|
114
110
|
|
|
115
111
|
declare const many2manyTagsController: (props: IMany2ManyTagFieldProps) => {
|
package/dist/widget.js
CHANGED
|
@@ -4447,9 +4447,7 @@ var many2oneFieldController = (props) => {
|
|
|
4447
4447
|
name,
|
|
4448
4448
|
context: fieldContext,
|
|
4449
4449
|
options: fieldOptions,
|
|
4450
|
-
showDetail
|
|
4451
|
-
service,
|
|
4452
|
-
xNode
|
|
4450
|
+
showDetail
|
|
4453
4451
|
} = props;
|
|
4454
4452
|
const { env } = (0, provider_exports.useEnv)();
|
|
4455
4453
|
const [options, setOptions] = (0, import_react16.useState)([]);
|
|
@@ -4480,7 +4478,6 @@ var many2oneFieldController = (props) => {
|
|
|
4480
4478
|
}
|
|
4481
4479
|
};
|
|
4482
4480
|
const queryKey = [`data_${relation}`, domainObject];
|
|
4483
|
-
console.log("data", data);
|
|
4484
4481
|
const {
|
|
4485
4482
|
data: dataOfSelection,
|
|
4486
4483
|
refetch,
|
|
@@ -4488,9 +4485,7 @@ var many2oneFieldController = (props) => {
|
|
|
4488
4485
|
} = useGetSelection3({
|
|
4489
4486
|
data,
|
|
4490
4487
|
queryKey,
|
|
4491
|
-
enabled: false
|
|
4492
|
-
service,
|
|
4493
|
-
xNode
|
|
4488
|
+
enabled: false
|
|
4494
4489
|
});
|
|
4495
4490
|
const selectOptions = (0, import_react16.useMemo)(() => {
|
|
4496
4491
|
return dataOfSelection?.records?.map((val) => ({
|
|
@@ -4617,7 +4612,7 @@ var import_environment2 = require("@fctc/interface-logic/environment");
|
|
|
4617
4612
|
var import_hooks6 = require("@fctc/interface-logic/hooks");
|
|
4618
4613
|
var import_utils7 = require("@fctc/interface-logic/utils");
|
|
4619
4614
|
var many2oneButtonController = (props) => {
|
|
4620
|
-
const { domain, methods, relation
|
|
4615
|
+
const { domain, methods, relation } = props;
|
|
4621
4616
|
const actionDataString = sessionStorage.getItem("actionData");
|
|
4622
4617
|
const env = (0, import_environment2.getEnv)();
|
|
4623
4618
|
const domainObject = (0, import_utils7.evalJSONDomain)(domain, methods?.getValues() || {});
|
|
@@ -4628,9 +4623,7 @@ var many2oneButtonController = (props) => {
|
|
|
4628
4623
|
domain: domainObject,
|
|
4629
4624
|
context: { ...env.context, ...(0, import_utils7.evalJSONContext)(actionData?.context) }
|
|
4630
4625
|
},
|
|
4631
|
-
queryKey: [`data_${relation}`, domainObject]
|
|
4632
|
-
service,
|
|
4633
|
-
xNode
|
|
4626
|
+
queryKey: [`data_${relation}`, domainObject]
|
|
4634
4627
|
});
|
|
4635
4628
|
const options = dataOfSelection?.records?.map((val) => ({
|
|
4636
4629
|
value: val.id,
|
|
@@ -4800,9 +4793,7 @@ var many2manyTagsController = (props) => {
|
|
|
4800
4793
|
options: optionsFields,
|
|
4801
4794
|
widget,
|
|
4802
4795
|
formValues,
|
|
4803
|
-
placeholderNoOption
|
|
4804
|
-
service,
|
|
4805
|
-
xNode
|
|
4796
|
+
placeholderNoOption
|
|
4806
4797
|
} = props;
|
|
4807
4798
|
const isUser = relation === "res.users" || relation === "res.partner";
|
|
4808
4799
|
const { env } = (0, provider_exports.useEnv)();
|
|
@@ -4825,12 +4816,9 @@ var many2manyTagsController = (props) => {
|
|
|
4825
4816
|
enabled: true,
|
|
4826
4817
|
context: env.context
|
|
4827
4818
|
};
|
|
4828
|
-
console.log("data", data);
|
|
4829
4819
|
const { data: dataOfSelection } = useGetSelection3({
|
|
4830
4820
|
data,
|
|
4831
|
-
queryKey: [`data_${relation}`, domainObject]
|
|
4832
|
-
service,
|
|
4833
|
-
xNode
|
|
4821
|
+
queryKey: [`data_${relation}`, domainObject]
|
|
4834
4822
|
});
|
|
4835
4823
|
const customNoOptionsMessage = () => placeholderNoOption;
|
|
4836
4824
|
const tranfer = (data2) => {
|
|
@@ -6298,7 +6286,6 @@ var tableGroupController = (props) => {
|
|
|
6298
6286
|
setSelectedRowKeys2([...clonedKeys, -1]);
|
|
6299
6287
|
setTimeout(() => setSelectedRowKeys2(clonedKeys), 500);
|
|
6300
6288
|
} else if (isShowGroup && selectedRowKeys?.length > 0 && typeTableGroup === "list" && !checkedAll && !allIdsNull) {
|
|
6301
|
-
console.log("abc");
|
|
6302
6289
|
const filteredKeys = selectedRowKeys.filter((id) => id > -1);
|
|
6303
6290
|
setSelectedRowKeys2(filteredKeys);
|
|
6304
6291
|
}
|
package/dist/widget.mjs
CHANGED
|
@@ -4505,9 +4505,7 @@ var many2oneFieldController = (props) => {
|
|
|
4505
4505
|
name,
|
|
4506
4506
|
context: fieldContext,
|
|
4507
4507
|
options: fieldOptions,
|
|
4508
|
-
showDetail
|
|
4509
|
-
service,
|
|
4510
|
-
xNode
|
|
4508
|
+
showDetail
|
|
4511
4509
|
} = props;
|
|
4512
4510
|
const { env } = (0, provider_exports.useEnv)();
|
|
4513
4511
|
const [options, setOptions] = useState7([]);
|
|
@@ -4538,7 +4536,6 @@ var many2oneFieldController = (props) => {
|
|
|
4538
4536
|
}
|
|
4539
4537
|
};
|
|
4540
4538
|
const queryKey = [`data_${relation}`, domainObject];
|
|
4541
|
-
console.log("data", data);
|
|
4542
4539
|
const {
|
|
4543
4540
|
data: dataOfSelection,
|
|
4544
4541
|
refetch,
|
|
@@ -4546,9 +4543,7 @@ var many2oneFieldController = (props) => {
|
|
|
4546
4543
|
} = useGetSelection3({
|
|
4547
4544
|
data,
|
|
4548
4545
|
queryKey,
|
|
4549
|
-
enabled: false
|
|
4550
|
-
service,
|
|
4551
|
-
xNode
|
|
4546
|
+
enabled: false
|
|
4552
4547
|
});
|
|
4553
4548
|
const selectOptions = useMemo8(() => {
|
|
4554
4549
|
return dataOfSelection?.records?.map((val) => ({
|
|
@@ -4675,7 +4670,7 @@ import { getEnv as getEnv2 } from "@fctc/interface-logic/environment";
|
|
|
4675
4670
|
import { useGetSelection as useGetSelection2 } from "@fctc/interface-logic/hooks";
|
|
4676
4671
|
import { evalJSONDomain as evalJSONDomain3, evalJSONContext as evalJSONContext3 } from "@fctc/interface-logic/utils";
|
|
4677
4672
|
var many2oneButtonController = (props) => {
|
|
4678
|
-
const { domain, methods, relation
|
|
4673
|
+
const { domain, methods, relation } = props;
|
|
4679
4674
|
const actionDataString = sessionStorage.getItem("actionData");
|
|
4680
4675
|
const env = getEnv2();
|
|
4681
4676
|
const domainObject = evalJSONDomain3(domain, methods?.getValues() || {});
|
|
@@ -4686,9 +4681,7 @@ var many2oneButtonController = (props) => {
|
|
|
4686
4681
|
domain: domainObject,
|
|
4687
4682
|
context: { ...env.context, ...evalJSONContext3(actionData?.context) }
|
|
4688
4683
|
},
|
|
4689
|
-
queryKey: [`data_${relation}`, domainObject]
|
|
4690
|
-
service,
|
|
4691
|
-
xNode
|
|
4684
|
+
queryKey: [`data_${relation}`, domainObject]
|
|
4692
4685
|
});
|
|
4693
4686
|
const options = dataOfSelection?.records?.map((val) => ({
|
|
4694
4687
|
value: val.id,
|
|
@@ -4862,9 +4855,7 @@ var many2manyTagsController = (props) => {
|
|
|
4862
4855
|
options: optionsFields,
|
|
4863
4856
|
widget,
|
|
4864
4857
|
formValues,
|
|
4865
|
-
placeholderNoOption
|
|
4866
|
-
service,
|
|
4867
|
-
xNode
|
|
4858
|
+
placeholderNoOption
|
|
4868
4859
|
} = props;
|
|
4869
4860
|
const isUser = relation === "res.users" || relation === "res.partner";
|
|
4870
4861
|
const { env } = (0, provider_exports.useEnv)();
|
|
@@ -4887,12 +4878,9 @@ var many2manyTagsController = (props) => {
|
|
|
4887
4878
|
enabled: true,
|
|
4888
4879
|
context: env.context
|
|
4889
4880
|
};
|
|
4890
|
-
console.log("data", data);
|
|
4891
4881
|
const { data: dataOfSelection } = useGetSelection3({
|
|
4892
4882
|
data,
|
|
4893
|
-
queryKey: [`data_${relation}`, domainObject]
|
|
4894
|
-
service,
|
|
4895
|
-
xNode
|
|
4883
|
+
queryKey: [`data_${relation}`, domainObject]
|
|
4896
4884
|
});
|
|
4897
4885
|
const customNoOptionsMessage = () => placeholderNoOption;
|
|
4898
4886
|
const tranfer = (data2) => {
|
|
@@ -6363,7 +6351,6 @@ var tableGroupController = (props) => {
|
|
|
6363
6351
|
setSelectedRowKeys2([...clonedKeys, -1]);
|
|
6364
6352
|
setTimeout(() => setSelectedRowKeys2(clonedKeys), 500);
|
|
6365
6353
|
} else if (isShowGroup && selectedRowKeys?.length > 0 && typeTableGroup === "list" && !checkedAll && !allIdsNull) {
|
|
6366
|
-
console.log("abc");
|
|
6367
6354
|
const filteredKeys = selectedRowKeys.filter((id) => id > -1);
|
|
6368
6355
|
setSelectedRowKeys2(filteredKeys);
|
|
6369
6356
|
}
|
package/package.json
CHANGED
|
@@ -1,96 +1,96 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@fctc/widget-logic",
|
|
3
|
-
"version": "2.4.
|
|
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.
|
|
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
|
-
"@fctc/interface-logic": "^1.6.9"
|
|
95
|
-
}
|
|
96
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@fctc/widget-logic",
|
|
3
|
+
"version": "2.4.10",
|
|
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.4.7",
|
|
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
|
+
"@fctc/interface-logic": "^1.6.9"
|
|
95
|
+
}
|
|
96
|
+
}
|