@univerjs/sheets-conditional-formatting-ui 0.6.0 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +486 -483
- package/lib/umd/index.js +20 -20
- package/package.json +15 -15
package/lib/es/index.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
var ci = Object.defineProperty;
|
|
2
2
|
var ui = (e, t, r) => t in e ? ci(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
3
|
var Ye = (e, t, r) => ui(e, typeof t != "symbol" ? t + "" : t, r);
|
|
4
|
-
import { CommandType as _e, ICommandService as me, IUniverInstanceService as de, IUndoRedoService as yt, ObjectMatrix as Je, Range as
|
|
5
|
-
import { ConditionalFormattingRuleModel as ve, CFSubRuleType as X, CFRuleType as Z, AddConditionalRuleMutation as Ie, AddConditionalRuleMutationUndoFactory as nr, CFNumberOperator as Q, setConditionalRuleMutationUndoFactory as Qe, SetConditionalRuleMutation as Ve, DeleteConditionalRuleMutationUndoFactory as Xe, DeleteConditionalRuleMutation as Le, transformSupportSymmetryAnchor as vi, MoveConditionalRuleMutationUndoFactory as yi, MoveConditionalRuleMutation as fn, getColorScaleFromValue as bi, iconMap as at, DEFAULT_BG_COLOR as Si, DEFAULT_FONT_COLOR as Ci, defaultDataBarPositiveColor as
|
|
6
|
-
import { getSheetCommandTarget as Ee, SheetsSelectionsService as ut, findAllRectangle as At, createTopMatrixFromMatrix as Wt, SetWorksheetActiveOperation as rr, SetSelectionsOperation as Pi, checkRangesEditablePermission as pn, RemoveSheetMutation as Di, setEndForRange as Mi, SheetPermissionCheckController as Ni, WorksheetEditPermission as Co, WorksheetSetCellStylePermission as wo, RangeProtectionPermissionEditPoint as Ro, WorkbookEditablePermission as _o, RefRangeService as Li, handleDefaultRangeChangeWithEffectRefCommands as zi, SheetInterceptorService as or, INTERCEPTOR_POINT as $i, ClearSelectionFormatCommand as
|
|
4
|
+
import { CommandType as _e, ICommandService as me, IUniverInstanceService as de, IUndoRedoService as yt, ObjectMatrix as Je, Range as ke, sequenceExecute as uo, Inject as ee, LocaleService as Te, Disposable as ze, ColorKit as fo, BooleanNumber as Me, Injector as He, UniverInstanceType as oe, Rectangle as Ge, Tools as tr, get as di, set as fi, createInterceptorKey as ho, InterceptorManager as hi, generateRandomId as pi, toDisposable as po, InterceptorEffectEnum as gi, DependentOn as go, IConfigService as mo, Plugin as vo, merge as yo, registerDependencies as mi, touchDependencies as $n } from "@univerjs/core";
|
|
5
|
+
import { ConditionalFormattingRuleModel as ve, CFSubRuleType as X, CFRuleType as Z, AddConditionalRuleMutation as Ie, AddConditionalRuleMutationUndoFactory as nr, CFNumberOperator as Q, setConditionalRuleMutationUndoFactory as Qe, SetConditionalRuleMutation as Ve, DeleteConditionalRuleMutationUndoFactory as Xe, DeleteConditionalRuleMutation as Le, transformSupportSymmetryAnchor as vi, MoveConditionalRuleMutationUndoFactory as yi, MoveConditionalRuleMutation as fn, getColorScaleFromValue as bi, iconMap as at, DEFAULT_BG_COLOR as Si, DEFAULT_FONT_COLOR as Ci, defaultDataBarPositiveColor as Ft, defaultDataBarNativeColor as Vt, CFValueType as ne, createDefaultValueByValueType as qt, removeUndefinedAttr as wi, createDefaultValue as hn, CFTextOperator as ce, CFTimePeriodOperator as Ae, iconGroup as Ri, getOppositeOperator as Jn, compareWithNumber as _i, EMPTY_ICON_TYPE as Ii, createDefaultRule as rt, ConditionalFormattingViewModel as Xt, SHEET_CONDITIONAL_FORMATTING_PLUGIN as Yt, isRangesEqual as Ei, ConditionalFormattingService as bo, DEFAULT_PADDING as Ti, DEFAULT_WIDTH as xi, UniverSheetsConditionalFormattingPlugin as So, CONDITIONAL_FORMATTING_VIEWPORT_CACHE_LENGTH as Oi } from "@univerjs/sheets-conditional-formatting";
|
|
6
|
+
import { getSheetCommandTarget as Ee, SheetsSelectionsService as ut, findAllRectangle as At, createTopMatrixFromMatrix as Wt, SetWorksheetActiveOperation as rr, SetSelectionsOperation as Pi, checkRangesEditablePermission as pn, RemoveSheetMutation as Di, setEndForRange as Mi, SheetPermissionCheckController as Ni, WorksheetEditPermission as Co, WorksheetSetCellStylePermission as wo, RangeProtectionPermissionEditPoint as Ro, WorkbookEditablePermission as _o, RefRangeService as Li, handleDefaultRangeChangeWithEffectRefCommands as zi, SheetInterceptorService as or, INTERCEPTOR_POINT as $i, ClearSelectionFormatCommand as ki, ClearSelectionAllCommand as Fi, RangeMergeUtil as Vi, AFTER_CELL_EDIT as qi } from "@univerjs/sheets";
|
|
7
7
|
import { useDependency as pe, useObservable as Ai, ComponentManager as ir, useSidebarClick as Kt, ILayoutService as Wi, useScrollYOverContainer as Hi, ISidebarService as Ui, getMenuHiddenObservable as ji, MenuItemType as Bi, RibbonStartGroup as Gi, IMenuManagerService as Xi } from "@univerjs/ui";
|
|
8
|
-
import { jsx as
|
|
9
|
-
import qe, { forwardRef as dt, useRef as
|
|
8
|
+
import { jsx as O, jsxs as G, Fragment as Qn } from "react/jsx-runtime";
|
|
9
|
+
import qe, { forwardRef as dt, useRef as Fe, createElement as bt, useMemo as Ce, useState as H, useEffect as Re } from "react";
|
|
10
10
|
import { Select as Ne, Tooltip as mr, DropdownLegacy as sr, ColorPicker as Yi, InputNumber as lt, RadioGroup as Ki, Radio as vr, Checkbox as gn, Input as Zi, Button as yr } from "@univerjs/design";
|
|
11
11
|
import { serializeRange as Io, deserializeRangeWithSheet as Ji } from "@univerjs/engine-formula";
|
|
12
|
-
import { useHighlightRange as Qi, ISheetClipboardService as es, COPY_TYPE as br, rangeToDiscreteRange as ts, PREDEFINED_HOOK_NAME as
|
|
13
|
-
import
|
|
14
|
-
import { Observable as st, debounceTime as Sr, merge as
|
|
15
|
-
import { FormulaEditor as
|
|
12
|
+
import { useHighlightRange as Qi, ISheetClipboardService as es, COPY_TYPE as br, rangeToDiscreteRange as ts, PREDEFINED_HOOK_NAME as kn, virtualizeDiscreteRanges as Eo, getRepeatRange as ns, SheetSkeletonManagerService as To, IAutoFillService as rs, APPLY_TYPE as Fn, getAutoFillRepeatRange as os, getCurrentRangeDisable$ as is, IFormatPainterService as ss, FormatPainterStatus as Vn } from "@univerjs/sheets-ui";
|
|
13
|
+
import xo from "react-dom";
|
|
14
|
+
import { Observable as st, debounceTime as Sr, merge as Oo } from "rxjs";
|
|
15
|
+
import { FormulaEditor as xn, RangeSelector as as } from "@univerjs/sheets-formula-ui";
|
|
16
16
|
import { IRenderManagerService as Po } from "@univerjs/engine-render";
|
|
17
17
|
import { bufferTime as ls, filter as Cr, debounceTime as wr } from "rxjs/operators";
|
|
18
18
|
const Do = {
|
|
@@ -36,7 +36,7 @@ const Do = {
|
|
|
36
36
|
};
|
|
37
37
|
return v.executeCommand(Ie.id, { unitId: g, subUnitId: C, rule: w });
|
|
38
38
|
}
|
|
39
|
-
},
|
|
39
|
+
}, On = {
|
|
40
40
|
type: _e.COMMAND,
|
|
41
41
|
id: "sheet.command.add-conditional-rule",
|
|
42
42
|
handler(e, t) {
|
|
@@ -184,7 +184,7 @@ const Do = {
|
|
|
184
184
|
};
|
|
185
185
|
return g.executeCommand(Ie.id, { unitId: _, subUnitId: w, rule: R });
|
|
186
186
|
}
|
|
187
|
-
},
|
|
187
|
+
}, ko = {
|
|
188
188
|
type: _e.COMMAND,
|
|
189
189
|
id: "sheet.command.add-text-conditional-rule",
|
|
190
190
|
handler(e, t) {
|
|
@@ -206,7 +206,7 @@ const Do = {
|
|
|
206
206
|
};
|
|
207
207
|
return _.executeCommand(Ie.id, { unitId: g, subUnitId: C, rule: S });
|
|
208
208
|
}
|
|
209
|
-
},
|
|
209
|
+
}, Fo = {
|
|
210
210
|
type: _e.COMMAND,
|
|
211
211
|
id: "sheet.command.add-time-period-conditional-rule",
|
|
212
212
|
handler(e, t) {
|
|
@@ -263,11 +263,11 @@ const Do = {
|
|
|
263
263
|
C.forEach((h) => {
|
|
264
264
|
const s = new Je();
|
|
265
265
|
h.ranges.forEach((u) => {
|
|
266
|
-
|
|
266
|
+
ke.foreach(u, (y, l) => {
|
|
267
267
|
s.setValue(y, l, 1);
|
|
268
268
|
});
|
|
269
269
|
}), g.forEach((u) => {
|
|
270
|
-
|
|
270
|
+
ke.foreach(u, (y, l) => {
|
|
271
271
|
s.realDeleteValue(y, l);
|
|
272
272
|
});
|
|
273
273
|
});
|
|
@@ -373,7 +373,7 @@ var De = function() {
|
|
|
373
373
|
t.indexOf(n[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[o]) && (r[n[o]] = e[n[o]]);
|
|
374
374
|
return r;
|
|
375
375
|
}, St = dt(function(e, t) {
|
|
376
|
-
var r = e.icon, n = e.id, o = e.className, i = e.extend, c = Cs(e, ["icon", "id", "className", "extend"]), v = "univerjs-icon univerjs-icon-".concat(n, " ").concat(o || "").trim(), f =
|
|
376
|
+
var r = e.icon, n = e.id, o = e.className, i = e.extend, c = Cs(e, ["icon", "id", "className", "extend"]), v = "univerjs-icon univerjs-icon-".concat(n, " ").concat(o || "").trim(), f = Fe("_".concat(_s()));
|
|
377
377
|
return qo(r, "".concat(n), { defIds: r.defIds, idSuffix: f.current }, De({ ref: t, className: v }, c), i);
|
|
378
378
|
});
|
|
379
379
|
function qo(e, t, r, n, o) {
|
|
@@ -383,7 +383,10 @@ function qo(e, t, r, n, o) {
|
|
|
383
383
|
}
|
|
384
384
|
function ws(e, t, r) {
|
|
385
385
|
var n = De({}, e.attrs);
|
|
386
|
-
r != null && r.colorChannel1 && n.fill === "colorChannel1" && (n.fill = r.colorChannel1)
|
|
386
|
+
r != null && r.colorChannel1 && n.fill === "colorChannel1" && (n.fill = r.colorChannel1), e.tag === "mask" && n.id && (n.id = n.id + t.idSuffix), Object.entries(n).forEach(function(i) {
|
|
387
|
+
var c = i[0], v = i[1];
|
|
388
|
+
c === "mask" && typeof v == "string" && (n[c] = v.replace(/url\(#(.*)\)/, "url(#$1".concat(t.idSuffix, ")")));
|
|
389
|
+
});
|
|
387
390
|
var o = t.defIds;
|
|
388
391
|
return !o || o.length === 0 || (e.tag === "use" && n["xlink:href"] && (n["xlink:href"] = n["xlink:href"] + t.idSuffix), Object.entries(n).forEach(function(i) {
|
|
389
392
|
var c = i[0], v = i[1];
|
|
@@ -424,19 +427,19 @@ var Ts = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em"
|
|
|
424
427
|
}));
|
|
425
428
|
});
|
|
426
429
|
Dn.displayName = "MoreDownSingle";
|
|
427
|
-
var
|
|
430
|
+
var xs = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "mask", attrs: { id: "mask0_622_8", style: { maskType: "alpha" }, width: 16, height: 16, x: 0, y: 0, maskUnits: "userSpaceOnUse" }, children: [{ tag: "path", attrs: { fill: "#D9D9D9", d: "M0 0H16V16H0z" } }] }, { tag: "g", attrs: { fill: "currentColor", mask: "url(#mask0_622_8)" }, children: [{ tag: "path", attrs: { d: "M6 5C6.55228 5 7 4.55228 7 4 7 3.44772 6.55228 3 6 3 5.44772 3 5 3.44772 5 4 5 4.55228 5.44772 5 6 5zM6 9C6.55228 9 7 8.55229 7 8 7 7.44772 6.55228 7 6 7 5.44772 7 5 7.44772 5 8 5 8.55229 5.44772 9 6 9zM7 12C7 12.5523 6.55228 13 6 13 5.44772 13 5 12.5523 5 12 5 11.4477 5.44772 11 6 11 6.55228 11 7 11.4477 7 12zM10 5C10.5523 5 11 4.55228 11 4 11 3.44772 10.5523 3 10 3 9.44771 3 9 3.44772 9 4 9 4.55228 9.44771 5 10 5zM11 8C11 8.55229 10.5523 9 10 9 9.44771 9 9 8.55229 9 8 9 7.44772 9.44771 7 10 7 10.5523 7 11 7.44772 11 8zM10 13C10.5523 13 11 12.5523 11 12 11 11.4477 10.5523 11 10 11 9.44771 11 9 11.4477 9 12 9 12.5523 9.44771 13 10 13z" } }] }] }, Wo = dt(function(e, t) {
|
|
428
431
|
return bt(St, Object.assign({}, e, {
|
|
429
432
|
id: "sequence-single",
|
|
430
433
|
ref: t,
|
|
431
|
-
icon:
|
|
434
|
+
icon: xs
|
|
432
435
|
}));
|
|
433
436
|
});
|
|
434
437
|
Wo.displayName = "SequenceSingle";
|
|
435
|
-
var
|
|
438
|
+
var Os = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 17 17", width: "1em", height: "1em" }, children: [{ tag: "mask", attrs: { id: "mask0_436_41", style: { maskType: "alpha" }, width: 17, height: 17, x: 0, y: 0, maskUnits: "userSpaceOnUse" }, children: [{ tag: "path", attrs: { fill: "#D9D9D9", d: "M0.35 0.48H16.35V16.48H0.35z" } }] }, { tag: "g", attrs: { mask: "url(#mask0_436_41)", fillRule: "evenodd", clipRule: "evenodd" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M2.27177 13.714L13.5855 2.40025L14.434 3.24878L3.1203 14.5625L2.27177 13.714Z" } }, { tag: "path", attrs: { fill: "#E5E5E5", d: "M4.2603 1.82495L2.89617 1.82495C2.23343 1.82495 1.69617 2.36221 1.69617 3.02495L1.69617 4.38908L3.02617 4.38908L3.02617 3.15495L4.2603 3.15495L4.2603 1.82495ZM15.0092 4.38908L15.0092 3.02495C15.0092 2.36221 14.4719 1.82495 13.8092 1.82495L12.4451 1.82495L12.4451 3.15495L13.6792 3.15495L13.6792 4.38908L15.0092 4.38908ZM6.98856 1.82495L6.98856 3.15495L9.71681 3.15495L9.71681 1.82495L6.98856 1.82495ZM15.0092 7.11734L13.6792 7.11734L13.6792 9.84559L15.0092 9.84559L15.0092 7.11734ZM15.0092 12.5739L13.6792 12.5739L13.6792 13.808L12.4451 13.808L12.4451 15.138L13.8092 15.138C14.4719 15.138 15.0092 14.6007 15.0092 13.938L15.0092 12.5739ZM9.71681 15.138L9.71681 13.808L6.98856 13.808L6.98856 15.138L9.71681 15.138ZM4.2603 15.138L4.2603 13.808L3.02617 13.808L3.02617 12.5739L1.69617 12.5739L1.69617 13.938C1.69617 14.6007 2.23343 15.138 2.89617 15.138L4.2603 15.138ZM1.69617 9.8456L3.02617 9.8456L3.02617 7.11734L1.69617 7.11734L1.69617 9.8456Z" } }] }] }, Zt = dt(function(e, t) {
|
|
436
439
|
return bt(St, Object.assign({}, e, {
|
|
437
440
|
id: "slash-single",
|
|
438
441
|
ref: t,
|
|
439
|
-
icon:
|
|
442
|
+
icon: Os
|
|
440
443
|
}));
|
|
441
444
|
});
|
|
442
445
|
Zt.displayName = "SlashSingle";
|
|
@@ -462,7 +465,7 @@ function Ho(e) {
|
|
|
462
465
|
});
|
|
463
466
|
}), r;
|
|
464
467
|
}
|
|
465
|
-
var qn = { exports: {} }, Rt = {},
|
|
468
|
+
var qn = { exports: {} }, Rt = {}, kt = { exports: {} }, Ds = kt.exports, Rr;
|
|
466
469
|
function ur() {
|
|
467
470
|
return Rr || (Rr = 1, function(e, t) {
|
|
468
471
|
(function(r, n) {
|
|
@@ -549,13 +552,13 @@ function ur() {
|
|
|
549
552
|
}
|
|
550
553
|
}), T;
|
|
551
554
|
}
|
|
552
|
-
var m = o(d),
|
|
555
|
+
var m = o(d), x = "_owner", M = Object.prototype.hasOwnProperty;
|
|
553
556
|
function L(V, J, ue, E) {
|
|
554
557
|
var T = Object.keys(V), D = T.length;
|
|
555
558
|
if (Object.keys(J).length !== D)
|
|
556
559
|
return !1;
|
|
557
560
|
for (var z; D-- > 0; ) {
|
|
558
|
-
if (z = T[D], z ===
|
|
561
|
+
if (z = T[D], z === x) {
|
|
559
562
|
var B = !!V.$$typeof, q = !!J.$$typeof;
|
|
560
563
|
if ((B || q) && B !== q)
|
|
561
564
|
return !1;
|
|
@@ -585,7 +588,7 @@ function ur() {
|
|
|
585
588
|
}
|
|
586
589
|
}), T;
|
|
587
590
|
}
|
|
588
|
-
var
|
|
591
|
+
var k = o(P), U = Object.freeze({
|
|
589
592
|
areArraysEqual: y,
|
|
590
593
|
areDatesEqual: p,
|
|
591
594
|
areMapsEqual: d,
|
|
@@ -599,7 +602,7 @@ function ur() {
|
|
|
599
602
|
areMapsEqual: m,
|
|
600
603
|
areObjectsEqual: N,
|
|
601
604
|
areRegExpsEqual: I,
|
|
602
|
-
areSetsEqual:
|
|
605
|
+
areSetsEqual: k,
|
|
603
606
|
createIsNestedEqual: n
|
|
604
607
|
}), ie = u(U);
|
|
605
608
|
function te(V, J) {
|
|
@@ -608,7 +611,7 @@ function ur() {
|
|
|
608
611
|
var A = u(i(U, { createIsNestedEqual: function() {
|
|
609
612
|
return f;
|
|
610
613
|
} }));
|
|
611
|
-
function
|
|
614
|
+
function F(V, J) {
|
|
612
615
|
return A(V, J, void 0);
|
|
613
616
|
}
|
|
614
617
|
var se = u(j);
|
|
@@ -623,7 +626,7 @@ function ur() {
|
|
|
623
626
|
function be(V, J) {
|
|
624
627
|
return fe(V, J, /* @__PURE__ */ new WeakMap());
|
|
625
628
|
}
|
|
626
|
-
function
|
|
629
|
+
function xe(V) {
|
|
627
630
|
return u(i(U, V(U)));
|
|
628
631
|
}
|
|
629
632
|
function $e(V) {
|
|
@@ -632,9 +635,9 @@ function ur() {
|
|
|
632
635
|
return T === void 0 && (T = /* @__PURE__ */ new WeakMap()), J(ue, E, T);
|
|
633
636
|
};
|
|
634
637
|
}
|
|
635
|
-
r.circularDeepEqual = ae, r.circularShallowEqual = be, r.createCustomCircularEqual = $e, r.createCustomEqual =
|
|
638
|
+
r.circularDeepEqual = ae, r.circularShallowEqual = be, r.createCustomCircularEqual = $e, r.createCustomEqual = xe, r.deepEqual = te, r.sameValueZeroEqual = f, r.shallowEqual = F, Object.defineProperty(r, "__esModule", { value: !0 });
|
|
636
639
|
});
|
|
637
|
-
}(
|
|
640
|
+
}(kt, kt.exports)), kt.exports;
|
|
638
641
|
}
|
|
639
642
|
var Qt = { exports: {} }, _r;
|
|
640
643
|
function dr() {
|
|
@@ -666,7 +669,7 @@ function Ct() {
|
|
|
666
669
|
if (Er) return le;
|
|
667
670
|
Er = 1, Object.defineProperty(le, "__esModule", {
|
|
668
671
|
value: !0
|
|
669
|
-
}), le.bottom = n, le.childrenEqual = f, le.cloneLayout = o, le.cloneLayoutItem = v, le.collides = g, le.compact = C, le.compactItem = S, le.compactType = V, le.correctBounds = R, le.fastPositionEqual = b, le.fastRGLPropsEqual = void 0, le.getAllCollisions = a, le.getFirstCollision = s, le.getLayoutItem = h, le.getStatics = u, le.modifyLayout = i, le.moveElement = y, le.moveElementAwayFromCollision = l, le.noop = void 0, le.perc = p, le.resizeItemInDirection = A, le.setTopLeft = se, le.setTransform =
|
|
672
|
+
}), le.bottom = n, le.childrenEqual = f, le.cloneLayout = o, le.cloneLayoutItem = v, le.collides = g, le.compact = C, le.compactItem = S, le.compactType = V, le.correctBounds = R, le.fastPositionEqual = b, le.fastRGLPropsEqual = void 0, le.getAllCollisions = a, le.getFirstCollision = s, le.getLayoutItem = h, le.getStatics = u, le.modifyLayout = i, le.moveElement = y, le.moveElementAwayFromCollision = l, le.noop = void 0, le.perc = p, le.resizeItemInDirection = A, le.setTopLeft = se, le.setTransform = F, le.sortLayoutItems = ae, le.sortLayoutItemsByColRow = be, le.sortLayoutItemsByRowCol = fe, le.synchronizeLayoutWithChildren = xe, le.validateLayout = $e, le.withLayoutItem = c;
|
|
670
673
|
var e = /* @__PURE__ */ ur(), t = r(qe);
|
|
671
674
|
function r(E) {
|
|
672
675
|
return E && E.__esModule ? E : { default: E };
|
|
@@ -832,7 +835,7 @@ function Ct() {
|
|
|
832
835
|
function p(E) {
|
|
833
836
|
return E * 100 + "%";
|
|
834
837
|
}
|
|
835
|
-
const d = (E, T, D, z) => E + D > z ? T : D, m = (E, T, D) => E < 0 ? T : D,
|
|
838
|
+
const d = (E, T, D, z) => E + D > z ? T : D, m = (E, T, D) => E < 0 ? T : D, x = (E) => Math.max(0, E), M = (E) => Math.max(0, E), L = (E, T, D) => {
|
|
836
839
|
let {
|
|
837
840
|
left: z,
|
|
838
841
|
height: B,
|
|
@@ -856,7 +859,7 @@ function Ct() {
|
|
|
856
859
|
top: z,
|
|
857
860
|
height: q,
|
|
858
861
|
width: d(E.left, E.width, K, D),
|
|
859
|
-
left:
|
|
862
|
+
left: x(B)
|
|
860
863
|
};
|
|
861
864
|
}, I = (E, T, D) => {
|
|
862
865
|
let {
|
|
@@ -869,7 +872,7 @@ function Ct() {
|
|
|
869
872
|
height: B,
|
|
870
873
|
width: K < 0 ? E.width : d(E.left, E.width, q, D),
|
|
871
874
|
top: M(z),
|
|
872
|
-
left:
|
|
875
|
+
left: x(K)
|
|
873
876
|
};
|
|
874
877
|
}, P = (E, T, D) => {
|
|
875
878
|
let {
|
|
@@ -909,7 +912,7 @@ function Ct() {
|
|
|
909
912
|
...D
|
|
910
913
|
}, z) : D;
|
|
911
914
|
}
|
|
912
|
-
function
|
|
915
|
+
function F(E) {
|
|
913
916
|
let {
|
|
914
917
|
top: T,
|
|
915
918
|
left: D,
|
|
@@ -956,7 +959,7 @@ function Ct() {
|
|
|
956
959
|
return T.x > D.x || T.x === D.x && T.y > D.y ? 1 : -1;
|
|
957
960
|
});
|
|
958
961
|
}
|
|
959
|
-
function
|
|
962
|
+
function xe(E, T, D, z, B) {
|
|
960
963
|
E = E || [];
|
|
961
964
|
const q = [];
|
|
962
965
|
t.default.Children.forEach(T, (Y) => {
|
|
@@ -1059,17 +1062,17 @@ function fr() {
|
|
|
1059
1062
|
}
|
|
1060
1063
|
return Ue;
|
|
1061
1064
|
}
|
|
1062
|
-
var _t = {}, Wn = { exports: {} }, Hn,
|
|
1065
|
+
var _t = {}, Wn = { exports: {} }, Hn, xr;
|
|
1063
1066
|
function Ns() {
|
|
1064
|
-
if (
|
|
1065
|
-
|
|
1067
|
+
if (xr) return Hn;
|
|
1068
|
+
xr = 1;
|
|
1066
1069
|
var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
1067
1070
|
return Hn = e, Hn;
|
|
1068
1071
|
}
|
|
1069
|
-
var Un,
|
|
1072
|
+
var Un, Or;
|
|
1070
1073
|
function Ls() {
|
|
1071
|
-
if (
|
|
1072
|
-
|
|
1074
|
+
if (Or) return Un;
|
|
1075
|
+
Or = 1;
|
|
1073
1076
|
var e = /* @__PURE__ */ Ns();
|
|
1074
1077
|
function t() {
|
|
1075
1078
|
}
|
|
@@ -1161,7 +1164,7 @@ function Mn() {
|
|
|
1161
1164
|
return Ke;
|
|
1162
1165
|
}
|
|
1163
1166
|
var Ze = {}, Nr;
|
|
1164
|
-
function
|
|
1167
|
+
function ks() {
|
|
1165
1168
|
if (Nr) return Ze;
|
|
1166
1169
|
Nr = 1, Object.defineProperty(Ze, "__esModule", {
|
|
1167
1170
|
value: !0
|
|
@@ -1197,12 +1200,12 @@ function hr() {
|
|
|
1197
1200
|
Lr = 1, Object.defineProperty(ye, "__esModule", {
|
|
1198
1201
|
value: !0
|
|
1199
1202
|
}), ye.addClassName = l, ye.addEvent = v, ye.addUserSelectStyles = u, ye.createCSSTransform = S, ye.createSVGTransform = R, ye.getTouch = s, ye.getTouchIdentifier = a, ye.getTranslation = h, ye.innerHeight = C, ye.innerWidth = _, ye.matchesSelector = i, ye.matchesSelectorAndParentsTo = c, ye.offsetXYFromParent = w, ye.outerHeight = b, ye.outerWidth = g, ye.removeClassName = p, ye.removeEvent = f, ye.removeUserSelectStyles = y;
|
|
1200
|
-
var e = Mn(), t = n(
|
|
1203
|
+
var e = Mn(), t = n(ks());
|
|
1201
1204
|
function r(d) {
|
|
1202
1205
|
if (typeof WeakMap != "function") return null;
|
|
1203
|
-
var m = /* @__PURE__ */ new WeakMap(),
|
|
1206
|
+
var m = /* @__PURE__ */ new WeakMap(), x = /* @__PURE__ */ new WeakMap();
|
|
1204
1207
|
return (r = function(M) {
|
|
1205
|
-
return M ?
|
|
1208
|
+
return M ? x : m;
|
|
1206
1209
|
})(d);
|
|
1207
1210
|
}
|
|
1208
1211
|
function n(d, m) {
|
|
@@ -1210,100 +1213,100 @@ function hr() {
|
|
|
1210
1213
|
return d;
|
|
1211
1214
|
if (d === null || typeof d != "object" && typeof d != "function")
|
|
1212
1215
|
return { default: d };
|
|
1213
|
-
var
|
|
1214
|
-
if (
|
|
1215
|
-
return
|
|
1216
|
+
var x = r(m);
|
|
1217
|
+
if (x && x.has(d))
|
|
1218
|
+
return x.get(d);
|
|
1216
1219
|
var M = {}, L = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
1217
1220
|
for (var N in d)
|
|
1218
1221
|
if (N !== "default" && Object.prototype.hasOwnProperty.call(d, N)) {
|
|
1219
1222
|
var I = L ? Object.getOwnPropertyDescriptor(d, N) : null;
|
|
1220
1223
|
I && (I.get || I.set) ? Object.defineProperty(M, N, I) : M[N] = d[N];
|
|
1221
1224
|
}
|
|
1222
|
-
return M.default = d,
|
|
1225
|
+
return M.default = d, x && x.set(d, M), M;
|
|
1223
1226
|
}
|
|
1224
1227
|
let o = "";
|
|
1225
1228
|
function i(d, m) {
|
|
1226
|
-
return o || (o = (0, e.findInArray)(["matches", "webkitMatchesSelector", "mozMatchesSelector", "msMatchesSelector", "oMatchesSelector"], function(
|
|
1227
|
-
return (0, e.isFunction)(d[
|
|
1229
|
+
return o || (o = (0, e.findInArray)(["matches", "webkitMatchesSelector", "mozMatchesSelector", "msMatchesSelector", "oMatchesSelector"], function(x) {
|
|
1230
|
+
return (0, e.isFunction)(d[x]);
|
|
1228
1231
|
})), (0, e.isFunction)(d[o]) ? d[o](m) : !1;
|
|
1229
1232
|
}
|
|
1230
|
-
function c(d, m,
|
|
1233
|
+
function c(d, m, x) {
|
|
1231
1234
|
let M = d;
|
|
1232
1235
|
do {
|
|
1233
1236
|
if (i(M, m)) return !0;
|
|
1234
|
-
if (M ===
|
|
1237
|
+
if (M === x) return !1;
|
|
1235
1238
|
M = M.parentNode;
|
|
1236
1239
|
} while (M);
|
|
1237
1240
|
return !1;
|
|
1238
1241
|
}
|
|
1239
|
-
function v(d, m,
|
|
1242
|
+
function v(d, m, x, M) {
|
|
1240
1243
|
if (!d) return;
|
|
1241
1244
|
const L = {
|
|
1242
1245
|
capture: !0,
|
|
1243
1246
|
...M
|
|
1244
1247
|
};
|
|
1245
|
-
d.addEventListener ? d.addEventListener(m,
|
|
1248
|
+
d.addEventListener ? d.addEventListener(m, x, L) : d.attachEvent ? d.attachEvent("on" + m, x) : d["on" + m] = x;
|
|
1246
1249
|
}
|
|
1247
|
-
function f(d, m,
|
|
1250
|
+
function f(d, m, x, M) {
|
|
1248
1251
|
if (!d) return;
|
|
1249
1252
|
const L = {
|
|
1250
1253
|
capture: !0,
|
|
1251
1254
|
...M
|
|
1252
1255
|
};
|
|
1253
|
-
d.removeEventListener ? d.removeEventListener(m,
|
|
1256
|
+
d.removeEventListener ? d.removeEventListener(m, x, L) : d.detachEvent ? d.detachEvent("on" + m, x) : d["on" + m] = null;
|
|
1254
1257
|
}
|
|
1255
1258
|
function b(d) {
|
|
1256
1259
|
let m = d.clientHeight;
|
|
1257
|
-
const
|
|
1258
|
-
return m += (0, e.int)(
|
|
1260
|
+
const x = d.ownerDocument.defaultView.getComputedStyle(d);
|
|
1261
|
+
return m += (0, e.int)(x.borderTopWidth), m += (0, e.int)(x.borderBottomWidth), m;
|
|
1259
1262
|
}
|
|
1260
1263
|
function g(d) {
|
|
1261
1264
|
let m = d.clientWidth;
|
|
1262
|
-
const
|
|
1263
|
-
return m += (0, e.int)(
|
|
1265
|
+
const x = d.ownerDocument.defaultView.getComputedStyle(d);
|
|
1266
|
+
return m += (0, e.int)(x.borderLeftWidth), m += (0, e.int)(x.borderRightWidth), m;
|
|
1264
1267
|
}
|
|
1265
1268
|
function C(d) {
|
|
1266
1269
|
let m = d.clientHeight;
|
|
1267
|
-
const
|
|
1268
|
-
return m -= (0, e.int)(
|
|
1270
|
+
const x = d.ownerDocument.defaultView.getComputedStyle(d);
|
|
1271
|
+
return m -= (0, e.int)(x.paddingTop), m -= (0, e.int)(x.paddingBottom), m;
|
|
1269
1272
|
}
|
|
1270
1273
|
function _(d) {
|
|
1271
1274
|
let m = d.clientWidth;
|
|
1272
|
-
const
|
|
1273
|
-
return m -= (0, e.int)(
|
|
1275
|
+
const x = d.ownerDocument.defaultView.getComputedStyle(d);
|
|
1276
|
+
return m -= (0, e.int)(x.paddingLeft), m -= (0, e.int)(x.paddingRight), m;
|
|
1274
1277
|
}
|
|
1275
|
-
function w(d, m,
|
|
1278
|
+
function w(d, m, x) {
|
|
1276
1279
|
const L = m === m.ownerDocument.body ? {
|
|
1277
1280
|
left: 0,
|
|
1278
1281
|
top: 0
|
|
1279
|
-
} : m.getBoundingClientRect(), N = (d.clientX + m.scrollLeft - L.left) /
|
|
1282
|
+
} : m.getBoundingClientRect(), N = (d.clientX + m.scrollLeft - L.left) / x, I = (d.clientY + m.scrollTop - L.top) / x;
|
|
1280
1283
|
return {
|
|
1281
1284
|
x: N,
|
|
1282
1285
|
y: I
|
|
1283
1286
|
};
|
|
1284
1287
|
}
|
|
1285
1288
|
function S(d, m) {
|
|
1286
|
-
const
|
|
1289
|
+
const x = h(d, m, "px");
|
|
1287
1290
|
return {
|
|
1288
|
-
[(0, t.browserPrefixToKey)("transform", t.default)]:
|
|
1291
|
+
[(0, t.browserPrefixToKey)("transform", t.default)]: x
|
|
1289
1292
|
};
|
|
1290
1293
|
}
|
|
1291
1294
|
function R(d, m) {
|
|
1292
1295
|
return h(d, m, "");
|
|
1293
1296
|
}
|
|
1294
|
-
function h(d, m,
|
|
1297
|
+
function h(d, m, x) {
|
|
1295
1298
|
let {
|
|
1296
1299
|
x: M,
|
|
1297
1300
|
y: L
|
|
1298
|
-
} = d, N = "translate(".concat(M).concat(
|
|
1301
|
+
} = d, N = "translate(".concat(M).concat(x, ",").concat(L).concat(x, ")");
|
|
1299
1302
|
if (m) {
|
|
1300
|
-
const I = "".concat(typeof m.x == "string" ? m.x : m.x +
|
|
1303
|
+
const I = "".concat(typeof m.x == "string" ? m.x : m.x + x), P = "".concat(typeof m.y == "string" ? m.y : m.y + x);
|
|
1301
1304
|
N = "translate(".concat(I, ", ").concat(P, ")") + N;
|
|
1302
1305
|
}
|
|
1303
1306
|
return N;
|
|
1304
1307
|
}
|
|
1305
1308
|
function s(d, m) {
|
|
1306
|
-
return d.targetTouches && (0, e.findInArray)(d.targetTouches, (
|
|
1309
|
+
return d.targetTouches && (0, e.findInArray)(d.targetTouches, (x) => m === x.identifier) || d.changedTouches && (0, e.findInArray)(d.changedTouches, (x) => m === x.identifier);
|
|
1307
1310
|
}
|
|
1308
1311
|
function a(d) {
|
|
1309
1312
|
if (d.targetTouches && d.targetTouches[0]) return d.targetTouches[0].identifier;
|
|
@@ -1441,13 +1444,13 @@ function Bo() {
|
|
|
1441
1444
|
}
|
|
1442
1445
|
return en;
|
|
1443
1446
|
}
|
|
1444
|
-
var
|
|
1445
|
-
function
|
|
1446
|
-
if (
|
|
1447
|
-
|
|
1447
|
+
var kr;
|
|
1448
|
+
function Fs() {
|
|
1449
|
+
if (kr) return Et;
|
|
1450
|
+
kr = 1, Object.defineProperty(Et, "__esModule", {
|
|
1448
1451
|
value: !0
|
|
1449
1452
|
}), Et.default = void 0;
|
|
1450
|
-
var e = b(qe), t = v(/* @__PURE__ */ et()), r = v(
|
|
1453
|
+
var e = b(qe), t = v(/* @__PURE__ */ et()), r = v(xo), n = hr(), o = jo(), i = Mn(), c = v(Bo());
|
|
1451
1454
|
function v(h) {
|
|
1452
1455
|
return h && h.__esModule ? h : { default: h };
|
|
1453
1456
|
}
|
|
@@ -1557,8 +1560,8 @@ function ks() {
|
|
|
1557
1560
|
y
|
|
1558
1561
|
} = a;
|
|
1559
1562
|
if (Array.isArray(this.props.grid)) {
|
|
1560
|
-
let m = u - this.lastX || 0,
|
|
1561
|
-
[m,
|
|
1563
|
+
let m = u - this.lastX || 0, x = y - this.lastY || 0;
|
|
1564
|
+
[m, x] = (0, o.snapToGrid)(this.props.grid, m, x), u = this.lastX + m, y = this.lastY + x;
|
|
1562
1565
|
}
|
|
1563
1566
|
const l = (0, o.createCoreData)(this, u, y);
|
|
1564
1567
|
if (this.props.onStop(s, l) === !1 || this.mounted === !1) return !1;
|
|
@@ -1742,9 +1745,9 @@ function ks() {
|
|
|
1742
1745
|
scale: 1
|
|
1743
1746
|
}), Et;
|
|
1744
1747
|
}
|
|
1745
|
-
var
|
|
1748
|
+
var Fr;
|
|
1746
1749
|
function Vs() {
|
|
1747
|
-
return
|
|
1750
|
+
return Fr || (Fr = 1, function(e) {
|
|
1748
1751
|
Object.defineProperty(e, "__esModule", {
|
|
1749
1752
|
value: !0
|
|
1750
1753
|
}), Object.defineProperty(e, "DraggableCore", {
|
|
@@ -1753,7 +1756,7 @@ function Vs() {
|
|
|
1753
1756
|
return f.default;
|
|
1754
1757
|
}
|
|
1755
1758
|
}), e.default = void 0;
|
|
1756
|
-
var t = _(qe), r = g(/* @__PURE__ */ et()), n = g(
|
|
1759
|
+
var t = _(qe), r = g(/* @__PURE__ */ et()), n = g(xo), o = g($s), i = hr(), c = jo(), v = Mn(), f = g(Fs()), b = g(Bo());
|
|
1757
1760
|
function g(a) {
|
|
1758
1761
|
return a && a.__esModule ? a : { default: a };
|
|
1759
1762
|
}
|
|
@@ -1845,12 +1848,12 @@ function Vs() {
|
|
|
1845
1848
|
};
|
|
1846
1849
|
if (this.props.bounds) {
|
|
1847
1850
|
const {
|
|
1848
|
-
x
|
|
1851
|
+
x,
|
|
1849
1852
|
y: M
|
|
1850
1853
|
} = d;
|
|
1851
1854
|
d.x += this.state.slackX, d.y += this.state.slackY;
|
|
1852
1855
|
const [L, N] = (0, c.getBoundPosition)(this, d.x, d.y);
|
|
1853
|
-
d.x = L, d.y = N, d.slackX = this.state.slackX + (
|
|
1856
|
+
d.x = L, d.y = N, d.slackX = this.state.slackX + (x - d.x), d.slackY = this.state.slackY + (M - d.y), p.x = d.x, p.y = d.y, p.deltaX = d.x - this.state.x, p.deltaY = d.y - this.state.y;
|
|
1854
1857
|
}
|
|
1855
1858
|
if (this.props.onDrag(y, p) === !1) return !1;
|
|
1856
1859
|
this.setState(d);
|
|
@@ -1864,10 +1867,10 @@ function Vs() {
|
|
|
1864
1867
|
};
|
|
1865
1868
|
if (!!this.props.position) {
|
|
1866
1869
|
const {
|
|
1867
|
-
x
|
|
1870
|
+
x,
|
|
1868
1871
|
y: M
|
|
1869
1872
|
} = this.props.position;
|
|
1870
|
-
d.x =
|
|
1873
|
+
d.x = x, d.y = M;
|
|
1871
1874
|
}
|
|
1872
1875
|
this.setState(d);
|
|
1873
1876
|
}), this.state = {
|
|
@@ -1912,23 +1915,23 @@ function Vs() {
|
|
|
1912
1915
|
defaultPosition: p,
|
|
1913
1916
|
defaultClassName: d,
|
|
1914
1917
|
defaultClassNameDragging: m,
|
|
1915
|
-
defaultClassNameDragged:
|
|
1918
|
+
defaultClassNameDragged: x,
|
|
1916
1919
|
position: M,
|
|
1917
1920
|
positionOffset: L,
|
|
1918
1921
|
scale: N,
|
|
1919
1922
|
...I
|
|
1920
1923
|
} = this.props;
|
|
1921
|
-
let P = {},
|
|
1924
|
+
let P = {}, k = null;
|
|
1922
1925
|
const j = !!!M || this.state.dragging, ie = M || p, te = {
|
|
1923
1926
|
// Set left if horizontal drag is enabled
|
|
1924
1927
|
x: (0, c.canDragX)(this) && j ? this.state.x : ie.x,
|
|
1925
1928
|
// Set top if vertical drag is enabled
|
|
1926
1929
|
y: (0, c.canDragY)(this) && j ? this.state.y : ie.y
|
|
1927
1930
|
};
|
|
1928
|
-
this.state.isElementSVG ?
|
|
1931
|
+
this.state.isElementSVG ? k = (0, i.createSVGTransform)(te, L) : P = (0, i.createCSSTransform)(te, L);
|
|
1929
1932
|
const A = (0, o.default)(l.props.className || "", d, {
|
|
1930
1933
|
[m]: this.state.dragging,
|
|
1931
|
-
[
|
|
1934
|
+
[x]: this.state.dragged
|
|
1932
1935
|
});
|
|
1933
1936
|
return /* @__PURE__ */ t.createElement(f.default, w({}, I, {
|
|
1934
1937
|
onStart: this.onDragStart,
|
|
@@ -1940,7 +1943,7 @@ function Vs() {
|
|
|
1940
1943
|
...l.props.style,
|
|
1941
1944
|
...P
|
|
1942
1945
|
},
|
|
1943
|
-
transform:
|
|
1946
|
+
transform: k
|
|
1944
1947
|
}));
|
|
1945
1948
|
}
|
|
1946
1949
|
}
|
|
@@ -2076,7 +2079,7 @@ function pr() {
|
|
|
2076
2079
|
} = Vs();
|
|
2077
2080
|
return It.exports = e, It.exports.default = e, It.exports.DraggableCore = t, It.exports;
|
|
2078
2081
|
}
|
|
2079
|
-
var Tt = { exports: {} },
|
|
2082
|
+
var Tt = { exports: {} }, xt = {}, tn = {}, qr;
|
|
2080
2083
|
function qs() {
|
|
2081
2084
|
if (qr) return tn;
|
|
2082
2085
|
qr = 1, tn.__esModule = !0, tn.cloneElement = v;
|
|
@@ -2127,10 +2130,10 @@ function qs() {
|
|
|
2127
2130
|
}
|
|
2128
2131
|
return tn;
|
|
2129
2132
|
}
|
|
2130
|
-
var
|
|
2133
|
+
var Ot = {}, Ar;
|
|
2131
2134
|
function Go() {
|
|
2132
|
-
if (Ar) return
|
|
2133
|
-
Ar = 1,
|
|
2135
|
+
if (Ar) return Ot;
|
|
2136
|
+
Ar = 1, Ot.__esModule = !0, Ot.resizableProps = void 0;
|
|
2134
2137
|
var e = t(/* @__PURE__ */ et());
|
|
2135
2138
|
pr();
|
|
2136
2139
|
function t(n) {
|
|
@@ -2241,12 +2244,12 @@ function Go() {
|
|
|
2241
2244
|
return e.default.number.apply(e.default, i);
|
|
2242
2245
|
}
|
|
2243
2246
|
};
|
|
2244
|
-
return
|
|
2247
|
+
return Ot.resizableProps = r, Ot;
|
|
2245
2248
|
}
|
|
2246
2249
|
var Wr;
|
|
2247
2250
|
function Xo() {
|
|
2248
|
-
if (Wr) return
|
|
2249
|
-
Wr = 1,
|
|
2251
|
+
if (Wr) return xt;
|
|
2252
|
+
Wr = 1, xt.__esModule = !0, xt.default = void 0;
|
|
2250
2253
|
var e = c(qe), t = pr(), r = qs(), n = Go(), o = ["children", "className", "draggableOpts", "width", "height", "handle", "handleSize", "lockAspectRatio", "axis", "minConstraints", "maxConstraints", "onResize", "onResizeStop", "onResizeStart", "resizeHandles", "transformScale"];
|
|
2251
2254
|
function i(s) {
|
|
2252
2255
|
if (typeof WeakMap != "function") return null;
|
|
@@ -2347,41 +2350,41 @@ function Xo() {
|
|
|
2347
2350
|
}, u.resetData = function() {
|
|
2348
2351
|
this.lastHandleRect = this.slack = null;
|
|
2349
2352
|
}, u.runConstraints = function(l, p) {
|
|
2350
|
-
var d = this.props, m = d.minConstraints,
|
|
2351
|
-
if (!m && !
|
|
2353
|
+
var d = this.props, m = d.minConstraints, x = d.maxConstraints, M = d.lockAspectRatio;
|
|
2354
|
+
if (!m && !x && !M) return [l, p];
|
|
2352
2355
|
if (M) {
|
|
2353
2356
|
var L = this.props.width / this.props.height, N = l - this.props.width, I = p - this.props.height;
|
|
2354
2357
|
Math.abs(N) > Math.abs(I * L) ? p = l / L : l = p * L;
|
|
2355
2358
|
}
|
|
2356
|
-
var P = l,
|
|
2357
|
-
return l += j, p += ie, m && (l = Math.max(m[0], l), p = Math.max(m[1], p)),
|
|
2359
|
+
var P = l, k = p, U = this.slack || [0, 0], j = U[0], ie = U[1];
|
|
2360
|
+
return l += j, p += ie, m && (l = Math.max(m[0], l), p = Math.max(m[1], p)), x && (l = Math.min(x[0], l), p = Math.min(x[1], p)), this.slack = [j + (P - l), ie + (k - p)], [l, p];
|
|
2358
2361
|
}, u.resizeHandler = function(l, p) {
|
|
2359
2362
|
var d = this;
|
|
2360
|
-
return function(m,
|
|
2361
|
-
var M =
|
|
2363
|
+
return function(m, x) {
|
|
2364
|
+
var M = x.node, L = x.deltaX, N = x.deltaY;
|
|
2362
2365
|
l === "onResizeStart" && d.resetData();
|
|
2363
2366
|
var I = (d.props.axis === "both" || d.props.axis === "x") && p !== "n" && p !== "s", P = (d.props.axis === "both" || d.props.axis === "y") && p !== "e" && p !== "w";
|
|
2364
2367
|
if (!(!I && !P)) {
|
|
2365
|
-
var
|
|
2368
|
+
var k = p[0], U = p[p.length - 1], j = M.getBoundingClientRect();
|
|
2366
2369
|
if (d.lastHandleRect != null) {
|
|
2367
2370
|
if (U === "w") {
|
|
2368
2371
|
var ie = j.left - d.lastHandleRect.left;
|
|
2369
2372
|
L += ie;
|
|
2370
2373
|
}
|
|
2371
|
-
if (
|
|
2374
|
+
if (k === "n") {
|
|
2372
2375
|
var te = j.top - d.lastHandleRect.top;
|
|
2373
2376
|
N += te;
|
|
2374
2377
|
}
|
|
2375
2378
|
}
|
|
2376
|
-
d.lastHandleRect = j, U === "w" && (L = -L),
|
|
2377
|
-
var A = d.props.width + (I ? L / d.props.transformScale : 0),
|
|
2378
|
-
A = se[0],
|
|
2379
|
-
var ae = A !== d.props.width ||
|
|
2379
|
+
d.lastHandleRect = j, U === "w" && (L = -L), k === "n" && (N = -N);
|
|
2380
|
+
var A = d.props.width + (I ? L / d.props.transformScale : 0), F = d.props.height + (P ? N / d.props.transformScale : 0), se = d.runConstraints(A, F);
|
|
2381
|
+
A = se[0], F = se[1];
|
|
2382
|
+
var ae = A !== d.props.width || F !== d.props.height, fe = typeof d.props[l] == "function" ? d.props[l] : null, be = l === "onResize" && !ae;
|
|
2380
2383
|
fe && !be && (m.persist == null || m.persist(), fe(m, {
|
|
2381
2384
|
node: M,
|
|
2382
2385
|
size: {
|
|
2383
2386
|
width: A,
|
|
2384
|
-
height:
|
|
2387
|
+
height: F
|
|
2385
2388
|
},
|
|
2386
2389
|
handle: p
|
|
2387
2390
|
})), l === "onResizeStop" && d.resetData();
|
|
@@ -2396,14 +2399,14 @@ function Xo() {
|
|
|
2396
2399
|
});
|
|
2397
2400
|
if (typeof d == "function")
|
|
2398
2401
|
return d(l, p);
|
|
2399
|
-
var m = typeof d.type == "string",
|
|
2402
|
+
var m = typeof d.type == "string", x = g({
|
|
2400
2403
|
ref: p
|
|
2401
2404
|
}, m ? {} : {
|
|
2402
2405
|
handleAxis: l
|
|
2403
2406
|
});
|
|
2404
|
-
return /* @__PURE__ */ e.cloneElement(d,
|
|
2407
|
+
return /* @__PURE__ */ e.cloneElement(d, x);
|
|
2405
2408
|
}, u.render = function() {
|
|
2406
|
-
var l = this, p = this.props, d = p.children, m = p.className,
|
|
2409
|
+
var l = this, p = this.props, d = p.children, m = p.className, x = p.draggableOpts;
|
|
2407
2410
|
p.width, p.height, p.handle, p.handleSize, p.lockAspectRatio, p.axis, p.minConstraints, p.maxConstraints, p.onResize, p.onResizeStop, p.onResizeStart;
|
|
2408
2411
|
var M = p.resizeHandles;
|
|
2409
2412
|
p.transformScale;
|
|
@@ -2412,7 +2415,7 @@ function Xo() {
|
|
|
2412
2415
|
className: (m ? m + " " : "") + "react-resizable",
|
|
2413
2416
|
children: [].concat(d.props.children, M.map(function(N) {
|
|
2414
2417
|
var I, P = (I = l.handleRefs[N]) != null ? I : l.handleRefs[N] = /* @__PURE__ */ e.createRef();
|
|
2415
|
-
return /* @__PURE__ */ e.createElement(t.DraggableCore, v({},
|
|
2418
|
+
return /* @__PURE__ */ e.createElement(t.DraggableCore, v({}, x, {
|
|
2416
2419
|
nodeRef: P,
|
|
2417
2420
|
key: "resizableHandle-" + N,
|
|
2418
2421
|
onStop: l.resizeHandler("onResizeStop", N),
|
|
@@ -2423,7 +2426,7 @@ function Xo() {
|
|
|
2423
2426
|
}));
|
|
2424
2427
|
}, a;
|
|
2425
2428
|
}(e.Component);
|
|
2426
|
-
return
|
|
2429
|
+
return xt.default = h, h.propTypes = n.resizableProps, h.defaultProps = {
|
|
2427
2430
|
axis: "both",
|
|
2428
2431
|
handleSize: [20, 20],
|
|
2429
2432
|
lockAspectRatio: !1,
|
|
@@ -2431,7 +2434,7 @@ function Xo() {
|
|
|
2431
2434
|
maxConstraints: [1 / 0, 1 / 0],
|
|
2432
2435
|
resizeHandles: ["se"],
|
|
2433
2436
|
transformScale: 1
|
|
2434
|
-
},
|
|
2437
|
+
}, xt;
|
|
2435
2438
|
}
|
|
2436
2439
|
var Pt = {}, Hr;
|
|
2437
2440
|
function As() {
|
|
@@ -2537,10 +2540,10 @@ function As() {
|
|
|
2537
2540
|
height: l.props.height,
|
|
2538
2541
|
propsWidth: l.props.width,
|
|
2539
2542
|
propsHeight: l.props.height
|
|
2540
|
-
}, l.onResize = function(
|
|
2543
|
+
}, l.onResize = function(x, M) {
|
|
2541
2544
|
var L = M.size;
|
|
2542
|
-
l.props.onResize ? (
|
|
2543
|
-
return l.props.onResize && l.props.onResize(
|
|
2545
|
+
l.props.onResize ? (x.persist == null || x.persist(), l.setState(L, function() {
|
|
2546
|
+
return l.props.onResize && l.props.onResize(x, M);
|
|
2544
2547
|
})) : l.setState(L);
|
|
2545
2548
|
}, l;
|
|
2546
2549
|
}
|
|
@@ -2556,11 +2559,11 @@ function As() {
|
|
|
2556
2559
|
return y.render = function() {
|
|
2557
2560
|
var p = this.props, d = p.handle, m = p.handleSize;
|
|
2558
2561
|
p.onResize;
|
|
2559
|
-
var
|
|
2562
|
+
var x = p.onResizeStart, M = p.onResizeStop, L = p.draggableOpts, N = p.minConstraints, I = p.maxConstraints, P = p.lockAspectRatio, k = p.axis;
|
|
2560
2563
|
p.width, p.height;
|
|
2561
2564
|
var U = p.resizeHandles, j = p.style, ie = p.transformScale, te = S(p, o);
|
|
2562
2565
|
return /* @__PURE__ */ e.createElement(r.default, {
|
|
2563
|
-
axis:
|
|
2566
|
+
axis: k,
|
|
2564
2567
|
draggableOpts: L,
|
|
2565
2568
|
handle: d,
|
|
2566
2569
|
handleSize: m,
|
|
@@ -2568,7 +2571,7 @@ function As() {
|
|
|
2568
2571
|
lockAspectRatio: P,
|
|
2569
2572
|
maxConstraints: I,
|
|
2570
2573
|
minConstraints: N,
|
|
2571
|
-
onResizeStart:
|
|
2574
|
+
onResizeStart: x,
|
|
2572
2575
|
onResize: this.onResize,
|
|
2573
2576
|
onResizeStop: M,
|
|
2574
2577
|
resizeHandles: U,
|
|
@@ -2759,8 +2762,8 @@ function Hs() {
|
|
|
2759
2762
|
offsetParent: y
|
|
2760
2763
|
} = h;
|
|
2761
2764
|
if (!y) return;
|
|
2762
|
-
const l = y.getBoundingClientRect(), p = h.getBoundingClientRect(), d = p.left / a, m = l.left / a,
|
|
2763
|
-
u.left = d - m + y.scrollLeft, u.top =
|
|
2765
|
+
const l = y.getBoundingClientRect(), p = h.getBoundingClientRect(), d = p.left / a, m = l.left / a, x = p.top / a, M = l.top / a;
|
|
2766
|
+
u.left = d - m + y.scrollLeft, u.top = x - M + y.scrollTop, this.setState({
|
|
2764
2767
|
dragging: u
|
|
2765
2768
|
});
|
|
2766
2769
|
const {
|
|
@@ -2789,7 +2792,7 @@ function Hs() {
|
|
|
2789
2792
|
isBounded: p,
|
|
2790
2793
|
i: d,
|
|
2791
2794
|
w: m,
|
|
2792
|
-
h:
|
|
2795
|
+
h: x,
|
|
2793
2796
|
containerWidth: M
|
|
2794
2797
|
} = this.props, L = this.getPositionParams();
|
|
2795
2798
|
if (p) {
|
|
@@ -2801,9 +2804,9 @@ function Hs() {
|
|
|
2801
2804
|
margin: j,
|
|
2802
2805
|
rowHeight: ie,
|
|
2803
2806
|
containerPadding: te
|
|
2804
|
-
} = this.props, A = U.clientHeight - (0, i.calcGridItemWHPx)(
|
|
2807
|
+
} = this.props, A = U.clientHeight - (0, i.calcGridItemWHPx)(x, ie, j[1]);
|
|
2805
2808
|
y = (0, i.clamp)(y - te[1], 0, A);
|
|
2806
|
-
const
|
|
2809
|
+
const F = (0, i.calcGridColWidth)(L), se = M - (0, i.calcGridItemWHPx)(m, F, j[0]);
|
|
2807
2810
|
l = (0, i.clamp)(l - te[0], 0, se);
|
|
2808
2811
|
}
|
|
2809
2812
|
}
|
|
@@ -2818,9 +2821,9 @@ function Hs() {
|
|
|
2818
2821
|
containerPadding: I
|
|
2819
2822
|
} = this.props, {
|
|
2820
2823
|
x: P,
|
|
2821
|
-
y:
|
|
2822
|
-
} = (0, i.calcXY)(L, y - I[1], l - I[0], m,
|
|
2823
|
-
return u.call(this, d, P,
|
|
2824
|
+
y: k
|
|
2825
|
+
} = (0, i.calcXY)(L, y - I[1], l - I[0], m, x);
|
|
2826
|
+
return u.call(this, d, P, k, {
|
|
2824
2827
|
e: S,
|
|
2825
2828
|
node: h,
|
|
2826
2829
|
newPosition: N
|
|
@@ -2851,10 +2854,10 @@ function Hs() {
|
|
|
2851
2854
|
dragging: null
|
|
2852
2855
|
});
|
|
2853
2856
|
const {
|
|
2854
|
-
x
|
|
2857
|
+
x,
|
|
2855
2858
|
y: M
|
|
2856
2859
|
} = (0, i.calcXY)(this.getPositionParams(), d - l[1], p - l[0], a, u);
|
|
2857
|
-
return s.call(this, y,
|
|
2860
|
+
return s.call(this, y, x, M, {
|
|
2858
2861
|
e: S,
|
|
2859
2862
|
node: h,
|
|
2860
2863
|
newPosition: m
|
|
@@ -2975,7 +2978,7 @@ function Hs() {
|
|
|
2975
2978
|
transformScale: p,
|
|
2976
2979
|
resizeHandles: d,
|
|
2977
2980
|
resizeHandle: m
|
|
2978
|
-
} = this.props,
|
|
2981
|
+
} = this.props, x = this.getPositionParams(), M = (0, i.calcGridItemPosition)(x, 0, 0, s, 0).width, L = (0, i.calcGridItemPosition)(x, 0, 0, a, u), N = (0, i.calcGridItemPosition)(x, 0, 0, y, l), I = [L.width, L.height], P = [Math.min(N.width, M), Math.min(N.height, 1 / 0)];
|
|
2979
2982
|
return /* @__PURE__ */ e.default.createElement(
|
|
2980
2983
|
n.Resizable,
|
|
2981
2984
|
{
|
|
@@ -3012,7 +3015,7 @@ function Hs() {
|
|
|
3012
3015
|
x: p,
|
|
3013
3016
|
y: d,
|
|
3014
3017
|
i: m,
|
|
3015
|
-
maxH:
|
|
3018
|
+
maxH: x,
|
|
3016
3019
|
minH: M,
|
|
3017
3020
|
containerWidth: L
|
|
3018
3021
|
} = this.props, {
|
|
@@ -3024,10 +3027,10 @@ function Hs() {
|
|
|
3024
3027
|
resizing: s === "onResizeStop" ? null : P
|
|
3025
3028
|
}));
|
|
3026
3029
|
let {
|
|
3027
|
-
w:
|
|
3030
|
+
w: k,
|
|
3028
3031
|
h: U
|
|
3029
3032
|
} = (0, i.calcWH)(this.getPositionParams(), P.width, P.height, p, d, y);
|
|
3030
|
-
|
|
3033
|
+
k = (0, i.clamp)(k, Math.max(N, 1), I), U = (0, i.clamp)(U, M, x), l.call(this, m, k, U, {
|
|
3031
3034
|
e: S,
|
|
3032
3035
|
node: a,
|
|
3033
3036
|
size: P,
|
|
@@ -3224,7 +3227,7 @@ function Ko() {
|
|
|
3224
3227
|
layout: d
|
|
3225
3228
|
} = this.state, m = (0, n.getLayoutItem)(d, s);
|
|
3226
3229
|
if (!m) return;
|
|
3227
|
-
const
|
|
3230
|
+
const x = {
|
|
3228
3231
|
w: m.w,
|
|
3229
3232
|
h: m.h,
|
|
3230
3233
|
x: m.x,
|
|
@@ -3235,7 +3238,7 @@ function Ko() {
|
|
|
3235
3238
|
return this.setState({
|
|
3236
3239
|
oldDragItem: (0, n.cloneLayoutItem)(m),
|
|
3237
3240
|
oldLayout: d,
|
|
3238
|
-
activeDrag:
|
|
3241
|
+
activeDrag: x
|
|
3239
3242
|
}), this.props.onDragStart(d, m, m, null, l, p);
|
|
3240
3243
|
}), g(this, "onDrag", (s, a, u, y) => {
|
|
3241
3244
|
let {
|
|
@@ -3249,7 +3252,7 @@ function Ko() {
|
|
|
3249
3252
|
layout: m
|
|
3250
3253
|
} = this.state;
|
|
3251
3254
|
const {
|
|
3252
|
-
cols:
|
|
3255
|
+
cols: x,
|
|
3253
3256
|
allowOverlap: M,
|
|
3254
3257
|
preventCollision: L
|
|
3255
3258
|
} = this.props, N = (0, n.getLayoutItem)(m, s);
|
|
@@ -3262,8 +3265,8 @@ function Ko() {
|
|
|
3262
3265
|
placeholder: !0,
|
|
3263
3266
|
i: s
|
|
3264
3267
|
};
|
|
3265
|
-
m = (0, n.moveElement)(m, N, a, u, !0, L, (0, n.compactType)(this.props),
|
|
3266
|
-
layout: M ? m : (0, n.compact)(m, (0, n.compactType)(this.props),
|
|
3268
|
+
m = (0, n.moveElement)(m, N, a, u, !0, L, (0, n.compactType)(this.props), x, M), this.props.onDrag(m, d, N, I, l, p), this.setState({
|
|
3269
|
+
layout: M ? m : (0, n.compact)(m, (0, n.compactType)(this.props), x),
|
|
3267
3270
|
activeDrag: I
|
|
3268
3271
|
});
|
|
3269
3272
|
}), g(this, "onDragStop", (s, a, u, y) => {
|
|
@@ -3279,23 +3282,23 @@ function Ko() {
|
|
|
3279
3282
|
layout: m
|
|
3280
3283
|
} = this.state;
|
|
3281
3284
|
const {
|
|
3282
|
-
cols:
|
|
3285
|
+
cols: x,
|
|
3283
3286
|
preventCollision: M,
|
|
3284
3287
|
allowOverlap: L
|
|
3285
3288
|
} = this.props, N = (0, n.getLayoutItem)(m, s);
|
|
3286
3289
|
if (!N) return;
|
|
3287
|
-
m = (0, n.moveElement)(m, N, a, u, !0, M, (0, n.compactType)(this.props),
|
|
3288
|
-
const P = L ? m : (0, n.compact)(m, (0, n.compactType)(this.props),
|
|
3290
|
+
m = (0, n.moveElement)(m, N, a, u, !0, M, (0, n.compactType)(this.props), x, L);
|
|
3291
|
+
const P = L ? m : (0, n.compact)(m, (0, n.compactType)(this.props), x);
|
|
3289
3292
|
this.props.onDragStop(P, d, N, null, l, p);
|
|
3290
3293
|
const {
|
|
3291
|
-
oldLayout:
|
|
3294
|
+
oldLayout: k
|
|
3292
3295
|
} = this.state;
|
|
3293
3296
|
this.setState({
|
|
3294
3297
|
activeDrag: null,
|
|
3295
3298
|
layout: P,
|
|
3296
3299
|
oldDragItem: null,
|
|
3297
3300
|
oldLayout: null
|
|
3298
|
-
}), this.onLayoutMaybeChanged(P,
|
|
3301
|
+
}), this.onLayoutMaybeChanged(P, k);
|
|
3299
3302
|
}), g(this, "onResizeStart", (s, a, u, y) => {
|
|
3300
3303
|
let {
|
|
3301
3304
|
e: l,
|
|
@@ -3317,7 +3320,7 @@ function Ko() {
|
|
|
3317
3320
|
handle: m
|
|
3318
3321
|
} = y;
|
|
3319
3322
|
const {
|
|
3320
|
-
oldResizeItem:
|
|
3323
|
+
oldResizeItem: x
|
|
3321
3324
|
} = this.state, {
|
|
3322
3325
|
layout: M
|
|
3323
3326
|
} = this.state, {
|
|
@@ -3325,19 +3328,19 @@ function Ko() {
|
|
|
3325
3328
|
preventCollision: N,
|
|
3326
3329
|
allowOverlap: I
|
|
3327
3330
|
} = this.props;
|
|
3328
|
-
let P = !1,
|
|
3329
|
-
const [ie, te] = (0, n.withLayoutItem)(M, s, (
|
|
3331
|
+
let P = !1, k, U, j;
|
|
3332
|
+
const [ie, te] = (0, n.withLayoutItem)(M, s, (F) => {
|
|
3330
3333
|
let se;
|
|
3331
|
-
return U =
|
|
3332
|
-
...
|
|
3334
|
+
return U = F.x, j = F.y, ["sw", "w", "nw", "n", "ne"].indexOf(m) !== -1 && (["sw", "nw", "w"].indexOf(m) !== -1 && (U = F.x + (F.w - a), a = F.x !== U && U < 0 ? F.w : a, U = U < 0 ? 0 : U), ["ne", "n", "nw"].indexOf(m) !== -1 && (j = F.y + (F.h - u), u = F.y !== j && j < 0 ? F.h : u, j = j < 0 ? 0 : j), P = !0), N && !I && (se = (0, n.getAllCollisions)(M, {
|
|
3335
|
+
...F,
|
|
3333
3336
|
w: a,
|
|
3334
3337
|
h: u,
|
|
3335
3338
|
x: U,
|
|
3336
3339
|
y: j
|
|
3337
|
-
}).filter((fe) => fe.i !==
|
|
3340
|
+
}).filter((fe) => fe.i !== F.i).length > 0, se && (j = F.y, u = F.h, U = F.x, a = F.w, P = !1)), F.w = a, F.h = u, F;
|
|
3338
3341
|
});
|
|
3339
3342
|
if (!te) return;
|
|
3340
|
-
|
|
3343
|
+
k = ie, P && (k = (0, n.moveElement)(ie, te, U, j, !0, this.props.preventCollision, (0, n.compactType)(this.props), L, I));
|
|
3341
3344
|
const A = {
|
|
3342
3345
|
w: te.w,
|
|
3343
3346
|
h: te.h,
|
|
@@ -3346,8 +3349,8 @@ function Ko() {
|
|
|
3346
3349
|
static: !0,
|
|
3347
3350
|
i: s
|
|
3348
3351
|
};
|
|
3349
|
-
this.props.onResize(
|
|
3350
|
-
layout: I ?
|
|
3352
|
+
this.props.onResize(k, x, te, A, l, p), this.setState({
|
|
3353
|
+
layout: I ? k : (0, n.compact)(k, (0, n.compactType)(this.props), L),
|
|
3351
3354
|
activeDrag: A
|
|
3352
3355
|
});
|
|
3353
3356
|
}), g(this, "onResizeStop", (s, a, u, y) => {
|
|
@@ -3359,9 +3362,9 @@ function Ko() {
|
|
|
3359
3362
|
layout: d,
|
|
3360
3363
|
oldResizeItem: m
|
|
3361
3364
|
} = this.state, {
|
|
3362
|
-
cols:
|
|
3365
|
+
cols: x,
|
|
3363
3366
|
allowOverlap: M
|
|
3364
|
-
} = this.props, L = (0, n.getLayoutItem)(d, s), N = M ? d : (0, n.compact)(d, (0, n.compactType)(this.props),
|
|
3367
|
+
} = this.props, L = (0, n.getLayoutItem)(d, s), N = M ? d : (0, n.compact)(d, (0, n.compactType)(this.props), x);
|
|
3365
3368
|
this.props.onResizeStop(N, m, L, null, l, p);
|
|
3366
3369
|
const {
|
|
3367
3370
|
oldLayout: I
|
|
@@ -3386,7 +3389,7 @@ function Ko() {
|
|
|
3386
3389
|
rowHeight: p,
|
|
3387
3390
|
maxRows: d,
|
|
3388
3391
|
width: m,
|
|
3389
|
-
containerPadding:
|
|
3392
|
+
containerPadding: x,
|
|
3390
3393
|
transformScale: M
|
|
3391
3394
|
} = this.props, L = u == null ? void 0 : u(s);
|
|
3392
3395
|
if (L === !1)
|
|
@@ -3396,8 +3399,8 @@ function Ko() {
|
|
|
3396
3399
|
...L
|
|
3397
3400
|
}, {
|
|
3398
3401
|
layout: I
|
|
3399
|
-
} = this.state, P = s.currentTarget.getBoundingClientRect(),
|
|
3400
|
-
left:
|
|
3402
|
+
} = this.state, P = s.currentTarget.getBoundingClientRect(), k = s.clientX - P.left, U = s.clientY - P.top, j = {
|
|
3403
|
+
left: k / M,
|
|
3401
3404
|
top: U / M,
|
|
3402
3405
|
e: s
|
|
3403
3406
|
};
|
|
@@ -3407,7 +3410,7 @@ function Ko() {
|
|
|
3407
3410
|
left: te,
|
|
3408
3411
|
top: A
|
|
3409
3412
|
} = this.state.droppingPosition;
|
|
3410
|
-
(te !=
|
|
3413
|
+
(te != k || A != U) && this.setState({
|
|
3411
3414
|
droppingPosition: j
|
|
3412
3415
|
});
|
|
3413
3416
|
}
|
|
@@ -3418,8 +3421,8 @@ function Ko() {
|
|
|
3418
3421
|
maxRows: d,
|
|
3419
3422
|
rowHeight: p,
|
|
3420
3423
|
containerWidth: m,
|
|
3421
|
-
containerPadding:
|
|
3422
|
-
}, A = (0, o.calcXY)(te, U,
|
|
3424
|
+
containerPadding: x || y
|
|
3425
|
+
}, A = (0, o.calcXY)(te, U, k, N.w, N.h);
|
|
3423
3426
|
this.setState({
|
|
3424
3427
|
droppingDOMNode: /* @__PURE__ */ e.createElement("div", {
|
|
3425
3428
|
key: N.i
|
|
@@ -3520,7 +3523,7 @@ function Ko() {
|
|
|
3520
3523
|
rowHeight: p,
|
|
3521
3524
|
maxRows: d,
|
|
3522
3525
|
useCSSTransforms: m,
|
|
3523
|
-
transformScale:
|
|
3526
|
+
transformScale: x
|
|
3524
3527
|
} = this.props;
|
|
3525
3528
|
return /* @__PURE__ */ e.createElement(i.default, {
|
|
3526
3529
|
w: s.w,
|
|
@@ -3539,7 +3542,7 @@ function Ko() {
|
|
|
3539
3542
|
isResizable: !1,
|
|
3540
3543
|
isBounded: !1,
|
|
3541
3544
|
useCSSTransforms: m,
|
|
3542
|
-
transformScale:
|
|
3545
|
+
transformScale: x
|
|
3543
3546
|
}, /* @__PURE__ */ e.createElement("div", null));
|
|
3544
3547
|
}
|
|
3545
3548
|
/**
|
|
@@ -3557,28 +3560,28 @@ function Ko() {
|
|
|
3557
3560
|
margin: p,
|
|
3558
3561
|
containerPadding: d,
|
|
3559
3562
|
rowHeight: m,
|
|
3560
|
-
maxRows:
|
|
3563
|
+
maxRows: x,
|
|
3561
3564
|
isDraggable: M,
|
|
3562
3565
|
isResizable: L,
|
|
3563
3566
|
isBounded: N,
|
|
3564
3567
|
useCSSTransforms: I,
|
|
3565
3568
|
transformScale: P,
|
|
3566
|
-
draggableCancel:
|
|
3569
|
+
draggableCancel: k,
|
|
3567
3570
|
draggableHandle: U,
|
|
3568
3571
|
resizeHandles: j,
|
|
3569
3572
|
resizeHandle: ie
|
|
3570
3573
|
} = this.props, {
|
|
3571
3574
|
mounted: te,
|
|
3572
3575
|
droppingPosition: A
|
|
3573
|
-
} = this.state,
|
|
3576
|
+
} = this.state, F = typeof u.isDraggable == "boolean" ? u.isDraggable : !u.static && M, se = typeof u.isResizable == "boolean" ? u.isResizable : !u.static && L, ae = u.resizeHandles || j, fe = F && N && u.isBounded !== !1;
|
|
3574
3577
|
return /* @__PURE__ */ e.createElement(i.default, {
|
|
3575
3578
|
containerWidth: y,
|
|
3576
3579
|
cols: l,
|
|
3577
3580
|
margin: p,
|
|
3578
3581
|
containerPadding: d || p,
|
|
3579
|
-
maxRows:
|
|
3582
|
+
maxRows: x,
|
|
3580
3583
|
rowHeight: m,
|
|
3581
|
-
cancel:
|
|
3584
|
+
cancel: k,
|
|
3582
3585
|
handle: U,
|
|
3583
3586
|
onDragStop: this.onDragStop,
|
|
3584
3587
|
onDragStart: this.onDragStart,
|
|
@@ -3586,7 +3589,7 @@ function Ko() {
|
|
|
3586
3589
|
onResizeStart: this.onResizeStart,
|
|
3587
3590
|
onResize: this.onResize,
|
|
3588
3591
|
onResizeStop: this.onResizeStop,
|
|
3589
|
-
isDraggable:
|
|
3592
|
+
isDraggable: F,
|
|
3590
3593
|
isResizable: se,
|
|
3591
3594
|
isBounded: fe,
|
|
3592
3595
|
useCSSTransforms: I && te,
|
|
@@ -3819,13 +3822,13 @@ function Us() {
|
|
|
3819
3822
|
cols: u,
|
|
3820
3823
|
layouts: y,
|
|
3821
3824
|
compactType: l
|
|
3822
|
-
} = this.props, p = this.props.breakpoint || (0, o.getBreakpointFromWidth)(this.props.breakpoints, this.props.width), d = this.state.breakpoint, m = (0, o.getColsFromBreakpoint)(p, u),
|
|
3825
|
+
} = this.props, p = this.props.breakpoint || (0, o.getBreakpointFromWidth)(this.props.breakpoints, this.props.width), d = this.state.breakpoint, m = (0, o.getColsFromBreakpoint)(p, u), x = {
|
|
3823
3826
|
...y
|
|
3824
3827
|
};
|
|
3825
3828
|
if (d !== p || s.breakpoints !== a || s.cols !== u) {
|
|
3826
|
-
d in
|
|
3827
|
-
let N = (0, o.findOrGenerateResponsiveLayout)(
|
|
3828
|
-
N = (0, n.synchronizeLayoutWithChildren)(N, this.props.children, m, l, this.props.allowOverlap),
|
|
3829
|
+
d in x || (x[d] = (0, n.cloneLayout)(this.state.layout));
|
|
3830
|
+
let N = (0, o.findOrGenerateResponsiveLayout)(x, a, p, d, m, l);
|
|
3831
|
+
N = (0, n.synchronizeLayoutWithChildren)(N, this.props.children, m, l, this.props.allowOverlap), x[p] = N, this.props.onLayoutChange(N, x), this.props.onBreakpointChange(p, m), this.setState({
|
|
3829
3832
|
breakpoint: p,
|
|
3830
3833
|
layout: N,
|
|
3831
3834
|
cols: m
|
|
@@ -3844,7 +3847,7 @@ function Us() {
|
|
|
3844
3847
|
containerPadding: p,
|
|
3845
3848
|
onBreakpointChange: d,
|
|
3846
3849
|
onLayoutChange: m,
|
|
3847
|
-
onWidthChange:
|
|
3850
|
+
onWidthChange: x,
|
|
3848
3851
|
...M
|
|
3849
3852
|
} = this.props;
|
|
3850
3853
|
return /* @__PURE__ */ e.createElement(i.default, b({}, M, {
|
|
@@ -4404,16 +4407,16 @@ const ya = "univer-cf-preview", rn = {
|
|
|
4404
4407
|
}, [t]);
|
|
4405
4408
|
switch (t.type) {
|
|
4406
4409
|
case Z.dataBar: {
|
|
4407
|
-
const { isGradient: c } = t.config, v = { width: "50%", height: "100%" }, f = c ? `linear-gradient(to right, ${t.config.positiveColor ||
|
|
4410
|
+
const { isGradient: c } = t.config, v = { width: "50%", height: "100%" }, f = c ? `linear-gradient(to right, ${t.config.positiveColor || Ft}, rgb(255 255 255))` : t.config.positiveColor, b = c ? `linear-gradient(to right, rgb(255 255 255),${t.config.nativeColor || Vt})` : t.config.nativeColor;
|
|
4408
4411
|
return /* @__PURE__ */ G("div", { className: rn.cfPreview, children: [
|
|
4409
|
-
/* @__PURE__ */
|
|
4410
|
-
/* @__PURE__ */
|
|
4412
|
+
/* @__PURE__ */ O("div", { style: { ...v, background: b, border: `1px solid ${t.config.nativeColor || Vt}` } }),
|
|
4413
|
+
/* @__PURE__ */ O("div", { style: { ...v, background: f, border: `1px solid ${t.config.positiveColor || Ft}` } })
|
|
4411
4414
|
] });
|
|
4412
4415
|
}
|
|
4413
4416
|
case Z.colorScale:
|
|
4414
|
-
return r && /* @__PURE__ */
|
|
4417
|
+
return r && /* @__PURE__ */ O("div", { className: rn.cfPreview, children: r.map((c, v) => /* @__PURE__ */ O("div", { style: { width: `${100 / r.length}%`, height: "100%", background: c } }, v)) });
|
|
4415
4418
|
case Z.iconSet:
|
|
4416
|
-
return n && /* @__PURE__ */
|
|
4419
|
+
return n && /* @__PURE__ */ O("div", { className: rn.cfPreview, children: n.map((c, v) => c ? /* @__PURE__ */ O("img", { style: { height: "100%" }, src: c }, v) : /* @__PURE__ */ O(Zt, {}, v)) });
|
|
4417
4420
|
case Z.highlightCell: {
|
|
4418
4421
|
const { ul: c, st: v, it: f, bl: b, bg: g, cl: C } = t.style, _ = (c == null ? void 0 : c.s) === Me.TRUE, w = (v == null ? void 0 : v.s) === Me.TRUE, S = f === Me.TRUE, R = b === Me.TRUE, h = (o = g == null ? void 0 : g.rgb) != null ? o : Si, s = (i = C == null ? void 0 : C.rgb) != null ? i : Ci, a = {
|
|
4419
4422
|
fontWeight: R ? "bold" : void 0,
|
|
@@ -4422,11 +4425,11 @@ const ya = "univer-cf-preview", rn = {
|
|
|
4422
4425
|
backgroundColor: h,
|
|
4423
4426
|
color: s
|
|
4424
4427
|
};
|
|
4425
|
-
return /* @__PURE__ */
|
|
4428
|
+
return /* @__PURE__ */ O("div", { style: a, className: rn.cfPreview, children: "123" });
|
|
4426
4429
|
}
|
|
4427
4430
|
}
|
|
4428
4431
|
return null;
|
|
4429
|
-
}, ba = "univer-cf-rule-list", Sa = "univer-rule-selector", Ca = "univer-select", wa = "univer-btn-list", Ra = "univer-gap", _a = "univer-icon", Ia = "univer-disabled", Ea = "univer-rule-item", Ta = "univer-rule-describe",
|
|
4432
|
+
}, ba = "univer-cf-rule-list", Sa = "univer-rule-selector", Ca = "univer-select", wa = "univer-btn-list", Ra = "univer-gap", _a = "univer-icon", Ia = "univer-disabled", Ea = "univer-rule-item", Ta = "univer-rule-describe", xa = "univer-rule-type", Oa = "univer-rule-range", Pa = "univer-active", Da = "univer-draggableHandle", Ma = "univer-delete-item", Na = "univer-grid-layout-wrap", Se = {
|
|
4430
4433
|
cfRuleList: ba,
|
|
4431
4434
|
ruleSelector: Sa,
|
|
4432
4435
|
select: Ca,
|
|
@@ -4436,8 +4439,8 @@ const ya = "univer-cf-preview", rn = {
|
|
|
4436
4439
|
disabled: Ia,
|
|
4437
4440
|
ruleItem: Ea,
|
|
4438
4441
|
ruleDescribe: Ta,
|
|
4439
|
-
ruleType:
|
|
4440
|
-
ruleRange:
|
|
4442
|
+
ruleType: xa,
|
|
4443
|
+
ruleRange: Oa,
|
|
4441
4444
|
active: Pa,
|
|
4442
4445
|
draggableHandle: Da,
|
|
4443
4446
|
deleteItem: Ma,
|
|
@@ -4485,41 +4488,41 @@ const za = (e) => {
|
|
|
4485
4488
|
const { onClick: t } = e, r = pe(ve), n = pe(de), o = pe(ut), i = pe(me), c = pe(Te), v = pe(He), f = pe(vt), b = Ai(() => n.getCurrentTypeOfUnit$(oe.UNIVER_SHEET), void 0, void 0, []), g = b.getUnitId(), C = b.getActiveSheet();
|
|
4486
4489
|
if (!C)
|
|
4487
4490
|
throw new Error("No active sheet found");
|
|
4488
|
-
const _ = C.getSheetId(), [w, S] = H([]), [R, h] = H("2"), [s, a] = H(0), [u, y] = H(-1), [l, p] = H(Qr), d =
|
|
4491
|
+
const _ = C.getSheetId(), [w, S] = H([]), [R, h] = H("2"), [s, a] = H(0), [u, y] = H(-1), [l, p] = H(Qr), d = Fe(null), m = [
|
|
4489
4492
|
{ label: c.t("sheet.cf.panel.workSheet"), value: "2" },
|
|
4490
4493
|
{ label: c.t("sheet.cf.panel.selectedRange"), value: "1" }
|
|
4491
|
-
],
|
|
4494
|
+
], x = () => {
|
|
4492
4495
|
const A = r.getSubunitRules(g, _);
|
|
4493
4496
|
if (!A || !A.length)
|
|
4494
4497
|
return [];
|
|
4495
4498
|
if (R === "1") {
|
|
4496
|
-
const
|
|
4497
|
-
if (!
|
|
4499
|
+
const F = o.getCurrentLastSelection();
|
|
4500
|
+
if (!F)
|
|
4498
4501
|
return [];
|
|
4499
|
-
const se =
|
|
4502
|
+
const se = F.range;
|
|
4500
4503
|
return A.filter((fe) => fe.ranges.some((be) => Ge.intersects(be, se)));
|
|
4501
4504
|
} else if (R === "2")
|
|
4502
4505
|
return [...A];
|
|
4503
4506
|
return [];
|
|
4504
|
-
}, [M, L] = H(
|
|
4507
|
+
}, [M, L] = H(x);
|
|
4505
4508
|
Qi(w), Re(() => {
|
|
4506
|
-
const A = i.onCommandExecuted((
|
|
4507
|
-
|
|
4509
|
+
const A = i.onCommandExecuted((F) => {
|
|
4510
|
+
F.id === rr.id && a(Math.random());
|
|
4508
4511
|
});
|
|
4509
4512
|
return () => A.dispose();
|
|
4510
4513
|
}), Re(() => {
|
|
4511
|
-
L(
|
|
4514
|
+
L(x);
|
|
4512
4515
|
}, [R, s, g, _]), Re(() => {
|
|
4513
4516
|
if (R === "2")
|
|
4514
4517
|
return;
|
|
4515
|
-
const A = new st((
|
|
4518
|
+
const A = new st((F) => {
|
|
4516
4519
|
const se = [Pi.id, Ie.id, Ve.id, Le.id, fn.id], ae = i.onCommandExecuted((fe) => {
|
|
4517
|
-
const { id: be, params:
|
|
4518
|
-
se.includes(be) &&
|
|
4520
|
+
const { id: be, params: xe } = fe, $e = n.getCurrentUnitForType(oe.UNIVER_SHEET).getUnitId();
|
|
4521
|
+
se.includes(be) && xe.unitId === $e && F.next(null);
|
|
4519
4522
|
});
|
|
4520
4523
|
return () => ae.dispose();
|
|
4521
4524
|
}).pipe(Sr(16)).subscribe(() => {
|
|
4522
|
-
L(
|
|
4525
|
+
L(x);
|
|
4523
4526
|
});
|
|
4524
4527
|
return () => {
|
|
4525
4528
|
A.unsubscribe();
|
|
@@ -4540,13 +4543,13 @@ const za = (e) => {
|
|
|
4540
4543
|
let be = setTimeout(() => {
|
|
4541
4544
|
ae.next();
|
|
4542
4545
|
}, 150);
|
|
4543
|
-
const
|
|
4546
|
+
const xe = () => {
|
|
4544
4547
|
be && clearTimeout(be), be = null;
|
|
4545
4548
|
}, $e = (V) => {
|
|
4546
|
-
V.propertyName === "width" && (
|
|
4549
|
+
V.propertyName === "width" && (xe(), ae.next());
|
|
4547
4550
|
};
|
|
4548
4551
|
return fe.addEventListener("transitionend", $e), () => {
|
|
4549
|
-
|
|
4552
|
+
xe(), fe.removeEventListener("transitionend", $e);
|
|
4550
4553
|
};
|
|
4551
4554
|
}
|
|
4552
4555
|
}).pipe(Sr(16)).subscribe(() => {
|
|
@@ -4558,13 +4561,13 @@ const za = (e) => {
|
|
|
4558
4561
|
}, []);
|
|
4559
4562
|
const N = (A) => {
|
|
4560
4563
|
var ae;
|
|
4561
|
-
const
|
|
4562
|
-
if (!
|
|
4564
|
+
const F = n.getCurrentUnitForType(oe.UNIVER_SHEET).getUnitId(), se = (ae = n.getCurrentUnitForType(oe.UNIVER_SHEET).getActiveSheet()) == null ? void 0 : ae.getSheetId();
|
|
4565
|
+
if (!F || !se)
|
|
4563
4566
|
throw new Error("No active sheet found");
|
|
4564
|
-
i.executeCommand(mn.id, { unitId:
|
|
4565
|
-
}, I = (A,
|
|
4566
|
-
y(
|
|
4567
|
-
}, P = (A,
|
|
4567
|
+
i.executeCommand(mn.id, { unitId: F, subUnitId: se, cfId: A.cfId });
|
|
4568
|
+
}, I = (A, F) => {
|
|
4569
|
+
y(F.y);
|
|
4570
|
+
}, P = (A, F, se) => {
|
|
4568
4571
|
var V;
|
|
4569
4572
|
y(-1);
|
|
4570
4573
|
const ae = n.getCurrentUnitForType(oe.UNIVER_SHEET).getUnitId(), fe = (V = n.getCurrentUnitForType(oe.UNIVER_SHEET).getActiveSheet()) == null ? void 0 : V.getSheetId();
|
|
@@ -4573,47 +4576,47 @@ const za = (e) => {
|
|
|
4573
4576
|
const be = (J) => {
|
|
4574
4577
|
const ue = M.length;
|
|
4575
4578
|
return Math.min(ue - 1, Math.max(0, J));
|
|
4576
|
-
},
|
|
4577
|
-
|
|
4578
|
-
},
|
|
4579
|
+
}, xe = M[be(F.y)].cfId, $e = M[be(se.y)].cfId;
|
|
4580
|
+
xe !== $e && i.executeCommand(lr.id, { unitId: ae, subUnitId: fe, start: { id: xe, type: "self" }, end: { id: $e, type: se.y > F.y ? "after" : "before" } });
|
|
4581
|
+
}, k = () => {
|
|
4579
4582
|
e.onCreate();
|
|
4580
4583
|
}, U = () => {
|
|
4581
|
-
R === "2" ? i.executeCommand(Pn.id) : R === "1" && M.map((
|
|
4582
|
-
i.executeCommand(mn.id,
|
|
4584
|
+
R === "2" ? i.executeCommand(Pn.id) : R === "1" && M.map((F) => ({ unitId: g, subUnitId: _, cfId: F.cfId })).forEach((F) => {
|
|
4585
|
+
i.executeCommand(mn.id, F);
|
|
4583
4586
|
});
|
|
4584
4587
|
}, j = Ce(() => {
|
|
4585
|
-
const A = n.getCurrentUnitForType(oe.UNIVER_SHEET),
|
|
4588
|
+
const A = n.getCurrentUnitForType(oe.UNIVER_SHEET), F = A.getActiveSheet();
|
|
4586
4589
|
return M.filter((se) => {
|
|
4587
4590
|
const ae = se.ranges;
|
|
4588
|
-
return pn(v, A.getUnitId(),
|
|
4591
|
+
return pn(v, A.getUnitId(), F.getSheetId(), ae);
|
|
4589
4592
|
});
|
|
4590
|
-
}, [M]), ie = j.map((A,
|
|
4591
|
-
const A = n.getCurrentUnitForType(oe.UNIVER_SHEET),
|
|
4593
|
+
}, [M]), ie = j.map((A, F) => ({ i: A.cfId, x: 0, w: 12, y: F, h: 1, isResizable: !1 })), te = Ce(() => {
|
|
4594
|
+
const A = n.getCurrentUnitForType(oe.UNIVER_SHEET), F = A.getActiveSheet();
|
|
4592
4595
|
return M.every((se) => {
|
|
4593
4596
|
const ae = se.ranges;
|
|
4594
|
-
return pn(v, A.getUnitId(),
|
|
4597
|
+
return pn(v, A.getUnitId(), F.getSheetId(), ae);
|
|
4595
4598
|
});
|
|
4596
4599
|
}, [M]);
|
|
4597
4600
|
return /* @__PURE__ */ G("div", { className: Se.cfRuleList, children: [
|
|
4598
4601
|
/* @__PURE__ */ G("div", { className: Se.ruleSelector, children: [
|
|
4599
|
-
/* @__PURE__ */
|
|
4602
|
+
/* @__PURE__ */ O("div", { children: f.tWithReactNode(
|
|
4600
4603
|
"sheet.cf.panel.managerRuleSelect",
|
|
4601
|
-
/* @__PURE__ */
|
|
4604
|
+
/* @__PURE__ */ O(Ne, { className: Se.select, options: m, value: R, onChange: (A) => {
|
|
4602
4605
|
h(A);
|
|
4603
4606
|
} })
|
|
4604
|
-
).map((A,
|
|
4607
|
+
).map((A, F) => /* @__PURE__ */ O("span", { children: A }, F)) }),
|
|
4605
4608
|
/* @__PURE__ */ G("div", { className: Se.btnList, children: [
|
|
4606
|
-
/* @__PURE__ */
|
|
4609
|
+
/* @__PURE__ */ O(mr, { title: c.t("sheet.cf.panel.createRule"), placement: "bottom", children: /* @__PURE__ */ O(
|
|
4607
4610
|
"div",
|
|
4608
4611
|
{
|
|
4609
4612
|
className: `
|
|
4610
4613
|
${Se.icon}
|
|
4611
4614
|
`,
|
|
4612
|
-
onClick:
|
|
4613
|
-
children: /* @__PURE__ */
|
|
4615
|
+
onClick: k,
|
|
4616
|
+
children: /* @__PURE__ */ O(Ao, {})
|
|
4614
4617
|
}
|
|
4615
4618
|
) }),
|
|
4616
|
-
M.length && te ? /* @__PURE__ */
|
|
4619
|
+
M.length && te ? /* @__PURE__ */ O(mr, { title: c.t("sheet.cf.panel.clear"), placement: "bottom", children: /* @__PURE__ */ O(
|
|
4617
4620
|
"div",
|
|
4618
4621
|
{
|
|
4619
4622
|
className: `
|
|
@@ -4621,21 +4624,21 @@ const za = (e) => {
|
|
|
4621
4624
|
${Se.icon}
|
|
4622
4625
|
`,
|
|
4623
4626
|
onClick: U,
|
|
4624
|
-
children: /* @__PURE__ */
|
|
4627
|
+
children: /* @__PURE__ */ O(dn, {})
|
|
4625
4628
|
}
|
|
4626
|
-
) }) : /* @__PURE__ */
|
|
4629
|
+
) }) : /* @__PURE__ */ O(
|
|
4627
4630
|
"div",
|
|
4628
4631
|
{
|
|
4629
4632
|
className: `
|
|
4630
4633
|
${Se.gap}
|
|
4631
4634
|
${Se.disabled}
|
|
4632
4635
|
`,
|
|
4633
|
-
children: /* @__PURE__ */
|
|
4636
|
+
children: /* @__PURE__ */ O(dn, {})
|
|
4634
4637
|
}
|
|
4635
4638
|
)
|
|
4636
4639
|
] })
|
|
4637
4640
|
] }),
|
|
4638
|
-
/* @__PURE__ */
|
|
4641
|
+
/* @__PURE__ */ O("div", { ref: d, className: Se.gridLayoutWrap, children: l ? /* @__PURE__ */ O(
|
|
4639
4642
|
pa,
|
|
4640
4643
|
{
|
|
4641
4644
|
onDragStop: P,
|
|
@@ -4646,7 +4649,7 @@ const za = (e) => {
|
|
|
4646
4649
|
width: l,
|
|
4647
4650
|
margin: [0, 10],
|
|
4648
4651
|
draggableHandle: ".draggableHandle",
|
|
4649
|
-
children: j == null ? void 0 : j.map((A,
|
|
4652
|
+
children: j == null ? void 0 : j.map((A, F) => /* @__PURE__ */ O("div", { children: /* @__PURE__ */ G(
|
|
4650
4653
|
"div",
|
|
4651
4654
|
{
|
|
4652
4655
|
onMouseMove: () => {
|
|
@@ -4658,10 +4661,10 @@ const za = (e) => {
|
|
|
4658
4661
|
},
|
|
4659
4662
|
className: `
|
|
4660
4663
|
${Se.ruleItem}
|
|
4661
|
-
${u ===
|
|
4664
|
+
${u === F ? Se.active : ""}
|
|
4662
4665
|
`,
|
|
4663
4666
|
children: [
|
|
4664
|
-
/* @__PURE__ */
|
|
4667
|
+
/* @__PURE__ */ O(
|
|
4665
4668
|
"div",
|
|
4666
4669
|
{
|
|
4667
4670
|
className: `
|
|
@@ -4669,25 +4672,25 @@ const za = (e) => {
|
|
|
4669
4672
|
draggableHandle
|
|
4670
4673
|
`,
|
|
4671
4674
|
onClick: (se) => se.stopPropagation(),
|
|
4672
|
-
children: /* @__PURE__ */
|
|
4675
|
+
children: /* @__PURE__ */ O(Wo, {})
|
|
4673
4676
|
}
|
|
4674
4677
|
),
|
|
4675
4678
|
/* @__PURE__ */ G("div", { className: Se.ruleDescribe, children: [
|
|
4676
|
-
/* @__PURE__ */
|
|
4677
|
-
/* @__PURE__ */
|
|
4679
|
+
/* @__PURE__ */ O("div", { className: Se.ruleType, children: La(A, c) }),
|
|
4680
|
+
/* @__PURE__ */ O("div", { className: Se.ruleRange, children: A.ranges.map((se) => Io(se)).join(",") })
|
|
4678
4681
|
] }),
|
|
4679
|
-
/* @__PURE__ */
|
|
4680
|
-
/* @__PURE__ */
|
|
4682
|
+
/* @__PURE__ */ O("div", { className: Se.preview, children: /* @__PURE__ */ O(wt, { rule: A.rule }) }),
|
|
4683
|
+
/* @__PURE__ */ O(
|
|
4681
4684
|
"div",
|
|
4682
4685
|
{
|
|
4683
4686
|
className: `
|
|
4684
4687
|
${Se.deleteItem}
|
|
4685
|
-
${u ===
|
|
4688
|
+
${u === F ? Se.active : ""}
|
|
4686
4689
|
`,
|
|
4687
4690
|
onClick: (se) => {
|
|
4688
4691
|
se.stopPropagation(), N(A), S([]);
|
|
4689
4692
|
},
|
|
4690
|
-
children: /* @__PURE__ */
|
|
4693
|
+
children: /* @__PURE__ */ O(dn, {})
|
|
4691
4694
|
}
|
|
4692
4695
|
)
|
|
4693
4696
|
]
|
|
@@ -4696,22 +4699,22 @@ const za = (e) => {
|
|
|
4696
4699
|
}
|
|
4697
4700
|
) : null })
|
|
4698
4701
|
] });
|
|
4699
|
-
}, $a = "univer-cf-color-picker",
|
|
4702
|
+
}, $a = "univer-cf-color-picker", ka = "univer-cf-color-picker-icon", Fa = "univer-icon-dropdown", Bn = {
|
|
4700
4703
|
cfColorPicker: $a,
|
|
4701
|
-
cfColorPickerIcon:
|
|
4702
|
-
iconDropdown:
|
|
4704
|
+
cfColorPickerIcon: ka,
|
|
4705
|
+
iconDropdown: Fa
|
|
4703
4706
|
}, ct = (e) => {
|
|
4704
4707
|
const { color: t, onChange: r, disable: n = !1, iconId: o = "PaintBucket", className: i, isNeedDropdownIcon: c = !0 } = e, v = pe(ir), f = Ce(() => new fo(t), [t]), b = v.get(o);
|
|
4705
|
-
return b && (n ? /* @__PURE__ */
|
|
4708
|
+
return b && (n ? /* @__PURE__ */ O(b, { className: i, extend: { colorChannel1: f.isValid ? t : "rgb(var(--primary-color))" } }) : /* @__PURE__ */ O(
|
|
4706
4709
|
sr,
|
|
4707
4710
|
{
|
|
4708
|
-
overlay: /* @__PURE__ */
|
|
4711
|
+
overlay: /* @__PURE__ */ O(
|
|
4709
4712
|
"div",
|
|
4710
4713
|
{
|
|
4711
4714
|
className: `
|
|
4712
4715
|
${Bn.cfColorPicker}
|
|
4713
4716
|
`,
|
|
4714
|
-
children: /* @__PURE__ */
|
|
4717
|
+
children: /* @__PURE__ */ O(Yi, { value: t, onChange: r })
|
|
4715
4718
|
}
|
|
4716
4719
|
),
|
|
4717
4720
|
children: /* @__PURE__ */ G(
|
|
@@ -4722,8 +4725,8 @@ const za = (e) => {
|
|
|
4722
4725
|
${i}
|
|
4723
4726
|
`,
|
|
4724
4727
|
children: [
|
|
4725
|
-
/* @__PURE__ */
|
|
4726
|
-
c && /* @__PURE__ */
|
|
4728
|
+
/* @__PURE__ */ O(b, { extend: { colorChannel1: f.isValid ? t : "rgb(var(--primary-color))" } }),
|
|
4729
|
+
c && /* @__PURE__ */ O(Dn, { className: Bn.iconDropdown })
|
|
4727
4730
|
]
|
|
4728
4731
|
}
|
|
4729
4732
|
)
|
|
@@ -4764,13 +4767,13 @@ const za = (e) => {
|
|
|
4764
4767
|
} : {
|
|
4765
4768
|
min: Number.MIN_SAFE_INTEGER,
|
|
4766
4769
|
max: Number.MAX_SAFE_INTEGER
|
|
4767
|
-
}, [t]), C =
|
|
4770
|
+
}, [t]), C = Fe({}), [_, w] = H(!1);
|
|
4768
4771
|
return Kt((R) => {
|
|
4769
4772
|
var s;
|
|
4770
4773
|
const h = (s = C.current) == null ? void 0 : s.handleOutClick;
|
|
4771
4774
|
h && h(R, () => w(!1));
|
|
4772
|
-
}), t === ne.formula ? /* @__PURE__ */
|
|
4773
|
-
|
|
4775
|
+
}), t === ne.formula ? /* @__PURE__ */ O("div", { style: { width: "100%", marginLeft: 4 }, children: /* @__PURE__ */ O(
|
|
4776
|
+
xn,
|
|
4774
4777
|
{
|
|
4775
4778
|
initValue: b,
|
|
4776
4779
|
unitId: v,
|
|
@@ -4782,7 +4785,7 @@ const za = (e) => {
|
|
|
4782
4785
|
onFocus: () => w(!0),
|
|
4783
4786
|
actions: C.current
|
|
4784
4787
|
}
|
|
4785
|
-
) }) : /* @__PURE__ */
|
|
4788
|
+
) }) : /* @__PURE__ */ O(lt, { className: r, value: Number(e.value) || 0, onChange: (R) => e.onChange(R || 0), ...g });
|
|
4786
4789
|
}, dl = (e) => {
|
|
4787
4790
|
var N;
|
|
4788
4791
|
const { interceptorManager: t } = e, r = pe(Te), n = ((N = e.rule) == null ? void 0 : N.type) === Z.colorScale ? e.rule : void 0, o = [it(ne.num, r), it(ne.percent, r), it(ne.percentile, r), it(ne.formula, r)], i = [it(ne.min, r), ...o], c = [it("none", r), ...o], v = [it(ne.max, r), ...o], [f, b] = H(() => {
|
|
@@ -4803,16 +4806,16 @@ const za = (e) => {
|
|
|
4803
4806
|
const P = n.config[0];
|
|
4804
4807
|
return (P == null ? void 0 : P.value.value) === void 0 ? 10 : P == null ? void 0 : P.value.value;
|
|
4805
4808
|
}), [h, s] = H(() => {
|
|
4806
|
-
var
|
|
4809
|
+
var k;
|
|
4807
4810
|
if (!n || n.config.length !== 3)
|
|
4808
4811
|
return 50;
|
|
4809
|
-
const P = (
|
|
4812
|
+
const P = (k = n.config[1]) == null ? void 0 : k.value.value;
|
|
4810
4813
|
return P === void 0 ? 50 : P;
|
|
4811
4814
|
}), [a, u] = H(() => {
|
|
4812
|
-
var
|
|
4815
|
+
var k;
|
|
4813
4816
|
if (!n)
|
|
4814
4817
|
return 90;
|
|
4815
|
-
const P = (
|
|
4818
|
+
const P = (k = n.config[n.config.length - 1]) == null ? void 0 : k.value.value;
|
|
4816
4819
|
return P === void 0 ? 90 : P;
|
|
4817
4820
|
}), [y, l] = H(() => {
|
|
4818
4821
|
var P;
|
|
@@ -4822,23 +4825,23 @@ const za = (e) => {
|
|
|
4822
4825
|
var P;
|
|
4823
4826
|
const I = "#7790f3";
|
|
4824
4827
|
return !n || n.config.length !== 3 ? I : ((P = n.config[1]) == null ? void 0 : P.color) || I;
|
|
4825
|
-
}), [m,
|
|
4828
|
+
}), [m, x] = H(() => {
|
|
4826
4829
|
var P;
|
|
4827
4830
|
const I = "#2e55ef";
|
|
4828
4831
|
return n && ((P = n.config[n.config.length - 1]) == null ? void 0 : P.color) || I;
|
|
4829
4832
|
}), M = Ce(() => (I) => {
|
|
4830
4833
|
const {
|
|
4831
4834
|
minType: P,
|
|
4832
|
-
medianType:
|
|
4835
|
+
medianType: k,
|
|
4833
4836
|
maxType: U,
|
|
4834
4837
|
minValue: j,
|
|
4835
4838
|
medianValue: ie,
|
|
4836
4839
|
maxValue: te,
|
|
4837
4840
|
minColor: A,
|
|
4838
|
-
medianColor:
|
|
4841
|
+
medianColor: F,
|
|
4839
4842
|
maxColor: se
|
|
4840
4843
|
} = I, ae = [];
|
|
4841
|
-
return ae.push({ color: A, value: { type: P, value: j } }),
|
|
4844
|
+
return ae.push({ color: A, value: { type: P, value: j } }), k !== "none" && ae.push({ color: F, value: { type: k, value: ie } }), ae.push({ color: se, value: { type: U, value: te } }), { config: ae.map((be, xe) => ({ ...be, index: xe })), type: Z.colorScale };
|
|
4842
4845
|
}, []);
|
|
4843
4846
|
Re(() => t.intercept(t.getInterceptPoints().submit, {
|
|
4844
4847
|
handler() {
|
|
@@ -4849,17 +4852,17 @@ const za = (e) => {
|
|
|
4849
4852
|
e.onChange(M(I));
|
|
4850
4853
|
};
|
|
4851
4854
|
return /* @__PURE__ */ G("div", { children: [
|
|
4852
|
-
/* @__PURE__ */
|
|
4853
|
-
/* @__PURE__ */
|
|
4855
|
+
/* @__PURE__ */ O("div", { className: $.title, children: r.t("sheet.cf.panel.styleRule") }),
|
|
4856
|
+
/* @__PURE__ */ O(
|
|
4854
4857
|
"div",
|
|
4855
4858
|
{
|
|
4856
4859
|
className: `
|
|
4857
4860
|
${W.cfPreviewWrap}
|
|
4858
4861
|
`,
|
|
4859
|
-
children: /* @__PURE__ */
|
|
4862
|
+
children: /* @__PURE__ */ O(wt, { rule: M({ minType: f, medianType: g, maxType: _, minValue: S, medianValue: h, maxValue: a, minColor: y, medianColor: p, maxColor: m }) })
|
|
4860
4863
|
}
|
|
4861
4864
|
),
|
|
4862
|
-
/* @__PURE__ */
|
|
4865
|
+
/* @__PURE__ */ O("div", { className: $.label, children: r.t("sheet.cf.valueType.min") }),
|
|
4863
4866
|
/* @__PURE__ */ G(
|
|
4864
4867
|
"div",
|
|
4865
4868
|
{
|
|
@@ -4868,7 +4871,7 @@ const za = (e) => {
|
|
|
4868
4871
|
${$.mTSm}
|
|
4869
4872
|
`,
|
|
4870
4873
|
children: [
|
|
4871
|
-
/* @__PURE__ */
|
|
4874
|
+
/* @__PURE__ */ O(
|
|
4872
4875
|
Ne,
|
|
4873
4876
|
{
|
|
4874
4877
|
style: { flexShrink: 0 },
|
|
@@ -4881,7 +4884,7 @@ const za = (e) => {
|
|
|
4881
4884
|
}
|
|
4882
4885
|
}
|
|
4883
4886
|
),
|
|
4884
|
-
/* @__PURE__ */
|
|
4887
|
+
/* @__PURE__ */ O(
|
|
4885
4888
|
Gn,
|
|
4886
4889
|
{
|
|
4887
4890
|
id: "min",
|
|
@@ -4895,7 +4898,7 @@ const za = (e) => {
|
|
|
4895
4898
|
}
|
|
4896
4899
|
}
|
|
4897
4900
|
),
|
|
4898
|
-
/* @__PURE__ */
|
|
4901
|
+
/* @__PURE__ */ O(
|
|
4899
4902
|
ct,
|
|
4900
4903
|
{
|
|
4901
4904
|
className: $.mLXxs,
|
|
@@ -4908,7 +4911,7 @@ const za = (e) => {
|
|
|
4908
4911
|
]
|
|
4909
4912
|
}
|
|
4910
4913
|
),
|
|
4911
|
-
/* @__PURE__ */
|
|
4914
|
+
/* @__PURE__ */ O("div", { className: $.label, children: r.t("sheet.cf.panel.medianValue") }),
|
|
4912
4915
|
/* @__PURE__ */ G(
|
|
4913
4916
|
"div",
|
|
4914
4917
|
{
|
|
@@ -4917,7 +4920,7 @@ const za = (e) => {
|
|
|
4917
4920
|
${$.mTSm}
|
|
4918
4921
|
`,
|
|
4919
4922
|
children: [
|
|
4920
|
-
/* @__PURE__ */
|
|
4923
|
+
/* @__PURE__ */ O(
|
|
4921
4924
|
Ne,
|
|
4922
4925
|
{
|
|
4923
4926
|
style: { flexShrink: 0 },
|
|
@@ -4930,7 +4933,7 @@ const za = (e) => {
|
|
|
4930
4933
|
}
|
|
4931
4934
|
}
|
|
4932
4935
|
),
|
|
4933
|
-
/* @__PURE__ */
|
|
4936
|
+
/* @__PURE__ */ O(
|
|
4934
4937
|
Gn,
|
|
4935
4938
|
{
|
|
4936
4939
|
id: "median",
|
|
@@ -4944,7 +4947,7 @@ const za = (e) => {
|
|
|
4944
4947
|
}
|
|
4945
4948
|
}
|
|
4946
4949
|
),
|
|
4947
|
-
g !== "none" && /* @__PURE__ */
|
|
4950
|
+
g !== "none" && /* @__PURE__ */ O(
|
|
4948
4951
|
ct,
|
|
4949
4952
|
{
|
|
4950
4953
|
className: $.mLXxs,
|
|
@@ -4957,7 +4960,7 @@ const za = (e) => {
|
|
|
4957
4960
|
]
|
|
4958
4961
|
}
|
|
4959
4962
|
),
|
|
4960
|
-
/* @__PURE__ */
|
|
4963
|
+
/* @__PURE__ */ O("div", { className: $.label, children: r.t("sheet.cf.valueType.max") }),
|
|
4961
4964
|
/* @__PURE__ */ G(
|
|
4962
4965
|
"div",
|
|
4963
4966
|
{
|
|
@@ -4966,7 +4969,7 @@ const za = (e) => {
|
|
|
4966
4969
|
${$.mTSm}
|
|
4967
4970
|
`,
|
|
4968
4971
|
children: [
|
|
4969
|
-
/* @__PURE__ */
|
|
4972
|
+
/* @__PURE__ */ O(
|
|
4970
4973
|
Ne,
|
|
4971
4974
|
{
|
|
4972
4975
|
style: { flexShrink: 0 },
|
|
@@ -4979,7 +4982,7 @@ const za = (e) => {
|
|
|
4979
4982
|
}
|
|
4980
4983
|
}
|
|
4981
4984
|
),
|
|
4982
|
-
/* @__PURE__ */
|
|
4985
|
+
/* @__PURE__ */ O(
|
|
4983
4986
|
Gn,
|
|
4984
4987
|
{
|
|
4985
4988
|
id: "max",
|
|
@@ -4993,13 +4996,13 @@ const za = (e) => {
|
|
|
4993
4996
|
}
|
|
4994
4997
|
}
|
|
4995
4998
|
),
|
|
4996
|
-
/* @__PURE__ */
|
|
4999
|
+
/* @__PURE__ */ O(
|
|
4997
5000
|
ct,
|
|
4998
5001
|
{
|
|
4999
5002
|
className: $.mLXxs,
|
|
5000
5003
|
color: m,
|
|
5001
5004
|
onChange: (I) => {
|
|
5002
|
-
|
|
5005
|
+
x(I), L({ minType: f, medianType: g, maxType: _, minValue: S, medianValue: h, maxValue: a, minColor: y, medianColor: p, maxColor: I });
|
|
5003
5006
|
}
|
|
5004
5007
|
}
|
|
5005
5008
|
)
|
|
@@ -5009,13 +5012,13 @@ const za = (e) => {
|
|
|
5009
5012
|
] });
|
|
5010
5013
|
}, ht = (e, t) => ({ label: t.t(`sheet.cf.valueType.${e}`), value: e }), eo = (e) => {
|
|
5011
5014
|
var R;
|
|
5012
|
-
const { onChange: t, className: r, value: n, type: o, id: i, disabled: c = !1 } = e, v = pe(de), f = v.getCurrentUnitForType(oe.UNIVER_SHEET).getUnitId(), b = (R = v.getCurrentUnitForType(oe.UNIVER_SHEET).getActiveSheet()) == null ? void 0 : R.getSheetId(), g =
|
|
5015
|
+
const { onChange: t, className: r, value: n, type: o, id: i, disabled: c = !1 } = e, v = pe(de), f = v.getCurrentUnitForType(oe.UNIVER_SHEET).getUnitId(), b = (R = v.getCurrentUnitForType(oe.UNIVER_SHEET).getActiveSheet()) == null ? void 0 : R.getSheetId(), g = Fe({}), [C, _] = H(!1);
|
|
5013
5016
|
Kt((h) => {
|
|
5014
5017
|
var a;
|
|
5015
5018
|
const s = (a = g.current) == null ? void 0 : a.handleOutClick;
|
|
5016
5019
|
s && s(h, () => _(!1));
|
|
5017
5020
|
});
|
|
5018
|
-
const w =
|
|
5021
|
+
const w = Fe(n), S = Ce(() => [ne.percentile, ne.percent].includes(o) ? {
|
|
5019
5022
|
max: 100,
|
|
5020
5023
|
min: 0
|
|
5021
5024
|
} : {
|
|
@@ -5024,8 +5027,8 @@ const za = (e) => {
|
|
|
5024
5027
|
}, [o]);
|
|
5025
5028
|
if (o === ne.formula) {
|
|
5026
5029
|
const h = String(w.current).startsWith("=") ? String(w.current) || "" : "=";
|
|
5027
|
-
return /* @__PURE__ */
|
|
5028
|
-
|
|
5030
|
+
return /* @__PURE__ */ O("div", { style: { width: "100%", marginLeft: 12 }, children: /* @__PURE__ */ O(
|
|
5031
|
+
xn,
|
|
5029
5032
|
{
|
|
5030
5033
|
initValue: h,
|
|
5031
5034
|
unitId: f,
|
|
@@ -5039,7 +5042,7 @@ const za = (e) => {
|
|
|
5039
5042
|
}
|
|
5040
5043
|
) });
|
|
5041
5044
|
}
|
|
5042
|
-
return /* @__PURE__ */
|
|
5045
|
+
return /* @__PURE__ */ O(
|
|
5043
5046
|
lt,
|
|
5044
5047
|
{
|
|
5045
5048
|
className: r,
|
|
@@ -5059,7 +5062,7 @@ const za = (e) => {
|
|
|
5059
5062
|
return n ? (P = n.config) != null && P.isGradient ? "1" : "0" : I;
|
|
5060
5063
|
}), [c, v] = H(() => {
|
|
5061
5064
|
var I;
|
|
5062
|
-
return n ? ((I = n.config) == null ? void 0 : I.positiveColor) ||
|
|
5065
|
+
return n ? ((I = n.config) == null ? void 0 : I.positiveColor) || Ft : Ft;
|
|
5063
5066
|
}), [f, b] = H(() => {
|
|
5064
5067
|
var I;
|
|
5065
5068
|
return n ? ((I = n.config) == null ? void 0 : I.nativeColor) || Vt : Vt;
|
|
@@ -5072,22 +5075,22 @@ const za = (e) => {
|
|
|
5072
5075
|
const I = _[0].value;
|
|
5073
5076
|
return n && ((P = n.config) == null ? void 0 : P.max.type) || I;
|
|
5074
5077
|
}), [s, a] = H(() => {
|
|
5075
|
-
var
|
|
5078
|
+
var k;
|
|
5076
5079
|
if (!n)
|
|
5077
5080
|
return 0;
|
|
5078
|
-
const P = ((
|
|
5081
|
+
const P = ((k = n.config) == null ? void 0 : k.min) || {};
|
|
5079
5082
|
return P.type === ne.formula ? P.value || "=" : P.value || 0;
|
|
5080
5083
|
}), [u, y] = H(() => {
|
|
5081
|
-
var
|
|
5084
|
+
var k;
|
|
5082
5085
|
if (!n)
|
|
5083
5086
|
return 100;
|
|
5084
|
-
const P = ((
|
|
5087
|
+
const P = ((k = n.config) == null ? void 0 : k.max) || {};
|
|
5085
5088
|
return P.type === ne.formula ? P.value || "=" : P.value === void 0 ? 100 : P.value;
|
|
5086
5089
|
}), [l, p] = H(() => n ? n.isShowValue === void 0 ? !0 : !!n.isShowValue : !0), d = (I) => ({ config: {
|
|
5087
5090
|
min: { type: I.minValueType, value: I.minValue },
|
|
5088
5091
|
max: { type: I.maxValueType, value: I.maxValue },
|
|
5089
5092
|
isGradient: I.isGradient === "1",
|
|
5090
|
-
positiveColor: I.positiveColor ||
|
|
5093
|
+
positiveColor: I.positiveColor || Ft,
|
|
5091
5094
|
nativeColor: I.nativeColor || Vt
|
|
5092
5095
|
}, type: Z.dataBar, isShowValue: I.isShowValue });
|
|
5093
5096
|
Re(() => t.intercept(t.getInterceptPoints().submit, {
|
|
@@ -5097,24 +5100,24 @@ const za = (e) => {
|
|
|
5097
5100
|
}), [o, s, w, u, R, c, f, t, l]);
|
|
5098
5101
|
const m = (I) => {
|
|
5099
5102
|
e.onChange(d(I));
|
|
5100
|
-
},
|
|
5103
|
+
}, x = (I) => {
|
|
5101
5104
|
v(I), m({ isGradient: o, minValue: s, minValueType: w, maxValue: u, maxValueType: R, positiveColor: I, nativeColor: f, isShowValue: l });
|
|
5102
5105
|
}, M = (I) => {
|
|
5103
5106
|
b(I), m({ isGradient: o, minValue: s, minValueType: w, maxValue: u, maxValueType: R, positiveColor: c, nativeColor: I, isShowValue: l });
|
|
5104
5107
|
}, L = (I) => g.map((P) => P.value).includes(I);
|
|
5105
5108
|
return /* @__PURE__ */ G("div", { children: [
|
|
5106
|
-
/* @__PURE__ */
|
|
5107
|
-
/* @__PURE__ */
|
|
5109
|
+
/* @__PURE__ */ O("div", { className: $.title, children: r.t("sheet.cf.panel.styleRule") }),
|
|
5110
|
+
/* @__PURE__ */ O(
|
|
5108
5111
|
"div",
|
|
5109
5112
|
{
|
|
5110
5113
|
className: `
|
|
5111
5114
|
${W.cfPreviewWrap}
|
|
5112
5115
|
`,
|
|
5113
|
-
children: /* @__PURE__ */
|
|
5116
|
+
children: /* @__PURE__ */ O(wt, { rule: d({ isGradient: o, minValue: s, minValueType: w, maxValue: u, maxValueType: R, positiveColor: c, nativeColor: f, isShowValue: l }) })
|
|
5114
5117
|
}
|
|
5115
5118
|
),
|
|
5116
5119
|
/* @__PURE__ */ G("div", { children: [
|
|
5117
|
-
/* @__PURE__ */
|
|
5120
|
+
/* @__PURE__ */ O("div", { className: $.label, children: r.t("sheet.cf.panel.fillType") }),
|
|
5118
5121
|
/* @__PURE__ */ G(
|
|
5119
5122
|
"div",
|
|
5120
5123
|
{
|
|
@@ -5132,8 +5135,8 @@ const za = (e) => {
|
|
|
5132
5135
|
i(I), m({ isGradient: I, minValue: s, minValueType: w, maxValue: u, maxValueType: R, positiveColor: c, nativeColor: f, isShowValue: l });
|
|
5133
5136
|
},
|
|
5134
5137
|
children: [
|
|
5135
|
-
/* @__PURE__ */
|
|
5136
|
-
/* @__PURE__ */
|
|
5138
|
+
/* @__PURE__ */ O(vr, { value: "0", children: /* @__PURE__ */ O("span", { className: W.text, children: r.t("sheet.cf.panel.pureColor") }) }),
|
|
5139
|
+
/* @__PURE__ */ O(vr, { value: "1", children: /* @__PURE__ */ O("span", { className: W.text, children: r.t("sheet.cf.panel.gradient") }) })
|
|
5137
5140
|
]
|
|
5138
5141
|
}
|
|
5139
5142
|
),
|
|
@@ -5145,7 +5148,7 @@ const za = (e) => {
|
|
|
5145
5148
|
${$.mLXl}
|
|
5146
5149
|
`,
|
|
5147
5150
|
children: [
|
|
5148
|
-
/* @__PURE__ */
|
|
5151
|
+
/* @__PURE__ */ O(
|
|
5149
5152
|
gn,
|
|
5150
5153
|
{
|
|
5151
5154
|
checked: !l,
|
|
@@ -5163,7 +5166,7 @@ const za = (e) => {
|
|
|
5163
5166
|
)
|
|
5164
5167
|
] }),
|
|
5165
5168
|
/* @__PURE__ */ G("div", { children: [
|
|
5166
|
-
/* @__PURE__ */
|
|
5169
|
+
/* @__PURE__ */ O("div", { className: $.label, children: r.t("sheet.cf.panel.colorSet") }),
|
|
5167
5170
|
/* @__PURE__ */ G(
|
|
5168
5171
|
"div",
|
|
5169
5172
|
{
|
|
@@ -5180,7 +5183,7 @@ const za = (e) => {
|
|
|
5180
5183
|
${$.labelContainer}
|
|
5181
5184
|
`,
|
|
5182
5185
|
children: [
|
|
5183
|
-
/* @__PURE__ */
|
|
5186
|
+
/* @__PURE__ */ O(
|
|
5184
5187
|
"div",
|
|
5185
5188
|
{
|
|
5186
5189
|
className: `
|
|
@@ -5189,7 +5192,7 @@ const za = (e) => {
|
|
|
5189
5192
|
children: r.t("sheet.cf.panel.native")
|
|
5190
5193
|
}
|
|
5191
5194
|
),
|
|
5192
|
-
/* @__PURE__ */
|
|
5195
|
+
/* @__PURE__ */ O(
|
|
5193
5196
|
ct,
|
|
5194
5197
|
{
|
|
5195
5198
|
color: f,
|
|
@@ -5207,7 +5210,7 @@ const za = (e) => {
|
|
|
5207
5210
|
${$.mLSm}
|
|
5208
5211
|
`,
|
|
5209
5212
|
children: [
|
|
5210
|
-
/* @__PURE__ */
|
|
5213
|
+
/* @__PURE__ */ O(
|
|
5211
5214
|
"div",
|
|
5212
5215
|
{
|
|
5213
5216
|
className: `
|
|
@@ -5216,11 +5219,11 @@ const za = (e) => {
|
|
|
5216
5219
|
children: r.t("sheet.cf.panel.positive")
|
|
5217
5220
|
}
|
|
5218
5221
|
),
|
|
5219
|
-
/* @__PURE__ */
|
|
5222
|
+
/* @__PURE__ */ O(
|
|
5220
5223
|
ct,
|
|
5221
5224
|
{
|
|
5222
5225
|
color: c,
|
|
5223
|
-
onChange:
|
|
5226
|
+
onChange: x
|
|
5224
5227
|
}
|
|
5225
5228
|
)
|
|
5226
5229
|
]
|
|
@@ -5231,7 +5234,7 @@ const za = (e) => {
|
|
|
5231
5234
|
)
|
|
5232
5235
|
] }),
|
|
5233
5236
|
/* @__PURE__ */ G("div", { children: [
|
|
5234
|
-
/* @__PURE__ */
|
|
5237
|
+
/* @__PURE__ */ O("div", { className: $.label, children: r.t("sheet.cf.valueType.min") }),
|
|
5235
5238
|
/* @__PURE__ */ G(
|
|
5236
5239
|
"div",
|
|
5237
5240
|
{
|
|
@@ -5240,7 +5243,7 @@ const za = (e) => {
|
|
|
5240
5243
|
${$.labelContainer}
|
|
5241
5244
|
`,
|
|
5242
5245
|
children: [
|
|
5243
|
-
/* @__PURE__ */
|
|
5246
|
+
/* @__PURE__ */ O(
|
|
5244
5247
|
Ne,
|
|
5245
5248
|
{
|
|
5246
5249
|
style: { width: "50%", flexShrink: 0 },
|
|
@@ -5253,7 +5256,7 @@ const za = (e) => {
|
|
|
5253
5256
|
}
|
|
5254
5257
|
}
|
|
5255
5258
|
),
|
|
5256
|
-
/* @__PURE__ */
|
|
5259
|
+
/* @__PURE__ */ O(
|
|
5257
5260
|
eo,
|
|
5258
5261
|
{
|
|
5259
5262
|
disabled: !L(w),
|
|
@@ -5269,7 +5272,7 @@ const za = (e) => {
|
|
|
5269
5272
|
]
|
|
5270
5273
|
}
|
|
5271
5274
|
),
|
|
5272
|
-
/* @__PURE__ */
|
|
5275
|
+
/* @__PURE__ */ O("div", { className: $.label, children: r.t("sheet.cf.valueType.max") }),
|
|
5273
5276
|
/* @__PURE__ */ G(
|
|
5274
5277
|
"div",
|
|
5275
5278
|
{
|
|
@@ -5278,7 +5281,7 @@ const za = (e) => {
|
|
|
5278
5281
|
${$.labelContainer}
|
|
5279
5282
|
`,
|
|
5280
5283
|
children: [
|
|
5281
|
-
/* @__PURE__ */
|
|
5284
|
+
/* @__PURE__ */ O(
|
|
5282
5285
|
Ne,
|
|
5283
5286
|
{
|
|
5284
5287
|
style: { width: "50%", flexShrink: 0 },
|
|
@@ -5291,7 +5294,7 @@ const za = (e) => {
|
|
|
5291
5294
|
}
|
|
5292
5295
|
}
|
|
5293
5296
|
),
|
|
5294
|
-
/* @__PURE__ */
|
|
5297
|
+
/* @__PURE__ */ O(
|
|
5295
5298
|
eo,
|
|
5296
5299
|
{
|
|
5297
5300
|
disabled: !L(R),
|
|
@@ -5363,18 +5366,18 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
5363
5366
|
${n}
|
|
5364
5367
|
`,
|
|
5365
5368
|
children: [
|
|
5366
|
-
s && /* @__PURE__ */
|
|
5367
|
-
a && /* @__PURE__ */
|
|
5368
|
-
u && /* @__PURE__ */
|
|
5369
|
-
y && /* @__PURE__ */
|
|
5370
|
-
/* @__PURE__ */
|
|
5371
|
-
/* @__PURE__ */
|
|
5369
|
+
s && /* @__PURE__ */ O("div", { className: on({ [Be.isActive]: an(i || Me.FALSE) }, Be.buttonItem), onClick: () => c(sn(i)), children: /* @__PURE__ */ O(s, {}) }),
|
|
5370
|
+
a && /* @__PURE__ */ O("div", { className: on({ [Be.isActive]: an(v || Me.FALSE) }, Be.buttonItem), onClick: () => f(sn(v)), children: /* @__PURE__ */ O(a, {}) }),
|
|
5371
|
+
u && /* @__PURE__ */ O("div", { className: on({ [Be.isActive]: an(b || Me.FALSE) }, Be.buttonItem), onClick: () => g(sn(b)), children: /* @__PURE__ */ O(u, {}) }),
|
|
5372
|
+
y && /* @__PURE__ */ O("div", { className: on({ [Be.isActive]: an(C || Me.FALSE) }, Be.buttonItem), onClick: () => _(sn(C)), children: /* @__PURE__ */ O(y, {}) }),
|
|
5373
|
+
/* @__PURE__ */ O(ct, { color: w, onChange: S, iconId: "FontColor" }),
|
|
5374
|
+
/* @__PURE__ */ O(ct, { color: R, onChange: h, iconId: "PaintBucket" })
|
|
5372
5375
|
]
|
|
5373
5376
|
}
|
|
5374
5377
|
);
|
|
5375
5378
|
}, ml = (e) => {
|
|
5376
5379
|
var y;
|
|
5377
|
-
const { onChange: t, interceptorManager: r } = e, n = pe(Te), i = pe(de).getCurrentUnitForType(oe.UNIVER_SHEET), c = i.getActiveSheet(), v = ((y = e.rule) == null ? void 0 : y.type) === Z.highlightCell ? e.rule : void 0, f =
|
|
5380
|
+
const { onChange: t, interceptorManager: r } = e, n = pe(Te), i = pe(de).getCurrentUnitForType(oe.UNIVER_SHEET), c = i.getActiveSheet(), v = ((y = e.rule) == null ? void 0 : y.type) === Z.highlightCell ? e.rule : void 0, f = Fe(null), [b, g] = H(!1), C = Fe({}), [_, w] = H({}), [S, R] = H(() => (v == null ? void 0 : v.subType) === X.formula ? v.value : "="), [h, s] = H(void 0), a = (l) => ({
|
|
5378
5381
|
style: l.style,
|
|
5379
5382
|
value: S,
|
|
5380
5383
|
type: Z.highlightCell,
|
|
@@ -5395,7 +5398,7 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
5395
5398
|
const p = (d = C.current) == null ? void 0 : d.handleOutClick;
|
|
5396
5399
|
p && p(l, () => g(!1));
|
|
5397
5400
|
}), /* @__PURE__ */ G("div", { ref: f, children: [
|
|
5398
|
-
/* @__PURE__ */
|
|
5401
|
+
/* @__PURE__ */ O(
|
|
5399
5402
|
"div",
|
|
5400
5403
|
{
|
|
5401
5404
|
className: `
|
|
@@ -5405,14 +5408,14 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
5405
5408
|
children: n.t("sheet.cf.panel.styleRule")
|
|
5406
5409
|
}
|
|
5407
5410
|
),
|
|
5408
|
-
/* @__PURE__ */
|
|
5411
|
+
/* @__PURE__ */ O(
|
|
5409
5412
|
"div",
|
|
5410
5413
|
{
|
|
5411
5414
|
className: `
|
|
5412
5415
|
${$.mTSm}
|
|
5413
5416
|
`,
|
|
5414
|
-
children: /* @__PURE__ */
|
|
5415
|
-
|
|
5417
|
+
children: /* @__PURE__ */ O(
|
|
5418
|
+
xn,
|
|
5416
5419
|
{
|
|
5417
5420
|
onChange: (l) => {
|
|
5418
5421
|
R(l), u({ style: _ });
|
|
@@ -5433,16 +5436,16 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
5433
5436
|
)
|
|
5434
5437
|
}
|
|
5435
5438
|
),
|
|
5436
|
-
/* @__PURE__ */
|
|
5439
|
+
/* @__PURE__ */ O(
|
|
5437
5440
|
"div",
|
|
5438
5441
|
{
|
|
5439
5442
|
className: `
|
|
5440
5443
|
${W.cfPreviewWrap}
|
|
5441
5444
|
`,
|
|
5442
|
-
children: /* @__PURE__ */
|
|
5445
|
+
children: /* @__PURE__ */ O(wt, { rule: a({ style: _ }) })
|
|
5443
5446
|
}
|
|
5444
5447
|
),
|
|
5445
|
-
/* @__PURE__ */
|
|
5448
|
+
/* @__PURE__ */ O(
|
|
5446
5449
|
gr,
|
|
5447
5450
|
{
|
|
5448
5451
|
style: v == null ? void 0 : v.style,
|
|
@@ -5456,7 +5459,7 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
5456
5459
|
)
|
|
5457
5460
|
] });
|
|
5458
5461
|
}, ln = (e) => /* @__PURE__ */ G("div", { style: { position: "relative" }, children: [
|
|
5459
|
-
/* @__PURE__ */
|
|
5462
|
+
/* @__PURE__ */ O(
|
|
5460
5463
|
"div",
|
|
5461
5464
|
{
|
|
5462
5465
|
style: {
|
|
@@ -5499,7 +5502,7 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
5499
5502
|
}
|
|
5500
5503
|
}, [t]), Re(() => {
|
|
5501
5504
|
const d = i.intercept(i.getInterceptPoints().beforeSubmit, {
|
|
5502
|
-
handler: (m,
|
|
5505
|
+
handler: (m, x, M) => {
|
|
5503
5506
|
switch (t) {
|
|
5504
5507
|
case X.text:
|
|
5505
5508
|
if ([
|
|
@@ -5531,13 +5534,13 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
5531
5534
|
const d = (m) => {
|
|
5532
5535
|
_(m), n(m);
|
|
5533
5536
|
};
|
|
5534
|
-
return /* @__PURE__ */
|
|
5537
|
+
return /* @__PURE__ */ O(
|
|
5535
5538
|
"div",
|
|
5536
5539
|
{
|
|
5537
5540
|
className: `
|
|
5538
5541
|
${$.mTSm}
|
|
5539
5542
|
`,
|
|
5540
|
-
children: /* @__PURE__ */
|
|
5543
|
+
children: /* @__PURE__ */ O(ln, { errorText: w, children: /* @__PURE__ */ O(
|
|
5541
5544
|
Zi,
|
|
5542
5545
|
{
|
|
5543
5546
|
className: W.width100,
|
|
@@ -5564,21 +5567,21 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
5564
5567
|
const d = (m) => {
|
|
5565
5568
|
f(m || 0), n(m || 0), g("");
|
|
5566
5569
|
};
|
|
5567
|
-
return /* @__PURE__ */
|
|
5570
|
+
return /* @__PURE__ */ O(
|
|
5568
5571
|
"div",
|
|
5569
5572
|
{
|
|
5570
5573
|
className: `
|
|
5571
5574
|
${$.mTSm}
|
|
5572
5575
|
`,
|
|
5573
|
-
children: /* @__PURE__ */
|
|
5576
|
+
children: /* @__PURE__ */ O(ln, { errorText: b, children: /* @__PURE__ */ O(lt, { min: Number.MIN_SAFE_INTEGER, max: Number.MAX_SAFE_INTEGER, className: W.width100, value: v, onChange: d }) })
|
|
5574
5577
|
}
|
|
5575
5578
|
);
|
|
5576
5579
|
}
|
|
5577
5580
|
if ([Q.between, Q.notBetween].includes(r)) {
|
|
5578
|
-
const d = (
|
|
5579
|
-
h(
|
|
5580
|
-
}, m = (
|
|
5581
|
-
y(
|
|
5581
|
+
const d = (x) => {
|
|
5582
|
+
h(x || 0), n([x || 0, u]), a("");
|
|
5583
|
+
}, m = (x) => {
|
|
5584
|
+
y(x || 0), n([R, x || 0]), p("");
|
|
5582
5585
|
};
|
|
5583
5586
|
return /* @__PURE__ */ G(
|
|
5584
5587
|
"div",
|
|
@@ -5588,8 +5591,8 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
5588
5591
|
${$.labelContainer}
|
|
5589
5592
|
`,
|
|
5590
5593
|
children: [
|
|
5591
|
-
/* @__PURE__ */
|
|
5592
|
-
/* @__PURE__ */
|
|
5594
|
+
/* @__PURE__ */ O(ln, { errorText: s, children: /* @__PURE__ */ O(lt, { min: Number.MIN_SAFE_INTEGER, max: Number.MAX_SAFE_INTEGER, value: R, onChange: d }) }),
|
|
5595
|
+
/* @__PURE__ */ O(ln, { errorText: l, children: /* @__PURE__ */ O(
|
|
5593
5596
|
lt,
|
|
5594
5597
|
{
|
|
5595
5598
|
min: Number.MIN_SAFE_INTEGER,
|
|
@@ -5682,7 +5685,7 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
5682
5685
|
const l = "";
|
|
5683
5686
|
return o ? (d = o.value) != null ? d : hn(o.subType, o.operator) : l;
|
|
5684
5687
|
}), [w, S] = H({}), R = Ce(() => (l) => {
|
|
5685
|
-
var p, d, m,
|
|
5688
|
+
var p, d, m, x, M, L, N, I, P, k, U, j, ie, te, A;
|
|
5686
5689
|
switch (l.subType || i) {
|
|
5687
5690
|
case X.text: {
|
|
5688
5691
|
if ([
|
|
@@ -5698,7 +5701,7 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
5698
5701
|
subType: (p = l.subType) != null ? p : i,
|
|
5699
5702
|
operator: (d = l.operator) != null ? d : b,
|
|
5700
5703
|
style: (m = l.style) != null ? m : w,
|
|
5701
|
-
value: (
|
|
5704
|
+
value: (x = l.value) != null ? x : C
|
|
5702
5705
|
};
|
|
5703
5706
|
break;
|
|
5704
5707
|
}
|
|
@@ -5722,7 +5725,7 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
5722
5725
|
return {
|
|
5723
5726
|
type: Z.highlightCell,
|
|
5724
5727
|
subType: (P = l.subType) != null ? P : i,
|
|
5725
|
-
operator: (
|
|
5728
|
+
operator: (k = l.operator) != null ? k : b,
|
|
5726
5729
|
style: (U = l.style) != null ? U : w,
|
|
5727
5730
|
value: (j = l.value) != null ? j : C
|
|
5728
5731
|
};
|
|
@@ -5753,7 +5756,7 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
5753
5756
|
_(l), r(R({ value: l }));
|
|
5754
5757
|
}, u = Ce(() => `${i}_${b}_${Math.random()}`, [i, b]);
|
|
5755
5758
|
return /* @__PURE__ */ G("div", { children: [
|
|
5756
|
-
/* @__PURE__ */
|
|
5759
|
+
/* @__PURE__ */ O(
|
|
5757
5760
|
"div",
|
|
5758
5761
|
{
|
|
5759
5762
|
className: `
|
|
@@ -5763,7 +5766,7 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
5763
5766
|
children: n.t("sheet.cf.panel.styleRule")
|
|
5764
5767
|
}
|
|
5765
5768
|
),
|
|
5766
|
-
/* @__PURE__ */
|
|
5769
|
+
/* @__PURE__ */ O(
|
|
5767
5770
|
Ne,
|
|
5768
5771
|
{
|
|
5769
5772
|
className: `
|
|
@@ -5775,7 +5778,7 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
5775
5778
|
options: v
|
|
5776
5779
|
}
|
|
5777
5780
|
),
|
|
5778
|
-
(f == null ? void 0 : f.length) && /* @__PURE__ */
|
|
5781
|
+
(f == null ? void 0 : f.length) && /* @__PURE__ */ O(
|
|
5779
5782
|
Ne,
|
|
5780
5783
|
{
|
|
5781
5784
|
className: `
|
|
@@ -5787,17 +5790,17 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
5787
5790
|
options: f
|
|
5788
5791
|
}
|
|
5789
5792
|
),
|
|
5790
|
-
/* @__PURE__ */
|
|
5791
|
-
/* @__PURE__ */
|
|
5793
|
+
/* @__PURE__ */ O(vl, { value: C, interceptorManager: t, type: i, operator: b, rule: o, onChange: a }, u),
|
|
5794
|
+
/* @__PURE__ */ O(
|
|
5792
5795
|
"div",
|
|
5793
5796
|
{
|
|
5794
5797
|
className: `
|
|
5795
5798
|
${W.cfPreviewWrap}
|
|
5796
5799
|
`,
|
|
5797
|
-
children: /* @__PURE__ */
|
|
5800
|
+
children: /* @__PURE__ */ O(wt, { rule: R({}) })
|
|
5798
5801
|
}
|
|
5799
5802
|
),
|
|
5800
|
-
/* @__PURE__ */
|
|
5803
|
+
/* @__PURE__ */ O(
|
|
5801
5804
|
gr,
|
|
5802
5805
|
{
|
|
5803
5806
|
style: o == null ? void 0 : o.style,
|
|
@@ -5812,16 +5815,16 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
5812
5815
|
] });
|
|
5813
5816
|
}, oi = (e, t) => (at[e] || [])[Number(t)] || "", yl = (e) => {
|
|
5814
5817
|
var f;
|
|
5815
|
-
const t = pe(de), r = t.getCurrentUnitForType(oe.UNIVER_SHEET).getUnitId(), n = (f = t.getCurrentUnitForType(oe.UNIVER_SHEET).getActiveSheet()) == null ? void 0 : f.getSheetId(), o = Ce(() => e.error ? W.errorInput : "", [e.error]), i =
|
|
5818
|
+
const t = pe(de), r = t.getCurrentUnitForType(oe.UNIVER_SHEET).getUnitId(), n = (f = t.getCurrentUnitForType(oe.UNIVER_SHEET).getActiveSheet()) == null ? void 0 : f.getSheetId(), o = Ce(() => e.error ? W.errorInput : "", [e.error]), i = Fe({}), [c, v] = H(!1);
|
|
5816
5819
|
return Kt((b) => {
|
|
5817
5820
|
var C;
|
|
5818
5821
|
const g = (C = i.current) == null ? void 0 : C.handleOutClick;
|
|
5819
5822
|
g && g(b, () => v(!1));
|
|
5820
|
-
}), /* @__PURE__ */
|
|
5821
|
-
/* @__PURE__ */
|
|
5822
|
-
e.error && /* @__PURE__ */
|
|
5823
|
-
] }) : /* @__PURE__ */
|
|
5824
|
-
|
|
5823
|
+
}), /* @__PURE__ */ O("div", { className: W.positionRelative, children: e.type !== ne.formula ? /* @__PURE__ */ G(Qn, { children: [
|
|
5824
|
+
/* @__PURE__ */ O(lt, { className: o, value: Number(e.value) || 0, onChange: (b) => e.onChange(b != null ? b : 0) }),
|
|
5825
|
+
e.error && /* @__PURE__ */ O("div", { className: W.errorText, children: e.error })
|
|
5826
|
+
] }) : /* @__PURE__ */ O("div", { style: { width: "100%" }, children: /* @__PURE__ */ O(
|
|
5827
|
+
xn,
|
|
5825
5828
|
{
|
|
5826
5829
|
initValue: String(e.value),
|
|
5827
5830
|
unitId: r,
|
|
@@ -5844,11 +5847,11 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
5844
5847
|
const r = pe(Te), n = (o) => {
|
|
5845
5848
|
e.onClick(o);
|
|
5846
5849
|
};
|
|
5847
|
-
return /* @__PURE__ */
|
|
5848
|
-
/* @__PURE__ */
|
|
5849
|
-
/* @__PURE__ */
|
|
5850
|
+
return /* @__PURE__ */ O("div", { ref: t, className: W.iconGroupList, children: Ri.map((o, i) => /* @__PURE__ */ G("div", { className: W.group, children: [
|
|
5851
|
+
/* @__PURE__ */ O("div", { className: W.title, children: r.t(o.title) }),
|
|
5852
|
+
/* @__PURE__ */ O("div", { className: W.itemContent, children: o.group.map((c) => /* @__PURE__ */ O("div", { className: W.itemWrap, onClick: () => {
|
|
5850
5853
|
n(c.name);
|
|
5851
|
-
}, children: /* @__PURE__ */
|
|
5854
|
+
}, children: /* @__PURE__ */ O("div", { className: W.item, children: c.list.map((v, f) => /* @__PURE__ */ O("img", { className: W.icon, src: v }, f)) }) }, c.name)) })
|
|
5852
5855
|
] }, i)) });
|
|
5853
5856
|
}), Sl = (e) => {
|
|
5854
5857
|
const t = Ce(() => {
|
|
@@ -5869,10 +5872,10 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
5869
5872
|
};
|
|
5870
5873
|
return /* @__PURE__ */ G("div", { className: W.iconItemListWrap, children: [
|
|
5871
5874
|
/* @__PURE__ */ G("div", { className: W.none, onClick: () => r({ iconType: Ii, iconId: "" }), children: [
|
|
5872
|
-
/* @__PURE__ */
|
|
5873
|
-
/* @__PURE__ */
|
|
5875
|
+
/* @__PURE__ */ O(Zt, { className: W.icon }),
|
|
5876
|
+
/* @__PURE__ */ O("span", { children: "无单元格图标" })
|
|
5874
5877
|
] }),
|
|
5875
|
-
/* @__PURE__ */
|
|
5878
|
+
/* @__PURE__ */ O("div", { className: W.iconItemList, children: t.map((n) => /* @__PURE__ */ O("div", { className: W.item, children: /* @__PURE__ */ O(
|
|
5876
5879
|
"img",
|
|
5877
5880
|
{
|
|
5878
5881
|
onClick: () => r(n),
|
|
@@ -5935,7 +5938,7 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
5935
5938
|
]
|
|
5936
5939
|
}
|
|
5937
5940
|
),
|
|
5938
|
-
/* @__PURE__ */
|
|
5941
|
+
/* @__PURE__ */ O(
|
|
5939
5942
|
"div",
|
|
5940
5943
|
{
|
|
5941
5944
|
className: `
|
|
@@ -5965,16 +5968,16 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
5965
5968
|
${$.mTSm}
|
|
5966
5969
|
`,
|
|
5967
5970
|
children: [
|
|
5968
|
-
/* @__PURE__ */
|
|
5971
|
+
/* @__PURE__ */ O(
|
|
5969
5972
|
"div",
|
|
5970
5973
|
{
|
|
5971
5974
|
className: `
|
|
5972
5975
|
${W.iconWrap}
|
|
5973
5976
|
${W.width45}
|
|
5974
5977
|
`,
|
|
5975
|
-
children: /* @__PURE__ */
|
|
5976
|
-
S ? /* @__PURE__ */
|
|
5977
|
-
/* @__PURE__ */
|
|
5978
|
+
children: /* @__PURE__ */ O(sr, { overlay: /* @__PURE__ */ O(Sl, { onClick: u, iconId: C.iconId, iconType: C.iconType }), children: /* @__PURE__ */ G("div", { className: W.dropdownIcon, children: [
|
|
5979
|
+
S ? /* @__PURE__ */ O("img", { src: S, className: W.icon }) : /* @__PURE__ */ O(Zt, { className: W.icon }),
|
|
5980
|
+
/* @__PURE__ */ O(Dn, {})
|
|
5978
5981
|
] }) })
|
|
5979
5982
|
}
|
|
5980
5983
|
),
|
|
@@ -5998,7 +6001,7 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
5998
6001
|
] })
|
|
5999
6002
|
]
|
|
6000
6003
|
}
|
|
6001
|
-
) : /* @__PURE__ */
|
|
6004
|
+
) : /* @__PURE__ */ O(
|
|
6002
6005
|
Ne,
|
|
6003
6006
|
{
|
|
6004
6007
|
className: `
|
|
@@ -6016,7 +6019,7 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
6016
6019
|
]
|
|
6017
6020
|
}
|
|
6018
6021
|
),
|
|
6019
|
-
R ? /* @__PURE__ */
|
|
6022
|
+
R ? /* @__PURE__ */ O("div", {}) : /* @__PURE__ */ G(Qn, { children: [
|
|
6020
6023
|
/* @__PURE__ */ G(
|
|
6021
6024
|
"div",
|
|
6022
6025
|
{
|
|
@@ -6026,7 +6029,7 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
6026
6029
|
${W.flex}
|
|
6027
6030
|
`,
|
|
6028
6031
|
children: [
|
|
6029
|
-
/* @__PURE__ */
|
|
6032
|
+
/* @__PURE__ */ O(
|
|
6030
6033
|
"div",
|
|
6031
6034
|
{
|
|
6032
6035
|
className: `
|
|
@@ -6035,7 +6038,7 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
6035
6038
|
children: o.t("sheet.cf.iconSet.type")
|
|
6036
6039
|
}
|
|
6037
6040
|
),
|
|
6038
|
-
/* @__PURE__ */
|
|
6041
|
+
/* @__PURE__ */ O(
|
|
6039
6042
|
"div",
|
|
6040
6043
|
{
|
|
6041
6044
|
className: `
|
|
@@ -6055,7 +6058,7 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
6055
6058
|
${W.flex}
|
|
6056
6059
|
`,
|
|
6057
6060
|
children: [
|
|
6058
|
-
/* @__PURE__ */
|
|
6061
|
+
/* @__PURE__ */ O(
|
|
6059
6062
|
Ne,
|
|
6060
6063
|
{
|
|
6061
6064
|
style: { flexShrink: 0 },
|
|
@@ -6070,14 +6073,14 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
6070
6073
|
}
|
|
6071
6074
|
}
|
|
6072
6075
|
),
|
|
6073
|
-
/* @__PURE__ */
|
|
6076
|
+
/* @__PURE__ */ O(
|
|
6074
6077
|
"div",
|
|
6075
6078
|
{
|
|
6076
6079
|
className: `
|
|
6077
6080
|
${$.mL0}
|
|
6078
6081
|
${W.width45}
|
|
6079
6082
|
`,
|
|
6080
|
-
children: /* @__PURE__ */
|
|
6083
|
+
children: /* @__PURE__ */ O(
|
|
6081
6084
|
yl,
|
|
6082
6085
|
{
|
|
6083
6086
|
id: _,
|
|
@@ -6120,16 +6123,16 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
6120
6123
|
} : ro(c, d, m));
|
|
6121
6124
|
}), [g, C] = H(() => r ? !!r.isShowValue : !0), _ = Ce(() => {
|
|
6122
6125
|
const l = f.map((p) => oi(p.iconType, p.iconId));
|
|
6123
|
-
return /* @__PURE__ */
|
|
6126
|
+
return /* @__PURE__ */ O("div", { className: W.iconWrap, children: l.map((p, d) => p ? /* @__PURE__ */ O(
|
|
6124
6127
|
"img",
|
|
6125
6128
|
{
|
|
6126
6129
|
className: W.icon,
|
|
6127
6130
|
src: p
|
|
6128
6131
|
},
|
|
6129
6132
|
d
|
|
6130
|
-
) : /* @__PURE__ */
|
|
6133
|
+
) : /* @__PURE__ */ O(Zt, { className: W.icon }, d)) });
|
|
6131
6134
|
}, [f]), w = (l) => {
|
|
6132
|
-
if (l.reduce((d, m,
|
|
6135
|
+
if (l.reduce((d, m, x) => d.preType && !d.result || l.length - 1 === x ? d : m.value.type === ne.formula ? {
|
|
6133
6136
|
preType: ne.formula,
|
|
6134
6137
|
result: !1
|
|
6135
6138
|
} : d.preType ? {
|
|
@@ -6140,11 +6143,11 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
6140
6143
|
preType: m.value.type
|
|
6141
6144
|
}, { result: !0, preType: "" }).result && [ne.num, ne.percent, ne.percentile].includes(l[0].value.type)) {
|
|
6142
6145
|
const d = {};
|
|
6143
|
-
return l.forEach((m,
|
|
6144
|
-
if (
|
|
6146
|
+
return l.forEach((m, x, M) => {
|
|
6147
|
+
if (x - 1 < 0 || x === M.length - 1)
|
|
6145
6148
|
return;
|
|
6146
|
-
const N = l[
|
|
6147
|
-
_i({ operator: I, value: N.value.value }, m.value.value) || (d[
|
|
6149
|
+
const N = l[x - 1], I = Jn(N.operator);
|
|
6150
|
+
_i({ operator: I, value: N.value.value }, m.value.value) || (d[x] = `${n.t(`sheet.cf.form.${I}`, String(N.value.value))} `);
|
|
6148
6151
|
}), d;
|
|
6149
6152
|
}
|
|
6150
6153
|
return {};
|
|
@@ -6152,7 +6155,7 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
6152
6155
|
di(f, l) !== p && (fi(f, l, p), b([...f]), i(w(f)));
|
|
6153
6156
|
}, R = (l) => {
|
|
6154
6157
|
v(l);
|
|
6155
|
-
const p = at[l] || [], d = new Array(p.length).fill("").map((m,
|
|
6158
|
+
const p = at[l] || [], d = new Array(p.length).fill("").map((m, x, M) => ro(l, x, M));
|
|
6156
6159
|
b(d), i(w(d));
|
|
6157
6160
|
};
|
|
6158
6161
|
Re(() => {
|
|
@@ -6177,23 +6180,23 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
6177
6180
|
const h = () => {
|
|
6178
6181
|
const l = f.map((p) => ({ ...p }));
|
|
6179
6182
|
f.forEach((p, d) => {
|
|
6180
|
-
const m = f.length - 1 - d,
|
|
6181
|
-
p.iconId =
|
|
6183
|
+
const m = f.length - 1 - d, x = l[m];
|
|
6184
|
+
p.iconId = x.iconId, p.iconType = x.iconType;
|
|
6182
6185
|
}), b([...f]);
|
|
6183
6186
|
}, s = pe(Wi), [a, u] = H();
|
|
6184
6187
|
return Hi(a, s.rootContainerElement), /* @__PURE__ */ G("div", { className: W.iconSet, children: [
|
|
6185
|
-
/* @__PURE__ */
|
|
6186
|
-
/* @__PURE__ */
|
|
6188
|
+
/* @__PURE__ */ O("div", { className: $.title, children: n.t("sheet.cf.panel.styleRule") }),
|
|
6189
|
+
/* @__PURE__ */ O(
|
|
6187
6190
|
"div",
|
|
6188
6191
|
{
|
|
6189
6192
|
className: `
|
|
6190
6193
|
${$.mTSm}
|
|
6191
6194
|
`,
|
|
6192
|
-
children: /* @__PURE__ */
|
|
6195
|
+
children: /* @__PURE__ */ O(
|
|
6193
6196
|
sr,
|
|
6194
6197
|
{
|
|
6195
6198
|
placement: "bottomLeft",
|
|
6196
|
-
overlay: /* @__PURE__ */
|
|
6199
|
+
overlay: /* @__PURE__ */ O(
|
|
6197
6200
|
bl,
|
|
6198
6201
|
{
|
|
6199
6202
|
ref: (l) => {
|
|
@@ -6205,7 +6208,7 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
6205
6208
|
),
|
|
6206
6209
|
children: /* @__PURE__ */ G("div", { className: W.dropdownIcon, style: { width: "unset" }, children: [
|
|
6207
6210
|
_,
|
|
6208
|
-
/* @__PURE__ */
|
|
6211
|
+
/* @__PURE__ */ O(Dn, {})
|
|
6209
6212
|
] })
|
|
6210
6213
|
}
|
|
6211
6214
|
)
|
|
@@ -6220,7 +6223,7 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
6220
6223
|
`,
|
|
6221
6224
|
children: [
|
|
6222
6225
|
/* @__PURE__ */ G("div", { className: W.utilItem, children: [
|
|
6223
|
-
/* @__PURE__ */
|
|
6226
|
+
/* @__PURE__ */ O(gn, { onChange: h }),
|
|
6224
6227
|
n.t("sheet.cf.iconSet.reverseIconOrder")
|
|
6225
6228
|
] }),
|
|
6226
6229
|
/* @__PURE__ */ G(
|
|
@@ -6231,7 +6234,7 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
6231
6234
|
${$.mLXl}
|
|
6232
6235
|
`,
|
|
6233
6236
|
children: [
|
|
6234
|
-
/* @__PURE__ */
|
|
6237
|
+
/* @__PURE__ */ O(gn, { checked: !g, onChange: (l) => {
|
|
6235
6238
|
C(!l);
|
|
6236
6239
|
} }),
|
|
6237
6240
|
n.t("sheet.cf.iconSet.onlyShowIcon")
|
|
@@ -6241,7 +6244,7 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
6241
6244
|
]
|
|
6242
6245
|
}
|
|
6243
6246
|
),
|
|
6244
|
-
/* @__PURE__ */
|
|
6247
|
+
/* @__PURE__ */ O(Cl, { errorMap: o, onChange: S, configList: f })
|
|
6245
6248
|
] });
|
|
6246
6249
|
}, Rl = (e) => {
|
|
6247
6250
|
var h;
|
|
@@ -6308,7 +6311,7 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
6308
6311
|
t(S(s));
|
|
6309
6312
|
};
|
|
6310
6313
|
return /* @__PURE__ */ G("div", { children: [
|
|
6311
|
-
/* @__PURE__ */
|
|
6314
|
+
/* @__PURE__ */ O(
|
|
6312
6315
|
"div",
|
|
6313
6316
|
{
|
|
6314
6317
|
className: `
|
|
@@ -6318,7 +6321,7 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
6318
6321
|
children: n.t("sheet.cf.panel.styleRule")
|
|
6319
6322
|
}
|
|
6320
6323
|
),
|
|
6321
|
-
/* @__PURE__ */
|
|
6324
|
+
/* @__PURE__ */ O(
|
|
6322
6325
|
Ne,
|
|
6323
6326
|
{
|
|
6324
6327
|
className: `
|
|
@@ -6340,7 +6343,7 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
6340
6343
|
${$.mTSm}
|
|
6341
6344
|
`,
|
|
6342
6345
|
children: [
|
|
6343
|
-
/* @__PURE__ */
|
|
6346
|
+
/* @__PURE__ */ O(
|
|
6344
6347
|
lt,
|
|
6345
6348
|
{
|
|
6346
6349
|
min: 1,
|
|
@@ -6361,7 +6364,7 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
6361
6364
|
${W.text}
|
|
6362
6365
|
`,
|
|
6363
6366
|
children: [
|
|
6364
|
-
/* @__PURE__ */
|
|
6367
|
+
/* @__PURE__ */ O(
|
|
6365
6368
|
gn,
|
|
6366
6369
|
{
|
|
6367
6370
|
checked: g,
|
|
@@ -6377,16 +6380,16 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
6377
6380
|
]
|
|
6378
6381
|
}
|
|
6379
6382
|
),
|
|
6380
|
-
/* @__PURE__ */
|
|
6383
|
+
/* @__PURE__ */ O(
|
|
6381
6384
|
"div",
|
|
6382
6385
|
{
|
|
6383
6386
|
className: `
|
|
6384
6387
|
${W.cfPreviewWrap}
|
|
6385
6388
|
`,
|
|
6386
|
-
children: /* @__PURE__ */
|
|
6389
|
+
children: /* @__PURE__ */ O(wt, { rule: S({ type: c, isPercent: g, value: f, style: _ }) })
|
|
6387
6390
|
}
|
|
6388
6391
|
),
|
|
6389
|
-
/* @__PURE__ */
|
|
6392
|
+
/* @__PURE__ */ O(
|
|
6390
6393
|
gr,
|
|
6391
6394
|
{
|
|
6392
6395
|
style: o == null ? void 0 : o.style,
|
|
@@ -6404,10 +6407,10 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
6404
6407
|
return (t = e.getCurrentUnitForType(oe.UNIVER_SHEET).getActiveSheet()) == null ? void 0 : t.getSheetId();
|
|
6405
6408
|
}, El = (e) => {
|
|
6406
6409
|
var M, L, N;
|
|
6407
|
-
const t = pe(Te), r = pe(me), n = pe(de), o = pe(ve), i = pe(ut), c = oo(n), v = io(n), [f, b] = H(!0), g =
|
|
6408
|
-
var P,
|
|
6410
|
+
const t = pe(Te), r = pe(me), n = pe(de), o = pe(ve), i = pe(ut), c = oo(n), v = io(n), [f, b] = H(!0), g = Fe({}), [C, _] = H(void 0), w = Fe((L = (M = e.rule) == null ? void 0 : M.ranges) != null ? L : []), S = Ce(() => {
|
|
6411
|
+
var P, k, U;
|
|
6409
6412
|
let I = (P = e.rule) == null ? void 0 : P.ranges;
|
|
6410
|
-
return I != null && I.length || (I = (U = (
|
|
6413
|
+
return I != null && I.length || (I = (U = (k = i.getCurrentSelections()) == null ? void 0 : k.map((j) => j.range)) != null ? U : []), w.current = I, I != null && I.length ? I.map((j) => {
|
|
6411
6414
|
const ie = Io(j);
|
|
6412
6415
|
return ie === "NaN" ? "" : ie;
|
|
6413
6416
|
}).filter((j) => !!j).join(",") : "";
|
|
@@ -6419,8 +6422,8 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
6419
6422
|
{ label: t.t("sheet.cf.ruleType.formula"), value: "5" },
|
|
6420
6423
|
{ label: t.t("sheet.cf.ruleType.iconSet"), value: "6" }
|
|
6421
6424
|
], [h, s] = H(() => {
|
|
6422
|
-
var
|
|
6423
|
-
const I = (
|
|
6425
|
+
var k, U;
|
|
6426
|
+
const I = (k = e.rule) == null ? void 0 : k.rule.type, P = R[0].value;
|
|
6424
6427
|
if (!I)
|
|
6425
6428
|
return P;
|
|
6426
6429
|
switch (I) {
|
|
@@ -6448,7 +6451,7 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
6448
6451
|
return "6";
|
|
6449
6452
|
}
|
|
6450
6453
|
return P;
|
|
6451
|
-
}), a =
|
|
6454
|
+
}), a = Fe(void 0), u = Ce(() => new hi({ beforeSubmit: _l, submit: Il }), []), y = Ce(() => {
|
|
6452
6455
|
switch (h) {
|
|
6453
6456
|
case "1":
|
|
6454
6457
|
return no;
|
|
@@ -6469,8 +6472,8 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
6469
6472
|
Re(() => {
|
|
6470
6473
|
const I = r.onCommandExecuted((P) => {
|
|
6471
6474
|
if (P.id === Di.id) {
|
|
6472
|
-
const
|
|
6473
|
-
|
|
6475
|
+
const k = P.params;
|
|
6476
|
+
k.subUnitId === v && k.unitId === c && e.onCancel();
|
|
6474
6477
|
}
|
|
6475
6478
|
P.id === rr.id && e.onCancel();
|
|
6476
6479
|
});
|
|
@@ -6479,7 +6482,7 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
6479
6482
|
const l = (I) => {
|
|
6480
6483
|
a.current = I;
|
|
6481
6484
|
}, p = (I) => {
|
|
6482
|
-
const P = I.split(",").filter((
|
|
6485
|
+
const P = I.split(",").filter((k) => !!k).map(Ji).map((k) => k.range);
|
|
6483
6486
|
w.current = P;
|
|
6484
6487
|
}, d = () => {
|
|
6485
6488
|
if (C)
|
|
@@ -6497,27 +6500,27 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
6497
6500
|
if (!j || !ie)
|
|
6498
6501
|
throw new Error("No active sheet found");
|
|
6499
6502
|
let te = {};
|
|
6500
|
-
e.rule && e.rule.cfId ? (te = { ...e.rule, ranges: P, rule: U }, r.executeCommand(cr.id, { unitId: j, subUnitId: ie, rule: te }), e.onCancel()) : (te = { cfId: o.createCfId(j, ie), ranges: P, rule: U, stopIfTrue: !1 }, r.executeCommand(
|
|
6503
|
+
e.rule && e.rule.cfId ? (te = { ...e.rule, ranges: P, rule: U }, r.executeCommand(cr.id, { unitId: j, subUnitId: ie, rule: te }), e.onCancel()) : (te = { cfId: o.createCfId(j, ie), ranges: P, rule: U, stopIfTrue: !1 }, r.executeCommand(On.id, { unitId: j, subUnitId: ie, rule: te }), e.onCancel());
|
|
6501
6504
|
}
|
|
6502
6505
|
}
|
|
6503
6506
|
}, m = () => {
|
|
6504
6507
|
e.onCancel();
|
|
6505
|
-
},
|
|
6508
|
+
}, x = (I, P) => {
|
|
6506
6509
|
I ? P.length < 1 ? _(t.t("sheet.cf.errorMessage.rangeError")) : _(void 0) : _(t.t("sheet.cf.errorMessage.rangeError"));
|
|
6507
6510
|
};
|
|
6508
6511
|
return Kt((I) => {
|
|
6509
|
-
var
|
|
6510
|
-
const P = (
|
|
6512
|
+
var k;
|
|
6513
|
+
const P = (k = g.current) == null ? void 0 : k.handleOutClick;
|
|
6511
6514
|
P && P(I, () => b(!1));
|
|
6512
6515
|
}), /* @__PURE__ */ G("div", { className: W.cfRuleStyleEditor, children: [
|
|
6513
|
-
/* @__PURE__ */
|
|
6514
|
-
/* @__PURE__ */
|
|
6516
|
+
/* @__PURE__ */ O("div", { className: $.title, children: t.t("sheet.cf.panel.range") }),
|
|
6517
|
+
/* @__PURE__ */ O(
|
|
6515
6518
|
"div",
|
|
6516
6519
|
{
|
|
6517
6520
|
className: `
|
|
6518
6521
|
${$.mTBase}
|
|
6519
6522
|
`,
|
|
6520
|
-
children: /* @__PURE__ */
|
|
6523
|
+
children: /* @__PURE__ */ O(
|
|
6521
6524
|
as,
|
|
6522
6525
|
{
|
|
6523
6526
|
unitId: c,
|
|
@@ -6525,7 +6528,7 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
6525
6528
|
subUnitId: v,
|
|
6526
6529
|
initValue: S,
|
|
6527
6530
|
onChange: p,
|
|
6528
|
-
onVerify:
|
|
6531
|
+
onVerify: x,
|
|
6529
6532
|
onFocus: () => b(!0),
|
|
6530
6533
|
isFocus: f,
|
|
6531
6534
|
actions: g.current
|
|
@@ -6533,9 +6536,9 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
6533
6536
|
)
|
|
6534
6537
|
}
|
|
6535
6538
|
),
|
|
6536
|
-
/* @__PURE__ */
|
|
6537
|
-
/* @__PURE__ */
|
|
6538
|
-
/* @__PURE__ */
|
|
6539
|
+
/* @__PURE__ */ O("div", { className: $.title, children: t.t("sheet.cf.panel.styleType") }),
|
|
6540
|
+
/* @__PURE__ */ O("div", { className: $.mTBase, children: /* @__PURE__ */ O(Ne, { className: W.width100, value: h, options: R, onChange: (I) => s(I) }) }),
|
|
6541
|
+
/* @__PURE__ */ O(y, { interceptorManager: u, rule: (N = e.rule) == null ? void 0 : N.rule, onChange: l }),
|
|
6539
6542
|
/* @__PURE__ */ G(
|
|
6540
6543
|
"div",
|
|
6541
6544
|
{
|
|
@@ -6544,8 +6547,8 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
6544
6547
|
${W.btnList}
|
|
6545
6548
|
`,
|
|
6546
6549
|
children: [
|
|
6547
|
-
/* @__PURE__ */
|
|
6548
|
-
/* @__PURE__ */
|
|
6550
|
+
/* @__PURE__ */ O(yr, { size: "small", onClick: m, children: t.t("sheet.cf.panel.cancel") }),
|
|
6551
|
+
/* @__PURE__ */ O(yr, { className: $.mLSm, size: "small", type: "primary", onClick: d, children: t.t("sheet.cf.panel.submit") })
|
|
6549
6552
|
]
|
|
6550
6553
|
}
|
|
6551
6554
|
)
|
|
@@ -6558,10 +6561,10 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
6558
6561
|
}, v = (f) => {
|
|
6559
6562
|
r(f), o(!0);
|
|
6560
6563
|
};
|
|
6561
|
-
return /* @__PURE__ */
|
|
6564
|
+
return /* @__PURE__ */ O("div", { className: $.conditionalFormattingWrap, children: n ? /* @__PURE__ */ O(El, { onCancel: c, rule: t }) : /* @__PURE__ */ O(za, { onClick: v, onCreate: i }) });
|
|
6562
6565
|
};
|
|
6563
|
-
var
|
|
6564
|
-
for (var o = n > 1 ? void 0 : n ?
|
|
6566
|
+
var xl = Object.getOwnPropertyDescriptor, Ol = (e, t, r, n) => {
|
|
6567
|
+
for (var o = n > 1 ? void 0 : n ? xl(t, r) : t, i = e.length - 1, c; i >= 0; i--)
|
|
6565
6568
|
(c = e[i]) && (o = c(o) || o);
|
|
6566
6569
|
return o;
|
|
6567
6570
|
}, Mt = (e, t) => (r, n) => t(r, n, e);
|
|
@@ -6598,14 +6601,14 @@ let Ht = class extends ze {
|
|
|
6598
6601
|
this._componentManager.register(cn, Tl);
|
|
6599
6602
|
}
|
|
6600
6603
|
};
|
|
6601
|
-
Ht =
|
|
6604
|
+
Ht = Ol([
|
|
6602
6605
|
Mt(0, de),
|
|
6603
6606
|
Mt(1, ee(He)),
|
|
6604
6607
|
Mt(2, ee(ir)),
|
|
6605
6608
|
Mt(3, ee(Ui)),
|
|
6606
6609
|
Mt(4, ee(Te))
|
|
6607
6610
|
], Ht);
|
|
6608
|
-
var
|
|
6611
|
+
var Oe = /* @__PURE__ */ ((e) => (e[e.createRule = 1] = "createRule", e[e.viewRule = 2] = "viewRule", e[e.highlightCell = 3] = "highlightCell", e[e.rank = 4] = "rank", e[e.formula = 5] = "formula", e[e.colorScale = 6] = "colorScale", e[e.dataBar = 7] = "dataBar", e[e.icon = 8] = "icon", e[e.clearRangeRules = 9] = "clearRangeRules", e[e.clearWorkSheetRules = 10] = "clearWorkSheetRules", e))(Oe || {});
|
|
6609
6612
|
const Ln = {
|
|
6610
6613
|
id: "sheet.operation.open.conditional.formatting.panel",
|
|
6611
6614
|
type: _e.OPERATION,
|
|
@@ -6756,24 +6759,24 @@ let Ut = class extends ze {
|
|
|
6756
6759
|
if (!this._copyInfo || !r.copyRange)
|
|
6757
6760
|
return { redos: [], undos: [] };
|
|
6758
6761
|
if (![
|
|
6759
|
-
|
|
6760
|
-
|
|
6761
|
-
|
|
6762
|
+
kn.SPECIAL_PASTE_FORMAT,
|
|
6763
|
+
kn.DEFAULT_PASTE,
|
|
6764
|
+
kn.SPECIAL_PASTE_BESIDES_BORDER
|
|
6762
6765
|
].includes(
|
|
6763
6766
|
r.pasteType
|
|
6764
6767
|
))
|
|
6765
6768
|
return { redos: [], undos: [] };
|
|
6766
6769
|
const { ranges: [f, b], mapFunc: g } = Eo([r.copyRange, t]), C = ns(f, b, !0), _ = {};
|
|
6767
|
-
|
|
6768
|
-
const { row: d, col: m } = g(l, p),
|
|
6769
|
-
|
|
6770
|
+
ke.foreach(b, (l, p) => {
|
|
6771
|
+
const { row: d, col: m } = g(l, p), x = this._conditionalFormattingViewModel.getCellCfs(i, c, d, m);
|
|
6772
|
+
x && x.forEach((M) => {
|
|
6770
6773
|
if (!_[M.cfId]) {
|
|
6771
6774
|
const L = new Je();
|
|
6772
6775
|
_[M.cfId] = L;
|
|
6773
6776
|
const N = this._conditionalFormattingRuleModel.getRule(i, c, M.cfId);
|
|
6774
6777
|
N == null || N.ranges.forEach((I) => {
|
|
6775
|
-
|
|
6776
|
-
L.setValue(P,
|
|
6778
|
+
ke.foreach(I, (P, k) => {
|
|
6779
|
+
L.setValue(P, k, 1);
|
|
6777
6780
|
});
|
|
6778
6781
|
});
|
|
6779
6782
|
}
|
|
@@ -6800,7 +6803,7 @@ let Ut = class extends ze {
|
|
|
6800
6803
|
};
|
|
6801
6804
|
C.forEach((l) => {
|
|
6802
6805
|
w && w.forValue((p, d, m) => {
|
|
6803
|
-
const
|
|
6806
|
+
const x = Ge.getPositionRange(
|
|
6804
6807
|
{
|
|
6805
6808
|
startRow: p,
|
|
6806
6809
|
endRow: p,
|
|
@@ -6808,12 +6811,12 @@ let Ut = class extends ze {
|
|
|
6808
6811
|
endColumn: d
|
|
6809
6812
|
},
|
|
6810
6813
|
l.startRange
|
|
6811
|
-
), { row: M, col: L } = g(
|
|
6814
|
+
), { row: M, col: L } = g(x.startRow, x.startColumn);
|
|
6812
6815
|
m.forEach((N) => {
|
|
6813
6816
|
if (!_[N]) {
|
|
6814
6817
|
const I = a(N), P = new Je();
|
|
6815
|
-
_[N] = P, I.ranges.forEach((
|
|
6816
|
-
|
|
6818
|
+
_[N] = P, I.ranges.forEach((k) => {
|
|
6819
|
+
ke.foreach(k, (U, j) => {
|
|
6817
6820
|
P.setValue(U, j, 1);
|
|
6818
6821
|
});
|
|
6819
6822
|
});
|
|
@@ -6834,22 +6837,22 @@ let Ut = class extends ze {
|
|
|
6834
6837
|
u.push({ id: Le.id, params: m }), y.push(...Xe(this._injector, m));
|
|
6835
6838
|
}
|
|
6836
6839
|
if (R.some((m) => m.cfId === l)) {
|
|
6837
|
-
const m = a(l),
|
|
6840
|
+
const m = a(l), x = {
|
|
6838
6841
|
unitId: i,
|
|
6839
6842
|
subUnitId: c,
|
|
6840
6843
|
rule: { ...m, ranges: d }
|
|
6841
6844
|
};
|
|
6842
|
-
u.push({ id: Ie.id, params:
|
|
6845
|
+
u.push({ id: Ie.id, params: x }), y.push(nr(this._injector, x));
|
|
6843
6846
|
} else {
|
|
6844
6847
|
const m = this._conditionalFormattingRuleModel.getRule(i, c, l);
|
|
6845
6848
|
if (!m)
|
|
6846
6849
|
continue;
|
|
6847
|
-
const
|
|
6850
|
+
const x = {
|
|
6848
6851
|
unitId: i,
|
|
6849
6852
|
subUnitId: c,
|
|
6850
6853
|
rule: { ...m, ranges: d }
|
|
6851
6854
|
};
|
|
6852
|
-
u.push({ id: Ve.id, params:
|
|
6855
|
+
u.push({ id: Ve.id, params: x }), y.push(...Qe(this._injector, x));
|
|
6853
6856
|
}
|
|
6854
6857
|
}
|
|
6855
6858
|
return {
|
|
@@ -6877,7 +6880,7 @@ let jt = class extends ze {
|
|
|
6877
6880
|
_commandExecutedListener() {
|
|
6878
6881
|
this.disposeWithMe(
|
|
6879
6882
|
this._commandService.beforeCommandExecuted((e) => {
|
|
6880
|
-
e.id ===
|
|
6883
|
+
e.id === On.id && (this._sheetPermissionCheckController.permissionCheckWithRanges({
|
|
6881
6884
|
workbookTypes: [_o],
|
|
6882
6885
|
rangeTypes: [Ro],
|
|
6883
6886
|
worksheetTypes: [Co, wo]
|
|
@@ -6950,7 +6953,7 @@ Bt = zl([
|
|
|
6950
6953
|
un(2, ee(He)),
|
|
6951
6954
|
un(3, ee(Li))
|
|
6952
6955
|
], Bt);
|
|
6953
|
-
var $l = Object.getOwnPropertyDescriptor,
|
|
6956
|
+
var $l = Object.getOwnPropertyDescriptor, kl = (e, t, r, n) => {
|
|
6954
6957
|
for (var o = n > 1 ? void 0 : n ? $l(t, r) : t, i = e.length - 1, c; i >= 0; i--)
|
|
6955
6958
|
(c = e[i]) && (o = c(o) || o);
|
|
6956
6959
|
return o;
|
|
@@ -6973,7 +6976,7 @@ let Gt = class extends ze {
|
|
|
6973
6976
|
(r = this._renderManagerService.getRenderById(t)) == null || r.with(To).reCalculate(), (o = (n = this._renderManagerService.getRenderById(t)) == null ? void 0 : n.mainComponent) == null || o.makeDirty();
|
|
6974
6977
|
}
|
|
6975
6978
|
_initSkeleton() {
|
|
6976
|
-
this.disposeWithMe(
|
|
6979
|
+
this.disposeWithMe(Oo(this._conditionalFormattingRuleModel.$ruleChange, this._conditionalFormattingViewModel.markDirty$).pipe(
|
|
6977
6980
|
ls(16),
|
|
6978
6981
|
Cr((t) => !!t.length),
|
|
6979
6982
|
Cr((t) => {
|
|
@@ -6992,13 +6995,13 @@ let Gt = class extends ze {
|
|
|
6992
6995
|
if (!o)
|
|
6993
6996
|
return n(t);
|
|
6994
6997
|
const i = r.workbook.getStyles(), v = { ...(typeof (t == null ? void 0 : t.s) == "string" ? i.get(t == null ? void 0 : t.s) : t == null ? void 0 : t.s) || {} }, f = { ...t, s: v };
|
|
6995
|
-
return o.style && Object.assign(v, o.style), f.fontRenderExtension || (f.fontRenderExtension = {}, o.isShowValue !== void 0 && (f.fontRenderExtension.isSkip = !o.isShowValue)), o.dataBar && (f.dataBar = o.dataBar), o.iconSet && (f.iconSet = o.iconSet, f.fontRenderExtension.leftOffset = Ti +
|
|
6998
|
+
return o.style && Object.assign(v, o.style), f.fontRenderExtension || (f.fontRenderExtension = {}, o.isShowValue !== void 0 && (f.fontRenderExtension.isSkip = !o.isShowValue)), o.dataBar && (f.dataBar = o.dataBar), o.iconSet && (f.iconSet = o.iconSet, f.fontRenderExtension.leftOffset = Ti + xi), n(f);
|
|
6996
6999
|
},
|
|
6997
7000
|
priority: 10
|
|
6998
7001
|
}));
|
|
6999
7002
|
}
|
|
7000
7003
|
};
|
|
7001
|
-
Gt =
|
|
7004
|
+
Gt = kl([
|
|
7002
7005
|
pt(0, ee(or)),
|
|
7003
7006
|
pt(1, ee(bo)),
|
|
7004
7007
|
pt(2, ee(de)),
|
|
@@ -7007,7 +7010,7 @@ Gt = Fl([
|
|
|
7007
7010
|
pt(5, ee(ve))
|
|
7008
7011
|
], Gt);
|
|
7009
7012
|
const ii = "sheets-conditional-formatting-ui.config", bn = {};
|
|
7010
|
-
var
|
|
7013
|
+
var Fl = Object.defineProperty, Vl = Object.getOwnPropertyDescriptor, ql = (e, t, r) => t in e ? Fl(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Al = (e, t, r, n) => {
|
|
7011
7014
|
for (var o = n > 1 ? void 0 : n ? Vl(t, r) : t, i = e.length - 1, c; i >= 0; i--)
|
|
7012
7015
|
(c = e[i]) && (o = c(o) || o);
|
|
7013
7016
|
return o;
|
|
@@ -7030,14 +7033,14 @@ let Sn = class extends vo {
|
|
|
7030
7033
|
Lo,
|
|
7031
7034
|
zo,
|
|
7032
7035
|
$o,
|
|
7033
|
-
Fo,
|
|
7034
7036
|
ko,
|
|
7037
|
+
Fo,
|
|
7035
7038
|
Vo,
|
|
7036
7039
|
Ln,
|
|
7037
7040
|
mn,
|
|
7038
7041
|
cr,
|
|
7039
7042
|
lr,
|
|
7040
|
-
|
|
7043
|
+
On,
|
|
7041
7044
|
ar,
|
|
7042
7045
|
Pn
|
|
7043
7046
|
].forEach((e) => {
|
|
@@ -7080,7 +7083,7 @@ let Cn = class extends ze {
|
|
|
7080
7083
|
endColumn: i.col,
|
|
7081
7084
|
endRow: i.row
|
|
7082
7085
|
};
|
|
7083
|
-
|
|
7086
|
+
ke.foreach(c, (S, R) => {
|
|
7084
7087
|
const h = Ge.getPositionRange(
|
|
7085
7088
|
{
|
|
7086
7089
|
startRow: S,
|
|
@@ -7109,31 +7112,31 @@ let Cn = class extends ze {
|
|
|
7109
7112
|
p
|
|
7110
7113
|
);
|
|
7111
7114
|
d && d.forEach((m) => {
|
|
7112
|
-
let
|
|
7115
|
+
let x = v.get(m.cfId);
|
|
7113
7116
|
if (!v.get(m.cfId)) {
|
|
7114
7117
|
const M = this._conditionalFormattingRuleModel.getRule(b, g, m.cfId);
|
|
7115
7118
|
if (!M)
|
|
7116
7119
|
return;
|
|
7117
|
-
|
|
7118
|
-
|
|
7119
|
-
|
|
7120
|
+
x = new Je(), M.ranges.forEach((L) => {
|
|
7121
|
+
ke.foreach(L, (N, I) => {
|
|
7122
|
+
x.setValue(N, I, 1);
|
|
7120
7123
|
});
|
|
7121
|
-
}), v.set(m.cfId,
|
|
7124
|
+
}), v.set(m.cfId, x);
|
|
7122
7125
|
}
|
|
7123
|
-
|
|
7126
|
+
x.realDeleteValue(l, p);
|
|
7124
7127
|
}), y && y.forEach((m) => {
|
|
7125
|
-
let
|
|
7128
|
+
let x = v.get(m.cfId);
|
|
7126
7129
|
if (!v.get(m.cfId)) {
|
|
7127
7130
|
const M = this._conditionalFormattingRuleModel.getRule(b, g, m.cfId);
|
|
7128
7131
|
if (!M)
|
|
7129
7132
|
return;
|
|
7130
|
-
|
|
7131
|
-
|
|
7132
|
-
|
|
7133
|
+
x = new Je(), M.ranges.forEach((L) => {
|
|
7134
|
+
ke.foreach(L, (N, I) => {
|
|
7135
|
+
x.setValue(N, I, 1);
|
|
7133
7136
|
});
|
|
7134
|
-
}), v.set(m.cfId,
|
|
7137
|
+
}), v.set(m.cfId, x);
|
|
7135
7138
|
}
|
|
7136
|
-
|
|
7139
|
+
x.setValue(l, p, 1);
|
|
7137
7140
|
});
|
|
7138
7141
|
});
|
|
7139
7142
|
}, r = (o, i) => {
|
|
@@ -7174,7 +7177,7 @@ let Cn = class extends ze {
|
|
|
7174
7177
|
}, n = {
|
|
7175
7178
|
id: Yt,
|
|
7176
7179
|
onFillData: (o, i, c) => {
|
|
7177
|
-
if (c ===
|
|
7180
|
+
if (c === Fn.COPY || c === Fn.ONLY_FORMAT || c === Fn.SERIES) {
|
|
7178
7181
|
const { source: v, target: f } = o;
|
|
7179
7182
|
return r(v, f);
|
|
7180
7183
|
}
|
|
@@ -7205,7 +7208,7 @@ let wn = class extends ze {
|
|
|
7205
7208
|
getMutations: (e) => {
|
|
7206
7209
|
var o;
|
|
7207
7210
|
const t = [], r = [], n = { redos: t, undos: r };
|
|
7208
|
-
if ([
|
|
7211
|
+
if ([ki.id, Fi.id].includes(e.id)) {
|
|
7209
7212
|
const i = (o = this._selectionManagerService.getCurrentSelections()) == null ? void 0 : o.map((w) => w.range);
|
|
7210
7213
|
if (!i)
|
|
7211
7214
|
return n;
|
|
@@ -7327,47 +7330,47 @@ const lo = [
|
|
|
7327
7330
|
], $t = [
|
|
7328
7331
|
{
|
|
7329
7332
|
label: "sheet.cf.ruleType.highlightCell",
|
|
7330
|
-
value:
|
|
7333
|
+
value: Oe.highlightCell
|
|
7331
7334
|
},
|
|
7332
7335
|
{
|
|
7333
7336
|
label: "sheet.cf.panel.rankAndAverage",
|
|
7334
|
-
value:
|
|
7337
|
+
value: Oe.rank
|
|
7335
7338
|
},
|
|
7336
7339
|
{
|
|
7337
7340
|
label: "sheet.cf.ruleType.formula",
|
|
7338
|
-
value:
|
|
7341
|
+
value: Oe.formula
|
|
7339
7342
|
},
|
|
7340
7343
|
{
|
|
7341
7344
|
label: "sheet.cf.ruleType.colorScale",
|
|
7342
|
-
value:
|
|
7345
|
+
value: Oe.colorScale
|
|
7343
7346
|
},
|
|
7344
7347
|
{
|
|
7345
7348
|
label: "sheet.cf.ruleType.dataBar",
|
|
7346
|
-
value:
|
|
7349
|
+
value: Oe.dataBar
|
|
7347
7350
|
},
|
|
7348
7351
|
{
|
|
7349
7352
|
label: "sheet.cf.ruleType.iconSet",
|
|
7350
|
-
value:
|
|
7353
|
+
value: Oe.icon
|
|
7351
7354
|
},
|
|
7352
7355
|
{
|
|
7353
7356
|
label: "sheet.cf.menu.manageConditionalFormatting",
|
|
7354
|
-
value:
|
|
7357
|
+
value: Oe.viewRule
|
|
7355
7358
|
},
|
|
7356
7359
|
{
|
|
7357
7360
|
label: "sheet.cf.menu.createConditionalFormatting",
|
|
7358
|
-
value:
|
|
7361
|
+
value: Oe.createRule
|
|
7359
7362
|
},
|
|
7360
7363
|
{
|
|
7361
7364
|
label: "sheet.cf.menu.clearRangeRules",
|
|
7362
|
-
value:
|
|
7365
|
+
value: Oe.clearRangeRules,
|
|
7363
7366
|
disabled: !1
|
|
7364
7367
|
},
|
|
7365
7368
|
{
|
|
7366
7369
|
label: "sheet.cf.menu.clearWorkSheetRules",
|
|
7367
|
-
value:
|
|
7370
|
+
value: Oe.clearWorkSheetRules
|
|
7368
7371
|
}
|
|
7369
7372
|
], Xl = (e) => {
|
|
7370
|
-
const t = e.get(ut), r = e.get(me), n = e.get(de), o = e.get(ve), i = new st((f) =>
|
|
7373
|
+
const t = e.get(ut), r = e.get(me), n = e.get(de), o = e.get(ve), i = new st((f) => Oo(
|
|
7371
7374
|
t.selectionMoveEnd$,
|
|
7372
7375
|
t.selectionSet$,
|
|
7373
7376
|
new st((b) => {
|
|
@@ -7407,10 +7410,10 @@ const lo = [
|
|
|
7407
7410
|
})
|
|
7408
7411
|
), v = new st((f) => {
|
|
7409
7412
|
i.subscribe((b) => {
|
|
7410
|
-
const g = $t.find((C) => C.value ===
|
|
7413
|
+
const g = $t.find((C) => C.value === Oe.clearRangeRules);
|
|
7411
7414
|
g && (g.disabled = !b, f.next($t));
|
|
7412
7415
|
}), c.subscribe((b) => {
|
|
7413
|
-
const g = $t.find((C) => C.value ===
|
|
7416
|
+
const g = $t.find((C) => C.value === Oe.clearWorkSheetRules);
|
|
7414
7417
|
g && (g.disabled = !b, f.next($t));
|
|
7415
7418
|
}), f.next($t);
|
|
7416
7419
|
});
|
|
@@ -7501,7 +7504,7 @@ let In = class extends ze {
|
|
|
7501
7504
|
endColumn: c.col,
|
|
7502
7505
|
endRow: c.row
|
|
7503
7506
|
};
|
|
7504
|
-
|
|
7507
|
+
ke.foreach(v, (h, s) => {
|
|
7505
7508
|
const a = Ge.getPositionRange(
|
|
7506
7509
|
{
|
|
7507
7510
|
startRow: h,
|
|
@@ -7535,8 +7538,8 @@ let In = class extends ze {
|
|
|
7535
7538
|
const m = this._conditionalFormattingRuleModel.getRule(_, w, p.cfId);
|
|
7536
7539
|
if (!m)
|
|
7537
7540
|
return;
|
|
7538
|
-
d = new Je(), m.ranges.forEach((
|
|
7539
|
-
|
|
7541
|
+
d = new Je(), m.ranges.forEach((x) => {
|
|
7542
|
+
ke.foreach(x, (M, L) => {
|
|
7540
7543
|
d.setValue(M, L, 1);
|
|
7541
7544
|
});
|
|
7542
7545
|
}), f.set(p.cfId, d);
|
|
@@ -7558,8 +7561,8 @@ let In = class extends ze {
|
|
|
7558
7561
|
if (y.some((p) => Ge.intersects(f, p))) {
|
|
7559
7562
|
const p = new Je();
|
|
7560
7563
|
C || y.forEach((d) => {
|
|
7561
|
-
|
|
7562
|
-
p.setValue(m,
|
|
7564
|
+
ke.foreach(d, (m, x) => {
|
|
7565
|
+
p.setValue(m, x, 1);
|
|
7563
7566
|
});
|
|
7564
7567
|
}), _.set(l, p);
|
|
7565
7568
|
}
|
|
@@ -7679,7 +7682,7 @@ let En = class extends ze {
|
|
|
7679
7682
|
const i = o.with(To);
|
|
7680
7683
|
this.disposeWithMe(i.currentSkeleton$.subscribe((c) => {
|
|
7681
7684
|
if (c) {
|
|
7682
|
-
const v = c.skeleton.rowColumnSegment, f = v.endColumn - v.startColumn + 1, g = (v.endRow - v.startRow + 1) * f * 9, C = Math.max(
|
|
7685
|
+
const v = c.skeleton.rowColumnSegment, f = v.endColumn - v.startColumn + 1, g = (v.endRow - v.startRow + 1) * f * 9, C = Math.max(Oi, g);
|
|
7683
7686
|
this._conditionalFormattingViewModel.setCacheLength(C);
|
|
7684
7687
|
}
|
|
7685
7688
|
}));
|
|
@@ -7754,14 +7757,14 @@ let Tn = class extends vo {
|
|
|
7754
7757
|
Lo,
|
|
7755
7758
|
zo,
|
|
7756
7759
|
$o,
|
|
7757
|
-
Fo,
|
|
7758
7760
|
ko,
|
|
7761
|
+
Fo,
|
|
7759
7762
|
Vo,
|
|
7760
7763
|
Ln,
|
|
7761
7764
|
mn,
|
|
7762
7765
|
cr,
|
|
7763
7766
|
lr,
|
|
7764
|
-
|
|
7767
|
+
On,
|
|
7765
7768
|
ar,
|
|
7766
7769
|
Pn
|
|
7767
7770
|
].forEach((e) => {
|
|
@@ -7779,14 +7782,14 @@ Tn = sc([
|
|
|
7779
7782
|
], Tn);
|
|
7780
7783
|
export {
|
|
7781
7784
|
Do as AddAverageCfCommand,
|
|
7782
|
-
|
|
7785
|
+
On as AddCfCommand,
|
|
7783
7786
|
Mo as AddColorScaleConditionalRuleCommand,
|
|
7784
7787
|
No as AddDataBarConditionalRuleCommand,
|
|
7785
7788
|
Lo as AddDuplicateValuesCfCommand,
|
|
7786
7789
|
zo as AddNumberCfCommand,
|
|
7787
7790
|
$o as AddRankCfCommand,
|
|
7788
|
-
|
|
7789
|
-
|
|
7791
|
+
ko as AddTextCfCommand,
|
|
7792
|
+
Fo as AddTimePeriodCfCommand,
|
|
7790
7793
|
Vo as AddUniqueValuesCfCommand,
|
|
7791
7794
|
ar as ClearRangeCfCommand,
|
|
7792
7795
|
Pn as ClearWorksheetCfCommand,
|