"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DATE_INPUT_DATE_FORMAT = exports.LOADING_SCREEN_TEXT = exports.LOADING_SCREEN_TITLE = exports.LOADING_SCREEN_DELAY = exports.ENGLISH_VARIANT = exports.DASHBOARD_BUTTONS_LOCATION_RIGHT = exports.DASHBOARD_BUTTONS_LOCATION_LEFT = exports.QUICK_SEARCH_PLACEHOLDER = exports.NOTIFICATION_MAX_SYSTEM_MESSAGES = exports.NOTIFICATION_DURATION = exports.TOAST_TRANSITIONS_SLIDE = exports.TOAST_POSITIONS_BOTTOM_RIGHT = exports.RAW_VALUE_DATA_CHANGE_DETECTION_POLICY = exports.DEFAULT_DOUBLE_DISPLAY_VALUE = exports.DEFAULT_INTEGER_DISPLAY_VALUE = exports.DEFAULT_STRING_DISPLAY_VALUE = exports.BLANK_DISTINCT_COLUMN_VALUE = exports.DEFAULT_DATE_FORMAT_PATTERN_WITH_TIME = exports.DEFAULT_DATE_FORMAT_PATTERN = exports.ADAPTABLE_FDC3_ACTION_COLUMN_FRIENDLY_NAME = exports.ADAPTABLE_ROW_ACTION_BUTTONS_FRIENDLY_NAME = exports.ADAPTABLE_ROW_ACTION_BUTTONS = exports.AG_GRID_CHART_WINDOW = exports.AG_GRID_PIVOT_COLUMN = exports.AG_GRID_GROUPED_COLUMN = exports.GROUP_PATH_SEPARATOR = exports.HALF_SECOND = exports.AB_FDC3_COLUMN = exports.AB_ROW_ACTIONS_COLUMN = exports.AB_SPECIAL_COLUMN = exports.EMPTY_ARRAY = exports.EMPTY_STRING = exports.ALL_COLUMN_VALUES = exports.READ_ONLY_STYLE = exports.MENU_PREFIX = exports.AGGRID_TOOLPANEL_COLUMNS = exports.AGGRID_TOOLPANEL_FILTERS = exports.ADAPTABLE_TOOLPANEL_COMPONENT = exports.ADAPTABLE_TOOLPANEL_ID = exports.AG_GRID_CONTAINER_ID = exports.ADAPTABLE_CONTAINER_ID = exports.ADAPTABLE = exports.ADAPTABLE_ID = exports.USER_NAME = exports.OS_THEME = exports.DARK_THEME = exports.LIGHT_THEME = exports.DEFAULT_LAYOUT = exports.MISSING_COLUMN = exports.AUTOGENERATED_PK_COLUMN = void 0;
exports.THEME_STYLE = exports.SELECTED_ROWS_REPORT = exports.SELECTED_CELLS_REPORT = exports.CURRENT_DATA_REPORT = exports.ALL_DATA_REPORT = exports.VISUAL_DATA_REPORT = exports.SYSTEM_THEMES = exports.SMART_EDIT_MATH_OPERATION_STATE_PROPERTY = exports.SMART_EDIT_VALUE_STATE_PROPERTY = exports.QUICK_SEARCH_STYLE_STATE_PROPERTY = exports.QUICK_SEARCH_TEXT_STATE_PROPERTY = exports.CURRENT_THEME_STATE_PROPERTY = exports.FLASHING_CELL_DEFAULT_DURATION_STATE_PROPERTY = exports.FLASHING_CELL_DEFAULT_DOWN_COLOR_STATE_PROPERTY = exports.FLASHING_CELL_DEFAULT_UP_COLOR_STATE_PROPERTY = exports.CURRENT_REPORT_STATE_PROPERTY = exports.CURRENT_LAYOUT_STATE_PROPERTY = exports.SUMMARY_OPERATION_STATE_PROPERTY = exports.ALERT_DEFAULT_SHOW_POPUP = exports.ALERT_DEFAULT_MESSAGE_TYPE = exports.PLUS_MINUS_DEFAULT_NUDGE_VALUE = exports.SERVER_VALIDATION_MESSAGE_TYPE = exports.SERVER_VALIDATION_HEADER = exports.DEFAULT_LIVE_REPORT_THROTTLE_TIME = exports.THEME_DEFAULT_CURRENT_THEME = exports.SYSTEM_DEFAULT_SYSTEM_STATUS_TYPE = exports.CELL_SUMMARY_DEFAULT_OPERATION = exports.QUICK_SEARCH_DEBOUNCE_TIME = exports.QUICK_SEARCH_DEFAULT_FORE_COLOR = exports.QUICK_SEARCH_DEFAULT_BACK_COLOR = exports.SYSTEM_STATUS_DEFAULT_MAX_MESSAGES_IN_STORE = exports.STANDALONE_MODULE_POPUPS = exports.ACCESS_LEVEL_FULL = exports.ACCESS_LEVEL_HIDDEN = exports.ACCESS_LEVEL_READONLY = exports.FDC3_ACTION_COLUMN_DEFAULT_HEADER_NAME = exports.FDC3_ACTION_COLUMN_DEFAULT_COLUMN_ID = exports.DISPLAY_ROW_GROUPS_CLOSED = exports.DISPLAY_ROW_GROUPS_EXPANDED = exports.DISPLAY_ROW_GROUPS_DYNAMIC = exports.SAVE_CHART_BEHAVIOUR_NONE = exports.SAVE_CHART_BEHAVIOUR_MANUAL = exports.SAVE_CHART_BEHAVIOUR_AUTO = exports.POPUP_TYPE_WINDOW = exports.POPUP_TYPE_MODAL = exports.ICON_CONFIGURATION = exports.FLASHING_TARGET_ROW = exports.FLASHING_TARGET_CELL = void 0;
const Enums_1 = require("../../PredefinedConfig/Common/Enums");
const UIHelper_1 = require("../../View/UIHelper");
exports.AUTOGENERATED_PK_COLUMN = '__ADAPTABLE_PK__';
exports.MISSING_COLUMN = ' [MISSING]';
exports.DEFAULT_LAYOUT = 'Default Layout';
exports.LIGHT_THEME = 'light';
exports.DARK_THEME = 'dark';
exports.OS_THEME = 'os';
exports.USER_NAME = 'anonymous';
exports.ADAPTABLE_ID = 'adaptable_id';
exports.ADAPTABLE = 'AdapTable';
exports.ADAPTABLE_CONTAINER_ID = 'adaptable';
exports.AG_GRID_CONTAINER_ID = 'grid';
exports.ADAPTABLE_TOOLPANEL_ID = 'adaptable';
exports.ADAPTABLE_TOOLPANEL_COMPONENT = 'AdaptableToolPanel';
// from https://www.ag-grid.com/javascript-data-grid/side-bar/#string-configuration
exports.AGGRID_TOOLPANEL_FILTERS = 'filters';
exports.AGGRID_TOOLPANEL_COLUMNS = 'columns';
exports.MENU_PREFIX = 'ab_';
exports.READ_ONLY_STYLE = 'ab_readonly';
exports.ALL_COLUMN_VALUES = 'ALL_COLUMN_VALUES';
exports.EMPTY_STRING = '';
exports.EMPTY_ARRAY = [];
exports.AB_SPECIAL_COLUMN = 'abSpecialColumn';
exports.AB_ROW_ACTIONS_COLUMN = 'abRowActionsColumn';
exports.AB_FDC3_COLUMN = 'abFdc3Column';
exports.HALF_SECOND = 500;
exports.GROUP_PATH_SEPARATOR = '/';
exports.AG_GRID_GROUPED_COLUMN = 'ag-Grid-AutoColumn';
exports.AG_GRID_PIVOT_COLUMN = 'pivot_';
exports.AG_GRID_CHART_WINDOW = 'AG Grid Window';
exports.ADAPTABLE_ROW_ACTION_BUTTONS = 'adaptableRowActionButtons';
exports.ADAPTABLE_ROW_ACTION_BUTTONS_FRIENDLY_NAME = '(ActionRowButtons)';
exports.ADAPTABLE_FDC3_ACTION_COLUMN_FRIENDLY_NAME = '(FDC3ActionColumn)';
exports.DEFAULT_DATE_FORMAT_PATTERN = 'dd-MM-yyyy';
exports.DEFAULT_DATE_FORMAT_PATTERN_WITH_TIME = 'dd-MM-yyyy HH:mm:ss';
exports.BLANK_DISTINCT_COLUMN_VALUE = '[BLANKS]';
exports.DEFAULT_STRING_DISPLAY_VALUE = 'Hello World';
exports.DEFAULT_INTEGER_DISPLAY_VALUE = 12345;
exports.DEFAULT_DOUBLE_DISPLAY_VALUE = 12345.6789;
exports.RAW_VALUE_DATA_CHANGE_DETECTION_POLICY = 'rawValue';
exports.TOAST_POSITIONS_BOTTOM_RIGHT = 'BottomRight';
exports.TOAST_TRANSITIONS_SLIDE = 'Slide';
exports.NOTIFICATION_DURATION = 3000;
exports.NOTIFICATION_MAX_SYSTEM_MESSAGES = 100;
exports.QUICK_SEARCH_PLACEHOLDER = 'Search';
exports.DASHBOARD_BUTTONS_LOCATION_LEFT = 'left';
exports.DASHBOARD_BUTTONS_LOCATION_RIGHT = 'right';
// User Interface
exports.ENGLISH_VARIANT = 'GB';
exports.LOADING_SCREEN_DELAY = 200;
exports.LOADING_SCREEN_TITLE = 'Initialising Grid';
exports.LOADING_SCREEN_TEXT = 'Retrieving your settings and setting up the grid...';
exports.DATE_INPUT_DATE_FORMAT = 'yyyy-MM-dd';
// Flashing Cell
exports.FLASHING_TARGET_CELL = 'cell';
exports.FLASHING_TARGET_ROW = 'row';
exports.ICON_CONFIGURATION = 'ConfigurationIcon';
exports.POPUP_TYPE_MODAL = 'modal';
exports.POPUP_TYPE_WINDOW = 'window';
exports.SAVE_CHART_BEHAVIOUR_AUTO = 'auto';
exports.SAVE_CHART_BEHAVIOUR_MANUAL = 'manual';
exports.SAVE_CHART_BEHAVIOUR_NONE = 'none';
// Layout
exports.DISPLAY_ROW_GROUPS_DYNAMIC = 'dynamic';
exports.DISPLAY_ROW_GROUPS_EXPANDED = 'expanded';
exports.DISPLAY_ROW_GROUPS_CLOSED = 'closed';
// FDC3 defaults
exports.FDC3_ACTION_COLUMN_DEFAULT_COLUMN_ID = 'fdc3ActionColumn';
exports.FDC3_ACTION_COLUMN_DEFAULT_HEADER_NAME = 'FDC3 Actions';
// Entitlement Defaults
exports.ACCESS_LEVEL_READONLY = 'ReadOnly';
exports.ACCESS_LEVEL_HIDDEN = 'Hidden';
exports.ACCESS_LEVEL_FULL = 'Full';
// Standalone Popups
exports.STANDALONE_MODULE_POPUPS = [
    'BulkUpdate',
    'SmartEdit',
    'CellSummary',
];
/*
Redux / State Defaults
Try to put all our Redux / State defaults here and ONLY reference from here - avoid magic numbers / strings.
Please!!!
*/
//System Status
exports.SYSTEM_STATUS_DEFAULT_MAX_MESSAGES_IN_STORE = 100;
// Quick Search
exports.QUICK_SEARCH_DEFAULT_BACK_COLOR = (0, UIHelper_1.getHexForName)(UIHelper_1.LIGHT_YELLOW);
exports.QUICK_SEARCH_DEFAULT_FORE_COLOR = (0, UIHelper_1.getHexForName)(UIHelper_1.BLACK);
exports.QUICK_SEARCH_DEBOUNCE_TIME = 350;
// Cells Summary
exports.CELL_SUMMARY_DEFAULT_OPERATION = Enums_1.SummaryOperation.Sum;
// export const SYSTEM_DEFAULT_SYSTEM_STATUS_COLOUR: 'Red' | 'Amber' | 'Green' | 'Blue' =
//  StatusColour.Green;
exports.SYSTEM_DEFAULT_SYSTEM_STATUS_TYPE = 'Info';
// theme
exports.THEME_DEFAULT_CURRENT_THEME = exports.LIGHT_THEME;
// Live Report Throttle Time (used in OpenFin, IPushPull etc.)
exports.DEFAULT_LIVE_REPORT_THROTTLE_TIME = 2000;
exports.SERVER_VALIDATION_HEADER = 'Server Validation Message';
exports.SERVER_VALIDATION_MESSAGE_TYPE = 'Info';
/**
 * Object Factory
 */
exports.PLUS_MINUS_DEFAULT_NUDGE_VALUE = 1;
exports.ALERT_DEFAULT_MESSAGE_TYPE = 'Error';
exports.ALERT_DEFAULT_SHOW_POPUP = true;
/**
 * Constants for State (primarily for audit property events) - good idea?
 */
exports.SUMMARY_OPERATION_STATE_PROPERTY = 'SummaryOperation';
exports.CURRENT_LAYOUT_STATE_PROPERTY = 'CurrentLayout';
exports.CURRENT_REPORT_STATE_PROPERTY = 'CurrentReport';
exports.FLASHING_CELL_DEFAULT_UP_COLOR_STATE_PROPERTY = 'DefaultUpColor';
exports.FLASHING_CELL_DEFAULT_DOWN_COLOR_STATE_PROPERTY = 'DefautDownColor';
exports.FLASHING_CELL_DEFAULT_DURATION_STATE_PROPERTY = 'DefaultDuration';
exports.CURRENT_THEME_STATE_PROPERTY = 'CurrentTheme';
exports.QUICK_SEARCH_TEXT_STATE_PROPERTY = 'QuickSearchText';
exports.QUICK_SEARCH_STYLE_STATE_PROPERTY = 'Style';
exports.SMART_EDIT_VALUE_STATE_PROPERTY = 'SmartEditValue';
exports.SMART_EDIT_MATH_OPERATION_STATE_PROPERTY = 'MathOperationz';
// consts for Themes
exports.SYSTEM_THEMES = [
    {
        Name: exports.LIGHT_THEME,
        Description: 'Light Theme',
    },
    {
        Name: exports.DARK_THEME,
        Description: 'Dark Theme',
    },
    {
        Name: exports.OS_THEME,
        Description: 'OS Theme',
    },
];
exports.VISUAL_DATA_REPORT = 'Visual Data';
exports.ALL_DATA_REPORT = 'All Data';
exports.CURRENT_DATA_REPORT = 'Current Data';
exports.SELECTED_CELLS_REPORT = 'Selected Cells';
exports.SELECTED_ROWS_REPORT = 'Selected Rows';
exports.THEME_STYLE = `ab--theme-`;
