beca-ui 2.0.14-beta.6 → 2.0.14-beta.8

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/dist/beca-ui.js CHANGED
@@ -91240,7 +91240,20 @@ const iE = 10, Ort = (e, t) => {
91240
91240
  enterImageLink: "Enter image link",
91241
91241
  pasteWithTextStylesConfirm: "Do you want to paste with text styles?",
91242
91242
  paste: "Paste",
91243
- format: "Format"
91243
+ format: "Format",
91244
+ add1ColumnToTheLeft: "Add 1 column to the left",
91245
+ add1ColumnToTheRight: "Add 1 column to the right",
91246
+ removeColumn: "Remove column",
91247
+ add1RowAbove: "Add 1 row above",
91248
+ add1RowBelow: "Add 1 row below",
91249
+ removeRow: "Remove row",
91250
+ mergeCells: "Merge cells",
91251
+ splitCells: "Split cells",
91252
+ removeTable: "Remove table",
91253
+ undo: "Undo",
91254
+ redo: "Redo",
91255
+ refresh: "Refresh",
91256
+ table: "Table"
91244
91257
  }, G0e = {
91245
91258
  search: "Tìm kiếm",
91246
91259
  support: "Hỗ trợ",
@@ -91259,7 +91272,20 @@ const iE = 10, Ort = (e, t) => {
91259
91272
  enterImageLink: "Nhập link ảnh",
91260
91273
  pasteWithTextStylesConfirm: "Bạn có muốn dán cùng với kiểu chữ?",
91261
91274
  paste: "Dán",
91262
- format: "Định dạng"
91275
+ format: "Định dạng",
91276
+ add1ColumnToTheLeft: "Thêm 1 cột bên trái",
91277
+ add1ColumnToTheRight: "Thêm 1 cột bên phải",
91278
+ removeColumn: "Xóa cột",
91279
+ add1RowAbove: "Thêm 1 hàng bên trên",
91280
+ add1RowBelow: "Thêm 1 hàng bên dưới",
91281
+ removeRow: "Xóa hàng",
91282
+ mergeCells: "Ghép ô",
91283
+ splitCells: "Tách ô",
91284
+ removeTable: "Xóa bảng",
91285
+ undo: "Hoàn tác",
91286
+ redo: "Làm lại",
91287
+ refresh: "Thanh tẩy",
91288
+ table: "Bảng"
91263
91289
  };
91264
91290
  function B_t() {
91265
91291
  const [e, t] = xt();
@@ -128356,7 +128382,7 @@ const Mvt = Hs.create({
128356
128382
  onClick: () => M.chain().focus().addColumnBefore().run(),
128357
128383
  disabled: !M.can().addColumnBefore(),
128358
128384
  icon: /* @__PURE__ */ F(y0e, {}),
128359
- title: "Thêm 1 cột bên trái"
128385
+ title: u.add1ColumnToTheLeft
128360
128386
  }
128361
128387
  ),
128362
128388
  /* @__PURE__ */ F(
@@ -128365,7 +128391,7 @@ const Mvt = Hs.create({
128365
128391
  onClick: () => M.chain().focus().addColumnAfter().run(),
128366
128392
  disabled: !M.can().addColumnAfter(),
128367
128393
  icon: /* @__PURE__ */ F(C0e, {}),
128368
- title: "Thêm 1 cột bên phải"
128394
+ title: u.add1ColumnToTheRight
128369
128395
  }
128370
128396
  ),
128371
128397
  /* @__PURE__ */ F(
@@ -128374,7 +128400,7 @@ const Mvt = Hs.create({
128374
128400
  onClick: () => M.chain().focus().deleteColumn().run(),
128375
128401
  disabled: !M.can().deleteColumn(),
128376
128402
  icon: /* @__PURE__ */ F(I0e, {}),
128377
- title: "Xóa cột"
128403
+ title: u.removeColumn
128378
128404
  }
128379
128405
  )
128380
128406
  ] }) }),
@@ -128385,7 +128411,7 @@ const Mvt = Hs.create({
128385
128411
  onClick: () => M.chain().focus().addRowBefore().run(),
128386
128412
  disabled: !M.can().addRowBefore(),
128387
128413
  icon: /* @__PURE__ */ F(b0e, {}),
128388
- title: "Thêm 1 hàng bên trên"
128414
+ title: u.add1RowAbove
128389
128415
  }
128390
128416
  ),
128391
128417
  /* @__PURE__ */ F(
@@ -128394,7 +128420,7 @@ const Mvt = Hs.create({
128394
128420
  onClick: () => M.chain().focus().addRowAfter().run(),
128395
128421
  disabled: !M.can().addRowAfter(),
128396
128422
  icon: /* @__PURE__ */ F(v0e, {}),
128397
- title: "Thêm 1 hàng bên dưới"
128423
+ title: u.add1RowBelow
128398
128424
  }
128399
128425
  ),
128400
128426
  /* @__PURE__ */ F(
@@ -128403,7 +128429,7 @@ const Mvt = Hs.create({
128403
128429
  onClick: () => M.chain().focus().deleteRow().run(),
128404
128430
  disabled: !M.can().deleteRow(),
128405
128431
  icon: /* @__PURE__ */ F(k0e, {}),
128406
- title: "Xóa hàng"
128432
+ title: u.removeRow
128407
128433
  }
128408
128434
  )
128409
128435
  ] }) }),
@@ -128414,7 +128440,7 @@ const Mvt = Hs.create({
128414
128440
  onClick: () => M.chain().focus().mergeCells().run(),
128415
128441
  disabled: !M.can().mergeCells(),
128416
128442
  icon: /* @__PURE__ */ F(M0e, {}),
128417
- title: "Ghép ô"
128443
+ title: u.mergeCells
128418
128444
  }
128419
128445
  ),
128420
128446
  /* @__PURE__ */ F(
@@ -128423,7 +128449,7 @@ const Mvt = Hs.create({
128423
128449
  onClick: () => M.chain().focus().splitCell().run(),
128424
128450
  disabled: !M.can().splitCell(),
128425
128451
  icon: /* @__PURE__ */ F(P0e, {}),
128426
- title: "Tách ô"
128452
+ title: u.splitCells
128427
128453
  }
128428
128454
  ),
128429
128455
  /* @__PURE__ */ F(
@@ -128432,7 +128458,7 @@ const Mvt = Hs.create({
128432
128458
  onClick: () => M.chain().focus().deleteTable().run(),
128433
128459
  disabled: !M.can().deleteTable(),
128434
128460
  icon: /* @__PURE__ */ F(O0e, {}),
128435
- title: "Xóa bảng"
128461
+ title: u.removeTable
128436
128462
  }
128437
128463
  )
128438
128464
  ] }) })
@@ -128612,6 +128638,7 @@ const Mvt = Hs.create({
128612
128638
  {
128613
128639
  dropdownRender: () => /* @__PURE__ */ F(b4e, { editor: n }),
128614
128640
  trigger: ["click"],
128641
+ position: "fixed",
128615
128642
  children: /* @__PURE__ */ F(yr, { type: "text", icon: /* @__PURE__ */ F($0e, {}) })
128616
128643
  }
128617
128644
  ) }),
@@ -128619,6 +128646,8 @@ const Mvt = Hs.create({
128619
128646
  Bd,
128620
128647
  {
128621
128648
  menu: {
128649
+ selectable: !0,
128650
+ selectedKeys: [D()],
128622
128651
  items: [
128623
128652
  {
128624
128653
  key: "P",
@@ -128658,6 +128687,7 @@ const Mvt = Hs.create({
128658
128687
  ]
128659
128688
  },
128660
128689
  trigger: ["click"],
128690
+ position: "fixed",
128661
128691
  children: /* @__PURE__ */ F(yr, { type: "text", style: { width: 30 }, children: D() })
128662
128692
  }
128663
128693
  )
@@ -128705,7 +128735,15 @@ const Mvt = Hs.create({
128705
128735
  }
128706
128736
  )
128707
128737
  ] }),
128708
- /* @__PURE__ */ F("div", { className: "button-group", children: /* @__PURE__ */ F(Bd, { dropdownRender: () => R, trigger: ["click"], children: /* @__PURE__ */ F(yr, { type: "text", title: "Bảng", icon: /* @__PURE__ */ F(dte, {}) }) }) }),
128738
+ /* @__PURE__ */ F("div", { className: "button-group", children: /* @__PURE__ */ F(
128739
+ Bd,
128740
+ {
128741
+ dropdownRender: () => R,
128742
+ trigger: ["click"],
128743
+ position: "fixed",
128744
+ children: /* @__PURE__ */ F(yr, { type: "text", title: u.table, icon: /* @__PURE__ */ F(dte, {}) })
128745
+ }
128746
+ ) }),
128709
128747
  o && o.map((U, X) => /* @__PURE__ */ F("div", { className: "button-group", children: U.menuItems.map((Z) => Z) }, `group-menu-${X}`)),
128710
128748
  /* @__PURE__ */ mn("div", { className: "button-group", children: [
128711
128749
  /* @__PURE__ */ F(
@@ -128770,7 +128808,7 @@ const Mvt = Hs.create({
128770
128808
  type: "text",
128771
128809
  onClick: () => M.chain().focus().unsetAllMarks().run(),
128772
128810
  icon: /* @__PURE__ */ F(ktt, {}),
128773
- title: "Thanh tẩy"
128811
+ title: u.refresh
128774
128812
  }
128775
128813
  ),
128776
128814
  /* @__PURE__ */ F(
@@ -128779,7 +128817,7 @@ const Mvt = Hs.create({
128779
128817
  type: "text",
128780
128818
  onClick: () => M.chain().focus().undo().run(),
128781
128819
  icon: /* @__PURE__ */ F(rrt, {}),
128782
- title: "Hoàn tác"
128820
+ title: u.undo
128783
128821
  }
128784
128822
  ),
128785
128823
  /* @__PURE__ */ F(
@@ -128788,7 +128826,7 @@ const Mvt = Hs.create({
128788
128826
  type: "text",
128789
128827
  onClick: () => M.chain().focus().redo().run(),
128790
128828
  icon: /* @__PURE__ */ F($nt, {}),
128791
- title: "Làm lại"
128829
+ title: u.redo
128792
128830
  }
128793
128831
  )
128794
128832
  ] })
@@ -129126,14 +129164,15 @@ const Mvt = Hs.create({
129126
129164
  }, X = (te) => {
129127
129165
  let J = "";
129128
129166
  return te.forEach((oe) => {
129129
- J += oe.outerHTML;
129167
+ oe.outerHTML && (J += oe.outerHTML);
129130
129168
  }), J;
129131
129169
  }, Z = async () => {
129132
129170
  var J;
129133
129171
  const te = await navigator.clipboard.read();
129134
129172
  for (const oe of te)
129135
129173
  if (oe.types.includes("text/html")) {
129136
- const pe = await (await oe.getType("text/html")).text(), le = Q(pe), se = U(le, void 0, void 0), ye = X(se);
129174
+ let pe = await (await oe.getType("text/html")).text();
129175
+ const le = Q(pe), se = U(le, void 0, void 0), ye = X(se);
129137
129176
  (J = W == null ? void 0 : W.commands) == null || J.insertContent(ye, {
129138
129177
  parseOptions: {
129139
129178
  preserveWhitespace: !1
@@ -17,5 +17,18 @@ declare const _default: {
17
17
  pasteWithTextStylesConfirm: string;
18
18
  paste: string;
19
19
  format: string;
20
+ add1ColumnToTheLeft: string;
21
+ add1ColumnToTheRight: string;
22
+ removeColumn: string;
23
+ add1RowAbove: string;
24
+ add1RowBelow: string;
25
+ removeRow: string;
26
+ mergeCells: string;
27
+ splitCells: string;
28
+ removeTable: string;
29
+ undo: string;
30
+ redo: string;
31
+ refresh: string;
32
+ table: string;
20
33
  };
21
34
  export default _default;
@@ -17,5 +17,18 @@ declare const _default: {
17
17
  pasteWithTextStylesConfirm: string;
18
18
  paste: string;
19
19
  format: string;
20
+ add1ColumnToTheLeft: string;
21
+ add1ColumnToTheRight: string;
22
+ removeColumn: string;
23
+ add1RowAbove: string;
24
+ add1RowBelow: string;
25
+ removeRow: string;
26
+ mergeCells: string;
27
+ splitCells: string;
28
+ removeTable: string;
29
+ undo: string;
30
+ redo: string;
31
+ refresh: string;
32
+ table: string;
20
33
  };
21
34
  export default _default;
@@ -19,5 +19,18 @@ export declare function useTranslation(): {
19
19
  pasteWithTextStylesConfirm: string;
20
20
  paste: string;
21
21
  format: string;
22
+ add1ColumnToTheLeft: string;
23
+ add1ColumnToTheRight: string;
24
+ removeColumn: string;
25
+ add1RowAbove: string;
26
+ add1RowBelow: string;
27
+ removeRow: string;
28
+ mergeCells: string;
29
+ splitCells: string;
30
+ removeTable: string;
31
+ undo: string;
32
+ redo: string;
33
+ refresh: string;
34
+ table: string;
22
35
  };
23
36
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "beca-ui",
3
- "version": "2.0.14-beta.6",
3
+ "version": "2.0.14-beta.8",
4
4
  "description": "Becawork UI",
5
5
  "license": "MIT",
6
6
  "author": {