@gct-paas/word 0.1.52-beta.10 → 0.1.52-beta.11
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/core/layout/handlers/FieldHandler.d.ts +1 -1
- package/dist/core/layout/handlers/fields/FieldBaseHandler.d.ts +7 -0
- package/dist/domain/field/field-binding.d.ts +4 -0
- package/dist/domain/table/business/warehouse/warehouse-allocate/profile/field-keys.d.ts +2 -1
- package/dist/index.es.js +85 -36
- package/dist/suites/edhr/check-table/check-table-dyn-value.d.ts +1 -1
- package/dist/word.css +49 -49
- package/package.json +1 -1
|
@@ -3,5 +3,5 @@ import { LayoutContext } from '../LayoutContext';
|
|
|
3
3
|
export declare class FieldHandler {
|
|
4
4
|
static layout(context: LayoutContext, wr: WrText): void;
|
|
5
5
|
/** 检验表交叉区 value_:按同行检验项 type_ 渲染,值路径固定 value_ */
|
|
6
|
-
private static
|
|
6
|
+
private static layoutCheckTableValue;
|
|
7
7
|
}
|
|
@@ -8,6 +8,13 @@ import { DataSlotIndex } from '../../../view/types';
|
|
|
8
8
|
type ValueType = string | number | undefined | null;
|
|
9
9
|
export declare class FieldBaseHandler extends RunHandlerBase {
|
|
10
10
|
static hasValue(value: ValueType): boolean;
|
|
11
|
+
/** 将展示文案拆成逐字 run;空串 split 会得到 [],需单独处理 */
|
|
12
|
+
static toLayoutChars(label: unknown): string[];
|
|
13
|
+
/**
|
|
14
|
+
* 展示内容为空时补一个带 widgetMeta/valuePath 的占位 run
|
|
15
|
+
* 避免段落只剩默认 TextRun(isPlaceholder=true)导致 getWidgetInstances 收集不到
|
|
16
|
+
*/
|
|
17
|
+
static ensureFieldWidgetAnchor(ctx: HandlerContext, layoutStyle: Partial<TextRun>, extra?: Partial<TextWidget>): void;
|
|
11
18
|
static getModelRefId(context: LayoutContext, wr: WrText): string;
|
|
12
19
|
static getDataSlotIndex(context: LayoutContext): DataSlotIndex | undefined;
|
|
13
20
|
static getValue(ctx: HandlerContext, valuePath: string): any;
|
|
@@ -4,16 +4,17 @@
|
|
|
4
4
|
/** 单字段 key */
|
|
5
5
|
export declare const F: {
|
|
6
6
|
readonly batch: "production_identification_id_";
|
|
7
|
+
readonly batchLb: "production_identification_id__lb_";
|
|
7
8
|
readonly product: "product_id_";
|
|
8
9
|
readonly productName: "product_id_name_";
|
|
9
10
|
readonly productCode: "product_id_code_";
|
|
10
11
|
readonly productSpec: "product_id_spec_";
|
|
11
|
-
readonly matno: "material_no_";
|
|
12
12
|
readonly validity: "validity_";
|
|
13
13
|
readonly stock: "stock_num_";
|
|
14
14
|
readonly warehouse: "warehouse_id_";
|
|
15
15
|
readonly location: "location_id_";
|
|
16
16
|
readonly originWarehouseId: "origin_warehouse_id_";
|
|
17
|
+
readonly originWarehouseIdLb: "origin_warehouse_id__lb_";
|
|
17
18
|
readonly originLocationId: "origin_location_id_";
|
|
18
19
|
readonly originLocationIdLb: "origin_location_id__lb_";
|
|
19
20
|
readonly allocateReason: "allocate_reason_";
|
package/dist/index.es.js
CHANGED
|
@@ -25994,7 +25994,7 @@ const _sfc_main$3i = /* @__PURE__ */ defineComponent({
|
|
|
25994
25994
|
};
|
|
25995
25995
|
}
|
|
25996
25996
|
});
|
|
25997
|
-
const GctSelect = /* @__PURE__ */ _export_sfc(_sfc_main$3i, [["__scopeId", "data-v-
|
|
25997
|
+
const GctSelect = /* @__PURE__ */ _export_sfc(_sfc_main$3i, [["__scopeId", "data-v-4756c59a"]]);
|
|
25998
25998
|
const _hoisted_1$24 = ["value", "placeholder", "disabled"];
|
|
25999
25999
|
const _hoisted_2$1h = {
|
|
26000
26000
|
key: 1,
|
|
@@ -83166,6 +83166,8 @@ async function loadDefaultValuesByFields(instances, ctx, context, masterSlaveLis
|
|
|
83166
83166
|
const promises = instances.map(async (instance2) => {
|
|
83167
83167
|
const { field, props } = instance2.widgetMeta;
|
|
83168
83168
|
if (!field || !props) return;
|
|
83169
|
+
const isSpecialMaterialConsumeObjField = !!field.belongingObject && [FIELD_TYPE.PRODUCT, FIELD_TYPE.MATERIAL_NO].includes(field.fieldType);
|
|
83170
|
+
if (isSpecialMaterialConsumeObjField) return;
|
|
83169
83171
|
mergeDefaultsIntoMap(
|
|
83170
83172
|
defaultDataMap,
|
|
83171
83173
|
await resolveFieldDefaults({ props, field, ctx, context, instances })
|
|
@@ -83188,7 +83190,7 @@ async function loadDefaultValuesByFields(instances, ctx, context, masterSlaveLis
|
|
|
83188
83190
|
return defaultDataMap;
|
|
83189
83191
|
}
|
|
83190
83192
|
const handleParameterMapping = async (parameterMapping, paramsConfig, fieldPermission, instances, ctx) => {
|
|
83191
|
-
if (
|
|
83193
|
+
if (isEmpty(parameterMapping) || isEmpty(paramsConfig)) {
|
|
83192
83194
|
return {};
|
|
83193
83195
|
}
|
|
83194
83196
|
const referenceMap = new Map(Object.entries(paramsConfig));
|
|
@@ -84348,16 +84350,17 @@ async function changeWarehouseInventoryParseRule(options) {
|
|
|
84348
84350
|
}
|
|
84349
84351
|
const F$1 = {
|
|
84350
84352
|
batch: "production_identification_id_",
|
|
84353
|
+
batchLb: "production_identification_id__lb_",
|
|
84351
84354
|
product: "product_id_",
|
|
84352
84355
|
productName: "product_id_name_",
|
|
84353
84356
|
productCode: "product_id_code_",
|
|
84354
84357
|
productSpec: "product_id_spec_",
|
|
84355
|
-
matno: "material_no_",
|
|
84356
84358
|
validity: "validity_",
|
|
84357
84359
|
stock: "stock_num_",
|
|
84358
84360
|
warehouse: "warehouse_id_",
|
|
84359
84361
|
location: "location_id_",
|
|
84360
84362
|
originWarehouseId: "origin_warehouse_id_",
|
|
84363
|
+
originWarehouseIdLb: "origin_warehouse_id__lb_",
|
|
84361
84364
|
originLocationId: "origin_location_id_",
|
|
84362
84365
|
originLocationIdLb: "origin_location_id__lb_",
|
|
84363
84366
|
rowSource: "row_source_"
|
|
@@ -84428,15 +84431,15 @@ const fields = [
|
|
|
84428
84431
|
clearOnLinkChange: []
|
|
84429
84432
|
}
|
|
84430
84433
|
},
|
|
84431
|
-
{
|
|
84432
|
-
|
|
84433
|
-
|
|
84434
|
-
|
|
84435
|
-
|
|
84436
|
-
|
|
84437
|
-
|
|
84438
|
-
|
|
84439
|
-
},
|
|
84434
|
+
// {
|
|
84435
|
+
// // 源仓库 与 源库位 级联
|
|
84436
|
+
// match: { fieldKey: F.originLocationId },
|
|
84437
|
+
// select: {
|
|
84438
|
+
// linkFieldKey: F.originWarehouseId,
|
|
84439
|
+
// requireLinkWidget: false,
|
|
84440
|
+
// buildLinkQuery: ({ linkValue }) => (linkValue ? { 'warehouse_id_.eq': linkValue } : {}),
|
|
84441
|
+
// },
|
|
84442
|
+
// },
|
|
84440
84443
|
{
|
|
84441
84444
|
// 仓库 与 库位 级联
|
|
84442
84445
|
match: { fieldKey: F$1.location },
|
|
@@ -84515,7 +84518,10 @@ function handleProductIdChange(doc, subFieldKey, rowIndex) {
|
|
|
84515
84518
|
F$1.productName,
|
|
84516
84519
|
F$1.productCode,
|
|
84517
84520
|
F$1.productSpec,
|
|
84518
|
-
F$1.
|
|
84521
|
+
F$1.batch,
|
|
84522
|
+
F$1.batchLb,
|
|
84523
|
+
F$1.originWarehouseId,
|
|
84524
|
+
F$1.originWarehouseIdLb,
|
|
84519
84525
|
F$1.originLocationId,
|
|
84520
84526
|
F$1.originLocationIdLb,
|
|
84521
84527
|
F$1.stock,
|
|
@@ -85281,12 +85287,12 @@ function parseCrossIndices(path) {
|
|
|
85281
85287
|
const m = path.match(/\[(\d+)\]\[(\d+)\](?:\.[^[]+)?$/);
|
|
85282
85288
|
return m ? { y: Number(m[1]), x: Number(m[2]) } : null;
|
|
85283
85289
|
}
|
|
85284
|
-
function rowMetaPathOf(crossValuePath, y2) {
|
|
85290
|
+
function rowMetaPathOf(crossValuePath, y2, isLinkNotSet) {
|
|
85285
85291
|
const parsed = parseValuePath(crossValuePath);
|
|
85286
|
-
const subKey = parsed.isLink ? parsed.parentFieldKey : crossValuePath.replace(/^\$\./, "").split(":")[0]?.replace(/\[[^\]]*\]/g, "") ?? "";
|
|
85292
|
+
const subKey = parsed.isLink || isLinkNotSet ? parsed.parentFieldKey : crossValuePath.replace(/^\$\./, "").split(":")[0]?.replace(/\[[^\]]*\]/g, "") ?? "";
|
|
85287
85293
|
return subKey ? `$.${subKey}[${y2}]` : "";
|
|
85288
85294
|
}
|
|
85289
|
-
function resolvePathsFromTemplate(templatePath, y2, x2, resolvePath) {
|
|
85295
|
+
function resolvePathsFromTemplate(templatePath, y2, x2, resolvePath, isLinkNotSet) {
|
|
85290
85296
|
const valuePath = resolvePath?.(templatePath) ?? templatePath;
|
|
85291
85297
|
const fromPath = parseCrossIndices(valuePath);
|
|
85292
85298
|
const rowY = fromPath?.y ?? y2;
|
|
@@ -85295,7 +85301,7 @@ function resolvePathsFromTemplate(templatePath, y2, x2, resolvePath) {
|
|
|
85295
85301
|
y: rowY,
|
|
85296
85302
|
x: rowX,
|
|
85297
85303
|
valuePath,
|
|
85298
|
-
rowMetaPath: rowMetaPathOf(valuePath, rowY)
|
|
85304
|
+
rowMetaPath: rowMetaPathOf(valuePath, rowY, isLinkNotSet)
|
|
85299
85305
|
};
|
|
85300
85306
|
}
|
|
85301
85307
|
function readRowMeta(doc, rowMetaPath) {
|
|
@@ -85335,7 +85341,7 @@ function isCheckTableCrossValueLayout(ctx) {
|
|
|
85335
85341
|
if (!sub || sub.cellZone !== "cross" || !isLinkSubTableType(sub.type)) return false;
|
|
85336
85342
|
return sub.type === "check-table";
|
|
85337
85343
|
}
|
|
85338
|
-
function prepareDynLayoutWr(ctx) {
|
|
85344
|
+
function prepareDynLayoutWr(ctx, isLinkNotSet) {
|
|
85339
85345
|
const wr = cloneDeep(ctx.wr);
|
|
85340
85346
|
const sub = ctx.context.cell?.subRenderer;
|
|
85341
85347
|
const templatePath = wr.valuePath ?? wr.widgetMeta?.field?.valuePath ?? "";
|
|
@@ -85343,7 +85349,8 @@ function prepareDynLayoutWr(ctx) {
|
|
|
85343
85349
|
templatePath,
|
|
85344
85350
|
sub?.yDataIndex ?? 0,
|
|
85345
85351
|
sub?.xDataIndex ?? 0,
|
|
85346
|
-
(p) => ctx.context.getValuePath(p)
|
|
85352
|
+
(p) => ctx.context.getValuePath(p),
|
|
85353
|
+
isLinkNotSet
|
|
85347
85354
|
);
|
|
85348
85355
|
const rowMeta = readRowMeta(ctx.context.doc, paths.rowMetaPath);
|
|
85349
85356
|
wr.widgetMeta = buildDynWidgetMeta(wr.widgetMeta, rowMeta);
|
|
@@ -95441,7 +95448,26 @@ function shouldShowFieldHyperlink(doc, widgetMeta, runtimePath) {
|
|
|
95441
95448
|
}
|
|
95442
95449
|
class FieldBaseHandler extends RunHandlerBase {
|
|
95443
95450
|
static hasValue(value) {
|
|
95444
|
-
return value !== void 0 && value !== null;
|
|
95451
|
+
return value !== void 0 && value !== null && value !== "";
|
|
95452
|
+
}
|
|
95453
|
+
/** 将展示文案拆成逐字 run;空串 split 会得到 [],需单独处理 */
|
|
95454
|
+
static toLayoutChars(label) {
|
|
95455
|
+
if (label === void 0 || label === null || label === "") {
|
|
95456
|
+
return [];
|
|
95457
|
+
}
|
|
95458
|
+
return String(label).split("");
|
|
95459
|
+
}
|
|
95460
|
+
/**
|
|
95461
|
+
* 展示内容为空时补一个带 widgetMeta/valuePath 的占位 run
|
|
95462
|
+
* 避免段落只剩默认 TextRun(isPlaceholder=true)导致 getWidgetInstances 收集不到
|
|
95463
|
+
*/
|
|
95464
|
+
static ensureFieldWidgetAnchor(ctx, layoutStyle, extra) {
|
|
95465
|
+
const metrics = TextRun.measureText(TextRun.measurePayload(" ", layoutStyle));
|
|
95466
|
+
this.addSpace({
|
|
95467
|
+
ctx,
|
|
95468
|
+
textMetrics: metrics,
|
|
95469
|
+
extra
|
|
95470
|
+
});
|
|
95445
95471
|
}
|
|
95446
95472
|
static getModelRefId(context, wr) {
|
|
95447
95473
|
return this.buildSplitModelRefId(context, wr.id);
|
|
@@ -95544,13 +95570,16 @@ class FieldBaseHandler extends RunHandlerBase {
|
|
|
95544
95570
|
}
|
|
95545
95571
|
const layoutStyle = this.resolveFieldTextLayoutStyle(ctx, wr, wr.valuePath);
|
|
95546
95572
|
const fontSize = layoutStyle.fontSize ?? DEFAULT_FONT_SIZE;
|
|
95547
|
-
const chars =
|
|
95573
|
+
const chars = this.toLayoutChars(label);
|
|
95548
95574
|
let doc = context.doc;
|
|
95549
95575
|
this.addFieldMarker({
|
|
95550
95576
|
ctx,
|
|
95551
95577
|
fontSize,
|
|
95552
95578
|
position: "left"
|
|
95553
95579
|
});
|
|
95580
|
+
if (chars.length === 0) {
|
|
95581
|
+
this.ensureFieldWidgetAnchor(ctx, layoutStyle);
|
|
95582
|
+
}
|
|
95554
95583
|
chars.forEach((char, charIndex) => {
|
|
95555
95584
|
const { width, height, ascent, descent } = TextRun.measureText(
|
|
95556
95585
|
TextRun.measurePayload(char, layoutStyle)
|
|
@@ -95592,13 +95621,16 @@ class FieldBaseHandler extends RunHandlerBase {
|
|
|
95592
95621
|
const textStyle = TextStyleResolver.resolve(wr.rPr, context.doc.model?.styles);
|
|
95593
95622
|
const layoutStyle = TextRun.textStyle2LayoutStyle(textStyle);
|
|
95594
95623
|
const measureStyle = { ...layoutStyle, fontSize: 16 };
|
|
95595
|
-
const { label
|
|
95596
|
-
const chars =
|
|
95624
|
+
const { label } = this.getNoValueLabel(ctx);
|
|
95625
|
+
const chars = this.toLayoutChars(label);
|
|
95597
95626
|
this.addFieldMarker({
|
|
95598
95627
|
ctx,
|
|
95599
95628
|
fontSize: 16,
|
|
95600
95629
|
position: "left"
|
|
95601
95630
|
});
|
|
95631
|
+
if (chars.length === 0) {
|
|
95632
|
+
this.ensureFieldWidgetAnchor(ctx, measureStyle, { isEmptyPlaceholder: true });
|
|
95633
|
+
}
|
|
95602
95634
|
chars.forEach((char, charIndex) => {
|
|
95603
95635
|
const { width, height, ascent, descent } = TextRun.measureText(
|
|
95604
95636
|
TextRun.measurePayload(char, measureStyle)
|
|
@@ -95813,7 +95845,7 @@ class AttachFieldHandler extends FieldBaseHandler {
|
|
|
95813
95845
|
const { context, wr } = ctx;
|
|
95814
95846
|
const parentRuntimeValuePath = context.getValuePath(wr.valuePath);
|
|
95815
95847
|
const gap = 2;
|
|
95816
|
-
const { height, ascent, descent } = TextRun.measureText(
|
|
95848
|
+
const { width, height, ascent, descent } = TextRun.measureText(
|
|
95817
95849
|
TextRun.measurePayload("0", { ...layoutStyle, fontSize: 16 })
|
|
95818
95850
|
);
|
|
95819
95851
|
this.addSpace({
|
|
@@ -95913,7 +95945,7 @@ class OptionHandler extends FieldBaseHandler {
|
|
|
95913
95945
|
AttachFieldHandler.layoutOptionAttachFields({ context, wr }, optionWithAttach, layoutStyle);
|
|
95914
95946
|
}
|
|
95915
95947
|
if (index2 === options.length - 1 && attachFields.length > 0) {
|
|
95916
|
-
const { height, ascent, descent } = TextRun.measureText(
|
|
95948
|
+
const { width, height, ascent, descent } = TextRun.measureText(
|
|
95917
95949
|
TextRun.measurePayload("0", { ...layoutStyle, fontSize: 16 })
|
|
95918
95950
|
);
|
|
95919
95951
|
this.addSpace({
|
|
@@ -96161,7 +96193,7 @@ class InputHandler extends FieldBaseHandler {
|
|
|
96161
96193
|
}
|
|
96162
96194
|
const layoutStyle = this.resolveFieldTextLayoutStyle(ctx, wr, wr.valuePath);
|
|
96163
96195
|
const fontSize = layoutStyle.fontSize ?? DEFAULT_FONT_SIZE;
|
|
96164
|
-
const chars =
|
|
96196
|
+
const chars = this.toLayoutChars(label);
|
|
96165
96197
|
let doc = context.doc;
|
|
96166
96198
|
this.addFieldMarker({
|
|
96167
96199
|
ctx,
|
|
@@ -96283,7 +96315,11 @@ class FieldHandler {
|
|
|
96283
96315
|
static layout(context, wr) {
|
|
96284
96316
|
const ctx = { context, wr };
|
|
96285
96317
|
if (isCheckTableCrossValueLayout(ctx)) {
|
|
96286
|
-
FieldHandler.
|
|
96318
|
+
FieldHandler.layoutCheckTableValue(ctx);
|
|
96319
|
+
return;
|
|
96320
|
+
}
|
|
96321
|
+
if (context.cell?.subRenderer?.type === "check-table" && wr.widgetMeta?.field?.fieldLink === "value_") {
|
|
96322
|
+
FieldHandler.layoutCheckTableValue(ctx, true);
|
|
96287
96323
|
return;
|
|
96288
96324
|
}
|
|
96289
96325
|
if (wr.widgetMeta?.props?.renderComp === "checkbox") {
|
|
@@ -96301,8 +96337,8 @@ class FieldHandler {
|
|
|
96301
96337
|
}
|
|
96302
96338
|
}
|
|
96303
96339
|
/** 检验表交叉区 value_:按同行检验项 type_ 渲染,值路径固定 value_ */
|
|
96304
|
-
static
|
|
96305
|
-
const layoutCtx = prepareDynLayoutWr(ctx);
|
|
96340
|
+
static layoutCheckTableValue(ctx, isLinkNotSet) {
|
|
96341
|
+
const layoutCtx = prepareDynLayoutWr(ctx, isLinkNotSet);
|
|
96306
96342
|
if (layoutCtx.context.doc.mode === DocModeTypeConst.Print) {
|
|
96307
96343
|
FieldBaseHandler.layoutValue(layoutCtx);
|
|
96308
96344
|
return;
|
|
@@ -114960,7 +114996,7 @@ function buildWidgetFieldMetaMap(instances) {
|
|
|
114960
114996
|
metaKey: runtimeValuePath,
|
|
114961
114997
|
cellType: fieldMeta.fieldType,
|
|
114962
114998
|
modelId: instance2.modelRef.id,
|
|
114963
|
-
points: instance2?.widgetMeta?.extra?.biz?.[instance2.
|
|
114999
|
+
points: instance2?.widgetMeta?.extra?.biz?.[instance2.valuePath] || {}
|
|
114964
115000
|
};
|
|
114965
115001
|
map.set(runtimeValuePath, value);
|
|
114966
115002
|
}
|
|
@@ -115022,7 +115058,8 @@ function validateDocDesigner(doc) {
|
|
|
115022
115058
|
}
|
|
115023
115059
|
const errors = [];
|
|
115024
115060
|
const children = doc.model.document.body.children || [];
|
|
115025
|
-
const
|
|
115061
|
+
const tables = children.filter((w2) => w2.name === "w:tbl");
|
|
115062
|
+
const fixedTableRegions = tables.flatMap((w2) => w2.bounded);
|
|
115026
115063
|
if (fixedTableRegions.some((r) => !r.itemRegion)) {
|
|
115027
115064
|
errors.push({
|
|
115028
115065
|
code: "item-region-required",
|
|
@@ -115030,7 +115067,20 @@ function validateDocDesigner(doc) {
|
|
|
115030
115067
|
source: "doc"
|
|
115031
115068
|
});
|
|
115032
115069
|
}
|
|
115033
|
-
const
|
|
115070
|
+
const checkTableRegions = tables.flatMap((w2) => w2.checkTable);
|
|
115071
|
+
checkTableRegions.forEach(((r) => {
|
|
115072
|
+
if (!r.itemRegion) return;
|
|
115073
|
+
const { linkFieldKey } = parseValuePath(r.valuePath);
|
|
115074
|
+
const { start: { row: startRow, col: startCol }, end: { row: endRow, col: endCol } } = r.itemRegion;
|
|
115075
|
+
const linkFieldList = r.table.children.slice(startRow, endRow + 1).flatMap((row) => row.children.slice(startCol, endCol + 1)).flatMap((cell) => cell?.children ?? []).flatMap((child) => child?.children ?? []).filter((f) => f?.widgetMeta?.field?.subFieldKey);
|
|
115076
|
+
if (!linkFieldList.some((f) => f.widgetMeta.field.subFieldKey === linkFieldKey)) {
|
|
115077
|
+
errors.push({
|
|
115078
|
+
code: "link-field-required",
|
|
115079
|
+
message: "请拖入动态关联字段",
|
|
115080
|
+
source: "doc"
|
|
115081
|
+
});
|
|
115082
|
+
}
|
|
115083
|
+
}));
|
|
115034
115084
|
for (const { hasTable, getRegions, message } of BARCODE_PARSING_RULE_TABLES) {
|
|
115035
115085
|
const regions = tables.filter(hasTable).flatMap(getRegions);
|
|
115036
115086
|
if (regions.some((r) => !r.widgetMeta.props.barcode_parsing_rules_id_)) {
|
|
@@ -117606,6 +117656,7 @@ function createDesignFieldToWidgetFactory(getFieldManifestForField) {
|
|
|
117606
117656
|
isLinkedModelField: false,
|
|
117607
117657
|
fieldLink: field.key,
|
|
117608
117658
|
modelLink: field.modelKey,
|
|
117659
|
+
belongingObject: field.belongingObject,
|
|
117609
117660
|
valuePath,
|
|
117610
117661
|
...opts.parentFieldKey ? { subFieldKey: opts.parentFieldKey } : void 0
|
|
117611
117662
|
},
|
|
@@ -117831,9 +117882,7 @@ const _sfc_main$2n = /* @__PURE__ */ defineComponent({
|
|
|
117831
117882
|
const paletteField = toPaletteField(field);
|
|
117832
117883
|
if (!paletteField) return [];
|
|
117833
117884
|
if (paletteField?.isCascade) {
|
|
117834
|
-
paletteField.children = fields2.value.filter((f) =>
|
|
117835
|
-
return f.belongingObject === paletteField.field.key && f.createType === "USER_DEFINED";
|
|
117836
|
-
}).map(toPaletteField).filter(Boolean);
|
|
117885
|
+
paletteField.children = fields2.value.filter((f) => f.belongingObject === paletteField.field.key).map(toPaletteField).filter(Boolean);
|
|
117837
117886
|
}
|
|
117838
117887
|
return [paletteField];
|
|
117839
117888
|
});
|
|
@@ -117885,7 +117934,7 @@ const _sfc_main$2n = /* @__PURE__ */ defineComponent({
|
|
|
117885
117934
|
};
|
|
117886
117935
|
}
|
|
117887
117936
|
});
|
|
117888
|
-
const ToolkitContentFields = /* @__PURE__ */ _export_sfc(_sfc_main$2n, [["__scopeId", "data-v-
|
|
117937
|
+
const ToolkitContentFields = /* @__PURE__ */ _export_sfc(_sfc_main$2n, [["__scopeId", "data-v-a7322f3e"]]);
|
|
117889
117938
|
const _hoisted_1$1B = { class: "toolkit-content-widgets" };
|
|
117890
117939
|
const _hoisted_2$Z = { key: 0 };
|
|
117891
117940
|
const _hoisted_3$I = ["data-type", "draggable", "onDragstart"];
|
|
@@ -16,5 +16,5 @@ export declare function isCheckTableCrossValuePath(path: string): boolean;
|
|
|
16
16
|
export declare function readCheckTableRowMetaByValuePath(doc: Doc, valuePath: string): Record<string, unknown>;
|
|
17
17
|
export declare function isCheckTableCrossValueLayout(ctx: HandlerContext): boolean;
|
|
18
18
|
/** layout:克隆 wr 并写入动态 widgetMeta,valuePath 保持 value_ */
|
|
19
|
-
export declare function prepareDynLayoutWr(ctx: HandlerContext): HandlerContext;
|
|
19
|
+
export declare function prepareDynLayoutWr(ctx: HandlerContext, isLinkNotSet?: boolean): HandlerContext;
|
|
20
20
|
export {};
|
package/dist/word.css
CHANGED
|
@@ -7283,7 +7283,7 @@ textarea[data-v-e709484b]::placeholder {
|
|
|
7283
7283
|
* 字段交互态配色。
|
|
7284
7284
|
* TS 侧见 field-state.ts,修改时请同步两处。
|
|
7285
7285
|
*/
|
|
7286
|
-
.gct-basic-popper-wrap[data-v-
|
|
7286
|
+
.gct-basic-popper-wrap[data-v-4756c59a] {
|
|
7287
7287
|
position: relative;
|
|
7288
7288
|
height: 100%;
|
|
7289
7289
|
width: 100%;
|
|
@@ -7291,21 +7291,21 @@ textarea[data-v-e709484b]::placeholder {
|
|
|
7291
7291
|
min-width: 136px;
|
|
7292
7292
|
width: var(--dropdown-popper-width, 136px);
|
|
7293
7293
|
}
|
|
7294
|
-
.gct-basic-popper-wrap .popper-scrollbar[data-v-
|
|
7294
|
+
.gct-basic-popper-wrap .popper-scrollbar[data-v-4756c59a] {
|
|
7295
7295
|
position: relative;
|
|
7296
7296
|
padding: 4px;
|
|
7297
7297
|
}
|
|
7298
|
-
.gct-basic-popper-wrap .popper-scrollbar .popper-container[data-v-
|
|
7298
|
+
.gct-basic-popper-wrap .popper-scrollbar .popper-container[data-v-4756c59a] {
|
|
7299
7299
|
position: relative;
|
|
7300
7300
|
width: 100%;
|
|
7301
7301
|
max-height: 300px;
|
|
7302
7302
|
}
|
|
7303
|
-
.gct-basic-popper-wrap .popper-scrollbar .select-group .group-name[data-v-
|
|
7303
|
+
.gct-basic-popper-wrap .popper-scrollbar .select-group .group-name[data-v-4756c59a] {
|
|
7304
7304
|
padding: 8px 8px 4px 8px;
|
|
7305
7305
|
font-size: 12px;
|
|
7306
7306
|
color: #999;
|
|
7307
7307
|
}
|
|
7308
|
-
.gct-basic-popper-wrap .popper-scrollbar .option-item[data-v-
|
|
7308
|
+
.gct-basic-popper-wrap .popper-scrollbar .option-item[data-v-4756c59a] {
|
|
7309
7309
|
position: relative;
|
|
7310
7310
|
display: flex;
|
|
7311
7311
|
align-items: center;
|
|
@@ -7317,31 +7317,31 @@ textarea[data-v-e709484b]::placeholder {
|
|
|
7317
7317
|
padding: 5px 8px;
|
|
7318
7318
|
transition: all 0.3s ease;
|
|
7319
7319
|
}
|
|
7320
|
-
.gct-basic-popper-wrap .popper-scrollbar .option-item[data-v-
|
|
7320
|
+
.gct-basic-popper-wrap .popper-scrollbar .option-item[data-v-4756c59a]:not(.selected, .disabled):hover {
|
|
7321
7321
|
background: rgba(13, 13, 13, 0.06);
|
|
7322
7322
|
}
|
|
7323
|
-
.gct-basic-popper-wrap .popper-scrollbar .option-item:not(.selected, .disabled):hover .edit-icon[data-v-
|
|
7323
|
+
.gct-basic-popper-wrap .popper-scrollbar .option-item:not(.selected, .disabled):hover .edit-icon[data-v-4756c59a] {
|
|
7324
7324
|
display: inline-flex;
|
|
7325
7325
|
}
|
|
7326
|
-
.gct-basic-popper-wrap .popper-scrollbar .option-item + .option-item[data-v-
|
|
7326
|
+
.gct-basic-popper-wrap .popper-scrollbar .option-item + .option-item[data-v-4756c59a] {
|
|
7327
7327
|
margin-top: 4px;
|
|
7328
7328
|
}
|
|
7329
|
-
.gct-basic-popper-wrap .popper-scrollbar .option-item.disabled[data-v-
|
|
7329
|
+
.gct-basic-popper-wrap .popper-scrollbar .option-item.disabled[data-v-4756c59a] {
|
|
7330
7330
|
opacity: 0.3;
|
|
7331
7331
|
pointer-events: none;
|
|
7332
7332
|
user-select: none;
|
|
7333
7333
|
}
|
|
7334
|
-
.gct-basic-popper-wrap .popper-scrollbar .option-item.selected[data-v-
|
|
7334
|
+
.gct-basic-popper-wrap .popper-scrollbar .option-item.selected[data-v-4756c59a] {
|
|
7335
7335
|
background: #e3eafc;
|
|
7336
7336
|
}
|
|
7337
|
-
.gct-basic-popper-wrap .popper-scrollbar .option-item .o-icon[data-v-
|
|
7337
|
+
.gct-basic-popper-wrap .popper-scrollbar .option-item .o-icon[data-v-4756c59a] {
|
|
7338
7338
|
display: inline-flex;
|
|
7339
7339
|
width: 16px;
|
|
7340
7340
|
height: 16px;
|
|
7341
7341
|
margin-right: 8px;
|
|
7342
7342
|
flex-shrink: 0;
|
|
7343
7343
|
}
|
|
7344
|
-
.gct-basic-popper-wrap .popper-scrollbar .option-item .v-popper.option-label-tooltip[data-v-
|
|
7344
|
+
.gct-basic-popper-wrap .popper-scrollbar .option-item .v-popper.option-label-tooltip[data-v-4756c59a] {
|
|
7345
7345
|
display: inline-flex;
|
|
7346
7346
|
color: #212528;
|
|
7347
7347
|
flex: 1;
|
|
@@ -7350,7 +7350,7 @@ textarea[data-v-e709484b]::placeholder {
|
|
|
7350
7350
|
white-space: nowrap;
|
|
7351
7351
|
pointer-events: all;
|
|
7352
7352
|
}
|
|
7353
|
-
.gct-basic-popper-wrap .popper-scrollbar .option-item .option-label[data-v-
|
|
7353
|
+
.gct-basic-popper-wrap .popper-scrollbar .option-item .option-label[data-v-4756c59a] {
|
|
7354
7354
|
display: inline-block;
|
|
7355
7355
|
width: 100%;
|
|
7356
7356
|
line-height: 24px;
|
|
@@ -7360,7 +7360,7 @@ textarea[data-v-e709484b]::placeholder {
|
|
|
7360
7360
|
word-wrap: normal;
|
|
7361
7361
|
cursor: default;
|
|
7362
7362
|
}
|
|
7363
|
-
.gct-basic-popper-wrap .popper-scrollbar .empty[data-v-
|
|
7363
|
+
.gct-basic-popper-wrap .popper-scrollbar .empty[data-v-4756c59a] {
|
|
7364
7364
|
width: 100%;
|
|
7365
7365
|
height: 90px;
|
|
7366
7366
|
display: flex;
|
|
@@ -7369,13 +7369,13 @@ textarea[data-v-e709484b]::placeholder {
|
|
|
7369
7369
|
color: #c3c3c3;
|
|
7370
7370
|
font-size: 13px;
|
|
7371
7371
|
}
|
|
7372
|
-
.gct-basic-select[data-v-
|
|
7372
|
+
.gct-basic-select[data-v-4756c59a] {
|
|
7373
7373
|
display: inline-block;
|
|
7374
7374
|
vertical-align: middle;
|
|
7375
7375
|
line-height: 1;
|
|
7376
7376
|
width: 100%;
|
|
7377
7377
|
}
|
|
7378
|
-
.gct-basic-select .gct-basic-select-container[data-v-
|
|
7378
|
+
.gct-basic-select .gct-basic-select-container[data-v-4756c59a] {
|
|
7379
7379
|
position: relative;
|
|
7380
7380
|
display: flex;
|
|
7381
7381
|
align-items: center;
|
|
@@ -7391,56 +7391,56 @@ textarea[data-v-e709484b]::placeholder {
|
|
|
7391
7391
|
border: 1px solid #d9d9d9;
|
|
7392
7392
|
transition: all 0.3s ease;
|
|
7393
7393
|
}
|
|
7394
|
-
.gct-basic-select .gct-basic-select-container[data-v-
|
|
7394
|
+
.gct-basic-select .gct-basic-select-container[data-v-4756c59a]:not(.multiple) {
|
|
7395
7395
|
white-space: nowrap;
|
|
7396
7396
|
}
|
|
7397
|
-
.gct-basic-select .gct-basic-select-container.multiple[data-v-
|
|
7397
|
+
.gct-basic-select .gct-basic-select-container.multiple[data-v-4756c59a] {
|
|
7398
7398
|
flex-wrap: wrap;
|
|
7399
7399
|
align-content: flex-start;
|
|
7400
7400
|
padding-top: 3px;
|
|
7401
7401
|
padding-bottom: 3px;
|
|
7402
7402
|
gap: 3px;
|
|
7403
7403
|
}
|
|
7404
|
-
.gct-basic-select .gct-basic-select-container.disabled[data-v-
|
|
7404
|
+
.gct-basic-select .gct-basic-select-container.disabled[data-v-4756c59a] {
|
|
7405
7405
|
cursor: not-allowed;
|
|
7406
7406
|
background: #f5f5f5;
|
|
7407
7407
|
border-color: #d9d9d9;
|
|
7408
7408
|
color: rgba(0, 0, 0, 0.25);
|
|
7409
7409
|
}
|
|
7410
|
-
.gct-basic-select .gct-basic-select-container.disabled[data-v-
|
|
7410
|
+
.gct-basic-select .gct-basic-select-container.disabled[data-v-4756c59a]:hover {
|
|
7411
7411
|
border-color: #d9d9d9;
|
|
7412
7412
|
}
|
|
7413
|
-
.gct-basic-select .gct-basic-select-container.disabled .select-selection-item[data-v-
|
|
7414
|
-
.gct-basic-select .gct-basic-select-container.disabled .placeholder[data-v-
|
|
7415
|
-
.gct-basic-select .gct-basic-select-container.disabled .selection-tag-content[data-v-
|
|
7413
|
+
.gct-basic-select .gct-basic-select-container.disabled .select-selection-item[data-v-4756c59a],
|
|
7414
|
+
.gct-basic-select .gct-basic-select-container.disabled .placeholder[data-v-4756c59a],
|
|
7415
|
+
.gct-basic-select .gct-basic-select-container.disabled .selection-tag-content[data-v-4756c59a] {
|
|
7416
7416
|
color: rgba(0, 0, 0, 0.25);
|
|
7417
7417
|
}
|
|
7418
|
-
.gct-basic-select .gct-basic-select-container.disabled .change-icon[data-v-
|
|
7419
|
-
.gct-basic-select .gct-basic-select-container.disabled .close-all-icon[data-v-
|
|
7420
|
-
.gct-basic-select .gct-basic-select-container.disabled .selection-tag-remove[data-v-
|
|
7418
|
+
.gct-basic-select .gct-basic-select-container.disabled .change-icon[data-v-4756c59a],
|
|
7419
|
+
.gct-basic-select .gct-basic-select-container.disabled .close-all-icon[data-v-4756c59a],
|
|
7420
|
+
.gct-basic-select .gct-basic-select-container.disabled .selection-tag-remove[data-v-4756c59a] {
|
|
7421
7421
|
cursor: not-allowed;
|
|
7422
7422
|
opacity: 0.5;
|
|
7423
7423
|
}
|
|
7424
|
-
.gct-basic-select .gct-basic-select-container.readonly[data-v-
|
|
7424
|
+
.gct-basic-select .gct-basic-select-container.readonly[data-v-4756c59a] {
|
|
7425
7425
|
cursor: default;
|
|
7426
7426
|
background: #f5f6f8;
|
|
7427
7427
|
border-color: #d9d9d9;
|
|
7428
7428
|
}
|
|
7429
|
-
.gct-basic-select .gct-basic-select-container.readonly[data-v-
|
|
7429
|
+
.gct-basic-select .gct-basic-select-container.readonly[data-v-4756c59a]:hover {
|
|
7430
7430
|
border-color: #d9d9d9;
|
|
7431
7431
|
}
|
|
7432
|
-
.gct-basic-select .gct-basic-select-container.readonly .select-selection-item[data-v-
|
|
7433
|
-
.gct-basic-select .gct-basic-select-container.readonly .placeholder[data-v-
|
|
7434
|
-
.gct-basic-select .gct-basic-select-container.readonly .selection-tag-content[data-v-
|
|
7432
|
+
.gct-basic-select .gct-basic-select-container.readonly .select-selection-item[data-v-4756c59a],
|
|
7433
|
+
.gct-basic-select .gct-basic-select-container.readonly .placeholder[data-v-4756c59a],
|
|
7434
|
+
.gct-basic-select .gct-basic-select-container.readonly .selection-tag-content[data-v-4756c59a] {
|
|
7435
7435
|
color: rgba(0, 0, 0, 0.65);
|
|
7436
7436
|
}
|
|
7437
|
-
.gct-basic-select .gct-basic-select-container.readonly .change-icon[data-v-
|
|
7438
|
-
.gct-basic-select .gct-basic-select-container.readonly .close-all-icon[data-v-
|
|
7439
|
-
.gct-basic-select .gct-basic-select-container.readonly .selection-tag-remove[data-v-
|
|
7437
|
+
.gct-basic-select .gct-basic-select-container.readonly .change-icon[data-v-4756c59a],
|
|
7438
|
+
.gct-basic-select .gct-basic-select-container.readonly .close-all-icon[data-v-4756c59a],
|
|
7439
|
+
.gct-basic-select .gct-basic-select-container.readonly .selection-tag-remove[data-v-4756c59a] {
|
|
7440
7440
|
cursor: default;
|
|
7441
7441
|
opacity: 0.5;
|
|
7442
7442
|
}
|
|
7443
|
-
.gct-basic-select .gct-basic-select-container .select-selection-item[data-v-
|
|
7443
|
+
.gct-basic-select .gct-basic-select-container .select-selection-item[data-v-4756c59a] {
|
|
7444
7444
|
font-size: 13px;
|
|
7445
7445
|
max-width: 100%;
|
|
7446
7446
|
line-height: 22px;
|
|
@@ -7450,7 +7450,7 @@ textarea[data-v-e709484b]::placeholder {
|
|
|
7450
7450
|
word-wrap: normal;
|
|
7451
7451
|
color: #0d0d0d;
|
|
7452
7452
|
}
|
|
7453
|
-
.gct-basic-select .gct-basic-select-container .select-selection-tag[data-v-
|
|
7453
|
+
.gct-basic-select .gct-basic-select-container .select-selection-tag[data-v-4756c59a] {
|
|
7454
7454
|
position: relative;
|
|
7455
7455
|
display: flex;
|
|
7456
7456
|
flex: none;
|
|
@@ -7469,13 +7469,13 @@ textarea[data-v-e709484b]::placeholder {
|
|
|
7469
7469
|
padding-inline-start: 4px;
|
|
7470
7470
|
padding-inline-end: 4px;
|
|
7471
7471
|
}
|
|
7472
|
-
.gct-basic-select .gct-basic-select-container .select-selection-tag .selection-tag-content[data-v-
|
|
7472
|
+
.gct-basic-select .gct-basic-select-container .select-selection-tag .selection-tag-content[data-v-4756c59a] {
|
|
7473
7473
|
display: inline-block;
|
|
7474
7474
|
overflow: hidden;
|
|
7475
7475
|
white-space: pre;
|
|
7476
7476
|
text-overflow: ellipsis;
|
|
7477
7477
|
}
|
|
7478
|
-
.gct-basic-select .gct-basic-select-container .select-selection-tag .selection-tag-remove[data-v-
|
|
7478
|
+
.gct-basic-select .gct-basic-select-container .select-selection-tag .selection-tag-remove[data-v-4756c59a] {
|
|
7479
7479
|
display: inline-block;
|
|
7480
7480
|
align-items: center;
|
|
7481
7481
|
font-style: normal;
|
|
@@ -7490,33 +7490,33 @@ textarea[data-v-e709484b]::placeholder {
|
|
|
7490
7490
|
margin-inline-start: 4px;
|
|
7491
7491
|
margin-top: -1px;
|
|
7492
7492
|
}
|
|
7493
|
-
.gct-basic-select .gct-basic-select-container .placeholder[data-v-
|
|
7494
|
-
font-size:
|
|
7493
|
+
.gct-basic-select .gct-basic-select-container .placeholder[data-v-4756c59a] {
|
|
7494
|
+
font-size: 14px;
|
|
7495
7495
|
max-width: 100%;
|
|
7496
|
-
line-height:
|
|
7496
|
+
line-height: 1.5715;
|
|
7497
7497
|
overflow: hidden;
|
|
7498
7498
|
text-overflow: ellipsis;
|
|
7499
7499
|
white-space: nowrap;
|
|
7500
7500
|
word-wrap: normal;
|
|
7501
|
-
color: rgba(0, 0, 0, 0.
|
|
7501
|
+
color: rgba(0, 0, 0, 0.25);
|
|
7502
7502
|
}
|
|
7503
|
-
.gct-basic-select .gct-basic-select-container .change-icon[data-v-
|
|
7503
|
+
.gct-basic-select .gct-basic-select-container .change-icon[data-v-4756c59a] {
|
|
7504
7504
|
position: absolute;
|
|
7505
7505
|
right: 4px;
|
|
7506
7506
|
transition: all 0.3s ease;
|
|
7507
7507
|
}
|
|
7508
|
-
.gct-basic-select .gct-basic-select-container .close-all-icon[data-v-
|
|
7508
|
+
.gct-basic-select .gct-basic-select-container .close-all-icon[data-v-4756c59a] {
|
|
7509
7509
|
position: absolute;
|
|
7510
7510
|
right: 4px;
|
|
7511
7511
|
transition: all 0.3s ease;
|
|
7512
7512
|
}
|
|
7513
|
-
.gct-basic-select .gct-basic-select-container .close-all-icon[data-v-
|
|
7513
|
+
.gct-basic-select .gct-basic-select-container .close-all-icon[data-v-4756c59a]:hover {
|
|
7514
7514
|
color: rgba(0, 0, 0, 0.45) !important;
|
|
7515
7515
|
}
|
|
7516
|
-
.gct-basic-select .gct-basic-select-container[data-v-
|
|
7516
|
+
.gct-basic-select .gct-basic-select-container[data-v-4756c59a]:hover {
|
|
7517
7517
|
border-color: #026ac8;
|
|
7518
7518
|
}
|
|
7519
|
-
.gct-basic-select .gct-basic-select-container.active .change-icon[data-v-
|
|
7519
|
+
.gct-basic-select .gct-basic-select-container.active .change-icon[data-v-4756c59a] {
|
|
7520
7520
|
transform: rotate(-180deg);
|
|
7521
7521
|
}
|
|
7522
7522
|
/**
|
|
@@ -9407,12 +9407,12 @@ textarea[data-v-e709484b]::placeholder {
|
|
|
9407
9407
|
color: #c3c3c3;
|
|
9408
9408
|
font-size: 12px;
|
|
9409
9409
|
}
|
|
9410
|
-
.field-palette-container[data-v-
|
|
9410
|
+
.field-palette-container[data-v-a7322f3e] {
|
|
9411
9411
|
display: flex;
|
|
9412
9412
|
align-items: start;
|
|
9413
9413
|
flex-direction: row-reverse;
|
|
9414
9414
|
}
|
|
9415
|
-
.field-palette-container .field-pallette[data-v-
|
|
9415
|
+
.field-palette-container .field-pallette[data-v-a7322f3e]:not(:nth-child(1)) {
|
|
9416
9416
|
border-right: 1px solid #eaeaea;
|
|
9417
9417
|
}
|
|
9418
9418
|
.toolkit-content-widgets[data-v-393cb2aa] {
|