@gct-paas/word 0.2.5-beta.5 → 0.2.5-beta.7
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 +18 -4
- package/dist/base/utils/image-size-util.d.ts +8 -3
- package/dist/core/command/commands/DeleteRow.d.ts +1 -1
- package/dist/core/layout/handlers/fields/signature-decoration-layout.d.ts +14 -0
- package/dist/core/view/runs/ImageRun.d.ts +9 -0
- package/dist/domain/field/field-type.d.ts +24 -0
- package/dist/index.es.js +22487 -4354
- package/dist/runtime/renderer/dialogs/device-scan/submit-device-scan.d.ts +3 -0
- package/dist/runtime/renderer/dropdowns/components/tables/composables/useSearchEnter.d.ts +18 -0
- package/dist/runtime/renderer/dropdowns/components/tables/composables/useSelectTable.d.ts +2 -0
- package/dist/runtime/renderer/dropdowns/components/tables/composables/useTableDropdown.d.ts +2 -1
- package/dist/runtime/renderer/dropdowns/components/tables/table-option-dropdown.vue.d.ts +2 -2
- package/dist/runtime/renderer/dropdowns/composables/useDropdownSearchFocus.d.ts +9 -0
- package/dist/sdk/doc-runtime/factories/useDocumentFactory.d.ts +5 -0
- package/dist/sdk/types/index.d.ts +5 -0
- package/dist/sdk/vue/index.d.ts +6 -0
- package/dist/suites/edhr/manifest/field/business/inspection-module-qty-manifest.d.ts +2 -0
- package/dist/suites/edhr/manifest/field/trace/inspection-container-manifest.d.ts +2 -0
- package/dist/suites/edhr/manifest/field/trace/sterilization-date-manifest.d.ts +2 -0
- package/dist/suites/shared/panel/config/editor/display-fields-editor/display-fields.util.d.ts +4 -4
- package/dist/suites/shared/panel/utils/default-value-visibility.d.ts +3 -0
- package/dist/word.css +221 -184
- package/package.json +4 -4
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { FIELD_TYPE } from '../../../../domain/field/field-type';
|
|
2
2
|
import { ParseRules } from '../../../../suites/shared/panel/config/editor/qrcode-parse-editor/types';
|
|
3
|
+
import { ParseRuleConfig } from '../../../../suites/shared/panel/config/editor/qrcode-parse-editor/utils';
|
|
3
4
|
export type DeviceScanFieldInfo = {
|
|
4
5
|
key: string;
|
|
5
6
|
modelKey: string;
|
|
@@ -21,6 +22,8 @@ export type DeviceScanSubmitResult = {
|
|
|
21
22
|
ok: false;
|
|
22
23
|
message: string;
|
|
23
24
|
};
|
|
25
|
+
export declare function getRuleCodeByFieldType(parsed: Record<string, any>, config: ParseRuleConfig | undefined, fieldType?: FIELD_TYPE): string | undefined;
|
|
26
|
+
export declare function appendFillMapPayload(payload: Record<string, any>, parsed: Record<string, any>, parseRules: ParseRules | undefined, runtimeValuePath: string): void;
|
|
24
27
|
/** 解析条码、校验设备编码、查询设备并生成写入 payload */
|
|
25
28
|
export declare function submitDeviceScan(params: DeviceScanSubmitParams): Promise<DeviceScanSubmitResult>;
|
|
26
29
|
export declare function showDeviceScanError(message: string): void;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { FIELD_TYPE } from '../../../../../../domain/field/field-type';
|
|
3
|
+
import { RuleParseData } from '../../../../../../suites/shared/panel/config/editor/qrcode-parse-editor/utils';
|
|
4
|
+
import { ParseRules } from '../../../../../../suites/shared/panel/config/editor/qrcode-parse-editor/types';
|
|
5
|
+
import { FetcherResult } from './useSelectTable';
|
|
6
|
+
/** 防抖查询与回车查询共用关键词,但只有回车确认的最新结果可以自动回填。 */
|
|
7
|
+
export declare function useSearchEnter(options: {
|
|
8
|
+
keyword: Ref<string | undefined>;
|
|
9
|
+
filters?: () => unknown;
|
|
10
|
+
search: () => Promise<FetcherResult>;
|
|
11
|
+
fetchByCode: (code: string) => Promise<FetcherResult>;
|
|
12
|
+
parseRules: () => ParseRules | undefined;
|
|
13
|
+
fieldType: () => FIELD_TYPE | undefined;
|
|
14
|
+
select: (row: any, parsed?: RuleParseData) => unknown;
|
|
15
|
+
}): {
|
|
16
|
+
onSearchEnter: (event: KeyboardEvent) => Promise<void>;
|
|
17
|
+
scheduleSearch: import('lodash-es').DebouncedFunc<() => void>;
|
|
18
|
+
};
|
|
@@ -4,11 +4,12 @@ export interface TableDropdownSearchFilters {
|
|
|
4
4
|
deviceTypeId?: string;
|
|
5
5
|
}
|
|
6
6
|
export declare function useTableDropdown(props: any, searchFilters?: MaybeRef<TableDropdownSearchFilters | undefined>): {
|
|
7
|
-
fetcher: ({ keyword, pageNo, pageSize, deviceTypeId, }: {
|
|
7
|
+
fetcher: ({ keyword, pageNo, pageSize, deviceTypeId, exactCode, }: {
|
|
8
8
|
keyword?: string;
|
|
9
9
|
pageNo: number;
|
|
10
10
|
pageSize: number;
|
|
11
11
|
deviceTypeId?: string;
|
|
12
|
+
exactCode?: string;
|
|
12
13
|
}) => Promise<FetcherResult>;
|
|
13
14
|
columns: import('vue').ComputedRef<any>;
|
|
14
15
|
fieldInfo: import('vue').ComputedRef<import('../../../../../../capabilities/model-field-runtime').FieldMeta | null>;
|
|
@@ -16,7 +16,7 @@ type __VLS_Props = {
|
|
|
16
16
|
hasNextPage: boolean;
|
|
17
17
|
};
|
|
18
18
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
19
|
-
search: () => any;
|
|
19
|
+
search: (event: KeyboardEvent) => any;
|
|
20
20
|
clear: () => any;
|
|
21
21
|
"load-more": () => any;
|
|
22
22
|
"change-select": (row: any) => any;
|
|
@@ -24,7 +24,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
24
24
|
"manual-input": () => any;
|
|
25
25
|
"device-type-change": (value?: string | undefined) => any;
|
|
26
26
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
27
|
-
onSearch?: (() => any) | undefined;
|
|
27
|
+
onSearch?: ((event: KeyboardEvent) => any) | undefined;
|
|
28
28
|
onClear?: (() => any) | undefined;
|
|
29
29
|
"onLoad-more"?: (() => any) | undefined;
|
|
30
30
|
"onChange-select"?: ((row: any) => any) | undefined;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { InjectionKey, Ref } from 'vue';
|
|
2
|
+
export declare const DROPDOWN_FOCUS_READY_KEY: InjectionKey<Ref<boolean>>;
|
|
3
|
+
export declare const DROPDOWN_FOCUS_REQUEST_KEY: InjectionKey<Ref<number>>;
|
|
4
|
+
interface SearchInput {
|
|
5
|
+
inputRef?: HTMLInputElement;
|
|
6
|
+
}
|
|
7
|
+
/** 等浮层真正显示和当前搜索框挂载后再聚焦,也覆盖快速重开与展示分支切换。 */
|
|
8
|
+
export declare function useDropdownSearchFocus(inputRef: Ref<SearchInput | null | undefined>): void;
|
|
9
|
+
export {};
|
|
@@ -4,6 +4,7 @@ import { DocInfo, FieldPermissionInfo, IDeviceConfig } from '../../types';
|
|
|
4
4
|
import { DesignSuiteContext } from '../../../runtime/_register_/context/DesignSuiteContext';
|
|
5
5
|
import { OnlineFormInstanceResponse, OnlineFormTmplResponse } from '@gct-paas/api/apaas';
|
|
6
6
|
import { FormTmplBomController } from '../../../runtime/canvas/table/render/material-consume';
|
|
7
|
+
import { DataSourceManager, DataSourceManagerOptions } from '@gct-paas/form-base';
|
|
7
8
|
export interface IDocProps {
|
|
8
9
|
/** 文档实例id或者文档模板id */
|
|
9
10
|
requestId: MaybeRef<string | undefined>;
|
|
@@ -27,6 +28,8 @@ export interface IDocInstancePayload {
|
|
|
27
28
|
export interface IDocPayload extends IDocTemplatePayload, IDocInstancePayload {
|
|
28
29
|
/** 工厂类型 */
|
|
29
30
|
factoryType: 'template' | 'instance';
|
|
31
|
+
/** 表单、实体和业务等数源的宿主查询适配器。 */
|
|
32
|
+
dataSourceAdapters?: DataSourceManagerOptions['adapters'];
|
|
30
33
|
/** 模型 key */
|
|
31
34
|
modelKey?: ModelKey;
|
|
32
35
|
/** 设备配置信息 */
|
|
@@ -48,6 +51,8 @@ export interface IDocPayload extends IDocTemplatePayload, IDocInstancePayload {
|
|
|
48
51
|
}
|
|
49
52
|
/** 文档加载工厂 — 只负责响应式加载与生命周期,不包含业务操作 */
|
|
50
53
|
export interface DocumentFactory {
|
|
54
|
+
/** 当前填报实例的数源查询、状态与手动刷新入口。 */
|
|
55
|
+
dataSourceManager: ShallowRef<DataSourceManager | undefined>;
|
|
51
56
|
/** 文档引擎实例 */
|
|
52
57
|
docIns: ShallowRef<Doc | null>;
|
|
53
58
|
/** 文档页面信息(响应式,驱动 canvas 渲染) */
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { DataSourceManager, DataSourceManagerOptions } from '@gct-paas/form-base';
|
|
1
2
|
import { ComputedRef, Ref, ShallowRef } from 'vue';
|
|
2
3
|
import { DocModeType, IPaperInfo } from '../../core/constants';
|
|
3
4
|
import { DocModel } from '../../core/model';
|
|
@@ -210,6 +211,8 @@ export interface DocRuntimeMeta extends OnlineFormInstanceResponse, OnlineFormTm
|
|
|
210
211
|
* useWord 返回的运行时对象(SDK 公共面)
|
|
211
212
|
*/
|
|
212
213
|
export interface WordRuntime {
|
|
214
|
+
/** 填报实例的数源管理器,支持 query(key) 和读取 states。 */
|
|
215
|
+
dataSourceManager: ShallowRef<DataSourceManager | undefined>;
|
|
213
216
|
/**
|
|
214
217
|
* 对外暴露的文档控制器引用。
|
|
215
218
|
*
|
|
@@ -254,6 +257,8 @@ export interface WordPrintCaptureOptions {
|
|
|
254
257
|
}
|
|
255
258
|
/** useWord 配置选项 */
|
|
256
259
|
export interface UseWordOptions {
|
|
260
|
+
/** 表单、实体、业务数源等宿主查询实现。 */
|
|
261
|
+
dataSourceAdapters?: DataSourceManagerOptions['adapters'];
|
|
257
262
|
/** 工厂类型:template(模板) | instance(实例) */
|
|
258
263
|
factoryType: 'template' | 'instance';
|
|
259
264
|
/** 主模型 key */
|
package/dist/sdk/vue/index.d.ts
CHANGED
|
@@ -5,3 +5,9 @@
|
|
|
5
5
|
export { default as DocDesignLayout } from './layouts/doc-design-layout.vue';
|
|
6
6
|
export { default as DocRenderLayout } from './layouts/doc-render-layout.vue';
|
|
7
7
|
export { GctLayout } from '../../base';
|
|
8
|
+
/**
|
|
9
|
+
* 共用数据获取列表:设计配置与运行时查看、手动加载
|
|
10
|
+
* word, excel 都暴露出去了,gct-dhr-kit 可从中任用一个
|
|
11
|
+
*/
|
|
12
|
+
export { DataSources } from '@gct-paas/form-base';
|
|
13
|
+
export type { DataSourceManager } from '@gct-paas/form-base';
|
package/dist/suites/shared/panel/config/editor/display-fields-editor/display-fields.util.d.ts
CHANGED
|
@@ -7,13 +7,13 @@ export interface IDisplayField {
|
|
|
7
7
|
name: string;
|
|
8
8
|
[key: string]: any;
|
|
9
9
|
}
|
|
10
|
-
/**
|
|
11
|
-
* 不同字段类型显示字段的默认字段列表
|
|
12
|
-
*/
|
|
10
|
+
/** 支持显示字段配置的普通字段不再预置显示列。 */
|
|
13
11
|
export declare const DEFAULT_DISPLAY_FIELDS_MAP: Record<string, string[]>;
|
|
14
12
|
interface DefaultDisplayFieldConfig {
|
|
15
13
|
keys: string[];
|
|
16
14
|
unremovableKeys: string[];
|
|
17
15
|
}
|
|
18
|
-
export declare function getDefaultDisplayFieldConfig(
|
|
16
|
+
export declare function getDefaultDisplayFieldConfig(_type?: string): DefaultDisplayFieldConfig;
|
|
17
|
+
/** 仅保留设备及批次类字段从历史搜索配置初始化显示列的行为。 */
|
|
18
|
+
export declare const retainsLegacyDisplayFields: (type?: string) => boolean;
|
|
19
19
|
export {};
|