@gct-paas/word 0.1.45 → 0.1.46

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.
Files changed (81) hide show
  1. package/README.md +32 -5
  2. package/dist/capabilities/panel/schema/registry.d.ts +1 -1
  3. package/dist/core/cursor/CursorController.d.ts +9 -4
  4. package/dist/core/cursor/composables/useCursorSelection.d.ts +6 -0
  5. package/dist/core/cursor/hit/types.d.ts +2 -0
  6. package/dist/core/cursor/layout/baseMeta.d.ts +2 -0
  7. package/dist/core/cursor/logic/index.d.ts +1 -0
  8. package/dist/core/cursor/logic/resolveCursorState.d.ts +24 -0
  9. package/dist/core/cursor/types/cursor.d.ts +4 -2
  10. package/dist/core/data/DataManager.d.ts +46 -3
  11. package/dist/core/data/data-path-suffix.d.ts +2 -0
  12. package/dist/core/data/enrichers/build-field-enrichers.d.ts +4 -3
  13. package/dist/core/data/enrichers/hyperlink-enricher.d.ts +8 -0
  14. package/dist/core/index.d.ts +2 -1
  15. package/dist/core/layout/handlers/RunHandlerBase.d.ts +13 -0
  16. package/dist/core/layout/handlers/TextHandler.d.ts +2 -6
  17. package/dist/core/layout/handlers/fields/FieldBaseHandler.d.ts +9 -7
  18. package/dist/core/layout/handlers/pageWidgets/TimeDiffHandler.d.ts +17 -0
  19. package/dist/core/layout/handlers/pageWidgets/WidgetBaseHandler.d.ts +6 -15
  20. package/dist/core/layout/handlers/pageWidgets/index.d.ts +1 -0
  21. package/dist/core/view/base/LayoutNode.d.ts +0 -2
  22. package/dist/core/view/runs/ImageWidget.d.ts +4 -9
  23. package/dist/core/view/runs/TextRun.d.ts +3 -2
  24. package/dist/core/view/runs/TextWidget.d.ts +6 -11
  25. package/dist/core/view/types/index.d.ts +9 -0
  26. package/dist/core/widget/field-hyperlink.d.ts +12 -0
  27. package/dist/core/widget/widget-state.d.ts +27 -1
  28. package/dist/domain/constants/enum.d.ts +22 -0
  29. package/dist/domain/field/field-props-schema-type.d.ts +7 -0
  30. package/dist/domain/field/field-type.d.ts +8 -0
  31. package/dist/domain/paper-widget/paper-widget-props-schema-type.d.ts +1 -1
  32. package/dist/domain/paper-widget/paper-widget-type.d.ts +3 -1
  33. package/dist/domain/widget/component-type.d.ts +1 -1
  34. package/dist/index.es.js +3169 -3300
  35. package/dist/runtime/_register_/composables/panel/useActivePanel.d.ts +1 -1
  36. package/dist/runtime/interface/render.d.ts +2 -0
  37. package/dist/runtime/renderer/dropdowns/components/tables/composables/useTableDropdown.d.ts +1 -0
  38. package/dist/runtime/renderer/dropdowns/components/tables/strategy/selectStrategy.d.ts +2 -0
  39. package/dist/sdk/doc-runtime/device-link/resolve-field-focus-context.d.ts +15 -0
  40. package/dist/sdk/doc-runtime/device-link/useDeviceFieldFocusBridge.d.ts +7 -0
  41. package/dist/sdk/doc-runtime/device-link/useFormTmplAndModelInit.d.ts +15 -0
  42. package/dist/sdk/doc-runtime/device-link/useFormTmplConfig.d.ts +10 -0
  43. package/dist/sdk/doc-runtime/factories/document-initializer.d.ts +16 -0
  44. package/dist/sdk/doc-runtime/factories/useDocumentFactory.d.ts +2 -0
  45. package/dist/sdk/doc-runtime/useWord.d.ts +11 -5
  46. package/dist/sdk/engine/index.d.ts +1 -0
  47. package/dist/sdk/plugins/index.d.ts +2 -1
  48. package/dist/sdk/plugins/register-panel-schemas.d.ts +9 -0
  49. package/dist/sdk/types/form-tmpl-config.types.d.ts +123 -0
  50. package/dist/sdk/types/index.d.ts +12 -4
  51. package/dist/sdk/vue/layouts/doc-design-layout.vue.d.ts +2 -5
  52. package/dist/suites/edhr/field-manifest/trace/order-no-manifest.d.ts +2 -0
  53. package/dist/suites/edhr/field-manifest/trace/related-lot-no-manifest.d.ts +2 -0
  54. package/dist/suites/edhr/panel-schema/index.d.ts +0 -5
  55. package/dist/suites/edhr/paper-widget-manifest/basic/timediff-manifest.d.ts +2 -0
  56. package/dist/utils/TriggerUtil.d.ts +1 -1
  57. package/dist/utils/func/core.d.ts +9 -0
  58. package/dist/utils/func/render.d.ts +2 -0
  59. package/dist/word.css +104 -415
  60. package/package.json +1 -1
  61. package/dist/sdk/vue/layouts/doc-design-layout.d.ts +0 -7
  62. package/dist/suites/edhr/panel-schema/data-load/DataLoadPanel.vue.d.ts +0 -2
  63. package/dist/suites/edhr/panel-schema/data-load/ai-tmpl/ai-tmpl-editor.vue.d.ts +0 -6
  64. package/dist/suites/edhr/panel-schema/data-load/ai-tmpl/identify-param-card.vue.d.ts +0 -14
  65. package/dist/suites/edhr/panel-schema/data-load/common/add-tmpl-btn.vue.d.ts +0 -16
  66. package/dist/suites/edhr/panel-schema/data-load/common/decimal-slider.vue.d.ts +0 -21
  67. package/dist/suites/edhr/panel-schema/data-load/common/form-field-select.vue.d.ts +0 -19
  68. package/dist/suites/edhr/panel-schema/data-load/common/icon-tooltip.vue.d.ts +0 -10
  69. package/dist/suites/edhr/panel-schema/data-load/common/remove-icon.vue.d.ts +0 -7
  70. package/dist/suites/edhr/panel-schema/data-load/common/tmpl-card.vue.d.ts +0 -25
  71. package/dist/suites/edhr/panel-schema/data-load/data-load.basic.d.ts +0 -5
  72. package/dist/suites/edhr/panel-schema/data-load/device-tmpl/device-field-status.vue.d.ts +0 -9
  73. package/dist/suites/edhr/panel-schema/data-load/device-tmpl/device-tmpl-editor.vue.d.ts +0 -6
  74. package/dist/suites/edhr/panel-schema/data-load/device-tmpl/params-item-card.vue.d.ts +0 -30
  75. package/dist/suites/edhr/panel-schema/data-load/hooks/device-link/constant.d.ts +0 -44
  76. package/dist/suites/edhr/panel-schema/data-load/hooks/device-link/controller.d.ts +0 -38
  77. package/dist/suites/edhr/panel-schema/data-load/hooks/device-link/index.d.ts +0 -3
  78. package/dist/suites/edhr/panel-schema/data-load/hooks/device-link/types.d.ts +0 -157
  79. package/dist/suites/edhr/panel-schema/data-load/hooks/form-tmpl-config/form-tmpl-config-controller.d.ts +0 -67
  80. package/dist/suites/edhr/panel-schema/data-load/hooks/form-tmpl-config/index.d.ts +0 -2
  81. package/dist/suites/edhr/panel-schema/data-load/hooks/form-tmpl-config/use-form-tmpl-config.d.ts +0 -10
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gct-paas/word",
3
- "version": "0.1.45",
3
+ "version": "0.1.46",
4
4
  "description": "GCT 在线 word",
5
5
  "keywords": [
6
6
  "vue",
@@ -1,7 +0,0 @@
1
- export interface DocDesignLayoutProps {
2
- IOTPermission?: boolean;
3
- }
4
- export declare const useDocDesignLayoutProps: () => {
5
- provideProps: (props: DocDesignLayoutProps) => void;
6
- injectProps: () => DocDesignLayoutProps;
7
- };
@@ -1,2 +0,0 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
2
- export default _default;
@@ -1,6 +0,0 @@
1
- import { DeviceLink } from '../hooks/device-link';
2
- type __VLS_Props = {
3
- value: Partial<DeviceLink.AIOcrTmpl>;
4
- };
5
- declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
6
- export default _default;
@@ -1,14 +0,0 @@
1
- import { DeviceLink } from '../hooks/device-link';
2
- type __VLS_Props = {
3
- params: DeviceLink.AIOcrTmplIdentifyParams;
4
- index: number;
5
- showRemove?: boolean;
6
- };
7
- declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
8
- remove: (index: number) => any;
9
- }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
10
- onRemove?: ((index: number) => any) | undefined;
11
- }>, {
12
- params: DeviceLink.AIOcrTmplIdentifyParams;
13
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
14
- export default _default;
@@ -1,16 +0,0 @@
1
- import { DeviceLink } from '../hooks/device-link';
2
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
3
- add: (type: DeviceLink.TmplTypeEnum) => any;
4
- }, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
5
- onAdd?: ((type: DeviceLink.TmplTypeEnum) => any) | undefined;
6
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
7
- dropdownRef: import('vue').CreateComponentPublicInstanceWithMixins<Record<string, any> & {}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, {}, {}, string, {}, any, import('vue').ComponentProvideOptions, {
8
- P: {};
9
- B: {};
10
- D: {};
11
- C: {};
12
- M: {};
13
- Defaults: {};
14
- }, Record<string, any> & {}, {}, {}, {}, {}, {}> | null;
15
- }, any>;
16
- export default _default;
@@ -1,21 +0,0 @@
1
- type __VLS_Props = {
2
- modelValue?: number;
3
- /** 步长可以是小数 */
4
- step: number;
5
- /** 精度 */
6
- precision?: number;
7
- max?: number;
8
- min?: number;
9
- };
10
- declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
11
- "update:modelValue": (modelValue: number) => any;
12
- }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
13
- "onUpdate:modelValue"?: ((modelValue: number) => any) | undefined;
14
- }>, {
15
- modelValue: number;
16
- step: number;
17
- min: number;
18
- max: number;
19
- precision: number;
20
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
21
- export default _default;
@@ -1,19 +0,0 @@
1
- type __VLS_Props = {
2
- modelValue?: string;
3
- /** 是否仅显示子模型字段 */
4
- onlySubFields?: boolean;
5
- /** 子模型key */
6
- subModelKey?: string;
7
- readonly?: boolean;
8
- };
9
- declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
10
- "update:modelValue": (value: string) => any;
11
- }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
12
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
13
- }>, {
14
- readonly: boolean;
15
- modelValue: string;
16
- subModelKey: string;
17
- onlySubFields: boolean;
18
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
19
- export default _default;
@@ -1,10 +0,0 @@
1
- type __VLS_Props = {
2
- /** 图标 */
3
- icon?: string;
4
- /** 提示文本 */
5
- content: string;
6
- };
7
- declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
8
- icon: string;
9
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
10
- export default _default;
@@ -1,7 +0,0 @@
1
- type __VLS_Props = {
2
- icon?: string;
3
- };
4
- declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
5
- icon: string;
6
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
7
- export default _default;
@@ -1,25 +0,0 @@
1
- import { DeviceLink } from '../hooks/device-link';
2
- type __VLS_Props = {
3
- type: DeviceLink.TmplTypeEnum;
4
- };
5
- declare function __VLS_template(): {
6
- attrs: Partial<{}>;
7
- slots: {
8
- default?(_: {}): any;
9
- };
10
- refs: {};
11
- rootEl: HTMLDivElement;
12
- };
13
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
14
- declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
15
- remove: () => any;
16
- }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
17
- onRemove?: (() => any) | undefined;
18
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
19
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
20
- export default _default;
21
- type __VLS_WithTemplateSlots<T, S> = T & {
22
- new (): {
23
- $slots: S;
24
- };
25
- };
@@ -1,5 +0,0 @@
1
- export declare const schema: {
2
- key: string;
3
- title: string;
4
- render: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
5
- };
@@ -1,9 +0,0 @@
1
- import { DeviceLink } from '../hooks/device-link';
2
- type __VLS_Props = {
3
- value?: string;
4
- deviceParams: DeviceLink.IDeviceLinkParams;
5
- };
6
- declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
7
- value: string;
8
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
9
- export default _default;
@@ -1,6 +0,0 @@
1
- import { DeviceLink } from '../hooks/device-link';
2
- type __VLS_Props = {
3
- value: DeviceLink.DeviceInterconnectionTmpl;
4
- };
5
- declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
6
- export default _default;
@@ -1,30 +0,0 @@
1
- import { DeviceLink } from '../hooks/device-link';
2
- type __VLS_Props = {
3
- /** 启用折叠功能 */
4
- enableCollapse?: boolean;
5
- deviceParams: DeviceLink.IDeviceLinkParams;
6
- };
7
- declare function __VLS_template(): {
8
- attrs: Partial<{}>;
9
- slots: {
10
- default?(_: {}): any;
11
- children?(_: {}): any;
12
- };
13
- refs: {};
14
- rootEl: HTMLDivElement;
15
- };
16
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
17
- declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
18
- "update:value": (value: string) => any;
19
- }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
20
- "onUpdate:value"?: ((value: string) => any) | undefined;
21
- }>, {
22
- enableCollapse: boolean;
23
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
24
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
25
- export default _default;
26
- type __VLS_WithTemplateSlots<T, S> = T & {
27
- new (): {
28
- $slots: S;
29
- };
30
- };
@@ -1,44 +0,0 @@
1
- import { DeviceLink } from './types';
2
- export declare const AITooltips: {
3
- /** 降噪 */
4
- denoise: {
5
- title: string;
6
- content: string;
7
- };
8
- /** 对比度 */
9
- contrast: {
10
- title: string;
11
- content: string;
12
- };
13
- /** 二值化 */
14
- binarize: {
15
- title: string;
16
- content: string;
17
- };
18
- /** 识别参数提示词 */
19
- identifyParam: {
20
- content: string;
21
- };
22
- };
23
- export declare const DenoiseMethodMap: {
24
- bilateral: string;
25
- gaussian: string;
26
- median: string;
27
- };
28
- export declare const BinarizeMethodMap: {
29
- adaptive: string;
30
- otsu: string;
31
- simple: string;
32
- };
33
- /** 降噪方法选项集合 */
34
- export declare const DenoiseMethodOptions: import('vue').ComputedRef<{
35
- label: string;
36
- value: DeviceLink.DenoiseMethodEnum;
37
- }[]>;
38
- /** 二值化方法选项集合 */
39
- export declare const BinarizeMethodOptions: import('vue').ComputedRef<{
40
- label: string;
41
- value: DeviceLink.BinarizeMethodEnum;
42
- }[]>;
43
- /** 设备参数的类型对应的翻译 */
44
- export declare const DeviceParamsTypeTitle: Record<string, string>;
@@ -1,38 +0,0 @@
1
- import { DeviceLink } from './types';
2
- /**
3
- * 设备互联模板工具类
4
- *
5
- * @export
6
- * @class DeviceLinkTmplController
7
- */
8
- export declare class DeviceLinkTmplUtil {
9
- /**
10
- * 创建模板数据
11
- * @param type
12
- * @return {*}
13
- */
14
- static createTmpl(type: DeviceLink.TmplTypeEnum): DeviceLink.BasicTmpl;
15
- /**
16
- * 计算完整的提示词
17
- * @static
18
- * @param tmpl
19
- * @return {*}
20
- */
21
- static calcEntirePrompt(tmpl: DeviceLink.AIOcrTmpl): string;
22
- /** 平台设备互联接口对象转换格式 */
23
- static transfer2DeviceLink(data: any): DeviceLink.IDeviceLink;
24
- /**
25
- * 通过设备id转换成IDeviceLink结构
26
- * - 请求获取完整的带参数的数据
27
- * - 把参数数据转换成IDeviceLink结构
28
- * @static
29
- * @param deviceId
30
- */
31
- static getDeviceLink(deviceId: string): Promise<DeviceLink.IDeviceLink | undefined>;
32
- /**
33
- * 初始化设备字段和表单字段映射关系
34
- * @static
35
- * @param deviceLink
36
- */
37
- static initDevice2FormFieldMap(deviceLink: DeviceLink.IDeviceLink): DeviceLink.Device2FormFieldMap[];
38
- }
@@ -1,3 +0,0 @@
1
- export * from './types';
2
- export * from './controller';
3
- export * from './constant';
@@ -1,157 +0,0 @@
1
- /** 设备互联命名空间 */
2
- export declare namespace DeviceLink {
3
- /**
4
- * 设备互联模板类型枚举
5
- * @export
6
- * @enum {number}
7
- */
8
- enum TmplTypeEnum {
9
- /** 设备互联 */
10
- DEVICE_INTERCONNECTION = "DEVICE_INTERCONNECTION",
11
- /** AI OCR 识别 */
12
- AI_OCR = "AI_OCR"
13
- }
14
- /**
15
- * 降噪方法类型枚举
16
- * @export
17
- * @enum {number}
18
- */
19
- enum DenoiseMethodEnum {
20
- /** 高斯模糊 */
21
- GAUSSIAN = "gaussian",
22
- /** 双边滤波 */
23
- BILATERAL = "bilateral",
24
- /** 中值滤波 */
25
- MEDIAN = "bilateral"
26
- }
27
- /**
28
- * 二值化方法类型枚举
29
- * @export
30
- * @enum {number}
31
- */
32
- enum BinarizeMethodEnum {
33
- /** 自适应阈值 */
34
- ADAPTIVE = "adaptive",
35
- /** Otsu 自适应 */
36
- OTSU = "otsu",
37
- /** 简单阈值 */
38
- SIMPLE = "simple"
39
- }
40
- /** ai 识别输入方式枚举 */
41
- enum AiInputModeEnum {
42
- /** 图片上传 */
43
- UPLOAD = "UPLOAD",
44
- /** 摄像头 */
45
- CAMERA = "CAMERA"
46
- }
47
- /** 模板配置的通用结构 */
48
- interface BasicTmpl {
49
- /** 模板id(前端生成,唯一标识) */
50
- id: string;
51
- /** 模板类型 */
52
- type: TmplTypeEnum;
53
- }
54
- /**
55
- * 设备字段和表单字段映射关系
56
- * @export
57
- * @interface Device2FormFieldMap
58
- */
59
- interface Device2FormFieldMap {
60
- /** 设备字段id */
61
- deviceField: string;
62
- /** 设备参数配置信息备份仅显示使用 */
63
- deviceLinkParams?: IDeviceLinkParams;
64
- /** 表单字段id(模型key.字段key)*/
65
- formField?: string;
66
- /** 是否是子表字段 */
67
- isSubField?: boolean;
68
- /** 子表字段映射关系 */
69
- children?: Device2FormFieldMap[];
70
- }
71
- /**
72
- * 设备互联模板
73
- * @export
74
- * @interface DeviceInterconnectionTmpl
75
- */
76
- interface DeviceInterconnectionTmpl extends BasicTmpl {
77
- /** 设备名称 */
78
- deviceName: string;
79
- /** 设备id */
80
- deviceId: string;
81
- /**
82
- * 设备字段和表单字段映射关系
83
- * key: 设备字段id(设备字段id)
84
- * value: 表单字段id(模型key.字段key)
85
- * */
86
- fieldMaps: Device2FormFieldMap[];
87
- /** 运行时设备id */
88
- runtimeDeviceId?: string;
89
- /** 运行时设备编码 */
90
- runtimeDeviceKey?: string;
91
- /** 运行时设备类型,IPAAS,MQTT */
92
- runtimeDeviceType?: string;
93
- }
94
- interface AIOcrTmplIdentifyParams {
95
- /** 提示词 */
96
- prompt: string;
97
- /** 表单字段id(模型key.字段key)*/
98
- formField: string;
99
- }
100
- /**
101
- * AI OCR模板
102
- * @export
103
- * @interface AIOcrTmpl
104
- */
105
- interface AIOcrTmpl extends BasicTmpl {
106
- /** 识别模板名 */
107
- name: string;
108
- /** 设备名称 */
109
- deviceName: string;
110
- /** 是否启用降噪 */
111
- enableDenoise: boolean;
112
- /** 降噪方法 */
113
- denoiseMethod?: DenoiseMethodEnum;
114
- /** 是否启用增强对比 */
115
- enableContrast: boolean;
116
- /** 增强对比强度值(1.0~3.0) */
117
- contrastAlpha?: number;
118
- /** 是否启用二值化 */
119
- enableBinarize: boolean;
120
- /** 二值化方法 */
121
- binarizeMethod?: BinarizeMethodEnum;
122
- /** 识别参数数组 */
123
- identifyParams?: AIOcrTmplIdentifyParams[];
124
- /** 额外提示词 */
125
- extraPrompt: string;
126
- /** 输入方式 */
127
- inputMode?: AiInputModeEnum;
128
- /** 运行时最终使用的完整提示词 */
129
- runtimePrompt?: string;
130
- }
131
- /** 设备互联类型枚举 */
132
- enum DeviceLinkTypeEnum {
133
- /** 接口 */
134
- IPAAS = "IPAAS",
135
- /** */
136
- MQTT = "MQTT"
137
- }
138
- /** 转换成可读的设备参数接口 */
139
- interface IDeviceLinkParams {
140
- code: string;
141
- name: string;
142
- type: string;
143
- remark: string;
144
- children?: IDeviceLinkParams[];
145
- }
146
- /** 组件内部用的设备参数接口 */
147
- interface IDeviceLink {
148
- /** 设备id */
149
- id: string;
150
- /** 设备名称 */
151
- name: string;
152
- /** 类型 */
153
- type: DeviceLinkTypeEnum;
154
- /** 树形的参数配置 */
155
- params?: IDeviceLinkParams[];
156
- }
157
- }
@@ -1,67 +0,0 @@
1
- import { DeviceLink } from '../device-link';
2
- /**
3
- * 表单模板配置控制器
4
- * @export
5
- * @class FormTmplConfigController
6
- */
7
- export declare class FormTmplConfigController {
8
- /** 存储响应式变量 */
9
- state: {
10
- tmpls: {
11
- id: string;
12
- type: DeviceLink.TmplTypeEnum;
13
- }[];
14
- runningTmpls: {
15
- deviceName: string;
16
- deviceId: string;
17
- fieldMaps: {
18
- deviceField: string;
19
- deviceLinkParams?: {
20
- code: string;
21
- name: string;
22
- type: string;
23
- remark: string;
24
- children?: /*elided*/ any[] | undefined;
25
- } | undefined;
26
- formField?: string | undefined;
27
- isSubField?: boolean | undefined;
28
- children?: /*elided*/ any[] | undefined;
29
- }[];
30
- runtimeDeviceId?: string | undefined;
31
- runtimeDeviceKey?: string | undefined;
32
- runtimeDeviceType?: string | undefined;
33
- id: string;
34
- type: DeviceLink.TmplTypeEnum;
35
- }[];
36
- };
37
- /** 表单模板id */
38
- tmplId: string;
39
- /** 是否手动模式,手动模式不触发接口 */
40
- isManual: boolean;
41
- /**
42
- * 初始化
43
- *
44
- * @param opts
45
- * - tmplId 表单模板id
46
- */
47
- init(opts: {
48
- tmplId: string;
49
- isManual?: boolean;
50
- }): Promise<void>;
51
- /**
52
- * 设置获取到的配置数据字符串
53
- * @param configStr
54
- */
55
- setConfigStr(configStr?: string): void;
56
- getConfigStr(): string;
57
- /** 调用接口加载数据 */
58
- protected load(): Promise<void>;
59
- /** 调用接口保存数据 */
60
- save(): Promise<void>;
61
- /** 调用接口刷新数据 */
62
- refresh(): Promise<void>;
63
- /** 添加或更新模板,并且调用接口保存并刷新数据 */
64
- createOrUpdate(tmpl: DeviceLink.BasicTmpl): Promise<void>;
65
- /** 缓存运行中的模板 */
66
- cacheRunningTmpl(tmpl: DeviceLink.BasicTmpl): void;
67
- }
@@ -1,2 +0,0 @@
1
- export * from './use-form-tmpl-config';
2
- export * from './form-tmpl-config-controller';
@@ -1,10 +0,0 @@
1
- import { FormTmplConfigController } from './form-tmpl-config-controller';
2
- /**
3
- * 表单模板里的设备互联模板配置
4
- * @export
5
- * @return {*}
6
- */
7
- export declare function useFormTmplConfig(): {
8
- provideController: (c?: FormTmplConfigController) => FormTmplConfigController;
9
- injectController: () => FormTmplConfigController;
10
- };