kindy-editor 3.2.8 → 3.2.9

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.
@@ -1,4 +1,4 @@
1
- import { K as t, d as o, m as r } from "./kindy-editor-T1YCQdwF.js";
1
+ import { K as t, d as o, m as r } from "./kindy-editor-Bo4FnkLV.js";
2
2
  import { C as i, d as m, b as n, e as d } from "./index-D5dkvB0x.js";
3
3
  export {
4
4
  i as ChangeAggregator,
@@ -332,7 +332,7 @@ function H(e, o = {}, r = {}) {
332
332
  if (i && e.search(i).total === 0)
333
333
  return e.searchClear(), f(`text not found: ${i}`);
334
334
  if (!e.getSelection()) return f("no selection (pass 'find' or select_range first)");
335
- const { insertText: d } = await import("./kindy-editor-T1YCQdwF.js").then((m) => m.c);
335
+ const { insertText: d } = await import("./kindy-editor-Bo4FnkLV.js").then((m) => m.c);
336
336
  return e.dispatch(d(t)), i && e.searchClear(), g("inserted");
337
337
  }
338
338
  }), a({
@@ -579,6 +579,7 @@ await editor.setTableCellValue("tbl_invoice", 1, 2, "Khám tổng quát");
579
579
  - **Không cần gọi `setDocument()`**: Canvas sẽ tự động tính lại layout và repaint ngay sau khi gọi `setTableCellValue()`.
580
580
  - **Bảo toàn trạng thái**: Giữ nguyên `mode="view"`, vị trí scroll, tỷ lệ zoom và vùng chọn ô (`cellSelection`).
581
581
  - **Bảng tách nhiều trang (Multi-page Fragments)**: Nếu nội dung dài làm tăng chiều cao hàng và đẩy các hàng sang trang sau, hệ thống tự động phân trang lại và repaint tất cả các trang/fragment bị ảnh hưởng.
582
+ - **Kế thừa định dạng thông minh**: Khi thêm dòng hoặc nhập liệu vào dòng dữ liệu thông thường, hệ thống tự động ưu tiên kế thừa định dạng từ data row liền kề, không kế thừa kiểu chữ in đậm (`bold: false`) hay màu nền (`shading`) từ dòng tiêu đề (header) hoặc dòng tổng cộng (total/footer).
582
583
  :::
583
584
 
584
585
  ### 10.4 Thay thế nhiều dòng dữ liệu một lần (`editor.replaceTableRows()`)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kindy-editor",
3
- "version": "3.2.8",
3
+ "version": "3.2.9",
4
4
  "type": "module",
5
5
  "description": "Trình soạn thảo tài liệu Word chính xác, vẽ bằng canvas",
6
6
  "license": "MIT",