@sheetxl/react 0.7.28-beta.2 → 0.7.28-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/cjs/index.cjs +7 -7
- package/browser/esm/{BPJdKxa9KFZWhw7o.mjs → DOpVczcEx-CkZUxD.mjs} +1 -1
- package/browser/esm/index.mjs +1327 -1296
- package/node/esm/{CUEW3f18r-pU7F0q.mjs → CZvaQUM2sezrZ_Yy.mjs} +1 -1
- package/node/esm/index.mjs +849 -818
- package/package.json +6 -6
- package/types/src/workbook/resolveWorkbookInput.d.ts +5 -3
- package/types/src/workbook/useResolvedWorkbook.d.ts +6 -0
- package/types/src/workbook/useWorkbookApp.d.ts +3 -1
package/node/esm/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.7.28-beta.
|
|
2
|
+
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.7.28-beta.3
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -536,9 +536,9 @@ var Ao = K((e) => {
|
|
|
536
536
|
...v,
|
|
537
537
|
children: he
|
|
538
538
|
});
|
|
539
|
-
}, Eo = !1, Do = !1, Po = "
|
|
539
|
+
}, Eo = !1, Do = !1, Po = "/*^&<>=:,+-@( ", No = (e, t) => {
|
|
540
540
|
if (t <= 0 || t > e.length) return !1;
|
|
541
|
-
if (!"
|
|
541
|
+
if (!"/*^&<>=:,+-@( ".includes(e[t - 1])) return !1;
|
|
542
542
|
let o = t;
|
|
543
543
|
for (; o < e.length && " " === e[o];) o++;
|
|
544
544
|
return o >= e.length || "/*^&<>=:,)".includes(e[o]);
|
|
@@ -1623,7 +1623,7 @@ var Jo = () => {
|
|
|
1623
1623
|
if (!i) return;
|
|
1624
1624
|
c = n.slice(0, i.start) + s + n.slice(i.end), d = i.start + s.length;
|
|
1625
1625
|
} else {
|
|
1626
|
-
const e = r?.selectionStart ?? n.length, t = r?.selectionEnd ?? n.length, o = (e > 0 && !"
|
|
1626
|
+
const e = r?.selectionStart ?? n.length, t = r?.selectionEnd ?? n.length, o = (e > 0 && !"/*^&<>=:,+-@( ".includes(n[e - 1]) ? "," : "") + s;
|
|
1627
1627
|
c = n.slice(0, e) + o + n.slice(t), d = e + o.length;
|
|
1628
1628
|
}
|
|
1629
1629
|
else {
|
|
@@ -1835,7 +1835,7 @@ var Jo = () => {
|
|
|
1835
1835
|
let i, s;
|
|
1836
1836
|
if ("replace" === t.kind) i = n.slice(0, t.start) + a + n.slice(t.end), s = t.start + a.length;
|
|
1837
1837
|
else {
|
|
1838
|
-
const e = o?.selectionStart ?? n.length, t = o?.selectionEnd ?? n.length, r = (e > 0 && !"
|
|
1838
|
+
const e = o?.selectionStart ?? n.length, t = o?.selectionEnd ?? n.length, r = (e > 0 && !"/*^&<>=:,+-@( ".includes(n[e - 1]) ? "," : "") + a;
|
|
1839
1839
|
i = n.slice(0, e) + r + n.slice(t), s = e + r.length;
|
|
1840
1840
|
}
|
|
1841
1841
|
_(i), U(i), T.current && le(), requestAnimationFrame(() => o?.setSelectionRange?.(s, s));
|
|
@@ -3271,7 +3271,7 @@ var cr = (e, t, o = 1) => {
|
|
|
3271
3271
|
t += r;
|
|
3272
3272
|
}
|
|
3273
3273
|
}
|
|
3274
|
-
const r = (n.start > 0 && !"
|
|
3274
|
+
const r = (n.start > 0 && !"/*^&<>=:,+-@( ".includes(q[n.start - 1]) ? "," : "") + o, l = q.slice(0, n.start) + r + q.slice(n.end);
|
|
3275
3275
|
W.current = n.start + r.length, E || (K.current = n.start + r.length), ze.current(l);
|
|
3276
3276
|
} catch {}
|
|
3277
3277
|
}, [
|
|
@@ -4071,7 +4071,12 @@ function Xr(e, t) {
|
|
|
4071
4071
|
}
|
|
4072
4072
|
return () => {};
|
|
4073
4073
|
}
|
|
4074
|
-
var Yr =
|
|
4074
|
+
var Yr = {
|
|
4075
|
+
top: f.Direction.Up,
|
|
4076
|
+
bottom: f.Direction.Down,
|
|
4077
|
+
left: f.Direction.Left,
|
|
4078
|
+
right: f.Direction.Right
|
|
4079
|
+
}, Jr = ({ sheet: e, isActive: t = !0, onShowTooltip: o, onCloseTooltip: n, className: r, ...l }) => {
|
|
4075
4080
|
const a = $t(), i = Kt(), s = Nt(), c = Ge(), [d, u] = ne(null), g = !!rt.useCommandScope(), h = ee(() => ({
|
|
4076
4081
|
navigation: d,
|
|
4077
4082
|
sheet: e
|
|
@@ -4101,9 +4106,9 @@ var Yr = ({ sheet: e, isActive: t = !0, onShowTooltip: o, onCloseTooltip: n, cla
|
|
|
4101
4106
|
inner: { alignWidth: e }
|
|
4102
4107
|
};
|
|
4103
4108
|
}, [A]), P = Dt((e, t) => {
|
|
4104
|
-
s.setMode(
|
|
4109
|
+
s.setMode(ll(t));
|
|
4105
4110
|
}, [s]), N = Dt((e, t, o) => {
|
|
4106
|
-
s.setMode(
|
|
4111
|
+
s.setMode(ll(o));
|
|
4107
4112
|
}, [s]), L = Dt(() => {
|
|
4108
4113
|
s.setMode(null);
|
|
4109
4114
|
}, [s]), z = Dt(async (t, o) => {
|
|
@@ -4129,8 +4134,8 @@ var Yr = ({ sheet: e, isActive: t = !0, onShowTooltip: o, onCloseTooltip: n, cla
|
|
|
4129
4134
|
snap: !0
|
|
4130
4135
|
}).getCoords(), [e]), H = Dt((t, n) => {
|
|
4131
4136
|
if (!o) return;
|
|
4132
|
-
s.setMode(
|
|
4133
|
-
const r =
|
|
4137
|
+
s.setMode(rl);
|
|
4138
|
+
const r = Qr(t, n);
|
|
4134
4139
|
try {
|
|
4135
4140
|
const o = e.getRange(t).autoFill(n, {
|
|
4136
4141
|
preview: !0,
|
|
@@ -4182,9 +4187,24 @@ var Yr = ({ sheet: e, isActive: t = !0, onShowTooltip: o, onCloseTooltip: n, cla
|
|
|
4182
4187
|
s,
|
|
4183
4188
|
c,
|
|
4184
4189
|
o
|
|
4185
|
-
]), V = Dt(() => {
|
|
4190
|
+
]), V = Dt((t, o, n) => {
|
|
4191
|
+
const r = Yr[o], l = e.getRange(t).getExtended(r, {
|
|
4192
|
+
basis: "content",
|
|
4193
|
+
fromBlank: "before"
|
|
4194
|
+
}).getCoords();
|
|
4195
|
+
if (ge.isEqualRanges(l, t)) return;
|
|
4196
|
+
if (n.shiftKey) return void e.getRange(l).select();
|
|
4197
|
+
const a = e.getSelectedCell().getCoords(), i = "top" === o || "bottom" === o;
|
|
4198
|
+
e.getRange(i ? {
|
|
4199
|
+
rowIndex: "top" === o ? l.rowStart : l.rowEnd,
|
|
4200
|
+
colIndex: a.colIndex
|
|
4201
|
+
} : {
|
|
4202
|
+
rowIndex: a.rowIndex,
|
|
4203
|
+
colIndex: "left" === o ? l.colStart : l.colEnd
|
|
4204
|
+
}).select();
|
|
4205
|
+
}, [e]), $ = Dt((t) => e.getRange(t).getExtended(f.Direction.Down, { basis: "adjacent" }).getCoords(), [e]), _ = Dt(() => {
|
|
4186
4206
|
s.setMode(null), p?.();
|
|
4187
|
-
}, [s]),
|
|
4207
|
+
}, [s]), W = Dt(async (t, o, n) => {
|
|
4188
4208
|
if (ge.isEqualRanges(t, o)) return;
|
|
4189
4209
|
const r = e.getRange(o);
|
|
4190
4210
|
if (a?.showOptions) {
|
|
@@ -4261,7 +4281,7 @@ var Yr = ({ sheet: e, isActive: t = !0, onShowTooltip: o, onCloseTooltip: n, cla
|
|
|
4261
4281
|
getRegionBounds: S,
|
|
4262
4282
|
scrollIntoView: C,
|
|
4263
4283
|
enabledMove: M,
|
|
4264
|
-
onMove:
|
|
4284
|
+
onMove: W,
|
|
4265
4285
|
onMoveStart: P,
|
|
4266
4286
|
onMoveUpdate: N,
|
|
4267
4287
|
onMoveEnd: L,
|
|
@@ -4269,34 +4289,36 @@ var Yr = ({ sheet: e, isActive: t = !0, onShowTooltip: o, onCloseTooltip: n, cla
|
|
|
4269
4289
|
snapFillDestination: O,
|
|
4270
4290
|
onFill: z,
|
|
4271
4291
|
onFillPreview: H,
|
|
4272
|
-
onFillEnd:
|
|
4292
|
+
onFillEnd: _,
|
|
4293
|
+
resolveFillExtent: $,
|
|
4294
|
+
onEdgeDoubleClick: V,
|
|
4273
4295
|
onSelectionEnd: b,
|
|
4274
4296
|
disableKeyboard: g,
|
|
4275
4297
|
ref: u
|
|
4276
4298
|
}), F && ae(Oe, { selection: w })]
|
|
4277
4299
|
});
|
|
4278
4300
|
};
|
|
4279
|
-
|
|
4280
|
-
var
|
|
4301
|
+
Jr.displayName = "SheetSelectionLayer";
|
|
4302
|
+
var Qr = (e, t) => t.rowEnd > e.rowEnd ? f.Direction.Down : t.rowStart < e.rowStart ? f.Direction.Up : t.colEnd > e.colEnd ? f.Direction.Right : f.Direction.Left, el = {
|
|
4281
4303
|
key: "dragCut",
|
|
4282
4304
|
description: Ce("editMode.dragCut"),
|
|
4283
4305
|
cursor: "move"
|
|
4284
|
-
},
|
|
4306
|
+
}, tl = {
|
|
4285
4307
|
key: "dragCutInsert",
|
|
4286
4308
|
description: Ce("editMode.dragCutInsert"),
|
|
4287
4309
|
cursor: "copy"
|
|
4288
|
-
},
|
|
4310
|
+
}, ol = {
|
|
4289
4311
|
key: "dragCopy",
|
|
4290
4312
|
description: Ce("editMode.dragCopy")
|
|
4291
|
-
},
|
|
4313
|
+
}, nl = {
|
|
4292
4314
|
key: "dragCopyInsert",
|
|
4293
4315
|
description: Ce("editMode.dragCopyInsert"),
|
|
4294
4316
|
cursor: "move"
|
|
4295
|
-
},
|
|
4317
|
+
}, rl = {
|
|
4296
4318
|
key: "fill",
|
|
4297
4319
|
description: Ce("editMode.fill"),
|
|
4298
4320
|
cursor: "crosshair"
|
|
4299
|
-
},
|
|
4321
|
+
}, ll = (e) => e.ctrlKey && e.shiftKey ? nl : e.ctrlKey ? ol : e.shiftKey ? tl : el, al = (e, t) => Object.assign(Object.create(e), { setSelection: (o) => {
|
|
4300
4322
|
const n = e.getSelection(), r = o.ranges, l = o.rangeIndex ?? -1;
|
|
4301
4323
|
r && l >= 0 && l < r.length && r[l] && r[l] !== n?.ranges?.[l] && r[l].scope !== t && (o = {
|
|
4302
4324
|
...o,
|
|
@@ -4306,7 +4328,7 @@ var Jr = (e, t) => t.rowEnd > e.rowEnd ? f.Direction.Down : t.rowStart < e.rowSt
|
|
|
4306
4328
|
} : e)
|
|
4307
4329
|
}), e.setSelection(o);
|
|
4308
4330
|
} });
|
|
4309
|
-
function
|
|
4331
|
+
function il(e) {
|
|
4310
4332
|
const { sheet: t, sheetView: o, className: n, onKeyDown: r, ...l } = e, a = ln(), i = a.getMode(), s = i?.selection ?? null, c = s?.getSheet().getName(), d = t.getName(), u = c === d, g = !!i?.scope && i.scope !== d, h = _o(t, (o?.isShowFormulas() ?? !1) && !s), m = ee(() => {
|
|
4311
4333
|
if (!h || !h.ranges.some(Boolean)) return null;
|
|
4312
4334
|
const e = t.getSelection().createSelection({
|
|
@@ -4352,7 +4374,7 @@ function al(e) {
|
|
|
4352
4374
|
shiftKey: e.shiftKey,
|
|
4353
4375
|
altKey: e.altKey
|
|
4354
4376
|
}));
|
|
4355
|
-
}, [r, d]), v = ee(() => s ?
|
|
4377
|
+
}, [r, d]), v = ee(() => s ? al(new jr(s), d) : null, [s, d]), b = _t(v, (e) => e.getSelection()), w = (e) => !!e && (void 0 === e.scope && u || e.scope === d), y = !!b?.ranges?.some(w), S = !g && "point" === i?.mode, C = y || S;
|
|
4356
4378
|
if (!i) {
|
|
4357
4379
|
if (!m || !h) return null;
|
|
4358
4380
|
const e = (e, t) => {
|
|
@@ -4367,7 +4389,7 @@ function al(e) {
|
|
|
4367
4389
|
animated: !1,
|
|
4368
4390
|
disableDraw: !0,
|
|
4369
4391
|
allowMulti: !1,
|
|
4370
|
-
anchors:
|
|
4392
|
+
anchors: sl,
|
|
4371
4393
|
onKeyDown: r
|
|
4372
4394
|
});
|
|
4373
4395
|
}
|
|
@@ -4388,19 +4410,19 @@ function al(e) {
|
|
|
4388
4410
|
onKeyDown: f
|
|
4389
4411
|
});
|
|
4390
4412
|
}
|
|
4391
|
-
|
|
4392
|
-
var
|
|
4413
|
+
il.displayName = "SheetReferenceLayer";
|
|
4414
|
+
var sl = [], cl = Object.freeze([]), dl = (e) => {
|
|
4393
4415
|
const t = Ge(), [o, n] = te((e) => e + 1, 0), r = ee(() => ({}), [o]);
|
|
4394
4416
|
wo(e, {
|
|
4395
4417
|
onTablesChange: () => n(),
|
|
4396
4418
|
onAutoTableChange: () => n(),
|
|
4397
4419
|
onLayoutChange: () => n(),
|
|
4398
4420
|
onInvalidated: () => n()
|
|
4399
|
-
},
|
|
4421
|
+
}, ul);
|
|
4400
4422
|
const l = t.getVisibleRange(), a = ee(() => {
|
|
4401
|
-
if (!l) return
|
|
4423
|
+
if (!l) return cl;
|
|
4402
4424
|
const t = e.getTables().getItems({ address: l });
|
|
4403
|
-
return t.length > 0 ? t :
|
|
4425
|
+
return t.length > 0 ? t : cl;
|
|
4404
4426
|
}, [
|
|
4405
4427
|
e,
|
|
4406
4428
|
l?.rowStart,
|
|
@@ -4411,7 +4433,7 @@ var il = [], sl = Object.freeze([]), cl = (e) => {
|
|
|
4411
4433
|
]);
|
|
4412
4434
|
return X(() => {
|
|
4413
4435
|
if (0 === a.length) return;
|
|
4414
|
-
const e = a.map((e) => e.addListeners({ onAnyChange: () => n() },
|
|
4436
|
+
const e = a.map((e) => e.addListeners({ onAnyChange: () => n() }, gl));
|
|
4415
4437
|
return () => {
|
|
4416
4438
|
for (const t of e) t?.();
|
|
4417
4439
|
};
|
|
@@ -4419,14 +4441,14 @@ var il = [], sl = Object.freeze([]), cl = (e) => {
|
|
|
4419
4441
|
visibleTables: a,
|
|
4420
4442
|
cacheToken: r
|
|
4421
4443
|
};
|
|
4422
|
-
},
|
|
4444
|
+
}, ul = {
|
|
4423
4445
|
transactional: !1,
|
|
4424
4446
|
ignoreModelChange: !0
|
|
4425
|
-
},
|
|
4447
|
+
}, gl = { transactional: !1 }, hl = {
|
|
4426
4448
|
ignoreHidden: !0,
|
|
4427
4449
|
includeMergeOverflow: !0,
|
|
4428
4450
|
reuseContext: !0
|
|
4429
|
-
},
|
|
4451
|
+
}, ml = (e, t) => {
|
|
4430
4452
|
const o = Ge(), n = t?.showFormulas ?? !1, r = t?.showZeros ?? !0, l = t?.contentOnly ?? !1, [a, i] = te((e) => e + 1, 0), s = ee(() => ({}), [
|
|
4431
4453
|
a,
|
|
4432
4454
|
n,
|
|
@@ -4455,7 +4477,7 @@ var il = [], sl = Object.freeze([]), cl = (e) => {
|
|
|
4455
4477
|
u?.colEnd
|
|
4456
4478
|
]), (e) => {
|
|
4457
4479
|
e.isDataChange && (c.current.clear(), i());
|
|
4458
|
-
},
|
|
4480
|
+
}, pl), wo(e, { onConditionalFormatsChange: () => {
|
|
4459
4481
|
c.current.clear(), i();
|
|
4460
4482
|
} }, { ignoreModelChange: !0 }), {
|
|
4461
4483
|
getVisibleCells: Dt((t, o) => {
|
|
@@ -4485,7 +4507,7 @@ var il = [], sl = Object.freeze([]), cl = (e) => {
|
|
|
4485
4507
|
value: a,
|
|
4486
4508
|
range: i ?? void 0
|
|
4487
4509
|
});
|
|
4488
|
-
},
|
|
4510
|
+
}, hl), a.set(s, u), a.size > 12 && a.delete(a.keys().next().value), u;
|
|
4489
4511
|
}, [
|
|
4490
4512
|
e,
|
|
4491
4513
|
n,
|
|
@@ -4494,14 +4516,14 @@ var il = [], sl = Object.freeze([]), cl = (e) => {
|
|
|
4494
4516
|
]),
|
|
4495
4517
|
cacheToken: s
|
|
4496
4518
|
};
|
|
4497
|
-
},
|
|
4519
|
+
}, pl = {
|
|
4498
4520
|
fireOnAddressChange: !1,
|
|
4499
4521
|
transactional: !1
|
|
4500
|
-
},
|
|
4522
|
+
}, fl = {
|
|
4501
4523
|
ignoreHidden: !0,
|
|
4502
4524
|
includeMergeOverflow: !0,
|
|
4503
4525
|
reuseContext: !0
|
|
4504
|
-
},
|
|
4526
|
+
}, vl = (e, t) => {
|
|
4505
4527
|
const o = Ge(), [n, r] = te((e) => e + 1, 0), l = ee(() => ({}), [n, t]), a = oe(/* @__PURE__ */ new Map()), i = Dt(() => {
|
|
4506
4528
|
a.current.clear(), r();
|
|
4507
4529
|
}, []);
|
|
@@ -4519,14 +4541,14 @@ var il = [], sl = Object.freeze([]), cl = (e) => {
|
|
|
4519
4541
|
s?.colEnd
|
|
4520
4542
|
]), (e) => {
|
|
4521
4543
|
e.isDataChange && i();
|
|
4522
|
-
},
|
|
4544
|
+
}, wl), {
|
|
4523
4545
|
getVisibleDecorations: Dt((o, n) => {
|
|
4524
4546
|
const r = a.current, l = n ?? o.getVisibleRange();
|
|
4525
|
-
if (!l) return
|
|
4547
|
+
if (!l) return bl;
|
|
4526
4548
|
const i = `${l.rowStart}:${l.colStart}:${l.rowEnd}:${l.colEnd}`, s = r.get(i);
|
|
4527
4549
|
if (s) return s;
|
|
4528
4550
|
const c = e.getRange(l);
|
|
4529
|
-
let d =
|
|
4551
|
+
let d = bl;
|
|
4530
4552
|
if (c.getConditionalFormats().length > 0) {
|
|
4531
4553
|
const e = [];
|
|
4532
4554
|
c.forEach((o, n) => {
|
|
@@ -4539,16 +4561,16 @@ var il = [], sl = Object.freeze([]), cl = (e) => {
|
|
|
4539
4561
|
range: i,
|
|
4540
4562
|
decorations: l
|
|
4541
4563
|
});
|
|
4542
|
-
},
|
|
4564
|
+
}, fl), e.length > 0 && (d = e);
|
|
4543
4565
|
}
|
|
4544
4566
|
return r.set(i, d), r.size > 12 && r.delete(r.keys().next().value), d;
|
|
4545
4567
|
}, [e, t]),
|
|
4546
4568
|
cacheToken: l
|
|
4547
4569
|
};
|
|
4548
|
-
},
|
|
4570
|
+
}, bl = [], wl = {
|
|
4549
4571
|
fireOnAddressChange: !1,
|
|
4550
4572
|
transactional: !1
|
|
4551
|
-
},
|
|
4573
|
+
}, yl = K(U((e, t) => {
|
|
4552
4574
|
const { sheet: o, getVisibleCells: n, className: r, style: l, ...a } = e, i = Ge();
|
|
4553
4575
|
yo(o, ["onStyleChange", "onLayoutChange"]);
|
|
4554
4576
|
const s = Dt(n, [n]), c = i.getPaneBounds();
|
|
@@ -4614,10 +4636,10 @@ var il = [], sl = Object.freeze([]), cl = (e) => {
|
|
|
4614
4636
|
children: f
|
|
4615
4637
|
})
|
|
4616
4638
|
});
|
|
4617
|
-
})),
|
|
4639
|
+
})), Sl = {
|
|
4618
4640
|
error: "rgb(200,40,40)",
|
|
4619
4641
|
warning: "rgb(200,140,0)"
|
|
4620
|
-
},
|
|
4642
|
+
}, Cl = K((e) => {
|
|
4621
4643
|
const { sheet: t, placement: o = {
|
|
4622
4644
|
side: "r",
|
|
4623
4645
|
align: "start"
|
|
@@ -4664,7 +4686,7 @@ var il = [], sl = Object.freeze([]), cl = (e) => {
|
|
|
4664
4686
|
...(r = t.kind, {
|
|
4665
4687
|
font: "11px/1.5 system-ui, sans-serif",
|
|
4666
4688
|
color: "white",
|
|
4667
|
-
background:
|
|
4689
|
+
background: Sl[r],
|
|
4668
4690
|
padding: "3px 8px",
|
|
4669
4691
|
borderRadius: 4,
|
|
4670
4692
|
maxWidth: 260,
|
|
@@ -4680,8 +4702,8 @@ var il = [], sl = Object.freeze([]), cl = (e) => {
|
|
|
4680
4702
|
}
|
|
4681
4703
|
});
|
|
4682
4704
|
});
|
|
4683
|
-
|
|
4684
|
-
var
|
|
4705
|
+
Cl.displayName = "CellErrorLayer";
|
|
4706
|
+
var xl = (e) => {
|
|
4685
4707
|
const { length: t = 0, width: o = 1, dashArray: n = null, dashArrayAdditional: r = null, isDouble: l = !1, isAngled: a = !1, offsetX: i = 0, offsetY: s = 0, isVertical: c = !1, ...d } = e, u = (e) => {
|
|
4686
4708
|
let t = null;
|
|
4687
4709
|
if (e && o > 0) {
|
|
@@ -4727,7 +4749,7 @@ var Cl = (e) => {
|
|
|
4727
4749
|
d: p((c ? i : s) + f / 2 / m, w, w + v, f),
|
|
4728
4750
|
...d
|
|
4729
4751
|
}), b] });
|
|
4730
|
-
},
|
|
4752
|
+
}, ql = ({ getBorderAt: e, rendererBorder: t = kl, getVisibleCells: o, forceThinBorder: n = !1, defaultColor: r = "black" }) => {
|
|
4731
4753
|
const l = Dt(o, [o]);
|
|
4732
4754
|
return { renderLayer: ee(() => (o, a) => {
|
|
4733
4755
|
if (!e) return null;
|
|
@@ -4947,7 +4969,7 @@ var Cl = (e) => {
|
|
|
4947
4969
|
children: [S, y]
|
|
4948
4970
|
}, "borders");
|
|
4949
4971
|
}, [e]) };
|
|
4950
|
-
},
|
|
4972
|
+
}, kl = (e) => {
|
|
4951
4973
|
const { key: t, points: o, range: n, stroke: r, forceThinBorder: l = !1, isVertical: a = !1, edge: i, intersections: c, startExtend: d = 0, endExtend: u = 0, metrics: g } = e, h = s.BuiltInDefinitions.get(l ? s.StrokeStyle.Thin : r.getStyle());
|
|
4952
4974
|
if (!h) return null;
|
|
4953
4975
|
const m = ht.getDevicePixelRatio(), p = o[0], f = o[1], v = o[2], b = o[3], w = a ? "rowStart" : "colStart", y = a ? f : p, S = d;
|
|
@@ -4974,7 +4996,7 @@ var Cl = (e) => {
|
|
|
4974
4996
|
T.length > 0 && r < C && T.push(C - r), R.length > 0 && l < C && R.push(C - l);
|
|
4975
4997
|
}
|
|
4976
4998
|
const M = i === s.Edge.Right || i === s.Edge.Bottom ? "trailing" : "leading", A = ht.edgeTrailingShift(M, h.width, m), F = a ? -h.width / 2 / m + A : -S, E = a ? -S : -h.width / 2 / m + A;
|
|
4977
|
-
return ae(
|
|
4999
|
+
return ae(xl, {
|
|
4978
5000
|
offsetX: p + F,
|
|
4979
5001
|
offsetY: f + E,
|
|
4980
5002
|
length: C + S,
|
|
@@ -4986,12 +5008,12 @@ var Cl = (e) => {
|
|
|
4986
5008
|
isDouble: q,
|
|
4987
5009
|
isAngled: k
|
|
4988
5010
|
}, t);
|
|
4989
|
-
},
|
|
5011
|
+
}, Tl = se.Center, Rl = Object.freeze({
|
|
4990
5012
|
horizontal: !1,
|
|
4991
5013
|
vertical: !1
|
|
4992
|
-
}),
|
|
5014
|
+
}), Il = Se.EmptyTopLeft, Ml = (e, t) => ge.EmptyCell, Al = (e, t) => new Promise((e, t) => {
|
|
4993
5015
|
t("StaticBorderRenderer does not support scrolling");
|
|
4994
|
-
}),
|
|
5016
|
+
}), Fl = K((e) => {
|
|
4995
5017
|
const { getBorderAt: t, width: o, height: n, style: r, rowCount: l = 2, columnCount: a = 2, forceThinBorder: i, children: s, ...c } = e, d = oe(null), [u, { width: g, height: h }] = Yt(), m = o ?? g, p = n ?? h, f = ee(() => {
|
|
4996
5018
|
const e = [];
|
|
4997
5019
|
for (let t = 0; t < l; t++) for (let o = 0; o < a; o++) {
|
|
@@ -5005,7 +5027,7 @@ var Cl = (e) => {
|
|
|
5005
5027
|
});
|
|
5006
5028
|
}
|
|
5007
5029
|
return e;
|
|
5008
|
-
}, []), { renderLayer: v } =
|
|
5030
|
+
}, []), { renderLayer: v } = ql({
|
|
5009
5031
|
getVisibleCells: G((e) => f, [f]),
|
|
5010
5032
|
getBorderAt: t,
|
|
5011
5033
|
forceThinBorder: i
|
|
@@ -5051,7 +5073,7 @@ var Cl = (e) => {
|
|
|
5051
5073
|
focus: (e) => {
|
|
5052
5074
|
d.current?.focus(e);
|
|
5053
5075
|
},
|
|
5054
|
-
invalidate:
|
|
5076
|
+
invalidate: El,
|
|
5055
5077
|
setPointerCapture(e) {
|
|
5056
5078
|
d.current?.setPointerCapture(e);
|
|
5057
5079
|
},
|
|
@@ -5087,16 +5109,16 @@ var Cl = (e) => {
|
|
|
5087
5109
|
getBoundsFromRange: (e, t) => C,
|
|
5088
5110
|
getColumnSize: T,
|
|
5089
5111
|
getRowSize: R,
|
|
5090
|
-
getAllPanes: () => ({ [
|
|
5091
|
-
getAnchor: () =>
|
|
5112
|
+
getAllPanes: () => ({ [Tl]: A }),
|
|
5113
|
+
getAnchor: () => Tl,
|
|
5092
5114
|
getZoom: () => 1,
|
|
5093
5115
|
scrollTo: (e, t) => Promise.resolve(Se.EmptyTopLeft),
|
|
5094
|
-
scrollCellCoordsIntoView:
|
|
5095
|
-
getCellFromPointer:
|
|
5116
|
+
scrollCellCoordsIntoView: Al,
|
|
5117
|
+
getCellFromPointer: Ml,
|
|
5096
5118
|
getPaneFromPointer: () => A,
|
|
5097
|
-
getScrollOrientation: () =>
|
|
5098
|
-
getScrollTopLeft: () =>
|
|
5099
|
-
getFreezeTopLeft: () =>
|
|
5119
|
+
getScrollOrientation: () => Rl,
|
|
5120
|
+
getScrollTopLeft: () => Il,
|
|
5121
|
+
getFreezeTopLeft: () => Il
|
|
5100
5122
|
}, F = v(ue.EmptyObject, A);
|
|
5101
5123
|
return ie("div", {
|
|
5102
5124
|
style: {
|
|
@@ -5116,10 +5138,10 @@ var Cl = (e) => {
|
|
|
5116
5138
|
children: s
|
|
5117
5139
|
}), F]
|
|
5118
5140
|
});
|
|
5119
|
-
}),
|
|
5141
|
+
}), El = () => {}, Dl = K(U((e, t) => {
|
|
5120
5142
|
const { sheet: o, getVisibleCells: n, className: r, ...l } = e, a = Ge();
|
|
5121
5143
|
yo(o, ["onStyleChange", "onLayoutChange"]);
|
|
5122
|
-
const { renderLayer: i } =
|
|
5144
|
+
const { renderLayer: i } = ql({
|
|
5123
5145
|
getVisibleCells: n,
|
|
5124
5146
|
getBorderAt: Dt((e, t) => e.getStyle().getBorder(), [])
|
|
5125
5147
|
});
|
|
@@ -5134,10 +5156,10 @@ var Cl = (e) => {
|
|
|
5134
5156
|
children: s
|
|
5135
5157
|
})
|
|
5136
5158
|
}) : null;
|
|
5137
|
-
})),
|
|
5159
|
+
})), Pl = K((e) => {
|
|
5138
5160
|
const { sheet: t, sheetView: o, renderCell: n, propsCellRender: r, editable: l, className: a, ...i } = e, s = Ge(), c = $t();
|
|
5139
5161
|
yo(o, ["onZoomScaleChange"]);
|
|
5140
|
-
const d = o.isShowFormulas(), u = o.isShowZeros(), { getVisibleCells: g, cacheToken: h } =
|
|
5162
|
+
const d = o.isShowFormulas(), u = o.isShowZeros(), { getVisibleCells: g, cacheToken: h } = ml(t, {
|
|
5141
5163
|
showFormulas: d,
|
|
5142
5164
|
showZeros: u,
|
|
5143
5165
|
contentOnly: !0
|
|
@@ -5207,9 +5229,9 @@ var Cl = (e) => {
|
|
|
5207
5229
|
}), w]
|
|
5208
5230
|
}) : null;
|
|
5209
5231
|
});
|
|
5210
|
-
|
|
5211
|
-
var
|
|
5212
|
-
const { sheet: t, onColumnButtonMouseDown: o, propsColumnButton: n, renderColumnButton: r = Uo, ...l } = e, { cacheToken: a } =
|
|
5232
|
+
Pl.displayName = "SheetCellLayer";
|
|
5233
|
+
var Nl = K((e) => {
|
|
5234
|
+
const { sheet: t, onColumnButtonMouseDown: o, propsColumnButton: n, renderColumnButton: r = Uo, ...l } = e, { cacheToken: a } = dl(t), i = Dt((e, o) => {
|
|
5213
5235
|
const n = o ?? e.getVisibleRange();
|
|
5214
5236
|
if (!n) return [];
|
|
5215
5237
|
const r = t.getTables().getItems({ address: n }), l = t.getAutoTable(), a = l && l.getRange().getIntersect(n) ? [...r, l] : r;
|
|
@@ -5282,22 +5304,22 @@ var Pl = K((e) => {
|
|
|
5282
5304
|
cacheToken: a
|
|
5283
5305
|
});
|
|
5284
5306
|
});
|
|
5285
|
-
|
|
5286
|
-
var
|
|
5307
|
+
Nl.displayName = "SheetColumnButtonLayer";
|
|
5308
|
+
var Ll = (e, t) => {
|
|
5287
5309
|
if (void 0 === e && void 0 === t) return;
|
|
5288
5310
|
const o = {};
|
|
5289
5311
|
return void 0 !== e && (o.stroke = e), void 0 !== t && (o.strokeDasharray = t), o;
|
|
5290
|
-
},
|
|
5312
|
+
}, zl = K((e) => {
|
|
5291
5313
|
const { sheet: t, sheetView: o, className: n, ...r } = e;
|
|
5292
5314
|
yo(t, ["onStyleChange"]), yo(o, ["onZoomScaleChange"]);
|
|
5293
|
-
const { getVisibleCells: l, cacheToken: a } =
|
|
5315
|
+
const { getVisibleCells: l, cacheToken: a } = ml(t, { showFormulas: o.isShowFormulas() }), i = (o?.getZoomScale() ?? 100) / 100, s = o.isShowColumnGridlines(), c = o.isShowRowGridlines(), d = ee(() => ({
|
|
5294
5316
|
vertical: s && i >= .4,
|
|
5295
5317
|
horizontal: c && i >= .4
|
|
5296
5318
|
}), [
|
|
5297
5319
|
s,
|
|
5298
5320
|
c,
|
|
5299
5321
|
i
|
|
5300
|
-
]), u = o?.getGridLineColor(), g = t.getStyles().getNormal(), h = g.getBorder(), p = g.getFill().getType() === m.Type.None, f = u?.toCSS("adaptive") ?? "var(--sxl-color-base-300)", v = (e) => e.isNone() ? p ? void 0 : "none" : e.getColor().toCSS("adaptive"), b = v(h.getBottom().isNone() ? h.getTop() : h.getBottom()), w = v(h.getRight().isNone() ? h.getLeft() : h.getRight()), y = u ? "1,1" : void 0, S = ee(() =>
|
|
5322
|
+
]), u = o?.getGridLineColor(), g = t.getStyles().getNormal(), h = g.getBorder(), p = g.getFill().getType() === m.Type.None, f = u?.toCSS("adaptive") ?? "var(--sxl-color-base-300)", v = (e) => e.isNone() ? p ? void 0 : "none" : e.getColor().toCSS("adaptive"), b = v(h.getBottom().isNone() ? h.getTop() : h.getBottom()), w = v(h.getRight().isNone() ? h.getLeft() : h.getRight()), y = u ? "1,1" : void 0, S = ee(() => Ll(b, y), [b, y]), C = ee(() => Ll(w, y), [w, y]);
|
|
5301
5323
|
return ae(Me, {
|
|
5302
5324
|
...r,
|
|
5303
5325
|
className: ot(n, "gridlines"),
|
|
@@ -5309,14 +5331,14 @@ var Nl = (e, t) => {
|
|
|
5309
5331
|
cacheToken: a
|
|
5310
5332
|
});
|
|
5311
5333
|
});
|
|
5312
|
-
|
|
5313
|
-
var
|
|
5334
|
+
zl.displayName = "SheetGridLineLayer";
|
|
5335
|
+
var Bl = "data:image/webp;base64,UklGRhIPAABXRUJQVlA4TAYPAAAv/8F/EM8HIZJtWU0fdlTh3wRCIMlkE+EqkiTFyt57/KQ8/zKeEf5iaseNJClS1DGDxWcwvhfuCo5tW88SHw8Xh5ypbC3tnf8QHEfOB/D97w4PuFHBIx6MHJ74zvj/0aLdlH9AYWEjHiwOJR5M7Q+FAigmTRQOJRqczrVUKABQSMYgoAFFAhIwBkgaYEkBSABowDGgcYakUZirArQhRMUIIHGLBIAEEoDRfyokIAEAMhrSRmEOSPyS/jvR+BYFIWkUhLQhCpLGGQ2rhPiCOKPxDIVQmAZQDMYIjCTfNQXVJv8pnQqhuAonnczGDPv0VwFw/w+uGiAwQYjJXxffaJzROKPHoArGAPA+6o9AtiIj4XgAWGKCwAQBVNMSHQNEjTMqOSWPQEFRHOVl4vp/nnhI/DBNK8CGXCpeFvONip/jvPn67qb957v+Nssyv96/Jwg/xzT9yORhfR4fb6vF9ef39Nt62g55v37/7dRzfx9xFLRtIyX8ae+/AxARE8APxbCQtkidoqVGDBDxR3r8/59vo88vnW07v9nrY+l0tn0zemuSnn03W83Otn2zcarbfIrZqnG7Ykr77/nS5PP+/E6/iP7DgiRJiZX13F2QhYM/OrBtm7at/ZB927Zt27ZtPr/oK7Jt27b9x7dtGxcv1sFcc/R1woj+S2IkSZGkaXMpD2sZhqf3R5Y/23+2/2z/2f6z/Wf7z/af7T/bf7b/bP/97S8/r8tpn2+Rafa98ufeMc3nfK8v3V9QZHWVtFs5f/i2z8bd7+E/nX/Vuk9+uO6dF3IuWEy12r0S9eGUdA5q0RtuvnxxXpUFVPf5eQlfe7jG8j58Q6+uZZZNRGmv+GgOidbMMHMMy/WbJu7az/wcUqUk9C01LJNj5tZsDsnuizfPWh/F3WdN4FDO/eiYow4LozJuhpfDoPtcywyr8pAYDpv2RlmOB1TF7fBymPXAqA4Wwskrp3JY9oVZZA2efmm8m8O2Xa796tcoMprDvA2DAprXfkYWC9C0eflat2xrBgtRrKuDwgXemsKS5I6vr2zVzq9ZnLbUUzSHL5lFast+JTPi1rJUZWzN1bBuSSxZ7pvqaFfeVpYub2QtzaqI3McCtsppqPXPTWc0C9kjB3TqyFcsZ54b8/XpXJSHRW23qU1LJrC4PdFRlWsMzWCJ815ZpUYDU1no7mqiQ7VvYbnz9zIUaOkqFr3tZ7XnfKSHhe/+ON3pNJblL8N1QXEG+xlCXzXXmvKZjKJYn9IWKV7POMqIqlaYVtEMpU0l6lq46Eo3g2lvO2WtRPoB48m/SFXjwt3JiMqYp6eJkHWTGVQ3BZSky30Mq0/KVMTnZ2BN6aggV2UwtPa0UI+rGV1pylkm1RjB+IpZqpoxRG5ghGW/oZjr9xlj+xarZSiBBEaZe5BSxhK4jXHmeVElj/2Bkeb2KeQVzWKs7eumDnMZbemtlGEU4236UVUYyojb3UATK5Yx5lY30sOqRVlBn3YPdqKCgrexZ7SwcknQP13bfjWC6nD1XEcreHs8QgXOTg369bDmlxFQNU28mRpwYUMNXDcTQVXC2woYTOo2DrJxk1+ZQ9/9PIeNprjRs72ij4H2wbdZjdzdTDYizUXG9P3gnfZGDVy3gFMxD5ZBN9U7BWoJpoK2OpBvHvbYArWBUlFDgXu8QG2BVJanG2xLxC/UckNZZ6Om5VZmnd1NQfvtrRJzByPGXHr8ohqyn/eOr0MIZXAJZFvF1zGAUvC0AuzT+LpgXxJ7K/BuK/jA8LpiXhpPwZ3dcFN4XbIukUVgnVR01Y4WhVi19KLTC6Ca/vD4uevReM40PgHVY9GFMC2bHkAtG10Qy9K5rzHOLQkcGVwYwxJ6H+fspuAC2ZVSG5Rbjg0ulFk5Ta2FcUHTvcqtGrCo7aqZFo2EaK3oOXi0mpOO+xoinOB8cGgF2JTYrQC9EFoRJqV2Gp6Z3oisEItymxKBbniR+yIrxqDsBoCzUGQFpS+93fnYNiO4Z6FVwxc1WjXpotdCc0HoXHRMPucfY0qQTXJ6L+jqGCY0EzekcaOm+LY/g4PSCGCuirwgDtJ4dePy/uCvg2tJ8wNkhDzmObBsJDkhj7OagtL3rrwAhX84mnWiv8Yz+M/IXgyZHTFNc3jZ7dLYfSNo5uA2EpLzJT/c8b1liOY47CtHKOEfj+xcyRJ2vCqAx0MyRR2zE88uwr4hV9RxkoHGeIDv93Cf8aVotiT/uiTb0X+uKfFgnCw5Y473FWJxu7whx/wull0JkMwhx5MMJJ6UPeKYjyCZ43iw/BHHTwOxtAQAOPafwGEExem+vKd794bhxzckhNFvDgGbYbhCgoAbe46jcKsw0MbcH4Qv3hAH2vgOHIsbg4CNPScxuFcoWGPuhWFX8WnO/gt7hufPIVhSEstIOjN7ChF4WDhIY34RwcqGb4uHWfjnPZwmAQGN73PI7xkh4Yy5nvzuFhPOeKj4OkhQsqeJF9qz0DXAWB45sBFU7K6QXoKENTLOzPyC9PYIDGR8sfBOscikTwfzHp3MJlOPcujyB2TnYjiEMbeUfn0jOoRxP9GVeRgPYPyk6FqH3AaAUh5ZkOL4hpC/XLOim8/yXQ3yxXxWck9o4gb3h85/inFrhLfLQf3iIZIPNfmWLFQvniG4DyUPtYvHij7V0UXl4uxqua0vG3WLOUduNxjdELBn98vm8Jroy5z5jCSzJpY9m/CWnF43NYtvlHu8CclKxeJPxDabzNQrfkBsZ8pNteLMCKmdIDu1irmj1LaRn1rFraT2oAxVKh4oNcuHj7aRx9FNhof3pPaq5Djyzsi2RD3sDXmCSAejD/wqmeIM3y7JzS1b9YkfkfpAIchXdeI1Yu9ZqrHaxNOFdqGcVSbmgMyW974v2DmPb3A+lMhsbcl6rMrMXCCz9WSuKnFDmW0gdzWJc2S2suxVJO4s9YiT/uoRt5TZ1gJQjbitzMaJQC3iFVJfqhAElYiX6M3VCQ7FijMOokpYIfSTMFQLbYV+QQhlobUXtDJB9dBZ6OnOAFVEjtDznfyribpCz3e2ryoKLP9yJ4Uyu9x+rsmYUS2zS7yrjDSpjwuidbXxtdCmda46NghtGuPq4yOphx071LYKeZ+E7hXXamTk37XjTjzo+gqq0ThI7L2Nq9X7Z7Gexp1aq1ofnovVNO7cmfX67FyspXEnP/P74qxa1uho3Omrm6ZePpF73PkPzL41q5gbSOzu8PrOvGbek9uoXvF2Z1bKbQOvd8yajU3kdpHRx+W6yY4QfGfjfT4tV87dJLfBD1y+Kqudm0jwjjX5orx6+ol+ISM9viernxV/5+53wqw94f3OSCHJ/XII3Z/23S+tgPeHH5DovQgYoAWye5ovQkdldwpehNIDspuOLkSPkfDdCXaXo+7Pdj8G87pGemPRgnRI/Eua2/Pd78zMMvH3OhxtZhw/I/G7AytM78lvS6o4lQI4YuRQcbofwH5n//w6UqDeJwDtSBSpNyEcXSigSHkgHIqUqXq6x53xGUFoV56ZdHwZg41hYuU5jsF0b6AE6zEC0fEk0RqAwpIg0XKXwDiC6G9ghGsLwWgXolUZFzVxWAxjph3TgRyLsuFHIATsfQLS1gQRWw7laOMARGyyQUi61z5k/QiKRd1Dtq8Qi79e847ZDst/3Al+ROO7N6xn5HGtQWh62DdqiwiOWWyjtipAeLrXNGzvQjq40J5hu/ccIoPvOcbtUlBnFMF8VdZFswowGX6U4Yl+2KOLQHWiW+D2NUPl5/29Ijcb2NEGtYqc/ySw0wlzV2+038muI2AtFXWS2zCsewq3gsl+ZytEZnC/Xmi/011M0FpQYSPW/QRcwWC/80WfA3fcCXdOr2+ElFz+/U74CoFrnkPjFCy97I2tInRdo9T6RkgGku93yrYEz68HZdY3QrKQungC2DoKVCQTifM3g3g6yfboZfY76zCC2CeKHAvMNmPW/U47vogw9kKo4KzkLGMFzONOfFSo0Myk3O3A3xLMLlKowOxk3O/MtQlnj8QKy1C+/U69koCa6/BYQVnK1kcEtUV6kP1OvqsRVkOuV+wYMpuOqfY7ew8C26/7B+s6Y4maQXC7VMG6zFqaHigmvK0aravMZfm5E7SFfMJhdo/WRfZy/NwZ5hHk5vkgWscByNAj1YS5CxStwxCUb3dTQt2T4ToKQvGfO0kbgu3f28J1EIbCP3eWKwl40x8Yrm0ginaLQcg79ZCgX7UJRcEmnSPsncBBv2oZjGLF5sA/70y3oj/vTIcVcIpRHw3+nS1mnLHIzH1JAdV+MPhXk4WkRC5SQU1Sg3711QgJSnwfRWjhFPPuQ33e2b4oIi30WgZDblUd0kPzIbsvhzTRMMCm1yNddClc3iPqOO+ULrD2HSJ15EiEyr2YFFJVPFCeHqSSAh/gvPsZtZx32ptQPkd3xZx24NkYX1EbIsVczQUotivppivhSW1J2undDHDzGhqQfno+HZmHCkhDtYzG5fZzpKOOTUblxmrSUic2gjrv9KSoym8GJH0l6SozC40J9UlbHUnB4vETpK9OPorkZURWkcY6H4VjEbPupLWe9WKwriHpreZfIniyqPOkuSLmuaU3rRtpr4N7hf9/4yfSX+d2Sj6tqZdBKsx5j9Tu6EBa7IRLZLt6OUiRHZoqr62NSJddiHTLKsVJ+uzAWElXLBheRhrN4ZwmpcdakFarNS9bxDnMToMUW9148cTMKyfldvpu0WTecJz0mxEn1x2e+DzScQ6fTAsmZ2xtTz+n5juS5bGlM+m66meSZPl7Y2dnUnjLtmaIsSpxVEdSerkuvwiTmOedIMV38uKUcHfXqwFSflVL4zPDeJxhV3uyBB2/cnx4+sK8QJahqm47Y8PNg9c0JItRedyM2PAxMWqZQVakyrgZMeFg7y8PsS7VeuO70P4bxP3ZRaUGWZ6OmVv9oSk63llBVqkLh4Zt9IaW1Tt6tjfIYhWRY86YGCKH/WWGmUOWraaHxzw1yV2DMxQ2zHq51Tmyfl2o99bI25Jig2vP54ljDp9ykLWsdj3fkO9vvWPKtL8wndo7YeztOy8bcKh5OVncyhq2XNrd96ZpLrjy5/qYb/l8S7q2r1NJlj/bf7b/bP/Z/rP9Z/vP9p/tP9t/tv9s//3djwA=", Ol = K(U((e, t) => {
|
|
5314
5336
|
const { children: o, disabled: n, style: r, picture: l, description: a, tile: i, offsetX: s = 0, offsetY: c = 0, isDragging: d, onHide: u, onShow: g, onKeyDownCapture: h, onFocus: m, onBlur: p, loadingPanel: f, ...v } = e, [b, w] = ne(!1), [y, S] = ne(null), [C, x] = ne(null), [q, k] = ne(null);
|
|
5315
5337
|
X(() => {
|
|
5316
5338
|
x(null), l.getDetails().then((e) => {
|
|
5317
5339
|
w(!1), x(e.asUrl()), e.asSVGText?.() && k(e.asSVGText());
|
|
5318
5340
|
}).catch((e) => {
|
|
5319
|
-
console.warn(e), w(!0), x(
|
|
5341
|
+
console.warn(e), w(!0), x(Bl), k(null);
|
|
5320
5342
|
});
|
|
5321
5343
|
}, [l]);
|
|
5322
5344
|
const T = Ht(t, () => ({ isPictureEditor: () => !0 }), []), R = ee(() => {
|
|
@@ -5346,7 +5368,7 @@ var zl = "data:image/webp;base64,UklGRhIPAABXRUJQVlA4TAYPAAAv/8F/EM8HIZJtWU0fdlT
|
|
|
5346
5368
|
S(!0);
|
|
5347
5369
|
},
|
|
5348
5370
|
onError: ({ currentTarget: e }) => {
|
|
5349
|
-
console.log("error"), e.onerror = null, x(
|
|
5371
|
+
console.log("error"), e.onerror = null, x(Bl), w(!0);
|
|
5350
5372
|
},
|
|
5351
5373
|
alt: a ?? `${l.getType()}`
|
|
5352
5374
|
});
|
|
@@ -5380,8 +5402,8 @@ var zl = "data:image/webp;base64,UklGRhIPAABXRUJQVlA4TAYPAAAv/8F/EM8HIZJtWU0fdlT
|
|
|
5380
5402
|
children: [y || b ? void 0 : f, R]
|
|
5381
5403
|
});
|
|
5382
5404
|
}));
|
|
5383
|
-
|
|
5384
|
-
var
|
|
5405
|
+
Ol.displayName = "PictureEditor";
|
|
5406
|
+
var Hl = K(U((e, t) => {
|
|
5385
5407
|
const { sheet: o, className: n, style: r, ...l } = e, a = Ge(), [i, s] = ne(() => o.getPicture()), c = ee(() => {
|
|
5386
5408
|
const e = o.getStyles();
|
|
5387
5409
|
return e.getNormal().getFill().getType() === m.Type.None ? { backgroundColor: "var(--sxl-sys-color-window)" } : e.getNormal().getFill().toCSS("adaptive");
|
|
@@ -5408,7 +5430,7 @@ var Ol = K(U((e, t) => {
|
|
|
5408
5430
|
...c,
|
|
5409
5431
|
...r
|
|
5410
5432
|
},
|
|
5411
|
-
children: i ? ae(
|
|
5433
|
+
children: i ? ae(Ol, {
|
|
5412
5434
|
picture: i,
|
|
5413
5435
|
tile: !0,
|
|
5414
5436
|
offsetX: u?.x ?? 0,
|
|
@@ -5417,13 +5439,13 @@ var Ol = K(U((e, t) => {
|
|
|
5417
5439
|
})
|
|
5418
5440
|
});
|
|
5419
5441
|
}));
|
|
5420
|
-
|
|
5421
|
-
var
|
|
5442
|
+
Hl.displayName = "SheetBackgroundLayer";
|
|
5443
|
+
var Vl = (e) => e.getSelectedRuns().map((e) => `${e.min}-${e.max}:${e.value ? "A" : "s"}`).join("|"), $l = K((e) => {
|
|
5422
5444
|
const { header: t, renderCell: o, className: n, ...r } = e, [l, a] = te((e) => e + 1, 0), i = ee(() => ({}), [l]);
|
|
5423
5445
|
wo(t, { onSizesChange: () => a() }, { ignoreModelChange: !0 });
|
|
5424
|
-
const s = oe(
|
|
5446
|
+
const s = oe(Vl(t));
|
|
5425
5447
|
return wo(t.getSheet()?.getSelection(), { onChange: () => {
|
|
5426
|
-
const e =
|
|
5448
|
+
const e = Vl(t);
|
|
5427
5449
|
e !== s.current && (s.current = e, a());
|
|
5428
5450
|
} }), ae(qe, {
|
|
5429
5451
|
...r,
|
|
@@ -5432,14 +5454,14 @@ var Hl = (e) => e.getSelectedRuns().map((e) => `${e.min}-${e.max}:${e.value ? "A
|
|
|
5432
5454
|
cacheToken: i
|
|
5433
5455
|
});
|
|
5434
5456
|
});
|
|
5435
|
-
|
|
5436
|
-
var
|
|
5457
|
+
$l.displayName = "SheetHeaderCellLayer";
|
|
5458
|
+
var _l = Object.freeze({
|
|
5437
5459
|
x: 0,
|
|
5438
5460
|
y: 0,
|
|
5439
5461
|
width: 0,
|
|
5440
5462
|
height: 0
|
|
5441
|
-
}),
|
|
5442
|
-
const { children: o, movable: n, overrideBounds: r, onRefLoad: l, onRefUnload: a, onHide: i, onShow: s, onUnFocus: c, isDragging: d, dragStart: u, style: g, disabled: h, renderMovable: m, onReposition: p, ...f } = e, v = Ge(), [b, w] = ne(null), [y, S] = ne(!1), [, C] = te((e) => e + 1, 0), x = oe(null), q = r ?? n.getBounds(), k = q ? v.toPaneBounds(q) :
|
|
5463
|
+
}), Wl = { ignoreModelChange: !0 }, Ul = K(U((e, t) => {
|
|
5464
|
+
const { children: o, movable: n, overrideBounds: r, onRefLoad: l, onRefUnload: a, onHide: i, onShow: s, onUnFocus: c, isDragging: d, dragStart: u, style: g, disabled: h, renderMovable: m, onReposition: p, ...f } = e, v = Ge(), [b, w] = ne(null), [y, S] = ne(!1), [, C] = te((e) => e + 1, 0), x = oe(null), q = r ?? n.getBounds(), k = q ? v.toPaneBounds(q) : _l;
|
|
5443
5465
|
Q(() => {
|
|
5444
5466
|
n.isSelected() && !d && p?.();
|
|
5445
5467
|
}, [
|
|
@@ -5458,7 +5480,7 @@ var $l = Object.freeze({
|
|
|
5458
5480
|
const e = !!x.current && he.hasFocus(x.current, !0);
|
|
5459
5481
|
!y && !e || n.isSelected() || (v.focus(), c?.());
|
|
5460
5482
|
}
|
|
5461
|
-
}), wo(n, { onRequestFocus: () => x.current ? he.whenFocus(x.current, !0) : Promise.resolve(!1) },
|
|
5483
|
+
}), wo(n, { onRequestFocus: () => x.current ? he.whenFocus(x.current, !0) : Promise.resolve(!1) }, Wl), X(() => {
|
|
5462
5484
|
const e = x.current;
|
|
5463
5485
|
if (e) return l(e), () => {
|
|
5464
5486
|
a(e);
|
|
@@ -5520,7 +5542,7 @@ var $l = Object.freeze({
|
|
|
5520
5542
|
...f,
|
|
5521
5543
|
children: T
|
|
5522
5544
|
});
|
|
5523
|
-
})),
|
|
5545
|
+
})), Zl = "_movable-area_r4xkr_5", Kl = K(U((e, t) => {
|
|
5524
5546
|
const { movables: o, movablesView: n, renderMovable: r, transactional: l, onUnFocus: a, onFocus: i, disabled: s = !1, disableDrag: c = !1, disableResize: d = !1, className: u, style: g, renderDirections: h = [
|
|
5525
5547
|
"nw",
|
|
5526
5548
|
"n",
|
|
@@ -5587,7 +5609,7 @@ var $l = Object.freeze({
|
|
|
5587
5609
|
if (0 === e.length && 0 === F.current.size && !L) return null;
|
|
5588
5610
|
const t = (t, o, n, l = !0) => {
|
|
5589
5611
|
const a = t.isSelected(), i = L ? L[t.getId()] ?? null : null, d = !!i || a && (R || k);
|
|
5590
|
-
return ae(
|
|
5612
|
+
return ae(Ul, {
|
|
5591
5613
|
tabIndex: n,
|
|
5592
5614
|
movable: t,
|
|
5593
5615
|
overrideBounds: i,
|
|
@@ -5751,7 +5773,7 @@ var $l = Object.freeze({
|
|
|
5751
5773
|
Fe.current = !0;
|
|
5752
5774
|
const e = Z(async () => {
|
|
5753
5775
|
try {
|
|
5754
|
-
const e = await import("./
|
|
5776
|
+
const e = await import("./CZvaQUM2sezrZ_Yy.mjs");
|
|
5755
5777
|
return Fe.current = !1, De.current = !0, q([...x]), e;
|
|
5756
5778
|
} catch (e) {
|
|
5757
5779
|
throw console.warn(e), re.current?.(!1), e;
|
|
@@ -5849,7 +5871,7 @@ var $l = Object.freeze({
|
|
|
5849
5871
|
},
|
|
5850
5872
|
children: ae($e, {
|
|
5851
5873
|
fill: !0,
|
|
5852
|
-
className:
|
|
5874
|
+
className: Zl,
|
|
5853
5875
|
style: {
|
|
5854
5876
|
pointerEvents: "none",
|
|
5855
5877
|
...g,
|
|
@@ -5949,7 +5971,7 @@ var $l = Object.freeze({
|
|
|
5949
5971
|
})
|
|
5950
5972
|
})
|
|
5951
5973
|
}) : null;
|
|
5952
|
-
})),
|
|
5974
|
+
})), Gl = K(U((e, t) => {
|
|
5953
5975
|
const { children: o, disabled: n, style: r, movable: l, description: a, isDragging: i, onHide: s, onShow: c, ...d } = e;
|
|
5954
5976
|
X(() => {}, [a]);
|
|
5955
5977
|
const u = Ht(t, () => ({ isEmptyFrame: () => !0 }), []), [g, { height: h, width: m }] = Yt(), p = Ge();
|
|
@@ -5976,7 +5998,7 @@ var $l = Object.freeze({
|
|
|
5976
5998
|
},
|
|
5977
5999
|
children: a
|
|
5978
6000
|
});
|
|
5979
|
-
})),
|
|
6001
|
+
})), jl = (e) => {
|
|
5980
6002
|
let t = Number.MAX_SAFE_INTEGER, o = Number.MAX_SAFE_INTEGER, n = 0, r = 0;
|
|
5981
6003
|
for (const l of e) {
|
|
5982
6004
|
const e = l.getBounds();
|
|
@@ -5988,7 +6010,7 @@ var $l = Object.freeze({
|
|
|
5988
6010
|
width: n - t,
|
|
5989
6011
|
height: r - o
|
|
5990
6012
|
};
|
|
5991
|
-
},
|
|
6013
|
+
}, Xl = (e, t = !0) => {
|
|
5992
6014
|
const o = [], n = t ? "x" : "y", r = t ? "y" : "x", l = t ? "width" : "height";
|
|
5993
6015
|
let a = 0, i = Number.MAX_SAFE_INTEGER, s = 0;
|
|
5994
6016
|
for (const t of e) {
|
|
@@ -6008,7 +6030,7 @@ var $l = Object.freeze({
|
|
|
6008
6030
|
}
|
|
6009
6031
|
return d.set(o[o.length - 1].movable, o[o.length - 1].bounds), d;
|
|
6010
6032
|
};
|
|
6011
|
-
function
|
|
6033
|
+
function Yl(e, t) {
|
|
6012
6034
|
const o = t.sheet;
|
|
6013
6035
|
if (!o) return () => {};
|
|
6014
6036
|
const n = t, r = n?.notifier, l = n?.editModeHandler, a = (t, n, a, i) => {
|
|
@@ -6031,14 +6053,14 @@ function Xl(e, t) {
|
|
|
6031
6053
|
};
|
|
6032
6054
|
let s = !1;
|
|
6033
6055
|
const c = () => {
|
|
6034
|
-
0 !== o.getView().getMovableSelection().length ? (s || (a("moveToFront", Ce("op.bringToFront"), (e) => e.moveToFront()), a("moveForward", Ce("op.bringForward"), (e) => e.moveForward()), a("moveToBack", Ce("op.sendToBack"), (e) => e.moveToBack()), a("moveBackward", Ce("op.sendBackward"), (e) => e.moveBackward()), a("toggleLockAspectRatio", Ce("op.lockAspectRatio"), (e) => e.setLockAspectRatio(!e.isLockAspectRatio())), a("formatAnchorTypeTwoCell", Ce("op.anchor"), (e) => e.setAnchorType(i.Type.TwoCell)), a("formatAnchorTypeOneCell", Ce("op.anchor"), (e) => e.setAnchorType(i.Type.OneCell)), a("formatAnchorTypeAbsolute", Ce("op.anchor"), (e) => e.setAnchorType(i.Type.Absolute)), a("formatDrawAlignLeft", Ce("op.alignLeft"), (e, t) => e.setBounds({ x: t.x }),
|
|
6056
|
+
0 !== o.getView().getMovableSelection().length ? (s || (a("moveToFront", Ce("op.bringToFront"), (e) => e.moveToFront()), a("moveForward", Ce("op.bringForward"), (e) => e.moveForward()), a("moveToBack", Ce("op.sendToBack"), (e) => e.moveToBack()), a("moveBackward", Ce("op.sendBackward"), (e) => e.moveBackward()), a("toggleLockAspectRatio", Ce("op.lockAspectRatio"), (e) => e.setLockAspectRatio(!e.isLockAspectRatio())), a("formatAnchorTypeTwoCell", Ce("op.anchor"), (e) => e.setAnchorType(i.Type.TwoCell)), a("formatAnchorTypeOneCell", Ce("op.anchor"), (e) => e.setAnchorType(i.Type.OneCell)), a("formatAnchorTypeAbsolute", Ce("op.anchor"), (e) => e.setAnchorType(i.Type.Absolute)), a("formatDrawAlignLeft", Ce("op.alignLeft"), (e, t) => e.setBounds({ x: t.x }), jl), a("formatDrawAlignCenter", Ce("op.alignCenter"), (e, t) => e.setBounds({ x: (t.width - e.getBounds().width) / 2 + t.x }), jl), a("formatDrawAlignRight", Ce("op.alignRight"), (e, t) => e.setBounds({ x: t.width - e.getBounds().width + t.x }), jl), a("formatDrawAlignTop", Ce("op.alignTop"), (e, t) => e.setBounds({ y: t.y }), jl), a("formatDrawAlignMiddle", Ce("op.alignMiddle"), (e, t) => e.setBounds({ y: (t.height - e.getBounds().height) / 2 + t.y }), jl), a("formatDrawAlignBottom", Ce("op.alignBottom"), (e, t) => e.setBounds({ y: t.height - e.getBounds().height + t.y }), jl), a("formatDrawDistributeHorz", Ce("op.distributeHorizontally"), (e, t) => e.setBounds(t.get(e)), (e) => Xl(e, !0)), a("formatDrawDistributeVert", Ce("op.distributeVertically"), (e, t) => e.setBounds(t.get(e)), (e) => Xl(e, !1)), s = !0), (() => {
|
|
6035
6057
|
const t = o.getView().getMovableSelection()[0] ?? null;
|
|
6036
6058
|
e.updateCommand("formatAnchorTypeTwoCell", { state: t?.getAnchorType?.() === i.Type.TwoCell }), e.updateCommand("formatAnchorTypeOneCell", { state: t?.getAnchorType?.() === i.Type.OneCell }), e.updateCommand("formatAnchorTypeAbsolute", { state: t?.getAnchorType?.() === i.Type.Absolute }), e.updateCommand("toggleLockAspectRatio", { state: t?.isLockAspectRatio() ?? !1 });
|
|
6037
6059
|
})()) : s && (e.remove(), s = !1);
|
|
6038
6060
|
};
|
|
6039
6061
|
return c(), o.getView().addListeners({ onMovableSelectionChange: c });
|
|
6040
6062
|
}
|
|
6041
|
-
var { CommandScopeProvider:
|
|
6063
|
+
var { CommandScopeProvider: Jl } = rt, Ql = K(U((e, t) => {
|
|
6042
6064
|
const { sheet: o, className: n, propsMovable: r, renderMovable: l } = e;
|
|
6043
6065
|
yo(o, ["onProtectionChange"]);
|
|
6044
6066
|
const a = !o.getProtection().isObjectsAllowed();
|
|
@@ -6054,17 +6076,17 @@ var { CommandScopeProvider: Yl } = rt, Jl = K(U((e, t) => {
|
|
|
6054
6076
|
i,
|
|
6055
6077
|
s
|
|
6056
6078
|
]);
|
|
6057
|
-
return ae(
|
|
6079
|
+
return ae(Jl, {
|
|
6058
6080
|
spec: {
|
|
6059
6081
|
scopeName: {
|
|
6060
6082
|
key: "layer:movable",
|
|
6061
6083
|
name: "movable"
|
|
6062
6084
|
},
|
|
6063
|
-
contributor: { dynamic:
|
|
6085
|
+
contributor: { dynamic: Yl },
|
|
6064
6086
|
data: c
|
|
6065
6087
|
},
|
|
6066
6088
|
order: Je().zIndex,
|
|
6067
|
-
children: ae(
|
|
6089
|
+
children: ae(Kl, {
|
|
6068
6090
|
ref: t,
|
|
6069
6091
|
className: tt(n, "movable"),
|
|
6070
6092
|
movables: o.getMovables(),
|
|
@@ -6081,7 +6103,7 @@ var { CommandScopeProvider: Yl } = rt, Jl = K(U((e, t) => {
|
|
|
6081
6103
|
})
|
|
6082
6104
|
});
|
|
6083
6105
|
}));
|
|
6084
|
-
var
|
|
6106
|
+
var ea = new class {
|
|
6085
6107
|
constructor() {
|
|
6086
6108
|
this._taskPanes = /* @__PURE__ */ new Map();
|
|
6087
6109
|
}
|
|
@@ -6120,7 +6142,7 @@ var Ql = new class {
|
|
|
6120
6142
|
}
|
|
6121
6143
|
return t;
|
|
6122
6144
|
}
|
|
6123
|
-
}(),
|
|
6145
|
+
}(), ta = $(void 0), oa = ({ children: e, renderArea: t, onUpdateArea: o, registry: n = ea }) => {
|
|
6124
6146
|
const r = oe(null), l = oe(null), [a, i] = ne(null), [s, c] = ne(null), d = Dt((e) => {
|
|
6125
6147
|
const r = t({
|
|
6126
6148
|
registry: n,
|
|
@@ -6163,8 +6185,8 @@ var Ql = new class {
|
|
|
6163
6185
|
autoFocus: !0,
|
|
6164
6186
|
...a.options
|
|
6165
6187
|
}), i(null));
|
|
6166
|
-
}, [a, s]), _(
|
|
6167
|
-
},
|
|
6188
|
+
}, [a, s]), _(ta.Provider, { value: s ?? u }, e);
|
|
6189
|
+
}, na = {
|
|
6168
6190
|
activate(e, t) {
|
|
6169
6191
|
console.warn("No TaskPaneArea available to activate task pane", e, t);
|
|
6170
6192
|
},
|
|
@@ -6172,14 +6194,14 @@ var Ql = new class {
|
|
|
6172
6194
|
getOpen: () => ue.EmptyArray,
|
|
6173
6195
|
close: (e) => ue.DonePromise,
|
|
6174
6196
|
addListener: () => () => {}
|
|
6175
|
-
},
|
|
6176
|
-
const t = j(
|
|
6197
|
+
}, ra = (e = !1) => {
|
|
6198
|
+
const t = j(ta), [o, n] = te((e) => e + 1, 0);
|
|
6177
6199
|
return X(() => {
|
|
6178
6200
|
if (!e && t) return t.addListener({ onChange: () => {
|
|
6179
6201
|
n();
|
|
6180
6202
|
} });
|
|
6181
|
-
}, [t]), t ||
|
|
6182
|
-
},
|
|
6203
|
+
}, [t]), t || na;
|
|
6204
|
+
}, la = {
|
|
6183
6205
|
TaskPaneArea: "_TaskPaneArea_1m8hz_5",
|
|
6184
6206
|
TaskPaneTitle: "_TaskPaneTitle_1m8hz_13",
|
|
6185
6207
|
TaskPaneFrame: "_TaskPaneFrame_1m8hz_36",
|
|
@@ -6193,11 +6215,11 @@ var Ql = new class {
|
|
|
6193
6215
|
TaskPaneStripItemLabelOpen: "_TaskPaneStripItemLabelOpen_1m8hz_134",
|
|
6194
6216
|
TaskPaneStripItemLabelClip: "_TaskPaneStripItemLabelClip_1m8hz_139",
|
|
6195
6217
|
TaskPaneStripItemLabelText: "_TaskPaneStripItemLabelText_1m8hz_146"
|
|
6196
|
-
},
|
|
6218
|
+
}, aa = K(U((e, t) => {
|
|
6197
6219
|
const { children: o, title: n, icon: r, onClose: l, readOnly: a, focused: i, side: s = "right", style: c, className: d, ...u } = e;
|
|
6198
6220
|
return ie("div", {
|
|
6199
6221
|
ref: t,
|
|
6200
|
-
className: ee(() => tt("taskpane-title", d,
|
|
6222
|
+
className: ee(() => tt("taskpane-title", d, la.TaskPaneTitle, { focused: i }), [d, i]),
|
|
6201
6223
|
style: c,
|
|
6202
6224
|
...u,
|
|
6203
6225
|
children: [ae("div", {
|
|
@@ -6229,9 +6251,9 @@ var Ql = new class {
|
|
|
6229
6251
|
})]
|
|
6230
6252
|
});
|
|
6231
6253
|
}));
|
|
6232
|
-
|
|
6233
|
-
var
|
|
6234
|
-
const { children: o, entry: n, close: r, listenerContainer: l, model: a, args: i, onMounted: s, onUnmounted: c, wrapperPane: d, propsPane: u, componentTitle: g =
|
|
6254
|
+
aa.displayName = "TaskPaneTitle";
|
|
6255
|
+
var ia = K(U((e, t) => {
|
|
6256
|
+
const { children: o, entry: n, close: r, listenerContainer: l, model: a, args: i, onMounted: s, onUnmounted: c, wrapperPane: d, propsPane: u, componentTitle: g = aa, style: h, className: m, ...p } = e, [f, v] = ne(null), [b, w] = ne(null), y = Dt(r, [r]), S = Vt(), C = oe(null), x = oe(null);
|
|
6235
6257
|
X(() => (s?.(n), () => {
|
|
6236
6258
|
c?.(n);
|
|
6237
6259
|
}), [n]);
|
|
@@ -6284,7 +6306,7 @@ var aa = K(U((e, t) => {
|
|
|
6284
6306
|
d
|
|
6285
6307
|
]);
|
|
6286
6308
|
return ie("div", {
|
|
6287
|
-
className: tt("taskpane-frame", m,
|
|
6309
|
+
className: tt("taskpane-frame", m, la.TaskPaneFrame),
|
|
6288
6310
|
tabIndex: 0,
|
|
6289
6311
|
ref: C,
|
|
6290
6312
|
style: h,
|
|
@@ -6323,9 +6345,9 @@ var aa = K(U((e, t) => {
|
|
|
6323
6345
|
})]
|
|
6324
6346
|
});
|
|
6325
6347
|
}));
|
|
6326
|
-
|
|
6327
|
-
var
|
|
6328
|
-
const { children: o, title: n, side: r = "right", taskPanes: l, onSelect: a, selected: i, registry: s =
|
|
6348
|
+
ia.displayName = "TaskPaneFrame";
|
|
6349
|
+
var sa = K(U((e, t) => {
|
|
6350
|
+
const { children: o, title: n, side: r = "right", taskPanes: l, onSelect: a, selected: i, registry: s = ea, style: c, iconsOnly: d, className: u, ...g } = e, h = ee(() => l.map((e) => {
|
|
6329
6351
|
const t = s.getRegisteredTaskPane(e);
|
|
6330
6352
|
if (!t) return null;
|
|
6331
6353
|
let o = t.getIcon?.();
|
|
@@ -6333,17 +6355,17 @@ var ia = K(U((e, t) => {
|
|
|
6333
6355
|
const n = t.getTitle(), r = e === i, l = !o || !d && r;
|
|
6334
6356
|
return ie("div", {
|
|
6335
6357
|
title: l ? void 0 : n,
|
|
6336
|
-
className: tt("taskpane-strip-item",
|
|
6358
|
+
className: tt("taskpane-strip-item", la.TaskPaneStripItem, { selected: r }),
|
|
6337
6359
|
onClick: () => a(e),
|
|
6338
6360
|
children: [o ? ae("span", {
|
|
6339
|
-
className:
|
|
6361
|
+
className: la.TaskPaneStripItemIcon,
|
|
6340
6362
|
children: o
|
|
6341
6363
|
}) : null, ae("span", {
|
|
6342
|
-
className: tt(
|
|
6364
|
+
className: tt(la.TaskPaneStripItemLabel, { [la.TaskPaneStripItemLabelOpen]: l }),
|
|
6343
6365
|
children: ae("span", {
|
|
6344
|
-
className:
|
|
6366
|
+
className: la.TaskPaneStripItemLabelClip,
|
|
6345
6367
|
children: ae("span", {
|
|
6346
|
-
className:
|
|
6368
|
+
className: la.TaskPaneStripItemLabelText,
|
|
6347
6369
|
children: n
|
|
6348
6370
|
})
|
|
6349
6371
|
})
|
|
@@ -6359,15 +6381,15 @@ var ia = K(U((e, t) => {
|
|
|
6359
6381
|
]);
|
|
6360
6382
|
return ae("div", {
|
|
6361
6383
|
ref: Ht(t, () => ({ isTaskPaneStrip: () => !0 }), []),
|
|
6362
|
-
className: ee(() => tt("taskpane-strip", u,
|
|
6384
|
+
className: ee(() => tt("taskpane-strip", u, la.TaskPaneStrip), [u]),
|
|
6363
6385
|
style: c,
|
|
6364
6386
|
...g,
|
|
6365
6387
|
children: h
|
|
6366
6388
|
});
|
|
6367
6389
|
}));
|
|
6368
|
-
|
|
6369
|
-
var
|
|
6370
|
-
const { className: o = "", registry: n =
|
|
6390
|
+
sa.displayName = "TaskPaneStrip";
|
|
6391
|
+
var ca = K(U((e, t) => {
|
|
6392
|
+
const { className: o = "", registry: n = ea, model: r, onOpen: l, onClose: a, wrapperPane: i, propsPane: s, wrapperFrame: c, propsFrame: d, componentTitle: u, componentStrip: g = sa, alwaysShowStrip: h, side: m = "right", style: p } = e, f = "right" !== m, v = Dt(l, [l]), b = Dt(a, [a]), [w, y] = ne(null), S = oe(null), [C, x] = ne([]), [q, k] = ne({}), T = Dt((e, t) => {
|
|
6371
6393
|
k((o) => {
|
|
6372
6394
|
if (o[e] === t) return o;
|
|
6373
6395
|
const n = { ...o };
|
|
@@ -6417,7 +6439,7 @@ var sa = K(U((e, t) => {
|
|
|
6417
6439
|
T(e, t?.args);
|
|
6418
6440
|
const a = W(), c = { current: null }, g = {
|
|
6419
6441
|
key: e,
|
|
6420
|
-
elem: ae(
|
|
6442
|
+
elem: ae(ia, {
|
|
6421
6443
|
ref: (e) => {
|
|
6422
6444
|
c.current = e, null === e && (S.current = null);
|
|
6423
6445
|
},
|
|
@@ -6487,7 +6509,7 @@ var sa = K(U((e, t) => {
|
|
|
6487
6509
|
]), P = ee(() => {
|
|
6488
6510
|
if (C.length <= 1 && !h) return null;
|
|
6489
6511
|
const e = {
|
|
6490
|
-
className:
|
|
6512
|
+
className: la.TaskPaneAreaStrip,
|
|
6491
6513
|
taskPanes: Object.freeze(C.map((e) => e.key)),
|
|
6492
6514
|
selected: w?.key,
|
|
6493
6515
|
side: m,
|
|
@@ -6512,7 +6534,7 @@ var sa = K(U((e, t) => {
|
|
|
6512
6534
|
componentTitle: u,
|
|
6513
6535
|
...d
|
|
6514
6536
|
}), L = w?.key ?? null, z = c, B = 0 === C.length ? null : ae("div", {
|
|
6515
|
-
className:
|
|
6537
|
+
className: la.TaskPaneAreaFrames,
|
|
6516
6538
|
style: {
|
|
6517
6539
|
display: "flex",
|
|
6518
6540
|
flex: "1 1 100%",
|
|
@@ -6523,7 +6545,7 @@ var sa = K(U((e, t) => {
|
|
|
6523
6545
|
children: C.map((e) => {
|
|
6524
6546
|
const t = e.key === L;
|
|
6525
6547
|
return t || e.keepMounted ? ae("div", {
|
|
6526
|
-
className: tt(
|
|
6548
|
+
className: tt(la.TaskPaneAreaFrameHost, !t && la.TaskPaneAreaFrameHidden),
|
|
6527
6549
|
style: {
|
|
6528
6550
|
display: t ? "flex" : "none",
|
|
6529
6551
|
flex: "1 1 100%",
|
|
@@ -6537,20 +6559,20 @@ var sa = K(U((e, t) => {
|
|
|
6537
6559
|
let O = f ? P : B, H = f ? B : P;
|
|
6538
6560
|
return ie("div", {
|
|
6539
6561
|
ref: D,
|
|
6540
|
-
className: tt("taskpane-area", o,
|
|
6562
|
+
className: tt("taskpane-area", o, la.TaskPaneArea),
|
|
6541
6563
|
style: p,
|
|
6542
6564
|
children: [O, H]
|
|
6543
6565
|
});
|
|
6544
6566
|
}));
|
|
6545
|
-
|
|
6546
|
-
var
|
|
6567
|
+
ca.displayName = "TaskPaneArea";
|
|
6568
|
+
var da = "white", ua = "black", ga = (e, t) => {
|
|
6547
6569
|
const o = e.getStyle().getProperties(), n = (o.headerRow?.fill)?.background ?? o.wholeTable?.border?.top?.color?.toString();
|
|
6548
6570
|
if (n && t) {
|
|
6549
6571
|
const e = t.getStyles().parseColor(n);
|
|
6550
6572
|
if (e) return e.toCSS("adaptive");
|
|
6551
6573
|
}
|
|
6552
6574
|
return "var(--sxl-color-neutral, grey)";
|
|
6553
|
-
},
|
|
6575
|
+
}, ha = {
|
|
6554
6576
|
font: "11px/1.5 system-ui, sans-serif",
|
|
6555
6577
|
color: "white",
|
|
6556
6578
|
padding: "1px 8px",
|
|
@@ -6558,7 +6580,7 @@ var ca = "white", da = "black", ua = (e, t) => {
|
|
|
6558
6580
|
whiteSpace: "nowrap",
|
|
6559
6581
|
boxShadow: "0 1px 4px rgba(0,0,0,0.3)",
|
|
6560
6582
|
cursor: "default"
|
|
6561
|
-
},
|
|
6583
|
+
}, ma = ({ handleProps: e, size: t, background: o }) => {
|
|
6562
6584
|
const n = t / 2 - 1.5, r = t / 3;
|
|
6563
6585
|
return ae("div", {
|
|
6564
6586
|
...e,
|
|
@@ -6585,13 +6607,13 @@ var ca = "white", da = "black", ua = (e, t) => {
|
|
|
6585
6607
|
})
|
|
6586
6608
|
})
|
|
6587
6609
|
});
|
|
6588
|
-
},
|
|
6610
|
+
}, pa = (e, t) => ({
|
|
6589
6611
|
rowStart: e.rowStart,
|
|
6590
6612
|
colStart: e.colStart,
|
|
6591
6613
|
rowEnd: Math.max(e.rowStart, t.rowIndex),
|
|
6592
6614
|
colEnd: Math.max(e.colStart, t.colIndex)
|
|
6593
|
-
}),
|
|
6594
|
-
const { sheet: o, onEditTable: n, className: r, ...l } = e, a = Ge(), { visibleTables: i, cacheToken: s } =
|
|
6615
|
+
}), fa = `url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg' %3E%3Cg%3E%3Cpath d='M 8,14.5 2.3125,8.8125 h 3.25 V 1.5 h 4.875 v 7.3125 h 3.25 z' stroke='${ua}' fill='${da}'/%3E%3C/g%3E%3C/svg%3E%0A") 8 15, pointer`, va = `url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg' %3E%3Cg%3E%3Cpath d='m 14.5,8 -5.6875,5.6875 v -3.25 H 1.5 v -4.875 h 7.3125 v -3.25 z' stroke='${ua}' fill='${da}'/%3E%3C/g%3E%3C/svg%3E%0A") 15 8, pointer`, ba = `url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg' %3E%3Cg%3E%3Cpath d='M 13.24564,12.979958 H 5.2023009 L 7.500398,10.681861 2.3296796,5.5111425 5.7768252,2.0639969 10.947543,7.2347153 13.24564,4.9366182 Z' stroke='${ua}' fill='${da}'/%3E%3C/g%3E%3C/svg%3E%0A") 12 12, pointer`, wa = K(U((e, t) => {
|
|
6616
|
+
const { sheet: o, onEditTable: n, className: r, ...l } = e, a = Ge(), { visibleTables: i, cacheToken: s } = dl(o), c = ra(), d = Dt(async (e) => {
|
|
6595
6617
|
n ? await n(e) : (await e.select(), c.activate("tableDetails", {}));
|
|
6596
6618
|
}, [n]), [u, g] = ne(null), [h, m] = ne(null), [p, f] = ne(null), v = Ye({
|
|
6597
6619
|
openDelay: 0,
|
|
@@ -6694,7 +6716,7 @@ var ca = "white", da = "black", ua = (e, t) => {
|
|
|
6694
6716
|
width: Math.min(16, c.width),
|
|
6695
6717
|
height: c.height,
|
|
6696
6718
|
pointerEvents: "all",
|
|
6697
|
-
cursor:
|
|
6719
|
+
cursor: va
|
|
6698
6720
|
},
|
|
6699
6721
|
onMouseDown: R
|
|
6700
6722
|
}, `table-select-row-${t.getName()}`)), e.push(ae("div", {
|
|
@@ -6705,7 +6727,7 @@ var ca = "white", da = "black", ua = (e, t) => {
|
|
|
6705
6727
|
width: c.width,
|
|
6706
6728
|
height: Math.min(7, c.height),
|
|
6707
6729
|
pointerEvents: "all",
|
|
6708
|
-
cursor:
|
|
6730
|
+
cursor: fa
|
|
6709
6731
|
},
|
|
6710
6732
|
onMouseDown: I
|
|
6711
6733
|
}, `table-select-column-${t.getName()}`)), e.push(ae("div", {
|
|
@@ -6716,7 +6738,7 @@ var ca = "white", da = "black", ua = (e, t) => {
|
|
|
6716
6738
|
width: Math.min(16, c.width),
|
|
6717
6739
|
height: Math.min(16, c.height),
|
|
6718
6740
|
pointerEvents: "all",
|
|
6719
|
-
cursor:
|
|
6741
|
+
cursor: ba
|
|
6720
6742
|
},
|
|
6721
6743
|
onMouseDown: T
|
|
6722
6744
|
}, `table-select-${t.getName()}`)), e.push(ae(Ne, {
|
|
@@ -6755,9 +6777,9 @@ var ca = "white", da = "black", ua = (e, t) => {
|
|
|
6755
6777
|
d && d(b), e.stopPropagation();
|
|
6756
6778
|
},
|
|
6757
6779
|
style: {
|
|
6758
|
-
...
|
|
6780
|
+
...ha,
|
|
6759
6781
|
...v.tipProps.style,
|
|
6760
|
-
background:
|
|
6782
|
+
background: ga(b, o),
|
|
6761
6783
|
cursor: "pointer",
|
|
6762
6784
|
padding: "2px 6px",
|
|
6763
6785
|
display: "inline-flex",
|
|
@@ -6779,15 +6801,15 @@ var ca = "white", da = "black", ua = (e, t) => {
|
|
|
6779
6801
|
range: e === x && S ? S : t,
|
|
6780
6802
|
anchor: "br",
|
|
6781
6803
|
size: 12,
|
|
6782
|
-
background:
|
|
6783
|
-
renderHandle:
|
|
6804
|
+
background: ga(e, o),
|
|
6805
|
+
renderHandle: ma,
|
|
6784
6806
|
onDragStart: () => {
|
|
6785
6807
|
k.current = !0, q(e);
|
|
6786
6808
|
},
|
|
6787
|
-
onDragMove: (e, o) => C(
|
|
6809
|
+
onDragMove: (e, o) => C(pa(t, o)),
|
|
6788
6810
|
onDragEnd: (o, n) => {
|
|
6789
6811
|
k.current = !1, q(null), C(null);
|
|
6790
|
-
const r =
|
|
6812
|
+
const r = pa(t, n);
|
|
6791
6813
|
if (r.rowEnd !== t.rowEnd || r.colEnd !== t.colEnd) try {
|
|
6792
6814
|
e.resize(r);
|
|
6793
6815
|
} catch {}
|
|
@@ -6795,7 +6817,7 @@ var ca = "white", da = "black", ua = (e, t) => {
|
|
|
6795
6817
|
}, `table-resize-${e.getName()}`) : null;
|
|
6796
6818
|
}), N = x && S ? ae(Ne, {
|
|
6797
6819
|
range: S,
|
|
6798
|
-
stroke:
|
|
6820
|
+
stroke: ga(x, o),
|
|
6799
6821
|
alignWidth: 1
|
|
6800
6822
|
}) : null;
|
|
6801
6823
|
return ie(Ee, {
|
|
@@ -6810,7 +6832,7 @@ var ca = "white", da = "black", ua = (e, t) => {
|
|
|
6810
6832
|
]
|
|
6811
6833
|
});
|
|
6812
6834
|
}));
|
|
6813
|
-
function
|
|
6835
|
+
function ya(e, t) {
|
|
6814
6836
|
const { manager: o, notifier: n } = t;
|
|
6815
6837
|
if (!o) return () => {};
|
|
6816
6838
|
const r = { undoManager: o }, l = () => {
|
|
@@ -6851,12 +6873,12 @@ function wa(e, t) {
|
|
|
6851
6873
|
a();
|
|
6852
6874
|
};
|
|
6853
6875
|
}
|
|
6854
|
-
var
|
|
6855
|
-
function
|
|
6856
|
-
const { transaction: t, notifier: o, manager: n } = e, r = e.isRepeatable ?? ((e) => !
|
|
6876
|
+
var Sa = $(null), Ca = () => j(Sa), xa = (e, t) => !!e && (e.getTags?.() ?? []).includes(t);
|
|
6877
|
+
function qa(e) {
|
|
6878
|
+
const { transaction: t, notifier: o, manager: n } = e, r = e.isRepeatable ?? ((e) => !xa(e, "noRepeat"));
|
|
6857
6879
|
let l = Promise.resolve();
|
|
6858
6880
|
return (e) => (a, i) => {
|
|
6859
|
-
if (
|
|
6881
|
+
if (xa(i, "noTransaction")) return e(a, i);
|
|
6860
6882
|
const s = l.then(async () => {
|
|
6861
6883
|
const l = i?.getLabel?.() ?? void 0, s = o ? await Promise.resolve(o.showBusy(l ?? "Working…")) : null;
|
|
6862
6884
|
try {
|
|
@@ -6878,7 +6900,7 @@ function xa(e) {
|
|
|
6878
6900
|
return l = s.then(() => {}, () => {}), s;
|
|
6879
6901
|
};
|
|
6880
6902
|
}
|
|
6881
|
-
var
|
|
6903
|
+
var ka = ht.isEditable, Ta = [
|
|
6882
6904
|
"copy",
|
|
6883
6905
|
"cut",
|
|
6884
6906
|
"paste",
|
|
@@ -6886,38 +6908,38 @@ var qa = ht.isEditable, ka = [
|
|
|
6886
6908
|
"undo",
|
|
6887
6909
|
"redo"
|
|
6888
6910
|
];
|
|
6889
|
-
function
|
|
6890
|
-
const { clipboard: t } = e, o = new Set(e.keys ??
|
|
6911
|
+
function Ra(e) {
|
|
6912
|
+
const { clipboard: t } = e, o = new Set(e.keys ?? Ta);
|
|
6891
6913
|
return (e, n) => {
|
|
6892
|
-
if (!o.has(e) || !
|
|
6914
|
+
if (!o.has(e) || !ka(n)) return;
|
|
6893
6915
|
const r = n;
|
|
6894
6916
|
switch (e) {
|
|
6895
6917
|
case "copy": return {
|
|
6896
6918
|
callback: () => async function(e, t) {
|
|
6897
|
-
const o =
|
|
6919
|
+
const o = Fa(e);
|
|
6898
6920
|
o && await t.writeText(o);
|
|
6899
6921
|
}(r, t.getClipboard()),
|
|
6900
|
-
disabledReasons:
|
|
6922
|
+
disabledReasons: Ma(r) ? [] : [Ce("reason.noSelection")]
|
|
6901
6923
|
};
|
|
6902
6924
|
case "cut": return {
|
|
6903
6925
|
callback: () => async function(e, t) {
|
|
6904
|
-
const o =
|
|
6926
|
+
const o = Fa(e);
|
|
6905
6927
|
if (!o) return;
|
|
6906
6928
|
await t.writeText(o), function(e) {
|
|
6907
6929
|
if ("undefined" != typeof document && document.execCommand("delete")) return;
|
|
6908
|
-
if (
|
|
6930
|
+
if (Ia(e)) {
|
|
6909
6931
|
const t = e.selectionStart ?? 0, o = e.selectionEnd ?? t;
|
|
6910
6932
|
if (t === o) return;
|
|
6911
6933
|
e.setRangeText("", t, o, "end"), e.dispatchEvent(new Event("input", { bubbles: !0 }));
|
|
6912
6934
|
}
|
|
6913
6935
|
}(e);
|
|
6914
6936
|
}(r, t.getClipboard()),
|
|
6915
|
-
disabledReasons:
|
|
6937
|
+
disabledReasons: Ma(r) ? [] : [Ce("reason.noSelection")]
|
|
6916
6938
|
};
|
|
6917
6939
|
case "paste": return { callback: () => async function(e, t) {
|
|
6918
6940
|
const o = await t.readText();
|
|
6919
6941
|
o && function(e, t) {
|
|
6920
|
-
if (
|
|
6942
|
+
if (Ia(e)) {
|
|
6921
6943
|
const o = e.selectionStart ?? e.value.length;
|
|
6922
6944
|
ht.replaceRangeText(e, o, e.selectionEnd ?? o, t);
|
|
6923
6945
|
return;
|
|
@@ -6927,38 +6949,38 @@ function Ta(e) {
|
|
|
6927
6949
|
}(r, t.getClipboard()) };
|
|
6928
6950
|
case "selectAll": return {
|
|
6929
6951
|
callback: () => function(e) {
|
|
6930
|
-
|
|
6952
|
+
Ia(e) ? e.select() : "undefined" != typeof document && document.execCommand("selectAll");
|
|
6931
6953
|
}(r),
|
|
6932
|
-
disabledReasons:
|
|
6954
|
+
disabledReasons: Aa(r) ? [] : [Ce("reason.nothingToSelect")]
|
|
6933
6955
|
};
|
|
6934
|
-
case "undo": return { callback: () =>
|
|
6935
|
-
case "redo": return { callback: () =>
|
|
6956
|
+
case "undo": return { callback: () => Ea("undo") };
|
|
6957
|
+
case "redo": return { callback: () => Ea("redo") };
|
|
6936
6958
|
default: return;
|
|
6937
6959
|
}
|
|
6938
6960
|
};
|
|
6939
6961
|
}
|
|
6940
|
-
function
|
|
6962
|
+
function Ia(e) {
|
|
6941
6963
|
const t = e.tagName;
|
|
6942
6964
|
return "INPUT" === t || "TEXTAREA" === t;
|
|
6943
6965
|
}
|
|
6944
|
-
function
|
|
6945
|
-
if (
|
|
6966
|
+
function Ma(e) {
|
|
6967
|
+
if (Ia(e)) return (e.selectionStart ?? 0) !== (e.selectionEnd ?? 0);
|
|
6946
6968
|
const t = "undefined" != typeof window ? window.getSelection() : null;
|
|
6947
6969
|
return !!t && !t.isCollapsed && t.toString().length > 0;
|
|
6948
6970
|
}
|
|
6949
|
-
function Ma(e) {
|
|
6950
|
-
return Ra(e) ? e.value.length > 0 : (e.textContent ?? "").length > 0;
|
|
6951
|
-
}
|
|
6952
6971
|
function Aa(e) {
|
|
6953
|
-
return
|
|
6972
|
+
return Ia(e) ? e.value.length > 0 : (e.textContent ?? "").length > 0;
|
|
6954
6973
|
}
|
|
6955
6974
|
function Fa(e) {
|
|
6975
|
+
return Ia(e) ? e.value.substring(e.selectionStart ?? 0, e.selectionEnd ?? 0) : ("undefined" != typeof window ? window.getSelection()?.toString() : "") ?? "";
|
|
6976
|
+
}
|
|
6977
|
+
function Ea(e) {
|
|
6956
6978
|
"undefined" != typeof document && document.execCommand(e);
|
|
6957
6979
|
}
|
|
6958
|
-
var { useCommandResolver:
|
|
6980
|
+
var { useCommandResolver: Da } = rt, Pa = () => {
|
|
6959
6981
|
const e = Ot(), t = oe(e);
|
|
6960
6982
|
t.current = e;
|
|
6961
|
-
const o = ee(() =>
|
|
6983
|
+
const o = ee(() => Ra({ clipboard: { getClipboard: () => t.current.getClipboard() } }), []), n = Da();
|
|
6962
6984
|
return X(() => {
|
|
6963
6985
|
if (!n) return;
|
|
6964
6986
|
const e = n.addResolveInjector(o), t = () => n.invalidate();
|
|
@@ -6967,13 +6989,13 @@ var { useCommandResolver: Ea } = rt, Da = () => {
|
|
|
6967
6989
|
};
|
|
6968
6990
|
}, [n, o]), null;
|
|
6969
6991
|
};
|
|
6970
|
-
|
|
6971
|
-
var
|
|
6972
|
-
function
|
|
6973
|
-
return j(
|
|
6992
|
+
Pa.displayName = "InputClipboardInjector";
|
|
6993
|
+
var Na = $(null);
|
|
6994
|
+
function La() {
|
|
6995
|
+
return j(Na);
|
|
6974
6996
|
}
|
|
6975
|
-
var { CommandScopeContext:
|
|
6976
|
-
const o =
|
|
6997
|
+
var { CommandScopeContext: za, CommandChainContext: Ba, useCommandScope: Oa, LayerActivation: Ha } = rt, Va = ({ pane: e, children: t }) => {
|
|
6998
|
+
const o = Oa(), n = e.getAnchor(), r = ee(() => o ? new Ha(o.createChild(`pane:${n}`)) : null, [o, n]);
|
|
6977
6999
|
return X(() => {
|
|
6978
7000
|
const e = r?.getBase();
|
|
6979
7001
|
return () => e?.dispose();
|
|
@@ -6981,16 +7003,16 @@ var { CommandScopeContext: La, CommandChainContext: za, useCommandScope: Ba, Lay
|
|
|
6981
7003
|
if (r) return rt.attachWhenReady({ get current() {
|
|
6982
7004
|
return e.getElement() ?? null;
|
|
6983
7005
|
} }, (e) => r.getBase().attachElement(e, r));
|
|
6984
|
-
}, [e, r]), r ? ae(
|
|
7006
|
+
}, [e, r]), r ? ae(Ba.Provider, {
|
|
6985
7007
|
value: r,
|
|
6986
|
-
children: ae(
|
|
7008
|
+
children: ae(za.Provider, {
|
|
6987
7009
|
value: r.getBase(),
|
|
6988
7010
|
children: t
|
|
6989
7011
|
})
|
|
6990
7012
|
}) : t;
|
|
6991
7013
|
};
|
|
6992
|
-
|
|
6993
|
-
var
|
|
7014
|
+
Va.displayName = "PaneScopeProvider";
|
|
7015
|
+
var $a = {
|
|
6994
7016
|
"chart.type.area": "Area Chart",
|
|
6995
7017
|
"chart.type.areaStacked": "Stacked Area Chart",
|
|
6996
7018
|
"chart.type.areaStackedPercent": "Percentage Area Chart",
|
|
@@ -7155,7 +7177,7 @@ var Va = {
|
|
|
7155
7177
|
"table.rows.compact": "{count, plural, one{Table Row} other{# Table Rows}}",
|
|
7156
7178
|
"workbook.untitled": "Untitled",
|
|
7157
7179
|
"workbookStrip.newSheet": "New sheet"
|
|
7158
|
-
},
|
|
7180
|
+
}, _a = [
|
|
7159
7181
|
{
|
|
7160
7182
|
sourceId: "clipboard",
|
|
7161
7183
|
catalog: {
|
|
@@ -9145,46 +9167,46 @@ var Va = {
|
|
|
9145
9167
|
}
|
|
9146
9168
|
}
|
|
9147
9169
|
}
|
|
9148
|
-
], { DefaultCommandCatalogService:
|
|
9149
|
-
function
|
|
9150
|
-
|
|
9151
|
-
messages:
|
|
9152
|
-
catalogs:
|
|
9170
|
+
], { DefaultCommandCatalogService: Wa } = rt, Ua = !1;
|
|
9171
|
+
function Za() {
|
|
9172
|
+
Ua || (Ua = !0, Wa.registerFromManifest("@sheetxl/react", import.meta.url, {
|
|
9173
|
+
messages: $a,
|
|
9174
|
+
catalogs: _a
|
|
9153
9175
|
}));
|
|
9154
9176
|
}
|
|
9155
|
-
|
|
9156
|
-
var { CommandScope:
|
|
9177
|
+
Za();
|
|
9178
|
+
var { CommandScope: Ka, DefaultCommandRegistry: Ga, FocusActivation: ja, CommandRegistryContext: Xa, CommandScopeContext: Ya, CommandAnchorProvider: Ja, CommandFallbackProvider: Qa, useCommandScope: ei } = rt, ti = ({ initialAnchor: e, children: t }) => ei() ? ae(le, { children: t }) : ae(oi, {
|
|
9157
9179
|
initialAnchor: e,
|
|
9158
9180
|
children: t
|
|
9159
9181
|
});
|
|
9160
|
-
|
|
9161
|
-
var
|
|
9182
|
+
ti.displayName = "CommandRootProvider";
|
|
9183
|
+
var oi = ({ initialAnchor: e, children: t }) => {
|
|
9162
9184
|
const o = oe(e), { root: n, registry: r, studioTracker: l } = ee(() => {
|
|
9163
|
-
const e =
|
|
9185
|
+
const e = Ga, t = new Ka("app", null, { registry: e });
|
|
9164
9186
|
return {
|
|
9165
9187
|
root: t,
|
|
9166
9188
|
registry: e,
|
|
9167
|
-
studioTracker: new
|
|
9189
|
+
studioTracker: new ja(t, o.current)
|
|
9168
9190
|
};
|
|
9169
9191
|
}, []);
|
|
9170
|
-
return X(() => (n.connect(), () => n.dispose()), [n]), ae(
|
|
9192
|
+
return X(() => (n.connect(), () => n.dispose()), [n]), ae(Xa.Provider, {
|
|
9171
9193
|
value: r,
|
|
9172
|
-
children: ae(
|
|
9194
|
+
children: ae(Na.Provider, {
|
|
9173
9195
|
value: l,
|
|
9174
|
-
children: ae(
|
|
9196
|
+
children: ae(Ya.Provider, {
|
|
9175
9197
|
value: n,
|
|
9176
|
-
children: ie(
|
|
9198
|
+
children: ie(Ja, {
|
|
9177
9199
|
tracker: l,
|
|
9178
9200
|
keyBindings: "synthetic",
|
|
9179
9201
|
debounce: 100,
|
|
9180
|
-
children: [ae(
|
|
9202
|
+
children: [ae(Pa, {}), ae(Qa, { children: t })]
|
|
9181
9203
|
})
|
|
9182
9204
|
})
|
|
9183
9205
|
})
|
|
9184
9206
|
});
|
|
9185
9207
|
};
|
|
9186
|
-
|
|
9187
|
-
var
|
|
9208
|
+
oi.displayName = "CommandRootProviderOwn";
|
|
9209
|
+
var ni = "workbookToolbars", ri = {
|
|
9188
9210
|
key: "tableStyleOptions",
|
|
9189
9211
|
showLabel: !0,
|
|
9190
9212
|
members: [
|
|
@@ -9196,9 +9218,9 @@ var oi = "workbookToolbars", ni = {
|
|
|
9196
9218
|
"tableBandedColumnsToggle",
|
|
9197
9219
|
"tableFilterToggle"
|
|
9198
9220
|
]
|
|
9199
|
-
},
|
|
9221
|
+
}, li = {
|
|
9200
9222
|
key: "tableToolbar",
|
|
9201
|
-
contributions: { [
|
|
9223
|
+
contributions: { [ni]: { order: 1 } },
|
|
9202
9224
|
members: [
|
|
9203
9225
|
"editTable",
|
|
9204
9226
|
"-",
|
|
@@ -9215,10 +9237,10 @@ var oi = "workbookToolbars", ni = {
|
|
|
9215
9237
|
"-",
|
|
9216
9238
|
"formatTableStyle"
|
|
9217
9239
|
]
|
|
9218
|
-
},
|
|
9219
|
-
|
|
9220
|
-
},
|
|
9221
|
-
function
|
|
9240
|
+
}, ai = 0, ii = () => {
|
|
9241
|
+
ai > 0 && 0 === --ai && (rt.DefaultCommandButtonRegistry.get("tableToolbar") && rt.DefaultCommandButtonRegistry.unregister("tableToolbar"), rt.DefaultCommandButtonRegistry.get("tableStyleOptions") && rt.DefaultCommandButtonRegistry.unregister("tableStyleOptions"));
|
|
9242
|
+
}, si = (e, t) => e ? [t] : [];
|
|
9243
|
+
function ci(e, t) {
|
|
9222
9244
|
const o = t.sheet;
|
|
9223
9245
|
if (!o) return () => {};
|
|
9224
9246
|
const n = t.notifier, r = () => {
|
|
@@ -9274,9 +9296,9 @@ function si(e, t) {
|
|
|
9274
9296
|
}, h = () => o.getSelectedRanges().getDefaultShiftAxis() === f.Axis.Column, m = () => {
|
|
9275
9297
|
const t = r();
|
|
9276
9298
|
e.updateCommand("tableTotalRowToggle", { state: t?.isShowTotals() ?? !1 }), e.updateCommand("tableHeaderRowToggle", { state: t?.isShowHeaders() ?? !1 }), e.updateCommand("tableBandedRowsToggle", { state: t?.isShowBandedRows() ?? !1 }), e.updateCommand("tableFirstColumnToggle", { state: t?.isShowHighlightFirstColumn() ?? !1 }), e.updateCommand("tableLastColumnToggle", { state: t?.isShowHighlightLastColumn() ?? !1 }), e.updateCommand("tableBandedColumnsToggle", { state: t?.isShowBandedColumns() ?? !1 });
|
|
9277
|
-
const n =
|
|
9278
|
-
if (e.updateCommand("formatTableStyleClearTableStyle", { disabledReasons: [...n, ...
|
|
9279
|
-
const o =
|
|
9299
|
+
const n = si(!o.getProtection().isFormatCellsAllowed(), Ce("reason.sheetProtected"));
|
|
9300
|
+
if (e.updateCommand("formatTableStyleClearTableStyle", { disabledReasons: [...n, ...si(!t || null === t.getStyleOptions().name, Ce("reason.noTableStyle"))] }), t) {
|
|
9301
|
+
const o = si(!l(t).valid, Ce("reason.tableBodyRows"));
|
|
9280
9302
|
e.updateCommand("insertCellsShiftDown", { disabledReasons: o }), e.updateCommand("deleteCellsShiftUp", { disabledReasons: o });
|
|
9281
9303
|
const n = h() ? [] : o;
|
|
9282
9304
|
e.updateCommand("insertCells", { disabledReasons: n }), e.updateCommand("deleteCells", { disabledReasons: n });
|
|
@@ -9293,7 +9315,7 @@ function si(e, t) {
|
|
|
9293
9315
|
const l = r();
|
|
9294
9316
|
b(l);
|
|
9295
9317
|
const a = l ? "table" : o.getAutoTable() ? "auto" : null;
|
|
9296
|
-
a !== w && (null !== w && e.remove(), null !== a ? (null === w && 0 ===
|
|
9318
|
+
a !== w && (null !== w && e.remove(), null !== a ? (null === w && 0 === ai++ && (rt.DefaultCommandButtonRegistry.register(ri, !0), rt.DefaultCommandButtonRegistry.register(li, !0)), e.use(qa({
|
|
9297
9319
|
transaction: o,
|
|
9298
9320
|
notifier: n,
|
|
9299
9321
|
manager: t.manager
|
|
@@ -9369,7 +9391,7 @@ function si(e, t) {
|
|
|
9369
9391
|
callback: () => {
|
|
9370
9392
|
h() ? g() : d();
|
|
9371
9393
|
}
|
|
9372
|
-
}))) :
|
|
9394
|
+
}))) : ii(), w = a), null !== a && m();
|
|
9373
9395
|
};
|
|
9374
9396
|
y();
|
|
9375
9397
|
const S = o.getSelection().addListeners({ onChange: y }), C = o.addListeners({
|
|
@@ -9378,11 +9400,11 @@ function si(e, t) {
|
|
|
9378
9400
|
onProtectionChange: y
|
|
9379
9401
|
});
|
|
9380
9402
|
return () => {
|
|
9381
|
-
S(), C(), b(null), null !== w && (
|
|
9403
|
+
S(), C(), b(null), null !== w && (ii(), w = null);
|
|
9382
9404
|
};
|
|
9383
9405
|
}
|
|
9384
|
-
var { CommandScopeProvider:
|
|
9385
|
-
const { sheet: t } = e, o = $t(), n =
|
|
9406
|
+
var { CommandScopeProvider: di } = rt, ui = K((e) => {
|
|
9407
|
+
const { sheet: t } = e, o = $t(), n = Ca(), r = ee(() => ({
|
|
9386
9408
|
sheet: t,
|
|
9387
9409
|
notifier: o,
|
|
9388
9410
|
manager: n ?? void 0
|
|
@@ -9391,20 +9413,20 @@ var { CommandScopeProvider: ci } = rt, di = K((e) => {
|
|
|
9391
9413
|
o,
|
|
9392
9414
|
n
|
|
9393
9415
|
]);
|
|
9394
|
-
return ae(
|
|
9416
|
+
return ae(di, {
|
|
9395
9417
|
spec: {
|
|
9396
9418
|
scopeName: {
|
|
9397
9419
|
key: "layer:table",
|
|
9398
9420
|
name: "table"
|
|
9399
9421
|
},
|
|
9400
|
-
contributor: { dynamic:
|
|
9422
|
+
contributor: { dynamic: ci },
|
|
9401
9423
|
data: r
|
|
9402
9424
|
},
|
|
9403
9425
|
order: Je().zIndex
|
|
9404
9426
|
});
|
|
9405
9427
|
});
|
|
9406
|
-
|
|
9407
|
-
var
|
|
9428
|
+
ui.displayName = "SheetTableCommandLayer";
|
|
9429
|
+
var gi = K(U((e, t) => {
|
|
9408
9430
|
const { sheet: o, animationTime: n = 60, className: r, style: l, ...i } = e, s = Ge(), [c, d] = ne(null), [u, g] = ne(null), h = oe(null), m = Dt(() => {
|
|
9409
9431
|
const e = o.getSelectedCell().getSpill()?.getCoords() ?? null;
|
|
9410
9432
|
ge.isEqualRanges(e, c) || (g(e ? {
|
|
@@ -9457,110 +9479,110 @@ var ui = K(U((e, t) => {
|
|
|
9457
9479
|
}
|
|
9458
9480
|
})
|
|
9459
9481
|
});
|
|
9460
|
-
})),
|
|
9482
|
+
})), hi = "var(--sxl-cf-icon-bad)", mi = "var(--sxl-cf-icon-light-bad)", pi = "var(--sxl-cf-icon-neutral)", fi = "var(--sxl-cf-icon-light-good)", vi = "var(--sxl-cf-icon-good)", bi = "var(--sxl-cf-icon-pink)", wi = "var(--sxl-cf-icon-gold)", yi = "var(--sxl-cf-icon-gray)", Si = "var(--sxl-cf-icon-black)", Ci = (e, t) => ({
|
|
9461
9483
|
iconKey: `cf:${e}`,
|
|
9462
9484
|
color: t
|
|
9463
|
-
}),
|
|
9485
|
+
}), xi = [
|
|
9464
9486
|
"arrowDown",
|
|
9465
9487
|
"arrowRight",
|
|
9466
9488
|
"arrowUp"
|
|
9467
|
-
],
|
|
9489
|
+
], qi = [
|
|
9468
9490
|
"arrowDown",
|
|
9469
9491
|
"arrowDownRight",
|
|
9470
9492
|
"arrowUpRight",
|
|
9471
9493
|
"arrowUp"
|
|
9472
|
-
],
|
|
9494
|
+
], ki = [
|
|
9473
9495
|
"arrowDown",
|
|
9474
9496
|
"arrowDownRight",
|
|
9475
9497
|
"arrowRight",
|
|
9476
9498
|
"arrowUpRight",
|
|
9477
9499
|
"arrowUp"
|
|
9478
|
-
], ki = [
|
|
9479
|
-
gi,
|
|
9480
|
-
mi,
|
|
9481
|
-
fi
|
|
9482
9500
|
], Ti = [
|
|
9483
|
-
gi,
|
|
9484
9501
|
hi,
|
|
9485
9502
|
pi,
|
|
9486
|
-
|
|
9503
|
+
vi
|
|
9487
9504
|
], Ri = [
|
|
9488
|
-
|
|
9505
|
+
hi,
|
|
9506
|
+
mi,
|
|
9507
|
+
fi,
|
|
9508
|
+
vi
|
|
9509
|
+
], Ii = [
|
|
9489
9510
|
hi,
|
|
9490
9511
|
mi,
|
|
9491
9512
|
pi,
|
|
9492
|
-
fi
|
|
9493
|
-
|
|
9513
|
+
fi,
|
|
9514
|
+
vi
|
|
9515
|
+
], Mi = (e, t) => e.map((e, o) => Ci(e, t[o])), Ai = (e, t) => e.map((e) => Ci(e, t)), Fi = (e, t) => t.map((t) => Ci(e, t)), Ei = [
|
|
9494
9516
|
"rating0",
|
|
9495
9517
|
"rating1",
|
|
9496
9518
|
"rating2",
|
|
9497
9519
|
"rating3",
|
|
9498
9520
|
"rating4"
|
|
9499
|
-
],
|
|
9500
|
-
[w.IconSet.Arrows3]:
|
|
9501
|
-
[w.IconSet.ArrowsGray3]:
|
|
9502
|
-
[w.IconSet.Flags3]:
|
|
9503
|
-
[w.IconSet.Signs3]:
|
|
9521
|
+
], Di = {
|
|
9522
|
+
[w.IconSet.Arrows3]: Mi(xi, Ti),
|
|
9523
|
+
[w.IconSet.ArrowsGray3]: Ai(xi, yi),
|
|
9524
|
+
[w.IconSet.Flags3]: Fi("flag", Ti),
|
|
9525
|
+
[w.IconSet.Signs3]: Mi([
|
|
9504
9526
|
"diamond",
|
|
9505
9527
|
"triangleUp",
|
|
9506
9528
|
"circle"
|
|
9507
|
-
],
|
|
9508
|
-
[w.IconSet.Symbols3]:
|
|
9529
|
+
], Ti),
|
|
9530
|
+
[w.IconSet.Symbols3]: Mi([
|
|
9509
9531
|
"circleCross",
|
|
9510
9532
|
"circleExclamation",
|
|
9511
9533
|
"circleCheck"
|
|
9512
|
-
],
|
|
9513
|
-
[w.IconSet.Symbols3_2]:
|
|
9534
|
+
], Ti),
|
|
9535
|
+
[w.IconSet.Symbols3_2]: Mi([
|
|
9514
9536
|
"cross",
|
|
9515
9537
|
"exclamation",
|
|
9516
9538
|
"check"
|
|
9517
|
-
],
|
|
9518
|
-
[w.IconSet.TrafficLights3]:
|
|
9519
|
-
[w.IconSet.TrafficLights3_2]:
|
|
9520
|
-
[w.IconSet.Triangles3]:
|
|
9539
|
+
], Ti),
|
|
9540
|
+
[w.IconSet.TrafficLights3]: Fi("circle", Ti),
|
|
9541
|
+
[w.IconSet.TrafficLights3_2]: Fi("circleRimmed", Ti),
|
|
9542
|
+
[w.IconSet.Triangles3]: Mi([
|
|
9521
9543
|
"triangleDownSharp",
|
|
9522
9544
|
"dash",
|
|
9523
9545
|
"triangleUpSharp"
|
|
9524
|
-
],
|
|
9525
|
-
[w.IconSet.Stars3]:
|
|
9546
|
+
], Ti),
|
|
9547
|
+
[w.IconSet.Stars3]: Ai([
|
|
9526
9548
|
"star0",
|
|
9527
9549
|
"star1",
|
|
9528
9550
|
"star2"
|
|
9529
|
-
],
|
|
9530
|
-
[w.IconSet.Arrows4]:
|
|
9531
|
-
[w.IconSet.ArrowsGray4]:
|
|
9532
|
-
[w.IconSet.Rating4]:
|
|
9533
|
-
[w.IconSet.RedToBlack4]:
|
|
9534
|
-
|
|
9535
|
-
|
|
9536
|
-
wi,
|
|
9537
|
-
yi
|
|
9538
|
-
]),
|
|
9539
|
-
[w.IconSet.TrafficLights4]: Ai("circleRimmed", [
|
|
9551
|
+
], wi),
|
|
9552
|
+
[w.IconSet.Arrows4]: Mi(qi, Ri),
|
|
9553
|
+
[w.IconSet.ArrowsGray4]: Ai(qi, yi),
|
|
9554
|
+
[w.IconSet.Rating4]: Ai(Ei.slice(1), yi),
|
|
9555
|
+
[w.IconSet.RedToBlack4]: Fi("circle", [
|
|
9556
|
+
hi,
|
|
9557
|
+
bi,
|
|
9540
9558
|
yi,
|
|
9541
|
-
|
|
9542
|
-
mi,
|
|
9543
|
-
fi
|
|
9559
|
+
Si
|
|
9544
9560
|
]),
|
|
9545
|
-
[w.IconSet.
|
|
9546
|
-
|
|
9547
|
-
|
|
9561
|
+
[w.IconSet.TrafficLights4]: Fi("circleRimmed", [
|
|
9562
|
+
Si,
|
|
9563
|
+
hi,
|
|
9564
|
+
pi,
|
|
9565
|
+
vi
|
|
9566
|
+
]),
|
|
9567
|
+
[w.IconSet.Arrows5]: Mi(ki, Ii),
|
|
9568
|
+
[w.IconSet.ArrowsGray5]: Ai(ki, yi),
|
|
9569
|
+
[w.IconSet.Quarters5]: Ai([
|
|
9548
9570
|
"quarters0",
|
|
9549
9571
|
"quarters1",
|
|
9550
9572
|
"quarters2",
|
|
9551
9573
|
"quarters3",
|
|
9552
9574
|
"quarters4"
|
|
9553
|
-
],
|
|
9554
|
-
[w.IconSet.Rating5]:
|
|
9555
|
-
[w.IconSet.Boxes5]:
|
|
9575
|
+
], Si),
|
|
9576
|
+
[w.IconSet.Rating5]: Ai(Ei, yi),
|
|
9577
|
+
[w.IconSet.Boxes5]: Ai([
|
|
9556
9578
|
"boxes0",
|
|
9557
9579
|
"boxes1",
|
|
9558
9580
|
"boxes2",
|
|
9559
9581
|
"boxes3",
|
|
9560
9582
|
"boxes4"
|
|
9561
|
-
],
|
|
9562
|
-
},
|
|
9563
|
-
const { sheet: t, margin: o = 1, className: n, style: r, ...l } = e, a = Ge(), { getVisibleDecorations: i } =
|
|
9583
|
+
], Si)
|
|
9584
|
+
}, Pi = (e, t) => Di[e]?.[t] ?? null, Ni = (e) => Di[e] ?? Li, Li = Object.freeze([]), zi = "_track_1426b_17", Bi = "_bar_1426b_22", Oi = "_axis_1426b_30", Hi = K((e) => {
|
|
9585
|
+
const { sheet: t, margin: o = 1, className: n, style: r, ...l } = e, a = Ge(), { getVisibleDecorations: i } = vl(t, "dataBar"), s = i(a);
|
|
9564
9586
|
if (0 === s.length) return null;
|
|
9565
9587
|
const c = Math.max(1, Math.round(o * (a.getZoom() || 1))), d = 1 / ht.getDevicePixelRatio(), u = {
|
|
9566
9588
|
top: c + d,
|
|
@@ -9574,7 +9596,7 @@ var ui = K(U((e, t) => {
|
|
|
9574
9596
|
range: o ?? ge.cellToRange(t),
|
|
9575
9597
|
clipInsets: -10,
|
|
9576
9598
|
style: { pointerEvents: "none" },
|
|
9577
|
-
children: ae(
|
|
9599
|
+
children: ae(Vi, {
|
|
9578
9600
|
bar: r,
|
|
9579
9601
|
inset: u
|
|
9580
9602
|
})
|
|
@@ -9594,14 +9616,14 @@ var ui = K(U((e, t) => {
|
|
|
9594
9616
|
})
|
|
9595
9617
|
});
|
|
9596
9618
|
});
|
|
9597
|
-
|
|
9598
|
-
var
|
|
9619
|
+
Hi.displayName = "ConditionalBarLayer";
|
|
9620
|
+
var Vi = ({ bar: e, inset: t }) => {
|
|
9599
9621
|
const { value: o, axis: n, gradient: r, direction: l } = e, a = o < n, i = 100 * Math.min(o, n), s = 100 * Math.abs(o - n), c = (a ? e.negativeColor : void 0) ?? e.color, d = (a ? e.negativeBorderColor : void 0) ?? e.borderColor, u = "rightToLeft" === l, g = r ? `linear-gradient(to ${a !== u ? "left" : "right"}, ${c}, color-mix(in srgb, ${c} var(--sxl-cf-bar-fade), transparent))` : c, h = u ? { right: `${i}%` } : { left: `${i}%` };
|
|
9600
9622
|
return ie("div", {
|
|
9601
|
-
className: tt(
|
|
9623
|
+
className: tt(zi, "conditional-bar-track"),
|
|
9602
9624
|
style: t,
|
|
9603
9625
|
children: [s > 0 ? ae("div", {
|
|
9604
|
-
className: tt(
|
|
9626
|
+
className: tt(Bi, "conditional-bar"),
|
|
9605
9627
|
style: {
|
|
9606
9628
|
...h,
|
|
9607
9629
|
width: `${s}%`,
|
|
@@ -9609,30 +9631,30 @@ var Hi = ({ bar: e, inset: t }) => {
|
|
|
9609
9631
|
border: d ? `1px solid ${d}` : void 0
|
|
9610
9632
|
}
|
|
9611
9633
|
}) : null, e.axisColor && n > 0 && n < 1 ? ae("div", {
|
|
9612
|
-
className: tt(
|
|
9634
|
+
className: tt(Oi, "conditional-bar-axis"),
|
|
9613
9635
|
style: {
|
|
9614
9636
|
...u ? { right: 100 * n + "%" } : { left: 100 * n + "%" },
|
|
9615
9637
|
background: e.axisColor
|
|
9616
9638
|
}
|
|
9617
9639
|
}) : null]
|
|
9618
9640
|
});
|
|
9619
|
-
},
|
|
9620
|
-
const { sheet: t, className: o, style: n, ...r } = e, l = Ge(), { getVisibleDecorations: a } =
|
|
9641
|
+
}, $i = "_clip_x7ihh_36", _i = "_box_x7ihh_40", Wi = "_glyph_x7ihh_79", Ui = K((e) => {
|
|
9642
|
+
const { sheet: t, className: o, style: n, ...r } = e, l = Ge(), { getVisibleDecorations: a } = vl(t, "iconSet"), i = a(l);
|
|
9621
9643
|
if (0 === i.length) return null;
|
|
9622
9644
|
const s = l.getZoom() || 1, c = [];
|
|
9623
9645
|
for (let e = 0; e < i.length; e++) {
|
|
9624
9646
|
const { cell: t, range: o, value: n, decorations: r } = i[e], l = r.iconSet;
|
|
9625
9647
|
if (!l) continue;
|
|
9626
|
-
const a =
|
|
9648
|
+
const a = Pi(l.set, l.index);
|
|
9627
9649
|
if (!a) continue;
|
|
9628
|
-
const d = n.getStyle(), u = d.getInsets(), g = d.measureText("").lineHeight * s, h = d.getAlignment().getVertical(), m =
|
|
9650
|
+
const d = n.getStyle(), u = d.getInsets(), g = d.measureText("").lineHeight * s, h = d.getAlignment().getVertical(), m = Zi[h] ?? "flex-end", p = Ki[h] ?? "center bottom";
|
|
9629
9651
|
c.push(ae($e, {
|
|
9630
9652
|
range: o ?? ge.cellToRange(t),
|
|
9631
9653
|
clipInsets: -10,
|
|
9632
|
-
className:
|
|
9654
|
+
className: $i,
|
|
9633
9655
|
style: { pointerEvents: "none" },
|
|
9634
9656
|
children: ae("div", {
|
|
9635
|
-
className:
|
|
9657
|
+
className: _i,
|
|
9636
9658
|
style: {
|
|
9637
9659
|
left: u.left * s,
|
|
9638
9660
|
top: u.top * s,
|
|
@@ -9641,7 +9663,7 @@ var Hi = ({ bar: e, inset: t }) => {
|
|
|
9641
9663
|
alignItems: m
|
|
9642
9664
|
},
|
|
9643
9665
|
children: ae(lt, {
|
|
9644
|
-
className:
|
|
9666
|
+
className: Wi,
|
|
9645
9667
|
iconKey: a.iconKey,
|
|
9646
9668
|
size: g,
|
|
9647
9669
|
style: {
|
|
@@ -9666,25 +9688,25 @@ var Hi = ({ bar: e, inset: t }) => {
|
|
|
9666
9688
|
})
|
|
9667
9689
|
});
|
|
9668
9690
|
});
|
|
9669
|
-
|
|
9670
|
-
var
|
|
9691
|
+
Ui.displayName = "ConditionalIconsLayer";
|
|
9692
|
+
var Zi = {
|
|
9671
9693
|
[y.VerticalAlignment.Top]: "flex-start",
|
|
9672
9694
|
[y.VerticalAlignment.Center]: "center",
|
|
9673
9695
|
[y.VerticalAlignment.Bottom]: "flex-end",
|
|
9674
9696
|
[y.VerticalAlignment.Justify]: "center",
|
|
9675
9697
|
[y.VerticalAlignment.Distributed]: "center"
|
|
9676
|
-
},
|
|
9698
|
+
}, Ki = {
|
|
9677
9699
|
[y.VerticalAlignment.Top]: "center top",
|
|
9678
9700
|
[y.VerticalAlignment.Center]: "center",
|
|
9679
9701
|
[y.VerticalAlignment.Bottom]: "center bottom",
|
|
9680
9702
|
[y.VerticalAlignment.Justify]: "center",
|
|
9681
9703
|
[y.VerticalAlignment.Distributed]: "center"
|
|
9682
|
-
},
|
|
9704
|
+
}, Gi = "_dropdown_2r2ao_8", ji = {
|
|
9683
9705
|
ignoreHidden: !0,
|
|
9684
9706
|
includeMergeOverflow: !0,
|
|
9685
9707
|
reuseContext: !0
|
|
9686
|
-
},
|
|
9687
|
-
const { sheet: t, markSize: o = 7, dropdownWidth: n = 17, onOpenDropdown: r, className: l, style: a, ...i } = e, s = Ge(), c =
|
|
9708
|
+
}, Xi = K((e) => {
|
|
9709
|
+
const { sheet: t, markSize: o = 7, dropdownWidth: n = 17, onOpenDropdown: r, className: l, style: a, ...i } = e, s = Ge(), c = Ji(t);
|
|
9688
9710
|
yo(t, ["onSelectionChange"]);
|
|
9689
9711
|
const d = s.getZoom() || 1, u = [], g = c(s);
|
|
9690
9712
|
for (let e = 0; e < g.length; e++) {
|
|
@@ -9702,7 +9724,7 @@ var Ui = {
|
|
|
9702
9724
|
})
|
|
9703
9725
|
}, `invalid-${t.rowIndex}-${t.colIndex}`));
|
|
9704
9726
|
}
|
|
9705
|
-
const h =
|
|
9727
|
+
const h = Yi(t);
|
|
9706
9728
|
if (h) {
|
|
9707
9729
|
const { coords: e, dataValidation: t } = h;
|
|
9708
9730
|
u.push(ae($e, {
|
|
@@ -9710,7 +9732,7 @@ var Ui = {
|
|
|
9710
9732
|
clipInsets: -10,
|
|
9711
9733
|
style: { pointerEvents: "none" },
|
|
9712
9734
|
children: ae("div", {
|
|
9713
|
-
className:
|
|
9735
|
+
className: Gi,
|
|
9714
9736
|
style: {
|
|
9715
9737
|
right: 0,
|
|
9716
9738
|
width: n * d
|
|
@@ -9741,8 +9763,8 @@ var Ui = {
|
|
|
9741
9763
|
})
|
|
9742
9764
|
});
|
|
9743
9765
|
});
|
|
9744
|
-
|
|
9745
|
-
var
|
|
9766
|
+
Xi.displayName = "ValidationIndicatorLayer";
|
|
9767
|
+
var Yi = (e) => {
|
|
9746
9768
|
const t = e.getSelectedCell(), o = t.getDataValidation();
|
|
9747
9769
|
if (!o) return null;
|
|
9748
9770
|
if (o.isHideDropdown()) return null;
|
|
@@ -9752,7 +9774,7 @@ var Xi = (e) => {
|
|
|
9752
9774
|
coords: n,
|
|
9753
9775
|
dataValidation: o
|
|
9754
9776
|
} : null;
|
|
9755
|
-
},
|
|
9777
|
+
}, Ji = (e) => {
|
|
9756
9778
|
const t = Ge(), [, o] = te((e) => e + 1, 0), n = oe(/* @__PURE__ */ new Map()), r = Dt(() => {
|
|
9757
9779
|
n.current.clear(), o();
|
|
9758
9780
|
}, []);
|
|
@@ -9770,13 +9792,13 @@ var Xi = (e) => {
|
|
|
9770
9792
|
l?.colEnd
|
|
9771
9793
|
]), (e) => {
|
|
9772
9794
|
e.isDataChange && r();
|
|
9773
|
-
},
|
|
9795
|
+
}, es), Dt((t, o) => {
|
|
9774
9796
|
const r = n.current, l = o ?? t.getVisibleRange();
|
|
9775
|
-
if (!l) return
|
|
9797
|
+
if (!l) return Qi;
|
|
9776
9798
|
const a = `${l.rowStart}:${l.colStart}:${l.rowEnd}:${l.colEnd}`, i = r.get(a);
|
|
9777
9799
|
if (i) return i;
|
|
9778
9800
|
const s = e.getRange(l);
|
|
9779
|
-
let c =
|
|
9801
|
+
let c = Qi;
|
|
9780
9802
|
if (s.getDataValidations().length > 0) {
|
|
9781
9803
|
const e = [];
|
|
9782
9804
|
s.forEach((t, o) => {
|
|
@@ -9784,14 +9806,14 @@ var Xi = (e) => {
|
|
|
9784
9806
|
if (!n) return;
|
|
9785
9807
|
const r = o.getCoords();
|
|
9786
9808
|
n.getAlertAt(r.rowIndex, r.colIndex) && e.push(r);
|
|
9787
|
-
},
|
|
9809
|
+
}, ji), e.length > 0 && (c = e);
|
|
9788
9810
|
}
|
|
9789
9811
|
return r.set(a, c), r.size > 12 && r.delete(r.keys().next().value), c;
|
|
9790
9812
|
}, [e]);
|
|
9791
|
-
},
|
|
9813
|
+
}, Qi = [], es = {
|
|
9792
9814
|
fireOnAddressChange: !1,
|
|
9793
9815
|
transactional: !1
|
|
9794
|
-
},
|
|
9816
|
+
}, ts = K(U((e, t) => {
|
|
9795
9817
|
const { selection: o, adapter: n, axis: r, entireCoords: l, edgeSize: a = 1, edgeColor: i = "var(--sxl-color-base-300)", scrollIntoView: s, renderBorders: c = !0, preserveFocus: d = !1, replaceActive: u = !1, allowMulti: g = !0, onPointerDownInterceptor: h, onSelectionStart: m, onSelectionEnd: p, zIndex: v, className: b, style: w, ...y } = e, S = Ge(), C = r === f.Axis.Column ? S.getPaneBounds().height : S.getPaneBounds().width, x = ee(() => n ?? new jr(o), [n, o]);
|
|
9796
9818
|
_t(x, (e) => e.getSelection());
|
|
9797
9819
|
const q = Xe(x, {
|
|
@@ -9813,10 +9835,10 @@ var Xi = (e) => {
|
|
|
9813
9835
|
}, [S, d])
|
|
9814
9836
|
}), k = c ? o.getSelectedRuns(r) : null, T = S.getAnchor(), R = [];
|
|
9815
9837
|
if (c) {
|
|
9816
|
-
R.push(
|
|
9838
|
+
R.push(os(`edge:${T}`, r, C, a, i));
|
|
9817
9839
|
for (let e = 0; k && e < k.length; e++) {
|
|
9818
|
-
const t = k[e], o =
|
|
9819
|
-
o && R.push(
|
|
9840
|
+
const t = k[e], o = rs(t.min, t.max, r, S);
|
|
9841
|
+
o && R.push(ns(`selection:${T}:${e}`, o, r, C));
|
|
9820
9842
|
}
|
|
9821
9843
|
}
|
|
9822
9844
|
return ae(Ee, {
|
|
@@ -9835,7 +9857,7 @@ var Xi = (e) => {
|
|
|
9835
9857
|
children: R
|
|
9836
9858
|
})
|
|
9837
9859
|
});
|
|
9838
|
-
})),
|
|
9860
|
+
})), os = (e, t, o, n, r) => {
|
|
9839
9861
|
const l = ht.getDevicePixelRatio(), a = n / l, i = ht.snapDeviceEdge(o - a, l);
|
|
9840
9862
|
return ae("div", {
|
|
9841
9863
|
className: "header-selection-edge",
|
|
@@ -9857,7 +9879,7 @@ var Xi = (e) => {
|
|
|
9857
9879
|
width: `${a}px`
|
|
9858
9880
|
}
|
|
9859
9881
|
}, e);
|
|
9860
|
-
},
|
|
9882
|
+
}, ns = (e, t, o, n) => {
|
|
9861
9883
|
if (!t) return;
|
|
9862
9884
|
const r = "var(--sxl-color-primary)", l = ht.getDevicePixelRatio(), a = 2 / l, i = ht.edgeCenter(n, "leading", 2, l);
|
|
9863
9885
|
let s;
|
|
@@ -9888,7 +9910,7 @@ var Xi = (e) => {
|
|
|
9888
9910
|
className: "header-selection-border",
|
|
9889
9911
|
style: s
|
|
9890
9912
|
}, e);
|
|
9891
|
-
},
|
|
9913
|
+
}, rs = (e, t, o, n) => {
|
|
9892
9914
|
const r = {
|
|
9893
9915
|
x: 0,
|
|
9894
9916
|
y: 0,
|
|
@@ -9920,7 +9942,7 @@ var Xi = (e) => {
|
|
|
9920
9942
|
width: r.width,
|
|
9921
9943
|
height: r.height
|
|
9922
9944
|
};
|
|
9923
|
-
},
|
|
9945
|
+
}, ls = (e) => "resize-indicator:" + (e === f.Axis.Column ? "col" : "row"), as = K(U((e, t) => {
|
|
9924
9946
|
const { sheetHeader: o, isColumn: n, oppositeSize: r = 30, onResizeHeadersStart: l, onResizeHeaders: a, onResizeHeadersEnd: i, onResizeHeadersDown: s, onResizeHeadersUp: c } = e, d = Ge(), [u, g] = ne(o.getSelectedRuns()), [h, m] = te((e) => e + 1, 0), p = Kt(), v = G(ye.debounce(() => {
|
|
9925
9947
|
m();
|
|
9926
9948
|
}, 10), []);
|
|
@@ -9936,7 +9958,7 @@ var Xi = (e) => {
|
|
|
9936
9958
|
v();
|
|
9937
9959
|
}
|
|
9938
9960
|
});
|
|
9939
|
-
const [b, w] = ne(o?.getSheet().getView().getZoomScale() / 100), y = n ? f.Axis.Column : f.Axis.Row, [, S] = et(
|
|
9961
|
+
const [b, w] = ne(o?.getSheet().getView().getZoomScale() / 100), y = n ? f.Axis.Column : f.Axis.Row, [, S] = et(ls(y), null), C = oe(null), x = oe(null), q = G(() => {
|
|
9940
9962
|
x.current && (clearTimeout(x.current), x.current = null);
|
|
9941
9963
|
}, []);
|
|
9942
9964
|
X(() => q, [q]), wo(o, { onSizesChange: (e) => {
|
|
@@ -9997,7 +10019,7 @@ var Xi = (e) => {
|
|
|
9997
10019
|
hidden: t <= 0,
|
|
9998
10020
|
size: (t <= 0 ? n : t) / b
|
|
9999
10021
|
};
|
|
10000
|
-
o.updateHeaderPairs(
|
|
10022
|
+
o.updateHeaderPairs(is(i, s, e));
|
|
10001
10023
|
}
|
|
10002
10024
|
if (a) {
|
|
10003
10025
|
const e = a.max - a.min + 1;
|
|
@@ -10135,7 +10157,7 @@ var Xi = (e) => {
|
|
|
10135
10157
|
disabled: o.isProtected()
|
|
10136
10158
|
}, `divider${e}`);
|
|
10137
10159
|
return ae(Ee, { children: _ });
|
|
10138
|
-
})),
|
|
10160
|
+
})), is = (e, t, o = null) => {
|
|
10139
10161
|
const n = [], r = e.length;
|
|
10140
10162
|
for (let l = 0; l < r; l++) {
|
|
10141
10163
|
const r = e[l];
|
|
@@ -10150,14 +10172,14 @@ var Xi = (e) => {
|
|
|
10150
10172
|
});
|
|
10151
10173
|
}
|
|
10152
10174
|
return n;
|
|
10153
|
-
},
|
|
10175
|
+
}, ss = "var(--sxl-color-primary)", cs = "var(--sxl-color-base-100)", ds = {
|
|
10154
10176
|
side: "b",
|
|
10155
10177
|
align: "center"
|
|
10156
|
-
},
|
|
10178
|
+
}, us = {
|
|
10157
10179
|
side: "r",
|
|
10158
10180
|
align: "center"
|
|
10159
|
-
},
|
|
10160
|
-
const { sheet: t } = e, o = Ge(), n = Kt(), [r] = et(
|
|
10181
|
+
}, gs = K((e) => {
|
|
10182
|
+
const { sheet: t } = e, o = Ge(), n = Kt(), [r] = et(ls(f.Axis.Column), null), [l] = et(ls(f.Axis.Row), null), a = !!r, i = r ?? l;
|
|
10161
10183
|
if (!i) return null;
|
|
10162
10184
|
const { index: s, sizePX: c } = i, d = 0 === c, u = t.getEntireRange().getCoords(), g = a ? {
|
|
10163
10185
|
rowStart: 0,
|
|
@@ -10181,7 +10203,7 @@ var Xi = (e) => {
|
|
|
10181
10203
|
0,
|
|
10182
10204
|
0,
|
|
10183
10205
|
e
|
|
10184
|
-
], i = `-0.5px 0px 0px 0px ${
|
|
10206
|
+
], i = `-0.5px 0px 0px 0px ${cs}`, c = {
|
|
10185
10207
|
x: n - 1,
|
|
10186
10208
|
y: 0,
|
|
10187
10209
|
width: 1,
|
|
@@ -10199,7 +10221,7 @@ var Xi = (e) => {
|
|
|
10199
10221
|
0,
|
|
10200
10222
|
e,
|
|
10201
10223
|
0
|
|
10202
|
-
], i = `0px -0.5px 0px 0px ${
|
|
10224
|
+
], i = `0px -0.5px 0px 0px ${cs}`, c = {
|
|
10203
10225
|
x: 0,
|
|
10204
10226
|
y: n - 1,
|
|
10205
10227
|
width: e,
|
|
@@ -10214,7 +10236,7 @@ var Xi = (e) => {
|
|
|
10214
10236
|
const g = {
|
|
10215
10237
|
style: { boxShadow: i },
|
|
10216
10238
|
propsPath: {
|
|
10217
|
-
stroke:
|
|
10239
|
+
stroke: ss,
|
|
10218
10240
|
strokeWidth: "2px",
|
|
10219
10241
|
strokeDasharray: "0 0 8 4"
|
|
10220
10242
|
}
|
|
@@ -10223,7 +10245,7 @@ var Xi = (e) => {
|
|
|
10223
10245
|
linePoints: l,
|
|
10224
10246
|
bounds: c,
|
|
10225
10247
|
propsPath: {
|
|
10226
|
-
stroke:
|
|
10248
|
+
stroke: ss,
|
|
10227
10249
|
strokeWidth: "2px"
|
|
10228
10250
|
}
|
|
10229
10251
|
}), ae(De, {
|
|
@@ -10251,16 +10273,16 @@ var Xi = (e) => {
|
|
|
10251
10273
|
colStart: 0,
|
|
10252
10274
|
colEnd: 0
|
|
10253
10275
|
} },
|
|
10254
|
-
placement: a ?
|
|
10276
|
+
placement: a ? ds : us,
|
|
10255
10277
|
whenOff: "clamp",
|
|
10256
|
-
style:
|
|
10278
|
+
style: hs,
|
|
10257
10279
|
children: g
|
|
10258
10280
|
});
|
|
10259
10281
|
}
|
|
10260
10282
|
return h || m ? ie(le, { children: [m, h] }) : null;
|
|
10261
10283
|
});
|
|
10262
|
-
|
|
10263
|
-
var
|
|
10284
|
+
gs.displayName = "ResizeIndicator";
|
|
10285
|
+
var hs = {
|
|
10264
10286
|
font: "11px/1.5 system-ui, sans-serif",
|
|
10265
10287
|
color: "var(--sxl-color-base-content, white)",
|
|
10266
10288
|
background: "var(--sxl-color-base-100, rgb(60,60,60))",
|
|
@@ -10270,9 +10292,9 @@ var gs = {
|
|
|
10270
10292
|
boxShadow: "0 2px 8px rgba(0,0,0,0.35)",
|
|
10271
10293
|
whiteSpace: "nowrap",
|
|
10272
10294
|
pointerEvents: "none"
|
|
10273
|
-
}, { CommandScopeProvider:
|
|
10295
|
+
}, { CommandScopeProvider: ms } = rt, ps = (e, t) => (e.updateCommand("openContextMenu", { callback: () => {
|
|
10274
10296
|
t.openAtSelectedCell();
|
|
10275
|
-
} }), () => {}),
|
|
10297
|
+
} }), () => {}), fs = K(U((e, t) => {
|
|
10276
10298
|
const { sheet: o, onSheetContextMenu: n, className: r, ...l } = e, a = Ge(), i = G((e) => {
|
|
10277
10299
|
const t = a.getCellFromPointer(e.clientX, e.clientY);
|
|
10278
10300
|
t && n && (n({
|
|
@@ -10302,10 +10324,10 @@ var gs = {
|
|
|
10302
10324
|
o,
|
|
10303
10325
|
n
|
|
10304
10326
|
]), c = ee(() => ({ openAtSelectedCell: s }), [s]);
|
|
10305
|
-
return ae(
|
|
10327
|
+
return ae(ms, {
|
|
10306
10328
|
spec: {
|
|
10307
10329
|
scopeName: "layer:contextmenu",
|
|
10308
|
-
contributor: { dynamic:
|
|
10330
|
+
contributor: { dynamic: ps },
|
|
10309
10331
|
data: c
|
|
10310
10332
|
},
|
|
10311
10333
|
order: Je().zIndex,
|
|
@@ -10316,13 +10338,13 @@ var gs = {
|
|
|
10316
10338
|
})
|
|
10317
10339
|
});
|
|
10318
10340
|
}));
|
|
10319
|
-
function
|
|
10341
|
+
function vs(e) {
|
|
10320
10342
|
const { axis: t, entireCoords: o, scrollIntoView: n, className: r, ...l } = e, a = ln().getMode(), i = a?.selection ?? null, s = To()?.getName(), c = ee(() => {
|
|
10321
10343
|
if (!i) return null;
|
|
10322
10344
|
const e = new jr(i);
|
|
10323
|
-
return s ?
|
|
10345
|
+
return s ? al(e, s) : e;
|
|
10324
10346
|
}, [i, s]);
|
|
10325
|
-
return a && "point" === a.mode && i ? a.scope && a.scope !== s ? null : ae(
|
|
10347
|
+
return a && "point" === a.mode && i ? a.scope && a.scope !== s ? null : ae(ts, {
|
|
10326
10348
|
className: tt(r, "reference-header"),
|
|
10327
10349
|
selection: i,
|
|
10328
10350
|
adapter: c,
|
|
@@ -10336,8 +10358,8 @@ function fs(e) {
|
|
|
10336
10358
|
...l
|
|
10337
10359
|
}) : null;
|
|
10338
10360
|
}
|
|
10339
|
-
|
|
10340
|
-
var
|
|
10361
|
+
fs.displayName = "ContextMenuLayer", vs.displayName = "SheetReferenceHeaderLayer";
|
|
10362
|
+
var bs = (e) => {
|
|
10341
10363
|
const { style: t, ...o } = e ?? {};
|
|
10342
10364
|
return ie("svg", {
|
|
10343
10365
|
style: {
|
|
@@ -10376,7 +10398,7 @@ var vs = (e) => {
|
|
|
10376
10398
|
})
|
|
10377
10399
|
]
|
|
10378
10400
|
});
|
|
10379
|
-
},
|
|
10401
|
+
}, ws = K((e) => {
|
|
10380
10402
|
const { colorLicensee: t = "blue", colorError: o = "red", colorCredits: n = "grey", credits: r = "All rights reserved - Michael Ford", feature: l, style: a, ...i } = e ?? {}, [s, c] = ne(null);
|
|
10381
10403
|
X(() => {
|
|
10382
10404
|
(async () => {
|
|
@@ -10430,7 +10452,7 @@ var vs = (e) => {
|
|
|
10430
10452
|
display: "flex",
|
|
10431
10453
|
flexDirection: "column"
|
|
10432
10454
|
},
|
|
10433
|
-
children: [d ? ae(
|
|
10455
|
+
children: [d ? ae(bs, { style: g }) : ae("svg", {
|
|
10434
10456
|
width: b,
|
|
10435
10457
|
height: w,
|
|
10436
10458
|
style: g,
|
|
@@ -10459,26 +10481,26 @@ var vs = (e) => {
|
|
|
10459
10481
|
] })]
|
|
10460
10482
|
})
|
|
10461
10483
|
});
|
|
10462
|
-
}),
|
|
10484
|
+
}), ys = {
|
|
10463
10485
|
key: "copy",
|
|
10464
10486
|
description: Ce("editMode.copy")
|
|
10465
|
-
},
|
|
10487
|
+
}, Ss = {
|
|
10466
10488
|
key: "cut",
|
|
10467
10489
|
description: Ce("editMode.cut")
|
|
10468
|
-
},
|
|
10490
|
+
}, Cs = { type: d.Content.Values }, xs = {
|
|
10469
10491
|
fitDestination: !0,
|
|
10470
10492
|
type: d.Content.Formats
|
|
10471
|
-
},
|
|
10493
|
+
}, qs = {
|
|
10472
10494
|
fitDestination: !0,
|
|
10473
10495
|
type: d.Content.Formulas
|
|
10474
|
-
},
|
|
10496
|
+
}, ks = { transpose: !0 }, Ts = {
|
|
10475
10497
|
fitDestination: !0,
|
|
10476
10498
|
adjustCells: (e, t, o) => ({ value: `=${t.getAddress({
|
|
10477
10499
|
$colIndex: !0,
|
|
10478
10500
|
$rowIndex: !0
|
|
10479
10501
|
})}` })
|
|
10480
10502
|
};
|
|
10481
|
-
function
|
|
10503
|
+
function Rs(e, t) {
|
|
10482
10504
|
const o = t.sheet, n = t, { notifier: l, editModeHandler: a, globalClipboard: i, element: s } = t, c = {
|
|
10483
10505
|
element: s,
|
|
10484
10506
|
doCopy: (e) => new q(o.getSelectedRanges().getSnapshot(e))
|
|
@@ -10593,22 +10615,22 @@ function Ts(e, t) {
|
|
|
10593
10615
|
}
|
|
10594
10616
|
};
|
|
10595
10617
|
e.updateCommand("copy", { callback: () => g() }), e.updateCommand("cut", { callback: () => g({ isCut: !0 }) }), e.updateCommand("paste", { callback: () => p() }), e.updateCommand("pasteValues", { callback: (e) => p({
|
|
10596
|
-
...
|
|
10618
|
+
...Cs,
|
|
10597
10619
|
...e
|
|
10598
10620
|
}) }), e.updateCommand("pasteFormats", { callback: (e, t) => p({
|
|
10599
|
-
...
|
|
10621
|
+
...xs,
|
|
10600
10622
|
description: t?.getLabel(),
|
|
10601
10623
|
...e
|
|
10602
10624
|
}) }), e.updateCommand("pasteFormulas", { callback: (e, t) => p({
|
|
10603
|
-
...
|
|
10625
|
+
...qs,
|
|
10604
10626
|
description: t?.getLabel(),
|
|
10605
10627
|
...e
|
|
10606
10628
|
}) }), e.updateCommand("pasteTranspose", { callback: (e, t) => p({
|
|
10607
|
-
...
|
|
10629
|
+
...ks,
|
|
10608
10630
|
description: t?.getLabel(),
|
|
10609
10631
|
...e
|
|
10610
10632
|
}) }), e.updateCommand("pasteLinks", { callback: (e, t) => p({
|
|
10611
|
-
...
|
|
10633
|
+
...Ts,
|
|
10612
10634
|
description: t?.getLabel(),
|
|
10613
10635
|
...e
|
|
10614
10636
|
}) }), e.updateCommand("formatPainterToggle", {
|
|
@@ -10642,7 +10664,7 @@ function Ts(e, t) {
|
|
|
10642
10664
|
const t = "range" === e?.getItemType() ? e : null;
|
|
10643
10665
|
if (t) {
|
|
10644
10666
|
const o = e.editMode?.(), n = {
|
|
10645
|
-
...e?.isCut?.() ?
|
|
10667
|
+
...e?.isCut?.() ? Ss : ys,
|
|
10646
10668
|
...o,
|
|
10647
10669
|
args: {
|
|
10648
10670
|
isClipboard: !0,
|
|
@@ -10670,8 +10692,8 @@ function Ts(e, t) {
|
|
|
10670
10692
|
w.removeEventListener("clipboardchange", y), w.removeEventListener("clipboarderrorread", x), w.removeEventListener("clipboarderrorwrite", k), T();
|
|
10671
10693
|
};
|
|
10672
10694
|
}
|
|
10673
|
-
var { CommandScopeProvider:
|
|
10674
|
-
const n = $t(), r = Nt(), l = Ot(), a = Ge(), i =
|
|
10695
|
+
var { CommandScopeProvider: Is, useCommandExecute: Ms } = rt, As = ({ sheet: e, className: t, ...o }) => {
|
|
10696
|
+
const n = $t(), r = Nt(), l = Ot(), a = Ge(), i = Ms(), s = r.getMode(), c = ee(() => ({
|
|
10675
10697
|
sheet: e,
|
|
10676
10698
|
notifier: n,
|
|
10677
10699
|
editModeHandler: r,
|
|
@@ -10684,10 +10706,10 @@ var { CommandScopeProvider: Rs, useCommandExecute: Is } = rt, Ms = ({ sheet: e,
|
|
|
10684
10706
|
l,
|
|
10685
10707
|
a
|
|
10686
10708
|
]), d = s?.key, u = "copy" === d || "cut" === d || "formatPainter" === d, g = s?.args?.reference, h = g?.getItem?.(), m = h?.getSource() === e, p = h?.getCoords?.();
|
|
10687
|
-
return ae(
|
|
10709
|
+
return ae(Is, {
|
|
10688
10710
|
spec: {
|
|
10689
10711
|
scopeName: "layer:clipboard",
|
|
10690
|
-
contributor: { dynamic:
|
|
10712
|
+
contributor: { dynamic: Rs },
|
|
10691
10713
|
data: c
|
|
10692
10714
|
},
|
|
10693
10715
|
order: Je().zIndex,
|
|
@@ -10708,19 +10730,19 @@ var { CommandScopeProvider: Rs, useCommandExecute: Is } = rt, Ms = ({ sheet: e,
|
|
|
10708
10730
|
})
|
|
10709
10731
|
});
|
|
10710
10732
|
};
|
|
10711
|
-
|
|
10712
|
-
var
|
|
10713
|
-
|
|
10714
|
-
var
|
|
10733
|
+
As.displayName = "SheetClipboardLayer";
|
|
10734
|
+
var Fs = $(null);
|
|
10735
|
+
Fs.displayName = "DocThemesContext";
|
|
10736
|
+
var Es = (e) => {
|
|
10715
10737
|
const { themes: t, children: o } = e;
|
|
10716
|
-
return ae(
|
|
10738
|
+
return ae(Fs.Provider, {
|
|
10717
10739
|
value: t,
|
|
10718
10740
|
children: o
|
|
10719
10741
|
});
|
|
10720
|
-
},
|
|
10721
|
-
const e = j(
|
|
10742
|
+
}, Ds = () => {
|
|
10743
|
+
const e = j(Fs), [t] = ne(() => new M());
|
|
10722
10744
|
return ee(() => e || t, [e]);
|
|
10723
|
-
},
|
|
10745
|
+
}, Ps = (e) => {
|
|
10724
10746
|
const t = e?.prefix ?? k, n = /* @__PURE__ */ new Map();
|
|
10725
10747
|
let r = null;
|
|
10726
10748
|
const l = (l, a = !1) => {
|
|
@@ -10751,20 +10773,20 @@ var Fs = (e) => {
|
|
|
10751
10773
|
return l.invalidate = () => {
|
|
10752
10774
|
n.clear(), o.invalidateSystemColors();
|
|
10753
10775
|
}, l;
|
|
10754
|
-
},
|
|
10776
|
+
}, Ns = "sxl-system-colors", Ls = () => {
|
|
10755
10777
|
if ("undefined" == typeof document) return;
|
|
10756
|
-
if (document.getElementById(
|
|
10778
|
+
if (document.getElementById(Ns)) return;
|
|
10757
10779
|
const e = o.getSystemColorDefaults(), t = Object.keys(e).map((t) => `${k}${t}:${e[t]};`).join(""), n = document.createElement("style");
|
|
10758
|
-
n.id =
|
|
10759
|
-
},
|
|
10780
|
+
n.id = Ns, n.textContent = `:root{${t}}`, document.head.appendChild(n);
|
|
10781
|
+
}, zs = (e) => {
|
|
10760
10782
|
const t = {};
|
|
10761
10783
|
for (const o in e) t[`${k}${o.toLowerCase()}`] = e[o];
|
|
10762
10784
|
return t;
|
|
10763
|
-
},
|
|
10785
|
+
}, Bs = () => {
|
|
10764
10786
|
ee(() => {
|
|
10765
|
-
|
|
10787
|
+
Ls();
|
|
10766
10788
|
}, []);
|
|
10767
|
-
},
|
|
10789
|
+
}, Os = null, Hs = () => (Os || (Os = Ps(), o.setDefaultSystemLookup(Os)), Os), Vs = [
|
|
10768
10790
|
[u.Named.Window, "var(--sxl-color-base-100)"],
|
|
10769
10791
|
[u.Named.Menu, "var(--sxl-color-base-100)"],
|
|
10770
10792
|
[u.Named.BtnFace, "var(--sxl-color-base-100)"],
|
|
@@ -10791,27 +10813,27 @@ var Fs = (e) => {
|
|
|
10791
10813
|
[u.Named.WindowFrame, "var(--sxl-color-base-300)"],
|
|
10792
10814
|
[u.Named.BtnShadow, "var(--sxl-color-neutral)"],
|
|
10793
10815
|
[u.Named.DkShadow3d, "var(--sxl-color-neutral)"]
|
|
10794
|
-
],
|
|
10795
|
-
for (const [e, t] of
|
|
10796
|
-
var
|
|
10797
|
-
light:
|
|
10798
|
-
dark:
|
|
10799
|
-
},
|
|
10800
|
-
app:
|
|
10816
|
+
], $s = {};
|
|
10817
|
+
for (const [e, t] of Vs) $s[`sys-color-${e.toLowerCase()}`] = t;
|
|
10818
|
+
var _s = {
|
|
10819
|
+
light: $s,
|
|
10820
|
+
dark: $s
|
|
10821
|
+
}, Ws = (e = "sxl-defaults", t) => qt({
|
|
10822
|
+
app: _s,
|
|
10801
10823
|
surfaces: {
|
|
10802
|
-
grid:
|
|
10803
|
-
header:
|
|
10824
|
+
grid: _s,
|
|
10825
|
+
header: _s
|
|
10804
10826
|
},
|
|
10805
10827
|
layer: e,
|
|
10806
10828
|
scope: t
|
|
10807
|
-
}),
|
|
10829
|
+
}), Us = (e, t) => {
|
|
10808
10830
|
let o = "";
|
|
10809
10831
|
if (e && (o = e.includes(" ") ? `"${e}"` : e), t) for (let e = 0; e < t.length; e++) o.length > 0 && (o += ", "), o += t[e];
|
|
10810
10832
|
return o;
|
|
10811
|
-
},
|
|
10833
|
+
}, Zs = (e, t) => {
|
|
10812
10834
|
const o = t ?? [];
|
|
10813
10835
|
return "Aptos Narrow" === e ? ["Calibri", ...o] : o;
|
|
10814
|
-
},
|
|
10836
|
+
}, Ks = (e, t, o) => {
|
|
10815
10837
|
const n = e.getColorScheme(), r = e.getFontScheme();
|
|
10816
10838
|
return {
|
|
10817
10839
|
"doc-color-dk1": n.getDk1().toCSS(o),
|
|
@@ -10826,28 +10848,28 @@ var $s = {
|
|
|
10826
10848
|
"doc-color-accent6": n.getAccent6().toCSS(o),
|
|
10827
10849
|
"doc-color-hlink": n.getHlink().toCSS(o),
|
|
10828
10850
|
"doc-color-fol-hlink": n.getFolHlink().toCSS(o),
|
|
10829
|
-
"doc-font-major":
|
|
10830
|
-
"doc-font-minor":
|
|
10851
|
+
"doc-font-major": Us(r.getMajorFont(), Zs(r.getMajorFont(), r.getMajorFallbacks())),
|
|
10852
|
+
"doc-font-minor": Us(r.getMinorFont(), Zs(r.getMinorFont(), r.getMinorFallbacks())),
|
|
10831
10853
|
"doc-font-size": `${t}pt`
|
|
10832
10854
|
};
|
|
10833
|
-
},
|
|
10855
|
+
}, Gs = (e, t = 11, o = "sxl-defaults", n) => qt({
|
|
10834
10856
|
app: {
|
|
10835
|
-
light:
|
|
10836
|
-
dark:
|
|
10857
|
+
light: Ks(e, t, !1),
|
|
10858
|
+
dark: Ks(e, t, !0)
|
|
10837
10859
|
},
|
|
10838
10860
|
layer: o,
|
|
10839
10861
|
scope: n
|
|
10840
|
-
}),
|
|
10862
|
+
}), js = {
|
|
10841
10863
|
Mode: "themeMode",
|
|
10842
10864
|
DarkGrid: "enableDarkGrid",
|
|
10843
10865
|
DarkImages: "enableDarkImages"
|
|
10844
|
-
},
|
|
10845
|
-
const [t] = Wt(
|
|
10866
|
+
}, Xs = (e) => {
|
|
10867
|
+
const [t] = Wt(js.Mode, null), [o] = Wt(js.DarkGrid, !1), { themeMode: n } = Ut({ mode: e ?? t ?? void 0 });
|
|
10846
10868
|
return e || ("dark" === n && o ? "dark" : "light");
|
|
10847
|
-
},
|
|
10848
|
-
const [e] = Wt(
|
|
10869
|
+
}, Ys = () => {
|
|
10870
|
+
const [e] = Wt(js.Mode, null), { themeMode: t } = Ut({ mode: e ?? void 0 });
|
|
10849
10871
|
return t;
|
|
10850
|
-
},
|
|
10872
|
+
}, Js = "_sheet-scrollbar_104cg_1", Qs = K(U((e, t) => {
|
|
10851
10873
|
const { style: o = ht.EmptyCssProperties, orientation: n, sheet: r, onShowTooltip: l, onCloseTooltip: a, onScrollOffset: i, showCustomScrollButtons: s, offset: c = 0, totalSize: d = 0, viewportSize: u = 0, className: g, endGap: h, ...m } = e;
|
|
10852
10874
|
if (!r) throw new Error("SheetScrollbar needs an ISheet");
|
|
10853
10875
|
const p = Dt(l, [l]), f = Dt(a, [a]), v = oe(null), b = jt([v, t]), w = n === vt.Vertical, y = Kt(), [S, C] = ne(() => {
|
|
@@ -10936,7 +10958,7 @@ var $s = {
|
|
|
10936
10958
|
}, []);
|
|
10937
10959
|
return ee(() => ae(xt, {
|
|
10938
10960
|
ref: b,
|
|
10939
|
-
className: tt(g,
|
|
10961
|
+
className: tt(g, Js),
|
|
10940
10962
|
style: o,
|
|
10941
10963
|
offset: L,
|
|
10942
10964
|
viewportSize: z,
|
|
@@ -10962,8 +10984,8 @@ var $s = {
|
|
|
10962
10984
|
h
|
|
10963
10985
|
]);
|
|
10964
10986
|
}));
|
|
10965
|
-
|
|
10966
|
-
var
|
|
10987
|
+
Qs.displayName = "SheetScrollbar";
|
|
10988
|
+
var ec = K(U((e, t) => {
|
|
10967
10989
|
const { sheetHeader: o, oppositeSize: n = 30, edgeSize: r = 1, edgeColor: l = "var(--sxl-color-base-300)", headerText: a, freezeStart: i, colorScheme: s, verticalPadding: c, horizontalPadding: d, onSheetContextMenu: u, onResizeHeadersStart: g, onResizeHeaders: h, onResizeHeadersEnd: m, onResizeHeadersDown: p, onResizeHeadersUp: v, viewport: b, onSelectionStart: w, onSelectionEnd: y, propsCellRender: S, style: C, className: x, ...q } = e, k = ee(() => o.getAxis(), [o]), T = Dt(g, [g]), R = Dt(h, [h]), I = Dt(m, [m]), M = Dt(p, [p]), A = Dt(v, [v]), F = oe(null), [E, D] = te((e) => e + 1, 0), P = o?.getSheet(), N = oe(!1);
|
|
10968
10990
|
Q(() => {
|
|
10969
10991
|
N.current = !0;
|
|
@@ -10982,7 +11004,7 @@ var Qs = K(U((e, t) => {
|
|
|
10982
11004
|
getRowOffset: (t) => e ? 0 === t ? 0 : n / B : o.getOffset(t),
|
|
10983
11005
|
getRowIndex: (t) => e ? 0 : o.getIndex(t)
|
|
10984
11006
|
};
|
|
10985
|
-
}, [W, U] = ne(() => _()), Z = ee(() => ae(
|
|
11007
|
+
}, [W, U] = ne(() => _()), Z = ee(() => ae(as, {
|
|
10986
11008
|
sheetHeader: o,
|
|
10987
11009
|
isColumn: k === f.Axis.Column,
|
|
10988
11010
|
oppositeSize: n,
|
|
@@ -11010,7 +11032,7 @@ var Qs = K(U((e, t) => {
|
|
|
11010
11032
|
rowStart: e.rowIndex,
|
|
11011
11033
|
rowEnd: e.rowIndex
|
|
11012
11034
|
}, {});
|
|
11013
|
-
}, [P]), Y = ee(() => ae(
|
|
11035
|
+
}, [P]), Y = ee(() => ae(ts, {
|
|
11014
11036
|
selection: o.getSheet().getSelection(),
|
|
11015
11037
|
axis: k,
|
|
11016
11038
|
entireCoords: o.getSheet().getEntireRange().getCoords(),
|
|
@@ -11027,7 +11049,7 @@ var Qs = K(U((e, t) => {
|
|
|
11027
11049
|
r,
|
|
11028
11050
|
l,
|
|
11029
11051
|
j
|
|
11030
|
-
]), J = ee(() => ae(
|
|
11052
|
+
]), J = ee(() => ae(vs, {
|
|
11031
11053
|
axis: k,
|
|
11032
11054
|
entireCoords: o.getSheet().getEntireRange().getCoords(),
|
|
11033
11055
|
scrollIntoView: j
|
|
@@ -11037,7 +11059,7 @@ var Qs = K(U((e, t) => {
|
|
|
11037
11059
|
i,
|
|
11038
11060
|
k,
|
|
11039
11061
|
j
|
|
11040
|
-
]), re = ee(() => u ? ae(
|
|
11062
|
+
]), re = ee(() => u ? ae(fs, {
|
|
11041
11063
|
sheet: o.getSheet(),
|
|
11042
11064
|
onSheetContextMenu: K
|
|
11043
11065
|
}, `context-menu-layer-${k}-[${o.getSheet().getId()}]`) : null, [
|
|
@@ -11102,7 +11124,7 @@ var Qs = K(U((e, t) => {
|
|
|
11102
11124
|
n,
|
|
11103
11125
|
E
|
|
11104
11126
|
]), he = ee(() => [
|
|
11105
|
-
ae(
|
|
11127
|
+
ae($l, {
|
|
11106
11128
|
header: o,
|
|
11107
11129
|
renderCell: ie
|
|
11108
11130
|
}, `header-cells-${k}-[${o.getSheet().getId()}]`),
|
|
@@ -11149,7 +11171,7 @@ var Qs = K(U((e, t) => {
|
|
|
11149
11171
|
return X(() => {
|
|
11150
11172
|
N.current = !1, F.current?.invalidate();
|
|
11151
11173
|
}, [o]), me;
|
|
11152
|
-
})),
|
|
11174
|
+
})), tc = K(U((e, t) => {
|
|
11153
11175
|
const { sheet: o, colorScheme: n, className: r, style: l, width: a, height: i, onMouseDown: s, ...c } = e, [d, u] = ne(o.getSelection().isEntire()), [g, h] = ne(!1), [m] = Pt("selectAll");
|
|
11154
11176
|
wo(o?.getSelection(), { onChange: () => {
|
|
11155
11177
|
u(o.getSelection().isEntire()), h(o.getSelection().hasTopOrLeft());
|
|
@@ -11201,8 +11223,8 @@ var Qs = K(U((e, t) => {
|
|
|
11201
11223
|
} })]
|
|
11202
11224
|
});
|
|
11203
11225
|
}));
|
|
11204
|
-
|
|
11205
|
-
var
|
|
11226
|
+
tc.displayName = "TopLeftCorner";
|
|
11227
|
+
var oc = Object.freeze([
|
|
11206
11228
|
{
|
|
11207
11229
|
key: "lightRedFillDarkRedText",
|
|
11208
11230
|
style: {
|
|
@@ -11265,7 +11287,7 @@ var tc = Object.freeze([
|
|
|
11265
11287
|
}
|
|
11266
11288
|
} }
|
|
11267
11289
|
}
|
|
11268
|
-
]),
|
|
11290
|
+
]), nc = "#F8696B", rc = "#FFEB84", lc = "#63BE7B", ac = "#FCFCFF", ic = "#5A8AC6", sc = "#FFEF9C", cc = (e) => {
|
|
11269
11291
|
const t = e.map((t, o) => 0 === o ? {
|
|
11270
11292
|
type: h.ColorStopType.Min,
|
|
11271
11293
|
color: t
|
|
@@ -11281,51 +11303,51 @@ var tc = Object.freeze([
|
|
|
11281
11303
|
type: h.ScaleType.ColorScale,
|
|
11282
11304
|
stops: t
|
|
11283
11305
|
};
|
|
11284
|
-
},
|
|
11285
|
-
|
|
11306
|
+
}, dc = Object.freeze([
|
|
11307
|
+
cc([
|
|
11308
|
+
lc,
|
|
11286
11309
|
rc,
|
|
11287
|
-
nc
|
|
11288
|
-
oc
|
|
11310
|
+
nc
|
|
11289
11311
|
]),
|
|
11290
|
-
|
|
11291
|
-
oc,
|
|
11312
|
+
cc([
|
|
11292
11313
|
nc,
|
|
11293
|
-
rc
|
|
11294
|
-
]),
|
|
11295
|
-
sc([
|
|
11296
11314
|
rc,
|
|
11297
|
-
lc
|
|
11298
|
-
oc
|
|
11315
|
+
lc
|
|
11299
11316
|
]),
|
|
11300
|
-
|
|
11301
|
-
oc,
|
|
11317
|
+
cc([
|
|
11302
11318
|
lc,
|
|
11303
|
-
|
|
11319
|
+
ac,
|
|
11320
|
+
nc
|
|
11304
11321
|
]),
|
|
11305
|
-
|
|
11322
|
+
cc([
|
|
11323
|
+
nc,
|
|
11306
11324
|
ac,
|
|
11307
|
-
lc
|
|
11308
|
-
oc
|
|
11325
|
+
lc
|
|
11309
11326
|
]),
|
|
11310
|
-
|
|
11311
|
-
|
|
11312
|
-
|
|
11313
|
-
|
|
11327
|
+
cc([
|
|
11328
|
+
ic,
|
|
11329
|
+
ac,
|
|
11330
|
+
nc
|
|
11331
|
+
]),
|
|
11332
|
+
cc([
|
|
11333
|
+
nc,
|
|
11334
|
+
ac,
|
|
11335
|
+
ic
|
|
11314
11336
|
]),
|
|
11315
|
-
|
|
11316
|
-
|
|
11317
|
-
|
|
11318
|
-
|
|
11319
|
-
|
|
11320
|
-
|
|
11321
|
-
]),
|
|
11337
|
+
cc([ac, nc]),
|
|
11338
|
+
cc([nc, ac]),
|
|
11339
|
+
cc([lc, ac]),
|
|
11340
|
+
cc([ac, lc]),
|
|
11341
|
+
cc([lc, sc]),
|
|
11342
|
+
cc([sc, lc])
|
|
11343
|
+
]), uc = Object.freeze([
|
|
11322
11344
|
"#638EC6",
|
|
11323
11345
|
"#63C384",
|
|
11324
11346
|
"#FF555A",
|
|
11325
11347
|
"#FFB628",
|
|
11326
11348
|
"#008AEF",
|
|
11327
11349
|
"#D6007B"
|
|
11328
|
-
]),
|
|
11350
|
+
]), gc = "#FF0000", hc = (e, t) => ({
|
|
11329
11351
|
type: h.ScaleType.DataBar,
|
|
11330
11352
|
stops: [{ type: h.ColorStopType.AutoMin }, { type: h.ColorStopType.AutoMax }],
|
|
11331
11353
|
color: e,
|
|
@@ -11333,18 +11355,18 @@ var tc = Object.freeze([
|
|
|
11333
11355
|
gradient: !0,
|
|
11334
11356
|
borderColor: e
|
|
11335
11357
|
} : null
|
|
11336
|
-
}),
|
|
11358
|
+
}), mc = Object.freeze([...uc.map((e) => hc(e, !0)), ...uc.map((e) => hc(e, !1))]), pc = () => structuredClone(dc[1]), fc = () => structuredClone(mc[0]), vc = (e) => {
|
|
11337
11359
|
const t = [];
|
|
11338
11360
|
for (let o = 0; o < e; o++) t.push({
|
|
11339
11361
|
type: h.ColorStopType.Percent,
|
|
11340
11362
|
value: Math.round(100 * o / e)
|
|
11341
11363
|
});
|
|
11342
11364
|
return t;
|
|
11343
|
-
},
|
|
11365
|
+
}, bc = () => ({
|
|
11344
11366
|
type: h.ScaleType.IconSet,
|
|
11345
11367
|
iconSet: w.IconSet.TrafficLights3,
|
|
11346
|
-
stops:
|
|
11347
|
-
}),
|
|
11368
|
+
stops: vc(3)
|
|
11369
|
+
}), wc = Object.freeze([
|
|
11348
11370
|
{
|
|
11349
11371
|
key: "directional",
|
|
11350
11372
|
sets: [
|
|
@@ -11385,10 +11407,10 @@ var tc = Object.freeze([
|
|
|
11385
11407
|
w.IconSet.Boxes5
|
|
11386
11408
|
]
|
|
11387
11409
|
}
|
|
11388
|
-
]),
|
|
11410
|
+
]), yc = (e) => {
|
|
11389
11411
|
const t = parseInt(e, 10);
|
|
11390
11412
|
return Number.isFinite(t) && t > 0 ? t : 3;
|
|
11391
|
-
},
|
|
11413
|
+
}, Sc = (e, t) => e ? [t] : [], Cc = /* @__PURE__ */ new Set([
|
|
11392
11414
|
"formatTextRotate0",
|
|
11393
11415
|
"formatTextRotate45",
|
|
11394
11416
|
"formatTextRotate90",
|
|
@@ -11396,12 +11418,12 @@ var tc = Object.freeze([
|
|
|
11396
11418
|
"formatTextRotate315",
|
|
11397
11419
|
"formatTextRotateCustom",
|
|
11398
11420
|
"formatTextRotateVertical"
|
|
11399
|
-
]),
|
|
11421
|
+
]), xc = /* @__PURE__ */ new Set([
|
|
11400
11422
|
"dataTextToColumns",
|
|
11401
11423
|
"sortAscending",
|
|
11402
11424
|
"sortDescending"
|
|
11403
11425
|
]);
|
|
11404
|
-
function
|
|
11426
|
+
function qc(e, t) {
|
|
11405
11427
|
const o = () => t.getView();
|
|
11406
11428
|
e.updateCommand("gridlinesToggle", { callback: () => {
|
|
11407
11429
|
const e = o().isShowColumnGridlines() && o().isShowRowGridlines();
|
|
@@ -11418,7 +11440,7 @@ function xc(e, t) {
|
|
|
11418
11440
|
o().setGridLineColor(e);
|
|
11419
11441
|
},
|
|
11420
11442
|
context: () => ({
|
|
11421
|
-
...
|
|
11443
|
+
...Tc(t),
|
|
11422
11444
|
autoColor: null,
|
|
11423
11445
|
onColorSelect: () => {}
|
|
11424
11446
|
})
|
|
@@ -11535,8 +11557,8 @@ function xc(e, t) {
|
|
|
11535
11557
|
a(), i();
|
|
11536
11558
|
};
|
|
11537
11559
|
}
|
|
11538
|
-
var
|
|
11539
|
-
function
|
|
11560
|
+
var kc = new o("transparent");
|
|
11561
|
+
function Tc(e) {
|
|
11540
11562
|
const t = e.getStyles();
|
|
11541
11563
|
return {
|
|
11542
11564
|
schemeLookup: t.schemeLookup(),
|
|
@@ -11545,7 +11567,7 @@ function kc(e) {
|
|
|
11545
11567
|
clearRecentColors: () => t.clearRecentColors()
|
|
11546
11568
|
};
|
|
11547
11569
|
}
|
|
11548
|
-
function
|
|
11570
|
+
function Rc(e, t, o) {
|
|
11549
11571
|
e.updateCommand("dataRemoveDuplicates", { callback: async (e) => {
|
|
11550
11572
|
const n = t.getSelectedRanges();
|
|
11551
11573
|
n.getCount() > 1 ? o?.showError(new fe(xe("error.removeDuplicates.multipleRanges"))) : n.at(0).removeDuplicates({
|
|
@@ -11648,7 +11670,7 @@ function Tc(e, t, o) {
|
|
|
11648
11670
|
callback: (e) => n({}, e, !0, Ce("op.sortCustom"))
|
|
11649
11671
|
}), () => {};
|
|
11650
11672
|
}
|
|
11651
|
-
function
|
|
11673
|
+
function Ic(e, t, o, n, r) {
|
|
11652
11674
|
const l = () => t.getTables().getItems({ address: t.getSelectedCell().getCoords() })[0] ?? null, a = (e, n = !1) => {
|
|
11653
11675
|
const r = l();
|
|
11654
11676
|
if (r) return void r.updateStyleOptions(e);
|
|
@@ -11754,11 +11776,11 @@ function Rc(e, t, o, n, r) {
|
|
|
11754
11776
|
}
|
|
11755
11777
|
});
|
|
11756
11778
|
const c = () => {
|
|
11757
|
-
const o = l(), n = t.getTables().getItems({ address: t.getSelectedRange() }), a = [...
|
|
11779
|
+
const o = l(), n = t.getTables().getItems({ address: t.getSelectedRange() }), a = [...Sc(!t.getProtection().isFormatCellsAllowed(), Ce("reason.sheetProtected")), ...Sc(n.length > 0 && !o, Ce("reason.tableAmbiguous"))];
|
|
11758
11780
|
e.updateCommand("formatTableStyle", {
|
|
11759
11781
|
params: { hasTable: !!o },
|
|
11760
11782
|
disabledReasons: a
|
|
11761
|
-
}), e.updateCommand("formatTableStyleClearCellStyles", { disabledReasons: a }), e.updateCommand("insertTable", { disabledReasons: [...a, ...
|
|
11783
|
+
}), e.updateCommand("formatTableStyleClearCellStyles", { disabledReasons: a }), e.updateCommand("insertTable", { disabledReasons: [...a, ...Sc(n.length > 0, Ce("reason.alreadyTable"))] });
|
|
11762
11784
|
};
|
|
11763
11785
|
c();
|
|
11764
11786
|
const d = () => {
|
|
@@ -11773,11 +11795,11 @@ function Rc(e, t, o, n, r) {
|
|
|
11773
11795
|
g(), h(), u?.();
|
|
11774
11796
|
};
|
|
11775
11797
|
}
|
|
11776
|
-
function
|
|
11798
|
+
function Mc(e, o) {
|
|
11777
11799
|
const n = o.sheet;
|
|
11778
11800
|
if (!n) return () => {};
|
|
11779
11801
|
const r = o, a = r?.notifier;
|
|
11780
|
-
e.use(
|
|
11802
|
+
e.use(qa({
|
|
11781
11803
|
transaction: n,
|
|
11782
11804
|
notifier: a,
|
|
11783
11805
|
manager: r?.manager
|
|
@@ -11833,7 +11855,7 @@ function Ic(e, o) {
|
|
|
11833
11855
|
callback: () => {
|
|
11834
11856
|
r?.activateTaskPane?.("conditionalFormatDetails", { args: { draft: {
|
|
11835
11857
|
condition: e,
|
|
11836
|
-
style: structuredClone(
|
|
11858
|
+
style: structuredClone(oc[0].style)
|
|
11837
11859
|
} } });
|
|
11838
11860
|
}
|
|
11839
11861
|
}), u = g.BuiltInOperatorNames, h = g.BuiltInSelectorNames;
|
|
@@ -11901,11 +11923,11 @@ function Ic(e, o) {
|
|
|
11901
11923
|
operator: u.Average,
|
|
11902
11924
|
param: { type: g.AverageType.Below }
|
|
11903
11925
|
})), e.updateCommand("conditionalFormatDataBar", { callback: (e) => {
|
|
11904
|
-
i({ scale: e ? structuredClone(e) :
|
|
11926
|
+
i({ scale: e ? structuredClone(e) : fc() });
|
|
11905
11927
|
} }), e.updateCommand("conditionalFormatColorScale", { callback: (e) => {
|
|
11906
|
-
i({ scale: e ? structuredClone(e) :
|
|
11928
|
+
i({ scale: e ? structuredClone(e) : pc() });
|
|
11907
11929
|
} }), e.updateCommand("conditionalFormatIconSet", { callback: () => {
|
|
11908
|
-
i({ scale:
|
|
11930
|
+
i({ scale: bc() });
|
|
11909
11931
|
} }), e.updateCommand("conditionalFormatClearSelection", { callback: () => {
|
|
11910
11932
|
const e = n.getConditionalFormats(), t = /* @__PURE__ */ new Set();
|
|
11911
11933
|
for (const o of n.getSelectedRanges().getCoords()) for (const n of e.getItems({ address: o })) t.add(n);
|
|
@@ -11974,7 +11996,7 @@ function Ic(e, o) {
|
|
|
11974
11996
|
callback: () => b()
|
|
11975
11997
|
});
|
|
11976
11998
|
const S = e.getKeysByTag("mutator"), C = () => {
|
|
11977
|
-
const t = n.getProtection(), o = t.isLocked(), l = !t.isFormatCellsAllowed(), a =
|
|
11999
|
+
const t = n.getProtection(), o = t.isLocked(), l = !t.isFormatCellsAllowed(), a = Sc(l, Ce("reason.sheetProtected"));
|
|
11978
12000
|
e.updateCommand("protectionSheetToggle", {
|
|
11979
12001
|
state: o,
|
|
11980
12002
|
params: { locked: o }
|
|
@@ -11985,47 +12007,47 @@ function Ic(e, o) {
|
|
|
11985
12007
|
const h = 1 === c.length && c[0].colStart === c[0].colEnd, m = !(n.getTables().getItems({ address: s }).length > 0) && !u && (d || !g);
|
|
11986
12008
|
let p = !1, v = !1, b = !1, w = !1;
|
|
11987
12009
|
l || (p = i.isEntireColumnsAny(), v = p && !i.isEntireColumns(), b = i.isEntireRowsAny(), w = b && !i.isEntireRows());
|
|
11988
|
-
for (const t of S)
|
|
12010
|
+
for (const t of S) Cc.has(t) || xc.has(t) || e.updateCommand(t, { disabledReasons: a });
|
|
11989
12011
|
const C = n.getSelectedCell().getStyle().getAlignment().getHorizontal(), x = C === y.HorizontalAlignment.CenterContinuous || C === y.HorizontalAlignment.Fill;
|
|
11990
|
-
for (const t of
|
|
12012
|
+
for (const t of Cc) e.updateCommand(t, { disabledReasons: [...a, ...Sc(x, Ce("reason.continuousSpan"))] });
|
|
11991
12013
|
e.updateCommand("dataTextToColumns", { disabledReasons: [
|
|
11992
12014
|
...a,
|
|
11993
|
-
...
|
|
11994
|
-
...
|
|
12015
|
+
...Sc(!h, Ce("reason.singleColumn")),
|
|
12016
|
+
...Sc(o, Ce("reason.sheetLocked"))
|
|
11995
12017
|
] });
|
|
11996
|
-
const q = [...a, ...
|
|
12018
|
+
const q = [...a, ...Sc(1 !== i.getCount(), Ce("reason.sortRange"))];
|
|
11997
12019
|
e.updateCommand("sortAscending", { disabledReasons: q }), e.updateCommand("sortDescending", { disabledReasons: q });
|
|
11998
|
-
const k =
|
|
12020
|
+
const k = Sc(!m, Ce("reason.mergeUnavailable"));
|
|
11999
12021
|
e.updateCommand("mergeToggle", {
|
|
12000
12022
|
state: d,
|
|
12001
12023
|
disabledReasons: [...a, ...k]
|
|
12002
12024
|
}), e.updateCommand("mergeHorizontal", { disabledReasons: [...a, ...k] }), e.updateCommand("mergeVertical", { disabledReasons: [...a, ...k] }), e.updateCommand("unmerge", { disabledReasons: [
|
|
12003
12025
|
...a,
|
|
12004
|
-
...
|
|
12026
|
+
...Sc(!d, Ce("reason.noMerge")),
|
|
12005
12027
|
...k
|
|
12006
12028
|
] });
|
|
12007
|
-
const T =
|
|
12029
|
+
const T = Sc(u, Ce("reason.overlap")), R = [
|
|
12008
12030
|
...a,
|
|
12009
|
-
...
|
|
12031
|
+
...Sc(b, Ce("reason.entireColumn")),
|
|
12010
12032
|
...T,
|
|
12011
|
-
...
|
|
12033
|
+
...Sc(v, Ce("reason.mixedSelection"))
|
|
12012
12034
|
], I = [
|
|
12013
12035
|
...a,
|
|
12014
|
-
...
|
|
12036
|
+
...Sc(p, Ce("reason.entireRow")),
|
|
12015
12037
|
...T,
|
|
12016
|
-
...
|
|
12038
|
+
...Sc(w, Ce("reason.mixedSelection"))
|
|
12017
12039
|
];
|
|
12018
12040
|
e.updateCommand("insertCellsShiftDown", { disabledReasons: R }), e.updateCommand("deleteCellsShiftUp", { disabledReasons: R }), e.updateCommand("insertCellsShiftRight", { disabledReasons: I }), e.updateCommand("deleteCellsShiftLeft", { disabledReasons: I });
|
|
12019
12041
|
const M = [
|
|
12020
12042
|
...a,
|
|
12021
|
-
...
|
|
12043
|
+
...Sc(b, Ce("reason.entireRow")),
|
|
12022
12044
|
...T,
|
|
12023
|
-
...
|
|
12045
|
+
...Sc(v, Ce("reason.mixedSelection"))
|
|
12024
12046
|
], A = [
|
|
12025
12047
|
...a,
|
|
12026
|
-
...
|
|
12048
|
+
...Sc(p, Ce("reason.entireColumn")),
|
|
12027
12049
|
...T,
|
|
12028
|
-
...
|
|
12050
|
+
...Sc(w, Ce("reason.mixedSelection"))
|
|
12029
12051
|
];
|
|
12030
12052
|
for (const t of [
|
|
12031
12053
|
"insertRows",
|
|
@@ -12078,7 +12100,7 @@ function Ic(e, o) {
|
|
|
12078
12100
|
onStyleChange: C,
|
|
12079
12101
|
onInvalidated: C,
|
|
12080
12102
|
onClose: () => e.remove()
|
|
12081
|
-
}), k = n.getSelection().addListeners({ onChange: C }), T =
|
|
12103
|
+
}), k = n.getSelection().addListeners({ onChange: C }), T = qc(e, n), R = function(e, t, o, n) {
|
|
12082
12104
|
const r = (e, o = !1, n) => {
|
|
12083
12105
|
const r = n ?? {
|
|
12084
12106
|
autoSelect: !0,
|
|
@@ -12141,12 +12163,12 @@ function Ic(e, o) {
|
|
|
12141
12163
|
} }), e.updateCommand("formatFontColor", { callback: (e) => {
|
|
12142
12164
|
r({ font: { color: e } });
|
|
12143
12165
|
} }), e.updateCommand("formatFillColor", { context: () => ({
|
|
12144
|
-
...
|
|
12145
|
-
autoColor:
|
|
12166
|
+
...Tc(t),
|
|
12167
|
+
autoColor: kc,
|
|
12146
12168
|
quickColor: n?.getLastFillColor?.() ?? void 0,
|
|
12147
|
-
onColorSelect: (e) => n?.setLastFillColor?.(e ??
|
|
12169
|
+
onColorSelect: (e) => n?.setLastFillColor?.(e ?? kc)
|
|
12148
12170
|
}) }), e.updateCommand("formatFontColor", { context: () => ({
|
|
12149
|
-
...
|
|
12171
|
+
...Tc(t),
|
|
12150
12172
|
autoColor: t.getStyles().getNormal().getFont().getColor(),
|
|
12151
12173
|
quickColor: n?.getLastFontColor?.() ?? void 0,
|
|
12152
12174
|
onColorSelect: (e) => n?.setLastFontColor?.(e)
|
|
@@ -12251,10 +12273,10 @@ function Ic(e, o) {
|
|
|
12251
12273
|
callback: (e) => {
|
|
12252
12274
|
t.setTabColor(e);
|
|
12253
12275
|
},
|
|
12254
|
-
state: t.getTabColor() ??
|
|
12276
|
+
state: t.getTabColor() ?? kc,
|
|
12255
12277
|
context: () => ({
|
|
12256
|
-
...
|
|
12257
|
-
autoColor:
|
|
12278
|
+
...Tc(t),
|
|
12279
|
+
autoColor: kc,
|
|
12258
12280
|
onColorSelect: () => {}
|
|
12259
12281
|
})
|
|
12260
12282
|
});
|
|
@@ -12344,7 +12366,7 @@ function Ic(e, o) {
|
|
|
12344
12366
|
const n = o() ?? t.getAutoTable(), r = t.getProtection(), l = !r.isAutoTableAllowed() || !r.isSortAllowed();
|
|
12345
12367
|
e.updateCommand("tableFilterToggle", {
|
|
12346
12368
|
state: !!n && !n.isHiddenButtons(),
|
|
12347
|
-
disabledReasons:
|
|
12369
|
+
disabledReasons: Sc(l, Ce("reason.sheetProtected"))
|
|
12348
12370
|
});
|
|
12349
12371
|
};
|
|
12350
12372
|
n();
|
|
@@ -12406,24 +12428,38 @@ function Ic(e, o) {
|
|
|
12406
12428
|
const n = (e, n) => {
|
|
12407
12429
|
const r = o.getSelectedRanges();
|
|
12408
12430
|
r.doBatch(() => {
|
|
12409
|
-
const n = e === f.Direction.Up || e === f.Direction.Down, l =
|
|
12410
|
-
|
|
12411
|
-
|
|
12412
|
-
|
|
12413
|
-
|
|
12414
|
-
|
|
12415
|
-
|
|
12416
|
-
|
|
12417
|
-
|
|
12418
|
-
|
|
12419
|
-
|
|
12420
|
-
|
|
12421
|
-
|
|
12422
|
-
|
|
12423
|
-
|
|
12424
|
-
|
|
12425
|
-
|
|
12426
|
-
|
|
12431
|
+
const n = e === f.Direction.Up || e === f.Direction.Down, l = e === f.Direction.Up || e === f.Direction.Left, a = o.getEntireCoords(), i = n ? a.rowEnd : a.colEnd, s = (e) => n ? [e.rowStart, e.rowEnd] : [e.colStart, e.colEnd], c = (e, t, o) => n ? {
|
|
12432
|
+
...e,
|
|
12433
|
+
rowStart: t,
|
|
12434
|
+
rowEnd: o
|
|
12435
|
+
} : {
|
|
12436
|
+
...e,
|
|
12437
|
+
colStart: t,
|
|
12438
|
+
colEnd: o
|
|
12439
|
+
}, d = (e) => {
|
|
12440
|
+
let t = e;
|
|
12441
|
+
for (;;) {
|
|
12442
|
+
const [e, n] = s(t);
|
|
12443
|
+
let r = e, l = n;
|
|
12444
|
+
for (const e of o.getRange(t).getMerges()) {
|
|
12445
|
+
const [t, o] = s(e);
|
|
12446
|
+
r = Math.min(r, t), l = Math.max(l, o);
|
|
12447
|
+
}
|
|
12448
|
+
if (r === e && l === n) return t;
|
|
12449
|
+
t = c(t, r, l);
|
|
12450
|
+
}
|
|
12451
|
+
}, u = r.getCoords().slice().sort(ge.createRangeComparator(n ? f.Axis.Row : f.Axis.Column));
|
|
12452
|
+
for (const e of u) {
|
|
12453
|
+
const [n, r] = s(e);
|
|
12454
|
+
let a;
|
|
12455
|
+
if (n !== r) a = d(l ? c(e, r, r) : c(e, n, n));
|
|
12456
|
+
else {
|
|
12457
|
+
const t = l ? r + 1 : n - 1;
|
|
12458
|
+
if (t < 0 || t > i) continue;
|
|
12459
|
+
a = d(c(e, t, t));
|
|
12460
|
+
}
|
|
12461
|
+
const [u, g] = s(a), h = c(e, Math.min(n, u), Math.max(r, g));
|
|
12462
|
+
o.getRange(a).autoFill(h, { filler: t.Types.Copy }), o.getRange(e).autoFit({
|
|
12427
12463
|
axes: f.AxisSelection.Row,
|
|
12428
12464
|
skipCustomSize: !0,
|
|
12429
12465
|
minContent: !0
|
|
@@ -12464,7 +12500,7 @@ function Ic(e, o) {
|
|
|
12464
12500
|
o && (e === f.Axis.Row ? n = n.getEntireRows() : e === f.Axis.Column && (n = n.getEntireColumns())), n.delete(e);
|
|
12465
12501
|
};
|
|
12466
12502
|
return e.updateCommand("insertCells", { callback: () => r() }), e.updateCommand("insertCellsShiftRight", { callback: () => r(f.Axis.Column) }), e.updateCommand("insertCellsShiftDown", { callback: () => r(f.Axis.Row) }), e.updateCommand("insertRows", { callback: () => r(f.Axis.Row, !0) }), e.updateCommand("insertColumns", { callback: () => r(f.Axis.Column, !0) }), e.updateCommand("insertRowsAfter", { callback: () => r(f.Axis.Row, !0, !0) }), e.updateCommand("insertColumnsAfter", { callback: () => r(f.Axis.Column, !0, !0) }), e.updateCommand("deleteCells", { callback: () => l() }), e.updateCommand("deleteCellsShiftUp", { callback: () => l(f.Axis.Row) }), e.updateCommand("deleteCellsShiftLeft", { callback: () => l(f.Axis.Column) }), e.updateCommand("deleteRows", { callback: () => l(f.Axis.Row, !0) }), e.updateCommand("deleteColumns", { callback: () => l(f.Axis.Column, !0) }), () => {};
|
|
12467
|
-
}(e, n, r?.editModeHandler, r?.globalClipboard), P =
|
|
12503
|
+
}(e, n, r?.editModeHandler, r?.globalClipboard), P = Rc(e, n, a), N = function(e, t, o) {
|
|
12468
12504
|
return e.updateCommand("updateHyperlink", {
|
|
12469
12505
|
tags: ["noTransaction"],
|
|
12470
12506
|
callback: () => {
|
|
@@ -12543,15 +12579,15 @@ function Ic(e, o) {
|
|
|
12543
12579
|
e && await r({ source: { fetch: e } });
|
|
12544
12580
|
}
|
|
12545
12581
|
}), () => {};
|
|
12546
|
-
}(e, n, a, r?.editModeHandler), z =
|
|
12582
|
+
}(e, n, a, r?.editModeHandler), z = Ic(e, n, a, r?.activateTaskPane, r?.taskPaneArea);
|
|
12547
12583
|
return () => {
|
|
12548
12584
|
q(), k(), T(), R(), I(), M(), A(), F(), E(), D(), P(), N(), L(), z();
|
|
12549
12585
|
};
|
|
12550
12586
|
}
|
|
12551
|
-
var { CommandScopeProvider:
|
|
12552
|
-
|
|
12553
|
-
var
|
|
12554
|
-
const o =
|
|
12587
|
+
var { CommandScopeProvider: Ac } = rt;
|
|
12588
|
+
Za();
|
|
12589
|
+
var Fc = { dynamic: (e, t) => {
|
|
12590
|
+
const o = Mc(e, t), n = t.editable && t.sheet ? $r(e, {
|
|
12555
12591
|
editable: t.editable,
|
|
12556
12592
|
sheet: t.sheet,
|
|
12557
12593
|
flavor: "startEdit"
|
|
@@ -12559,14 +12595,14 @@ var Ac = { dynamic: (e, t) => {
|
|
|
12559
12595
|
return () => {
|
|
12560
12596
|
o(), n?.();
|
|
12561
12597
|
};
|
|
12562
|
-
} },
|
|
12598
|
+
} }, Ec = ({ sheet: e, editable: t, scopeRef: o, elementRef: n, children: r }) => rt.useCommandScope() ? ae(Dc, {
|
|
12563
12599
|
sheet: e,
|
|
12564
12600
|
editable: t,
|
|
12565
12601
|
scopeRef: o,
|
|
12566
12602
|
elementRef: n,
|
|
12567
12603
|
children: r
|
|
12568
|
-
}) : ae(le, { children: r }),
|
|
12569
|
-
const l = $t(), a =
|
|
12604
|
+
}) : ae(le, { children: r }), Dc = ({ sheet: e, editable: t, scopeRef: o, elementRef: n, children: r }) => {
|
|
12605
|
+
const l = $t(), a = ra(), i = Nt(), s = Ot(), c = Ca(), d = ee(() => ({ serializer: {
|
|
12570
12606
|
parse: (t) => t ? e?.getStyles().parseColor(t) ?? null : null,
|
|
12571
12607
|
stringify: (e) => e ? e.toString() : ""
|
|
12572
12608
|
} }), [e]), [g, h] = Wt("sheet.lastFillColor", e?.getStyles().parseColor(u.Scheme.Bg2), d), [m, p] = Wt("sheet.lastFontColor", e?.getStyles().parseColor(e?.getStyles().getNormal().getFont().getColor()), d), [f, v] = Wt("sheet.lastBorder", null), b = oe(g);
|
|
@@ -12587,10 +12623,10 @@ var Ac = { dynamic: (e, t) => {
|
|
|
12587
12623
|
p,
|
|
12588
12624
|
v
|
|
12589
12625
|
]);
|
|
12590
|
-
return ae(
|
|
12626
|
+
return ae(Ac, {
|
|
12591
12627
|
spec: ee(() => ({
|
|
12592
12628
|
scopeName: "sheet",
|
|
12593
|
-
contributor:
|
|
12629
|
+
contributor: Fc,
|
|
12594
12630
|
data: {
|
|
12595
12631
|
sheet: e,
|
|
12596
12632
|
editable: t,
|
|
@@ -12617,8 +12653,8 @@ var Ac = { dynamic: (e, t) => {
|
|
|
12617
12653
|
children: r
|
|
12618
12654
|
});
|
|
12619
12655
|
};
|
|
12620
|
-
|
|
12621
|
-
var
|
|
12656
|
+
Dc.displayName = "SheetCommandProviderInner";
|
|
12657
|
+
var Pc = "_sheetxl-sheet_3nny_5", Nc = "_viewport-overlay_3nny_6", Lc = K(U((e, t) => {
|
|
12622
12658
|
const { sheet: o, className: n, style: r = ht.EmptyCssProperties, ref: l, colorScheme: a, gridColorScheme: i, onSheetContextMenu: s, showColumnHeaders: c, propsColumnHeader: d, showRowHeaders: u, propsRowHeader: g, showScrollbars: h = !0, showCellErrors: m = !0, propsScrollPane: f, viewport: v, onViewportChange: b, layers: w, renderMovable: y, viewportComponent: S, onFirstRender: x, editable: q, onFocus: k, onBlur: R, onShowTooltip: I, onCloseTooltip: M, propsGrid: A, propsCellRender: F, ...E } = e;
|
|
12623
12659
|
if (X(() => {
|
|
12624
12660
|
C._validate(!0);
|
|
@@ -12627,9 +12663,9 @@ var Dc = "_sheetxl-sheet_3nny_5", Pc = "_viewport-overlay_3nny_6", Nc = K(U((e,
|
|
|
12627
12663
|
ee(() => {
|
|
12628
12664
|
H.current !== o && (O.current = o ? o.getId() : null), H.current = o;
|
|
12629
12665
|
}, [o]);
|
|
12630
|
-
const V = "dark" ===
|
|
12631
|
-
|
|
12632
|
-
const _ = Y(), W = ee(() => kt("sheet", _), [_]), U = ee(() => _e({ scope: `.${W}` }), [W]), Z = ee(() =>
|
|
12666
|
+
const V = "dark" === Xs(i), $ = Ys();
|
|
12667
|
+
Bs();
|
|
12668
|
+
const _ = Y(), W = ee(() => kt("sheet", _), [_]), U = ee(() => _e({ scope: `.${W}` }), [W]), Z = ee(() => Ws("sxl-defaults", `.${W}`), [W]), K = o.getStyles(), j = K.getTheme(), J = K.getDefaultFontSize(), re = ee(() => Gs(j, J, "sxl-defaults", `.${W}`), [
|
|
12633
12669
|
j,
|
|
12634
12670
|
J,
|
|
12635
12671
|
W
|
|
@@ -12639,7 +12675,7 @@ var Dc = "_sheetxl-sheet_3nny_5", Pc = "_viewport-overlay_3nny_6", Nc = K(U((e,
|
|
|
12639
12675
|
width: 0,
|
|
12640
12676
|
height: 0
|
|
12641
12677
|
}), qe = Ce.width, ke = Ce.height, Te = ee(() => {
|
|
12642
|
-
let e =
|
|
12678
|
+
let e = $c, t = Vc;
|
|
12643
12679
|
const n = o?.getStyles().getNormal().getFont();
|
|
12644
12680
|
if (Ce.width > 0 && Ce.height > 0) {
|
|
12645
12681
|
const o = n?.toCSS()?.fontFamily ?? "Calibri", r = n?.getSize() ?? 8.25, l = p.getSharedMeasurer()("" + Ce.height, Math.ceil(r * p.getDeviceScale()), o);
|
|
@@ -12807,7 +12843,7 @@ var Dc = "_sheetxl-sheet_3nny_5", Pc = "_viewport-overlay_3nny_6", Nc = K(U((e,
|
|
|
12807
12843
|
height: e.height
|
|
12808
12844
|
} : null;
|
|
12809
12845
|
}
|
|
12810
|
-
},
|
|
12846
|
+
}, Oc);
|
|
12811
12847
|
const bt = Ht(t, () => {
|
|
12812
12848
|
const e = (e) => {
|
|
12813
12849
|
o?.getView() && o.getView().selectMovables([]), Pe.current = null, pe.current?.focus(e);
|
|
@@ -12861,7 +12897,7 @@ var Dc = "_sheetxl-sheet_3nny_5", Pc = "_viewport-overlay_3nny_6", Nc = K(U((e,
|
|
|
12861
12897
|
]), wt = G(() => {
|
|
12862
12898
|
O.current || (It.current.clear(), pe.current?.invalidate(), P?.());
|
|
12863
12899
|
}, []), yt = ee(() => S ? ae("div", {
|
|
12864
|
-
className: tt("viewport-overlay",
|
|
12900
|
+
className: tt("viewport-overlay", Nc),
|
|
12865
12901
|
style: {
|
|
12866
12902
|
width: "100%",
|
|
12867
12903
|
height: "100%",
|
|
@@ -12871,7 +12907,7 @@ var Dc = "_sheetxl-sheet_3nny_5", Pc = "_viewport-overlay_3nny_6", Nc = K(U((e,
|
|
|
12871
12907
|
children: S
|
|
12872
12908
|
}) : ae(le, {}), [S]);
|
|
12873
12909
|
let St = null;
|
|
12874
|
-
ye && Se && (St = ae(
|
|
12910
|
+
ye && Se && (St = ae(tc, {
|
|
12875
12911
|
width: Re,
|
|
12876
12912
|
height: Me,
|
|
12877
12913
|
sheet: o,
|
|
@@ -12922,7 +12958,7 @@ var Dc = "_sheetxl-sheet_3nny_5", Pc = "_viewport-overlay_3nny_6", Nc = K(U((e,
|
|
|
12922
12958
|
value: n,
|
|
12923
12959
|
range: r
|
|
12924
12960
|
});
|
|
12925
|
-
},
|
|
12961
|
+
}, Hc), n.set(l, i), n.size > 12) {
|
|
12926
12962
|
const e = n.keys().next().value;
|
|
12927
12963
|
void 0 !== e && n.delete(e);
|
|
12928
12964
|
}
|
|
@@ -12934,7 +12970,7 @@ var Dc = "_sheetxl-sheet_3nny_5", Pc = "_viewport-overlay_3nny_6", Nc = K(U((e,
|
|
|
12934
12970
|
]), At = ee(() => ({
|
|
12935
12971
|
style: { boxShadow: "0.5px 0.5px 0px 0px var(--sxl-color-base-100)" },
|
|
12936
12972
|
propsPath: { stroke: "var(--sxl-color-base-content)" }
|
|
12937
|
-
}), []), Et = oe(null), Pt = ee(() => ae(
|
|
12973
|
+
}), []), Et = oe(null), Pt = ee(() => ae(ec, {
|
|
12938
12974
|
ref: Et,
|
|
12939
12975
|
tabIndex: -1,
|
|
12940
12976
|
freezeStart: rt?.[se.Top],
|
|
@@ -12965,7 +13001,7 @@ var Dc = "_sheetxl-sheet_3nny_5", Pc = "_viewport-overlay_3nny_6", Nc = K(U((e,
|
|
|
12965
13001
|
s,
|
|
12966
13002
|
g,
|
|
12967
13003
|
ue
|
|
12968
|
-
]), Lt = oe(null), zt = ee(() => ae(
|
|
13004
|
+
]), Lt = oe(null), zt = ee(() => ae(ec, {
|
|
12969
13005
|
ref: Lt,
|
|
12970
13006
|
tabIndex: -1,
|
|
12971
13007
|
freezeStart: rt?.[se.Left],
|
|
@@ -12997,27 +13033,27 @@ var Dc = "_sheetxl-sheet_3nny_5", Pc = "_viewport-overlay_3nny_6", Nc = K(U((e,
|
|
|
12997
13033
|
]), Bt = ee(() => {
|
|
12998
13034
|
const e = o.getId();
|
|
12999
13035
|
return [
|
|
13000
|
-
ae(
|
|
13036
|
+
ae(fs, {
|
|
13001
13037
|
sheet: o,
|
|
13002
13038
|
onSheetContextMenu: s
|
|
13003
13039
|
}, `context-menu-[${e}]`),
|
|
13004
|
-
ae(
|
|
13005
|
-
ae(
|
|
13040
|
+
ae(Hl, { sheet: o }, `background-[${e}]`),
|
|
13041
|
+
ae(zl, {
|
|
13006
13042
|
sheet: o,
|
|
13007
13043
|
sheetView: ve
|
|
13008
13044
|
}, `gridlines-[${e}]`),
|
|
13009
|
-
ae(
|
|
13045
|
+
ae(yl, {
|
|
13010
13046
|
getVisibleCells: Mt,
|
|
13011
13047
|
sheet: o
|
|
13012
13048
|
}, `fills-[${e}]`),
|
|
13013
|
-
ae(
|
|
13014
|
-
ae(
|
|
13049
|
+
ae(Hi, { sheet: o }, `conditional-bars-[${e}]`),
|
|
13050
|
+
ae(Pl, {
|
|
13015
13051
|
sheet: o,
|
|
13016
13052
|
sheetView: ve,
|
|
13017
13053
|
propsCellRender: F,
|
|
13018
13054
|
editable: He
|
|
13019
13055
|
}, `cells-[${e}]`),
|
|
13020
|
-
ae(
|
|
13056
|
+
ae(Dl, {
|
|
13021
13057
|
getVisibleCells: Mt,
|
|
13022
13058
|
sheet: o
|
|
13023
13059
|
}, `cell-borders-[${e}]`),
|
|
@@ -13027,32 +13063,32 @@ var Dc = "_sheetxl-sheet_3nny_5", Pc = "_viewport-overlay_3nny_6", Nc = K(U((e,
|
|
|
13027
13063
|
fill: !0,
|
|
13028
13064
|
className: "grid-border",
|
|
13029
13065
|
...Ft("app", $),
|
|
13030
|
-
style:
|
|
13066
|
+
style: Wc
|
|
13031
13067
|
})
|
|
13032
13068
|
}, `grid-border-[${e}]`),
|
|
13033
|
-
ae(
|
|
13034
|
-
ae(
|
|
13035
|
-
ae(
|
|
13069
|
+
ae(Ui, { sheet: o }, `conditional-icons-[${e}]`),
|
|
13070
|
+
ae(gi, { sheet: o }, `spill-[${e}]`),
|
|
13071
|
+
ae(Jr, {
|
|
13036
13072
|
sheet: o,
|
|
13037
13073
|
onShowTooltip: z,
|
|
13038
13074
|
onCloseTooltip: B
|
|
13039
13075
|
}, `selection-[${e}]`),
|
|
13040
|
-
ae(
|
|
13041
|
-
ae(
|
|
13042
|
-
ae(
|
|
13076
|
+
ae(wa, { sheet: o }, `table-[${e}]`),
|
|
13077
|
+
ae(ui, { sheet: o }, `table-commands-[${e}]`),
|
|
13078
|
+
ae(il, {
|
|
13043
13079
|
sheet: o,
|
|
13044
13080
|
sheetView: ve,
|
|
13045
13081
|
className: "references"
|
|
13046
13082
|
}, `ref-picker-[${e}]`),
|
|
13047
|
-
ae(
|
|
13048
|
-
ae(
|
|
13083
|
+
ae(As, { sheet: o }, `clipboard-[${e}]`),
|
|
13084
|
+
ae(Nl, {
|
|
13049
13085
|
sheet: o,
|
|
13050
13086
|
onColumnButtonMouseDown: F?.onColumnButtonMouseDown,
|
|
13051
13087
|
propsColumnButton: F?.propsColumnButton,
|
|
13052
13088
|
renderColumnButton: F?.renderColumnButton
|
|
13053
13089
|
}, `column-buttons-[${e}]`),
|
|
13054
|
-
ae(
|
|
13055
|
-
ae(
|
|
13090
|
+
ae(Xi, { sheet: o }, `validation-[${e}]`),
|
|
13091
|
+
ae(Ql, {
|
|
13056
13092
|
sheet: o,
|
|
13057
13093
|
renderMovable: y
|
|
13058
13094
|
}, `movable-[${e}]`),
|
|
@@ -13062,11 +13098,11 @@ var Dc = "_sheetxl-sheet_3nny_5", Pc = "_viewport-overlay_3nny_6", Nc = K(U((e,
|
|
|
13062
13098
|
darkMode: V,
|
|
13063
13099
|
onEditRejected: it
|
|
13064
13100
|
}, `editor-[${e}]`),
|
|
13065
|
-
m ? ae(
|
|
13101
|
+
m ? ae(Cl, {
|
|
13066
13102
|
className: "errors",
|
|
13067
13103
|
sheet: o
|
|
13068
13104
|
}, `cell-errors-[${e}]`) : null,
|
|
13069
|
-
ae(
|
|
13105
|
+
ae(gs, { sheet: o }, `resize-indicator-[${e}]`),
|
|
13070
13106
|
w
|
|
13071
13107
|
];
|
|
13072
13108
|
}, [
|
|
@@ -13083,7 +13119,7 @@ var Dc = "_sheetxl-sheet_3nny_5", Pc = "_viewport-overlay_3nny_6", Nc = K(U((e,
|
|
|
13083
13119
|
Mt,
|
|
13084
13120
|
F,
|
|
13085
13121
|
it
|
|
13086
|
-
]), Ot = G((e, t) => ae(
|
|
13122
|
+
]), Ot = G((e, t) => ae(Va, {
|
|
13087
13123
|
pane: e,
|
|
13088
13124
|
children: t
|
|
13089
13125
|
}), []), [Vt, $t] = ne(!1), Wt = ee(() => {
|
|
@@ -13092,7 +13128,7 @@ var Dc = "_sheetxl-sheet_3nny_5", Pc = "_viewport-overlay_3nny_6", Nc = K(U((e,
|
|
|
13092
13128
|
className: "sheetxl-sheet-primary",
|
|
13093
13129
|
wrapPane: Ot,
|
|
13094
13130
|
style: {
|
|
13095
|
-
...
|
|
13131
|
+
...Bc,
|
|
13096
13132
|
cursor: vt ?? ft ?? "cell",
|
|
13097
13133
|
...n.toCSS("adaptive"),
|
|
13098
13134
|
...t.toCSS("adaptive", we),
|
|
@@ -13141,14 +13177,14 @@ var Dc = "_sheetxl-sheet_3nny_5", Pc = "_viewport-overlay_3nny_6", Nc = K(U((e,
|
|
|
13141
13177
|
Bt,
|
|
13142
13178
|
ft
|
|
13143
13179
|
]);
|
|
13144
|
-
let Ut =
|
|
13180
|
+
let Ut = zc;
|
|
13145
13181
|
h || (Ut = {
|
|
13146
13182
|
...Ut,
|
|
13147
13183
|
...r
|
|
13148
13184
|
});
|
|
13149
13185
|
const Zt = V ? "dark" : "light", Kt = Dt((e) => {
|
|
13150
13186
|
const { style: t, ...n } = e;
|
|
13151
|
-
return ae(
|
|
13187
|
+
return ae(Qs, {
|
|
13152
13188
|
...n,
|
|
13153
13189
|
style: {
|
|
13154
13190
|
...t,
|
|
@@ -13169,7 +13205,7 @@ var Dc = "_sheetxl-sheet_3nny_5", Pc = "_viewport-overlay_3nny_6", Nc = K(U((e,
|
|
|
13169
13205
|
children: [
|
|
13170
13206
|
Wt,
|
|
13171
13207
|
yt,
|
|
13172
|
-
ae(
|
|
13208
|
+
ae(ws, {
|
|
13173
13209
|
style: {
|
|
13174
13210
|
position: "absolute",
|
|
13175
13211
|
right: 24,
|
|
@@ -13199,7 +13235,7 @@ var Dc = "_sheetxl-sheet_3nny_5", Pc = "_viewport-overlay_3nny_6", Nc = K(U((e,
|
|
|
13199
13235
|
ae("style", { children: Z }),
|
|
13200
13236
|
ae("style", { children: re }),
|
|
13201
13237
|
ae("div", {
|
|
13202
|
-
className: tt(n, "sheetxl-sheet",
|
|
13238
|
+
className: tt(n, "sheetxl-sheet", Pc),
|
|
13203
13239
|
ref: l,
|
|
13204
13240
|
...Ft("grid", Zt),
|
|
13205
13241
|
style: {
|
|
@@ -13250,7 +13286,7 @@ var Dc = "_sheetxl-sheet_3nny_5", Pc = "_viewport-overlay_3nny_6", Nc = K(U((e,
|
|
|
13250
13286
|
x,
|
|
13251
13287
|
Vt,
|
|
13252
13288
|
Yt
|
|
13253
|
-
]), ae(
|
|
13289
|
+
]), ae(Ec, {
|
|
13254
13290
|
sheet: o,
|
|
13255
13291
|
editable: q,
|
|
13256
13292
|
scopeRef: xt,
|
|
@@ -13266,8 +13302,8 @@ var Dc = "_sheetxl-sheet_3nny_5", Pc = "_viewport-overlay_3nny_6", Nc = K(U((e,
|
|
|
13266
13302
|
})
|
|
13267
13303
|
});
|
|
13268
13304
|
}));
|
|
13269
|
-
|
|
13270
|
-
var
|
|
13305
|
+
Lc.displayName = "SheetElement";
|
|
13306
|
+
var zc = Object.freeze({
|
|
13271
13307
|
flex: "1 1 100%",
|
|
13272
13308
|
width: "100%",
|
|
13273
13309
|
height: "100%",
|
|
@@ -13276,23 +13312,23 @@ var Lc = Object.freeze({
|
|
|
13276
13312
|
display: "flex",
|
|
13277
13313
|
alignContent: "stretch",
|
|
13278
13314
|
position: "relative"
|
|
13279
|
-
}),
|
|
13315
|
+
}), Bc = {
|
|
13280
13316
|
position: "absolute",
|
|
13281
13317
|
top: 0,
|
|
13282
13318
|
left: 0,
|
|
13283
13319
|
bottom: 0,
|
|
13284
13320
|
right: 0
|
|
13285
|
-
},
|
|
13321
|
+
}, Oc = { ignoreModelChange: !0 }, Hc = {
|
|
13286
13322
|
ignoreHidden: !0,
|
|
13287
13323
|
includeMergeOverflow: !0,
|
|
13288
13324
|
reuseContext: !0
|
|
13289
|
-
},
|
|
13325
|
+
}, Vc = 20, $c = 40, _c = "solid var(--sxl-color-base-border, light-dark(rgba(0, 0, 0, 0.26), rgba(255, 255, 255, 0.3))) 1px", Wc = {
|
|
13290
13326
|
pointerEvents: "none",
|
|
13291
|
-
borderTop:
|
|
13292
|
-
borderLeft:
|
|
13293
|
-
borderRight:
|
|
13327
|
+
borderTop: _c,
|
|
13328
|
+
borderLeft: _c,
|
|
13329
|
+
borderRight: _c,
|
|
13294
13330
|
borderBottom: "none"
|
|
13295
|
-
},
|
|
13331
|
+
}, Uc = K(U((e, t) => {
|
|
13296
13332
|
const { children: o, disabled: n, style: r, shape: l, isDragging: a, onHide: i, onShow: s, ...c } = e, d = ee(() => l?.toJSON() ?? null, [l]), u = "grpSp" === d?.type, g = u || "cxnSp" === d?.type ? void 0 : l.getName(), h = Ge(), m = Ht(t, () => ({ isShapeEditor: () => !0 }), []), [p, { height: f, width: v }] = Yt();
|
|
13297
13333
|
if (!l.isDeleted() && !u) return ae("div", {
|
|
13298
13334
|
className: "shape-editor",
|
|
@@ -13318,8 +13354,8 @@ var Lc = Object.freeze({
|
|
|
13318
13354
|
children: g
|
|
13319
13355
|
});
|
|
13320
13356
|
}));
|
|
13321
|
-
|
|
13322
|
-
var
|
|
13357
|
+
Uc.displayName = "ShapeEditor";
|
|
13358
|
+
var Zc = (e) => ie("svg", {
|
|
13323
13359
|
viewBox: "0,0,2048,2048",
|
|
13324
13360
|
...e,
|
|
13325
13361
|
children: [
|
|
@@ -13352,7 +13388,7 @@ var Uc = (e) => ie("svg", {
|
|
|
13352
13388
|
d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 768 v -768 h -256 v -43 h 299 v 811 h 469 v -1707 h 341 v 1707 m -42 0 v -1664 h -256 v 1664 z"
|
|
13353
13389
|
})
|
|
13354
13390
|
]
|
|
13355
|
-
}),
|
|
13391
|
+
}), Kc = (e) => ie("svg", {
|
|
13356
13392
|
viewBox: "0,0,2048,2048",
|
|
13357
13393
|
...e,
|
|
13358
13394
|
children: [
|
|
@@ -13385,7 +13421,7 @@ var Uc = (e) => ie("svg", {
|
|
|
13385
13421
|
d: "M 1109 299 h 512 v 853 h -512 m 43 -811 v 768 h 427 v -768 z"
|
|
13386
13422
|
})
|
|
13387
13423
|
]
|
|
13388
|
-
}),
|
|
13424
|
+
}), Gc = (e) => ie("svg", {
|
|
13389
13425
|
viewBox: "0,0,2048,2048",
|
|
13390
13426
|
...e,
|
|
13391
13427
|
children: [
|
|
@@ -13418,7 +13454,7 @@ var Uc = (e) => ie("svg", {
|
|
|
13418
13454
|
d: "M 1109 299 h 512 v 597 h -512 m 43 -555 v 512 h 427 v -512 z"
|
|
13419
13455
|
})
|
|
13420
13456
|
]
|
|
13421
|
-
}),
|
|
13457
|
+
}), jc = (e) => ie("svg", {
|
|
13422
13458
|
viewBox: "0,0,2048,2048",
|
|
13423
13459
|
...e,
|
|
13424
13460
|
children: [
|
|
@@ -13435,7 +13471,7 @@ var Uc = (e) => ie("svg", {
|
|
|
13435
13471
|
d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1165 l 574 -574 l 639 469 l 584 -668 l 32 28 l -610 697 l -641 -470 l -578 578 v 610 z"
|
|
13436
13472
|
})
|
|
13437
13473
|
]
|
|
13438
|
-
}),
|
|
13474
|
+
}), Xc = (e) => ie("svg", {
|
|
13439
13475
|
viewBox: "0,0,2048,2048",
|
|
13440
13476
|
...e,
|
|
13441
13477
|
children: [
|
|
@@ -13452,7 +13488,7 @@ var Uc = (e) => ie("svg", {
|
|
|
13452
13488
|
d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1549 l 573 -574 l 576 424 l 563 -751 l 32 27 l -587 781 l -578 -425 l -579 578 v 226 z"
|
|
13453
13489
|
})
|
|
13454
13490
|
]
|
|
13455
|
-
}),
|
|
13491
|
+
}), Yc = (e) => ie("svg", {
|
|
13456
13492
|
viewBox: "0,0,2048,2048",
|
|
13457
13493
|
...e,
|
|
13458
13494
|
children: [
|
|
@@ -13469,7 +13505,7 @@ var Uc = (e) => ie("svg", {
|
|
|
13469
13505
|
d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1549 l 573 -574 l 576 424 l 563 -751 l 32 27 l -587 781 l -578 -425 l -579 578 v 226 z"
|
|
13470
13506
|
})
|
|
13471
13507
|
]
|
|
13472
|
-
}),
|
|
13508
|
+
}), Jc = (e) => ie("svg", {
|
|
13473
13509
|
viewBox: "0,0,2048,2048",
|
|
13474
13510
|
...e,
|
|
13475
13511
|
children: [
|
|
@@ -13486,7 +13522,7 @@ var Uc = (e) => ie("svg", {
|
|
|
13486
13522
|
d: "M 1694 1024 h 98 v 171 h -171 v -171 h 13 l -427 -427 h -64 l -930 1005 v 147 h -170 v -170 h 133 l 909 -982 h -18 v -170 h 170 v 140 z"
|
|
13487
13523
|
})
|
|
13488
13524
|
]
|
|
13489
|
-
}),
|
|
13525
|
+
}), Qc = (e) => ie("svg", {
|
|
13490
13526
|
viewBox: "0,0,2048,2048",
|
|
13491
13527
|
...e,
|
|
13492
13528
|
children: [
|
|
@@ -13503,7 +13539,7 @@ var Uc = (e) => ie("svg", {
|
|
|
13503
13539
|
d: "M 1802 427 l -437 581 v 144 h -170 v -104 l -384 -282 v 2 h -171 v -12 l -427 426 v 141 h -170 v -171 h 140 l 457 -457 v -98 h 171 v 117 l 384 282 v -15 h 139 l 415 -554 v -171 h 171 v 171 z"
|
|
13504
13540
|
})
|
|
13505
13541
|
]
|
|
13506
|
-
}),
|
|
13542
|
+
}), ed = (e) => ie("svg", {
|
|
13507
13543
|
viewBox: "0,0,2048,2048",
|
|
13508
13544
|
...e,
|
|
13509
13545
|
children: [
|
|
@@ -13520,7 +13556,7 @@ var Uc = (e) => ie("svg", {
|
|
|
13520
13556
|
d: "M 1920 213 v 171 h -171 v -85 h -384 v 85 h -170 v -85 h -427 v 85 h -171 v -85 h -384 v 85 h -170 v -171 h 170 v 43 h 384 v -43 h 171 v 43 h 427 v -43 h 170 v 43 h 384 v -43 z"
|
|
13521
13557
|
})
|
|
13522
13558
|
]
|
|
13523
|
-
}),
|
|
13559
|
+
}), td = (e) => ie("svg", {
|
|
13524
13560
|
viewBox: "0,0,2048,2048",
|
|
13525
13561
|
...e,
|
|
13526
13562
|
children: [
|
|
@@ -13545,7 +13581,7 @@ var Uc = (e) => ie("svg", {
|
|
|
13545
13581
|
d: "M 1024 85 q 129 0 249 34 q 120 33 225 95 q 104 61 190 147 q 85 85 147 190 q 61 104 95 224 q 33 120 33 249 q 0 104 -22 202 q -22 98 -62 187 q -41 89 -99 168 q -58 78 -130 142 q -9 -8 -15 -15 q -6 -6 -10 -10 q -5 -5 -5 -6 l -639 -638 v -969 m 670 1578 q 62 -61 112 -133 q 50 -72 85 -153 q 35 -82 54 -170 q 18 -89 18 -183 q 0 -123 -32 -237 q -32 -115 -90 -214 q -59 -100 -141 -182 q -82 -82 -181 -140 q -100 -59 -214 -91 q -115 -32 -238 -32 v 908 z"
|
|
13546
13582
|
})
|
|
13547
13583
|
]
|
|
13548
|
-
}),
|
|
13584
|
+
}), od = (e) => ie("svg", {
|
|
13549
13585
|
viewBox: "0,0,2048,2048",
|
|
13550
13586
|
...e,
|
|
13551
13587
|
children: [
|
|
@@ -13570,7 +13606,7 @@ var Uc = (e) => ie("svg", {
|
|
|
13570
13606
|
d: "M 1024 85 q 129 0 249 34 q 120 33 225 95 q 104 61 190 147 q 85 85 147 190 q 61 104 95 224 q 33 120 33 249 q 0 104 -22 202 q -22 98 -63 188 q -41 89 -98 168 q -58 78 -130 142 l -333 -334 q 81 -65 129 -159 q 47 -95 47 -207 q 0 -97 -37 -182 q -37 -86 -100 -149 q -64 -64 -149 -101 q -86 -37 -183 -37 q -11 0 -21 1 q -11 0 -22 1 v -471 q 11 0 22 0 q 10 -1 21 -1 m 627 1579 q 62 -61 112 -133 q 50 -73 85 -154 q 35 -81 54 -170 q 18 -89 18 -183 q 0 -124 -32 -238 q -32 -115 -90 -214 q -59 -100 -140 -181 q -82 -82 -181 -140 q -100 -59 -214 -91 q -115 -32 -239 -32 v 384 q 106 0 200 40 q 93 40 163 110 q 69 69 109 163 q 40 93 40 199 q 0 109 -42 204 q -42 94 -114 164 z"
|
|
13571
13607
|
})
|
|
13572
13608
|
]
|
|
13573
|
-
}),
|
|
13609
|
+
}), nd = (e) => ie("svg", {
|
|
13574
13610
|
viewBox: "0,0,2048,2048",
|
|
13575
13611
|
...e,
|
|
13576
13612
|
children: [
|
|
@@ -13603,7 +13639,7 @@ var Uc = (e) => ie("svg", {
|
|
|
13603
13639
|
d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 768 h 1024 v -256 h 43 v 299 h -1067 v 469 h 1323 v 342 h -1323 v 213 m 0 -512 v 256 h 1280 v -256 z"
|
|
13604
13640
|
})
|
|
13605
13641
|
]
|
|
13606
|
-
}),
|
|
13642
|
+
}), rd = (e) => ie("svg", {
|
|
13607
13643
|
viewBox: "0,0,2048,2048",
|
|
13608
13644
|
...e,
|
|
13609
13645
|
children: [
|
|
@@ -13636,7 +13672,7 @@ var Uc = (e) => ie("svg", {
|
|
|
13636
13672
|
d: "M 1749 1109 v 512 h -853 v -512 m 811 43 h -768 v 427 h 768 z"
|
|
13637
13673
|
})
|
|
13638
13674
|
]
|
|
13639
|
-
}),
|
|
13675
|
+
}), ld = (e) => ie("svg", {
|
|
13640
13676
|
viewBox: "0,0,2048,2048",
|
|
13641
13677
|
...e,
|
|
13642
13678
|
children: [
|
|
@@ -13669,7 +13705,7 @@ var Uc = (e) => ie("svg", {
|
|
|
13669
13705
|
d: "M 1749 1109 v 512 h -597 v -512 m 555 43 h -512 v 427 h 512 z"
|
|
13670
13706
|
})
|
|
13671
13707
|
]
|
|
13672
|
-
}),
|
|
13708
|
+
}), ad = (e) => ie("svg", {
|
|
13673
13709
|
viewBox: "0,0,2048,2048",
|
|
13674
13710
|
...e,
|
|
13675
13711
|
children: [
|
|
@@ -13694,7 +13730,7 @@ var Uc = (e) => ie("svg", {
|
|
|
13694
13730
|
d: "M 1963 896 v 1067 h -1878 v -1878 h 43 v 989 l 400 405 l 471 -585 l 921 667 v -665 m 0 1024 v -306 l -913 -662 l -476 591 l -403 -408 v 785 z"
|
|
13695
13731
|
})
|
|
13696
13732
|
]
|
|
13697
|
-
}),
|
|
13733
|
+
}), id = (e) => ie("svg", {
|
|
13698
13734
|
viewBox: "0,0,2048,2048",
|
|
13699
13735
|
...e,
|
|
13700
13736
|
children: [
|
|
@@ -13719,7 +13755,7 @@ var Uc = (e) => ie("svg", {
|
|
|
13719
13755
|
d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 z"
|
|
13720
13756
|
})
|
|
13721
13757
|
]
|
|
13722
|
-
}),
|
|
13758
|
+
}), sd = (e) => ie("svg", {
|
|
13723
13759
|
viewBox: "0,0,2048,2048",
|
|
13724
13760
|
...e,
|
|
13725
13761
|
children: [
|
|
@@ -13744,7 +13780,7 @@ var Uc = (e) => ie("svg", {
|
|
|
13744
13780
|
d: "M 1963 1649 l -831 -786 l -576 662 l -471 -467 v -973 h 1878 m -43 1465 v -1422 h -1792 v 908 l 426 426 l 575 -661 z"
|
|
13745
13781
|
})
|
|
13746
13782
|
]
|
|
13747
|
-
}),
|
|
13783
|
+
}), cd = (e) => ie("svg", {
|
|
13748
13784
|
viewBox: "0,0,2048,2048",
|
|
13749
13785
|
...e,
|
|
13750
13786
|
children: [
|
|
@@ -13765,7 +13801,7 @@ var Uc = (e) => ie("svg", {
|
|
|
13765
13801
|
d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 m 1579 -213 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 26 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -24 10 -50 10 m -854 -982 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 41 -28 q 23 -10 49 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 41 q 10 23 10 49 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 m -469 982 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 m 1024 -640 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 z"
|
|
13766
13802
|
})
|
|
13767
13803
|
]
|
|
13768
|
-
}),
|
|
13804
|
+
}), dd = (e) => ie("svg", {
|
|
13769
13805
|
viewBox: "0,0,2048,2048",
|
|
13770
13806
|
...e,
|
|
13771
13807
|
children: [
|
|
@@ -13786,7 +13822,7 @@ var Uc = (e) => ie("svg", {
|
|
|
13786
13822
|
d: "M 128 1920 h 1835 v 43 h -1878 v -1878 h 43 m 1664 1501 q 37 13 61 46 q 24 33 24 75 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 v -34 q 0 -140 -15 -248 q -16 -108 -42 -191 q -14 3 -28 3 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -29 13 -54 q 12 -26 32 -43 q -45 -61 -95 -94 q -51 -34 -93 -49 q -43 -15 -71 -17 q -29 -3 -31 -3 q -78 0 -144 16 q -67 15 -126 46 q 3 14 3 28 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -29 0 -55 -13 q -66 73 -115 161 q -49 87 -84 176 q -35 88 -58 172 q -24 83 -37 148 q 41 12 67 46 q 26 33 26 78 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -26 10 -48 q 9 -23 25 -40 q 16 -18 38 -28 q 22 -10 47 -12 q 14 -67 38 -152 q 23 -86 59 -177 q 36 -92 87 -182 q 50 -90 118 -167 q -38 -36 -38 -90 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 35 0 64 17 q 28 16 45 43 q 63 -32 133 -48 q 70 -17 154 -17 q 6 0 39 4 q 32 3 79 21 q 47 17 102 54 q 55 37 107 105 q 21 -9 45 -9 q 27 0 50 10 q 23 10 41 28 q 17 17 27 41 q 10 23 10 49 q 0 35 -16 63 q -17 28 -43 45 q 30 96 45 210 q 14 114 14 248 z"
|
|
13787
13823
|
})
|
|
13788
13824
|
]
|
|
13789
|
-
}),
|
|
13825
|
+
}), ud = (e) => ie("svg", {
|
|
13790
13826
|
viewBox: "0,0,2048,2048",
|
|
13791
13827
|
...e,
|
|
13792
13828
|
children: [
|
|
@@ -13803,7 +13839,7 @@ var Uc = (e) => ie("svg", {
|
|
|
13803
13839
|
d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 m 1004 -387 q -111 0 -207 -46 q -97 -46 -179 -121 q -83 -75 -151 -172 q -68 -97 -122 -199 q -55 -102 -96 -201 q -41 -99 -68 -178 q -28 -80 -43 -132 q -15 -53 -17 -62 l 42 -11 q 1 2 14 50 q 13 47 40 124 q 26 76 66 173 q 39 96 91 197 q 52 101 118 197 q 65 96 144 171 q 79 75 171 121 q 92 46 197 46 q 45 0 99 -7 q 54 -7 110 -27 q 56 -21 110 -58 q 54 -37 98 -97 q 133 -180 133 -528 q 0 -121 -16 -261 q -16 -141 -48 -302 l 42 -8 q 65 325 65 569 q 0 364 -142 556 q -50 67 -111 108 q -62 40 -123 62 q -62 22 -119 29 q -57 7 -98 7 z"
|
|
13804
13840
|
})
|
|
13805
13841
|
]
|
|
13806
|
-
}),
|
|
13842
|
+
}), gd = (e) => ie("svg", {
|
|
13807
13843
|
viewBox: "0,0,2048,2048",
|
|
13808
13844
|
...e,
|
|
13809
13845
|
children: [
|
|
@@ -13824,7 +13860,7 @@ var Uc = (e) => ie("svg", {
|
|
|
13824
13860
|
d: "M 128 1920 h 1835 v 43 h -1878 v -1878 h 43 m 1636 1182 l 70 565 l -825 -939 q -15 3 -30 3 l -360 615 q 29 17 47 46 q 17 29 17 64 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -24 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 40 -28 q 23 -10 50 -10 q 11 0 23 3 l 357 -609 q -36 -14 -59 -46 q -23 -32 -23 -73 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 41 -28 q 23 -10 49 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 34 -16 62 q -16 28 -42 45 l 726 826 l -54 -422 q -5 1 -8 1 q -4 0 -8 0 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 26 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 38 -19 69 q -20 30 -52 46 z"
|
|
13825
13861
|
})
|
|
13826
13862
|
]
|
|
13827
|
-
}),
|
|
13863
|
+
}), hd = (e) => ie("svg", {
|
|
13828
13864
|
viewBox: "0,0,2048,2048",
|
|
13829
13865
|
...e,
|
|
13830
13866
|
children: [
|
|
@@ -13841,7 +13877,7 @@ var Uc = (e) => ie("svg", {
|
|
|
13841
13877
|
d: "M 1832 1832 l -842 -958 l -486 825 l -37 -21 l 516 -877 l 792 900 l -68 -525 l 42 -5 m 214 749 v 43 h -1878 v -1878 h 43 v 1835 z"
|
|
13842
13878
|
})
|
|
13843
13879
|
]
|
|
13844
|
-
}),
|
|
13880
|
+
}), md = (e) => ie("svg", {
|
|
13845
13881
|
viewBox: "0,0,2048,2048",
|
|
13846
13882
|
...e,
|
|
13847
13883
|
children: [
|
|
@@ -13874,7 +13910,7 @@ var Uc = (e) => ie("svg", {
|
|
|
13874
13910
|
d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 768 v -768 h -256 v -43 h 299 v 811 h 469 v -1707 h 341 v 1707 m -42 0 v -1664 h -256 v 1664 z"
|
|
13875
13911
|
})
|
|
13876
13912
|
]
|
|
13877
|
-
}),
|
|
13913
|
+
}), pd = (e) => ie("svg", {
|
|
13878
13914
|
viewBox: "0,0,2048,2048",
|
|
13879
13915
|
...e,
|
|
13880
13916
|
children: [
|
|
@@ -13907,74 +13943,74 @@ var Uc = (e) => ie("svg", {
|
|
|
13907
13943
|
d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 768 v -768 h -256 v -43 h 299 v 811 h 469 v -1707 h 341 v 1707 m -42 0 v -1664 h -256 v 1664 z"
|
|
13908
13944
|
})
|
|
13909
13945
|
]
|
|
13910
|
-
}),
|
|
13946
|
+
}), fd = {
|
|
13911
13947
|
themed: "_themed_f2asj_9",
|
|
13912
13948
|
small: "_small_f2asj_36",
|
|
13913
13949
|
medium: "_medium_f2asj_37",
|
|
13914
13950
|
large: "_large_f2asj_38"
|
|
13915
|
-
},
|
|
13951
|
+
}, vd = K((e) => {
|
|
13916
13952
|
const { size: t = "medium", className: o, children: n, ...r } = e;
|
|
13917
13953
|
return ae("span", {
|
|
13918
|
-
className: tt("icon",
|
|
13954
|
+
className: tt("icon", fd.themed, fd[t], o),
|
|
13919
13955
|
...r,
|
|
13920
13956
|
children: n
|
|
13921
13957
|
});
|
|
13922
13958
|
});
|
|
13923
|
-
|
|
13924
|
-
var
|
|
13959
|
+
vd.displayName = "ThemedChartIcon";
|
|
13960
|
+
var bd = { types: { 0: { type: "column" } } }, wd = { types: { 0: {
|
|
13925
13961
|
type: "column",
|
|
13926
13962
|
grouping: "stacked"
|
|
13927
|
-
} } },
|
|
13963
|
+
} } }, yd = { types: { 0: {
|
|
13928
13964
|
type: "column",
|
|
13929
13965
|
grouping: "percentStacked"
|
|
13930
|
-
} } },
|
|
13966
|
+
} } }, Sd = { types: { 0: { type: "line" } } }, Cd = { types: { 0: {
|
|
13931
13967
|
type: "line",
|
|
13932
13968
|
grouping: "stacked"
|
|
13933
|
-
} } },
|
|
13969
|
+
} } }, xd = { types: { 0: {
|
|
13934
13970
|
type: "line",
|
|
13935
13971
|
grouping: "percentStacked"
|
|
13936
|
-
} } },
|
|
13972
|
+
} } }, qd = { types: { 0: {
|
|
13937
13973
|
type: "line",
|
|
13938
13974
|
scatterStyle: "lineMarker"
|
|
13939
|
-
} } },
|
|
13975
|
+
} } }, kd = { types: { 0: {
|
|
13940
13976
|
type: "line",
|
|
13941
13977
|
scatterStyle: "lineMarker",
|
|
13942
13978
|
grouping: "stacked"
|
|
13943
|
-
} } },
|
|
13979
|
+
} } }, Td = { types: { 0: {
|
|
13944
13980
|
type: "line",
|
|
13945
13981
|
scatterStyle: "lineMarker",
|
|
13946
13982
|
grouping: "percentStacked"
|
|
13947
|
-
} } },
|
|
13983
|
+
} } }, Rd = { types: { 0: { type: "pie" } } }, Id = { types: { 0: {
|
|
13948
13984
|
type: "pie",
|
|
13949
13985
|
holeSize: 50
|
|
13950
|
-
} } },
|
|
13986
|
+
} } }, Md = { types: { 0: { type: "bar" } } }, Ad = { types: { 0: {
|
|
13951
13987
|
type: "bar",
|
|
13952
13988
|
grouping: "stacked"
|
|
13953
|
-
} } },
|
|
13989
|
+
} } }, Fd = { types: { 0: {
|
|
13954
13990
|
type: "bar",
|
|
13955
13991
|
grouping: "percentStacked"
|
|
13956
|
-
} } },
|
|
13992
|
+
} } }, Ed = { types: { 0: { type: "area" } } }, Dd = { types: { 0: {
|
|
13957
13993
|
type: "area",
|
|
13958
13994
|
grouping: "stacked"
|
|
13959
|
-
} } },
|
|
13995
|
+
} } }, Pd = { types: { 0: {
|
|
13960
13996
|
type: "area",
|
|
13961
13997
|
grouping: "percentStacked"
|
|
13962
|
-
} } },
|
|
13998
|
+
} } }, Nd = { types: { 0: {
|
|
13963
13999
|
type: "scatter",
|
|
13964
14000
|
scatterStyle: "marker"
|
|
13965
|
-
} } },
|
|
14001
|
+
} } }, Ld = { types: { 0: {
|
|
13966
14002
|
type: "scatter",
|
|
13967
14003
|
scatterStyle: "smoothMarker"
|
|
13968
|
-
} } },
|
|
14004
|
+
} } }, zd = { types: { 0: {
|
|
13969
14005
|
type: "scatter",
|
|
13970
14006
|
scatterStyle: "smooth"
|
|
13971
|
-
} } },
|
|
14007
|
+
} } }, Bd = { types: { 0: {
|
|
13972
14008
|
type: "scatter",
|
|
13973
14009
|
scatterStyle: "lineMarker"
|
|
13974
|
-
} } },
|
|
14010
|
+
} } }, Od = { types: { 0: {
|
|
13975
14011
|
type: "scatter",
|
|
13976
14012
|
scatterStyle: "line"
|
|
13977
|
-
} } },
|
|
14013
|
+
} } }, Hd = {
|
|
13978
14014
|
Column: "column",
|
|
13979
14015
|
ColumnStacked: "columnStacked",
|
|
13980
14016
|
ColumnStackedPercent: "columnStackedPercent",
|
|
@@ -13999,111 +14035,111 @@ var vd = { types: { 0: { type: "column" } } }, bd = { types: { 0: {
|
|
|
13999
14035
|
ScatterLines: "scatterLines",
|
|
14000
14036
|
Bubble: "bubble",
|
|
14001
14037
|
Bubble3D: "bubble3D"
|
|
14002
|
-
},
|
|
14003
|
-
|
|
14004
|
-
Icon: Uc,
|
|
14005
|
-
description: Ce("chart.type.column"),
|
|
14006
|
-
template: vd
|
|
14007
|
-
}), Hd.set(Od.ColumnStacked, {
|
|
14038
|
+
}, Vd = /* @__PURE__ */ new Map();
|
|
14039
|
+
Vd.set(Hd.Column, {
|
|
14008
14040
|
Icon: Zc,
|
|
14009
|
-
description: Ce("chart.type.
|
|
14041
|
+
description: Ce("chart.type.column"),
|
|
14010
14042
|
template: bd
|
|
14011
|
-
}),
|
|
14043
|
+
}), Vd.set(Hd.ColumnStacked, {
|
|
14012
14044
|
Icon: Kc,
|
|
14013
|
-
description: Ce("chart.type.
|
|
14045
|
+
description: Ce("chart.type.columnStacked"),
|
|
14014
14046
|
template: wd
|
|
14015
|
-
}),
|
|
14047
|
+
}), Vd.set(Hd.ColumnStackedPercent, {
|
|
14016
14048
|
Icon: Gc,
|
|
14017
|
-
description: Ce("chart.type.
|
|
14049
|
+
description: Ce("chart.type.columnStackedPercent"),
|
|
14018
14050
|
template: yd
|
|
14019
|
-
}),
|
|
14051
|
+
}), Vd.set(Hd.Line, {
|
|
14020
14052
|
Icon: jc,
|
|
14021
|
-
description: Ce("chart.type.
|
|
14053
|
+
description: Ce("chart.type.line"),
|
|
14022
14054
|
template: Sd
|
|
14023
|
-
}),
|
|
14055
|
+
}), Vd.set(Hd.LineStacked, {
|
|
14024
14056
|
Icon: Xc,
|
|
14025
|
-
description: Ce("chart.type.
|
|
14057
|
+
description: Ce("chart.type.lineStacked"),
|
|
14026
14058
|
template: Cd
|
|
14027
|
-
}),
|
|
14059
|
+
}), Vd.set(Hd.LineStackedPercent, {
|
|
14028
14060
|
Icon: Yc,
|
|
14029
|
-
description: Ce("chart.type.
|
|
14061
|
+
description: Ce("chart.type.lineStackedPercent"),
|
|
14030
14062
|
template: xd
|
|
14031
|
-
}),
|
|
14063
|
+
}), Vd.set(Hd.LineMarkers, {
|
|
14032
14064
|
Icon: Jc,
|
|
14033
|
-
description: Ce("chart.type.
|
|
14065
|
+
description: Ce("chart.type.lineMarkers"),
|
|
14034
14066
|
template: qd
|
|
14035
|
-
}),
|
|
14067
|
+
}), Vd.set(Hd.LineStackedMarkers, {
|
|
14036
14068
|
Icon: Qc,
|
|
14037
|
-
description: Ce("chart.type.
|
|
14069
|
+
description: Ce("chart.type.lineStackedMarkers"),
|
|
14038
14070
|
template: kd
|
|
14039
|
-
}),
|
|
14071
|
+
}), Vd.set(Hd.LineStackedPercentMarkers, {
|
|
14040
14072
|
Icon: ed,
|
|
14041
|
-
description: Ce("chart.type.
|
|
14073
|
+
description: Ce("chart.type.lineStackedPercentMarkers"),
|
|
14042
14074
|
template: Td
|
|
14043
|
-
}),
|
|
14075
|
+
}), Vd.set(Hd.Pie, {
|
|
14044
14076
|
Icon: td,
|
|
14045
|
-
description: Ce("chart.type.
|
|
14077
|
+
description: Ce("chart.type.pie"),
|
|
14046
14078
|
template: Rd
|
|
14047
|
-
}),
|
|
14079
|
+
}), Vd.set(Hd.PieDoughnut, {
|
|
14048
14080
|
Icon: od,
|
|
14049
|
-
description: Ce("chart.type.
|
|
14081
|
+
description: Ce("chart.type.pieDoughnut"),
|
|
14050
14082
|
template: Id
|
|
14051
|
-
}),
|
|
14083
|
+
}), Vd.set(Hd.Bar, {
|
|
14052
14084
|
Icon: nd,
|
|
14053
|
-
description: Ce("chart.type.
|
|
14085
|
+
description: Ce("chart.type.bar"),
|
|
14054
14086
|
template: Md
|
|
14055
|
-
}),
|
|
14087
|
+
}), Vd.set(Hd.BarStacked, {
|
|
14056
14088
|
Icon: rd,
|
|
14057
|
-
description: Ce("chart.type.
|
|
14089
|
+
description: Ce("chart.type.barStacked"),
|
|
14058
14090
|
template: Ad
|
|
14059
|
-
}),
|
|
14091
|
+
}), Vd.set(Hd.BarStackedPercent, {
|
|
14060
14092
|
Icon: ld,
|
|
14061
|
-
description: Ce("chart.type.
|
|
14093
|
+
description: Ce("chart.type.barStackedPercent"),
|
|
14062
14094
|
template: Fd
|
|
14063
|
-
}),
|
|
14095
|
+
}), Vd.set(Hd.Area, {
|
|
14064
14096
|
Icon: ad,
|
|
14065
|
-
description: Ce("chart.type.
|
|
14097
|
+
description: Ce("chart.type.area"),
|
|
14066
14098
|
template: Ed
|
|
14067
|
-
}),
|
|
14099
|
+
}), Vd.set(Hd.AreaStacked, {
|
|
14068
14100
|
Icon: id,
|
|
14069
|
-
description: Ce("chart.type.
|
|
14101
|
+
description: Ce("chart.type.areaStacked"),
|
|
14070
14102
|
template: Dd
|
|
14071
|
-
}),
|
|
14103
|
+
}), Vd.set(Hd.AreaStackedPercent, {
|
|
14072
14104
|
Icon: sd,
|
|
14073
|
-
description: Ce("chart.type.
|
|
14105
|
+
description: Ce("chart.type.areaStackedPercent"),
|
|
14074
14106
|
template: Pd
|
|
14075
|
-
}),
|
|
14107
|
+
}), Vd.set(Hd.ScatterMarkers, {
|
|
14076
14108
|
Icon: cd,
|
|
14077
|
-
description: Ce("chart.type.
|
|
14109
|
+
description: Ce("chart.type.scatterMarkers"),
|
|
14078
14110
|
template: Nd
|
|
14079
|
-
}),
|
|
14080
|
-
Icon: ud,
|
|
14081
|
-
description: Ce("chart.type.scatterLinesMarkers"),
|
|
14082
|
-
template: zd
|
|
14083
|
-
}), Hd.set(Od.ScatterLinesSmooth, {
|
|
14111
|
+
}), Vd.set(Hd.ScatterLinesMarkersSmooth, {
|
|
14084
14112
|
Icon: dd,
|
|
14085
|
-
description: Ce("chart.type.
|
|
14113
|
+
description: Ce("chart.type.scatterLinesMarkersSmooth"),
|
|
14086
14114
|
template: Ld
|
|
14087
|
-
}),
|
|
14115
|
+
}), Vd.set(Hd.ScatterLinesMarkers, {
|
|
14088
14116
|
Icon: gd,
|
|
14089
|
-
description: Ce("chart.type.
|
|
14117
|
+
description: Ce("chart.type.scatterLinesMarkers"),
|
|
14090
14118
|
template: Bd
|
|
14091
|
-
}),
|
|
14119
|
+
}), Vd.set(Hd.ScatterLinesSmooth, {
|
|
14120
|
+
Icon: ud,
|
|
14121
|
+
description: Ce("chart.type.scatterLinesSmooth"),
|
|
14122
|
+
template: zd
|
|
14123
|
+
}), Vd.set(Hd.ScatterLines, {
|
|
14092
14124
|
Icon: hd,
|
|
14125
|
+
description: Ce("chart.type.scatterLines"),
|
|
14126
|
+
template: Od
|
|
14127
|
+
}), Vd.set(Hd.Bubble, {
|
|
14128
|
+
Icon: md,
|
|
14093
14129
|
description: Ce("chart.type.bubble"),
|
|
14094
14130
|
template: null
|
|
14095
|
-
}),
|
|
14096
|
-
Icon:
|
|
14131
|
+
}), Vd.set(Hd.Bubble3D, {
|
|
14132
|
+
Icon: pd,
|
|
14097
14133
|
description: Ce("chart.type.bubble3D"),
|
|
14098
14134
|
template: null
|
|
14099
14135
|
});
|
|
14100
|
-
var
|
|
14136
|
+
var $d = (e) => Vd.get(e), _d = K(U((e, t) => {
|
|
14101
14137
|
const { children: o, disabled: n, chart: r, isDragging: l, onHide: a, onShow: i, ...s } = e;
|
|
14102
14138
|
X(() => {}, [r]);
|
|
14103
14139
|
const c = Ge(), d = Ht(t, () => ({ isChartEditor: () => !0 }), []), [u, { height: g, width: h }] = Yt();
|
|
14104
14140
|
if (r.isDeleted()) return;
|
|
14105
|
-
let m =
|
|
14106
|
-
m || (m =
|
|
14141
|
+
let m = $d(r.getChartType());
|
|
14142
|
+
m || (m = $d(Hd.Column));
|
|
14107
14143
|
const p = m.Icon;
|
|
14108
14144
|
return ae("div", {
|
|
14109
14145
|
...s,
|
|
@@ -14143,8 +14179,8 @@ var Vd = (e) => Hd.get(e), $d = K(U((e, t) => {
|
|
|
14143
14179
|
})
|
|
14144
14180
|
});
|
|
14145
14181
|
}));
|
|
14146
|
-
|
|
14147
|
-
var
|
|
14182
|
+
_d.displayName = "ChartEditor";
|
|
14183
|
+
var Wd = K(U((e, t) => {
|
|
14148
14184
|
const { children: o, disabled: n, slicer: r, isDragging: l, onHide: a, onShow: i, ...s } = e;
|
|
14149
14185
|
X(() => {}, [r]);
|
|
14150
14186
|
const c = Ge(), d = Ht(t, () => ({ isSlicerEditor: () => !0 }), []), [u, { height: g, width: h }] = Yt();
|
|
@@ -14174,8 +14210,8 @@ var _d = K(U((e, t) => {
|
|
|
14174
14210
|
})
|
|
14175
14211
|
});
|
|
14176
14212
|
}));
|
|
14177
|
-
|
|
14178
|
-
var
|
|
14213
|
+
Wd.displayName = "SlicerEditor";
|
|
14214
|
+
var Ud = (e) => {
|
|
14179
14215
|
const { value: t, onChange: o, onChangeText: n, onDone: r, changeOn: l = "live", onValidate: a, invalidKey: i = Ce("namedInput.invalid"), disabled: s = !1 } = e, [c, d] = ne(!1), u = oe(!1), g = oe(null), h = oe(e);
|
|
14180
14216
|
h.current = e;
|
|
14181
14217
|
const m = (e) => {
|
|
@@ -14240,10 +14276,10 @@ var Wd = (e) => {
|
|
|
14240
14276
|
commit: p.commit,
|
|
14241
14277
|
cancel: p.cancel
|
|
14242
14278
|
};
|
|
14243
|
-
},
|
|
14279
|
+
}, Zd = {
|
|
14244
14280
|
placement: "bottom-start",
|
|
14245
14281
|
followAnchor: !0
|
|
14246
|
-
},
|
|
14282
|
+
}, Kd = {
|
|
14247
14283
|
x: 0,
|
|
14248
14284
|
y: 0,
|
|
14249
14285
|
top: 0,
|
|
@@ -14253,7 +14289,7 @@ var Wd = (e) => {
|
|
|
14253
14289
|
width: 0,
|
|
14254
14290
|
height: 0,
|
|
14255
14291
|
toJSON: () => ({})
|
|
14256
|
-
},
|
|
14292
|
+
}, Gd = (e) => {
|
|
14257
14293
|
const { api: t, grammar: o, disabled: n } = e, r = "formula" === o, l = Mo(), a = void 0 !== e.workbook ? e.workbook : l, i = ln().getMode(), s = !!i?.activeInput && !t.engaged, [c, d] = ne(-1), [u, g] = ne(null), [h, m] = ne(null), p = ee(() => Tr(r ? t.tokens : null), [r, t.tokens]), [f, v] = ne(null);
|
|
14258
14294
|
X(() => {
|
|
14259
14295
|
const e = t.tokens, o = r && t.engaged && e && c >= 0 ? Rr(e, p.matchOf, c, t.tokenBase) : null;
|
|
@@ -14413,10 +14449,10 @@ var Wd = (e) => {
|
|
|
14413
14449
|
]);
|
|
14414
14450
|
const F = Lt({
|
|
14415
14451
|
label: "formula-field-hint",
|
|
14416
|
-
anchor: ee(() => ({ getBoundingClientRect: () => T.current?.getBoundingClientRect() ??
|
|
14452
|
+
anchor: ee(() => ({ getBoundingClientRect: () => T.current?.getBoundingClientRect() ?? Kd }), []),
|
|
14417
14453
|
autoFocus: !1,
|
|
14418
14454
|
disableClickAway: B.useCallback((e) => !!k.current?.contains(e), []),
|
|
14419
|
-
propsPopper:
|
|
14455
|
+
propsPopper: Zd,
|
|
14420
14456
|
createPopupPanel: A.renderPanel
|
|
14421
14457
|
}), E = A.active && !i?.dragging, D = F.reference;
|
|
14422
14458
|
X(() => {
|
|
@@ -14644,9 +14680,9 @@ var Wd = (e) => {
|
|
|
14644
14680
|
}), document.body) : null,
|
|
14645
14681
|
hintElement: F.component
|
|
14646
14682
|
};
|
|
14647
|
-
},
|
|
14683
|
+
}, jd = (e) => {
|
|
14648
14684
|
0 === e.button && e.preventDefault();
|
|
14649
|
-
},
|
|
14685
|
+
}, Xd = K(U((e, t) => {
|
|
14650
14686
|
const { grammar: o = "formula", value: n, onChangeInput: r, onChangeText: l, onDone: a, changeOn: i, workbook: s, apiRef: c, hideAdornment: d, hideError: u, home: g, equals: h, pickAs: m, allowMulti: p, allowCrossSheet: f, disabled: v, className: b, style: w, onKeyDown: y, onFocus: S, onBlur: C, placeholder: x, ...q } = e, k = Kt(), T = Ln({
|
|
14651
14687
|
value: n,
|
|
14652
14688
|
onChange: r,
|
|
@@ -14662,7 +14698,7 @@ var Wd = (e) => {
|
|
|
14662
14698
|
disabled: v
|
|
14663
14699
|
}, o);
|
|
14664
14700
|
J(c, () => T, [T]);
|
|
14665
|
-
const R =
|
|
14701
|
+
const R = Gd({
|
|
14666
14702
|
api: T,
|
|
14667
14703
|
grammar: o,
|
|
14668
14704
|
disabled: v,
|
|
@@ -14681,7 +14717,7 @@ var Wd = (e) => {
|
|
|
14681
14717
|
opacity: .8
|
|
14682
14718
|
}, F = d ? null : ae("span", {
|
|
14683
14719
|
className: "sxl-input-adornment",
|
|
14684
|
-
onMouseDown:
|
|
14720
|
+
onMouseDown: jd,
|
|
14685
14721
|
style: {
|
|
14686
14722
|
display: "inline-flex",
|
|
14687
14723
|
alignItems: "center",
|
|
@@ -14694,7 +14730,7 @@ var Wd = (e) => {
|
|
|
14694
14730
|
style: A,
|
|
14695
14731
|
disabled: !!T.error,
|
|
14696
14732
|
tabIndex: -1,
|
|
14697
|
-
onMouseDown:
|
|
14733
|
+
onMouseDown: jd,
|
|
14698
14734
|
onClick: () => {
|
|
14699
14735
|
T.commit();
|
|
14700
14736
|
},
|
|
@@ -14705,7 +14741,7 @@ var Wd = (e) => {
|
|
|
14705
14741
|
title: k("referenceInput.cancel"),
|
|
14706
14742
|
style: A,
|
|
14707
14743
|
tabIndex: -1,
|
|
14708
|
-
onMouseDown:
|
|
14744
|
+
onMouseDown: jd,
|
|
14709
14745
|
onClick: () => {
|
|
14710
14746
|
T.cancel();
|
|
14711
14747
|
},
|
|
@@ -14721,7 +14757,7 @@ var Wd = (e) => {
|
|
|
14721
14757
|
} : A,
|
|
14722
14758
|
disabled: v || !T.canSelectCurrent,
|
|
14723
14759
|
tabIndex: -1,
|
|
14724
|
-
onMouseDown:
|
|
14760
|
+
onMouseDown: jd,
|
|
14725
14761
|
onClick: () => {
|
|
14726
14762
|
T.engaged || T.togglePoint(), T.selectCurrent();
|
|
14727
14763
|
},
|
|
@@ -14821,9 +14857,9 @@ var Wd = (e) => {
|
|
|
14821
14857
|
]
|
|
14822
14858
|
});
|
|
14823
14859
|
}));
|
|
14824
|
-
|
|
14825
|
-
var
|
|
14826
|
-
const { style: o = {}, className: n, value: r = "", onSubmit: l, onChange: a, onCancel: i, renderInput: s =
|
|
14860
|
+
Xd.displayName = "FormulaInput";
|
|
14861
|
+
var Yd = "_editable-input_1u3oj_6", Jd = (e) => ae("input", { ...e }), Qd = K(U((e, t) => {
|
|
14862
|
+
const { style: o = {}, className: n, value: r = "", onSubmit: l, onChange: a, onCancel: i, renderInput: s = Jd, styleHover: c = {}, dragging: d, maxLength: u, disabled: g = !1, readOnly: h = !1, ...m } = e, [p, f] = ne(!1), [v, b] = ne(!1), [w, y] = ne(r);
|
|
14827
14863
|
X(() => {
|
|
14828
14864
|
y(r);
|
|
14829
14865
|
}, [r]);
|
|
@@ -14845,7 +14881,7 @@ var Xd = "_editable-input_1u3oj_6", Yd = (e) => ae("input", { ...e }), Jd = K(U(
|
|
|
14845
14881
|
}, [i, r]), I = ee(() => {
|
|
14846
14882
|
if (!v) return null;
|
|
14847
14883
|
const e = {
|
|
14848
|
-
className: tt(
|
|
14884
|
+
className: tt(Yd),
|
|
14849
14885
|
autoFocus: !0,
|
|
14850
14886
|
spellCheck: !1,
|
|
14851
14887
|
name: "editable-label",
|
|
@@ -14947,7 +14983,7 @@ var Xd = "_editable-input_1u3oj_6", Yd = (e) => ae("input", { ...e }), Jd = K(U(
|
|
|
14947
14983
|
children: w
|
|
14948
14984
|
})]
|
|
14949
14985
|
});
|
|
14950
|
-
})),
|
|
14986
|
+
})), eu = K(U((e, t) => {
|
|
14951
14987
|
const { children: o, style: n, className: r, index: l, editing: a, editable: i, selectedIndex: s, background: c, activeColor: d, borderColor: u, borderWidth: g, dragging: h, ...m } = e;
|
|
14952
14988
|
return ie("div", {
|
|
14953
14989
|
ref: t,
|
|
@@ -14996,7 +15032,7 @@ var Xd = "_editable-input_1u3oj_6", Yd = (e) => ae("input", { ...e }), Jd = K(U(
|
|
|
14996
15032
|
minHeight: "2px"
|
|
14997
15033
|
} })]
|
|
14998
15034
|
});
|
|
14999
|
-
})),
|
|
15035
|
+
})), tu = {
|
|
15000
15036
|
Wrapper: "_Wrapper_10yib_21",
|
|
15001
15037
|
fadeIn: "_fadeIn_10yib_29",
|
|
15002
15038
|
dragOverlay: "_dragOverlay_10yib_33",
|
|
@@ -15005,7 +15041,7 @@ var Xd = "_editable-input_1u3oj_6", Yd = (e) => ae("input", { ...e }), Jd = K(U(
|
|
|
15005
15041
|
withHandle: "_withHandle_10yib_57",
|
|
15006
15042
|
dragging: "_dragging_10yib_62",
|
|
15007
15043
|
disabled: "_disabled_10yib_72"
|
|
15008
|
-
},
|
|
15044
|
+
}, ou = K(U(({ color: e, dragOverlay: t, dragging: o, disabled: n, fadeIn: r, handle: l, height: a, index: i, listeners: s, onRemove: c, renderItem: d, sorting: u, style: g, transition: h, transform: m, value: p, wrapperStyle: f, ...v }, b) => {
|
|
15009
15045
|
X(() => {
|
|
15010
15046
|
if (t) return document.body.style.cursor = "grabbing", () => {
|
|
15011
15047
|
document.body.style.cursor = "";
|
|
@@ -15025,7 +15061,7 @@ var Xd = "_editable-input_1u3oj_6", Yd = (e) => ae("input", { ...e }), Jd = K(U(
|
|
|
15025
15061
|
value: p
|
|
15026
15062
|
}) : ae(le, { children: p });
|
|
15027
15063
|
return ae("div", {
|
|
15028
|
-
className: tt("tab-item",
|
|
15064
|
+
className: tt("tab-item", tu.Wrapper, r && tu.fadeIn, u && tu.sorting, t && tu.dragOverlay),
|
|
15029
15065
|
style: {
|
|
15030
15066
|
...f,
|
|
15031
15067
|
transition: [h, f?.transition].filter(Boolean).join(", "),
|
|
@@ -15037,7 +15073,7 @@ var Xd = "_editable-input_1u3oj_6", Yd = (e) => ae("input", { ...e }), Jd = K(U(
|
|
|
15037
15073
|
},
|
|
15038
15074
|
ref: b,
|
|
15039
15075
|
children: ae("div", {
|
|
15040
|
-
className: tt(
|
|
15076
|
+
className: tt(tu.Item, o && tu.dragging, l && tu.withHandle, t && tu.dragOverlay, n && tu.disabled, e && tu.color, "dragging"),
|
|
15041
15077
|
style: g,
|
|
15042
15078
|
"data-cypress": "draggable-item",
|
|
15043
15079
|
...l ? void 0 : s,
|
|
@@ -15046,16 +15082,16 @@ var Xd = "_editable-input_1u3oj_6", Yd = (e) => ae("input", { ...e }), Jd = K(U(
|
|
|
15046
15082
|
children: w
|
|
15047
15083
|
})
|
|
15048
15084
|
});
|
|
15049
|
-
})),
|
|
15085
|
+
})), nu = { Row: "_Row_1kr10_1" }, ru = K(U(({ children: e, horizontal: t, style: o }, n) => ae("div", {
|
|
15050
15086
|
ref: n,
|
|
15051
15087
|
style: { ...o },
|
|
15052
|
-
className: tt(
|
|
15088
|
+
className: tt(nu.Row, t && nu.horizontal),
|
|
15053
15089
|
children: e
|
|
15054
|
-
}))),
|
|
15090
|
+
}))), lu = {
|
|
15055
15091
|
...ho,
|
|
15056
15092
|
sideEffects: mo({ styles: { active: { opacity: "0" } } })
|
|
15057
|
-
},
|
|
15058
|
-
const { className: o, activationConstraint: n, animateLayoutChanges: r, adjustScale: l = !1, collisionDetection: a = go, coordinateGetter: i = oo, dropAnimation: s =
|
|
15093
|
+
}, au = K(U((e, t) => {
|
|
15094
|
+
const { className: o, activationConstraint: n, animateLayoutChanges: r, adjustScale: l = !1, collisionDetection: a = go, coordinateGetter: i = oo, dropAnimation: s = lu, getItemStyles: c = () => ({}), getNewIndex: d, handle: u = !1, items: g, onMove: h, isDisabled: m = () => !1, measuring: p, modifiers: f, renderItem: v, renderDivider: b, reorderItems: w = Qt, strategy: y = to, style: S, useDragOverlay: C = !0, onDragStart: x, wrapperStyle: q = () => ({}) } = e, [k, T] = ne(() => g);
|
|
15059
15095
|
X(() => {
|
|
15060
15096
|
T(g);
|
|
15061
15097
|
}, [g]);
|
|
@@ -15064,7 +15100,7 @@ var Xd = "_editable-input_1u3oj_6", Yd = (e) => ae("input", { ...e }), Jd = K(U(
|
|
|
15064
15100
|
coordinateGetter: i
|
|
15065
15101
|
})), A = k.indexOf.bind(k), F = R ? A(String(R)) : -1, E = [];
|
|
15066
15102
|
k.map((e, t) => {
|
|
15067
|
-
E.push(ae(
|
|
15103
|
+
E.push(ae(iu, {
|
|
15068
15104
|
id: e,
|
|
15069
15105
|
handle: u,
|
|
15070
15106
|
index: t,
|
|
@@ -15123,7 +15159,7 @@ var Xd = "_editable-input_1u3oj_6", Yd = (e) => ae("input", { ...e }), Jd = K(U(
|
|
|
15123
15159
|
boxSizing: "border-box",
|
|
15124
15160
|
...S
|
|
15125
15161
|
},
|
|
15126
|
-
className: tt(o,
|
|
15162
|
+
className: tt(o, tu.Wrapper),
|
|
15127
15163
|
onMouseDown: (e) => {
|
|
15128
15164
|
(() => {
|
|
15129
15165
|
const e = document.activeElement;
|
|
@@ -15139,7 +15175,7 @@ var Xd = "_editable-input_1u3oj_6", Yd = (e) => ae("input", { ...e }), Jd = K(U(
|
|
|
15139
15175
|
children: ae(Jt, {
|
|
15140
15176
|
items: k,
|
|
15141
15177
|
strategy: y,
|
|
15142
|
-
children: ae(
|
|
15178
|
+
children: ae(ru, {
|
|
15143
15179
|
ref: t,
|
|
15144
15180
|
children: E
|
|
15145
15181
|
})
|
|
@@ -15151,7 +15187,7 @@ var Xd = "_editable-input_1u3oj_6", Yd = (e) => ae("input", { ...e }), Jd = K(U(
|
|
|
15151
15187
|
className: L,
|
|
15152
15188
|
...N,
|
|
15153
15189
|
style: { display: "flex" },
|
|
15154
|
-
children: ae(
|
|
15190
|
+
children: ae(ou, {
|
|
15155
15191
|
value: k[F],
|
|
15156
15192
|
handle: u,
|
|
15157
15193
|
renderItem: v,
|
|
@@ -15176,14 +15212,14 @@ var Xd = "_editable-input_1u3oj_6", Yd = (e) => ae("input", { ...e }), Jd = K(U(
|
|
|
15176
15212
|
}), D()) : null]
|
|
15177
15213
|
});
|
|
15178
15214
|
}));
|
|
15179
|
-
function
|
|
15215
|
+
function iu({ disabled: e, animateLayoutChanges: t, getNewIndex: o, handle: n, id: r, index: l, onRemove: a, style: i, renderItem: s, useDragOverlay: c, wrapperStyle: d }) {
|
|
15180
15216
|
const { attributes: u, isDragging: g, isSorting: h, listeners: m, overIndex: p, setNodeRef: f, transform: v, transition: b } = no({
|
|
15181
15217
|
id: r,
|
|
15182
15218
|
animateLayoutChanges: t,
|
|
15183
15219
|
disabled: e,
|
|
15184
15220
|
getNewIndex: o
|
|
15185
15221
|
});
|
|
15186
|
-
return ae(
|
|
15222
|
+
return ae(ou, {
|
|
15187
15223
|
ref: f,
|
|
15188
15224
|
value: r,
|
|
15189
15225
|
disabled: e,
|
|
@@ -15214,8 +15250,8 @@ function au({ disabled: e, animateLayoutChanges: t, getNewIndex: o, handle: n, i
|
|
|
15214
15250
|
...u
|
|
15215
15251
|
});
|
|
15216
15252
|
}
|
|
15217
|
-
var
|
|
15218
|
-
const { children: o, style: n, className: r, selectedTabIndex: l = 0, tabNames: a = [], onSelectedTabIndexChange: i, onTabNameChange: s, onTabMove: c, renderScrollButtonStart: d = It, renderScrollButtonEnd: u = Rt, renderScrollButtonEdge: g = Tt, renderTabButton: h =
|
|
15253
|
+
var su = "_TabStrip_3x0dp_1", cu = "rgb(33, 115, 70)", du = "#eee", uu = (e) => ae(eu, { ...e }), gu = K(U((e, t) => {
|
|
15254
|
+
const { children: o, style: n, className: r, selectedTabIndex: l = 0, tabNames: a = [], onSelectedTabIndexChange: i, onTabNameChange: s, onTabMove: c, renderScrollButtonStart: d = It, renderScrollButtonEnd: u = Rt, renderScrollButtonEdge: g = Tt, renderTabButton: h = uu, renderTabDivider: m, propsEditLabel: p, disabled: f = !1, disableDrag: v = !1, background: b = "white", activeColor: w = cu, borderColor: y = du, borderWidth: S = 1 } = e, [C, x] = ne(l), [q, k] = ne(a), T = G((e) => {
|
|
15219
15255
|
const t = D.current?.[e]?.closest(".tab-item") ?? D.current?.[e];
|
|
15220
15256
|
if (!t || !H.current) return;
|
|
15221
15257
|
const o = H.current, n = t.getBoundingClientRect(), r = o.getBoundingClientRect();
|
|
@@ -15250,7 +15286,7 @@ var iu = "_TabStrip_3x0dp_1", su = "rgb(33, 115, 70)", cu = "#eee", du = (e) =>
|
|
|
15250
15286
|
}
|
|
15251
15287
|
}, P.current), [C, A]);
|
|
15252
15288
|
const N = G(({ value: e, index: t, dragging: o }) => {
|
|
15253
|
-
const { style: n, maxLength: r, ...l } = p || {}, a = ae(
|
|
15289
|
+
const { style: n, maxLength: r, ...l } = p || {}, a = ae(Qd, {
|
|
15254
15290
|
ref: (e) => {
|
|
15255
15291
|
D.current[t] = e;
|
|
15256
15292
|
},
|
|
@@ -15387,7 +15423,7 @@ var iu = "_TabStrip_3x0dp_1", su = "rgb(33, 115, 70)", cu = "#eee", du = (e) =>
|
|
|
15387
15423
|
display: "flex",
|
|
15388
15424
|
alignItems: "stretch"
|
|
15389
15425
|
},
|
|
15390
|
-
className: tt(r,
|
|
15426
|
+
className: tt(r, su),
|
|
15391
15427
|
ref: P,
|
|
15392
15428
|
children: [
|
|
15393
15429
|
ae("div", { style: {
|
|
@@ -15428,7 +15464,7 @@ var iu = "_TabStrip_3x0dp_1", su = "rgb(33, 115, 70)", cu = "#eee", du = (e) =>
|
|
|
15428
15464
|
height: e.target.scrollHeight
|
|
15429
15465
|
});
|
|
15430
15466
|
},
|
|
15431
|
-
children: ae(
|
|
15467
|
+
children: ae(au, {
|
|
15432
15468
|
isDisabled: (e) => f || v,
|
|
15433
15469
|
items: q,
|
|
15434
15470
|
strategy: eo,
|
|
@@ -15452,20 +15488,20 @@ var iu = "_TabStrip_3x0dp_1", su = "rgb(33, 115, 70)", cu = "#eee", du = (e) =>
|
|
|
15452
15488
|
]
|
|
15453
15489
|
});
|
|
15454
15490
|
}));
|
|
15455
|
-
|
|
15456
|
-
var
|
|
15491
|
+
gu.displayName = "TabStrip";
|
|
15492
|
+
var hu = {
|
|
15457
15493
|
"sheet-tab": "_sheet-tab_1cbiv_2",
|
|
15458
15494
|
ghost: "_ghost_1cbiv_18"
|
|
15459
|
-
},
|
|
15495
|
+
}, mu = (e) => {
|
|
15460
15496
|
const { disabled: t, editing: o, ...n } = e;
|
|
15461
15497
|
return ae("div", { ...n });
|
|
15462
|
-
},
|
|
15498
|
+
}, pu = (e, t) => `color-mix(in srgb, ${e} ${t}%, transparent)`, fu = {
|
|
15463
15499
|
top: 3,
|
|
15464
15500
|
right: 4.5,
|
|
15465
15501
|
bottom: 1.5,
|
|
15466
15502
|
left: 4
|
|
15467
|
-
},
|
|
15468
|
-
const { children: o, sheet: n, style: r, className: l, value: a, index: i, editing: s, editable: c, disabled: d, selectedIndex: u, dragging: g, borderColor: h, borderWidth: m, activeColor: p, background: f = "white", tabRadius: v = 4, slotSurface: b =
|
|
15503
|
+
}, vu = K(U((e, t) => {
|
|
15504
|
+
const { children: o, sheet: n, style: r, className: l, value: a, index: i, editing: s, editable: c, disabled: d, selectedIndex: u, dragging: g, borderColor: h, borderWidth: m, activeColor: p, background: f = "white", tabRadius: v = 4, slotSurface: b = mu, inverted: w = !0, ...y } = e, [S, C] = ne(() => !!n && n.getProtection().isLocked()), [x, q] = ne(() => n ? n.getTabColor() : null);
|
|
15469
15505
|
wo(n, {
|
|
15470
15506
|
onProtectionChange: () => {
|
|
15471
15507
|
C(n.getProtection().isLocked());
|
|
@@ -15477,14 +15513,14 @@ var gu = {
|
|
|
15477
15513
|
q(n.getTabColor());
|
|
15478
15514
|
}
|
|
15479
15515
|
});
|
|
15480
|
-
const k = u === i, T =
|
|
15516
|
+
const k = u === i, T = Xs(), R = !k && !g && !x, I = g && !x && !k;
|
|
15481
15517
|
let M = null, A = null;
|
|
15482
15518
|
if (x || g || R) {
|
|
15483
15519
|
let e = f, t = e, o = e;
|
|
15484
|
-
x ? (A = x.toBlackOrWhite().toCSS(), e = x.toCSS(), t =
|
|
15520
|
+
x ? (A = x.toBlackOrWhite().toCSS(), e = x.toCSS(), t = pu(e, 75), o = pu(e, 10)) : k || (e = "var(--sxl-color-base-100)");
|
|
15485
15521
|
const n = `linear-gradient(0deg, ${e} 0%, ${t} 60%, ${o} 90%, transparent 100%)`;
|
|
15486
15522
|
M = ae("div", {
|
|
15487
|
-
className: tt(
|
|
15523
|
+
className: tt(hu.pill, R && hu.ghost),
|
|
15488
15524
|
style: {
|
|
15489
15525
|
position: "absolute",
|
|
15490
15526
|
boxSizing: "border-box",
|
|
@@ -15536,10 +15572,10 @@ var gu = {
|
|
|
15536
15572
|
},
|
|
15537
15573
|
radius: v,
|
|
15538
15574
|
variant: k && w ? "tab" : "rounded",
|
|
15539
|
-
clipInset: k && w ? void 0 :
|
|
15575
|
+
clipInset: k && w ? void 0 : fu,
|
|
15540
15576
|
strokeColor: k ? F : "transparent",
|
|
15541
15577
|
children: ie(b, {
|
|
15542
|
-
className:
|
|
15578
|
+
className: hu["sheet-tab"],
|
|
15543
15579
|
disabled: d,
|
|
15544
15580
|
editing: s,
|
|
15545
15581
|
style: {
|
|
@@ -15596,8 +15632,8 @@ var gu = {
|
|
|
15596
15632
|
})
|
|
15597
15633
|
});
|
|
15598
15634
|
}));
|
|
15599
|
-
|
|
15600
|
-
var
|
|
15635
|
+
vu.displayName = "SheetTab";
|
|
15636
|
+
var bu = (e) => ie("svg", {
|
|
15601
15637
|
...e,
|
|
15602
15638
|
viewBox: "0 0 48 48",
|
|
15603
15639
|
children: [
|
|
@@ -15621,11 +15657,11 @@ var vu = (e) => ie("svg", {
|
|
|
15621
15657
|
fill: "#f9CECB"
|
|
15622
15658
|
})
|
|
15623
15659
|
]
|
|
15624
|
-
}),
|
|
15660
|
+
}), wu = bo({ FindScopeOptions: () => yu }), yu = {
|
|
15625
15661
|
Workbook: "workbook",
|
|
15626
15662
|
Sheet: "sheet"
|
|
15627
15663
|
};
|
|
15628
|
-
function
|
|
15664
|
+
function Su(e, t) {
|
|
15629
15665
|
const o = t.workbook;
|
|
15630
15666
|
if (!o) return () => {};
|
|
15631
15667
|
const n = t, r = n?.notifier, l = (e) => e ?? o.getSelectedSheetIndex();
|
|
@@ -16004,15 +16040,15 @@ function yu(e, t) {
|
|
|
16004
16040
|
k(), s?.();
|
|
16005
16041
|
};
|
|
16006
16042
|
}
|
|
16007
|
-
var
|
|
16008
|
-
const o = t.manager ?
|
|
16043
|
+
var Cu = { dynamic: (e, t) => {
|
|
16044
|
+
const o = t.manager ? ya(e, {
|
|
16009
16045
|
manager: t.manager,
|
|
16010
16046
|
notifier: t.notifier
|
|
16011
|
-
}) : void 0, n =
|
|
16047
|
+
}) : void 0, n = Su(e, t);
|
|
16012
16048
|
return () => {
|
|
16013
16049
|
o?.(), n();
|
|
16014
16050
|
};
|
|
16015
|
-
} },
|
|
16051
|
+
} }, xu = class {
|
|
16016
16052
|
constructor() {
|
|
16017
16053
|
this._loadedIO = null, this._loadPromise = null, this._backingStore = null, this._listeners = /* @__PURE__ */ new Set(), this._lazyDefaultStore = { write: async (e) => (await this._loadIO()).getBackingStore().write?.(e) ?? null };
|
|
16018
16054
|
}
|
|
@@ -16082,19 +16118,13 @@ var Su = { dynamic: (e, t) => {
|
|
|
16082
16118
|
});
|
|
16083
16119
|
} });
|
|
16084
16120
|
}
|
|
16085
|
-
},
|
|
16086
|
-
const { io: o =
|
|
16121
|
+
}, qu = new xu(), ku = async (e, t = {}) => {
|
|
16122
|
+
const { io: o = qu, defaultTheme: n } = t;
|
|
16087
16123
|
if (e instanceof D) return e;
|
|
16088
16124
|
if (!e || !ue.isPromiseLike(e) && 0 === Object.keys(e).length) return new D({ theme: n });
|
|
16089
16125
|
const r = await Promise.resolve(e);
|
|
16090
|
-
|
|
16091
|
-
|
|
16092
|
-
const e = await o.read(r);
|
|
16093
|
-
if (!e) throw new Error("Unable to read workbook from the provided source.");
|
|
16094
|
-
return e;
|
|
16095
|
-
}
|
|
16096
|
-
return r;
|
|
16097
|
-
}, ku = (e, t = {}) => {
|
|
16126
|
+
return r instanceof D ? r : r && r.source ? o.read(r) : r;
|
|
16127
|
+
}, Tu = (e, t = {}) => {
|
|
16098
16128
|
const { io: o, defaultTheme: n, reloadKey: r } = t, l = oe({
|
|
16099
16129
|
io: o,
|
|
16100
16130
|
defaultTheme: n
|
|
@@ -16106,16 +16136,17 @@ var Su = { dynamic: (e, t) => {
|
|
|
16106
16136
|
const [a, i] = ne(() => e instanceof D ? {
|
|
16107
16137
|
status: "loaded",
|
|
16108
16138
|
workbook: e
|
|
16109
|
-
} : { status: "loading" });
|
|
16110
|
-
return X(() => {
|
|
16139
|
+
} : { status: "loading" }), s = oe(a);
|
|
16140
|
+
return s.current = a, X(() => {
|
|
16111
16141
|
let t = !0;
|
|
16112
16142
|
return i((e) => "loaded" === e.status ? e : { status: "loading" }), (async () => {
|
|
16113
16143
|
try {
|
|
16114
|
-
const o = await
|
|
16144
|
+
const o = await ku(e, l.current);
|
|
16115
16145
|
if (!t) return;
|
|
16116
|
-
|
|
16146
|
+
const n = s.current, r = o ?? ("loaded" === n.status ? n.workbook : new D({ theme: l.current.defaultTheme }));
|
|
16147
|
+
i((e) => "loaded" === e.status && e.workbook === r ? e : {
|
|
16117
16148
|
status: "loaded",
|
|
16118
|
-
workbook:
|
|
16149
|
+
workbook: r
|
|
16119
16150
|
});
|
|
16120
16151
|
} catch (e) {
|
|
16121
16152
|
if (!t) return;
|
|
@@ -16128,18 +16159,18 @@ var Su = { dynamic: (e, t) => {
|
|
|
16128
16159
|
t = !1;
|
|
16129
16160
|
};
|
|
16130
16161
|
}, [e, r]), a;
|
|
16131
|
-
},
|
|
16162
|
+
}, Ru = !1, Iu = !1, Mu = null, Au = async (e) => {
|
|
16132
16163
|
const t = await C.getDetails();
|
|
16133
|
-
if (
|
|
16164
|
+
if (Iu || t.isEval()) {
|
|
16134
16165
|
try {
|
|
16135
16166
|
const e = top ?? window;
|
|
16136
16167
|
e.SheetXL || (e.SheetXL = Object.freeze({
|
|
16137
|
-
getSelectedWorkbook: () =>
|
|
16138
|
-
getSelectedSheet: () =>
|
|
16139
|
-
getSelectedRange: () =>
|
|
16140
|
-
getSelectedRanges: () =>
|
|
16141
|
-
getRange: (e) =>
|
|
16142
|
-
getSelectedWorkbookElement: () =>
|
|
16168
|
+
getSelectedWorkbook: () => Mu?.getWorkbook(),
|
|
16169
|
+
getSelectedSheet: () => Mu?.getWorkbook().getSelectedSheet(),
|
|
16170
|
+
getSelectedRange: () => Mu?.getWorkbook().getSelectedRange(),
|
|
16171
|
+
getSelectedRanges: () => Mu?.getWorkbook().getSelectedRanges(),
|
|
16172
|
+
getRange: (e) => Mu?.getWorkbook().getRange(e),
|
|
16173
|
+
getSelectedWorkbookElement: () => Mu,
|
|
16143
16174
|
getLicenseManager: () => C,
|
|
16144
16175
|
moreExamples: () => {
|
|
16145
16176
|
console.table({
|
|
@@ -16171,11 +16202,11 @@ var Su = { dynamic: (e, t) => {
|
|
|
16171
16202
|
}
|
|
16172
16203
|
}));
|
|
16173
16204
|
} catch (e) {
|
|
16174
|
-
e instanceof DOMException || console.error(e),
|
|
16205
|
+
e instanceof DOMException || console.error(e), Ru = !0;
|
|
16175
16206
|
}
|
|
16176
|
-
if (
|
|
16177
|
-
|
|
16178
|
-
ue.consoleWithNoSource("%cTip: You can access the API directly in the console.\nTry\n%c>%c SheetXL.getRange('b2:c3').setValues([[42, 'Hello Word'], [new Date(), true]]) %c\n>%c SheetXL.moreExamples()", "color:#ffa726;", "font-family:monospace;color:#1976d2;font-size:12px;", "font-family:monospace;", "font-family:monospace;color:#1976d2;font-size:12px;", "font-family:monospace;"),
|
|
16207
|
+
if (Mu !== e && (Mu = e, !Ru)) try {
|
|
16208
|
+
Ru = !0, (top ?? window).SheetXL && (await C._validate(!0), C.wasPrinted() && (() => {
|
|
16209
|
+
ue.consoleWithNoSource("%cTip: You can access the API directly in the console.\nTry\n%c>%c SheetXL.getRange('b2:c3').setValues([[42, 'Hello Word'], [new Date(), true]]) %c\n>%c SheetXL.moreExamples()", "color:#ffa726;", "font-family:monospace;color:#1976d2;font-size:12px;", "font-family:monospace;", "font-family:monospace;color:#1976d2;font-size:12px;", "font-family:monospace;"), Ru = !0;
|
|
16179
16210
|
const e = document.getElementById("openEditorLink");
|
|
16180
16211
|
e && e.addEventListener("click", (e) => {
|
|
16181
16212
|
e.preventDefault(), console.log("openScriptEditor called from console");
|
|
@@ -16185,10 +16216,10 @@ var Su = { dynamic: (e, t) => {
|
|
|
16185
16216
|
e instanceof DOMException || console.error(e);
|
|
16186
16217
|
}
|
|
16187
16218
|
}
|
|
16188
|
-
},
|
|
16189
|
-
|
|
16190
|
-
},
|
|
16191
|
-
const { children: o, workbook: n, onBeforeUserChange: r, onUserChange: l, disabled: a = !1, readOnly: i = !1, className: s, style: c, condensed: d = !1, renderSheetTab: u =
|
|
16219
|
+
}, Fu = (e) => {
|
|
16220
|
+
Iu = e;
|
|
16221
|
+
}, Eu = "_add-button_1b4ig_1", Du = (e) => ae(vu, { ...e }), Pu = "var(--sxl-color-base-border, light-dark(rgba(0, 0, 0, 0.26), rgba(255, 255, 255, 0.3)))", Nu = "1px", Lu = K(U((e, t) => {
|
|
16222
|
+
const { children: o, workbook: n, onBeforeUserChange: r, onUserChange: l, disabled: a = !1, readOnly: i = !1, className: s, style: c, condensed: d = !1, renderSheetTab: u = Du, onTabContextMenu: g, renderScrollButtonStart: h, renderScrollButtonEnd: m, renderScrollButtonEdge: p, ...f } = e, v = Kt(), b = d ? null : h, w = d ? null : m, y = d ? null : p, S = oe(null), C = oe(null);
|
|
16192
16223
|
J(t, () => Object.assign({
|
|
16193
16224
|
startEdit(e) {
|
|
16194
16225
|
C.current?.startEdit(e);
|
|
@@ -16271,7 +16302,7 @@ var Su = { dynamic: (e, t) => {
|
|
|
16271
16302
|
}, t);
|
|
16272
16303
|
}, [A]), B = ee(() => M ? null : ae("button", {
|
|
16273
16304
|
type: "button",
|
|
16274
|
-
className: tt("workbook-strip-add",
|
|
16305
|
+
className: tt("workbook-strip-add", Eu),
|
|
16275
16306
|
disabled: a,
|
|
16276
16307
|
"aria-label": "addTab",
|
|
16277
16308
|
title: v("workbookStrip.newSheet"),
|
|
@@ -16305,7 +16336,7 @@ var Su = { dynamic: (e, t) => {
|
|
|
16305
16336
|
},
|
|
16306
16337
|
...f,
|
|
16307
16338
|
children: [
|
|
16308
|
-
ae(
|
|
16339
|
+
ae(gu, {
|
|
16309
16340
|
ref: C,
|
|
16310
16341
|
selectedTabIndex: x,
|
|
16311
16342
|
tabNames: F,
|
|
@@ -16313,7 +16344,7 @@ var Su = { dynamic: (e, t) => {
|
|
|
16313
16344
|
onTabNameChange: D,
|
|
16314
16345
|
onTabMove: P,
|
|
16315
16346
|
background: "var(--sxl-color-base-100)",
|
|
16316
|
-
borderColor:
|
|
16347
|
+
borderColor: Pu,
|
|
16317
16348
|
activeColor: null,
|
|
16318
16349
|
disabled: a,
|
|
16319
16350
|
disableDrag: M,
|
|
@@ -16336,12 +16367,12 @@ var Su = { dynamic: (e, t) => {
|
|
|
16336
16367
|
children: o
|
|
16337
16368
|
}),
|
|
16338
16369
|
ae("div", { style: {
|
|
16339
|
-
borderTop: `solid ${
|
|
16370
|
+
borderTop: `solid ${Pu} ${Nu}`,
|
|
16340
16371
|
minWidth: "4px"
|
|
16341
16372
|
} }),
|
|
16342
16373
|
ae("div", {
|
|
16343
16374
|
style: {
|
|
16344
|
-
borderTop: `solid ${
|
|
16375
|
+
borderTop: `solid ${Pu} ${Nu}`,
|
|
16345
16376
|
flex: "none",
|
|
16346
16377
|
display: "flex",
|
|
16347
16378
|
alignItems: "center"
|
|
@@ -16349,43 +16380,43 @@ var Su = { dynamic: (e, t) => {
|
|
|
16349
16380
|
children: B
|
|
16350
16381
|
}),
|
|
16351
16382
|
ae("div", { style: {
|
|
16352
|
-
borderTop: `solid ${
|
|
16383
|
+
borderTop: `solid ${Pu} ${Nu}`,
|
|
16353
16384
|
flex: 1,
|
|
16354
16385
|
minWidth: "24px"
|
|
16355
16386
|
} })
|
|
16356
16387
|
]
|
|
16357
16388
|
});
|
|
16358
16389
|
}));
|
|
16359
|
-
|
|
16360
|
-
var
|
|
16390
|
+
Lu.displayName = "WorkbookStrip";
|
|
16391
|
+
var zu = "_loading-panel_bjv3h_1", Bu = "_loading-spinner_bjv3h_10", Ou = (e) => {
|
|
16361
16392
|
const { key: t, ...o } = e;
|
|
16362
|
-
return ae(
|
|
16363
|
-
},
|
|
16393
|
+
return ae(Lc, { ...o }, t);
|
|
16394
|
+
}, Hu = (e) => ae(Lu, { ...e }), Vu = (e) => {
|
|
16364
16395
|
const { transitionDelay: t, transparentBackground: o, onMount: n, onUnmount: r, className: l, style: a, ...i } = e;
|
|
16365
16396
|
return ae("div", {
|
|
16366
|
-
className: tt(
|
|
16397
|
+
className: tt(zu, l),
|
|
16367
16398
|
style: {
|
|
16368
16399
|
background: o ? "transparent" : "var(--sxl-color-base-100, #fff)",
|
|
16369
16400
|
...a
|
|
16370
16401
|
},
|
|
16371
16402
|
...i,
|
|
16372
|
-
children: ae("div", { className:
|
|
16403
|
+
children: ae("div", { className: Bu })
|
|
16373
16404
|
});
|
|
16374
|
-
},
|
|
16405
|
+
}, $u = {
|
|
16375
16406
|
"sheetxl-workbook": "_sheetxl-workbook_r60qk_11",
|
|
16376
16407
|
"sheetxl-reset": "_sheetxl-reset_r60qk_36",
|
|
16377
16408
|
viewport: "_viewport_r60qk_30"
|
|
16378
|
-
},
|
|
16379
|
-
|
|
16380
|
-
var
|
|
16409
|
+
}, _u = { version: 1 };
|
|
16410
|
+
Za();
|
|
16411
|
+
var Wu = { ignoreModelChange: !0 }, Uu = {
|
|
16381
16412
|
flex: "1 1 100%",
|
|
16382
16413
|
display: "flex",
|
|
16383
16414
|
boxSizing: "border-box"
|
|
16384
|
-
},
|
|
16385
|
-
const { workbook: o, onWorkbookLoad: n, autoFocus: r = !1, style: l, className: a, onFocus: i, onBlur: s, onKeyDown: c, undoManager: d, focusNameBox: u, showTabs: g, propsTabs: h, renderTabs: m =
|
|
16415
|
+
}, Zu = "solid var(--sxl-color-base-border, light-dark(rgba(0, 0, 0, 0.26), rgba(255, 255, 255, 0.3))) 1px", Ku = K(U((e, t) => {
|
|
16416
|
+
const { workbook: o, onWorkbookLoad: n, autoFocus: r = !1, style: l, className: a, onFocus: i, onBlur: s, onKeyDown: c, undoManager: d, focusNameBox: u, showTabs: g, propsTabs: h, renderTabs: m = Hu, propsContextMenu: p, renderContextMenu: f, renderColumnMenu: v, renderMovableMenu: b, propsFloatPanel: w, renderFloatPanel: y, renderWorkbookLoading: S = Vu, propsWorkbookLoading: C, propsSheet: x, editable: q, renderSheet: k = Ou, wrapperMain: T, showHorizontalScrollbar: R, showVerticalScrollbar: I, colorScheme: M, gridColorScheme: A, ...D } = e;
|
|
16386
16417
|
if (!o) throw new Error("IWorkbook must be provided.");
|
|
16387
16418
|
const P = oe(null), N = oe(null), L = ee(() => ae("div", {
|
|
16388
|
-
className: tt("sheetxl-viewport",
|
|
16419
|
+
className: tt("sheetxl-viewport", $u.viewport),
|
|
16389
16420
|
style: {
|
|
16390
16421
|
width: "100%",
|
|
16391
16422
|
height: "100%",
|
|
@@ -16436,12 +16467,12 @@ var _u = { ignoreModelChange: !0 }, Wu = {
|
|
|
16436
16467
|
o ? o.getSheet() !== t ? o.getGridSurface()?.onPaneChangeOnce(() => {
|
|
16437
16468
|
P.current?.getSheet() !== t && e(!1), e(!0);
|
|
16438
16469
|
}) : e(!0) : e(!1);
|
|
16439
|
-
}) },
|
|
16470
|
+
}) }, Wu);
|
|
16440
16471
|
const [ue, ge] = te((e) => e + 1, 0), he = o.getView();
|
|
16441
16472
|
wo(he, { onViewChange: (e) => {
|
|
16442
16473
|
ge();
|
|
16443
16474
|
} });
|
|
16444
|
-
const [me] = Wt(
|
|
16475
|
+
const [me] = Wt(js.Mode, null), [pe] = Wt(js.DarkImages, !1), { themeMode: fe } = Ut({ mode: M ?? me ?? void 0 }), ve = Xs(A), be = Y(), we = ee(() => kt("workbook", be), [be]), ye = ee(() => _e({ scope: `.${we}` }), [we]), Se = ee(() => Ws("sxl-defaults", `.${we}`), [we]), [Ce, xe] = ne({});
|
|
16445
16476
|
Q(() => {
|
|
16446
16477
|
if (!U) return;
|
|
16447
16478
|
const e = getComputedStyle(U), t = (t) => e.getPropertyValue(t).trim() || void 0, o = t("--icon-color");
|
|
@@ -16455,7 +16486,7 @@ var _u = { ignoreModelChange: !0 }, Wu = {
|
|
|
16455
16486
|
backgroundColor: Ce.base100,
|
|
16456
16487
|
borderColor: Ce.primary,
|
|
16457
16488
|
fillColor: Ce.icon ?? "grey"
|
|
16458
|
-
}), [Ce]), ke = ee(() => new Ct(), []), Te = rt.useCommandScope(), Re = $t(), Ie =
|
|
16489
|
+
}), [Ce]), ke = ee(() => new Ct(), []), Te = rt.useCommandScope(), Re = $t(), Ie = ra(), Me = Ds(), [Ae, Fe] = ne(d ?? null);
|
|
16459
16490
|
X(() => {
|
|
16460
16491
|
if (!Te) return void Fe(null);
|
|
16461
16492
|
if (d) return void Fe(d);
|
|
@@ -16467,7 +16498,7 @@ var _u = { ignoreModelChange: !0 }, Wu = {
|
|
|
16467
16498
|
o,
|
|
16468
16499
|
d
|
|
16469
16500
|
]);
|
|
16470
|
-
const [Ee, De] = Wt("workbook.lastFind", null,
|
|
16501
|
+
const [Ee, De] = Wt("workbook.lastFind", null, _u), Pe = oe(Ee);
|
|
16471
16502
|
Pe.current = Ee;
|
|
16472
16503
|
const Ne = ee(() => ({
|
|
16473
16504
|
getLastFind: () => Pe.current,
|
|
@@ -16477,7 +16508,7 @@ var _u = { ignoreModelChange: !0 }, Wu = {
|
|
|
16477
16508
|
key: o ? `workbook:${o.getId()}` : "workbook",
|
|
16478
16509
|
name: "workbook"
|
|
16479
16510
|
},
|
|
16480
|
-
contributor:
|
|
16511
|
+
contributor: Cu,
|
|
16481
16512
|
data: {
|
|
16482
16513
|
workbook: o,
|
|
16483
16514
|
editable: q,
|
|
@@ -16530,11 +16561,11 @@ var _u = { ignoreModelChange: !0 }, Wu = {
|
|
|
16530
16561
|
style: {
|
|
16531
16562
|
display: "flex",
|
|
16532
16563
|
flex: "1 1 100%",
|
|
16533
|
-
borderTop:
|
|
16564
|
+
borderTop: Zu,
|
|
16534
16565
|
flexDirection: "column",
|
|
16535
16566
|
justifyContent: "center"
|
|
16536
16567
|
},
|
|
16537
|
-
children: ae(
|
|
16568
|
+
children: ae(Qs, {
|
|
16538
16569
|
...n,
|
|
16539
16570
|
style: {
|
|
16540
16571
|
paddingLeft: "4px",
|
|
@@ -16562,7 +16593,7 @@ var _u = { ignoreModelChange: !0 }, Wu = {
|
|
|
16562
16593
|
alignContent: "center"
|
|
16563
16594
|
},
|
|
16564
16595
|
children: [a, ae("div", { style: {
|
|
16565
|
-
borderTop:
|
|
16596
|
+
borderTop: Zu,
|
|
16566
16597
|
flex: "1"
|
|
16567
16598
|
} })]
|
|
16568
16599
|
})), a && je) {
|
|
@@ -16579,7 +16610,7 @@ var _u = { ignoreModelChange: !0 }, Wu = {
|
|
|
16579
16610
|
backgroundImage: `url("data:image/svg+xml,%3Csvg width='6.4' height='12' viewBox='0 0 9.6 16' version='1.1' fill='${e}' xmlns='http://www.w3.org/2000/svg' xmlns:svg='http://www.w3.org/2000/svg'%3E%3Cpath d='M 9.60008,14.40009 C 9.60008,15.28374 8.88368,16 8.00003,16 7.11639,16 6.40012,15.28374 6.40012,14.40009 c 0,-0.88365 0.71627,-1.60005 1.59991,-1.60005 0.88365,0 1.60005,0.7164 1.60005,1.60005 m 0,-6.40012 c 0,0.88364 -0.7164,1.60004 -1.60005,1.60004 -0.88364,0 -1.59991,-0.7164 -1.59991,-1.60004 0,-0.88365 0.71627,-1.60005 1.59991,-1.60005 0.88365,0 1.60005,0.7164 1.60005,1.60005 m 0,-6.40006 c 0,0.88365 -0.7164,1.60005 -1.60005,1.60005 -0.88364,0 -1.59991,-0.7164 -1.59991,-1.60005 C 6.40012,0.71626 7.11639,0 8.00003,0 8.88368,0 9.60008,0.71626 9.60008,1.59991 M 3.19996,14.40009 C 3.19996,15.28374 2.48369,16 1.60005,16 0.7164,16 0,15.28374 0,14.40009 c 0,-0.88365 0.7164,-1.60005 1.60005,-1.60005 0.88364,0 1.59991,0.7164 1.59991,1.60005 m 0,-6.40012 c 0,0.88364 -0.71627,1.60004 -1.59991,1.60004 C 0.7164,9.60001 0,8.88361 0,7.99997 0,7.11632 0.7164,6.39992 1.60005,6.39992 c 0.88364,0 1.59991,0.7164 1.59991,1.60005 m 0,-6.40006 c 0,0.88365 -0.71627,1.60005 -1.59991,1.60005 C 0.7164,3.19996 0,2.48356 0,1.59991 0,0.71626 0.7164,0 1.60005,0 2.48369,0 3.19996,0.71626 3.19996,1.59991' /%3E%3C/svg%3E%0A")`,
|
|
16580
16611
|
backgroundRepeat: "no-repeat",
|
|
16581
16612
|
backgroundPosition: "center",
|
|
16582
|
-
borderTop:
|
|
16613
|
+
borderTop: Zu,
|
|
16583
16614
|
borderBottom: "solid 3px transparent"
|
|
16584
16615
|
} },
|
|
16585
16616
|
elementBefore: a,
|
|
@@ -16596,7 +16627,7 @@ var _u = { ignoreModelChange: !0 }, Wu = {
|
|
|
16596
16627
|
alignContent: "center",
|
|
16597
16628
|
height: "1px",
|
|
16598
16629
|
width: "100%",
|
|
16599
|
-
borderTop:
|
|
16630
|
+
borderTop: Zu
|
|
16600
16631
|
}
|
|
16601
16632
|
});
|
|
16602
16633
|
r = a;
|
|
@@ -16621,7 +16652,7 @@ var _u = { ignoreModelChange: !0 }, Wu = {
|
|
|
16621
16652
|
et,
|
|
16622
16653
|
qe,
|
|
16623
16654
|
Ce
|
|
16624
|
-
]), [nt, lt] = ne(null), st =
|
|
16655
|
+
]), [nt, lt] = ne(null), st = La(), ct = ee(() => new rt.ManualActivation(null), []), { reference: dt, component: ut } = Lt({
|
|
16625
16656
|
label: "contextMenu",
|
|
16626
16657
|
propsPopper: ee(() => ({
|
|
16627
16658
|
placement: "right-start",
|
|
@@ -16682,10 +16713,10 @@ var _u = { ignoreModelChange: !0 }, Wu = {
|
|
|
16682
16713
|
p,
|
|
16683
16714
|
o
|
|
16684
16715
|
]), ft = Dt(() => {
|
|
16685
|
-
U &&
|
|
16716
|
+
U && Au(U);
|
|
16686
16717
|
}, [U]), vt = G((e) => {
|
|
16687
16718
|
const { style: t, ...o } = e;
|
|
16688
|
-
return ae(
|
|
16719
|
+
return ae(Qs, {
|
|
16689
16720
|
...o,
|
|
16690
16721
|
style: {
|
|
16691
16722
|
...t,
|
|
@@ -16734,7 +16765,7 @@ var _u = { ignoreModelChange: !0 }, Wu = {
|
|
|
16734
16765
|
...o
|
|
16735
16766
|
}, r = t.getContent().getType();
|
|
16736
16767
|
let l = null;
|
|
16737
|
-
return "picture" === r ? ae(
|
|
16768
|
+
return "picture" === r ? ae(Ol, {
|
|
16738
16769
|
loadingPanel: ae("div", { style: {
|
|
16739
16770
|
position: "absolute",
|
|
16740
16771
|
width: "100%",
|
|
@@ -16743,16 +16774,16 @@ var _u = { ignoreModelChange: !0 }, Wu = {
|
|
|
16743
16774
|
picture: t.getContent(),
|
|
16744
16775
|
description: t.getDescription() ?? t.getName() ?? void 0,
|
|
16745
16776
|
...n
|
|
16746
|
-
}) : "chart" === r ? ae(
|
|
16777
|
+
}) : "chart" === r ? ae(_d, {
|
|
16747
16778
|
...n,
|
|
16748
16779
|
chart: t.getContent()
|
|
16749
|
-
}) : "slicer" === r ? ae(
|
|
16780
|
+
}) : "slicer" === r ? ae(Wd, {
|
|
16750
16781
|
...n,
|
|
16751
16782
|
slicer: t.getContent()
|
|
16752
|
-
}) : "shape" === r ? ae(
|
|
16783
|
+
}) : "shape" === r ? ae(Uc, {
|
|
16753
16784
|
...n,
|
|
16754
16785
|
shape: t.getContent()
|
|
16755
|
-
}) : (l = `Unsupported type: '${r}'.`, "string" == typeof l && (l = ae(
|
|
16786
|
+
}) : (l = `Unsupported type: '${r}'.`, "string" == typeof l && (l = ae(Gl, {
|
|
16756
16787
|
...n,
|
|
16757
16788
|
style: { border: "red solid 2px" },
|
|
16758
16789
|
description: l
|
|
@@ -16771,7 +16802,7 @@ var _u = { ignoreModelChange: !0 }, Wu = {
|
|
|
16771
16802
|
}, t.getId()));
|
|
16772
16803
|
}, []), Tt = ee(() => k({
|
|
16773
16804
|
ref: P,
|
|
16774
|
-
style:
|
|
16805
|
+
style: Uu,
|
|
16775
16806
|
colorScheme: fe,
|
|
16776
16807
|
gridColorScheme: ve,
|
|
16777
16808
|
sheet: re,
|
|
@@ -16807,7 +16838,7 @@ var _u = { ignoreModelChange: !0 }, Wu = {
|
|
|
16807
16838
|
]), Rt = ee(() => {
|
|
16808
16839
|
let e = ae(pt, {
|
|
16809
16840
|
ref: Ye,
|
|
16810
|
-
style:
|
|
16841
|
+
style: Uu,
|
|
16811
16842
|
viewport: ke,
|
|
16812
16843
|
onWheelScroll: (e) => P.current?.onWheelScroll?.(e),
|
|
16813
16844
|
showHorizontalScrollbar: je || Ge,
|
|
@@ -16865,10 +16896,10 @@ var _u = { ignoreModelChange: !0 }, Wu = {
|
|
|
16865
16896
|
spec: Le,
|
|
16866
16897
|
scopeRef: _,
|
|
16867
16898
|
elementRef: W,
|
|
16868
|
-
children: ae(
|
|
16899
|
+
children: ae(Sa.Provider, {
|
|
16869
16900
|
value: Ae,
|
|
16870
16901
|
children: ie("div", {
|
|
16871
|
-
className: tt("sheetxl-workbook",
|
|
16902
|
+
className: tt("sheetxl-workbook", $u["sheetxl-workbook"], $u["sheetxl-theme"], Mt, we, a),
|
|
16872
16903
|
style: At,
|
|
16873
16904
|
"data-sxl-theme-mode": fe,
|
|
16874
16905
|
...D,
|
|
@@ -16886,7 +16917,7 @@ var _u = { ignoreModelChange: !0 }, Wu = {
|
|
|
16886
16917
|
ae("style", { children: ye }),
|
|
16887
16918
|
ae("style", { children: Se }),
|
|
16888
16919
|
ie("div", {
|
|
16889
|
-
className:
|
|
16920
|
+
className: $u["sheetxl-reset"],
|
|
16890
16921
|
style: Ft,
|
|
16891
16922
|
children: [
|
|
16892
16923
|
Rt,
|
|
@@ -16906,9 +16937,9 @@ var _u = { ignoreModelChange: !0 }, Wu = {
|
|
|
16906
16937
|
})
|
|
16907
16938
|
});
|
|
16908
16939
|
}));
|
|
16909
|
-
|
|
16910
|
-
var
|
|
16911
|
-
const { workbook: o, renderWorkbookError: n, renderWorkbookLoading: r =
|
|
16940
|
+
Ku.displayName = "WorkbookElementBase";
|
|
16941
|
+
var Gu = K(U((e, t) => {
|
|
16942
|
+
const { workbook: o, renderWorkbookError: n, renderWorkbookLoading: r = Vu, propsWorkbookLoading: l, ...a } = e, i = Tu(o);
|
|
16912
16943
|
let s;
|
|
16913
16944
|
return s = "error" === i.status ? n ? n({ error: i.error }) : ae("div", {
|
|
16914
16945
|
style: {
|
|
@@ -16922,7 +16953,7 @@ var Ku = K(U((e, t) => {
|
|
|
16922
16953
|
boxSizing: "border-box"
|
|
16923
16954
|
},
|
|
16924
16955
|
children: i.error instanceof Error ? i.error.message : String(i.error)
|
|
16925
|
-
}) : "loaded" === i.status ? ae(
|
|
16956
|
+
}) : "loaded" === i.status ? ae(Ku, {
|
|
16926
16957
|
ref: t,
|
|
16927
16958
|
...a,
|
|
16928
16959
|
workbook: i.workbook,
|
|
@@ -16939,8 +16970,8 @@ var Ku = K(U((e, t) => {
|
|
|
16939
16970
|
children: r?.({ ...l })
|
|
16940
16971
|
}), ae(le, { children: s });
|
|
16941
16972
|
}));
|
|
16942
|
-
|
|
16943
|
-
var
|
|
16973
|
+
Gu.displayName = "WorkbookElement";
|
|
16974
|
+
var ju = (e, t) => {
|
|
16944
16975
|
const [o, n] = ne(null), [r, l] = ne(!1);
|
|
16945
16976
|
return X(() => {
|
|
16946
16977
|
if (!e) return n(null), void l(!1);
|
|
@@ -16957,34 +16988,34 @@ var Gu = (e, t) => {
|
|
|
16957
16988
|
isDirty: r,
|
|
16958
16989
|
saveState: o
|
|
16959
16990
|
};
|
|
16960
|
-
},
|
|
16991
|
+
}, Xu = (e) => {
|
|
16961
16992
|
const [t, o] = ne(() => e?.getName() ?? null);
|
|
16962
16993
|
return X(() => {
|
|
16963
16994
|
if (e) return o(e.getName() ?? null), e.addListeners({ onNameChange: (e) => o(e.getName() ?? null) });
|
|
16964
16995
|
o(null);
|
|
16965
16996
|
}, [e]), t;
|
|
16966
|
-
},
|
|
16997
|
+
}, Yu = (e) => {
|
|
16967
16998
|
const [t, o] = ne(() => e?.getOrigin?.()?.isEncrypted?.() ?? !1);
|
|
16968
16999
|
return X(() => {
|
|
16969
17000
|
if (!e) return void o(!1);
|
|
16970
17001
|
const t = e.getOrigin?.(), n = () => o(t?.isEncrypted?.() ?? !1);
|
|
16971
17002
|
return n(), t?.addListeners({ onChange: n });
|
|
16972
17003
|
}, [e]), t;
|
|
16973
|
-
},
|
|
17004
|
+
}, Ju = (e) => {
|
|
16974
17005
|
const [t, o] = ne(() => e?.getOrigin?.()?.getFormat?.() ?? null);
|
|
16975
17006
|
return X(() => {
|
|
16976
17007
|
if (!e) return void o(null);
|
|
16977
17008
|
const t = e.getOrigin?.(), n = () => o(t?.getFormat?.() ?? null);
|
|
16978
17009
|
return n(), t?.addListeners({ onChange: n });
|
|
16979
17010
|
}, [e]), t;
|
|
16980
|
-
},
|
|
17011
|
+
}, Qu = [
|
|
16981
17012
|
"o",
|
|
16982
17013
|
"s",
|
|
16983
17014
|
"w",
|
|
16984
17015
|
"n",
|
|
16985
17016
|
"t",
|
|
16986
17017
|
"m"
|
|
16987
|
-
],
|
|
17018
|
+
], eg = class {
|
|
16988
17019
|
constructor(e = {}) {
|
|
16989
17020
|
this.name = null, this.dirty = !1, this.removeLangListener = null, this.base = null, this.originalTitle = null, this.windowInstalled = !1, this.handleBeforeUnload = (e) => {
|
|
16990
17021
|
this.dirty && (e.preventDefault(), e.returnValue = "");
|
|
@@ -16992,7 +17023,7 @@ var Gu = (e, t) => {
|
|
|
16992
17023
|
!e.defaultPrevented && this.guardKeys && (e.altKey ? "ArrowLeft" !== e.key && "ArrowRight" !== e.key || e.preventDefault() : (e.ctrlKey || e.metaKey) && this.guardKeys.includes(e.key) && e.preventDefault());
|
|
16993
17024
|
}, this.documentTitle = e.documentTitle ?? !0, this.confirmOnClose = e.confirmOnClose ?? !0;
|
|
16994
17025
|
const t = e.keyboardGuard ?? !0;
|
|
16995
|
-
this.guardKeys = !1 === t ? null : Array.isArray(t) ? t :
|
|
17026
|
+
this.guardKeys = !1 === t ? null : Array.isArray(t) ? t : Qu;
|
|
16996
17027
|
}
|
|
16997
17028
|
update(e, t) {
|
|
16998
17029
|
this.name = e, this.dirty = t, this.installWindowListeners(), this.applyTitle();
|
|
@@ -17009,17 +17040,17 @@ var Gu = (e, t) => {
|
|
|
17009
17040
|
const e = this.dirty ? " ●" : "", t = this.name, o = `${t ?? xe("workbook.untitled")}${e}`;
|
|
17010
17041
|
document.title = t || e ? `${o} - ${this.base}` : `${this.base}`;
|
|
17011
17042
|
}
|
|
17012
|
-
},
|
|
17043
|
+
}, tg = (e, t, o = {}) => {
|
|
17013
17044
|
const { documentTitle: n, confirmOnClose: r, keyboardGuard: l } = o, a = oe(null);
|
|
17014
|
-
a.current || (a.current = new
|
|
17045
|
+
a.current || (a.current = new eg({
|
|
17015
17046
|
documentTitle: n,
|
|
17016
17047
|
confirmOnClose: r,
|
|
17017
17048
|
keyboardGuard: l
|
|
17018
17049
|
})), X(() => {
|
|
17019
17050
|
a.current.update(e, t);
|
|
17020
17051
|
}, [e, t]), X(() => () => a.current?.dispose(), []);
|
|
17021
|
-
},
|
|
17022
|
-
const { source: t, io: o =
|
|
17052
|
+
}, og = (e = {}) => {
|
|
17053
|
+
const { source: t, io: o = qu, fromUrl: n = !0, defaultTheme: r, documentTitle: l, confirmOnClose: a, keyboardGuard: i } = e, s = Xt(), c = ee(() => {
|
|
17023
17054
|
if (t instanceof D) return t;
|
|
17024
17055
|
if (ue.isPromiseLike(t)) return t;
|
|
17025
17056
|
let e = null, l = null;
|
|
@@ -17029,7 +17060,7 @@ var Gu = (e, t) => {
|
|
|
17029
17060
|
o && (e = { source: o }, l = t.get("title"));
|
|
17030
17061
|
}
|
|
17031
17062
|
return e ? o.read(e).then((e) => {
|
|
17032
|
-
if (!e)
|
|
17063
|
+
if (!e) return new D({ theme: r });
|
|
17033
17064
|
const t = e.getOrigin();
|
|
17034
17065
|
return l && t instanceof N && t.update({ name: l }), e;
|
|
17035
17066
|
}) : new D({ theme: r });
|
|
@@ -17039,14 +17070,14 @@ var Gu = (e, t) => {
|
|
|
17039
17070
|
s.search,
|
|
17040
17071
|
o,
|
|
17041
17072
|
r
|
|
17042
|
-
]), d =
|
|
17073
|
+
]), d = Tu(c, {
|
|
17043
17074
|
io: o,
|
|
17044
17075
|
defaultTheme: r
|
|
17045
|
-
}), u = "loaded" === d.status ? d.workbook : null, g =
|
|
17046
|
-
return
|
|
17076
|
+
}), u = "loaded" === d.status ? d.workbook : null, g = Xu(u), { isDirty: h } = ju(u, o);
|
|
17077
|
+
return tg(g, h, {
|
|
17047
17078
|
documentTitle: l,
|
|
17048
17079
|
confirmOnClose: a,
|
|
17049
17080
|
keyboardGuard: i
|
|
17050
17081
|
}), c;
|
|
17051
17082
|
};
|
|
17052
|
-
export {
|
|
17083
|
+
export { dc as COLOR_SCALE_PRESETS, ad as ChartAreaIcon, id as ChartAreaStackedIcon, sd as ChartAreaStackedPercentIcon, nd as ChartBarIcon, rd as ChartBarStackedIcon, ld as ChartBarStackedPercentIcon, pd as ChartBubble3DIcon, md as ChartBubbleIcon, Zc as ChartColumnIcon, Kc as ChartColumnStackedIcon, Gc as ChartColumnStackedPercentIcon, _d as ChartEditor, jc as ChartLineIcon, Jc as ChartLineMarkersIcon, Xc as ChartLineStackedIcon, Qc as ChartLineStackedMarkersIcon, Yc as ChartLineStackedPercentIcon, ed as ChartLineStackedPercentMarkersIcon, od as ChartPieDoughnutIcon, td as ChartPieIcon, hd as ChartScatterLinesIcon, gd as ChartScatterLinesMarkersIcon, dd as ChartScatterLinesMarkersSmoothIcon, ud as ChartScatterLinesSmoothIcon, cd as ChartScatterMarkersIcon, Uo as ColumnButton, wu as CommandContext, ti as CommandRootProvider, Ao as CornerTriangle, uc as DATA_BAR_COLORS, gc as DATA_BAR_NEGATIVE_COLOR, mc as DATA_BAR_PRESETS, ea as DefaultTaskPaneRegistry, Fs as DocThemesContext, Es as DocThemesProvider, gn as EVAL_TIP_GAP, hn as EVAL_TIP_STYLE, Qd as EditableLabel, Gl as EmptyFrame, $o as FormulaCellRenderer, Xd as FormulaInput, nr as FunctionArgIcons, lr as FunctionPreviewContent, ar as FunctionPreviewHeader, ir as FunctionPreviewPanel, rr as FunctionSignature, wc as ICON_SET_GROUPS, Po as INPUT_EXPECTED_CHAR, Pa as InputClipboardInjector, S as LicenseManager, bu as LogoNoPaddingIcon, bs as LogoTextNoPaddingIcon, Na as MainFocusContext, Kl as MovableLayer, sr as NamedHintPanel, On as NamedItemsPanel, Va as PaneScopeProvider, Ol as PictureEditor, Hd as PresetChartType, on as ReferenceModeContext, nn as ReferenceModeProvider, oc as STYLE_PRESETS, Uc as ShapeEditor, Gr as SheetCellEditorLayer, Fo as SheetCellRenderer, As as SheetClipboardLayer, Fc as SheetCommandContributor, Ec as SheetCommandProvider, Lc as SheetElement, Yo as SheetHeaderRenderer, ko as SheetProvider, vs as SheetReferenceHeaderLayer, il as SheetReferenceLayer, Qs as SheetScrollbar, jr as SheetSelection, Jr as SheetSelectionLayer, vu as SheetTab, Wd as SlicerEditor, Fl as StaticBorderRenderer, xl as StyledStrokePath, eu as Tab, gu as TabStrip, ca as TaskPaneArea, oa as TaskPaneProvider, sa as TaskPaneStrip, aa as TaskPaneTitle, js as ThemeStateKey, vd as ThemedChartIcon, Sa as UndoManagerContext, eg as WindowChrome, Cu as WorkbookCommandContributor, Gu as WorkbookElement, qu as WorkbookIO, Io as WorkbookProvider, Lu as WorkbookStrip, xu as _WorkbookIO, or as argTypeKey, _n as assembleCall, Gs as buildDocThemeCSS, Ws as buildOOXMLThemeCSS, wn as charSpanOfTokens, Rs as contributeClipboardCommands, Wr as contributeEditorCommands, $r as contributeInsertCommands, Xr as contributeSelectionCommands, Mc as contributeSheetCommands, ya as contributeUndoCommands, _r as contributeWhileEditingCommands, Su as contributeWorkbookCommands, Ps as createCSSSystemLookup, un as createEditable, Lr as createFunctionDescriptor, Nr as createFunctionHint, Ra as createInputClipboardInjector, Jo as createReferenceModeStore, Pr as createSheetCellInput, dn as createSheetCreateEdit, zs as createSystemColorVars, qa as createTransactionalMiddleware, pc as defaultColorScale, fc as defaultDataBar, bc as defaultIconSet, vc as defaultIconStops, fn as evalSegmentAt, vn as evalTargetForSelection, Cn as formatEvalLiteral, qn as formatEvalValue, zo as formulaPrefixLen, Pi as getConditionalIcon, Ni as getConditionalIconSet, en as getReferenceMode, Rn as handleReferencePointNav, pn as hasTextSelection, yc as iconSetSize, Br as insertAtCaret, Or as insertEditText, Ls as installSystemColorDefaults, Hs as installSystemColorLookup, ka as isEditable, Lo as isFormulaText, No as isInputExpectedAt, Tn as isReferencePointSeeding, yn as literalSeparatorsForDecimal, Fr as placeholderFromCell, $d as presetChartTypeDescriptor, Ho as referenceSpan, Vu as renderWorkbookLoading, Ou as renderWorkbookSheet, Hu as renderWorkbookStrip, sn as resolveCellBackground, ku as resolveWorkbookInput, Hn as restBase, bn as rootEvalSegment, al as scopeDrawnRanges, Au as setGlobalIWorkbookElement, Fu as setPrintExamplesOnLoad, tn as setReferenceMode, An as splitReferenceSegments, zr as startEditWith, $n as toArgRows, Vo as toggleReferenceInFormula, Bo as tokenColor, Oo as tokenIndexAtCaret, Ys as useAppColorScheme, ql as useBorders, Ds as useDocThemes, In as useEditCommit, Ln as useFormulaInput, Gd as useFormulaInputParts, _o as useFormulaViewAnchor, Xs as useGridColorScheme, Ud as useInputField, La as useMainFocus, wo as useModelListener, yo as useModelSync, Ur as useProtectedEditNotice, Co as useRangeListener, ln as useReferenceMode, rn as useReferenceModeStore, Tu as useResolvedWorkbook, mn as useSelectDrag, To as useSheet, Bs as useSystemColors, ra as useTaskPaneArea, Ca as useUndoManager, tg as useWindowChrome, Mo as useWorkbook, og as useWorkbookApp, Yu as useWorkbookEncrypted, Ju as useWorkbookFormat, Xu as useWorkbookName, ju as useWorkbookSaveState };
|