@univerjs/sheets-numfmt-ui 0.16.1 → 0.17.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/index.js CHANGED
@@ -1,26 +1,29 @@
1
- var mt = Object.defineProperty;
2
- var dt = (e, t, r) => t in e ? mt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
- var q = (e, t, r) => dt(e, typeof t != "symbol" ? t + "" : t, r);
4
- import { Inject as C, LocaleService as E, IConfigService as De, Disposable as ne, isTextFormat as Fe, Tools as ht, isRealNum as he, CommandType as Le, ILocalStorageService as Ae, isPatternEqualWithoutDecimal as re, numfmt as vt, ThemeService as ft, IUniverInstanceService as pe, ICommandService as ge, UniverInstanceType as T, CellValueType as w, toDisposable as ve, DisposableCollection as pt, InterceptorEffectEnum as we, Range as He, Injector as je, Optional as gt, getNumfmtParseValueFilter as _t, willLoseNumericPrecision as St, fromCallback as Ct, isDefaultFormat as yt, DEFAULT_TEXT_FORMAT_EXCEL as bt, DependentOn as It, Plugin as Nt, merge as Et, registerDependencies as Tt, touchDependencies as Mt } from "@univerjs/core";
5
- import { IRenderManagerService as Be } from "@univerjs/engine-render";
6
- import { SHEETS_NUMFMT_PLUGIN_CONFIG_KEY as wt, currencySymbols as Pe, getDecimalFromPattern as J, getCurrencyType as W, setPatternDecimal as $, getCurrencyFormatOptions as oe, CURRENCYFORMAT as Pt, DATEFMTLISG as Rt, NUMBERFORMAT as xt, getDateFormatOptions as We, getNumberFormatOptions as Ve, isPatternHasDecimal as $t, SheetsNumfmtCellContentController as Ge, getPatternPreviewIgnoreGeneral as Ot, getPatternType as L, SetNumfmtCommand as Ke, SubtractDecimalCommand as Ye, AddDecimalCommand as Ze, SetCurrencyCommand as ze, getCurrencySymbolIconByLocale as Re, SetPercentCommand as Xe, getCurrencySymbolByLocale as kt, localeCurrencySymbolMap as Ut, getPatternPreview as Dt, UniverSheetsNumfmtPlugin as Ft } from "@univerjs/sheets-numfmt";
7
- import { HoverManagerService as Lt, CellAlertManagerService as At, CellAlertType as Ht, SheetSkeletonManagerService as jt, IEditorBridgeService as Bt, getCurrentRangeDisable$ as V, deriveStateFromActiveSheet$ as Wt, UniverSheetsUIPlugin as Vt } from "@univerjs/sheets-ui";
8
- import { INumfmtService as _e, SheetInterceptorService as qe, SheetsSelectionsService as Se, INTERCEPTOR_POINT as Gt, RemoveNumfmtMutation as Ce, SetNumfmtMutation as ye, BEFORE_CELL_EDIT as Kt, AFTER_CELL_EDIT as Yt, SetRangeValuesCommand as Zt, transformCellsToRange as zt, factorySetNumfmtUndoMutation as Xt, factoryRemoveNumfmtUndoMutation as qt, RangeProtectionPermissionEditPoint as G, WorksheetEditPermission as K, WorksheetSetCellStylePermission as Y, WorkbookEditablePermission as Z } from "@univerjs/sheets";
9
- import { IZenZoneService as Jt, useDependency as b, ComponentManager as Je, ISidebarService as Qt, getMenuHiddenObservable as z, MenuItemType as X, ILayoutService as en, RibbonStartGroup as tn, IMenuManagerService as nn } from "@univerjs/ui";
10
- import { debounceTime as rn, merge as Qe, Observable as A, combineLatest as sn, filter as on } from "rxjs";
11
- import { map as cn, switchMap as an, tap as ln, debounceTime as un } from "rxjs/operators";
1
+ var dt = Object.defineProperty;
2
+ var ht = (e, t, r) => t in e ? dt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
+ var J = (e, t, r) => ht(e, typeof t != "symbol" ? t + "" : t, r);
4
+ import { Inject as C, LocaleService as E, IConfigService as Fe, Disposable as ne, isTextFormat as Le, Tools as vt, isRealNum as ve, CommandType as Ae, ILocalStorageService as He, isPatternEqualWithoutDecimal as re, numfmt as ft, ThemeService as pt, IUniverInstanceService as ge, ICommandService as _e, UniverInstanceType as T, CellValueType as w, toDisposable as fe, DisposableCollection as gt, InterceptorEffectEnum as Pe, Range as je, Injector as Be, Optional as _t, getNumfmtParseValueFilter as St, willLoseNumericPrecision as Ct, fromCallback as yt, isDefaultFormat as bt, DEFAULT_TEXT_FORMAT_EXCEL as It, DependentOn as Nt, Plugin as Et, merge as Tt, registerDependencies as Mt, touchDependencies as wt } from "@univerjs/core";
5
+ import { IRenderManagerService as We } from "@univerjs/engine-render";
6
+ import { SHEETS_NUMFMT_PLUGIN_CONFIG_KEY as Pt, currencySymbols as Re, getDecimalFromPattern as Q, getCurrencyType as V, setPatternDecimal as $, getCurrencyFormatOptions as ce, CURRENCYFORMAT as Rt, DATEFMTLISG as xt, NUMBERFORMAT as $t, getDateFormatOptions as Ve, getNumberFormatOptions as Ge, isPatternHasDecimal as Ot, SheetsNumfmtCellContentController as Ke, getPatternPreviewIgnoreGeneral as kt, getPatternType as A, SetNumfmtCommand as Ye, SubtractDecimalCommand as Ze, AddDecimalCommand as ze, SetCurrencyCommand as Xe, getCurrencySymbolIconByLocale as xe, SetPercentCommand as qe, getCurrencySymbolByLocale as Ut, localeCurrencySymbolMap as Dt, getPatternPreview as Ft, UniverSheetsNumfmtPlugin as Lt } from "@univerjs/sheets-numfmt";
7
+ import { HoverManagerService as At, CellAlertManagerService as Ht, CellAlertType as jt, SheetSkeletonManagerService as Bt, IEditorBridgeService as Wt, getCurrentRangeDisable$ as G, deriveStateFromActiveSheet$ as Vt, UniverSheetsUIPlugin as Gt } from "@univerjs/sheets-ui";
8
+ import { INumfmtService as Se, SheetInterceptorService as Je, SheetsSelectionsService as Ce, INTERCEPTOR_POINT as Kt, RemoveNumfmtMutation as ye, SetNumfmtMutation as be, BEFORE_CELL_EDIT as Yt, AFTER_CELL_EDIT as Zt, SetRangeValuesCommand as zt, transformCellsToRange as Xt, factorySetNumfmtUndoMutation as qt, factoryRemoveNumfmtUndoMutation as Jt, RangeProtectionPermissionEditPoint as K, WorksheetEditPermission as Y, WorksheetSetCellStylePermission as Z, WorkbookEditablePermission as z } from "@univerjs/sheets";
9
+ import { IZenZoneService as Qt, useDependency as b, ComponentManager as Qe, ISidebarService as en, getMenuHiddenObservable as X, MenuItemType as q, ILayoutService as tn, RibbonStartGroup as nn, IMenuManagerService as rn } from "@univerjs/ui";
10
+ import { debounceTime as sn, merge as et, Observable as H, combineLatest as on, filter as cn } from "rxjs";
11
+ import { map as an, switchMap as ln, tap as un, debounceTime as mn } from "rxjs/operators";
12
12
  import { jsxs as y, jsx as h } from "react/jsx-runtime";
13
- import { createContext as mn, useState as N, useEffect as ie, useRef as be, useContext as et, useMemo as R, createElement as Ie, forwardRef as dn, useCallback as hn } from "react";
14
- import { InputNumber as Ne, Select as Ee, SelectList as Te, Input as vn, clsx as tt, borderClassName as fn, Button as xe, scrollbarClassName as pn, Separator as gn } from "@univerjs/design";
15
- import { stripErrorMargin as ce } from "@univerjs/engine-formula";
16
- const $e = {};
17
- var _n = Object.getOwnPropertyDescriptor, Sn = (e, t, r, n) => {
18
- for (var i = n > 1 ? void 0 : n ? _n(t, r) : t, s = e.length - 1, o; s >= 0; s--)
13
+ import { createContext as dn, useState as N, useEffect as ie, useRef as Ie, useContext as tt, useMemo as R, createElement as Ne, forwardRef as hn, useCallback as vn } from "react";
14
+ import { InputNumber as Ee, Select as Te, SelectList as Me, Input as fn, clsx as nt, borderClassName as pn, Button as $e, scrollbarClassName as gn, Separator as _n } from "@univerjs/design";
15
+ import { stripErrorMargin as ae } from "@univerjs/engine-formula";
16
+ const Sn = "@univerjs/sheets-numfmt-ui", Cn = "0.17.0", rt = {
17
+ name: Sn,
18
+ version: Cn
19
+ }, Oe = {};
20
+ var yn = Object.getOwnPropertyDescriptor, bn = (e, t, r, n) => {
21
+ for (var i = n > 1 ? void 0 : n ? yn(t, r) : t, s = e.length - 1, o; s >= 0; s--)
19
22
  (o = e[s]) && (i = o(i) || i);
20
23
  return i;
21
24
  }, U = (e, t) => (r, n) => t(r, n, e);
22
- const ae = "SHEET_NUMFMT_ALERT";
23
- let fe = class extends ne {
25
+ const le = "SHEET_NUMFMT_ALERT";
26
+ let pe = class extends ne {
24
27
  constructor(e, t, r, n, i, s, o) {
25
28
  super(), this._context = e, this._hoverManagerService = t, this._cellAlertManagerService = r, this._localeService = n, this._zenZoneService = i, this._numfmtService = s, this._configService = o, this._init();
26
29
  }
@@ -28,7 +31,7 @@ let fe = class extends ne {
28
31
  this._initCellAlertPopup(), this._initZenService();
29
32
  }
30
33
  _initCellAlertPopup() {
31
- this.disposeWithMe(this._hoverManagerService.currentCell$.pipe(rn(100)).subscribe((e) => {
34
+ this.disposeWithMe(this._hoverManagerService.currentCell$.pipe(sn(100)).subscribe((e) => {
32
35
  var t, r;
33
36
  if (e) {
34
37
  const n = e.location, i = this._context.unit, s = i.getActiveSheet();
@@ -44,22 +47,22 @@ let fe = class extends ne {
44
47
  this._hideAlert();
45
48
  return;
46
49
  }
47
- if (Fe(c.pattern) && ht.isDefine(a == null ? void 0 : a.v) && he(a.v)) {
48
- if ((t = this._configService.getConfig(wt)) != null && t.disableTextFormatAlert)
50
+ if (Le(c.pattern) && vt.isDefine(a == null ? void 0 : a.v) && ve(a.v)) {
51
+ if ((t = this._configService.getConfig(Pt)) != null && t.disableTextFormatAlert)
49
52
  return;
50
- const u = this._cellAlertManagerService.currentAlert.get(ae), l = (r = u == null ? void 0 : u.alert) == null ? void 0 : r.location;
53
+ const u = this._cellAlertManagerService.currentAlert.get(le), l = (r = u == null ? void 0 : u.alert) == null ? void 0 : r.location;
51
54
  if (l && l.row === n.row && l.col === n.col && l.subUnitId === n.subUnitId && l.unitId === n.unitId) {
52
55
  this._hideAlert();
53
56
  return;
54
57
  }
55
58
  this._cellAlertManagerService.showAlert({
56
- type: Ht.ERROR,
59
+ type: jt.ERROR,
57
60
  title: this._localeService.t("info.error"),
58
61
  message: this._localeService.t("info.forceStringInfo"),
59
62
  location: n,
60
63
  width: 200,
61
64
  height: 74,
62
- key: ae
65
+ key: le
63
66
  });
64
67
  return;
65
68
  }
@@ -73,36 +76,36 @@ let fe = class extends ne {
73
76
  }));
74
77
  }
75
78
  _hideAlert() {
76
- this._cellAlertManagerService.removeAlert(ae);
79
+ this._cellAlertManagerService.removeAlert(le);
77
80
  }
78
81
  };
79
- fe = Sn([
80
- U(1, C(Lt)),
81
- U(2, C(At)),
82
+ pe = bn([
83
+ U(1, C(At)),
84
+ U(2, C(Ht)),
82
85
  U(3, C(E)),
83
- U(4, Jt),
84
- U(5, C(_e)),
85
- U(6, De)
86
- ], fe);
87
- const le = {
86
+ U(4, Qt),
87
+ U(5, C(Se)),
88
+ U(6, Fe)
89
+ ], pe);
90
+ const ue = {
88
91
  id: "sheet.operation.close.numfmt.panel",
89
- type: Le.OPERATION,
92
+ type: Ae.OPERATION,
90
93
  handler: () => (
91
94
  // do nothing, just notify panel is closed
92
95
  !0
93
96
  )
94
- }, H = {
97
+ }, j = {
95
98
  id: "sheet.operation.open.numfmt.panel",
96
- type: Le.OPERATION,
97
- handler: (e) => (e.get(B).openPanel(), !0)
99
+ type: Ae.OPERATION,
100
+ handler: (e) => (e.get(W).openPanel(), !0)
98
101
  };
99
- var Cn = Object.getOwnPropertyDescriptor, yn = (e, t, r, n) => {
100
- for (var i = n > 1 ? void 0 : n ? Cn(t, r) : t, s = e.length - 1, o; s >= 0; s--)
102
+ var In = Object.getOwnPropertyDescriptor, Nn = (e, t, r, n) => {
103
+ for (var i = n > 1 ? void 0 : n ? In(t, r) : t, s = e.length - 1, o; s >= 0; s--)
101
104
  (o = e[s]) && (i = o(i) || i);
102
105
  return i;
103
- }, bn = (e, t) => (r, n) => t(r, n, e);
104
- const Me = mn([]);
105
- let j = class {
106
+ }, En = (e, t) => (r, n) => t(r, n, e);
107
+ const we = dn([]);
108
+ let B = class {
106
109
  constructor(e) {
107
110
  this._localStorageService = e;
108
111
  }
@@ -146,22 +149,22 @@ let j = class {
146
149
  this._localStorageService.removeItem(e);
147
150
  }
148
151
  };
149
- j = yn([
150
- bn(0, C(Ae))
151
- ], j);
152
- const Oe = "numfmtCurrency", In = (e) => {
153
- const t = b(j), [r, n] = N(Pe);
152
+ B = Nn([
153
+ En(0, C(He))
154
+ ], B);
155
+ const ke = "numfmtCurrency", Tn = (e) => {
156
+ const t = b(B), [r, n] = N(Re);
154
157
  return ie(() => {
155
158
  t.addHabit("numfmtCurrency", []).then(() => {
156
- t.getHabit(Oe, [...Pe]).then((s) => {
159
+ t.getHabit(ke, [...Re]).then((s) => {
157
160
  n(s), e && e(s);
158
161
  });
159
162
  });
160
163
  }, []), { userHabitCurrency: r, mark: (s) => {
161
- t.markHabit(Oe, s);
164
+ t.markHabit(ke, s);
162
165
  } };
163
- }, Nn = () => {
164
- const e = be([]), [t, r] = N({});
166
+ }, Mn = () => {
167
+ const e = Ie([]), [t, r] = N({});
165
168
  return ie(() => {
166
169
  e.current.forEach((i) => {
167
170
  i();
@@ -169,8 +172,8 @@ const Oe = "numfmtCurrency", In = (e) => {
169
172
  }, [t]), (i) => {
170
173
  e.current.push(i), r({});
171
174
  };
172
- }, En = (e) => !!W(e) && e.startsWith("_("), Tn = (e) => {
173
- const { defaultPattern: t, action: r, onChange: n } = e, [i, s] = N(() => J(t || "", 2)), o = et(Me), [m, c] = N(() => W(t) || o[0]), a = R(() => o.map((p) => ({ label: p, value: p })), []), l = b(E).t;
175
+ }, wn = (e) => !!V(e) && e.startsWith("_("), Pn = (e) => {
176
+ const { defaultPattern: t, action: r, onChange: n } = e, [i, s] = N(() => Q(t || "", 2)), o = tt(we), [m, c] = N(() => V(t) || o[0]), a = R(() => o.map((p) => ({ label: p, value: p })), []), l = b(E).t;
174
177
  r.current = () => $(`_("${m}"* #,##0${i > 0 ? ".0" : ""}_)`, i);
175
178
  const v = (p) => {
176
179
  c(p), n($(`_("${p}"* #,##0${i > 0 ? ".0" : ""}_)`, i));
@@ -183,7 +186,7 @@ const Oe = "numfmtCurrency", In = (e) => {
183
186
  /* @__PURE__ */ y("div", { className: "option", children: [
184
187
  /* @__PURE__ */ h("div", { className: "univer-text-sm univer-text-gray-400", children: l("sheet.numfmt.decimalLength") }),
185
188
  /* @__PURE__ */ h("div", { className: "univer-mt-2 univer-w-32", children: /* @__PURE__ */ h(
186
- Ne,
189
+ Ee,
187
190
  {
188
191
  value: i,
189
192
  step: 1,
@@ -197,7 +200,7 @@ const Oe = "numfmtCurrency", In = (e) => {
197
200
  /* @__PURE__ */ y("div", { className: "option", children: [
198
201
  /* @__PURE__ */ h("div", { className: "univer-text-sm univer-text-gray-400", children: l("sheet.numfmt.currencyType") }),
199
202
  /* @__PURE__ */ h("div", { className: "univer-mt-2 univer-w-36", children: /* @__PURE__ */ h(
200
- Ee,
203
+ Te,
201
204
  {
202
205
  options: a,
203
206
  value: m,
@@ -208,18 +211,18 @@ const Oe = "numfmtCurrency", In = (e) => {
208
211
  ] }),
209
212
  /* @__PURE__ */ h("div", { className: "univer-mt-4 univer-text-sm univer-text-gray-400", children: l("sheet.numfmt.accountingDes") })
210
213
  ] });
211
- }, Mn = (e) => !!W(e) && !e.startsWith("_("), wn = (e) => {
212
- const r = b(E).t, n = et(Me), [i, s] = N(() => W(e.defaultPattern) || n[0]), [o, m] = N(() => J(e.defaultPattern || "", 2)), [c, a] = N(() => {
214
+ }, Rn = (e) => !!V(e) && !e.startsWith("_("), xn = (e) => {
215
+ const r = b(E).t, n = tt(we), [i, s] = N(() => V(e.defaultPattern) || n[0]), [o, m] = N(() => Q(e.defaultPattern || "", 2)), [c, a] = N(() => {
213
216
  var g;
214
- const d = oe(i);
217
+ const d = ce(i);
215
218
  return ((g = d.find((I) => re(I.value, e.defaultPattern))) == null ? void 0 : g.value) || d[0].value;
216
- }), u = R(() => oe(i), [i]), l = R(() => n.map((d) => ({ label: d, value: d })), [n]);
219
+ }), u = R(() => ce(i), [i]), l = R(() => n.map((d) => ({ label: d, value: d })), [n]);
217
220
  e.action.current = () => $(c, o);
218
221
  const v = (d) => {
219
222
  if (d === void 0)
220
223
  return;
221
224
  s(d);
222
- const S = oe(d)[0].value;
225
+ const S = ce(d)[0].value;
223
226
  a(S), e.onChange($(S, o));
224
227
  }, f = (d) => {
225
228
  d !== void 0 && (a(d), e.onChange($(d, o)));
@@ -231,7 +234,7 @@ const Oe = "numfmtCurrency", In = (e) => {
231
234
  /* @__PURE__ */ y("div", { className: "option", children: [
232
235
  /* @__PURE__ */ h("div", { className: "univer-text-sm univer-text-gray-400", children: r("sheet.numfmt.decimalLength") }),
233
236
  /* @__PURE__ */ h("div", { className: "univer-mt-2 univer-w-32", children: /* @__PURE__ */ h(
234
- Ne,
237
+ Ee,
235
238
  {
236
239
  value: o,
237
240
  max: 20,
@@ -243,7 +246,7 @@ const Oe = "numfmtCurrency", In = (e) => {
243
246
  /* @__PURE__ */ y("div", { className: "option", children: [
244
247
  /* @__PURE__ */ h("div", { className: "univer-text-sm univer-text-gray-400", children: r("sheet.numfmt.currencyType") }),
245
248
  /* @__PURE__ */ h("div", { className: "univer-mt-2 univer-w-36", children: /* @__PURE__ */ h(
246
- Ee,
249
+ Te,
247
250
  {
248
251
  value: i,
249
252
  options: l,
@@ -253,13 +256,13 @@ const Oe = "numfmtCurrency", In = (e) => {
253
256
  ] })
254
257
  ] }),
255
258
  /* @__PURE__ */ h("div", { className: "label univer-mt-4", children: r("sheet.numfmt.negType") }),
256
- /* @__PURE__ */ h("div", { className: "univer-mt-2", children: /* @__PURE__ */ h(Te, { value: c, options: u, onChange: f }) }),
259
+ /* @__PURE__ */ h("div", { className: "univer-mt-2", children: /* @__PURE__ */ h(Me, { value: c, options: u, onChange: f }) }),
257
260
  /* @__PURE__ */ h("div", { className: "univer-mt-4 univer-text-sm univer-text-gray-400", children: r("sheet.numfmt.currencyDes") })
258
261
  ] });
259
262
  };
260
- function nt({ ref: e, ...t }) {
261
- const { icon: r, id: n, className: i, extend: s, ...o } = t, m = `univerjs-icon univerjs-icon-${n} ${i || ""}`.trim(), c = be(`_${xn()}`);
262
- return rt(r, `${n}`, {
263
+ function it({ ref: e, ...t }) {
264
+ const { icon: r, id: n, className: i, extend: s, ...o } = t, m = `univerjs-icon univerjs-icon-${n} ${i || ""}`.trim(), c = Ie(`_${kn()}`);
265
+ return st(r, `${n}`, {
263
266
  defIds: r.defIds,
264
267
  idSuffix: c.current
265
268
  }, {
@@ -268,14 +271,14 @@ function nt({ ref: e, ...t }) {
268
271
  ...o
269
272
  }, s);
270
273
  }
271
- function rt(e, t, r, n, i) {
272
- return Ie(e.tag, {
274
+ function st(e, t, r, n, i) {
275
+ return Ne(e.tag, {
273
276
  key: t,
274
- ...Pn(e, r, i),
277
+ ...$n(e, r, i),
275
278
  ...n
276
- }, (Rn(e, r).children || []).map((s, o) => rt(s, `${t}-${e.tag}-${o}`, r, void 0, i)));
279
+ }, (On(e, r).children || []).map((s, o) => st(s, `${t}-${e.tag}-${o}`, r, void 0, i)));
277
280
  }
278
- function Pn(e, t, r) {
281
+ function $n(e, t, r) {
279
282
  const n = { ...e.attrs };
280
283
  r != null && r.colorChannel1 && n.fill === "colorChannel1" && (n.fill = r.colorChannel1), e.tag === "mask" && n.id && (n.id = n.id + t.idSuffix), Object.entries(n).forEach(([s, o]) => {
281
284
  s === "mask" && typeof o == "string" && (n[s] = o.replace(/url\(#(.*)\)/, `url(#$1${t.idSuffix})`));
@@ -285,7 +288,7 @@ function Pn(e, t, r) {
285
288
  typeof o == "string" && (n[s] = o.replace(/url\(#(.*)\)/, `url(#$1${t.idSuffix})`));
286
289
  })), n;
287
290
  }
288
- function Rn(e, t) {
291
+ function On(e, t) {
289
292
  var n;
290
293
  const { defIds: r } = t;
291
294
  return !r || r.length === 0 ? e : e.tag === "defs" && ((n = e.children) != null && n.length) ? {
@@ -299,11 +302,11 @@ function Rn(e, t) {
299
302
  } : i)
300
303
  } : e;
301
304
  }
302
- function xn() {
305
+ function kn() {
303
306
  return Math.random().toString(36).substring(2, 8);
304
307
  }
305
- nt.displayName = "UniverIcon";
306
- const $n = {
308
+ it.displayName = "UniverIcon";
309
+ const Un = {
307
310
  tag: "svg",
308
311
  attrs: {
309
312
  xmlns: "http://www.w3.org/2000/svg",
@@ -321,31 +324,31 @@ const $n = {
321
324
  clipRule: "evenodd"
322
325
  }
323
326
  }]
324
- }, it = dn(function(t, r) {
325
- return Ie(nt, Object.assign({}, t, {
327
+ }, ot = hn(function(t, r) {
328
+ return Ne(it, Object.assign({}, t, {
326
329
  id: "check-mark-icon",
327
330
  ref: r,
328
- icon: $n
331
+ icon: Un
329
332
  }));
330
333
  });
331
- it.displayName = "CheckMarkIcon";
332
- const ue = "customFormat", me = "numfmt_custom_pattern";
333
- function On(e) {
334
- const { defaultPattern: t, action: r, onChange: n } = e, i = b(j), s = b(Ae), o = b(E), [m, c] = N(t);
335
- r.current = () => (i.markHabit(ue, m), s.getItem(me).then((f = []) => {
334
+ ot.displayName = "CheckMarkIcon";
335
+ const me = "customFormat", de = "numfmt_custom_pattern";
336
+ function Dn(e) {
337
+ const { defaultPattern: t, action: r, onChange: n } = e, i = b(B), s = b(He), o = b(E), [m, c] = N(t);
338
+ r.current = () => (i.markHabit(me, m), s.getItem(de).then((f = []) => {
336
339
  const p = [.../* @__PURE__ */ new Set([m, ...f || []])].splice(0, 10).filter((d) => !!d);
337
- s.setItem(me, p);
340
+ s.setItem(de, p);
338
341
  }), m);
339
342
  const [a, u] = N([]);
340
343
  ie(() => {
341
- s.getItem(me).then((f) => {
344
+ s.getItem(de).then((f) => {
342
345
  const p = [
343
- ...Pt.map((d) => d.suffix("$")),
344
- ...Rt.map((d) => d.suffix),
345
- ...xt.map((d) => d.suffix)
346
+ ...Rt.map((d) => d.suffix("$")),
347
+ ...xt.map((d) => d.suffix),
348
+ ...$t.map((d) => d.suffix)
346
349
  ];
347
- p.push(...f || []), i.addHabit(ue, []).finally(() => {
348
- i.getHabit(ue, p).then((d) => {
350
+ p.push(...f || []), i.addHabit(me, []).finally(() => {
351
+ i.getHabit(me, p).then((d) => {
349
352
  u([...new Set(d)]);
350
353
  });
351
354
  });
@@ -359,7 +362,7 @@ function On(e) {
359
362
  return /* @__PURE__ */ y("div", { children: [
360
363
  /* @__PURE__ */ h("div", { className: "univer-mt-4 univer-text-sm univer-text-gray-400", children: o.t("sheet.numfmt.customFormat") }),
361
364
  /* @__PURE__ */ h(
362
- vn,
365
+ fn,
363
366
  {
364
367
  placeholder: o.t("sheet.numfmt.customFormat"),
365
368
  onBlur: v,
@@ -371,14 +374,14 @@ function On(e) {
371
374
  /* @__PURE__ */ h(
372
375
  "div",
373
376
  {
374
- className: tt("univer-mt-2 univer-max-h-[400px] univer-overflow-auto univer-rounded-lg univer-p-2", fn),
377
+ className: nt("univer-mt-2 univer-max-h-[400px] univer-overflow-auto univer-rounded-lg univer-p-2", pn),
375
378
  children: a.map((f) => /* @__PURE__ */ y(
376
379
  "div",
377
380
  {
378
381
  onClick: () => l(f),
379
382
  className: "univer-flex univer-cursor-pointer univer-items-center univer-gap-1.5 univer-py-1.5 univer-text-sm",
380
383
  children: [
381
- /* @__PURE__ */ h("div", { className: "univer-flex univer-w-4 univer-items-center univer-text-primary-600", children: m === f && /* @__PURE__ */ h(it, {}) }),
384
+ /* @__PURE__ */ h("div", { className: "univer-flex univer-w-4 univer-items-center univer-text-primary-600", children: m === f && /* @__PURE__ */ h(ot, {}) }),
382
385
  /* @__PURE__ */ h("div", { children: f })
383
386
  ]
384
387
  },
@@ -395,12 +398,12 @@ function On(e) {
395
398
  )
396
399
  ] });
397
400
  }
398
- const kn = (e) => {
399
- const t = vt.getFormatInfo(e);
400
- return We().map((r) => r.value).includes(e) || ["date", "datetime", "time"].includes(t.type);
401
+ const Fn = (e) => {
402
+ const t = ft.getFormatInfo(e);
403
+ return Ve().map((r) => r.value).includes(e) || ["date", "datetime", "time"].includes(t.type);
401
404
  };
402
- function Un(e) {
403
- const { onChange: t, defaultPattern: r } = e, n = R(We, []), i = b(E), [s, o] = N(() => {
405
+ function Ln(e) {
406
+ const { onChange: t, defaultPattern: r } = e, n = R(Ve, []), i = b(E), [s, o] = N(() => {
404
407
  if (r) {
405
408
  const c = n.find((a) => a.value === r);
406
409
  if (c)
@@ -414,7 +417,7 @@ function Un(e) {
414
417
  };
415
418
  return /* @__PURE__ */ y("div", { children: [
416
419
  /* @__PURE__ */ h("div", { className: "univer-mt-4 univer-text-sm univer-text-gray-400", children: i.t("sheet.numfmt.dateType") }),
417
- /* @__PURE__ */ h("div", { className: "univer-mt-2", children: /* @__PURE__ */ h(Te, { value: s, options: n, onChange: m }) }),
420
+ /* @__PURE__ */ h("div", { className: "univer-mt-2", children: /* @__PURE__ */ h(Me, { value: s, options: n, onChange: m }) }),
418
421
  /* @__PURE__ */ h(
419
422
  "div",
420
423
  {
@@ -424,7 +427,7 @@ function Un(e) {
424
427
  )
425
428
  ] });
426
429
  }
427
- const Dn = (e) => !e, Fn = (e) => {
430
+ const An = (e) => !e, Hn = (e) => {
428
431
  const r = b(E).t;
429
432
  return e.action.current = () => "", /* @__PURE__ */ h("div", { children: /* @__PURE__ */ h(
430
433
  "div",
@@ -433,20 +436,20 @@ const Dn = (e) => !e, Fn = (e) => {
433
436
  children: r("sheet.numfmt.generalDes")
434
437
  }
435
438
  ) });
436
- }, Ln = (e) => Ve().some((t) => re(t.value, e));
437
- function An(e) {
438
- const t = b(E), r = R(Ve, []), [n, i] = N(() => J(e.defaultPattern || "", 0)), [s, o] = N(() => {
439
+ }, jn = (e) => Ge().some((t) => re(t.value, e));
440
+ function Bn(e) {
441
+ const t = b(E), r = R(Ge, []), [n, i] = N(() => Q(e.defaultPattern || "", 0)), [s, o] = N(() => {
439
442
  const l = r.find((v) => re(v.value, e.defaultPattern || ""));
440
443
  return (l == null ? void 0 : l.value) || r[0].value;
441
- }), m = R(() => $(s, Number(n || 0)), [s, n]), c = R(() => !$t(s), [s]), a = (l) => {
444
+ }), m = R(() => $(s, Number(n || 0)), [s, n]), c = R(() => !Ot(s), [s]), a = (l) => {
442
445
  i(l || 0), e.onChange($(s, Number(l || 0)));
443
446
  }, u = (l) => {
444
- l !== void 0 && (i(J(l, 0)), o(l), e.onChange(l));
447
+ l !== void 0 && (i(Q(l, 0)), o(l), e.onChange(l));
445
448
  };
446
449
  return e.action.current = () => m, /* @__PURE__ */ y("div", { children: [
447
450
  /* @__PURE__ */ h("div", { className: "univer-mt-4 univer-text-sm univer-text-gray-400", children: t.t("sheet.numfmt.decimalLength") }),
448
451
  /* @__PURE__ */ h("div", { className: "univer-mt-2", children: /* @__PURE__ */ h(
449
- Ne,
452
+ Ee,
450
453
  {
451
454
  disabled: c,
452
455
  value: n,
@@ -459,7 +462,7 @@ function An(e) {
459
462
  " ",
460
463
  t.t("sheet.numfmt.negType")
461
464
  ] }),
462
- /* @__PURE__ */ h("div", { className: "univer-mt-2", children: /* @__PURE__ */ h(Te, { onChange: u, options: r, value: s }) }),
465
+ /* @__PURE__ */ h("div", { className: "univer-mt-2", children: /* @__PURE__ */ h(Me, { onChange: u, options: r, value: s }) }),
463
466
  /* @__PURE__ */ h(
464
467
  "div",
465
468
  {
@@ -469,37 +472,37 @@ function An(e) {
469
472
  )
470
473
  ] });
471
474
  }
472
- const Hn = (e) => {
473
- const { defaultValue: t, defaultPattern: r, row: n, col: i } = e.value, s = b(E), o = be(() => ""), m = s.t, c = Nn(), a = R(
475
+ const Wn = (e) => {
476
+ const { defaultValue: t, defaultPattern: r, row: n, col: i } = e.value, s = b(E), o = Ie(() => ""), m = s.t, c = Mn(), a = R(
474
477
  () => [
475
- { label: "sheet.numfmt.general", component: Fn },
476
- { label: "sheet.numfmt.accounting", component: Tn },
477
- { label: "sheet.numfmt.currency", component: wn },
478
- { label: "sheet.numfmt.date", component: Un },
479
- { label: "sheet.numfmt.thousandthPercentile", component: An },
480
- { label: "sheet.numfmt.customFormat", component: On }
478
+ { label: "sheet.numfmt.general", component: Hn },
479
+ { label: "sheet.numfmt.accounting", component: Pn },
480
+ { label: "sheet.numfmt.currency", component: xn },
481
+ { label: "sheet.numfmt.date", component: Ln },
482
+ { label: "sheet.numfmt.thousandthPercentile", component: Bn },
483
+ { label: "sheet.numfmt.customFormat", component: Dn }
481
484
  ].map((_) => ({ ..._, label: m(_.label) })),
482
485
  []
483
- ), [u, l] = N(g), [v, f] = N(() => `${n}_${i}`), { mark: p, userHabitCurrency: d } = In(() => f(`${n}_${i}_userCurrency'`)), S = R(() => {
486
+ ), [u, l] = N(g), [v, f] = N(() => `${n}_${i}`), { mark: p, userHabitCurrency: d } = Tn(() => f(`${n}_${i}_userCurrency'`)), S = R(() => {
484
487
  var _;
485
488
  return (_ = a.find((k) => k.label === u)) == null ? void 0 : _.component;
486
489
  }, [u]);
487
490
  function g() {
488
- return [Dn, En, Mn, kn, Ln].reduce((k, lt, ut) => k || (lt(r) ? a[ut].label : ""), "") || a[0].label;
491
+ return [An, wn, Rn, Fn, jn].reduce((k, ut, mt) => k || (ut(r) ? a[mt].label : ""), "") || a[0].label;
489
492
  }
490
493
  const I = a.map((_) => ({
491
494
  label: _.label,
492
495
  value: _.label
493
496
  })), P = (_) => {
494
497
  l(_), c(() => e.onChange({ type: "change", value: o.current() || "" }));
495
- }, x = hn((_) => {
498
+ }, x = vn((_) => {
496
499
  e.onChange({ type: "change", value: _ });
497
500
  }, []), O = () => {
498
- const _ = o.current() || "", k = W(_);
501
+ const _ = o.current() || "", k = V(_);
499
502
  k && p(k), e.onChange({ type: "confirm", value: _ });
500
- }, D = () => {
503
+ }, F = () => {
501
504
  e.onChange({ type: "cancel", value: "" });
502
- }, se = {
505
+ }, oe = {
503
506
  onChange: x,
504
507
  defaultValue: t,
505
508
  defaultPattern: r,
@@ -510,28 +513,28 @@ const Hn = (e) => {
510
513
  }, [n, i]), /* @__PURE__ */ y(
511
514
  "div",
512
515
  {
513
- className: tt("univer-flex univer-h-full univer-flex-col univer-justify-between univer-overflow-y-auto univer-pb-5", pn),
516
+ className: nt("univer-flex univer-h-full univer-flex-col univer-justify-between univer-overflow-y-auto univer-pb-5", gn),
514
517
  children: [
515
518
  /* @__PURE__ */ y("div", { children: [
516
519
  /* @__PURE__ */ h("div", { className: "univer-mt-3.5 univer-text-sm univer-text-gray-400", children: m("sheet.numfmt.numfmtType") }),
517
- /* @__PURE__ */ h("div", { className: "univer-mt-2", children: /* @__PURE__ */ h(Ee, { className: "univer-w-full", value: u, options: I, onChange: P }) }),
518
- /* @__PURE__ */ h("div", { children: S && /* @__PURE__ */ h(Me.Provider, { value: d, children: /* @__PURE__ */ Ie(S, { ...se, key: v }) }) })
520
+ /* @__PURE__ */ h("div", { className: "univer-mt-2", children: /* @__PURE__ */ h(Te, { className: "univer-w-full", value: u, options: I, onChange: P }) }),
521
+ /* @__PURE__ */ h("div", { children: S && /* @__PURE__ */ h(we.Provider, { value: d, children: /* @__PURE__ */ Ne(S, { ...oe, key: v }) }) })
519
522
  ] }),
520
523
  /* @__PURE__ */ y("div", { className: "univer-mb-5 univer-mt-3.5 univer-flex univer-justify-end", children: [
521
- /* @__PURE__ */ h(xe, { onClick: D, className: "univer-mr-3", children: m("sheet.numfmt.cancel") }),
522
- /* @__PURE__ */ h(xe, { variant: "primary", onClick: O, children: m("sheet.numfmt.confirm") })
524
+ /* @__PURE__ */ h($e, { onClick: F, className: "univer-mr-3", children: m("sheet.numfmt.cancel") }),
525
+ /* @__PURE__ */ h($e, { variant: "primary", onClick: O, children: m("sheet.numfmt.confirm") })
523
526
  ] })
524
527
  ]
525
528
  }
526
529
  );
527
530
  };
528
- var jn = Object.getOwnPropertyDescriptor, Bn = (e, t, r, n) => {
529
- for (var i = n > 1 ? void 0 : n ? jn(t, r) : t, s = e.length - 1, o; s >= 0; s--)
531
+ var Vn = Object.getOwnPropertyDescriptor, Gn = (e, t, r, n) => {
532
+ for (var i = n > 1 ? void 0 : n ? Vn(t, r) : t, s = e.length - 1, o; s >= 0; s--)
530
533
  (o = e[s]) && (i = o(i) || i);
531
534
  return i;
532
535
  }, M = (e, t) => (r, n) => t(r, n, e);
533
- const ke = "SHEET_NUMFMT_PANEL";
534
- let B = class extends ne {
536
+ const Ue = "SHEET_NUMFMT_PANEL";
537
+ let W = class extends ne {
535
538
  constructor(t, r, n, i, s, o, m, c, a, u, l) {
536
539
  super();
537
540
  /**
@@ -540,12 +543,12 @@ let B = class extends ne {
540
543
  * @type {(string | null)}
541
544
  * @memberof NumfmtController
542
545
  */
543
- q(this, "_previewPattern", "");
544
- q(this, "_sidebarDisposable", null);
546
+ J(this, "_previewPattern", "");
547
+ J(this, "_sidebarDisposable", null);
545
548
  this._sheetInterceptorService = t, this._themeService = r, this._univerInstanceService = n, this._commandService = i, this._selectionManagerService = s, this._renderManagerService = o, this._numfmtService = m, this._componentManager = c, this._sidebarService = a, this._localeService = u, this._sheetsNumfmtCellContentController = l, this._initRealTimeRenderingInterceptor(), this._initPanel(), this._initCommands(), this._initCloseListener(), this._commandExecutedListener(), this._initNumfmtLocalChange();
546
549
  }
547
550
  _initNumfmtLocalChange() {
548
- this.disposeWithMe(Qe(this._sheetsNumfmtCellContentController.locale$, this._localeService.currentLocale$).subscribe(() => {
551
+ this.disposeWithMe(et(this._sheetsNumfmtCellContentController.locale$, this._localeService.currentLocale$).subscribe(() => {
549
552
  this._forceUpdate();
550
553
  }));
551
554
  }
@@ -571,17 +574,17 @@ let B = class extends ne {
571
574
  if (g.type === "change")
572
575
  this._previewPattern = g.value, this._forceUpdate();
573
576
  else if (g.type === "confirm") {
574
- const P = ((I = r.getCurrentSelections()) == null ? void 0 : I.map((D) => D.range)) || [], x = { values: [] }, O = L(g.value);
575
- P.forEach((D) => {
576
- He.foreach(D, (se, _) => {
577
+ const P = ((I = r.getCurrentSelections()) == null ? void 0 : I.map((F) => F.range)) || [], x = { values: [] }, O = A(g.value);
578
+ P.forEach((F) => {
579
+ je.foreach(F, (oe, _) => {
577
580
  x.values.push({
578
- row: se,
581
+ row: oe,
579
582
  col: _,
580
583
  pattern: g.value,
581
584
  type: O
582
585
  });
583
586
  });
584
- }), n.executeCommand(Ke.id, x), t.close();
587
+ }), n.executeCommand(Ye.id, x), t.close();
585
588
  } else g.type === "cancel" && t.close();
586
589
  },
587
590
  value: { defaultPattern: f, defaultValue: p, row: c.startRow, col: c.startColumn }
@@ -589,12 +592,12 @@ let B = class extends ne {
589
592
  return this._sidebarDisposable = t.open({
590
593
  header: { title: o.t("sheet.numfmt.title") },
591
594
  children: {
592
- label: ke,
595
+ label: Ue,
593
596
  ...d
594
597
  // need passthrough to react props.
595
598
  },
596
599
  onClose: () => {
597
- this._forceUpdate(), n.executeCommand(le.id);
600
+ this._forceUpdate(), n.executeCommand(ue.id);
598
601
  }
599
602
  }), !0;
600
603
  }
@@ -603,54 +606,54 @@ let B = class extends ne {
603
606
  const r = this._renderManagerService.getRenderById(
604
607
  t != null ? t : this._univerInstanceService.getCurrentUnitForType(T.UNIVER_SHEET).getUnitId()
605
608
  );
606
- r == null || r.with(jt).reCalculate(), (n = r == null ? void 0 : r.mainComponent) == null || n.makeDirty();
609
+ r == null || r.with(Bt).reCalculate(), (n = r == null ? void 0 : r.mainComponent) == null || n.makeDirty();
607
610
  }
608
611
  _initCommands() {
609
612
  [
610
- H,
611
- le
613
+ j,
614
+ ue
612
615
  ].forEach((t) => {
613
616
  this.disposeWithMe(this._commandService.registerCommand(t));
614
617
  });
615
618
  }
616
619
  _initPanel() {
617
620
  this.disposeWithMe(
618
- this._componentManager.register(ke, Hn)
621
+ this._componentManager.register(Ue, Wn)
619
622
  );
620
623
  }
621
624
  // eslint-disable-next-line max-lines-per-function
622
625
  _initRealTimeRenderingInterceptor() {
623
- const t = new A((n) => {
626
+ const t = new H((n) => {
624
627
  this._commandService.onCommandExecuted((i) => {
625
- i.id === H.id && n.next(!0), i.id === le.id && n.next(!1);
628
+ i.id === j.id && n.next(!0), i.id === ue.id && n.next(!1);
626
629
  });
627
- }), r = sn([
630
+ }), r = on([
628
631
  t,
629
632
  this._selectionManagerService.selectionMoveEnd$.pipe(
630
- cn((n) => n ? n.map((i) => i.range) : [])
633
+ an((n) => n ? n.map((i) => i.range) : [])
631
634
  )
632
635
  ]);
633
636
  this.disposeWithMe(
634
- ve(
637
+ fe(
635
638
  r.pipe(
636
- an(
637
- ([n, i]) => new A((s) => {
638
- const o = new pt();
639
+ ln(
640
+ ([n, i]) => new H((s) => {
641
+ const o = new gt();
639
642
  return n && i.length && s.next({ selectionRanges: i, disposableCollection: o }), () => {
640
643
  o.dispose();
641
644
  };
642
645
  })
643
646
  ),
644
- ln(() => {
647
+ un(() => {
645
648
  this._previewPattern = null;
646
649
  })
647
650
  ).subscribe(({ disposableCollection: n, selectionRanges: i }) => {
648
651
  var o, m;
649
652
  const s = this._univerInstanceService.getCurrentUnitForType(T.UNIVER_SHEET);
650
653
  this.openPanel(), n.add(
651
- this._sheetInterceptorService.intercept(Gt.CELL_CONTENT, {
654
+ this._sheetInterceptorService.intercept(Kt.CELL_CONTENT, {
652
655
  priority: 99,
653
- effect: we.Value | we.Style,
656
+ effect: Pe.Value | Pe.Style,
654
657
  handler: (c, a, u) => {
655
658
  var p;
656
659
  const { row: l, col: v } = a, f = u(c) || {};
@@ -660,7 +663,7 @@ let B = class extends ne {
660
663
  const d = a.worksheet.getCellRaw(l, v), S = d == null ? void 0 : d.v, g = d == null ? void 0 : d.t;
661
664
  if (S == null || g !== w.NUMBER || this._previewPattern === null)
662
665
  return f;
663
- const I = Ot(this._previewPattern, S, this._sheetsNumfmtCellContentController.locale);
666
+ const I = kt(this._previewPattern, S, this._sheetsNumfmtCellContentController.locale);
664
667
  if (I.color) {
665
668
  const P = (p = this._themeService.getColorFromTheme(`${I.color}.500`)) != null ? p : I.color;
666
669
  return {
@@ -685,9 +688,9 @@ let B = class extends ne {
685
688
  );
686
689
  }
687
690
  _commandExecutedListener() {
688
- const t = [Ce.id, ye.id];
691
+ const t = [ye.id, be.id];
689
692
  this.disposeWithMe(
690
- new A((r) => {
693
+ new H((r) => {
691
694
  const n = this._commandService.onCommandExecuted((i) => {
692
695
  if (t.includes(i.id)) {
693
696
  const s = i.params;
@@ -695,7 +698,7 @@ let B = class extends ne {
695
698
  }
696
699
  });
697
700
  return () => n.dispose();
698
- }).pipe(un(16)).subscribe((r) => this._forceUpdate(r))
701
+ }).pipe(mn(16)).subscribe((r) => this._forceUpdate(r))
699
702
  );
700
703
  }
701
704
  _initCloseListener() {
@@ -705,25 +708,25 @@ let B = class extends ne {
705
708
  });
706
709
  }
707
710
  };
708
- B = Bn([
709
- M(0, C(qe)),
710
- M(1, C(ft)),
711
- M(2, pe),
712
- M(3, ge),
713
- M(4, C(Se)),
714
- M(5, Be),
715
- M(6, _e),
716
- M(7, C(Je)),
717
- M(8, Qt),
711
+ W = Gn([
712
+ M(0, C(Je)),
713
+ M(1, C(pt)),
714
+ M(2, ge),
715
+ M(3, _e),
716
+ M(4, C(Ce)),
717
+ M(5, We),
718
+ M(6, Se),
719
+ M(7, C(Qe)),
720
+ M(8, en),
718
721
  M(9, C(E)),
719
- M(10, C(Ge))
720
- ], B);
721
- var Wn = Object.getOwnPropertyDescriptor, Vn = (e, t, r, n) => {
722
- for (var i = n > 1 ? void 0 : n ? Wn(t, r) : t, s = e.length - 1, o; s >= 0; s--)
722
+ M(10, C(Ke))
723
+ ], W);
724
+ var Kn = Object.getOwnPropertyDescriptor, Yn = (e, t, r, n) => {
725
+ for (var i = n > 1 ? void 0 : n ? Kn(t, r) : t, s = e.length - 1, o; s >= 0; s--)
723
726
  (o = e[s]) && (i = o(i) || i);
724
727
  return i;
725
- }, F = (e, t) => (r, n) => t(r, n, e);
726
- const Gn = () => {
728
+ }, L = (e, t) => (r, n) => t(r, n, e);
729
+ const Zn = () => {
727
730
  let e = [];
728
731
  return {
729
732
  add: (i, s, o, m, c) => e.push({ unitId: i, subUnitId: s, row: o, col: m, value: c }),
@@ -733,17 +736,17 @@ const Gn = () => {
733
736
  }
734
737
  };
735
738
  };
736
- let Q = class extends ne {
739
+ let ee = class extends ne {
737
740
  constructor(t, r, n, i, s) {
738
741
  super();
739
742
  // collect effect mutations when edit end and push this to commands stack in next commands progress
740
- q(this, "_collectEffectMutation", Gn());
743
+ J(this, "_collectEffectMutation", Zn());
741
744
  this._sheetInterceptorService = t, this._numfmtService = r, this._univerInstanceService = n, this._injector = i, this._editorBridgeService = s, this._initInterceptorEditorStart(), this._initInterceptorEditorEnd(), this._initInterceptorCommands();
742
745
  }
743
746
  _initInterceptorEditorStart() {
744
747
  this._editorBridgeService && this.disposeWithMe(
745
- ve(
746
- this._sheetInterceptorService.writeCellInterceptor.intercept(Kt, {
748
+ fe(
749
+ this._sheetInterceptorService.writeCellInterceptor.intercept(Yt, {
747
750
  handler: (t, r, n) => {
748
751
  const i = r.row, s = r.col, o = this._numfmtService.getValue(
749
752
  r.unitId,
@@ -752,7 +755,7 @@ let Q = class extends ne {
752
755
  s
753
756
  );
754
757
  if (o)
755
- switch (L(o.pattern)) {
758
+ switch (A(o.pattern)) {
756
759
  /**
757
760
  * For scientific, currency, grouped and number format, the editor should display the raw number value without format, unlike the cell render which display the formatted value.
758
761
  */
@@ -761,7 +764,7 @@ let Q = class extends ne {
761
764
  case "grouped":
762
765
  case "number": {
763
766
  const c = { ...r.worksheet.getCellRaw(i, s) };
764
- return (c == null ? void 0 : c.t) === w.NUMBER && he(c.v) && (c.v = ce(Number(c.v))), n && n(c);
767
+ return (c == null ? void 0 : c.t) === w.NUMBER && ve(c.v) && (c.v = ae(Number(c.v))), n && n(c);
765
768
  }
766
769
  /**
767
770
  * For percent format, the editor should display the full percent value, unlike the cell render which display the limited decimal places.
@@ -770,7 +773,7 @@ let Q = class extends ne {
770
773
  */
771
774
  case "percent": {
772
775
  const c = { ...r.worksheet.getCellRaw(i, s) };
773
- return (c == null ? void 0 : c.t) === w.NUMBER && he(c.v) && (c.v = `${ce(Number(c.v) * 100)}%`), n && n(c);
776
+ return (c == null ? void 0 : c.t) === w.NUMBER && ve(c.v) && (c.v = `${ae(Number(c.v) * 100)}%`), n && n(c);
774
777
  }
775
778
  default:
776
779
  return n && n(t);
@@ -789,8 +792,8 @@ let Q = class extends ne {
789
792
  // eslint-disable-next-line max-lines-per-function
790
793
  _initInterceptorEditorEnd() {
791
794
  this.disposeWithMe(
792
- ve(
793
- this._sheetInterceptorService.writeCellInterceptor.intercept(Yt, {
795
+ fe(
796
+ this._sheetInterceptorService.writeCellInterceptor.intercept(Zt, {
794
797
  // eslint-disable-next-line max-lines-per-function,complexity
795
798
  handler: (t, r, n) => {
796
799
  var a, u, l;
@@ -803,25 +806,25 @@ let Q = class extends ne {
803
806
  r.row,
804
807
  r.col
805
808
  ), s = r.worksheet.getCellRaw(r.row, r.col);
806
- if (Fe(i == null ? void 0 : i.pattern) || t.t === w.FORCE_STRING)
809
+ if (Le(i == null ? void 0 : i.pattern) || t.t === w.FORCE_STRING)
807
810
  return n(t);
808
- 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 = _t(m);
811
+ 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 = St(m);
809
812
  if (o)
810
- if (Kn(o)) {
813
+ if (zn(o)) {
811
814
  const { dataStream: v } = o, f = v.replace(/\r\n$/, ""), p = Number(f);
812
815
  if (Number.isNaN(p) && !c)
813
816
  return n(t);
814
817
  } else
815
818
  return n(t);
816
819
  if (c) {
817
- if (!c.z && !(i != null && i.pattern) && (s == null ? void 0 : s.t) !== w.STRING && (s == null ? void 0 : s.t) !== w.FORCE_STRING && St(m))
820
+ if (!c.z && !(i != null && i.pattern) && (s == null ? void 0 : s.t) !== w.STRING && (s == null ? void 0 : s.t) !== w.FORCE_STRING && Ct(m))
818
821
  return n({
819
822
  ...t,
820
823
  p: void 0,
821
824
  v: m,
822
825
  t: w.FORCE_STRING
823
826
  });
824
- c.z && (!(i != null && i.pattern) || L(c.z) !== L(i.pattern)) && this._collectEffectMutation.add(
827
+ c.z && (!(i != null && i.pattern) || A(c.z) !== A(i.pattern)) && this._collectEffectMutation.add(
825
828
  r.unitId,
826
829
  r.subUnitId,
827
830
  r.row,
@@ -830,7 +833,7 @@ let Q = class extends ne {
830
833
  pattern: c.z
831
834
  }
832
835
  );
833
- const v = ce(Number(c.v), 16);
836
+ const v = ae(Number(c.v), 16);
834
837
  return n({ ...t, p: void 0, v, t: w.NUMBER });
835
838
  }
836
839
  return n(t);
@@ -846,7 +849,7 @@ let Q = class extends ne {
846
849
  getMutations(r) {
847
850
  var n;
848
851
  switch (r.id) {
849
- case Zt.id: {
852
+ case zt.id: {
850
853
  const i = t._univerInstanceService.getCurrentUnitForType(T.UNIVER_SHEET), s = i.getUnitId(), o = (n = i.getActiveSheet()) == null ? void 0 : n.getSheetId();
851
854
  if (!o)
852
855
  return {
@@ -877,21 +880,21 @@ let Q = class extends ne {
877
880
  })), u = [], l = [];
878
881
  if (c.length) {
879
882
  const v = {
880
- id: ye.id,
881
- params: zt(s, o, c)
883
+ id: be.id,
884
+ params: Xt(s, o, c)
882
885
  };
883
- u.push(v), l.push(...Xt(t._injector, v.params));
886
+ u.push(v), l.push(...qt(t._injector, v.params));
884
887
  }
885
888
  if (a.length) {
886
889
  const v = {
887
- id: Ce.id,
890
+ id: ye.id,
888
891
  params: {
889
892
  unitId: s,
890
893
  subUnitId: o,
891
894
  ranges: a
892
895
  }
893
896
  };
894
- u.push(v), l.push(...qt(t._injector, v.params));
897
+ u.push(v), l.push(...Jt(t._injector, v.params));
895
898
  }
896
899
  return {
897
900
  redos: u,
@@ -911,25 +914,25 @@ let Q = class extends ne {
911
914
  super.dispose(), this._collectEffectMutation.clean();
912
915
  }
913
916
  };
914
- Q = Vn([
915
- F(0, C(qe)),
916
- F(1, C(_e)),
917
- F(2, C(pe)),
918
- F(3, C(je)),
919
- F(4, gt(Bt))
920
- ], Q);
921
- function Kn(e) {
917
+ ee = Yn([
918
+ L(0, C(Je)),
919
+ L(1, C(Se)),
920
+ L(2, C(ge)),
921
+ L(3, C(Be)),
922
+ L(4, _t(Wt))
923
+ ], ee);
924
+ function zn(e) {
922
925
  const { textRuns: t = [], paragraphs: r = [], customRanges: n, customBlocks: i = [] } = e, s = ["va"];
923
926
  return !(t.some((o) => !!(o.ts && Object.keys(o.ts).some((c) => s.includes(c)))) || r.some((o) => o.bullet) || r.length >= 2 || n != null && n.length || i.length > 0);
924
927
  }
925
- const st = (e) => [
928
+ const ct = (e) => [
926
929
  {
927
930
  label: "sheet.numfmt.general",
928
931
  pattern: null
929
932
  },
930
933
  {
931
934
  label: "sheet.numfmt.text",
932
- pattern: bt
935
+ pattern: It
933
936
  },
934
937
  "|",
935
938
  {
@@ -983,65 +986,65 @@ const st = (e) => [
983
986
  label: "sheet.numfmt.moreFmt",
984
987
  pattern: ""
985
988
  }
986
- ], Yn = (e) => ({
987
- icon: new A((t) => {
989
+ ], Xn = (e) => ({
990
+ icon: new H((t) => {
988
991
  const r = e.get(E);
989
- return t.next(Re(r.getCurrentLocale()).icon), r.localeChanged$.subscribe(() => {
990
- t.next(Re(r.getCurrentLocale()).icon);
992
+ return t.next(xe(r.getCurrentLocale()).icon), r.localeChanged$.subscribe(() => {
993
+ t.next(xe(r.getCurrentLocale()).icon);
991
994
  });
992
995
  }),
993
- id: ze.id,
996
+ id: Xe.id,
994
997
  title: "sheet.numfmt.currency",
995
998
  tooltip: "sheet.numfmt.currency",
996
- type: X.BUTTON,
997
- hidden$: z(e, T.UNIVER_SHEET),
998
- disabled$: V(e, { workbookTypes: [Z], worksheetTypes: [K, Y], rangeTypes: [G] })
999
- }), Zn = (e) => ({
999
+ type: q.BUTTON,
1000
+ hidden$: X(e, T.UNIVER_SHEET),
1001
+ disabled$: G(e, { workbookTypes: [z], worksheetTypes: [Y, Z], rangeTypes: [K] })
1002
+ }), qn = (e) => ({
1000
1003
  icon: "AddDigitsIcon",
1001
- id: Ze.id,
1004
+ id: ze.id,
1002
1005
  title: "sheet.numfmt.addDecimal",
1003
1006
  tooltip: "sheet.numfmt.addDecimal",
1004
- type: X.BUTTON,
1005
- hidden$: z(e, T.UNIVER_SHEET),
1006
- disabled$: V(e, { workbookTypes: [Z], worksheetTypes: [K, Y], rangeTypes: [G] })
1007
- }), zn = (e) => ({
1007
+ type: q.BUTTON,
1008
+ hidden$: X(e, T.UNIVER_SHEET),
1009
+ disabled$: G(e, { workbookTypes: [z], worksheetTypes: [Y, Z], rangeTypes: [K] })
1010
+ }), Jn = (e) => ({
1008
1011
  icon: "ReduceDigitsIcon",
1009
- id: Ye.id,
1012
+ id: Ze.id,
1010
1013
  title: "sheet.numfmt.subtractDecimal",
1011
1014
  tooltip: "sheet.numfmt.subtractDecimal",
1012
- type: X.BUTTON,
1013
- hidden$: z(e, T.UNIVER_SHEET),
1014
- disabled$: V(e, { workbookTypes: [Z], worksheetTypes: [K, Y], rangeTypes: [G] })
1015
- }), Xn = (e) => ({
1015
+ type: q.BUTTON,
1016
+ hidden$: X(e, T.UNIVER_SHEET),
1017
+ disabled$: G(e, { workbookTypes: [z], worksheetTypes: [Y, Z], rangeTypes: [K] })
1018
+ }), Qn = (e) => ({
1016
1019
  icon: "PercentIcon",
1017
- id: Xe.id,
1020
+ id: qe.id,
1018
1021
  title: "sheet.numfmt.percent",
1019
1022
  tooltip: "sheet.numfmt.percent",
1020
- type: X.BUTTON,
1021
- hidden$: z(e, T.UNIVER_SHEET),
1022
- disabled$: V(e, { workbookTypes: [Z], worksheetTypes: [K, Y], rangeTypes: [G] })
1023
- }), qn = (e) => {
1024
- const t = e.get(pe), r = e.get(ge), n = e.get(E), i = e.get(Se), s = [Ce.id, ye.id], o = Wt(
1023
+ type: q.BUTTON,
1024
+ hidden$: X(e, T.UNIVER_SHEET),
1025
+ disabled$: G(e, { workbookTypes: [z], worksheetTypes: [Y, Z], rangeTypes: [K] })
1026
+ }), er = (e) => {
1027
+ const t = e.get(ge), r = e.get(_e), n = e.get(E), i = e.get(Ce), s = [ye.id, be.id], o = Vt(
1025
1028
  t,
1026
1029
  "",
1027
- ({ workbook: m, worksheet: c }) => new A(
1028
- (a) => Qe(
1030
+ ({ workbook: m, worksheet: c }) => new H(
1031
+ (a) => et(
1029
1032
  i.selectionMoveEnd$,
1030
- Ct(r.onCommandExecuted.bind(r)).pipe(
1031
- on(([u]) => s.includes(u.id))
1033
+ yt(r.onCommandExecuted.bind(r)).pipe(
1034
+ cn(([u]) => s.includes(u.id))
1032
1035
  )
1033
1036
  ).subscribe(() => {
1034
1037
  var l, v;
1035
1038
  const u = i.getCurrentSelections();
1036
1039
  if (u && u[0]) {
1037
- const f = u[0].range, p = f.startRow, d = f.startColumn, S = (v = m.getStyles().get((l = c.getCell(p, d)) == null ? void 0 : l.s)) == null ? void 0 : v.n, g = S == null ? void 0 : S.pattern, I = kt(n.getCurrentLocale());
1040
+ const f = u[0].range, p = f.startRow, d = f.startColumn, S = (v = m.getStyles().get((l = c.getCell(p, d)) == null ? void 0 : l.s)) == null ? void 0 : v.n, g = S == null ? void 0 : S.pattern, I = Ut(n.getCurrentLocale());
1038
1041
  let P = n.t("sheet.numfmt.general");
1039
- if (yt(g)) {
1042
+ if (bt(g)) {
1040
1043
  a.next(P);
1041
1044
  return;
1042
1045
  }
1043
1046
  if (g) {
1044
- const x = st(I).filter((O) => typeof O == "object" && O.pattern).find(
1047
+ const x = ct(I).filter((O) => typeof O == "object" && O.pattern).find(
1045
1048
  (O) => re(g, O.pattern)
1046
1049
  );
1047
1050
  x && typeof x == "object" && x.pattern ? P = n.t(x.label) : P = n.t("sheet.numfmt.moreFmt");
@@ -1052,50 +1055,50 @@ const st = (e) => [
1052
1055
  )
1053
1056
  );
1054
1057
  return {
1055
- label: ot,
1056
- id: H.id,
1058
+ label: at,
1059
+ id: j.id,
1057
1060
  tooltip: "sheet.numfmt.title",
1058
- type: X.SELECTOR,
1061
+ type: q.SELECTOR,
1059
1062
  slot: !0,
1060
1063
  selections: [{
1061
1064
  label: {
1062
- name: ct,
1065
+ name: lt,
1063
1066
  hoverable: !1,
1064
1067
  selectable: !1
1065
1068
  }
1066
1069
  }],
1067
1070
  value$: o,
1068
- hidden$: z(e, T.UNIVER_SHEET),
1069
- disabled$: V(e, { workbookTypes: [Z], worksheetTypes: [Y, K], rangeTypes: [G] })
1071
+ hidden$: X(e, T.UNIVER_SHEET),
1072
+ disabled$: G(e, { workbookTypes: [z], worksheetTypes: [Z, Y], rangeTypes: [K] })
1070
1073
  };
1071
- }, ot = "sheet.numfmt.moreNumfmtType", ct = "sheet.numfmt.moreNumfmtType.options";
1072
- function Jn(e) {
1074
+ }, at = "sheet.numfmt.moreNumfmtType", lt = "sheet.numfmt.moreNumfmtType.options";
1075
+ function tr(e) {
1073
1076
  const { value: t } = e, r = b(E), n = t != null ? t : r.t("sheet.numfmt.general");
1074
1077
  return /* @__PURE__ */ h("span", { className: "univer-text-sm", children: n });
1075
1078
  }
1076
- function Qn() {
1077
- const e = b(ge), t = b(E), r = b(en), n = b(Ge), i = b(Se), s = (a) => {
1079
+ function nr() {
1080
+ const e = b(_e), t = b(E), r = b(tn), n = b(Ke), i = b(Ce), s = (a) => {
1078
1081
  const u = i.getCurrentLastSelection();
1079
1082
  if (!u)
1080
1083
  return;
1081
1084
  const l = u.range, v = [];
1082
- He.foreach(l, (f, p) => {
1083
- a ? v.push({ row: f, col: p, pattern: a, type: L(a) }) : v.push({ row: f, col: p });
1084
- }), e.executeCommand(Ke.id, { values: v }), r.focus();
1085
+ je.foreach(l, (f, p) => {
1086
+ a ? v.push({ row: f, col: p, pattern: a, type: A(a) }) : v.push({ row: f, col: p });
1087
+ }), e.executeCommand(Ye.id, { values: v }), r.focus();
1085
1088
  }, o = R(() => {
1086
- const a = Ut.get(t.getCurrentLocale());
1087
- return st(a);
1089
+ const a = Dt.get(t.getCurrentLocale());
1090
+ return ct(a);
1088
1091
  }, [t]), m = (a) => {
1089
1092
  if (a === 0)
1090
1093
  s(null);
1091
1094
  else if (a === o.length - 1)
1092
- e.executeCommand(H.id), r.focus();
1095
+ e.executeCommand(j.id), r.focus();
1093
1096
  else {
1094
1097
  const u = o[a];
1095
1098
  u.pattern && s(u.pattern);
1096
1099
  }
1097
1100
  }, c = 1220;
1098
- return /* @__PURE__ */ h("div", { className: "univer-grid univer-gap-1 univer-p-1.5", children: o.map((a, u) => a === "|" ? /* @__PURE__ */ h(gn, {}, u) : /* @__PURE__ */ y(
1101
+ return /* @__PURE__ */ h("div", { className: "univer-grid univer-gap-1 univer-p-1.5", children: o.map((a, u) => a === "|" ? /* @__PURE__ */ h(_n, {}, u) : /* @__PURE__ */ y(
1099
1102
  "div",
1100
1103
  {
1101
1104
  className: "univer-flex univer-h-7 univer-cursor-default univer-items-center univer-justify-between univer-gap-6 univer-rounded univer-px-2 univer-text-sm hover:univer-bg-gray-100 dark:hover:!univer-bg-gray-700",
@@ -1106,7 +1109,7 @@ function Qn() {
1106
1109
  "span",
1107
1110
  {
1108
1111
  className: "univer-text-xs univer-text-gray-500 dark:!univer-text-gray-400",
1109
- children: a.pattern ? Dt(a.pattern || "", c, n.locale).result.trim() : ""
1112
+ children: a.pattern ? Ft(a.pattern || "", c, n.locale).result.trim() : ""
1110
1113
  }
1111
1114
  )
1112
1115
  ]
@@ -1114,43 +1117,43 @@ function Qn() {
1114
1117
  u
1115
1118
  )) });
1116
1119
  }
1117
- const er = {
1118
- [tn.LAYOUT]: {
1119
- [H.id]: {
1120
+ const rr = {
1121
+ [nn.LAYOUT]: {
1122
+ [j.id]: {
1120
1123
  order: 9,
1121
- menuItemFactory: qn
1124
+ menuItemFactory: er
1122
1125
  },
1123
- [Xe.id]: {
1126
+ [qe.id]: {
1124
1127
  order: 9.1,
1125
- menuItemFactory: Xn
1128
+ menuItemFactory: Qn
1126
1129
  },
1127
- [ze.id]: {
1130
+ [Xe.id]: {
1128
1131
  order: 9.2,
1129
- menuItemFactory: Yn
1132
+ menuItemFactory: Xn
1130
1133
  },
1131
- [Ze.id]: {
1134
+ [ze.id]: {
1132
1135
  order: 9.3,
1133
- menuItemFactory: Zn
1136
+ menuItemFactory: qn
1134
1137
  },
1135
- [Ye.id]: {
1138
+ [Ze.id]: {
1136
1139
  order: 9.4,
1137
- menuItemFactory: zn
1140
+ menuItemFactory: Jn
1138
1141
  }
1139
1142
  }
1140
1143
  };
1141
- var tr = Object.getOwnPropertyDescriptor, nr = (e, t, r, n) => {
1142
- for (var i = n > 1 ? void 0 : n ? tr(t, r) : t, s = e.length - 1, o; s >= 0; s--)
1144
+ var ir = Object.getOwnPropertyDescriptor, sr = (e, t, r, n) => {
1145
+ for (var i = n > 1 ? void 0 : n ? ir(t, r) : t, s = e.length - 1, o; s >= 0; s--)
1143
1146
  (o = e[s]) && (i = o(i) || i);
1144
1147
  return i;
1145
- }, Ue = (e, t) => (r, n) => t(r, n, e);
1146
- let ee = class extends ne {
1148
+ }, De = (e, t) => (r, n) => t(r, n, e);
1149
+ let te = class extends ne {
1147
1150
  constructor(e, t) {
1148
1151
  super(), this._componentManager = e, this._menuManagerService = t, this._initMenu();
1149
1152
  }
1150
1153
  _initMenu() {
1151
- this._menuManagerService.mergeMenu(er), [
1152
- [ot, Jn],
1153
- [ct, Qn]
1154
+ this._menuManagerService.mergeMenu(rr), [
1155
+ [at, tr],
1156
+ [lt, nr]
1154
1157
  ].forEach(([e, t]) => {
1155
1158
  this.disposeWithMe(
1156
1159
  this._componentManager.register(e, t)
@@ -1158,57 +1161,58 @@ let ee = class extends ne {
1158
1161
  });
1159
1162
  }
1160
1163
  };
1161
- ee = nr([
1162
- Ue(0, C(Je)),
1163
- Ue(1, nn)
1164
- ], ee);
1165
- var rr = Object.defineProperty, ir = Object.getOwnPropertyDescriptor, sr = (e, t, r) => t in e ? rr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, or = (e, t, r, n) => {
1166
- for (var i = n > 1 ? void 0 : n ? ir(t, r) : t, s = e.length - 1, o; s >= 0; s--)
1164
+ te = sr([
1165
+ De(0, C(Qe)),
1166
+ De(1, rn)
1167
+ ], te);
1168
+ var or = Object.defineProperty, cr = Object.getOwnPropertyDescriptor, ar = (e, t, r) => t in e ? or(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, lr = (e, t, r, n) => {
1169
+ for (var i = n > 1 ? void 0 : n ? cr(t, r) : t, s = e.length - 1, o; s >= 0; s--)
1167
1170
  (o = e[s]) && (i = o(i) || i);
1168
1171
  return i;
1169
- }, de = (e, t) => (r, n) => t(r, n, e), at = (e, t, r) => sr(e, typeof t != "symbol" ? t + "" : t, r);
1170
- const cr = "SHEET_NUMFMT_UI_PLUGIN";
1171
- let te = class extends Nt {
1172
- constructor(e = $e, t, r, n) {
1172
+ }, he = (e, t) => (r, n) => t(r, n, e), se = (e, t, r) => ar(e, typeof t != "symbol" ? t + "" : t, r);
1173
+ let D = class extends Et {
1174
+ constructor(e = Oe, t, r, n) {
1173
1175
  super(), this._config = e, this._injector = t, this._configService = r, this._renderManagerService = n;
1174
- const { menu: i, ...s } = Et(
1176
+ const { menu: i, ...s } = Tt(
1175
1177
  {},
1176
- $e,
1178
+ Oe,
1177
1179
  this._config
1178
1180
  );
1179
1181
  i && this._configService.setConfig("menu", i, { merge: !0 }), this._configService.setConfig("sheets-numfmt-ui.config", s);
1180
1182
  }
1181
1183
  onStarting() {
1182
- Tt(this._injector, [
1184
+ Mt(this._injector, [
1185
+ [W],
1186
+ [ee],
1183
1187
  [B],
1184
- [Q],
1185
- [j],
1186
- [ee]
1188
+ [te]
1187
1189
  ]);
1188
1190
  }
1189
1191
  onRendered() {
1190
- this._registerRenderModules(), Mt(this._injector, [
1191
- [B],
1192
- [Q],
1193
- [ee]
1192
+ this._registerRenderModules(), wt(this._injector, [
1193
+ [W],
1194
+ [ee],
1195
+ [te]
1194
1196
  ]);
1195
1197
  }
1196
1198
  _registerRenderModules() {
1197
1199
  [
1198
- [fe]
1200
+ [pe]
1199
1201
  ].forEach((t) => {
1200
1202
  this.disposeWithMe(this._renderManagerService.registerRenderModule(T.UNIVER_SHEET, t));
1201
1203
  });
1202
1204
  }
1203
1205
  };
1204
- at(te, "pluginName", cr);
1205
- at(te, "type", T.UNIVER_SHEET);
1206
- te = or([
1207
- It(Vt, Ft),
1208
- de(1, C(je)),
1209
- de(2, De),
1210
- de(3, Be)
1211
- ], te);
1206
+ se(D, "pluginName", "SHEET_NUMFMT_UI_PLUGIN");
1207
+ se(D, "packageName", rt.name);
1208
+ se(D, "version", rt.version);
1209
+ se(D, "type", T.UNIVER_SHEET);
1210
+ D = lr([
1211
+ Nt(Gt, Lt),
1212
+ he(1, C(Be)),
1213
+ he(2, Fe),
1214
+ he(3, We)
1215
+ ], D);
1212
1216
  export {
1213
- te as UniverSheetsNumfmtUIPlugin
1217
+ D as UniverSheetsNumfmtUIPlugin
1214
1218
  };