"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const format_tag_1 = __importDefault(require("./format-tag"));
const format_ellipsis_1 = __importDefault(require("./format-ellipsis"));
const format_number_1 = __importDefault(require("./format-number"));
// eslint-disable-next-line import/no-cycle
const format_enumeration_1 = __importDefault(require("./format-enumeration"));
const format_currency_1 = require("./format-currency");
const format_currency_with_unit_1 = require("./format-currency-with-unit");
const format_percent_1 = require("./format-percent");
const format_user_1 = require("./format-user");
const format_graphics_percent_1 = require("./format-graphics-percent");
const format_progress_1 = require("./format-progress");
const format_multiple_text_1 = require("./format-multiple-text");
const format_image_text_1 = require("./format-image-text");
const format_date_1 = require("./format-date");
const format_date_time_1 = require("./format-date-time");
const format_file_1 = require("./format-file");
const format_bank_1 = require("./format-bank");
const format_micrometer_1 = require("./format-micrometer");
const format_ai_generate_1 = require("./format-ai-generate");
const format_formula_1 = require("./format-formula");
/**
 * 获取默认格式映射表
 * @param context 本地化上下文
 * @param adapterLocale 本地化适配标识
 * @returns 格式映射表
 */
const getDefaultFormat = (context, adapterLocale) => {
    const numAdapterLocale = adapterLocale !== undefined ? adapterLocale : context === null || context === void 0 ? void 0 : context.numAdapterLocale;
    const dateAdapterLocale = adapterLocale !== undefined ? adapterLocale : context === null || context === void 0 ? void 0 : context.dateAdapterLocale;
    return {
        tag: format_tag_1.default,
        number: {
            cell(val) {
                return (0, format_number_1.default)(val, numAdapterLocale);
            },
        },
        currency: (0, format_currency_1.createCurrencyFormat)(numAdapterLocale),
        'currency-with-unit': (0, format_currency_with_unit_1.createCurrencyWithUnitFormat)(numAdapterLocale),
        percent: (0, format_percent_1.createPercentFormat)(numAdapterLocale),
        user: (0, format_user_1.createUserFormat)(),
        'graphics-percent': (0, format_graphics_percent_1.createGraphicsPercentFormat)(),
        progress: (0, format_progress_1.createProgressFormat)(numAdapterLocale),
        'multiple-text': (0, format_multiple_text_1.createMultipleTextFormat)(),
        'image-text': (0, format_image_text_1.createImageTextFormat)(),
        date: (0, format_date_1.createDateFormat)(dateAdapterLocale),
        'date-time': (0, format_date_time_1.createDateTimeFormat)(dateAdapterLocale),
        file: (0, format_file_1.createFileFormat)(),
        bank: (0, format_bank_1.createBankFormat)(),
        ellipsis: format_ellipsis_1.default,
        micrometer: (0, format_micrometer_1.createMicrometerFormat)(),
        enumeration: format_enumeration_1.default,
        'ai-generate': format_ai_generate_1.createAiGenerateFormat,
        formula: format_formula_1.createFormulaFormat,
    };
};
exports.default = getDefaultFormat;
