cmat 0.0.110 → 0.0.111

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cmat",
3
- "version": "0.0.110",
3
+ "version": "0.0.111",
4
4
  "author": {
5
5
  "name": "Yu Tao",
6
6
  "email": "916426364@qq.com"
@@ -29,6 +29,11 @@ interface CmatPrintOptions {
29
29
  excludeSelectors?: string[];
30
30
  /** 打印完成后回调 */
31
31
  afterPrint?: () => void;
32
+ /**
33
+ * 调试模式:不触发打印,而是在新标签页中打开生成的 HTML。
34
+ * 可用浏览器 DevTools 检查布局、样式,方便排查打印问题。
35
+ */
36
+ debug?: boolean;
32
37
  }
33
38
 
34
39
  declare class CmatPrintService {
@@ -45,6 +50,11 @@ declare class CmatPrintService {
45
50
  * 打印原始 HTML 字符串(不进行 DOM 转换,直接注入)
46
51
  */
47
52
  printHtml(html: string, options?: CmatPrintOptions): void;
53
+ /**
54
+ * 调试模式:将生成的 HTML 在新标签页中打开,方便用 DevTools 检查布局
55
+ * 调用方式:this._printService.debugPrint(el, { title: '报表' })
56
+ */
57
+ debugPrint(element: HTMLElement, options?: CmatPrintOptions): void;
48
58
  /**
49
59
  * 同步原始 DOM 中表单控件的当前值到克隆节点
50
60
  * cloneNode() 不会复制 input.value 等 live property,
package/types/cmat.d.ts CHANGED
@@ -3686,7 +3686,7 @@ declare class CmatSelectSearchComponent implements OnInit, ControlValueAccessor
3686
3686
  readonly toggleAllCheckboxChecked: _angular_core.InputSignal<boolean>;
3687
3687
  readonly toggleAllCheckboxIndeterminate: _angular_core.InputSignal<boolean>;
3688
3688
  readonly toggleAllCheckboxTooltipMessage: _angular_core.InputSignal<string>;
3689
- readonly toggleAllCheckboxTooltipPosition: _angular_core.InputSignal<"left" | "right" | "before" | "after" | "above" | "below">;
3689
+ readonly toggleAllCheckboxTooltipPosition: _angular_core.InputSignal<"right" | "left" | "before" | "after" | "above" | "below">;
3690
3690
  readonly hideClearSearchButton: _angular_core.InputSignal<boolean>;
3691
3691
  readonly alwaysRestoreSelectedOptionsMulti: _angular_core.InputSignal<boolean>;
3692
3692
  /**
@@ -4767,7 +4767,7 @@ declare class CmatSeamlessAutoScrollDirective implements OnInit, AfterViewInit,
4767
4767
  readonly itemTemplate: _angular_core.Signal<TemplateRef<any>>;
4768
4768
  readonly data: _angular_core.InputSignal<unknown[]>;
4769
4769
  readonly speed: _angular_core.InputSignal<number>;
4770
- readonly direction: _angular_core.InputSignal<"left" | "up" | "right" | "down">;
4770
+ readonly direction: _angular_core.InputSignal<"right" | "left" | "up" | "down">;
4771
4771
  private _viewContainer;
4772
4772
  private _containerElement;
4773
4773
  private _contentElement;
@@ -5153,6 +5153,11 @@ interface CmatPrintOptions {
5153
5153
  excludeSelectors?: string[];
5154
5154
  /** 打印完成后回调 */
5155
5155
  afterPrint?: () => void;
5156
+ /**
5157
+ * 调试模式:不触发打印,而是在新标签页中打开生成的 HTML。
5158
+ * 可用浏览器 DevTools 检查布局、样式,方便排查打印问题。
5159
+ */
5160
+ debug?: boolean;
5156
5161
  }
5157
5162
 
5158
5163
  declare class CmatPrintService {
@@ -5169,6 +5174,11 @@ declare class CmatPrintService {
5169
5174
  * 打印原始 HTML 字符串(不进行 DOM 转换,直接注入)
5170
5175
  */
5171
5176
  printHtml(html: string, options?: CmatPrintOptions): void;
5177
+ /**
5178
+ * 调试模式:将生成的 HTML 在新标签页中打开,方便用 DevTools 检查布局
5179
+ * 调用方式:this._printService.debugPrint(el, { title: '报表' })
5180
+ */
5181
+ debugPrint(element: HTMLElement, options?: CmatPrintOptions): void;
5172
5182
  /**
5173
5183
  * 同步原始 DOM 中表单控件的当前值到克隆节点
5174
5184
  * cloneNode() 不会复制 input.value 等 live property,