@gct-paas/word 0.1.11 → 0.1.13

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 (91) hide show
  1. package/dist/base/calendar/src/calendar.vue.d.ts +1 -0
  2. package/dist/base/calendar/src/time.vue.d.ts +1 -0
  3. package/dist/base/index.d.ts +2 -0
  4. package/dist/base/modal/src/ModalRoot.vue.d.ts +2 -0
  5. package/dist/base/modal/src/modal.type.d.ts +3 -0
  6. package/dist/base/select/src/basic-select.vue.d.ts +9 -1
  7. package/dist/base/table/src/table.type.d.ts +19 -0
  8. package/dist/base/table/src/table.vue.d.ts +31 -56
  9. package/dist/base/tree/index.d.ts +1 -0
  10. package/dist/base/tree/src/tree-node.vue.d.ts +14 -0
  11. package/dist/base/tree/src/tree.type.d.ts +6 -0
  12. package/dist/base/tree/src/tree.vue.d.ts +18 -0
  13. package/dist/base/tree-select/index.d.ts +1 -0
  14. package/dist/base/tree-select/src/tree-select.vue.d.ts +45 -0
  15. package/dist/base/utils/image-size-util.d.ts +2 -0
  16. package/dist/capabilities/panel/schema/types.d.ts +4 -1
  17. package/dist/core/constants/index.d.ts +1 -0
  18. package/dist/core/cursor/logic/getCursorTextRawList.d.ts +2 -0
  19. package/dist/core/cursor/logic/index.d.ts +1 -0
  20. package/dist/core/data/DataManager.d.ts +38 -36
  21. package/dist/core/event/types.d.ts +1 -1
  22. package/dist/core/index.d.ts +3 -0
  23. package/dist/core/interaction/useInteraction.d.ts +0 -1
  24. package/dist/core/layout/LayoutContext.d.ts +1 -0
  25. package/dist/core/layout/handlers/FieldHandler.d.ts +0 -18
  26. package/dist/core/layout/handlers/fields/AttachmentHandler.d.ts +14 -0
  27. package/dist/core/layout/handlers/fields/BaseHandler.d.ts +67 -0
  28. package/dist/core/layout/handlers/fields/ImgHandler.d.ts +5 -0
  29. package/dist/core/layout/handlers/fields/InputHandler.d.ts +5 -0
  30. package/dist/core/layout/handlers/fields/OptionHandler.d.ts +15 -0
  31. package/dist/core/layout/handlers/fields/SignatureHandler.d.ts +24 -0
  32. package/dist/core/layout/handlers/fields/index.d.ts +6 -0
  33. package/dist/core/model/document/WrField.d.ts +3 -126
  34. package/dist/core/model/document/WsecPr.d.ts +39 -0
  35. package/dist/core/sdk/types/public-types.d.ts +2 -0
  36. package/dist/core/utils/calculate-formula.d.ts +5 -0
  37. package/dist/core/view/Doc.d.ts +5 -0
  38. package/dist/core/view/Page.d.ts +0 -3
  39. package/dist/core/view/Section.d.ts +4 -18
  40. package/dist/core/view/runs/ImageRun.d.ts +12 -0
  41. package/dist/core/view/runs/ImageWidget.d.ts +3 -0
  42. package/dist/core/view/runs/TextRun.d.ts +1 -0
  43. package/dist/core/view/runs/TextWidget.d.ts +8 -8
  44. package/dist/core/widget/widget-state.d.ts +21 -0
  45. package/dist/domain/active/active-types.d.ts +0 -1
  46. package/dist/domain/widget/component-type.d.ts +1 -1
  47. package/dist/index.d.ts +2 -0
  48. package/dist/index.es.js +6367 -4743
  49. package/dist/runtime/_register_/composables/panel/useActivePanel.d.ts +1 -2
  50. package/dist/runtime/canvas/__common__/widget-container/overlay-layer.vue.d.ts +2 -0
  51. package/dist/runtime/canvas/__common__/widget-container/overlay-render.vue.d.ts +1 -1
  52. package/dist/runtime/canvas/table/design/table-structure-overlay/dynamic-label.vue.d.ts +1 -0
  53. package/dist/runtime/canvas/table/utils/useTableSelection.d.ts +0 -1
  54. package/dist/runtime/designer/doc-design-layout.vue.d.ts +3 -1
  55. package/dist/runtime/designer/ribbon/common/button-icon.vue.d.ts +3 -2
  56. package/dist/runtime/designer/ribbon/constant/font.d.ts +1 -1
  57. package/dist/runtime/factories/createValidateFactory.d.ts +3 -1
  58. package/dist/runtime/factories/useDependency.d.ts +5 -0
  59. package/dist/runtime/factories/useDocumentFactory.d.ts +2 -0
  60. package/dist/runtime/factories/useFormValidator.d.ts +3 -0
  61. package/dist/runtime/factories/useRenderData.d.ts +2 -0
  62. package/dist/runtime/interface/computed.d.ts +18 -0
  63. package/dist/runtime/interface/data.d.ts +1 -4
  64. package/dist/runtime/interface/render.d.ts +11 -0
  65. package/dist/runtime/interface/utils.d.ts +10 -0
  66. package/dist/runtime/renderer/doc-render-layout.vue.d.ts +58 -2
  67. package/dist/runtime/renderer/main/preview-canvas.vue.d.ts +3 -1
  68. package/dist/setup.d.ts +11 -0
  69. package/dist/suites/edhr/field-manifest/_common_/basic.d.ts +2 -0
  70. package/dist/suites/edhr/panel-schema/data-group/data-group.basic.d.ts +4 -1
  71. package/dist/suites/edhr/panel-schema/data-init/common/add-builtin-field/add-builtin-field-modal.vue.d.ts +1 -1
  72. package/dist/suites/edhr/panel-schema/data-init/common/add-builtin-param/add-builtin-param-modal.vue.d.ts +5 -3
  73. package/dist/suites/edhr/panel-schema/data-init/common/add-field/add-field-modal.vue.d.ts +15 -6
  74. package/dist/suites/edhr/panel-schema/data-init/common/add-field/add-field-select.vue.d.ts +1 -5
  75. package/dist/suites/edhr/panel-schema/data-init/common/add-field/useField.d.ts +1 -4
  76. package/dist/suites/edhr/panel-schema/data-init/common/add-online-form-model/online-form-model-select.vue.d.ts +12 -0
  77. package/dist/suites/edhr/panel-schema/data-init/common/add-sql/add-sql-modal.vue.d.ts +3 -4
  78. package/dist/suites/edhr/panel-schema/data-init/common/data-source-model-link.vue.d.ts +2 -2
  79. package/dist/suites/edhr/panel-schema/data-init/utils/index.d.ts +9 -17
  80. package/dist/suites/edhr/panel-schema/dynamic-table/dynamic-table.basic.d.ts +4 -1
  81. package/dist/suites/edhr/panel-schema/fixed-table/fixed-table.basic.d.ts +4 -1
  82. package/dist/suites/edhr/panel-schema/index.d.ts +12 -3
  83. package/dist/utils/ServiceUtil.d.ts +31 -4
  84. package/dist/utils/TriggerUtil.d.ts +27 -0
  85. package/dist/utils/func/core.d.ts +6 -0
  86. package/dist/utils/func/file.d.ts +2 -0
  87. package/dist/word.css +1005 -998
  88. package/package.json +2 -2
  89. package/dist/runtime/designer/ribbon/components/bullet-point-select.vue.d.ts +0 -73
  90. package/dist/runtime/designer/ribbon/components/multistage-no-select.vue.d.ts +0 -73
  91. package/dist/runtime/renderer/dialogs/upload-file/utils.d.ts +0 -16
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gct-paas/word",
3
- "version": "0.1.11",
3
+ "version": "0.1.13",
4
4
  "description": "GCT 在线 word",
5
5
  "keywords": [
6
6
  "vue",
@@ -36,7 +36,7 @@
36
36
  "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx --fix",
37
37
  "publish:beta": "pnpm build && npm publish --registry=https://registry.npmjs.org/ --access public --tag beta",
38
38
  "publish:prod": "pnpm build && npm publish --registry=https://registry.npmjs.org/ --access public",
39
- "test": "vitest"
39
+ "test": "vitest run"
40
40
  },
41
41
  "dependencies": {
42
42
  "@gct-paas/api": "0.1.0-word.7",
@@ -1,73 +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, {
2
- insRef: ({
3
- $: import('vue').ComponentInternalInstance;
4
- $data: {};
5
- $props: {
6
- readonly tooltip: string;
7
- readonly "onLeft-btn-click"?: ((...args: any[]) => any) | undefined;
8
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
9
- $attrs: {
10
- [x: string]: unknown;
11
- };
12
- $refs: {
13
- [x: string]: unknown;
14
- } & {
15
- dropdownRef: import('vue').CreateComponentPublicInstanceWithMixins<Record<string, any> & {}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, {}, {}, string, {}, any, import('vue').ComponentProvideOptions, {
16
- P: {};
17
- B: {};
18
- D: {};
19
- C: {};
20
- M: {};
21
- Defaults: {};
22
- }, Record<string, any> & {}, {}, {}, {}, {}, {}> | null;
23
- };
24
- $slots: Readonly<{
25
- [name: string]: import('vue').Slot<any> | undefined;
26
- }>;
27
- $root: import('vue').ComponentPublicInstance | null;
28
- $parent: import('vue').ComponentPublicInstance | null;
29
- $host: Element | null;
30
- $emit: (event: "left-btn-click", ...args: any[]) => void;
31
- $el: HTMLDivElement;
32
- $options: import('vue').ComponentOptionsBase<Readonly<{
33
- tooltip: string;
34
- }> & Readonly<{
35
- "onLeft-btn-click"?: ((...args: any[]) => any) | undefined;
36
- }>, {
37
- getRef: import('vue').Ref<any, any>;
38
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
39
- "left-btn-click": (...args: any[]) => void;
40
- }, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
41
- beforeCreate?: (() => void) | (() => void)[];
42
- created?: (() => void) | (() => void)[];
43
- beforeMount?: (() => void) | (() => void)[];
44
- mounted?: (() => void) | (() => void)[];
45
- beforeUpdate?: (() => void) | (() => void)[];
46
- updated?: (() => void) | (() => void)[];
47
- activated?: (() => void) | (() => void)[];
48
- deactivated?: (() => void) | (() => void)[];
49
- beforeDestroy?: (() => void) | (() => void)[];
50
- beforeUnmount?: (() => void) | (() => void)[];
51
- destroyed?: (() => void) | (() => void)[];
52
- unmounted?: (() => void) | (() => void)[];
53
- renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
54
- renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
55
- errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
56
- };
57
- $forceUpdate: () => void;
58
- $nextTick: typeof import('vue').nextTick;
59
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
60
- } & Readonly<{}> & Omit<Readonly<{
61
- tooltip: string;
62
- }> & Readonly<{
63
- "onLeft-btn-click"?: ((...args: any[]) => any) | undefined;
64
- }>, "getRef"> & import('vue').ShallowUnwrapRef<{
65
- getRef: import('vue').Ref<any, any>;
66
- }> & {} & import('vue').ComponentCustomProperties & {} & {
67
- $slots: {
68
- 'main-content'?(_: {}): any;
69
- 'left-content'?(_: {}): any;
70
- };
71
- }) | null;
72
- }, HTMLDivElement>;
73
- export default _default;
@@ -1,73 +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, {
2
- insRef: ({
3
- $: import('vue').ComponentInternalInstance;
4
- $data: {};
5
- $props: {
6
- readonly tooltip: string;
7
- readonly "onLeft-btn-click"?: ((...args: any[]) => any) | undefined;
8
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
9
- $attrs: {
10
- [x: string]: unknown;
11
- };
12
- $refs: {
13
- [x: string]: unknown;
14
- } & {
15
- dropdownRef: import('vue').CreateComponentPublicInstanceWithMixins<Record<string, any> & {}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, {}, {}, string, {}, any, import('vue').ComponentProvideOptions, {
16
- P: {};
17
- B: {};
18
- D: {};
19
- C: {};
20
- M: {};
21
- Defaults: {};
22
- }, Record<string, any> & {}, {}, {}, {}, {}, {}> | null;
23
- };
24
- $slots: Readonly<{
25
- [name: string]: import('vue').Slot<any> | undefined;
26
- }>;
27
- $root: import('vue').ComponentPublicInstance | null;
28
- $parent: import('vue').ComponentPublicInstance | null;
29
- $host: Element | null;
30
- $emit: (event: "left-btn-click", ...args: any[]) => void;
31
- $el: HTMLDivElement;
32
- $options: import('vue').ComponentOptionsBase<Readonly<{
33
- tooltip: string;
34
- }> & Readonly<{
35
- "onLeft-btn-click"?: ((...args: any[]) => any) | undefined;
36
- }>, {
37
- getRef: import('vue').Ref<any, any>;
38
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
39
- "left-btn-click": (...args: any[]) => void;
40
- }, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
41
- beforeCreate?: (() => void) | (() => void)[];
42
- created?: (() => void) | (() => void)[];
43
- beforeMount?: (() => void) | (() => void)[];
44
- mounted?: (() => void) | (() => void)[];
45
- beforeUpdate?: (() => void) | (() => void)[];
46
- updated?: (() => void) | (() => void)[];
47
- activated?: (() => void) | (() => void)[];
48
- deactivated?: (() => void) | (() => void)[];
49
- beforeDestroy?: (() => void) | (() => void)[];
50
- beforeUnmount?: (() => void) | (() => void)[];
51
- destroyed?: (() => void) | (() => void)[];
52
- unmounted?: (() => void) | (() => void)[];
53
- renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
54
- renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
55
- errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
56
- };
57
- $forceUpdate: () => void;
58
- $nextTick: typeof import('vue').nextTick;
59
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
60
- } & Readonly<{}> & Omit<Readonly<{
61
- tooltip: string;
62
- }> & Readonly<{
63
- "onLeft-btn-click"?: ((...args: any[]) => any) | undefined;
64
- }>, "getRef"> & import('vue').ShallowUnwrapRef<{
65
- getRef: import('vue').Ref<any, any>;
66
- }> & {} & import('vue').ComponentCustomProperties & {} & {
67
- $slots: {
68
- 'main-content'?(_: {}): any;
69
- 'left-content'?(_: {}): any;
70
- };
71
- }) | null;
72
- }, HTMLDivElement>;
73
- export default _default;
@@ -1,16 +0,0 @@
1
- export declare const UploadTypeConst: {
2
- readonly JPG: "jpg";
3
- readonly JPEG: "jpeg";
4
- readonly PNG: "png";
5
- readonly BMP: "bmp";
6
- readonly DOCX: "docx";
7
- readonly PDF: "pdf";
8
- readonly XLSX: "xlsx";
9
- readonly DOC: "doc";
10
- readonly MP4: "mp4";
11
- readonly AVI: "avi";
12
- readonly PPT: "ppt";
13
- readonly GIF: "gif";
14
- };
15
- export declare function getUploadFileIcon(name?: string): "attachment" | "doc" | "pdf" | "xlsx" | "mp4" | "ppt" | "img";
16
- export declare const formatSize: (size?: number) => string;