mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-09 14:43:05 -04:00
33 lines
No EOL
931 B
JavaScript
33 lines
No EOL
931 B
JavaScript
|
|
module.exports.BuiltInButtonTypes = Object.freeze({
|
|
NEXT_PAGE: "next",
|
|
PREVIOUS_PAGE: "previous"
|
|
})
|
|
|
|
module.exports.DEFAULT_BUTTON_ICON_MAPPINGS = Object.freeze({
|
|
[this.BuiltInButtonTypes.NEXT_PAGE]: "button_chevron_right",
|
|
[this.BuiltInButtonTypes.PREVIOUS_PAGE]: "button_chevron_left"
|
|
});
|
|
|
|
module.exports.STACK_CACHE_KEYS = Object.freeze({
|
|
RESULT_CARDS: 0
|
|
})
|
|
|
|
/**
|
|
* Callback Types for a Dynamic Card Stack
|
|
* Component resolve.
|
|
*
|
|
* - `SUBSTACK` - Creates a "submenu" with a brand new cardstack
|
|
* - `REPLACE_PARENT` - Replaces the parent card in the root stack
|
|
* - This callback type will also unselect the button
|
|
* - `REPLACE_ROOT_STACK` - Replaces the root stack
|
|
* - This callback type will also unselect the button
|
|
*/
|
|
module.exports.ResolveCallbackTypes = Object.freeze({
|
|
SUBSTACK: 0,
|
|
REPLACE_PARENT_CARD: 1,
|
|
REPLACE_STACK: 2,
|
|
0: "SUBSTACK",
|
|
1: "REPLACE_PARENT_CARD",
|
|
2: "REPLACE_STACK",
|
|
}) |