"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.getDefaultViewConfigs = getDefaultViewConfigs;
const i18n_1 = __importDefault(require("../../../locales/i18n.js"));
const generate_view_id_1 = require("./generate-view-id");
const get_default_views_1 = require("./get-default-views");
/**
 * 生成默认视图配置字典
 * 创建一个包含单个默认 Grid 视图的配置映射，键为自动生成的 viewId
 * @param columnOrder - 列排序数组，决定视图中列的展示顺序
 * @returns 以 viewId 为键、视图配置为值的字典对象
 */
function getDefaultViewConfigs(columnOrder) {
    const viewId = (0, generate_view_id_1.generateViewId)();
    const defaultViews = (0, get_default_views_1.getDefaultValueViews)({
        viewId,
        name: i18n_1.default.get({ id: 'Table', dm: '表格' }),
        type: 'Grid',
        creator: '',
        columnOrder,
    });
    return {
        [viewId]: defaultViews,
    };
}
