@univerjs/docs-drawing-ui 0.23.0 → 0.24.0-insiders.20260527-b1d726f

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 (90) hide show
  1. package/lib/cjs/index.js +49 -49
  2. package/lib/cjs/locale/ar-SA.js +58 -0
  3. package/lib/cjs/locale/ca-ES.js +5 -7
  4. package/lib/cjs/locale/de-DE.js +58 -0
  5. package/lib/cjs/locale/en-US.js +5 -7
  6. package/lib/cjs/locale/es-ES.js +5 -7
  7. package/lib/cjs/locale/fa-IR.js +5 -7
  8. package/lib/cjs/locale/fr-FR.js +5 -7
  9. package/lib/cjs/locale/id-ID.js +58 -0
  10. package/lib/cjs/locale/it-IT.js +58 -0
  11. package/lib/cjs/locale/ja-JP.js +5 -7
  12. package/lib/cjs/locale/ko-KR.js +5 -7
  13. package/lib/cjs/locale/pl-PL.js +58 -0
  14. package/lib/cjs/locale/pt-BR.js +58 -0
  15. package/lib/cjs/locale/ru-RU.js +5 -7
  16. package/lib/cjs/locale/sk-SK.js +5 -7
  17. package/lib/cjs/locale/vi-VN.js +5 -7
  18. package/lib/cjs/locale/zh-CN.js +5 -7
  19. package/lib/cjs/locale/zh-HK.js +58 -0
  20. package/lib/cjs/locale/zh-TW.js +5 -7
  21. package/lib/es/index.js +49 -49
  22. package/lib/es/locale/ar-SA.js +57 -0
  23. package/lib/es/locale/ca-ES.js +5 -7
  24. package/lib/es/locale/de-DE.js +57 -0
  25. package/lib/es/locale/en-US.js +5 -7
  26. package/lib/es/locale/es-ES.js +5 -7
  27. package/lib/es/locale/fa-IR.js +5 -7
  28. package/lib/es/locale/fr-FR.js +5 -7
  29. package/lib/es/locale/id-ID.js +57 -0
  30. package/lib/es/locale/it-IT.js +57 -0
  31. package/lib/es/locale/ja-JP.js +5 -7
  32. package/lib/es/locale/ko-KR.js +5 -7
  33. package/lib/es/locale/pl-PL.js +57 -0
  34. package/lib/es/locale/pt-BR.js +57 -0
  35. package/lib/es/locale/ru-RU.js +5 -7
  36. package/lib/es/locale/sk-SK.js +5 -7
  37. package/lib/es/locale/vi-VN.js +5 -7
  38. package/lib/es/locale/zh-CN.js +5 -7
  39. package/lib/es/locale/zh-HK.js +57 -0
  40. package/lib/es/locale/zh-TW.js +5 -7
  41. package/lib/index.js +49 -49
  42. package/lib/locale/ar-SA.js +57 -0
  43. package/lib/locale/ca-ES.js +5 -7
  44. package/lib/locale/de-DE.js +57 -0
  45. package/lib/locale/en-US.js +5 -7
  46. package/lib/locale/es-ES.js +5 -7
  47. package/lib/locale/fa-IR.js +5 -7
  48. package/lib/locale/fr-FR.js +5 -7
  49. package/lib/locale/id-ID.js +57 -0
  50. package/lib/locale/it-IT.js +57 -0
  51. package/lib/locale/ja-JP.js +5 -7
  52. package/lib/locale/ko-KR.js +5 -7
  53. package/lib/locale/pl-PL.js +57 -0
  54. package/lib/locale/pt-BR.js +57 -0
  55. package/lib/locale/ru-RU.js +5 -7
  56. package/lib/locale/sk-SK.js +5 -7
  57. package/lib/locale/vi-VN.js +5 -7
  58. package/lib/locale/zh-CN.js +5 -7
  59. package/lib/locale/zh-HK.js +57 -0
  60. package/lib/locale/zh-TW.js +5 -7
  61. package/lib/types/locale/ar-SA.d.ts +18 -0
  62. package/lib/types/locale/de-DE.d.ts +18 -0
  63. package/lib/types/locale/en-US.d.ts +49 -49
  64. package/lib/types/locale/id-ID.d.ts +18 -0
  65. package/lib/types/locale/it-IT.d.ts +18 -0
  66. package/lib/types/locale/pl-PL.d.ts +18 -0
  67. package/lib/types/locale/pt-BR.d.ts +18 -0
  68. package/lib/types/locale/zh-HK.d.ts +18 -0
  69. package/lib/umd/index.js +1 -1
  70. package/lib/umd/locale/ar-SA.js +1 -0
  71. package/lib/umd/locale/ca-ES.js +1 -1
  72. package/lib/umd/locale/de-DE.js +1 -0
  73. package/lib/umd/locale/en-US.js +1 -1
  74. package/lib/umd/locale/es-ES.js +1 -1
  75. package/lib/umd/locale/fa-IR.js +1 -1
  76. package/lib/umd/locale/fr-FR.js +1 -1
  77. package/lib/umd/locale/id-ID.js +1 -0
  78. package/lib/umd/locale/it-IT.js +1 -0
  79. package/lib/umd/locale/ja-JP.js +1 -1
  80. package/lib/umd/locale/ko-KR.js +1 -1
  81. package/lib/umd/locale/pl-PL.js +1 -0
  82. package/lib/umd/locale/pt-BR.js +1 -0
  83. package/lib/umd/locale/ru-RU.js +1 -1
  84. package/lib/umd/locale/sk-SK.js +1 -1
  85. package/lib/umd/locale/vi-VN.js +1 -1
  86. package/lib/umd/locale/zh-CN.js +1 -1
  87. package/lib/umd/locale/zh-HK.js +1 -0
  88. package/lib/umd/locale/zh-TW.js +1 -1
  89. package/package.json +11 -11
  90. package/LICENSE +0 -176
package/lib/cjs/index.js CHANGED
@@ -391,7 +391,7 @@ let DocDrawingUpdateRenderController = class DocDrawingUpdateRenderController ex
391
391
  if (fileLength > _univerjs_drawing.DRAWING_IMAGE_COUNT_LIMIT) {
392
392
  this._messageService.show({
393
393
  type: _univerjs_design.MessageType.Error,
394
- content: this._localeService.t("update-status.exceedMaxCount", String(_univerjs_drawing.DRAWING_IMAGE_COUNT_LIMIT))
394
+ content: this._localeService.t("docs-drawing-ui.update-status.exceedMaxCount", String(_univerjs_drawing.DRAWING_IMAGE_COUNT_LIMIT))
395
395
  });
396
396
  return false;
397
397
  } else if (fileLength === 0) return false;
@@ -407,13 +407,13 @@ let DocDrawingUpdateRenderController = class DocDrawingUpdateRenderController ex
407
407
  let content = "";
408
408
  switch (type) {
409
409
  case _univerjs_drawing.ImageUploadStatusType.ERROR_EXCEED_SIZE:
410
- content = this._localeService.t("update-status.exceedMaxSize", String((0, _univerjs_drawing.getDrawingImageAllowSize)() / (1024 * 1024)));
410
+ content = this._localeService.t("docs-drawing-ui.update-status.exceedMaxSize", String((0, _univerjs_drawing.getDrawingImageAllowSize)() / (1024 * 1024)));
411
411
  break;
412
412
  case _univerjs_drawing.ImageUploadStatusType.ERROR_IMAGE_TYPE:
413
- content = this._localeService.t("update-status.invalidImageType");
413
+ content = this._localeService.t("docs-drawing-ui.update-status.invalidImageType");
414
414
  break;
415
415
  case _univerjs_drawing.ImageUploadStatusType.ERROR_IMAGE:
416
- content = this._localeService.t("update-status.invalidImage");
416
+ content = this._localeService.t("docs-drawing-ui.update-status.invalidImage");
417
417
  break;
418
418
  default: break;
419
419
  }
@@ -1291,7 +1291,7 @@ const SidebarDocDrawingOperation = {
1291
1291
  switch (params.value) {
1292
1292
  case "open":
1293
1293
  sidebarService.open({
1294
- header: { title: localeService.t("docImage.panel.title") },
1294
+ header: { title: localeService.t("docs-drawing-ui.panel.title") },
1295
1295
  children: { label: COMPONENT_DOC_DRAWING_PANEL },
1296
1296
  onClose: () => {
1297
1297
  drawingManagerService.focusDrawing(null);
@@ -1587,7 +1587,7 @@ function ImageMenuFactory(accessor) {
1587
1587
  id: DOCS_IMAGE_MENU_ID,
1588
1588
  type: _univerjs_ui.MenuItemType.SUBITEMS,
1589
1589
  icon: "AddImageIcon",
1590
- tooltip: "docImage.title",
1590
+ tooltip: "docs-drawing-ui.title",
1591
1591
  disabled$: getDisableWhenSelectionInTableObservable(accessor),
1592
1592
  hidden$: (0, _univerjs_ui.getMenuHiddenObservable)(accessor, _univerjs_core.UniverInstanceType.UNIVER_DOC, void 0, _univerjs_core.DOCS_ZEN_EDITOR_UNIT_ID_KEY)
1593
1593
  };
@@ -1595,7 +1595,7 @@ function ImageMenuFactory(accessor) {
1595
1595
  function UploadFloatImageMenuFactory(_accessor) {
1596
1596
  return {
1597
1597
  id: IMAGE_MENU_UPLOAD_FLOAT_ID,
1598
- title: "docImage.upload.float",
1598
+ title: "docs-drawing-ui.upload.float",
1599
1599
  type: _univerjs_ui.MenuItemType.BUTTON,
1600
1600
  hidden$: (0, _univerjs_ui.getMenuHiddenObservable)(_accessor, _univerjs_core.UniverInstanceType.UNIVER_DOC, void 0, _univerjs_core.DOCS_ZEN_EDITOR_UNIT_ID_KEY)
1601
1601
  };
@@ -1604,7 +1604,7 @@ function UploadFloatImageMenuFactory(_accessor) {
1604
1604
  //#endregion
1605
1605
  //#region package.json
1606
1606
  var name = "@univerjs/docs-drawing-ui";
1607
- var version = "0.23.0";
1607
+ var version = "0.24.0-insiders.20260527-b1d726f";
1608
1608
 
1609
1609
  //#endregion
1610
1610
  //#region src/config/config.ts
@@ -2436,36 +2436,36 @@ const DocDrawingPosition = (props) => {
2436
2436
  const transformer = scene.getTransformerByCreate();
2437
2437
  const HORIZONTAL_RELATIVE_FROM = [
2438
2438
  {
2439
- label: localeService.t("image-position.column"),
2439
+ label: localeService.t("docs-drawing-ui.image-position.column"),
2440
2440
  value: String(_univerjs_core.ObjectRelativeFromH.COLUMN)
2441
2441
  },
2442
2442
  {
2443
- label: localeService.t("image-position.page"),
2443
+ label: localeService.t("docs-drawing-ui.image-position.page"),
2444
2444
  value: String(_univerjs_core.ObjectRelativeFromH.PAGE)
2445
2445
  },
2446
2446
  {
2447
- label: localeService.t("image-position.margin"),
2447
+ label: localeService.t("docs-drawing-ui.image-position.margin"),
2448
2448
  value: String(_univerjs_core.ObjectRelativeFromH.MARGIN)
2449
2449
  }
2450
2450
  ];
2451
2451
  const VERTICAL_RELATIVE_FROM = [
2452
2452
  {
2453
- label: localeService.t("image-position.line"),
2453
+ label: localeService.t("docs-drawing-ui.image-position.line"),
2454
2454
  value: String(_univerjs_core.ObjectRelativeFromV.LINE),
2455
2455
  disabled: documentFlavor === _univerjs_core.DocumentFlavor.MODERN
2456
2456
  },
2457
2457
  {
2458
- label: localeService.t("image-position.page"),
2458
+ label: localeService.t("docs-drawing-ui.image-position.page"),
2459
2459
  value: String(_univerjs_core.ObjectRelativeFromV.PAGE),
2460
2460
  disabled: documentFlavor === _univerjs_core.DocumentFlavor.MODERN
2461
2461
  },
2462
2462
  {
2463
- label: localeService.t("image-position.margin"),
2463
+ label: localeService.t("docs-drawing-ui.image-position.margin"),
2464
2464
  value: String(_univerjs_core.ObjectRelativeFromV.MARGIN),
2465
2465
  disabled: documentFlavor === _univerjs_core.DocumentFlavor.MODERN
2466
2466
  },
2467
2467
  {
2468
- label: localeService.t("image-position.paragraph"),
2468
+ label: localeService.t("docs-drawing-ui.image-position.paragraph"),
2469
2469
  value: String(_univerjs_core.ObjectRelativeFromV.PARAGRAPH)
2470
2470
  }
2471
2471
  ];
@@ -2634,15 +2634,15 @@ const DocDrawingPosition = (props) => {
2634
2634
  children: [
2635
2635
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("header", {
2636
2636
  className: "univer-text-gray-600 dark:!univer-text-gray-200",
2637
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { children: localeService.t("image-position.title") })
2637
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { children: localeService.t("docs-drawing-ui.image-position.title") })
2638
2638
  }),
2639
2639
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
2640
2640
  className: "univer-text-gray-600 dark:!univer-text-gray-200",
2641
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { children: localeService.t("image-position.horizontal") })
2641
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { children: localeService.t("docs-drawing-ui.image-position.horizontal") })
2642
2642
  }),
2643
2643
  /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
2644
2644
  className: "univer-grid univer-grid-cols-2 univer-gap-2 [&>div]:univer-grid [&>div]:univer-gap-2",
2645
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: localeService.t("image-position.absolutePosition") }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.InputNumber, {
2645
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: localeService.t("docs-drawing-ui.image-position.absolutePosition") }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.InputNumber, {
2646
2646
  min: MIN_OFFSET,
2647
2647
  max: MAX_OFFSET,
2648
2648
  precision: 1,
@@ -2654,7 +2654,7 @@ const DocDrawingPosition = (props) => {
2654
2654
  posOffset: val
2655
2655
  });
2656
2656
  }
2657
- })] }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: localeService.t("image-position.toTheRightOf") }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.Select, {
2657
+ })] }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: localeService.t("docs-drawing-ui.image-position.toTheRightOf") }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.Select, {
2658
2658
  value: String(hPosition.relativeFrom),
2659
2659
  disabled,
2660
2660
  options: HORIZONTAL_RELATIVE_FROM,
@@ -2663,11 +2663,11 @@ const DocDrawingPosition = (props) => {
2663
2663
  }),
2664
2664
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
2665
2665
  className: "univer-text-gray-600 dark:!univer-text-gray-200",
2666
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { children: localeService.t("image-position.vertical") })
2666
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { children: localeService.t("docs-drawing-ui.image-position.vertical") })
2667
2667
  }),
2668
2668
  /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
2669
2669
  className: "univer-grid univer-grid-cols-2 univer-gap-2 [&>div]:univer-grid [&>div]:univer-gap-2",
2670
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: localeService.t("image-position.absolutePosition") }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.InputNumber, {
2670
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: localeService.t("docs-drawing-ui.image-position.absolutePosition") }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.InputNumber, {
2671
2671
  min: MIN_OFFSET,
2672
2672
  max: MAX_OFFSET,
2673
2673
  precision: 1,
@@ -2679,7 +2679,7 @@ const DocDrawingPosition = (props) => {
2679
2679
  posOffset: val
2680
2680
  });
2681
2681
  }
2682
- })] }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: localeService.t("image-position.bellow") }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.Select, {
2682
+ })] }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: localeService.t("docs-drawing-ui.image-position.bellow") }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.Select, {
2683
2683
  disabled,
2684
2684
  value: String(vPosition.relativeFrom),
2685
2685
  options: VERTICAL_RELATIVE_FROM,
@@ -2688,13 +2688,13 @@ const DocDrawingPosition = (props) => {
2688
2688
  }),
2689
2689
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
2690
2690
  className: "univer-text-gray-600 dark:!univer-text-gray-200",
2691
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { children: localeService.t("image-position.options") })
2691
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { children: localeService.t("docs-drawing-ui.image-position.options") })
2692
2692
  }),
2693
2693
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.Checkbox, {
2694
2694
  disabled,
2695
2695
  checked: followTextMove,
2696
2696
  onChange: handleFollowTextMoveCheck,
2697
- children: localeService.t("image-position.moveObjectWithText")
2697
+ children: localeService.t("docs-drawing-ui.image-position.moveObjectWithText")
2698
2698
  }) })
2699
2699
  ]
2700
2700
  });
@@ -2846,11 +2846,11 @@ const DocDrawingTextWrap = (props) => {
2846
2846
  children: [
2847
2847
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("header", {
2848
2848
  className: "univer-text-gray-600 dark:!univer-text-gray-200",
2849
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { children: localeService.t("image-text-wrap.title") })
2849
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { children: localeService.t("docs-drawing-ui.image-text-wrap.title") })
2850
2850
  }),
2851
2851
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
2852
2852
  className: "univer-text-gray-600 dark:!univer-text-gray-200",
2853
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { children: localeService.t("image-text-wrap.wrappingStyle") })
2853
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { children: localeService.t("docs-drawing-ui.image-text-wrap.wrappingStyle") })
2854
2854
  }),
2855
2855
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_univerjs_design.RadioGroup, {
2856
2856
  value: wrappingStyle,
@@ -2859,29 +2859,29 @@ const DocDrawingTextWrap = (props) => {
2859
2859
  children: [
2860
2860
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.Radio, {
2861
2861
  value: "inline",
2862
- children: localeService.t("image-text-wrap.inline")
2862
+ children: localeService.t("docs-drawing-ui.image-text-wrap.inline")
2863
2863
  }),
2864
2864
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.Radio, {
2865
2865
  value: "wrapSquare",
2866
- children: localeService.t("image-text-wrap.square")
2866
+ children: localeService.t("docs-drawing-ui.image-text-wrap.square")
2867
2867
  }),
2868
2868
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.Radio, {
2869
2869
  value: "wrapTopAndBottom",
2870
- children: localeService.t("image-text-wrap.topAndBottom")
2870
+ children: localeService.t("docs-drawing-ui.image-text-wrap.topAndBottom")
2871
2871
  }),
2872
2872
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.Radio, {
2873
2873
  value: "behindText",
2874
- children: localeService.t("image-text-wrap.behindText")
2874
+ children: localeService.t("docs-drawing-ui.image-text-wrap.behindText")
2875
2875
  }),
2876
2876
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.Radio, {
2877
2877
  value: "inFrontOfText",
2878
- children: localeService.t("image-text-wrap.inFrontText")
2878
+ children: localeService.t("docs-drawing-ui.image-text-wrap.inFrontText")
2879
2879
  })
2880
2880
  ]
2881
2881
  }) }),
2882
2882
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
2883
2883
  className: "univer-text-gray-600 dark:!univer-text-gray-200",
2884
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { children: localeService.t("image-text-wrap.wrapText") })
2884
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { children: localeService.t("docs-drawing-ui.image-text-wrap.wrapText") })
2885
2885
  }),
2886
2886
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_univerjs_design.RadioGroup, {
2887
2887
  disabled: disableWrapText,
@@ -2891,25 +2891,25 @@ const DocDrawingTextWrap = (props) => {
2891
2891
  children: [
2892
2892
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.Radio, {
2893
2893
  value: _univerjs_core.WrapTextType.BOTH_SIDES,
2894
- children: localeService.t("image-text-wrap.bothSide")
2894
+ children: localeService.t("docs-drawing-ui.image-text-wrap.bothSide")
2895
2895
  }),
2896
2896
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.Radio, {
2897
2897
  value: _univerjs_core.WrapTextType.LEFT,
2898
- children: localeService.t("image-text-wrap.leftOnly")
2898
+ children: localeService.t("docs-drawing-ui.image-text-wrap.leftOnly")
2899
2899
  }),
2900
2900
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.Radio, {
2901
2901
  value: _univerjs_core.WrapTextType.RIGHT,
2902
- children: localeService.t("image-text-wrap.rightOnly")
2902
+ children: localeService.t("docs-drawing-ui.image-text-wrap.rightOnly")
2903
2903
  })
2904
2904
  ]
2905
2905
  }) }),
2906
2906
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
2907
2907
  className: "univer-text-gray-600 dark:!univer-text-gray-200",
2908
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { children: localeService.t("image-text-wrap.distanceFromText") })
2908
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { children: localeService.t("docs-drawing-ui.image-text-wrap.distanceFromText") })
2909
2909
  }),
2910
2910
  /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
2911
2911
  className: "univer-grid univer-grid-cols-2 univer-gap-2 [&>div]:univer-grid [&>div]:univer-gap-2",
2912
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: localeService.t("image-text-wrap.top") }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.InputNumber, {
2912
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: localeService.t("docs-drawing-ui.image-text-wrap.top") }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.InputNumber, {
2913
2913
  min: MIN_MARGIN,
2914
2914
  max: MAX_MARGIN,
2915
2915
  disabled: disableDistTB,
@@ -2918,7 +2918,7 @@ const DocDrawingTextWrap = (props) => {
2918
2918
  onChange: (val) => {
2919
2919
  handleDistToTextChange(val, "distT");
2920
2920
  }
2921
- })] }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: localeService.t("image-text-wrap.left") }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.InputNumber, {
2921
+ })] }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: localeService.t("docs-drawing-ui.image-text-wrap.left") }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.InputNumber, {
2922
2922
  min: MIN_MARGIN,
2923
2923
  max: MAX_MARGIN,
2924
2924
  disabled: disableDistLR,
@@ -2931,7 +2931,7 @@ const DocDrawingTextWrap = (props) => {
2931
2931
  }),
2932
2932
  /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
2933
2933
  className: "univer-grid univer-grid-cols-2 univer-gap-2 [&>div]:univer-grid [&>div]:univer-gap-2",
2934
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: localeService.t("image-text-wrap.bottom") }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.InputNumber, {
2934
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: localeService.t("docs-drawing-ui.image-text-wrap.bottom") }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.InputNumber, {
2935
2935
  min: MIN_MARGIN,
2936
2936
  max: MAX_MARGIN,
2937
2937
  disabled: disableDistTB,
@@ -2940,7 +2940,7 @@ const DocDrawingTextWrap = (props) => {
2940
2940
  onChange: (val) => {
2941
2941
  handleDistToTextChange(val, "distB");
2942
2942
  }
2943
- })] }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: localeService.t("image-text-wrap.right") }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.InputNumber, {
2943
+ })] }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: localeService.t("docs-drawing-ui.image-text-wrap.right") }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.InputNumber, {
2944
2944
  min: MIN_MARGIN,
2945
2945
  max: MAX_MARGIN,
2946
2946
  disabled: disableDistLR,
@@ -2991,7 +2991,7 @@ function whenDocDrawingFocused(contextService) {
2991
2991
  }
2992
2992
  const MoveDrawingDownShortcutItem = {
2993
2993
  id: MoveDocDrawingsCommand.id,
2994
- description: "shortcut.drawing-move-down",
2994
+ description: "drawing-ui.shortcut.drawing-move-down",
2995
2995
  group: "4_drawing-view",
2996
2996
  binding: _univerjs_ui.KeyCode.ARROW_DOWN,
2997
2997
  priority: 100,
@@ -3000,7 +3000,7 @@ const MoveDrawingDownShortcutItem = {
3000
3000
  };
3001
3001
  const MoveDrawingUpShortcutItem = {
3002
3002
  id: MoveDocDrawingsCommand.id,
3003
- description: "shortcut.drawing-move-up",
3003
+ description: "drawing-ui.shortcut.drawing-move-up",
3004
3004
  group: "4_drawing-view",
3005
3005
  binding: _univerjs_ui.KeyCode.ARROW_UP,
3006
3006
  priority: 100,
@@ -3009,7 +3009,7 @@ const MoveDrawingUpShortcutItem = {
3009
3009
  };
3010
3010
  const MoveDrawingLeftShortcutItem = {
3011
3011
  id: MoveDocDrawingsCommand.id,
3012
- description: "shortcut.drawing-move-left",
3012
+ description: "drawing-ui.shortcut.drawing-move-left",
3013
3013
  group: "4_drawing-view",
3014
3014
  binding: _univerjs_ui.KeyCode.ARROW_LEFT,
3015
3015
  priority: 100,
@@ -3018,7 +3018,7 @@ const MoveDrawingLeftShortcutItem = {
3018
3018
  };
3019
3019
  const MoveDrawingRightShortcutItem = {
3020
3020
  id: MoveDocDrawingsCommand.id,
3021
- description: "shortcut.drawing-move-right",
3021
+ description: "drawing-ui.shortcut.drawing-move-right",
3022
3022
  group: "4_drawing-view",
3023
3023
  binding: _univerjs_ui.KeyCode.ARROW_RIGHT,
3024
3024
  priority: 100,
@@ -3027,7 +3027,7 @@ const MoveDrawingRightShortcutItem = {
3027
3027
  };
3028
3028
  const DeleteDrawingsShortcutItem = {
3029
3029
  id: DeleteDocDrawingsCommand.id,
3030
- description: "shortcut.drawing-delete",
3030
+ description: "drawing-ui.shortcut.drawing-delete",
3031
3031
  group: "4_drawing-view",
3032
3032
  preconditions: whenDocDrawingFocused,
3033
3033
  binding: _univerjs_ui.KeyCode.DELETE,
@@ -3371,7 +3371,7 @@ let DocDrawingPopupMenuController = class DocDrawingPopupMenuController extends
3371
3371
  _getImageMenuItems(unitId, subUnitId, drawingId, drawingType) {
3372
3372
  return [
3373
3373
  {
3374
- label: "image-popup.edit",
3374
+ label: "docs-drawing-ui.image-popup.edit",
3375
3375
  index: 0,
3376
3376
  commandId: EditDocDrawingOperation.id,
3377
3377
  commandParams: {
@@ -3382,7 +3382,7 @@ let DocDrawingPopupMenuController = class DocDrawingPopupMenuController extends
3382
3382
  disable: true
3383
3383
  },
3384
3384
  {
3385
- label: "image-popup.delete",
3385
+ label: "docs-drawing-ui.image-popup.delete",
3386
3386
  index: 1,
3387
3387
  commandId: RemoveDocDrawingCommand.id,
3388
3388
  commandParams: {
@@ -3396,7 +3396,7 @@ let DocDrawingPopupMenuController = class DocDrawingPopupMenuController extends
3396
3396
  disable: false
3397
3397
  },
3398
3398
  {
3399
- label: "image-popup.crop",
3399
+ label: "docs-drawing-ui.image-popup.crop",
3400
3400
  index: 2,
3401
3401
  commandId: _univerjs_drawing_ui.OpenImageCropOperation.id,
3402
3402
  commandParams: {
@@ -3407,7 +3407,7 @@ let DocDrawingPopupMenuController = class DocDrawingPopupMenuController extends
3407
3407
  disable: true
3408
3408
  },
3409
3409
  {
3410
- label: "image-popup.reset",
3410
+ label: "docs-drawing-ui.image-popup.reset",
3411
3411
  index: 3,
3412
3412
  commandId: _univerjs_drawing_ui.ImageResetSizeOperation.id,
3413
3413
  commandParams: [{
@@ -0,0 +1,58 @@
1
+
2
+ //#region src/locale/ar-SA.ts
3
+ const locale = { "docs-drawing-ui": {
4
+ title: "صورة",
5
+ upload: { float: "إدراج صورة" },
6
+ panel: { title: "تحرير الصورة" },
7
+ "image-popup": {
8
+ replace: "استبدال",
9
+ delete: "حذف",
10
+ edit: "تحرير",
11
+ crop: "قص",
12
+ reset: "إعادة تعيين الحجم"
13
+ },
14
+ "image-text-wrap": {
15
+ title: "التفاف النص",
16
+ wrappingStyle: "نمط التفاف",
17
+ square: "مربع",
18
+ topAndBottom: "أعلى وأسفل",
19
+ inline: "في نفس السطر مع النص",
20
+ behindText: "خلف النص",
21
+ inFrontText: "أمام النص",
22
+ wrapText: "تفاف النص",
23
+ bothSide: "كلا الجانبين",
24
+ leftOnly: "يسار فقط",
25
+ rightOnly: "يمين فقط",
26
+ distanceFromText: "المسافة من النص",
27
+ top: "أعلى(بكسل)",
28
+ left: "يسار(بكسل)",
29
+ bottom: "أسفل(بكسل)",
30
+ right: "يمين(بكسل)"
31
+ },
32
+ "image-position": {
33
+ title: "موضع",
34
+ horizontal: "أفقي",
35
+ vertical: "عمودي",
36
+ absolutePosition: "موضع مطلق(بكسل)",
37
+ relativePosition: "موضع نسبي",
38
+ toTheRightOf: "إلى يمين",
39
+ relativeTo: "بالنسبة إلى",
40
+ bellow: "أسفل",
41
+ options: "خيارات",
42
+ moveObjectWithText: "نقل الكائن مع النص",
43
+ column: "عمود",
44
+ margin: "هامش",
45
+ page: "صفحة",
46
+ line: "سطر",
47
+ paragraph: "فقرة"
48
+ },
49
+ "update-status": {
50
+ exceedMaxSize: "حجم الصورة يتجاوز الحد، الحد هو {0}م",
51
+ invalidImageType: "نوع الصورة غير صالح",
52
+ exceedMaxCount: "يمكن رفع {0} صور فقط في المرة الواحدة",
53
+ invalidImage: "صورة غير صالحة"
54
+ }
55
+ } };
56
+
57
+ //#endregion
58
+ module.exports = locale;
@@ -1,11 +1,9 @@
1
1
 
2
2
  //#region src/locale/ca-ES.ts
3
- const locale = {
4
- docImage: {
5
- title: "Imatge",
6
- upload: { float: "Insereix imatge" },
7
- panel: { title: "Edita la imatge" }
8
- },
3
+ const locale = { "docs-drawing-ui": {
4
+ title: "Imatge",
5
+ upload: { float: "Insereix imatge" },
6
+ panel: { title: "Edita la imatge" },
9
7
  "image-popup": {
10
8
  replace: "Reemplaça",
11
9
  delete: "Elimina",
@@ -54,7 +52,7 @@ const locale = {
54
52
  exceedMaxCount: "Només es poden pujar {0} imatges alhora",
55
53
  invalidImage: "Imatge no vàlida"
56
54
  }
57
- };
55
+ } };
58
56
 
59
57
  //#endregion
60
58
  module.exports = locale;
@@ -0,0 +1,58 @@
1
+
2
+ //#region src/locale/de-DE.ts
3
+ const locale = { "docs-drawing-ui": {
4
+ title: "Bild",
5
+ upload: { float: "Bild einfügen" },
6
+ panel: { title: "Bild bearbeiten" },
7
+ "image-popup": {
8
+ replace: "Ersetzen",
9
+ delete: "Löschen",
10
+ edit: "Bearbeiten",
11
+ crop: "Zuschneiden",
12
+ reset: "Größe zurücksetzen"
13
+ },
14
+ "image-text-wrap": {
15
+ title: "Textumbruch",
16
+ wrappingStyle: "Umbruchstil",
17
+ square: "Quadratisch",
18
+ topAndBottom: "Oben und unten",
19
+ inline: "Im Textfluss",
20
+ behindText: "Hinter dem Text",
21
+ inFrontText: "Vor dem Text",
22
+ wrapText: "Text umbrechen",
23
+ bothSide: "Beide Seiten",
24
+ leftOnly: "Nur links",
25
+ rightOnly: "Nur rechts",
26
+ distanceFromText: "Abstand vom Text",
27
+ top: "Oben(px)",
28
+ left: "Links(px)",
29
+ bottom: "Unten(px)",
30
+ right: "Rechts(px)"
31
+ },
32
+ "image-position": {
33
+ title: "Position",
34
+ horizontal: "Horizontal",
35
+ vertical: "Vertikal",
36
+ absolutePosition: "Absolute Position(px)",
37
+ relativePosition: "Relative Position",
38
+ toTheRightOf: "rechts von",
39
+ relativeTo: "relativ zu",
40
+ bellow: "unterhalb",
41
+ options: "Optionen",
42
+ moveObjectWithText: "Objekt mit Text verschieben",
43
+ column: "Spalte",
44
+ margin: "Rand",
45
+ page: "Seite",
46
+ line: "Zeile",
47
+ paragraph: "Absatz"
48
+ },
49
+ "update-status": {
50
+ exceedMaxSize: "Bildgröße überschreitet das Limit, das Limit ist {0}M",
51
+ invalidImageType: "Ungültiger Bildtyp",
52
+ exceedMaxCount: "Es können nur {0} Bilder gleichzeitig hochgeladen werden",
53
+ invalidImage: "Ungültiges Bild"
54
+ }
55
+ } };
56
+
57
+ //#endregion
58
+ module.exports = locale;
@@ -15,12 +15,10 @@
15
15
  * See the License for the specific language governing permissions and
16
16
  * limitations under the License.
17
17
  */
18
- const locale = {
19
- docImage: {
20
- title: "Image",
21
- upload: { float: "Insert Image" },
22
- panel: { title: "Edit Image" }
23
- },
18
+ const locale = { "docs-drawing-ui": {
19
+ title: "Image",
20
+ upload: { float: "Insert Image" },
21
+ panel: { title: "Edit Image" },
24
22
  "image-popup": {
25
23
  replace: "Replace",
26
24
  delete: "Delete",
@@ -69,7 +67,7 @@ const locale = {
69
67
  exceedMaxCount: "Only {0} images can be uploaded at a time",
70
68
  invalidImage: "Invalid image"
71
69
  }
72
- };
70
+ } };
73
71
 
74
72
  //#endregion
75
73
  module.exports = locale;
@@ -1,11 +1,9 @@
1
1
 
2
2
  //#region src/locale/es-ES.ts
3
- const locale = {
4
- docImage: {
5
- title: "Imagen",
6
- upload: { float: "Insertar imagen" },
7
- panel: { title: "Editar imagen" }
8
- },
3
+ const locale = { "docs-drawing-ui": {
4
+ title: "Imagen",
5
+ upload: { float: "Insertar imagen" },
6
+ panel: { title: "Editar imagen" },
9
7
  "image-popup": {
10
8
  replace: "Reemplazar",
11
9
  delete: "Eliminar",
@@ -54,7 +52,7 @@ const locale = {
54
52
  exceedMaxCount: "Solo se pueden subir {0} imágenes a la vez",
55
53
  invalidImage: "Imagen no válida"
56
54
  }
57
- };
55
+ } };
58
56
 
59
57
  //#endregion
60
58
  module.exports = locale;
@@ -1,11 +1,9 @@
1
1
 
2
2
  //#region src/locale/fa-IR.ts
3
- const locale = {
4
- docImage: {
5
- title: "تصویر",
6
- upload: { float: "درج تصویر" },
7
- panel: { title: "ویرایش تصویر" }
8
- },
3
+ const locale = { "docs-drawing-ui": {
4
+ title: "تصویر",
5
+ upload: { float: "درج تصویر" },
6
+ panel: { title: "ویرایش تصویر" },
9
7
  "image-popup": {
10
8
  replace: "تعویض",
11
9
  delete: "حذف",
@@ -54,7 +52,7 @@ const locale = {
54
52
  exceedMaxCount: "فقط {0} تصویر می‌توانند همزمان آپلود شوند",
55
53
  invalidImage: "تصویر نامعتبر است"
56
54
  }
57
- };
55
+ } };
58
56
 
59
57
  //#endregion
60
58
  module.exports = locale;
@@ -1,11 +1,9 @@
1
1
 
2
2
  //#region src/locale/fr-FR.ts
3
- const locale = {
4
- docImage: {
5
- title: "Image",
6
- upload: { float: "Insérer une image" },
7
- panel: { title: "Modifier l'image" }
8
- },
3
+ const locale = { "docs-drawing-ui": {
4
+ title: "Image",
5
+ upload: { float: "Insérer une image" },
6
+ panel: { title: "Modifier l'image" },
9
7
  "image-popup": {
10
8
  replace: "Remplacer",
11
9
  delete: "Supprimer",
@@ -54,7 +52,7 @@ const locale = {
54
52
  exceedMaxCount: "Seulement {0} images peuvent être téléchargées à la fois",
55
53
  invalidImage: "Image invalide"
56
54
  }
57
- };
55
+ } };
58
56
 
59
57
  //#endregion
60
58
  module.exports = locale;
@@ -0,0 +1,58 @@
1
+
2
+ //#region src/locale/id-ID.ts
3
+ const locale = { "docs-drawing-ui": {
4
+ title: "Gambar",
5
+ upload: { float: "Sisipkan Gambar" },
6
+ panel: { title: "Edit Gambar" },
7
+ "image-popup": {
8
+ replace: "Ganti",
9
+ delete: "Hapus",
10
+ edit: "Edit",
11
+ crop: "Pangkas",
12
+ reset: "Atur Ulang Ukuran"
13
+ },
14
+ "image-text-wrap": {
15
+ title: "Pembungkus Teks",
16
+ wrappingStyle: "Gaya Pembungkus",
17
+ square: "Kotak",
18
+ topAndBottom: "Atas dan Bawah",
19
+ inline: "Sejajar dengan teks",
20
+ behindText: "Di belakang teks",
21
+ inFrontText: "Di depan teks",
22
+ wrapText: "Bungkus teks",
23
+ bothSide: "Kedua sisi",
24
+ leftOnly: "Kiri saja",
25
+ rightOnly: "Kanan saja",
26
+ distanceFromText: "Jarak dari teks",
27
+ top: "Atas(px)",
28
+ left: "Kiri(px)",
29
+ bottom: "Bawah(px)",
30
+ right: "Kanan(px)"
31
+ },
32
+ "image-position": {
33
+ title: "Posisi",
34
+ horizontal: "Horizontal",
35
+ vertical: "Vertikal",
36
+ absolutePosition: "Posisi Absolut(px)",
37
+ relativePosition: "Posisi Relatif",
38
+ toTheRightOf: "di sebelah kanan",
39
+ relativeTo: "relatif terhadap",
40
+ bellow: "di bawah",
41
+ options: "Opsi",
42
+ moveObjectWithText: "Pindahkan objek dengan teks",
43
+ column: "Kolom",
44
+ margin: "Margin",
45
+ page: "Halaman",
46
+ line: "Baris",
47
+ paragraph: "Paragraf"
48
+ },
49
+ "update-status": {
50
+ exceedMaxSize: "Ukuran gambar melebihi batas, batasnya adalah {0}M",
51
+ invalidImageType: "Jenis gambar tidak valid",
52
+ exceedMaxCount: "Hanya {0} gambar yang dapat diunggah dalam satu waktu",
53
+ invalidImage: "Gambar tidak valid"
54
+ }
55
+ } };
56
+
57
+ //#endregion
58
+ module.exports = locale;