@worm-vue3-print/canvas 1.3.6 → 1.3.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.
Files changed (79) hide show
  1. package/dist/canvas.css +1 -1
  2. package/dist/components/CanvasArea.vue.d.ts +1 -1
  3. package/dist/components/CanvasPaper.vue.d.ts +1 -1
  4. package/dist/components/DesignerToolbar.vue.d.ts +1 -1
  5. package/dist/components/ExpressionEditor.vue.d.ts +1 -1
  6. package/dist/components/FieldTreePanel.vue.d.ts +1 -1
  7. package/dist/components/FormatToolbar.vue.d.ts +1 -1
  8. package/dist/components/HelpButton.vue.d.ts +1 -1
  9. package/dist/components/HelpModal.vue.d.ts +1 -1
  10. package/dist/components/LayerPanel.vue.d.ts +1 -1
  11. package/dist/components/LeftPanel.vue.d.ts +1 -1
  12. package/dist/components/PageTabs.vue.d.ts +1 -1
  13. package/dist/components/PresetColorPicker.vue.d.ts +1 -1
  14. package/dist/components/PrintDesigner.vue.d.ts +1 -1
  15. package/dist/components/PrintHtmlPreview.vue.d.ts +1 -1
  16. package/dist/components/PropertyPanel.vue.d.ts +1 -1
  17. package/dist/components/Ruler.vue.d.ts +1 -1
  18. package/dist/components/StatusBar.vue.d.ts +1 -1
  19. package/dist/components/ToolbarDropdown.vue.d.ts +4 -1
  20. package/dist/components/ToolbarMore.vue.d.ts +9 -0
  21. package/dist/components/WatermarkConfig.vue.d.ts +1 -1
  22. package/dist/components/elements/BarcodeElement.vue.d.ts +1 -1
  23. package/dist/components/elements/BaseElement.vue.d.ts +1 -1
  24. package/dist/components/elements/CellBarcode.vue.d.ts +3 -1
  25. package/dist/components/elements/CellImage.vue.d.ts +2 -1
  26. package/dist/components/elements/HtmlElement.vue.d.ts +1 -1
  27. package/dist/components/elements/ImageElement.vue.d.ts +1 -1
  28. package/dist/components/elements/LineElement.vue.d.ts +1 -1
  29. package/dist/components/elements/LongTextElement.vue.d.ts +1 -1
  30. package/dist/components/elements/PageNumberElement.vue.d.ts +1 -1
  31. package/dist/components/elements/QrcodeElement.vue.d.ts +1 -1
  32. package/dist/components/elements/ShapeElement.vue.d.ts +1 -1
  33. package/dist/components/elements/TableContextMenu.vue.d.ts +1 -1
  34. package/dist/components/elements/TableElement.vue.d.ts +1 -1
  35. package/dist/components/elements/TextElement.vue.d.ts +1 -1
  36. package/dist/components/property/AdvancedGroup.vue.d.ts +1 -1
  37. package/dist/components/property/AppearanceGroup.vue.d.ts +1 -1
  38. package/dist/components/property/BindingControl.vue.d.ts +1 -1
  39. package/dist/components/property/BorderBgGroup.vue.d.ts +1 -1
  40. package/dist/components/property/CodeGroup.vue.d.ts +1 -1
  41. package/dist/components/property/DesignBackgroundConfig.vue.d.ts +1 -1
  42. package/dist/components/property/FontSelect.vue.d.ts +1 -1
  43. package/dist/components/property/ImageContentUpload.vue.d.ts +1 -1
  44. package/dist/components/property/PaginationGroup.vue.d.ts +1 -1
  45. package/dist/components/property/PositionSizeGroup.vue.d.ts +1 -1
  46. package/dist/components/property/PropertyGroup.vue.d.ts +1 -1
  47. package/dist/components/property/PropertySearch.vue.d.ts +1 -1
  48. package/dist/components/property/StepperInput.vue.d.ts +1 -1
  49. package/dist/components/property/TableCellGroup.vue.d.ts +1 -1
  50. package/dist/components/property/TableRowGroup.vue.d.ts +1 -1
  51. package/dist/components/property/TableSettingsGroup.vue.d.ts +1 -1
  52. package/dist/components/property/TilingConfig.vue.d.ts +1 -1
  53. package/dist/composables/useAdsorb.d.ts +1 -1
  54. package/dist/composables/useAdsorbManager.d.ts +1 -1
  55. package/dist/composables/useClipboard.d.ts +9 -5
  56. package/dist/composables/useDesignerState.d.ts +49 -25
  57. package/dist/composables/useDocumentFontFace.d.ts +1 -1
  58. package/dist/composables/useDrag.d.ts +1 -1
  59. package/dist/composables/useFontCatalog.d.ts +1 -1
  60. package/dist/composables/useFormatPainter.d.ts +1 -1
  61. package/dist/composables/useFormatToolbar.d.ts +1 -1
  62. package/dist/composables/useGuides.d.ts +1 -1
  63. package/dist/composables/useHistory.d.ts +1 -1
  64. package/dist/composables/useHostAdapter.d.ts +1 -1
  65. package/dist/composables/useSelection.d.ts +1 -1
  66. package/dist/composables/useShrinkFit.d.ts +1 -1
  67. package/dist/composables/useStudioChrome.d.ts +1 -1
  68. package/dist/composables/useTableSelection.d.ts +1 -1
  69. package/dist/composables/useToolbarOverflow.d.ts +51 -0
  70. package/dist/help-content/changelog.d.ts +1 -1
  71. package/dist/help-content/faq.d.ts +1 -1
  72. package/dist/help-content/features.d.ts +1 -1
  73. package/dist/help-content/getting-started.d.ts +1 -1
  74. package/dist/help-content/index.d.ts +1 -1
  75. package/dist/help-content/shortcuts.d.ts +1 -1
  76. package/dist/index.cjs +33 -8
  77. package/dist/index.d.ts +3 -1
  78. package/dist/index.js +5568 -5123
  79. package/package.json +2 -2
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @worm-vue3-print/canvas v1.3.6
2
+ * @worm-vue3-print/canvas v1.3.7
3
3
  * Copyright (c) 2026 worm <liu_long_qqcom@qq.com>
4
4
  * SPDX-FileCopyrightText: 2026 worm <liu_long_qqcom@qq.com>
5
5
  * SPDX-License-Identifier: MIT
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @worm-vue3-print/canvas v1.3.6
2
+ * @worm-vue3-print/canvas v1.3.7
3
3
  * Copyright (c) 2026 worm <liu_long_qqcom@qq.com>
4
4
  * SPDX-FileCopyrightText: 2026 worm <liu_long_qqcom@qq.com>
5
5
  * SPDX-License-Identifier: MIT
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @worm-vue3-print/canvas v1.3.6
2
+ * @worm-vue3-print/canvas v1.3.7
3
3
  * Copyright (c) 2026 worm <liu_long_qqcom@qq.com>
4
4
  * SPDX-FileCopyrightText: 2026 worm <liu_long_qqcom@qq.com>
5
5
  * SPDX-License-Identifier: MIT
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @worm-vue3-print/canvas v1.3.6
2
+ * @worm-vue3-print/canvas v1.3.7
3
3
  * Copyright (c) 2026 worm <liu_long_qqcom@qq.com>
4
4
  * SPDX-FileCopyrightText: 2026 worm <liu_long_qqcom@qq.com>
5
5
  * SPDX-License-Identifier: MIT
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @worm-vue3-print/canvas v1.3.6
2
+ * @worm-vue3-print/canvas v1.3.7
3
3
  * Copyright (c) 2026 worm <liu_long_qqcom@qq.com>
4
4
  * SPDX-FileCopyrightText: 2026 worm <liu_long_qqcom@qq.com>
5
5
  * SPDX-License-Identifier: MIT
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @worm-vue3-print/canvas v1.3.6
2
+ * @worm-vue3-print/canvas v1.3.7
3
3
  * Copyright (c) 2026 worm <liu_long_qqcom@qq.com>
4
4
  * SPDX-FileCopyrightText: 2026 worm <liu_long_qqcom@qq.com>
5
5
  * SPDX-License-Identifier: MIT
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @worm-vue3-print/canvas v1.3.6
2
+ * @worm-vue3-print/canvas v1.3.7
3
3
  * Copyright (c) 2026 worm <liu_long_qqcom@qq.com>
4
4
  * SPDX-FileCopyrightText: 2026 worm <liu_long_qqcom@qq.com>
5
5
  * SPDX-License-Identifier: MIT
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @worm-vue3-print/canvas v1.3.6
2
+ * @worm-vue3-print/canvas v1.3.7
3
3
  * Copyright (c) 2026 worm <liu_long_qqcom@qq.com>
4
4
  * SPDX-FileCopyrightText: 2026 worm <liu_long_qqcom@qq.com>
5
5
  * SPDX-License-Identifier: MIT
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @worm-vue3-print/canvas v1.3.6
2
+ * @worm-vue3-print/canvas v1.3.7
3
3
  * Copyright (c) 2026 worm <liu_long_qqcom@qq.com>
4
4
  * SPDX-FileCopyrightText: 2026 worm <liu_long_qqcom@qq.com>
5
5
  * SPDX-License-Identifier: MIT
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @worm-vue3-print/canvas v1.3.6
2
+ * @worm-vue3-print/canvas v1.3.7
3
3
  * Copyright (c) 2026 worm <liu_long_qqcom@qq.com>
4
4
  * SPDX-FileCopyrightText: 2026 worm <liu_long_qqcom@qq.com>
5
5
  * SPDX-License-Identifier: MIT
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @worm-vue3-print/canvas v1.3.6
2
+ * @worm-vue3-print/canvas v1.3.7
3
3
  * Copyright (c) 2026 worm <liu_long_qqcom@qq.com>
4
4
  * SPDX-FileCopyrightText: 2026 worm <liu_long_qqcom@qq.com>
5
5
  * SPDX-License-Identifier: MIT
@@ -0,0 +1,51 @@
1
+ /*!
2
+ * @worm-vue3-print/canvas v1.3.7
3
+ * Copyright (c) 2026 worm <liu_long_qqcom@qq.com>
4
+ * SPDX-FileCopyrightText: 2026 worm <liu_long_qqcom@qq.com>
5
+ * SPDX-License-Identifier: MIT
6
+ */
7
+ import type { InjectionKey, ObjectDirective, Ref } from 'vue';
8
+ /** 收纳单元声明:id 同时用于「更多」面板的落位容器配对 */
9
+ export interface OverflowUnitDef {
10
+ id: string;
11
+ /** 数值小者先被收进「更多」 */
12
+ order: number;
13
+ /** 面板内分组标题 */
14
+ label: string;
15
+ }
16
+ export interface ToolbarOverflowContext {
17
+ /** 挂载工具栏容器(度量基准) */
18
+ attachRoot: (el: HTMLElement | null) => void;
19
+ registerUnit: (def: OverflowUnitDef, el: HTMLElement) => void;
20
+ unregisterUnit: (id: string) => void;
21
+ /** 重算收纳结果;内容宽度变化或测试注入度量后手动调用 */
22
+ refresh: () => void;
23
+ movedIds: Ref<Set<string>>;
24
+ overflowRemains: Ref<boolean>;
25
+ hasMoved: Ref<boolean>;
26
+ /** 按收纳优先级链排序的单元声明,面板据此渲染落位槽 */
27
+ chain: Ref<OverflowUnitDef[]>;
28
+ /** 该单元当前是否应被收起(在渲染期读取以建立依赖) */
29
+ moved: (id: string) => boolean;
30
+ /** 该单元的落位槽元素;未收纳或槽缺失时返回占位节点(disabled 态下不会被解析) */
31
+ slotEl: (id: string) => HTMLElement;
32
+ }
33
+ /** 「更多」面板内某单元落位容器的 id:面板与单元查询据此对齐 */
34
+ export declare function moreSlotId(id: string): string;
35
+ export declare const TOOLBAR_OVERFLOW: InjectionKey<ToolbarOverflowContext>;
36
+ export declare function createToolbarOverflow(): ToolbarOverflowContext;
37
+ /** 由工具栏一侧创建并 provide;缺上下文时收纳单元退化为纯内联 */
38
+ export declare function provideToolbarOverflow(): ToolbarOverflowContext;
39
+ export declare function useToolbarOverflow(): ToolbarOverflowContext | null;
40
+ /**
41
+ * 空上下文:格式栏被单独挂载(组件级单测)或宿主没有工具栏时使用。
42
+ * 单元一律内联,Teleport 恒 disabled,因此不会有 DOM 搬运副作用。
43
+ */
44
+ export declare function emptyToolbarOverflow(): ToolbarOverflowContext;
45
+ /**
46
+ * v-overflow-unit:把元素注册为收纳单元。
47
+ * 必须是指令而不是包装组件——Vue 只把宿主 scoped 属性(data-v-*)挂到「子组件的根元素」上,
48
+ * 而收纳单元的根是 Teleport(非元素节点),一旦用组件包一层,元素就拿不到宿主作用域,
49
+ * .tb-group / .ft-group 等 scoped 规则全部落空,退化成 display:block 把子项竖排。
50
+ */
51
+ export declare function createOverflowUnitDirective(ctx: ToolbarOverflowContext): ObjectDirective<HTMLElement, OverflowUnitDef>;
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @worm-vue3-print/canvas v1.3.6
2
+ * @worm-vue3-print/canvas v1.3.7
3
3
  * Copyright (c) 2026 worm <liu_long_qqcom@qq.com>
4
4
  * SPDX-FileCopyrightText: 2026 worm <liu_long_qqcom@qq.com>
5
5
  * SPDX-License-Identifier: MIT
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @worm-vue3-print/canvas v1.3.6
2
+ * @worm-vue3-print/canvas v1.3.7
3
3
  * Copyright (c) 2026 worm <liu_long_qqcom@qq.com>
4
4
  * SPDX-FileCopyrightText: 2026 worm <liu_long_qqcom@qq.com>
5
5
  * SPDX-License-Identifier: MIT
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @worm-vue3-print/canvas v1.3.6
2
+ * @worm-vue3-print/canvas v1.3.7
3
3
  * Copyright (c) 2026 worm <liu_long_qqcom@qq.com>
4
4
  * SPDX-FileCopyrightText: 2026 worm <liu_long_qqcom@qq.com>
5
5
  * SPDX-License-Identifier: MIT
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @worm-vue3-print/canvas v1.3.6
2
+ * @worm-vue3-print/canvas v1.3.7
3
3
  * Copyright (c) 2026 worm <liu_long_qqcom@qq.com>
4
4
  * SPDX-FileCopyrightText: 2026 worm <liu_long_qqcom@qq.com>
5
5
  * SPDX-License-Identifier: MIT
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @worm-vue3-print/canvas v1.3.6
2
+ * @worm-vue3-print/canvas v1.3.7
3
3
  * Copyright (c) 2026 worm <liu_long_qqcom@qq.com>
4
4
  * SPDX-FileCopyrightText: 2026 worm <liu_long_qqcom@qq.com>
5
5
  * SPDX-License-Identifier: MIT
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @worm-vue3-print/canvas v1.3.6
2
+ * @worm-vue3-print/canvas v1.3.7
3
3
  * Copyright (c) 2026 worm <liu_long_qqcom@qq.com>
4
4
  * SPDX-FileCopyrightText: 2026 worm <liu_long_qqcom@qq.com>
5
5
  * SPDX-License-Identifier: MIT