@univerjs/sheets-drawing-ui 1.0.0-alpha.6 → 1.0.0-alpha.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- (function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverSheetsDrawingUiViVN=t())})(this,function(){return{"sheets-drawing-ui":{title:`Hình ảnh`,uploadLoading:{loading:`Đang tải lên, hiện còn lại`},upload:{float:`Hình ảnh nổi`,cell:`Hình ảnh trong ô`},panel:{title:`Chỉnh sửa hình ảnh`},save:{title:`Lưu hình ảnh ô`,menuLabel:`Lưu hình ảnh ô`,imageCount:`Số lượng hình ảnh`,fileNameConfig:`Tên tệp`,useRowCol:`Sử dụng địa chỉ ô (A1, B2...)`,useColumnValue:`Sử dụng giá trị cột`,selectColumn:`Chọn cột`,cancel:`Hủy`,confirm:`Lưu`,saving:`Đang lưu...`,error:`Lưu hình ảnh ô thất bại`},"image-popup":{replace:`Thay thế`,delete:`Xóa`,edit:`Chỉnh sửa`,crop:`Cắt`,reset:`Đặt lại kích thước`,flipH:`Lật ngang`,flipV:`Lật dọc`},"update-status":{exceedMaxSize:`Kích thước hình ảnh vượt quá giới hạn, giới hạn là {0}M`,invalidImageType:`Loại hình ảnh không hợp lệ`,exceedMaxCount:`Chỉ có thể tải lên {0} hình ảnh một lần`,invalidImage:`Hình ảnh không hợp lệ`},"drawing-anchor":{title:`Thuộc tính neo`,both:`Di chuyển và thay đổi kích thước cùng với ô`,position:`Di chuyển nhưng không thay đổi kích thước với ô`,none:`Không di chuyển hoặc thay đổi kích thước với ô`},"cell-image":{pasteTitle:`Dán như hình ảnh ô`,pasteContent:`Dán hình ảnh ô sẽ ghi đè lên nội dung hiện có của ô, tiếp tục dán`,pasteError:`Sao chép và dán hình ảnh ô không được hỗ trợ trong đơn vị này`},permission:{dialog:{editErr:`Phạm vi này đã được bảo vệ, hiện không có quyền chỉnh sửa. Nếu cần chỉnh sửa, vui lòng liên hệ với người tạo.`}},shortcut:{"drawing-view":`Chế độ xem bản vẽ`,"drawing-move-down":`Move Drawing down`,"drawing-move-up":`Move Drawing up`,"drawing-move-left":`Move Drawing left`,"drawing-move-right":`Move Drawing right`,"drawing-delete":`Delete Drawing`}}}});
1
+ (function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverSheetsDrawingUiViVN=t())})(this,function(){return{"sheets-drawing-ui":{title:`Hình ảnh`,uploadLoading:{loading:`Đang tải lên, hiện còn lại`},upload:{float:`Hình ảnh nổi`,cell:`Hình ảnh trong ô`},panel:{title:`Chỉnh sửa hình ảnh`},save:{title:`Lưu hình ảnh ô`,menuLabel:`Lưu hình ảnh ô`,imageCount:`Số lượng hình ảnh`,fileNameConfig:`Tên tệp`,useRowCol:`Sử dụng địa chỉ ô (A1, B2...)`,useColumnValue:`Sử dụng giá trị cột`,selectColumn:`Chọn cột`,cancel:`Hủy`,confirm:`Lưu`,saving:`Đang lưu...`,error:`Lưu hình ảnh ô thất bại`},"image-popup":{replace:`Thay thế`,delete:`Xóa`,edit:`Chỉnh sửa`,crop:`Cắt`,reset:`Đặt lại kích thước`,flipH:`Lật ngang`,flipV:`Lật dọc`},"update-status":{exceedMaxSize:`Kích thước hình ảnh vượt quá giới hạn, giới hạn là {0}M`,invalidImageType:`Loại hình ảnh không hợp lệ`,exceedMaxCount:`Chỉ có thể tải lên {0} hình ảnh một lần`,invalidImage:`Hình ảnh không hợp lệ`},"drawing-anchor":{title:`Thuộc tính neo`,both:`Di chuyển và thay đổi kích thước cùng với ô`,position:`Di chuyển nhưng không thay đổi kích thước với ô`,none:`Không di chuyển hoặc thay đổi kích thước với ô`},"cell-image":{pasteTitle:`Dán như hình ảnh ô`,pasteContent:`Dán hình ảnh ô sẽ ghi đè lên nội dung hiện có của ô, tiếp tục dán`,pasteError:`Sao chép và dán hình ảnh ô không được hỗ trợ trong đơn vị này`},permission:{dialog:{editErr:`Phạm vi này đã được bảo vệ, hiện không có quyền chỉnh sửa. Nếu cần chỉnh sửa, vui lòng liên hệ với người tạo.`}},shortcut:{"drawing-view":`Chế độ xem bản vẽ`,"drawing-move-down":`Di chuyển hình vẽ xuống`,"drawing-move-up":`Di chuyển hình vẽ lên`,"drawing-move-left":`Di chuyển hình vẽ sang trái`,"drawing-move-right":`Di chuyển hình vẽ sang phải`,"drawing-delete":`Xóa hình vẽ`}}}});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs/sheets-drawing-ui",
3
- "version": "1.0.0-alpha.6",
3
+ "version": "1.0.0-alpha.8",
4
4
  "private": false,
5
5
  "description": "Drawing UI integration for Univer Sheets.",
6
6
  "author": "DreamNum Co., Ltd. <developer@univer.ai>",
@@ -68,27 +68,27 @@
68
68
  "rxjs": ">=7.0.0"
69
69
  },
70
70
  "dependencies": {
71
- "@univerjs/core": "1.0.0-alpha.6",
72
- "@univerjs/docs": "1.0.0-alpha.6",
73
- "@univerjs/docs-ui": "1.0.0-alpha.6",
74
- "@univerjs/drawing": "1.0.0-alpha.6",
75
- "@univerjs/drawing-ui": "1.0.0-alpha.6",
76
- "@univerjs/sheets": "1.0.0-alpha.6",
77
- "@univerjs/design": "1.0.0-alpha.6",
78
- "@univerjs/docs-drawing": "1.0.0-alpha.6",
79
- "@univerjs/engine-render": "1.0.0-alpha.6",
80
- "@univerjs/sheets-ui": "1.0.0-alpha.6",
81
- "@univerjs/ui": "1.0.0-alpha.6",
82
- "@univerjs/sheets-drawing": "1.0.0-alpha.6"
71
+ "@univerjs/core": "1.0.0-alpha.8",
72
+ "@univerjs/docs": "1.0.0-alpha.8",
73
+ "@univerjs/design": "1.0.0-alpha.8",
74
+ "@univerjs/docs-drawing": "1.0.0-alpha.8",
75
+ "@univerjs/docs-ui": "1.0.0-alpha.8",
76
+ "@univerjs/drawing": "1.0.0-alpha.8",
77
+ "@univerjs/drawing-ui": "1.0.0-alpha.8",
78
+ "@univerjs/engine-render": "1.0.0-alpha.8",
79
+ "@univerjs/sheets": "1.0.0-alpha.8",
80
+ "@univerjs/sheets-drawing": "1.0.0-alpha.8",
81
+ "@univerjs/sheets-ui": "1.0.0-alpha.8",
82
+ "@univerjs/ui": "1.0.0-alpha.8"
83
83
  },
84
84
  "devDependencies": {
85
- "postcss": "^8.5.19",
85
+ "postcss": "^8.5.23",
86
86
  "react": "18.3.1",
87
87
  "rxjs": "^7.8.2",
88
88
  "tailwindcss": "3.4.18",
89
89
  "typescript": "^6.0.3",
90
90
  "vitest": "^4.1.10",
91
- "@univerjs-infra/shared": "1.0.0-alpha.6"
91
+ "@univerjs-infra/shared": "1.0.0-alpha.8"
92
92
  },
93
93
  "scripts": {
94
94
  "test": "vitest run",
@@ -1,55 +0,0 @@
1
- /**
2
- * Copyright 2023-present DreamNum Co., Ltd.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
- import type { Workbook } from '@univerjs/core';
17
- import type { IRenderContext, IRenderModule } from '@univerjs/engine-render';
18
- import { Disposable, ICommandService, IUniverInstanceService } from '@univerjs/core';
19
- import { IDrawingManagerService } from '@univerjs/drawing';
20
- import { SheetInterceptorService, SheetSkeletonService, SheetsSelectionsService } from '@univerjs/sheets';
21
- import { ISheetDrawingService } from '@univerjs/sheets-drawing';
22
- import { ISheetSelectionRenderService } from '@univerjs/sheets-ui';
23
- export declare class SheetDrawingTransformAffectedController extends Disposable implements IRenderModule {
24
- private readonly _context;
25
- private readonly _commandService;
26
- private readonly _sheetSkeletonService;
27
- private readonly _selectionRenderService;
28
- private readonly _sheetInterceptorService;
29
- private readonly _selectionManagerService;
30
- private readonly _sheetDrawingService;
31
- private readonly _drawingManagerService;
32
- private readonly _univerInstanceService;
33
- constructor(_context: IRenderContext<Workbook>, _commandService: ICommandService, _sheetSkeletonService: SheetSkeletonService, _selectionRenderService: ISheetSelectionRenderService, _sheetInterceptorService: SheetInterceptorService, _selectionManagerService: SheetsSelectionsService, _sheetDrawingService: ISheetDrawingService, _drawingManagerService: IDrawingManagerService, _univerInstanceService: IUniverInstanceService);
34
- private _sheetInterceptorListener;
35
- private _getRangeMoveUndo;
36
- private _getUpdateOrDeleteDrawings;
37
- private _remainDrawingSize;
38
- private _getDrawingUndoForColVisible;
39
- private _createUndoAndRedoMutation;
40
- private _getDrawingUndoForRowVisible;
41
- private _getDrawingUndoForRowAndColSize;
42
- private _getUnitIdAndSubUnitId;
43
- private _moveRangeInterceptor;
44
- private _moveRowInterceptor;
45
- private _moveColInterceptor;
46
- private _expandCol;
47
- private _shrinkCol;
48
- private _expandRow;
49
- private _shrinkRow;
50
- private _commandListener;
51
- private _clearDrawings;
52
- private _updateDrawings;
53
- private _sheetRefreshListener;
54
- private _refreshDrawingTransform;
55
- }