tor-univer-sheet 1.2.8 → 1.2.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  import { CellValueType as Z } from "@univerjs/presets";
2
- import { CommandType as ve, FEventName as Se, FUniver as Te, ICommandService as Ce, IUniverInstanceService as Ne, Inject as Pe, Injector as ke, LocaleType as Ue, Plugin as Oe, Univer as Ie, UniverInstanceType as je, Workbook as He, createUniver as Re, defaultTheme as Be, greenTheme as Fe, merge as Ze, mergeLocales as Ve, touchDependencies as Ee } from "@univerjs/presets";
3
- import { BaselineOffset as $e, CommandService as Ae } from "@univerjs/core";
2
+ import { CommandType as ve, FEventName as Se, FUniver as Te, ICommandService as Ce, IUniverInstanceService as Ne, Inject as Pe, Injector as ke, LocaleType as Ue, Plugin as Oe, Univer as Ie, UniverInstanceType as je, Workbook as He, createUniver as Re, defaultTheme as Be, greenTheme as Fe, merge as Ze, mergeLocales as Ve, touchDependencies as Ae } from "@univerjs/presets";
3
+ import { BaselineOffset as Ge, CommandService as $e } from "@univerjs/core";
4
4
  import { SetRangeValuesCommand as qe } from "@univerjs/sheets";
5
5
  import { ComponentManager as Je, ContextMenuGroup as ze, ContextMenuPosition as Ke, IMenuManagerService as _e, MenuItemType as Qe, RibbonStartGroup as Xe } from "@univerjs/ui";
6
6
  import { UniverVue3AdapterPlugin as tt } from "@univerjs/ui-adapter-vue3";
@@ -18,19 +18,21 @@ import { UniverSheetsThreadCommentPreset as wt } from "@univerjs/preset-sheets-t
18
18
  import { UniverSheetsTablePreset as St } from "@univerjs/preset-sheets-table";
19
19
  import { UniverWatermarkPlugin as Ct } from "@univerjs/watermark";
20
20
  import { UniverSheetsCrosshairHighlightPlugin as Pt } from "@univerjs/sheets-crosshair-highlight";
21
- import { default as Ut } from "@univerjs/preset-sheets-core/locales/zh-CN";
22
- import { default as It } from "@univerjs/presets/preset-sheets-conditional-formatting/locales/zh-CN";
23
- import { default as Ht } from "@univerjs/presets/preset-sheets-core/locales/zh-CN";
24
- import { default as Bt } from "@univerjs/preset-sheets-drawing/locales/zh-CN";
25
- import { default as Zt } from "@univerjs/preset-sheets-filter/locales/zh-CN";
26
- import { default as Et } from "@univerjs/preset-sheets-hyper-link/locales/zh-CN";
27
- import { default as $t } from "@univerjs/preset-sheets-note/locales/zh-CN";
28
- import { default as Lt } from "@univerjs/presets/preset-sheets-filter/locales/zh-CN";
29
- import { default as Wt } from "@univerjs/preset-sheets-sort/locales/zh-CN";
30
- import { default as zt } from "@univerjs/preset-sheets-data-validation/locales/zh-CN";
31
- import { default as _t } from "@univerjs/preset-sheets-find-replace/locales/zh-CN";
32
- import { default as Xt } from "@univerjs/preset-sheets-thread-comment/locales/zh-CN";
33
- import { default as tr } from "@univerjs/preset-sheets-table/locales/zh-CN";
21
+ import { UniverSheetsAdvancedPreset as Ut } from "@univerjs/preset-sheets-advanced";
22
+ import { default as It } from "@univerjs/preset-sheets-advanced/locales/zh-CN";
23
+ import { default as Ht } from "@univerjs/preset-sheets-core/locales/zh-CN";
24
+ import { default as Bt } from "@univerjs/presets/preset-sheets-conditional-formatting/locales/zh-CN";
25
+ import { default as Zt } from "@univerjs/presets/preset-sheets-core/locales/zh-CN";
26
+ import { default as At } from "@univerjs/preset-sheets-drawing/locales/zh-CN";
27
+ import { default as Gt } from "@univerjs/preset-sheets-filter/locales/zh-CN";
28
+ import { default as Lt } from "@univerjs/preset-sheets-hyper-link/locales/zh-CN";
29
+ import { default as Wt } from "@univerjs/preset-sheets-note/locales/zh-CN";
30
+ import { default as zt } from "@univerjs/presets/preset-sheets-filter/locales/zh-CN";
31
+ import { default as _t } from "@univerjs/preset-sheets-sort/locales/zh-CN";
32
+ import { default as Xt } from "@univerjs/preset-sheets-data-validation/locales/zh-CN";
33
+ import { default as tr } from "@univerjs/preset-sheets-find-replace/locales/zh-CN";
34
+ import { default as or } from "@univerjs/preset-sheets-thread-comment/locales/zh-CN";
35
+ import { default as sr } from "@univerjs/preset-sheets-table/locales/zh-CN";
34
36
  import d from "dayjs";
35
37
  import z from "decimal.js";
36
38
  const de = (e, r) => {
@@ -185,7 +187,7 @@ function W(e, r, o) {
185
187
  return d(e).subtract(r, o).format(t);
186
188
  }
187
189
  function P(e, r, o, t) {
188
- const c = "YYYY-MM-DD HH:mm:ss", n = $(e, r, o, t), y = d(n);
190
+ const c = "YYYY-MM-DD HH:mm:ss", n = G(e, r, o, t), y = d(n);
189
191
  if (r === "month") {
190
192
  const a = y.month();
191
193
  return a === 0 ? [y.startOf("month").format(c), y.date(25).endOf("day").format(c)] : a === 11 ? [y.subtract(1, "month").date(26).startOf("day").format(c), y.endOf("month").format(c)] : [y.subtract(1, "month").date(26).startOf("day").format(c), y.date(25).endOf("day").format(c)];
@@ -193,7 +195,7 @@ function P(e, r, o, t) {
193
195
  const v = { year: "year", day: "day", hour: "hour" };
194
196
  return [y.startOf(v[r]).format(c), y.endOf(v[r]).format(c)];
195
197
  }
196
- function $(e, r, o, t) {
198
+ function G(e, r, o, t) {
197
199
  const c = {
198
200
  year: "YYYY",
199
201
  month: "YYYY-MM",
@@ -213,8 +215,8 @@ async function Ye(e) {
213
215
  for (const [y, v] of Object.entries(n)) {
214
216
  const { custom: a, v: h, t: Y, s: f } = v;
215
217
  if (!a) continue;
216
- const { cellType: G } = a, l = !a.hasOwnProperty("writeBack") || V(a?.writeBack) ? !0 : a.writeBack;
217
- if (G === "indicator") {
218
+ const { cellType: E } = a, l = !a.hasOwnProperty("writeBack") || V(a?.writeBack) ? !0 : a.writeBack;
219
+ if (E === "indicator") {
218
220
  const U = w(o, c, y);
219
221
  U.custom = {
220
222
  ...a,
@@ -232,7 +234,7 @@ async function Ye(e) {
232
234
  }, {});
233
235
  return !r || V(r) ? Promise.reject(new Error("No data found")) : Promise.resolve(r);
234
236
  }
235
- function A(e, r) {
237
+ function $(e, r) {
236
238
  return e.replace(/\$\{([^}]+)\}/g, (o, t) => {
237
239
  try {
238
240
  const c = Object.keys(r), n = Object.values(r);
@@ -249,21 +251,21 @@ function le({
249
251
  initColNum: t,
250
252
  cellData: c
251
253
  }) {
252
- const { rangeData: n, currentDay: y, extraArgs: v } = r, a = v?.teamData || {}, { cycleType: h, timeIncrement: Y, forwardPush: f, forwardPushTimes: G, copyType: l, copyInterval: U, defaultShift: D, templateStr: k, useDefaultEndDate: J } = c.custom;
254
+ const { rangeData: n, currentDay: y, extraArgs: v } = r, a = v?.teamData || {}, { cycleType: h, timeIncrement: Y, forwardPush: f, forwardPushTimes: E, copyType: l, copyInterval: U, defaultShift: D, templateStr: k, useDefaultEndDate: J } = c.custom;
253
255
  let x = 0;
254
256
  switch (h) {
255
257
  case "day": {
256
258
  let s = "";
257
259
  if (f && (s = W(
258
260
  n[0],
259
- G,
261
+ E,
260
262
  "day"
261
263
  /* day */
262
264
  )), !l) {
263
265
  let u = "";
264
266
  f ? u = s : u = n[0];
265
267
  const i = w(e, o, t);
266
- i.v = k ? A(k, { businessDate: u, dayjs: d }) : d(u).format("YYYY-MM-DD"), i.t = Z.STRING, i.s = "tor-time-cell-style";
268
+ i.v = k ? $(k, { businessDate: u, dayjs: d }) : d(u).format("YYYY-MM-DD"), i.t = Z.STRING, i.s = "tor-time-cell-style";
267
269
  break;
268
270
  }
269
271
  f ? x = j(
@@ -280,9 +282,9 @@ function le({
280
282
  for (let u = 0; u <= Math.abs(x === 0 ? 1 : x); u++) {
281
283
  const i = u * (U + 1);
282
284
  let S = "";
283
- f ? S = $(s, "day", u, Y) : S = $(n[0], "day", u, Y);
285
+ f ? S = G(s, "day", u, Y) : S = G(n[0], "day", u, Y);
284
286
  const p = l === "right" ? o : o + i, R = l === "right" ? t + i : t, F = w(e, p, R);
285
- F.v = k ? A(k, { businessDate: S, dayjs: d }) : d(S).format("YYYY-MM-DD"), F.t = Z.STRING, F.s = "tor-time-cell-style";
287
+ F.v = k ? $(k, { businessDate: S, dayjs: d }) : d(S).format("YYYY-MM-DD"), F.t = Z.STRING, F.s = "tor-time-cell-style";
286
288
  }
287
289
  break;
288
290
  }
@@ -300,7 +302,7 @@ function le({
300
302
  );
301
303
  for (let s = 0; s <= Math.abs(x === 0 ? 1 : x); s++) {
302
304
  const u = s * (U + 1), i = l === "right" ? o : o + u, S = l === "right" ? t + u : t, p = w(e, i, S);
303
- p.v = $(n[0], "month", s, Y), p.t = Z.STRING, p.s = "tor-time-cell-style";
305
+ p.v = G(n[0], "month", s, Y), p.t = Z.STRING, p.s = "tor-time-cell-style";
304
306
  }
305
307
  break;
306
308
  }
@@ -308,12 +310,12 @@ function le({
308
310
  let s = "";
309
311
  if (f && (s = W(
310
312
  n[0],
311
- G || 0,
313
+ E || 0,
312
314
  "year"
313
315
  /* year */
314
316
  )), !l) {
315
317
  const u = f ? s : n[0], [i, S] = P(u, "year", 0, 1), p = w(e, o, t), [, R] = P(n[1], "month", 0, 1);
316
- p.v = k ? A(k, {
318
+ p.v = k ? $(k, {
317
319
  startTime: i,
318
320
  endTime: S,
319
321
  rangeData: n,
@@ -333,8 +335,8 @@ function le({
333
335
  /* year */
334
336
  );
335
337
  for (let u = 0; u <= Math.abs(x === 0 ? 1 : x); u++) {
336
- const i = u * (U + 1), S = l === "right" ? o : o + i, p = l === "right" ? t + i : t, [R, F] = P(n[0], "year", u, Y), T = w(e, S, p), N = $(n[0], "year", u, Y);
337
- T.v = k ? A(k, {
338
+ const i = u * (U + 1), S = l === "right" ? o : o + i, p = l === "right" ? t + i : t, [R, F] = P(n[0], "year", u, Y), T = w(e, S, p), N = G(n[0], "year", u, Y);
339
+ T.v = k ? $(k, {
338
340
  startTime: R,
339
341
  endTime: F,
340
342
  rangeData: n,
@@ -363,17 +365,17 @@ function le({
363
365
  const u = s * (U + 1), i = l === "right" ? o : o + u, S = l === "right" ? t + u : t, p = w(e, i, S);
364
366
  if (p.t = Z.STRING, p.s = "tor-time-cell-style", D) {
365
367
  const R = d(n[0]).add(1, "hour").format("YYYY-MM-DD HH:mm:ss");
366
- p.v = $(R, "hour", s, Y);
368
+ p.v = G(R, "hour", s, Y);
367
369
  continue;
368
370
  }
369
- p.v = $(d(y).add(1, "hour").format("YYYY-MM-DD HH:mm:ss"), "hour", s, Y);
371
+ p.v = G(d(y).add(1, "hour").format("YYYY-MM-DD HH:mm:ss"), "hour", s, Y);
370
372
  }
371
373
  break;
372
374
  }
373
375
  case "shift": {
374
376
  if (!l) {
375
377
  const s = w(e, o, t);
376
- s.t = Z.STRING, s.s = "tor-time-cell-style", s.v = k ? A(k, {
378
+ s.t = Z.STRING, s.s = "tor-time-cell-style", s.v = k ? $(k, {
377
379
  rangeData: n,
378
380
  dayjs: d
379
381
  }) : n[0];
@@ -383,7 +385,7 @@ function le({
383
385
  throw new Error("没有获取到当班数据");
384
386
  for (let s = 0; s < a.length; s++) {
385
387
  const u = a[s], { startDatetime: i, endDatetime: S } = u, p = s * (U + 1), R = l === "right" ? o : I(o).add(p).toNumber(), F = l === "right" ? I(t).add(p).toNumber() : t, T = w(e, R, F);
386
- T.s = "tor-time-cell-style", T.v = k ? A(k, {
388
+ T.s = "tor-time-cell-style", T.v = k ? $(k, {
387
389
  team: u
388
390
  }) : i;
389
391
  }
@@ -404,8 +406,8 @@ async function ge(e, r) {
404
406
  d(h).subtract(1, "day").format("YYYY-MM-DD") + " " + n,
405
407
  d(Y).format("YYYY-MM-DD") + " " + n
406
408
  ] : [h, Y], a = Object.entries(e).reduce((h, Y) => {
407
- const [f, G] = Y;
408
- for (const [l, U] of Object.entries(G)) {
409
+ const [f, E] = Y;
410
+ for (const [l, U] of Object.entries(E)) {
409
411
  const { custom: D } = U;
410
412
  if (!D) continue;
411
413
  const {
@@ -477,8 +479,8 @@ async function ge(e, r) {
477
479
  const M = g * (S + 1), b = s ? m : t[0], [C, H] = v(
478
480
  ...P(b, "day", g, x),
479
481
  D?.innerSyncWay
480
- ), O = i === "right" ? f : I(f).add(M).toNumber(), B = i === "right" ? I(l).add(M).toNumber() : l, E = w(h, O, B);
481
- E.s = "tor-indicator-cell-style", E.custom = {
482
+ ), O = i === "right" ? f : I(f).add(M).toNumber(), B = i === "right" ? I(l).add(M).toNumber() : l, A = w(h, O, B);
483
+ A.s = "tor-indicator-cell-style", A.custom = {
482
484
  ...T,
483
485
  startTime: C,
484
486
  endTime: H
@@ -527,10 +529,10 @@ async function ge(e, r) {
527
529
  if (!i) {
528
530
  const b = s ? m : t[0], [C, H] = P(b, "year", 0, 1), O = w(h, f, l);
529
531
  O.s = "tor-indicator-cell-style";
530
- const [, B] = P(g, "month", 0, 1), [E] = P(M, "month", 0, 1);
532
+ const [, B] = P(g, "month", 0, 1), [A] = P(M, "month", 0, 1);
531
533
  O.custom = {
532
534
  ...T,
533
- startTime: R ? E : C,
535
+ startTime: R ? A : C,
534
536
  endTime: F ? B : H
535
537
  };
536
538
  break;
@@ -547,11 +549,11 @@ async function ge(e, r) {
547
549
  /* year */
548
550
  );
549
551
  for (let b = 0; b <= Math.abs(N === 0 ? 1 : N); b++) {
550
- const C = b * (S + 1), H = i === "right" ? f : I(f).add(C).toNumber(), O = i === "right" ? I(l).add(C).toNumber() : l, [B, E] = P(t[0], "year", b, x), L = w(h, H, O);
552
+ const C = b * (S + 1), H = i === "right" ? f : I(f).add(C).toNumber(), O = i === "right" ? I(l).add(C).toNumber() : l, [B, A] = P(t[0], "year", b, x), L = w(h, H, O);
551
553
  L.s = "tor-indicator-cell-style", L.custom = {
552
554
  ...T,
553
555
  startTime: B,
554
- endTime: E
556
+ endTime: A
555
557
  };
556
558
  }
557
559
  break;
@@ -575,7 +577,7 @@ async function ge(e, r) {
575
577
  for (let m = 0; m <= Math.abs(N === 0 ? 1 : N); m++) {
576
578
  const g = m * (S + 1), M = i === "right" ? f : I(f).add(g).toNumber(), b = i === "right" ? I(l).add(g).toNumber() : l, C = w(h, M, b);
577
579
  if (C.s = "tor-indicator-cell-style", p) {
578
- const E = d(t[0]).add(1, "hour").format("YYYY-MM-DD HH:mm:ss"), [L, _] = P(E, "hour", m, x);
580
+ const A = d(t[0]).add(1, "hour").format("YYYY-MM-DD HH:mm:ss"), [L, _] = P(A, "hour", m, x);
579
581
  C.custom = {
580
582
  ...T,
581
583
  startTime: L,
@@ -672,8 +674,8 @@ function be(e, r) {
672
674
  }
673
675
  const xe = "./style.css";
674
676
  export {
675
- $e as BaselineOffset,
676
- Ae as CommandService,
677
+ Ge as BaselineOffset,
678
+ $e as CommandService,
677
679
  ve as CommandType,
678
680
  Je as ComponentManager,
679
681
  ze as ContextMenuGroup,
@@ -695,15 +697,17 @@ export {
695
697
  Ie as Univer,
696
698
  je as UniverInstanceType,
697
699
  ot as UniverLicensePlugin,
698
- zt as UniverPresetSheetsDataValidationZhCN,
699
- Bt as UniverPresetSheetsDrawingZhCN,
700
- Lt as UniverPresetSheetsFilterZhCN,
701
- _t as UniverPresetSheetsFindReplaceZhCN,
702
- Et as UniverPresetSheetsHyperLinkZhCN,
703
- $t as UniverPresetSheetsNoteZhCN,
704
- Wt as UniverPresetSheetsSortZhCN,
705
- tr as UniverPresetSheetsTableZhCN,
706
- Xt as UniverPresetSheetsThreadCommentZhCN,
700
+ It as UniverPresetSheetsAdvancedZhCN,
701
+ Xt as UniverPresetSheetsDataValidationZhCN,
702
+ At as UniverPresetSheetsDrawingZhCN,
703
+ zt as UniverPresetSheetsFilterZhCN,
704
+ tr as UniverPresetSheetsFindReplaceZhCN,
705
+ Lt as UniverPresetSheetsHyperLinkZhCN,
706
+ Wt as UniverPresetSheetsNoteZhCN,
707
+ _t as UniverPresetSheetsSortZhCN,
708
+ sr as UniverPresetSheetsTableZhCN,
709
+ or as UniverPresetSheetsThreadCommentZhCN,
710
+ Ut as UniverSheetsAdvancedPreset,
707
711
  st as UniverSheetsConditionalFormattingPreset,
708
712
  it as UniverSheetsCorePreset,
709
713
  Pt as UniverSheetsCrosshairHighlightPlugin,
@@ -733,11 +737,11 @@ export {
733
737
  Ze as merge,
734
738
  pe as mergeCellData,
735
739
  Ve as mergeLocales,
736
- It as sheetsConditionalFormattingZhCN,
737
- Ht as sheetsCoreZhCN,
738
- Zt as sheetsFilterZhCN,
740
+ Bt as sheetsConditionalFormattingZhCN,
741
+ Zt as sheetsCoreZhCN,
742
+ Gt as sheetsFilterZhCN,
739
743
  xe as stylePath,
740
- Ee as touchDependencies,
744
+ Ae as touchDependencies,
741
745
  he as useData,
742
- Ut as zhCN
746
+ Ht as zhCN
743
747
  };
@@ -1 +1 @@
1
- (function(e,d){typeof exports=="object"&&typeof module<"u"?d(exports,require("@univerjs/presets"),require("@univerjs/core"),require("@univerjs/sheets"),require("@univerjs/ui"),require("@univerjs/ui-adapter-vue3"),require("@univerjs-pro/license"),require("@univerjs/preset-sheets-conditional-formatting"),require("@univerjs/presets/preset-sheets-core"),require("@univerjs/preset-sheets-data-validation"),require("@univerjs/preset-sheets-drawing"),require("@univerjs/preset-sheets-filter"),require("@univerjs/preset-sheets-hyper-link"),require("@univerjs/preset-sheets-note"),require("@univerjs/preset-sheets-sort"),require("@univerjs/preset-sheets-find-replace"),require("@univerjs/preset-sheets-thread-comment"),require("@univerjs/preset-sheets-table"),require("@univerjs/watermark"),require("@univerjs/sheets-crosshair-highlight"),require("@univerjs/preset-sheets-core/locales/zh-CN"),require("@univerjs/presets/preset-sheets-conditional-formatting/locales/zh-CN"),require("@univerjs/presets/preset-sheets-core/locales/zh-CN"),require("@univerjs/preset-sheets-drawing/locales/zh-CN"),require("@univerjs/preset-sheets-filter/locales/zh-CN"),require("@univerjs/preset-sheets-hyper-link/locales/zh-CN"),require("@univerjs/preset-sheets-note/locales/zh-CN"),require("@univerjs/presets/preset-sheets-filter/locales/zh-CN"),require("@univerjs/preset-sheets-sort/locales/zh-CN"),require("@univerjs/preset-sheets-data-validation/locales/zh-CN"),require("@univerjs/preset-sheets-find-replace/locales/zh-CN"),require("@univerjs/preset-sheets-thread-comment/locales/zh-CN"),require("@univerjs/preset-sheets-table/locales/zh-CN"),require("dayjs"),require("decimal.js")):typeof define=="function"&&define.amd?define(["exports","@univerjs/presets","@univerjs/core","@univerjs/sheets","@univerjs/ui","@univerjs/ui-adapter-vue3","@univerjs-pro/license","@univerjs/preset-sheets-conditional-formatting","@univerjs/presets/preset-sheets-core","@univerjs/preset-sheets-data-validation","@univerjs/preset-sheets-drawing","@univerjs/preset-sheets-filter","@univerjs/preset-sheets-hyper-link","@univerjs/preset-sheets-note","@univerjs/preset-sheets-sort","@univerjs/preset-sheets-find-replace","@univerjs/preset-sheets-thread-comment","@univerjs/preset-sheets-table","@univerjs/watermark","@univerjs/sheets-crosshair-highlight","@univerjs/preset-sheets-core/locales/zh-CN","@univerjs/presets/preset-sheets-conditional-formatting/locales/zh-CN","@univerjs/presets/preset-sheets-core/locales/zh-CN","@univerjs/preset-sheets-drawing/locales/zh-CN","@univerjs/preset-sheets-filter/locales/zh-CN","@univerjs/preset-sheets-hyper-link/locales/zh-CN","@univerjs/preset-sheets-note/locales/zh-CN","@univerjs/presets/preset-sheets-filter/locales/zh-CN","@univerjs/preset-sheets-sort/locales/zh-CN","@univerjs/preset-sheets-data-validation/locales/zh-CN","@univerjs/preset-sheets-find-replace/locales/zh-CN","@univerjs/preset-sheets-thread-comment/locales/zh-CN","@univerjs/preset-sheets-table/locales/zh-CN","dayjs","decimal.js"],d):(e=typeof globalThis<"u"?globalThis:e||self,d(e.TorUniverSheet={},e.presets,e.core,e.sheets,e.ui,e.uiAdapterVue3,e.license,e.presetSheetsConditionalFormatting,e.presetSheetsCore,e.presetSheetsDataValidation,e.presetSheetsDrawing,e.presetSheetsFilter,e.presetSheetsHyperLink,e.presetSheetsNote,e.presetSheetsSort,e.presetSheetsFindReplace,e.presetSheetsThreadComment,e.presetSheetsTable,e.watermark,e.sheetsCrosshairHighlight,e.zhCN$c,e.zhCN$9,e.zhCN$a,e.zhCN$1,e.zhCN$b,e.zhCN$4,e.zhCN$5,e.zhCN$2,e.zhCN$6,e.zhCN,e.zhCN$3,e.zhCN$8,e.zhCN$7,e.dayjs,e.Decimal))})(this,(function(e,d,X,ne,Z,se,ie,oe,ae,ue,ce,le,he,me,fe,de,ye,ve,ge,be,Ce,pe,Pe,Ye,De,je,Se,Ne,Me,we,Te,Oe,Ue,y,_){"use strict";const ke=(t,n)=>{for(const s of n)t[s]=null},x=()=>{if(typeof crypto=="object"){if(typeof crypto.randomUUID=="function")return crypto.randomUUID();if(typeof crypto.getRandomValues=="function"&&typeof Uint8Array=="function"){const s=r=>{const c=Number(r);return(c^crypto.getRandomValues(new Uint8Array(1))[0]&15>>c/4).toString(16)};return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,s)}}let t=new Date().getTime(),n=typeof performance<"u"&&performance.now&&performance.now()*1e3||0;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,s=>{let r=Math.random()*16;return t>0?(r=(t+r)%16|0,t=Math.floor(t/16)):(r=(n+r)%16|0,n=Math.floor(n/16)),(s==="x"?r:r&3|8).toString(16)})};function Ie(t){return{...t?.workbookData,id:t?.id||x(),name:t?.name||"未命名",appVersion:t?.appVersion||"1.0.0"}}const ze=Object.prototype.toString,ee=(t,n)=>ze.call(t)===`[object ${n}]`,qe=t=>typeof t<"u",He=t=>!qe(t),Re=t=>t!==null&&ee(t,"Object"),$=t=>t==null||typeof t>"u"?!0:W(t)||$e(t)?t.length===0:t instanceof Map||t instanceof Set?t.size===0:Re(t)?Object.keys(t).length===0:!1,Ve=t=>t===null,Fe=t=>He(t)||Ve(t),$e=t=>ee(t,"String"),W=t=>t&&Array.isArray(t);class Be{value;constructor(n){this.value=new _(n)}add(n){return this.value=this.value.add(n||0),this}subtract(n){return this.value=this.value.sub(n||0),this}multiply(n){return this.value=this.value.mul(n||0),this}divide(n){const s=new _(n);if(s.isZero())throw new Error("除数是0");return this.value=this.value.div(s),this}toFixed(n,s){return this.value=new _(this.value.toFixed(n,s)),this}valueOf(){return this.value}toString(){return this.value.toString()}toNumber(){return this.value.toNumber()}}function I(t=0){return new Be(t)}var te=(t=>(t.无="no",t.年="year",t.月="month",t.周="week",t.天="day",t.班组="shift",t.小时="hour",t.半小时="half_hour",t))(te||{}),re=(t=>(t.view="view",t.edit="edit",t))(re||{});async function Ee(t,n){if(!n)return Promise.reject("日期不能为空");switch(t){case"year":if(W(n))return Promise.resolve(n);const s=y(n);if(!s.isValid())return Promise.reject("无效的日期格式");const r=s.year(),c=`${r}-01`,i=`${r}-12`;return Promise.resolve([c,i]);case"month":if(W(n))return Promise.resolve(n);const g=y(n);if(!g.isValid())return Promise.reject("无效的日期格式");const N=g.startOf("month").format("YYYY-MM-DD"),a=g.endOf("month").format("YYYY-MM-DD");return Promise.resolve([N,a]);case"day":if(W(n))return Promise.resolve(n);const v=y(n);if(!v.isValid())return Promise.reject("无效的日期格式");const b=v.startOf("day").format("YYYY-MM-DD HH:mm:ss"),h=v.endOf("day").format("YYYY-MM-DD HH:mm:ss");return Promise.resolve([b,h]);default:return Promise.reject("不支持的周期类型")}}function H(t,n,s){return s?y(n).diff(y(t),s):0}function J(t,n,s){if(!s)throw new Error("日期类型不能为空");const r={year:"YYYY",month:"YYYY-MM",day:"YYYY-MM-DD",hour:"HH:mm:ss"}[s];return y(t).subtract(n,s).format(r)}function U(t,n,s,r){const c="YYYY-MM-DD HH:mm:ss",i=G(t,n,s,r),g=y(i);if(n==="month"){const a=g.month();return a===0?[g.startOf("month").format(c),g.date(25).endOf("day").format(c)]:a===11?[g.subtract(1,"month").date(26).startOf("day").format(c),g.endOf("month").format(c)]:[g.subtract(1,"month").date(26).startOf("day").format(c),g.date(25).endOf("day").format(c)]}const N={year:"year",day:"day",hour:"hour"};return[g.startOf(N[n]).format(c),g.endOf(N[n]).format(c)]}function G(t,n,s,r){const c={year:"YYYY",month:"YYYY-MM",day:"YYYY-MM-DD",hour:"YYYY-MM-DD HH:mm:ss"}[n];return y(t,c).add(s*r,n).format(c)}function D(t,n,s){return t[n]||(t[n]={}),t[n][s]||(t[n][s]={}),t[n][s]}async function Ge(t){if(!t)throw new Error("cellData is required");const n=Object.entries(t).reduce((s,r)=>{const[c,i]=r;for(const[g,N]of Object.entries(i)){const{custom:a,v,t:b,s:h}=N;if(!a)continue;const{cellType:L}=a,l=!a.hasOwnProperty("writeBack")||$(a?.writeBack)?!0:a.writeBack;if(L==="indicator"){const z=D(s,c,g);z.custom={...a,required:$(a?.required)?!1:a?.required,defaultShift:$(a?.defaultShift)?!1:a?.defaultShift,forwardPush:$(a?.forwardPush)?!1:a?.forwardPush,forwardPushTimes:$(a?.useDefaultEndDate)?0:a?.forwardPushTimes,useDefaultEndDate:$(a?.useDefaultEndDate)?!1:a?.useDefaultEndDate,copyType:$(a?.copyType)?"":a?.copyType,writeBack:l},z.s=h,z.t=b,z.v=v||""}}return s},{});return!n||$(n)?Promise.reject(new Error("No data found")):Promise.resolve(n)}function A(t,n){return t.replace(/\$\{([^}]+)\}/g,(s,r)=>{try{const c=Object.keys(n),i=Object.values(n);return new Function(...c,`return ${r};`)(...i)}catch(c){return console.error(`表达式执行失败: ${r}`,c),s}})}function Le({acc:t,params:n,initRowNum:s,initColNum:r,cellData:c}){const{rangeData:i,currentDay:g,extraArgs:N}=n,a=N?.teamData||{},{cycleType:v,timeIncrement:b,forwardPush:h,forwardPushTimes:L,copyType:l,copyInterval:z,defaultShift:p,templateStr:k,useDefaultEndDate:Q}=c.custom;let j=0;switch(v){case"day":{let o="";if(h&&(o=J(i[0],L,"day")),!l){let m="";h?m=o:m=i[0];const u=D(t,s,r);u.v=k?A(k,{businessDate:m,dayjs:y}):y(m).format("YYYY-MM-DD"),u.t=d.CellValueType.STRING,u.s="tor-time-cell-style";break}h?j=H(o,i[0],"day"):(j=H(i[0],i[1],"day"),console.log("copyNum",j));for(let m=0;m<=Math.abs(j===0?1:j);m++){const u=m*(z+1);let M="";h?M=G(o,"day",m,b):M=G(i[0],"day",m,b);const P=l==="right"?s:s+u,V=l==="right"?r+u:r,B=D(t,P,V);B.v=k?A(k,{businessDate:M,dayjs:y}):y(M).format("YYYY-MM-DD"),B.t=d.CellValueType.STRING,B.s="tor-time-cell-style"}break}case"month":{if(!l){const[o,m]=U(i[1],"month",0,1),u=D(t,s,r);u.v=y(m).format("YYYY-MM"),u.t=d.CellValueType.STRING,u.s="tor-time-cell-style";break}j=H(i[0],i[1],"month");for(let o=0;o<=Math.abs(j===0?1:j);o++){const m=o*(z+1),u=l==="right"?s:s+m,M=l==="right"?r+m:r,P=D(t,u,M);P.v=G(i[0],"month",o,b),P.t=d.CellValueType.STRING,P.s="tor-time-cell-style"}break}case"year":{let o="";if(h&&(o=J(i[0],L||0,"year")),!l){const m=h?o:i[0],[u,M]=U(m,"year",0,1),P=D(t,s,r),[,V]=U(i[1],"month",0,1);P.v=k?A(k,{startTime:u,endTime:M,rangeData:i,dayjs:y}):m,P.t=d.CellValueType.STRING,P.s="tor-time-cell-style";break}h?j=H(o,i[0],"year"):j=H(i[0],i[1],"year");for(let m=0;m<=Math.abs(j===0?1:j);m++){const u=m*(z+1),M=l==="right"?s:s+u,P=l==="right"?r+u:r,[V,B]=U(i[0],"year",m,b),w=D(t,M,P),O=G(i[0],"year",m,b);w.v=k?A(k,{startTime:V,endTime:B,rangeData:i,dayjs:y}):O,w.t=d.CellValueType.STRING,w.s="tor-time-cell-style"}break}case"hour":{if(!l){const o=D(t,s,r);if(o.t=d.CellValueType.STRING,o.s="tor-time-cell-style",p){o.v=y(i[0]).add(1,"hour").format("YYYY-MM-DD HH:mm:ss");break}o.v=y(g).add(1,"hour").format("YYYY-MM-DD HH:mm:ss");break}j=H(i[0],i[1],"hour");for(let o=0;o<=Math.abs(j===0?1:j);o++){const m=o*(z+1),u=l==="right"?s:s+m,M=l==="right"?r+m:r,P=D(t,u,M);if(P.t=d.CellValueType.STRING,P.s="tor-time-cell-style",p){const V=y(i[0]).add(1,"hour").format("YYYY-MM-DD HH:mm:ss");P.v=G(V,"hour",o,b);continue}P.v=G(y(g).add(1,"hour").format("YYYY-MM-DD HH:mm:ss"),"hour",o,b)}break}case"shift":{if(!l){const o=D(t,s,r);o.t=d.CellValueType.STRING,o.s="tor-time-cell-style",o.v=k?A(k,{rangeData:i,dayjs:y}):i[0];break}if(!a.length)throw new Error("没有获取到当班数据");for(let o=0;o<a.length;o++){const m=a[o],{startDatetime:u,endDatetime:M}=m,P=o*(z+1),V=l==="right"?s:I(s).add(P).toNumber(),B=l==="right"?I(r).add(P).toNumber():r,w=D(t,V,B);w.s="tor-time-cell-style",w.v=k?A(k,{team:m}):u}break}}}async function Ze(t,n){if(!t)return Promise.reject("没有可用的单元格数据");const{extraArgs:s,rangeData:r}=n;if(!r.length)return Promise.reject("处理时间范围失败, rangeData不能为空");const c=s?.teamData||[],{periodicityTime:i}=n,g=n?.currentDay||y().format("YYYY-MM-DD"),N=(v,b,h)=>i?h!=="MACH_CYCLE"?[v,b]:parseInt(i.split(":")[0],10)<12?[y(v).format("YYYY-MM-DD")+" "+i,y(b).add(1,"day").format("YYYY-MM-DD")+" "+i]:[y(v).subtract(1,"day").format("YYYY-MM-DD")+" "+i,y(b).format("YYYY-MM-DD")+" "+i]:[v,b],a=Object.entries(t).reduce((v,b)=>{const[h,L]=b;for(const[l,z]of Object.entries(L)){const{custom:p}=z;if(!p)continue;const{cellType:k,cycleType:Q,timeIncrement:j,forwardPush:o,forwardPushTimes:m,copyType:u,copyInterval:M,defaultShift:P,useDefaultStartDate:V,useDefaultEndDate:B}=p;if(k==="time"){Le({acc:v,params:n,initRowNum:Number(h),initColNum:Number(l),cellData:z});continue}const w={cycleType:Q,indicatorName:p.indicatorName,indicatorCode:p.indicatorCode,indicatorId:p.indicatorId,indicatorDimensionName:p.indicatorDimensionName,indicatorDimensionConfig:p.indicatorDimensionConfig,required:Fe(p?.required)??!1,cellType:p.cellType,defaultShift:p?.defaultShift||!1,writeBack:$(p?.writeBack)?!0:p.writeBack,dimensionJson:p?.dimensionJson||"",unit:p?.unit||"",innerSyncWay:p?.innerSyncWay||"",outSyncConfigId:p?.outSyncConfigId||"",innerSyncStatus:p?.innerSyncStatus||""};let O=0;switch(Q){case"day":{let f="";if(o&&(f=J(r[0],m||0,"day")),!u){const C=o?f:r[0],[S,Y]=N(...U(C,"day",0,1),p?.innerSyncWay),T=D(v,h,l);T.s="tor-indicator-cell-style",T.custom={...w,startTime:S,endTime:Y};break}o?O=H(f,r[0],"day"):O=H(r[0],r[1],"day");for(let C=0;C<=Math.abs(O===0?1:O);C++){const S=C*(M+1),Y=o?f:r[0],[T,R]=N(...U(Y,"day",C,j),p?.innerSyncWay),q=u==="right"?h:I(h).add(S).toNumber(),F=u==="right"?I(l).add(S).toNumber():l,E=D(v,q,F);E.s="tor-indicator-cell-style",E.custom={...w,startTime:T,endTime:R}}break}case"month":{if(!u){const[f,C]=U(r[1],"month",0,1),S=D(v,h,l);S.s="tor-indicator-cell-style",S.custom={...w,startTime:f,endTime:C};break}O=H(r[0],r[1],"month");for(let f=0;f<=Math.abs(O===0?1:O);f++){const C=f*(M+1),S=u==="right"?h:I(h).add(C).toNumber(),Y=u==="right"?I(l).add(C).toNumber():l,[T,R]=U(r[0],"month",f,j),q=D(v,S,Y);q.s="tor-indicator-cell-style",q.custom={...w,startTime:T,endTime:R}}break}case"year":{let f="",C="",S="";if(o){f=J(r[0],m||0,"year");const Y=y(r[1]).format("MM");C=y(`${f}-${Y+1}`).format("YYYY-MM"),S=y(`${f}-${Y+2}`).format("YYYY-MM")}if(!u){const Y=o?f:r[0],[T,R]=U(Y,"year",0,1),q=D(v,h,l);q.s="tor-indicator-cell-style";const[,F]=U(C,"month",0,1),[E]=U(S,"month",0,1);q.custom={...w,startTime:V?E:T,endTime:B?F:R};break}o?O=H(f,r[0],"year"):O=H(r[0],r[1],"year");for(let Y=0;Y<=Math.abs(O===0?1:O);Y++){const T=Y*(M+1),R=u==="right"?h:I(h).add(T).toNumber(),q=u==="right"?I(l).add(T).toNumber():l,[F,E]=U(r[0],"year",Y,j),K=D(v,R,q);K.s="tor-indicator-cell-style",K.custom={...w,startTime:F,endTime:E}}break}case"hour":{if(!u){const f=P?r[0]:r[0]??g,[C,S]=U(f,"hour",1,1),Y=D(v,h,l);Y.s="tor-indicator-cell-style",Y.custom={...w,startTime:C,endTime:S};break}O=H(r[0],r[1],"hour");for(let f=0;f<=Math.abs(O===0?1:O);f++){const C=f*(M+1),S=u==="right"?h:I(h).add(C).toNumber(),Y=u==="right"?I(l).add(C).toNumber():l,T=D(v,S,Y);if(T.s="tor-indicator-cell-style",P){const E=y(r[0]).add(1,"hour").format("YYYY-MM-DD HH:mm:ss"),[K,_e]=U(E,"hour",f,j);T.custom={...w,startTime:K,endTime:_e};continue}const R=y(g).add(1,"hour").format("YYYY-MM-DD HH:mm:ss"),[q,F]=U(R,"hour",f,j);T.custom={...w,startTime:q,endTime:F}}break}case"shift":{if(!u){const[f,C]=r,S=D(v,h,l);S.s="tor-indicator-cell-style",S.custom={...w,startTime:f,endTime:C};break}if(!c.length)throw new Error("没有获取到当班数据");for(let f=0;f<c.length;f++){const C=c[f],{startDatetime:S,endDatetime:Y}=C,T=f*(M+1),R=u==="right"?h:I(h).add(T).toNumber(),q=u==="right"?I(l).add(T).toNumber():l,F=D(v,R,q);F.s="tor-indicator-cell-style",F.custom={...w,startTime:S,endTime:Y}}break}}}return v},{});return Promise.resolve(a)}function Ae(t){return Object.entries(t).reduce((s,[r,c])=>{const i=Math.max(...Object.keys(c).map(Number));return i>s?s=Number(i):s=Number(s)||0,s},0)}function We(t,n){const s=JSON.parse(JSON.stringify(t||{}));for(const[r,c]of Object.entries(n)){s[r]||(s[r]={});for(const[i,g]of Object.entries(c)){const N=g??{},a=s[r]?.[i];if(a){const v={...a,...N,custom:{...a.custom,...N.custom},v:N.v||""};s[r][i]=v}else s[r][i]=N}}return s}function Je(t,n){if(!n?.length||!t)return t;const s={};for(const r in t){const c=t[r];for(const i in c){const g=c[i];if(g?.custom?.cellType==="indicator"){const N=Number(r),a=Number(i);if(n.some(b=>N>=b.startRow&&N<=b.endRow&&a>=b.startColumn&&a<=b.endColumn)&&!n.some(h=>N===h.startRow&&a===h.startColumn))continue}s[r]||(s[r]={}),s[r][i]=g}}return s}const Ke="./style.css";Object.defineProperty(e,"CommandType",{enumerable:!0,get:()=>d.CommandType}),Object.defineProperty(e,"FEventName",{enumerable:!0,get:()=>d.FEventName}),Object.defineProperty(e,"FUniver",{enumerable:!0,get:()=>d.FUniver}),Object.defineProperty(e,"ICommandService",{enumerable:!0,get:()=>d.ICommandService}),Object.defineProperty(e,"IUniverInstanceService",{enumerable:!0,get:()=>d.IUniverInstanceService}),Object.defineProperty(e,"Inject",{enumerable:!0,get:()=>d.Inject}),Object.defineProperty(e,"Injector",{enumerable:!0,get:()=>d.Injector}),Object.defineProperty(e,"LocaleType",{enumerable:!0,get:()=>d.LocaleType}),Object.defineProperty(e,"Plugin",{enumerable:!0,get:()=>d.Plugin}),Object.defineProperty(e,"Univer",{enumerable:!0,get:()=>d.Univer}),Object.defineProperty(e,"UniverInstanceType",{enumerable:!0,get:()=>d.UniverInstanceType}),Object.defineProperty(e,"Workbook",{enumerable:!0,get:()=>d.Workbook}),Object.defineProperty(e,"createUniver",{enumerable:!0,get:()=>d.createUniver}),Object.defineProperty(e,"defaultTheme",{enumerable:!0,get:()=>d.defaultTheme}),Object.defineProperty(e,"greenTheme",{enumerable:!0,get:()=>d.greenTheme}),Object.defineProperty(e,"merge",{enumerable:!0,get:()=>d.merge}),Object.defineProperty(e,"mergeLocales",{enumerable:!0,get:()=>d.mergeLocales}),Object.defineProperty(e,"touchDependencies",{enumerable:!0,get:()=>d.touchDependencies}),Object.defineProperty(e,"BaselineOffset",{enumerable:!0,get:()=>X.BaselineOffset}),Object.defineProperty(e,"CommandService",{enumerable:!0,get:()=>X.CommandService}),Object.defineProperty(e,"SetRangeValuesCommand",{enumerable:!0,get:()=>ne.SetRangeValuesCommand}),Object.defineProperty(e,"ComponentManager",{enumerable:!0,get:()=>Z.ComponentManager}),Object.defineProperty(e,"ContextMenuGroup",{enumerable:!0,get:()=>Z.ContextMenuGroup}),Object.defineProperty(e,"ContextMenuPosition",{enumerable:!0,get:()=>Z.ContextMenuPosition}),Object.defineProperty(e,"IMenuManagerService",{enumerable:!0,get:()=>Z.IMenuManagerService}),Object.defineProperty(e,"MenuItemType",{enumerable:!0,get:()=>Z.MenuItemType}),Object.defineProperty(e,"RibbonStartGroup",{enumerable:!0,get:()=>Z.RibbonStartGroup}),Object.defineProperty(e,"UniverVue3AdapterPlugin",{enumerable:!0,get:()=>se.UniverVue3AdapterPlugin}),Object.defineProperty(e,"UniverLicensePlugin",{enumerable:!0,get:()=>ie.UniverLicensePlugin}),Object.defineProperty(e,"UniverSheetsConditionalFormattingPreset",{enumerable:!0,get:()=>oe.UniverSheetsConditionalFormattingPreset}),Object.defineProperty(e,"UniverSheetsCorePreset",{enumerable:!0,get:()=>ae.UniverSheetsCorePreset}),Object.defineProperty(e,"UniverSheetsDataValidationPreset",{enumerable:!0,get:()=>ue.UniverSheetsDataValidationPreset}),Object.defineProperty(e,"UniverSheetsDrawingPreset",{enumerable:!0,get:()=>ce.UniverSheetsDrawingPreset}),Object.defineProperty(e,"UniverSheetsFilterPreset",{enumerable:!0,get:()=>le.UniverSheetsFilterPreset}),Object.defineProperty(e,"UniverSheetsHyperLinkPreset",{enumerable:!0,get:()=>he.UniverSheetsHyperLinkPreset}),Object.defineProperty(e,"UniverSheetsNotePreset",{enumerable:!0,get:()=>me.UniverSheetsNotePreset}),Object.defineProperty(e,"UniverSheetsSortPreset",{enumerable:!0,get:()=>fe.UniverSheetsSortPreset}),Object.defineProperty(e,"UniverSheetsFindReplacePreset",{enumerable:!0,get:()=>de.UniverSheetsFindReplacePreset}),Object.defineProperty(e,"UniverSheetsThreadCommentPreset",{enumerable:!0,get:()=>ye.UniverSheetsThreadCommentPreset}),Object.defineProperty(e,"UniverSheetsTablePreset",{enumerable:!0,get:()=>ve.UniverSheetsTablePreset}),Object.defineProperty(e,"UniverWatermarkPlugin",{enumerable:!0,get:()=>ge.UniverWatermarkPlugin}),Object.defineProperty(e,"UniverSheetsCrosshairHighlightPlugin",{enumerable:!0,get:()=>be.UniverSheetsCrosshairHighlightPlugin}),e.zhCN=Ce,e.sheetsConditionalFormattingZhCN=pe,e.sheetsCoreZhCN=Pe,e.UniverPresetSheetsDrawingZhCN=Ye,e.sheetsFilterZhCN=De,e.UniverPresetSheetsHyperLinkZhCN=je,e.UniverPresetSheetsNoteZhCN=Se,e.UniverPresetSheetsFilterZhCN=Ne,e.UniverPresetSheetsSortZhCN=Me,e.UniverPresetSheetsDataValidationZhCN=we,e.UniverPresetSheetsFindReplaceZhCN=Te,e.UniverPresetSheetsThreadCommentZhCN=Oe,e.UniverPresetSheetsTableZhCN=Ue,e.CycleTypeEnum=te,e.ModeEnum=re,e.decimal=I,e.filterIndicatorsCell=Ge,e.filterMergedIndicatorCells=Je,e.generateIndicatorsCells=Ze,e.generateUUID=x,e.getNumColumns=Ae,e.handleClearInput=ke,e.initDateRange=Ee,e.mergeCellData=We,e.stylePath=Ke,e.useData=Ie,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}));
1
+ (function(e,d){typeof exports=="object"&&typeof module<"u"?d(exports,require("@univerjs/presets"),require("@univerjs/core"),require("@univerjs/sheets"),require("@univerjs/ui"),require("@univerjs/ui-adapter-vue3"),require("@univerjs-pro/license"),require("@univerjs/preset-sheets-conditional-formatting"),require("@univerjs/presets/preset-sheets-core"),require("@univerjs/preset-sheets-data-validation"),require("@univerjs/preset-sheets-drawing"),require("@univerjs/preset-sheets-filter"),require("@univerjs/preset-sheets-hyper-link"),require("@univerjs/preset-sheets-note"),require("@univerjs/preset-sheets-sort"),require("@univerjs/preset-sheets-find-replace"),require("@univerjs/preset-sheets-thread-comment"),require("@univerjs/preset-sheets-table"),require("@univerjs/watermark"),require("@univerjs/sheets-crosshair-highlight"),require("@univerjs/preset-sheets-advanced"),require("@univerjs/preset-sheets-advanced/locales/zh-CN"),require("@univerjs/preset-sheets-core/locales/zh-CN"),require("@univerjs/presets/preset-sheets-conditional-formatting/locales/zh-CN"),require("@univerjs/presets/preset-sheets-core/locales/zh-CN"),require("@univerjs/preset-sheets-drawing/locales/zh-CN"),require("@univerjs/preset-sheets-filter/locales/zh-CN"),require("@univerjs/preset-sheets-hyper-link/locales/zh-CN"),require("@univerjs/preset-sheets-note/locales/zh-CN"),require("@univerjs/presets/preset-sheets-filter/locales/zh-CN"),require("@univerjs/preset-sheets-sort/locales/zh-CN"),require("@univerjs/preset-sheets-data-validation/locales/zh-CN"),require("@univerjs/preset-sheets-find-replace/locales/zh-CN"),require("@univerjs/preset-sheets-thread-comment/locales/zh-CN"),require("@univerjs/preset-sheets-table/locales/zh-CN"),require("dayjs"),require("decimal.js")):typeof define=="function"&&define.amd?define(["exports","@univerjs/presets","@univerjs/core","@univerjs/sheets","@univerjs/ui","@univerjs/ui-adapter-vue3","@univerjs-pro/license","@univerjs/preset-sheets-conditional-formatting","@univerjs/presets/preset-sheets-core","@univerjs/preset-sheets-data-validation","@univerjs/preset-sheets-drawing","@univerjs/preset-sheets-filter","@univerjs/preset-sheets-hyper-link","@univerjs/preset-sheets-note","@univerjs/preset-sheets-sort","@univerjs/preset-sheets-find-replace","@univerjs/preset-sheets-thread-comment","@univerjs/preset-sheets-table","@univerjs/watermark","@univerjs/sheets-crosshair-highlight","@univerjs/preset-sheets-advanced","@univerjs/preset-sheets-advanced/locales/zh-CN","@univerjs/preset-sheets-core/locales/zh-CN","@univerjs/presets/preset-sheets-conditional-formatting/locales/zh-CN","@univerjs/presets/preset-sheets-core/locales/zh-CN","@univerjs/preset-sheets-drawing/locales/zh-CN","@univerjs/preset-sheets-filter/locales/zh-CN","@univerjs/preset-sheets-hyper-link/locales/zh-CN","@univerjs/preset-sheets-note/locales/zh-CN","@univerjs/presets/preset-sheets-filter/locales/zh-CN","@univerjs/preset-sheets-sort/locales/zh-CN","@univerjs/preset-sheets-data-validation/locales/zh-CN","@univerjs/preset-sheets-find-replace/locales/zh-CN","@univerjs/preset-sheets-thread-comment/locales/zh-CN","@univerjs/preset-sheets-table/locales/zh-CN","dayjs","decimal.js"],d):(e=typeof globalThis<"u"?globalThis:e||self,d(e.TorUniverSheet={},e.presets,e.core,e.sheets,e.ui,e.uiAdapterVue3,e.license,e.presetSheetsConditionalFormatting,e.presetSheetsCore,e.presetSheetsDataValidation,e.presetSheetsDrawing,e.presetSheetsFilter,e.presetSheetsHyperLink,e.presetSheetsNote,e.presetSheetsSort,e.presetSheetsFindReplace,e.presetSheetsThreadComment,e.presetSheetsTable,e.watermark,e.sheetsCrosshairHighlight,e.presetSheetsAdvanced,e.zhCN,e.zhCN$d,e.zhCN$a,e.zhCN$b,e.zhCN$2,e.zhCN$c,e.zhCN$5,e.zhCN$6,e.zhCN$3,e.zhCN$7,e.zhCN$1,e.zhCN$4,e.zhCN$9,e.zhCN$8,e.dayjs,e.Decimal))})(this,(function(e,d,X,ne,G,se,ie,oe,ae,ue,ce,le,he,me,fe,de,ve,ye,be,ge,Ce,pe,Pe,je,Ye,De,Se,Ne,Me,we,Te,Oe,Ue,ke,Ie,v,_){"use strict";const ze=(t,n)=>{for(const s of n)t[s]=null},x=()=>{if(typeof crypto=="object"){if(typeof crypto.randomUUID=="function")return crypto.randomUUID();if(typeof crypto.getRandomValues=="function"&&typeof Uint8Array=="function"){const s=r=>{const c=Number(r);return(c^crypto.getRandomValues(new Uint8Array(1))[0]&15>>c/4).toString(16)};return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,s)}}let t=new Date().getTime(),n=typeof performance<"u"&&performance.now&&performance.now()*1e3||0;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,s=>{let r=Math.random()*16;return t>0?(r=(t+r)%16|0,t=Math.floor(t/16)):(r=(n+r)%16|0,n=Math.floor(n/16)),(s==="x"?r:r&3|8).toString(16)})};function qe(t){return{...t?.workbookData,id:t?.id||x(),name:t?.name||"未命名",appVersion:t?.appVersion||"1.0.0"}}const He=Object.prototype.toString,ee=(t,n)=>He.call(t)===`[object ${n}]`,Re=t=>typeof t<"u",Ve=t=>!Re(t),$e=t=>t!==null&&ee(t,"Object"),F=t=>t==null||typeof t>"u"?!0:W(t)||Ae(t)?t.length===0:t instanceof Map||t instanceof Set?t.size===0:$e(t)?Object.keys(t).length===0:!1,Fe=t=>t===null,Be=t=>Ve(t)||Fe(t),Ae=t=>ee(t,"String"),W=t=>t&&Array.isArray(t);class Ee{value;constructor(n){this.value=new _(n)}add(n){return this.value=this.value.add(n||0),this}subtract(n){return this.value=this.value.sub(n||0),this}multiply(n){return this.value=this.value.mul(n||0),this}divide(n){const s=new _(n);if(s.isZero())throw new Error("除数是0");return this.value=this.value.div(s),this}toFixed(n,s){return this.value=new _(this.value.toFixed(n,s)),this}valueOf(){return this.value}toString(){return this.value.toString()}toNumber(){return this.value.toNumber()}}function I(t=0){return new Ee(t)}var te=(t=>(t.无="no",t.年="year",t.月="month",t.周="week",t.天="day",t.班组="shift",t.小时="hour",t.半小时="half_hour",t))(te||{}),re=(t=>(t.view="view",t.edit="edit",t))(re||{});async function Ze(t,n){if(!n)return Promise.reject("日期不能为空");switch(t){case"year":if(W(n))return Promise.resolve(n);const s=v(n);if(!s.isValid())return Promise.reject("无效的日期格式");const r=s.year(),c=`${r}-01`,i=`${r}-12`;return Promise.resolve([c,i]);case"month":if(W(n))return Promise.resolve(n);const b=v(n);if(!b.isValid())return Promise.reject("无效的日期格式");const N=b.startOf("month").format("YYYY-MM-DD"),a=b.endOf("month").format("YYYY-MM-DD");return Promise.resolve([N,a]);case"day":if(W(n))return Promise.resolve(n);const y=v(n);if(!y.isValid())return Promise.reject("无效的日期格式");const g=y.startOf("day").format("YYYY-MM-DD HH:mm:ss"),h=y.endOf("day").format("YYYY-MM-DD HH:mm:ss");return Promise.resolve([g,h]);default:return Promise.reject("不支持的周期类型")}}function H(t,n,s){return s?v(n).diff(v(t),s):0}function J(t,n,s){if(!s)throw new Error("日期类型不能为空");const r={year:"YYYY",month:"YYYY-MM",day:"YYYY-MM-DD",hour:"HH:mm:ss"}[s];return v(t).subtract(n,s).format(r)}function U(t,n,s,r){const c="YYYY-MM-DD HH:mm:ss",i=E(t,n,s,r),b=v(i);if(n==="month"){const a=b.month();return a===0?[b.startOf("month").format(c),b.date(25).endOf("day").format(c)]:a===11?[b.subtract(1,"month").date(26).startOf("day").format(c),b.endOf("month").format(c)]:[b.subtract(1,"month").date(26).startOf("day").format(c),b.date(25).endOf("day").format(c)]}const N={year:"year",day:"day",hour:"hour"};return[b.startOf(N[n]).format(c),b.endOf(N[n]).format(c)]}function E(t,n,s,r){const c={year:"YYYY",month:"YYYY-MM",day:"YYYY-MM-DD",hour:"YYYY-MM-DD HH:mm:ss"}[n];return v(t,c).add(s*r,n).format(c)}function Y(t,n,s){return t[n]||(t[n]={}),t[n][s]||(t[n][s]={}),t[n][s]}async function Ge(t){if(!t)throw new Error("cellData is required");const n=Object.entries(t).reduce((s,r)=>{const[c,i]=r;for(const[b,N]of Object.entries(i)){const{custom:a,v:y,t:g,s:h}=N;if(!a)continue;const{cellType:Z}=a,l=!a.hasOwnProperty("writeBack")||F(a?.writeBack)?!0:a.writeBack;if(Z==="indicator"){const z=Y(s,c,b);z.custom={...a,required:F(a?.required)?!1:a?.required,defaultShift:F(a?.defaultShift)?!1:a?.defaultShift,forwardPush:F(a?.forwardPush)?!1:a?.forwardPush,forwardPushTimes:F(a?.useDefaultEndDate)?0:a?.forwardPushTimes,useDefaultEndDate:F(a?.useDefaultEndDate)?!1:a?.useDefaultEndDate,copyType:F(a?.copyType)?"":a?.copyType,writeBack:l},z.s=h,z.t=g,z.v=y||""}}return s},{});return!n||F(n)?Promise.reject(new Error("No data found")):Promise.resolve(n)}function L(t,n){return t.replace(/\$\{([^}]+)\}/g,(s,r)=>{try{const c=Object.keys(n),i=Object.values(n);return new Function(...c,`return ${r};`)(...i)}catch(c){return console.error(`表达式执行失败: ${r}`,c),s}})}function Le({acc:t,params:n,initRowNum:s,initColNum:r,cellData:c}){const{rangeData:i,currentDay:b,extraArgs:N}=n,a=N?.teamData||{},{cycleType:y,timeIncrement:g,forwardPush:h,forwardPushTimes:Z,copyType:l,copyInterval:z,defaultShift:p,templateStr:k,useDefaultEndDate:Q}=c.custom;let D=0;switch(y){case"day":{let o="";if(h&&(o=J(i[0],Z,"day")),!l){let m="";h?m=o:m=i[0];const u=Y(t,s,r);u.v=k?L(k,{businessDate:m,dayjs:v}):v(m).format("YYYY-MM-DD"),u.t=d.CellValueType.STRING,u.s="tor-time-cell-style";break}h?D=H(o,i[0],"day"):(D=H(i[0],i[1],"day"),console.log("copyNum",D));for(let m=0;m<=Math.abs(D===0?1:D);m++){const u=m*(z+1);let M="";h?M=E(o,"day",m,g):M=E(i[0],"day",m,g);const P=l==="right"?s:s+u,V=l==="right"?r+u:r,B=Y(t,P,V);B.v=k?L(k,{businessDate:M,dayjs:v}):v(M).format("YYYY-MM-DD"),B.t=d.CellValueType.STRING,B.s="tor-time-cell-style"}break}case"month":{if(!l){const[o,m]=U(i[1],"month",0,1),u=Y(t,s,r);u.v=v(m).format("YYYY-MM"),u.t=d.CellValueType.STRING,u.s="tor-time-cell-style";break}D=H(i[0],i[1],"month");for(let o=0;o<=Math.abs(D===0?1:D);o++){const m=o*(z+1),u=l==="right"?s:s+m,M=l==="right"?r+m:r,P=Y(t,u,M);P.v=E(i[0],"month",o,g),P.t=d.CellValueType.STRING,P.s="tor-time-cell-style"}break}case"year":{let o="";if(h&&(o=J(i[0],Z||0,"year")),!l){const m=h?o:i[0],[u,M]=U(m,"year",0,1),P=Y(t,s,r),[,V]=U(i[1],"month",0,1);P.v=k?L(k,{startTime:u,endTime:M,rangeData:i,dayjs:v}):m,P.t=d.CellValueType.STRING,P.s="tor-time-cell-style";break}h?D=H(o,i[0],"year"):D=H(i[0],i[1],"year");for(let m=0;m<=Math.abs(D===0?1:D);m++){const u=m*(z+1),M=l==="right"?s:s+u,P=l==="right"?r+u:r,[V,B]=U(i[0],"year",m,g),w=Y(t,M,P),O=E(i[0],"year",m,g);w.v=k?L(k,{startTime:V,endTime:B,rangeData:i,dayjs:v}):O,w.t=d.CellValueType.STRING,w.s="tor-time-cell-style"}break}case"hour":{if(!l){const o=Y(t,s,r);if(o.t=d.CellValueType.STRING,o.s="tor-time-cell-style",p){o.v=v(i[0]).add(1,"hour").format("YYYY-MM-DD HH:mm:ss");break}o.v=v(b).add(1,"hour").format("YYYY-MM-DD HH:mm:ss");break}D=H(i[0],i[1],"hour");for(let o=0;o<=Math.abs(D===0?1:D);o++){const m=o*(z+1),u=l==="right"?s:s+m,M=l==="right"?r+m:r,P=Y(t,u,M);if(P.t=d.CellValueType.STRING,P.s="tor-time-cell-style",p){const V=v(i[0]).add(1,"hour").format("YYYY-MM-DD HH:mm:ss");P.v=E(V,"hour",o,g);continue}P.v=E(v(b).add(1,"hour").format("YYYY-MM-DD HH:mm:ss"),"hour",o,g)}break}case"shift":{if(!l){const o=Y(t,s,r);o.t=d.CellValueType.STRING,o.s="tor-time-cell-style",o.v=k?L(k,{rangeData:i,dayjs:v}):i[0];break}if(!a.length)throw new Error("没有获取到当班数据");for(let o=0;o<a.length;o++){const m=a[o],{startDatetime:u,endDatetime:M}=m,P=o*(z+1),V=l==="right"?s:I(s).add(P).toNumber(),B=l==="right"?I(r).add(P).toNumber():r,w=Y(t,V,B);w.s="tor-time-cell-style",w.v=k?L(k,{team:m}):u}break}}}async function We(t,n){if(!t)return Promise.reject("没有可用的单元格数据");const{extraArgs:s,rangeData:r}=n;if(!r.length)return Promise.reject("处理时间范围失败, rangeData不能为空");const c=s?.teamData||[],{periodicityTime:i}=n,b=n?.currentDay||v().format("YYYY-MM-DD"),N=(y,g,h)=>i?h!=="MACH_CYCLE"?[y,g]:parseInt(i.split(":")[0],10)<12?[v(y).format("YYYY-MM-DD")+" "+i,v(g).add(1,"day").format("YYYY-MM-DD")+" "+i]:[v(y).subtract(1,"day").format("YYYY-MM-DD")+" "+i,v(g).format("YYYY-MM-DD")+" "+i]:[y,g],a=Object.entries(t).reduce((y,g)=>{const[h,Z]=g;for(const[l,z]of Object.entries(Z)){const{custom:p}=z;if(!p)continue;const{cellType:k,cycleType:Q,timeIncrement:D,forwardPush:o,forwardPushTimes:m,copyType:u,copyInterval:M,defaultShift:P,useDefaultStartDate:V,useDefaultEndDate:B}=p;if(k==="time"){Le({acc:y,params:n,initRowNum:Number(h),initColNum:Number(l),cellData:z});continue}const w={cycleType:Q,indicatorName:p.indicatorName,indicatorCode:p.indicatorCode,indicatorId:p.indicatorId,indicatorDimensionName:p.indicatorDimensionName,indicatorDimensionConfig:p.indicatorDimensionConfig,required:Be(p?.required)??!1,cellType:p.cellType,defaultShift:p?.defaultShift||!1,writeBack:F(p?.writeBack)?!0:p.writeBack,dimensionJson:p?.dimensionJson||"",unit:p?.unit||"",innerSyncWay:p?.innerSyncWay||"",outSyncConfigId:p?.outSyncConfigId||"",innerSyncStatus:p?.innerSyncStatus||""};let O=0;switch(Q){case"day":{let f="";if(o&&(f=J(r[0],m||0,"day")),!u){const C=o?f:r[0],[S,j]=N(...U(C,"day",0,1),p?.innerSyncWay),T=Y(y,h,l);T.s="tor-indicator-cell-style",T.custom={...w,startTime:S,endTime:j};break}o?O=H(f,r[0],"day"):O=H(r[0],r[1],"day");for(let C=0;C<=Math.abs(O===0?1:O);C++){const S=C*(M+1),j=o?f:r[0],[T,R]=N(...U(j,"day",C,D),p?.innerSyncWay),q=u==="right"?h:I(h).add(S).toNumber(),$=u==="right"?I(l).add(S).toNumber():l,A=Y(y,q,$);A.s="tor-indicator-cell-style",A.custom={...w,startTime:T,endTime:R}}break}case"month":{if(!u){const[f,C]=U(r[1],"month",0,1),S=Y(y,h,l);S.s="tor-indicator-cell-style",S.custom={...w,startTime:f,endTime:C};break}O=H(r[0],r[1],"month");for(let f=0;f<=Math.abs(O===0?1:O);f++){const C=f*(M+1),S=u==="right"?h:I(h).add(C).toNumber(),j=u==="right"?I(l).add(C).toNumber():l,[T,R]=U(r[0],"month",f,D),q=Y(y,S,j);q.s="tor-indicator-cell-style",q.custom={...w,startTime:T,endTime:R}}break}case"year":{let f="",C="",S="";if(o){f=J(r[0],m||0,"year");const j=v(r[1]).format("MM");C=v(`${f}-${j+1}`).format("YYYY-MM"),S=v(`${f}-${j+2}`).format("YYYY-MM")}if(!u){const j=o?f:r[0],[T,R]=U(j,"year",0,1),q=Y(y,h,l);q.s="tor-indicator-cell-style";const[,$]=U(C,"month",0,1),[A]=U(S,"month",0,1);q.custom={...w,startTime:V?A:T,endTime:B?$:R};break}o?O=H(f,r[0],"year"):O=H(r[0],r[1],"year");for(let j=0;j<=Math.abs(O===0?1:O);j++){const T=j*(M+1),R=u==="right"?h:I(h).add(T).toNumber(),q=u==="right"?I(l).add(T).toNumber():l,[$,A]=U(r[0],"year",j,D),K=Y(y,R,q);K.s="tor-indicator-cell-style",K.custom={...w,startTime:$,endTime:A}}break}case"hour":{if(!u){const f=P?r[0]:r[0]??b,[C,S]=U(f,"hour",1,1),j=Y(y,h,l);j.s="tor-indicator-cell-style",j.custom={...w,startTime:C,endTime:S};break}O=H(r[0],r[1],"hour");for(let f=0;f<=Math.abs(O===0?1:O);f++){const C=f*(M+1),S=u==="right"?h:I(h).add(C).toNumber(),j=u==="right"?I(l).add(C).toNumber():l,T=Y(y,S,j);if(T.s="tor-indicator-cell-style",P){const A=v(r[0]).add(1,"hour").format("YYYY-MM-DD HH:mm:ss"),[K,Xe]=U(A,"hour",f,D);T.custom={...w,startTime:K,endTime:Xe};continue}const R=v(b).add(1,"hour").format("YYYY-MM-DD HH:mm:ss"),[q,$]=U(R,"hour",f,D);T.custom={...w,startTime:q,endTime:$}}break}case"shift":{if(!u){const[f,C]=r,S=Y(y,h,l);S.s="tor-indicator-cell-style",S.custom={...w,startTime:f,endTime:C};break}if(!c.length)throw new Error("没有获取到当班数据");for(let f=0;f<c.length;f++){const C=c[f],{startDatetime:S,endDatetime:j}=C,T=f*(M+1),R=u==="right"?h:I(h).add(T).toNumber(),q=u==="right"?I(l).add(T).toNumber():l,$=Y(y,R,q);$.s="tor-indicator-cell-style",$.custom={...w,startTime:S,endTime:j}}break}}}return y},{});return Promise.resolve(a)}function Je(t){return Object.entries(t).reduce((s,[r,c])=>{const i=Math.max(...Object.keys(c).map(Number));return i>s?s=Number(i):s=Number(s)||0,s},0)}function Ke(t,n){const s=JSON.parse(JSON.stringify(t||{}));for(const[r,c]of Object.entries(n)){s[r]||(s[r]={});for(const[i,b]of Object.entries(c)){const N=b??{},a=s[r]?.[i];if(a){const y={...a,...N,custom:{...a.custom,...N.custom},v:N.v||""};s[r][i]=y}else s[r][i]=N}}return s}function _e(t,n){if(!n?.length||!t)return t;const s={};for(const r in t){const c=t[r];for(const i in c){const b=c[i];if(b?.custom?.cellType==="indicator"){const N=Number(r),a=Number(i);if(n.some(g=>N>=g.startRow&&N<=g.endRow&&a>=g.startColumn&&a<=g.endColumn)&&!n.some(h=>N===h.startRow&&a===h.startColumn))continue}s[r]||(s[r]={}),s[r][i]=b}}return s}const Qe="./style.css";Object.defineProperty(e,"CommandType",{enumerable:!0,get:()=>d.CommandType}),Object.defineProperty(e,"FEventName",{enumerable:!0,get:()=>d.FEventName}),Object.defineProperty(e,"FUniver",{enumerable:!0,get:()=>d.FUniver}),Object.defineProperty(e,"ICommandService",{enumerable:!0,get:()=>d.ICommandService}),Object.defineProperty(e,"IUniverInstanceService",{enumerable:!0,get:()=>d.IUniverInstanceService}),Object.defineProperty(e,"Inject",{enumerable:!0,get:()=>d.Inject}),Object.defineProperty(e,"Injector",{enumerable:!0,get:()=>d.Injector}),Object.defineProperty(e,"LocaleType",{enumerable:!0,get:()=>d.LocaleType}),Object.defineProperty(e,"Plugin",{enumerable:!0,get:()=>d.Plugin}),Object.defineProperty(e,"Univer",{enumerable:!0,get:()=>d.Univer}),Object.defineProperty(e,"UniverInstanceType",{enumerable:!0,get:()=>d.UniverInstanceType}),Object.defineProperty(e,"Workbook",{enumerable:!0,get:()=>d.Workbook}),Object.defineProperty(e,"createUniver",{enumerable:!0,get:()=>d.createUniver}),Object.defineProperty(e,"defaultTheme",{enumerable:!0,get:()=>d.defaultTheme}),Object.defineProperty(e,"greenTheme",{enumerable:!0,get:()=>d.greenTheme}),Object.defineProperty(e,"merge",{enumerable:!0,get:()=>d.merge}),Object.defineProperty(e,"mergeLocales",{enumerable:!0,get:()=>d.mergeLocales}),Object.defineProperty(e,"touchDependencies",{enumerable:!0,get:()=>d.touchDependencies}),Object.defineProperty(e,"BaselineOffset",{enumerable:!0,get:()=>X.BaselineOffset}),Object.defineProperty(e,"CommandService",{enumerable:!0,get:()=>X.CommandService}),Object.defineProperty(e,"SetRangeValuesCommand",{enumerable:!0,get:()=>ne.SetRangeValuesCommand}),Object.defineProperty(e,"ComponentManager",{enumerable:!0,get:()=>G.ComponentManager}),Object.defineProperty(e,"ContextMenuGroup",{enumerable:!0,get:()=>G.ContextMenuGroup}),Object.defineProperty(e,"ContextMenuPosition",{enumerable:!0,get:()=>G.ContextMenuPosition}),Object.defineProperty(e,"IMenuManagerService",{enumerable:!0,get:()=>G.IMenuManagerService}),Object.defineProperty(e,"MenuItemType",{enumerable:!0,get:()=>G.MenuItemType}),Object.defineProperty(e,"RibbonStartGroup",{enumerable:!0,get:()=>G.RibbonStartGroup}),Object.defineProperty(e,"UniverVue3AdapterPlugin",{enumerable:!0,get:()=>se.UniverVue3AdapterPlugin}),Object.defineProperty(e,"UniverLicensePlugin",{enumerable:!0,get:()=>ie.UniverLicensePlugin}),Object.defineProperty(e,"UniverSheetsConditionalFormattingPreset",{enumerable:!0,get:()=>oe.UniverSheetsConditionalFormattingPreset}),Object.defineProperty(e,"UniverSheetsCorePreset",{enumerable:!0,get:()=>ae.UniverSheetsCorePreset}),Object.defineProperty(e,"UniverSheetsDataValidationPreset",{enumerable:!0,get:()=>ue.UniverSheetsDataValidationPreset}),Object.defineProperty(e,"UniverSheetsDrawingPreset",{enumerable:!0,get:()=>ce.UniverSheetsDrawingPreset}),Object.defineProperty(e,"UniverSheetsFilterPreset",{enumerable:!0,get:()=>le.UniverSheetsFilterPreset}),Object.defineProperty(e,"UniverSheetsHyperLinkPreset",{enumerable:!0,get:()=>he.UniverSheetsHyperLinkPreset}),Object.defineProperty(e,"UniverSheetsNotePreset",{enumerable:!0,get:()=>me.UniverSheetsNotePreset}),Object.defineProperty(e,"UniverSheetsSortPreset",{enumerable:!0,get:()=>fe.UniverSheetsSortPreset}),Object.defineProperty(e,"UniverSheetsFindReplacePreset",{enumerable:!0,get:()=>de.UniverSheetsFindReplacePreset}),Object.defineProperty(e,"UniverSheetsThreadCommentPreset",{enumerable:!0,get:()=>ve.UniverSheetsThreadCommentPreset}),Object.defineProperty(e,"UniverSheetsTablePreset",{enumerable:!0,get:()=>ye.UniverSheetsTablePreset}),Object.defineProperty(e,"UniverWatermarkPlugin",{enumerable:!0,get:()=>be.UniverWatermarkPlugin}),Object.defineProperty(e,"UniverSheetsCrosshairHighlightPlugin",{enumerable:!0,get:()=>ge.UniverSheetsCrosshairHighlightPlugin}),Object.defineProperty(e,"UniverSheetsAdvancedPreset",{enumerable:!0,get:()=>Ce.UniverSheetsAdvancedPreset}),e.UniverPresetSheetsAdvancedZhCN=pe,e.zhCN=Pe,e.sheetsConditionalFormattingZhCN=je,e.sheetsCoreZhCN=Ye,e.UniverPresetSheetsDrawingZhCN=De,e.sheetsFilterZhCN=Se,e.UniverPresetSheetsHyperLinkZhCN=Ne,e.UniverPresetSheetsNoteZhCN=Me,e.UniverPresetSheetsFilterZhCN=we,e.UniverPresetSheetsSortZhCN=Te,e.UniverPresetSheetsDataValidationZhCN=Oe,e.UniverPresetSheetsFindReplaceZhCN=Ue,e.UniverPresetSheetsThreadCommentZhCN=ke,e.UniverPresetSheetsTableZhCN=Ie,e.CycleTypeEnum=te,e.ModeEnum=re,e.decimal=I,e.filterIndicatorsCell=Ge,e.filterMergedIndicatorCells=_e,e.generateIndicatorsCells=We,e.generateUUID=x,e.getNumColumns=Je,e.handleClearInput=ze,e.initDateRange=Ze,e.mergeCellData=Ke,e.stylePath=Qe,e.useData=qe,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}));
@@ -41,6 +41,7 @@ import { touchDependencies } from '@univerjs/presets';
41
41
  import { Univer } from '@univerjs/presets';
42
42
  import { UniverInstanceType } from '@univerjs/presets';
43
43
  import { UniverLicensePlugin } from '@univerjs-pro/license';
44
+ import { default as UniverPresetSheetsAdvancedZhCN } from '@univerjs/preset-sheets-advanced/locales/zh-CN';
44
45
  import { default as UniverPresetSheetsDataValidationZhCN } from '@univerjs/preset-sheets-data-validation/locales/zh-CN';
45
46
  import { default as UniverPresetSheetsDrawingZhCN } from '@univerjs/preset-sheets-drawing/locales/zh-CN';
46
47
  import { default as UniverPresetSheetsFilterZhCN } from '@univerjs/presets/preset-sheets-filter/locales/zh-CN';
@@ -50,6 +51,7 @@ import { default as UniverPresetSheetsNoteZhCN } from '@univerjs/preset-sheets-n
50
51
  import { default as UniverPresetSheetsSortZhCN } from '@univerjs/preset-sheets-sort/locales/zh-CN';
51
52
  import { default as UniverPresetSheetsTableZhCN } from '@univerjs/preset-sheets-table/locales/zh-CN';
52
53
  import { default as UniverPresetSheetsThreadCommentZhCN } from '@univerjs/preset-sheets-thread-comment/locales/zh-CN';
54
+ import { UniverSheetsAdvancedPreset } from '@univerjs/preset-sheets-advanced';
53
55
  import { UniverSheetsConditionalFormattingPreset } from '@univerjs/preset-sheets-conditional-formatting';
54
56
  import { UniverSheetsCorePreset } from '@univerjs/presets/preset-sheets-core';
55
57
  import { UniverSheetsCrosshairHighlightPlugin } from '@univerjs/sheets-crosshair-highlight';
@@ -274,6 +276,8 @@ export { UniverInstanceType }
274
276
 
275
277
  export { UniverLicensePlugin }
276
278
 
279
+ export { UniverPresetSheetsAdvancedZhCN }
280
+
277
281
  export { UniverPresetSheetsDataValidationZhCN }
278
282
 
279
283
  export { UniverPresetSheetsDrawingZhCN }
@@ -292,6 +296,8 @@ export { UniverPresetSheetsTableZhCN }
292
296
 
293
297
  export { UniverPresetSheetsThreadCommentZhCN }
294
298
 
299
+ export { UniverSheetsAdvancedPreset }
300
+
295
301
  export { UniverSheetsConditionalFormattingPreset }
296
302
 
297
303
  export { UniverSheetsCorePreset }
@@ -99,3 +99,6 @@
99
99
  .hover\:univer-ring-primary-600:hover {
100
100
  --univer-tw-ring-color: var(--univer-primary-600);
101
101
  }
102
+
103
+ /* === node_modules/@univerjs/preset-sheets-advanced/lib/index.css === */
104
+ .univer-fixed{position:fixed}.univer-bottom-12{bottom:3rem}.univer-right-3{right:.75rem}.univer-m-0{margin:0}.univer-ml-1\.5{margin-left:.375rem}.univer-h-1\.5{height:.375rem}.univer-max-h-72{max-height:18rem}.univer-w-\[324px\]{width:324px}.univer-w-\[372px\]{width:372px}.univer-w-\[calc\(100\%-48px\)\]{width:calc(100% - 48px)}.univer-select-none{user-select:none}.univer-list-none{list-style-type:none}.univer-border-0{border-width:0}.univer-py-0{padding-top:0;padding-bottom:0}.univer-pl-1\.5{padding-left:.375rem}.univer-pl-2{padding-left:.5rem}.univer-pr-2{padding-right:.5rem}.univer-pr-4{padding-right:1rem}.univer-pt-5{padding-top:1.25rem}.univer-text-blue-500{color:var(--univer-blue-500)}.univer-text-green-500{color:var(--univer-green-500)}.univer-no-underline{text-decoration-line:none}.univer-outline-none{outline-offset:2px;outline:2px solid #0000}.univer-transition-\[width\]{transition-property:width;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.univer-duration-150{transition-duration:.15s}.univer-duration-500{transition-duration:.5s}.hover\:univer-bg-primary-50:hover{background-color:var(--univer-primary-50)}.dark\:hover\:\!univer-bg-gray-600:hover:where(.univer-dark,.univer-dark *){background-color:var(--univer-gray-600)!important}.univer-mx-1\.5{margin-left:.375rem;margin-right:.375rem}.univer-mt-0{margin-top:0}.univer-h-40{height:10rem}.univer-h-\[140px\]{height:140px}.univer-h-\[161px\]{height:161px}.univer-h-\[300px\]{height:300px}.univer-h-\[calc\(100\%-16px\)\]{height:calc(100% - 16px)}.univer-min-h-\[150px\]{min-height:150px}.univer-min-h-\[200px\]{min-height:200px}.univer-w-24{width:6rem}.univer-w-36{width:9rem}.univer-w-4{width:1rem}.univer-w-\[140px\]{width:140px}.univer-w-\[14px\]{width:14px}.univer-min-w-0{min-width:0}.univer-max-w-\[200px\]{max-width:200px}.univer-max-w-\[66px\]{max-width:66px}.univer-flex-shrink{flex-shrink:1}.univer-self-stretch{align-self:stretch}.univer-overflow-x-hidden{overflow-x:hidden}.univer-rounded-l-md{border-top-left-radius:.375rem;border-bottom-left-radius:.375rem}.univer-rounded-r-md{border-top-right-radius:.375rem;border-bottom-right-radius:.375rem}.univer-border-none{border-style:none}.univer-border-primary-600{border-color:var(--univer-primary-600)}.univer-border-transparent{border-color:#0000}.univer-py-\[5px\]{padding-top:5px;padding-bottom:5px}.univer-pl-\[22px\]{padding-left:22px}.univer-text-justify{text-align:justify}.univer-align-top{vertical-align:top}.univer-capitalize{text-transform:capitalize}.univer-text-\[rgb\(var\(--hyacinth-500\)\)\]{color:rgb(var(--hyacinth-500))}.univer-text-gray-400{color:var(--univer-gray-400)}.univer-text-red-400{color:var(--univer-red-400)}.univer-opacity-0{opacity:0}.univer-opacity-100{opacity:1}.univer-transition-all{transition-property:all;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.univer-transition-opacity{transition-property:opacity;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.univer-group:hover .group-hover\:univer-opacity-100{opacity:1}.dark\:\!univer-text-gray-500:where(.univer-dark,.univer-dark *){color:var(--univer-gray-500)!important}.dark\:\!univer-text-gray-600:where(.univer-dark,.univer-dark *){color:var(--univer-gray-600)!important}.univer-inset-0{top:0;bottom:0;left:0;right:0}.univer-bottom-4{bottom:1rem}.univer-right-4{right:1rem}.univer-z-\[1000\]{z-index:1000}.univer-z-\[1010\]{z-index:1010}.univer-mx-2{margin-left:.5rem;margin-right:.5rem}.univer-my-0{margin-top:0;margin-bottom:0}.univer-my-1{margin-top:.25rem;margin-bottom:.25rem}.univer-my-5{margin-top:1.25rem;margin-bottom:1.25rem}.univer-mt-7{margin-top:1.75rem}.univer-size-3{width:.75rem;height:.75rem}.univer-size-8{width:2rem;height:2rem}.univer-h-16{height:4rem}.univer-h-\[200px\]{height:200px}.univer-w-\[312px\]{width:312px}.univer-min-w-36{min-width:9rem}.univer-min-w-\[200px\]{min-width:200px}.univer-flex-none{flex:none}.univer-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.univer-space-y-2>:not([hidden])~:not([hidden]){--univer-tw-space-y-reverse: 0;margin-top:calc(.5rem * (1 - var(--univer-tw-space-y-reverse)));margin-top:.5rem;margin-top:calc(.5rem * calc(1 - var(--univer-tw-space-y-reverse)));margin-bottom:0;margin-bottom:calc(.5rem * var(--univer-tw-space-y-reverse))}.univer-overflow-y-auto{overflow-y:auto}.univer-border-t{border-top-width:1px}.univer-px-2\.5{padding-left:.625rem;padding-right:.625rem}.univer-px-6{padding-left:1.5rem;padding-right:1.5rem}.univer-py-2{padding-top:.5rem;padding-bottom:.5rem}.univer-py-7{padding-top:1.75rem;padding-bottom:1.75rem}.univer-text-lg{font-size:1.125rem;line-height:1.75rem}.univer-shadow-lg{--univer-tw-shadow: 0px 4px 6px 0px #1e284d0d, 0px 10px 15px -3px #1e284d1a;--univer-tw-shadow-colored: 0px 4px 6px 0px var(--univer-tw-shadow-color), 0px 10px 15px -3px var(--univer-tw-shadow-color);box-shadow:0 0 #0000,0 0 #0000,0 4px 6px #1e284d0d,0 10px 15px -3px #1e284d1a;box-shadow:var(--univer-tw-ring-offset-shadow, 0 0 #0000),var(--univer-tw-ring-shadow, 0 0 #0000),var(--univer-tw-shadow)}.first\:univer-mr-2:first-child{margin-right:.5rem}.hover\:univer-rounded:hover{border-radius:.25rem}.hover\:univer-bg-gray-300:hover{background-color:var(--univer-gray-300)}.hover\:dark\:\!univer-bg-gray-700:where(.univer-dark,.univer-dark *):hover{background-color:var(--univer-gray-700)!important}.univer-right-2{right:.5rem}.univer-top-2{top:.5rem}.univer-ml-1{margin-left:.25rem}.univer-mt-1\.5{margin-top:.375rem}.univer-mt-2\.5{margin-top:.625rem}.univer-mt-4{margin-top:1rem}.univer-mt-5{margin-top:1.25rem}.univer-inline-flex{display:inline-flex}.univer-size-6{width:1.5rem;height:1.5rem}.univer-h-\[26px\]{height:26px}.univer-w-\[--radix-popper-anchor-width\]{width:var(--radix-popper-anchor-width)}.univer-w-\[136px\]{width:136px}.univer-w-\[208px\]{width:208px}.univer-w-\[290px\]{width:290px}.univer-w-fit{width:fit-content}.\!univer-min-w-0{min-width:0!important}.univer-flex-grow{flex-grow:1}.univer-grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.univer-flex-row{flex-direction:row}.univer-gap-2\.5{gap:.625rem}.univer-justify-self-end{justify-self:end}.univer-rounded-xl{border-radius:.75rem}.univer-p-1\.5{padding:.375rem}.univer-p-2{padding:.5rem}.univer-px-1{padding-left:.25rem;padding-right:.25rem}.univer-px-1\.5{padding-left:.375rem;padding-right:.375rem}.univer-py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.univer-pb-3{padding-bottom:.75rem}.univer-text-2xl{font-size:1.5rem;line-height:2rem}.univer-text-base{font-size:1rem;line-height:1.5rem}.univer-leading-4{line-height:1rem}.univer-leading-5{line-height:1.25rem}.univer-leading-6{line-height:1.5rem}.univer-shadow{--univer-tw-shadow: 0 1px 3px 0 #0000001a, 0 1px 2px -1px #0000001a;--univer-tw-shadow-colored: 0 1px 3px 0 var(--univer-tw-shadow-color), 0 1px 2px -1px var(--univer-tw-shadow-color);box-shadow:0 0 #0000,0 0 #0000,0 1px 3px #0000001a,0 1px 2px -1px #0000001a;box-shadow:var(--univer-tw-ring-offset-shadow, 0 0 #0000),var(--univer-tw-ring-shadow, 0 0 #0000),var(--univer-tw-shadow)}.univer-duration-200{transition-duration:.2s}.placeholder\:univer-text-gray-400::placeholder{color:var(--univer-gray-400)}.focus\:univer-border-primary-500:focus{border-color:var(--univer-primary-500)}.focus\:univer-outline-none:focus{outline-offset:2px;outline:2px solid #0000}.focus\:univer-ring-2:focus{--univer-tw-ring-offset-shadow: var(--univer-tw-ring-inset) 0 0 0 var(--univer-tw-ring-offset-width) var(--univer-tw-ring-offset-color);--univer-tw-ring-shadow: var(--univer-tw-ring-inset) 0 0 0 calc(2px + var(--univer-tw-ring-offset-width)) var(--univer-tw-ring-color);box-shadow:var(--univer-tw-ring-offset-shadow),var(--univer-tw-ring-shadow),0 0 #0000;box-shadow:var(--univer-tw-ring-offset-shadow),var(--univer-tw-ring-shadow),var(--univer-tw-shadow, 0 0 #0000)}.focus\:univer-ring-primary-50:focus{--univer-tw-ring-color: var(--univer-primary-50)}.dark\:\!univer-border-gray-700:where(.univer-dark,.univer-dark *){border-color:var(--univer-gray-700)!important}.dark\:\!univer-shadow-none:where(.univer-dark,.univer-dark *){--univer-tw-shadow: 0 0 #0000 !important;--univer-tw-shadow-colored: 0 0 #0000 !important;box-shadow:0 0 #0000,0 0 #0000,0 0 #0000!important;box-shadow:var(--univer-tw-ring-offset-shadow, 0 0 #0000),var(--univer-tw-ring-shadow, 0 0 #0000),var(--univer-tw-shadow)!important}.univer-bottom-0{bottom:0}.univer-mx-0{margin-left:0;margin-right:0}.univer-my-2{margin-top:.5rem;margin-bottom:.5rem}.univer-my-4{margin-top:1rem;margin-bottom:1rem}.univer-mb-3{margin-bottom:.75rem}.univer-mb-4{margin-bottom:1rem}.univer-mb-5{margin-bottom:1.25rem}.univer-ml-2{margin-left:.5rem}.univer-ml-3{margin-left:.75rem}.univer-mr-0\.5{margin-right:.125rem}.univer-mr-2{margin-right:.5rem}.univer-mt-0\.5{margin-top:.125rem}.univer-mt-3{margin-top:.75rem}.univer-box-content{box-sizing:content-box}.univer-size-4{width:1rem;height:1rem}.univer-size-5{width:1.25rem;height:1.25rem}.univer-h-0\.5{height:.125rem}.univer-h-10{height:2.5rem}.univer-h-4{height:1rem}.univer-h-5{height:1.25rem}.univer-h-6{height:1.5rem}.univer-h-7{height:1.75rem}.univer-h-8{height:2rem}.univer-h-full{height:100%}.univer-w-14{width:3.5rem}.univer-w-6{width:1.5rem}.univer-w-\[45\%\]{width:45%}.univer-max-w-\[290px\]{max-width:290px}.univer-cursor-not-allowed{cursor:not-allowed}.univer-justify-end{justify-content:flex-end}.univer-justify-around{justify-content:space-around}.univer-gap-5{gap:1.25rem}.univer-truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.univer-rounded-sm{border-radius:.125rem}.\!univer-bg-gray-50{background-color:var(--univer-gray-50)!important}.\!univer-bg-gray-700{background-color:var(--univer-gray-700)!important}.univer-bg-blue-200{background-color:var(--univer-blue-200)}.univer-bg-gray-50{background-color:var(--univer-gray-50)}.univer-p-0{padding:0}.univer-p-0\.5{padding:.125rem}.univer-p-4{padding:1rem}.univer-px-0{padding-left:0;padding-right:0}.univer-py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.univer-pb-4{padding-bottom:1rem}.univer-pl-4{padding-left:1rem}.univer-pr-1{padding-right:.25rem}.univer-pt-2\.5{padding-top:.625rem}.univer-leading-7{line-height:1.75rem}.univer-leading-8{line-height:2rem}.univer-leading-tight{line-height:1.25}.univer-text-gray-200{color:var(--univer-gray-200)}.univer-text-gray-800{color:var(--univer-gray-800)}.univer-text-gray-900{color:var(--univer-gray-900)}.univer-text-red-500{color:var(--univer-red-500)}.univer-text-white{color:var(--univer-white)}.univer-duration-300{transition-duration:.3s}.univer-ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.univer-scrollbar-corner-primary-600{--scrollbar-corner: var(--univer-primary-600) !important}.dark\:\!univer-bg-gray-700:where(.univer-dark,.univer-dark *){background-color:var(--univer-gray-700)!important}.dark\:\!univer-bg-gray-900:where(.univer-dark,.univer-dark *){background-color:var(--univer-gray-900)!important}.dark\:\!univer-text-gray-100:where(.univer-dark,.univer-dark *){color:var(--univer-gray-100)!important}.dark\:\!univer-text-white:where(.univer-dark,.univer-dark *){color:var(--univer-white)!important}.univer-pointer-events-none{pointer-events:none}.univer-absolute{position:absolute}.univer-relative{position:relative}.univer-bottom-full{bottom:100%}.univer-left-0{left:0}.univer-z-\[100\]{z-index:100}.univer-mx-auto{margin-left:auto;margin-right:auto}.univer-mb-1{margin-bottom:.25rem}.univer-mb-2{margin-bottom:.5rem}.univer-mr-5{margin-right:1.25rem}.univer-mt-2{margin-top:.5rem}.univer-box-border{box-sizing:border-box}.univer-block{display:block}.univer-inline-block{display:inline-block}.univer-flex{display:flex}.univer-grid{display:grid}.univer-hidden{display:none}.univer-aspect-square{aspect-ratio:1}.univer-size-full{width:100%;height:100%}.univer-h-1{height:.25rem}.univer-h-\[100px\]{height:100px}.univer-max-h-\[75vh\]{max-height:75vh}.univer-w-1\/2{width:50%}.univer-w-20{width:5rem}.univer-w-28{width:7rem}.univer-w-\[100px\]{width:100px}.univer-w-\[320px\]{width:320px}.univer-w-full{width:100%}.univer-flex-1{flex:1}.univer-shrink-0{flex-shrink:0}.univer-rotate-180{--univer-tw-rotate: 180deg;transform:translate(var(--univer-tw-translate-x),var(--univer-tw-translate-y)) rotate(180deg) skew(var(--univer-tw-skew-x)) skewY(var(--univer-tw-skew-y)) scaleX(var(--univer-tw-scale-x)) scaleY(var(--univer-tw-scale-y));transform:translate(var(--univer-tw-translate-x),var(--univer-tw-translate-y)) rotate(var(--univer-tw-rotate)) skew(var(--univer-tw-skew-x)) skewY(var(--univer-tw-skew-y)) scaleX(var(--univer-tw-scale-x)) scaleY(var(--univer-tw-scale-y))}.univer-cursor-default{cursor:default}.univer-cursor-pointer{cursor:pointer}.univer-appearance-none{-webkit-appearance:none;appearance:none}.univer-grid-cols-10{grid-template-columns:repeat(10,minmax(0,1fr))}.univer-flex-col{flex-direction:column}.univer-items-center{align-items:center}.univer-justify-center{justify-content:center}.univer-justify-between{justify-content:space-between}.univer-gap-1{gap:.25rem}.univer-gap-1\.5{gap:.375rem}.univer-gap-2{gap:.5rem}.univer-gap-3{gap:.75rem}.univer-gap-4{gap:1rem}.univer-overflow-auto{overflow:auto}.univer-overflow-hidden{overflow:hidden}.univer-overflow-visible{overflow:visible}.univer-rounded{border-radius:.25rem}.univer-rounded-full{border-radius:9999px}.univer-rounded-lg{border-radius:.5rem}.univer-rounded-md{border-radius:.375rem}.univer-border{border-width:1px}.univer-border-b{border-bottom-width:1px}.univer-border-l-2{border-left-width:2px}.univer-border-solid{border-style:solid}.univer-border-gray-200{border-color:var(--univer-gray-200)}.univer-border-l-gray-200{border-left-color:var(--univer-gray-200)}.univer-bg-gray-100{background-color:var(--univer-gray-100)}.univer-bg-gray-200{background-color:var(--univer-gray-200)}.univer-bg-primary-600{background-color:var(--univer-primary-600)}.univer-bg-transparent{background-color:#0000}.univer-bg-white{background-color:var(--univer-white)}.univer-object-cover{-o-object-fit:cover;object-fit:cover}.univer-p-1{padding:.25rem}.univer-p-3{padding:.75rem}.univer-px-2{padding-left:.5rem;padding-right:.5rem}.univer-px-3{padding-left:.75rem;padding-right:.75rem}.univer-px-4{padding-left:1rem;padding-right:1rem}.univer-py-1{padding-top:.25rem;padding-bottom:.25rem}.univer-py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.univer-py-4{padding-top:1rem;padding-bottom:1rem}.univer-pb-2{padding-bottom:.5rem}.univer-pb-2\.5{padding-bottom:.625rem}.univer-pl-3{padding-left:.75rem}.univer-pt-2{padding-top:.5rem}.univer-text-center{text-align:center}.univer-text-sm{font-size:.875rem;line-height:1.25rem}.univer-text-xl{font-size:1.25rem;line-height:1.75rem}.univer-text-xs{font-size:.75rem;line-height:1rem}.univer-font-medium{font-weight:500}.univer-font-semibold{font-weight:600}.univer-text-gray-500{color:var(--univer-gray-500)}.univer-text-gray-600{color:var(--univer-gray-600)}.univer-text-gray-700{color:var(--univer-gray-700)}.univer-text-primary-600{color:var(--univer-primary-600)}.univer-shadow-md{--univer-tw-shadow: 0px 1px 6px -2px #1e284d14, 0px 2px 6px -1px #1e284d1a;--univer-tw-shadow-colored: 0px 1px 6px -2px var(--univer-tw-shadow-color), 0px 2px 6px -1px var(--univer-tw-shadow-color);box-shadow:0 0 #0000,0 0 #0000,0 1px 6px -2px #1e284d14,0 2px 6px -1px #1e284d1a;box-shadow:var(--univer-tw-ring-offset-shadow, 0 0 #0000),var(--univer-tw-ring-shadow, 0 0 #0000),var(--univer-tw-shadow)}.univer-transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.univer-transition-transform{transition-property:transform;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.univer-group:hover .group-hover\:univer-block{display:block}.hover\:univer-border-primary-600:hover{border-color:var(--univer-primary-600)}.hover\:univer-bg-gray-100:hover{background-color:var(--univer-gray-100)}.hover\:univer-bg-gray-200:hover{background-color:var(--univer-gray-200)}.disabled\:univer-cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:univer-opacity-50:disabled{opacity:.5}.dark\:\!univer-border-gray-600:where(.univer-dark,.univer-dark *){border-color:var(--univer-gray-600)!important}.dark\:\!univer-border-l-gray-600:where(.univer-dark,.univer-dark *){border-left-color:var(--univer-gray-600)!important}.dark\:\!univer-bg-gray-600:where(.univer-dark,.univer-dark *){background-color:var(--univer-gray-600)!important}.dark\:\!univer-bg-gray-800:where(.univer-dark,.univer-dark *){background-color:var(--univer-gray-800)!important}.dark\:\!univer-text-gray-200:where(.univer-dark,.univer-dark *){color:var(--univer-gray-200)!important}.dark\:hover\:\!univer-bg-gray-700:hover:where(.univer-dark,.univer-dark *){background-color:var(--univer-gray-700)!important}.\[\&\:\:-webkit-slider-thumb\]\:univer-size-3\.5::-webkit-slider-thumb{width:.875rem;height:.875rem}.\[\&\:\:-webkit-slider-thumb\]\:univer-appearance-none::-webkit-slider-thumb{-webkit-appearance:none;appearance:none}.\[\&\:\:-webkit-slider-thumb\]\:univer-rounded-full::-webkit-slider-thumb{border-radius:9999px}.\[\&\:\:-webkit-slider-thumb\]\:univer-bg-primary-600::-webkit-slider-thumb{background-color:var(--univer-primary-600)}.\[\&\:\:-webkit-slider-thumb\]\:univer-shadow-sm::-webkit-slider-thumb{--univer-tw-shadow: 0px 1px 2px 0px #1e284d14;--univer-tw-shadow-colored: 0px 1px 2px 0px var(--univer-tw-shadow-color);box-shadow:0 0 #0000,0 0 #0000,0 1px 2px #1e284d14;box-shadow:var(--univer-tw-ring-offset-shadow, 0 0 #0000),var(--univer-tw-ring-shadow, 0 0 #0000),var(--univer-tw-shadow)}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tor-univer-sheet",
3
- "version": "1.2.8",
3
+ "version": "1.2.9",
4
4
  "style": "./dist/style.css",
5
5
  "description": "基于 Univer 的 Vue3 电子表格组件",
6
6
  "author": "tortormore",
@@ -45,6 +45,7 @@
45
45
  "@univerjs/preset-sheets-core": "^0.25.1",
46
46
  "@univerjs/preset-sheets-data-validation": "^0.25.1",
47
47
  "@univerjs/preset-sheets-drawing": "^0.25.1",
48
+ "@univerjs/preset-sheets-advanced": "^0.25.1",
48
49
  "@univerjs/preset-sheets-filter": "^0.25.1",
49
50
  "@univerjs/preset-sheets-find-replace": "^0.25.1",
50
51
  "@univerjs/preset-sheets-hyper-link": "^0.25.1",