@univerjs/docs-drawing-ui 0.15.2-insiders.20260124-12fc7f0 → 0.15.3-insiders.20260131-b9b8805

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.
@@ -0,0 +1 @@
1
+ "use strict";const e={docImage:{title:"Obrázok",upload:{float:"Vložiť obrázok"},panel:{title:"Upraviť obrázok"}},"image-popup":{replace:"Nahradiť",delete:"Odstrániť",edit:"Upraviť",crop:"Orezať",reset:"Obnoviť veľkosť"},"image-text-wrap":{title:"Obtekanie textu",wrappingStyle:"Štýl obtekania",square:"Obdĺžnikové",topAndBottom:"Hore a dole",inline:"V riadku s textom",behindText:"Za textom",inFrontText:"Pred textom",wrapText:"Obtekať text",bothSide:"Obe strany",leftOnly:"Len ľavá",rightOnly:"Len pravá",distanceFromText:"Vzdialenosť od textu",top:"Hore (px)",left:"Vľavo (px)",bottom:"Dole (px)",right:"Vpravo (px)"},"image-position":{title:"Pozícia",horizontal:"Vodorovne",vertical:"Zvisle",absolutePosition:"Absolútna pozícia (px)",relativePosition:"Relatívna pozícia",toTheRightOf:"vpravo od",relativeTo:"vzhľadom na",bellow:"pod",options:"Možnosti",moveObjectWithText:"Presunúť objekt s textom",column:"Stĺpec",margin:"Okraj",page:"Strana",line:"Riadok",paragraph:"Odsek"},"update-status":{exceedMaxSize:"Veľkosť obrázka prekračuje limit, limit je {0}M",invalidImageType:"Neplatný typ obrázka",exceedMaxCount:"Naraz možno nahrať iba {0} obrázkov",invalidImage:"Neplatný obrázok"}};module.exports=e;
package/lib/es/index.js CHANGED
@@ -1,14 +1,14 @@
1
1
  var Pn = Object.defineProperty;
2
2
  var xn = (r, e, t) => e in r ? Pn(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
3
3
  var me = (r, e, t) => xn(r, typeof e != "symbol" ? e + "" : e, t);
4
- import { CommandType as q, ICommandService as V, IUniverInstanceService as z, TextX as _t, JSONX as $, MemoryCursor as Nn, TextXActionType as Y, IUndoRedoService as Kt, BuildTextUtils as Un, ArrangeTypeEnum as Ze, Tools as Ae, Inject as Z, IContextService as Yt, LocaleService as lt, Disposable as xe, WrapTextType as $e, PositionedObjectLayoutType as k, BooleanNumber as se, DrawingTypeEnum as Pe, ObjectRelativeFromV as W, ObjectRelativeFromH as J, FOCUSING_COMMON_DRAWINGS as nt, UniverInstanceType as ve, Direction as he, DisposableCollection as Ln, toDisposable as ze, fromEventSubject as Zt, generateRandomId as Qt, DocumentFlavor as pt, DOCS_ZEN_EDITOR_UNIT_ID_KEY as St, FOCUSING_DOC as Bn, FOCUSING_UNIVER_EDITOR as Fn, UndoCommand as kn, RedoCommand as Wn, Injector as Jt, DOC_DRAWING_PRINTING_COMPONENT_KEY as Gn, throttle as Et, COLORS as Hn, RxDisposable as Vn, isInternalEditorID as jn, LifecycleService as $n, LifecycleStages as Rt, DependentOn as zn, IConfigService as Xn, Plugin as qn, merge as Kn } from "@univerjs/core";
4
+ import { CommandType as q, ICommandService as V, IUniverInstanceService as z, TextX as _t, JSONX as $, MemoryCursor as Nn, TextXActionType as Y, IUndoRedoService as Kt, BuildTextUtils as Un, ArrangeTypeEnum as Ze, Tools as Ae, Inject as Z, LocaleService as lt, Disposable as xe, WrapTextType as $e, PositionedObjectLayoutType as k, BooleanNumber as se, DrawingTypeEnum as Pe, ObjectRelativeFromV as W, ObjectRelativeFromH as J, FOCUSING_COMMON_DRAWINGS as nt, IContextService as Yt, UniverInstanceType as ve, Direction as he, DisposableCollection as Ln, toDisposable as ze, fromEventSubject as Zt, generateRandomId as Qt, DocumentFlavor as pt, DOCS_ZEN_EDITOR_UNIT_ID_KEY as St, FOCUSING_DOC as Bn, FOCUSING_UNIVER_EDITOR as Fn, UndoCommand as kn, RedoCommand as Wn, Injector as Jt, DOC_DRAWING_PRINTING_COMPONENT_KEY as Gn, throttle as Et, COLORS as Hn, RxDisposable as Vn, isInternalEditorID as jn, LifecycleService as $n, LifecycleStages as Rt, DependentOn as zn, Plugin as Xn, merge as qn, IConfigService as Kn } from "@univerjs/core";
5
5
  import { IDocDrawingService as Ne, UniverDocsDrawingPlugin as Yn } from "@univerjs/docs-drawing";
6
6
  import { RichTextEditingMutation as ee, DocSelectionManagerService as Dt, DocSkeletonManagerService as te } from "@univerjs/docs";
7
7
  import { DocSelectionRenderService as Me, getRichTextEditPath as Xe, getCustomBlockIdsInSelections as Zn, docDrawingPositionToTransform as en, VIEWPORT_KEY as tn, SetDocZoomRatioOperation as nn, DocPrintInterceptorService as Qn, NodePositionConvertToCursor as At, getOneTextSelectionRange as Pt, getAnchorBounding as Jn, TEXT_RANGE_LAYER_INDEX as ei, getDocObject as ti, DocCanvasPopManagerService as ni, IEditorService as ii } from "@univerjs/docs-ui";
8
8
  import { IRenderManagerService as Q, DocumentEditArea as Fe, getCurrentTypeOfRenderer as ri, CURSOR_TYPE as xt, Liquid as rn, PageLayoutType as Nt, DocumentSkeletonPageType as Ut, Vector2 as si, Rect as oi, getColor as ai, TRANSFORM_CHANGE_OBSERVABLE_TYPE as ci } from "@univerjs/engine-render";
9
- import { MessageType as Lt, clsx as sn, InputNumber as Be, Select as Bt, Checkbox as di, RadioGroup as Ft, Radio as Te, render as gi, unmount as li } from "@univerjs/design";
10
- import { IImageIoService as ui, IDrawingManagerService as fe, DRAWING_IMAGE_ALLOW_IMAGE_LIST as hi, DRAWING_IMAGE_COUNT_LIMIT as kt, ImageUploadStatusType as mt, DRAWING_IMAGE_ALLOW_SIZE as fi, getImageSize as pi, getDrawingShapeKeyByDrawingSearch as mi, DRAWING_IMAGE_WIDTH_LIMIT as Wt, DRAWING_IMAGE_HEIGHT_LIMIT as Gt, UniverDrawingPlugin as wi } from "@univerjs/drawing";
11
- import { IMessageService as vi, ILocalFileService as Ii, ISidebarService as _i, CanvasFloatDomService as Si, useDependency as we, getMenuHiddenObservable as on, MenuItemType as an, RibbonInsertGroup as Di, KeyCode as ke, ComponentManager as cn, IMenuManagerService as Oi, IShortcutService as Ti, PrintFloatDomSingle as Mi, connectInjector as yi, UniverUIPlugin as bi } from "@univerjs/ui";
9
+ import { MessageType as Lt, InputNumber as Be, Select as Bt, Checkbox as di, clsx as sn, RadioGroup as Ft, Radio as Te, render as gi, unmount as li } from "@univerjs/design";
10
+ import { DRAWING_IMAGE_ALLOW_IMAGE_LIST as ui, DRAWING_IMAGE_COUNT_LIMIT as kt, ImageUploadStatusType as mt, DRAWING_IMAGE_ALLOW_SIZE as hi, getImageSize as fi, getDrawingShapeKeyByDrawingSearch as pi, DRAWING_IMAGE_WIDTH_LIMIT as Wt, DRAWING_IMAGE_HEIGHT_LIMIT as Gt, IImageIoService as mi, IDrawingManagerService as fe, UniverDrawingPlugin as wi } from "@univerjs/drawing";
11
+ import { IMessageService as vi, ILocalFileService as Ii, ISidebarService as _i, CanvasFloatDomService as Si, useDependency as we, MenuItemType as on, getMenuHiddenObservable as an, RibbonInsertGroup as Di, KeyCode as ke, ComponentManager as cn, IMenuManagerService as Oi, IShortcutService as Ti, PrintFloatDomSingle as Mi, connectInjector as yi, UniverUIPlugin as bi } from "@univerjs/ui";
12
12
  import { BehaviorSubject as Ot, debounceTime as dn, map as Ht, switchMap as Ci, of as Ei, Observable as Ri, takeUntil as Vt, filter as jt } from "rxjs";
13
13
  import { DrawingRenderService as gn, DrawingCommonPanel as Ai, ImageCropperObject as Pi, COMPONENT_IMAGE_POPUP_MENU as xi, OpenImageCropOperation as Ni, ImageResetSizeOperation as Ui, UniverDrawingUIPlugin as Li } from "@univerjs/drawing-ui";
14
14
  import { jsxs as X, jsx as M } from "react/jsx-runtime";
@@ -221,7 +221,7 @@ let it = class extends xe {
221
221
  async insertDocImage() {
222
222
  const r = await this._fileOpenerService.openFile({
223
223
  multiple: !0,
224
- accept: hi.map((t) => `.${t.replace("image/", "")}`).join(",")
224
+ accept: ui.map((t) => `.${t.replace("image/", "")}`).join(",")
225
225
  }), e = r.length;
226
226
  return e > kt ? (this._messageService.show({
227
227
  type: Lt.Error,
@@ -238,7 +238,7 @@ let it = class extends xe {
238
238
  let o = "";
239
239
  switch (s) {
240
240
  case mt.ERROR_EXCEED_SIZE:
241
- o = this._localeService.t("update-status.exceedMaxSize", String(fi / (1024 * 1024)));
241
+ o = this._localeService.t("update-status.exceedMaxSize", String(hi / (1024 * 1024)));
242
242
  break;
243
243
  case mt.ERROR_IMAGE_TYPE:
244
244
  o = this._localeService.t("update-status.invalidImageType");
@@ -258,7 +258,7 @@ let it = class extends xe {
258
258
  for (const i of e) {
259
259
  if (i == null)
260
260
  continue;
261
- const { imageId: s, imageSourceType: o, source: c, base64Cache: d } = i, { width: a, height: g, image: u } = await pi(d || "");
261
+ const { imageId: s, imageSourceType: o, source: c, base64Cache: d } = i, { width: a, height: g, image: u } = await fi(d || "");
262
262
  this._imageIoService.addImageSourceCache(s, o, u);
263
263
  let l = 1;
264
264
  if (a > Wt || g > Gt) {
@@ -402,7 +402,7 @@ let it = class extends xe {
402
402
  return;
403
403
  const i = r.getSnapshot(), { drawings: s = {} } = i, o = n.getEditArea() === Fe.BODY;
404
404
  for (const d of Object.keys(s)) {
405
- const a = s[d], g = mi({ unitId: t, drawingId: a.drawingId, subUnitId: t }), u = e.fuzzyMathObjects(g, !0);
405
+ const a = s[d], g = pi({ unitId: t, drawingId: a.drawingId, subUnitId: t }), u = e.fuzzyMathObjects(g, !0);
406
406
  if (u.length)
407
407
  for (const l of u) {
408
408
  e.detachTransformerFrom(l);
@@ -454,7 +454,7 @@ it = ki([
454
454
  le(1, V),
455
455
  le(2, Z(Dt)),
456
456
  le(3, Q),
457
- le(4, ui),
457
+ le(4, mi),
458
458
  le(5, Ne),
459
459
  le(6, fe),
460
460
  le(7, Yt),
@@ -1685,19 +1685,19 @@ const ji = "docs-drawing-ui.config", $t = {}, zt = -1e3, Xt = 1e3, $i = (r) => {
1685
1685
  function Ki(r) {
1686
1686
  return {
1687
1687
  id: yn,
1688
- type: an.SUBITEMS,
1688
+ type: on.SUBITEMS,
1689
1689
  icon: "AddImageIcon",
1690
1690
  tooltip: "docImage.title",
1691
1691
  disabled$: qi(r),
1692
- hidden$: on(r, ve.UNIVER_DOC, void 0, St)
1692
+ hidden$: an(r, ve.UNIVER_DOC, void 0, St)
1693
1693
  };
1694
1694
  }
1695
1695
  function Yi(r) {
1696
1696
  return {
1697
1697
  id: bn,
1698
1698
  title: "docImage.upload.float",
1699
- type: an.BUTTON,
1700
- hidden$: on(r, ve.UNIVER_DOC, void 0, St)
1699
+ type: on.BUTTON,
1700
+ hidden$: an(r, ve.UNIVER_DOC, void 0, St)
1701
1701
  };
1702
1702
  }
1703
1703
  const Zi = {
@@ -2841,10 +2841,10 @@ var Ir = Object.defineProperty, _r = Object.getOwnPropertyDescriptor, Sr = (r, e
2841
2841
  return i;
2842
2842
  }, vt = (r, e) => (t, n) => e(t, n, r), Cn = (r, e, t) => Sr(r, typeof e != "symbol" ? e + "" : e, t);
2843
2843
  const Or = "DOC_DRAWING_UI_PLUGIN";
2844
- let gt = class extends qn {
2844
+ let gt = class extends Xn {
2845
2845
  constructor(r = $t, e, t, n) {
2846
2846
  super(), this._config = r, this._injector = e, this._renderManagerSrv = t, this._configService = n;
2847
- const { ...i } = Kn(
2847
+ const { ...i } = qn(
2848
2848
  {},
2849
2849
  $t,
2850
2850
  this._config
@@ -2878,7 +2878,7 @@ gt = Dr([
2878
2878
  zn(Li, wi, Yn, bi),
2879
2879
  vt(1, Z(Jt)),
2880
2880
  vt(2, Q),
2881
- vt(3, Xn)
2881
+ vt(3, Kn)
2882
2882
  ], gt);
2883
2883
  export {
2884
2884
  Gi as ClearDocDrawingTransformerOperation,
@@ -0,0 +1,62 @@
1
+ const e = {
2
+ docImage: {
3
+ title: "Obrázok",
4
+ upload: {
5
+ float: "Vložiť obrázok"
6
+ },
7
+ panel: {
8
+ title: "Upraviť obrázok"
9
+ }
10
+ },
11
+ "image-popup": {
12
+ replace: "Nahradiť",
13
+ delete: "Odstrániť",
14
+ edit: "Upraviť",
15
+ crop: "Orezať",
16
+ reset: "Obnoviť veľkosť"
17
+ },
18
+ "image-text-wrap": {
19
+ title: "Obtekanie textu",
20
+ wrappingStyle: "Štýl obtekania",
21
+ square: "Obdĺžnikové",
22
+ topAndBottom: "Hore a dole",
23
+ inline: "V riadku s textom",
24
+ behindText: "Za textom",
25
+ inFrontText: "Pred textom",
26
+ wrapText: "Obtekať text",
27
+ bothSide: "Obe strany",
28
+ leftOnly: "Len ľavá",
29
+ rightOnly: "Len pravá",
30
+ distanceFromText: "Vzdialenosť od textu",
31
+ top: "Hore (px)",
32
+ left: "Vľavo (px)",
33
+ bottom: "Dole (px)",
34
+ right: "Vpravo (px)"
35
+ },
36
+ "image-position": {
37
+ title: "Pozícia",
38
+ horizontal: "Vodorovne",
39
+ vertical: "Zvisle",
40
+ absolutePosition: "Absolútna pozícia (px)",
41
+ relativePosition: "Relatívna pozícia",
42
+ toTheRightOf: "vpravo od",
43
+ relativeTo: "vzhľadom na",
44
+ bellow: "pod",
45
+ options: "Možnosti",
46
+ moveObjectWithText: "Presunúť objekt s textom",
47
+ column: "Stĺpec",
48
+ margin: "Okraj",
49
+ page: "Strana",
50
+ line: "Riadok",
51
+ paragraph: "Odsek"
52
+ },
53
+ "update-status": {
54
+ exceedMaxSize: "Veľkosť obrázka prekračuje limit, limit je {0}M",
55
+ invalidImageType: "Neplatný typ obrázka",
56
+ exceedMaxCount: "Naraz možno nahrať iba {0} obrázkov",
57
+ invalidImage: "Neplatný obrázok"
58
+ }
59
+ };
60
+ export {
61
+ e as default
62
+ };
package/lib/index.js CHANGED
@@ -1,14 +1,14 @@
1
1
  var Pn = Object.defineProperty;
2
2
  var xn = (r, e, t) => e in r ? Pn(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
3
3
  var me = (r, e, t) => xn(r, typeof e != "symbol" ? e + "" : e, t);
4
- import { CommandType as q, ICommandService as V, IUniverInstanceService as z, TextX as _t, JSONX as $, MemoryCursor as Nn, TextXActionType as Y, IUndoRedoService as Kt, BuildTextUtils as Un, ArrangeTypeEnum as Ze, Tools as Ae, Inject as Z, IContextService as Yt, LocaleService as lt, Disposable as xe, WrapTextType as $e, PositionedObjectLayoutType as k, BooleanNumber as se, DrawingTypeEnum as Pe, ObjectRelativeFromV as W, ObjectRelativeFromH as J, FOCUSING_COMMON_DRAWINGS as nt, UniverInstanceType as ve, Direction as he, DisposableCollection as Ln, toDisposable as ze, fromEventSubject as Zt, generateRandomId as Qt, DocumentFlavor as pt, DOCS_ZEN_EDITOR_UNIT_ID_KEY as St, FOCUSING_DOC as Bn, FOCUSING_UNIVER_EDITOR as Fn, UndoCommand as kn, RedoCommand as Wn, Injector as Jt, DOC_DRAWING_PRINTING_COMPONENT_KEY as Gn, throttle as Et, COLORS as Hn, RxDisposable as Vn, isInternalEditorID as jn, LifecycleService as $n, LifecycleStages as Rt, DependentOn as zn, IConfigService as Xn, Plugin as qn, merge as Kn } from "@univerjs/core";
4
+ import { CommandType as q, ICommandService as V, IUniverInstanceService as z, TextX as _t, JSONX as $, MemoryCursor as Nn, TextXActionType as Y, IUndoRedoService as Kt, BuildTextUtils as Un, ArrangeTypeEnum as Ze, Tools as Ae, Inject as Z, LocaleService as lt, Disposable as xe, WrapTextType as $e, PositionedObjectLayoutType as k, BooleanNumber as se, DrawingTypeEnum as Pe, ObjectRelativeFromV as W, ObjectRelativeFromH as J, FOCUSING_COMMON_DRAWINGS as nt, IContextService as Yt, UniverInstanceType as ve, Direction as he, DisposableCollection as Ln, toDisposable as ze, fromEventSubject as Zt, generateRandomId as Qt, DocumentFlavor as pt, DOCS_ZEN_EDITOR_UNIT_ID_KEY as St, FOCUSING_DOC as Bn, FOCUSING_UNIVER_EDITOR as Fn, UndoCommand as kn, RedoCommand as Wn, Injector as Jt, DOC_DRAWING_PRINTING_COMPONENT_KEY as Gn, throttle as Et, COLORS as Hn, RxDisposable as Vn, isInternalEditorID as jn, LifecycleService as $n, LifecycleStages as Rt, DependentOn as zn, Plugin as Xn, merge as qn, IConfigService as Kn } from "@univerjs/core";
5
5
  import { IDocDrawingService as Ne, UniverDocsDrawingPlugin as Yn } from "@univerjs/docs-drawing";
6
6
  import { RichTextEditingMutation as ee, DocSelectionManagerService as Dt, DocSkeletonManagerService as te } from "@univerjs/docs";
7
7
  import { DocSelectionRenderService as Me, getRichTextEditPath as Xe, getCustomBlockIdsInSelections as Zn, docDrawingPositionToTransform as en, VIEWPORT_KEY as tn, SetDocZoomRatioOperation as nn, DocPrintInterceptorService as Qn, NodePositionConvertToCursor as At, getOneTextSelectionRange as Pt, getAnchorBounding as Jn, TEXT_RANGE_LAYER_INDEX as ei, getDocObject as ti, DocCanvasPopManagerService as ni, IEditorService as ii } from "@univerjs/docs-ui";
8
8
  import { IRenderManagerService as Q, DocumentEditArea as Fe, getCurrentTypeOfRenderer as ri, CURSOR_TYPE as xt, Liquid as rn, PageLayoutType as Nt, DocumentSkeletonPageType as Ut, Vector2 as si, Rect as oi, getColor as ai, TRANSFORM_CHANGE_OBSERVABLE_TYPE as ci } from "@univerjs/engine-render";
9
- import { MessageType as Lt, clsx as sn, InputNumber as Be, Select as Bt, Checkbox as di, RadioGroup as Ft, Radio as Te, render as gi, unmount as li } from "@univerjs/design";
10
- import { IImageIoService as ui, IDrawingManagerService as fe, DRAWING_IMAGE_ALLOW_IMAGE_LIST as hi, DRAWING_IMAGE_COUNT_LIMIT as kt, ImageUploadStatusType as mt, DRAWING_IMAGE_ALLOW_SIZE as fi, getImageSize as pi, getDrawingShapeKeyByDrawingSearch as mi, DRAWING_IMAGE_WIDTH_LIMIT as Wt, DRAWING_IMAGE_HEIGHT_LIMIT as Gt, UniverDrawingPlugin as wi } from "@univerjs/drawing";
11
- import { IMessageService as vi, ILocalFileService as Ii, ISidebarService as _i, CanvasFloatDomService as Si, useDependency as we, getMenuHiddenObservable as on, MenuItemType as an, RibbonInsertGroup as Di, KeyCode as ke, ComponentManager as cn, IMenuManagerService as Oi, IShortcutService as Ti, PrintFloatDomSingle as Mi, connectInjector as yi, UniverUIPlugin as bi } from "@univerjs/ui";
9
+ import { MessageType as Lt, InputNumber as Be, Select as Bt, Checkbox as di, clsx as sn, RadioGroup as Ft, Radio as Te, render as gi, unmount as li } from "@univerjs/design";
10
+ import { DRAWING_IMAGE_ALLOW_IMAGE_LIST as ui, DRAWING_IMAGE_COUNT_LIMIT as kt, ImageUploadStatusType as mt, DRAWING_IMAGE_ALLOW_SIZE as hi, getImageSize as fi, getDrawingShapeKeyByDrawingSearch as pi, DRAWING_IMAGE_WIDTH_LIMIT as Wt, DRAWING_IMAGE_HEIGHT_LIMIT as Gt, IImageIoService as mi, IDrawingManagerService as fe, UniverDrawingPlugin as wi } from "@univerjs/drawing";
11
+ import { IMessageService as vi, ILocalFileService as Ii, ISidebarService as _i, CanvasFloatDomService as Si, useDependency as we, MenuItemType as on, getMenuHiddenObservable as an, RibbonInsertGroup as Di, KeyCode as ke, ComponentManager as cn, IMenuManagerService as Oi, IShortcutService as Ti, PrintFloatDomSingle as Mi, connectInjector as yi, UniverUIPlugin as bi } from "@univerjs/ui";
12
12
  import { BehaviorSubject as Ot, debounceTime as dn, map as Ht, switchMap as Ci, of as Ei, Observable as Ri, takeUntil as Vt, filter as jt } from "rxjs";
13
13
  import { DrawingRenderService as gn, DrawingCommonPanel as Ai, ImageCropperObject as Pi, COMPONENT_IMAGE_POPUP_MENU as xi, OpenImageCropOperation as Ni, ImageResetSizeOperation as Ui, UniverDrawingUIPlugin as Li } from "@univerjs/drawing-ui";
14
14
  import { jsxs as X, jsx as M } from "react/jsx-runtime";
@@ -221,7 +221,7 @@ let it = class extends xe {
221
221
  async insertDocImage() {
222
222
  const r = await this._fileOpenerService.openFile({
223
223
  multiple: !0,
224
- accept: hi.map((t) => `.${t.replace("image/", "")}`).join(",")
224
+ accept: ui.map((t) => `.${t.replace("image/", "")}`).join(",")
225
225
  }), e = r.length;
226
226
  return e > kt ? (this._messageService.show({
227
227
  type: Lt.Error,
@@ -238,7 +238,7 @@ let it = class extends xe {
238
238
  let o = "";
239
239
  switch (s) {
240
240
  case mt.ERROR_EXCEED_SIZE:
241
- o = this._localeService.t("update-status.exceedMaxSize", String(fi / (1024 * 1024)));
241
+ o = this._localeService.t("update-status.exceedMaxSize", String(hi / (1024 * 1024)));
242
242
  break;
243
243
  case mt.ERROR_IMAGE_TYPE:
244
244
  o = this._localeService.t("update-status.invalidImageType");
@@ -258,7 +258,7 @@ let it = class extends xe {
258
258
  for (const i of e) {
259
259
  if (i == null)
260
260
  continue;
261
- const { imageId: s, imageSourceType: o, source: c, base64Cache: d } = i, { width: a, height: g, image: u } = await pi(d || "");
261
+ const { imageId: s, imageSourceType: o, source: c, base64Cache: d } = i, { width: a, height: g, image: u } = await fi(d || "");
262
262
  this._imageIoService.addImageSourceCache(s, o, u);
263
263
  let l = 1;
264
264
  if (a > Wt || g > Gt) {
@@ -402,7 +402,7 @@ let it = class extends xe {
402
402
  return;
403
403
  const i = r.getSnapshot(), { drawings: s = {} } = i, o = n.getEditArea() === Fe.BODY;
404
404
  for (const d of Object.keys(s)) {
405
- const a = s[d], g = mi({ unitId: t, drawingId: a.drawingId, subUnitId: t }), u = e.fuzzyMathObjects(g, !0);
405
+ const a = s[d], g = pi({ unitId: t, drawingId: a.drawingId, subUnitId: t }), u = e.fuzzyMathObjects(g, !0);
406
406
  if (u.length)
407
407
  for (const l of u) {
408
408
  e.detachTransformerFrom(l);
@@ -454,7 +454,7 @@ it = ki([
454
454
  le(1, V),
455
455
  le(2, Z(Dt)),
456
456
  le(3, Q),
457
- le(4, ui),
457
+ le(4, mi),
458
458
  le(5, Ne),
459
459
  le(6, fe),
460
460
  le(7, Yt),
@@ -1685,19 +1685,19 @@ const ji = "docs-drawing-ui.config", $t = {}, zt = -1e3, Xt = 1e3, $i = (r) => {
1685
1685
  function Ki(r) {
1686
1686
  return {
1687
1687
  id: yn,
1688
- type: an.SUBITEMS,
1688
+ type: on.SUBITEMS,
1689
1689
  icon: "AddImageIcon",
1690
1690
  tooltip: "docImage.title",
1691
1691
  disabled$: qi(r),
1692
- hidden$: on(r, ve.UNIVER_DOC, void 0, St)
1692
+ hidden$: an(r, ve.UNIVER_DOC, void 0, St)
1693
1693
  };
1694
1694
  }
1695
1695
  function Yi(r) {
1696
1696
  return {
1697
1697
  id: bn,
1698
1698
  title: "docImage.upload.float",
1699
- type: an.BUTTON,
1700
- hidden$: on(r, ve.UNIVER_DOC, void 0, St)
1699
+ type: on.BUTTON,
1700
+ hidden$: an(r, ve.UNIVER_DOC, void 0, St)
1701
1701
  };
1702
1702
  }
1703
1703
  const Zi = {
@@ -2841,10 +2841,10 @@ var Ir = Object.defineProperty, _r = Object.getOwnPropertyDescriptor, Sr = (r, e
2841
2841
  return i;
2842
2842
  }, vt = (r, e) => (t, n) => e(t, n, r), Cn = (r, e, t) => Sr(r, typeof e != "symbol" ? e + "" : e, t);
2843
2843
  const Or = "DOC_DRAWING_UI_PLUGIN";
2844
- let gt = class extends qn {
2844
+ let gt = class extends Xn {
2845
2845
  constructor(r = $t, e, t, n) {
2846
2846
  super(), this._config = r, this._injector = e, this._renderManagerSrv = t, this._configService = n;
2847
- const { ...i } = Kn(
2847
+ const { ...i } = qn(
2848
2848
  {},
2849
2849
  $t,
2850
2850
  this._config
@@ -2878,7 +2878,7 @@ gt = Dr([
2878
2878
  zn(Li, wi, Yn, bi),
2879
2879
  vt(1, Z(Jt)),
2880
2880
  vt(2, Q),
2881
- vt(3, Xn)
2881
+ vt(3, Kn)
2882
2882
  ], gt);
2883
2883
  export {
2884
2884
  Gi as ClearDocDrawingTransformerOperation,
@@ -0,0 +1,62 @@
1
+ const e = {
2
+ docImage: {
3
+ title: "Obrázok",
4
+ upload: {
5
+ float: "Vložiť obrázok"
6
+ },
7
+ panel: {
8
+ title: "Upraviť obrázok"
9
+ }
10
+ },
11
+ "image-popup": {
12
+ replace: "Nahradiť",
13
+ delete: "Odstrániť",
14
+ edit: "Upraviť",
15
+ crop: "Orezať",
16
+ reset: "Obnoviť veľkosť"
17
+ },
18
+ "image-text-wrap": {
19
+ title: "Obtekanie textu",
20
+ wrappingStyle: "Štýl obtekania",
21
+ square: "Obdĺžnikové",
22
+ topAndBottom: "Hore a dole",
23
+ inline: "V riadku s textom",
24
+ behindText: "Za textom",
25
+ inFrontText: "Pred textom",
26
+ wrapText: "Obtekať text",
27
+ bothSide: "Obe strany",
28
+ leftOnly: "Len ľavá",
29
+ rightOnly: "Len pravá",
30
+ distanceFromText: "Vzdialenosť od textu",
31
+ top: "Hore (px)",
32
+ left: "Vľavo (px)",
33
+ bottom: "Dole (px)",
34
+ right: "Vpravo (px)"
35
+ },
36
+ "image-position": {
37
+ title: "Pozícia",
38
+ horizontal: "Vodorovne",
39
+ vertical: "Zvisle",
40
+ absolutePosition: "Absolútna pozícia (px)",
41
+ relativePosition: "Relatívna pozícia",
42
+ toTheRightOf: "vpravo od",
43
+ relativeTo: "vzhľadom na",
44
+ bellow: "pod",
45
+ options: "Možnosti",
46
+ moveObjectWithText: "Presunúť objekt s textom",
47
+ column: "Stĺpec",
48
+ margin: "Okraj",
49
+ page: "Strana",
50
+ line: "Riadok",
51
+ paragraph: "Odsek"
52
+ },
53
+ "update-status": {
54
+ exceedMaxSize: "Veľkosť obrázka prekračuje limit, limit je {0}M",
55
+ invalidImageType: "Neplatný typ obrázka",
56
+ exceedMaxCount: "Naraz možno nahrať iba {0} obrázkov",
57
+ invalidImage: "Neplatný obrázok"
58
+ }
59
+ };
60
+ export {
61
+ e as default
62
+ };
@@ -0,0 +1,3 @@
1
+ import { default as enUS } from './en-US';
2
+ declare const locale: typeof enUS;
3
+ export default locale;
@@ -0,0 +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.UniverDocsDrawingUiSkSK=t())})(this,(function(){"use strict";return{docImage:{title:"Obrázok",upload:{float:"Vložiť obrázok"},panel:{title:"Upraviť obrázok"}},"image-popup":{replace:"Nahradiť",delete:"Odstrániť",edit:"Upraviť",crop:"Orezať",reset:"Obnoviť veľkosť"},"image-text-wrap":{title:"Obtekanie textu",wrappingStyle:"Štýl obtekania",square:"Obdĺžnikové",topAndBottom:"Hore a dole",inline:"V riadku s textom",behindText:"Za textom",inFrontText:"Pred textom",wrapText:"Obtekať text",bothSide:"Obe strany",leftOnly:"Len ľavá",rightOnly:"Len pravá",distanceFromText:"Vzdialenosť od textu",top:"Hore (px)",left:"Vľavo (px)",bottom:"Dole (px)",right:"Vpravo (px)"},"image-position":{title:"Pozícia",horizontal:"Vodorovne",vertical:"Zvisle",absolutePosition:"Absolútna pozícia (px)",relativePosition:"Relatívna pozícia",toTheRightOf:"vpravo od",relativeTo:"vzhľadom na",bellow:"pod",options:"Možnosti",moveObjectWithText:"Presunúť objekt s textom",column:"Stĺpec",margin:"Okraj",page:"Strana",line:"Riadok",paragraph:"Odsek"},"update-status":{exceedMaxSize:"Veľkosť obrázka prekračuje limit, limit je {0}M",invalidImageType:"Neplatný typ obrázka",exceedMaxCount:"Naraz možno nahrať iba {0} obrázkov",invalidImage:"Neplatný obrázok"}}}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs/docs-drawing-ui",
3
- "version": "0.15.2-insiders.20260124-12fc7f0",
3
+ "version": "0.15.3-insiders.20260131-b9b8805",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -52,15 +52,15 @@
52
52
  "rxjs": ">=7.0.0"
53
53
  },
54
54
  "dependencies": {
55
- "@univerjs/core": "0.15.2-insiders.20260124-12fc7f0",
56
- "@univerjs/docs": "0.15.2-insiders.20260124-12fc7f0",
57
- "@univerjs/design": "0.15.2-insiders.20260124-12fc7f0",
58
- "@univerjs/docs-drawing": "0.15.2-insiders.20260124-12fc7f0",
59
- "@univerjs/docs-ui": "0.15.2-insiders.20260124-12fc7f0",
60
- "@univerjs/drawing-ui": "0.15.2-insiders.20260124-12fc7f0",
61
- "@univerjs/drawing": "0.15.2-insiders.20260124-12fc7f0",
62
- "@univerjs/engine-render": "0.15.2-insiders.20260124-12fc7f0",
63
- "@univerjs/ui": "0.15.2-insiders.20260124-12fc7f0"
55
+ "@univerjs/core": "0.15.3-insiders.20260131-b9b8805",
56
+ "@univerjs/design": "0.15.3-insiders.20260131-b9b8805",
57
+ "@univerjs/docs": "0.15.3-insiders.20260131-b9b8805",
58
+ "@univerjs/drawing-ui": "0.15.3-insiders.20260131-b9b8805",
59
+ "@univerjs/docs-drawing": "0.15.3-insiders.20260131-b9b8805",
60
+ "@univerjs/docs-ui": "0.15.3-insiders.20260131-b9b8805",
61
+ "@univerjs/engine-render": "0.15.3-insiders.20260131-b9b8805",
62
+ "@univerjs/drawing": "0.15.3-insiders.20260131-b9b8805",
63
+ "@univerjs/ui": "0.15.3-insiders.20260131-b9b8805"
64
64
  },
65
65
  "devDependencies": {
66
66
  "postcss": "^8.5.6",
@@ -69,8 +69,8 @@
69
69
  "tailwindcss": "3.4.18",
70
70
  "typescript": "^5.9.3",
71
71
  "vite": "^7.3.1",
72
- "vitest": "^4.0.16",
73
- "@univerjs-infra/shared": "0.15.2"
72
+ "vitest": "^4.0.18",
73
+ "@univerjs-infra/shared": "0.15.3"
74
74
  },
75
75
  "scripts": {
76
76
  "test": "vitest run",