@univerjs/sheets-numfmt-ui 0.7.0-beta.0 → 0.7.0-nightly.202504301607

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/es/index.js CHANGED
@@ -1,27 +1,27 @@
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 S, LocaleService as M, IConfigService as Le, Disposable as oe, isRealNum as ft, CommandType as He, ILocalStorageService as Ae, numfmt as Q, ThemeService as vt, IUniverInstanceService as Se, ICommandService as ye, UniverInstanceType as T, CellValueType as $, toDisposable as ge, DisposableCollection as pt, InterceptorEffectEnum as Re, Range as je, Injector as Be, Optional as gt, fromCallback as _t, DependentOn as St, Plugin as yt, merge as Ct, registerDependencies as bt, touchDependencies as It } from "@univerjs/core";
5
- import { IRenderManagerService as We } from "@univerjs/engine-render";
6
- import { SHEETS_NUMFMT_PLUGIN_CONFIG_KEY as Nt, currencySymbols as Oe, getDecimalFromPattern as te, getCurrencyType as V, setPatternDecimal as R, getCurrencyFormatOptions as me, isPatternEqualWithoutDecimal as ce, CURRENCYFORMAT as Et, DATEFMTLISG as Tt, NUMBERFORMAT as Mt, getDateFormatOptions as Ve, getNumberFormatOptions as Ge, isPatternHasDecimal as Pt, SheetsNumfmtCellContentController as Ke, getPatternPreviewIgnoreGeneral as wt, getPatternType as ne, SetNumfmtCommand as Ze, SetPercentCommand as Ye, SubtractDecimalCommand as ze, AddDecimalCommand as Xe, SetCurrencyCommand as qe, MenuCurrencyService as xt, countryCurrencyMap as k, getPatternPreview as Rt, UniverSheetsNumfmtPlugin as Ot } from "@univerjs/sheets-numfmt";
7
- import { HoverManagerService as Ut, CellAlertManagerService as Dt, CellAlertType as Ft, SheetSkeletonManagerService as kt, IEditorBridgeService as $t, deriveStateFromActiveSheet$ as Lt, getCurrentRangeDisable$ as G, UniverSheetsUIPlugin as Ht } from "@univerjs/sheets-ui";
8
- import { FormulaDataModel as At } from "@univerjs/engine-formula";
9
- import { isTextFormat as Je, isDefaultFormat as jt, DEFAULT_TEXT_FORMAT_EXCEL as Bt } from "@univerjs/engine-numfmt";
10
- import { INumfmtService as Ce, SheetInterceptorService as Qe, SheetsSelectionsService as be, INTERCEPTOR_POINT as Wt, RemoveNumfmtMutation as Ie, SetNumfmtMutation as Ne, BEFORE_CELL_EDIT as Vt, AFTER_CELL_EDIT as Gt, SetRangeValuesCommand as Kt, transformCellsToRange as Zt, factorySetNumfmtUndoMutation as Yt, factoryRemoveNumfmtUndoMutation as zt, RangeProtectionPermissionEditPoint as K, WorksheetSetCellStylePermission as Z, WorksheetEditPermission as Y, WorkbookEditablePermission as z } from "@univerjs/sheets";
11
- import { IZenZoneService as Xt, useDependency as b, ComponentManager as et, ISidebarService as qt, getMenuHiddenObservable as X, MenuItemType as q, ILayoutService as Jt, RibbonStartGroup as Qt, IMenuManagerService as en } from "@univerjs/ui";
12
- import { debounceTime as tn, merge as tt, Observable as A, combineLatest as nn, filter as rn } from "rxjs";
13
- import { map as sn, switchMap as on, tap as cn, debounceTime as an } from "rxjs/operators";
14
- import { jsxs as C, jsx as m } from "react/jsx-runtime";
15
- import { createContext as ln, useState as I, useEffect as ae, useRef as Ee, useContext as nt, useMemo as O, forwardRef as rt, createElement as Te } from "react";
16
- import { InputNumber as Me, Select as Pe, SelectList as we, Input as un, Button as Ue, Separator as mn } from "@univerjs/design";
17
- const De = {};
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 S, LocaleService as M, IConfigService as Fe, Disposable as se, isRealNum as ht, CommandType as Ae, ILocalStorageService as Le, numfmt as J, ThemeService as ft, IUniverInstanceService as _e, ICommandService as Se, UniverInstanceType as T, CellValueType as $, toDisposable as pe, DisposableCollection as vt, InterceptorEffectEnum as xe, Range as He, Injector as je, Optional as pt, fromCallback as gt, DependentOn as _t, Plugin as St, merge as yt, registerDependencies as bt, touchDependencies as Ct } from "@univerjs/core";
5
+ import { IRenderManagerService as Be } from "@univerjs/engine-render";
6
+ import { SHEETS_NUMFMT_PLUGIN_CONFIG_KEY as Nt, currencySymbols as Re, getDecimalFromPattern as ee, getCurrencyType as V, setPatternDecimal as R, getCurrencyFormatOptions as ue, isPatternEqualWithoutDecimal as oe, CURRENCYFORMAT as It, DATEFMTLISG as Et, NUMBERFORMAT as Tt, getDateFormatOptions as Ve, getNumberFormatOptions as We, isPatternHasDecimal as Mt, SheetsNumfmtCellContentController as Ge, getPatternPreviewIgnoreGeneral as wt, getPatternType as te, SetNumfmtCommand as Ke, SetPercentCommand as Ze, SubtractDecimalCommand as Ye, AddDecimalCommand as ze, SetCurrencyCommand as Xe, MenuCurrencyService as Pt, countryCurrencyMap as k, getPatternPreview as xt, UniverSheetsNumfmtPlugin as Rt } from "@univerjs/sheets-numfmt";
7
+ import { HoverManagerService as Ot, CellAlertManagerService as Ut, CellAlertType as Dt, SheetSkeletonManagerService as kt, IEditorBridgeService as $t, deriveStateFromActiveSheet$ as Ft, getCurrentRangeDisable$ as W, UniverSheetsUIPlugin as At } from "@univerjs/sheets-ui";
8
+ import { FormulaDataModel as Lt } from "@univerjs/engine-formula";
9
+ import { isTextFormat as qe, isDefaultFormat as Ht, DEFAULT_TEXT_FORMAT_EXCEL as jt } from "@univerjs/engine-numfmt";
10
+ import { INumfmtService as ye, SheetInterceptorService as Je, SheetsSelectionsService as be, INTERCEPTOR_POINT as Bt, RemoveNumfmtMutation as Ce, SetNumfmtMutation as Ne, BEFORE_CELL_EDIT as Vt, AFTER_CELL_EDIT as Wt, SetRangeValuesCommand as Gt, transformCellsToRange as Kt, factorySetNumfmtUndoMutation as Zt, factoryRemoveNumfmtUndoMutation as Yt, RangeProtectionPermissionEditPoint as G, WorksheetSetCellStylePermission as K, WorksheetEditPermission as Z, WorkbookEditablePermission as Y } from "@univerjs/sheets";
11
+ import { IZenZoneService as zt, useDependency as C, ComponentManager as Qe, ISidebarService as Xt, getMenuHiddenObservable as z, MenuItemType as X, ILayoutService as qt, RibbonStartGroup as Jt, IMenuManagerService as Qt } from "@univerjs/ui";
12
+ import { debounceTime as en, merge as et, Observable as L, combineLatest as tn, filter as nn } from "rxjs";
13
+ import { map as rn, switchMap as sn, tap as on, debounceTime as cn } from "rxjs/operators";
14
+ import { jsxs as b, jsx as m } from "react/jsx-runtime";
15
+ import { createContext as an, useState as N, useEffect as ce, useRef as Ie, useContext as tt, useMemo as O, forwardRef as nt, createElement as Ee, useCallback as ln } from "react";
16
+ import { InputNumber as Te, Select as Me, SelectList as we, Input as un, Button as Oe, Separator as mn } from "@univerjs/design";
17
+ const Ue = {};
18
18
  var dn = Object.getOwnPropertyDescriptor, hn = (e, t, r, n) => {
19
19
  for (var i = n > 1 ? void 0 : n ? dn(t, r) : t, s = e.length - 1, o; s >= 0; s--)
20
20
  (o = e[s]) && (i = o(i) || i);
21
21
  return i;
22
22
  }, U = (e, t) => (r, n) => t(r, n, e);
23
- const de = "SHEET_NUMFMT_ALERT";
24
- let _e = class extends oe {
23
+ const me = "SHEET_NUMFMT_ALERT";
24
+ let ge = class extends se {
25
25
  constructor(e, t, r, n, i, s, o, a) {
26
26
  super(), this._context = e, this._hoverManagerService = t, this._cellAlertManagerService = r, this._localeService = n, this._formulaDataModel = i, this._zenZoneService = s, this._numfmtService = o, this._configService = a, this._init();
27
27
  }
@@ -29,7 +29,7 @@ let _e = class extends oe {
29
29
  this._initCellAlertPopup(), this._initZenService();
30
30
  }
31
31
  _initCellAlertPopup() {
32
- this.disposeWithMe(this._hoverManagerService.currentCell$.pipe(tn(100)).subscribe((e) => {
32
+ this.disposeWithMe(this._hoverManagerService.currentCell$.pipe(en(100)).subscribe((e) => {
33
33
  var t, r;
34
34
  if (e) {
35
35
  const n = e.location, i = this._context.unit, s = i.getActiveSheet();
@@ -45,20 +45,20 @@ let _e = class extends oe {
45
45
  this._hideAlert();
46
46
  return;
47
47
  }
48
- if (Je(c.pattern) && (u != null && u.v) && ft(u.v)) {
48
+ if (qe(c.pattern) && (u != null && u.v) && ht(u.v)) {
49
49
  if ((t = this._configService.getConfig(Nt)) != null && t.disableTextFormatAlert)
50
50
  return;
51
- const d = this._cellAlertManagerService.currentAlert.get(de), l = (r = d == null ? void 0 : d.alert) == null ? void 0 : r.location;
51
+ const d = this._cellAlertManagerService.currentAlert.get(me), l = (r = d == null ? void 0 : d.alert) == null ? void 0 : r.location;
52
52
  if (l && l.row === n.row && l.col === n.col && l.subUnitId === n.subUnitId && l.unitId === n.unitId)
53
53
  return;
54
54
  this._cellAlertManagerService.showAlert({
55
- type: Ft.WARNING,
55
+ type: Dt.WARNING,
56
56
  title: this._localeService.t("info.error"),
57
57
  message: this._localeService.t("info.forceStringInfo"),
58
58
  location: n,
59
59
  width: 200,
60
60
  height: 74,
61
- key: de
61
+ key: me
62
62
  });
63
63
  return;
64
64
  }
@@ -72,37 +72,37 @@ let _e = class extends oe {
72
72
  }));
73
73
  }
74
74
  _hideAlert() {
75
- this._cellAlertManagerService.removeAlert(de);
75
+ this._cellAlertManagerService.removeAlert(me);
76
76
  }
77
77
  };
78
- _e = hn([
79
- U(1, S(Ut)),
80
- U(2, S(Dt)),
78
+ ge = hn([
79
+ U(1, S(Ot)),
80
+ U(2, S(Ut)),
81
81
  U(3, S(M)),
82
- U(4, S(At)),
83
- U(5, Xt),
84
- U(6, S(Ce)),
85
- U(7, Le)
86
- ], _e);
87
- const he = {
82
+ U(4, S(Lt)),
83
+ U(5, zt),
84
+ U(6, S(ye)),
85
+ U(7, Fe)
86
+ ], ge);
87
+ const de = {
88
88
  id: "sheet.operation.close.numfmt.panel",
89
- type: He.OPERATION,
89
+ type: Ae.OPERATION,
90
90
  handler: () => (
91
91
  // do nothing, just notify panel is closed
92
92
  !0
93
93
  )
94
- }, j = {
94
+ }, H = {
95
95
  id: "sheet.operation.open.numfmt.panel",
96
- type: He.OPERATION,
97
- handler: (e) => (e.get(W).openPanel(), !0)
96
+ type: Ae.OPERATION,
97
+ handler: (e) => (e.get(B).openPanel(), !0)
98
98
  };
99
99
  var fn = Object.getOwnPropertyDescriptor, vn = (e, t, r, n) => {
100
100
  for (var i = n > 1 ? void 0 : n ? fn(t, r) : t, s = e.length - 1, o; s >= 0; s--)
101
101
  (o = e[s]) && (i = o(i) || i);
102
102
  return i;
103
103
  }, pn = (e, t) => (r, n) => t(r, n, e);
104
- const xe = ln([]);
105
- let B = class {
104
+ const Pe = an([]);
105
+ let j = class {
106
106
  constructor(e) {
107
107
  this._localStorageService = e;
108
108
  }
@@ -146,23 +146,23 @@ let B = class {
146
146
  this._localStorageService.removeItem(e);
147
147
  }
148
148
  };
149
- B = vn([
150
- pn(0, S(Ae))
151
- ], B);
152
- const Fe = "numfmtCurrency", gn = (e) => {
153
- const t = b(B), [r, n] = I(Oe);
154
- return ae(() => {
149
+ j = vn([
150
+ pn(0, S(Le))
151
+ ], j);
152
+ const De = "numfmtCurrency", gn = (e) => {
153
+ const t = C(j), [r, n] = N(Re);
154
+ return ce(() => {
155
155
  t.addHabit("numfmtCurrency", []).then(() => {
156
- t.getHabit(Fe, [...Oe]).then((s) => {
156
+ t.getHabit(De, [...Re]).then((s) => {
157
157
  n(s), e && e(s);
158
158
  });
159
159
  });
160
160
  }, []), { userHabitCurrency: r, mark: (s) => {
161
- t.markHabit(Fe, s);
161
+ t.markHabit(De, s);
162
162
  } };
163
163
  }, _n = () => {
164
- const e = Ee([]), [t, r] = I({});
165
- return ae(() => {
164
+ const e = Ie([]), [t, r] = N({});
165
+ return ce(() => {
166
166
  e.current.forEach((i) => {
167
167
  i();
168
168
  }), e.current = [];
@@ -170,7 +170,7 @@ const Fe = "numfmtCurrency", gn = (e) => {
170
170
  e.current.push(i), r({});
171
171
  };
172
172
  }, Sn = (e) => !!V(e) && e.startsWith("_("), yn = (e) => {
173
- const { defaultPattern: t, action: r, onChange: n } = e, [i, s] = I(() => te(t || "", 2)), o = nt(xe), [a, c] = I(() => V(t) || o[0]), u = O(() => o.map((p) => ({ label: p, value: p })), []), l = b(M).t;
173
+ const { defaultPattern: t, action: r, onChange: n } = e, [i, s] = N(() => ee(t || "", 2)), o = tt(Pe), [a, c] = N(() => V(t) || o[0]), u = O(() => o.map((p) => ({ label: p, value: p })), []), l = C(M).t;
174
174
  r.current = () => R(`_("${a}"* #,##0${i > 0 ? ".0" : ""}_)`, i);
175
175
  const h = (p) => {
176
176
  c(p), n(R(`_("${p}"* #,##0${i > 0 ? ".0" : ""}_)`, i));
@@ -178,12 +178,12 @@ const Fe = "numfmtCurrency", gn = (e) => {
178
178
  const f = p || 0;
179
179
  s(f), n(R(`_("${a}"* #,##0${f > 0 ? ".0" : ""}_)`, f));
180
180
  };
181
- return /* @__PURE__ */ C("div", { children: [
182
- /* @__PURE__ */ C("div", { className: "univer-mt-4 univer-flex univer-justify-between", children: [
183
- /* @__PURE__ */ C("div", { className: "option", children: [
181
+ return /* @__PURE__ */ b("div", { children: [
182
+ /* @__PURE__ */ b("div", { className: "univer-mt-4 univer-flex univer-justify-between", children: [
183
+ /* @__PURE__ */ b("div", { className: "option", children: [
184
184
  /* @__PURE__ */ m("div", { className: "univer-text-sm univer-text-gray-400", children: l("sheet.numfmt.decimalLength") }),
185
185
  /* @__PURE__ */ m("div", { className: "univer-mt-2 univer-w-32", children: /* @__PURE__ */ m(
186
- Me,
186
+ Te,
187
187
  {
188
188
  value: i,
189
189
  step: 1,
@@ -194,10 +194,10 @@ const Fe = "numfmtCurrency", gn = (e) => {
194
194
  }
195
195
  ) })
196
196
  ] }),
197
- /* @__PURE__ */ C("div", { className: "option", children: [
197
+ /* @__PURE__ */ b("div", { className: "option", children: [
198
198
  /* @__PURE__ */ m("div", { className: "univer-text-sm univer-text-gray-400", children: l("sheet.numfmt.currencyType") }),
199
199
  /* @__PURE__ */ m("div", { className: "univer-mt-2 univer-w-36", children: /* @__PURE__ */ m(
200
- Pe,
200
+ Me,
201
201
  {
202
202
  options: u,
203
203
  value: a,
@@ -208,30 +208,30 @@ const Fe = "numfmtCurrency", gn = (e) => {
208
208
  ] }),
209
209
  /* @__PURE__ */ m("div", { className: "univer-mt-4 univer-text-sm univer-text-gray-400", children: l("sheet.numfmt.accountingDes") })
210
210
  ] });
211
- }, Cn = (e) => !!V(e) && !e.startsWith("_("), bn = (e) => {
212
- const r = b(M).t, n = nt(xe), [i, s] = I(() => V(e.defaultPattern) || n[0]), [o, a] = I(() => te(e.defaultPattern || "", 2)), [c, u] = I(() => {
211
+ }, bn = (e) => !!V(e) && !e.startsWith("_("), Cn = (e) => {
212
+ const r = C(M).t, n = tt(Pe), [i, s] = N(() => V(e.defaultPattern) || n[0]), [o, a] = N(() => ee(e.defaultPattern || "", 2)), [c, u] = N(() => {
213
213
  var g;
214
- const f = me(i);
215
- return ((g = f.find((N) => ce(N.value, e.defaultPattern))) == null ? void 0 : g.value) || f[0].value;
216
- }), d = O(() => me(i), [i]), l = O(() => n.map((f) => ({ label: f, value: f })), [n]);
214
+ const f = ue(i);
215
+ return ((g = f.find((I) => oe(I.value, e.defaultPattern))) == null ? void 0 : g.value) || f[0].value;
216
+ }), d = O(() => ue(i), [i]), l = O(() => n.map((f) => ({ label: f, value: f })), [n]);
217
217
  e.action.current = () => R(c, o);
218
218
  const h = (f) => {
219
219
  if (f === void 0)
220
220
  return;
221
221
  s(f);
222
- const y = me(f)[0].value;
222
+ const y = ue(f)[0].value;
223
223
  u(y), e.onChange(R(y, o));
224
224
  }, v = (f) => {
225
225
  f !== void 0 && (u(f), e.onChange(R(f, o)));
226
226
  }, p = (f) => {
227
227
  a(f || 0), e.onChange(R(c, f || 0));
228
228
  };
229
- return /* @__PURE__ */ C("div", { children: [
230
- /* @__PURE__ */ C("div", { className: "univer-mt-4 univer-flex univer-justify-between", children: [
231
- /* @__PURE__ */ C("div", { className: "option", children: [
229
+ return /* @__PURE__ */ b("div", { children: [
230
+ /* @__PURE__ */ b("div", { className: "univer-mt-4 univer-flex univer-justify-between", children: [
231
+ /* @__PURE__ */ b("div", { className: "option", children: [
232
232
  /* @__PURE__ */ m("div", { className: "univer-text-sm univer-text-gray-400", children: r("sheet.numfmt.decimalLength") }),
233
233
  /* @__PURE__ */ m("div", { className: "univer-mt-2 univer-w-32", children: /* @__PURE__ */ m(
234
- Me,
234
+ Te,
235
235
  {
236
236
  value: o,
237
237
  max: 20,
@@ -240,10 +240,10 @@ const Fe = "numfmtCurrency", gn = (e) => {
240
240
  }
241
241
  ) })
242
242
  ] }),
243
- /* @__PURE__ */ C("div", { className: "option", children: [
243
+ /* @__PURE__ */ b("div", { className: "option", children: [
244
244
  /* @__PURE__ */ m("div", { className: "univer-text-sm univer-text-gray-400", children: r("sheet.numfmt.currencyType") }),
245
245
  /* @__PURE__ */ m("div", { className: "univer-mt-2 univer-w-36", children: /* @__PURE__ */ m(
246
- Pe,
246
+ Me,
247
247
  {
248
248
  value: i,
249
249
  options: l,
@@ -265,23 +265,23 @@ var E = function() {
265
265
  }
266
266
  return e;
267
267
  }, E.apply(this, arguments);
268
- }, In = function(e, t) {
268
+ }, Nn = function(e, t) {
269
269
  var r = {};
270
270
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
271
271
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
272
272
  for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
273
273
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
274
274
  return r;
275
- }, it = rt(function(e, t) {
276
- var r = e.icon, n = e.id, i = e.className, s = e.extend, o = In(e, ["icon", "id", "className", "extend"]), a = "univerjs-icon univerjs-icon-".concat(n, " ").concat(i || "").trim(), c = Ee("_".concat(Tn()));
277
- return st(r, "".concat(n), { defIds: r.defIds, idSuffix: c.current }, E({ ref: t, className: a }, o), s);
275
+ }, rt = nt(function(e, t) {
276
+ var r = e.icon, n = e.id, i = e.className, s = e.extend, o = Nn(e, ["icon", "id", "className", "extend"]), a = "univerjs-icon univerjs-icon-".concat(n, " ").concat(i || "").trim(), c = Ie("_".concat(Tn()));
277
+ return it(r, "".concat(n), { defIds: r.defIds, idSuffix: c.current }, E({ ref: t, className: a }, o), s);
278
278
  });
279
- function st(e, t, r, n, i) {
280
- return Te(e.tag, E(E({ key: t }, Nn(e, r, i)), n), (En(e, r).children || []).map(function(s, o) {
281
- return st(s, "".concat(t, "-").concat(e.tag, "-").concat(o), r, void 0, i);
279
+ function it(e, t, r, n, i) {
280
+ return Ee(e.tag, E(E({ key: t }, In(e, r, i)), n), (En(e, r).children || []).map(function(s, o) {
281
+ return it(s, "".concat(t, "-").concat(e.tag, "-").concat(o), r, void 0, i);
282
282
  }));
283
283
  }
284
- function Nn(e, t, r) {
284
+ function In(e, t, r) {
285
285
  var n = E({}, e.attrs);
286
286
  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(function(s) {
287
287
  var o = s[0], a = s[1];
@@ -302,39 +302,32 @@ function En(e, t) {
302
302
  function Tn() {
303
303
  return Math.random().toString(36).substring(2, 8);
304
304
  }
305
- it.displayName = "UniverIcon";
306
- var Mn = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M14.1544 3.75557C14.3887 3.98988 14.3887 4.36978 14.1544 4.6041L6.51409 12.2444C6.40157 12.3569 6.24896 12.4201 6.08983 12.4201C5.9307 12.4201 5.77808 12.3569 5.66556 12.2444L1.84541 8.42425C1.6111 8.18993 1.6111 7.81003 1.84541 7.57572C2.07973 7.34141 2.45963 7.34141 2.69394 7.57572L6.08983 10.9716L13.3059 3.75557C13.5402 3.52126 13.9201 3.52126 14.1544 3.75557Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, ot = rt(function(e, t) {
307
- return Te(it, Object.assign({}, e, {
305
+ rt.displayName = "UniverIcon";
306
+ var Mn = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M14.1544 3.75557C14.3887 3.98988 14.3887 4.36978 14.1544 4.6041L6.51409 12.2444C6.40157 12.3569 6.24896 12.4201 6.08983 12.4201C5.9307 12.4201 5.77808 12.3569 5.66556 12.2444L1.84541 8.42425C1.6111 8.18993 1.6111 7.81003 1.84541 7.57572C2.07973 7.34141 2.45963 7.34141 2.69394 7.57572L6.08983 10.9716L13.3059 3.75557C13.5402 3.52126 13.9201 3.52126 14.1544 3.75557Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, st = nt(function(e, t) {
307
+ return Ee(rt, Object.assign({}, e, {
308
308
  id: "check-mark-single",
309
309
  ref: t,
310
310
  icon: Mn
311
311
  }));
312
312
  });
313
- ot.displayName = "CheckMarkSingle";
314
- const Pn = "univer-custom-format-title", wn = "univer-custom-format-input", xn = "univer-custom-format-history-list", Rn = "univer-custom-format-history-list-item", On = "univer-custom-format-history-list-item-icon-wrap", Un = "univer-custom-format-des", D = {
315
- customFormatTitle: Pn,
316
- customFormatInput: wn,
317
- customFormatHistoryList: xn,
318
- customFormatHistoryListItem: Rn,
319
- customFormatHistoryListItemIconWrap: On,
320
- customFormatDes: Un
321
- }, fe = "customFormat", ve = "numfmt_custom_pattern";
322
- function Dn(e) {
323
- const { defaultPattern: t, action: r, onChange: n } = e, i = b(B), s = b(Ae), o = b(M), [a, c] = I(t);
324
- r.current = () => (i.markHabit(fe, a), s.getItem(ve).then((v = []) => {
313
+ st.displayName = "CheckMarkSingle";
314
+ const he = "customFormat", fe = "numfmt_custom_pattern";
315
+ function wn(e) {
316
+ const { defaultPattern: t, action: r, onChange: n } = e, i = C(j), s = C(Le), o = C(M), [a, c] = N(t);
317
+ r.current = () => (i.markHabit(he, a), s.getItem(fe).then((v = []) => {
325
318
  const p = [.../* @__PURE__ */ new Set([a, ...v || []])].splice(0, 10).filter((f) => !!f);
326
- s.setItem(ve, p);
319
+ s.setItem(fe, p);
327
320
  }), a);
328
- const [u, d] = I([]);
329
- ae(() => {
330
- s.getItem(ve).then((v) => {
321
+ const [u, d] = N([]);
322
+ ce(() => {
323
+ s.getItem(fe).then((v) => {
331
324
  const p = [
332
- ...Et.map((f) => f.suffix("$")),
333
- ...Tt.map((f) => f.suffix),
334
- ...Mt.map((f) => f.suffix)
325
+ ...It.map((f) => f.suffix("$")),
326
+ ...Et.map((f) => f.suffix),
327
+ ...Tt.map((f) => f.suffix)
335
328
  ];
336
- p.push(...v || []), i.addHabit(fe, []).finally(() => {
337
- i.getHabit(fe, p).then((f) => {
329
+ p.push(...v || []), i.addHabit(he, []).finally(() => {
330
+ i.getHabit(he, p).then((f) => {
338
331
  d([...new Set(f)]);
339
332
  });
340
333
  });
@@ -345,21 +338,50 @@ function Dn(e) {
345
338
  }, h = () => {
346
339
  n(a);
347
340
  };
348
- return /* @__PURE__ */ C("div", { className: D.customFormat, children: [
349
- /* @__PURE__ */ m("div", { className: D.customFormatTitle, children: o.t("sheet.numfmt.customFormat") }),
350
- /* @__PURE__ */ m(un, { placeholder: o.t("sheet.numfmt.customFormat"), onBlur: h, value: a, onChange: c, className: D.customFormatInput }),
351
- /* @__PURE__ */ m("div", { className: D.customFormatHistoryList, children: u.map((v) => /* @__PURE__ */ C("div", { onClick: () => l(v), className: D.customFormatHistoryListItem, children: [
352
- /* @__PURE__ */ m("div", { className: D.customFormatHistoryListItemIconWrap, children: a === v && /* @__PURE__ */ m(ot, {}) }),
353
- /* @__PURE__ */ m("div", { children: v })
354
- ] }, v)) }),
355
- /* @__PURE__ */ m("div", { className: D.customFormatDes, children: o.t("sheet.numfmt.customFormatDes") })
341
+ return /* @__PURE__ */ b("div", { children: [
342
+ /* @__PURE__ */ m("div", { className: "univer-mt-4 univer-text-sm univer-text-gray-400", children: o.t("sheet.numfmt.customFormat") }),
343
+ /* @__PURE__ */ m(
344
+ un,
345
+ {
346
+ placeholder: o.t("sheet.numfmt.customFormat"),
347
+ onBlur: h,
348
+ value: a,
349
+ onChange: c,
350
+ className: "univer-mt-2 univer-w-full"
351
+ }
352
+ ),
353
+ /* @__PURE__ */ m(
354
+ "div",
355
+ {
356
+ className: `
357
+ univer-mt-2 univer-max-h-[400px] univer-overflow-auto univer-rounded-lg univer-border
358
+ univer-border-solid univer-border-gray-200 univer-p-2
359
+ `,
360
+ children: u.map((v) => /* @__PURE__ */ b(
361
+ "div",
362
+ {
363
+ onClick: () => l(v),
364
+ className: `
365
+ univer-flex univer-cursor-pointer univer-items-center univer-gap-1.5 univer-py-1.5
366
+ univer-text-sm
367
+ `,
368
+ children: [
369
+ /* @__PURE__ */ m("div", { className: "univer-flex univer-w-4 univer-items-center univer-text-primary-600", children: a === v && /* @__PURE__ */ m(st, {}) }),
370
+ /* @__PURE__ */ m("div", { children: v })
371
+ ]
372
+ },
373
+ v
374
+ ))
375
+ }
376
+ ),
377
+ /* @__PURE__ */ m("div", { className: "univer-mt-3 univer-text-sm univer-text-gray-600", children: o.t("sheet.numfmt.customFormatDes") })
356
378
  ] });
357
379
  }
358
- const Fn = (e) => {
359
- const t = Q.getInfo(e);
380
+ const Pn = (e) => {
381
+ const t = J.getInfo(e);
360
382
  return Ve().map((r) => r.value).includes(e) || ["date", "datetime", "time"].includes(t.type);
361
- }, kn = (e) => {
362
- const t = O(Ve, []), n = b(M).t, [i, s] = I(() => {
383
+ }, xn = (e) => {
384
+ const t = O(Ve, []), n = C(M).t, [i, s] = N(() => {
363
385
  if (e.defaultPattern) {
364
386
  const a = t.find((c) => c.value === e.defaultPattern);
365
387
  if (a)
@@ -371,27 +393,27 @@ const Fn = (e) => {
371
393
  const o = (a) => {
372
394
  a !== void 0 && (s(a), e.onChange(a));
373
395
  };
374
- return /* @__PURE__ */ C("div", { children: [
396
+ return /* @__PURE__ */ b("div", { children: [
375
397
  /* @__PURE__ */ m("div", { className: "univer-mt-4 univer-text-sm univer-text-gray-400", children: n("sheet.numfmt.dateType") }),
376
398
  /* @__PURE__ */ m("div", { className: "univer-mt-2", children: /* @__PURE__ */ m(we, { value: i, options: t, onChange: o }) }),
377
399
  /* @__PURE__ */ m("div", { className: "univer-mt-3.5 univer-text-[13px]/5 univer-text-gray-600", children: n("sheet.numfmt.dateDes") })
378
400
  ] });
379
- }, $n = (e) => !e, Ln = (e) => {
380
- const r = b(M).t;
401
+ }, Rn = (e) => !e, On = (e) => {
402
+ const r = C(M).t;
381
403
  return e.action.current = () => "", /* @__PURE__ */ m("div", { children: /* @__PURE__ */ m("div", { className: "univer-mt-3.5 univer-text-[13px]/5 univer-text-gray-600", children: r("sheet.numfmt.generalDes") }) });
382
- }, Hn = (e) => Ge().some((t) => ce(t.value, e)), An = (e) => {
383
- const t = b(M), r = O(Ge, []), [n, i] = I(() => te(e.defaultPattern || "", 0)), [s, o] = I(() => {
384
- const l = r.find((h) => ce(h.value, e.defaultPattern || ""));
404
+ }, Un = (e) => We().some((t) => oe(t.value, e)), Dn = (e) => {
405
+ const t = C(M), r = O(We, []), [n, i] = N(() => ee(e.defaultPattern || "", 0)), [s, o] = N(() => {
406
+ const l = r.find((h) => oe(h.value, e.defaultPattern || ""));
385
407
  return (l == null ? void 0 : l.value) || r[0].value;
386
- }), a = O(() => R(s, Number(n || 0)), [s, n]), c = O(() => !Pt(s), [s]), u = (l) => {
408
+ }), a = O(() => R(s, Number(n || 0)), [s, n]), c = O(() => !Mt(s), [s]), u = (l) => {
387
409
  i(l || 0), e.onChange(R(s, Number(l || 0)));
388
410
  }, d = (l) => {
389
- l !== void 0 && (i(te(l, 0)), o(l), e.onChange(l));
411
+ l !== void 0 && (i(ee(l, 0)), o(l), e.onChange(l));
390
412
  };
391
- return e.action.current = () => a, /* @__PURE__ */ C("div", { children: [
413
+ return e.action.current = () => a, /* @__PURE__ */ b("div", { children: [
392
414
  /* @__PURE__ */ m("div", { className: "univer-mt-4 univer-text-sm univer-text-gray-400", children: t.t("sheet.numfmt.decimalLength") }),
393
415
  /* @__PURE__ */ m("div", { className: "univer-mt-2", children: /* @__PURE__ */ m(
394
- Me,
416
+ Te,
395
417
  {
396
418
  disabled: c,
397
419
  value: n,
@@ -400,78 +422,78 @@ const Fn = (e) => {
400
422
  onChange: u
401
423
  }
402
424
  ) }),
403
- /* @__PURE__ */ C("div", { className: "univer-mt-4 univer-text-sm univer-text-gray-400", children: [
425
+ /* @__PURE__ */ b("div", { className: "univer-mt-4 univer-text-sm univer-text-gray-400", children: [
404
426
  " ",
405
427
  t.t("sheet.numfmt.negType")
406
428
  ] }),
407
429
  /* @__PURE__ */ m("div", { className: "univer-mt-2", children: /* @__PURE__ */ m(we, { onChange: d, options: r, value: s }) }),
408
430
  /* @__PURE__ */ m("div", { className: "univer-mt-3.5 univer-text-[13px]/5 univer-text-gray-600", children: t.t("sheet.numfmt.thousandthPercentileDes") })
409
431
  ] });
410
- }, jn = (e) => {
411
- const { defaultValue: t, defaultPattern: r, row: n, col: i } = e.value, s = b(M), o = Ee(() => ""), a = s.t, c = _n(), u = O(
432
+ }, kn = (e) => {
433
+ const { defaultValue: t, defaultPattern: r, row: n, col: i } = e.value, s = C(M), o = Ie(() => ""), a = s.t, c = _n(), u = O(
412
434
  () => [
413
- { label: "sheet.numfmt.general", component: Ln },
435
+ { label: "sheet.numfmt.general", component: On },
414
436
  { label: "sheet.numfmt.accounting", component: yn },
415
- { label: "sheet.numfmt.currency", component: bn },
416
- { label: "sheet.numfmt.date", component: kn },
417
- { label: "sheet.numfmt.thousandthPercentile", component: An },
418
- { label: "sheet.numfmt.customFormat", component: Dn }
437
+ { label: "sheet.numfmt.currency", component: Cn },
438
+ { label: "sheet.numfmt.date", component: xn },
439
+ { label: "sheet.numfmt.thousandthPercentile", component: Dn },
440
+ { label: "sheet.numfmt.customFormat", component: wn }
419
441
  ].map((_) => ({ ..._, label: a(_.label) })),
420
442
  []
421
- ), [d, l] = I(g), [h, v] = I(() => `${n}_${i}`), { mark: p, userHabitCurrency: f } = gn(() => v(`${n}_${i}_userCurrency'`)), y = O(() => {
443
+ ), [d, l] = N(g), [h, v] = N(() => `${n}_${i}`), { mark: p, userHabitCurrency: f } = gn(() => v(`${n}_${i}_userCurrency'`)), y = O(() => {
422
444
  var _;
423
- return (_ = u.find((F) => F.label === d)) == null ? void 0 : _.component;
445
+ return (_ = u.find((D) => D.label === d)) == null ? void 0 : _.component;
424
446
  }, [d]);
425
447
  function g() {
426
- return [$n, Sn, Cn, Fn, Hn].reduce((F, ut, mt) => F || (ut(r) ? u[mt].label : ""), "") || u[0].label;
448
+ return [Rn, Sn, bn, Pn, Un].reduce((D, lt, ut) => D || (lt(r) ? u[ut].label : ""), "") || u[0].label;
427
449
  }
428
- const N = u.map((_) => ({
450
+ const I = u.map((_) => ({
429
451
  label: _.label,
430
452
  value: _.label
431
- })), w = (_) => {
453
+ })), P = (_) => {
432
454
  l(_), c(() => e.onChange({ type: "change", value: o.current() || "" }));
433
- }, x = (_) => {
455
+ }, x = ln((_) => {
434
456
  e.onChange({ type: "change", value: _ });
435
- }, le = () => {
436
- const _ = o.current() || "", F = V(_);
437
- F && p(F), e.onChange({ type: "confirm", value: _ });
438
- }, L = () => {
457
+ }, []), ae = () => {
458
+ const _ = o.current() || "", D = V(_);
459
+ D && p(D), e.onChange({ type: "confirm", value: _ });
460
+ }, F = () => {
439
461
  e.onChange({ type: "cancel", value: "" });
440
- }, ue = {
462
+ }, le = {
441
463
  onChange: x,
442
464
  defaultValue: t,
443
465
  defaultPattern: r,
444
466
  action: o
445
467
  };
446
- return ae(() => {
468
+ return ce(() => {
447
469
  l(g()), v(`${n}_${i}`);
448
- }, [n, i]), /* @__PURE__ */ C(
470
+ }, [n, i]), /* @__PURE__ */ b(
449
471
  "div",
450
472
  {
451
473
  className: `
452
474
  univer-flex univer-h-full univer-flex-col univer-justify-between univer-overflow-y-auto univer-pb-5
453
475
  `,
454
476
  children: [
455
- /* @__PURE__ */ C("div", { children: [
477
+ /* @__PURE__ */ b("div", { children: [
456
478
  /* @__PURE__ */ m("div", { className: "univer-mt-3.5 univer-text-sm univer-text-gray-400", children: a("sheet.numfmt.numfmtType") }),
457
- /* @__PURE__ */ m("div", { className: "univer-mt-2", children: /* @__PURE__ */ m(Pe, { className: "univer-w-full", value: d, options: N, onChange: w }) }),
458
- /* @__PURE__ */ m("div", { children: y && /* @__PURE__ */ m(xe.Provider, { value: f, children: /* @__PURE__ */ Te(y, { ...ue, key: h }) }) })
479
+ /* @__PURE__ */ m("div", { className: "univer-mt-2", children: /* @__PURE__ */ m(Me, { className: "univer-w-full", value: d, options: I, onChange: P }) }),
480
+ /* @__PURE__ */ m("div", { children: y && /* @__PURE__ */ m(Pe.Provider, { value: f, children: /* @__PURE__ */ Ee(y, { ...le, key: h }) }) })
459
481
  ] }),
460
- /* @__PURE__ */ C("div", { className: "univer-mb-5 univer-mt-3.5 univer-flex univer-justify-end", children: [
461
- /* @__PURE__ */ m(Ue, { onClick: L, className: "univer-mr-3", children: a("sheet.numfmt.cancel") }),
462
- /* @__PURE__ */ m(Ue, { variant: "primary", onClick: le, children: a("sheet.numfmt.confirm") })
482
+ /* @__PURE__ */ b("div", { className: "univer-mb-5 univer-mt-3.5 univer-flex univer-justify-end", children: [
483
+ /* @__PURE__ */ m(Oe, { onClick: F, className: "univer-mr-3", children: a("sheet.numfmt.cancel") }),
484
+ /* @__PURE__ */ m(Oe, { variant: "primary", onClick: ae, children: a("sheet.numfmt.confirm") })
463
485
  ] })
464
486
  ]
465
487
  }
466
488
  );
467
489
  };
468
- var Bn = Object.getOwnPropertyDescriptor, Wn = (e, t, r, n) => {
469
- for (var i = n > 1 ? void 0 : n ? Bn(t, r) : t, s = e.length - 1, o; s >= 0; s--)
490
+ var $n = Object.getOwnPropertyDescriptor, Fn = (e, t, r, n) => {
491
+ for (var i = n > 1 ? void 0 : n ? $n(t, r) : t, s = e.length - 1, o; s >= 0; s--)
470
492
  (o = e[s]) && (i = o(i) || i);
471
493
  return i;
472
- }, P = (e, t) => (r, n) => t(r, n, e);
494
+ }, w = (e, t) => (r, n) => t(r, n, e);
473
495
  const ke = "SHEET_NUMFMT_PANEL";
474
- let W = class extends oe {
496
+ let B = class extends se {
475
497
  constructor(t, r, n, i, s, o, a, c, u, d, l) {
476
498
  super();
477
499
  /**
@@ -480,12 +502,12 @@ let W = class extends oe {
480
502
  * @type {(string | null)}
481
503
  * @memberof NumfmtController
482
504
  */
483
- J(this, "_previewPattern", "");
484
- J(this, "_sidebarDisposable", null);
505
+ q(this, "_previewPattern", "");
506
+ q(this, "_sidebarDisposable", null);
485
507
  this._sheetInterceptorService = t, this._themeService = r, this._univerInstanceService = n, this._commandService = i, this._selectionManagerService = s, this._renderManagerService = o, this._numfmtService = a, this._componentManager = c, this._sidebarService = u, this._localeService = d, this._sheetsNumfmtCellContentController = l, this._initRealTimeRenderingInterceptor(), this._initPanel(), this._initCommands(), this._initCloseListener(), this._commandExecutedListener(), this._initNumfmtLocalChange();
486
508
  }
487
509
  _initNumfmtLocalChange() {
488
- this.disposeWithMe(tt(this._sheetsNumfmtCellContentController.local$, this._localeService.currentLocale$).subscribe(() => {
510
+ this.disposeWithMe(et(this._sheetsNumfmtCellContentController.local$, this._localeService.currentLocale$).subscribe(() => {
489
511
  this._forceUpdate();
490
512
  }));
491
513
  }
@@ -507,21 +529,21 @@ let W = class extends oe {
507
529
  h && (v = h.pattern);
508
530
  const p = (l == null ? void 0 : l.t) === $.NUMBER ? l.v : 12345678, f = {
509
531
  onChange: (g) => {
510
- var N;
532
+ var I;
511
533
  if (g.type === "change")
512
534
  this._previewPattern = g.value, this._forceUpdate();
513
535
  else if (g.type === "confirm") {
514
- const w = ((N = r.getCurrentSelections()) == null ? void 0 : N.map((L) => L.range)) || [], x = { values: [] }, le = ne(g.value);
515
- w.forEach((L) => {
516
- je.foreach(L, (ue, _) => {
536
+ const P = ((I = r.getCurrentSelections()) == null ? void 0 : I.map((F) => F.range)) || [], x = { values: [] }, ae = te(g.value);
537
+ P.forEach((F) => {
538
+ He.foreach(F, (le, _) => {
517
539
  x.values.push({
518
- row: ue,
540
+ row: le,
519
541
  col: _,
520
542
  pattern: g.value,
521
- type: le
543
+ type: ae
522
544
  });
523
545
  });
524
- }), n.executeCommand(Ze.id, x), t.close();
546
+ }), n.executeCommand(Ke.id, x), t.close();
525
547
  } else g.type === "cancel" && t.close();
526
548
  },
527
549
  value: { defaultPattern: v, defaultValue: p, row: c.startRow, col: c.startColumn }
@@ -534,7 +556,7 @@ let W = class extends oe {
534
556
  // need passthrough to react props.
535
557
  },
536
558
  onClose: () => {
537
- this._forceUpdate(), n.executeCommand(he.id);
559
+ this._forceUpdate(), n.executeCommand(de.id);
538
560
  }
539
561
  }), !0;
540
562
  }
@@ -547,48 +569,48 @@ let W = class extends oe {
547
569
  }
548
570
  _initCommands() {
549
571
  [
550
- j,
551
- he
572
+ H,
573
+ de
552
574
  ].forEach((t) => {
553
575
  this.disposeWithMe(this._commandService.registerCommand(t));
554
576
  });
555
577
  }
556
578
  _initPanel() {
557
- this._componentManager.register(ke, jn);
579
+ this._componentManager.register(ke, kn);
558
580
  }
559
581
  // eslint-disable-next-line max-lines-per-function
560
582
  _initRealTimeRenderingInterceptor() {
561
- const t = new A((n) => {
583
+ const t = new L((n) => {
562
584
  this._commandService.onCommandExecuted((i) => {
563
- i.id === j.id && n.next(!0), i.id === he.id && n.next(!1);
585
+ i.id === H.id && n.next(!0), i.id === de.id && n.next(!1);
564
586
  });
565
- }), r = nn([
587
+ }), r = tn([
566
588
  t,
567
589
  this._selectionManagerService.selectionMoveEnd$.pipe(
568
- sn((n) => n ? n.map((i) => i.range) : [])
590
+ rn((n) => n ? n.map((i) => i.range) : [])
569
591
  )
570
592
  ]);
571
593
  this.disposeWithMe(
572
- ge(
594
+ pe(
573
595
  r.pipe(
574
- on(
575
- ([n, i]) => new A((s) => {
576
- const o = new pt();
596
+ sn(
597
+ ([n, i]) => new L((s) => {
598
+ const o = new vt();
577
599
  return n && i.length && s.next({ selectionRanges: i, disposableCollection: o }), () => {
578
600
  o.dispose();
579
601
  };
580
602
  })
581
603
  ),
582
- cn(() => {
604
+ on(() => {
583
605
  this._previewPattern = null;
584
606
  })
585
607
  ).subscribe(({ disposableCollection: n, selectionRanges: i }) => {
586
608
  var o, a;
587
609
  const s = this._univerInstanceService.getCurrentUnitForType(T.UNIVER_SHEET);
588
610
  this.openPanel(), n.add(
589
- this._sheetInterceptorService.intercept(Wt.CELL_CONTENT, {
611
+ this._sheetInterceptorService.intercept(Bt.CELL_CONTENT, {
590
612
  priority: 99,
591
- effect: Re.Value | Re.Style,
613
+ effect: xe.Value | xe.Style,
592
614
  handler: (c, u, d) => {
593
615
  const { row: l, col: h } = u, v = d(c) || {};
594
616
  if (i.find(
@@ -599,12 +621,12 @@ let W = class extends oe {
599
621
  return v;
600
622
  const g = wt(this._previewPattern, f, this._sheetsNumfmtCellContentController.local);
601
623
  if (g.color) {
602
- const w = this._themeService.getCurrentTheme()[`${g.color}500`];
624
+ const P = this._themeService.getCurrentTheme()[`${g.color}500`];
603
625
  return {
604
626
  ...v,
605
627
  v: g.result,
606
628
  t: $.STRING,
607
- s: { cl: { rgb: w } }
629
+ s: { cl: { rgb: P } }
608
630
  };
609
631
  }
610
632
  return {
@@ -622,9 +644,9 @@ let W = class extends oe {
622
644
  );
623
645
  }
624
646
  _commandExecutedListener() {
625
- const t = [Ie.id, Ne.id];
647
+ const t = [Ce.id, Ne.id];
626
648
  this.disposeWithMe(
627
- new A((r) => {
649
+ new L((r) => {
628
650
  const n = this._commandService.onCommandExecuted((i) => {
629
651
  if (t.includes(i.id)) {
630
652
  const s = i.params;
@@ -632,7 +654,7 @@ let W = class extends oe {
632
654
  }
633
655
  });
634
656
  return () => n.dispose();
635
- }).pipe(an(16)).subscribe((r) => this._forceUpdate(r))
657
+ }).pipe(cn(16)).subscribe((r) => this._forceUpdate(r))
636
658
  );
637
659
  }
638
660
  _initCloseListener() {
@@ -642,25 +664,25 @@ let W = class extends oe {
642
664
  });
643
665
  }
644
666
  };
645
- W = Wn([
646
- P(0, S(Qe)),
647
- P(1, S(vt)),
648
- P(2, Se),
649
- P(3, ye),
650
- P(4, S(be)),
651
- P(5, We),
652
- P(6, Ce),
653
- P(7, S(et)),
654
- P(8, qt),
655
- P(9, S(M)),
656
- P(10, S(Ke))
657
- ], W);
658
- var Vn = Object.getOwnPropertyDescriptor, Gn = (e, t, r, n) => {
659
- for (var i = n > 1 ? void 0 : n ? Vn(t, r) : t, s = e.length - 1, o; s >= 0; s--)
667
+ B = Fn([
668
+ w(0, S(Je)),
669
+ w(1, S(ft)),
670
+ w(2, _e),
671
+ w(3, Se),
672
+ w(4, S(be)),
673
+ w(5, Be),
674
+ w(6, ye),
675
+ w(7, S(Qe)),
676
+ w(8, Xt),
677
+ w(9, S(M)),
678
+ w(10, S(Ge))
679
+ ], B);
680
+ var An = Object.getOwnPropertyDescriptor, Ln = (e, t, r, n) => {
681
+ for (var i = n > 1 ? void 0 : n ? An(t, r) : t, s = e.length - 1, o; s >= 0; s--)
660
682
  (o = e[s]) && (i = o(i) || i);
661
683
  return i;
662
- }, H = (e, t) => (r, n) => t(r, n, e);
663
- const Kn = () => {
684
+ }, A = (e, t) => (r, n) => t(r, n, e);
685
+ const Hn = () => {
664
686
  let e = [];
665
687
  return {
666
688
  add: (i, s, o, a, c) => e.push({ unitId: i, subUnitId: s, row: o, col: a, value: c }),
@@ -670,16 +692,16 @@ const Kn = () => {
670
692
  }
671
693
  };
672
694
  };
673
- let re = class extends oe {
695
+ let ne = class extends se {
674
696
  constructor(t, r, n, i, s) {
675
697
  super();
676
698
  // collect effect mutations when edit end and push this to commands stack in next commands progress
677
- J(this, "_collectEffectMutation", Kn());
699
+ q(this, "_collectEffectMutation", Hn());
678
700
  this._sheetInterceptorService = t, this._numfmtService = r, this._univerInstanceService = n, this._injector = i, this._editorBridgeService = s, this._initInterceptorEditorStart(), this._initInterceptorEditorEnd(), this._initInterceptorCommands();
679
701
  }
680
702
  _initInterceptorEditorStart() {
681
703
  this._editorBridgeService && this.disposeWithMe(
682
- ge(
704
+ pe(
683
705
  this._sheetInterceptorService.writeCellInterceptor.intercept(Vt, {
684
706
  handler: (t, r, n) => {
685
707
  const i = r.row, s = r.col, o = this._numfmtService.getValue(
@@ -689,7 +711,7 @@ let re = class extends oe {
689
711
  s
690
712
  );
691
713
  if (o)
692
- switch (ne(o.pattern)) {
714
+ switch (te(o.pattern)) {
693
715
  case "scientific":
694
716
  case "currency":
695
717
  case "grouped":
@@ -717,8 +739,8 @@ let re = class extends oe {
717
739
  */
718
740
  _initInterceptorEditorEnd() {
719
741
  this.disposeWithMe(
720
- ge(
721
- this._sheetInterceptorService.writeCellInterceptor.intercept(Gt, {
742
+ pe(
743
+ this._sheetInterceptorService.writeCellInterceptor.intercept(Wt, {
722
744
  // eslint-disable-next-line complexity
723
745
  handler: (t, r, n) => {
724
746
  var d, l, h, v;
@@ -728,7 +750,7 @@ let re = class extends oe {
728
750
  r.subUnitId,
729
751
  r.row,
730
752
  r.col
731
- ), s = (d = i && ne(i.pattern)) != null ? d : "", o = () => {
753
+ ), s = (d = i && te(i.pattern)) != null ? d : "", o = () => {
732
754
  i && this._collectEffectMutation.add(
733
755
  r.unitId,
734
756
  r.subUnitId,
@@ -737,11 +759,11 @@ let re = class extends oe {
737
759
  null
738
760
  );
739
761
  };
740
- if (!(t != null && t.v) && !(t != null && t.p) || Je(i == null ? void 0 : i.pattern) || t.t === $.FORCE_STRING)
762
+ if (!(t != null && t.v) && !(t != null && t.p) || qe(i == null ? void 0 : i.pattern) || t.t === $.FORCE_STRING)
741
763
  return n(t);
742
- const a = (l = t.p) == null ? void 0 : l.body, c = (v = (h = t == null ? void 0 : t.p) == null ? void 0 : h.body) != null && v.dataStream ? t.p.body.dataStream.replace(/\r\n$/, "") : String(t.v), u = Q.parseDate(c) || Q.parseTime(c) || Q.parseNumber(c);
764
+ const a = (l = t.p) == null ? void 0 : l.body, c = (v = (h = t == null ? void 0 : t.p) == null ? void 0 : h.body) != null && v.dataStream ? t.p.body.dataStream.replace(/\r\n$/, "") : String(t.v), u = J.parseDate(c) || J.parseTime(c) || J.parseNumber(c);
743
765
  if (a)
744
- if (Yn(a)) {
766
+ if (Bn(a)) {
745
767
  const { dataStream: p } = a, f = p.replace(/\r\n$/, ""), y = Number(f);
746
768
  if (Number.isNaN(y) && !u)
747
769
  return n(t);
@@ -759,7 +781,7 @@ let re = class extends oe {
759
781
  );
760
782
  const p = Number(u.v);
761
783
  return n({ ...t, p: void 0, v: p, t: $.NUMBER });
762
- } else (["date", "time", "datetime", "percent"].includes(s) || !Zn(c)) && o();
784
+ } else (["date", "time", "datetime", "percent"].includes(s) || !jn(c)) && o();
763
785
  return n(t);
764
786
  }
765
787
  })
@@ -773,7 +795,7 @@ let re = class extends oe {
773
795
  getMutations(r) {
774
796
  var n;
775
797
  switch (r.id) {
776
- case Kt.id: {
798
+ case Gt.id: {
777
799
  const i = t._univerInstanceService.getCurrentUnitForType(T.UNIVER_SHEET), s = i.getUnitId(), o = (n = i.getActiveSheet()) == null ? void 0 : n.getSheetId();
778
800
  if (!o)
779
801
  return {
@@ -805,20 +827,20 @@ let re = class extends oe {
805
827
  if (c.length) {
806
828
  const h = {
807
829
  id: Ne.id,
808
- params: Zt(s, o, c)
830
+ params: Kt(s, o, c)
809
831
  };
810
- d.push(h), l.push(...Yt(t._injector, h.params));
832
+ d.push(h), l.push(...Zt(t._injector, h.params));
811
833
  }
812
834
  if (u.length) {
813
835
  const h = {
814
- id: Ie.id,
836
+ id: Ce.id,
815
837
  params: {
816
838
  unitId: s,
817
839
  subUnitId: o,
818
840
  ranges: u
819
841
  }
820
842
  };
821
- d.push(h), l.push(...zt(t._injector, h.params));
843
+ d.push(h), l.push(...Yt(t._injector, h.params));
822
844
  }
823
845
  return {
824
846
  redos: d,
@@ -835,28 +857,28 @@ let re = class extends oe {
835
857
  );
836
858
  }
837
859
  };
838
- re = Gn([
839
- H(0, S(Qe)),
840
- H(1, S(Ce)),
841
- H(2, S(Se)),
842
- H(3, S(Be)),
843
- H(4, gt($t))
844
- ], re);
845
- function Zn(e) {
860
+ ne = Ln([
861
+ A(0, S(Je)),
862
+ A(1, S(ye)),
863
+ A(2, S(_e)),
864
+ A(3, S(je)),
865
+ A(4, pt($t))
866
+ ], ne);
867
+ function jn(e) {
846
868
  return /^-?\d+(\.\d+)?$/.test(e);
847
869
  }
848
- function Yn(e) {
870
+ function Bn(e) {
849
871
  const { textRuns: t = [], paragraphs: r = [], customRanges: n, customBlocks: i = [] } = e, s = ["va"];
850
872
  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);
851
873
  }
852
- const ee = [
874
+ const Q = [
853
875
  {
854
876
  label: "sheet.numfmt.general",
855
877
  pattern: null
856
878
  },
857
879
  {
858
880
  label: "sheet.numfmt.text",
859
- pattern: Bt
881
+ pattern: jt
860
882
  },
861
883
  "|",
862
884
  {
@@ -910,9 +932,9 @@ const ee = [
910
932
  label: "sheet.numfmt.moreFmt",
911
933
  pattern: ""
912
934
  }
913
- ], zn = (e) => ({
914
- icon: new A((t) => {
915
- const r = e.get(xt);
935
+ ], Vn = (e) => ({
936
+ icon: new L((t) => {
937
+ const r = e.get(Pt);
916
938
  function n(s) {
917
939
  return {
918
940
  [k.US]: "DollarSingle",
@@ -927,109 +949,109 @@ const ee = [
927
949
  t.next(n(o));
928
950
  });
929
951
  }),
930
- id: qe.id,
952
+ id: Xe.id,
931
953
  title: "sheet.numfmt.currency",
932
954
  tooltip: "sheet.numfmt.currency",
933
- type: q.BUTTON,
934
- hidden$: X(e, T.UNIVER_SHEET),
935
- disabled$: G(e, { workbookTypes: [z], worksheetTypes: [Y, Z], rangeTypes: [K] })
936
- }), Xn = (e) => ({
955
+ type: X.BUTTON,
956
+ hidden$: z(e, T.UNIVER_SHEET),
957
+ disabled$: W(e, { workbookTypes: [Y], worksheetTypes: [Z, K], rangeTypes: [G] })
958
+ }), Wn = (e) => ({
937
959
  icon: "AddDigitsSingle",
938
- id: Xe.id,
960
+ id: ze.id,
939
961
  title: "sheet.numfmt.addDecimal",
940
962
  tooltip: "sheet.numfmt.addDecimal",
941
- type: q.BUTTON,
942
- hidden$: X(e, T.UNIVER_SHEET),
943
- disabled$: G(e, { workbookTypes: [z], worksheetTypes: [Y, Z], rangeTypes: [K] })
944
- }), qn = (e) => ({
963
+ type: X.BUTTON,
964
+ hidden$: z(e, T.UNIVER_SHEET),
965
+ disabled$: W(e, { workbookTypes: [Y], worksheetTypes: [Z, K], rangeTypes: [G] })
966
+ }), Gn = (e) => ({
945
967
  icon: "ReduceDigitsSingle",
946
- id: ze.id,
968
+ id: Ye.id,
947
969
  title: "sheet.numfmt.subtractDecimal",
948
970
  tooltip: "sheet.numfmt.subtractDecimal",
949
- type: q.BUTTON,
950
- hidden$: X(e, T.UNIVER_SHEET),
951
- disabled$: G(e, { workbookTypes: [z], worksheetTypes: [Y, Z], rangeTypes: [K] })
952
- }), Jn = (e) => ({
971
+ type: X.BUTTON,
972
+ hidden$: z(e, T.UNIVER_SHEET),
973
+ disabled$: W(e, { workbookTypes: [Y], worksheetTypes: [Z, K], rangeTypes: [G] })
974
+ }), Kn = (e) => ({
953
975
  icon: "PercentSingle",
954
- id: Ye.id,
976
+ id: Ze.id,
955
977
  title: "sheet.numfmt.percent",
956
978
  tooltip: "sheet.numfmt.percent",
957
- type: q.BUTTON,
958
- hidden$: X(e, T.UNIVER_SHEET),
959
- disabled$: G(e, { workbookTypes: [z], worksheetTypes: [Y, Z], rangeTypes: [K] })
960
- }), Qn = (e) => {
961
- const t = e.get(Se), r = e.get(ye), n = e.get(M), i = e.get(be), s = [Ie.id, Ne.id], o = Lt(
979
+ type: X.BUTTON,
980
+ hidden$: z(e, T.UNIVER_SHEET),
981
+ disabled$: W(e, { workbookTypes: [Y], worksheetTypes: [Z, K], rangeTypes: [G] })
982
+ }), Zn = (e) => {
983
+ const t = e.get(_e), r = e.get(Se), n = e.get(M), i = e.get(be), s = [Ce.id, Ne.id], o = Ft(
962
984
  t,
963
985
  "",
964
- ({ workbook: a, worksheet: c }) => new A(
965
- (u) => tt(
986
+ ({ workbook: a, worksheet: c }) => new L(
987
+ (u) => et(
966
988
  i.selectionMoveEnd$,
967
- _t(r.onCommandExecuted.bind(r)).pipe(
968
- rn(([d]) => s.includes(d.id))
989
+ gt(r.onCommandExecuted.bind(r)).pipe(
990
+ nn(([d]) => s.includes(d.id))
969
991
  )
970
992
  ).subscribe(() => {
971
993
  var l, h;
972
994
  const d = i.getCurrentSelections();
973
995
  if (d && d[0]) {
974
996
  const v = d[0].range, p = v.startRow, f = v.startColumn, y = (h = a.getStyles().get((l = c.getCell(p, f)) == null ? void 0 : l.s)) == null ? void 0 : h.n, g = y == null ? void 0 : y.pattern;
975
- let N = n.t("sheet.numfmt.general");
976
- if (jt(g)) {
977
- u.next(N);
997
+ let I = n.t("sheet.numfmt.general");
998
+ if (Ht(g)) {
999
+ u.next(I);
978
1000
  return;
979
1001
  }
980
1002
  if (g) {
981
- const w = ee.filter((x) => typeof x == "object" && x.pattern).find(
982
- (x) => ce(g, x.pattern)
1003
+ const P = Q.filter((x) => typeof x == "object" && x.pattern).find(
1004
+ (x) => oe(g, x.pattern)
983
1005
  );
984
- w && typeof w == "object" && w.pattern ? N = n.t(w.label) : N = n.t("sheet.numfmt.moreFmt");
1006
+ P && typeof P == "object" && P.pattern ? I = n.t(P.label) : I = n.t("sheet.numfmt.moreFmt");
985
1007
  }
986
- u.next(N);
1008
+ u.next(I);
987
1009
  }
988
1010
  })
989
1011
  )
990
1012
  );
991
1013
  return {
992
- label: ct,
993
- id: j.id,
1014
+ label: ot,
1015
+ id: H.id,
994
1016
  tooltip: "sheet.numfmt.title",
995
- type: q.SELECTOR,
1017
+ type: X.SELECTOR,
996
1018
  slot: !0,
997
1019
  selections: [
998
1020
  {
999
1021
  label: {
1000
- name: at,
1022
+ name: ct,
1001
1023
  hoverable: !1,
1002
1024
  selectable: !1
1003
1025
  }
1004
1026
  }
1005
1027
  ],
1006
1028
  value$: o,
1007
- hidden$: X(e, T.UNIVER_SHEET),
1008
- disabled$: G(e, { workbookTypes: [z], worksheetTypes: [Z, Y], rangeTypes: [K] })
1029
+ hidden$: z(e, T.UNIVER_SHEET),
1030
+ disabled$: W(e, { workbookTypes: [Y], worksheetTypes: [K, Z], rangeTypes: [G] })
1009
1031
  };
1010
- }, ct = "sheet.numfmt.moreNumfmtType", at = "sheet.numfmt.moreNumfmtType.options", er = (e) => {
1011
- const { value: t } = e, r = b(M), n = t != null ? t : r.t("sheet.numfmt.general");
1032
+ }, ot = "sheet.numfmt.moreNumfmtType", ct = "sheet.numfmt.moreNumfmtType.options", Yn = (e) => {
1033
+ const { value: t } = e, r = C(M), n = t != null ? t : r.t("sheet.numfmt.general");
1012
1034
  return /* @__PURE__ */ m("span", { className: "univer-text-sm", children: n });
1013
- }, tr = () => {
1014
- const e = b(ye), t = b(M), r = b(Jt), n = b(Ke), i = b(be), s = (c) => {
1035
+ }, zn = () => {
1036
+ const e = C(Se), t = C(M), r = C(qt), n = C(Ge), i = C(be), s = (c) => {
1015
1037
  const u = i.getCurrentLastSelection();
1016
1038
  if (!u)
1017
1039
  return;
1018
1040
  const d = u.range, l = [];
1019
- je.foreach(d, (h, v) => {
1020
- c ? l.push({ row: h, col: v, pattern: c, type: ne(c) }) : l.push({ row: h, col: v });
1021
- }), e.executeCommand(Ze.id, { values: l }), r.focus();
1041
+ He.foreach(d, (h, v) => {
1042
+ c ? l.push({ row: h, col: v, pattern: c, type: te(c) }) : l.push({ row: h, col: v });
1043
+ }), e.executeCommand(Ke.id, { values: l }), r.focus();
1022
1044
  }, o = (c) => {
1023
1045
  if (c === 0)
1024
1046
  s(null);
1025
- else if (c === ee.length - 1)
1026
- e.executeCommand(j.id), r.focus();
1047
+ else if (c === Q.length - 1)
1048
+ e.executeCommand(H.id), r.focus();
1027
1049
  else {
1028
- const u = ee[c];
1050
+ const u = Q[c];
1029
1051
  u.pattern && s(u.pattern);
1030
1052
  }
1031
1053
  }, a = 1220;
1032
- return /* @__PURE__ */ m("div", { className: "univer-grid univer-gap-1 univer-p-1.5", children: ee.map((c, u) => c === "|" ? /* @__PURE__ */ m(mn, {}, u) : /* @__PURE__ */ C(
1054
+ return /* @__PURE__ */ m("div", { className: "univer-grid univer-gap-1 univer-p-1.5", children: Q.map((c, u) => c === "|" ? /* @__PURE__ */ m(mn, {}, u) : /* @__PURE__ */ b(
1033
1055
  "div",
1034
1056
  {
1035
1057
  className: `
@@ -1042,99 +1064,99 @@ const ee = [
1042
1064
  },
1043
1065
  children: [
1044
1066
  /* @__PURE__ */ m("span", { children: t.t(c.label) }),
1045
- /* @__PURE__ */ m("span", { className: "univer-text-xs univer-text-gray-500", children: c.pattern ? Rt(c.pattern || "", a, n.local).result.trim() : "" })
1067
+ /* @__PURE__ */ m("span", { className: "univer-text-xs univer-text-gray-500", children: c.pattern ? xt(c.pattern || "", a, n.local).result.trim() : "" })
1046
1068
  ]
1047
1069
  },
1048
1070
  u
1049
1071
  )) });
1050
- }, nr = {
1051
- [Qt.FORMULAS_INSERT]: {
1052
- [qe.id]: {
1072
+ }, Xn = {
1073
+ [Jt.FORMULAS_INSERT]: {
1074
+ [Xe.id]: {
1053
1075
  order: 4,
1054
- menuItemFactory: zn
1076
+ menuItemFactory: Vn
1055
1077
  },
1056
- [Xe.id]: {
1078
+ [ze.id]: {
1057
1079
  order: 5,
1058
- menuItemFactory: Xn
1080
+ menuItemFactory: Wn
1059
1081
  },
1060
- [ze.id]: {
1082
+ [Ye.id]: {
1061
1083
  order: 6,
1062
- menuItemFactory: qn
1084
+ menuItemFactory: Gn
1063
1085
  },
1064
- [Ye.id]: {
1086
+ [Ze.id]: {
1065
1087
  order: 7,
1066
- menuItemFactory: Jn
1088
+ menuItemFactory: Kn
1067
1089
  },
1068
- [j.id]: {
1090
+ [H.id]: {
1069
1091
  order: 8,
1070
- menuItemFactory: Qn
1092
+ menuItemFactory: Zn
1071
1093
  }
1072
1094
  }
1073
1095
  };
1074
- var rr = Object.getOwnPropertyDescriptor, ir = (e, t, r, n) => {
1075
- for (var i = n > 1 ? void 0 : n ? rr(t, r) : t, s = e.length - 1, o; s >= 0; s--)
1096
+ var qn = Object.getOwnPropertyDescriptor, Jn = (e, t, r, n) => {
1097
+ for (var i = n > 1 ? void 0 : n ? qn(t, r) : t, s = e.length - 1, o; s >= 0; s--)
1076
1098
  (o = e[s]) && (i = o(i) || i);
1077
1099
  return i;
1078
1100
  }, $e = (e, t) => (r, n) => t(r, n, e);
1079
- let ie = class extends oe {
1101
+ let re = class extends se {
1080
1102
  constructor(e, t) {
1081
1103
  super(), this._componentManager = e, this._menuManagerService = t, this._initMenu();
1082
1104
  }
1083
1105
  _initMenu() {
1084
- this._menuManagerService.mergeMenu(nr), this.disposeWithMe(this._componentManager.register(ct, er)), this.disposeWithMe(this._componentManager.register(at, tr));
1106
+ this._menuManagerService.mergeMenu(Xn), this.disposeWithMe(this._componentManager.register(ot, Yn)), this.disposeWithMe(this._componentManager.register(ct, zn));
1085
1107
  }
1086
1108
  };
1087
- ie = ir([
1088
- $e(0, S(et)),
1089
- $e(1, en)
1090
- ], ie);
1091
- var sr = Object.defineProperty, or = Object.getOwnPropertyDescriptor, cr = (e, t, r) => t in e ? sr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ar = (e, t, r, n) => {
1092
- for (var i = n > 1 ? void 0 : n ? or(t, r) : t, s = e.length - 1, o; s >= 0; s--)
1109
+ re = Jn([
1110
+ $e(0, S(Qe)),
1111
+ $e(1, Qt)
1112
+ ], re);
1113
+ var Qn = Object.defineProperty, er = Object.getOwnPropertyDescriptor, tr = (e, t, r) => t in e ? Qn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, nr = (e, t, r, n) => {
1114
+ for (var i = n > 1 ? void 0 : n ? er(t, r) : t, s = e.length - 1, o; s >= 0; s--)
1093
1115
  (o = e[s]) && (i = o(i) || i);
1094
1116
  return i;
1095
- }, pe = (e, t) => (r, n) => t(r, n, e), lt = (e, t, r) => cr(e, typeof t != "symbol" ? t + "" : t, r);
1096
- const lr = "SHEET_NUMFMT_UI_PLUGIN";
1097
- let se = class extends yt {
1098
- constructor(e = De, t, r, n) {
1117
+ }, ve = (e, t) => (r, n) => t(r, n, e), at = (e, t, r) => tr(e, typeof t != "symbol" ? t + "" : t, r);
1118
+ const rr = "SHEET_NUMFMT_UI_PLUGIN";
1119
+ let ie = class extends St {
1120
+ constructor(e = Ue, t, r, n) {
1099
1121
  super(), this._config = e, this._injector = t, this._configService = r, this._renderManagerService = n;
1100
- const { menu: i, ...s } = Ct(
1122
+ const { menu: i, ...s } = yt(
1101
1123
  {},
1102
- De,
1124
+ Ue,
1103
1125
  this._config
1104
1126
  );
1105
1127
  i && this._configService.setConfig("menu", i, { merge: !0 }), this._configService.setConfig("sheets-numfmt-ui.config", s);
1106
1128
  }
1107
1129
  onStarting() {
1108
1130
  bt(this._injector, [
1109
- [W],
1110
- [re],
1111
1131
  [B],
1112
- [ie]
1132
+ [ne],
1133
+ [j],
1134
+ [re]
1113
1135
  ]);
1114
1136
  }
1115
1137
  onRendered() {
1116
- this._registerRenderModules(), It(this._injector, [
1117
- [W],
1118
- [re],
1119
- [ie]
1138
+ this._registerRenderModules(), Ct(this._injector, [
1139
+ [B],
1140
+ [ne],
1141
+ [re]
1120
1142
  ]);
1121
1143
  }
1122
1144
  _registerRenderModules() {
1123
1145
  [
1124
- [_e]
1146
+ [ge]
1125
1147
  ].forEach((t) => {
1126
1148
  this.disposeWithMe(this._renderManagerService.registerRenderModule(T.UNIVER_SHEET, t));
1127
1149
  });
1128
1150
  }
1129
1151
  };
1130
- lt(se, "pluginName", lr);
1131
- lt(se, "type", T.UNIVER_SHEET);
1132
- se = ar([
1133
- St(Ht, Ot),
1134
- pe(1, S(Be)),
1135
- pe(2, Le),
1136
- pe(3, We)
1137
- ], se);
1152
+ at(ie, "pluginName", rr);
1153
+ at(ie, "type", T.UNIVER_SHEET);
1154
+ ie = nr([
1155
+ _t(At, Rt),
1156
+ ve(1, S(je)),
1157
+ ve(2, Fe),
1158
+ ve(3, Be)
1159
+ ], ie);
1138
1160
  export {
1139
- se as UniverSheetsNumfmtUIPlugin
1161
+ ie as UniverSheetsNumfmtUIPlugin
1140
1162
  };