@gct-paas/word 1.0.0 → 1.0.2
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/README.md +9 -5
- package/dist/browser.js +1 -1
- package/dist/chunks/{ModelEditor-GzaLnnX8.js → ModelEditor-CXoezurC.js} +2 -2
- package/dist/chunks/{ModelEditor-GzaLnnX8.js.map → ModelEditor-CXoezurC.js.map} +1 -1
- package/dist/chunks/{browser-CP0ycXqN.js → browser-DY0wE3Uz.js} +10 -9
- package/dist/chunks/browser-DY0wE3Uz.js.map +1 -0
- package/dist/chunks/{change-set-DNOw1FXo.js → change-set-DgfKTJ6d.js} +12 -2
- package/dist/chunks/change-set-DgfKTJ6d.js.map +1 -0
- package/dist/chunks/{sdk-DH5c-Bbt.js → sdk-Dz96Ca_-.js} +16 -16
- package/dist/chunks/sdk-Dz96Ca_-.js.map +1 -0
- package/dist/chunks/{types-XXuIIZ9e.js → types-Bq4hbWKT.js} +2 -2
- package/dist/chunks/{types-XXuIIZ9e.js.map → types-Bq4hbWKT.js.map} +1 -1
- package/dist/index.js +4 -4
- package/dist/platform.js +3 -2
- package/dist/platform.js.map +1 -1
- package/dist/style.css +160 -181
- package/dist/types/adapters/vue/WordPdfExportOptions.vue.d.ts +7 -0
- package/dist/types/runtime/form/shared/identity.d.ts +0 -1
- package/dist/types/runtime/form/shared/row.d.ts +0 -1
- package/dist/types/shared/form-config/identity.d.ts +3 -0
- package/dist/types/shared/identity.d.ts +3 -0
- package/dist/vue.js +697 -588
- package/dist/vue.js.map +1 -1
- package/package.json +24 -18
- package/dist/chunks/browser-CP0ycXqN.js.map +0 -1
- package/dist/chunks/change-set-DNOw1FXo.js.map +0 -1
- package/dist/chunks/sdk-DH5c-Bbt.js.map +0 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { C as snapshotSealDefinition, D as snapshotPageWidgetDragDefinition, E as snapshotFieldDragDefinition, En as wordClipboardType, Gt as resourceUrl, I as designRegionTypes, L as designRegionVariants, Ln as assertLayoutTextMeasureRequest, Nn as layoutImageSourceKey, On as parseTsv, Pn as LayoutContractError, Rn as assertLayoutTextMeasurement, W as sameBusinessField, Wt as resourceName, h as sameFieldSignatureInput, jn as sameLayoutVersion, kn as tsvClipboardLimits, qt as validateResourceFiles, r as sameFieldTextInput, t as nativeTableRowBatchLimit, v as sameFieldChoiceInput, y as sameFieldOptionInput } from "./types-
|
|
1
|
+
import { C as snapshotSealDefinition, D as snapshotPageWidgetDragDefinition, E as snapshotFieldDragDefinition, En as wordClipboardType, Gt as resourceUrl, I as designRegionTypes, L as designRegionVariants, Ln as assertLayoutTextMeasureRequest, Nn as layoutImageSourceKey, On as parseTsv, Pn as LayoutContractError, Rn as assertLayoutTextMeasurement, W as sameBusinessField, Wt as resourceName, h as sameFieldSignatureInput, jn as sameLayoutVersion, kn as tsvClipboardLimits, qt as validateResourceFiles, r as sameFieldTextInput, t as nativeTableRowBatchLimit, v as sameFieldChoiceInput, y as sameFieldOptionInput } from "./types-Bq4hbWKT.js";
|
|
2
|
+
import { u as createUuid } from "./change-set-DgfKTJ6d.js";
|
|
2
3
|
import { t as waitForAbortable } from "./abortable-D4G3Ib7H.js";
|
|
3
4
|
import { C as ModelEditError, c as DocumentValidationError, t as NodeFactory } from "./NodeFactory-D9gVGSok.js";
|
|
4
5
|
import { a as getGctFieldIcon, o as GCT_BASE_FIELD_TYPES, s as GCT_BUSINESS_FIELD_TYPES } from "./fields-CAcm6X98.js";
|
|
@@ -154,7 +155,7 @@ var NativeFontResources = class {
|
|
|
154
155
|
/** 关闭后解除宿主通知和字体集合引用。 */
|
|
155
156
|
options;
|
|
156
157
|
/** 每份文档使用独立前缀,两个文档加载同名字体也不会覆盖。 */
|
|
157
|
-
prefix = `GCTFont_${
|
|
158
|
+
prefix = `GCTFont_${createUuid().replaceAll("-", "")}`;
|
|
158
159
|
/** 替换同一文件时使用新别名,避免旧结果在相同名字下读到新字节。 */
|
|
159
160
|
revision = 0;
|
|
160
161
|
/** 当前拥有的已提交字体。 */
|
|
@@ -5673,7 +5674,7 @@ var InlineFieldInput = class {
|
|
|
5673
5674
|
const message = this.message ??= owner.createElement("div");
|
|
5674
5675
|
if (!message.parentElement) {
|
|
5675
5676
|
message.className = "gct-word-field-input-message";
|
|
5676
|
-
message.id = `gct-word-field-message-${
|
|
5677
|
+
message.id = `gct-word-field-message-${createUuid()}`;
|
|
5677
5678
|
message.setAttribute("role", "alert");
|
|
5678
5679
|
owner.body.append(message);
|
|
5679
5680
|
}
|
|
@@ -9238,7 +9239,7 @@ var CanvasFieldDrag = class {
|
|
|
9238
9239
|
const binding = source.binding;
|
|
9239
9240
|
const identity = {
|
|
9240
9241
|
source,
|
|
9241
|
-
token:
|
|
9242
|
+
token: createUuid()
|
|
9242
9243
|
};
|
|
9243
9244
|
let active;
|
|
9244
9245
|
switch (binding.kind) {
|
|
@@ -9878,7 +9879,7 @@ var ChoiceOptionsPanel = class {
|
|
|
9878
9879
|
const state = options.read();
|
|
9879
9880
|
options.fields.appendOption(state, {
|
|
9880
9881
|
label: "新选项",
|
|
9881
|
-
value: `option-${
|
|
9882
|
+
value: `option-${createUuid()}`
|
|
9882
9883
|
});
|
|
9883
9884
|
});
|
|
9884
9885
|
root.append(add);
|
|
@@ -10394,7 +10395,7 @@ function id() {
|
|
|
10394
10395
|
key: "id",
|
|
10395
10396
|
label: "规则 ID",
|
|
10396
10397
|
kind: "id",
|
|
10397
|
-
initial: () =>
|
|
10398
|
+
initial: () => createUuid()
|
|
10398
10399
|
};
|
|
10399
10400
|
}
|
|
10400
10401
|
/** 外部业务目标不要求已放入画布,也不引用运行时行索引。 */
|
|
@@ -11057,8 +11058,8 @@ var CanvasFieldDesignPanel = class {
|
|
|
11057
11058
|
if (state.status === "ready") for (const group of state.groups) for (const field of group.fields) {
|
|
11058
11059
|
if (field.definition.widget !== this.state?.widget) continue;
|
|
11059
11060
|
const option = owner.createElement("option");
|
|
11060
|
-
let token = `catalog:${
|
|
11061
|
-
while ([...select.options].some((item) => item.value === token)) token = `catalog:${
|
|
11061
|
+
let token = `catalog:${createUuid()}`;
|
|
11062
|
+
while ([...select.options].some((item) => item.value === token)) token = `catalog:${createUuid()}`;
|
|
11062
11063
|
option.value = token;
|
|
11063
11064
|
option.textContent = `${group.label} · ${field.label} · ${field.definition.binding.source.subFieldKey ? "子表" : "主表"}`;
|
|
11064
11065
|
catalogFields.set(token, field);
|
|
@@ -14035,4 +14036,4 @@ function sameRow(current, previous) {
|
|
|
14035
14036
|
}
|
|
14036
14037
|
export { revealInputRect as A, viewportClip as B, attachCanvasValidationPanel as C, CanvasTableScanDialog as D, CanvasBusinessTablePanel as E, inputPageLocation as F, NativeFontResources as G, loadBrowserImage as H, inputPointerRequest as I, CanvasTextMeasurer as J, NativeFontError as K, inputScreenPages as L, resourceFileIcon as M, openImageViewer as N, CanvasQuickFillDialog as O, clipInputRect as P, inputScreenRect as R, CanvasFieldDrag as S, attachCanvasBusinessTablePanel as T, CanvasImageResources as U, paintPage as V, layoutImages as W, applyCanvasTextStyle as Y, wordPanelErrorText as _, attachCanvasFieldDesignPanel as a, CanvasObjectHandles as b, attachCanvasTableDesignPanel as c, attachCanvasFieldCatalogPanel as d, CanvasFieldCatalogPanel as f, readWordErrorText as g, isWordValidationError as h, CanvasMaterialsPanel as i, ResourceFileSizes as j, CanvasTextInput as k, CanvasTableDesignPanel as l, CanvasFieldDesignPanel as m, CanvasBusinessTableActions as n, attachCanvasRegionDesignPanel as o, CanvasFormatPanel as p, browserAbortable as q, attachCanvasMaterialsPanel as r, CanvasRegionDesignPanel as s, CanvasMaterialTableActions as t, attachCanvasFormatPanel as u, fieldSettingControls as v, attachCanvasTextInput as w, attachCanvasFieldDrag as x, attachCanvasObjectHandles as y, CanvasPages as z };
|
|
14037
14038
|
|
|
14038
|
-
//# sourceMappingURL=browser-
|
|
14039
|
+
//# sourceMappingURL=browser-DY0wE3Uz.js.map
|