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