@univerjs/sheets-numfmt-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={sheet:{numfmt:{title:"Formát čísla",numfmtType:"Typy formátov",cancel:"Zrušiť",confirm:"Potvrdiť",general:"Všeobecný",accounting:"Účtovnícky",text:"Text",number:"Číslo",percent:"Percento",scientific:"Vedecký",currency:"Mena",date:"Dátum",time:"Čas",thousandthPercentile:"Oddeľovač tisícov",preview:"Náhľad",dateTime:"Dátum a čas",decimalLength:"Počet desatinných miest",currencyType:"Symbol meny",moreFmt:"Formáty",financialValue:"Finančná hodnota",roundingCurrency:"Zaokrúhľovanie meny",timeDuration:"Trvanie",currencyDes:"Formát meny sa používa na zobrazenie bežných menových hodnôt. Účtovnícky formát zarovná stĺpec hodnôt podľa desatinných miest.",accountingDes:"Účtovnícky formát čísiel zarovná stĺpec hodnôt so symbolmi meny a desatinnými miestami.",dateType:"Typ dátumu",dateDes:"Formát dátumu zobrazuje hodnoty dátumu a času ako dátumy.",negType:"Typ záporného čísla",generalDes:"Všeobecný formát neobsahuje žiadny špecifický formát čísla.",thousandthPercentileDes:"Percentilný formát sa používa na reprezentáciu bežných čísel. Menové a účtovnícke formáty poskytujú špecializovaný formát pre výpočty menových hodnôt.",addDecimal:"Zvýšiť počet desatinných miest",subtractDecimal:"Znížiť počet desatinných miest",customFormat:"Vlastný formát",customFormatDes:"Vytvorte vlastné formáty čísiel na základe existujúcich formátov."}}};module.exports=e;
package/lib/es/index.js CHANGED
@@ -1,12 +1,12 @@
1
1
  var ut = Object.defineProperty;
2
2
  var mt = (e, t, r) => t in e ? ut(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
3
  var X = (e, t, r) => mt(e, typeof t != "symbol" ? t + "" : t, r);
4
- import { Inject as C, LocaleService as E, IConfigService as ke, Disposable as te, isTextFormat as Ue, Tools as dt, isRealNum as De, CommandType as Fe, ILocalStorageService as Le, isPatternEqualWithoutDecimal as ne, numfmt as ht, ThemeService as vt, IUniverInstanceService as he, ICommandService as ve, UniverInstanceType as T, CellValueType as P, toDisposable as me, DisposableCollection as ft, InterceptorEffectEnum as Te, Range as Ae, Injector as He, Optional as pt, getNumfmtParseValueFilter as gt, willLoseNumericPrecision as _t, fromCallback as St, isDefaultFormat as Ct, DEFAULT_TEXT_FORMAT_EXCEL as yt, DependentOn as bt, Plugin as It, merge as Nt, registerDependencies as Et, touchDependencies as Tt } from "@univerjs/core";
4
+ import { Inject as C, LocaleService as E, Disposable as te, isTextFormat as ke, Tools as dt, isRealNum as Ue, IConfigService as De, CommandType as Fe, ILocalStorageService as Le, isPatternEqualWithoutDecimal as ne, numfmt as ht, ThemeService as vt, UniverInstanceType as T, CellValueType as P, toDisposable as me, DisposableCollection as ft, InterceptorEffectEnum as Te, Range as Ae, IUniverInstanceService as he, ICommandService as ve, Injector as He, Optional as pt, getNumfmtParseValueFilter as gt, willLoseNumericPrecision as _t, fromCallback as St, isDefaultFormat as Ct, DEFAULT_TEXT_FORMAT_EXCEL as yt, DependentOn as bt, Plugin as It, merge as Nt, registerDependencies as Et, touchDependencies as Tt } from "@univerjs/core";
5
5
  import { IRenderManagerService as je } from "@univerjs/engine-render";
6
6
  import { SHEETS_NUMFMT_PLUGIN_CONFIG_KEY as Mt, currencySymbols as Me, getDecimalFromPattern as q, getCurrencyType as B, setPatternDecimal as $, getCurrencyFormatOptions as se, CURRENCYFORMAT as wt, DATEFMTLISG as Pt, NUMBERFORMAT as xt, getDateFormatOptions as Be, getNumberFormatOptions as Ve, isPatternHasDecimal as Rt, SheetsNumfmtCellContentController as We, getPatternPreviewIgnoreGeneral as $t, getPatternType as fe, SetNumfmtCommand as Ge, SubtractDecimalCommand as Ke, AddDecimalCommand as Ye, SetCurrencyCommand as Ze, getCurrencySymbolIconByLocale as we, SetPercentCommand as ze, getCurrencySymbolByLocale as Ot, localeCurrencySymbolMap as kt, getPatternPreview as Ut, UniverSheetsNumfmtPlugin as Dt } from "@univerjs/sheets-numfmt";
7
7
  import { HoverManagerService as Ft, CellAlertManagerService as Lt, CellAlertType as At, SheetSkeletonManagerService as Ht, IEditorBridgeService as jt, getCurrentRangeDisable$ as V, deriveStateFromActiveSheet$ as Bt, UniverSheetsUIPlugin as Vt } from "@univerjs/sheets-ui";
8
8
  import { INumfmtService as pe, SheetInterceptorService as Xe, SheetsSelectionsService as ge, INTERCEPTOR_POINT as Wt, RemoveNumfmtMutation as _e, SetNumfmtMutation as Se, BEFORE_CELL_EDIT as Gt, AFTER_CELL_EDIT as Kt, SetRangeValuesCommand as Yt, transformCellsToRange as Zt, factorySetNumfmtUndoMutation as zt, factoryRemoveNumfmtUndoMutation as Xt, RangeProtectionPermissionEditPoint as W, WorksheetEditPermission as G, WorksheetSetCellStylePermission as K, WorkbookEditablePermission as Y } from "@univerjs/sheets";
9
- import { IZenZoneService as qt, useDependency as b, ComponentManager as qe, ISidebarService as Jt, getMenuHiddenObservable as Z, MenuItemType as z, ILayoutService as Qt, RibbonStartGroup as en, IMenuManagerService as tn } from "@univerjs/ui";
9
+ import { IZenZoneService as qt, useDependency as b, ComponentManager as qe, ISidebarService as Jt, MenuItemType as Z, getMenuHiddenObservable as z, ILayoutService as Qt, RibbonStartGroup as en, IMenuManagerService as tn } from "@univerjs/ui";
10
10
  import { debounceTime as nn, merge as Je, Observable as L, combineLatest as rn, filter as sn } from "rxjs";
11
11
  import { map as on, switchMap as cn, tap as an, debounceTime as ln } from "rxjs/operators";
12
12
  import { jsxs as y, jsx as h } from "react/jsx-runtime";
@@ -44,7 +44,7 @@ let de = class extends te {
44
44
  this._hideAlert();
45
45
  return;
46
46
  }
47
- if (Ue(c.pattern) && dt.isDefine(a == null ? void 0 : a.v) && De(a.v)) {
47
+ if (ke(c.pattern) && dt.isDefine(a == null ? void 0 : a.v) && Ue(a.v)) {
48
48
  if ((t = this._configService.getConfig(Mt)) != null && t.disableTextFormatAlert)
49
49
  return;
50
50
  const u = this._cellAlertManagerService.currentAlert.get(oe), l = (r = u == null ? void 0 : u.alert) == null ? void 0 : r.location;
@@ -82,7 +82,7 @@ de = Sn([
82
82
  U(3, C(E)),
83
83
  U(4, qt),
84
84
  U(5, C(pe)),
85
- U(6, ke)
85
+ U(6, De)
86
86
  ], de);
87
87
  const ce = {
88
88
  id: "sheet.operation.close.numfmt.panel",
@@ -758,7 +758,7 @@ let J = class extends te {
758
758
  case "grouped":
759
759
  case "number": {
760
760
  const c = r.worksheet.getCellRaw(i, s);
761
- return (c == null ? void 0 : c.t) === P.NUMBER && (c == null ? void 0 : c.v) !== void 0 && c.v !== null && De(c.v) && (c.v = gn(Number(c.v))), n && n(c);
761
+ return (c == null ? void 0 : c.t) === P.NUMBER && (c == null ? void 0 : c.v) !== void 0 && c.v !== null && Ue(c.v) && (c.v = gn(Number(c.v))), n && n(c);
762
762
  }
763
763
  default:
764
764
  return n && n(t);
@@ -791,7 +791,7 @@ let J = class extends te {
791
791
  r.row,
792
792
  r.col
793
793
  ), s = r.worksheet.getCellRaw(r.row, r.col);
794
- if (Ue(i == null ? void 0 : i.pattern) || t.t === P.FORCE_STRING)
794
+ if (ke(i == null ? void 0 : i.pattern) || t.t === P.FORCE_STRING)
795
795
  return n(t);
796
796
  const o = (a = t.p) == null ? void 0 : a.body, m = (l = (u = t == null ? void 0 : t.p) == null ? void 0 : u.body) != null && l.dataStream ? t.p.body.dataStream.replace(/\r\n$/, "") : String(t.v), c = gt(m);
797
797
  if (o)
@@ -981,32 +981,32 @@ const it = (e) => [
981
981
  id: Ze.id,
982
982
  title: "sheet.numfmt.currency",
983
983
  tooltip: "sheet.numfmt.currency",
984
- type: z.BUTTON,
985
- hidden$: Z(e, T.UNIVER_SHEET),
984
+ type: Z.BUTTON,
985
+ hidden$: z(e, T.UNIVER_SHEET),
986
986
  disabled$: V(e, { workbookTypes: [Y], worksheetTypes: [G, K], rangeTypes: [W] })
987
987
  }), Zn = (e) => ({
988
988
  icon: "AddDigitsIcon",
989
989
  id: Ye.id,
990
990
  title: "sheet.numfmt.addDecimal",
991
991
  tooltip: "sheet.numfmt.addDecimal",
992
- type: z.BUTTON,
993
- hidden$: Z(e, T.UNIVER_SHEET),
992
+ type: Z.BUTTON,
993
+ hidden$: z(e, T.UNIVER_SHEET),
994
994
  disabled$: V(e, { workbookTypes: [Y], worksheetTypes: [G, K], rangeTypes: [W] })
995
995
  }), zn = (e) => ({
996
996
  icon: "ReduceDigitsIcon",
997
997
  id: Ke.id,
998
998
  title: "sheet.numfmt.subtractDecimal",
999
999
  tooltip: "sheet.numfmt.subtractDecimal",
1000
- type: z.BUTTON,
1001
- hidden$: Z(e, T.UNIVER_SHEET),
1000
+ type: Z.BUTTON,
1001
+ hidden$: z(e, T.UNIVER_SHEET),
1002
1002
  disabled$: V(e, { workbookTypes: [Y], worksheetTypes: [G, K], rangeTypes: [W] })
1003
1003
  }), Xn = (e) => ({
1004
1004
  icon: "PercentIcon",
1005
1005
  id: ze.id,
1006
1006
  title: "sheet.numfmt.percent",
1007
1007
  tooltip: "sheet.numfmt.percent",
1008
- type: z.BUTTON,
1009
- hidden$: Z(e, T.UNIVER_SHEET),
1008
+ type: Z.BUTTON,
1009
+ hidden$: z(e, T.UNIVER_SHEET),
1010
1010
  disabled$: V(e, { workbookTypes: [Y], worksheetTypes: [G, K], rangeTypes: [W] })
1011
1011
  }), qn = (e) => {
1012
1012
  const t = e.get(he), r = e.get(ve), n = e.get(E), i = e.get(ge), s = [_e.id, Se.id], o = Bt(
@@ -1043,7 +1043,7 @@ const it = (e) => [
1043
1043
  label: st,
1044
1044
  id: A.id,
1045
1045
  tooltip: "sheet.numfmt.title",
1046
- type: z.SELECTOR,
1046
+ type: Z.SELECTOR,
1047
1047
  slot: !0,
1048
1048
  selections: [{
1049
1049
  label: {
@@ -1053,7 +1053,7 @@ const it = (e) => [
1053
1053
  }
1054
1054
  }],
1055
1055
  value$: o,
1056
- hidden$: Z(e, T.UNIVER_SHEET),
1056
+ hidden$: z(e, T.UNIVER_SHEET),
1057
1057
  disabled$: V(e, { workbookTypes: [Y], worksheetTypes: [K, G], rangeTypes: [W] })
1058
1058
  };
1059
1059
  }, st = "sheet.numfmt.moreNumfmtType", ot = "sheet.numfmt.moreNumfmtType.options";
@@ -1194,7 +1194,7 @@ ct(ee, "type", T.UNIVER_SHEET);
1194
1194
  ee = or([
1195
1195
  bt(Vt, Dt),
1196
1196
  ue(1, C(He)),
1197
- ue(2, ke),
1197
+ ue(2, De),
1198
1198
  ue(3, je)
1199
1199
  ], ee);
1200
1200
  export {
@@ -0,0 +1,42 @@
1
+ const e = {
2
+ sheet: {
3
+ numfmt: {
4
+ title: "Formát čísla",
5
+ numfmtType: "Typy formátov",
6
+ cancel: "Zrušiť",
7
+ confirm: "Potvrdiť",
8
+ general: "Všeobecný",
9
+ accounting: "Účtovnícky",
10
+ text: "Text",
11
+ number: "Číslo",
12
+ percent: "Percento",
13
+ scientific: "Vedecký",
14
+ currency: "Mena",
15
+ date: "Dátum",
16
+ time: "Čas",
17
+ thousandthPercentile: "Oddeľovač tisícov",
18
+ preview: "Náhľad",
19
+ dateTime: "Dátum a čas",
20
+ decimalLength: "Počet desatinných miest",
21
+ currencyType: "Symbol meny",
22
+ moreFmt: "Formáty",
23
+ financialValue: "Finančná hodnota",
24
+ roundingCurrency: "Zaokrúhľovanie meny",
25
+ timeDuration: "Trvanie",
26
+ currencyDes: "Formát meny sa používa na zobrazenie bežných menových hodnôt. Účtovnícky formát zarovná stĺpec hodnôt podľa desatinných miest.",
27
+ accountingDes: "Účtovnícky formát čísiel zarovná stĺpec hodnôt so symbolmi meny a desatinnými miestami.",
28
+ dateType: "Typ dátumu",
29
+ dateDes: "Formát dátumu zobrazuje hodnoty dátumu a času ako dátumy.",
30
+ negType: "Typ záporného čísla",
31
+ generalDes: "Všeobecný formát neobsahuje žiadny špecifický formát čísla.",
32
+ thousandthPercentileDes: "Percentilný formát sa používa na reprezentáciu bežných čísel. Menové a účtovnícke formáty poskytujú špecializovaný formát pre výpočty menových hodnôt.",
33
+ addDecimal: "Zvýšiť počet desatinných miest",
34
+ subtractDecimal: "Znížiť počet desatinných miest",
35
+ customFormat: "Vlastný formát",
36
+ customFormatDes: "Vytvorte vlastné formáty čísiel na základe existujúcich formátov."
37
+ }
38
+ }
39
+ };
40
+ export {
41
+ e as default
42
+ };
package/lib/index.js CHANGED
@@ -1,12 +1,12 @@
1
1
  var ut = Object.defineProperty;
2
2
  var mt = (e, t, r) => t in e ? ut(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
3
  var X = (e, t, r) => mt(e, typeof t != "symbol" ? t + "" : t, r);
4
- import { Inject as C, LocaleService as E, IConfigService as ke, Disposable as te, isTextFormat as Ue, Tools as dt, isRealNum as De, CommandType as Fe, ILocalStorageService as Le, isPatternEqualWithoutDecimal as ne, numfmt as ht, ThemeService as vt, IUniverInstanceService as he, ICommandService as ve, UniverInstanceType as T, CellValueType as P, toDisposable as me, DisposableCollection as ft, InterceptorEffectEnum as Te, Range as Ae, Injector as He, Optional as pt, getNumfmtParseValueFilter as gt, willLoseNumericPrecision as _t, fromCallback as St, isDefaultFormat as Ct, DEFAULT_TEXT_FORMAT_EXCEL as yt, DependentOn as bt, Plugin as It, merge as Nt, registerDependencies as Et, touchDependencies as Tt } from "@univerjs/core";
4
+ import { Inject as C, LocaleService as E, Disposable as te, isTextFormat as ke, Tools as dt, isRealNum as Ue, IConfigService as De, CommandType as Fe, ILocalStorageService as Le, isPatternEqualWithoutDecimal as ne, numfmt as ht, ThemeService as vt, UniverInstanceType as T, CellValueType as P, toDisposable as me, DisposableCollection as ft, InterceptorEffectEnum as Te, Range as Ae, IUniverInstanceService as he, ICommandService as ve, Injector as He, Optional as pt, getNumfmtParseValueFilter as gt, willLoseNumericPrecision as _t, fromCallback as St, isDefaultFormat as Ct, DEFAULT_TEXT_FORMAT_EXCEL as yt, DependentOn as bt, Plugin as It, merge as Nt, registerDependencies as Et, touchDependencies as Tt } from "@univerjs/core";
5
5
  import { IRenderManagerService as je } from "@univerjs/engine-render";
6
6
  import { SHEETS_NUMFMT_PLUGIN_CONFIG_KEY as Mt, currencySymbols as Me, getDecimalFromPattern as q, getCurrencyType as B, setPatternDecimal as $, getCurrencyFormatOptions as se, CURRENCYFORMAT as wt, DATEFMTLISG as Pt, NUMBERFORMAT as xt, getDateFormatOptions as Be, getNumberFormatOptions as Ve, isPatternHasDecimal as Rt, SheetsNumfmtCellContentController as We, getPatternPreviewIgnoreGeneral as $t, getPatternType as fe, SetNumfmtCommand as Ge, SubtractDecimalCommand as Ke, AddDecimalCommand as Ye, SetCurrencyCommand as Ze, getCurrencySymbolIconByLocale as we, SetPercentCommand as ze, getCurrencySymbolByLocale as Ot, localeCurrencySymbolMap as kt, getPatternPreview as Ut, UniverSheetsNumfmtPlugin as Dt } from "@univerjs/sheets-numfmt";
7
7
  import { HoverManagerService as Ft, CellAlertManagerService as Lt, CellAlertType as At, SheetSkeletonManagerService as Ht, IEditorBridgeService as jt, getCurrentRangeDisable$ as V, deriveStateFromActiveSheet$ as Bt, UniverSheetsUIPlugin as Vt } from "@univerjs/sheets-ui";
8
8
  import { INumfmtService as pe, SheetInterceptorService as Xe, SheetsSelectionsService as ge, INTERCEPTOR_POINT as Wt, RemoveNumfmtMutation as _e, SetNumfmtMutation as Se, BEFORE_CELL_EDIT as Gt, AFTER_CELL_EDIT as Kt, SetRangeValuesCommand as Yt, transformCellsToRange as Zt, factorySetNumfmtUndoMutation as zt, factoryRemoveNumfmtUndoMutation as Xt, RangeProtectionPermissionEditPoint as W, WorksheetEditPermission as G, WorksheetSetCellStylePermission as K, WorkbookEditablePermission as Y } from "@univerjs/sheets";
9
- import { IZenZoneService as qt, useDependency as b, ComponentManager as qe, ISidebarService as Jt, getMenuHiddenObservable as Z, MenuItemType as z, ILayoutService as Qt, RibbonStartGroup as en, IMenuManagerService as tn } from "@univerjs/ui";
9
+ import { IZenZoneService as qt, useDependency as b, ComponentManager as qe, ISidebarService as Jt, MenuItemType as Z, getMenuHiddenObservable as z, ILayoutService as Qt, RibbonStartGroup as en, IMenuManagerService as tn } from "@univerjs/ui";
10
10
  import { debounceTime as nn, merge as Je, Observable as L, combineLatest as rn, filter as sn } from "rxjs";
11
11
  import { map as on, switchMap as cn, tap as an, debounceTime as ln } from "rxjs/operators";
12
12
  import { jsxs as y, jsx as h } from "react/jsx-runtime";
@@ -44,7 +44,7 @@ let de = class extends te {
44
44
  this._hideAlert();
45
45
  return;
46
46
  }
47
- if (Ue(c.pattern) && dt.isDefine(a == null ? void 0 : a.v) && De(a.v)) {
47
+ if (ke(c.pattern) && dt.isDefine(a == null ? void 0 : a.v) && Ue(a.v)) {
48
48
  if ((t = this._configService.getConfig(Mt)) != null && t.disableTextFormatAlert)
49
49
  return;
50
50
  const u = this._cellAlertManagerService.currentAlert.get(oe), l = (r = u == null ? void 0 : u.alert) == null ? void 0 : r.location;
@@ -82,7 +82,7 @@ de = Sn([
82
82
  U(3, C(E)),
83
83
  U(4, qt),
84
84
  U(5, C(pe)),
85
- U(6, ke)
85
+ U(6, De)
86
86
  ], de);
87
87
  const ce = {
88
88
  id: "sheet.operation.close.numfmt.panel",
@@ -758,7 +758,7 @@ let J = class extends te {
758
758
  case "grouped":
759
759
  case "number": {
760
760
  const c = r.worksheet.getCellRaw(i, s);
761
- return (c == null ? void 0 : c.t) === P.NUMBER && (c == null ? void 0 : c.v) !== void 0 && c.v !== null && De(c.v) && (c.v = gn(Number(c.v))), n && n(c);
761
+ return (c == null ? void 0 : c.t) === P.NUMBER && (c == null ? void 0 : c.v) !== void 0 && c.v !== null && Ue(c.v) && (c.v = gn(Number(c.v))), n && n(c);
762
762
  }
763
763
  default:
764
764
  return n && n(t);
@@ -791,7 +791,7 @@ let J = class extends te {
791
791
  r.row,
792
792
  r.col
793
793
  ), s = r.worksheet.getCellRaw(r.row, r.col);
794
- if (Ue(i == null ? void 0 : i.pattern) || t.t === P.FORCE_STRING)
794
+ if (ke(i == null ? void 0 : i.pattern) || t.t === P.FORCE_STRING)
795
795
  return n(t);
796
796
  const o = (a = t.p) == null ? void 0 : a.body, m = (l = (u = t == null ? void 0 : t.p) == null ? void 0 : u.body) != null && l.dataStream ? t.p.body.dataStream.replace(/\r\n$/, "") : String(t.v), c = gt(m);
797
797
  if (o)
@@ -981,32 +981,32 @@ const it = (e) => [
981
981
  id: Ze.id,
982
982
  title: "sheet.numfmt.currency",
983
983
  tooltip: "sheet.numfmt.currency",
984
- type: z.BUTTON,
985
- hidden$: Z(e, T.UNIVER_SHEET),
984
+ type: Z.BUTTON,
985
+ hidden$: z(e, T.UNIVER_SHEET),
986
986
  disabled$: V(e, { workbookTypes: [Y], worksheetTypes: [G, K], rangeTypes: [W] })
987
987
  }), Zn = (e) => ({
988
988
  icon: "AddDigitsIcon",
989
989
  id: Ye.id,
990
990
  title: "sheet.numfmt.addDecimal",
991
991
  tooltip: "sheet.numfmt.addDecimal",
992
- type: z.BUTTON,
993
- hidden$: Z(e, T.UNIVER_SHEET),
992
+ type: Z.BUTTON,
993
+ hidden$: z(e, T.UNIVER_SHEET),
994
994
  disabled$: V(e, { workbookTypes: [Y], worksheetTypes: [G, K], rangeTypes: [W] })
995
995
  }), zn = (e) => ({
996
996
  icon: "ReduceDigitsIcon",
997
997
  id: Ke.id,
998
998
  title: "sheet.numfmt.subtractDecimal",
999
999
  tooltip: "sheet.numfmt.subtractDecimal",
1000
- type: z.BUTTON,
1001
- hidden$: Z(e, T.UNIVER_SHEET),
1000
+ type: Z.BUTTON,
1001
+ hidden$: z(e, T.UNIVER_SHEET),
1002
1002
  disabled$: V(e, { workbookTypes: [Y], worksheetTypes: [G, K], rangeTypes: [W] })
1003
1003
  }), Xn = (e) => ({
1004
1004
  icon: "PercentIcon",
1005
1005
  id: ze.id,
1006
1006
  title: "sheet.numfmt.percent",
1007
1007
  tooltip: "sheet.numfmt.percent",
1008
- type: z.BUTTON,
1009
- hidden$: Z(e, T.UNIVER_SHEET),
1008
+ type: Z.BUTTON,
1009
+ hidden$: z(e, T.UNIVER_SHEET),
1010
1010
  disabled$: V(e, { workbookTypes: [Y], worksheetTypes: [G, K], rangeTypes: [W] })
1011
1011
  }), qn = (e) => {
1012
1012
  const t = e.get(he), r = e.get(ve), n = e.get(E), i = e.get(ge), s = [_e.id, Se.id], o = Bt(
@@ -1043,7 +1043,7 @@ const it = (e) => [
1043
1043
  label: st,
1044
1044
  id: A.id,
1045
1045
  tooltip: "sheet.numfmt.title",
1046
- type: z.SELECTOR,
1046
+ type: Z.SELECTOR,
1047
1047
  slot: !0,
1048
1048
  selections: [{
1049
1049
  label: {
@@ -1053,7 +1053,7 @@ const it = (e) => [
1053
1053
  }
1054
1054
  }],
1055
1055
  value$: o,
1056
- hidden$: Z(e, T.UNIVER_SHEET),
1056
+ hidden$: z(e, T.UNIVER_SHEET),
1057
1057
  disabled$: V(e, { workbookTypes: [Y], worksheetTypes: [K, G], rangeTypes: [W] })
1058
1058
  };
1059
1059
  }, st = "sheet.numfmt.moreNumfmtType", ot = "sheet.numfmt.moreNumfmtType.options";
@@ -1194,7 +1194,7 @@ ct(ee, "type", T.UNIVER_SHEET);
1194
1194
  ee = or([
1195
1195
  bt(Vt, Dt),
1196
1196
  ue(1, C(He)),
1197
- ue(2, ke),
1197
+ ue(2, De),
1198
1198
  ue(3, je)
1199
1199
  ], ee);
1200
1200
  export {
@@ -0,0 +1,42 @@
1
+ const e = {
2
+ sheet: {
3
+ numfmt: {
4
+ title: "Formát čísla",
5
+ numfmtType: "Typy formátov",
6
+ cancel: "Zrušiť",
7
+ confirm: "Potvrdiť",
8
+ general: "Všeobecný",
9
+ accounting: "Účtovnícky",
10
+ text: "Text",
11
+ number: "Číslo",
12
+ percent: "Percento",
13
+ scientific: "Vedecký",
14
+ currency: "Mena",
15
+ date: "Dátum",
16
+ time: "Čas",
17
+ thousandthPercentile: "Oddeľovač tisícov",
18
+ preview: "Náhľad",
19
+ dateTime: "Dátum a čas",
20
+ decimalLength: "Počet desatinných miest",
21
+ currencyType: "Symbol meny",
22
+ moreFmt: "Formáty",
23
+ financialValue: "Finančná hodnota",
24
+ roundingCurrency: "Zaokrúhľovanie meny",
25
+ timeDuration: "Trvanie",
26
+ currencyDes: "Formát meny sa používa na zobrazenie bežných menových hodnôt. Účtovnícky formát zarovná stĺpec hodnôt podľa desatinných miest.",
27
+ accountingDes: "Účtovnícky formát čísiel zarovná stĺpec hodnôt so symbolmi meny a desatinnými miestami.",
28
+ dateType: "Typ dátumu",
29
+ dateDes: "Formát dátumu zobrazuje hodnoty dátumu a času ako dátumy.",
30
+ negType: "Typ záporného čísla",
31
+ generalDes: "Všeobecný formát neobsahuje žiadny špecifický formát čísla.",
32
+ thousandthPercentileDes: "Percentilný formát sa používa na reprezentáciu bežných čísel. Menové a účtovnícke formáty poskytujú špecializovaný formát pre výpočty menových hodnôt.",
33
+ addDecimal: "Zvýšiť počet desatinných miest",
34
+ subtractDecimal: "Znížiť počet desatinných miest",
35
+ customFormat: "Vlastný formát",
36
+ customFormatDes: "Vytvorte vlastné formáty čísiel na základe existujúcich formátov."
37
+ }
38
+ }
39
+ };
40
+ export {
41
+ e as default
42
+ };
@@ -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.UniverSheetsNumfmtUiSkSK=t())})(this,(function(){"use strict";return{sheet:{numfmt:{title:"Formát čísla",numfmtType:"Typy formátov",cancel:"Zrušiť",confirm:"Potvrdiť",general:"Všeobecný",accounting:"Účtovnícky",text:"Text",number:"Číslo",percent:"Percento",scientific:"Vedecký",currency:"Mena",date:"Dátum",time:"Čas",thousandthPercentile:"Oddeľovač tisícov",preview:"Náhľad",dateTime:"Dátum a čas",decimalLength:"Počet desatinných miest",currencyType:"Symbol meny",moreFmt:"Formáty",financialValue:"Finančná hodnota",roundingCurrency:"Zaokrúhľovanie meny",timeDuration:"Trvanie",currencyDes:"Formát meny sa používa na zobrazenie bežných menových hodnôt. Účtovnícky formát zarovná stĺpec hodnôt podľa desatinných miest.",accountingDes:"Účtovnícky formát čísiel zarovná stĺpec hodnôt so symbolmi meny a desatinnými miestami.",dateType:"Typ dátumu",dateDes:"Formát dátumu zobrazuje hodnoty dátumu a času ako dátumy.",negType:"Typ záporného čísla",generalDes:"Všeobecný formát neobsahuje žiadny špecifický formát čísla.",thousandthPercentileDes:"Percentilný formát sa používa na reprezentáciu bežných čísel. Menové a účtovnícke formáty poskytujú špecializovaný formát pre výpočty menových hodnôt.",addDecimal:"Zvýšiť počet desatinných miest",subtractDecimal:"Znížiť počet desatinných miest",customFormat:"Vlastný formát",customFormatDes:"Vytvorte vlastné formáty čísiel na základe existujúcich formátov."}}}}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs/sheets-numfmt-ui",
3
- "version": "0.15.2-insiders.20260124-12fc7f0",
3
+ "version": "0.15.3-insiders.20260131-b9b8805",
4
4
  "private": false,
5
5
  "description": "UniverSheet numfmt plugin",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -55,14 +55,14 @@
55
55
  },
56
56
  "dependencies": {
57
57
  "@univerjs/icons": "^1.1.1",
58
- "@univerjs/core": "0.15.2-insiders.20260124-12fc7f0",
59
- "@univerjs/engine-formula": "0.15.2-insiders.20260124-12fc7f0",
60
- "@univerjs/design": "0.15.2-insiders.20260124-12fc7f0",
61
- "@univerjs/engine-render": "0.15.2-insiders.20260124-12fc7f0",
62
- "@univerjs/sheets": "0.15.2-insiders.20260124-12fc7f0",
63
- "@univerjs/sheets-ui": "0.15.2-insiders.20260124-12fc7f0",
64
- "@univerjs/sheets-numfmt": "0.15.2-insiders.20260124-12fc7f0",
65
- "@univerjs/ui": "0.15.2-insiders.20260124-12fc7f0"
58
+ "@univerjs/core": "0.15.3-insiders.20260131-b9b8805",
59
+ "@univerjs/design": "0.15.3-insiders.20260131-b9b8805",
60
+ "@univerjs/engine-render": "0.15.3-insiders.20260131-b9b8805",
61
+ "@univerjs/engine-formula": "0.15.3-insiders.20260131-b9b8805",
62
+ "@univerjs/sheets": "0.15.3-insiders.20260131-b9b8805",
63
+ "@univerjs/sheets-ui": "0.15.3-insiders.20260131-b9b8805",
64
+ "@univerjs/ui": "0.15.3-insiders.20260131-b9b8805",
65
+ "@univerjs/sheets-numfmt": "0.15.3-insiders.20260131-b9b8805"
66
66
  },
67
67
  "devDependencies": {
68
68
  "postcss": "^8.5.6",
@@ -71,8 +71,8 @@
71
71
  "tailwindcss": "3.4.18",
72
72
  "typescript": "^5.9.3",
73
73
  "vite": "^7.3.1",
74
- "vitest": "^4.0.16",
75
- "@univerjs-infra/shared": "0.15.2"
74
+ "vitest": "^4.0.18",
75
+ "@univerjs-infra/shared": "0.15.3"
76
76
  },
77
77
  "scripts": {
78
78
  "test": "vitest run",