@gct-paas/word 0.2.1 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/base/select/src/basic-select.vue.d.ts +3 -0
- package/dist/core/command/commands/SetBold.d.ts +1 -0
- package/dist/core/command/commands/SetFont.d.ts +1 -0
- package/dist/core/model/DocModel.d.ts +3 -0
- package/dist/core/model/document/WrPr.d.ts +1 -1
- package/dist/core/model/document/WrText.d.ts +1 -1
- package/dist/core/model/font-usage.d.ts +22 -0
- package/dist/core/model/index.d.ts +0 -6
- package/dist/index.es.js +1270 -1033
- package/dist/suites/shared/panel/config/editor/quick-search-editor/quick-search.util.d.ts +1 -0
- package/dist/utils/fonts/cjk-font-catalog.d.ts +0 -5
- package/dist/utils/fonts/ensure-document-fonts.d.ts +9 -9
- package/dist/word.css +141 -132
- package/package.json +1 -1
- package/dist/utils/pdf/load-cjk-font.d.ts +0 -2
|
@@ -8,5 +8,6 @@ export declare const SEARCHABLE_FIELD_DEFAULT_FIELDS_MAP: {
|
|
|
8
8
|
material: string[];
|
|
9
9
|
reasonAndGroup: string[];
|
|
10
10
|
operation: string[];
|
|
11
|
+
warehouse: string[];
|
|
11
12
|
};
|
|
12
13
|
export declare const getDefaultQuickSearchFields: (fieldMeta: FieldMeta, tableType?: string) => string[];
|
|
@@ -13,11 +13,6 @@ export type CjkFontSpec = {
|
|
|
13
13
|
localKeyIncludes: string;
|
|
14
14
|
};
|
|
15
15
|
export declare const CJK_FONT_SPECS: CjkFontSpec[];
|
|
16
|
-
/** 屏显 + PDF 对齐所需的最小字重集 */
|
|
17
|
-
export declare const SCREEN_ESSENTIAL_FONTS: Array<{
|
|
18
|
-
family: CjkFontFamily;
|
|
19
|
-
weight: CjkFontWeight;
|
|
20
|
-
}>;
|
|
21
16
|
export declare function findCjkFontSpec(family: CjkFontFamily, weight: CjkFontWeight): CjkFontSpec;
|
|
22
17
|
/** 与 Ribbon 选项一致的文档 CSS 栈(黑体 / 宋体 / 楷体) */
|
|
23
18
|
export declare const CJK_DOCUMENT_FONT_FAMILY: Record<CjkFontFamily, string>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { CjkFontFamily, CjkFontWeight } from './cjk-font-catalog';
|
|
2
|
+
import { ModelFontUsage } from '../../core/model/font-usage';
|
|
3
|
+
type RequiredScreenFont = {
|
|
4
|
+
family: CjkFontFamily;
|
|
5
|
+
weight: CjkFontWeight;
|
|
6
|
+
};
|
|
2
7
|
/** 加载字体字节(PDF embed 与屏显共用缓存) */
|
|
3
8
|
export declare function loadCjkFontBytes(family?: CjkFontFamily, weight?: CjkFontWeight): Promise<ArrayBuffer>;
|
|
4
|
-
/**
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export declare function ensureScreenFontFace(family: CjkFontFamily, weight: CjkFontWeight): Promise<void>;
|
|
9
|
-
/** 屏显必需字体:三套族的 Regular + 加粗字重 */
|
|
10
|
-
export declare function ensureDocumentFontsLoaded(): Promise<void>;
|
|
11
|
-
/** 预热:不阻塞,尽早开始拉字体 */
|
|
12
|
-
export declare function preloadDocumentFonts(): void;
|
|
9
|
+
/** 使用 ModelConverter 转换阶段维护的索引,不再遍历完整文档。 */
|
|
10
|
+
export declare function collectRequiredScreenFontsForUsage(usage?: ModelFontUsage | null): RequiredScreenFont[];
|
|
11
|
+
export declare function ensureDocumentFontsForUsage(usage?: ModelFontUsage | null): Promise<void>;
|
|
12
|
+
export {};
|