@gct-paas/word 0.1.52-beta.5 → 0.1.52-beta.6

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.
@@ -6,7 +6,7 @@ type __VLS_Props = {
6
6
  };
7
7
  declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
8
8
  color: string;
9
- version: "v1" | "v2";
10
9
  size: number | string;
10
+ version: "v1" | "v2";
11
11
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
12
12
  export default _default;
@@ -31,8 +31,8 @@ declare const __VLS_component: import('vue').DefineComponent<TableProps, {}, {},
31
31
  onSelect?: ((keys: string[]) => any) | undefined;
32
32
  "onRow-click"?: ((row: TableRow) => any) | undefined;
33
33
  }>, {
34
- loading: boolean;
35
34
  multiple: boolean;
35
+ loading: boolean;
36
36
  size: "small" | "middle" | "large";
37
37
  columns: TableColumn[];
38
38
  stripe: boolean;
@@ -0,0 +1,45 @@
1
+ /**
2
+ * 字段交互态配色(Canvas 渲染使用)。
3
+ * Less 侧见 field-state.less,修改时请同步两处。
4
+ */
5
+ export declare const FieldStateColors: {
6
+ /** 可编辑:浅蓝底 */
7
+ readonly editableBg: "#F2F8FE";
8
+ readonly editableBgActive: "rgba(147, 197, 253, 0.4)";
9
+ readonly editableLine: "#999999";
10
+ /** 暗提示(空值占位文字) */
11
+ readonly editablePlaceholderText: "#b8b8b8";
12
+ readonly readonlyPlaceholderText: "#b0b0b0";
13
+ readonly printPlaceholderText: "#b8b8b8";
14
+ /** 只读:灰底 + 灰边框,与可编辑蓝底形成对比 */
15
+ readonly readonlyBg: "#f5f6f8";
16
+ readonly readonlyBgActive: "#eff1f4";
17
+ readonly readonlyBorder: "#d9d9d9";
18
+ readonly readonlyLine: "#bfbfbf";
19
+ readonly readonlyText: "rgba(0, 0, 0, 0.65)";
20
+ /** 填报只读 - 有值文本(gct-text-render) */
21
+ readonly readonlyValueBg: "#f0f2f5";
22
+ readonly readonlyValueBgActive: "#e8ebf0";
23
+ readonly readonlyValueText: "rgba(0, 0, 0, 0.78)";
24
+ readonly readonlyValueLine: "#adb5bd";
25
+ /** 填报只读 - 空值占位(gct-placeholder-render) */
26
+ readonly readonlyPlaceholderBg: "#f5f7fa";
27
+ readonly readonlyPlaceholderBgActive: "#eef1f5";
28
+ readonly readonlyPlaceholderLine: "#c4c9d0";
29
+ /** 打印:透明底,不叠加交互态背景 */
30
+ readonly printBg: "transparent";
31
+ /** 字段括号 [] 颜色 */
32
+ readonly markerDefault: "#000000";
33
+ readonly markerReadonly: "#8c8c8c";
34
+ readonly markerDisabled: "#c9c9c9";
35
+ /** 只读选中态(checkbox / radio) */
36
+ readonly readonlyCheckedBorder: "#91caff";
37
+ readonly readonlyCheckedBg: "#e6f4ff";
38
+ readonly readonlyCheckedFill: "#69b1ff";
39
+ /** 禁用 */
40
+ readonly disabledBg: "#f5f5f5";
41
+ readonly disabledBgActive: "#f0f0f0";
42
+ readonly disabledText: "#c9c9c9";
43
+ readonly disabledLine: "#c9c9c9";
44
+ readonly disabledFill: "rgba(0, 0, 0, 0.04)";
45
+ };
@@ -3,6 +3,7 @@
3
3
  */
4
4
  /** 单字段 key */
5
5
  export declare const F: {
6
+ readonly batch: "production_identification_id_";
6
7
  readonly product: "product_id_";
7
8
  readonly productName: "product_id_name_";
8
9
  readonly productCode: "product_id_code_";
@@ -0,0 +1,28 @@
1
+ import { Doc } from '../../../core';
2
+ import { Wtbl } from '../../../core/model/document';
3
+ import { TableRegion } from '../../../core/model/logic';
4
+ export type TableCellSelectionBounds = {
5
+ table: Wtbl;
6
+ start: {
7
+ row: number;
8
+ col: number;
9
+ };
10
+ end: {
11
+ row: number;
12
+ col: number;
13
+ };
14
+ };
15
+ export type ValidateTableSelectionOptions = {
16
+ /** 目标区域名称 */
17
+ targetLabel: string;
18
+ /** 与这些类型区域重叠时不视为非法 */
19
+ ignoreOverlapTypes?: string[];
20
+ };
21
+ /** 解析已有逻辑区域的展示名称 */
22
+ export declare function resolveTableRegionLabel(region: TableRegion): string;
23
+ /** 从当前光标选区解析表格单元格范围 */
24
+ export declare function resolveTableCellSelectionBounds(doc: Doc): TableCellSelectionBounds | null;
25
+ /**
26
+ * 校验是否已选中合法的表格单元格区域
27
+ */
28
+ export declare function validateTableSelection(doc: Doc | undefined, options: ValidateTableSelectionOptions): boolean;
@@ -13,3 +13,4 @@ export * from './runtime/table-runtime';
13
13
  export * from './design/hooks/on-subtable-create';
14
14
  export * from './design/hooks/on-field-attach';
15
15
  export * from './design/hooks/on-repeating-default-props';
16
+ export * from './design/validate-table-selection';