@fctc/widget-logic 1.8.1 → 1.8.2
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 +2 -3
- package/dist/index.mjs +6 -7
- package/dist/widget.d.mts +1 -0
- package/dist/widget.d.ts +1 -0
- package/dist/widget.js +2 -3
- package/dist/widget.mjs +6 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6525,7 +6525,6 @@ var searchController = ({
|
|
|
6525
6525
|
const [searchMap, setSearchMap] = (0, import_react18.useState)({});
|
|
6526
6526
|
const [isReadyFormatDomain, setIsReadyFormatDomain] = (0, import_react18.useState)(false);
|
|
6527
6527
|
const [didInit, setDidInit] = (0, import_react18.useState)(false);
|
|
6528
|
-
const dispatch = (0, store_exports.useAppDispatch)();
|
|
6529
6528
|
const aid = actionData?.id;
|
|
6530
6529
|
const model = actionData?.res_model;
|
|
6531
6530
|
const domainAction = actionData?.domain ? Array.isArray(actionData?.domain) ? [...actionData?.domain] : (0, import_utils6.evalJSONDomain)(actionData?.domain, contextSearch) : [];
|
|
@@ -6664,7 +6663,6 @@ var searchController = ({
|
|
|
6664
6663
|
contexts,
|
|
6665
6664
|
fields
|
|
6666
6665
|
};
|
|
6667
|
-
dispatch((0, store_exports.setGroupByDomain)(groupByTag));
|
|
6668
6666
|
return groupByTag;
|
|
6669
6667
|
}
|
|
6670
6668
|
}
|
|
@@ -6831,7 +6829,8 @@ var searchController = ({
|
|
|
6831
6829
|
clearSearch,
|
|
6832
6830
|
setSelectedTags,
|
|
6833
6831
|
removeSearchItems,
|
|
6834
|
-
onSearchString: onChangeSearchInput
|
|
6832
|
+
onSearchString: onChangeSearchInput,
|
|
6833
|
+
handleAddTagSearch
|
|
6835
6834
|
};
|
|
6836
6835
|
};
|
|
6837
6836
|
|
package/dist/index.mjs
CHANGED
|
@@ -6576,7 +6576,6 @@ var searchController = ({
|
|
|
6576
6576
|
const [searchMap, setSearchMap] = useState10({});
|
|
6577
6577
|
const [isReadyFormatDomain, setIsReadyFormatDomain] = useState10(false);
|
|
6578
6578
|
const [didInit, setDidInit] = useState10(false);
|
|
6579
|
-
const dispatch = (0, store_exports.useAppDispatch)();
|
|
6580
6579
|
const aid = actionData?.id;
|
|
6581
6580
|
const model = actionData?.res_model;
|
|
6582
6581
|
const domainAction = actionData?.domain ? Array.isArray(actionData?.domain) ? [...actionData?.domain] : evalJSONDomain4(actionData?.domain, contextSearch) : [];
|
|
@@ -6715,7 +6714,6 @@ var searchController = ({
|
|
|
6715
6714
|
contexts,
|
|
6716
6715
|
fields
|
|
6717
6716
|
};
|
|
6718
|
-
dispatch((0, store_exports.setGroupByDomain)(groupByTag));
|
|
6719
6717
|
return groupByTag;
|
|
6720
6718
|
}
|
|
6721
6719
|
}
|
|
@@ -6882,20 +6880,21 @@ var searchController = ({
|
|
|
6882
6880
|
clearSearch,
|
|
6883
6881
|
setSelectedTags,
|
|
6884
6882
|
removeSearchItems,
|
|
6885
|
-
onSearchString: onChangeSearchInput
|
|
6883
|
+
onSearchString: onChangeSearchInput,
|
|
6884
|
+
handleAddTagSearch
|
|
6886
6885
|
};
|
|
6887
6886
|
};
|
|
6888
6887
|
|
|
6889
6888
|
// src/widget/basic/many2many-field/controller.ts
|
|
6890
6889
|
import { getEnv as getEnv8 } from "@fctc/interface-logic/environment";
|
|
6891
6890
|
import {
|
|
6892
|
-
useAppDispatch as
|
|
6891
|
+
useAppDispatch as useAppDispatch8,
|
|
6893
6892
|
useAppSelector as useAppSelector6,
|
|
6894
6893
|
selectSearch as selectSearch5,
|
|
6895
6894
|
setFirstDomain,
|
|
6896
6895
|
setViewDataStore,
|
|
6897
6896
|
setPage as setPage2,
|
|
6898
|
-
setGroupByDomain
|
|
6897
|
+
setGroupByDomain
|
|
6899
6898
|
} from "@fctc/interface-logic/store";
|
|
6900
6899
|
import {
|
|
6901
6900
|
evalJSONContext as evalJSONContext5,
|
|
@@ -6917,7 +6916,7 @@ var many2manyFieldController = (props) => {
|
|
|
6917
6916
|
options,
|
|
6918
6917
|
sessionStorageUtils
|
|
6919
6918
|
} = props;
|
|
6920
|
-
const appDispatch =
|
|
6919
|
+
const appDispatch = useAppDispatch8();
|
|
6921
6920
|
const actionData = sessionStorageUtils.getActionData();
|
|
6922
6921
|
const [debouncedPage] = useDebounce(page, 500);
|
|
6923
6922
|
const [order, setOrder] = useState11();
|
|
@@ -7015,7 +7014,7 @@ var many2manyFieldController = (props) => {
|
|
|
7015
7014
|
fetchData();
|
|
7016
7015
|
}
|
|
7017
7016
|
return () => {
|
|
7018
|
-
appDispatch(
|
|
7017
|
+
appDispatch(setGroupByDomain(null));
|
|
7019
7018
|
setFields((prevFields) => ({
|
|
7020
7019
|
...prevFields,
|
|
7021
7020
|
[`${aid}_${relation}_popupmany2many`]: null
|
package/dist/widget.d.mts
CHANGED
|
@@ -311,6 +311,7 @@ declare const searchController: ({ viewData, actionData, fieldsList, setDomain,
|
|
|
311
311
|
setSelectedTags: react.Dispatch<any>;
|
|
312
312
|
removeSearchItems: (key: string, item: any) => void;
|
|
313
313
|
onSearchString: (search_string: string) => void;
|
|
314
|
+
handleAddTagSearch: (tag: any) => void;
|
|
314
315
|
};
|
|
315
316
|
|
|
316
317
|
export { type ISelctionStateProps, type ITableBodyProps, type ITableHeadProps, type ITableProps, binaryFieldController, colorFieldController, copyLinkButtonController, dateFieldController, downLoadBinaryController, downloadFileController, durationController, floatController, floatTimeFiledController, many2manyFieldController, many2manyTagsController, many2oneButtonController, many2oneFieldController, priorityFieldController, searchController, statusDropdownController, tableBodyController, tableController, tableGroupController, tableHeadController };
|
package/dist/widget.d.ts
CHANGED
|
@@ -311,6 +311,7 @@ declare const searchController: ({ viewData, actionData, fieldsList, setDomain,
|
|
|
311
311
|
setSelectedTags: react.Dispatch<any>;
|
|
312
312
|
removeSearchItems: (key: string, item: any) => void;
|
|
313
313
|
onSearchString: (search_string: string) => void;
|
|
314
|
+
handleAddTagSearch: (tag: any) => void;
|
|
314
315
|
};
|
|
315
316
|
|
|
316
317
|
export { type ISelctionStateProps, type ITableBodyProps, type ITableHeadProps, type ITableProps, binaryFieldController, colorFieldController, copyLinkButtonController, dateFieldController, downLoadBinaryController, downloadFileController, durationController, floatController, floatTimeFiledController, many2manyFieldController, many2manyTagsController, many2oneButtonController, many2oneFieldController, priorityFieldController, searchController, statusDropdownController, tableBodyController, tableController, tableGroupController, tableHeadController };
|
package/dist/widget.js
CHANGED
|
@@ -6191,7 +6191,6 @@ var searchController = ({
|
|
|
6191
6191
|
const [searchMap, setSearchMap] = (0, import_react18.useState)({});
|
|
6192
6192
|
const [isReadyFormatDomain, setIsReadyFormatDomain] = (0, import_react18.useState)(false);
|
|
6193
6193
|
const [didInit, setDidInit] = (0, import_react18.useState)(false);
|
|
6194
|
-
const dispatch = (0, store_exports.useAppDispatch)();
|
|
6195
6194
|
const aid = actionData?.id;
|
|
6196
6195
|
const model = actionData?.res_model;
|
|
6197
6196
|
const domainAction = actionData?.domain ? Array.isArray(actionData?.domain) ? [...actionData?.domain] : (0, import_utils6.evalJSONDomain)(actionData?.domain, contextSearch) : [];
|
|
@@ -6330,7 +6329,6 @@ var searchController = ({
|
|
|
6330
6329
|
contexts,
|
|
6331
6330
|
fields
|
|
6332
6331
|
};
|
|
6333
|
-
dispatch((0, store_exports.setGroupByDomain)(groupByTag));
|
|
6334
6332
|
return groupByTag;
|
|
6335
6333
|
}
|
|
6336
6334
|
}
|
|
@@ -6497,7 +6495,8 @@ var searchController = ({
|
|
|
6497
6495
|
clearSearch,
|
|
6498
6496
|
setSelectedTags,
|
|
6499
6497
|
removeSearchItems,
|
|
6500
|
-
onSearchString: onChangeSearchInput
|
|
6498
|
+
onSearchString: onChangeSearchInput,
|
|
6499
|
+
handleAddTagSearch
|
|
6501
6500
|
};
|
|
6502
6501
|
};
|
|
6503
6502
|
|
package/dist/widget.mjs
CHANGED
|
@@ -6216,7 +6216,6 @@ var searchController = ({
|
|
|
6216
6216
|
const [searchMap, setSearchMap] = useState10({});
|
|
6217
6217
|
const [isReadyFormatDomain, setIsReadyFormatDomain] = useState10(false);
|
|
6218
6218
|
const [didInit, setDidInit] = useState10(false);
|
|
6219
|
-
const dispatch = (0, store_exports.useAppDispatch)();
|
|
6220
6219
|
const aid = actionData?.id;
|
|
6221
6220
|
const model = actionData?.res_model;
|
|
6222
6221
|
const domainAction = actionData?.domain ? Array.isArray(actionData?.domain) ? [...actionData?.domain] : evalJSONDomain4(actionData?.domain, contextSearch) : [];
|
|
@@ -6355,7 +6354,6 @@ var searchController = ({
|
|
|
6355
6354
|
contexts,
|
|
6356
6355
|
fields
|
|
6357
6356
|
};
|
|
6358
|
-
dispatch((0, store_exports.setGroupByDomain)(groupByTag));
|
|
6359
6357
|
return groupByTag;
|
|
6360
6358
|
}
|
|
6361
6359
|
}
|
|
@@ -6522,20 +6520,21 @@ var searchController = ({
|
|
|
6522
6520
|
clearSearch,
|
|
6523
6521
|
setSelectedTags,
|
|
6524
6522
|
removeSearchItems,
|
|
6525
|
-
onSearchString: onChangeSearchInput
|
|
6523
|
+
onSearchString: onChangeSearchInput,
|
|
6524
|
+
handleAddTagSearch
|
|
6526
6525
|
};
|
|
6527
6526
|
};
|
|
6528
6527
|
|
|
6529
6528
|
// src/widget/basic/many2many-field/controller.ts
|
|
6530
6529
|
import { getEnv as getEnv8 } from "@fctc/interface-logic/environment";
|
|
6531
6530
|
import {
|
|
6532
|
-
useAppDispatch as
|
|
6531
|
+
useAppDispatch as useAppDispatch8,
|
|
6533
6532
|
useAppSelector as useAppSelector6,
|
|
6534
6533
|
selectSearch as selectSearch5,
|
|
6535
6534
|
setFirstDomain,
|
|
6536
6535
|
setViewDataStore,
|
|
6537
6536
|
setPage as setPage2,
|
|
6538
|
-
setGroupByDomain
|
|
6537
|
+
setGroupByDomain
|
|
6539
6538
|
} from "@fctc/interface-logic/store";
|
|
6540
6539
|
import {
|
|
6541
6540
|
evalJSONContext as evalJSONContext5,
|
|
@@ -6557,7 +6556,7 @@ var many2manyFieldController = (props) => {
|
|
|
6557
6556
|
options,
|
|
6558
6557
|
sessionStorageUtils
|
|
6559
6558
|
} = props;
|
|
6560
|
-
const appDispatch =
|
|
6559
|
+
const appDispatch = useAppDispatch8();
|
|
6561
6560
|
const actionData = sessionStorageUtils.getActionData();
|
|
6562
6561
|
const [debouncedPage] = useDebounce(page, 500);
|
|
6563
6562
|
const [order, setOrder] = useState11();
|
|
@@ -6655,7 +6654,7 @@ var many2manyFieldController = (props) => {
|
|
|
6655
6654
|
fetchData();
|
|
6656
6655
|
}
|
|
6657
6656
|
return () => {
|
|
6658
|
-
appDispatch(
|
|
6657
|
+
appDispatch(setGroupByDomain(null));
|
|
6659
6658
|
setFields((prevFields) => ({
|
|
6660
6659
|
...prevFields,
|
|
6661
6660
|
[`${aid}_${relation}_popupmany2many`]: null
|