@univerjs/sheets-drawing-ui 0.24.0 → 0.25.0

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 (92) hide show
  1. package/lib/cjs/index.js +52 -47
  2. package/lib/cjs/locale/ar-SA.js +61 -0
  3. package/lib/cjs/locale/ca-ES.js +35 -28
  4. package/lib/cjs/locale/de-DE.js +61 -0
  5. package/lib/cjs/locale/en-US.js +35 -28
  6. package/lib/cjs/locale/es-ES.js +35 -28
  7. package/lib/cjs/locale/fa-IR.js +35 -28
  8. package/lib/cjs/locale/fr-FR.js +35 -28
  9. package/lib/cjs/locale/id-ID.js +61 -0
  10. package/lib/cjs/locale/it-IT.js +61 -0
  11. package/lib/cjs/locale/ja-JP.js +35 -28
  12. package/lib/cjs/locale/ko-KR.js +35 -28
  13. package/lib/cjs/locale/pl-PL.js +61 -0
  14. package/lib/cjs/locale/pt-BR.js +61 -0
  15. package/lib/cjs/locale/ru-RU.js +35 -28
  16. package/lib/cjs/locale/sk-SK.js +35 -28
  17. package/lib/cjs/locale/vi-VN.js +35 -28
  18. package/lib/cjs/locale/zh-CN.js +35 -28
  19. package/lib/cjs/locale/zh-HK.js +61 -0
  20. package/lib/cjs/locale/zh-TW.js +35 -28
  21. package/lib/es/index.js +52 -47
  22. package/lib/es/locale/ar-SA.js +60 -0
  23. package/lib/es/locale/ca-ES.js +35 -28
  24. package/lib/es/locale/de-DE.js +60 -0
  25. package/lib/es/locale/en-US.js +35 -28
  26. package/lib/es/locale/es-ES.js +35 -28
  27. package/lib/es/locale/fa-IR.js +35 -28
  28. package/lib/es/locale/fr-FR.js +35 -28
  29. package/lib/es/locale/id-ID.js +60 -0
  30. package/lib/es/locale/it-IT.js +60 -0
  31. package/lib/es/locale/ja-JP.js +35 -28
  32. package/lib/es/locale/ko-KR.js +35 -28
  33. package/lib/es/locale/pl-PL.js +60 -0
  34. package/lib/es/locale/pt-BR.js +60 -0
  35. package/lib/es/locale/ru-RU.js +35 -28
  36. package/lib/es/locale/sk-SK.js +35 -28
  37. package/lib/es/locale/vi-VN.js +35 -28
  38. package/lib/es/locale/zh-CN.js +35 -28
  39. package/lib/es/locale/zh-HK.js +60 -0
  40. package/lib/es/locale/zh-TW.js +35 -28
  41. package/lib/index.js +52 -47
  42. package/lib/locale/ar-SA.js +60 -0
  43. package/lib/locale/ca-ES.js +35 -28
  44. package/lib/locale/de-DE.js +60 -0
  45. package/lib/locale/en-US.js +35 -28
  46. package/lib/locale/es-ES.js +35 -28
  47. package/lib/locale/fa-IR.js +35 -28
  48. package/lib/locale/fr-FR.js +35 -28
  49. package/lib/locale/id-ID.js +60 -0
  50. package/lib/locale/it-IT.js +60 -0
  51. package/lib/locale/ja-JP.js +35 -28
  52. package/lib/locale/ko-KR.js +35 -28
  53. package/lib/locale/pl-PL.js +60 -0
  54. package/lib/locale/pt-BR.js +60 -0
  55. package/lib/locale/ru-RU.js +35 -28
  56. package/lib/locale/sk-SK.js +35 -28
  57. package/lib/locale/vi-VN.js +35 -28
  58. package/lib/locale/zh-CN.js +35 -28
  59. package/lib/locale/zh-HK.js +60 -0
  60. package/lib/locale/zh-TW.js +35 -28
  61. package/lib/types/facade/f-range.d.ts +4 -2
  62. package/lib/types/facade/f-worksheet.d.ts +18 -9
  63. package/lib/types/locale/ar-SA.d.ts +18 -0
  64. package/lib/types/locale/de-DE.d.ts +18 -0
  65. package/lib/types/locale/en-US.d.ts +40 -27
  66. package/lib/types/locale/id-ID.d.ts +18 -0
  67. package/lib/types/locale/it-IT.d.ts +18 -0
  68. package/lib/types/locale/pl-PL.d.ts +18 -0
  69. package/lib/types/locale/pt-BR.d.ts +18 -0
  70. package/lib/types/locale/zh-HK.d.ts +18 -0
  71. package/lib/umd/facade.js +1 -1
  72. package/lib/umd/index.js +2 -2
  73. package/lib/umd/locale/ar-SA.js +1 -0
  74. package/lib/umd/locale/ca-ES.js +1 -1
  75. package/lib/umd/locale/de-DE.js +1 -0
  76. package/lib/umd/locale/en-US.js +1 -1
  77. package/lib/umd/locale/es-ES.js +1 -1
  78. package/lib/umd/locale/fa-IR.js +1 -1
  79. package/lib/umd/locale/fr-FR.js +1 -1
  80. package/lib/umd/locale/id-ID.js +1 -0
  81. package/lib/umd/locale/it-IT.js +1 -0
  82. package/lib/umd/locale/ja-JP.js +1 -1
  83. package/lib/umd/locale/ko-KR.js +1 -1
  84. package/lib/umd/locale/pl-PL.js +1 -0
  85. package/lib/umd/locale/pt-BR.js +1 -0
  86. package/lib/umd/locale/ru-RU.js +1 -1
  87. package/lib/umd/locale/sk-SK.js +1 -1
  88. package/lib/umd/locale/vi-VN.js +1 -1
  89. package/lib/umd/locale/zh-CN.js +1 -1
  90. package/lib/umd/locale/zh-HK.js +1 -0
  91. package/lib/umd/locale/zh-TW.js +1 -1
  92. package/package.json +15 -15
package/lib/index.js CHANGED
@@ -291,7 +291,7 @@ const UngroupSheetDrawingCommand = {
291
291
  };
292
292
 
293
293
  //#endregion
294
- //#region \0@oxc-project+runtime@0.129.0/helpers/typeof.js
294
+ //#region \0@oxc-project+runtime@0.133.0/helpers/esm/typeof.js
295
295
  function _typeof(o) {
296
296
  "@babel/helpers - typeof";
297
297
  return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
@@ -302,7 +302,7 @@ function _typeof(o) {
302
302
  }
303
303
 
304
304
  //#endregion
305
- //#region \0@oxc-project+runtime@0.129.0/helpers/toPrimitive.js
305
+ //#region \0@oxc-project+runtime@0.133.0/helpers/esm/toPrimitive.js
306
306
  function toPrimitive(t, r) {
307
307
  if ("object" != _typeof(t) || !t) return t;
308
308
  var e = t[Symbol.toPrimitive];
@@ -315,14 +315,14 @@ function toPrimitive(t, r) {
315
315
  }
316
316
 
317
317
  //#endregion
318
- //#region \0@oxc-project+runtime@0.129.0/helpers/toPropertyKey.js
318
+ //#region \0@oxc-project+runtime@0.133.0/helpers/esm/toPropertyKey.js
319
319
  function toPropertyKey(t) {
320
320
  var i = toPrimitive(t, "string");
321
321
  return "symbol" == _typeof(i) ? i : i + "";
322
322
  }
323
323
 
324
324
  //#endregion
325
- //#region \0@oxc-project+runtime@0.129.0/helpers/defineProperty.js
325
+ //#region \0@oxc-project+runtime@0.133.0/helpers/esm/defineProperty.js
326
326
  function _defineProperty(e, r, t) {
327
327
  return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
328
328
  value: t,
@@ -333,7 +333,7 @@ function _defineProperty(e, r, t) {
333
333
  }
334
334
 
335
335
  //#endregion
336
- //#region \0@oxc-project+runtime@0.129.0/helpers/decorateParam.js
336
+ //#region \0@oxc-project+runtime@0.133.0/helpers/esm/decorateParam.js
337
337
  function __decorateParam(paramIndex, decorator) {
338
338
  return function(target, key) {
339
339
  decorator(target, key, paramIndex);
@@ -341,7 +341,7 @@ function __decorateParam(paramIndex, decorator) {
341
341
  }
342
342
 
343
343
  //#endregion
344
- //#region \0@oxc-project+runtime@0.129.0/helpers/decorate.js
344
+ //#region \0@oxc-project+runtime@0.133.0/helpers/esm/decorate.js
345
345
  function __decorate(decorators, target, key, desc) {
346
346
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
347
347
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -425,7 +425,7 @@ let SheetDrawingUpdateController = class SheetDrawingUpdateController extends Di
425
425
  if (fileLength > DRAWING_IMAGE_COUNT_LIMIT) {
426
426
  this._messageService.show({
427
427
  type: MessageType.Error,
428
- content: this._localeService.t("update-status.exceedMaxCount", String(DRAWING_IMAGE_COUNT_LIMIT))
428
+ content: this._localeService.t("sheets-drawing-ui.update-status.exceedMaxCount", String(DRAWING_IMAGE_COUNT_LIMIT))
429
429
  });
430
430
  return false;
431
431
  } else if (fileLength === 0) return false;
@@ -455,15 +455,15 @@ let SheetDrawingUpdateController = class SheetDrawingUpdateController extends Di
455
455
  const type = error.message;
456
456
  if (type === ImageUploadStatusType.ERROR_EXCEED_SIZE) this._messageService.show({
457
457
  type: MessageType.Error,
458
- content: this._localeService.t("update-status.exceedMaxSize", String(getDrawingImageAllowSize() / (1024 * 1024)))
458
+ content: this._localeService.t("sheets-drawing-ui.update-status.exceedMaxSize", String(getDrawingImageAllowSize() / (1024 * 1024)))
459
459
  });
460
460
  else if (type === ImageUploadStatusType.ERROR_IMAGE_TYPE) this._messageService.show({
461
461
  type: MessageType.Error,
462
- content: this._localeService.t("update-status.invalidImageType")
462
+ content: this._localeService.t("sheets-drawing-ui.update-status.invalidImageType")
463
463
  });
464
464
  else if (type === ImageUploadStatusType.ERROR_IMAGE) this._messageService.show({
465
465
  type: MessageType.Error,
466
- content: this._localeService.t("update-status.invalidImage")
466
+ content: this._localeService.t("sheets-drawing-ui.update-status.invalidImage")
467
467
  });
468
468
  }
469
469
  if (imageParam == null) return;
@@ -509,15 +509,15 @@ let SheetDrawingUpdateController = class SheetDrawingUpdateController extends Di
509
509
  const type = error.message;
510
510
  if (type === ImageUploadStatusType.ERROR_EXCEED_SIZE) this._messageService.show({
511
511
  type: MessageType.Error,
512
- content: this._localeService.t("update-status.exceedMaxSize", String(getDrawingImageAllowSize() / (1024 * 1024)))
512
+ content: this._localeService.t("sheets-drawing-ui.update-status.exceedMaxSize", String(getDrawingImageAllowSize() / (1024 * 1024)))
513
513
  });
514
514
  else if (type === ImageUploadStatusType.ERROR_IMAGE_TYPE) this._messageService.show({
515
515
  type: MessageType.Error,
516
- content: this._localeService.t("update-status.invalidImageType")
516
+ content: this._localeService.t("sheets-drawing-ui.update-status.invalidImageType")
517
517
  });
518
518
  else if (type === ImageUploadStatusType.ERROR_IMAGE) this._messageService.show({
519
519
  type: MessageType.Error,
520
- content: this._localeService.t("update-status.invalidImage")
520
+ content: this._localeService.t("sheets-drawing-ui.update-status.invalidImage")
521
521
  });
522
522
  }
523
523
  if (imageParam == null) return false;
@@ -1381,7 +1381,7 @@ const SaveCellImagesCommand = {
1381
1381
  }
1382
1382
  const localeService = accessor.get(LocaleService);
1383
1383
  const selectionRange = batchSaveService.getSelectionRangeNotation();
1384
- const titleText = `${localeService.t("sheetImage.save.title")} (${selectionRange})`;
1384
+ const titleText = `${localeService.t("sheets-drawing-ui.save.title")} (${selectionRange})`;
1385
1385
  dialogService.open({
1386
1386
  id: BATCH_SAVE_IMAGES_DIALOG_ID,
1387
1387
  draggable: true,
@@ -1429,7 +1429,7 @@ const SidebarSheetDrawingOperation = {
1429
1429
  switch (params.value) {
1430
1430
  case "open":
1431
1431
  sidebarService.open({
1432
- header: { title: localeService.t("sheetImage.panel.title") },
1432
+ header: { title: localeService.t("sheets-drawing-ui.panel.title") },
1433
1433
  children: { label: COMPONENT_SHEET_DRAWING_PANEL },
1434
1434
  onClose: () => {
1435
1435
  commandService.syncExecuteCommand(SetDrawingSelectedOperation.id, []);
@@ -1650,7 +1650,7 @@ function ImageMenuFactory(accessor) {
1650
1650
  id: SHEETS_IMAGE_MENU_ID,
1651
1651
  type: MenuItemType.SUBITEMS,
1652
1652
  icon: "AddImageIcon",
1653
- tooltip: "sheetImage.title",
1653
+ tooltip: "sheets-drawing-ui.title",
1654
1654
  hidden$: getMenuHiddenObservable(accessor, UniverInstanceType.UNIVER_SHEET),
1655
1655
  disabled$: getCurrentRangeDisable$(accessor, {
1656
1656
  workbookTypes: [WorkbookEditablePermission],
@@ -1662,7 +1662,7 @@ function ImageMenuFactory(accessor) {
1662
1662
  function UploadFloatImageMenuFactory(_accessor) {
1663
1663
  return {
1664
1664
  id: InsertFloatImageCommand.id,
1665
- title: "sheetImage.upload.float",
1665
+ title: "sheets-drawing-ui.upload.float",
1666
1666
  type: MenuItemType.BUTTON,
1667
1667
  hidden$: getMenuHiddenObservable(_accessor, UniverInstanceType.UNIVER_SHEET)
1668
1668
  };
@@ -1670,7 +1670,7 @@ function UploadFloatImageMenuFactory(_accessor) {
1670
1670
  function UploadCellImageMenuFactory(_accessor) {
1671
1671
  return {
1672
1672
  id: InsertCellImageCommand.id,
1673
- title: "sheetImage.upload.cell",
1673
+ title: "sheets-drawing-ui.upload.cell",
1674
1674
  type: MenuItemType.BUTTON,
1675
1675
  hidden$: getMenuHiddenObservable(_accessor, UniverInstanceType.UNIVER_SHEET)
1676
1676
  };
@@ -1679,7 +1679,7 @@ function UploadCellImageMenuFactory(_accessor) {
1679
1679
  //#endregion
1680
1680
  //#region package.json
1681
1681
  var name = "@univerjs/sheets-drawing-ui";
1682
- var version = "0.24.0";
1682
+ var version = "0.25.0";
1683
1683
 
1684
1684
  //#endregion
1685
1685
  //#region src/config/config.ts
@@ -2000,8 +2000,8 @@ let SheetCellImageCopyPasteController = class SheetCellImageCopyPasteController
2000
2000
  this._setCellImage(Object.values(doc.drawings)[0]);
2001
2001
  } else this._dialogService.open({
2002
2002
  id: "sheet-cell-image-copy-paste",
2003
- title: { label: this._localeService.t("cell-image.pasteTitle") },
2004
- children: { label: this._localeService.t("cell-image.pasteContent") },
2003
+ title: { label: this._localeService.t("sheets-drawing-ui.cell-image.pasteTitle") },
2004
+ children: { label: this._localeService.t("sheets-drawing-ui.cell-image.pasteContent") },
2005
2005
  width: 320,
2006
2006
  destroyOnClose: true,
2007
2007
  onClose: handleCloseDialog,
@@ -2627,7 +2627,7 @@ let SheetDrawingPermissionController = class SheetDrawingPermissionController ex
2627
2627
  if (!this._sheetPermissionCheckController.permissionCheckWithoutRange({
2628
2628
  workbookTypes: [WorkbookEditablePermission],
2629
2629
  worksheetTypes: [WorksheetEditPermission]
2630
- }, unitId, subUnitId)) this._sheetPermissionCheckController.blockExecuteWithoutPermission(this._localeService.t("permission.dialog.editErr"));
2630
+ }, unitId, subUnitId)) this._sheetPermissionCheckController.blockExecuteWithoutPermission(this._localeService.t("sheets-drawing-ui.permission.dialog.editErr"));
2631
2631
  }));
2632
2632
  }
2633
2633
  };
@@ -5474,7 +5474,7 @@ function SaveCellImagesMenuFactory(accessor) {
5474
5474
  id: SaveCellImagesCommand.id,
5475
5475
  type: MenuItemType.BUTTON,
5476
5476
  icon: "DownloadImageIcon",
5477
- title: "sheetImage.save.menuLabel",
5477
+ title: "sheets-drawing-ui.save.menuLabel",
5478
5478
  hidden$
5479
5479
  };
5480
5480
  }
@@ -5564,7 +5564,7 @@ function BatchSaveImagesDialog() {
5564
5564
  dialogService.close(BATCH_SAVE_IMAGES_DIALOG_ID);
5565
5565
  } catch (err) {
5566
5566
  console.error("Failed to save images:", err);
5567
- setError(localeService.t("sheetImage.save.error"));
5567
+ setError(localeService.t("sheets-drawing-ui.save.error"));
5568
5568
  } finally {
5569
5569
  setSaving(false);
5570
5570
  }
@@ -5581,14 +5581,14 @@ function BatchSaveImagesDialog() {
5581
5581
  className: "univer-flex univer-flex-col",
5582
5582
  children: [
5583
5583
  /* @__PURE__ */ jsx(FormLayout, {
5584
- label: localeService.t("sheetImage.save.imageCount"),
5584
+ label: localeService.t("sheets-drawing-ui.save.imageCount"),
5585
5585
  children: /* @__PURE__ */ jsx("div", {
5586
5586
  className: "univer-text-sm univer-text-gray-600",
5587
5587
  children: images.length
5588
5588
  })
5589
5589
  }),
5590
5590
  /* @__PURE__ */ jsx(FormLayout, {
5591
- label: localeService.t("sheetImage.save.fileNameConfig"),
5591
+ label: localeService.t("sheets-drawing-ui.save.fileNameConfig"),
5592
5592
  children: /* @__PURE__ */ jsxs(CheckboxGroup, {
5593
5593
  value: fileNameParts,
5594
5594
  onChange: handleFileNamePartsChange,
@@ -5596,15 +5596,15 @@ function BatchSaveImagesDialog() {
5596
5596
  children: [/* @__PURE__ */ jsx(Checkbox, {
5597
5597
  value: "cellAddress",
5598
5598
  disabled: !hasAvailableColumns,
5599
- children: localeService.t("sheetImage.save.useRowCol")
5599
+ children: localeService.t("sheets-drawing-ui.save.useRowCol")
5600
5600
  }), hasAvailableColumns && /* @__PURE__ */ jsx(Checkbox, {
5601
5601
  value: "columnValue",
5602
- children: localeService.t("sheetImage.save.useColumnValue")
5602
+ children: localeService.t("sheets-drawing-ui.save.useColumnValue")
5603
5603
  })]
5604
5604
  })
5605
5605
  }),
5606
5606
  showColumnSelect && /* @__PURE__ */ jsx(FormLayout, {
5607
- label: localeService.t("sheetImage.save.selectColumn"),
5607
+ label: localeService.t("sheets-drawing-ui.save.selectColumn"),
5608
5608
  children: /* @__PURE__ */ jsx(Select, {
5609
5609
  value: selectedColumn,
5610
5610
  options: columnOptions,
@@ -5620,12 +5620,12 @@ function BatchSaveImagesDialog() {
5620
5620
  children: [/* @__PURE__ */ jsx(Button, {
5621
5621
  onClick: handleCancel,
5622
5622
  disabled: saving,
5623
- children: localeService.t("sheetImage.save.cancel")
5623
+ children: localeService.t("sheets-drawing-ui.save.cancel")
5624
5624
  }), /* @__PURE__ */ jsx(Button, {
5625
5625
  variant: "primary",
5626
5626
  onClick: handleConfirm,
5627
5627
  disabled: saving || images.length === 0,
5628
- children: saving ? localeService.t("sheetImage.save.saving") : localeService.t("sheetImage.save.confirm")
5628
+ children: saving ? localeService.t("sheets-drawing-ui.save.saving") : localeService.t("sheets-drawing-ui.save.confirm")
5629
5629
  })]
5630
5630
  })
5631
5631
  ]
@@ -5712,7 +5712,7 @@ const SheetDrawingAnchor = (props) => {
5712
5712
  className: clsx("univer-grid univer-gap-2 univer-py-2 univer-text-gray-400", { "univer-hidden": !anchorShow }),
5713
5713
  children: [/* @__PURE__ */ jsx("header", {
5714
5714
  className: "univer-text-gray-600 dark:!univer-text-gray-200",
5715
- children: /* @__PURE__ */ jsx("div", { children: localeService.t("drawing-anchor.title") })
5715
+ children: /* @__PURE__ */ jsx("div", { children: localeService.t("sheets-drawing-ui.drawing-anchor.title") })
5716
5716
  }), /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(RadioGroup, {
5717
5717
  value,
5718
5718
  onChange: handleChange,
@@ -5720,15 +5720,15 @@ const SheetDrawingAnchor = (props) => {
5720
5720
  children: [
5721
5721
  /* @__PURE__ */ jsx(Radio, {
5722
5722
  value: SheetDrawingAnchorType.Both,
5723
- children: localeService.t("drawing-anchor.both")
5723
+ children: localeService.t("sheets-drawing-ui.drawing-anchor.both")
5724
5724
  }),
5725
5725
  /* @__PURE__ */ jsx(Radio, {
5726
5726
  value: SheetDrawingAnchorType.Position,
5727
- children: localeService.t("drawing-anchor.position")
5727
+ children: localeService.t("sheets-drawing-ui.drawing-anchor.position")
5728
5728
  }),
5729
5729
  /* @__PURE__ */ jsx(Radio, {
5730
5730
  value: SheetDrawingAnchorType.None,
5731
- children: localeService.t("drawing-anchor.none")
5731
+ children: localeService.t("sheets-drawing-ui.drawing-anchor.none")
5732
5732
  })
5733
5733
  ]
5734
5734
  }) })]
@@ -5761,8 +5761,9 @@ function whenSheetDrawingFocused(contextService) {
5761
5761
  }
5762
5762
  const MoveDrawingDownShortcutItem = {
5763
5763
  id: MoveDrawingsCommand.id,
5764
- description: "shortcut.drawing-move-down",
5764
+ description: "sheets-drawing-ui.shortcut.drawing-move-down",
5765
5765
  group: "4_drawing-view",
5766
+ groupTitle: "sheets-drawing-ui.shortcut.drawing-view",
5766
5767
  binding: KeyCode.ARROW_DOWN,
5767
5768
  priority: 100,
5768
5769
  preconditions: whenSheetDrawingFocused,
@@ -5770,8 +5771,9 @@ const MoveDrawingDownShortcutItem = {
5770
5771
  };
5771
5772
  const MoveDrawingUpShortcutItem = {
5772
5773
  id: MoveDrawingsCommand.id,
5773
- description: "shortcut.drawing-move-up",
5774
+ description: "sheets-drawing-ui.shortcut.drawing-move-up",
5774
5775
  group: "4_drawing-view",
5776
+ groupTitle: "sheets-drawing-ui.shortcut.drawing-view",
5775
5777
  binding: KeyCode.ARROW_UP,
5776
5778
  priority: 100,
5777
5779
  preconditions: whenSheetDrawingFocused,
@@ -5779,8 +5781,9 @@ const MoveDrawingUpShortcutItem = {
5779
5781
  };
5780
5782
  const MoveDrawingLeftShortcutItem = {
5781
5783
  id: MoveDrawingsCommand.id,
5782
- description: "shortcut.drawing-move-left",
5784
+ description: "sheets-drawing-ui.shortcut.drawing-move-left",
5783
5785
  group: "4_drawing-view",
5786
+ groupTitle: "sheets-drawing-ui.shortcut.drawing-view",
5784
5787
  binding: KeyCode.ARROW_LEFT,
5785
5788
  priority: 100,
5786
5789
  preconditions: whenSheetDrawingFocused,
@@ -5788,8 +5791,9 @@ const MoveDrawingLeftShortcutItem = {
5788
5791
  };
5789
5792
  const MoveDrawingRightShortcutItem = {
5790
5793
  id: MoveDrawingsCommand.id,
5791
- description: "shortcut.drawing-move-right",
5794
+ description: "sheets-drawing-ui.shortcut.drawing-move-right",
5792
5795
  group: "4_drawing-view",
5796
+ groupTitle: "sheets-drawing-ui.shortcut.drawing-view",
5793
5797
  binding: KeyCode.ARROW_RIGHT,
5794
5798
  priority: 100,
5795
5799
  preconditions: whenSheetDrawingFocused,
@@ -5797,8 +5801,9 @@ const MoveDrawingRightShortcutItem = {
5797
5801
  };
5798
5802
  const DeleteDrawingsShortcutItem = {
5799
5803
  id: DeleteDrawingsCommand.id,
5800
- description: "shortcut.drawing-delete",
5804
+ description: "sheets-drawing-ui.shortcut.drawing-delete",
5801
5805
  group: "4_drawing-view",
5806
+ groupTitle: "sheets-drawing-ui.shortcut.drawing-view",
5802
5807
  priority: 100,
5803
5808
  preconditions: whenSheetDrawingFocused,
5804
5809
  binding: KeyCode.DELETE,
@@ -5909,7 +5914,7 @@ let DrawingPopupMenuController = class DrawingPopupMenuController extends RxDisp
5909
5914
  if (status > 0 && !messageDisposable) messageDisposable = this._messageService.show({
5910
5915
  id: MESSAGE_ID,
5911
5916
  type: MessageType.Loading,
5912
- content: `${this._localeService.t("uploadLoading.loading")}: ${status}`,
5917
+ content: `${this._localeService.t("sheets-ui.uploadLoading.loading")}: ${status}`,
5913
5918
  duration: 0
5914
5919
  });
5915
5920
  else if (status === 0) {
@@ -5984,7 +5989,7 @@ let DrawingPopupMenuController = class DrawingPopupMenuController extends RxDisp
5984
5989
  _getImageMenuItems(unitId, subUnitId, drawingId, drawingType) {
5985
5990
  return [
5986
5991
  {
5987
- label: "image-popup.edit",
5992
+ label: "sheets-drawing-ui.image-popup.edit",
5988
5993
  index: 0,
5989
5994
  commandId: EditSheetDrawingOperation.id,
5990
5995
  commandParams: {
@@ -5995,7 +6000,7 @@ let DrawingPopupMenuController = class DrawingPopupMenuController extends RxDisp
5995
6000
  disable: drawingType === DrawingTypeEnum.DRAWING_DOM
5996
6001
  },
5997
6002
  {
5998
- label: "image-popup.delete",
6003
+ label: "sheets-drawing-ui.image-popup.delete",
5999
6004
  index: 1,
6000
6005
  commandId: RemoveSheetDrawingCommand.id,
6001
6006
  commandParams: {
@@ -6009,7 +6014,7 @@ let DrawingPopupMenuController = class DrawingPopupMenuController extends RxDisp
6009
6014
  disable: false
6010
6015
  },
6011
6016
  {
6012
- label: "image-popup.crop",
6017
+ label: "sheets-drawing-ui.image-popup.crop",
6013
6018
  index: 2,
6014
6019
  commandId: OpenImageCropOperation.id,
6015
6020
  commandParams: {
@@ -6020,7 +6025,7 @@ let DrawingPopupMenuController = class DrawingPopupMenuController extends RxDisp
6020
6025
  disable: drawingType === DrawingTypeEnum.DRAWING_DOM
6021
6026
  },
6022
6027
  {
6023
- label: "image-popup.flipH",
6028
+ label: "sheets-drawing-ui.image-popup.flipH",
6024
6029
  index: 2,
6025
6030
  commandId: FlipSheetDrawingCommand.id,
6026
6031
  commandParams: {
@@ -6035,7 +6040,7 @@ let DrawingPopupMenuController = class DrawingPopupMenuController extends RxDisp
6035
6040
  disable: drawingType === DrawingTypeEnum.DRAWING_DOM
6036
6041
  },
6037
6042
  {
6038
- label: "image-popup.flipV",
6043
+ label: "sheets-drawing-ui.image-popup.flipV",
6039
6044
  index: 2,
6040
6045
  commandId: FlipSheetDrawingCommand.id,
6041
6046
  commandParams: {
@@ -6050,7 +6055,7 @@ let DrawingPopupMenuController = class DrawingPopupMenuController extends RxDisp
6050
6055
  disable: drawingType === DrawingTypeEnum.DRAWING_DOM
6051
6056
  },
6052
6057
  {
6053
- label: "image-popup.reset",
6058
+ label: "sheets-drawing-ui.image-popup.reset",
6054
6059
  index: 3,
6055
6060
  commandId: ImageResetSizeOperation.id,
6056
6061
  commandParams: [{
@@ -0,0 +1,60 @@
1
+ //#region src/locale/ar-SA.ts
2
+ const locale = { "sheets-drawing-ui": {
3
+ title: "صورة",
4
+ upload: {
5
+ float: "صورة عائمة",
6
+ cell: "صورة خلية"
7
+ },
8
+ panel: { title: "تحرير الصورة" },
9
+ save: {
10
+ title: "حفظ صور الخلايا",
11
+ menuLabel: "حفظ صور الخلايا",
12
+ imageCount: "عدد الصور",
13
+ fileNameConfig: "اسم الملف",
14
+ useRowCol: "استخدام عنوان الخلية (A1، B2...)",
15
+ useColumnValue: "استخدام قيمة العمود",
16
+ selectColumn: "تحديد العمود",
17
+ cancel: "إلغاء",
18
+ confirm: "حفظ",
19
+ saving: "جارٍ الحفظ...",
20
+ error: "فشل في حفظ صور الخلايا"
21
+ },
22
+ "image-popup": {
23
+ replace: "استبدال",
24
+ delete: "حذف",
25
+ edit: "تحرير",
26
+ crop: "قص",
27
+ reset: "إعادة تعيين الحجم",
28
+ flipH: "قلب أفقي",
29
+ flipV: "قلب عمودي"
30
+ },
31
+ "update-status": {
32
+ exceedMaxSize: "حجم الصورة يتجاوز الحد، الحد هو {0}م",
33
+ invalidImageType: "نوع الصورة غير صالح",
34
+ exceedMaxCount: "يمكن رفع {0} صور فقط في المرة الواحدة",
35
+ invalidImage: "صورة غير صالحة"
36
+ },
37
+ "drawing-anchor": {
38
+ title: "خصائص المرساة",
39
+ both: "النقل والتحجيم مع الخلايا",
40
+ position: "النقل دون التحجيم مع الخلايا",
41
+ none: "عدم النقل أو التحجيم مع الخلايا"
42
+ },
43
+ "cell-image": {
44
+ pasteTitle: "لصق كصورة خلية",
45
+ pasteContent: "سيؤدي لصق صورة خلية إلى استبدال المحتوى الموجود في الخلية، هل تريد المتابعة؟",
46
+ pasteError: "نسخ ولصق صورة خلية الورقة غير مدعوم في هذه الوحدة"
47
+ },
48
+ permission: { dialog: { editErr: "النطاق محمي، وليس لديك إذن التحرير. للتحرير، يرجى التواصل مع المنشئ." } },
49
+ shortcut: {
50
+ "drawing-view": "عرض الرسم",
51
+ "drawing-move-down": "نقل الرسم لأسفل",
52
+ "drawing-move-up": "نقل الرسم لأعلى",
53
+ "drawing-move-left": "نقل الرسم لليسار",
54
+ "drawing-move-right": "نقل الرسم لليمين",
55
+ "drawing-delete": "حذف الرسم"
56
+ }
57
+ } };
58
+
59
+ //#endregion
60
+ export { locale as default };
@@ -1,25 +1,23 @@
1
1
  //#region src/locale/ca-ES.ts
2
- const locale = {
3
- sheetImage: {
4
- title: "Imatge",
5
- upload: {
6
- float: "Imatge flotant",
7
- cell: "Imatge de cel·la"
8
- },
9
- panel: { title: "Edita la imatge" },
10
- save: {
11
- title: "Desa les imatges de cel·la",
12
- menuLabel: "Desa les imatges de cel·la",
13
- imageCount: "Nombre d'imatges",
14
- fileNameConfig: "Nom del fitxer",
15
- useRowCol: "Utilitza l'adreça de la cel·la (A1, B2...)",
16
- useColumnValue: "Utilitza el valor de la columna",
17
- selectColumn: "Selecciona la columna",
18
- cancel: "Cancel·la",
19
- confirm: "Desa",
20
- saving: "Desant...",
21
- error: "No s'han pogut desar les imatges de cel·la"
22
- }
2
+ const locale = { "sheets-drawing-ui": {
3
+ title: "Imatge",
4
+ upload: {
5
+ float: "Imatge flotant",
6
+ cell: "Imatge de cel·la"
7
+ },
8
+ panel: { title: "Edita la imatge" },
9
+ save: {
10
+ title: "Desa les imatges de cel·la",
11
+ menuLabel: "Desa les imatges de cel·la",
12
+ imageCount: "Nombre d'imatges",
13
+ fileNameConfig: "Nom del fitxer",
14
+ useRowCol: "Utilitza l'adreça de la cel·la (A1, B2...)",
15
+ useColumnValue: "Utilitza el valor de la columna",
16
+ selectColumn: "Selecciona la columna",
17
+ cancel: "Cancel·la",
18
+ confirm: "Desa",
19
+ saving: "Desant...",
20
+ error: "No s'han pogut desar les imatges de cel·la"
23
21
  },
24
22
  "image-popup": {
25
23
  replace: "Reemplaça",
@@ -30,24 +28,33 @@ const locale = {
30
28
  flipH: "Gira horizontalmente",
31
29
  flipV: "Gira verticalmente"
32
30
  },
33
- "drawing-anchor": {
34
- title: "Propietats d’ancoratge",
35
- both: "Mou i canvia la mida amb les cel·les",
36
- position: "Mou però no canviïs la mida amb les cel·les",
37
- none: "No moguis ni canviïs la mida amb les cel·les"
38
- },
39
31
  "update-status": {
40
32
  exceedMaxSize: "La mida de la imatge supera el límit, el límit és {0}M",
41
33
  invalidImageType: "Tipus d’imatge no vàlid",
42
34
  exceedMaxCount: "Només es poden pujar {0} imatges alhora",
43
35
  invalidImage: "Imatge no vàlida"
44
36
  },
37
+ "drawing-anchor": {
38
+ title: "Propietats d’ancoratge",
39
+ both: "Mou i canvia la mida amb les cel·les",
40
+ position: "Mou però no canviïs la mida amb les cel·les",
41
+ none: "No moguis ni canviïs la mida amb les cel·les"
42
+ },
45
43
  "cell-image": {
46
44
  pasteTitle: "Enganxa com a imatge de cel·la",
47
45
  pasteContent: "Enganxar una imatge de cel·la sobreescriurà el contingut existent de la cel·la, continuar enganxant",
48
46
  pasteError: "La còpia i enganxat d’imatges de cel·la de full no està suportada en aquesta unitat"
47
+ },
48
+ permission: { dialog: { editErr: "L'interval està protegit i no teniu permís d'edició. Per editar, contacteu amb el creador." } },
49
+ shortcut: {
50
+ "drawing-view": "Vista del dibuix",
51
+ "drawing-move-down": "Mou el dibuix cap avall",
52
+ "drawing-move-up": "Mou el dibuix cap amunt",
53
+ "drawing-move-left": "Mou el dibuix a l’esquerra",
54
+ "drawing-move-right": "Mou el dibuix a la dreta",
55
+ "drawing-delete": "Elimina el dibuix"
49
56
  }
50
- };
57
+ } };
51
58
 
52
59
  //#endregion
53
60
  export { locale as default };
@@ -0,0 +1,60 @@
1
+ //#region src/locale/de-DE.ts
2
+ const locale = { "sheets-drawing-ui": {
3
+ title: "Bild",
4
+ upload: {
5
+ float: "Schwebendes Bild",
6
+ cell: "Zellenbild"
7
+ },
8
+ panel: { title: "Bild bearbeiten" },
9
+ save: {
10
+ title: "Zellenbilder speichern",
11
+ menuLabel: "Zellenbilder speichern",
12
+ imageCount: "Bildanzahl",
13
+ fileNameConfig: "Dateiname",
14
+ useRowCol: "Zellenadresse verwenden (A1, B2...)",
15
+ useColumnValue: "Spaltenwert verwenden",
16
+ selectColumn: "Spalte auswählen",
17
+ cancel: "Abbrechen",
18
+ confirm: "Speichern",
19
+ saving: "Speichern...",
20
+ error: "Zellenbilder konnten nicht gespeichert werden"
21
+ },
22
+ "image-popup": {
23
+ replace: "Ersetzen",
24
+ delete: "Löschen",
25
+ edit: "Bearbeiten",
26
+ crop: "Zuschneiden",
27
+ reset: "Größe zurücksetzen",
28
+ flipH: "Horizontal spiegeln",
29
+ flipV: "Vertikal spiegeln"
30
+ },
31
+ "update-status": {
32
+ exceedMaxSize: "Bildgröße überschreitet das Limit, Limit ist {0}M",
33
+ invalidImageType: "Ungültiger Bildtyp",
34
+ exceedMaxCount: "Es können nur {0} Bilder gleichzeitig hochgeladen werden",
35
+ invalidImage: "Ungültiges Bild"
36
+ },
37
+ "drawing-anchor": {
38
+ title: "Anker-Eigenschaften",
39
+ both: "Mit Zellen verschieben und skalieren",
40
+ position: "Mit Zellen verschieben, aber nicht skalieren",
41
+ none: "Weder verschieben noch skalieren mit Zellen"
42
+ },
43
+ "cell-image": {
44
+ pasteTitle: "Als Zellenbild einfügen",
45
+ pasteContent: "Das Einfügen eines Zellenbilds überschreibt den bestehenden Inhalt der Zelle, mit dem Einfügen fortfahren?",
46
+ pasteError: "Kopieren und Einfügen von Zellenbildern wird in dieser Einheit nicht unterstützt"
47
+ },
48
+ permission: { dialog: { editErr: "Der Bereich ist geschützt, und Sie haben keine Bearbeitungsberechtigung. Um zu bearbeiten, wenden Sie sich bitte an den Ersteller." } },
49
+ shortcut: {
50
+ "drawing-view": "Zeichnungsansicht",
51
+ "drawing-move-down": "Zeichnung nach unten verschieben",
52
+ "drawing-move-up": "Zeichnung nach oben verschieben",
53
+ "drawing-move-left": "Zeichnung nach links verschieben",
54
+ "drawing-move-right": "Zeichnung nach rechts verschieben",
55
+ "drawing-delete": "Zeichnung löschen"
56
+ }
57
+ } };
58
+
59
+ //#endregion
60
+ export { locale as default };
@@ -14,27 +14,25 @@
14
14
  * See the License for the specific language governing permissions and
15
15
  * limitations under the License.
16
16
  */
17
- const locale = {
18
- sheetImage: {
19
- title: "Image",
20
- upload: {
21
- float: "Float Image",
22
- cell: "Cell Image"
23
- },
24
- panel: { title: "Edit Image" },
25
- save: {
26
- title: "Save Cell Images",
27
- menuLabel: "Save Cell Images",
28
- imageCount: "Image Count",
29
- fileNameConfig: "File Name",
30
- useRowCol: "Use Cell Address (A1, B2...)",
31
- useColumnValue: "Use Column Value",
32
- selectColumn: "Select Column",
33
- cancel: "Cancel",
34
- confirm: "Save",
35
- saving: "Saving...",
36
- error: "Failed to save cell images"
37
- }
17
+ const locale = { "sheets-drawing-ui": {
18
+ title: "Image",
19
+ upload: {
20
+ float: "Float Image",
21
+ cell: "Cell Image"
22
+ },
23
+ panel: { title: "Edit Image" },
24
+ save: {
25
+ title: "Save Cell Images",
26
+ menuLabel: "Save Cell Images",
27
+ imageCount: "Image Count",
28
+ fileNameConfig: "File Name",
29
+ useRowCol: "Use Cell Address (A1, B2...)",
30
+ useColumnValue: "Use Column Value",
31
+ selectColumn: "Select Column",
32
+ cancel: "Cancel",
33
+ confirm: "Save",
34
+ saving: "Saving...",
35
+ error: "Failed to save cell images"
38
36
  },
39
37
  "image-popup": {
40
38
  replace: "Replace",
@@ -45,24 +43,33 @@ const locale = {
45
43
  flipH: "Flip Horizontal",
46
44
  flipV: "Flip Vertical"
47
45
  },
48
- "drawing-anchor": {
49
- title: "Anchor Properties",
50
- both: "Move and size with cells",
51
- position: "Move but don't size with cells",
52
- none: "Don't move or size with cells"
53
- },
54
46
  "update-status": {
55
47
  exceedMaxSize: "Image size exceeds limit, limit is {0}M",
56
48
  invalidImageType: "Invalid image type",
57
49
  exceedMaxCount: "Only {0} images can be uploaded at a time",
58
50
  invalidImage: "Invalid image"
59
51
  },
52
+ "drawing-anchor": {
53
+ title: "Anchor Properties",
54
+ both: "Move and size with cells",
55
+ position: "Move but don't size with cells",
56
+ none: "Don't move or size with cells"
57
+ },
60
58
  "cell-image": {
61
59
  pasteTitle: "Paste as cell image",
62
60
  pasteContent: "Pasting a cell image will overwrite the existing content of the cell, continue pasting",
63
61
  pasteError: "Sheet cell image copy paste is not supported in this unit"
62
+ },
63
+ permission: { dialog: { editErr: "The range is protected, and you do not have edit permission. To edit, please contact the creator." } },
64
+ shortcut: {
65
+ "drawing-view": "Drawing View",
66
+ "drawing-move-down": "Move Drawing down",
67
+ "drawing-move-up": "Move Drawing up",
68
+ "drawing-move-left": "Move Drawing left",
69
+ "drawing-move-right": "Move Drawing right",
70
+ "drawing-delete": "Delete Drawing"
64
71
  }
65
- };
72
+ } };
66
73
 
67
74
  //#endregion
68
75
  export { locale as default };