awing-library 2.1.2-dev.65 → 2.1.2-dev.66
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/esm/index.js
CHANGED
|
@@ -175229,7 +175229,8 @@ const DataTable = props => {
|
|
|
175229
175229
|
const check = useRef(null);
|
|
175230
175230
|
const {
|
|
175231
175231
|
getPlacesByFilter,
|
|
175232
|
-
getPlacesByIds
|
|
175232
|
+
getPlacesByIds,
|
|
175233
|
+
isSelectedAll = false
|
|
175233
175234
|
} = props;
|
|
175234
175235
|
const [places, setPlaces] = useState([]);
|
|
175235
175236
|
const [total, setTotal] = useState(0);
|
|
@@ -175604,6 +175605,12 @@ const DataTable = props => {
|
|
|
175604
175605
|
const handlePageSizeChange = pageSize => {
|
|
175605
175606
|
setPageSize(pageSize);
|
|
175606
175607
|
};
|
|
175608
|
+
useEffect(() => {
|
|
175609
|
+
if (isSelectedAll) {
|
|
175610
|
+
handleSelectAll(isSelectedAll);
|
|
175611
|
+
}
|
|
175612
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
175613
|
+
}, [isSelectedAll]);
|
|
175607
175614
|
return isError ? jsxRuntimeExports.jsx("div", {
|
|
175608
175615
|
style: {
|
|
175609
175616
|
padding: 2 * 8,
|
|
@@ -176025,7 +176032,8 @@ const PlaceFilterContainer = props => {
|
|
|
176025
176032
|
getPlacesByFilter,
|
|
176026
176033
|
getPlacesByIds,
|
|
176027
176034
|
callbackFunction,
|
|
176028
|
-
tags
|
|
176035
|
+
tags,
|
|
176036
|
+
isSelectedAll = false
|
|
176029
176037
|
} = props;
|
|
176030
176038
|
const [isInit, setIsInit] = useState(true);
|
|
176031
176039
|
const [tagsAll, setTagsAll] = useAtom(tagsAllState);
|
|
@@ -176063,7 +176071,8 @@ const PlaceFilterContainer = props => {
|
|
|
176063
176071
|
children: [jsxRuntimeExports.jsx(FieldInput, {}), jsxRuntimeExports.jsx(Tag, {}), jsxRuntimeExports.jsx(DataTable, {
|
|
176064
176072
|
isInit: isInit,
|
|
176065
176073
|
getPlacesByFilter: getPlacesByFilter,
|
|
176066
|
-
getPlacesByIds: getPlacesByIds
|
|
176074
|
+
getPlacesByIds: getPlacesByIds,
|
|
176075
|
+
isSelectedAll: isSelectedAll
|
|
176067
176076
|
})]
|
|
176068
176077
|
});
|
|
176069
176078
|
};
|
package/dist/index.d.ts
CHANGED