@fctc/widget-logic 1.9.6 → 1.9.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 +63 -105
- package/dist/index.mjs +53 -100
- package/dist/types.d.mts +1 -0
- package/dist/types.d.ts +1 -0
- package/dist/widget.d.mts +9 -9
- package/dist/widget.d.ts +9 -9
- package/dist/widget.js +63 -105
- package/dist/widget.mjs +53 -100
- package/package.json +1 -1
package/dist/widget.js
CHANGED
|
@@ -4972,6 +4972,7 @@ var many2oneFieldController = (props) => {
|
|
|
4972
4972
|
options: fieldOptions,
|
|
4973
4973
|
showDetail
|
|
4974
4974
|
} = props;
|
|
4975
|
+
const { env } = (0, provider_exports.useEnv)();
|
|
4975
4976
|
const [options, setOptions] = (0, import_react14.useState)([]);
|
|
4976
4977
|
const [inputValue, setInputValue] = (0, import_react14.useState)("");
|
|
4977
4978
|
const [debouncedInputValue] = useDebounce(inputValue, 1e3);
|
|
@@ -4981,13 +4982,12 @@ var many2oneFieldController = (props) => {
|
|
|
4981
4982
|
const [domainObject, setDomainObject] = (0, import_react14.useState)(null);
|
|
4982
4983
|
const actionData = sessionStorageUtils.getActionData();
|
|
4983
4984
|
const { menuList } = (0, store_exports.useAppSelector)(store_exports.selectNavbar);
|
|
4984
|
-
const { context } = (0, store_exports.useAppSelector)(store_exports.selectEnv);
|
|
4985
4985
|
const initValue = methods?.getValues(name);
|
|
4986
4986
|
const optionsObject = (0, utils_exports.evalJSONContext)(fieldOptions) || {};
|
|
4987
4987
|
const contextObject = {
|
|
4988
4988
|
...(0, utils_exports.evalJSONContext)(actionData?.context) || {},
|
|
4989
4989
|
...fieldContext,
|
|
4990
|
-
...context
|
|
4990
|
+
...env?.context
|
|
4991
4991
|
};
|
|
4992
4992
|
const { useGetSelection: useGetSelection3 } = (0, provider_exports.useService)();
|
|
4993
4993
|
const data = {
|
|
@@ -5159,52 +5159,49 @@ var many2oneButtonController = (props) => {
|
|
|
5159
5159
|
|
|
5160
5160
|
// src/widget/basic/many2many-field/controller.ts
|
|
5161
5161
|
var import_react15 = require("react");
|
|
5162
|
-
var import_store8 = require("@fctc/interface-logic/store");
|
|
5163
5162
|
var import_utils6 = require("@fctc/interface-logic/utils");
|
|
5164
5163
|
var many2manyFieldController = (props) => {
|
|
5165
5164
|
const {
|
|
5166
5165
|
relation,
|
|
5167
5166
|
domain,
|
|
5168
5167
|
context,
|
|
5168
|
+
options,
|
|
5169
5169
|
tab,
|
|
5170
|
-
model,
|
|
5171
|
-
aid,
|
|
5172
5170
|
setSelectedRowKeys: setSelectedRowKeys4,
|
|
5173
|
-
fields,
|
|
5174
|
-
setFields,
|
|
5175
5171
|
groupByDomain,
|
|
5176
|
-
|
|
5177
|
-
options,
|
|
5178
|
-
sessionStorageUtils
|
|
5172
|
+
enabled: enabledCallAPI
|
|
5179
5173
|
} = props;
|
|
5180
|
-
const appDispatch = (0, import_store8.useAppDispatch)();
|
|
5181
|
-
const actionData = sessionStorageUtils.getActionData();
|
|
5182
|
-
const [debouncedPage] = useDebounce(page, 500);
|
|
5183
|
-
const [order, setOrder] = (0, import_react15.useState)();
|
|
5184
|
-
const [isLoadedData, setIsLoadedData] = (0, import_react15.useState)(false);
|
|
5185
|
-
const [domainMany2Many, setDomainMany2Many] = (0, import_react15.useState)(domain);
|
|
5186
5174
|
const { env } = (0, provider_exports.useEnv)();
|
|
5187
5175
|
const { useGetView: useGetView2, useGetListData: useGetListData3, useGetFormView } = (0, provider_exports.useService)();
|
|
5176
|
+
const [order, setOrder] = (0, import_react15.useState)();
|
|
5177
|
+
const [isLoadedData, setIsLoadedData] = (0, import_react15.useState)(false);
|
|
5178
|
+
const [page, setPage] = (0, import_react15.useState)(0);
|
|
5179
|
+
const [domainMany2Many, setDomainMany2Many] = (0, import_react15.useState)(null);
|
|
5180
|
+
const [debouncedPage] = useDebounce(page, 500);
|
|
5181
|
+
const contextObject = {
|
|
5182
|
+
...env.context,
|
|
5183
|
+
...context || {}
|
|
5184
|
+
};
|
|
5188
5185
|
const viewParams = {
|
|
5189
5186
|
model: relation,
|
|
5190
5187
|
views: [
|
|
5191
5188
|
[false, "list"],
|
|
5192
5189
|
[false, "search"]
|
|
5193
5190
|
],
|
|
5194
|
-
context
|
|
5191
|
+
context: contextObject
|
|
5195
5192
|
};
|
|
5196
|
-
const { data: viewResponse } = useGetView2(viewParams,
|
|
5193
|
+
const { data: viewResponse } = useGetView2(viewParams, enabledCallAPI);
|
|
5197
5194
|
const baseModel = (0, import_react15.useMemo)(
|
|
5198
5195
|
() => ({
|
|
5199
5196
|
name: String(relation),
|
|
5200
5197
|
view: viewResponse || {},
|
|
5201
|
-
actContext:
|
|
5198
|
+
actContext: contextObject,
|
|
5202
5199
|
fields: [
|
|
5203
5200
|
...Object.values(viewResponse?.views?.list?.fields ?? {}),
|
|
5204
5201
|
...tab?.fields ? tab.fields : []
|
|
5205
5202
|
]
|
|
5206
5203
|
}),
|
|
5207
|
-
[
|
|
5204
|
+
[relation, viewResponse]
|
|
5208
5205
|
);
|
|
5209
5206
|
const initModel = (0, hooks_exports.useModel)();
|
|
5210
5207
|
const modelInstance = (0, import_react15.useMemo)(() => {
|
|
@@ -5223,26 +5220,15 @@ var many2manyFieldController = (props) => {
|
|
|
5223
5220
|
const optionsObject = tab?.options ? (0, import_utils6.evalJSONContext)(tab?.options) : (options ? (0, import_utils6.evalJSONContext)(options) : {}) || {};
|
|
5224
5221
|
const fetchData = async () => {
|
|
5225
5222
|
try {
|
|
5226
|
-
|
|
5227
|
-
|
|
5228
|
-
|
|
5229
|
-
const modalData = viewResponse?.views?.list?.fields.map((field) => ({
|
|
5230
|
-
...viewResponse?.models?.[String(model)]?.[field?.name],
|
|
5231
|
-
...field
|
|
5232
|
-
}));
|
|
5233
|
-
if (!fields?.[`${aid}_${relation}_popupmany2many`] && modalData) {
|
|
5234
|
-
setFields({
|
|
5235
|
-
...fields,
|
|
5236
|
-
[`${aid}_${relation}_popupmany2many`]: modalData
|
|
5237
|
-
});
|
|
5238
|
-
}
|
|
5239
|
-
appDispatch((0, import_store8.setPage)(0));
|
|
5223
|
+
const domainParse = typeof domain === "string" ? (0, import_utils6.evalJSONDomain)(domain, contextObject) : Array.isArray(domain) ? domain : [];
|
|
5224
|
+
setDomainMany2Many(domainParse);
|
|
5225
|
+
setPage(0);
|
|
5240
5226
|
} catch (err) {
|
|
5241
5227
|
console.log(err);
|
|
5242
5228
|
}
|
|
5243
5229
|
};
|
|
5244
5230
|
const queryKey = [
|
|
5245
|
-
`view-${relation}
|
|
5231
|
+
`view-${relation}`,
|
|
5246
5232
|
specification,
|
|
5247
5233
|
domainMany2Many,
|
|
5248
5234
|
debouncedPage,
|
|
@@ -5255,16 +5241,16 @@ var many2manyFieldController = (props) => {
|
|
|
5255
5241
|
domain: domainMany2Many,
|
|
5256
5242
|
offset: debouncedPage * 10,
|
|
5257
5243
|
limit: 10,
|
|
5258
|
-
context,
|
|
5244
|
+
context: contextObject,
|
|
5259
5245
|
fields: groupByDomain?.fields,
|
|
5260
5246
|
groupby: [groupByDomain?.contexts[0]?.group_by],
|
|
5261
5247
|
sort: order ? order : default_order ? (0, import_utils6.formatSortingString)(default_order) : ""
|
|
5262
5248
|
};
|
|
5263
|
-
const enabled = isLoadedData && !!specification && !!relation && !!domainMany2Many && !!viewResponse;
|
|
5249
|
+
const enabled = enabledCallAPI && isLoadedData && !!specification && !!relation && !!domainMany2Many && !!viewResponse;
|
|
5264
5250
|
const {
|
|
5265
5251
|
data: dataResponse,
|
|
5266
|
-
isLoading
|
|
5267
|
-
isFetched
|
|
5252
|
+
isLoading,
|
|
5253
|
+
isFetched,
|
|
5268
5254
|
isPlaceholderData
|
|
5269
5255
|
} = useGetListData3(data, queryKey, enabled);
|
|
5270
5256
|
(0, import_react15.useEffect)(() => {
|
|
@@ -5272,67 +5258,43 @@ var many2manyFieldController = (props) => {
|
|
|
5272
5258
|
fetchData();
|
|
5273
5259
|
}
|
|
5274
5260
|
return () => {
|
|
5275
|
-
|
|
5276
|
-
setFields((prevFields) => ({
|
|
5277
|
-
...prevFields,
|
|
5278
|
-
[`${aid}_${relation}_popupmany2many`]: null
|
|
5279
|
-
}));
|
|
5280
|
-
appDispatch((0, import_store8.setPage)(0));
|
|
5261
|
+
setPage(0);
|
|
5281
5262
|
setSelectedRowKeys4([]);
|
|
5282
5263
|
setDomainMany2Many(null);
|
|
5283
5264
|
setIsLoadedData(false);
|
|
5284
5265
|
};
|
|
5285
5266
|
}, [viewResponse]);
|
|
5286
|
-
const { rows, columns, typeTable } = tableController({
|
|
5267
|
+
const { rows, columns, typeTable, onToggleColumnOptional } = tableController({
|
|
5287
5268
|
data: {
|
|
5288
|
-
fields:
|
|
5269
|
+
fields: viewResponse?.views?.list?.fields,
|
|
5289
5270
|
records: dataResponse?.records ?? dataResponse?.groups,
|
|
5290
5271
|
dataModel: viewResponse?.models?.[String(relation)],
|
|
5291
|
-
context:
|
|
5272
|
+
context: contextObject,
|
|
5292
5273
|
typeTable: dataResponse?.groups ? "group" : "list"
|
|
5293
5274
|
}
|
|
5294
5275
|
});
|
|
5295
|
-
const dataFormView = {
|
|
5296
|
-
id: null,
|
|
5297
|
-
model: relation,
|
|
5298
|
-
context
|
|
5299
|
-
};
|
|
5300
|
-
const {
|
|
5301
|
-
refetch,
|
|
5302
|
-
data: dataFormViewResponse,
|
|
5303
|
-
isSuccess
|
|
5304
|
-
} = useGetFormView({
|
|
5305
|
-
data: dataFormView,
|
|
5306
|
-
queryKey: [`form-view-action-${relation}`],
|
|
5307
|
-
enabled: false
|
|
5308
|
-
});
|
|
5309
|
-
(0, import_react15.useEffect)(() => {
|
|
5310
|
-
if (isSuccess && dataFormViewResponse) {
|
|
5311
|
-
sessionStorage.setItem("actionData", JSON.stringify(dataFormViewResponse));
|
|
5312
|
-
window.location.href = `/form/menu?model=${relation}`;
|
|
5313
|
-
}
|
|
5314
|
-
}, [isSuccess]);
|
|
5315
5276
|
(0, import_react15.useEffect)(() => {
|
|
5316
5277
|
if (domainMany2Many && !isLoadedData) {
|
|
5317
5278
|
setIsLoadedData(true);
|
|
5318
5279
|
}
|
|
5319
5280
|
}, [domainMany2Many]);
|
|
5320
5281
|
const handleCreateNewOnPage = async () => {
|
|
5321
|
-
try {
|
|
5322
|
-
refetch();
|
|
5323
|
-
} catch (error) {
|
|
5324
|
-
console.log(error);
|
|
5325
|
-
}
|
|
5326
5282
|
};
|
|
5327
5283
|
return {
|
|
5328
5284
|
handleCreateNewOnPage,
|
|
5329
5285
|
optionsObject,
|
|
5286
|
+
totalRows: dataResponse?.length ?? 0,
|
|
5330
5287
|
rows,
|
|
5331
5288
|
columns,
|
|
5289
|
+
onToggleColumnOptional,
|
|
5332
5290
|
typeTable,
|
|
5333
|
-
|
|
5334
|
-
|
|
5335
|
-
isPlaceholderData
|
|
5291
|
+
isLoading,
|
|
5292
|
+
isFetched,
|
|
5293
|
+
isPlaceholderData,
|
|
5294
|
+
setPage,
|
|
5295
|
+
page,
|
|
5296
|
+
domain: domainMany2Many,
|
|
5297
|
+
setDomain: setDomainMany2Many
|
|
5336
5298
|
};
|
|
5337
5299
|
};
|
|
5338
5300
|
|
|
@@ -5400,7 +5362,7 @@ var many2manyTagsController = (props) => {
|
|
|
5400
5362
|
var import_react17 = require("react");
|
|
5401
5363
|
var import_utils8 = require("@fctc/interface-logic/utils");
|
|
5402
5364
|
var durationController = (props) => {
|
|
5403
|
-
const { relation, domain, formValues, name, id, model, onRefetch
|
|
5365
|
+
const { relation, domain, formValues, name, id, model, onRefetch } = props;
|
|
5404
5366
|
const specification = {
|
|
5405
5367
|
id: 0,
|
|
5406
5368
|
name: "",
|
|
@@ -5424,11 +5386,7 @@ var durationController = (props) => {
|
|
|
5424
5386
|
},
|
|
5425
5387
|
sort: ""
|
|
5426
5388
|
};
|
|
5427
|
-
const { data: dataResponse } = useGetListData3(
|
|
5428
|
-
listDataProps,
|
|
5429
|
-
queryKey,
|
|
5430
|
-
enabled
|
|
5431
|
-
);
|
|
5389
|
+
const { data: dataResponse } = useGetListData3(listDataProps, queryKey);
|
|
5432
5390
|
const { mutate: fetchChangeStatus } = useChangeStatus();
|
|
5433
5391
|
const handleClick = async (stage_id) => {
|
|
5434
5392
|
setDisabled(true);
|
|
@@ -6604,7 +6562,7 @@ var binaryFieldController = (props) => {
|
|
|
6604
6562
|
};
|
|
6605
6563
|
|
|
6606
6564
|
// src/widget/advance/table/table-body/controller.ts
|
|
6607
|
-
var
|
|
6565
|
+
var import_store8 = require("@fctc/interface-logic/store");
|
|
6608
6566
|
var import_react21 = require("react");
|
|
6609
6567
|
var tableBodyController = (props) => {
|
|
6610
6568
|
const {
|
|
@@ -6617,7 +6575,7 @@ var tableBodyController = (props) => {
|
|
|
6617
6575
|
selectedRowKeysRef,
|
|
6618
6576
|
onClickRow
|
|
6619
6577
|
} = props;
|
|
6620
|
-
const appDispatch = (0,
|
|
6578
|
+
const appDispatch = (0, import_store8.useAppDispatch)();
|
|
6621
6579
|
const checked = (0, import_react21.useMemo)(() => {
|
|
6622
6580
|
if (!row?.id) return false;
|
|
6623
6581
|
if (selectedRowKeys?.includes(row.id)) {
|
|
@@ -6634,7 +6592,7 @@ var tableBodyController = (props) => {
|
|
|
6634
6592
|
}
|
|
6635
6593
|
const newSelectedRowKeys = selectedRowKeys?.includes(row.id) ? selectedRowKeys?.filter((key) => key !== row.id) : [...selectedRowKeys, row.id];
|
|
6636
6594
|
console.log("newSelectedRowKeys", newSelectedRowKeys);
|
|
6637
|
-
appDispatch((0,
|
|
6595
|
+
appDispatch((0, import_store8.setSelectedRowKeys)(newSelectedRowKeys));
|
|
6638
6596
|
};
|
|
6639
6597
|
const handleClickRow = (col, row2) => {
|
|
6640
6598
|
onClickRow(col, row2);
|
|
@@ -6647,13 +6605,13 @@ var tableBodyController = (props) => {
|
|
|
6647
6605
|
(id) => id !== row.id
|
|
6648
6606
|
);
|
|
6649
6607
|
selectedRowKeysRef.current = filtered;
|
|
6650
|
-
appDispatch((0,
|
|
6608
|
+
appDispatch((0, import_store8.setSelectedRowKeys)(filtered));
|
|
6651
6609
|
} else {
|
|
6652
6610
|
const unique = Array.from(
|
|
6653
6611
|
/* @__PURE__ */ new Set([...selectedRowKeysRef?.current, row?.id])
|
|
6654
6612
|
);
|
|
6655
6613
|
selectedRowKeysRef.current = unique;
|
|
6656
|
-
appDispatch((0,
|
|
6614
|
+
appDispatch((0, import_store8.setSelectedRowKeys)(unique));
|
|
6657
6615
|
}
|
|
6658
6616
|
}
|
|
6659
6617
|
}, [isAutoSelect]);
|
|
@@ -6671,35 +6629,35 @@ var tableBodyController = (props) => {
|
|
|
6671
6629
|
};
|
|
6672
6630
|
|
|
6673
6631
|
// src/widget/advance/table/table-head/controller.ts
|
|
6674
|
-
var
|
|
6632
|
+
var import_store9 = require("@fctc/interface-logic/store");
|
|
6675
6633
|
var tableHeadController = (props) => {
|
|
6676
6634
|
const { typeTable, rows, selectedRowKeysRef } = props;
|
|
6677
|
-
const appDispatch = (0,
|
|
6678
|
-
const { groupByDomain } = (0,
|
|
6635
|
+
const appDispatch = (0, import_store9.useAppDispatch)();
|
|
6636
|
+
const { groupByDomain } = (0, import_store9.useAppSelector)(import_store9.selectSearch);
|
|
6679
6637
|
const handleCheckBoxAll = (event) => {
|
|
6680
6638
|
if (event?.target?.checked && typeTable === "list") {
|
|
6681
6639
|
const allRowKeys = Array.isArray(rows) ? rows.map((record) => record?.id) : [];
|
|
6682
|
-
appDispatch((0,
|
|
6640
|
+
appDispatch((0, import_store9.setSelectedRowKeys)(allRowKeys));
|
|
6683
6641
|
} else if (event?.target?.checked && typeTable === "group") {
|
|
6684
6642
|
const rowsIDs = document.querySelectorAll("tr[data-row-id]");
|
|
6685
6643
|
const ids = Array.from(rowsIDs)?.map(
|
|
6686
6644
|
(row) => Number(row?.getAttribute("data-row-id"))
|
|
6687
6645
|
);
|
|
6688
6646
|
if (ids?.length > 0) {
|
|
6689
|
-
appDispatch((0,
|
|
6647
|
+
appDispatch((0, import_store9.setSelectedRowKeys)(ids));
|
|
6690
6648
|
} else {
|
|
6691
6649
|
const sum = countSum(
|
|
6692
6650
|
rows,
|
|
6693
6651
|
typeof groupByDomain === "object" ? groupByDomain?.contexts?.[0]?.group_by : void 0
|
|
6694
6652
|
);
|
|
6695
6653
|
const keys = Array.from({ length: sum }, (_) => void 0);
|
|
6696
|
-
appDispatch((0,
|
|
6654
|
+
appDispatch((0, import_store9.setSelectedRowKeys)(keys));
|
|
6697
6655
|
}
|
|
6698
6656
|
if (selectedRowKeysRef) {
|
|
6699
6657
|
selectedRowKeysRef.current = [];
|
|
6700
6658
|
}
|
|
6701
6659
|
} else {
|
|
6702
|
-
appDispatch((0,
|
|
6660
|
+
appDispatch((0, import_store9.setSelectedRowKeys)([]));
|
|
6703
6661
|
}
|
|
6704
6662
|
};
|
|
6705
6663
|
return {
|
|
@@ -6709,7 +6667,7 @@ var tableHeadController = (props) => {
|
|
|
6709
6667
|
|
|
6710
6668
|
// src/widget/advance/table/table-view/controller.ts
|
|
6711
6669
|
var import_react22 = require("react");
|
|
6712
|
-
var
|
|
6670
|
+
var import_store10 = require("@fctc/interface-logic/store");
|
|
6713
6671
|
var import_utils13 = require("@fctc/interface-logic/utils");
|
|
6714
6672
|
var tableController = ({ data }) => {
|
|
6715
6673
|
const [rows, setRows] = (0, import_react22.useState)(data.records || []);
|
|
@@ -6789,7 +6747,7 @@ var tableController = ({ data }) => {
|
|
|
6789
6747
|
// src/widget/advance/table/table-group/controller.ts
|
|
6790
6748
|
var import_react23 = require("react");
|
|
6791
6749
|
var import_hooks16 = require("@fctc/interface-logic/hooks");
|
|
6792
|
-
var
|
|
6750
|
+
var import_store11 = require("@fctc/interface-logic/store");
|
|
6793
6751
|
|
|
6794
6752
|
// src/environment.ts
|
|
6795
6753
|
var environment_exports = {};
|
|
@@ -6817,9 +6775,9 @@ var tableGroupController = (props) => {
|
|
|
6817
6775
|
selectedRowKeysRef
|
|
6818
6776
|
} = props;
|
|
6819
6777
|
const [pageGroup, setPageGroup] = (0, import_react23.useState)(0);
|
|
6820
|
-
const { groupByDomain, selectedTags } = (0,
|
|
6821
|
-
const { selectedRowKeys } = (0,
|
|
6822
|
-
const appDispatch = (0,
|
|
6778
|
+
const { groupByDomain, selectedTags } = (0, import_store11.useAppSelector)(import_store11.selectSearch);
|
|
6779
|
+
const { selectedRowKeys } = (0, import_store11.useAppSelector)(import_store11.selectList);
|
|
6780
|
+
const appDispatch = (0, import_store11.useAppDispatch)();
|
|
6823
6781
|
const { toDataJS } = (0, import_hooks16.useOdooDataTransform)();
|
|
6824
6782
|
const initVal = toDataJS(row, viewData, model);
|
|
6825
6783
|
const [isShowGroup, setIsShowGroup] = (0, import_react23.useState)(false);
|
|
@@ -6905,14 +6863,14 @@ var tableGroupController = (props) => {
|
|
|
6905
6863
|
const filteredIds = selectedRowKeys.filter(
|
|
6906
6864
|
(id) => !ids.includes(id)
|
|
6907
6865
|
);
|
|
6908
|
-
appDispatch((0,
|
|
6866
|
+
appDispatch((0, import_store11.setSelectedRowKeys)(filteredIds));
|
|
6909
6867
|
} else if (!isShowGroup && selectedRowKeys?.length > 0 && typeTableGroup === "list" && checkedAll && !allIdsNull && isQueryFetched) {
|
|
6910
6868
|
const clonedKeys = [...selectedRowKeys];
|
|
6911
|
-
appDispatch((0,
|
|
6912
|
-
setTimeout(() => appDispatch((0,
|
|
6869
|
+
appDispatch((0, import_store11.setSelectedRowKeys)([...clonedKeys, -1]));
|
|
6870
|
+
setTimeout(() => appDispatch((0, import_store11.setSelectedRowKeys)(clonedKeys)), 500);
|
|
6913
6871
|
} else if (isShowGroup && selectedRowKeys?.length > 0 && typeTableGroup === "list" && !checkedAll && !allIdsNull) {
|
|
6914
6872
|
const filteredKeys = selectedRowKeys.filter((id) => id > -1);
|
|
6915
|
-
appDispatch((0,
|
|
6873
|
+
appDispatch((0, import_store11.setSelectedRowKeys)(filteredKeys));
|
|
6916
6874
|
}
|
|
6917
6875
|
toggleShowGroup();
|
|
6918
6876
|
};
|
|
@@ -6921,8 +6879,8 @@ var tableGroupController = (props) => {
|
|
|
6921
6879
|
return;
|
|
6922
6880
|
}
|
|
6923
6881
|
const clonedKeys = [...selectedRowKeys];
|
|
6924
|
-
(0,
|
|
6925
|
-
setTimeout(() => (0,
|
|
6882
|
+
(0, import_store11.setSelectedRowKeys)([...clonedKeys, -1]);
|
|
6883
|
+
setTimeout(() => (0, import_store11.setSelectedRowKeys)(clonedKeys), 500);
|
|
6926
6884
|
}, [isQueryFetched]);
|
|
6927
6885
|
return {
|
|
6928
6886
|
handleExpandChildGroup,
|