tor-univer-sheet 1.2.7 → 1.2.8

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";
3
- import { BaselineOffset as Ge, CommandService as $e } from "@univerjs/core";
1
+ import { CellValueType as Z } from "@univerjs/presets";
2
+ import { CommandType as ve, FEventName as Se, FUniver as Te, ICommandService as Ce, IUniverInstanceService as Ne, Inject as Pe, Injector as ke, LocaleType as Ue, Plugin as Oe, Univer as Ie, UniverInstanceType as je, Workbook as He, createUniver as Re, defaultTheme as Be, greenTheme as Fe, merge as Ze, mergeLocales as Ve, touchDependencies as Ee } from "@univerjs/presets";
3
+ import { BaselineOffset as $e, CommandService as Ae } from "@univerjs/core";
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,23 @@ 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";
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";
19
+ import { UniverWatermarkPlugin as Ct } from "@univerjs/watermark";
20
+ import { UniverSheetsCrosshairHighlightPlugin as Pt } from "@univerjs/sheets-crosshair-highlight";
21
+ import { default as Ut } from "@univerjs/preset-sheets-core/locales/zh-CN";
22
+ import { default as It } from "@univerjs/presets/preset-sheets-conditional-formatting/locales/zh-CN";
23
+ import { default as Ht } from "@univerjs/presets/preset-sheets-core/locales/zh-CN";
24
+ import { default as Bt } from "@univerjs/preset-sheets-drawing/locales/zh-CN";
25
+ import { default as Zt } from "@univerjs/preset-sheets-filter/locales/zh-CN";
26
+ import { default as Et } from "@univerjs/preset-sheets-hyper-link/locales/zh-CN";
27
+ import { default as $t } from "@univerjs/preset-sheets-note/locales/zh-CN";
28
+ import { default as Lt } from "@univerjs/presets/preset-sheets-filter/locales/zh-CN";
29
+ import { default as Wt } from "@univerjs/preset-sheets-sort/locales/zh-CN";
30
+ import { default as zt } from "@univerjs/preset-sheets-data-validation/locales/zh-CN";
31
+ import { default as _t } from "@univerjs/preset-sheets-find-replace/locales/zh-CN";
32
+ import { default as Xt } from "@univerjs/preset-sheets-thread-comment/locales/zh-CN";
33
+ import { default as tr } from "@univerjs/preset-sheets-table/locales/zh-CN";
38
34
  import d from "dayjs";
39
35
  import z from "decimal.js";
40
36
  const de = (e, r) => {
@@ -160,8 +156,8 @@ async function ye(e, r) {
160
156
  const y = d(r);
161
157
  if (!y.isValid())
162
158
  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]);
159
+ const v = y.startOf("month").format("YYYY-MM-DD"), a = y.endOf("month").format("YYYY-MM-DD");
160
+ return Promise.resolve([v, a]);
165
161
  case "day":
166
162
  if (q(r))
167
163
  return Promise.resolve(r);
@@ -189,15 +185,15 @@ function W(e, r, o) {
189
185
  return d(e).subtract(r, o).format(t);
190
186
  }
191
187
  function P(e, r, o, t) {
192
- const c = "YYYY-MM-DD HH:mm:ss", n = G(e, r, o, t), y = d(n);
188
+ const c = "YYYY-MM-DD HH:mm:ss", n = $(e, r, o, t), y = d(n);
193
189
  if (r === "month") {
194
190
  const a = y.month();
195
191
  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
192
  }
197
- const w = { year: "year", day: "day", hour: "hour" };
198
- return [y.startOf(w[r]).format(c), y.endOf(w[r]).format(c)];
193
+ const v = { year: "year", day: "day", hour: "hour" };
194
+ return [y.startOf(v[r]).format(c), y.endOf(v[r]).format(c)];
199
195
  }
200
- function G(e, r, o, t) {
196
+ function $(e, r, o, t) {
201
197
  const c = {
202
198
  year: "YYYY",
203
199
  month: "YYYY-MM",
@@ -206,7 +202,7 @@ function G(e, r, o, t) {
206
202
  }[r];
207
203
  return d(e, c).add(o * t, r).format(c);
208
204
  }
209
- function v(e, r, o) {
205
+ function w(e, r, o) {
210
206
  return e[r] || (e[r] = {}), e[r][o] || (e[r][o] = {}), e[r][o];
211
207
  }
212
208
  async function Ye(e) {
@@ -214,13 +210,13 @@ async function Ye(e) {
214
210
  throw new Error("cellData is required");
215
211
  const r = Object.entries(e).reduce((o, t) => {
216
212
  const [c, n] = t;
217
- for (const [y, w] of Object.entries(n)) {
218
- const { custom: a, v: h, t: Y, s: f } = w;
213
+ for (const [y, v] of Object.entries(n)) {
214
+ const { custom: a, v: h, t: Y, s: f } = v;
219
215
  if (!a) continue;
220
- const { cellType: E } = a, l = !a.hasOwnProperty("writeBack") || V(a?.writeBack) ? !0 : a.writeBack;
221
- if (E === "indicator") {
222
- const k = v(o, c, y);
223
- k.custom = {
216
+ const { cellType: G } = a, l = !a.hasOwnProperty("writeBack") || V(a?.writeBack) ? !0 : a.writeBack;
217
+ if (G === "indicator") {
218
+ const U = w(o, c, y);
219
+ U.custom = {
224
220
  ...a,
225
221
  required: V(a?.required) ? !1 : a?.required,
226
222
  defaultShift: V(a?.defaultShift) ? !1 : a?.defaultShift,
@@ -229,14 +225,14 @@ async function Ye(e) {
229
225
  useDefaultEndDate: V(a?.useDefaultEndDate) ? !1 : a?.useDefaultEndDate,
230
226
  copyType: V(a?.copyType) ? "" : a?.copyType,
231
227
  writeBack: l
232
- }, k.s = f, k.t = Y, k.v = h || "";
228
+ }, U.s = f, U.t = Y, U.v = h || "";
233
229
  }
234
230
  }
235
231
  return o;
236
232
  }, {});
237
233
  return !r || V(r) ? Promise.reject(new Error("No data found")) : Promise.resolve(r);
238
234
  }
239
- function $(e, r) {
235
+ function A(e, r) {
240
236
  return e.replace(/\$\{([^}]+)\}/g, (o, t) => {
241
237
  try {
242
238
  const c = Object.keys(r), n = Object.values(r);
@@ -253,21 +249,21 @@ function le({
253
249
  initColNum: t,
254
250
  cellData: c
255
251
  }) {
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;
252
+ const { rangeData: n, currentDay: y, extraArgs: v } = r, a = v?.teamData || {}, { cycleType: h, timeIncrement: Y, forwardPush: f, forwardPushTimes: G, copyType: l, copyInterval: U, defaultShift: D, templateStr: k, useDefaultEndDate: J } = c.custom;
257
253
  let x = 0;
258
254
  switch (h) {
259
255
  case "day": {
260
256
  let s = "";
261
257
  if (f && (s = W(
262
258
  n[0],
263
- E,
259
+ G,
264
260
  "day"
265
261
  /* day */
266
262
  )), !l) {
267
263
  let u = "";
268
264
  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";
265
+ const i = w(e, o, t);
266
+ i.v = k ? A(k, { businessDate: u, dayjs: d }) : d(u).format("YYYY-MM-DD"), i.t = Z.STRING, i.s = "tor-time-cell-style";
271
267
  break;
272
268
  }
273
269
  f ? x = j(
@@ -282,18 +278,18 @@ function le({
282
278
  /* day */
283
279
  ), console.log("copyNum", x));
284
280
  for (let u = 0; u <= Math.abs(x === 0 ? 1 : x); u++) {
285
- const i = u * (k + 1);
281
+ const i = u * (U + 1);
286
282
  let S = "";
287
- 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";
283
+ f ? S = $(s, "day", u, Y) : S = $(n[0], "day", u, Y);
284
+ const p = l === "right" ? o : o + i, R = l === "right" ? t + i : t, F = w(e, p, R);
285
+ F.v = k ? A(k, { businessDate: S, dayjs: d }) : d(S).format("YYYY-MM-DD"), F.t = Z.STRING, F.s = "tor-time-cell-style";
290
286
  }
291
287
  break;
292
288
  }
293
289
  case "month": {
294
290
  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";
291
+ const [s, u] = P(n[1], "month", 0, 1), i = w(e, o, t);
292
+ i.v = d(u).format("YYYY-MM"), i.t = Z.STRING, i.s = "tor-time-cell-style";
297
293
  break;
298
294
  }
299
295
  x = j(
@@ -303,8 +299,8 @@ function le({
303
299
  /* month */
304
300
  );
305
301
  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";
302
+ const u = s * (U + 1), i = l === "right" ? o : o + u, S = l === "right" ? t + u : t, p = w(e, i, S);
303
+ p.v = $(n[0], "month", s, Y), p.t = Z.STRING, p.s = "tor-time-cell-style";
308
304
  }
309
305
  break;
310
306
  }
@@ -312,17 +308,17 @@ function le({
312
308
  let s = "";
313
309
  if (f && (s = W(
314
310
  n[0],
315
- E || 0,
311
+ G || 0,
316
312
  "year"
317
313
  /* year */
318
314
  )), !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, {
315
+ const u = f ? s : n[0], [i, S] = P(u, "year", 0, 1), p = w(e, o, t), [, R] = P(n[1], "month", 0, 1);
316
+ p.v = k ? A(k, {
321
317
  startTime: i,
322
318
  endTime: S,
323
319
  rangeData: n,
324
320
  dayjs: d
325
- }) : u, p.t = F.STRING, p.s = "tor-time-cell-style";
321
+ }) : u, p.t = Z.STRING, p.s = "tor-time-cell-style";
326
322
  break;
327
323
  }
328
324
  f ? x = j(
@@ -337,20 +333,20 @@ function le({
337
333
  /* year */
338
334
  );
339
335
  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, {
336
+ const i = u * (U + 1), S = l === "right" ? o : o + i, p = l === "right" ? t + i : t, [R, F] = P(n[0], "year", u, Y), T = w(e, S, p), N = $(n[0], "year", u, Y);
337
+ T.v = k ? A(k, {
342
338
  startTime: R,
343
- endTime: Z,
339
+ endTime: F,
344
340
  rangeData: n,
345
341
  dayjs: d
346
- }) : N, C.t = F.STRING, C.s = "tor-time-cell-style";
342
+ }) : N, T.t = Z.STRING, T.s = "tor-time-cell-style";
347
343
  }
348
344
  break;
349
345
  }
350
346
  case "hour": {
351
347
  if (!l) {
352
- const s = v(e, o, t);
353
- if (s.t = F.STRING, s.s = "tor-time-cell-style", D) {
348
+ const s = w(e, o, t);
349
+ if (s.t = Z.STRING, s.s = "tor-time-cell-style", D) {
354
350
  s.v = d(n[0]).add(1, "hour").format("YYYY-MM-DD HH:mm:ss");
355
351
  break;
356
352
  }
@@ -364,20 +360,20 @@ function le({
364
360
  /* hour */
365
361
  );
366
362
  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) {
363
+ const u = s * (U + 1), i = l === "right" ? o : o + u, S = l === "right" ? t + u : t, p = w(e, i, S);
364
+ if (p.t = Z.STRING, p.s = "tor-time-cell-style", D) {
369
365
  const R = d(n[0]).add(1, "hour").format("YYYY-MM-DD HH:mm:ss");
370
- p.v = G(R, "hour", s, Y);
366
+ p.v = $(R, "hour", s, Y);
371
367
  continue;
372
368
  }
373
- p.v = G(d(y).add(1, "hour").format("YYYY-MM-DD HH:mm:ss"), "hour", s, Y);
369
+ p.v = $(d(y).add(1, "hour").format("YYYY-MM-DD HH:mm:ss"), "hour", s, Y);
374
370
  }
375
371
  break;
376
372
  }
377
373
  case "shift": {
378
374
  if (!l) {
379
- const s = v(e, o, t);
380
- s.t = F.STRING, s.s = "tor-time-cell-style", s.v = U ? $(U, {
375
+ const s = w(e, o, t);
376
+ s.t = Z.STRING, s.s = "tor-time-cell-style", s.v = k ? A(k, {
381
377
  rangeData: n,
382
378
  dayjs: d
383
379
  }) : n[0];
@@ -386,8 +382,8 @@ function le({
386
382
  if (!a.length)
387
383
  throw new Error("没有获取到当班数据");
388
384
  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, {
385
+ const u = a[s], { startDatetime: i, endDatetime: S } = u, p = s * (U + 1), R = l === "right" ? o : I(o).add(p).toNumber(), F = l === "right" ? I(t).add(p).toNumber() : t, T = w(e, R, F);
386
+ T.s = "tor-time-cell-style", T.v = k ? A(k, {
391
387
  team: u
392
388
  }) : i;
393
389
  }
@@ -401,19 +397,19 @@ async function ge(e, r) {
401
397
  const { extraArgs: o, rangeData: t } = r;
402
398
  if (!t.length)
403
399
  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 ? [
400
+ 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
401
  d(h).format("YYYY-MM-DD") + " " + n,
406
402
  d(Y).add(1, "day").format("YYYY-MM-DD") + " " + n
407
403
  ] : [
408
404
  d(h).subtract(1, "day").format("YYYY-MM-DD") + " " + n,
409
405
  d(Y).format("YYYY-MM-DD") + " " + n
410
406
  ] : [h, Y], a = Object.entries(e).reduce((h, Y) => {
411
- const [f, E] = Y;
412
- for (const [l, k] of Object.entries(E)) {
413
- const { custom: D } = k;
407
+ const [f, G] = Y;
408
+ for (const [l, U] of Object.entries(G)) {
409
+ const { custom: D } = U;
414
410
  if (!D) continue;
415
411
  const {
416
- cellType: U,
412
+ cellType: k,
417
413
  cycleType: J,
418
414
  timeIncrement: x,
419
415
  forwardPush: s,
@@ -422,13 +418,13 @@ async function ge(e, r) {
422
418
  copyInterval: S,
423
419
  defaultShift: p,
424
420
  useDefaultStartDate: R,
425
- useDefaultEndDate: Z
421
+ useDefaultEndDate: F
426
422
  } = D;
427
- if (U === "time") {
428
- le({ acc: h, params: r, initRowNum: Number(f), initColNum: Number(l), cellData: k });
423
+ if (k === "time") {
424
+ le({ acc: h, params: r, initRowNum: Number(f), initColNum: Number(l), cellData: U });
429
425
  continue;
430
426
  }
431
- const C = {
427
+ const T = {
432
428
  cycleType: J,
433
429
  indicatorName: D.indicatorName,
434
430
  indicatorCode: D.indicatorCode,
@@ -455,12 +451,12 @@ async function ge(e, r) {
455
451
  "day"
456
452
  /* day */
457
453
  )), !i) {
458
- const g = s ? m : t[0], [M, b] = w(
454
+ const g = s ? m : t[0], [M, b] = v(
459
455
  ...P(g, "day", 0, 1),
460
456
  D?.innerSyncWay
461
- ), T = v(h, f, l);
462
- T.s = "tor-indicator-cell-style", T.custom = {
463
- ...C,
457
+ ), C = w(h, f, l);
458
+ C.s = "tor-indicator-cell-style", C.custom = {
459
+ ...T,
464
460
  startTime: M,
465
461
  endTime: b
466
462
  };
@@ -478,13 +474,13 @@ async function ge(e, r) {
478
474
  /* day */
479
475
  );
480
476
  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(
477
+ const M = g * (S + 1), b = s ? m : t[0], [C, H] = v(
482
478
  ...P(b, "day", g, x),
483
479
  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);
485
- A.s = "tor-indicator-cell-style", A.custom = {
486
- ...C,
487
- startTime: T,
480
+ ), O = i === "right" ? f : I(f).add(M).toNumber(), B = i === "right" ? I(l).add(M).toNumber() : l, E = w(h, O, B);
481
+ E.s = "tor-indicator-cell-style", E.custom = {
482
+ ...T,
483
+ startTime: C,
488
484
  endTime: H
489
485
  };
490
486
  }
@@ -492,9 +488,9 @@ async function ge(e, r) {
492
488
  }
493
489
  case "month": {
494
490
  if (!i) {
495
- const [m, g] = P(t[1], "month", 0, 1), M = v(h, f, l);
491
+ const [m, g] = P(t[1], "month", 0, 1), M = w(h, f, l);
496
492
  M.s = "tor-indicator-cell-style", M.custom = {
497
- ...C,
493
+ ...T,
498
494
  startTime: m,
499
495
  endTime: g
500
496
  };
@@ -507,10 +503,10 @@ async function ge(e, r) {
507
503
  /* month */
508
504
  );
509
505
  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);
506
+ 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
507
  O.s = "tor-indicator-cell-style", O.custom = {
512
- ...C,
513
- startTime: T,
508
+ ...T,
509
+ startTime: C,
514
510
  endTime: H
515
511
  };
516
512
  }
@@ -529,13 +525,13 @@ async function ge(e, r) {
529
525
  g = d(`${m}-${b + 1}`).format("YYYY-MM"), M = d(`${m}-${b + 2}`).format("YYYY-MM");
530
526
  }
531
527
  if (!i) {
532
- const b = s ? m : t[0], [T, H] = P(b, "year", 0, 1), O = v(h, f, l);
528
+ const b = s ? m : t[0], [C, H] = P(b, "year", 0, 1), O = w(h, f, l);
533
529
  O.s = "tor-indicator-cell-style";
534
- const [, B] = P(g, "month", 0, 1), [A] = P(M, "month", 0, 1);
530
+ const [, B] = P(g, "month", 0, 1), [E] = P(M, "month", 0, 1);
535
531
  O.custom = {
536
- ...C,
537
- startTime: R ? A : T,
538
- endTime: Z ? B : H
532
+ ...T,
533
+ startTime: R ? E : C,
534
+ endTime: F ? B : H
539
535
  };
540
536
  break;
541
537
  }
@@ -551,20 +547,20 @@ async function ge(e, r) {
551
547
  /* year */
552
548
  );
553
549
  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);
550
+ const C = b * (S + 1), H = i === "right" ? f : I(f).add(C).toNumber(), O = i === "right" ? I(l).add(C).toNumber() : l, [B, E] = P(t[0], "year", b, x), L = w(h, H, O);
555
551
  L.s = "tor-indicator-cell-style", L.custom = {
556
- ...C,
552
+ ...T,
557
553
  startTime: B,
558
- endTime: A
554
+ endTime: E
559
555
  };
560
556
  }
561
557
  break;
562
558
  }
563
559
  case "hour": {
564
560
  if (!i) {
565
- const m = p ? t[0] : t[0] ?? y, [g, M] = P(m, "hour", 1, 1), b = v(h, f, l);
561
+ const m = p ? t[0] : t[0] ?? y, [g, M] = P(m, "hour", 1, 1), b = w(h, f, l);
566
562
  b.s = "tor-indicator-cell-style", b.custom = {
567
- ...C,
563
+ ...T,
568
564
  startTime: g,
569
565
  endTime: M
570
566
  };
@@ -577,19 +573,19 @@ async function ge(e, r) {
577
573
  /* hour */
578
574
  );
579
575
  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) {
582
- 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,
576
+ const g = m * (S + 1), M = i === "right" ? f : I(f).add(g).toNumber(), b = i === "right" ? I(l).add(g).toNumber() : l, C = w(h, M, b);
577
+ if (C.s = "tor-indicator-cell-style", p) {
578
+ const E = d(t[0]).add(1, "hour").format("YYYY-MM-DD HH:mm:ss"), [L, _] = P(E, "hour", m, x);
579
+ C.custom = {
580
+ ...T,
585
581
  startTime: L,
586
582
  endTime: _
587
583
  };
588
584
  continue;
589
585
  }
590
586
  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,
587
+ C.custom = {
588
+ ...T,
593
589
  startTime: O,
594
590
  endTime: B
595
591
  };
@@ -598,9 +594,9 @@ async function ge(e, r) {
598
594
  }
599
595
  case "shift": {
600
596
  if (!i) {
601
- const [m, g] = t, M = v(h, f, l);
597
+ const [m, g] = t, M = w(h, f, l);
602
598
  M.s = "tor-indicator-cell-style", M.custom = {
603
- ...C,
599
+ ...T,
604
600
  startTime: m,
605
601
  endTime: g
606
602
  };
@@ -609,9 +605,9 @@ async function ge(e, r) {
609
605
  if (!c.length)
610
606
  throw new Error("没有获取到当班数据");
611
607
  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);
608
+ 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
609
  B.s = "tor-indicator-cell-style", B.custom = {
614
- ...C,
610
+ ...T,
615
611
  startTime: M,
616
612
  endTime: b
617
613
  };
@@ -635,20 +631,20 @@ function pe(e, r) {
635
631
  for (const [t, c] of Object.entries(r)) {
636
632
  o[t] || (o[t] = {});
637
633
  for (const [n, y] of Object.entries(c)) {
638
- const w = y ?? {}, a = o[t]?.[n];
634
+ const v = y ?? {}, a = o[t]?.[n];
639
635
  if (a) {
640
636
  const h = {
641
637
  ...a,
642
- ...w,
638
+ ...v,
643
639
  custom: {
644
640
  ...a.custom,
645
- ...w.custom
641
+ ...v.custom
646
642
  },
647
- v: w.v || ""
643
+ v: v.v || ""
648
644
  };
649
645
  o[t][n] = h;
650
646
  } else
651
- o[t][n] = w;
647
+ o[t][n] = v;
652
648
  }
653
649
  }
654
650
  return o;
@@ -661,11 +657,11 @@ function be(e, r) {
661
657
  for (const n in c) {
662
658
  const y = c[n];
663
659
  if (y?.custom?.cellType === "indicator") {
664
- const w = Number(t), a = Number(n);
660
+ const v = Number(t), a = Number(n);
665
661
  if (r.some(
666
- (Y) => w >= Y.startRow && w <= Y.endRow && a >= Y.startColumn && a <= Y.endColumn
662
+ (Y) => v >= Y.startRow && v <= Y.endRow && a >= Y.startColumn && a <= Y.endColumn
667
663
  ) && !r.some(
668
- (f) => w === f.startRow && a === f.startColumn
664
+ (f) => v === f.startRow && a === f.startColumn
669
665
  ))
670
666
  continue;
671
667
  }
@@ -676,21 +672,21 @@ function be(e, r) {
676
672
  }
677
673
  const xe = "./style.css";
678
674
  export {
679
- Ge as BaselineOffset,
680
- $e as CommandService,
681
- we as CommandType,
675
+ $e as BaselineOffset,
676
+ Ae as CommandService,
677
+ ve as CommandType,
682
678
  Je as ComponentManager,
683
679
  ze as ContextMenuGroup,
684
680
  Ke as ContextMenuPosition,
685
681
  ie as CycleTypeEnum,
686
682
  Se as FEventName,
687
- Ce as FUniver,
688
- Te as ICommandService,
683
+ Te as FUniver,
684
+ Ce as ICommandService,
689
685
  _e as IMenuManagerService,
690
686
  Ne as IUniverInstanceService,
691
687
  Pe as Inject,
692
- Ue as Injector,
693
- ke as LocaleType,
688
+ ke as Injector,
689
+ Ue as LocaleType,
694
690
  Qe as MenuItemType,
695
691
  ce as ModeEnum,
696
692
  Oe as Plugin,
@@ -698,23 +694,19 @@ export {
698
694
  qe as SetRangeValuesCommand,
699
695
  Ie as Univer,
700
696
  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,
697
+ ot as UniverLicensePlugin,
698
+ zt as UniverPresetSheetsDataValidationZhCN,
699
+ Bt as UniverPresetSheetsDrawingZhCN,
700
+ Lt as UniverPresetSheetsFilterZhCN,
701
+ _t as UniverPresetSheetsFindReplaceZhCN,
702
+ Et as UniverPresetSheetsHyperLinkZhCN,
703
+ $t as UniverPresetSheetsNoteZhCN,
704
+ Wt as UniverPresetSheetsSortZhCN,
705
+ tr as UniverPresetSheetsTableZhCN,
706
+ Xt as UniverPresetSheetsThreadCommentZhCN,
715
707
  st as UniverSheetsConditionalFormattingPreset,
716
708
  it as UniverSheetsCorePreset,
717
- kt as UniverSheetsCrosshairHighlightPlugin,
709
+ Pt as UniverSheetsCrosshairHighlightPlugin,
718
710
  lt as UniverSheetsDataValidationPreset,
719
711
  ut as UniverSheetsDrawingPreset,
720
712
  dt as UniverSheetsFilterPreset,
@@ -723,9 +715,9 @@ export {
723
715
  gt as UniverSheetsNotePreset,
724
716
  pt as UniverSheetsSortPreset,
725
717
  St as UniverSheetsTablePreset,
726
- vt as UniverSheetsThreadCommentPreset,
718
+ wt as UniverSheetsThreadCommentPreset,
727
719
  tt as UniverVue3AdapterPlugin,
728
- Pt as UniverWatermarkPlugin,
720
+ Ct as UniverWatermarkPlugin,
729
721
  He as Workbook,
730
722
  Re as createUniver,
731
723
  I as decimal,
@@ -735,17 +727,17 @@ export {
735
727
  ge as generateIndicatorsCells,
736
728
  Q as generateUUID,
737
729
  De as getNumColumns,
738
- Ze as greenTheme,
730
+ Fe as greenTheme,
739
731
  de as handleClearInput,
740
732
  ye as initDateRange,
741
- Fe as merge,
733
+ Ze as merge,
742
734
  pe as mergeCellData,
743
735
  Ve as mergeLocales,
744
- Ft as sheetsConditionalFormattingZhCN,
745
- At as sheetsCoreZhCN,
746
- Lt as sheetsFilterZhCN,
736
+ It as sheetsConditionalFormattingZhCN,
737
+ Ht as sheetsCoreZhCN,
738
+ Zt as sheetsFilterZhCN,
747
739
  xe as stylePath,
748
- Ae as touchDependencies,
740
+ Ee as touchDependencies,
749
741
  he as useData,
750
- Ht as zhCN
742
+ Ut as zhCN
751
743
  };
@@ -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-core/locales/zh-CN"),require("@univerjs/presets/preset-sheets-conditional-formatting/locales/zh-CN"),require("@univerjs/presets/preset-sheets-core/locales/zh-CN"),require("@univerjs/preset-sheets-drawing/locales/zh-CN"),require("@univerjs/preset-sheets-filter/locales/zh-CN"),require("@univerjs/preset-sheets-hyper-link/locales/zh-CN"),require("@univerjs/preset-sheets-note/locales/zh-CN"),require("@univerjs/presets/preset-sheets-filter/locales/zh-CN"),require("@univerjs/preset-sheets-sort/locales/zh-CN"),require("@univerjs/preset-sheets-data-validation/locales/zh-CN"),require("@univerjs/preset-sheets-find-replace/locales/zh-CN"),require("@univerjs/preset-sheets-thread-comment/locales/zh-CN"),require("@univerjs/preset-sheets-table/locales/zh-CN"),require("dayjs"),require("decimal.js")):typeof define=="function"&&define.amd?define(["exports","@univerjs/presets","@univerjs/core","@univerjs/sheets","@univerjs/ui","@univerjs/ui-adapter-vue3","@univerjs-pro/license","@univerjs/preset-sheets-conditional-formatting","@univerjs/presets/preset-sheets-core","@univerjs/preset-sheets-data-validation","@univerjs/preset-sheets-drawing","@univerjs/preset-sheets-filter","@univerjs/preset-sheets-hyper-link","@univerjs/preset-sheets-note","@univerjs/preset-sheets-sort","@univerjs/preset-sheets-find-replace","@univerjs/preset-sheets-thread-comment","@univerjs/preset-sheets-table","@univerjs/watermark","@univerjs/sheets-crosshair-highlight","@univerjs/preset-sheets-core/locales/zh-CN","@univerjs/presets/preset-sheets-conditional-formatting/locales/zh-CN","@univerjs/presets/preset-sheets-core/locales/zh-CN","@univerjs/preset-sheets-drawing/locales/zh-CN","@univerjs/preset-sheets-filter/locales/zh-CN","@univerjs/preset-sheets-hyper-link/locales/zh-CN","@univerjs/preset-sheets-note/locales/zh-CN","@univerjs/presets/preset-sheets-filter/locales/zh-CN","@univerjs/preset-sheets-sort/locales/zh-CN","@univerjs/preset-sheets-data-validation/locales/zh-CN","@univerjs/preset-sheets-find-replace/locales/zh-CN","@univerjs/preset-sheets-thread-comment/locales/zh-CN","@univerjs/preset-sheets-table/locales/zh-CN","dayjs","decimal.js"],d):(e=typeof globalThis<"u"?globalThis:e||self,d(e.TorUniverSheet={},e.presets,e.core,e.sheets,e.ui,e.uiAdapterVue3,e.license,e.presetSheetsConditionalFormatting,e.presetSheetsCore,e.presetSheetsDataValidation,e.presetSheetsDrawing,e.presetSheetsFilter,e.presetSheetsHyperLink,e.presetSheetsNote,e.presetSheetsSort,e.presetSheetsFindReplace,e.presetSheetsThreadComment,e.presetSheetsTable,e.watermark,e.sheetsCrosshairHighlight,e.zhCN$c,e.zhCN$9,e.zhCN$a,e.zhCN$1,e.zhCN$b,e.zhCN$4,e.zhCN$5,e.zhCN$2,e.zhCN$6,e.zhCN,e.zhCN$3,e.zhCN$8,e.zhCN$7,e.dayjs,e.Decimal))})(this,(function(e,d,X,ne,Z,se,ie,oe,ae,ue,ce,le,he,me,fe,de,ye,ve,ge,be,Ce,pe,Pe,Ye,De,je,Se,Ne,Me,we,Te,Oe,Ue,y,_){"use strict";const ke=(t,n)=>{for(const s of n)t[s]=null},x=()=>{if(typeof crypto=="object"){if(typeof crypto.randomUUID=="function")return crypto.randomUUID();if(typeof crypto.getRandomValues=="function"&&typeof Uint8Array=="function"){const s=r=>{const c=Number(r);return(c^crypto.getRandomValues(new Uint8Array(1))[0]&15>>c/4).toString(16)};return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,s)}}let t=new Date().getTime(),n=typeof performance<"u"&&performance.now&&performance.now()*1e3||0;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,s=>{let r=Math.random()*16;return t>0?(r=(t+r)%16|0,t=Math.floor(t/16)):(r=(n+r)%16|0,n=Math.floor(n/16)),(s==="x"?r:r&3|8).toString(16)})};function Ie(t){return{...t?.workbookData,id:t?.id||x(),name:t?.name||"未命名",appVersion:t?.appVersion||"1.0.0"}}const ze=Object.prototype.toString,ee=(t,n)=>ze.call(t)===`[object ${n}]`,qe=t=>typeof t<"u",He=t=>!qe(t),Re=t=>t!==null&&ee(t,"Object"),$=t=>t==null||typeof t>"u"?!0:W(t)||$e(t)?t.length===0:t instanceof Map||t instanceof Set?t.size===0:Re(t)?Object.keys(t).length===0:!1,Ve=t=>t===null,Fe=t=>He(t)||Ve(t),$e=t=>ee(t,"String"),W=t=>t&&Array.isArray(t);class Be{value;constructor(n){this.value=new _(n)}add(n){return this.value=this.value.add(n||0),this}subtract(n){return this.value=this.value.sub(n||0),this}multiply(n){return this.value=this.value.mul(n||0),this}divide(n){const s=new _(n);if(s.isZero())throw new Error("除数是0");return this.value=this.value.div(s),this}toFixed(n,s){return this.value=new _(this.value.toFixed(n,s)),this}valueOf(){return this.value}toString(){return this.value.toString()}toNumber(){return this.value.toNumber()}}function I(t=0){return new Be(t)}var te=(t=>(t.无="no",t.年="year",t.月="month",t.周="week",t.天="day",t.班组="shift",t.小时="hour",t.半小时="half_hour",t))(te||{}),re=(t=>(t.view="view",t.edit="edit",t))(re||{});async function Ee(t,n){if(!n)return Promise.reject("日期不能为空");switch(t){case"year":if(W(n))return Promise.resolve(n);const s=y(n);if(!s.isValid())return Promise.reject("无效的日期格式");const r=s.year(),c=`${r}-01`,i=`${r}-12`;return Promise.resolve([c,i]);case"month":if(W(n))return Promise.resolve(n);const g=y(n);if(!g.isValid())return Promise.reject("无效的日期格式");const N=g.startOf("month").format("YYYY-MM-DD"),a=g.endOf("month").format("YYYY-MM-DD");return Promise.resolve([N,a]);case"day":if(W(n))return Promise.resolve(n);const v=y(n);if(!v.isValid())return Promise.reject("无效的日期格式");const b=v.startOf("day").format("YYYY-MM-DD HH:mm:ss"),h=v.endOf("day").format("YYYY-MM-DD HH:mm:ss");return Promise.resolve([b,h]);default:return Promise.reject("不支持的周期类型")}}function H(t,n,s){return s?y(n).diff(y(t),s):0}function J(t,n,s){if(!s)throw new Error("日期类型不能为空");const r={year:"YYYY",month:"YYYY-MM",day:"YYYY-MM-DD",hour:"HH:mm:ss"}[s];return y(t).subtract(n,s).format(r)}function U(t,n,s,r){const c="YYYY-MM-DD HH:mm:ss",i=G(t,n,s,r),g=y(i);if(n==="month"){const a=g.month();return a===0?[g.startOf("month").format(c),g.date(25).endOf("day").format(c)]:a===11?[g.subtract(1,"month").date(26).startOf("day").format(c),g.endOf("month").format(c)]:[g.subtract(1,"month").date(26).startOf("day").format(c),g.date(25).endOf("day").format(c)]}const N={year:"year",day:"day",hour:"hour"};return[g.startOf(N[n]).format(c),g.endOf(N[n]).format(c)]}function G(t,n,s,r){const c={year:"YYYY",month:"YYYY-MM",day:"YYYY-MM-DD",hour:"YYYY-MM-DD HH:mm:ss"}[n];return y(t,c).add(s*r,n).format(c)}function D(t,n,s){return t[n]||(t[n]={}),t[n][s]||(t[n][s]={}),t[n][s]}async function Ge(t){if(!t)throw new Error("cellData is required");const n=Object.entries(t).reduce((s,r)=>{const[c,i]=r;for(const[g,N]of Object.entries(i)){const{custom:a,v,t:b,s:h}=N;if(!a)continue;const{cellType:L}=a,l=!a.hasOwnProperty("writeBack")||$(a?.writeBack)?!0:a.writeBack;if(L==="indicator"){const z=D(s,c,g);z.custom={...a,required:$(a?.required)?!1:a?.required,defaultShift:$(a?.defaultShift)?!1:a?.defaultShift,forwardPush:$(a?.forwardPush)?!1:a?.forwardPush,forwardPushTimes:$(a?.useDefaultEndDate)?0:a?.forwardPushTimes,useDefaultEndDate:$(a?.useDefaultEndDate)?!1:a?.useDefaultEndDate,copyType:$(a?.copyType)?"":a?.copyType,writeBack:l},z.s=h,z.t=b,z.v=v||""}}return s},{});return!n||$(n)?Promise.reject(new Error("No data found")):Promise.resolve(n)}function A(t,n){return t.replace(/\$\{([^}]+)\}/g,(s,r)=>{try{const c=Object.keys(n),i=Object.values(n);return new Function(...c,`return ${r};`)(...i)}catch(c){return console.error(`表达式执行失败: ${r}`,c),s}})}function Le({acc:t,params:n,initRowNum:s,initColNum:r,cellData:c}){const{rangeData:i,currentDay:g,extraArgs:N}=n,a=N?.teamData||{},{cycleType:v,timeIncrement:b,forwardPush:h,forwardPushTimes:L,copyType:l,copyInterval:z,defaultShift:p,templateStr:k,useDefaultEndDate:Q}=c.custom;let j=0;switch(v){case"day":{let o="";if(h&&(o=J(i[0],L,"day")),!l){let m="";h?m=o:m=i[0];const u=D(t,s,r);u.v=k?A(k,{businessDate:m,dayjs:y}):y(m).format("YYYY-MM-DD"),u.t=d.CellValueType.STRING,u.s="tor-time-cell-style";break}h?j=H(o,i[0],"day"):(j=H(i[0],i[1],"day"),console.log("copyNum",j));for(let m=0;m<=Math.abs(j===0?1:j);m++){const u=m*(z+1);let M="";h?M=G(o,"day",m,b):M=G(i[0],"day",m,b);const P=l==="right"?s:s+u,V=l==="right"?r+u:r,B=D(t,P,V);B.v=k?A(k,{businessDate:M,dayjs:y}):y(M).format("YYYY-MM-DD"),B.t=d.CellValueType.STRING,B.s="tor-time-cell-style"}break}case"month":{if(!l){const[o,m]=U(i[1],"month",0,1),u=D(t,s,r);u.v=y(m).format("YYYY-MM"),u.t=d.CellValueType.STRING,u.s="tor-time-cell-style";break}j=H(i[0],i[1],"month");for(let o=0;o<=Math.abs(j===0?1:j);o++){const m=o*(z+1),u=l==="right"?s:s+m,M=l==="right"?r+m:r,P=D(t,u,M);P.v=G(i[0],"month",o,b),P.t=d.CellValueType.STRING,P.s="tor-time-cell-style"}break}case"year":{let o="";if(h&&(o=J(i[0],L||0,"year")),!l){const m=h?o:i[0],[u,M]=U(m,"year",0,1),P=D(t,s,r),[,V]=U(i[1],"month",0,1);P.v=k?A(k,{startTime:u,endTime:M,rangeData:i,dayjs:y}):m,P.t=d.CellValueType.STRING,P.s="tor-time-cell-style";break}h?j=H(o,i[0],"year"):j=H(i[0],i[1],"year");for(let m=0;m<=Math.abs(j===0?1:j);m++){const u=m*(z+1),M=l==="right"?s:s+u,P=l==="right"?r+u:r,[V,B]=U(i[0],"year",m,b),w=D(t,M,P),O=G(i[0],"year",m,b);w.v=k?A(k,{startTime:V,endTime:B,rangeData:i,dayjs:y}):O,w.t=d.CellValueType.STRING,w.s="tor-time-cell-style"}break}case"hour":{if(!l){const o=D(t,s,r);if(o.t=d.CellValueType.STRING,o.s="tor-time-cell-style",p){o.v=y(i[0]).add(1,"hour").format("YYYY-MM-DD HH:mm:ss");break}o.v=y(g).add(1,"hour").format("YYYY-MM-DD HH:mm:ss");break}j=H(i[0],i[1],"hour");for(let o=0;o<=Math.abs(j===0?1:j);o++){const m=o*(z+1),u=l==="right"?s:s+m,M=l==="right"?r+m:r,P=D(t,u,M);if(P.t=d.CellValueType.STRING,P.s="tor-time-cell-style",p){const V=y(i[0]).add(1,"hour").format("YYYY-MM-DD HH:mm:ss");P.v=G(V,"hour",o,b);continue}P.v=G(y(g).add(1,"hour").format("YYYY-MM-DD HH:mm:ss"),"hour",o,b)}break}case"shift":{if(!l){const o=D(t,s,r);o.t=d.CellValueType.STRING,o.s="tor-time-cell-style",o.v=k?A(k,{rangeData:i,dayjs:y}):i[0];break}if(!a.length)throw new Error("没有获取到当班数据");for(let o=0;o<a.length;o++){const m=a[o],{startDatetime:u,endDatetime:M}=m,P=o*(z+1),V=l==="right"?s:I(s).add(P).toNumber(),B=l==="right"?I(r).add(P).toNumber():r,w=D(t,V,B);w.s="tor-time-cell-style",w.v=k?A(k,{team:m}):u}break}}}async function Ze(t,n){if(!t)return Promise.reject("没有可用的单元格数据");const{extraArgs:s,rangeData:r}=n;if(!r.length)return Promise.reject("处理时间范围失败, rangeData不能为空");const c=s?.teamData||[],{periodicityTime:i}=n,g=n?.currentDay||y().format("YYYY-MM-DD"),N=(v,b,h)=>i?h!=="MACH_CYCLE"?[v,b]:parseInt(i.split(":")[0],10)<12?[y(v).format("YYYY-MM-DD")+" "+i,y(b).add(1,"day").format("YYYY-MM-DD")+" "+i]:[y(v).subtract(1,"day").format("YYYY-MM-DD")+" "+i,y(b).format("YYYY-MM-DD")+" "+i]:[v,b],a=Object.entries(t).reduce((v,b)=>{const[h,L]=b;for(const[l,z]of Object.entries(L)){const{custom:p}=z;if(!p)continue;const{cellType:k,cycleType:Q,timeIncrement:j,forwardPush:o,forwardPushTimes:m,copyType:u,copyInterval:M,defaultShift:P,useDefaultStartDate:V,useDefaultEndDate:B}=p;if(k==="time"){Le({acc:v,params:n,initRowNum:Number(h),initColNum:Number(l),cellData:z});continue}const w={cycleType:Q,indicatorName:p.indicatorName,indicatorCode:p.indicatorCode,indicatorId:p.indicatorId,indicatorDimensionName:p.indicatorDimensionName,indicatorDimensionConfig:p.indicatorDimensionConfig,required:Fe(p?.required)??!1,cellType:p.cellType,defaultShift:p?.defaultShift||!1,writeBack:$(p?.writeBack)?!0:p.writeBack,dimensionJson:p?.dimensionJson||"",unit:p?.unit||"",innerSyncWay:p?.innerSyncWay||"",outSyncConfigId:p?.outSyncConfigId||"",innerSyncStatus:p?.innerSyncStatus||""};let O=0;switch(Q){case"day":{let f="";if(o&&(f=J(r[0],m||0,"day")),!u){const C=o?f:r[0],[S,Y]=N(...U(C,"day",0,1),p?.innerSyncWay),T=D(v,h,l);T.s="tor-indicator-cell-style",T.custom={...w,startTime:S,endTime:Y};break}o?O=H(f,r[0],"day"):O=H(r[0],r[1],"day");for(let C=0;C<=Math.abs(O===0?1:O);C++){const S=C*(M+1),Y=o?f:r[0],[T,R]=N(...U(Y,"day",C,j),p?.innerSyncWay),q=u==="right"?h:I(h).add(S).toNumber(),F=u==="right"?I(l).add(S).toNumber():l,E=D(v,q,F);E.s="tor-indicator-cell-style",E.custom={...w,startTime:T,endTime:R}}break}case"month":{if(!u){const[f,C]=U(r[1],"month",0,1),S=D(v,h,l);S.s="tor-indicator-cell-style",S.custom={...w,startTime:f,endTime:C};break}O=H(r[0],r[1],"month");for(let f=0;f<=Math.abs(O===0?1:O);f++){const C=f*(M+1),S=u==="right"?h:I(h).add(C).toNumber(),Y=u==="right"?I(l).add(C).toNumber():l,[T,R]=U(r[0],"month",f,j),q=D(v,S,Y);q.s="tor-indicator-cell-style",q.custom={...w,startTime:T,endTime:R}}break}case"year":{let f="",C="",S="";if(o){f=J(r[0],m||0,"year");const Y=y(r[1]).format("MM");C=y(`${f}-${Y+1}`).format("YYYY-MM"),S=y(`${f}-${Y+2}`).format("YYYY-MM")}if(!u){const Y=o?f:r[0],[T,R]=U(Y,"year",0,1),q=D(v,h,l);q.s="tor-indicator-cell-style";const[,F]=U(C,"month",0,1),[E]=U(S,"month",0,1);q.custom={...w,startTime:V?E:T,endTime:B?F:R};break}o?O=H(f,r[0],"year"):O=H(r[0],r[1],"year");for(let Y=0;Y<=Math.abs(O===0?1:O);Y++){const T=Y*(M+1),R=u==="right"?h:I(h).add(T).toNumber(),q=u==="right"?I(l).add(T).toNumber():l,[F,E]=U(r[0],"year",Y,j),K=D(v,R,q);K.s="tor-indicator-cell-style",K.custom={...w,startTime:F,endTime:E}}break}case"hour":{if(!u){const f=P?r[0]:r[0]??g,[C,S]=U(f,"hour",1,1),Y=D(v,h,l);Y.s="tor-indicator-cell-style",Y.custom={...w,startTime:C,endTime:S};break}O=H(r[0],r[1],"hour");for(let f=0;f<=Math.abs(O===0?1:O);f++){const C=f*(M+1),S=u==="right"?h:I(h).add(C).toNumber(),Y=u==="right"?I(l).add(C).toNumber():l,T=D(v,S,Y);if(T.s="tor-indicator-cell-style",P){const E=y(r[0]).add(1,"hour").format("YYYY-MM-DD HH:mm:ss"),[K,_e]=U(E,"hour",f,j);T.custom={...w,startTime:K,endTime:_e};continue}const R=y(g).add(1,"hour").format("YYYY-MM-DD HH:mm:ss"),[q,F]=U(R,"hour",f,j);T.custom={...w,startTime:q,endTime:F}}break}case"shift":{if(!u){const[f,C]=r,S=D(v,h,l);S.s="tor-indicator-cell-style",S.custom={...w,startTime:f,endTime:C};break}if(!c.length)throw new Error("没有获取到当班数据");for(let f=0;f<c.length;f++){const C=c[f],{startDatetime:S,endDatetime:Y}=C,T=f*(M+1),R=u==="right"?h:I(h).add(T).toNumber(),q=u==="right"?I(l).add(T).toNumber():l,F=D(v,R,q);F.s="tor-indicator-cell-style",F.custom={...w,startTime:S,endTime:Y}}break}}}return v},{});return Promise.resolve(a)}function Ae(t){return Object.entries(t).reduce((s,[r,c])=>{const i=Math.max(...Object.keys(c).map(Number));return i>s?s=Number(i):s=Number(s)||0,s},0)}function We(t,n){const s=JSON.parse(JSON.stringify(t||{}));for(const[r,c]of Object.entries(n)){s[r]||(s[r]={});for(const[i,g]of Object.entries(c)){const N=g??{},a=s[r]?.[i];if(a){const v={...a,...N,custom:{...a.custom,...N.custom},v:N.v||""};s[r][i]=v}else s[r][i]=N}}return s}function Je(t,n){if(!n?.length||!t)return t;const s={};for(const r in t){const c=t[r];for(const i in c){const g=c[i];if(g?.custom?.cellType==="indicator"){const N=Number(r),a=Number(i);if(n.some(b=>N>=b.startRow&&N<=b.endRow&&a>=b.startColumn&&a<=b.endColumn)&&!n.some(h=>N===h.startRow&&a===h.startColumn))continue}s[r]||(s[r]={}),s[r][i]=g}}return s}const Ke="./style.css";Object.defineProperty(e,"CommandType",{enumerable:!0,get:()=>d.CommandType}),Object.defineProperty(e,"FEventName",{enumerable:!0,get:()=>d.FEventName}),Object.defineProperty(e,"FUniver",{enumerable:!0,get:()=>d.FUniver}),Object.defineProperty(e,"ICommandService",{enumerable:!0,get:()=>d.ICommandService}),Object.defineProperty(e,"IUniverInstanceService",{enumerable:!0,get:()=>d.IUniverInstanceService}),Object.defineProperty(e,"Inject",{enumerable:!0,get:()=>d.Inject}),Object.defineProperty(e,"Injector",{enumerable:!0,get:()=>d.Injector}),Object.defineProperty(e,"LocaleType",{enumerable:!0,get:()=>d.LocaleType}),Object.defineProperty(e,"Plugin",{enumerable:!0,get:()=>d.Plugin}),Object.defineProperty(e,"Univer",{enumerable:!0,get:()=>d.Univer}),Object.defineProperty(e,"UniverInstanceType",{enumerable:!0,get:()=>d.UniverInstanceType}),Object.defineProperty(e,"Workbook",{enumerable:!0,get:()=>d.Workbook}),Object.defineProperty(e,"createUniver",{enumerable:!0,get:()=>d.createUniver}),Object.defineProperty(e,"defaultTheme",{enumerable:!0,get:()=>d.defaultTheme}),Object.defineProperty(e,"greenTheme",{enumerable:!0,get:()=>d.greenTheme}),Object.defineProperty(e,"merge",{enumerable:!0,get:()=>d.merge}),Object.defineProperty(e,"mergeLocales",{enumerable:!0,get:()=>d.mergeLocales}),Object.defineProperty(e,"touchDependencies",{enumerable:!0,get:()=>d.touchDependencies}),Object.defineProperty(e,"BaselineOffset",{enumerable:!0,get:()=>X.BaselineOffset}),Object.defineProperty(e,"CommandService",{enumerable:!0,get:()=>X.CommandService}),Object.defineProperty(e,"SetRangeValuesCommand",{enumerable:!0,get:()=>ne.SetRangeValuesCommand}),Object.defineProperty(e,"ComponentManager",{enumerable:!0,get:()=>Z.ComponentManager}),Object.defineProperty(e,"ContextMenuGroup",{enumerable:!0,get:()=>Z.ContextMenuGroup}),Object.defineProperty(e,"ContextMenuPosition",{enumerable:!0,get:()=>Z.ContextMenuPosition}),Object.defineProperty(e,"IMenuManagerService",{enumerable:!0,get:()=>Z.IMenuManagerService}),Object.defineProperty(e,"MenuItemType",{enumerable:!0,get:()=>Z.MenuItemType}),Object.defineProperty(e,"RibbonStartGroup",{enumerable:!0,get:()=>Z.RibbonStartGroup}),Object.defineProperty(e,"UniverVue3AdapterPlugin",{enumerable:!0,get:()=>se.UniverVue3AdapterPlugin}),Object.defineProperty(e,"UniverLicensePlugin",{enumerable:!0,get:()=>ie.UniverLicensePlugin}),Object.defineProperty(e,"UniverSheetsConditionalFormattingPreset",{enumerable:!0,get:()=>oe.UniverSheetsConditionalFormattingPreset}),Object.defineProperty(e,"UniverSheetsCorePreset",{enumerable:!0,get:()=>ae.UniverSheetsCorePreset}),Object.defineProperty(e,"UniverSheetsDataValidationPreset",{enumerable:!0,get:()=>ue.UniverSheetsDataValidationPreset}),Object.defineProperty(e,"UniverSheetsDrawingPreset",{enumerable:!0,get:()=>ce.UniverSheetsDrawingPreset}),Object.defineProperty(e,"UniverSheetsFilterPreset",{enumerable:!0,get:()=>le.UniverSheetsFilterPreset}),Object.defineProperty(e,"UniverSheetsHyperLinkPreset",{enumerable:!0,get:()=>he.UniverSheetsHyperLinkPreset}),Object.defineProperty(e,"UniverSheetsNotePreset",{enumerable:!0,get:()=>me.UniverSheetsNotePreset}),Object.defineProperty(e,"UniverSheetsSortPreset",{enumerable:!0,get:()=>fe.UniverSheetsSortPreset}),Object.defineProperty(e,"UniverSheetsFindReplacePreset",{enumerable:!0,get:()=>de.UniverSheetsFindReplacePreset}),Object.defineProperty(e,"UniverSheetsThreadCommentPreset",{enumerable:!0,get:()=>ye.UniverSheetsThreadCommentPreset}),Object.defineProperty(e,"UniverSheetsTablePreset",{enumerable:!0,get:()=>ve.UniverSheetsTablePreset}),Object.defineProperty(e,"UniverWatermarkPlugin",{enumerable:!0,get:()=>ge.UniverWatermarkPlugin}),Object.defineProperty(e,"UniverSheetsCrosshairHighlightPlugin",{enumerable:!0,get:()=>be.UniverSheetsCrosshairHighlightPlugin}),e.zhCN=Ce,e.sheetsConditionalFormattingZhCN=pe,e.sheetsCoreZhCN=Pe,e.UniverPresetSheetsDrawingZhCN=Ye,e.sheetsFilterZhCN=De,e.UniverPresetSheetsHyperLinkZhCN=je,e.UniverPresetSheetsNoteZhCN=Se,e.UniverPresetSheetsFilterZhCN=Ne,e.UniverPresetSheetsSortZhCN=Me,e.UniverPresetSheetsDataValidationZhCN=we,e.UniverPresetSheetsFindReplaceZhCN=Te,e.UniverPresetSheetsThreadCommentZhCN=Oe,e.UniverPresetSheetsTableZhCN=Ue,e.CycleTypeEnum=te,e.ModeEnum=re,e.decimal=I,e.filterIndicatorsCell=Ge,e.filterMergedIndicatorCells=Je,e.generateIndicatorsCells=Ze,e.generateUUID=x,e.getNumColumns=Ae,e.handleClearInput=ke,e.initDateRange=Ee,e.mergeCellData=We,e.stylePath=Ke,e.useData=Ie,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}));
@@ -40,9 +40,7 @@ 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';
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';
43
+ import { UniverLicensePlugin } from '@univerjs-pro/license';
46
44
  import { default as UniverPresetSheetsDataValidationZhCN } from '@univerjs/preset-sheets-data-validation/locales/zh-CN';
47
45
  import { default as UniverPresetSheetsDrawingZhCN } from '@univerjs/preset-sheets-drawing/locales/zh-CN';
48
46
  import { default as UniverPresetSheetsFilterZhCN } from '@univerjs/presets/preset-sheets-filter/locales/zh-CN';
@@ -52,8 +50,6 @@ import { default as UniverPresetSheetsNoteZhCN } from '@univerjs/preset-sheets-n
52
50
  import { default as UniverPresetSheetsSortZhCN } from '@univerjs/preset-sheets-sort/locales/zh-CN';
53
51
  import { default as UniverPresetSheetsTableZhCN } from '@univerjs/preset-sheets-table/locales/zh-CN';
54
52
  import { default as UniverPresetSheetsThreadCommentZhCN } from '@univerjs/preset-sheets-thread-comment/locales/zh-CN';
55
- import { UniverSheetsAdvancedPreset } from '@univerjs/preset-sheets-advanced';
56
- import { UniverSheetsCollaborationPreset } from '@univerjs/preset-sheets-collaboration';
57
53
  import { UniverSheetsConditionalFormattingPreset } from '@univerjs/preset-sheets-conditional-formatting';
58
54
  import { UniverSheetsCorePreset } from '@univerjs/presets/preset-sheets-core';
59
55
  import { UniverSheetsCrosshairHighlightPlugin } from '@univerjs/sheets-crosshair-highlight';
@@ -276,11 +272,7 @@ export { Univer }
276
272
 
277
273
  export { UniverInstanceType }
278
274
 
279
- export { UniverLiveSharePlugin }
280
-
281
- export { UniverPresetSheetsAdvancedZhCN }
282
-
283
- export { UniverPresetSheetsCollaborationZhCN }
275
+ export { UniverLicensePlugin }
284
276
 
285
277
  export { UniverPresetSheetsDataValidationZhCN }
286
278
 
@@ -300,10 +292,6 @@ export { UniverPresetSheetsTableZhCN }
300
292
 
301
293
  export { UniverPresetSheetsThreadCommentZhCN }
302
294
 
303
- export { UniverSheetsAdvancedPreset }
304
-
305
- export { UniverSheetsCollaborationPreset }
306
-
307
295
  export { UniverSheetsConditionalFormattingPreset }
308
296
 
309
297
  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
 
@@ -102,88 +99,3 @@
102
99
  .hover\:univer-ring-primary-600:hover {
103
100
  --univer-tw-ring-color: var(--univer-primary-600);
104
101
  }
105
-
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
- }
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.8",
4
4
  "style": "./dist/style.css",
5
5
  "description": "基于 Univer 的 Vue3 电子表格组件",
6
6
  "author": "tortormore",
@@ -39,10 +39,8 @@
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",