tor-univer-sheet 1.2.7 → 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,10 +1,10 @@
1
- import { CellValueType as F } from "@univerjs/presets";
2
- import { CommandType as we, FEventName as Se, FUniver as Ce, ICommandService as Te, IUniverInstanceService as Ne, Inject as Pe, Injector as Ue, LocaleType as ke, Plugin as Oe, Univer as Ie, UniverInstanceType as je, Workbook as He, createUniver as Re, defaultTheme as Be, greenTheme as Ze, merge as Fe, mergeLocales as Ve, touchDependencies as Ae } from "@univerjs/presets";
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 Ae } from "@univerjs/presets";
3
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";
7
- import { UniverSheetsAdvancedPreset as ot } from "@univerjs/preset-sheets-advanced";
7
+ import { UniverLicensePlugin as ot } from "@univerjs-pro/license";
8
8
  import { UniverSheetsConditionalFormattingPreset as st } from "@univerjs/preset-sheets-conditional-formatting";
9
9
  import { UniverSheetsCorePreset as it } from "@univerjs/presets/preset-sheets-core";
10
10
  import { UniverSheetsDataValidationPreset as lt } from "@univerjs/preset-sheets-data-validation";
@@ -14,27 +14,25 @@ import { UniverSheetsHyperLinkPreset as yt } from "@univerjs/preset-sheets-hyper
14
14
  import { UniverSheetsNotePreset as gt } from "@univerjs/preset-sheets-note";
15
15
  import { UniverSheetsSortPreset as pt } from "@univerjs/preset-sheets-sort";
16
16
  import { UniverSheetsFindReplacePreset as xt } from "@univerjs/preset-sheets-find-replace";
17
- import { UniverSheetsThreadCommentPreset as vt } from "@univerjs/preset-sheets-thread-comment";
17
+ import { UniverSheetsThreadCommentPreset as wt } from "@univerjs/preset-sheets-thread-comment";
18
18
  import { UniverSheetsTablePreset as St } from "@univerjs/preset-sheets-table";
19
- import { UniverSheetsCollaborationPreset as Tt } from "@univerjs/preset-sheets-collaboration";
20
- import { UniverWatermarkPlugin as Pt } from "@univerjs/watermark";
21
- import { UniverSheetsCrosshairHighlightPlugin as kt } from "@univerjs/sheets-crosshair-highlight";
22
- import { UniverLiveSharePlugin as It } from "@univerjs-pro/live-share";
19
+ import { UniverWatermarkPlugin as Ct } from "@univerjs/watermark";
20
+ import { UniverSheetsCrosshairHighlightPlugin as Pt } from "@univerjs/sheets-crosshair-highlight";
21
+ import { UniverSheetsAdvancedPreset as Ut } from "@univerjs/preset-sheets-advanced";
22
+ import { default as It } from "@univerjs/preset-sheets-advanced/locales/zh-CN";
23
23
  import { default as Ht } from "@univerjs/preset-sheets-core/locales/zh-CN";
24
- import { default as Bt } from "@univerjs/preset-sheets-advanced/locales/zh-CN";
25
- import { default as Ft } from "@univerjs/presets/preset-sheets-conditional-formatting/locales/zh-CN";
26
- import { default as At } from "@univerjs/presets/preset-sheets-core/locales/zh-CN";
27
- import { default as Gt } from "@univerjs/preset-sheets-drawing/locales/zh-CN";
28
- import { default as Lt } from "@univerjs/preset-sheets-filter/locales/zh-CN";
29
- import { default as Wt } from "@univerjs/preset-sheets-hyper-link/locales/zh-CN";
30
- import { default as zt } from "@univerjs/preset-sheets-note/locales/zh-CN";
31
- import { default as _t } from "@univerjs/presets/preset-sheets-filter/locales/zh-CN";
32
- import { default as Xt } from "@univerjs/preset-sheets-sort/locales/zh-CN";
33
- import { default as tr } from "@univerjs/preset-sheets-data-validation/locales/zh-CN";
34
- import { default as or } from "@univerjs/preset-sheets-find-replace/locales/zh-CN";
35
- import { default as sr } from "@univerjs/preset-sheets-thread-comment/locales/zh-CN";
36
- import { default as ir } from "@univerjs/preset-sheets-table/locales/zh-CN";
37
- import { default as lr } from "@univerjs/preset-sheets-collaboration/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";
38
36
  import d from "dayjs";
39
37
  import z from "decimal.js";
40
38
  const de = (e, r) => {
@@ -160,8 +158,8 @@ async function ye(e, r) {
160
158
  const y = d(r);
161
159
  if (!y.isValid())
162
160
  return Promise.reject("无效的日期格式");
163
- const w = y.startOf("month").format("YYYY-MM-DD"), a = y.endOf("month").format("YYYY-MM-DD");
164
- return Promise.resolve([w, a]);
161
+ const v = y.startOf("month").format("YYYY-MM-DD"), a = y.endOf("month").format("YYYY-MM-DD");
162
+ return Promise.resolve([v, a]);
165
163
  case "day":
166
164
  if (q(r))
167
165
  return Promise.resolve(r);
@@ -194,8 +192,8 @@ function P(e, r, o, t) {
194
192
  const a = y.month();
195
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)];
196
194
  }
197
- const w = { year: "year", day: "day", hour: "hour" };
198
- return [y.startOf(w[r]).format(c), y.endOf(w[r]).format(c)];
195
+ const v = { year: "year", day: "day", hour: "hour" };
196
+ return [y.startOf(v[r]).format(c), y.endOf(v[r]).format(c)];
199
197
  }
200
198
  function G(e, r, o, t) {
201
199
  const c = {
@@ -206,7 +204,7 @@ function G(e, r, o, t) {
206
204
  }[r];
207
205
  return d(e, c).add(o * t, r).format(c);
208
206
  }
209
- function v(e, r, o) {
207
+ function w(e, r, o) {
210
208
  return e[r] || (e[r] = {}), e[r][o] || (e[r][o] = {}), e[r][o];
211
209
  }
212
210
  async function Ye(e) {
@@ -214,13 +212,13 @@ async function Ye(e) {
214
212
  throw new Error("cellData is required");
215
213
  const r = Object.entries(e).reduce((o, t) => {
216
214
  const [c, n] = t;
217
- for (const [y, w] of Object.entries(n)) {
218
- const { custom: a, v: h, t: Y, s: f } = w;
215
+ for (const [y, v] of Object.entries(n)) {
216
+ const { custom: a, v: h, t: Y, s: f } = v;
219
217
  if (!a) continue;
220
218
  const { cellType: E } = a, l = !a.hasOwnProperty("writeBack") || V(a?.writeBack) ? !0 : a.writeBack;
221
219
  if (E === "indicator") {
222
- const k = v(o, c, y);
223
- k.custom = {
220
+ const U = w(o, c, y);
221
+ U.custom = {
224
222
  ...a,
225
223
  required: V(a?.required) ? !1 : a?.required,
226
224
  defaultShift: V(a?.defaultShift) ? !1 : a?.defaultShift,
@@ -229,7 +227,7 @@ async function Ye(e) {
229
227
  useDefaultEndDate: V(a?.useDefaultEndDate) ? !1 : a?.useDefaultEndDate,
230
228
  copyType: V(a?.copyType) ? "" : a?.copyType,
231
229
  writeBack: l
232
- }, k.s = f, k.t = Y, k.v = h || "";
230
+ }, U.s = f, U.t = Y, U.v = h || "";
233
231
  }
234
232
  }
235
233
  return o;
@@ -253,7 +251,7 @@ function le({
253
251
  initColNum: t,
254
252
  cellData: c
255
253
  }) {
256
- const { rangeData: n, currentDay: y, extraArgs: w } = r, a = w?.teamData || {}, { cycleType: h, timeIncrement: Y, forwardPush: f, forwardPushTimes: E, copyType: l, copyInterval: k, defaultShift: D, templateStr: U, 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;
257
255
  let x = 0;
258
256
  switch (h) {
259
257
  case "day": {
@@ -266,8 +264,8 @@ function le({
266
264
  )), !l) {
267
265
  let u = "";
268
266
  f ? u = s : u = n[0];
269
- const i = v(e, o, t);
270
- i.v = U ? $(U, { businessDate: u, dayjs: d }) : d(u).format("YYYY-MM-DD"), i.t = F.STRING, i.s = "tor-time-cell-style";
267
+ const i = w(e, o, t);
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";
271
269
  break;
272
270
  }
273
271
  f ? x = j(
@@ -282,18 +280,18 @@ function le({
282
280
  /* day */
283
281
  ), console.log("copyNum", x));
284
282
  for (let u = 0; u <= Math.abs(x === 0 ? 1 : x); u++) {
285
- const i = u * (k + 1);
283
+ const i = u * (U + 1);
286
284
  let S = "";
287
285
  f ? S = G(s, "day", u, Y) : S = G(n[0], "day", u, Y);
288
- const p = l === "right" ? o : o + i, R = l === "right" ? t + i : t, Z = v(e, p, R);
289
- Z.v = U ? $(U, { businessDate: S, dayjs: d }) : d(S).format("YYYY-MM-DD"), Z.t = F.STRING, Z.s = "tor-time-cell-style";
286
+ const p = l === "right" ? o : o + i, R = l === "right" ? t + i : t, F = w(e, p, R);
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";
290
288
  }
291
289
  break;
292
290
  }
293
291
  case "month": {
294
292
  if (!l) {
295
- const [s, u] = P(n[1], "month", 0, 1), i = v(e, o, t);
296
- i.v = d(u).format("YYYY-MM"), i.t = F.STRING, i.s = "tor-time-cell-style";
293
+ const [s, u] = P(n[1], "month", 0, 1), i = w(e, o, t);
294
+ i.v = d(u).format("YYYY-MM"), i.t = Z.STRING, i.s = "tor-time-cell-style";
297
295
  break;
298
296
  }
299
297
  x = j(
@@ -303,8 +301,8 @@ function le({
303
301
  /* month */
304
302
  );
305
303
  for (let s = 0; s <= Math.abs(x === 0 ? 1 : x); s++) {
306
- const u = s * (k + 1), i = l === "right" ? o : o + u, S = l === "right" ? t + u : t, p = v(e, i, S);
307
- p.v = G(n[0], "month", s, Y), p.t = F.STRING, p.s = "tor-time-cell-style";
304
+ const u = s * (U + 1), i = l === "right" ? o : o + u, S = l === "right" ? t + u : t, p = w(e, i, S);
305
+ p.v = G(n[0], "month", s, Y), p.t = Z.STRING, p.s = "tor-time-cell-style";
308
306
  }
309
307
  break;
310
308
  }
@@ -316,13 +314,13 @@ function le({
316
314
  "year"
317
315
  /* year */
318
316
  )), !l) {
319
- const u = f ? s : n[0], [i, S] = P(u, "year", 0, 1), p = v(e, o, t), [, R] = P(n[1], "month", 0, 1);
320
- p.v = U ? $(U, {
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);
318
+ p.v = k ? $(k, {
321
319
  startTime: i,
322
320
  endTime: S,
323
321
  rangeData: n,
324
322
  dayjs: d
325
- }) : u, p.t = F.STRING, p.s = "tor-time-cell-style";
323
+ }) : u, p.t = Z.STRING, p.s = "tor-time-cell-style";
326
324
  break;
327
325
  }
328
326
  f ? x = j(
@@ -337,20 +335,20 @@ function le({
337
335
  /* year */
338
336
  );
339
337
  for (let u = 0; u <= Math.abs(x === 0 ? 1 : x); u++) {
340
- const i = u * (k + 1), S = l === "right" ? o : o + i, p = l === "right" ? t + i : t, [R, Z] = P(n[0], "year", u, Y), C = v(e, S, p), N = G(n[0], "year", u, Y);
341
- C.v = U ? $(U, {
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, {
342
340
  startTime: R,
343
- endTime: Z,
341
+ endTime: F,
344
342
  rangeData: n,
345
343
  dayjs: d
346
- }) : N, C.t = F.STRING, C.s = "tor-time-cell-style";
344
+ }) : N, T.t = Z.STRING, T.s = "tor-time-cell-style";
347
345
  }
348
346
  break;
349
347
  }
350
348
  case "hour": {
351
349
  if (!l) {
352
- const s = v(e, o, t);
353
- if (s.t = F.STRING, s.s = "tor-time-cell-style", D) {
350
+ const s = w(e, o, t);
351
+ if (s.t = Z.STRING, s.s = "tor-time-cell-style", D) {
354
352
  s.v = d(n[0]).add(1, "hour").format("YYYY-MM-DD HH:mm:ss");
355
353
  break;
356
354
  }
@@ -364,8 +362,8 @@ function le({
364
362
  /* hour */
365
363
  );
366
364
  for (let s = 0; s <= Math.abs(x === 0 ? 1 : x); s++) {
367
- const u = s * (k + 1), i = l === "right" ? o : o + u, S = l === "right" ? t + u : t, p = v(e, i, S);
368
- if (p.t = F.STRING, p.s = "tor-time-cell-style", D) {
365
+ const u = s * (U + 1), i = l === "right" ? o : o + u, S = l === "right" ? t + u : t, p = w(e, i, S);
366
+ if (p.t = Z.STRING, p.s = "tor-time-cell-style", D) {
369
367
  const R = d(n[0]).add(1, "hour").format("YYYY-MM-DD HH:mm:ss");
370
368
  p.v = G(R, "hour", s, Y);
371
369
  continue;
@@ -376,8 +374,8 @@ function le({
376
374
  }
377
375
  case "shift": {
378
376
  if (!l) {
379
- const s = v(e, o, t);
380
- s.t = F.STRING, s.s = "tor-time-cell-style", s.v = U ? $(U, {
377
+ const s = w(e, o, t);
378
+ s.t = Z.STRING, s.s = "tor-time-cell-style", s.v = k ? $(k, {
381
379
  rangeData: n,
382
380
  dayjs: d
383
381
  }) : n[0];
@@ -386,8 +384,8 @@ function le({
386
384
  if (!a.length)
387
385
  throw new Error("没有获取到当班数据");
388
386
  for (let s = 0; s < a.length; s++) {
389
- const u = a[s], { startDatetime: i, endDatetime: S } = u, p = s * (k + 1), R = l === "right" ? o : I(o).add(p).toNumber(), Z = l === "right" ? I(t).add(p).toNumber() : t, C = v(e, R, Z);
390
- C.s = "tor-time-cell-style", C.v = U ? $(U, {
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);
388
+ T.s = "tor-time-cell-style", T.v = k ? $(k, {
391
389
  team: u
392
390
  }) : i;
393
391
  }
@@ -401,7 +399,7 @@ async function ge(e, r) {
401
399
  const { extraArgs: o, rangeData: t } = r;
402
400
  if (!t.length)
403
401
  return Promise.reject("处理时间范围失败, rangeData不能为空");
404
- const c = o?.teamData || [], { periodicityTime: n } = r, y = r?.currentDay || d().format("YYYY-MM-DD"), w = (h, Y, f) => n ? f !== "MACH_CYCLE" ? [h, Y] : parseInt(n.split(":")[0], 10) < 12 ? [
402
+ const c = o?.teamData || [], { periodicityTime: n } = r, y = r?.currentDay || d().format("YYYY-MM-DD"), v = (h, Y, f) => n ? f !== "MACH_CYCLE" ? [h, Y] : parseInt(n.split(":")[0], 10) < 12 ? [
405
403
  d(h).format("YYYY-MM-DD") + " " + n,
406
404
  d(Y).add(1, "day").format("YYYY-MM-DD") + " " + n
407
405
  ] : [
@@ -409,11 +407,11 @@ async function ge(e, r) {
409
407
  d(Y).format("YYYY-MM-DD") + " " + n
410
408
  ] : [h, Y], a = Object.entries(e).reduce((h, Y) => {
411
409
  const [f, E] = Y;
412
- for (const [l, k] of Object.entries(E)) {
413
- const { custom: D } = k;
410
+ for (const [l, U] of Object.entries(E)) {
411
+ const { custom: D } = U;
414
412
  if (!D) continue;
415
413
  const {
416
- cellType: U,
414
+ cellType: k,
417
415
  cycleType: J,
418
416
  timeIncrement: x,
419
417
  forwardPush: s,
@@ -422,13 +420,13 @@ async function ge(e, r) {
422
420
  copyInterval: S,
423
421
  defaultShift: p,
424
422
  useDefaultStartDate: R,
425
- useDefaultEndDate: Z
423
+ useDefaultEndDate: F
426
424
  } = D;
427
- if (U === "time") {
428
- le({ acc: h, params: r, initRowNum: Number(f), initColNum: Number(l), cellData: k });
425
+ if (k === "time") {
426
+ le({ acc: h, params: r, initRowNum: Number(f), initColNum: Number(l), cellData: U });
429
427
  continue;
430
428
  }
431
- const C = {
429
+ const T = {
432
430
  cycleType: J,
433
431
  indicatorName: D.indicatorName,
434
432
  indicatorCode: D.indicatorCode,
@@ -455,12 +453,12 @@ async function ge(e, r) {
455
453
  "day"
456
454
  /* day */
457
455
  )), !i) {
458
- const g = s ? m : t[0], [M, b] = w(
456
+ const g = s ? m : t[0], [M, b] = v(
459
457
  ...P(g, "day", 0, 1),
460
458
  D?.innerSyncWay
461
- ), T = v(h, f, l);
462
- T.s = "tor-indicator-cell-style", T.custom = {
463
- ...C,
459
+ ), C = w(h, f, l);
460
+ C.s = "tor-indicator-cell-style", C.custom = {
461
+ ...T,
464
462
  startTime: M,
465
463
  endTime: b
466
464
  };
@@ -478,13 +476,13 @@ async function ge(e, r) {
478
476
  /* day */
479
477
  );
480
478
  for (let g = 0; g <= Math.abs(N === 0 ? 1 : N); g++) {
481
- const M = g * (S + 1), b = s ? m : t[0], [T, H] = w(
479
+ const M = g * (S + 1), b = s ? m : t[0], [C, H] = v(
482
480
  ...P(b, "day", g, x),
483
481
  D?.innerSyncWay
484
- ), O = i === "right" ? f : I(f).add(M).toNumber(), B = i === "right" ? I(l).add(M).toNumber() : l, A = v(h, O, B);
482
+ ), O = i === "right" ? f : I(f).add(M).toNumber(), B = i === "right" ? I(l).add(M).toNumber() : l, A = w(h, O, B);
485
483
  A.s = "tor-indicator-cell-style", A.custom = {
486
- ...C,
487
- startTime: T,
484
+ ...T,
485
+ startTime: C,
488
486
  endTime: H
489
487
  };
490
488
  }
@@ -492,9 +490,9 @@ async function ge(e, r) {
492
490
  }
493
491
  case "month": {
494
492
  if (!i) {
495
- const [m, g] = P(t[1], "month", 0, 1), M = v(h, f, l);
493
+ const [m, g] = P(t[1], "month", 0, 1), M = w(h, f, l);
496
494
  M.s = "tor-indicator-cell-style", M.custom = {
497
- ...C,
495
+ ...T,
498
496
  startTime: m,
499
497
  endTime: g
500
498
  };
@@ -507,10 +505,10 @@ async function ge(e, r) {
507
505
  /* month */
508
506
  );
509
507
  for (let m = 0; m <= Math.abs(N === 0 ? 1 : N); m++) {
510
- const g = m * (S + 1), M = i === "right" ? f : I(f).add(g).toNumber(), b = i === "right" ? I(l).add(g).toNumber() : l, [T, H] = P(t[0], "month", m, x), O = v(h, M, b);
508
+ const g = m * (S + 1), M = i === "right" ? f : I(f).add(g).toNumber(), b = i === "right" ? I(l).add(g).toNumber() : l, [C, H] = P(t[0], "month", m, x), O = w(h, M, b);
511
509
  O.s = "tor-indicator-cell-style", O.custom = {
512
- ...C,
513
- startTime: T,
510
+ ...T,
511
+ startTime: C,
514
512
  endTime: H
515
513
  };
516
514
  }
@@ -529,13 +527,13 @@ async function ge(e, r) {
529
527
  g = d(`${m}-${b + 1}`).format("YYYY-MM"), M = d(`${m}-${b + 2}`).format("YYYY-MM");
530
528
  }
531
529
  if (!i) {
532
- const b = s ? m : t[0], [T, H] = P(b, "year", 0, 1), O = v(h, f, l);
530
+ const b = s ? m : t[0], [C, H] = P(b, "year", 0, 1), O = w(h, f, l);
533
531
  O.s = "tor-indicator-cell-style";
534
532
  const [, B] = P(g, "month", 0, 1), [A] = P(M, "month", 0, 1);
535
533
  O.custom = {
536
- ...C,
537
- startTime: R ? A : T,
538
- endTime: Z ? B : H
534
+ ...T,
535
+ startTime: R ? A : C,
536
+ endTime: F ? B : H
539
537
  };
540
538
  break;
541
539
  }
@@ -551,9 +549,9 @@ async function ge(e, r) {
551
549
  /* year */
552
550
  );
553
551
  for (let b = 0; b <= Math.abs(N === 0 ? 1 : N); b++) {
554
- const T = b * (S + 1), H = i === "right" ? f : I(f).add(T).toNumber(), O = i === "right" ? I(l).add(T).toNumber() : l, [B, A] = P(t[0], "year", b, x), L = v(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);
555
553
  L.s = "tor-indicator-cell-style", L.custom = {
556
- ...C,
554
+ ...T,
557
555
  startTime: B,
558
556
  endTime: A
559
557
  };
@@ -562,9 +560,9 @@ async function ge(e, r) {
562
560
  }
563
561
  case "hour": {
564
562
  if (!i) {
565
- const m = p ? t[0] : t[0] ?? y, [g, M] = P(m, "hour", 1, 1), b = v(h, f, l);
563
+ const m = p ? t[0] : t[0] ?? y, [g, M] = P(m, "hour", 1, 1), b = w(h, f, l);
566
564
  b.s = "tor-indicator-cell-style", b.custom = {
567
- ...C,
565
+ ...T,
568
566
  startTime: g,
569
567
  endTime: M
570
568
  };
@@ -577,19 +575,19 @@ async function ge(e, r) {
577
575
  /* hour */
578
576
  );
579
577
  for (let m = 0; m <= Math.abs(N === 0 ? 1 : N); m++) {
580
- const g = m * (S + 1), M = i === "right" ? f : I(f).add(g).toNumber(), b = i === "right" ? I(l).add(g).toNumber() : l, T = v(h, M, b);
581
- if (T.s = "tor-indicator-cell-style", p) {
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);
579
+ if (C.s = "tor-indicator-cell-style", p) {
582
580
  const A = d(t[0]).add(1, "hour").format("YYYY-MM-DD HH:mm:ss"), [L, _] = P(A, "hour", m, x);
583
- T.custom = {
584
- ...C,
581
+ C.custom = {
582
+ ...T,
585
583
  startTime: L,
586
584
  endTime: _
587
585
  };
588
586
  continue;
589
587
  }
590
588
  const H = d(y).add(1, "hour").format("YYYY-MM-DD HH:mm:ss"), [O, B] = P(H, "hour", m, x);
591
- T.custom = {
592
- ...C,
589
+ C.custom = {
590
+ ...T,
593
591
  startTime: O,
594
592
  endTime: B
595
593
  };
@@ -598,9 +596,9 @@ async function ge(e, r) {
598
596
  }
599
597
  case "shift": {
600
598
  if (!i) {
601
- const [m, g] = t, M = v(h, f, l);
599
+ const [m, g] = t, M = w(h, f, l);
602
600
  M.s = "tor-indicator-cell-style", M.custom = {
603
- ...C,
601
+ ...T,
604
602
  startTime: m,
605
603
  endTime: g
606
604
  };
@@ -609,9 +607,9 @@ async function ge(e, r) {
609
607
  if (!c.length)
610
608
  throw new Error("没有获取到当班数据");
611
609
  for (let m = 0; m < c.length; m++) {
612
- const g = c[m], { startDatetime: M, endDatetime: b } = g, T = m * (S + 1), H = i === "right" ? f : I(f).add(T).toNumber(), O = i === "right" ? I(l).add(T).toNumber() : l, B = v(h, H, O);
610
+ const g = c[m], { startDatetime: M, endDatetime: b } = g, C = m * (S + 1), H = i === "right" ? f : I(f).add(C).toNumber(), O = i === "right" ? I(l).add(C).toNumber() : l, B = w(h, H, O);
613
611
  B.s = "tor-indicator-cell-style", B.custom = {
614
- ...C,
612
+ ...T,
615
613
  startTime: M,
616
614
  endTime: b
617
615
  };
@@ -635,20 +633,20 @@ function pe(e, r) {
635
633
  for (const [t, c] of Object.entries(r)) {
636
634
  o[t] || (o[t] = {});
637
635
  for (const [n, y] of Object.entries(c)) {
638
- const w = y ?? {}, a = o[t]?.[n];
636
+ const v = y ?? {}, a = o[t]?.[n];
639
637
  if (a) {
640
638
  const h = {
641
639
  ...a,
642
- ...w,
640
+ ...v,
643
641
  custom: {
644
642
  ...a.custom,
645
- ...w.custom
643
+ ...v.custom
646
644
  },
647
- v: w.v || ""
645
+ v: v.v || ""
648
646
  };
649
647
  o[t][n] = h;
650
648
  } else
651
- o[t][n] = w;
649
+ o[t][n] = v;
652
650
  }
653
651
  }
654
652
  return o;
@@ -661,11 +659,11 @@ function be(e, r) {
661
659
  for (const n in c) {
662
660
  const y = c[n];
663
661
  if (y?.custom?.cellType === "indicator") {
664
- const w = Number(t), a = Number(n);
662
+ const v = Number(t), a = Number(n);
665
663
  if (r.some(
666
- (Y) => w >= Y.startRow && w <= Y.endRow && a >= Y.startColumn && a <= Y.endColumn
664
+ (Y) => v >= Y.startRow && v <= Y.endRow && a >= Y.startColumn && a <= Y.endColumn
667
665
  ) && !r.some(
668
- (f) => w === f.startRow && a === f.startColumn
666
+ (f) => v === f.startRow && a === f.startColumn
669
667
  ))
670
668
  continue;
671
669
  }
@@ -678,19 +676,19 @@ const xe = "./style.css";
678
676
  export {
679
677
  Ge as BaselineOffset,
680
678
  $e as CommandService,
681
- we as CommandType,
679
+ ve as CommandType,
682
680
  Je as ComponentManager,
683
681
  ze as ContextMenuGroup,
684
682
  Ke as ContextMenuPosition,
685
683
  ie as CycleTypeEnum,
686
684
  Se as FEventName,
687
- Ce as FUniver,
688
- Te as ICommandService,
685
+ Te as FUniver,
686
+ Ce as ICommandService,
689
687
  _e as IMenuManagerService,
690
688
  Ne as IUniverInstanceService,
691
689
  Pe as Inject,
692
- Ue as Injector,
693
- ke as LocaleType,
690
+ ke as Injector,
691
+ Ue as LocaleType,
694
692
  Qe as MenuItemType,
695
693
  ce as ModeEnum,
696
694
  Oe as Plugin,
@@ -698,23 +696,21 @@ export {
698
696
  qe as SetRangeValuesCommand,
699
697
  Ie as Univer,
700
698
  je as UniverInstanceType,
701
- It as UniverLiveSharePlugin,
702
- Bt as UniverPresetSheetsAdvancedZhCN,
703
- lr as UniverPresetSheetsCollaborationZhCN,
704
- tr as UniverPresetSheetsDataValidationZhCN,
705
- Gt as UniverPresetSheetsDrawingZhCN,
706
- _t as UniverPresetSheetsFilterZhCN,
707
- or as UniverPresetSheetsFindReplaceZhCN,
708
- Wt as UniverPresetSheetsHyperLinkZhCN,
709
- zt as UniverPresetSheetsNoteZhCN,
710
- Xt as UniverPresetSheetsSortZhCN,
711
- ir as UniverPresetSheetsTableZhCN,
712
- sr as UniverPresetSheetsThreadCommentZhCN,
713
- ot as UniverSheetsAdvancedPreset,
714
- Tt as UniverSheetsCollaborationPreset,
699
+ ot as UniverLicensePlugin,
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,
715
711
  st as UniverSheetsConditionalFormattingPreset,
716
712
  it as UniverSheetsCorePreset,
717
- kt as UniverSheetsCrosshairHighlightPlugin,
713
+ Pt as UniverSheetsCrosshairHighlightPlugin,
718
714
  lt as UniverSheetsDataValidationPreset,
719
715
  ut as UniverSheetsDrawingPreset,
720
716
  dt as UniverSheetsFilterPreset,
@@ -723,9 +719,9 @@ export {
723
719
  gt as UniverSheetsNotePreset,
724
720
  pt as UniverSheetsSortPreset,
725
721
  St as UniverSheetsTablePreset,
726
- vt as UniverSheetsThreadCommentPreset,
722
+ wt as UniverSheetsThreadCommentPreset,
727
723
  tt as UniverVue3AdapterPlugin,
728
- Pt as UniverWatermarkPlugin,
724
+ Ct as UniverWatermarkPlugin,
729
725
  He as Workbook,
730
726
  Re as createUniver,
731
727
  I as decimal,
@@ -735,15 +731,15 @@ export {
735
731
  ge as generateIndicatorsCells,
736
732
  Q as generateUUID,
737
733
  De as getNumColumns,
738
- Ze as greenTheme,
734
+ Fe as greenTheme,
739
735
  de as handleClearInput,
740
736
  ye as initDateRange,
741
- Fe as merge,
737
+ Ze as merge,
742
738
  pe as mergeCellData,
743
739
  Ve as mergeLocales,
744
- Ft as sheetsConditionalFormattingZhCN,
745
- At as sheetsCoreZhCN,
746
- Lt as sheetsFilterZhCN,
740
+ Bt as sheetsConditionalFormattingZhCN,
741
+ Zt as sheetsCoreZhCN,
742
+ Gt as sheetsFilterZhCN,
747
743
  xe as stylePath,
748
744
  Ae as touchDependencies,
749
745
  he as useData,
@@ -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/preset-sheets-advanced"),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/preset-sheets-collaboration"),require("@univerjs/watermark"),require("@univerjs/sheets-crosshair-highlight"),require("@univerjs-pro/live-share"),require("@univerjs/preset-sheets-core/locales/zh-CN"),require("@univerjs/preset-sheets-advanced/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("@univerjs/preset-sheets-collaboration/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/preset-sheets-advanced","@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/preset-sheets-collaboration","@univerjs/watermark","@univerjs/sheets-crosshair-highlight","@univerjs-pro/live-share","@univerjs/preset-sheets-core/locales/zh-CN","@univerjs/preset-sheets-advanced/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","@univerjs/preset-sheets-collaboration/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.presetSheetsAdvanced,e.presetSheetsConditionalFormatting,e.presetSheetsCore,e.presetSheetsDataValidation,e.presetSheetsDrawing,e.presetSheetsFilter,e.presetSheetsHyperLink,e.presetSheetsNote,e.presetSheetsSort,e.presetSheetsFindReplace,e.presetSheetsThreadComment,e.presetSheetsTable,e.presetSheetsCollaboration,e.watermark,e.sheetsCrosshairHighlight,e.liveShare,e.zhCN$e,e.zhCN,e.zhCN$b,e.zhCN$c,e.zhCN$3,e.zhCN$d,e.zhCN$6,e.zhCN$7,e.zhCN$4,e.zhCN$8,e.zhCN$2,e.zhCN$5,e.zhCN$a,e.zhCN$9,e.zhCN$1,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,Se,De,Ne,Me,we,Te,Oe,Ue,ke,ze,Ie,qe,v,_){"use strict";const He=(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 Re(t){return{...t?.workbookData,id:t?.id||x(),name:t?.name||"未命名",appVersion:t?.appVersion||"1.0.0"}}const Ve=Object.prototype.toString,ee=(t,n)=>Ve.call(t)===`[object ${n}]`,$e=t=>typeof t<"u",Fe=t=>!$e(t),Be=t=>t!==null&&ee(t,"Object"),F=t=>t==null||typeof t>"u"?!0:W(t)||Ee(t)?t.length===0:t instanceof Map||t instanceof Set?t.size===0:Be(t)?Object.keys(t).length===0:!1,Ae=t=>t===null,Ze=t=>Fe(t)||Ae(t),Ee=t=>ee(t,"String"),W=t=>t&&Array.isArray(t);class Ge{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 z(t=0){return new Ge(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 Le(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=Z(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 Z(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 We(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:E}=a,l=!a.hasOwnProperty("writeBack")||F(a?.writeBack)?!0:a.writeBack;if(E==="indicator"){const I=Y(s,c,b);I.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},I.s=h,I.t=g,I.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 Je({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:E,copyType:l,copyInterval:I,defaultShift:p,templateStr:k,useDefaultEndDate:Q}=c.custom;let S=0;switch(y){case"day":{let o="";if(h&&(o=J(i[0],E,"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?S=H(o,i[0],"day"):(S=H(i[0],i[1],"day"),console.log("copyNum",S));for(let m=0;m<=Math.abs(S===0?1:S);m++){const u=m*(I+1);let M="";h?M=Z(o,"day",m,g):M=Z(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}S=H(i[0],i[1],"month");for(let o=0;o<=Math.abs(S===0?1:S);o++){const m=o*(I+1),u=l==="right"?s:s+m,M=l==="right"?r+m:r,P=Y(t,u,M);P.v=Z(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],E||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?S=H(o,i[0],"year"):S=H(i[0],i[1],"year");for(let m=0;m<=Math.abs(S===0?1:S);m++){const u=m*(I+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=Z(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}S=H(i[0],i[1],"hour");for(let o=0;o<=Math.abs(S===0?1:S);o++){const m=o*(I+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=Z(V,"hour",o,g);continue}P.v=Z(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*(I+1),V=l==="right"?s:z(s).add(P).toNumber(),B=l==="right"?z(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 Ke(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,E]=g;for(const[l,I]of Object.entries(E)){const{custom:p}=I;if(!p)continue;const{cellType:k,cycleType:Q,timeIncrement:S,forwardPush:o,forwardPushTimes:m,copyType:u,copyInterval:M,defaultShift:P,useDefaultStartDate:V,useDefaultEndDate:B}=p;if(k==="time"){Je({acc:y,params:n,initRowNum:Number(h),initColNum:Number(l),cellData:I});continue}const w={cycleType:Q,indicatorName:p.indicatorName,indicatorCode:p.indicatorCode,indicatorId:p.indicatorId,indicatorDimensionName:p.indicatorDimensionName,indicatorDimensionConfig:p.indicatorDimensionConfig,required:Ze(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],[D,j]=N(...U(C,"day",0,1),p?.innerSyncWay),T=Y(y,h,l);T.s="tor-indicator-cell-style",T.custom={...w,startTime:D,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 D=C*(M+1),j=o?f:r[0],[T,R]=N(...U(j,"day",C,S),p?.innerSyncWay),q=u==="right"?h:z(h).add(D).toNumber(),$=u==="right"?z(l).add(D).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),D=Y(y,h,l);D.s="tor-indicator-cell-style",D.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),D=u==="right"?h:z(h).add(C).toNumber(),j=u==="right"?z(l).add(C).toNumber():l,[T,R]=U(r[0],"month",f,S),q=Y(y,D,j);q.s="tor-indicator-cell-style",q.custom={...w,startTime:T,endTime:R}}break}case"year":{let f="",C="",D="";if(o){f=J(r[0],m||0,"year");const j=v(r[1]).format("MM");C=v(`${f}-${j+1}`).format("YYYY-MM"),D=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(D,"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:z(h).add(T).toNumber(),q=u==="right"?z(l).add(T).toNumber():l,[$,A]=U(r[0],"year",j,S),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,D]=U(f,"hour",1,1),j=Y(y,h,l);j.s="tor-indicator-cell-style",j.custom={...w,startTime:C,endTime:D};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),D=u==="right"?h:z(h).add(C).toNumber(),j=u==="right"?z(l).add(C).toNumber():l,T=Y(y,D,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,et]=U(A,"hour",f,S);T.custom={...w,startTime:K,endTime:et};continue}const R=v(b).add(1,"hour").format("YYYY-MM-DD HH:mm:ss"),[q,$]=U(R,"hour",f,S);T.custom={...w,startTime:q,endTime:$}}break}case"shift":{if(!u){const[f,C]=r,D=Y(y,h,l);D.s="tor-indicator-cell-style",D.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:D,endDatetime:j}=C,T=f*(M+1),R=u==="right"?h:z(h).add(T).toNumber(),q=u==="right"?z(l).add(T).toNumber():l,$=Y(y,R,q);$.s="tor-indicator-cell-style",$.custom={...w,startTime:D,endTime:j}}break}}}return y},{});return Promise.resolve(a)}function _e(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 Qe(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 Xe(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 xe="./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,"UniverSheetsAdvancedPreset",{enumerable:!0,get:()=>ie.UniverSheetsAdvancedPreset}),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,"UniverSheetsCollaborationPreset",{enumerable:!0,get:()=>be.UniverSheetsCollaborationPreset}),Object.defineProperty(e,"UniverWatermarkPlugin",{enumerable:!0,get:()=>ge.UniverWatermarkPlugin}),Object.defineProperty(e,"UniverSheetsCrosshairHighlightPlugin",{enumerable:!0,get:()=>Ce.UniverSheetsCrosshairHighlightPlugin}),Object.defineProperty(e,"UniverLiveSharePlugin",{enumerable:!0,get:()=>pe.UniverLiveSharePlugin}),e.zhCN=Pe,e.UniverPresetSheetsAdvancedZhCN=je,e.sheetsConditionalFormattingZhCN=Ye,e.sheetsCoreZhCN=Se,e.UniverPresetSheetsDrawingZhCN=De,e.sheetsFilterZhCN=Ne,e.UniverPresetSheetsHyperLinkZhCN=Me,e.UniverPresetSheetsNoteZhCN=we,e.UniverPresetSheetsFilterZhCN=Te,e.UniverPresetSheetsSortZhCN=Oe,e.UniverPresetSheetsDataValidationZhCN=Ue,e.UniverPresetSheetsFindReplaceZhCN=ke,e.UniverPresetSheetsThreadCommentZhCN=ze,e.UniverPresetSheetsTableZhCN=Ie,e.UniverPresetSheetsCollaborationZhCN=qe,e.CycleTypeEnum=te,e.ModeEnum=re,e.decimal=z,e.filterIndicatorsCell=We,e.filterMergedIndicatorCells=Xe,e.generateIndicatorsCells=Ke,e.generateUUID=x,e.getNumColumns=_e,e.handleClearInput=He,e.initDateRange=Le,e.mergeCellData=Qe,e.stylePath=xe,e.useData=Re,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"})}));
@@ -40,9 +40,8 @@ import { default as sheetsFilterZhCN } from '@univerjs/preset-sheets-filter/loca
40
40
  import { touchDependencies } from '@univerjs/presets';
41
41
  import { Univer } from '@univerjs/presets';
42
42
  import { UniverInstanceType } from '@univerjs/presets';
43
- import { UniverLiveSharePlugin } from '@univerjs-pro/live-share';
43
+ import { UniverLicensePlugin } from '@univerjs-pro/license';
44
44
  import { default as UniverPresetSheetsAdvancedZhCN } from '@univerjs/preset-sheets-advanced/locales/zh-CN';
45
- import { default as UniverPresetSheetsCollaborationZhCN } from '@univerjs/preset-sheets-collaboration/locales/zh-CN';
46
45
  import { default as UniverPresetSheetsDataValidationZhCN } from '@univerjs/preset-sheets-data-validation/locales/zh-CN';
47
46
  import { default as UniverPresetSheetsDrawingZhCN } from '@univerjs/preset-sheets-drawing/locales/zh-CN';
48
47
  import { default as UniverPresetSheetsFilterZhCN } from '@univerjs/presets/preset-sheets-filter/locales/zh-CN';
@@ -53,7 +52,6 @@ import { default as UniverPresetSheetsSortZhCN } from '@univerjs/preset-sheets-s
53
52
  import { default as UniverPresetSheetsTableZhCN } from '@univerjs/preset-sheets-table/locales/zh-CN';
54
53
  import { default as UniverPresetSheetsThreadCommentZhCN } from '@univerjs/preset-sheets-thread-comment/locales/zh-CN';
55
54
  import { UniverSheetsAdvancedPreset } from '@univerjs/preset-sheets-advanced';
56
- import { UniverSheetsCollaborationPreset } from '@univerjs/preset-sheets-collaboration';
57
55
  import { UniverSheetsConditionalFormattingPreset } from '@univerjs/preset-sheets-conditional-formatting';
58
56
  import { UniverSheetsCorePreset } from '@univerjs/presets/preset-sheets-core';
59
57
  import { UniverSheetsCrosshairHighlightPlugin } from '@univerjs/sheets-crosshair-highlight';
@@ -276,12 +274,10 @@ export { Univer }
276
274
 
277
275
  export { UniverInstanceType }
278
276
 
279
- export { UniverLiveSharePlugin }
277
+ export { UniverLicensePlugin }
280
278
 
281
279
  export { UniverPresetSheetsAdvancedZhCN }
282
280
 
283
- export { UniverPresetSheetsCollaborationZhCN }
284
-
285
281
  export { UniverPresetSheetsDataValidationZhCN }
286
282
 
287
283
  export { UniverPresetSheetsDrawingZhCN }
@@ -302,8 +298,6 @@ export { UniverPresetSheetsThreadCommentZhCN }
302
298
 
303
299
  export { UniverSheetsAdvancedPreset }
304
300
 
305
- export { UniverSheetsCollaborationPreset }
306
-
307
301
  export { UniverSheetsConditionalFormattingPreset }
308
302
 
309
303
  export { UniverSheetsCorePreset }
@@ -24,9 +24,6 @@
24
24
  /* === node_modules/@univerjs/preset-sheets-drawing/lib/index.css === */
25
25
  .univer-relative{position:relative}.univer-mt-2\.5{margin-top:.625rem}.univer-box-border{box-sizing:border-box}.univer-size-4{width:1rem;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-6{width:1.5rem}.univer-w-full{width:100%}.univer-w-px{width:1px}.univer-min-w-32{min-width:8rem}.univer-min-w-9{min-width:2.25rem}.univer-flex-1{flex:1}.univer-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.univer-grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.univer-items-center{align-items:center}.univer-justify-center{justify-content:center}.univer-gap-1{gap:.25rem}.univer-rounded{border-radius:.25rem}.univer-rounded-lg{border-radius:.5rem}.univer-rounded-md{border-radius:.375rem}.univer-border{border-width:1px}.univer-border-solid{border-style:solid}.univer-border-none{border-style:none}.\!univer-bg-gray-800{background-color:var(--univer-gray-800)!important}.\!univer-bg-gray-900{background-color:var(--univer-gray-900)!important}.univer-bg-gray-100{background-color:var(--univer-gray-100)}.univer-bg-gray-200{background-color:var(--univer-gray-200)}.univer-bg-primary-50{background-color:var(--univer-primary-50)}.univer-bg-transparent{background-color:#0000}.univer-bg-white{background-color:var(--univer-white)}.univer-fill-primary-600{fill:var(--univer-primary-600)}.univer-p-0{padding:0}.univer-p-1{padding:.25rem}.univer-px-1{padding-left:.25rem;padding-right:.25rem}.univer-px-1\.5{padding-left:.375rem;padding-right:.375rem}.univer-px-2{padding-left:.5rem;padding-right:.5rem}.univer-py-1{padding-top:.25rem;padding-bottom:.25rem}.univer-text-left{text-align:left}.univer-text-center{text-align:center}.\!univer-text-primary-300{color:var(--univer-primary-300)!important}.univer-text-gray-700{color:var(--univer-gray-700)}.univer-text-gray-900{color:var(--univer-gray-900)}.univer-text-primary-600{color:var(--univer-primary-600)}.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)}.univer-shadow-sm{--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)}.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)}.hover\:univer-bg-gray-100:hover{background-color:var(--univer-gray-100)}.disabled\:univer-cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:univer-opacity-40:disabled{opacity:.4}.dark\:\!univer-border-gray-700:where(.univer-dark,.univer-dark *){border-color:var(--univer-gray-700)!important}.dark\:\!univer-bg-gray-700:where(.univer-dark,.univer-dark *){background-color:var(--univer-gray-700)!important}.dark\:\!univer-bg-gray-800:where(.univer-dark,.univer-dark *){background-color:var(--univer-gray-800)!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-primary-300:where(.univer-dark,.univer-dark *){color:var(--univer-primary-300)!important}.dark\:\!univer-text-white:where(.univer-dark,.univer-dark *){color:var(--univer-white)!important}.dark\:hover\:\!univer-bg-gray-700:hover:where(.univer-dark,.univer-dark *){background-color:var(--univer-gray-700)!important}.dark\:hover\:\!univer-bg-gray-800:hover:where(.univer-dark,.univer-dark *){background-color:var(--univer-gray-800)!important}.\[\&\>div\]\:univer-grid>div{display:grid}.\[\&\>div\]\:univer-gap-2>div{gap:.5rem}.univer-flex{display:flex}.univer-grid{display:grid}.univer-hidden{display:none}.univer-flex-col{flex-direction:column}.univer-justify-end{justify-content:flex-end}.univer-gap-2{gap:.5rem}.univer-border-t{border-top-width:1px}.univer-border-gray-200{border-color:var(--univer-gray-200)}.univer-py-2{padding-top:.5rem;padding-bottom:.5rem}.univer-pt-3{padding-top:.75rem}.univer-text-sm{font-size:.875rem;line-height:1.25rem}.univer-text-xs{font-size:.75rem;line-height:1rem}.univer-text-gray-400{color:var(--univer-gray-400)}.univer-text-gray-600{color:var(--univer-gray-600)}.univer-text-red-500{color:var(--univer-red-500)}.dark\:\!univer-text-gray-200:where(.univer-dark,.univer-dark *){color:var(--univer-gray-200)!important}
26
26
 
27
- /* === node_modules/@univerjs/preset-sheets-advanced/lib/index.css === */
28
- .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)}
29
-
30
27
  /* === node_modules/@univerjs/preset-sheets-find-replace/lib/index.css === */
31
28
  .univer-relative{position:relative}.univer-mt-4{margin-top:1rem}.univer-mt-6{margin-top:1.5rem}.univer-flex{display:flex}.univer-inline-flex{display:inline-flex}.univer-cursor-pointer{cursor:pointer}.univer-items-center{align-items:center}.univer-justify-between{justify-content:space-between}.univer-gap-2{gap:.5rem}.univer-text-center{text-align:center}.univer-text-sm{font-size:.875rem;line-height:1.25rem}.univer-text-primary-500{color:var(--univer-primary-500)}.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)}
32
29
 
@@ -103,87 +100,5 @@
103
100
  --univer-tw-ring-color: var(--univer-primary-600);
104
101
  }
105
102
 
106
- /* === node_modules/@univerjs/preset-sheets-collaboration/lib/index.css === */
107
- .univer-m-0{margin:0}.univer-inline-flex{display:inline-flex}.univer-w-8{width:2rem}@keyframes univer-pulse{50%{opacity:.5}}.univer-animate-pulse{animation:2s cubic-bezier(.4,0,.6,1) infinite univer-pulse}.univer-appearance-none{-webkit-appearance:none;appearance:none}.univer-gap-4{gap:1rem}.univer-rounded-lg{border-radius:.5rem}.univer-border-none{border-style:none}.univer-bg-gray-700{background-color:var(--univer-gray-700)}.univer-bg-primary-500{background-color:var(--univer-primary-500)}.univer-bg-transparent{background-color:#0000}.univer-p-0{padding:0}.univer-text-xl{font-size:1.25rem;line-height:1.75rem}.univer-text-blue-500{color:var(--univer-blue-500)}.univer-text-green-500{color:var(--univer-green-500)}.univer-text-orange-500{color:var(--univer-orange-500)}.univer-text-red-500{color:var(--univer-red-500)}.univer-text-white{color:var(--univer-white)}.univer-transition-all{transition-property:all;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.univer-duration-200{transition-duration:.2s}.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-500:focus{--univer-tw-ring-color: var(--univer-primary-500)}.focus\:univer-ring-offset-2:focus{--univer-tw-ring-offset-width: 2px}.dark\:hover\:univer-bg-gray-700:hover:where(.univer-dark,.univer-dark *){background-color:var(--univer-gray-700)}.dark\:focus\:univer-ring-offset-gray-800:focus:where(.univer-dark,.univer-dark *){--univer-tw-ring-offset-color: var(--univer-gray-800)}.univer-pointer-events-none{pointer-events:none}.univer-pointer-events-auto{pointer-events:auto}.univer-absolute{position:absolute}.univer-relative{position:relative}.univer-sticky{position:sticky}.univer-inset-0{top:0;bottom:0;left:0;right:0}.univer-top-0{top:0}.univer-top-1\/2{top:50%}.univer-z-10{z-index:10}.univer-m-auto{margin:auto}.univer-mb-0\.5{margin-bottom:.125rem}.univer-mb-3{margin-bottom:.75rem}.univer-ml-1{margin-left:.25rem}.univer-ml-2\.5{margin-left:.625rem}.univer-ml-6{margin-left:1.5rem}.univer-mt-1{margin-top:.25rem}.univer-flex{display:flex}.univer-size-4{width:1rem;height:1rem}.univer-size-5{width:1.25rem;height:1.25rem}.univer-size-6{width:1.5rem;height:1.5rem}.univer-size-8{width:2rem;height:2rem}.univer-h-1{height:.25rem}.univer-h-12{height:3rem}.univer-h-6{height:1.5rem}.univer-h-8{height:2rem}.univer-h-\[60\%\]{height:60%}.univer-h-\[calc\(100\%-32px\)\]{height:calc(100% - 32px)}.univer-h-full{height:100%}.univer-max-h-\[300px\]{max-height:300px}.univer-min-h-6{min-height:1.5rem}.univer-w-10{width:2.5rem}.univer-w-\[calc\(100\%-16px\)\]{width:calc(100% - 16px)}.univer-w-full{width:100%}.univer-min-w-0{min-width:0}.univer-min-w-\[240px\]{min-width:240px}.univer-flex-1{flex:1}.univer-flex-shrink-0,.univer-shrink-0{flex-shrink:0}@keyframes univer-spin{to{transform:rotate(360deg)}}.univer-animate-spin{animation:1s linear infinite univer-spin}.univer-cursor-default{cursor:default}.univer-cursor-pointer{cursor:pointer}.univer-flex-col{flex-direction:column}.univer-items-center{align-items:center}.univer-justify-end{justify-content:flex-end}.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-2\.5{gap:.625rem}.univer-gap-3{gap:.75rem}.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-auto{overflow:auto}.univer-overflow-y-auto{overflow-y:auto}.univer-truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.univer-break-all{word-break:break-all}.univer-rounded{border-radius:.25rem}.univer-rounded-full{border-radius:9999px}.univer-rounded-md{border-radius:.375rem}.univer-rounded-t-2xl{border-top-left-radius:1rem;border-top-right-radius:1rem}.univer-border{border-width:1px}.univer-border-b{border-bottom-width:1px}.univer-border-t{border-top-width:1px}.univer-border-gray-100{border-color:var(--univer-gray-100)}.univer-border-gray-200{border-color:var(--univer-gray-200)}.univer-border-primary-600{border-color:var(--univer-primary-600)}.\!univer-bg-gray-900{background-color:var(--univer-gray-900)!important}.univer-bg-blue-50{background-color:var(--univer-blue-50)}.univer-bg-gray-100{background-color:var(--univer-gray-100)}.univer-bg-gray-300{background-color:var(--univer-gray-300)}.univer-bg-gray-50{background-color:var(--univer-gray-50)}.univer-bg-primary-50{background-color:var(--univer-primary-50)}.univer-bg-white{background-color:var(--univer-white)}.univer-p-1{padding:.25rem}.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-px-3{padding-left:.75rem;padding-right:.75rem}.univer-px-4{padding-left:1rem;padding-right:1rem}.univer-py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.univer-py-1{padding-top:.25rem;padding-bottom:.25rem}.univer-py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.univer-py-2{padding-top:.5rem;padding-bottom:.5rem}.univer-py-3{padding-top:.75rem;padding-bottom:.75rem}.univer-py-4{padding-top:1rem;padding-bottom:1rem}.univer-pb-4{padding-bottom:1rem}.univer-pt-1\.5{padding-top:.375rem}.univer-text-center{text-align:center}.univer-text-2xl{font-size:1.5rem;line-height:2rem}.univer-text-sm{font-size:.875rem;line-height:1.25rem}.univer-text-xs{font-size:.75rem;line-height:1rem}.univer-font-medium{font-weight:500}.univer-font-semibold{font-weight:600}.univer-leading-5{line-height:1.25rem}.\!univer-text-blue-400{color:var(--univer-blue-400)!important}.univer-text-blue-600{color:var(--univer-blue-600)}.univer-text-gray-400{color:var(--univer-gray-400)}.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-gray-800{color:var(--univer-gray-800)}.univer-text-primary-600{color:var(--univer-primary-600)}.univer-shadow-\[0_-4px_24px_rgba\(0\,0\,0\,0\.12\)\]{--univer-tw-shadow: 0 -4px 24px #0000001f;--univer-tw-shadow-colored: 0 -4px 24px var(--univer-tw-shadow-color);box-shadow:0 0 #0000,0 0 #0000,0 -4px 24px #0000001f;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-\[height\]{transition-property:height;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.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-duration-300{transition-duration:.3s}.hover\:univer-bg-gray-100:hover{background-color:var(--univer-gray-100)}.dark\:\!univer-border-gray-700:where(.univer-dark,.univer-dark *){border-color:var(--univer-gray-700)!important}.dark\:\!univer-border-gray-800:where(.univer-dark,.univer-dark *){border-color:var(--univer-gray-800)!important}.dark\:\!univer-bg-gray-200:where(.univer-dark,.univer-dark *){background-color:var(--univer-gray-200)!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-bg-gray-900:where(.univer-dark,.univer-dark *){background-color:var(--univer-gray-900)!important}.dark\:\!univer-bg-gray-950:where(.univer-dark,.univer-dark *){--univer-tw-bg-opacity: 1 !important;background-color:#030712!important;background-color:rgba(3,7,18,var(--univer-tw-bg-opacity, 1))!important}.dark\:\!univer-bg-transparent:where(.univer-dark,.univer-dark *){background-color:#0000!important}.dark\:\!univer-text-blue-400:where(.univer-dark,.univer-dark *){color:var(--univer-blue-400)!important}.dark\:\!univer-text-gray-200:where(.univer-dark,.univer-dark *){color:var(--univer-gray-200)!important}.dark\:\!univer-text-gray-300:where(.univer-dark,.univer-dark *){color:var(--univer-gray-300)!important}.dark\:\!univer-text-gray-400:where(.univer-dark,.univer-dark *){color:var(--univer-gray-400)!important}.dark\:\!univer-text-white:where(.univer-dark,.univer-dark *){color:var(--univer-white)!important}.dark\:hover\:\!univer-bg-gray-700:hover:where(.univer-dark,.univer-dark *){background-color:var(--univer-gray-700)!important}.dark\:hover\:\!univer-bg-gray-800:hover:where(.univer-dark,.univer-dark *){background-color:var(--univer-gray-800)!important}
108
-
109
- /* === node_modules/@univerjs-pro/live-share/lib/index.css === */
110
- .univer-mb-3 {
111
- margin-bottom: .75rem;
112
- }
113
-
114
- .univer-box-border {
115
- box-sizing: border-box;
116
- }
117
-
118
- .univer-size-4 {
119
- width: 1rem;
120
- height: 1rem;
121
- }
122
-
123
- .univer-w-full {
124
- width: 100%;
125
- }
126
-
127
- .univer-min-w-60 {
128
- min-width: 15rem;
129
- }
130
-
131
- .univer-cursor-not-allowed {
132
- cursor: not-allowed;
133
- }
134
-
135
- .univer-cursor-pointer {
136
- cursor: pointer;
137
- }
138
-
139
- .univer-border-none {
140
- border-style: none;
141
- }
142
-
143
- .univer-bg-gray-400 {
144
- background-color: var(--univer-gray-400);
145
- }
146
-
147
- .univer-bg-gray-900 {
148
- background-color: var(--univer-gray-900);
149
- }
150
-
151
- .univer-px-4 {
152
- padding-left: 1rem;
153
- padding-right: 1rem;
154
- }
155
-
156
- .univer-py-3 {
157
- padding-top: .75rem;
158
- padding-bottom: .75rem;
159
- }
160
-
161
- .univer-text-sm {
162
- font-size: .875rem;
163
- line-height: 1.25rem;
164
- }
165
-
166
- .univer-text-gray-600 {
167
- color: var(--univer-gray-600);
168
- }
169
-
170
- .univer-text-gray-900 {
171
- color: var(--univer-gray-900);
172
- }
173
-
174
- .univer-outline-none {
175
- outline-offset: 2px;
176
- outline: 2px solid #0000;
177
- }
178
-
179
- .hover\:univer-bg-gray-400:hover {
180
- background-color: var(--univer-gray-400);
181
- }
182
-
183
- .dark\:\!univer-bg-white:where(.univer-dark, .univer-dark *) {
184
- background-color: var(--univer-white) !important;
185
- }
186
-
187
- .dark\:\!univer-text-white:where(.univer-dark, .univer-dark *) {
188
- color: var(--univer-white) !important;
189
- }
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.7",
3
+ "version": "1.2.9",
4
4
  "style": "./dist/style.css",
5
5
  "description": "基于 Univer 的 Vue3 电子表格组件",
6
6
  "author": "tortormore",
@@ -39,14 +39,13 @@
39
39
  "vue": "^3.5.0"
40
40
  },
41
41
  "dependencies": {
42
- "@univerjs-pro/live-share": "^0.25.1",
42
+ "@univerjs-pro/license": "^0.25.1",
43
43
  "@univerjs/core": "^0.25.1",
44
- "@univerjs/preset-sheets-advanced": "^0.25.1",
45
- "@univerjs/preset-sheets-collaboration": "^0.25.1",
46
44
  "@univerjs/preset-sheets-conditional-formatting": "^0.25.1",
47
45
  "@univerjs/preset-sheets-core": "^0.25.1",
48
46
  "@univerjs/preset-sheets-data-validation": "^0.25.1",
49
47
  "@univerjs/preset-sheets-drawing": "^0.25.1",
48
+ "@univerjs/preset-sheets-advanced": "^0.25.1",
50
49
  "@univerjs/preset-sheets-filter": "^0.25.1",
51
50
  "@univerjs/preset-sheets-find-replace": "^0.25.1",
52
51
  "@univerjs/preset-sheets-hyper-link": "^0.25.1",