"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.getDefaultValueViews = getDefaultValueViews;
const i18n_1 = __importDefault(require("../../../locales/i18n.js"));
/**
 * 创建默认视图数据对象，用于初始化新视图
 * @param params.viewId - 视图唯一标识
 * @param params.name - 视图名称，默认取国际化的「表格」
 * @param params.columnOrder - 列排序数组
 * @param params.type - 视图类型，默认 'Grid'
 * @param params.creator - 创建者标识
 * @returns 包含完整默认字段的视图配置对象
 */
function getDefaultValueViews({ viewId, name = i18n_1.default.get({ id: 'Table', dm: '表格' }), columnOrder = [], type = 'Grid', creator, }) {
    const timestamp = new Date().getTime();
    return {
        id: viewId,
        name,
        type,
        timestamp,
        columnOrder,
        hiddenColumns: [],
        aiColumns: [],
        filter: [],
        sort: [],
        group: [],
        aggregate: {},
        custom: {},
        colorFill: [],
        aiConfig: {},
        creator,
        createTime: timestamp,
    };
}
