lml-main
Version:
This is now a mono repository published into many standalone packages.
49 lines • 1.92 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.SET_ACTIVE_CONSOLIDATION = 'SET_ACTIVE_CONSOLIDATION';
exports.UNSET_ACTIVE_CONSOLIDATION = 'UNSET_ACTIVE_CONSOLIDATION';
exports.SET_CONSOLIDATION_EXPANDED = 'SET_CONSOLIDATION_EXPANDED';
exports.SET_CONSOLIDATION_COLLAPSED = 'SET_CONSOLIDATION_COLLAPSED';
exports.SET_ALL_CONSOLIDATIONS_EXPANDED = 'SET_ALL_CONSOLIDATIONS_EXPANDED';
exports.SET_ALL_CONSOLIDATIONS_COLLAPSED = 'SET_ALL_CONSOLIDATIONS_COLLAPSED';
exports.SET_JUMP_TO_CONSOLIDATION = 'SET_JUMP_TO_CONSOLIDATION';
exports.SET_VISIBLE_CONSOLIDATIONS = 'SET_VISIBLE_CONSOLIDATIONS';
exports.SHOW_CONSOLIDATION_DIRECTIONS = 'SHOW_CONSOLIDATION_DIRECTIONS';
exports.HIDE_CONSOLIDATION_DIRECTIONS = 'HIDE_CONSOLIDATION_DIRECTIONS';
/**
* Set the active consolidation to a given id or to null
*
* @param refId
*/
exports.setActiveConsolidation = (refId) => ({ type: exports.SET_ACTIVE_CONSOLIDATION, refId });
/**
* If the provided consolidation refId is currently active then set it to null
*/
exports.unsetActiveConsolidation = (refId) => ({ type: exports.UNSET_ACTIVE_CONSOLIDATION, refId });
/**
* Add a consolidation's refId to the array of expanded consolidations
*
* @param refId
* @param expanded
*/
exports.setConsolidationExpanded = (refId) => ({ type: exports.SET_CONSOLIDATION_EXPANDED, refId });
/**
* Remove a consolidation's refId from the array of expanded consolidations
*
* @param refId
* @param expanded
*/
exports.setConsolidationCollapsed = (refId) => ({ type: exports.SET_CONSOLIDATION_COLLAPSED, refId });
/**
* Mark all consolidations as expanded
*/
exports.setAllConsolidationsExpanded = () => ({
type: exports.SET_ALL_CONSOLIDATIONS_EXPANDED,
});
/**
* Mark all consolidations as expanded
*/
exports.setAllConsolidationsCollapsed = () => ({
type: exports.SET_ALL_CONSOLIDATIONS_COLLAPSED,
});
//# sourceMappingURL=flags.js.map