"use strict";

Object.defineProperty(exports, "__esModule", {
    value: !0
}), exports.importStyle = void 0;

const env_1 = require("../tools/env");

function importStyle() {
    if ("node" === env_1.Env.mode) return;
    const styleElement = document.createElement("style");
    styleElement.id = "vtable-sheet-formula-autocomplete-styleSheet", styleElement.textContent = "\n/* 公式自动补全容器 */\n.vtable-formula-autocomplete {\n  position: absolute;\n  background: #ffffff;\n  border: 1px solid #d9d9d9;\n  border-radius: 4px;\n  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);\n  max-height: 320px;\n  overflow-y: auto;\n  z-index: 1050;\n  font-size: 13px;\n  min-width: 300px;\n}\n\n/* 自动补全项 */\n.vtable-formula-autocomplete-item {\n  padding: 8px 12px;\n  cursor: pointer;\n  transition: background-color 0.2s;\n  display: flex;\n  flex-direction: column;\n  gap: 4px;\n}\n\n.vtable-formula-autocomplete-item:not(:last-child) {\n  border-bottom: 1px solid #f0f0f0;\n}\n\n.vtable-formula-autocomplete-item:hover {\n  background-color: #f5f7fa;\n}\n\n.vtable-formula-autocomplete-item.selected {\n  background-color: #e6f7ff;\n}\n\n/* 函数名称 */\n.vtable-formula-autocomplete-item .item-name {\n  font-weight: 600;\n  color: #1890ff;\n  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;\n  font-size: 14px;\n  display: flex;\n  align-items: center;\n  gap: 8px;\n}\n\n/* 函数类型标签 */\n.vtable-formula-autocomplete-item .item-type {\n  display: inline-flex;\n  align-items: center;\n  padding: 0 6px;\n  height: 18px;\n  background: #f0f0f0;\n  border-radius: 2px;\n  font-size: 11px;\n  color: #666;\n  font-weight: normal;\n}\n\n.vtable-formula-autocomplete-item .item-type.function {\n  background: #e6f7ff;\n  color: #1890ff;\n}\n\n.vtable-formula-autocomplete-item .item-type.cell {\n  background: #f6ffed;\n  color: #52c41a;\n}\n\n.vtable-formula-autocomplete-item .item-type.range {\n  background: #fff7e6;\n  color: #fa8c16;\n}\n\n/* 函数签名 */\n.vtable-formula-autocomplete-item .item-signature {\n  font-size: 12px;\n  color: #595959;\n  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;\n  margin-left: 2px;\n}\n\n/* 函数描述 */\n.vtable-formula-autocomplete-item .item-description {\n  font-size: 12px;\n  color: #8c8c8c;\n  line-height: 1.4;\n  margin-top: 2px;\n}\n\n/* 无结果提示 */\n.vtable-formula-autocomplete-empty {\n  padding: 20px;\n  text-align: center;\n  color: #999;\n  font-size: 13px;\n}\n\n/* 滚动条样式 */\n.vtable-formula-autocomplete::-webkit-scrollbar {\n  width: 6px;\n}\n\n.vtable-formula-autocomplete::-webkit-scrollbar-track {\n  background: #f0f0f0;\n  border-radius: 3px;\n}\n\n.vtable-formula-autocomplete::-webkit-scrollbar-thumb {\n  background: #bfbfbf;\n  border-radius: 3px;\n}\n\n.vtable-formula-autocomplete::-webkit-scrollbar-thumb:hover {\n  background: #999;\n}\n\n/* 分组标题 */\n.vtable-formula-autocomplete-group {\n  padding: 6px 12px;\n  font-size: 12px;\n  font-weight: 600;\n  color: #999;\n  background: #fafafa;\n  border-bottom: 1px solid #f0f0f0;\n  position: sticky;\n  top: 0;\n  z-index: 1;\n}\n\n/* 快捷键提示 */\n.vtable-formula-autocomplete-footer {\n  padding: 8px 12px;\n  background: #fafafa;\n  border-top: 1px solid #f0f0f0;\n  font-size: 11px;\n  color: #999;\n  display: flex;\n  gap: 16px;\n  position: sticky;\n  bottom: 0;\n}\n\n.vtable-formula-autocomplete-footer .shortcut {\n  display: flex;\n  align-items: center;\n  gap: 4px;\n}\n\n.vtable-formula-autocomplete-footer .key {\n  display: inline-block;\n  padding: 2px 6px;\n  background: #fff;\n  border: 1px solid #d9d9d9;\n  border-radius: 2px;\n  font-family: 'Consolas', 'Monaco', monospace;\n  font-size: 10px;\n  color: #666;\n}\n\n.vtable-formula-autocomplete {\n  z-index: 10000 !important;\n}\n\n.vtable-editor-container input {\n  font-family: inherit;\n}\n", 
    document.head.appendChild(styleElement);
}

exports.importStyle = importStyle;
//# sourceMappingURL=formula-autocomplete.js.map