//#region ../../packages/components/table/src/table/utils-helper.ts
function useUtils(store) {
	const setCurrentRow = (row) => {
		store.commit("setCurrentRow", row);
	};
	const getSelectionRows = () => {
		return store.getSelectionRows();
	};
	const toggleRowSelection = (row, selected, ignoreSelectable = true) => {
		store.toggleRowSelection(row, selected, false, ignoreSelectable);
		store.updateAllSelected();
	};
	const clearSelection = () => {
		store.clearSelection();
	};
	const clearFilter = (columnKeys) => {
		store.clearFilter(columnKeys);
	};
	const toggleAllSelection = () => {
		store.commit("toggleAllSelection");
	};
	const toggleRowExpansion = (row, expanded) => {
		store.toggleRowExpansionAdapter(row, expanded);
	};
	const clearSort = () => {
		store.clearSort();
	};
	const sort = (prop, order) => {
		store.commit("sort", {
			prop,
			order
		});
	};
	const updateKeyChildren = (key, data) => {
		store.updateKeyChildren(key, data);
	};
	return {
		setCurrentRow,
		getSelectionRows,
		toggleRowSelection,
		clearSelection,
		clearFilter,
		toggleAllSelection,
		toggleRowExpansion,
		clearSort,
		sort,
		updateKeyChildren
	};
}

//#endregion
export { useUtils as default };
//# sourceMappingURL=utils-helper.mjs.map