@univerjs/sheets-conditional-formatting-ui 0.6.0 → 0.6.1-nightly.202502211606
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 +90 -90
- package/lib/es/index.js +967 -962
- package/lib/umd/index.js +44 -44
- package/package.json +15 -15
- package/LICENSE +0 -176
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
|
|
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
|
|
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 $e, ColorKit as fo, BooleanNumber as Me, Injector as He, UniverInstanceType as ie, 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 zn } from "@univerjs/core";
|
|
5
|
+
import { ConditionalFormattingRuleModel as ve, CFSubRuleType as Y, 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 re, 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 $i, SheetInterceptorService as or, INTERCEPTOR_POINT as zi, 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 X, 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 = {
|
|
@@ -29,14 +29,14 @@ const Do = {
|
|
|
29
29
|
stopIfTrue: !!o,
|
|
30
30
|
rule: {
|
|
31
31
|
type: Z.highlightCell,
|
|
32
|
-
subType:
|
|
32
|
+
subType: Y.average,
|
|
33
33
|
operator: i,
|
|
34
34
|
style: n
|
|
35
35
|
}
|
|
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) {
|
|
@@ -110,13 +110,13 @@ const Do = {
|
|
|
110
110
|
stopIfTrue: !!o,
|
|
111
111
|
rule: {
|
|
112
112
|
type: Z.highlightCell,
|
|
113
|
-
subType:
|
|
113
|
+
subType: Y.duplicateValues,
|
|
114
114
|
style: n
|
|
115
115
|
}
|
|
116
116
|
};
|
|
117
117
|
return c.executeCommand(Ie.id, { unitId: b, subUnitId: g, rule: _ });
|
|
118
118
|
}
|
|
119
|
-
},
|
|
119
|
+
}, $o = {
|
|
120
120
|
type: _e.COMMAND,
|
|
121
121
|
id: "sheet.command.add-number-conditional-rule",
|
|
122
122
|
handler(e, t) {
|
|
@@ -136,7 +136,7 @@ const Do = {
|
|
|
136
136
|
stopIfTrue: !!o,
|
|
137
137
|
rule: {
|
|
138
138
|
type: Z.highlightCell,
|
|
139
|
-
subType:
|
|
139
|
+
subType: Y.number,
|
|
140
140
|
operator: i,
|
|
141
141
|
style: n,
|
|
142
142
|
value: R
|
|
@@ -152,7 +152,7 @@ const Do = {
|
|
|
152
152
|
stopIfTrue: !!o,
|
|
153
153
|
rule: {
|
|
154
154
|
type: Z.highlightCell,
|
|
155
|
-
subType:
|
|
155
|
+
subType: Y.number,
|
|
156
156
|
operator: i,
|
|
157
157
|
style: n,
|
|
158
158
|
value: R
|
|
@@ -161,7 +161,7 @@ const Do = {
|
|
|
161
161
|
}
|
|
162
162
|
return f.executeCommand(Ie.id, { unitId: C, subUnitId: _, rule: S });
|
|
163
163
|
}
|
|
164
|
-
},
|
|
164
|
+
}, zo = {
|
|
165
165
|
type: _e.COMMAND,
|
|
166
166
|
id: "sheet.command.add-rank-conditional-rule",
|
|
167
167
|
handler(e, t) {
|
|
@@ -175,7 +175,7 @@ const Do = {
|
|
|
175
175
|
stopIfTrue: !!o,
|
|
176
176
|
rule: {
|
|
177
177
|
type: Z.highlightCell,
|
|
178
|
-
subType:
|
|
178
|
+
subType: Y.rank,
|
|
179
179
|
isPercent: i,
|
|
180
180
|
isBottom: c,
|
|
181
181
|
style: n,
|
|
@@ -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) {
|
|
@@ -198,7 +198,7 @@ const Do = {
|
|
|
198
198
|
stopIfTrue: !!o,
|
|
199
199
|
rule: {
|
|
200
200
|
type: Z.highlightCell,
|
|
201
|
-
subType:
|
|
201
|
+
subType: Y.text,
|
|
202
202
|
operator: i,
|
|
203
203
|
style: n,
|
|
204
204
|
value: c
|
|
@@ -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) {
|
|
@@ -220,7 +220,7 @@ const Do = {
|
|
|
220
220
|
stopIfTrue: !!o,
|
|
221
221
|
rule: {
|
|
222
222
|
type: Z.highlightCell,
|
|
223
|
-
subType:
|
|
223
|
+
subType: Y.timePeriod,
|
|
224
224
|
operator: i,
|
|
225
225
|
style: n
|
|
226
226
|
}
|
|
@@ -241,7 +241,7 @@ const Do = {
|
|
|
241
241
|
stopIfTrue: !!o,
|
|
242
242
|
rule: {
|
|
243
243
|
type: Z.highlightCell,
|
|
244
|
-
subType:
|
|
244
|
+
subType: Y.uniqueValues,
|
|
245
245
|
style: n
|
|
246
246
|
}
|
|
247
247
|
};
|
|
@@ -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
|
});
|
|
@@ -343,7 +343,7 @@ const Do = {
|
|
|
343
343
|
const { unitId: c, subUnitId: v } = i, f = { unitId: c, subUnitId: v, rule: t.rule }, b = Qe(e, f), g = n.syncExecuteCommand(Ve.id, f);
|
|
344
344
|
return g && r.pushUndoRedo({ unitID: c, undoMutations: b, redoMutations: [{ id: Ve.id, params: f }] }), g;
|
|
345
345
|
}
|
|
346
|
-
}, cs = "univer-conditional-formatting-wrap", us = "univer-title", ds = "univer-label", fs = "univer-label-container", hs = "univer-m-t-base", ps = "univer-m-t-sm", gs = "univer-m-t-xl", ms = "univer-m-l-sm", vs = "univer-m-l-xl", ys = "univer-m-l-xxs", bs = "univer-m-l-0", Ss = "univer-m-r-0",
|
|
346
|
+
}, cs = "univer-conditional-formatting-wrap", us = "univer-title", ds = "univer-label", fs = "univer-label-container", hs = "univer-m-t-base", ps = "univer-m-t-sm", gs = "univer-m-t-xl", ms = "univer-m-l-sm", vs = "univer-m-l-xl", ys = "univer-m-l-xxs", bs = "univer-m-l-0", Ss = "univer-m-r-0", z = {
|
|
347
347
|
conditionalFormattingWrap: cs,
|
|
348
348
|
title: us,
|
|
349
349
|
label: ds,
|
|
@@ -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,130 +465,130 @@ 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) {
|
|
469
472
|
n(t);
|
|
470
473
|
})(Ds, function(r) {
|
|
471
|
-
function n(
|
|
472
|
-
return function(ue, E, T, D,
|
|
473
|
-
return
|
|
474
|
+
function n(q) {
|
|
475
|
+
return function(ue, E, T, D, $, B, F) {
|
|
476
|
+
return q(ue, E, F);
|
|
474
477
|
};
|
|
475
478
|
}
|
|
476
|
-
function o(
|
|
479
|
+
function o(q) {
|
|
477
480
|
return function(ue, E, T, D) {
|
|
478
481
|
if (!ue || !E || typeof ue != "object" || typeof E != "object")
|
|
479
|
-
return
|
|
480
|
-
var
|
|
481
|
-
if (
|
|
482
|
-
return
|
|
482
|
+
return q(ue, E, T, D);
|
|
483
|
+
var $ = D.get(ue), B = D.get(E);
|
|
484
|
+
if ($ && B)
|
|
485
|
+
return $ === E && B === ue;
|
|
483
486
|
D.set(ue, E), D.set(E, ue);
|
|
484
|
-
var
|
|
485
|
-
return D.delete(ue), D.delete(E),
|
|
487
|
+
var F = q(ue, E, T, D);
|
|
488
|
+
return D.delete(ue), D.delete(E), F;
|
|
486
489
|
};
|
|
487
490
|
}
|
|
488
|
-
function i(
|
|
491
|
+
function i(q, J) {
|
|
489
492
|
var ue = {};
|
|
490
|
-
for (var E in
|
|
491
|
-
ue[E] =
|
|
493
|
+
for (var E in q)
|
|
494
|
+
ue[E] = q[E];
|
|
492
495
|
for (var E in J)
|
|
493
496
|
ue[E] = J[E];
|
|
494
497
|
return ue;
|
|
495
498
|
}
|
|
496
|
-
function c(
|
|
497
|
-
return
|
|
499
|
+
function c(q) {
|
|
500
|
+
return q.constructor === Object || q.constructor == null;
|
|
498
501
|
}
|
|
499
|
-
function v(
|
|
500
|
-
return typeof
|
|
502
|
+
function v(q) {
|
|
503
|
+
return typeof q.then == "function";
|
|
501
504
|
}
|
|
502
|
-
function f(
|
|
503
|
-
return
|
|
505
|
+
function f(q, J) {
|
|
506
|
+
return q === J || q !== q && J !== J;
|
|
504
507
|
}
|
|
505
508
|
var b = "[object Arguments]", g = "[object Boolean]", C = "[object Date]", _ = "[object RegExp]", w = "[object Map]", S = "[object Number]", R = "[object Object]", h = "[object Set]", s = "[object String]", a = Object.prototype.toString;
|
|
506
|
-
function u(
|
|
507
|
-
var J =
|
|
508
|
-
function K(
|
|
509
|
-
if (
|
|
509
|
+
function u(q) {
|
|
510
|
+
var J = q.areArraysEqual, ue = q.areDatesEqual, E = q.areMapsEqual, T = q.areObjectsEqual, D = q.areRegExpsEqual, $ = q.areSetsEqual, B = q.createIsNestedEqual, F = B(K);
|
|
511
|
+
function K(G, ne, ge) {
|
|
512
|
+
if (G === ne)
|
|
510
513
|
return !0;
|
|
511
|
-
if (!
|
|
512
|
-
return
|
|
513
|
-
if (c(
|
|
514
|
-
return T(
|
|
515
|
-
var tt = Array.isArray(
|
|
514
|
+
if (!G || !ne || typeof G != "object" || typeof ne != "object")
|
|
515
|
+
return G !== G && ne !== ne;
|
|
516
|
+
if (c(G) && c(ne))
|
|
517
|
+
return T(G, ne, F, ge);
|
|
518
|
+
var tt = Array.isArray(G), Pe = Array.isArray(ne);
|
|
516
519
|
if (tt || Pe)
|
|
517
|
-
return tt === Pe && J(
|
|
518
|
-
var we = a.call(
|
|
519
|
-
return we !== a.call(
|
|
520
|
+
return tt === Pe && J(G, ne, F, ge);
|
|
521
|
+
var we = a.call(G);
|
|
522
|
+
return we !== a.call(ne) ? !1 : we === C ? ue(G, ne, F, ge) : we === _ ? D(G, ne, F, ge) : we === w ? E(G, ne, F, ge) : we === h ? $(G, ne, F, ge) : we === R || we === b ? v(G) || v(ne) ? !1 : T(G, ne, F, ge) : we === g || we === S || we === s ? f(G.valueOf(), ne.valueOf()) : !1;
|
|
520
523
|
}
|
|
521
524
|
return K;
|
|
522
525
|
}
|
|
523
|
-
function y(
|
|
524
|
-
var T =
|
|
526
|
+
function y(q, J, ue, E) {
|
|
527
|
+
var T = q.length;
|
|
525
528
|
if (J.length !== T)
|
|
526
529
|
return !1;
|
|
527
530
|
for (; T-- > 0; )
|
|
528
|
-
if (!ue(
|
|
531
|
+
if (!ue(q[T], J[T], T, T, q, J, E))
|
|
529
532
|
return !1;
|
|
530
533
|
return !0;
|
|
531
534
|
}
|
|
532
535
|
var l = o(y);
|
|
533
|
-
function p(
|
|
534
|
-
return f(
|
|
536
|
+
function p(q, J) {
|
|
537
|
+
return f(q.valueOf(), J.valueOf());
|
|
535
538
|
}
|
|
536
|
-
function d(
|
|
537
|
-
var T =
|
|
539
|
+
function d(q, J, ue, E) {
|
|
540
|
+
var T = q.size === J.size;
|
|
538
541
|
if (!T)
|
|
539
542
|
return !1;
|
|
540
|
-
if (!
|
|
543
|
+
if (!q.size)
|
|
541
544
|
return !0;
|
|
542
|
-
var D = {},
|
|
543
|
-
return
|
|
545
|
+
var D = {}, $ = 0;
|
|
546
|
+
return q.forEach(function(B, F) {
|
|
544
547
|
if (T) {
|
|
545
|
-
var K = !1,
|
|
546
|
-
J.forEach(function(
|
|
547
|
-
!K && !D[
|
|
548
|
-
}),
|
|
548
|
+
var K = !1, G = 0;
|
|
549
|
+
J.forEach(function(ne, ge) {
|
|
550
|
+
!K && !D[G] && (K = ue(F, ge, $, G, q, J, E) && ue(B, ne, F, ge, q, J, E)) && (D[G] = !0), G++;
|
|
551
|
+
}), $++, T = K;
|
|
549
552
|
}
|
|
550
553
|
}), T;
|
|
551
554
|
}
|
|
552
|
-
var m = o(d),
|
|
553
|
-
function L(
|
|
554
|
-
var T = Object.keys(
|
|
555
|
+
var m = o(d), x = "_owner", M = Object.prototype.hasOwnProperty;
|
|
556
|
+
function L(q, J, ue, E) {
|
|
557
|
+
var T = Object.keys(q), D = T.length;
|
|
555
558
|
if (Object.keys(J).length !== D)
|
|
556
559
|
return !1;
|
|
557
|
-
for (var
|
|
558
|
-
if (
|
|
559
|
-
var B = !!
|
|
560
|
-
if ((B ||
|
|
560
|
+
for (var $; D-- > 0; ) {
|
|
561
|
+
if ($ = T[D], $ === x) {
|
|
562
|
+
var B = !!q.$$typeof, F = !!J.$$typeof;
|
|
563
|
+
if ((B || F) && B !== F)
|
|
561
564
|
return !1;
|
|
562
565
|
}
|
|
563
|
-
if (!M.call(J,
|
|
566
|
+
if (!M.call(J, $) || !ue(q[$], J[$], $, $, q, J, E))
|
|
564
567
|
return !1;
|
|
565
568
|
}
|
|
566
569
|
return !0;
|
|
567
570
|
}
|
|
568
571
|
var N = o(L);
|
|
569
|
-
function I(
|
|
570
|
-
return
|
|
572
|
+
function I(q, J) {
|
|
573
|
+
return q.source === J.source && q.flags === J.flags;
|
|
571
574
|
}
|
|
572
|
-
function P(
|
|
573
|
-
var T =
|
|
575
|
+
function P(q, J, ue, E) {
|
|
576
|
+
var T = q.size === J.size;
|
|
574
577
|
if (!T)
|
|
575
578
|
return !1;
|
|
576
|
-
if (!
|
|
579
|
+
if (!q.size)
|
|
577
580
|
return !0;
|
|
578
581
|
var D = {};
|
|
579
|
-
return
|
|
582
|
+
return q.forEach(function($, B) {
|
|
580
583
|
if (T) {
|
|
581
|
-
var
|
|
582
|
-
J.forEach(function(
|
|
583
|
-
!
|
|
584
|
-
}), T =
|
|
584
|
+
var F = !1, K = 0;
|
|
585
|
+
J.forEach(function(G, ne) {
|
|
586
|
+
!F && !D[K] && (F = ue($, G, B, ne, q, J, E)) && (D[K] = !0), K++;
|
|
587
|
+
}), T = F;
|
|
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,42 +602,42 @@ function ur() {
|
|
|
599
602
|
areMapsEqual: m,
|
|
600
603
|
areObjectsEqual: N,
|
|
601
604
|
areRegExpsEqual: I,
|
|
602
|
-
areSetsEqual:
|
|
605
|
+
areSetsEqual: k,
|
|
603
606
|
createIsNestedEqual: n
|
|
604
|
-
}),
|
|
605
|
-
function te(
|
|
606
|
-
return
|
|
607
|
+
}), oe = u(U);
|
|
608
|
+
function te(q, J) {
|
|
609
|
+
return oe(q, J, void 0);
|
|
607
610
|
}
|
|
608
611
|
var A = u(i(U, { createIsNestedEqual: function() {
|
|
609
612
|
return f;
|
|
610
613
|
} }));
|
|
611
|
-
function
|
|
612
|
-
return A(
|
|
614
|
+
function V(q, J) {
|
|
615
|
+
return A(q, J, void 0);
|
|
613
616
|
}
|
|
614
617
|
var se = u(j);
|
|
615
|
-
function ae(
|
|
616
|
-
return se(
|
|
618
|
+
function ae(q, J) {
|
|
619
|
+
return se(q, J, /* @__PURE__ */ new WeakMap());
|
|
617
620
|
}
|
|
618
621
|
var fe = u(i(j, {
|
|
619
622
|
createIsNestedEqual: function() {
|
|
620
623
|
return f;
|
|
621
624
|
}
|
|
622
625
|
}));
|
|
623
|
-
function be(
|
|
624
|
-
return fe(
|
|
626
|
+
function be(q, J) {
|
|
627
|
+
return fe(q, J, /* @__PURE__ */ new WeakMap());
|
|
625
628
|
}
|
|
626
|
-
function
|
|
627
|
-
return u(i(U,
|
|
629
|
+
function xe(q) {
|
|
630
|
+
return u(i(U, q(U)));
|
|
628
631
|
}
|
|
629
|
-
function
|
|
630
|
-
var J = u(i(j,
|
|
632
|
+
function ze(q) {
|
|
633
|
+
var J = u(i(j, q(j)));
|
|
631
634
|
return function(ue, E, T) {
|
|
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 =
|
|
638
|
+
r.circularDeepEqual = ae, r.circularShallowEqual = be, r.createCustomCircularEqual = ze, r.createCustomEqual = xe, r.deepEqual = te, r.sameValueZeroEqual = f, r.shallowEqual = V, 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,32 +669,32 @@ 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 =
|
|
672
|
+
}), le.bottom = n, le.childrenEqual = f, le.cloneLayout = o, le.cloneLayoutItem = v, le.collides = g, le.compact = C, le.compactItem = S, le.compactType = q, 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 = V, le.sortLayoutItems = ae, le.sortLayoutItemsByColRow = be, le.sortLayoutItemsByRowCol = fe, le.synchronizeLayoutWithChildren = xe, le.validateLayout = ze, 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 };
|
|
673
676
|
}
|
|
674
677
|
function n(E) {
|
|
675
678
|
let T = 0, D;
|
|
676
|
-
for (let
|
|
677
|
-
D = E[
|
|
679
|
+
for (let $ = 0, B = E.length; $ < B; $++)
|
|
680
|
+
D = E[$].y + E[$].h, D > T && (T = D);
|
|
678
681
|
return T;
|
|
679
682
|
}
|
|
680
683
|
function o(E) {
|
|
681
684
|
const T = Array(E.length);
|
|
682
|
-
for (let D = 0,
|
|
685
|
+
for (let D = 0, $ = E.length; D < $; D++)
|
|
683
686
|
T[D] = v(E[D]);
|
|
684
687
|
return T;
|
|
685
688
|
}
|
|
686
689
|
function i(E, T) {
|
|
687
690
|
const D = Array(E.length);
|
|
688
|
-
for (let
|
|
689
|
-
T.i === E[
|
|
691
|
+
for (let $ = 0, B = E.length; $ < B; $++)
|
|
692
|
+
T.i === E[$].i ? D[$] = T : D[$] = E[$];
|
|
690
693
|
return D;
|
|
691
694
|
}
|
|
692
695
|
function c(E, T, D) {
|
|
693
|
-
let
|
|
694
|
-
return
|
|
696
|
+
let $ = h(E, T);
|
|
697
|
+
return $ ? ($ = D(v($)), E = i(E, $), [E, $]) : [E, null];
|
|
695
698
|
}
|
|
696
699
|
function v(E) {
|
|
697
700
|
return {
|
|
@@ -723,11 +726,11 @@ function Ct() {
|
|
|
723
726
|
function g(E, T) {
|
|
724
727
|
return !(E.i === T.i || E.x + E.w <= T.x || E.x >= T.x + T.w || E.y + E.h <= T.y || E.y >= T.y + T.h);
|
|
725
728
|
}
|
|
726
|
-
function C(E, T, D,
|
|
727
|
-
const B = u(E),
|
|
728
|
-
for (let
|
|
729
|
-
let ge = v(
|
|
730
|
-
ge.static || (ge = S(B, ge, T, D,
|
|
729
|
+
function C(E, T, D, $) {
|
|
730
|
+
const B = u(E), F = ae(E, T), K = Array(E.length);
|
|
731
|
+
for (let G = 0, ne = F.length; G < ne; G++) {
|
|
732
|
+
let ge = v(F[G]);
|
|
733
|
+
ge.static || (ge = S(B, ge, T, D, F, $), B.push(ge)), K[E.indexOf(F[G])] = ge, ge.moved = !1;
|
|
731
734
|
}
|
|
732
735
|
return K;
|
|
733
736
|
}
|
|
@@ -735,51 +738,51 @@ function Ct() {
|
|
|
735
738
|
x: "w",
|
|
736
739
|
y: "h"
|
|
737
740
|
};
|
|
738
|
-
function w(E, T, D,
|
|
739
|
-
const B = _[
|
|
740
|
-
T[
|
|
741
|
-
const
|
|
742
|
-
for (let K =
|
|
743
|
-
const
|
|
744
|
-
if (!
|
|
745
|
-
if (
|
|
746
|
-
g(T,
|
|
741
|
+
function w(E, T, D, $) {
|
|
742
|
+
const B = _[$];
|
|
743
|
+
T[$] += 1;
|
|
744
|
+
const F = E.map((K) => K.i).indexOf(T.i);
|
|
745
|
+
for (let K = F + 1; K < E.length; K++) {
|
|
746
|
+
const G = E[K];
|
|
747
|
+
if (!G.static) {
|
|
748
|
+
if (G.y > T.y + T.h) break;
|
|
749
|
+
g(T, G) && w(E, G, D + T[B], $);
|
|
747
750
|
}
|
|
748
751
|
}
|
|
749
|
-
T[
|
|
752
|
+
T[$] = D;
|
|
750
753
|
}
|
|
751
|
-
function S(E, T, D,
|
|
752
|
-
const K = D === "vertical",
|
|
754
|
+
function S(E, T, D, $, B, F) {
|
|
755
|
+
const K = D === "vertical", G = D === "horizontal";
|
|
753
756
|
if (K)
|
|
754
757
|
for (T.y = Math.min(n(E), T.y); T.y > 0 && !s(E, T); )
|
|
755
758
|
T.y--;
|
|
756
|
-
else if (
|
|
759
|
+
else if (G)
|
|
757
760
|
for (; T.x > 0 && !s(E, T); )
|
|
758
761
|
T.x--;
|
|
759
|
-
let
|
|
760
|
-
for (; (
|
|
761
|
-
if (
|
|
762
|
-
for (T.x =
|
|
762
|
+
let ne;
|
|
763
|
+
for (; (ne = s(E, T)) && !(D === null && F); )
|
|
764
|
+
if (G ? w(B, T, ne.x + ne.w, "x") : w(B, T, ne.y + ne.h, "y"), G && T.x + T.w > $)
|
|
765
|
+
for (T.x = $ - T.w, T.y++; T.x > 0 && !s(E, T); )
|
|
763
766
|
T.x--;
|
|
764
767
|
return T.y = Math.max(T.y, 0), T.x = Math.max(T.x, 0), T;
|
|
765
768
|
}
|
|
766
769
|
function R(E, T) {
|
|
767
770
|
const D = u(E);
|
|
768
|
-
for (let
|
|
769
|
-
const
|
|
770
|
-
if (
|
|
771
|
+
for (let $ = 0, B = E.length; $ < B; $++) {
|
|
772
|
+
const F = E[$];
|
|
773
|
+
if (F.x + F.w > T.cols && (F.x = T.cols - F.w), F.x < 0 && (F.x = 0, F.w = T.cols), !F.static) D.push(F);
|
|
771
774
|
else
|
|
772
|
-
for (; s(D,
|
|
773
|
-
|
|
775
|
+
for (; s(D, F); )
|
|
776
|
+
F.y++;
|
|
774
777
|
}
|
|
775
778
|
return E;
|
|
776
779
|
}
|
|
777
780
|
function h(E, T) {
|
|
778
|
-
for (let D = 0,
|
|
781
|
+
for (let D = 0, $ = E.length; D < $; D++)
|
|
779
782
|
if (E[D].i === T) return E[D];
|
|
780
783
|
}
|
|
781
784
|
function s(E, T) {
|
|
782
|
-
for (let D = 0,
|
|
785
|
+
for (let D = 0, $ = E.length; D < $; D++)
|
|
783
786
|
if (g(E[D], T)) return E[D];
|
|
784
787
|
}
|
|
785
788
|
function a(E, T) {
|
|
@@ -788,101 +791,101 @@ function Ct() {
|
|
|
788
791
|
function u(E) {
|
|
789
792
|
return E.filter((T) => T.static);
|
|
790
793
|
}
|
|
791
|
-
function y(E, T, D,
|
|
792
|
-
if (T.static && T.isDraggable !== !0 || T.y ===
|
|
793
|
-
`${T.i}${String(D)}${String(
|
|
794
|
+
function y(E, T, D, $, B, F, K, G, ne) {
|
|
795
|
+
if (T.static && T.isDraggable !== !0 || T.y === $ && T.x === D) return E;
|
|
796
|
+
`${T.i}${String(D)}${String($)}${T.x}${T.y}`;
|
|
794
797
|
const ge = T.x, tt = T.y;
|
|
795
|
-
typeof D == "number" && (T.x = D), typeof
|
|
798
|
+
typeof D == "number" && (T.x = D), typeof $ == "number" && (T.y = $), T.moved = !0;
|
|
796
799
|
let Pe = ae(E, K);
|
|
797
|
-
(K === "vertical" && typeof
|
|
800
|
+
(K === "vertical" && typeof $ == "number" ? tt >= $ : K === "horizontal" && typeof D == "number" ? ge >= D : !1) && (Pe = Pe.reverse());
|
|
798
801
|
const ft = a(Pe, T), Jt = ft.length > 0;
|
|
799
|
-
if (Jt &&
|
|
802
|
+
if (Jt && ne)
|
|
800
803
|
return o(E);
|
|
801
|
-
if (Jt &&
|
|
804
|
+
if (Jt && F)
|
|
802
805
|
return `${T.i}`, T.x = ge, T.y = tt, T.moved = !1, E;
|
|
803
|
-
for (let
|
|
804
|
-
const nt = ft[
|
|
806
|
+
for (let $n = 0, li = ft.length; $n < li; $n++) {
|
|
807
|
+
const nt = ft[$n];
|
|
805
808
|
`${T.i}${T.x}${T.y}${nt.i}${nt.x}${nt.y}`, !nt.moved && (nt.static ? E = l(E, nt, T, B, K) : E = l(E, T, nt, B, K));
|
|
806
809
|
}
|
|
807
810
|
return E;
|
|
808
811
|
}
|
|
809
|
-
function l(E, T, D,
|
|
810
|
-
const K = B === "horizontal",
|
|
811
|
-
if (
|
|
812
|
-
|
|
812
|
+
function l(E, T, D, $, B, F) {
|
|
813
|
+
const K = B === "horizontal", G = B === "vertical", ne = T.static;
|
|
814
|
+
if ($) {
|
|
815
|
+
$ = !1;
|
|
813
816
|
const Pe = {
|
|
814
817
|
x: K ? Math.max(T.x - D.w, 0) : D.x,
|
|
815
|
-
y:
|
|
818
|
+
y: G ? Math.max(T.y - D.h, 0) : D.y,
|
|
816
819
|
w: D.w,
|
|
817
820
|
h: D.h,
|
|
818
821
|
i: "-1"
|
|
819
822
|
}, we = s(E, Pe), ft = we && we.y + we.h > T.y, Jt = we && T.x + T.w > we.x;
|
|
820
823
|
if (we) {
|
|
821
|
-
if (ft &&
|
|
822
|
-
return y(E, D, void 0, T.y + 1,
|
|
824
|
+
if (ft && G)
|
|
825
|
+
return y(E, D, void 0, T.y + 1, $, ne, B);
|
|
823
826
|
if (ft && B == null)
|
|
824
827
|
return T.y = D.y, D.y = D.y + D.h, E;
|
|
825
828
|
if (Jt && K)
|
|
826
|
-
return y(E, T, D.x, void 0,
|
|
827
|
-
} else return `${D.i}${Pe.x}${Pe.y}`, y(E, D, K ? Pe.x : void 0,
|
|
829
|
+
return y(E, T, D.x, void 0, $, ne, B);
|
|
830
|
+
} else return `${D.i}${Pe.x}${Pe.y}`, y(E, D, K ? Pe.x : void 0, G ? Pe.y : void 0, $, ne, B);
|
|
828
831
|
}
|
|
829
|
-
const ge = K ? D.x + 1 : void 0, tt =
|
|
830
|
-
return ge == null && tt == null ? E : y(E, D, K ? D.x + 1 : void 0,
|
|
832
|
+
const ge = K ? D.x + 1 : void 0, tt = G ? D.y + 1 : void 0;
|
|
833
|
+
return ge == null && tt == null ? E : y(E, D, K ? D.x + 1 : void 0, G ? D.y + 1 : void 0, $, ne, B);
|
|
831
834
|
}
|
|
832
835
|
function p(E) {
|
|
833
836
|
return E * 100 + "%";
|
|
834
837
|
}
|
|
835
|
-
const d = (E, T, D,
|
|
838
|
+
const d = (E, T, D, $) => E + D > $ ? 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
|
-
left:
|
|
840
|
+
left: $,
|
|
838
841
|
height: B,
|
|
839
|
-
width:
|
|
842
|
+
width: F
|
|
840
843
|
} = T;
|
|
841
844
|
const K = E.top - (B - E.height);
|
|
842
845
|
return {
|
|
843
|
-
left:
|
|
844
|
-
width:
|
|
846
|
+
left: $,
|
|
847
|
+
width: F,
|
|
845
848
|
height: m(K, E.height, B),
|
|
846
849
|
top: M(K)
|
|
847
850
|
};
|
|
848
851
|
}, N = (E, T, D) => {
|
|
849
852
|
let {
|
|
850
|
-
top:
|
|
853
|
+
top: $,
|
|
851
854
|
left: B,
|
|
852
|
-
height:
|
|
855
|
+
height: F,
|
|
853
856
|
width: K
|
|
854
857
|
} = T;
|
|
855
858
|
return {
|
|
856
|
-
top:
|
|
857
|
-
height:
|
|
859
|
+
top: $,
|
|
860
|
+
height: F,
|
|
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 {
|
|
863
|
-
top:
|
|
866
|
+
top: $,
|
|
864
867
|
height: B,
|
|
865
|
-
width:
|
|
868
|
+
width: F
|
|
866
869
|
} = T;
|
|
867
|
-
const K = E.left - (
|
|
870
|
+
const K = E.left - (F - E.width);
|
|
868
871
|
return {
|
|
869
872
|
height: B,
|
|
870
|
-
width: K < 0 ? E.width : d(E.left, E.width,
|
|
871
|
-
top: M(
|
|
872
|
-
left:
|
|
873
|
+
width: K < 0 ? E.width : d(E.left, E.width, F, D),
|
|
874
|
+
top: M($),
|
|
875
|
+
left: x(K)
|
|
873
876
|
};
|
|
874
877
|
}, P = (E, T, D) => {
|
|
875
878
|
let {
|
|
876
|
-
top:
|
|
879
|
+
top: $,
|
|
877
880
|
left: B,
|
|
878
|
-
height:
|
|
881
|
+
height: F,
|
|
879
882
|
width: K
|
|
880
883
|
} = T;
|
|
881
884
|
return {
|
|
882
885
|
width: K,
|
|
883
886
|
left: B,
|
|
884
|
-
height: m(
|
|
885
|
-
top: M(
|
|
887
|
+
height: m($, E.height, F),
|
|
888
|
+
top: M($)
|
|
886
889
|
};
|
|
887
890
|
}, te = {
|
|
888
891
|
n: L,
|
|
@@ -902,28 +905,28 @@ function Ct() {
|
|
|
902
905
|
return L(arguments.length <= 0 ? void 0 : arguments[0], I(...arguments));
|
|
903
906
|
}
|
|
904
907
|
};
|
|
905
|
-
function A(E, T, D,
|
|
908
|
+
function A(E, T, D, $) {
|
|
906
909
|
const B = te[E];
|
|
907
910
|
return B ? B(T, {
|
|
908
911
|
...T,
|
|
909
912
|
...D
|
|
910
|
-
},
|
|
913
|
+
}, $) : D;
|
|
911
914
|
}
|
|
912
|
-
function
|
|
915
|
+
function V(E) {
|
|
913
916
|
let {
|
|
914
917
|
top: T,
|
|
915
918
|
left: D,
|
|
916
|
-
width:
|
|
919
|
+
width: $,
|
|
917
920
|
height: B
|
|
918
921
|
} = E;
|
|
919
|
-
const
|
|
922
|
+
const F = `translate(${D}px,${T}px)`;
|
|
920
923
|
return {
|
|
921
|
-
transform:
|
|
922
|
-
WebkitTransform:
|
|
923
|
-
MozTransform:
|
|
924
|
-
msTransform:
|
|
925
|
-
OTransform:
|
|
926
|
-
width: `${
|
|
924
|
+
transform: F,
|
|
925
|
+
WebkitTransform: F,
|
|
926
|
+
MozTransform: F,
|
|
927
|
+
msTransform: F,
|
|
928
|
+
OTransform: F,
|
|
929
|
+
width: `${$}px`,
|
|
927
930
|
height: `${B}px`,
|
|
928
931
|
position: "absolute"
|
|
929
932
|
};
|
|
@@ -932,13 +935,13 @@ function Ct() {
|
|
|
932
935
|
let {
|
|
933
936
|
top: T,
|
|
934
937
|
left: D,
|
|
935
|
-
width:
|
|
938
|
+
width: $,
|
|
936
939
|
height: B
|
|
937
940
|
} = E;
|
|
938
941
|
return {
|
|
939
942
|
top: `${T}px`,
|
|
940
943
|
left: `${D}px`,
|
|
941
|
-
width: `${
|
|
944
|
+
width: `${$}px`,
|
|
942
945
|
height: `${B}px`,
|
|
943
946
|
position: "absolute"
|
|
944
947
|
};
|
|
@@ -956,40 +959,44 @@ 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, $, B) {
|
|
960
963
|
E = E || [];
|
|
961
|
-
const
|
|
962
|
-
t.default.Children.forEach(T, (
|
|
963
|
-
if ((
|
|
964
|
-
const
|
|
965
|
-
|
|
964
|
+
const F = [];
|
|
965
|
+
t.default.Children.forEach(T, (G) => {
|
|
966
|
+
if ((G == null ? void 0 : G.key) == null) return;
|
|
967
|
+
const ne = h(E, String(G.key)), ge = G.props["data-grid"];
|
|
968
|
+
ne && ge == null ? F.push(v(ne)) : ge ? F.push(v({
|
|
966
969
|
...ge,
|
|
967
|
-
i:
|
|
968
|
-
})) :
|
|
970
|
+
i: G.key
|
|
971
|
+
})) : F.push(v({
|
|
969
972
|
w: 1,
|
|
970
973
|
h: 1,
|
|
971
974
|
x: 0,
|
|
972
|
-
y: n(
|
|
973
|
-
i: String(
|
|
975
|
+
y: n(F),
|
|
976
|
+
i: String(G.key)
|
|
974
977
|
}));
|
|
975
978
|
});
|
|
976
|
-
const K = R(
|
|
979
|
+
const K = R(F, {
|
|
977
980
|
cols: D
|
|
978
981
|
});
|
|
979
|
-
return B ? K : C(K,
|
|
982
|
+
return B ? K : C(K, $, D);
|
|
980
983
|
}
|
|
981
|
-
function
|
|
984
|
+
function ze(E) {
|
|
982
985
|
let T = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "Layout";
|
|
983
986
|
const D = ["x", "y", "w", "h"];
|
|
984
987
|
if (!Array.isArray(E)) throw new Error(T + " must be an array!");
|
|
985
|
-
for (let
|
|
986
|
-
const
|
|
987
|
-
for (let K = 0; K < D.length; K++)
|
|
988
|
-
|
|
989
|
-
|
|
988
|
+
for (let $ = 0, B = E.length; $ < B; $++) {
|
|
989
|
+
const F = E[$];
|
|
990
|
+
for (let K = 0; K < D.length; K++) {
|
|
991
|
+
const G = D[K], ne = F[G];
|
|
992
|
+
if (typeof ne != "number" || Number.isNaN(ne))
|
|
993
|
+
throw new Error(`ReactGridLayout: ${T}[${$}].${G} must be a number! Received: ${ne} (${typeof ne})`);
|
|
994
|
+
}
|
|
995
|
+
if (typeof F.i < "u" && typeof F.i != "string")
|
|
996
|
+
throw new Error(`ReactGridLayout: ${T}[${$}].i must be a string! Received: ${F.i} (${typeof F.i})`);
|
|
990
997
|
}
|
|
991
998
|
}
|
|
992
|
-
function
|
|
999
|
+
function q(E) {
|
|
993
1000
|
const {
|
|
994
1001
|
verticalCompact: T,
|
|
995
1002
|
compactType: D
|
|
@@ -1031,14 +1038,15 @@ function fr() {
|
|
|
1031
1038
|
function n(c, v, f, b, g) {
|
|
1032
1039
|
const {
|
|
1033
1040
|
margin: C,
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1041
|
+
containerPadding: _,
|
|
1042
|
+
cols: w,
|
|
1043
|
+
rowHeight: S,
|
|
1044
|
+
maxRows: R
|
|
1045
|
+
} = c, h = e(c);
|
|
1046
|
+
let s = Math.round((f - _[0]) / (h + C[0])), a = Math.round((v - _[1]) / (S + C[1]));
|
|
1047
|
+
return s = i(s, 0, w - b), a = i(a, 0, R - g), {
|
|
1048
|
+
x: s,
|
|
1049
|
+
y: a
|
|
1042
1050
|
};
|
|
1043
1051
|
}
|
|
1044
1052
|
function o(c, v, f, b, g, C) {
|
|
@@ -1059,17 +1067,17 @@ function fr() {
|
|
|
1059
1067
|
}
|
|
1060
1068
|
return Ue;
|
|
1061
1069
|
}
|
|
1062
|
-
var _t = {}, Wn = { exports: {} }, Hn,
|
|
1070
|
+
var _t = {}, Wn = { exports: {} }, Hn, xr;
|
|
1063
1071
|
function Ns() {
|
|
1064
|
-
if (
|
|
1065
|
-
|
|
1072
|
+
if (xr) return Hn;
|
|
1073
|
+
xr = 1;
|
|
1066
1074
|
var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
1067
1075
|
return Hn = e, Hn;
|
|
1068
1076
|
}
|
|
1069
|
-
var Un,
|
|
1077
|
+
var Un, Or;
|
|
1070
1078
|
function Ls() {
|
|
1071
|
-
if (
|
|
1072
|
-
|
|
1079
|
+
if (Or) return Un;
|
|
1080
|
+
Or = 1;
|
|
1073
1081
|
var e = /* @__PURE__ */ Ns();
|
|
1074
1082
|
function t() {
|
|
1075
1083
|
}
|
|
@@ -1130,11 +1138,11 @@ function Dr() {
|
|
|
1130
1138
|
for (var e, t, r = 0, n = ""; r < arguments.length; ) (e = arguments[r++]) && (t = Uo(e)) && (n && (n += " "), n += t);
|
|
1131
1139
|
return n;
|
|
1132
1140
|
}
|
|
1133
|
-
const
|
|
1141
|
+
const $s = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1134
1142
|
__proto__: null,
|
|
1135
1143
|
clsx: Dr,
|
|
1136
1144
|
default: Dr
|
|
1137
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1145
|
+
}, Symbol.toStringTag, { value: "Module" })), zs = /* @__PURE__ */ Ho($s);
|
|
1138
1146
|
var ye = {}, Ke = {}, Mr;
|
|
1139
1147
|
function Mn() {
|
|
1140
1148
|
if (Mr) return Ke;
|
|
@@ -1161,7 +1169,7 @@ function Mn() {
|
|
|
1161
1169
|
return Ke;
|
|
1162
1170
|
}
|
|
1163
1171
|
var Ze = {}, Nr;
|
|
1164
|
-
function
|
|
1172
|
+
function ks() {
|
|
1165
1173
|
if (Nr) return Ze;
|
|
1166
1174
|
Nr = 1, Object.defineProperty(Ze, "__esModule", {
|
|
1167
1175
|
value: !0
|
|
@@ -1197,12 +1205,12 @@ function hr() {
|
|
|
1197
1205
|
Lr = 1, Object.defineProperty(ye, "__esModule", {
|
|
1198
1206
|
value: !0
|
|
1199
1207
|
}), 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(
|
|
1208
|
+
var e = Mn(), t = n(ks());
|
|
1201
1209
|
function r(d) {
|
|
1202
1210
|
if (typeof WeakMap != "function") return null;
|
|
1203
|
-
var m = /* @__PURE__ */ new WeakMap(),
|
|
1211
|
+
var m = /* @__PURE__ */ new WeakMap(), x = /* @__PURE__ */ new WeakMap();
|
|
1204
1212
|
return (r = function(M) {
|
|
1205
|
-
return M ?
|
|
1213
|
+
return M ? x : m;
|
|
1206
1214
|
})(d);
|
|
1207
1215
|
}
|
|
1208
1216
|
function n(d, m) {
|
|
@@ -1210,100 +1218,100 @@ function hr() {
|
|
|
1210
1218
|
return d;
|
|
1211
1219
|
if (d === null || typeof d != "object" && typeof d != "function")
|
|
1212
1220
|
return { default: d };
|
|
1213
|
-
var
|
|
1214
|
-
if (
|
|
1215
|
-
return
|
|
1221
|
+
var x = r(m);
|
|
1222
|
+
if (x && x.has(d))
|
|
1223
|
+
return x.get(d);
|
|
1216
1224
|
var M = {}, L = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
1217
1225
|
for (var N in d)
|
|
1218
1226
|
if (N !== "default" && Object.prototype.hasOwnProperty.call(d, N)) {
|
|
1219
1227
|
var I = L ? Object.getOwnPropertyDescriptor(d, N) : null;
|
|
1220
1228
|
I && (I.get || I.set) ? Object.defineProperty(M, N, I) : M[N] = d[N];
|
|
1221
1229
|
}
|
|
1222
|
-
return M.default = d,
|
|
1230
|
+
return M.default = d, x && x.set(d, M), M;
|
|
1223
1231
|
}
|
|
1224
1232
|
let o = "";
|
|
1225
1233
|
function i(d, m) {
|
|
1226
|
-
return o || (o = (0, e.findInArray)(["matches", "webkitMatchesSelector", "mozMatchesSelector", "msMatchesSelector", "oMatchesSelector"], function(
|
|
1227
|
-
return (0, e.isFunction)(d[
|
|
1234
|
+
return o || (o = (0, e.findInArray)(["matches", "webkitMatchesSelector", "mozMatchesSelector", "msMatchesSelector", "oMatchesSelector"], function(x) {
|
|
1235
|
+
return (0, e.isFunction)(d[x]);
|
|
1228
1236
|
})), (0, e.isFunction)(d[o]) ? d[o](m) : !1;
|
|
1229
1237
|
}
|
|
1230
|
-
function c(d, m,
|
|
1238
|
+
function c(d, m, x) {
|
|
1231
1239
|
let M = d;
|
|
1232
1240
|
do {
|
|
1233
1241
|
if (i(M, m)) return !0;
|
|
1234
|
-
if (M ===
|
|
1242
|
+
if (M === x) return !1;
|
|
1235
1243
|
M = M.parentNode;
|
|
1236
1244
|
} while (M);
|
|
1237
1245
|
return !1;
|
|
1238
1246
|
}
|
|
1239
|
-
function v(d, m,
|
|
1247
|
+
function v(d, m, x, M) {
|
|
1240
1248
|
if (!d) return;
|
|
1241
1249
|
const L = {
|
|
1242
1250
|
capture: !0,
|
|
1243
1251
|
...M
|
|
1244
1252
|
};
|
|
1245
|
-
d.addEventListener ? d.addEventListener(m,
|
|
1253
|
+
d.addEventListener ? d.addEventListener(m, x, L) : d.attachEvent ? d.attachEvent("on" + m, x) : d["on" + m] = x;
|
|
1246
1254
|
}
|
|
1247
|
-
function f(d, m,
|
|
1255
|
+
function f(d, m, x, M) {
|
|
1248
1256
|
if (!d) return;
|
|
1249
1257
|
const L = {
|
|
1250
1258
|
capture: !0,
|
|
1251
1259
|
...M
|
|
1252
1260
|
};
|
|
1253
|
-
d.removeEventListener ? d.removeEventListener(m,
|
|
1261
|
+
d.removeEventListener ? d.removeEventListener(m, x, L) : d.detachEvent ? d.detachEvent("on" + m, x) : d["on" + m] = null;
|
|
1254
1262
|
}
|
|
1255
1263
|
function b(d) {
|
|
1256
1264
|
let m = d.clientHeight;
|
|
1257
|
-
const
|
|
1258
|
-
return m += (0, e.int)(
|
|
1265
|
+
const x = d.ownerDocument.defaultView.getComputedStyle(d);
|
|
1266
|
+
return m += (0, e.int)(x.borderTopWidth), m += (0, e.int)(x.borderBottomWidth), m;
|
|
1259
1267
|
}
|
|
1260
1268
|
function g(d) {
|
|
1261
1269
|
let m = d.clientWidth;
|
|
1262
|
-
const
|
|
1263
|
-
return m += (0, e.int)(
|
|
1270
|
+
const x = d.ownerDocument.defaultView.getComputedStyle(d);
|
|
1271
|
+
return m += (0, e.int)(x.borderLeftWidth), m += (0, e.int)(x.borderRightWidth), m;
|
|
1264
1272
|
}
|
|
1265
1273
|
function C(d) {
|
|
1266
1274
|
let m = d.clientHeight;
|
|
1267
|
-
const
|
|
1268
|
-
return m -= (0, e.int)(
|
|
1275
|
+
const x = d.ownerDocument.defaultView.getComputedStyle(d);
|
|
1276
|
+
return m -= (0, e.int)(x.paddingTop), m -= (0, e.int)(x.paddingBottom), m;
|
|
1269
1277
|
}
|
|
1270
1278
|
function _(d) {
|
|
1271
1279
|
let m = d.clientWidth;
|
|
1272
|
-
const
|
|
1273
|
-
return m -= (0, e.int)(
|
|
1280
|
+
const x = d.ownerDocument.defaultView.getComputedStyle(d);
|
|
1281
|
+
return m -= (0, e.int)(x.paddingLeft), m -= (0, e.int)(x.paddingRight), m;
|
|
1274
1282
|
}
|
|
1275
|
-
function w(d, m,
|
|
1283
|
+
function w(d, m, x) {
|
|
1276
1284
|
const L = m === m.ownerDocument.body ? {
|
|
1277
1285
|
left: 0,
|
|
1278
1286
|
top: 0
|
|
1279
|
-
} : m.getBoundingClientRect(), N = (d.clientX + m.scrollLeft - L.left) /
|
|
1287
|
+
} : m.getBoundingClientRect(), N = (d.clientX + m.scrollLeft - L.left) / x, I = (d.clientY + m.scrollTop - L.top) / x;
|
|
1280
1288
|
return {
|
|
1281
1289
|
x: N,
|
|
1282
1290
|
y: I
|
|
1283
1291
|
};
|
|
1284
1292
|
}
|
|
1285
1293
|
function S(d, m) {
|
|
1286
|
-
const
|
|
1294
|
+
const x = h(d, m, "px");
|
|
1287
1295
|
return {
|
|
1288
|
-
[(0, t.browserPrefixToKey)("transform", t.default)]:
|
|
1296
|
+
[(0, t.browserPrefixToKey)("transform", t.default)]: x
|
|
1289
1297
|
};
|
|
1290
1298
|
}
|
|
1291
1299
|
function R(d, m) {
|
|
1292
1300
|
return h(d, m, "");
|
|
1293
1301
|
}
|
|
1294
|
-
function h(d, m,
|
|
1302
|
+
function h(d, m, x) {
|
|
1295
1303
|
let {
|
|
1296
1304
|
x: M,
|
|
1297
1305
|
y: L
|
|
1298
|
-
} = d, N = "translate(".concat(M).concat(
|
|
1306
|
+
} = d, N = "translate(".concat(M).concat(x, ",").concat(L).concat(x, ")");
|
|
1299
1307
|
if (m) {
|
|
1300
|
-
const I = "".concat(typeof m.x == "string" ? m.x : m.x +
|
|
1308
|
+
const I = "".concat(typeof m.x == "string" ? m.x : m.x + x), P = "".concat(typeof m.y == "string" ? m.y : m.y + x);
|
|
1301
1309
|
N = "translate(".concat(I, ", ").concat(P, ")") + N;
|
|
1302
1310
|
}
|
|
1303
1311
|
return N;
|
|
1304
1312
|
}
|
|
1305
1313
|
function s(d, m) {
|
|
1306
|
-
return d.targetTouches && (0, e.findInArray)(d.targetTouches, (
|
|
1314
|
+
return d.targetTouches && (0, e.findInArray)(d.targetTouches, (x) => m === x.identifier) || d.changedTouches && (0, e.findInArray)(d.changedTouches, (x) => m === x.identifier);
|
|
1307
1315
|
}
|
|
1308
1316
|
function a(d) {
|
|
1309
1317
|
if (d.targetTouches && d.targetTouches[0]) return d.targetTouches[0].identifier;
|
|
@@ -1336,10 +1344,10 @@ function hr() {
|
|
|
1336
1344
|
}
|
|
1337
1345
|
return ye;
|
|
1338
1346
|
}
|
|
1339
|
-
var We = {},
|
|
1347
|
+
var We = {}, $r;
|
|
1340
1348
|
function jo() {
|
|
1341
|
-
if (
|
|
1342
|
-
|
|
1349
|
+
if ($r) return We;
|
|
1350
|
+
$r = 1, Object.defineProperty(We, "__esModule", {
|
|
1343
1351
|
value: !0
|
|
1344
1352
|
}), We.canDragX = o, We.canDragY = i, We.createCoreData = v, We.createDraggableData = f, We.getBoundPosition = r, We.getControlPosition = c, We.snapToGrid = n;
|
|
1345
1353
|
var e = Mn(), t = hr();
|
|
@@ -1431,23 +1439,23 @@ function jo() {
|
|
|
1431
1439
|
}
|
|
1432
1440
|
return We;
|
|
1433
1441
|
}
|
|
1434
|
-
var Et = {}, en = {},
|
|
1442
|
+
var Et = {}, en = {}, zr;
|
|
1435
1443
|
function Bo() {
|
|
1436
|
-
if (
|
|
1437
|
-
|
|
1444
|
+
if (zr) return en;
|
|
1445
|
+
zr = 1, Object.defineProperty(en, "__esModule", {
|
|
1438
1446
|
value: !0
|
|
1439
1447
|
}), en.default = e;
|
|
1440
1448
|
function e() {
|
|
1441
1449
|
}
|
|
1442
1450
|
return en;
|
|
1443
1451
|
}
|
|
1444
|
-
var
|
|
1445
|
-
function
|
|
1446
|
-
if (
|
|
1447
|
-
|
|
1452
|
+
var kr;
|
|
1453
|
+
function Fs() {
|
|
1454
|
+
if (kr) return Et;
|
|
1455
|
+
kr = 1, Object.defineProperty(Et, "__esModule", {
|
|
1448
1456
|
value: !0
|
|
1449
1457
|
}), Et.default = void 0;
|
|
1450
|
-
var e = b(qe), t = v(/* @__PURE__ */ et()), r = v(
|
|
1458
|
+
var e = b(qe), t = v(/* @__PURE__ */ et()), r = v(xo), n = hr(), o = jo(), i = Mn(), c = v(Bo());
|
|
1451
1459
|
function v(h) {
|
|
1452
1460
|
return h && h.__esModule ? h : { default: h };
|
|
1453
1461
|
}
|
|
@@ -1557,8 +1565,8 @@ function ks() {
|
|
|
1557
1565
|
y
|
|
1558
1566
|
} = a;
|
|
1559
1567
|
if (Array.isArray(this.props.grid)) {
|
|
1560
|
-
let m = u - this.lastX || 0,
|
|
1561
|
-
[m,
|
|
1568
|
+
let m = u - this.lastX || 0, x = y - this.lastY || 0;
|
|
1569
|
+
[m, x] = (0, o.snapToGrid)(this.props.grid, m, x), u = this.lastX + m, y = this.lastY + x;
|
|
1562
1570
|
}
|
|
1563
1571
|
const l = (0, o.createCoreData)(this, u, y);
|
|
1564
1572
|
if (this.props.onStop(s, l) === !1 || this.mounted === !1) return !1;
|
|
@@ -1742,9 +1750,9 @@ function ks() {
|
|
|
1742
1750
|
scale: 1
|
|
1743
1751
|
}), Et;
|
|
1744
1752
|
}
|
|
1745
|
-
var
|
|
1753
|
+
var Fr;
|
|
1746
1754
|
function Vs() {
|
|
1747
|
-
return
|
|
1755
|
+
return Fr || (Fr = 1, function(e) {
|
|
1748
1756
|
Object.defineProperty(e, "__esModule", {
|
|
1749
1757
|
value: !0
|
|
1750
1758
|
}), Object.defineProperty(e, "DraggableCore", {
|
|
@@ -1753,7 +1761,7 @@ function Vs() {
|
|
|
1753
1761
|
return f.default;
|
|
1754
1762
|
}
|
|
1755
1763
|
}), e.default = void 0;
|
|
1756
|
-
var t = _(qe), r = g(/* @__PURE__ */ et()), n = g(
|
|
1764
|
+
var t = _(qe), r = g(/* @__PURE__ */ et()), n = g(xo), o = g(zs), i = hr(), c = jo(), v = Mn(), f = g(Fs()), b = g(Bo());
|
|
1757
1765
|
function g(a) {
|
|
1758
1766
|
return a && a.__esModule ? a : { default: a };
|
|
1759
1767
|
}
|
|
@@ -1845,12 +1853,12 @@ function Vs() {
|
|
|
1845
1853
|
};
|
|
1846
1854
|
if (this.props.bounds) {
|
|
1847
1855
|
const {
|
|
1848
|
-
x
|
|
1856
|
+
x,
|
|
1849
1857
|
y: M
|
|
1850
1858
|
} = d;
|
|
1851
1859
|
d.x += this.state.slackX, d.y += this.state.slackY;
|
|
1852
1860
|
const [L, N] = (0, c.getBoundPosition)(this, d.x, d.y);
|
|
1853
|
-
d.x = L, d.y = N, d.slackX = this.state.slackX + (
|
|
1861
|
+
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
1862
|
}
|
|
1855
1863
|
if (this.props.onDrag(y, p) === !1) return !1;
|
|
1856
1864
|
this.setState(d);
|
|
@@ -1864,10 +1872,10 @@ function Vs() {
|
|
|
1864
1872
|
};
|
|
1865
1873
|
if (!!this.props.position) {
|
|
1866
1874
|
const {
|
|
1867
|
-
x
|
|
1875
|
+
x,
|
|
1868
1876
|
y: M
|
|
1869
1877
|
} = this.props.position;
|
|
1870
|
-
d.x =
|
|
1878
|
+
d.x = x, d.y = M;
|
|
1871
1879
|
}
|
|
1872
1880
|
this.setState(d);
|
|
1873
1881
|
}), this.state = {
|
|
@@ -1912,23 +1920,23 @@ function Vs() {
|
|
|
1912
1920
|
defaultPosition: p,
|
|
1913
1921
|
defaultClassName: d,
|
|
1914
1922
|
defaultClassNameDragging: m,
|
|
1915
|
-
defaultClassNameDragged:
|
|
1923
|
+
defaultClassNameDragged: x,
|
|
1916
1924
|
position: M,
|
|
1917
1925
|
positionOffset: L,
|
|
1918
1926
|
scale: N,
|
|
1919
1927
|
...I
|
|
1920
1928
|
} = this.props;
|
|
1921
|
-
let P = {},
|
|
1922
|
-
const j = !!!M || this.state.dragging,
|
|
1929
|
+
let P = {}, k = null;
|
|
1930
|
+
const j = !!!M || this.state.dragging, oe = M || p, te = {
|
|
1923
1931
|
// Set left if horizontal drag is enabled
|
|
1924
|
-
x: (0, c.canDragX)(this) && j ? this.state.x :
|
|
1932
|
+
x: (0, c.canDragX)(this) && j ? this.state.x : oe.x,
|
|
1925
1933
|
// Set top if vertical drag is enabled
|
|
1926
|
-
y: (0, c.canDragY)(this) && j ? this.state.y :
|
|
1934
|
+
y: (0, c.canDragY)(this) && j ? this.state.y : oe.y
|
|
1927
1935
|
};
|
|
1928
|
-
this.state.isElementSVG ?
|
|
1936
|
+
this.state.isElementSVG ? k = (0, i.createSVGTransform)(te, L) : P = (0, i.createCSSTransform)(te, L);
|
|
1929
1937
|
const A = (0, o.default)(l.props.className || "", d, {
|
|
1930
1938
|
[m]: this.state.dragging,
|
|
1931
|
-
[
|
|
1939
|
+
[x]: this.state.dragged
|
|
1932
1940
|
});
|
|
1933
1941
|
return /* @__PURE__ */ t.createElement(f.default, w({}, I, {
|
|
1934
1942
|
onStart: this.onDragStart,
|
|
@@ -1940,7 +1948,7 @@ function Vs() {
|
|
|
1940
1948
|
...l.props.style,
|
|
1941
1949
|
...P
|
|
1942
1950
|
},
|
|
1943
|
-
transform:
|
|
1951
|
+
transform: k
|
|
1944
1952
|
}));
|
|
1945
1953
|
}
|
|
1946
1954
|
}
|
|
@@ -2076,7 +2084,7 @@ function pr() {
|
|
|
2076
2084
|
} = Vs();
|
|
2077
2085
|
return It.exports = e, It.exports.default = e, It.exports.DraggableCore = t, It.exports;
|
|
2078
2086
|
}
|
|
2079
|
-
var Tt = { exports: {} },
|
|
2087
|
+
var Tt = { exports: {} }, xt = {}, tn = {}, qr;
|
|
2080
2088
|
function qs() {
|
|
2081
2089
|
if (qr) return tn;
|
|
2082
2090
|
qr = 1, tn.__esModule = !0, tn.cloneElement = v;
|
|
@@ -2127,10 +2135,10 @@ function qs() {
|
|
|
2127
2135
|
}
|
|
2128
2136
|
return tn;
|
|
2129
2137
|
}
|
|
2130
|
-
var
|
|
2138
|
+
var Ot = {}, Ar;
|
|
2131
2139
|
function Go() {
|
|
2132
|
-
if (Ar) return
|
|
2133
|
-
Ar = 1,
|
|
2140
|
+
if (Ar) return Ot;
|
|
2141
|
+
Ar = 1, Ot.__esModule = !0, Ot.resizableProps = void 0;
|
|
2134
2142
|
var e = t(/* @__PURE__ */ et());
|
|
2135
2143
|
pr();
|
|
2136
2144
|
function t(n) {
|
|
@@ -2241,12 +2249,12 @@ function Go() {
|
|
|
2241
2249
|
return e.default.number.apply(e.default, i);
|
|
2242
2250
|
}
|
|
2243
2251
|
};
|
|
2244
|
-
return
|
|
2252
|
+
return Ot.resizableProps = r, Ot;
|
|
2245
2253
|
}
|
|
2246
2254
|
var Wr;
|
|
2247
2255
|
function Xo() {
|
|
2248
|
-
if (Wr) return
|
|
2249
|
-
Wr = 1,
|
|
2256
|
+
if (Wr) return xt;
|
|
2257
|
+
Wr = 1, xt.__esModule = !0, xt.default = void 0;
|
|
2250
2258
|
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
2259
|
function i(s) {
|
|
2252
2260
|
if (typeof WeakMap != "function") return null;
|
|
@@ -2347,41 +2355,41 @@ function Xo() {
|
|
|
2347
2355
|
}, u.resetData = function() {
|
|
2348
2356
|
this.lastHandleRect = this.slack = null;
|
|
2349
2357
|
}, u.runConstraints = function(l, p) {
|
|
2350
|
-
var d = this.props, m = d.minConstraints,
|
|
2351
|
-
if (!m && !
|
|
2358
|
+
var d = this.props, m = d.minConstraints, x = d.maxConstraints, M = d.lockAspectRatio;
|
|
2359
|
+
if (!m && !x && !M) return [l, p];
|
|
2352
2360
|
if (M) {
|
|
2353
2361
|
var L = this.props.width / this.props.height, N = l - this.props.width, I = p - this.props.height;
|
|
2354
2362
|
Math.abs(N) > Math.abs(I * L) ? p = l / L : l = p * L;
|
|
2355
2363
|
}
|
|
2356
|
-
var P = l,
|
|
2357
|
-
return l += j, p +=
|
|
2364
|
+
var P = l, k = p, U = this.slack || [0, 0], j = U[0], oe = U[1];
|
|
2365
|
+
return l += j, p += oe, 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), oe + (k - p)], [l, p];
|
|
2358
2366
|
}, u.resizeHandler = function(l, p) {
|
|
2359
2367
|
var d = this;
|
|
2360
|
-
return function(m,
|
|
2361
|
-
var M =
|
|
2368
|
+
return function(m, x) {
|
|
2369
|
+
var M = x.node, L = x.deltaX, N = x.deltaY;
|
|
2362
2370
|
l === "onResizeStart" && d.resetData();
|
|
2363
2371
|
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
2372
|
if (!(!I && !P)) {
|
|
2365
|
-
var
|
|
2373
|
+
var k = p[0], U = p[p.length - 1], j = M.getBoundingClientRect();
|
|
2366
2374
|
if (d.lastHandleRect != null) {
|
|
2367
2375
|
if (U === "w") {
|
|
2368
|
-
var
|
|
2369
|
-
L +=
|
|
2376
|
+
var oe = j.left - d.lastHandleRect.left;
|
|
2377
|
+
L += oe;
|
|
2370
2378
|
}
|
|
2371
|
-
if (
|
|
2379
|
+
if (k === "n") {
|
|
2372
2380
|
var te = j.top - d.lastHandleRect.top;
|
|
2373
2381
|
N += te;
|
|
2374
2382
|
}
|
|
2375
2383
|
}
|
|
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 ||
|
|
2384
|
+
d.lastHandleRect = j, U === "w" && (L = -L), k === "n" && (N = -N);
|
|
2385
|
+
var A = d.props.width + (I ? L / d.props.transformScale : 0), V = d.props.height + (P ? N / d.props.transformScale : 0), se = d.runConstraints(A, V);
|
|
2386
|
+
A = se[0], V = se[1];
|
|
2387
|
+
var ae = A !== d.props.width || V !== d.props.height, fe = typeof d.props[l] == "function" ? d.props[l] : null, be = l === "onResize" && !ae;
|
|
2380
2388
|
fe && !be && (m.persist == null || m.persist(), fe(m, {
|
|
2381
2389
|
node: M,
|
|
2382
2390
|
size: {
|
|
2383
2391
|
width: A,
|
|
2384
|
-
height:
|
|
2392
|
+
height: V
|
|
2385
2393
|
},
|
|
2386
2394
|
handle: p
|
|
2387
2395
|
})), l === "onResizeStop" && d.resetData();
|
|
@@ -2396,14 +2404,14 @@ function Xo() {
|
|
|
2396
2404
|
});
|
|
2397
2405
|
if (typeof d == "function")
|
|
2398
2406
|
return d(l, p);
|
|
2399
|
-
var m = typeof d.type == "string",
|
|
2407
|
+
var m = typeof d.type == "string", x = g({
|
|
2400
2408
|
ref: p
|
|
2401
2409
|
}, m ? {} : {
|
|
2402
2410
|
handleAxis: l
|
|
2403
2411
|
});
|
|
2404
|
-
return /* @__PURE__ */ e.cloneElement(d,
|
|
2412
|
+
return /* @__PURE__ */ e.cloneElement(d, x);
|
|
2405
2413
|
}, u.render = function() {
|
|
2406
|
-
var l = this, p = this.props, d = p.children, m = p.className,
|
|
2414
|
+
var l = this, p = this.props, d = p.children, m = p.className, x = p.draggableOpts;
|
|
2407
2415
|
p.width, p.height, p.handle, p.handleSize, p.lockAspectRatio, p.axis, p.minConstraints, p.maxConstraints, p.onResize, p.onResizeStop, p.onResizeStart;
|
|
2408
2416
|
var M = p.resizeHandles;
|
|
2409
2417
|
p.transformScale;
|
|
@@ -2412,7 +2420,7 @@ function Xo() {
|
|
|
2412
2420
|
className: (m ? m + " " : "") + "react-resizable",
|
|
2413
2421
|
children: [].concat(d.props.children, M.map(function(N) {
|
|
2414
2422
|
var I, P = (I = l.handleRefs[N]) != null ? I : l.handleRefs[N] = /* @__PURE__ */ e.createRef();
|
|
2415
|
-
return /* @__PURE__ */ e.createElement(t.DraggableCore, v({},
|
|
2423
|
+
return /* @__PURE__ */ e.createElement(t.DraggableCore, v({}, x, {
|
|
2416
2424
|
nodeRef: P,
|
|
2417
2425
|
key: "resizableHandle-" + N,
|
|
2418
2426
|
onStop: l.resizeHandler("onResizeStop", N),
|
|
@@ -2423,7 +2431,7 @@ function Xo() {
|
|
|
2423
2431
|
}));
|
|
2424
2432
|
}, a;
|
|
2425
2433
|
}(e.Component);
|
|
2426
|
-
return
|
|
2434
|
+
return xt.default = h, h.propTypes = n.resizableProps, h.defaultProps = {
|
|
2427
2435
|
axis: "both",
|
|
2428
2436
|
handleSize: [20, 20],
|
|
2429
2437
|
lockAspectRatio: !1,
|
|
@@ -2431,7 +2439,7 @@ function Xo() {
|
|
|
2431
2439
|
maxConstraints: [1 / 0, 1 / 0],
|
|
2432
2440
|
resizeHandles: ["se"],
|
|
2433
2441
|
transformScale: 1
|
|
2434
|
-
},
|
|
2442
|
+
}, xt;
|
|
2435
2443
|
}
|
|
2436
2444
|
var Pt = {}, Hr;
|
|
2437
2445
|
function As() {
|
|
@@ -2537,10 +2545,10 @@ function As() {
|
|
|
2537
2545
|
height: l.props.height,
|
|
2538
2546
|
propsWidth: l.props.width,
|
|
2539
2547
|
propsHeight: l.props.height
|
|
2540
|
-
}, l.onResize = function(
|
|
2548
|
+
}, l.onResize = function(x, M) {
|
|
2541
2549
|
var L = M.size;
|
|
2542
|
-
l.props.onResize ? (
|
|
2543
|
-
return l.props.onResize && l.props.onResize(
|
|
2550
|
+
l.props.onResize ? (x.persist == null || x.persist(), l.setState(L, function() {
|
|
2551
|
+
return l.props.onResize && l.props.onResize(x, M);
|
|
2544
2552
|
})) : l.setState(L);
|
|
2545
2553
|
}, l;
|
|
2546
2554
|
}
|
|
@@ -2556,11 +2564,11 @@ function As() {
|
|
|
2556
2564
|
return y.render = function() {
|
|
2557
2565
|
var p = this.props, d = p.handle, m = p.handleSize;
|
|
2558
2566
|
p.onResize;
|
|
2559
|
-
var
|
|
2567
|
+
var x = p.onResizeStart, M = p.onResizeStop, L = p.draggableOpts, N = p.minConstraints, I = p.maxConstraints, P = p.lockAspectRatio, k = p.axis;
|
|
2560
2568
|
p.width, p.height;
|
|
2561
|
-
var U = p.resizeHandles, j = p.style,
|
|
2569
|
+
var U = p.resizeHandles, j = p.style, oe = p.transformScale, te = S(p, o);
|
|
2562
2570
|
return /* @__PURE__ */ e.createElement(r.default, {
|
|
2563
|
-
axis:
|
|
2571
|
+
axis: k,
|
|
2564
2572
|
draggableOpts: L,
|
|
2565
2573
|
handle: d,
|
|
2566
2574
|
handleSize: m,
|
|
@@ -2568,11 +2576,11 @@ function As() {
|
|
|
2568
2576
|
lockAspectRatio: P,
|
|
2569
2577
|
maxConstraints: I,
|
|
2570
2578
|
minConstraints: N,
|
|
2571
|
-
onResizeStart:
|
|
2579
|
+
onResizeStart: x,
|
|
2572
2580
|
onResize: this.onResize,
|
|
2573
2581
|
onResizeStop: M,
|
|
2574
2582
|
resizeHandles: U,
|
|
2575
|
-
transformScale:
|
|
2583
|
+
transformScale: oe,
|
|
2576
2584
|
width: this.state.width
|
|
2577
2585
|
}, /* @__PURE__ */ e.createElement("div", f({}, te, {
|
|
2578
2586
|
style: g(g({}, j), {}, {
|
|
@@ -2759,8 +2767,8 @@ function Hs() {
|
|
|
2759
2767
|
offsetParent: y
|
|
2760
2768
|
} = h;
|
|
2761
2769
|
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 =
|
|
2770
|
+
const l = y.getBoundingClientRect(), p = h.getBoundingClientRect(), d = p.left / a, m = l.left / a, x = p.top / a, M = l.top / a;
|
|
2771
|
+
u.left = d - m + y.scrollLeft, u.top = x - M + y.scrollTop, this.setState({
|
|
2764
2772
|
dragging: u
|
|
2765
2773
|
});
|
|
2766
2774
|
const {
|
|
@@ -2789,22 +2797,22 @@ function Hs() {
|
|
|
2789
2797
|
isBounded: p,
|
|
2790
2798
|
i: d,
|
|
2791
2799
|
w: m,
|
|
2792
|
-
h:
|
|
2800
|
+
h: x,
|
|
2793
2801
|
containerWidth: M
|
|
2794
2802
|
} = this.props, L = this.getPositionParams();
|
|
2795
2803
|
if (p) {
|
|
2796
2804
|
const {
|
|
2797
|
-
offsetParent:
|
|
2805
|
+
offsetParent: k
|
|
2798
2806
|
} = h;
|
|
2799
|
-
if (
|
|
2807
|
+
if (k) {
|
|
2800
2808
|
const {
|
|
2801
|
-
margin:
|
|
2802
|
-
rowHeight:
|
|
2803
|
-
containerPadding:
|
|
2804
|
-
} = this.props,
|
|
2805
|
-
y = (0, i.clamp)(y -
|
|
2806
|
-
const
|
|
2807
|
-
l = (0, i.clamp)(l -
|
|
2809
|
+
margin: U,
|
|
2810
|
+
rowHeight: j,
|
|
2811
|
+
containerPadding: oe
|
|
2812
|
+
} = this.props, te = k.clientHeight - (0, i.calcGridItemWHPx)(x, j, U[1]);
|
|
2813
|
+
y = (0, i.clamp)(y - oe[1], 0, te);
|
|
2814
|
+
const A = (0, i.calcGridColWidth)(L), V = M - (0, i.calcGridItemWHPx)(m, A, U[0]);
|
|
2815
|
+
l = (0, i.clamp)(l - oe[0], 0, V);
|
|
2808
2816
|
}
|
|
2809
2817
|
}
|
|
2810
2818
|
const N = {
|
|
@@ -2815,12 +2823,10 @@ function Hs() {
|
|
|
2815
2823
|
dragging: N
|
|
2816
2824
|
});
|
|
2817
2825
|
const {
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
} = (0, i.calcXY)(L, y - I[1], l - I[0], m, O);
|
|
2823
|
-
return u.call(this, d, P, F, {
|
|
2826
|
+
x: I,
|
|
2827
|
+
y: P
|
|
2828
|
+
} = (0, i.calcXY)(L, y, l, m, x);
|
|
2829
|
+
return u.call(this, d, I, P, {
|
|
2824
2830
|
e: S,
|
|
2825
2831
|
node: h,
|
|
2826
2832
|
newPosition: N
|
|
@@ -2838,26 +2844,25 @@ function Hs() {
|
|
|
2838
2844
|
const {
|
|
2839
2845
|
w: a,
|
|
2840
2846
|
h: u,
|
|
2841
|
-
i: y
|
|
2842
|
-
containerPadding: l
|
|
2847
|
+
i: y
|
|
2843
2848
|
} = this.props, {
|
|
2844
|
-
left:
|
|
2845
|
-
top:
|
|
2846
|
-
} = this.state.dragging,
|
|
2847
|
-
top:
|
|
2848
|
-
left:
|
|
2849
|
+
left: l,
|
|
2850
|
+
top: p
|
|
2851
|
+
} = this.state.dragging, d = {
|
|
2852
|
+
top: p,
|
|
2853
|
+
left: l
|
|
2849
2854
|
};
|
|
2850
2855
|
this.setState({
|
|
2851
2856
|
dragging: null
|
|
2852
2857
|
});
|
|
2853
2858
|
const {
|
|
2854
|
-
x:
|
|
2855
|
-
y:
|
|
2856
|
-
} = (0, i.calcXY)(this.getPositionParams(),
|
|
2857
|
-
return s.call(this, y,
|
|
2859
|
+
x: m,
|
|
2860
|
+
y: x
|
|
2861
|
+
} = (0, i.calcXY)(this.getPositionParams(), p, l, a, u);
|
|
2862
|
+
return s.call(this, y, m, x, {
|
|
2858
2863
|
e: S,
|
|
2859
2864
|
node: h,
|
|
2860
|
-
newPosition:
|
|
2865
|
+
newPosition: d
|
|
2861
2866
|
});
|
|
2862
2867
|
}), b(this, "onResizeStop", (S, R, h) => this.onResizeHandler(S, R, h, "onResizeStop")), b(this, "onResizeStart", (S, R, h) => this.onResizeHandler(S, R, h, "onResizeStart")), b(this, "onResize", (S, R, h) => this.onResizeHandler(S, R, h, "onResize"));
|
|
2863
2868
|
}
|
|
@@ -2975,7 +2980,7 @@ function Hs() {
|
|
|
2975
2980
|
transformScale: p,
|
|
2976
2981
|
resizeHandles: d,
|
|
2977
2982
|
resizeHandle: m
|
|
2978
|
-
} = this.props,
|
|
2983
|
+
} = 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
2984
|
return /* @__PURE__ */ e.default.createElement(
|
|
2980
2985
|
n.Resizable,
|
|
2981
2986
|
{
|
|
@@ -3012,7 +3017,7 @@ function Hs() {
|
|
|
3012
3017
|
x: p,
|
|
3013
3018
|
y: d,
|
|
3014
3019
|
i: m,
|
|
3015
|
-
maxH:
|
|
3020
|
+
maxH: x,
|
|
3016
3021
|
minH: M,
|
|
3017
3022
|
containerWidth: L
|
|
3018
3023
|
} = this.props, {
|
|
@@ -3024,10 +3029,10 @@ function Hs() {
|
|
|
3024
3029
|
resizing: s === "onResizeStop" ? null : P
|
|
3025
3030
|
}));
|
|
3026
3031
|
let {
|
|
3027
|
-
w:
|
|
3032
|
+
w: k,
|
|
3028
3033
|
h: U
|
|
3029
3034
|
} = (0, i.calcWH)(this.getPositionParams(), P.width, P.height, p, d, y);
|
|
3030
|
-
|
|
3035
|
+
k = (0, i.clamp)(k, Math.max(N, 1), I), U = (0, i.clamp)(U, M, x), l.call(this, m, k, U, {
|
|
3031
3036
|
e: S,
|
|
3032
3037
|
node: a,
|
|
3033
3038
|
size: P,
|
|
@@ -3224,7 +3229,7 @@ function Ko() {
|
|
|
3224
3229
|
layout: d
|
|
3225
3230
|
} = this.state, m = (0, n.getLayoutItem)(d, s);
|
|
3226
3231
|
if (!m) return;
|
|
3227
|
-
const
|
|
3232
|
+
const x = {
|
|
3228
3233
|
w: m.w,
|
|
3229
3234
|
h: m.h,
|
|
3230
3235
|
x: m.x,
|
|
@@ -3235,7 +3240,7 @@ function Ko() {
|
|
|
3235
3240
|
return this.setState({
|
|
3236
3241
|
oldDragItem: (0, n.cloneLayoutItem)(m),
|
|
3237
3242
|
oldLayout: d,
|
|
3238
|
-
activeDrag:
|
|
3243
|
+
activeDrag: x
|
|
3239
3244
|
}), this.props.onDragStart(d, m, m, null, l, p);
|
|
3240
3245
|
}), g(this, "onDrag", (s, a, u, y) => {
|
|
3241
3246
|
let {
|
|
@@ -3249,7 +3254,7 @@ function Ko() {
|
|
|
3249
3254
|
layout: m
|
|
3250
3255
|
} = this.state;
|
|
3251
3256
|
const {
|
|
3252
|
-
cols:
|
|
3257
|
+
cols: x,
|
|
3253
3258
|
allowOverlap: M,
|
|
3254
3259
|
preventCollision: L
|
|
3255
3260
|
} = this.props, N = (0, n.getLayoutItem)(m, s);
|
|
@@ -3262,8 +3267,8 @@ function Ko() {
|
|
|
3262
3267
|
placeholder: !0,
|
|
3263
3268
|
i: s
|
|
3264
3269
|
};
|
|
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),
|
|
3270
|
+
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({
|
|
3271
|
+
layout: M ? m : (0, n.compact)(m, (0, n.compactType)(this.props), x),
|
|
3267
3272
|
activeDrag: I
|
|
3268
3273
|
});
|
|
3269
3274
|
}), g(this, "onDragStop", (s, a, u, y) => {
|
|
@@ -3279,23 +3284,23 @@ function Ko() {
|
|
|
3279
3284
|
layout: m
|
|
3280
3285
|
} = this.state;
|
|
3281
3286
|
const {
|
|
3282
|
-
cols:
|
|
3287
|
+
cols: x,
|
|
3283
3288
|
preventCollision: M,
|
|
3284
3289
|
allowOverlap: L
|
|
3285
3290
|
} = this.props, N = (0, n.getLayoutItem)(m, s);
|
|
3286
3291
|
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),
|
|
3292
|
+
m = (0, n.moveElement)(m, N, a, u, !0, M, (0, n.compactType)(this.props), x, L);
|
|
3293
|
+
const P = L ? m : (0, n.compact)(m, (0, n.compactType)(this.props), x);
|
|
3289
3294
|
this.props.onDragStop(P, d, N, null, l, p);
|
|
3290
3295
|
const {
|
|
3291
|
-
oldLayout:
|
|
3296
|
+
oldLayout: k
|
|
3292
3297
|
} = this.state;
|
|
3293
3298
|
this.setState({
|
|
3294
3299
|
activeDrag: null,
|
|
3295
3300
|
layout: P,
|
|
3296
3301
|
oldDragItem: null,
|
|
3297
3302
|
oldLayout: null
|
|
3298
|
-
}), this.onLayoutMaybeChanged(P,
|
|
3303
|
+
}), this.onLayoutMaybeChanged(P, k);
|
|
3299
3304
|
}), g(this, "onResizeStart", (s, a, u, y) => {
|
|
3300
3305
|
let {
|
|
3301
3306
|
e: l,
|
|
@@ -3317,7 +3322,7 @@ function Ko() {
|
|
|
3317
3322
|
handle: m
|
|
3318
3323
|
} = y;
|
|
3319
3324
|
const {
|
|
3320
|
-
oldResizeItem:
|
|
3325
|
+
oldResizeItem: x
|
|
3321
3326
|
} = this.state, {
|
|
3322
3327
|
layout: M
|
|
3323
3328
|
} = this.state, {
|
|
@@ -3325,19 +3330,19 @@ function Ko() {
|
|
|
3325
3330
|
preventCollision: N,
|
|
3326
3331
|
allowOverlap: I
|
|
3327
3332
|
} = this.props;
|
|
3328
|
-
let P = !1,
|
|
3329
|
-
const [
|
|
3333
|
+
let P = !1, k, U, j;
|
|
3334
|
+
const [oe, te] = (0, n.withLayoutItem)(M, s, (V) => {
|
|
3330
3335
|
let se;
|
|
3331
|
-
return U =
|
|
3332
|
-
...
|
|
3336
|
+
return U = V.x, j = V.y, ["sw", "w", "nw", "n", "ne"].indexOf(m) !== -1 && (["sw", "nw", "w"].indexOf(m) !== -1 && (U = V.x + (V.w - a), a = V.x !== U && U < 0 ? V.w : a, U = U < 0 ? 0 : U), ["ne", "n", "nw"].indexOf(m) !== -1 && (j = V.y + (V.h - u), u = V.y !== j && j < 0 ? V.h : u, j = j < 0 ? 0 : j), P = !0), N && !I && (se = (0, n.getAllCollisions)(M, {
|
|
3337
|
+
...V,
|
|
3333
3338
|
w: a,
|
|
3334
3339
|
h: u,
|
|
3335
3340
|
x: U,
|
|
3336
3341
|
y: j
|
|
3337
|
-
}).filter((fe) => fe.i !==
|
|
3342
|
+
}).filter((fe) => fe.i !== V.i).length > 0, se && (j = V.y, u = V.h, U = V.x, a = V.w, P = !1)), V.w = a, V.h = u, V;
|
|
3338
3343
|
});
|
|
3339
3344
|
if (!te) return;
|
|
3340
|
-
|
|
3345
|
+
k = oe, P && (k = (0, n.moveElement)(oe, te, U, j, !0, this.props.preventCollision, (0, n.compactType)(this.props), L, I));
|
|
3341
3346
|
const A = {
|
|
3342
3347
|
w: te.w,
|
|
3343
3348
|
h: te.h,
|
|
@@ -3346,8 +3351,8 @@ function Ko() {
|
|
|
3346
3351
|
static: !0,
|
|
3347
3352
|
i: s
|
|
3348
3353
|
};
|
|
3349
|
-
this.props.onResize(
|
|
3350
|
-
layout: I ?
|
|
3354
|
+
this.props.onResize(k, x, te, A, l, p), this.setState({
|
|
3355
|
+
layout: I ? k : (0, n.compact)(k, (0, n.compactType)(this.props), L),
|
|
3351
3356
|
activeDrag: A
|
|
3352
3357
|
});
|
|
3353
3358
|
}), g(this, "onResizeStop", (s, a, u, y) => {
|
|
@@ -3359,9 +3364,9 @@ function Ko() {
|
|
|
3359
3364
|
layout: d,
|
|
3360
3365
|
oldResizeItem: m
|
|
3361
3366
|
} = this.state, {
|
|
3362
|
-
cols:
|
|
3367
|
+
cols: x,
|
|
3363
3368
|
allowOverlap: M
|
|
3364
|
-
} = this.props, L = (0, n.getLayoutItem)(d, s), N = M ? d : (0, n.compact)(d, (0, n.compactType)(this.props),
|
|
3369
|
+
} = this.props, L = (0, n.getLayoutItem)(d, s), N = M ? d : (0, n.compact)(d, (0, n.compactType)(this.props), x);
|
|
3365
3370
|
this.props.onResizeStop(N, m, L, null, l, p);
|
|
3366
3371
|
const {
|
|
3367
3372
|
oldLayout: I
|
|
@@ -3374,9 +3379,9 @@ function Ko() {
|
|
|
3374
3379
|
resizing: !1
|
|
3375
3380
|
}), this.onLayoutMaybeChanged(N, I);
|
|
3376
3381
|
}), g(this, "onDragOver", (s) => {
|
|
3377
|
-
var
|
|
3382
|
+
var oe;
|
|
3378
3383
|
if (s.preventDefault(), s.stopPropagation(), S && // $FlowIgnore can't figure this out
|
|
3379
|
-
!((
|
|
3384
|
+
!((oe = s.nativeEvent.target) != null && oe.classList.contains(w)))
|
|
3380
3385
|
return !1;
|
|
3381
3386
|
const {
|
|
3382
3387
|
droppingItem: a,
|
|
@@ -3386,7 +3391,7 @@ function Ko() {
|
|
|
3386
3391
|
rowHeight: p,
|
|
3387
3392
|
maxRows: d,
|
|
3388
3393
|
width: m,
|
|
3389
|
-
containerPadding:
|
|
3394
|
+
containerPadding: x,
|
|
3390
3395
|
transformScale: M
|
|
3391
3396
|
} = this.props, L = u == null ? void 0 : u(s);
|
|
3392
3397
|
if (L === !1)
|
|
@@ -3396,8 +3401,8 @@ function Ko() {
|
|
|
3396
3401
|
...L
|
|
3397
3402
|
}, {
|
|
3398
3403
|
layout: I
|
|
3399
|
-
} = this.state, P = s.currentTarget.getBoundingClientRect(),
|
|
3400
|
-
left:
|
|
3404
|
+
} = this.state, P = s.currentTarget.getBoundingClientRect(), k = s.clientX - P.left, U = s.clientY - P.top, j = {
|
|
3405
|
+
left: k / M,
|
|
3401
3406
|
top: U / M,
|
|
3402
3407
|
e: s
|
|
3403
3408
|
};
|
|
@@ -3407,7 +3412,7 @@ function Ko() {
|
|
|
3407
3412
|
left: te,
|
|
3408
3413
|
top: A
|
|
3409
3414
|
} = this.state.droppingPosition;
|
|
3410
|
-
(te !=
|
|
3415
|
+
(te != k || A != U) && this.setState({
|
|
3411
3416
|
droppingPosition: j
|
|
3412
3417
|
});
|
|
3413
3418
|
}
|
|
@@ -3418,8 +3423,8 @@ function Ko() {
|
|
|
3418
3423
|
maxRows: d,
|
|
3419
3424
|
rowHeight: p,
|
|
3420
3425
|
containerWidth: m,
|
|
3421
|
-
containerPadding:
|
|
3422
|
-
}, A = (0, o.calcXY)(te, U,
|
|
3426
|
+
containerPadding: x || y
|
|
3427
|
+
}, A = (0, o.calcXY)(te, U, k, N.w, N.h);
|
|
3423
3428
|
this.setState({
|
|
3424
3429
|
droppingDOMNode: /* @__PURE__ */ e.createElement("div", {
|
|
3425
3430
|
key: N.i
|
|
@@ -3520,7 +3525,7 @@ function Ko() {
|
|
|
3520
3525
|
rowHeight: p,
|
|
3521
3526
|
maxRows: d,
|
|
3522
3527
|
useCSSTransforms: m,
|
|
3523
|
-
transformScale:
|
|
3528
|
+
transformScale: x
|
|
3524
3529
|
} = this.props;
|
|
3525
3530
|
return /* @__PURE__ */ e.createElement(i.default, {
|
|
3526
3531
|
w: s.w,
|
|
@@ -3539,7 +3544,7 @@ function Ko() {
|
|
|
3539
3544
|
isResizable: !1,
|
|
3540
3545
|
isBounded: !1,
|
|
3541
3546
|
useCSSTransforms: m,
|
|
3542
|
-
transformScale:
|
|
3547
|
+
transformScale: x
|
|
3543
3548
|
}, /* @__PURE__ */ e.createElement("div", null));
|
|
3544
3549
|
}
|
|
3545
3550
|
/**
|
|
@@ -3557,28 +3562,28 @@ function Ko() {
|
|
|
3557
3562
|
margin: p,
|
|
3558
3563
|
containerPadding: d,
|
|
3559
3564
|
rowHeight: m,
|
|
3560
|
-
maxRows:
|
|
3565
|
+
maxRows: x,
|
|
3561
3566
|
isDraggable: M,
|
|
3562
3567
|
isResizable: L,
|
|
3563
3568
|
isBounded: N,
|
|
3564
3569
|
useCSSTransforms: I,
|
|
3565
3570
|
transformScale: P,
|
|
3566
|
-
draggableCancel:
|
|
3571
|
+
draggableCancel: k,
|
|
3567
3572
|
draggableHandle: U,
|
|
3568
3573
|
resizeHandles: j,
|
|
3569
|
-
resizeHandle:
|
|
3574
|
+
resizeHandle: oe
|
|
3570
3575
|
} = this.props, {
|
|
3571
3576
|
mounted: te,
|
|
3572
3577
|
droppingPosition: A
|
|
3573
|
-
} = this.state,
|
|
3578
|
+
} = this.state, V = typeof u.isDraggable == "boolean" ? u.isDraggable : !u.static && M, se = typeof u.isResizable == "boolean" ? u.isResizable : !u.static && L, ae = u.resizeHandles || j, fe = V && N && u.isBounded !== !1;
|
|
3574
3579
|
return /* @__PURE__ */ e.createElement(i.default, {
|
|
3575
3580
|
containerWidth: y,
|
|
3576
3581
|
cols: l,
|
|
3577
3582
|
margin: p,
|
|
3578
3583
|
containerPadding: d || p,
|
|
3579
|
-
maxRows:
|
|
3584
|
+
maxRows: x,
|
|
3580
3585
|
rowHeight: m,
|
|
3581
|
-
cancel:
|
|
3586
|
+
cancel: k,
|
|
3582
3587
|
handle: U,
|
|
3583
3588
|
onDragStop: this.onDragStop,
|
|
3584
3589
|
onDragStart: this.onDragStart,
|
|
@@ -3586,7 +3591,7 @@ function Ko() {
|
|
|
3586
3591
|
onResizeStart: this.onResizeStart,
|
|
3587
3592
|
onResize: this.onResize,
|
|
3588
3593
|
onResizeStop: this.onResizeStop,
|
|
3589
|
-
isDraggable:
|
|
3594
|
+
isDraggable: V,
|
|
3590
3595
|
isResizable: se,
|
|
3591
3596
|
isBounded: fe,
|
|
3592
3597
|
useCSSTransforms: I && te,
|
|
@@ -3604,7 +3609,7 @@ function Ko() {
|
|
|
3604
3609
|
static: u.static,
|
|
3605
3610
|
droppingPosition: a ? A : void 0,
|
|
3606
3611
|
resizeHandles: ae,
|
|
3607
|
-
resizeHandle:
|
|
3612
|
+
resizeHandle: oe
|
|
3608
3613
|
}, s);
|
|
3609
3614
|
}
|
|
3610
3615
|
render() {
|
|
@@ -3819,13 +3824,13 @@ function Us() {
|
|
|
3819
3824
|
cols: u,
|
|
3820
3825
|
layouts: y,
|
|
3821
3826
|
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),
|
|
3827
|
+
} = 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
3828
|
...y
|
|
3824
3829
|
};
|
|
3825
3830
|
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),
|
|
3831
|
+
d in x || (x[d] = (0, n.cloneLayout)(this.state.layout));
|
|
3832
|
+
let N = (0, o.findOrGenerateResponsiveLayout)(x, a, p, d, m, l);
|
|
3833
|
+
N = (0, n.synchronizeLayoutWithChildren)(N, this.props.children, m, l, this.props.allowOverlap), x[p] = N, this.props.onBreakpointChange(p, m), this.props.onLayoutChange(N, x), this.setState({
|
|
3829
3834
|
breakpoint: p,
|
|
3830
3835
|
layout: N,
|
|
3831
3836
|
cols: m
|
|
@@ -3844,7 +3849,7 @@ function Us() {
|
|
|
3844
3849
|
containerPadding: p,
|
|
3845
3850
|
onBreakpointChange: d,
|
|
3846
3851
|
onLayoutChange: m,
|
|
3847
|
-
onWidthChange:
|
|
3852
|
+
onWidthChange: x,
|
|
3848
3853
|
...M
|
|
3849
3854
|
} = this.props;
|
|
3850
3855
|
return /* @__PURE__ */ e.createElement(i.default, b({}, M, {
|
|
@@ -4342,7 +4347,7 @@ var ga = Object.getOwnPropertyDescriptor, ma = (e, t, r, n) => {
|
|
|
4342
4347
|
(c = e[i]) && (o = c(o) || o);
|
|
4343
4348
|
return o;
|
|
4344
4349
|
}, va = (e, t) => (r, n) => t(r, n, e);
|
|
4345
|
-
let vt = class extends
|
|
4350
|
+
let vt = class extends $e {
|
|
4346
4351
|
constructor(t) {
|
|
4347
4352
|
super();
|
|
4348
4353
|
Ye(this, "_initLocal", () => {
|
|
@@ -4404,16 +4409,16 @@ const ya = "univer-cf-preview", rn = {
|
|
|
4404
4409
|
}, [t]);
|
|
4405
4410
|
switch (t.type) {
|
|
4406
4411
|
case Z.dataBar: {
|
|
4407
|
-
const { isGradient: c } = t.config, v = { width: "50%", height: "100%" }, f = c ? `linear-gradient(to right, ${t.config.positiveColor ||
|
|
4408
|
-
return /* @__PURE__ */
|
|
4409
|
-
/* @__PURE__ */
|
|
4410
|
-
/* @__PURE__ */
|
|
4412
|
+
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;
|
|
4413
|
+
return /* @__PURE__ */ X("div", { className: rn.cfPreview, children: [
|
|
4414
|
+
/* @__PURE__ */ O("div", { style: { ...v, background: b, border: `1px solid ${t.config.nativeColor || Vt}` } }),
|
|
4415
|
+
/* @__PURE__ */ O("div", { style: { ...v, background: f, border: `1px solid ${t.config.positiveColor || Ft}` } })
|
|
4411
4416
|
] });
|
|
4412
4417
|
}
|
|
4413
4418
|
case Z.colorScale:
|
|
4414
|
-
return r && /* @__PURE__ */
|
|
4419
|
+
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
4420
|
case Z.iconSet:
|
|
4416
|
-
return n && /* @__PURE__ */
|
|
4421
|
+
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
4422
|
case Z.highlightCell: {
|
|
4418
4423
|
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
4424
|
fontWeight: R ? "bold" : void 0,
|
|
@@ -4422,11 +4427,11 @@ const ya = "univer-cf-preview", rn = {
|
|
|
4422
4427
|
backgroundColor: h,
|
|
4423
4428
|
color: s
|
|
4424
4429
|
};
|
|
4425
|
-
return /* @__PURE__ */
|
|
4430
|
+
return /* @__PURE__ */ O("div", { style: a, className: rn.cfPreview, children: "123" });
|
|
4426
4431
|
}
|
|
4427
4432
|
}
|
|
4428
4433
|
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",
|
|
4434
|
+
}, 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
4435
|
cfRuleList: ba,
|
|
4431
4436
|
ruleSelector: Sa,
|
|
4432
4437
|
select: Ca,
|
|
@@ -4436,8 +4441,8 @@ const ya = "univer-cf-preview", rn = {
|
|
|
4436
4441
|
disabled: Ia,
|
|
4437
4442
|
ruleItem: Ea,
|
|
4438
4443
|
ruleDescribe: Ta,
|
|
4439
|
-
ruleType:
|
|
4440
|
-
ruleRange:
|
|
4444
|
+
ruleType: xa,
|
|
4445
|
+
ruleRange: Oa,
|
|
4441
4446
|
active: Pa,
|
|
4442
4447
|
draggableHandle: Da,
|
|
4443
4448
|
deleteItem: Ma,
|
|
@@ -4453,73 +4458,73 @@ const ya = "univer-cf-preview", rn = {
|
|
|
4453
4458
|
return t.t("sheet.cf.ruleType.iconSet");
|
|
4454
4459
|
case Z.highlightCell:
|
|
4455
4460
|
switch (r.subType) {
|
|
4456
|
-
case
|
|
4461
|
+
case Y.average: {
|
|
4457
4462
|
const n = r.operator;
|
|
4458
4463
|
return t.t(`sheet.cf.preview.describe.${n}`, t.t("sheet.cf.subRuleType.average"));
|
|
4459
4464
|
}
|
|
4460
|
-
case
|
|
4465
|
+
case Y.duplicateValues:
|
|
4461
4466
|
return t.t("sheet.cf.subRuleType.duplicateValues");
|
|
4462
|
-
case
|
|
4467
|
+
case Y.uniqueValues:
|
|
4463
4468
|
return t.t("sheet.cf.subRuleType.uniqueValues");
|
|
4464
|
-
case
|
|
4469
|
+
case Y.number: {
|
|
4465
4470
|
const n = r.operator;
|
|
4466
4471
|
return t.t(`sheet.cf.preview.describe.${n}`, ...Array.isArray(r.value) ? r.value.map((o) => String(o)) : [String(r.value || "")]);
|
|
4467
4472
|
}
|
|
4468
|
-
case
|
|
4473
|
+
case Y.text: {
|
|
4469
4474
|
const n = r.operator;
|
|
4470
4475
|
return t.t(`sheet.cf.preview.describe.${n}`, r.value || "");
|
|
4471
4476
|
}
|
|
4472
|
-
case
|
|
4477
|
+
case Y.timePeriod: {
|
|
4473
4478
|
const n = r.operator;
|
|
4474
4479
|
return t.t(`sheet.cf.preview.describe.${n}`);
|
|
4475
4480
|
}
|
|
4476
|
-
case
|
|
4481
|
+
case Y.rank:
|
|
4477
4482
|
return r.isPercent ? r.isBottom ? t.t("sheet.cf.preview.describe.bottomNPercent", String(r.value)) : t.t("sheet.cf.preview.describe.topNPercent", String(r.value)) : r.isBottom ? t.t("sheet.cf.preview.describe.bottomN", String(r.value)) : t.t("sheet.cf.preview.describe.topN", String(r.value));
|
|
4478
|
-
case
|
|
4483
|
+
case Y.formula:
|
|
4479
4484
|
return t.t("sheet.cf.ruleType.formula");
|
|
4480
4485
|
}
|
|
4481
4486
|
}
|
|
4482
4487
|
};
|
|
4483
4488
|
let Qr = 0;
|
|
4484
|
-
const
|
|
4485
|
-
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$(
|
|
4489
|
+
const $a = (e) => {
|
|
4490
|
+
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$(ie.UNIVER_SHEET), void 0, void 0, []), g = b.getUnitId(), C = b.getActiveSheet();
|
|
4486
4491
|
if (!C)
|
|
4487
4492
|
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 =
|
|
4493
|
+
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
4494
|
{ label: c.t("sheet.cf.panel.workSheet"), value: "2" },
|
|
4490
4495
|
{ label: c.t("sheet.cf.panel.selectedRange"), value: "1" }
|
|
4491
|
-
],
|
|
4496
|
+
], x = () => {
|
|
4492
4497
|
const A = r.getSubunitRules(g, _);
|
|
4493
4498
|
if (!A || !A.length)
|
|
4494
4499
|
return [];
|
|
4495
4500
|
if (R === "1") {
|
|
4496
|
-
const
|
|
4497
|
-
if (!
|
|
4501
|
+
const V = o.getCurrentLastSelection();
|
|
4502
|
+
if (!V)
|
|
4498
4503
|
return [];
|
|
4499
|
-
const se =
|
|
4504
|
+
const se = V.range;
|
|
4500
4505
|
return A.filter((fe) => fe.ranges.some((be) => Ge.intersects(be, se)));
|
|
4501
4506
|
} else if (R === "2")
|
|
4502
4507
|
return [...A];
|
|
4503
4508
|
return [];
|
|
4504
|
-
}, [M, L] = H(
|
|
4509
|
+
}, [M, L] = H(x);
|
|
4505
4510
|
Qi(w), Re(() => {
|
|
4506
|
-
const A = i.onCommandExecuted((
|
|
4507
|
-
|
|
4511
|
+
const A = i.onCommandExecuted((V) => {
|
|
4512
|
+
V.id === rr.id && a(Math.random());
|
|
4508
4513
|
});
|
|
4509
4514
|
return () => A.dispose();
|
|
4510
4515
|
}), Re(() => {
|
|
4511
|
-
L(
|
|
4516
|
+
L(x);
|
|
4512
4517
|
}, [R, s, g, _]), Re(() => {
|
|
4513
4518
|
if (R === "2")
|
|
4514
4519
|
return;
|
|
4515
|
-
const A = new st((
|
|
4520
|
+
const A = new st((V) => {
|
|
4516
4521
|
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) &&
|
|
4522
|
+
const { id: be, params: xe } = fe, ze = n.getCurrentUnitForType(ie.UNIVER_SHEET).getUnitId();
|
|
4523
|
+
se.includes(be) && xe.unitId === ze && V.next(null);
|
|
4519
4524
|
});
|
|
4520
4525
|
return () => ae.dispose();
|
|
4521
4526
|
}).pipe(Sr(16)).subscribe(() => {
|
|
4522
|
-
L(
|
|
4527
|
+
L(x);
|
|
4523
4528
|
});
|
|
4524
4529
|
return () => {
|
|
4525
4530
|
A.unsubscribe();
|
|
@@ -4540,13 +4545,13 @@ const za = (e) => {
|
|
|
4540
4545
|
let be = setTimeout(() => {
|
|
4541
4546
|
ae.next();
|
|
4542
4547
|
}, 150);
|
|
4543
|
-
const
|
|
4548
|
+
const xe = () => {
|
|
4544
4549
|
be && clearTimeout(be), be = null;
|
|
4545
|
-
},
|
|
4546
|
-
|
|
4550
|
+
}, ze = (q) => {
|
|
4551
|
+
q.propertyName === "width" && (xe(), ae.next());
|
|
4547
4552
|
};
|
|
4548
|
-
return fe.addEventListener("transitionend",
|
|
4549
|
-
|
|
4553
|
+
return fe.addEventListener("transitionend", ze), () => {
|
|
4554
|
+
xe(), fe.removeEventListener("transitionend", ze);
|
|
4550
4555
|
};
|
|
4551
4556
|
}
|
|
4552
4557
|
}).pipe(Sr(16)).subscribe(() => {
|
|
@@ -4558,62 +4563,62 @@ const za = (e) => {
|
|
|
4558
4563
|
}, []);
|
|
4559
4564
|
const N = (A) => {
|
|
4560
4565
|
var ae;
|
|
4561
|
-
const
|
|
4562
|
-
if (!
|
|
4566
|
+
const V = n.getCurrentUnitForType(ie.UNIVER_SHEET).getUnitId(), se = (ae = n.getCurrentUnitForType(ie.UNIVER_SHEET).getActiveSheet()) == null ? void 0 : ae.getSheetId();
|
|
4567
|
+
if (!V || !se)
|
|
4563
4568
|
throw new Error("No active sheet found");
|
|
4564
|
-
i.executeCommand(mn.id, { unitId:
|
|
4565
|
-
}, I = (A,
|
|
4566
|
-
y(
|
|
4567
|
-
}, P = (A,
|
|
4568
|
-
var
|
|
4569
|
+
i.executeCommand(mn.id, { unitId: V, subUnitId: se, cfId: A.cfId });
|
|
4570
|
+
}, I = (A, V) => {
|
|
4571
|
+
y(V.y);
|
|
4572
|
+
}, P = (A, V, se) => {
|
|
4573
|
+
var q;
|
|
4569
4574
|
y(-1);
|
|
4570
|
-
const ae = n.getCurrentUnitForType(
|
|
4575
|
+
const ae = n.getCurrentUnitForType(ie.UNIVER_SHEET).getUnitId(), fe = (q = n.getCurrentUnitForType(ie.UNIVER_SHEET).getActiveSheet()) == null ? void 0 : q.getSheetId();
|
|
4571
4576
|
if (!ae || !fe)
|
|
4572
4577
|
throw new Error("No active sheet found");
|
|
4573
4578
|
const be = (J) => {
|
|
4574
4579
|
const ue = M.length;
|
|
4575
4580
|
return Math.min(ue - 1, Math.max(0, J));
|
|
4576
|
-
},
|
|
4577
|
-
|
|
4578
|
-
},
|
|
4581
|
+
}, xe = M[be(V.y)].cfId, ze = M[be(se.y)].cfId;
|
|
4582
|
+
xe !== ze && i.executeCommand(lr.id, { unitId: ae, subUnitId: fe, start: { id: xe, type: "self" }, end: { id: ze, type: se.y > V.y ? "after" : "before" } });
|
|
4583
|
+
}, k = () => {
|
|
4579
4584
|
e.onCreate();
|
|
4580
4585
|
}, U = () => {
|
|
4581
|
-
R === "2" ? i.executeCommand(Pn.id) : R === "1" && M.map((
|
|
4582
|
-
i.executeCommand(mn.id,
|
|
4586
|
+
R === "2" ? i.executeCommand(Pn.id) : R === "1" && M.map((V) => ({ unitId: g, subUnitId: _, cfId: V.cfId })).forEach((V) => {
|
|
4587
|
+
i.executeCommand(mn.id, V);
|
|
4583
4588
|
});
|
|
4584
4589
|
}, j = Ce(() => {
|
|
4585
|
-
const A = n.getCurrentUnitForType(
|
|
4590
|
+
const A = n.getCurrentUnitForType(ie.UNIVER_SHEET), V = A.getActiveSheet();
|
|
4586
4591
|
return M.filter((se) => {
|
|
4587
4592
|
const ae = se.ranges;
|
|
4588
|
-
return pn(v, A.getUnitId(),
|
|
4593
|
+
return pn(v, A.getUnitId(), V.getSheetId(), ae);
|
|
4589
4594
|
});
|
|
4590
|
-
}, [M]),
|
|
4591
|
-
const A = n.getCurrentUnitForType(
|
|
4595
|
+
}, [M]), oe = j.map((A, V) => ({ i: A.cfId, x: 0, w: 12, y: V, h: 1, isResizable: !1 })), te = Ce(() => {
|
|
4596
|
+
const A = n.getCurrentUnitForType(ie.UNIVER_SHEET), V = A.getActiveSheet();
|
|
4592
4597
|
return M.every((se) => {
|
|
4593
4598
|
const ae = se.ranges;
|
|
4594
|
-
return pn(v, A.getUnitId(),
|
|
4599
|
+
return pn(v, A.getUnitId(), V.getSheetId(), ae);
|
|
4595
4600
|
});
|
|
4596
4601
|
}, [M]);
|
|
4597
|
-
return /* @__PURE__ */
|
|
4598
|
-
/* @__PURE__ */
|
|
4599
|
-
/* @__PURE__ */
|
|
4602
|
+
return /* @__PURE__ */ X("div", { className: Se.cfRuleList, children: [
|
|
4603
|
+
/* @__PURE__ */ X("div", { className: Se.ruleSelector, children: [
|
|
4604
|
+
/* @__PURE__ */ O("div", { children: f.tWithReactNode(
|
|
4600
4605
|
"sheet.cf.panel.managerRuleSelect",
|
|
4601
|
-
/* @__PURE__ */
|
|
4606
|
+
/* @__PURE__ */ O(Ne, { className: Se.select, options: m, value: R, onChange: (A) => {
|
|
4602
4607
|
h(A);
|
|
4603
4608
|
} })
|
|
4604
|
-
).map((A,
|
|
4605
|
-
/* @__PURE__ */
|
|
4606
|
-
/* @__PURE__ */
|
|
4609
|
+
).map((A, V) => /* @__PURE__ */ O("span", { children: A }, V)) }),
|
|
4610
|
+
/* @__PURE__ */ X("div", { className: Se.btnList, children: [
|
|
4611
|
+
/* @__PURE__ */ O(mr, { title: c.t("sheet.cf.panel.createRule"), placement: "bottom", children: /* @__PURE__ */ O(
|
|
4607
4612
|
"div",
|
|
4608
4613
|
{
|
|
4609
4614
|
className: `
|
|
4610
4615
|
${Se.icon}
|
|
4611
4616
|
`,
|
|
4612
|
-
onClick:
|
|
4613
|
-
children: /* @__PURE__ */
|
|
4617
|
+
onClick: k,
|
|
4618
|
+
children: /* @__PURE__ */ O(Ao, {})
|
|
4614
4619
|
}
|
|
4615
4620
|
) }),
|
|
4616
|
-
M.length && te ? /* @__PURE__ */
|
|
4621
|
+
M.length && te ? /* @__PURE__ */ O(mr, { title: c.t("sheet.cf.panel.clear"), placement: "bottom", children: /* @__PURE__ */ O(
|
|
4617
4622
|
"div",
|
|
4618
4623
|
{
|
|
4619
4624
|
className: `
|
|
@@ -4621,32 +4626,32 @@ const za = (e) => {
|
|
|
4621
4626
|
${Se.icon}
|
|
4622
4627
|
`,
|
|
4623
4628
|
onClick: U,
|
|
4624
|
-
children: /* @__PURE__ */
|
|
4629
|
+
children: /* @__PURE__ */ O(dn, {})
|
|
4625
4630
|
}
|
|
4626
|
-
) }) : /* @__PURE__ */
|
|
4631
|
+
) }) : /* @__PURE__ */ O(
|
|
4627
4632
|
"div",
|
|
4628
4633
|
{
|
|
4629
4634
|
className: `
|
|
4630
4635
|
${Se.gap}
|
|
4631
4636
|
${Se.disabled}
|
|
4632
4637
|
`,
|
|
4633
|
-
children: /* @__PURE__ */
|
|
4638
|
+
children: /* @__PURE__ */ O(dn, {})
|
|
4634
4639
|
}
|
|
4635
4640
|
)
|
|
4636
4641
|
] })
|
|
4637
4642
|
] }),
|
|
4638
|
-
/* @__PURE__ */
|
|
4643
|
+
/* @__PURE__ */ O("div", { ref: d, className: Se.gridLayoutWrap, children: l ? /* @__PURE__ */ O(
|
|
4639
4644
|
pa,
|
|
4640
4645
|
{
|
|
4641
4646
|
onDragStop: P,
|
|
4642
4647
|
onDragStart: I,
|
|
4643
|
-
layout:
|
|
4648
|
+
layout: oe,
|
|
4644
4649
|
cols: 12,
|
|
4645
4650
|
rowHeight: 60,
|
|
4646
4651
|
width: l,
|
|
4647
4652
|
margin: [0, 10],
|
|
4648
4653
|
draggableHandle: ".draggableHandle",
|
|
4649
|
-
children: j == null ? void 0 : j.map((A,
|
|
4654
|
+
children: j == null ? void 0 : j.map((A, V) => /* @__PURE__ */ O("div", { children: /* @__PURE__ */ X(
|
|
4650
4655
|
"div",
|
|
4651
4656
|
{
|
|
4652
4657
|
onMouseMove: () => {
|
|
@@ -4658,10 +4663,10 @@ const za = (e) => {
|
|
|
4658
4663
|
},
|
|
4659
4664
|
className: `
|
|
4660
4665
|
${Se.ruleItem}
|
|
4661
|
-
${u ===
|
|
4666
|
+
${u === V ? Se.active : ""}
|
|
4662
4667
|
`,
|
|
4663
4668
|
children: [
|
|
4664
|
-
/* @__PURE__ */
|
|
4669
|
+
/* @__PURE__ */ O(
|
|
4665
4670
|
"div",
|
|
4666
4671
|
{
|
|
4667
4672
|
className: `
|
|
@@ -4669,25 +4674,25 @@ const za = (e) => {
|
|
|
4669
4674
|
draggableHandle
|
|
4670
4675
|
`,
|
|
4671
4676
|
onClick: (se) => se.stopPropagation(),
|
|
4672
|
-
children: /* @__PURE__ */
|
|
4677
|
+
children: /* @__PURE__ */ O(Wo, {})
|
|
4673
4678
|
}
|
|
4674
4679
|
),
|
|
4675
|
-
/* @__PURE__ */
|
|
4676
|
-
/* @__PURE__ */
|
|
4677
|
-
/* @__PURE__ */
|
|
4680
|
+
/* @__PURE__ */ X("div", { className: Se.ruleDescribe, children: [
|
|
4681
|
+
/* @__PURE__ */ O("div", { className: Se.ruleType, children: La(A, c) }),
|
|
4682
|
+
/* @__PURE__ */ O("div", { className: Se.ruleRange, children: A.ranges.map((se) => Io(se)).join(",") })
|
|
4678
4683
|
] }),
|
|
4679
|
-
/* @__PURE__ */
|
|
4680
|
-
/* @__PURE__ */
|
|
4684
|
+
/* @__PURE__ */ O("div", { className: Se.preview, children: /* @__PURE__ */ O(wt, { rule: A.rule }) }),
|
|
4685
|
+
/* @__PURE__ */ O(
|
|
4681
4686
|
"div",
|
|
4682
4687
|
{
|
|
4683
4688
|
className: `
|
|
4684
4689
|
${Se.deleteItem}
|
|
4685
|
-
${u ===
|
|
4690
|
+
${u === V ? Se.active : ""}
|
|
4686
4691
|
`,
|
|
4687
4692
|
onClick: (se) => {
|
|
4688
4693
|
se.stopPropagation(), N(A), S([]);
|
|
4689
4694
|
},
|
|
4690
|
-
children: /* @__PURE__ */
|
|
4695
|
+
children: /* @__PURE__ */ O(dn, {})
|
|
4691
4696
|
}
|
|
4692
4697
|
)
|
|
4693
4698
|
]
|
|
@@ -4696,25 +4701,25 @@ const za = (e) => {
|
|
|
4696
4701
|
}
|
|
4697
4702
|
) : null })
|
|
4698
4703
|
] });
|
|
4699
|
-
},
|
|
4700
|
-
cfColorPicker:
|
|
4701
|
-
cfColorPickerIcon:
|
|
4702
|
-
iconDropdown:
|
|
4704
|
+
}, za = "univer-cf-color-picker", ka = "univer-cf-color-picker-icon", Fa = "univer-icon-dropdown", Bn = {
|
|
4705
|
+
cfColorPicker: za,
|
|
4706
|
+
cfColorPickerIcon: ka,
|
|
4707
|
+
iconDropdown: Fa
|
|
4703
4708
|
}, ct = (e) => {
|
|
4704
4709
|
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__ */
|
|
4710
|
+
return b && (n ? /* @__PURE__ */ O(b, { className: i, extend: { colorChannel1: f.isValid ? t : "rgb(var(--primary-color))" } }) : /* @__PURE__ */ O(
|
|
4706
4711
|
sr,
|
|
4707
4712
|
{
|
|
4708
|
-
overlay: /* @__PURE__ */
|
|
4713
|
+
overlay: /* @__PURE__ */ O(
|
|
4709
4714
|
"div",
|
|
4710
4715
|
{
|
|
4711
4716
|
className: `
|
|
4712
4717
|
${Bn.cfColorPicker}
|
|
4713
4718
|
`,
|
|
4714
|
-
children: /* @__PURE__ */
|
|
4719
|
+
children: /* @__PURE__ */ O(Yi, { value: t, onChange: r })
|
|
4715
4720
|
}
|
|
4716
4721
|
),
|
|
4717
|
-
children: /* @__PURE__ */
|
|
4722
|
+
children: /* @__PURE__ */ X(
|
|
4718
4723
|
"span",
|
|
4719
4724
|
{
|
|
4720
4725
|
className: `
|
|
@@ -4722,8 +4727,8 @@ const za = (e) => {
|
|
|
4722
4727
|
${i}
|
|
4723
4728
|
`,
|
|
4724
4729
|
children: [
|
|
4725
|
-
/* @__PURE__ */
|
|
4726
|
-
c && /* @__PURE__ */
|
|
4730
|
+
/* @__PURE__ */ O(b, { extend: { colorChannel1: f.isValid ? t : "rgb(var(--primary-color))" } }),
|
|
4731
|
+
c && /* @__PURE__ */ O(Dn, { className: Bn.iconDropdown })
|
|
4727
4732
|
]
|
|
4728
4733
|
}
|
|
4729
4734
|
)
|
|
@@ -4758,19 +4763,19 @@ const za = (e) => {
|
|
|
4758
4763
|
stress: ul
|
|
4759
4764
|
}, it = (e, t) => ({ label: t.t(`sheet.cf.valueType.${e}`), value: e }), Gn = (e) => {
|
|
4760
4765
|
var S;
|
|
4761
|
-
const { type: t, className: r, onChange: n, id: o, value: i } = e, c = pe(de), v = c.getCurrentUnitForType(
|
|
4766
|
+
const { type: t, className: r, onChange: n, id: o, value: i } = e, c = pe(de), v = c.getCurrentUnitForType(ie.UNIVER_SHEET).getUnitId(), f = (S = c.getCurrentUnitForType(ie.UNIVER_SHEET).getActiveSheet()) == null ? void 0 : S.getSheetId(), b = Ce(() => String(i).startsWith("=") ? String(i) : "=", [i]), g = Ce(() => [re.max, re.min, "none"].includes(t) ? { disabled: !0 } : [re.percent, re.percentile].includes(t) ? {
|
|
4762
4767
|
min: 0,
|
|
4763
4768
|
max: 100
|
|
4764
4769
|
} : {
|
|
4765
4770
|
min: Number.MIN_SAFE_INTEGER,
|
|
4766
4771
|
max: Number.MAX_SAFE_INTEGER
|
|
4767
|
-
}, [t]), C =
|
|
4772
|
+
}, [t]), C = Fe({}), [_, w] = H(!1);
|
|
4768
4773
|
return Kt((R) => {
|
|
4769
4774
|
var s;
|
|
4770
4775
|
const h = (s = C.current) == null ? void 0 : s.handleOutClick;
|
|
4771
4776
|
h && h(R, () => w(!1));
|
|
4772
|
-
}), t ===
|
|
4773
|
-
|
|
4777
|
+
}), t === re.formula ? /* @__PURE__ */ O("div", { style: { width: "100%", marginLeft: 4 }, children: /* @__PURE__ */ O(
|
|
4778
|
+
xn,
|
|
4774
4779
|
{
|
|
4775
4780
|
initValue: b,
|
|
4776
4781
|
unitId: v,
|
|
@@ -4782,12 +4787,12 @@ const za = (e) => {
|
|
|
4782
4787
|
onFocus: () => w(!0),
|
|
4783
4788
|
actions: C.current
|
|
4784
4789
|
}
|
|
4785
|
-
) }) : /* @__PURE__ */
|
|
4790
|
+
) }) : /* @__PURE__ */ O(lt, { className: r, value: Number(e.value) || 0, onChange: (R) => e.onChange(R || 0), ...g });
|
|
4786
4791
|
}, dl = (e) => {
|
|
4787
4792
|
var N;
|
|
4788
|
-
const { interceptorManager: t } = e, r = pe(Te), n = ((N = e.rule) == null ? void 0 : N.type) === Z.colorScale ? e.rule : void 0, o = [it(
|
|
4793
|
+
const { interceptorManager: t } = e, r = pe(Te), n = ((N = e.rule) == null ? void 0 : N.type) === Z.colorScale ? e.rule : void 0, o = [it(re.num, r), it(re.percent, r), it(re.percentile, r), it(re.formula, r)], i = [it(re.min, r), ...o], c = [it("none", r), ...o], v = [it(re.max, r), ...o], [f, b] = H(() => {
|
|
4789
4794
|
var P;
|
|
4790
|
-
const I =
|
|
4795
|
+
const I = re.min;
|
|
4791
4796
|
return n && ((P = n.config[0]) == null ? void 0 : P.value.type) || I;
|
|
4792
4797
|
}), [g, C] = H(() => {
|
|
4793
4798
|
var P;
|
|
@@ -4795,7 +4800,7 @@ const za = (e) => {
|
|
|
4795
4800
|
return !n || n.config.length !== 3 ? I : ((P = n.config[1]) == null ? void 0 : P.value.type) || I;
|
|
4796
4801
|
}), [_, w] = H(() => {
|
|
4797
4802
|
var P;
|
|
4798
|
-
const I =
|
|
4803
|
+
const I = re.max;
|
|
4799
4804
|
return n && ((P = n.config[n.config.length - 1]) == null ? void 0 : P.value.type) || I;
|
|
4800
4805
|
}), [S, R] = H(() => {
|
|
4801
4806
|
if (!n)
|
|
@@ -4803,16 +4808,16 @@ const za = (e) => {
|
|
|
4803
4808
|
const P = n.config[0];
|
|
4804
4809
|
return (P == null ? void 0 : P.value.value) === void 0 ? 10 : P == null ? void 0 : P.value.value;
|
|
4805
4810
|
}), [h, s] = H(() => {
|
|
4806
|
-
var
|
|
4811
|
+
var k;
|
|
4807
4812
|
if (!n || n.config.length !== 3)
|
|
4808
4813
|
return 50;
|
|
4809
|
-
const P = (
|
|
4814
|
+
const P = (k = n.config[1]) == null ? void 0 : k.value.value;
|
|
4810
4815
|
return P === void 0 ? 50 : P;
|
|
4811
4816
|
}), [a, u] = H(() => {
|
|
4812
|
-
var
|
|
4817
|
+
var k;
|
|
4813
4818
|
if (!n)
|
|
4814
4819
|
return 90;
|
|
4815
|
-
const P = (
|
|
4820
|
+
const P = (k = n.config[n.config.length - 1]) == null ? void 0 : k.value.value;
|
|
4816
4821
|
return P === void 0 ? 90 : P;
|
|
4817
4822
|
}), [y, l] = H(() => {
|
|
4818
4823
|
var P;
|
|
@@ -4822,23 +4827,23 @@ const za = (e) => {
|
|
|
4822
4827
|
var P;
|
|
4823
4828
|
const I = "#7790f3";
|
|
4824
4829
|
return !n || n.config.length !== 3 ? I : ((P = n.config[1]) == null ? void 0 : P.color) || I;
|
|
4825
|
-
}), [m,
|
|
4830
|
+
}), [m, x] = H(() => {
|
|
4826
4831
|
var P;
|
|
4827
4832
|
const I = "#2e55ef";
|
|
4828
4833
|
return n && ((P = n.config[n.config.length - 1]) == null ? void 0 : P.color) || I;
|
|
4829
4834
|
}), M = Ce(() => (I) => {
|
|
4830
4835
|
const {
|
|
4831
4836
|
minType: P,
|
|
4832
|
-
medianType:
|
|
4837
|
+
medianType: k,
|
|
4833
4838
|
maxType: U,
|
|
4834
4839
|
minValue: j,
|
|
4835
|
-
medianValue:
|
|
4840
|
+
medianValue: oe,
|
|
4836
4841
|
maxValue: te,
|
|
4837
4842
|
minColor: A,
|
|
4838
|
-
medianColor:
|
|
4843
|
+
medianColor: V,
|
|
4839
4844
|
maxColor: se
|
|
4840
4845
|
} = I, ae = [];
|
|
4841
|
-
return ae.push({ color: A, value: { type: P, value: j } }),
|
|
4846
|
+
return ae.push({ color: A, value: { type: P, value: j } }), k !== "none" && ae.push({ color: V, value: { type: k, value: oe } }), ae.push({ color: se, value: { type: U, value: te } }), { config: ae.map((be, xe) => ({ ...be, index: xe })), type: Z.colorScale };
|
|
4842
4847
|
}, []);
|
|
4843
4848
|
Re(() => t.intercept(t.getInterceptPoints().submit, {
|
|
4844
4849
|
handler() {
|
|
@@ -4848,27 +4853,27 @@ const za = (e) => {
|
|
|
4848
4853
|
const L = (I) => {
|
|
4849
4854
|
e.onChange(M(I));
|
|
4850
4855
|
};
|
|
4851
|
-
return /* @__PURE__ */
|
|
4852
|
-
/* @__PURE__ */
|
|
4853
|
-
/* @__PURE__ */
|
|
4856
|
+
return /* @__PURE__ */ X("div", { children: [
|
|
4857
|
+
/* @__PURE__ */ O("div", { className: z.title, children: r.t("sheet.cf.panel.styleRule") }),
|
|
4858
|
+
/* @__PURE__ */ O(
|
|
4854
4859
|
"div",
|
|
4855
4860
|
{
|
|
4856
4861
|
className: `
|
|
4857
4862
|
${W.cfPreviewWrap}
|
|
4858
4863
|
`,
|
|
4859
|
-
children: /* @__PURE__ */
|
|
4864
|
+
children: /* @__PURE__ */ O(wt, { rule: M({ minType: f, medianType: g, maxType: _, minValue: S, medianValue: h, maxValue: a, minColor: y, medianColor: p, maxColor: m }) })
|
|
4860
4865
|
}
|
|
4861
4866
|
),
|
|
4862
|
-
/* @__PURE__ */
|
|
4863
|
-
/* @__PURE__ */
|
|
4867
|
+
/* @__PURE__ */ O("div", { className: z.label, children: r.t("sheet.cf.valueType.min") }),
|
|
4868
|
+
/* @__PURE__ */ X(
|
|
4864
4869
|
"div",
|
|
4865
4870
|
{
|
|
4866
4871
|
className: `
|
|
4867
|
-
${
|
|
4868
|
-
${
|
|
4872
|
+
${z.labelContainer}
|
|
4873
|
+
${z.mTSm}
|
|
4869
4874
|
`,
|
|
4870
4875
|
children: [
|
|
4871
|
-
/* @__PURE__ */
|
|
4876
|
+
/* @__PURE__ */ O(
|
|
4872
4877
|
Ne,
|
|
4873
4878
|
{
|
|
4874
4879
|
style: { flexShrink: 0 },
|
|
@@ -4881,12 +4886,12 @@ const za = (e) => {
|
|
|
4881
4886
|
}
|
|
4882
4887
|
}
|
|
4883
4888
|
),
|
|
4884
|
-
/* @__PURE__ */
|
|
4889
|
+
/* @__PURE__ */ O(
|
|
4885
4890
|
Gn,
|
|
4886
4891
|
{
|
|
4887
4892
|
id: "min",
|
|
4888
4893
|
className: `
|
|
4889
|
-
${
|
|
4894
|
+
${z.mLXxs}
|
|
4890
4895
|
`,
|
|
4891
4896
|
value: S,
|
|
4892
4897
|
type: f,
|
|
@@ -4895,10 +4900,10 @@ const za = (e) => {
|
|
|
4895
4900
|
}
|
|
4896
4901
|
}
|
|
4897
4902
|
),
|
|
4898
|
-
/* @__PURE__ */
|
|
4903
|
+
/* @__PURE__ */ O(
|
|
4899
4904
|
ct,
|
|
4900
4905
|
{
|
|
4901
|
-
className:
|
|
4906
|
+
className: z.mLXxs,
|
|
4902
4907
|
color: y,
|
|
4903
4908
|
onChange: (I) => {
|
|
4904
4909
|
l(I), L({ minType: f, medianType: g, maxType: _, minValue: S, medianValue: h, maxValue: a, minColor: I, medianColor: p, maxColor: m });
|
|
@@ -4908,16 +4913,16 @@ const za = (e) => {
|
|
|
4908
4913
|
]
|
|
4909
4914
|
}
|
|
4910
4915
|
),
|
|
4911
|
-
/* @__PURE__ */
|
|
4912
|
-
/* @__PURE__ */
|
|
4916
|
+
/* @__PURE__ */ O("div", { className: z.label, children: r.t("sheet.cf.panel.medianValue") }),
|
|
4917
|
+
/* @__PURE__ */ X(
|
|
4913
4918
|
"div",
|
|
4914
4919
|
{
|
|
4915
4920
|
className: `
|
|
4916
|
-
${
|
|
4917
|
-
${
|
|
4921
|
+
${z.labelContainer}
|
|
4922
|
+
${z.mTSm}
|
|
4918
4923
|
`,
|
|
4919
4924
|
children: [
|
|
4920
|
-
/* @__PURE__ */
|
|
4925
|
+
/* @__PURE__ */ O(
|
|
4921
4926
|
Ne,
|
|
4922
4927
|
{
|
|
4923
4928
|
style: { flexShrink: 0 },
|
|
@@ -4930,12 +4935,12 @@ const za = (e) => {
|
|
|
4930
4935
|
}
|
|
4931
4936
|
}
|
|
4932
4937
|
),
|
|
4933
|
-
/* @__PURE__ */
|
|
4938
|
+
/* @__PURE__ */ O(
|
|
4934
4939
|
Gn,
|
|
4935
4940
|
{
|
|
4936
4941
|
id: "median",
|
|
4937
4942
|
className: `
|
|
4938
|
-
${
|
|
4943
|
+
${z.mLXxs}
|
|
4939
4944
|
`,
|
|
4940
4945
|
value: h,
|
|
4941
4946
|
type: g,
|
|
@@ -4944,10 +4949,10 @@ const za = (e) => {
|
|
|
4944
4949
|
}
|
|
4945
4950
|
}
|
|
4946
4951
|
),
|
|
4947
|
-
g !== "none" && /* @__PURE__ */
|
|
4952
|
+
g !== "none" && /* @__PURE__ */ O(
|
|
4948
4953
|
ct,
|
|
4949
4954
|
{
|
|
4950
|
-
className:
|
|
4955
|
+
className: z.mLXxs,
|
|
4951
4956
|
color: p,
|
|
4952
4957
|
onChange: (I) => {
|
|
4953
4958
|
d(I), L({ minType: f, medianType: g, maxType: _, minValue: S, medianValue: h, maxValue: a, minColor: y, medianColor: I, maxColor: m });
|
|
@@ -4957,16 +4962,16 @@ const za = (e) => {
|
|
|
4957
4962
|
]
|
|
4958
4963
|
}
|
|
4959
4964
|
),
|
|
4960
|
-
/* @__PURE__ */
|
|
4961
|
-
/* @__PURE__ */
|
|
4965
|
+
/* @__PURE__ */ O("div", { className: z.label, children: r.t("sheet.cf.valueType.max") }),
|
|
4966
|
+
/* @__PURE__ */ X(
|
|
4962
4967
|
"div",
|
|
4963
4968
|
{
|
|
4964
4969
|
className: `
|
|
4965
|
-
${
|
|
4966
|
-
${
|
|
4970
|
+
${z.labelContainer}
|
|
4971
|
+
${z.mTSm}
|
|
4967
4972
|
`,
|
|
4968
4973
|
children: [
|
|
4969
|
-
/* @__PURE__ */
|
|
4974
|
+
/* @__PURE__ */ O(
|
|
4970
4975
|
Ne,
|
|
4971
4976
|
{
|
|
4972
4977
|
style: { flexShrink: 0 },
|
|
@@ -4979,12 +4984,12 @@ const za = (e) => {
|
|
|
4979
4984
|
}
|
|
4980
4985
|
}
|
|
4981
4986
|
),
|
|
4982
|
-
/* @__PURE__ */
|
|
4987
|
+
/* @__PURE__ */ O(
|
|
4983
4988
|
Gn,
|
|
4984
4989
|
{
|
|
4985
4990
|
id: "max",
|
|
4986
4991
|
className: `
|
|
4987
|
-
${
|
|
4992
|
+
${z.mLXxs}
|
|
4988
4993
|
`,
|
|
4989
4994
|
value: a,
|
|
4990
4995
|
type: _,
|
|
@@ -4993,13 +4998,13 @@ const za = (e) => {
|
|
|
4993
4998
|
}
|
|
4994
4999
|
}
|
|
4995
5000
|
),
|
|
4996
|
-
/* @__PURE__ */
|
|
5001
|
+
/* @__PURE__ */ O(
|
|
4997
5002
|
ct,
|
|
4998
5003
|
{
|
|
4999
|
-
className:
|
|
5004
|
+
className: z.mLXxs,
|
|
5000
5005
|
color: m,
|
|
5001
5006
|
onChange: (I) => {
|
|
5002
|
-
|
|
5007
|
+
x(I), L({ minType: f, medianType: g, maxType: _, minValue: S, medianValue: h, maxValue: a, minColor: y, medianColor: p, maxColor: I });
|
|
5003
5008
|
}
|
|
5004
5009
|
}
|
|
5005
5010
|
)
|
|
@@ -5009,23 +5014,23 @@ const za = (e) => {
|
|
|
5009
5014
|
] });
|
|
5010
5015
|
}, ht = (e, t) => ({ label: t.t(`sheet.cf.valueType.${e}`), value: e }), eo = (e) => {
|
|
5011
5016
|
var R;
|
|
5012
|
-
const { onChange: t, className: r, value: n, type: o, id: i, disabled: c = !1 } = e, v = pe(de), f = v.getCurrentUnitForType(
|
|
5017
|
+
const { onChange: t, className: r, value: n, type: o, id: i, disabled: c = !1 } = e, v = pe(de), f = v.getCurrentUnitForType(ie.UNIVER_SHEET).getUnitId(), b = (R = v.getCurrentUnitForType(ie.UNIVER_SHEET).getActiveSheet()) == null ? void 0 : R.getSheetId(), g = Fe({}), [C, _] = H(!1);
|
|
5013
5018
|
Kt((h) => {
|
|
5014
5019
|
var a;
|
|
5015
5020
|
const s = (a = g.current) == null ? void 0 : a.handleOutClick;
|
|
5016
5021
|
s && s(h, () => _(!1));
|
|
5017
5022
|
});
|
|
5018
|
-
const w =
|
|
5023
|
+
const w = Fe(n), S = Ce(() => [re.percentile, re.percent].includes(o) ? {
|
|
5019
5024
|
max: 100,
|
|
5020
5025
|
min: 0
|
|
5021
5026
|
} : {
|
|
5022
5027
|
min: Number.MIN_SAFE_INTEGER,
|
|
5023
5028
|
max: Number.MAX_SAFE_INTEGER
|
|
5024
5029
|
}, [o]);
|
|
5025
|
-
if (o ===
|
|
5030
|
+
if (o === re.formula) {
|
|
5026
5031
|
const h = String(w.current).startsWith("=") ? String(w.current) || "" : "=";
|
|
5027
|
-
return /* @__PURE__ */
|
|
5028
|
-
|
|
5032
|
+
return /* @__PURE__ */ O("div", { style: { width: "100%", marginLeft: 12 }, children: /* @__PURE__ */ O(
|
|
5033
|
+
xn,
|
|
5029
5034
|
{
|
|
5030
5035
|
initValue: h,
|
|
5031
5036
|
unitId: f,
|
|
@@ -5039,7 +5044,7 @@ const za = (e) => {
|
|
|
5039
5044
|
}
|
|
5040
5045
|
) });
|
|
5041
5046
|
}
|
|
5042
|
-
return /* @__PURE__ */
|
|
5047
|
+
return /* @__PURE__ */ O(
|
|
5043
5048
|
lt,
|
|
5044
5049
|
{
|
|
5045
5050
|
className: r,
|
|
@@ -5059,11 +5064,11 @@ const za = (e) => {
|
|
|
5059
5064
|
return n ? (P = n.config) != null && P.isGradient ? "1" : "0" : I;
|
|
5060
5065
|
}), [c, v] = H(() => {
|
|
5061
5066
|
var I;
|
|
5062
|
-
return n ? ((I = n.config) == null ? void 0 : I.positiveColor) ||
|
|
5067
|
+
return n ? ((I = n.config) == null ? void 0 : I.positiveColor) || Ft : Ft;
|
|
5063
5068
|
}), [f, b] = H(() => {
|
|
5064
5069
|
var I;
|
|
5065
5070
|
return n ? ((I = n.config) == null ? void 0 : I.nativeColor) || Vt : Vt;
|
|
5066
|
-
}), g = [ht(
|
|
5071
|
+
}), g = [ht(re.num, r), ht(re.percent, r), ht(re.percentile, r), ht(re.formula, r)], C = [ht(re.min, r), ...g], _ = [ht(re.max, r), ...g], [w, S] = H(() => {
|
|
5067
5072
|
var P;
|
|
5068
5073
|
const I = C[0].value;
|
|
5069
5074
|
return n && ((P = n.config) == null ? void 0 : P.min.type) || I;
|
|
@@ -5072,22 +5077,22 @@ const za = (e) => {
|
|
|
5072
5077
|
const I = _[0].value;
|
|
5073
5078
|
return n && ((P = n.config) == null ? void 0 : P.max.type) || I;
|
|
5074
5079
|
}), [s, a] = H(() => {
|
|
5075
|
-
var
|
|
5080
|
+
var k;
|
|
5076
5081
|
if (!n)
|
|
5077
5082
|
return 0;
|
|
5078
|
-
const P = ((
|
|
5079
|
-
return P.type ===
|
|
5083
|
+
const P = ((k = n.config) == null ? void 0 : k.min) || {};
|
|
5084
|
+
return P.type === re.formula ? P.value || "=" : P.value || 0;
|
|
5080
5085
|
}), [u, y] = H(() => {
|
|
5081
|
-
var
|
|
5086
|
+
var k;
|
|
5082
5087
|
if (!n)
|
|
5083
5088
|
return 100;
|
|
5084
|
-
const P = ((
|
|
5085
|
-
return P.type ===
|
|
5089
|
+
const P = ((k = n.config) == null ? void 0 : k.max) || {};
|
|
5090
|
+
return P.type === re.formula ? P.value || "=" : P.value === void 0 ? 100 : P.value;
|
|
5086
5091
|
}), [l, p] = H(() => n ? n.isShowValue === void 0 ? !0 : !!n.isShowValue : !0), d = (I) => ({ config: {
|
|
5087
5092
|
min: { type: I.minValueType, value: I.minValue },
|
|
5088
5093
|
max: { type: I.maxValueType, value: I.maxValue },
|
|
5089
5094
|
isGradient: I.isGradient === "1",
|
|
5090
|
-
positiveColor: I.positiveColor ||
|
|
5095
|
+
positiveColor: I.positiveColor || Ft,
|
|
5091
5096
|
nativeColor: I.nativeColor || Vt
|
|
5092
5097
|
}, type: Z.dataBar, isShowValue: I.isShowValue });
|
|
5093
5098
|
Re(() => t.intercept(t.getInterceptPoints().submit, {
|
|
@@ -5097,34 +5102,34 @@ const za = (e) => {
|
|
|
5097
5102
|
}), [o, s, w, u, R, c, f, t, l]);
|
|
5098
5103
|
const m = (I) => {
|
|
5099
5104
|
e.onChange(d(I));
|
|
5100
|
-
},
|
|
5105
|
+
}, x = (I) => {
|
|
5101
5106
|
v(I), m({ isGradient: o, minValue: s, minValueType: w, maxValue: u, maxValueType: R, positiveColor: I, nativeColor: f, isShowValue: l });
|
|
5102
5107
|
}, M = (I) => {
|
|
5103
5108
|
b(I), m({ isGradient: o, minValue: s, minValueType: w, maxValue: u, maxValueType: R, positiveColor: c, nativeColor: I, isShowValue: l });
|
|
5104
5109
|
}, L = (I) => g.map((P) => P.value).includes(I);
|
|
5105
|
-
return /* @__PURE__ */
|
|
5106
|
-
/* @__PURE__ */
|
|
5107
|
-
/* @__PURE__ */
|
|
5110
|
+
return /* @__PURE__ */ X("div", { children: [
|
|
5111
|
+
/* @__PURE__ */ O("div", { className: z.title, children: r.t("sheet.cf.panel.styleRule") }),
|
|
5112
|
+
/* @__PURE__ */ O(
|
|
5108
5113
|
"div",
|
|
5109
5114
|
{
|
|
5110
5115
|
className: `
|
|
5111
5116
|
${W.cfPreviewWrap}
|
|
5112
5117
|
`,
|
|
5113
|
-
children: /* @__PURE__ */
|
|
5118
|
+
children: /* @__PURE__ */ O(wt, { rule: d({ isGradient: o, minValue: s, minValueType: w, maxValue: u, maxValueType: R, positiveColor: c, nativeColor: f, isShowValue: l }) })
|
|
5114
5119
|
}
|
|
5115
5120
|
),
|
|
5116
|
-
/* @__PURE__ */
|
|
5117
|
-
/* @__PURE__ */
|
|
5118
|
-
/* @__PURE__ */
|
|
5121
|
+
/* @__PURE__ */ X("div", { children: [
|
|
5122
|
+
/* @__PURE__ */ O("div", { className: z.label, children: r.t("sheet.cf.panel.fillType") }),
|
|
5123
|
+
/* @__PURE__ */ X(
|
|
5119
5124
|
"div",
|
|
5120
5125
|
{
|
|
5121
5126
|
className: `
|
|
5122
|
-
${
|
|
5123
|
-
${
|
|
5124
|
-
${
|
|
5127
|
+
${z.mTSm}
|
|
5128
|
+
${z.mLXxs}
|
|
5129
|
+
${z.labelContainer}
|
|
5125
5130
|
`,
|
|
5126
5131
|
children: [
|
|
5127
|
-
/* @__PURE__ */
|
|
5132
|
+
/* @__PURE__ */ X(
|
|
5128
5133
|
Ki,
|
|
5129
5134
|
{
|
|
5130
5135
|
value: o,
|
|
@@ -5132,20 +5137,20 @@ const za = (e) => {
|
|
|
5132
5137
|
i(I), m({ isGradient: I, minValue: s, minValueType: w, maxValue: u, maxValueType: R, positiveColor: c, nativeColor: f, isShowValue: l });
|
|
5133
5138
|
},
|
|
5134
5139
|
children: [
|
|
5135
|
-
/* @__PURE__ */
|
|
5136
|
-
/* @__PURE__ */
|
|
5140
|
+
/* @__PURE__ */ O(vr, { value: "0", children: /* @__PURE__ */ O("span", { className: W.text, children: r.t("sheet.cf.panel.pureColor") }) }),
|
|
5141
|
+
/* @__PURE__ */ O(vr, { value: "1", children: /* @__PURE__ */ O("span", { className: W.text, children: r.t("sheet.cf.panel.gradient") }) })
|
|
5137
5142
|
]
|
|
5138
5143
|
}
|
|
5139
5144
|
),
|
|
5140
|
-
/* @__PURE__ */
|
|
5145
|
+
/* @__PURE__ */ X(
|
|
5141
5146
|
"div",
|
|
5142
5147
|
{
|
|
5143
5148
|
className: `
|
|
5144
5149
|
${W.utilItem}
|
|
5145
|
-
${
|
|
5150
|
+
${z.mLXl}
|
|
5146
5151
|
`,
|
|
5147
5152
|
children: [
|
|
5148
|
-
/* @__PURE__ */
|
|
5153
|
+
/* @__PURE__ */ O(
|
|
5149
5154
|
gn,
|
|
5150
5155
|
{
|
|
5151
5156
|
checked: !l,
|
|
@@ -5162,25 +5167,25 @@ const za = (e) => {
|
|
|
5162
5167
|
}
|
|
5163
5168
|
)
|
|
5164
5169
|
] }),
|
|
5165
|
-
/* @__PURE__ */
|
|
5166
|
-
/* @__PURE__ */
|
|
5167
|
-
/* @__PURE__ */
|
|
5170
|
+
/* @__PURE__ */ X("div", { children: [
|
|
5171
|
+
/* @__PURE__ */ O("div", { className: z.label, children: r.t("sheet.cf.panel.colorSet") }),
|
|
5172
|
+
/* @__PURE__ */ X(
|
|
5168
5173
|
"div",
|
|
5169
5174
|
{
|
|
5170
5175
|
className: `
|
|
5171
|
-
${
|
|
5172
|
-
${
|
|
5173
|
-
${
|
|
5176
|
+
${z.labelContainer}
|
|
5177
|
+
${z.mTSm}
|
|
5178
|
+
${z.mLXxs}
|
|
5174
5179
|
`,
|
|
5175
5180
|
children: [
|
|
5176
|
-
/* @__PURE__ */
|
|
5181
|
+
/* @__PURE__ */ X(
|
|
5177
5182
|
"div",
|
|
5178
5183
|
{
|
|
5179
5184
|
className: `
|
|
5180
|
-
${
|
|
5185
|
+
${z.labelContainer}
|
|
5181
5186
|
`,
|
|
5182
5187
|
children: [
|
|
5183
|
-
/* @__PURE__ */
|
|
5188
|
+
/* @__PURE__ */ O(
|
|
5184
5189
|
"div",
|
|
5185
5190
|
{
|
|
5186
5191
|
className: `
|
|
@@ -5189,7 +5194,7 @@ const za = (e) => {
|
|
|
5189
5194
|
children: r.t("sheet.cf.panel.native")
|
|
5190
5195
|
}
|
|
5191
5196
|
),
|
|
5192
|
-
/* @__PURE__ */
|
|
5197
|
+
/* @__PURE__ */ O(
|
|
5193
5198
|
ct,
|
|
5194
5199
|
{
|
|
5195
5200
|
color: f,
|
|
@@ -5199,15 +5204,15 @@ const za = (e) => {
|
|
|
5199
5204
|
]
|
|
5200
5205
|
}
|
|
5201
5206
|
),
|
|
5202
|
-
/* @__PURE__ */
|
|
5207
|
+
/* @__PURE__ */ X(
|
|
5203
5208
|
"div",
|
|
5204
5209
|
{
|
|
5205
5210
|
className: `
|
|
5206
|
-
${
|
|
5207
|
-
${
|
|
5211
|
+
${z.labelContainer}
|
|
5212
|
+
${z.mLSm}
|
|
5208
5213
|
`,
|
|
5209
5214
|
children: [
|
|
5210
|
-
/* @__PURE__ */
|
|
5215
|
+
/* @__PURE__ */ O(
|
|
5211
5216
|
"div",
|
|
5212
5217
|
{
|
|
5213
5218
|
className: `
|
|
@@ -5216,11 +5221,11 @@ const za = (e) => {
|
|
|
5216
5221
|
children: r.t("sheet.cf.panel.positive")
|
|
5217
5222
|
}
|
|
5218
5223
|
),
|
|
5219
|
-
/* @__PURE__ */
|
|
5224
|
+
/* @__PURE__ */ O(
|
|
5220
5225
|
ct,
|
|
5221
5226
|
{
|
|
5222
5227
|
color: c,
|
|
5223
|
-
onChange:
|
|
5228
|
+
onChange: x
|
|
5224
5229
|
}
|
|
5225
5230
|
)
|
|
5226
5231
|
]
|
|
@@ -5230,17 +5235,17 @@ const za = (e) => {
|
|
|
5230
5235
|
}
|
|
5231
5236
|
)
|
|
5232
5237
|
] }),
|
|
5233
|
-
/* @__PURE__ */
|
|
5234
|
-
/* @__PURE__ */
|
|
5235
|
-
/* @__PURE__ */
|
|
5238
|
+
/* @__PURE__ */ X("div", { children: [
|
|
5239
|
+
/* @__PURE__ */ O("div", { className: z.label, children: r.t("sheet.cf.valueType.min") }),
|
|
5240
|
+
/* @__PURE__ */ X(
|
|
5236
5241
|
"div",
|
|
5237
5242
|
{
|
|
5238
5243
|
className: `
|
|
5239
|
-
${
|
|
5240
|
-
${
|
|
5244
|
+
${z.mTSm}
|
|
5245
|
+
${z.labelContainer}
|
|
5241
5246
|
`,
|
|
5242
5247
|
children: [
|
|
5243
|
-
/* @__PURE__ */
|
|
5248
|
+
/* @__PURE__ */ O(
|
|
5244
5249
|
Ne,
|
|
5245
5250
|
{
|
|
5246
5251
|
style: { width: "50%", flexShrink: 0 },
|
|
@@ -5253,13 +5258,13 @@ const za = (e) => {
|
|
|
5253
5258
|
}
|
|
5254
5259
|
}
|
|
5255
5260
|
),
|
|
5256
|
-
/* @__PURE__ */
|
|
5261
|
+
/* @__PURE__ */ O(
|
|
5257
5262
|
eo,
|
|
5258
5263
|
{
|
|
5259
5264
|
disabled: !L(w),
|
|
5260
5265
|
id: "min",
|
|
5261
5266
|
type: w,
|
|
5262
|
-
className:
|
|
5267
|
+
className: z.mLSm,
|
|
5263
5268
|
value: s,
|
|
5264
5269
|
onChange: (I) => {
|
|
5265
5270
|
a(I || 0), m({ isGradient: o, minValue: I || 0, minValueType: w, maxValue: u, maxValueType: R, positiveColor: c, nativeColor: f, isShowValue: l });
|
|
@@ -5269,16 +5274,16 @@ const za = (e) => {
|
|
|
5269
5274
|
]
|
|
5270
5275
|
}
|
|
5271
5276
|
),
|
|
5272
|
-
/* @__PURE__ */
|
|
5273
|
-
/* @__PURE__ */
|
|
5277
|
+
/* @__PURE__ */ O("div", { className: z.label, children: r.t("sheet.cf.valueType.max") }),
|
|
5278
|
+
/* @__PURE__ */ X(
|
|
5274
5279
|
"div",
|
|
5275
5280
|
{
|
|
5276
5281
|
className: `
|
|
5277
|
-
${
|
|
5278
|
-
${
|
|
5282
|
+
${z.mTSm}
|
|
5283
|
+
${z.labelContainer}
|
|
5279
5284
|
`,
|
|
5280
5285
|
children: [
|
|
5281
|
-
/* @__PURE__ */
|
|
5286
|
+
/* @__PURE__ */ O(
|
|
5282
5287
|
Ne,
|
|
5283
5288
|
{
|
|
5284
5289
|
style: { width: "50%", flexShrink: 0 },
|
|
@@ -5291,13 +5296,13 @@ const za = (e) => {
|
|
|
5291
5296
|
}
|
|
5292
5297
|
}
|
|
5293
5298
|
),
|
|
5294
|
-
/* @__PURE__ */
|
|
5299
|
+
/* @__PURE__ */ O(
|
|
5295
5300
|
eo,
|
|
5296
5301
|
{
|
|
5297
5302
|
disabled: !L(R),
|
|
5298
5303
|
id: "max",
|
|
5299
5304
|
type: R,
|
|
5300
|
-
className:
|
|
5305
|
+
className: z.mLSm,
|
|
5301
5306
|
value: u,
|
|
5302
5307
|
onChange: (I) => {
|
|
5303
5308
|
y(I || 0), m({ isGradient: o, minValue: s, minValueType: w, maxValue: I || 0, maxValueType: R, positiveColor: c, nativeColor: f, isShowValue: l });
|
|
@@ -5355,7 +5360,7 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
5355
5360
|
it: v
|
|
5356
5361
|
};
|
|
5357
5362
|
w !== void 0 && (l.cl = { rgb: w }), R !== void 0 && (l.bg = { rgb: R }), C !== void 0 && (l.st = { s: C }), b !== void 0 && (l.ul = { s: b }), r(wi(l));
|
|
5358
|
-
}, [i, v, b, C, w, R]), /* @__PURE__ */
|
|
5363
|
+
}, [i, v, b, C, w, R]), /* @__PURE__ */ X(
|
|
5359
5364
|
"div",
|
|
5360
5365
|
{
|
|
5361
5366
|
className: `
|
|
@@ -5363,22 +5368,22 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
5363
5368
|
${n}
|
|
5364
5369
|
`,
|
|
5365
5370
|
children: [
|
|
5366
|
-
s && /* @__PURE__ */
|
|
5367
|
-
a && /* @__PURE__ */
|
|
5368
|
-
u && /* @__PURE__ */
|
|
5369
|
-
y && /* @__PURE__ */
|
|
5370
|
-
/* @__PURE__ */
|
|
5371
|
-
/* @__PURE__ */
|
|
5371
|
+
s && /* @__PURE__ */ O("div", { className: on({ [Be.isActive]: an(i || Me.FALSE) }, Be.buttonItem), onClick: () => c(sn(i)), children: /* @__PURE__ */ O(s, {}) }),
|
|
5372
|
+
a && /* @__PURE__ */ O("div", { className: on({ [Be.isActive]: an(v || Me.FALSE) }, Be.buttonItem), onClick: () => f(sn(v)), children: /* @__PURE__ */ O(a, {}) }),
|
|
5373
|
+
u && /* @__PURE__ */ O("div", { className: on({ [Be.isActive]: an(b || Me.FALSE) }, Be.buttonItem), onClick: () => g(sn(b)), children: /* @__PURE__ */ O(u, {}) }),
|
|
5374
|
+
y && /* @__PURE__ */ O("div", { className: on({ [Be.isActive]: an(C || Me.FALSE) }, Be.buttonItem), onClick: () => _(sn(C)), children: /* @__PURE__ */ O(y, {}) }),
|
|
5375
|
+
/* @__PURE__ */ O(ct, { color: w, onChange: S, iconId: "FontColor" }),
|
|
5376
|
+
/* @__PURE__ */ O(ct, { color: R, onChange: h, iconId: "PaintBucket" })
|
|
5372
5377
|
]
|
|
5373
5378
|
}
|
|
5374
5379
|
);
|
|
5375
5380
|
}, ml = (e) => {
|
|
5376
5381
|
var y;
|
|
5377
|
-
const { onChange: t, interceptorManager: r } = e, n = pe(Te), i = pe(de).getCurrentUnitForType(
|
|
5382
|
+
const { onChange: t, interceptorManager: r } = e, n = pe(Te), i = pe(de).getCurrentUnitForType(ie.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) === Y.formula ? v.value : "="), [h, s] = H(void 0), a = (l) => ({
|
|
5378
5383
|
style: l.style,
|
|
5379
5384
|
value: S,
|
|
5380
5385
|
type: Z.highlightCell,
|
|
5381
|
-
subType:
|
|
5386
|
+
subType: Y.formula
|
|
5382
5387
|
});
|
|
5383
5388
|
Re(() => r.intercept(r.getInterceptPoints().submit, {
|
|
5384
5389
|
handler() {
|
|
@@ -5394,25 +5399,25 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
5394
5399
|
var d;
|
|
5395
5400
|
const p = (d = C.current) == null ? void 0 : d.handleOutClick;
|
|
5396
5401
|
p && p(l, () => g(!1));
|
|
5397
|
-
}), /* @__PURE__ */
|
|
5398
|
-
/* @__PURE__ */
|
|
5402
|
+
}), /* @__PURE__ */ X("div", { ref: f, children: [
|
|
5403
|
+
/* @__PURE__ */ O(
|
|
5399
5404
|
"div",
|
|
5400
5405
|
{
|
|
5401
5406
|
className: `
|
|
5402
|
-
${
|
|
5403
|
-
${
|
|
5407
|
+
${z.title}
|
|
5408
|
+
${z.mTBase}
|
|
5404
5409
|
`,
|
|
5405
5410
|
children: n.t("sheet.cf.panel.styleRule")
|
|
5406
5411
|
}
|
|
5407
5412
|
),
|
|
5408
|
-
/* @__PURE__ */
|
|
5413
|
+
/* @__PURE__ */ O(
|
|
5409
5414
|
"div",
|
|
5410
5415
|
{
|
|
5411
5416
|
className: `
|
|
5412
|
-
${
|
|
5417
|
+
${z.mTSm}
|
|
5413
5418
|
`,
|
|
5414
|
-
children: /* @__PURE__ */
|
|
5415
|
-
|
|
5419
|
+
children: /* @__PURE__ */ O(
|
|
5420
|
+
xn,
|
|
5416
5421
|
{
|
|
5417
5422
|
onChange: (l) => {
|
|
5418
5423
|
R(l), u({ style: _ });
|
|
@@ -5433,21 +5438,21 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
5433
5438
|
)
|
|
5434
5439
|
}
|
|
5435
5440
|
),
|
|
5436
|
-
/* @__PURE__ */
|
|
5441
|
+
/* @__PURE__ */ O(
|
|
5437
5442
|
"div",
|
|
5438
5443
|
{
|
|
5439
5444
|
className: `
|
|
5440
5445
|
${W.cfPreviewWrap}
|
|
5441
5446
|
`,
|
|
5442
|
-
children: /* @__PURE__ */
|
|
5447
|
+
children: /* @__PURE__ */ O(wt, { rule: a({ style: _ }) })
|
|
5443
5448
|
}
|
|
5444
5449
|
),
|
|
5445
|
-
/* @__PURE__ */
|
|
5450
|
+
/* @__PURE__ */ O(
|
|
5446
5451
|
gr,
|
|
5447
5452
|
{
|
|
5448
5453
|
style: v == null ? void 0 : v.style,
|
|
5449
5454
|
className: `
|
|
5450
|
-
${
|
|
5455
|
+
${z.mTSm}
|
|
5451
5456
|
`,
|
|
5452
5457
|
onChange: (l) => {
|
|
5453
5458
|
w(l), u({ style: l });
|
|
@@ -5455,8 +5460,8 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
5455
5460
|
}
|
|
5456
5461
|
)
|
|
5457
5462
|
] });
|
|
5458
|
-
}, ln = (e) => /* @__PURE__ */
|
|
5459
|
-
/* @__PURE__ */
|
|
5463
|
+
}, ln = (e) => /* @__PURE__ */ X("div", { style: { position: "relative" }, children: [
|
|
5464
|
+
/* @__PURE__ */ O(
|
|
5460
5465
|
"div",
|
|
5461
5466
|
{
|
|
5462
5467
|
style: {
|
|
@@ -5474,7 +5479,7 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
5474
5479
|
const { type: t, operator: r, onChange: n, value: o, interceptorManager: i } = e, c = pe(Te), [v, f] = H(() => typeof o == "number" ? o : 0), [b, g] = H(""), [C, _] = H(() => typeof o == "string" ? o : ""), [w, S] = H(""), [R, h] = H(() => Array.isArray(o) ? o[0] === void 0 ? 0 : o[0] : 0), [s, a] = H(""), [u, y] = H(() => Array.isArray(o) ? o[1] === void 0 ? 100 : o[1] : 100), [l, p] = H("");
|
|
5475
5480
|
switch (Re(() => {
|
|
5476
5481
|
switch (t) {
|
|
5477
|
-
case
|
|
5482
|
+
case Y.text: {
|
|
5478
5483
|
[
|
|
5479
5484
|
ce.beginsWith,
|
|
5480
5485
|
ce.endsWith,
|
|
@@ -5485,7 +5490,7 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
5485
5490
|
].includes(r) && n(C);
|
|
5486
5491
|
break;
|
|
5487
5492
|
}
|
|
5488
|
-
case
|
|
5493
|
+
case Y.number: {
|
|
5489
5494
|
[
|
|
5490
5495
|
Q.equal,
|
|
5491
5496
|
Q.notEqual,
|
|
@@ -5499,9 +5504,9 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
5499
5504
|
}
|
|
5500
5505
|
}, [t]), Re(() => {
|
|
5501
5506
|
const d = i.intercept(i.getInterceptPoints().beforeSubmit, {
|
|
5502
|
-
handler: (m,
|
|
5507
|
+
handler: (m, x, M) => {
|
|
5503
5508
|
switch (t) {
|
|
5504
|
-
case
|
|
5509
|
+
case Y.text:
|
|
5505
5510
|
if ([
|
|
5506
5511
|
ce.beginsWith,
|
|
5507
5512
|
ce.containsText,
|
|
@@ -5519,7 +5524,7 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
5519
5524
|
d();
|
|
5520
5525
|
};
|
|
5521
5526
|
}, [t, v, C, r]), t) {
|
|
5522
|
-
case
|
|
5527
|
+
case Y.text: {
|
|
5523
5528
|
if ([
|
|
5524
5529
|
ce.beginsWith,
|
|
5525
5530
|
ce.endsWith,
|
|
@@ -5531,13 +5536,13 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
5531
5536
|
const d = (m) => {
|
|
5532
5537
|
_(m), n(m);
|
|
5533
5538
|
};
|
|
5534
|
-
return /* @__PURE__ */
|
|
5539
|
+
return /* @__PURE__ */ O(
|
|
5535
5540
|
"div",
|
|
5536
5541
|
{
|
|
5537
5542
|
className: `
|
|
5538
|
-
${
|
|
5543
|
+
${z.mTSm}
|
|
5539
5544
|
`,
|
|
5540
|
-
children: /* @__PURE__ */
|
|
5545
|
+
children: /* @__PURE__ */ O(ln, { errorText: w, children: /* @__PURE__ */ O(
|
|
5541
5546
|
Zi,
|
|
5542
5547
|
{
|
|
5543
5548
|
className: W.width100,
|
|
@@ -5552,7 +5557,7 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
5552
5557
|
}
|
|
5553
5558
|
break;
|
|
5554
5559
|
}
|
|
5555
|
-
case
|
|
5560
|
+
case Y.number: {
|
|
5556
5561
|
if ([
|
|
5557
5562
|
Q.equal,
|
|
5558
5563
|
Q.notEqual,
|
|
@@ -5564,38 +5569,38 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
5564
5569
|
const d = (m) => {
|
|
5565
5570
|
f(m || 0), n(m || 0), g("");
|
|
5566
5571
|
};
|
|
5567
|
-
return /* @__PURE__ */
|
|
5572
|
+
return /* @__PURE__ */ O(
|
|
5568
5573
|
"div",
|
|
5569
5574
|
{
|
|
5570
5575
|
className: `
|
|
5571
|
-
${
|
|
5576
|
+
${z.mTSm}
|
|
5572
5577
|
`,
|
|
5573
|
-
children: /* @__PURE__ */
|
|
5578
|
+
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
5579
|
}
|
|
5575
5580
|
);
|
|
5576
5581
|
}
|
|
5577
5582
|
if ([Q.between, Q.notBetween].includes(r)) {
|
|
5578
|
-
const d = (
|
|
5579
|
-
h(
|
|
5580
|
-
}, m = (
|
|
5581
|
-
y(
|
|
5583
|
+
const d = (x) => {
|
|
5584
|
+
h(x || 0), n([x || 0, u]), a("");
|
|
5585
|
+
}, m = (x) => {
|
|
5586
|
+
y(x || 0), n([R, x || 0]), p("");
|
|
5582
5587
|
};
|
|
5583
|
-
return /* @__PURE__ */
|
|
5588
|
+
return /* @__PURE__ */ X(
|
|
5584
5589
|
"div",
|
|
5585
5590
|
{
|
|
5586
5591
|
className: `
|
|
5587
|
-
${
|
|
5588
|
-
${
|
|
5592
|
+
${z.mTSm}
|
|
5593
|
+
${z.labelContainer}
|
|
5589
5594
|
`,
|
|
5590
5595
|
children: [
|
|
5591
|
-
/* @__PURE__ */
|
|
5592
|
-
/* @__PURE__ */
|
|
5596
|
+
/* @__PURE__ */ O(ln, { errorText: s, children: /* @__PURE__ */ O(lt, { min: Number.MIN_SAFE_INTEGER, max: Number.MAX_SAFE_INTEGER, value: R, onChange: d }) }),
|
|
5597
|
+
/* @__PURE__ */ O(ln, { errorText: l, children: /* @__PURE__ */ O(
|
|
5593
5598
|
lt,
|
|
5594
5599
|
{
|
|
5595
5600
|
min: Number.MIN_SAFE_INTEGER,
|
|
5596
5601
|
max: Number.MAX_SAFE_INTEGER,
|
|
5597
5602
|
className: `
|
|
5598
|
-
${
|
|
5603
|
+
${z.mLSm}
|
|
5599
5604
|
`,
|
|
5600
5605
|
value: u,
|
|
5601
5606
|
onChange: m
|
|
@@ -5610,7 +5615,7 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
5610
5615
|
return null;
|
|
5611
5616
|
}, to = (e, t) => {
|
|
5612
5617
|
switch (e) {
|
|
5613
|
-
case
|
|
5618
|
+
case Y.text:
|
|
5614
5619
|
return [
|
|
5615
5620
|
he(ce.containsText, t),
|
|
5616
5621
|
he(ce.notContainsText, t),
|
|
@@ -5623,7 +5628,7 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
5623
5628
|
he(ce.containsErrors, t),
|
|
5624
5629
|
he(ce.notContainsErrors, t)
|
|
5625
5630
|
];
|
|
5626
|
-
case
|
|
5631
|
+
case Y.number:
|
|
5627
5632
|
return [
|
|
5628
5633
|
he(Q.between, t),
|
|
5629
5634
|
he(Q.notBetween, t),
|
|
@@ -5634,7 +5639,7 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
5634
5639
|
he(Q.lessThan, t),
|
|
5635
5640
|
he(Q.lessThanOrEqual, t)
|
|
5636
5641
|
];
|
|
5637
|
-
case
|
|
5642
|
+
case Y.timePeriod:
|
|
5638
5643
|
return [
|
|
5639
5644
|
he(Ae.yesterday, t),
|
|
5640
5645
|
he(Ae.today, t),
|
|
@@ -5651,27 +5656,27 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
5651
5656
|
}, no = (e) => {
|
|
5652
5657
|
var y;
|
|
5653
5658
|
const { interceptorManager: t, onChange: r } = e, n = pe(Te), o = ((y = e.rule) == null ? void 0 : y.type) === Z.highlightCell ? e.rule : void 0, [i, c] = H(() => {
|
|
5654
|
-
const l =
|
|
5659
|
+
const l = Y.text;
|
|
5655
5660
|
return o && o.subType || l;
|
|
5656
5661
|
}), v = [
|
|
5657
5662
|
{
|
|
5658
|
-
value:
|
|
5663
|
+
value: Y.text,
|
|
5659
5664
|
label: n.t("sheet.cf.subRuleType.text")
|
|
5660
5665
|
},
|
|
5661
5666
|
{
|
|
5662
|
-
value:
|
|
5667
|
+
value: Y.number,
|
|
5663
5668
|
label: n.t("sheet.cf.subRuleType.number")
|
|
5664
5669
|
},
|
|
5665
5670
|
{
|
|
5666
|
-
value:
|
|
5671
|
+
value: Y.timePeriod,
|
|
5667
5672
|
label: n.t("sheet.cf.subRuleType.timePeriod")
|
|
5668
5673
|
},
|
|
5669
5674
|
{
|
|
5670
|
-
value:
|
|
5675
|
+
value: Y.duplicateValues,
|
|
5671
5676
|
label: n.t("sheet.cf.subRuleType.duplicateValues")
|
|
5672
5677
|
},
|
|
5673
5678
|
{
|
|
5674
|
-
value:
|
|
5679
|
+
value: Y.uniqueValues,
|
|
5675
5680
|
label: n.t("sheet.cf.subRuleType.uniqueValues")
|
|
5676
5681
|
}
|
|
5677
5682
|
], f = Ce(() => to(i, n), [i]), [b, g] = H(() => {
|
|
@@ -5682,9 +5687,9 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
5682
5687
|
const l = "";
|
|
5683
5688
|
return o ? (d = o.value) != null ? d : hn(o.subType, o.operator) : l;
|
|
5684
5689
|
}), [w, S] = H({}), R = Ce(() => (l) => {
|
|
5685
|
-
var p, d, m,
|
|
5690
|
+
var p, d, m, x, M, L, N, I, P, k, U, j, oe, te, A;
|
|
5686
5691
|
switch (l.subType || i) {
|
|
5687
|
-
case
|
|
5692
|
+
case Y.text: {
|
|
5688
5693
|
if ([
|
|
5689
5694
|
ce.beginsWith,
|
|
5690
5695
|
ce.endsWith,
|
|
@@ -5698,11 +5703,11 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
5698
5703
|
subType: (p = l.subType) != null ? p : i,
|
|
5699
5704
|
operator: (d = l.operator) != null ? d : b,
|
|
5700
5705
|
style: (m = l.style) != null ? m : w,
|
|
5701
|
-
value: (
|
|
5706
|
+
value: (x = l.value) != null ? x : C
|
|
5702
5707
|
};
|
|
5703
5708
|
break;
|
|
5704
5709
|
}
|
|
5705
|
-
case
|
|
5710
|
+
case Y.number: {
|
|
5706
5711
|
if ([
|
|
5707
5712
|
Q.equal,
|
|
5708
5713
|
Q.notEqual,
|
|
@@ -5722,7 +5727,7 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
5722
5727
|
return {
|
|
5723
5728
|
type: Z.highlightCell,
|
|
5724
5729
|
subType: (P = l.subType) != null ? P : i,
|
|
5725
|
-
operator: (
|
|
5730
|
+
operator: (k = l.operator) != null ? k : b,
|
|
5726
5731
|
style: (U = l.style) != null ? U : w,
|
|
5727
5732
|
value: (j = l.value) != null ? j : C
|
|
5728
5733
|
};
|
|
@@ -5731,7 +5736,7 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
5731
5736
|
}
|
|
5732
5737
|
return {
|
|
5733
5738
|
type: Z.highlightCell,
|
|
5734
|
-
subType: (
|
|
5739
|
+
subType: (oe = l.subType) != null ? oe : i,
|
|
5735
5740
|
operator: (te = l.operator) != null ? te : b,
|
|
5736
5741
|
style: (A = l.style) != null ? A : w
|
|
5737
5742
|
};
|
|
@@ -5752,22 +5757,22 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
5752
5757
|
}, a = (l) => {
|
|
5753
5758
|
_(l), r(R({ value: l }));
|
|
5754
5759
|
}, u = Ce(() => `${i}_${b}_${Math.random()}`, [i, b]);
|
|
5755
|
-
return /* @__PURE__ */
|
|
5756
|
-
/* @__PURE__ */
|
|
5760
|
+
return /* @__PURE__ */ X("div", { children: [
|
|
5761
|
+
/* @__PURE__ */ O(
|
|
5757
5762
|
"div",
|
|
5758
5763
|
{
|
|
5759
5764
|
className: `
|
|
5760
|
-
${
|
|
5761
|
-
${
|
|
5765
|
+
${z.title}
|
|
5766
|
+
${z.mTBase}
|
|
5762
5767
|
`,
|
|
5763
5768
|
children: n.t("sheet.cf.panel.styleRule")
|
|
5764
5769
|
}
|
|
5765
5770
|
),
|
|
5766
|
-
/* @__PURE__ */
|
|
5771
|
+
/* @__PURE__ */ O(
|
|
5767
5772
|
Ne,
|
|
5768
5773
|
{
|
|
5769
5774
|
className: `
|
|
5770
|
-
${
|
|
5775
|
+
${z.mTSm}
|
|
5771
5776
|
${W.width100}
|
|
5772
5777
|
`,
|
|
5773
5778
|
onChange: h,
|
|
@@ -5775,11 +5780,11 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
5775
5780
|
options: v
|
|
5776
5781
|
}
|
|
5777
5782
|
),
|
|
5778
|
-
(f == null ? void 0 : f.length) && /* @__PURE__ */
|
|
5783
|
+
(f == null ? void 0 : f.length) && /* @__PURE__ */ O(
|
|
5779
5784
|
Ne,
|
|
5780
5785
|
{
|
|
5781
5786
|
className: `
|
|
5782
|
-
${
|
|
5787
|
+
${z.mTSm}
|
|
5783
5788
|
${W.width100}
|
|
5784
5789
|
`,
|
|
5785
5790
|
onChange: s,
|
|
@@ -5787,22 +5792,22 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
5787
5792
|
options: f
|
|
5788
5793
|
}
|
|
5789
5794
|
),
|
|
5790
|
-
/* @__PURE__ */
|
|
5791
|
-
/* @__PURE__ */
|
|
5795
|
+
/* @__PURE__ */ O(vl, { value: C, interceptorManager: t, type: i, operator: b, rule: o, onChange: a }, u),
|
|
5796
|
+
/* @__PURE__ */ O(
|
|
5792
5797
|
"div",
|
|
5793
5798
|
{
|
|
5794
5799
|
className: `
|
|
5795
5800
|
${W.cfPreviewWrap}
|
|
5796
5801
|
`,
|
|
5797
|
-
children: /* @__PURE__ */
|
|
5802
|
+
children: /* @__PURE__ */ O(wt, { rule: R({}) })
|
|
5798
5803
|
}
|
|
5799
5804
|
),
|
|
5800
|
-
/* @__PURE__ */
|
|
5805
|
+
/* @__PURE__ */ O(
|
|
5801
5806
|
gr,
|
|
5802
5807
|
{
|
|
5803
5808
|
style: o == null ? void 0 : o.style,
|
|
5804
5809
|
className: `
|
|
5805
|
-
${
|
|
5810
|
+
${z.mLXxs}
|
|
5806
5811
|
`,
|
|
5807
5812
|
onChange: (l) => {
|
|
5808
5813
|
S(l), r(R({ style: l }));
|
|
@@ -5812,16 +5817,16 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
5812
5817
|
] });
|
|
5813
5818
|
}, oi = (e, t) => (at[e] || [])[Number(t)] || "", yl = (e) => {
|
|
5814
5819
|
var f;
|
|
5815
|
-
const t = pe(de), r = t.getCurrentUnitForType(
|
|
5820
|
+
const t = pe(de), r = t.getCurrentUnitForType(ie.UNIVER_SHEET).getUnitId(), n = (f = t.getCurrentUnitForType(ie.UNIVER_SHEET).getActiveSheet()) == null ? void 0 : f.getSheetId(), o = Ce(() => e.error ? W.errorInput : "", [e.error]), i = Fe({}), [c, v] = H(!1);
|
|
5816
5821
|
return Kt((b) => {
|
|
5817
5822
|
var C;
|
|
5818
5823
|
const g = (C = i.current) == null ? void 0 : C.handleOutClick;
|
|
5819
5824
|
g && g(b, () => v(!1));
|
|
5820
|
-
}), /* @__PURE__ */
|
|
5821
|
-
/* @__PURE__ */
|
|
5822
|
-
e.error && /* @__PURE__ */
|
|
5823
|
-
] }) : /* @__PURE__ */
|
|
5824
|
-
|
|
5825
|
+
}), /* @__PURE__ */ O("div", { className: W.positionRelative, children: e.type !== re.formula ? /* @__PURE__ */ X(Qn, { children: [
|
|
5826
|
+
/* @__PURE__ */ O(lt, { className: o, value: Number(e.value) || 0, onChange: (b) => e.onChange(b != null ? b : 0) }),
|
|
5827
|
+
e.error && /* @__PURE__ */ O("div", { className: W.errorText, children: e.error })
|
|
5828
|
+
] }) : /* @__PURE__ */ O("div", { style: { width: "100%" }, children: /* @__PURE__ */ O(
|
|
5829
|
+
xn,
|
|
5825
5830
|
{
|
|
5826
5831
|
initValue: String(e.value),
|
|
5827
5832
|
unitId: r,
|
|
@@ -5837,18 +5842,18 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
5837
5842
|
) }) });
|
|
5838
5843
|
}, ro = (e, t, r) => ({
|
|
5839
5844
|
operator: Q.greaterThan,
|
|
5840
|
-
value: { type:
|
|
5845
|
+
value: { type: re.num, value: (r.length - 1 - t) * 10 },
|
|
5841
5846
|
iconType: e,
|
|
5842
5847
|
iconId: String(t)
|
|
5843
5848
|
}), bl = dt((e, t) => {
|
|
5844
5849
|
const r = pe(Te), n = (o) => {
|
|
5845
5850
|
e.onClick(o);
|
|
5846
5851
|
};
|
|
5847
|
-
return /* @__PURE__ */
|
|
5848
|
-
/* @__PURE__ */
|
|
5849
|
-
/* @__PURE__ */
|
|
5852
|
+
return /* @__PURE__ */ O("div", { ref: t, className: W.iconGroupList, children: Ri.map((o, i) => /* @__PURE__ */ X("div", { className: W.group, children: [
|
|
5853
|
+
/* @__PURE__ */ O("div", { className: W.title, children: r.t(o.title) }),
|
|
5854
|
+
/* @__PURE__ */ O("div", { className: W.itemContent, children: o.group.map((c) => /* @__PURE__ */ O("div", { className: W.itemWrap, onClick: () => {
|
|
5850
5855
|
n(c.name);
|
|
5851
|
-
}, children: /* @__PURE__ */
|
|
5856
|
+
}, 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
5857
|
] }, i)) });
|
|
5853
5858
|
}), Sl = (e) => {
|
|
5854
5859
|
const t = Ce(() => {
|
|
@@ -5867,12 +5872,12 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
5867
5872
|
}, []), r = (n) => {
|
|
5868
5873
|
e.onClick(n.iconType, n.iconId);
|
|
5869
5874
|
};
|
|
5870
|
-
return /* @__PURE__ */
|
|
5871
|
-
/* @__PURE__ */
|
|
5872
|
-
/* @__PURE__ */
|
|
5873
|
-
/* @__PURE__ */
|
|
5875
|
+
return /* @__PURE__ */ X("div", { className: W.iconItemListWrap, children: [
|
|
5876
|
+
/* @__PURE__ */ X("div", { className: W.none, onClick: () => r({ iconType: Ii, iconId: "" }), children: [
|
|
5877
|
+
/* @__PURE__ */ O(Zt, { className: W.icon }),
|
|
5878
|
+
/* @__PURE__ */ O("span", { children: "无单元格图标" })
|
|
5874
5879
|
] }),
|
|
5875
|
-
/* @__PURE__ */
|
|
5880
|
+
/* @__PURE__ */ O("div", { className: W.iconItemList, children: t.map((n) => /* @__PURE__ */ O("div", { className: W.item, children: /* @__PURE__ */ O(
|
|
5876
5881
|
"img",
|
|
5877
5882
|
{
|
|
5878
5883
|
onClick: () => r(n),
|
|
@@ -5888,42 +5893,42 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
5888
5893
|
{ label: o.t(`sheet.cf.symbol.${Q.greaterThan}`), value: Q.greaterThan },
|
|
5889
5894
|
{ label: o.t(`sheet.cf.symbol.${Q.greaterThanOrEqual}`), value: Q.greaterThanOrEqual }
|
|
5890
5895
|
], c = [
|
|
5891
|
-
{ label: o.t(`sheet.cf.valueType.${
|
|
5892
|
-
{ label: o.t(`sheet.cf.valueType.${
|
|
5893
|
-
{ label: o.t(`sheet.cf.valueType.${
|
|
5894
|
-
{ label: o.t(`sheet.cf.valueType.${
|
|
5896
|
+
{ label: o.t(`sheet.cf.valueType.${re.num}`), value: re.num },
|
|
5897
|
+
{ label: o.t(`sheet.cf.valueType.${re.percent}`), value: re.percent },
|
|
5898
|
+
{ label: o.t(`sheet.cf.valueType.${re.percentile}`), value: re.percentile },
|
|
5899
|
+
{ label: o.t(`sheet.cf.valueType.${re.formula}`), value: re.formula }
|
|
5895
5900
|
], v = (C, _) => {
|
|
5896
5901
|
t([String(_), "value", "value"], C);
|
|
5897
5902
|
}, f = (C, _) => {
|
|
5898
5903
|
t([String(_), "operator"], C);
|
|
5899
|
-
const w = hn(
|
|
5904
|
+
const w = hn(Y.number, C);
|
|
5900
5905
|
v(w, _);
|
|
5901
5906
|
}, b = (C, _) => {
|
|
5902
5907
|
t([String(_), "value", "type"], C);
|
|
5903
|
-
const w = r[_], S = hn(
|
|
5908
|
+
const w = r[_], S = hn(Y.number, w.operator);
|
|
5904
5909
|
v(S, _);
|
|
5905
5910
|
};
|
|
5906
5911
|
return Ce(() => r.map((C, _) => {
|
|
5907
|
-
const w = n[_], S = oi(C.iconType, C.iconId), R = _ === r.length - 1, h = _ === 0, s = r[_ - 1], a = (s == null ? void 0 : s.value.type) ===
|
|
5912
|
+
const w = n[_], S = oi(C.iconType, C.iconId), R = _ === r.length - 1, h = _ === 0, s = r[_ - 1], a = (s == null ? void 0 : s.value.type) === re.formula ? o.t("sheet.cf.valueType.formula") : s == null ? void 0 : s.value.value, u = (y, l) => {
|
|
5908
5913
|
const p = { ...C, iconId: l, iconType: y };
|
|
5909
5914
|
t([String(_)], p);
|
|
5910
5915
|
};
|
|
5911
|
-
return /* @__PURE__ */
|
|
5916
|
+
return /* @__PURE__ */ X(
|
|
5912
5917
|
"div",
|
|
5913
5918
|
{
|
|
5914
5919
|
className: `
|
|
5915
|
-
${_ ?
|
|
5920
|
+
${_ ? z.mTXl : z.mTSm}
|
|
5916
5921
|
`,
|
|
5917
5922
|
children: [
|
|
5918
|
-
/* @__PURE__ */
|
|
5923
|
+
/* @__PURE__ */ X(
|
|
5919
5924
|
"div",
|
|
5920
5925
|
{
|
|
5921
5926
|
className: `
|
|
5922
|
-
${
|
|
5927
|
+
${z.label}
|
|
5923
5928
|
${W.flex}
|
|
5924
5929
|
`,
|
|
5925
5930
|
children: [
|
|
5926
|
-
/* @__PURE__ */
|
|
5931
|
+
/* @__PURE__ */ X(
|
|
5927
5932
|
"div",
|
|
5928
5933
|
{
|
|
5929
5934
|
className: `
|
|
@@ -5935,15 +5940,15 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
5935
5940
|
]
|
|
5936
5941
|
}
|
|
5937
5942
|
),
|
|
5938
|
-
/* @__PURE__ */
|
|
5943
|
+
/* @__PURE__ */ O(
|
|
5939
5944
|
"div",
|
|
5940
5945
|
{
|
|
5941
5946
|
className: `
|
|
5942
5947
|
${W.width45}
|
|
5943
5948
|
`,
|
|
5944
|
-
children: /* @__PURE__ */
|
|
5949
|
+
children: /* @__PURE__ */ X(Qn, { children: [
|
|
5945
5950
|
!h && !R && o.t("sheet.cf.iconSet.rule"),
|
|
5946
|
-
!h && !R && /* @__PURE__ */
|
|
5951
|
+
!h && !R && /* @__PURE__ */ X("span", { className: W.stress, children: [
|
|
5947
5952
|
"(",
|
|
5948
5953
|
o.t("sheet.cf.iconSet.when"),
|
|
5949
5954
|
o.t(`sheet.cf.symbol.${Jn(s.operator)}`),
|
|
@@ -5957,38 +5962,38 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
5957
5962
|
]
|
|
5958
5963
|
}
|
|
5959
5964
|
),
|
|
5960
|
-
/* @__PURE__ */
|
|
5965
|
+
/* @__PURE__ */ X(
|
|
5961
5966
|
"div",
|
|
5962
5967
|
{
|
|
5963
5968
|
className: `
|
|
5964
5969
|
${W.flex}
|
|
5965
|
-
${
|
|
5970
|
+
${z.mTSm}
|
|
5966
5971
|
`,
|
|
5967
5972
|
children: [
|
|
5968
|
-
/* @__PURE__ */
|
|
5973
|
+
/* @__PURE__ */ O(
|
|
5969
5974
|
"div",
|
|
5970
5975
|
{
|
|
5971
5976
|
className: `
|
|
5972
5977
|
${W.iconWrap}
|
|
5973
5978
|
${W.width45}
|
|
5974
5979
|
`,
|
|
5975
|
-
children: /* @__PURE__ */
|
|
5976
|
-
S ? /* @__PURE__ */
|
|
5977
|
-
/* @__PURE__ */
|
|
5980
|
+
children: /* @__PURE__ */ O(sr, { overlay: /* @__PURE__ */ O(Sl, { onClick: u, iconId: C.iconId, iconType: C.iconType }), children: /* @__PURE__ */ X("div", { className: W.dropdownIcon, children: [
|
|
5981
|
+
S ? /* @__PURE__ */ O("img", { src: S, className: W.icon }) : /* @__PURE__ */ O(Zt, { className: W.icon }),
|
|
5982
|
+
/* @__PURE__ */ O(Dn, {})
|
|
5978
5983
|
] }) })
|
|
5979
5984
|
}
|
|
5980
5985
|
),
|
|
5981
|
-
R ? /* @__PURE__ */
|
|
5986
|
+
R ? /* @__PURE__ */ X(
|
|
5982
5987
|
"div",
|
|
5983
5988
|
{
|
|
5984
5989
|
className: `
|
|
5985
5990
|
${W.width45}
|
|
5986
|
-
${
|
|
5991
|
+
${z.label}
|
|
5987
5992
|
`,
|
|
5988
5993
|
style: { marginTop: 0 },
|
|
5989
5994
|
children: [
|
|
5990
5995
|
o.t("sheet.cf.iconSet.rule"),
|
|
5991
|
-
/* @__PURE__ */
|
|
5996
|
+
/* @__PURE__ */ X("span", { className: W.stress, children: [
|
|
5992
5997
|
"(",
|
|
5993
5998
|
o.t("sheet.cf.iconSet.when"),
|
|
5994
5999
|
o.t(`sheet.cf.symbol.${Jn(s.operator)}`),
|
|
@@ -5998,13 +6003,13 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
5998
6003
|
] })
|
|
5999
6004
|
]
|
|
6000
6005
|
}
|
|
6001
|
-
) : /* @__PURE__ */
|
|
6006
|
+
) : /* @__PURE__ */ O(
|
|
6002
6007
|
Ne,
|
|
6003
6008
|
{
|
|
6004
6009
|
className: `
|
|
6005
|
-
${
|
|
6010
|
+
${z.mL0}
|
|
6006
6011
|
${W.width45}
|
|
6007
|
-
${
|
|
6012
|
+
${z.mR0}
|
|
6008
6013
|
`,
|
|
6009
6014
|
options: i,
|
|
6010
6015
|
value: C.operator,
|
|
@@ -6016,17 +6021,17 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
6016
6021
|
]
|
|
6017
6022
|
}
|
|
6018
6023
|
),
|
|
6019
|
-
R ? /* @__PURE__ */
|
|
6020
|
-
/* @__PURE__ */
|
|
6024
|
+
R ? /* @__PURE__ */ O("div", {}) : /* @__PURE__ */ X(Qn, { children: [
|
|
6025
|
+
/* @__PURE__ */ X(
|
|
6021
6026
|
"div",
|
|
6022
6027
|
{
|
|
6023
6028
|
className: `
|
|
6024
|
-
${
|
|
6025
|
-
${
|
|
6029
|
+
${z.mTSm}
|
|
6030
|
+
${z.label}
|
|
6026
6031
|
${W.flex}
|
|
6027
6032
|
`,
|
|
6028
6033
|
children: [
|
|
6029
|
-
/* @__PURE__ */
|
|
6034
|
+
/* @__PURE__ */ O(
|
|
6030
6035
|
"div",
|
|
6031
6036
|
{
|
|
6032
6037
|
className: `
|
|
@@ -6035,7 +6040,7 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
6035
6040
|
children: o.t("sheet.cf.iconSet.type")
|
|
6036
6041
|
}
|
|
6037
6042
|
),
|
|
6038
|
-
/* @__PURE__ */
|
|
6043
|
+
/* @__PURE__ */ O(
|
|
6039
6044
|
"div",
|
|
6040
6045
|
{
|
|
6041
6046
|
className: `
|
|
@@ -6047,21 +6052,21 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
6047
6052
|
]
|
|
6048
6053
|
}
|
|
6049
6054
|
),
|
|
6050
|
-
/* @__PURE__ */
|
|
6055
|
+
/* @__PURE__ */ X(
|
|
6051
6056
|
"div",
|
|
6052
6057
|
{
|
|
6053
6058
|
className: `
|
|
6054
|
-
${
|
|
6059
|
+
${z.mTSm}
|
|
6055
6060
|
${W.flex}
|
|
6056
6061
|
`,
|
|
6057
6062
|
children: [
|
|
6058
|
-
/* @__PURE__ */
|
|
6063
|
+
/* @__PURE__ */ O(
|
|
6059
6064
|
Ne,
|
|
6060
6065
|
{
|
|
6061
6066
|
style: { flexShrink: 0 },
|
|
6062
6067
|
className: `
|
|
6063
6068
|
${W.width45}
|
|
6064
|
-
${
|
|
6069
|
+
${z.mL0}
|
|
6065
6070
|
`,
|
|
6066
6071
|
options: c,
|
|
6067
6072
|
value: C.value.type,
|
|
@@ -6070,14 +6075,14 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
6070
6075
|
}
|
|
6071
6076
|
}
|
|
6072
6077
|
),
|
|
6073
|
-
/* @__PURE__ */
|
|
6078
|
+
/* @__PURE__ */ O(
|
|
6074
6079
|
"div",
|
|
6075
6080
|
{
|
|
6076
6081
|
className: `
|
|
6077
|
-
${
|
|
6082
|
+
${z.mL0}
|
|
6078
6083
|
${W.width45}
|
|
6079
6084
|
`,
|
|
6080
|
-
children: /* @__PURE__ */
|
|
6085
|
+
children: /* @__PURE__ */ O(
|
|
6081
6086
|
yl,
|
|
6082
6087
|
{
|
|
6083
6088
|
id: _,
|
|
@@ -6114,23 +6119,23 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
6114
6119
|
const l = at[c] || [];
|
|
6115
6120
|
return new Array(l.length).fill("").map((p, d, m) => d === m.length - 1 ? {
|
|
6116
6121
|
operator: Q.lessThanOrEqual,
|
|
6117
|
-
value: { type:
|
|
6122
|
+
value: { type: re.num, value: Number.MAX_SAFE_INTEGER },
|
|
6118
6123
|
iconType: c,
|
|
6119
6124
|
iconId: String(d)
|
|
6120
6125
|
} : ro(c, d, m));
|
|
6121
6126
|
}), [g, C] = H(() => r ? !!r.isShowValue : !0), _ = Ce(() => {
|
|
6122
6127
|
const l = f.map((p) => oi(p.iconType, p.iconId));
|
|
6123
|
-
return /* @__PURE__ */
|
|
6128
|
+
return /* @__PURE__ */ O("div", { className: W.iconWrap, children: l.map((p, d) => p ? /* @__PURE__ */ O(
|
|
6124
6129
|
"img",
|
|
6125
6130
|
{
|
|
6126
6131
|
className: W.icon,
|
|
6127
6132
|
src: p
|
|
6128
6133
|
},
|
|
6129
6134
|
d
|
|
6130
|
-
) : /* @__PURE__ */
|
|
6135
|
+
) : /* @__PURE__ */ O(Zt, { className: W.icon }, d)) });
|
|
6131
6136
|
}, [f]), w = (l) => {
|
|
6132
|
-
if (l.reduce((d, m,
|
|
6133
|
-
preType:
|
|
6137
|
+
if (l.reduce((d, m, x) => d.preType && !d.result || l.length - 1 === x ? d : m.value.type === re.formula ? {
|
|
6138
|
+
preType: re.formula,
|
|
6134
6139
|
result: !1
|
|
6135
6140
|
} : d.preType ? {
|
|
6136
6141
|
result: d.preType === m.value.type,
|
|
@@ -6138,13 +6143,13 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
6138
6143
|
} : {
|
|
6139
6144
|
result: !0,
|
|
6140
6145
|
preType: m.value.type
|
|
6141
|
-
}, { result: !0, preType: "" }).result && [
|
|
6146
|
+
}, { result: !0, preType: "" }).result && [re.num, re.percent, re.percentile].includes(l[0].value.type)) {
|
|
6142
6147
|
const d = {};
|
|
6143
|
-
return l.forEach((m,
|
|
6144
|
-
if (
|
|
6148
|
+
return l.forEach((m, x, M) => {
|
|
6149
|
+
if (x - 1 < 0 || x === M.length - 1)
|
|
6145
6150
|
return;
|
|
6146
|
-
const N = l[
|
|
6147
|
-
_i({ operator: I, value: N.value.value }, m.value.value) || (d[
|
|
6151
|
+
const N = l[x - 1], I = Jn(N.operator);
|
|
6152
|
+
_i({ operator: I, value: N.value.value }, m.value.value) || (d[x] = `${n.t(`sheet.cf.form.${I}`, String(N.value.value))} `);
|
|
6148
6153
|
}), d;
|
|
6149
6154
|
}
|
|
6150
6155
|
return {};
|
|
@@ -6152,7 +6157,7 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
6152
6157
|
di(f, l) !== p && (fi(f, l, p), b([...f]), i(w(f)));
|
|
6153
6158
|
}, R = (l) => {
|
|
6154
6159
|
v(l);
|
|
6155
|
-
const p = at[l] || [], d = new Array(p.length).fill("").map((m,
|
|
6160
|
+
const p = at[l] || [], d = new Array(p.length).fill("").map((m, x, M) => ro(l, x, M));
|
|
6156
6161
|
b(d), i(w(d));
|
|
6157
6162
|
};
|
|
6158
6163
|
Re(() => {
|
|
@@ -6177,23 +6182,23 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
6177
6182
|
const h = () => {
|
|
6178
6183
|
const l = f.map((p) => ({ ...p }));
|
|
6179
6184
|
f.forEach((p, d) => {
|
|
6180
|
-
const m = f.length - 1 - d,
|
|
6181
|
-
p.iconId =
|
|
6185
|
+
const m = f.length - 1 - d, x = l[m];
|
|
6186
|
+
p.iconId = x.iconId, p.iconType = x.iconType;
|
|
6182
6187
|
}), b([...f]);
|
|
6183
6188
|
}, s = pe(Wi), [a, u] = H();
|
|
6184
|
-
return Hi(a, s.rootContainerElement), /* @__PURE__ */
|
|
6185
|
-
/* @__PURE__ */
|
|
6186
|
-
/* @__PURE__ */
|
|
6189
|
+
return Hi(a, s.rootContainerElement), /* @__PURE__ */ X("div", { className: W.iconSet, children: [
|
|
6190
|
+
/* @__PURE__ */ O("div", { className: z.title, children: n.t("sheet.cf.panel.styleRule") }),
|
|
6191
|
+
/* @__PURE__ */ O(
|
|
6187
6192
|
"div",
|
|
6188
6193
|
{
|
|
6189
6194
|
className: `
|
|
6190
|
-
${
|
|
6195
|
+
${z.mTSm}
|
|
6191
6196
|
`,
|
|
6192
|
-
children: /* @__PURE__ */
|
|
6197
|
+
children: /* @__PURE__ */ O(
|
|
6193
6198
|
sr,
|
|
6194
6199
|
{
|
|
6195
6200
|
placement: "bottomLeft",
|
|
6196
|
-
overlay: /* @__PURE__ */
|
|
6201
|
+
overlay: /* @__PURE__ */ O(
|
|
6197
6202
|
bl,
|
|
6198
6203
|
{
|
|
6199
6204
|
ref: (l) => {
|
|
@@ -6203,35 +6208,35 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
6203
6208
|
onClick: R
|
|
6204
6209
|
}
|
|
6205
6210
|
),
|
|
6206
|
-
children: /* @__PURE__ */
|
|
6211
|
+
children: /* @__PURE__ */ X("div", { className: W.dropdownIcon, style: { width: "unset" }, children: [
|
|
6207
6212
|
_,
|
|
6208
|
-
/* @__PURE__ */
|
|
6213
|
+
/* @__PURE__ */ O(Dn, {})
|
|
6209
6214
|
] })
|
|
6210
6215
|
}
|
|
6211
6216
|
)
|
|
6212
6217
|
}
|
|
6213
6218
|
),
|
|
6214
|
-
/* @__PURE__ */
|
|
6219
|
+
/* @__PURE__ */ X(
|
|
6215
6220
|
"div",
|
|
6216
6221
|
{
|
|
6217
6222
|
className: `
|
|
6218
|
-
${
|
|
6223
|
+
${z.mTSm}
|
|
6219
6224
|
${W.renderConfig}
|
|
6220
6225
|
`,
|
|
6221
6226
|
children: [
|
|
6222
|
-
/* @__PURE__ */
|
|
6223
|
-
/* @__PURE__ */
|
|
6227
|
+
/* @__PURE__ */ X("div", { className: W.utilItem, children: [
|
|
6228
|
+
/* @__PURE__ */ O(gn, { onChange: h }),
|
|
6224
6229
|
n.t("sheet.cf.iconSet.reverseIconOrder")
|
|
6225
6230
|
] }),
|
|
6226
|
-
/* @__PURE__ */
|
|
6231
|
+
/* @__PURE__ */ X(
|
|
6227
6232
|
"div",
|
|
6228
6233
|
{
|
|
6229
6234
|
className: `
|
|
6230
6235
|
${W.utilItem}
|
|
6231
|
-
${
|
|
6236
|
+
${z.mLXl}
|
|
6232
6237
|
`,
|
|
6233
6238
|
children: [
|
|
6234
|
-
/* @__PURE__ */
|
|
6239
|
+
/* @__PURE__ */ O(gn, { checked: !g, onChange: (l) => {
|
|
6235
6240
|
C(!l);
|
|
6236
6241
|
} }),
|
|
6237
6242
|
n.t("sheet.cf.iconSet.onlyShowIcon")
|
|
@@ -6241,7 +6246,7 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
6241
6246
|
]
|
|
6242
6247
|
}
|
|
6243
6248
|
),
|
|
6244
|
-
/* @__PURE__ */
|
|
6249
|
+
/* @__PURE__ */ O(Cl, { errorMap: o, onChange: S, configList: f })
|
|
6245
6250
|
] });
|
|
6246
6251
|
}, Rl = (e) => {
|
|
6247
6252
|
var h;
|
|
@@ -6257,9 +6262,9 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
6257
6262
|
switch (a) {
|
|
6258
6263
|
case Z.highlightCell:
|
|
6259
6264
|
switch (o.subType) {
|
|
6260
|
-
case
|
|
6265
|
+
case Y.average:
|
|
6261
6266
|
return [Q.greaterThan, Q.greaterThanOrEqual].includes(o.operator) ? "greaterThanAverage" : [Q.lessThan, Q.lessThanOrEqual].includes(o.operator) ? "lessThanAverage" : s;
|
|
6262
|
-
case
|
|
6267
|
+
case Y.rank:
|
|
6263
6268
|
return o.isBottom ? "isBottom" : "isNotBottom";
|
|
6264
6269
|
}
|
|
6265
6270
|
}
|
|
@@ -6271,7 +6276,7 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
6271
6276
|
switch (a) {
|
|
6272
6277
|
case Z.highlightCell:
|
|
6273
6278
|
switch (o.subType) {
|
|
6274
|
-
case
|
|
6279
|
+
case Y.rank:
|
|
6275
6280
|
return o.value || 10;
|
|
6276
6281
|
}
|
|
6277
6282
|
}
|
|
@@ -6283,7 +6288,7 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
6283
6288
|
switch (a) {
|
|
6284
6289
|
case Z.highlightCell:
|
|
6285
6290
|
switch (o.subType) {
|
|
6286
|
-
case
|
|
6291
|
+
case Y.rank:
|
|
6287
6292
|
return o.isPercent || !1;
|
|
6288
6293
|
}
|
|
6289
6294
|
}
|
|
@@ -6291,13 +6296,13 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
6291
6296
|
}), [_, w] = H({}), S = (s) => {
|
|
6292
6297
|
const { type: a, isPercent: u, value: y, style: l } = s;
|
|
6293
6298
|
if (a === "isNotBottom")
|
|
6294
|
-
return { type: Z.highlightCell, subType:
|
|
6299
|
+
return { type: Z.highlightCell, subType: Y.rank, isPercent: u, isBottom: !1, value: y, style: l };
|
|
6295
6300
|
if (a === "isBottom")
|
|
6296
|
-
return { type: Z.highlightCell, subType:
|
|
6301
|
+
return { type: Z.highlightCell, subType: Y.rank, isPercent: u, isBottom: !0, value: y, style: l };
|
|
6297
6302
|
if (a === "greaterThanAverage")
|
|
6298
|
-
return { type: Z.highlightCell, subType:
|
|
6303
|
+
return { type: Z.highlightCell, subType: Y.average, operator: Q.greaterThan, style: l };
|
|
6299
6304
|
if (a === "lessThanAverage")
|
|
6300
|
-
return { type: Z.highlightCell, subType:
|
|
6305
|
+
return { type: Z.highlightCell, subType: Y.average, operator: Q.lessThan, style: l };
|
|
6301
6306
|
};
|
|
6302
6307
|
Re(() => r.intercept(r.getInterceptPoints().submit, {
|
|
6303
6308
|
handler() {
|
|
@@ -6307,23 +6312,23 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
6307
6312
|
const R = (s) => {
|
|
6308
6313
|
t(S(s));
|
|
6309
6314
|
};
|
|
6310
|
-
return /* @__PURE__ */
|
|
6311
|
-
/* @__PURE__ */
|
|
6315
|
+
return /* @__PURE__ */ X("div", { children: [
|
|
6316
|
+
/* @__PURE__ */ O(
|
|
6312
6317
|
"div",
|
|
6313
6318
|
{
|
|
6314
6319
|
className: `
|
|
6315
|
-
${
|
|
6316
|
-
${
|
|
6320
|
+
${z.title}
|
|
6321
|
+
${z.mTBase}
|
|
6317
6322
|
`,
|
|
6318
6323
|
children: n.t("sheet.cf.panel.styleRule")
|
|
6319
6324
|
}
|
|
6320
6325
|
),
|
|
6321
|
-
/* @__PURE__ */
|
|
6326
|
+
/* @__PURE__ */ O(
|
|
6322
6327
|
Ne,
|
|
6323
6328
|
{
|
|
6324
6329
|
className: `
|
|
6325
6330
|
${W.width100}
|
|
6326
|
-
${
|
|
6331
|
+
${z.mTSm}
|
|
6327
6332
|
`,
|
|
6328
6333
|
value: c,
|
|
6329
6334
|
options: i,
|
|
@@ -6332,15 +6337,15 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
6332
6337
|
}
|
|
6333
6338
|
}
|
|
6334
6339
|
),
|
|
6335
|
-
["isNotBottom", "isBottom"].includes(c) && /* @__PURE__ */
|
|
6340
|
+
["isNotBottom", "isBottom"].includes(c) && /* @__PURE__ */ X(
|
|
6336
6341
|
"div",
|
|
6337
6342
|
{
|
|
6338
6343
|
className: `
|
|
6339
|
-
${
|
|
6340
|
-
${
|
|
6344
|
+
${z.labelContainer}
|
|
6345
|
+
${z.mTSm}
|
|
6341
6346
|
`,
|
|
6342
6347
|
children: [
|
|
6343
|
-
/* @__PURE__ */
|
|
6348
|
+
/* @__PURE__ */ O(
|
|
6344
6349
|
lt,
|
|
6345
6350
|
{
|
|
6346
6351
|
min: 1,
|
|
@@ -6352,16 +6357,16 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
6352
6357
|
}
|
|
6353
6358
|
}
|
|
6354
6359
|
),
|
|
6355
|
-
/* @__PURE__ */
|
|
6360
|
+
/* @__PURE__ */ X(
|
|
6356
6361
|
"div",
|
|
6357
6362
|
{
|
|
6358
6363
|
className: `
|
|
6359
|
-
${
|
|
6360
|
-
${
|
|
6364
|
+
${z.mLSm}
|
|
6365
|
+
${z.labelContainer}
|
|
6361
6366
|
${W.text}
|
|
6362
6367
|
`,
|
|
6363
6368
|
children: [
|
|
6364
|
-
/* @__PURE__ */
|
|
6369
|
+
/* @__PURE__ */ O(
|
|
6365
6370
|
gn,
|
|
6366
6371
|
{
|
|
6367
6372
|
checked: g,
|
|
@@ -6377,21 +6382,21 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
6377
6382
|
]
|
|
6378
6383
|
}
|
|
6379
6384
|
),
|
|
6380
|
-
/* @__PURE__ */
|
|
6385
|
+
/* @__PURE__ */ O(
|
|
6381
6386
|
"div",
|
|
6382
6387
|
{
|
|
6383
6388
|
className: `
|
|
6384
6389
|
${W.cfPreviewWrap}
|
|
6385
6390
|
`,
|
|
6386
|
-
children: /* @__PURE__ */
|
|
6391
|
+
children: /* @__PURE__ */ O(wt, { rule: S({ type: c, isPercent: g, value: f, style: _ }) })
|
|
6387
6392
|
}
|
|
6388
6393
|
),
|
|
6389
|
-
/* @__PURE__ */
|
|
6394
|
+
/* @__PURE__ */ O(
|
|
6390
6395
|
gr,
|
|
6391
6396
|
{
|
|
6392
6397
|
style: o == null ? void 0 : o.style,
|
|
6393
6398
|
className: `
|
|
6394
|
-
${
|
|
6399
|
+
${z.mTSm}
|
|
6395
6400
|
`,
|
|
6396
6401
|
onChange: (s) => {
|
|
6397
6402
|
w(s), R({ type: c, isPercent: g, value: f, style: s });
|
|
@@ -6399,17 +6404,17 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
6399
6404
|
}
|
|
6400
6405
|
)
|
|
6401
6406
|
] });
|
|
6402
|
-
}, _l = ho("beforeSubmit"), Il = ho("submit"), oo = (e) => e.getCurrentUnitForType(
|
|
6407
|
+
}, _l = ho("beforeSubmit"), Il = ho("submit"), oo = (e) => e.getCurrentUnitForType(ie.UNIVER_SHEET).getUnitId(), io = (e) => {
|
|
6403
6408
|
var t;
|
|
6404
|
-
return (t = e.getCurrentUnitForType(
|
|
6409
|
+
return (t = e.getCurrentUnitForType(ie.UNIVER_SHEET).getActiveSheet()) == null ? void 0 : t.getSheetId();
|
|
6405
6410
|
}, El = (e) => {
|
|
6406
6411
|
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,
|
|
6412
|
+
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(() => {
|
|
6413
|
+
var P, k, U;
|
|
6409
6414
|
let I = (P = e.rule) == null ? void 0 : P.ranges;
|
|
6410
|
-
return I != null && I.length || (I = (U = (
|
|
6411
|
-
const
|
|
6412
|
-
return
|
|
6415
|
+
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) => {
|
|
6416
|
+
const oe = Io(j);
|
|
6417
|
+
return oe === "NaN" ? "" : oe;
|
|
6413
6418
|
}).filter((j) => !!j).join(",") : "";
|
|
6414
6419
|
}, [e.rule]), R = [
|
|
6415
6420
|
{ label: t.t("sheet.cf.ruleType.highlightCell"), value: "1" },
|
|
@@ -6419,23 +6424,23 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
6419
6424
|
{ label: t.t("sheet.cf.ruleType.formula"), value: "5" },
|
|
6420
6425
|
{ label: t.t("sheet.cf.ruleType.iconSet"), value: "6" }
|
|
6421
6426
|
], [h, s] = H(() => {
|
|
6422
|
-
var
|
|
6423
|
-
const I = (
|
|
6427
|
+
var k, U;
|
|
6428
|
+
const I = (k = e.rule) == null ? void 0 : k.rule.type, P = R[0].value;
|
|
6424
6429
|
if (!I)
|
|
6425
6430
|
return P;
|
|
6426
6431
|
switch (I) {
|
|
6427
6432
|
case Z.highlightCell: {
|
|
6428
6433
|
switch ((U = e.rule) == null ? void 0 : U.rule.subType) {
|
|
6429
|
-
case
|
|
6430
|
-
case
|
|
6431
|
-
case
|
|
6432
|
-
case
|
|
6433
|
-
case
|
|
6434
|
+
case Y.number:
|
|
6435
|
+
case Y.text:
|
|
6436
|
+
case Y.duplicateValues:
|
|
6437
|
+
case Y.uniqueValues:
|
|
6438
|
+
case Y.timePeriod:
|
|
6434
6439
|
return "1";
|
|
6435
|
-
case
|
|
6436
|
-
case
|
|
6440
|
+
case Y.average:
|
|
6441
|
+
case Y.rank:
|
|
6437
6442
|
return "2";
|
|
6438
|
-
case
|
|
6443
|
+
case Y.formula:
|
|
6439
6444
|
return "5";
|
|
6440
6445
|
}
|
|
6441
6446
|
break;
|
|
@@ -6448,7 +6453,7 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
6448
6453
|
return "6";
|
|
6449
6454
|
}
|
|
6450
6455
|
return P;
|
|
6451
|
-
}), a =
|
|
6456
|
+
}), a = Fe(void 0), u = Ce(() => new hi({ beforeSubmit: _l, submit: Il }), []), y = Ce(() => {
|
|
6452
6457
|
switch (h) {
|
|
6453
6458
|
case "1":
|
|
6454
6459
|
return no;
|
|
@@ -6469,8 +6474,8 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
6469
6474
|
Re(() => {
|
|
6470
6475
|
const I = r.onCommandExecuted((P) => {
|
|
6471
6476
|
if (P.id === Di.id) {
|
|
6472
|
-
const
|
|
6473
|
-
|
|
6477
|
+
const k = P.params;
|
|
6478
|
+
k.subUnitId === v && k.unitId === c && e.onCancel();
|
|
6474
6479
|
}
|
|
6475
6480
|
P.id === rr.id && e.onCancel();
|
|
6476
6481
|
});
|
|
@@ -6479,13 +6484,13 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
6479
6484
|
const l = (I) => {
|
|
6480
6485
|
a.current = I;
|
|
6481
6486
|
}, p = (I) => {
|
|
6482
|
-
const P = I.split(",").filter((
|
|
6487
|
+
const P = I.split(",").filter((k) => !!k).map(Ji).map((k) => k.range);
|
|
6483
6488
|
w.current = P;
|
|
6484
6489
|
}, d = () => {
|
|
6485
6490
|
if (C)
|
|
6486
6491
|
return;
|
|
6487
6492
|
const P = (() => {
|
|
6488
|
-
const U = n.getCurrentUnitForType(
|
|
6493
|
+
const U = n.getCurrentUnitForType(ie.UNIVER_SHEET).getActiveSheet();
|
|
6489
6494
|
if (!U)
|
|
6490
6495
|
throw new Error("No active sheet found");
|
|
6491
6496
|
return w.current.map((te) => Mi(te, U.getRowCount(), U.getColumnCount())).filter((te) => !(Number.isNaN(te.startRow) || Number.isNaN(te.startColumn)));
|
|
@@ -6493,31 +6498,31 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
6493
6498
|
if (u.fetchThroughInterceptors(u.getInterceptPoints().beforeSubmit)(!0, null)) {
|
|
6494
6499
|
const U = u.fetchThroughInterceptors(u.getInterceptPoints().submit)(null, null);
|
|
6495
6500
|
if (U) {
|
|
6496
|
-
const j = oo(n),
|
|
6497
|
-
if (!j || !
|
|
6501
|
+
const j = oo(n), oe = io(n);
|
|
6502
|
+
if (!j || !oe)
|
|
6498
6503
|
throw new Error("No active sheet found");
|
|
6499
6504
|
let te = {};
|
|
6500
|
-
e.rule && e.rule.cfId ? (te = { ...e.rule, ranges: P, rule: U }, r.executeCommand(cr.id, { unitId: j, subUnitId:
|
|
6505
|
+
e.rule && e.rule.cfId ? (te = { ...e.rule, ranges: P, rule: U }, r.executeCommand(cr.id, { unitId: j, subUnitId: oe, rule: te }), e.onCancel()) : (te = { cfId: o.createCfId(j, oe), ranges: P, rule: U, stopIfTrue: !1 }, r.executeCommand(On.id, { unitId: j, subUnitId: oe, rule: te }), e.onCancel());
|
|
6501
6506
|
}
|
|
6502
6507
|
}
|
|
6503
6508
|
}, m = () => {
|
|
6504
6509
|
e.onCancel();
|
|
6505
|
-
},
|
|
6510
|
+
}, x = (I, P) => {
|
|
6506
6511
|
I ? P.length < 1 ? _(t.t("sheet.cf.errorMessage.rangeError")) : _(void 0) : _(t.t("sheet.cf.errorMessage.rangeError"));
|
|
6507
6512
|
};
|
|
6508
6513
|
return Kt((I) => {
|
|
6509
|
-
var
|
|
6510
|
-
const P = (
|
|
6514
|
+
var k;
|
|
6515
|
+
const P = (k = g.current) == null ? void 0 : k.handleOutClick;
|
|
6511
6516
|
P && P(I, () => b(!1));
|
|
6512
|
-
}), /* @__PURE__ */
|
|
6513
|
-
/* @__PURE__ */
|
|
6514
|
-
/* @__PURE__ */
|
|
6517
|
+
}), /* @__PURE__ */ X("div", { className: W.cfRuleStyleEditor, children: [
|
|
6518
|
+
/* @__PURE__ */ O("div", { className: z.title, children: t.t("sheet.cf.panel.range") }),
|
|
6519
|
+
/* @__PURE__ */ O(
|
|
6515
6520
|
"div",
|
|
6516
6521
|
{
|
|
6517
6522
|
className: `
|
|
6518
|
-
${
|
|
6523
|
+
${z.mTBase}
|
|
6519
6524
|
`,
|
|
6520
|
-
children: /* @__PURE__ */
|
|
6525
|
+
children: /* @__PURE__ */ O(
|
|
6521
6526
|
as,
|
|
6522
6527
|
{
|
|
6523
6528
|
unitId: c,
|
|
@@ -6525,7 +6530,7 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
6525
6530
|
subUnitId: v,
|
|
6526
6531
|
initValue: S,
|
|
6527
6532
|
onChange: p,
|
|
6528
|
-
onVerify:
|
|
6533
|
+
onVerify: x,
|
|
6529
6534
|
onFocus: () => b(!0),
|
|
6530
6535
|
isFocus: f,
|
|
6531
6536
|
actions: g.current
|
|
@@ -6533,19 +6538,19 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
6533
6538
|
)
|
|
6534
6539
|
}
|
|
6535
6540
|
),
|
|
6536
|
-
/* @__PURE__ */
|
|
6537
|
-
/* @__PURE__ */
|
|
6538
|
-
/* @__PURE__ */
|
|
6539
|
-
/* @__PURE__ */
|
|
6541
|
+
/* @__PURE__ */ O("div", { className: z.title, children: t.t("sheet.cf.panel.styleType") }),
|
|
6542
|
+
/* @__PURE__ */ O("div", { className: z.mTBase, children: /* @__PURE__ */ O(Ne, { className: W.width100, value: h, options: R, onChange: (I) => s(I) }) }),
|
|
6543
|
+
/* @__PURE__ */ O(y, { interceptorManager: u, rule: (N = e.rule) == null ? void 0 : N.rule, onChange: l }),
|
|
6544
|
+
/* @__PURE__ */ X(
|
|
6540
6545
|
"div",
|
|
6541
6546
|
{
|
|
6542
6547
|
className: `
|
|
6543
|
-
${
|
|
6548
|
+
${z.mTBase}
|
|
6544
6549
|
${W.btnList}
|
|
6545
6550
|
`,
|
|
6546
6551
|
children: [
|
|
6547
|
-
/* @__PURE__ */
|
|
6548
|
-
/* @__PURE__ */
|
|
6552
|
+
/* @__PURE__ */ O(yr, { size: "small", onClick: m, children: t.t("sheet.cf.panel.cancel") }),
|
|
6553
|
+
/* @__PURE__ */ O(yr, { className: z.mLSm, size: "small", type: "primary", onClick: d, children: t.t("sheet.cf.panel.submit") })
|
|
6549
6554
|
]
|
|
6550
6555
|
}
|
|
6551
6556
|
)
|
|
@@ -6558,20 +6563,20 @@ const hl = "univer-cf-style-edit", pl = "univer-button-item", gl = "univer-isAct
|
|
|
6558
6563
|
}, v = (f) => {
|
|
6559
6564
|
r(f), o(!0);
|
|
6560
6565
|
};
|
|
6561
|
-
return /* @__PURE__ */
|
|
6566
|
+
return /* @__PURE__ */ O("div", { className: z.conditionalFormattingWrap, children: n ? /* @__PURE__ */ O(El, { onCancel: c, rule: t }) : /* @__PURE__ */ O($a, { onClick: v, onCreate: i }) });
|
|
6562
6567
|
};
|
|
6563
|
-
var
|
|
6564
|
-
for (var o = n > 1 ? void 0 : n ?
|
|
6568
|
+
var xl = Object.getOwnPropertyDescriptor, Ol = (e, t, r, n) => {
|
|
6569
|
+
for (var o = n > 1 ? void 0 : n ? xl(t, r) : t, i = e.length - 1, c; i >= 0; i--)
|
|
6565
6570
|
(c = e[i]) && (o = c(o) || o);
|
|
6566
6571
|
return o;
|
|
6567
6572
|
}, Mt = (e, t) => (r, n) => t(r, n, e);
|
|
6568
6573
|
const cn = "sheet.conditional.formatting.panel";
|
|
6569
|
-
let Ht = class extends
|
|
6574
|
+
let Ht = class extends $e {
|
|
6570
6575
|
constructor(t, r, n, o, i) {
|
|
6571
6576
|
super();
|
|
6572
6577
|
Ye(this, "_sidebarDisposable", null);
|
|
6573
6578
|
this._univerInstanceService = t, this._injector = r, this._componentManager = n, this._sidebarService = o, this._localeService = i, this._initPanel(), this.disposeWithMe(
|
|
6574
|
-
this._univerInstanceService.getCurrentTypeOfUnit$(
|
|
6579
|
+
this._univerInstanceService.getCurrentTypeOfUnit$(ie.UNIVER_SHEET).subscribe((c) => {
|
|
6575
6580
|
var v;
|
|
6576
6581
|
c || (v = this._sidebarDisposable) == null || v.dispose();
|
|
6577
6582
|
})
|
|
@@ -6598,14 +6603,14 @@ let Ht = class extends ze {
|
|
|
6598
6603
|
this._componentManager.register(cn, Tl);
|
|
6599
6604
|
}
|
|
6600
6605
|
};
|
|
6601
|
-
Ht =
|
|
6606
|
+
Ht = Ol([
|
|
6602
6607
|
Mt(0, de),
|
|
6603
6608
|
Mt(1, ee(He)),
|
|
6604
6609
|
Mt(2, ee(ir)),
|
|
6605
6610
|
Mt(3, ee(Ui)),
|
|
6606
6611
|
Mt(4, ee(Te))
|
|
6607
6612
|
], Ht);
|
|
6608
|
-
var
|
|
6613
|
+
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
6614
|
const Ln = {
|
|
6610
6615
|
id: "sheet.operation.open.conditional.formatting.panel",
|
|
6611
6616
|
type: _e.OPERATION,
|
|
@@ -6623,7 +6628,7 @@ const Ln = {
|
|
|
6623
6628
|
ranges: i,
|
|
6624
6629
|
rule: {
|
|
6625
6630
|
type: Z.highlightCell,
|
|
6626
|
-
subType:
|
|
6631
|
+
subType: Y.rank
|
|
6627
6632
|
}
|
|
6628
6633
|
};
|
|
6629
6634
|
r.openPanel(f);
|
|
@@ -6635,7 +6640,7 @@ const Ln = {
|
|
|
6635
6640
|
ranges: i,
|
|
6636
6641
|
rule: {
|
|
6637
6642
|
type: Z.highlightCell,
|
|
6638
|
-
subType:
|
|
6643
|
+
subType: Y.formula,
|
|
6639
6644
|
value: "="
|
|
6640
6645
|
}
|
|
6641
6646
|
};
|
|
@@ -6704,7 +6709,7 @@ var Pl = Object.getOwnPropertyDescriptor, Dl = (e, t, r, n) => {
|
|
|
6704
6709
|
(c = e[i]) && (o = c(o) || o);
|
|
6705
6710
|
return o;
|
|
6706
6711
|
}, Nt = (e, t) => (r, n) => t(r, n, e);
|
|
6707
|
-
let Ut = class extends
|
|
6712
|
+
let Ut = class extends $e {
|
|
6708
6713
|
constructor(t, r, n, o, i) {
|
|
6709
6714
|
super();
|
|
6710
6715
|
Ye(this, "_copyInfo");
|
|
@@ -6748,7 +6753,7 @@ let Ut = class extends ze {
|
|
|
6748
6753
|
}
|
|
6749
6754
|
// eslint-disable-next-line max-lines-per-function
|
|
6750
6755
|
_generateConditionalFormattingMutations(t, r) {
|
|
6751
|
-
const n = this._univerInstanceService.getCurrentUnitForType(
|
|
6756
|
+
const n = this._univerInstanceService.getCurrentUnitForType(ie.UNIVER_SHEET), o = n.getActiveSheet(), i = n.getUnitId();
|
|
6752
6757
|
if (!o) return { redos: [], undos: [] };
|
|
6753
6758
|
const c = o.getSheetId();
|
|
6754
6759
|
if (r.copyType === br.CUT)
|
|
@@ -6756,24 +6761,24 @@ let Ut = class extends ze {
|
|
|
6756
6761
|
if (!this._copyInfo || !r.copyRange)
|
|
6757
6762
|
return { redos: [], undos: [] };
|
|
6758
6763
|
if (![
|
|
6759
|
-
|
|
6760
|
-
|
|
6761
|
-
|
|
6764
|
+
kn.SPECIAL_PASTE_FORMAT,
|
|
6765
|
+
kn.DEFAULT_PASTE,
|
|
6766
|
+
kn.SPECIAL_PASTE_BESIDES_BORDER
|
|
6762
6767
|
].includes(
|
|
6763
6768
|
r.pasteType
|
|
6764
6769
|
))
|
|
6765
6770
|
return { redos: [], undos: [] };
|
|
6766
6771
|
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
|
-
|
|
6772
|
+
ke.foreach(b, (l, p) => {
|
|
6773
|
+
const { row: d, col: m } = g(l, p), x = this._conditionalFormattingViewModel.getCellCfs(i, c, d, m);
|
|
6774
|
+
x && x.forEach((M) => {
|
|
6770
6775
|
if (!_[M.cfId]) {
|
|
6771
6776
|
const L = new Je();
|
|
6772
6777
|
_[M.cfId] = L;
|
|
6773
6778
|
const N = this._conditionalFormattingRuleModel.getRule(i, c, M.cfId);
|
|
6774
6779
|
N == null || N.ranges.forEach((I) => {
|
|
6775
|
-
|
|
6776
|
-
L.setValue(P,
|
|
6780
|
+
ke.foreach(I, (P, k) => {
|
|
6781
|
+
L.setValue(P, k, 1);
|
|
6777
6782
|
});
|
|
6778
6783
|
});
|
|
6779
6784
|
}
|
|
@@ -6800,7 +6805,7 @@ let Ut = class extends ze {
|
|
|
6800
6805
|
};
|
|
6801
6806
|
C.forEach((l) => {
|
|
6802
6807
|
w && w.forValue((p, d, m) => {
|
|
6803
|
-
const
|
|
6808
|
+
const x = Ge.getPositionRange(
|
|
6804
6809
|
{
|
|
6805
6810
|
startRow: p,
|
|
6806
6811
|
endRow: p,
|
|
@@ -6808,12 +6813,12 @@ let Ut = class extends ze {
|
|
|
6808
6813
|
endColumn: d
|
|
6809
6814
|
},
|
|
6810
6815
|
l.startRange
|
|
6811
|
-
), { row: M, col: L } = g(
|
|
6816
|
+
), { row: M, col: L } = g(x.startRow, x.startColumn);
|
|
6812
6817
|
m.forEach((N) => {
|
|
6813
6818
|
if (!_[N]) {
|
|
6814
6819
|
const I = a(N), P = new Je();
|
|
6815
|
-
_[N] = P, I.ranges.forEach((
|
|
6816
|
-
|
|
6820
|
+
_[N] = P, I.ranges.forEach((k) => {
|
|
6821
|
+
ke.foreach(k, (U, j) => {
|
|
6817
6822
|
P.setValue(U, j, 1);
|
|
6818
6823
|
});
|
|
6819
6824
|
});
|
|
@@ -6834,22 +6839,22 @@ let Ut = class extends ze {
|
|
|
6834
6839
|
u.push({ id: Le.id, params: m }), y.push(...Xe(this._injector, m));
|
|
6835
6840
|
}
|
|
6836
6841
|
if (R.some((m) => m.cfId === l)) {
|
|
6837
|
-
const m = a(l),
|
|
6842
|
+
const m = a(l), x = {
|
|
6838
6843
|
unitId: i,
|
|
6839
6844
|
subUnitId: c,
|
|
6840
6845
|
rule: { ...m, ranges: d }
|
|
6841
6846
|
};
|
|
6842
|
-
u.push({ id: Ie.id, params:
|
|
6847
|
+
u.push({ id: Ie.id, params: x }), y.push(nr(this._injector, x));
|
|
6843
6848
|
} else {
|
|
6844
6849
|
const m = this._conditionalFormattingRuleModel.getRule(i, c, l);
|
|
6845
6850
|
if (!m)
|
|
6846
6851
|
continue;
|
|
6847
|
-
const
|
|
6852
|
+
const x = {
|
|
6848
6853
|
unitId: i,
|
|
6849
6854
|
subUnitId: c,
|
|
6850
6855
|
rule: { ...m, ranges: d }
|
|
6851
6856
|
};
|
|
6852
|
-
u.push({ id: Ve.id, params:
|
|
6857
|
+
u.push({ id: Ve.id, params: x }), y.push(...Qe(this._injector, x));
|
|
6853
6858
|
}
|
|
6854
6859
|
}
|
|
6855
6860
|
return {
|
|
@@ -6870,14 +6875,14 @@ var Ml = Object.getOwnPropertyDescriptor, Nl = (e, t, r, n) => {
|
|
|
6870
6875
|
(c = e[i]) && (o = c(o) || o);
|
|
6871
6876
|
return o;
|
|
6872
6877
|
}, Xn = (e, t) => (r, n) => t(r, n, e);
|
|
6873
|
-
let jt = class extends
|
|
6878
|
+
let jt = class extends $e {
|
|
6874
6879
|
constructor(e, t, r) {
|
|
6875
6880
|
super(), this._localeService = e, this._commandService = t, this._sheetPermissionCheckController = r, this._commandExecutedListener();
|
|
6876
6881
|
}
|
|
6877
6882
|
_commandExecutedListener() {
|
|
6878
6883
|
this.disposeWithMe(
|
|
6879
6884
|
this._commandService.beforeCommandExecuted((e) => {
|
|
6880
|
-
e.id ===
|
|
6885
|
+
e.id === On.id && (this._sheetPermissionCheckController.permissionCheckWithRanges({
|
|
6881
6886
|
workbookTypes: [_o],
|
|
6882
6887
|
rangeTypes: [Ro],
|
|
6883
6888
|
worksheetTypes: [Co, wo]
|
|
@@ -6891,19 +6896,19 @@ jt = Nl([
|
|
|
6891
6896
|
Xn(1, me),
|
|
6892
6897
|
Xn(2, ee(Ni))
|
|
6893
6898
|
], jt);
|
|
6894
|
-
var Ll = Object.getOwnPropertyDescriptor,
|
|
6899
|
+
var Ll = Object.getOwnPropertyDescriptor, $l = (e, t, r, n) => {
|
|
6895
6900
|
for (var o = n > 1 ? void 0 : n ? Ll(t, r) : t, i = e.length - 1, c; i >= 0; i--)
|
|
6896
6901
|
(c = e[i]) && (o = c(o) || o);
|
|
6897
6902
|
return o;
|
|
6898
6903
|
}, un = (e, t) => (r, n) => t(r, n, e);
|
|
6899
|
-
let Bt = class extends
|
|
6904
|
+
let Bt = class extends $e {
|
|
6900
6905
|
constructor(e, t, r, n) {
|
|
6901
6906
|
super(), this._conditionalFormattingRuleModel = e, this._univerInstanceService = t, this._injector = r, this._refRangeService = n, this._initRefRange();
|
|
6902
6907
|
}
|
|
6903
6908
|
_initRefRange() {
|
|
6904
6909
|
const e = /* @__PURE__ */ new Map(), t = (n, o, i) => `${n}_${o}_${i}`, r = (n, o, i) => {
|
|
6905
6910
|
const c = (f) => {
|
|
6906
|
-
const b = [...i.ranges], g = b.map((_) =>
|
|
6911
|
+
const b = [...i.ranges], g = b.map((_) => $i(_, f)).filter((_) => !!_);
|
|
6907
6912
|
if (Ei(g, b))
|
|
6908
6913
|
return { redos: [], undos: [] };
|
|
6909
6914
|
if (g.length) {
|
|
@@ -6920,7 +6925,7 @@ let Bt = class extends ze {
|
|
|
6920
6925
|
}), e.set(t(n, o, i.cfId), () => v.forEach((f) => f()));
|
|
6921
6926
|
};
|
|
6922
6927
|
this.disposeWithMe(this._conditionalFormattingRuleModel.$ruleChange.subscribe((n) => {
|
|
6923
|
-
const { unitId: o, subUnitId: i, rule: c } = n, v = this._univerInstanceService.getCurrentUnitForType(
|
|
6928
|
+
const { unitId: o, subUnitId: i, rule: c } = n, v = this._univerInstanceService.getCurrentUnitForType(ie.UNIVER_SHEET), f = v.getActiveSheet();
|
|
6924
6929
|
if (!(n.unitId !== v.getUnitId() || n.subUnitId !== (f == null ? void 0 : f.getSheetId())))
|
|
6925
6930
|
switch (n.type) {
|
|
6926
6931
|
case "add": {
|
|
@@ -6944,18 +6949,18 @@ let Bt = class extends ze {
|
|
|
6944
6949
|
}));
|
|
6945
6950
|
}
|
|
6946
6951
|
};
|
|
6947
|
-
Bt =
|
|
6952
|
+
Bt = $l([
|
|
6948
6953
|
un(0, ee(ve)),
|
|
6949
6954
|
un(1, ee(de)),
|
|
6950
6955
|
un(2, ee(He)),
|
|
6951
6956
|
un(3, ee(Li))
|
|
6952
6957
|
], Bt);
|
|
6953
|
-
var
|
|
6954
|
-
for (var o = n > 1 ? void 0 : n ?
|
|
6958
|
+
var zl = Object.getOwnPropertyDescriptor, kl = (e, t, r, n) => {
|
|
6959
|
+
for (var o = n > 1 ? void 0 : n ? zl(t, r) : t, i = e.length - 1, c; i >= 0; i--)
|
|
6955
6960
|
(c = e[i]) && (o = c(o) || o);
|
|
6956
6961
|
return o;
|
|
6957
6962
|
}, pt = (e, t) => (r, n) => t(r, n, e);
|
|
6958
|
-
let Gt = class extends
|
|
6963
|
+
let Gt = class extends $e {
|
|
6959
6964
|
constructor(t, r, n, o, i, c) {
|
|
6960
6965
|
super();
|
|
6961
6966
|
/**
|
|
@@ -6969,15 +6974,15 @@ let Gt = class extends ze {
|
|
|
6969
6974
|
}
|
|
6970
6975
|
_markDirtySkeleton() {
|
|
6971
6976
|
var r, n, o;
|
|
6972
|
-
const t = this._univerInstanceService.getCurrentUnitForType(
|
|
6977
|
+
const t = this._univerInstanceService.getCurrentUnitForType(ie.UNIVER_SHEET).getUnitId();
|
|
6973
6978
|
(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
6979
|
}
|
|
6975
6980
|
_initSkeleton() {
|
|
6976
|
-
this.disposeWithMe(
|
|
6981
|
+
this.disposeWithMe(Oo(this._conditionalFormattingRuleModel.$ruleChange, this._conditionalFormattingViewModel.markDirty$).pipe(
|
|
6977
6982
|
ls(16),
|
|
6978
6983
|
Cr((t) => !!t.length),
|
|
6979
6984
|
Cr((t) => {
|
|
6980
|
-
const r = this._univerInstanceService.getCurrentUnitForType(
|
|
6985
|
+
const r = this._univerInstanceService.getCurrentUnitForType(ie.UNIVER_SHEET);
|
|
6981
6986
|
if (!r) return !1;
|
|
6982
6987
|
const n = r.getActiveSheet();
|
|
6983
6988
|
return n ? t.filter((o) => o.unitId === r.getUnitId() && o.subUnitId === n.getSheetId()).length > 0 : !1;
|
|
@@ -6985,20 +6990,20 @@ let Gt = class extends ze {
|
|
|
6985
6990
|
).subscribe(() => this._markDirtySkeleton()));
|
|
6986
6991
|
}
|
|
6987
6992
|
_initViewModelInterceptor() {
|
|
6988
|
-
this.disposeWithMe(this._sheetInterceptorService.intercept(
|
|
6993
|
+
this.disposeWithMe(this._sheetInterceptorService.intercept(zi.CELL_CONTENT, {
|
|
6989
6994
|
effect: gi.Style,
|
|
6990
6995
|
handler: (t, r, n) => {
|
|
6991
6996
|
const o = this._conditionalFormattingService.composeStyle(r.unitId, r.subUnitId, r.row, r.col);
|
|
6992
6997
|
if (!o)
|
|
6993
6998
|
return n(t);
|
|
6994
6999
|
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 +
|
|
7000
|
+
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
7001
|
},
|
|
6997
7002
|
priority: 10
|
|
6998
7003
|
}));
|
|
6999
7004
|
}
|
|
7000
7005
|
};
|
|
7001
|
-
Gt =
|
|
7006
|
+
Gt = kl([
|
|
7002
7007
|
pt(0, ee(or)),
|
|
7003
7008
|
pt(1, ee(bo)),
|
|
7004
7009
|
pt(2, ee(de)),
|
|
@@ -7007,7 +7012,7 @@ Gt = Fl([
|
|
|
7007
7012
|
pt(5, ee(ve))
|
|
7008
7013
|
], Gt);
|
|
7009
7014
|
const ii = "sheets-conditional-formatting-ui.config", bn = {};
|
|
7010
|
-
var
|
|
7015
|
+
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
7016
|
for (var o = n > 1 ? void 0 : n ? Vl(t, r) : t, i = e.length - 1, c; i >= 0; i--)
|
|
7012
7017
|
(c = e[i]) && (o = c(o) || o);
|
|
7013
7018
|
return o;
|
|
@@ -7028,16 +7033,16 @@ let Sn = class extends vo {
|
|
|
7028
7033
|
Mo,
|
|
7029
7034
|
No,
|
|
7030
7035
|
Lo,
|
|
7031
|
-
zo,
|
|
7032
7036
|
$o,
|
|
7033
|
-
|
|
7037
|
+
zo,
|
|
7034
7038
|
ko,
|
|
7039
|
+
Fo,
|
|
7035
7040
|
Vo,
|
|
7036
7041
|
Ln,
|
|
7037
7042
|
mn,
|
|
7038
7043
|
cr,
|
|
7039
7044
|
lr,
|
|
7040
|
-
|
|
7045
|
+
On,
|
|
7041
7046
|
ar,
|
|
7042
7047
|
Pn
|
|
7043
7048
|
].forEach((e) => {
|
|
@@ -7046,7 +7051,7 @@ let Sn = class extends vo {
|
|
|
7046
7051
|
}
|
|
7047
7052
|
};
|
|
7048
7053
|
si(Sn, "pluginName", `${Yt}_MOBILE_UI_PLUGIN`);
|
|
7049
|
-
si(Sn, "type",
|
|
7054
|
+
si(Sn, "type", ie.UNIVER_SHEET);
|
|
7050
7055
|
Sn = Al([
|
|
7051
7056
|
go(So),
|
|
7052
7057
|
Yn(1, ee(He)),
|
|
@@ -7058,7 +7063,7 @@ var Wl = Object.getOwnPropertyDescriptor, Hl = (e, t, r, n) => {
|
|
|
7058
7063
|
(c = e[i]) && (o = c(o) || o);
|
|
7059
7064
|
return o;
|
|
7060
7065
|
}, Lt = (e, t) => (r, n) => t(r, n, e);
|
|
7061
|
-
let Cn = class extends
|
|
7066
|
+
let Cn = class extends $e {
|
|
7062
7067
|
constructor(e, t, r, n, o) {
|
|
7063
7068
|
super(), this._injector = e, this._univerInstanceService = t, this._autoFillService = r, this._conditionalFormattingRuleModel = n, this._conditionalFormattingViewModel = o, this._initAutoFill();
|
|
7064
7069
|
}
|
|
@@ -7066,7 +7071,7 @@ let Cn = class extends ze {
|
|
|
7066
7071
|
_initAutoFill() {
|
|
7067
7072
|
const e = () => ({ redos: [], undos: [] }), t = (o, i, c, v, f) => {
|
|
7068
7073
|
var w;
|
|
7069
|
-
const b = this._univerInstanceService.getCurrentUnitForType(
|
|
7074
|
+
const b = this._univerInstanceService.getCurrentUnitForType(ie.UNIVER_SHEET).getUnitId(), g = (w = this._univerInstanceService.getCurrentUnitForType(ie.UNIVER_SHEET).getActiveSheet()) == null ? void 0 : w.getSheetId();
|
|
7070
7075
|
if (!b || !g)
|
|
7071
7076
|
return;
|
|
7072
7077
|
const C = {
|
|
@@ -7080,7 +7085,7 @@ let Cn = class extends ze {
|
|
|
7080
7085
|
endColumn: i.col,
|
|
7081
7086
|
endRow: i.row
|
|
7082
7087
|
};
|
|
7083
|
-
|
|
7088
|
+
ke.foreach(c, (S, R) => {
|
|
7084
7089
|
const h = Ge.getPositionRange(
|
|
7085
7090
|
{
|
|
7086
7091
|
startRow: S,
|
|
@@ -7109,36 +7114,36 @@ let Cn = class extends ze {
|
|
|
7109
7114
|
p
|
|
7110
7115
|
);
|
|
7111
7116
|
d && d.forEach((m) => {
|
|
7112
|
-
let
|
|
7117
|
+
let x = v.get(m.cfId);
|
|
7113
7118
|
if (!v.get(m.cfId)) {
|
|
7114
7119
|
const M = this._conditionalFormattingRuleModel.getRule(b, g, m.cfId);
|
|
7115
7120
|
if (!M)
|
|
7116
7121
|
return;
|
|
7117
|
-
|
|
7118
|
-
|
|
7119
|
-
|
|
7122
|
+
x = new Je(), M.ranges.forEach((L) => {
|
|
7123
|
+
ke.foreach(L, (N, I) => {
|
|
7124
|
+
x.setValue(N, I, 1);
|
|
7120
7125
|
});
|
|
7121
|
-
}), v.set(m.cfId,
|
|
7126
|
+
}), v.set(m.cfId, x);
|
|
7122
7127
|
}
|
|
7123
|
-
|
|
7128
|
+
x.realDeleteValue(l, p);
|
|
7124
7129
|
}), y && y.forEach((m) => {
|
|
7125
|
-
let
|
|
7130
|
+
let x = v.get(m.cfId);
|
|
7126
7131
|
if (!v.get(m.cfId)) {
|
|
7127
7132
|
const M = this._conditionalFormattingRuleModel.getRule(b, g, m.cfId);
|
|
7128
7133
|
if (!M)
|
|
7129
7134
|
return;
|
|
7130
|
-
|
|
7131
|
-
|
|
7132
|
-
|
|
7135
|
+
x = new Je(), M.ranges.forEach((L) => {
|
|
7136
|
+
ke.foreach(L, (N, I) => {
|
|
7137
|
+
x.setValue(N, I, 1);
|
|
7133
7138
|
});
|
|
7134
|
-
}), v.set(m.cfId,
|
|
7139
|
+
}), v.set(m.cfId, x);
|
|
7135
7140
|
}
|
|
7136
|
-
|
|
7141
|
+
x.setValue(l, p, 1);
|
|
7137
7142
|
});
|
|
7138
7143
|
});
|
|
7139
7144
|
}, r = (o, i) => {
|
|
7140
7145
|
var s, a, u;
|
|
7141
|
-
const c = (s = this._univerInstanceService.getCurrentUnitForType(
|
|
7146
|
+
const c = (s = this._univerInstanceService.getCurrentUnitForType(ie.UNIVER_SHEET)) == null ? void 0 : s.getUnitId(), v = (u = (a = this._univerInstanceService.getCurrentUnitForType(ie.UNIVER_SHEET)) == null ? void 0 : a.getActiveSheet()) == null ? void 0 : u.getSheetId(), f = /* @__PURE__ */ new Map(), b = [], g = [];
|
|
7142
7147
|
if (!c || !v)
|
|
7143
7148
|
return e();
|
|
7144
7149
|
const C = Eo([o, i]), [_, w] = C.ranges, { mapFunc: S } = C, R = {
|
|
@@ -7174,7 +7179,7 @@ let Cn = class extends ze {
|
|
|
7174
7179
|
}, n = {
|
|
7175
7180
|
id: Yt,
|
|
7176
7181
|
onFillData: (o, i, c) => {
|
|
7177
|
-
if (c ===
|
|
7182
|
+
if (c === Fn.COPY || c === Fn.ONLY_FORMAT || c === Fn.SERIES) {
|
|
7178
7183
|
const { source: v, target: f } = o;
|
|
7179
7184
|
return r(v, f);
|
|
7180
7185
|
}
|
|
@@ -7195,8 +7200,8 @@ var Ul = Object.getOwnPropertyDescriptor, jl = (e, t, r, n) => {
|
|
|
7195
7200
|
for (var o = n > 1 ? void 0 : n ? Ul(t, r) : t, i = e.length - 1, c; i >= 0; i--)
|
|
7196
7201
|
(c = e[i]) && (o = c(o) || o);
|
|
7197
7202
|
return o;
|
|
7198
|
-
},
|
|
7199
|
-
let wn = class extends
|
|
7203
|
+
}, $t = (e, t) => (r, n) => t(r, n, e);
|
|
7204
|
+
let wn = class extends $e {
|
|
7200
7205
|
constructor(e, t, r, n, o) {
|
|
7201
7206
|
super(), this._injector = e, this._univerInstanceService = t, this._sheetInterceptorService = r, this._selectionManagerService = n, this._conditionalFormattingRuleModel = o, this._init();
|
|
7202
7207
|
}
|
|
@@ -7205,11 +7210,11 @@ let wn = class extends ze {
|
|
|
7205
7210
|
getMutations: (e) => {
|
|
7206
7211
|
var o;
|
|
7207
7212
|
const t = [], r = [], n = { redos: t, undos: r };
|
|
7208
|
-
if ([
|
|
7213
|
+
if ([ki.id, Fi.id].includes(e.id)) {
|
|
7209
7214
|
const i = (o = this._selectionManagerService.getCurrentSelections()) == null ? void 0 : o.map((w) => w.range);
|
|
7210
7215
|
if (!i)
|
|
7211
7216
|
return n;
|
|
7212
|
-
const c = this._univerInstanceService.getCurrentUnitForType(
|
|
7217
|
+
const c = this._univerInstanceService.getCurrentUnitForType(ie.UNIVER_SHEET), v = c.getActiveSheet();
|
|
7213
7218
|
if (!v)
|
|
7214
7219
|
return n;
|
|
7215
7220
|
const f = c.getUnitId(), b = v.getSheetId(), g = this._conditionalFormattingRuleModel.getSubunitRules(f, b);
|
|
@@ -7235,11 +7240,11 @@ let wn = class extends ze {
|
|
|
7235
7240
|
}
|
|
7236
7241
|
};
|
|
7237
7242
|
wn = jl([
|
|
7238
|
-
|
|
7239
|
-
|
|
7240
|
-
|
|
7241
|
-
|
|
7242
|
-
|
|
7243
|
+
$t(0, ee(He)),
|
|
7244
|
+
$t(1, ee(de)),
|
|
7245
|
+
$t(2, ee(or)),
|
|
7246
|
+
$t(3, ee(ut)),
|
|
7247
|
+
$t(4, ee(ve))
|
|
7243
7248
|
], wn);
|
|
7244
7249
|
function so(e, t, r, n, o) {
|
|
7245
7250
|
const i = [], c = [];
|
|
@@ -7273,7 +7278,7 @@ var Bl = Object.getOwnPropertyDescriptor, Gl = (e, t, r, n) => {
|
|
|
7273
7278
|
(c = e[i]) && (o = c(o) || o);
|
|
7274
7279
|
return o;
|
|
7275
7280
|
}, ao = (e, t) => (r, n) => t(r, n, e);
|
|
7276
|
-
let Rn = class extends
|
|
7281
|
+
let Rn = class extends $e {
|
|
7277
7282
|
constructor(e, t) {
|
|
7278
7283
|
super(), this._sheetInterceptorService = e, this._conditionalFormattingService = t, this._initInterceptorEditorEnd();
|
|
7279
7284
|
}
|
|
@@ -7324,63 +7329,63 @@ const lo = [
|
|
|
7324
7329
|
Ve.id,
|
|
7325
7330
|
Le.id,
|
|
7326
7331
|
fn.id
|
|
7327
|
-
],
|
|
7332
|
+
], zt = [
|
|
7328
7333
|
{
|
|
7329
7334
|
label: "sheet.cf.ruleType.highlightCell",
|
|
7330
|
-
value:
|
|
7335
|
+
value: Oe.highlightCell
|
|
7331
7336
|
},
|
|
7332
7337
|
{
|
|
7333
7338
|
label: "sheet.cf.panel.rankAndAverage",
|
|
7334
|
-
value:
|
|
7339
|
+
value: Oe.rank
|
|
7335
7340
|
},
|
|
7336
7341
|
{
|
|
7337
7342
|
label: "sheet.cf.ruleType.formula",
|
|
7338
|
-
value:
|
|
7343
|
+
value: Oe.formula
|
|
7339
7344
|
},
|
|
7340
7345
|
{
|
|
7341
7346
|
label: "sheet.cf.ruleType.colorScale",
|
|
7342
|
-
value:
|
|
7347
|
+
value: Oe.colorScale
|
|
7343
7348
|
},
|
|
7344
7349
|
{
|
|
7345
7350
|
label: "sheet.cf.ruleType.dataBar",
|
|
7346
|
-
value:
|
|
7351
|
+
value: Oe.dataBar
|
|
7347
7352
|
},
|
|
7348
7353
|
{
|
|
7349
7354
|
label: "sheet.cf.ruleType.iconSet",
|
|
7350
|
-
value:
|
|
7355
|
+
value: Oe.icon
|
|
7351
7356
|
},
|
|
7352
7357
|
{
|
|
7353
7358
|
label: "sheet.cf.menu.manageConditionalFormatting",
|
|
7354
|
-
value:
|
|
7359
|
+
value: Oe.viewRule
|
|
7355
7360
|
},
|
|
7356
7361
|
{
|
|
7357
7362
|
label: "sheet.cf.menu.createConditionalFormatting",
|
|
7358
|
-
value:
|
|
7363
|
+
value: Oe.createRule
|
|
7359
7364
|
},
|
|
7360
7365
|
{
|
|
7361
7366
|
label: "sheet.cf.menu.clearRangeRules",
|
|
7362
|
-
value:
|
|
7367
|
+
value: Oe.clearRangeRules,
|
|
7363
7368
|
disabled: !1
|
|
7364
7369
|
},
|
|
7365
7370
|
{
|
|
7366
7371
|
label: "sheet.cf.menu.clearWorkSheetRules",
|
|
7367
|
-
value:
|
|
7372
|
+
value: Oe.clearWorkSheetRules
|
|
7368
7373
|
}
|
|
7369
7374
|
], Xl = (e) => {
|
|
7370
|
-
const t = e.get(ut), r = e.get(me), n = e.get(de), o = e.get(ve), i = new st((f) =>
|
|
7375
|
+
const t = e.get(ut), r = e.get(me), n = e.get(de), o = e.get(ve), i = new st((f) => Oo(
|
|
7371
7376
|
t.selectionMoveEnd$,
|
|
7372
7377
|
t.selectionSet$,
|
|
7373
7378
|
new st((b) => {
|
|
7374
7379
|
const g = r.onCommandExecuted((C) => {
|
|
7375
7380
|
var R;
|
|
7376
|
-
const { id: _, params: w } = C, S = (R = n.getCurrentUnitForType(
|
|
7381
|
+
const { id: _, params: w } = C, S = (R = n.getCurrentUnitForType(ie.UNIVER_SHEET)) == null ? void 0 : R.getUnitId();
|
|
7377
7382
|
lo.includes(_) && w.unitId === S && b.next(null);
|
|
7378
7383
|
});
|
|
7379
7384
|
return () => g.dispose();
|
|
7380
7385
|
})
|
|
7381
7386
|
).pipe(wr(16)).subscribe(() => {
|
|
7382
7387
|
var R;
|
|
7383
|
-
const b = ((R = t.getCurrentSelections()) == null ? void 0 : R.map((h) => h.range)) || [], g = n.getCurrentUnitForType(
|
|
7388
|
+
const b = ((R = t.getCurrentSelections()) == null ? void 0 : R.map((h) => h.range)) || [], g = n.getCurrentUnitForType(ie.UNIVER_SHEET);
|
|
7384
7389
|
if (!g) return;
|
|
7385
7390
|
const C = g.getActiveSheet();
|
|
7386
7391
|
if (!C) return;
|
|
@@ -7390,12 +7395,12 @@ const lo = [
|
|
|
7390
7395
|
(f) => new st((b) => {
|
|
7391
7396
|
const g = r.onCommandExecuted((C) => {
|
|
7392
7397
|
var R;
|
|
7393
|
-
const { id: _, params: w } = C, S = (R = n.getCurrentUnitForType(
|
|
7398
|
+
const { id: _, params: w } = C, S = (R = n.getCurrentUnitForType(ie.UNIVER_SHEET)) == null ? void 0 : R.getUnitId();
|
|
7394
7399
|
lo.includes(_) && w.unitId === S && b.next(null);
|
|
7395
7400
|
});
|
|
7396
7401
|
return () => g.dispose();
|
|
7397
7402
|
}).pipe(wr(16)).subscribe(() => {
|
|
7398
|
-
const b = n.getCurrentUnitForType(
|
|
7403
|
+
const b = n.getCurrentUnitForType(ie.UNIVER_SHEET);
|
|
7399
7404
|
if (!b) return;
|
|
7400
7405
|
const g = b.getActiveSheet();
|
|
7401
7406
|
if (!g) return;
|
|
@@ -7407,12 +7412,12 @@ const lo = [
|
|
|
7407
7412
|
})
|
|
7408
7413
|
), v = new st((f) => {
|
|
7409
7414
|
i.subscribe((b) => {
|
|
7410
|
-
const g =
|
|
7411
|
-
g && (g.disabled = !b, f.next(
|
|
7415
|
+
const g = zt.find((C) => C.value === Oe.clearRangeRules);
|
|
7416
|
+
g && (g.disabled = !b, f.next(zt));
|
|
7412
7417
|
}), c.subscribe((b) => {
|
|
7413
|
-
const g =
|
|
7414
|
-
g && (g.disabled = !b, f.next(
|
|
7415
|
-
}), f.next(
|
|
7418
|
+
const g = zt.find((C) => C.value === Oe.clearWorkSheetRules);
|
|
7419
|
+
g && (g.disabled = !b, f.next(zt));
|
|
7420
|
+
}), f.next(zt);
|
|
7416
7421
|
});
|
|
7417
7422
|
return {
|
|
7418
7423
|
id: Ln.id,
|
|
@@ -7420,7 +7425,7 @@ const lo = [
|
|
|
7420
7425
|
icon: "Conditions",
|
|
7421
7426
|
tooltip: "sheet.cf.title",
|
|
7422
7427
|
selections: v,
|
|
7423
|
-
hidden$: ji(e,
|
|
7428
|
+
hidden$: ji(e, ie.UNIVER_SHEET),
|
|
7424
7429
|
disabled$: is(e, { workbookTypes: [_o], worksheetTypes: [wo, Co], rangeTypes: [Ro] })
|
|
7425
7430
|
};
|
|
7426
7431
|
}, Yl = {
|
|
@@ -7436,7 +7441,7 @@ var Kl = Object.getOwnPropertyDescriptor, Zl = (e, t, r, n) => {
|
|
|
7436
7441
|
(c = e[i]) && (o = c(o) || o);
|
|
7437
7442
|
return o;
|
|
7438
7443
|
}, co = (e, t) => (r, n) => t(r, n, e);
|
|
7439
|
-
let _n = class extends
|
|
7444
|
+
let _n = class extends $e {
|
|
7440
7445
|
constructor(t, r) {
|
|
7441
7446
|
super();
|
|
7442
7447
|
Ye(this, "_sidebarDisposable", null);
|
|
@@ -7481,7 +7486,7 @@ const ec = (e, t) => {
|
|
|
7481
7486
|
}
|
|
7482
7487
|
return f;
|
|
7483
7488
|
};
|
|
7484
|
-
let In = class extends
|
|
7489
|
+
let In = class extends $e {
|
|
7485
7490
|
constructor(t, r, n, o, i, c) {
|
|
7486
7491
|
super();
|
|
7487
7492
|
Ye(this, "_painterConfig", null);
|
|
@@ -7501,7 +7506,7 @@ let In = class extends ze {
|
|
|
7501
7506
|
endColumn: c.col,
|
|
7502
7507
|
endRow: c.row
|
|
7503
7508
|
};
|
|
7504
|
-
|
|
7509
|
+
ke.foreach(v, (h, s) => {
|
|
7505
7510
|
const a = Ge.getPositionRange(
|
|
7506
7511
|
{
|
|
7507
7512
|
startRow: h,
|
|
@@ -7535,8 +7540,8 @@ let In = class extends ze {
|
|
|
7535
7540
|
const m = this._conditionalFormattingRuleModel.getRule(_, w, p.cfId);
|
|
7536
7541
|
if (!m)
|
|
7537
7542
|
return;
|
|
7538
|
-
d = new Je(), m.ranges.forEach((
|
|
7539
|
-
|
|
7543
|
+
d = new Je(), m.ranges.forEach((x) => {
|
|
7544
|
+
ke.foreach(x, (M, L) => {
|
|
7540
7545
|
d.setValue(M, L, 1);
|
|
7541
7546
|
});
|
|
7542
7547
|
}), f.set(p.cfId, d);
|
|
@@ -7558,8 +7563,8 @@ let In = class extends ze {
|
|
|
7558
7563
|
if (y.some((p) => Ge.intersects(f, p))) {
|
|
7559
7564
|
const p = new Je();
|
|
7560
7565
|
C || y.forEach((d) => {
|
|
7561
|
-
|
|
7562
|
-
p.setValue(m,
|
|
7566
|
+
ke.foreach(d, (m, x) => {
|
|
7567
|
+
p.setValue(m, x, 1);
|
|
7563
7568
|
});
|
|
7564
7569
|
}), _.set(l, p);
|
|
7565
7570
|
}
|
|
@@ -7636,7 +7641,7 @@ let In = class extends ze {
|
|
|
7636
7641
|
switch (i) {
|
|
7637
7642
|
case Vn.INFINITE:
|
|
7638
7643
|
case Vn.ONCE: {
|
|
7639
|
-
const b = (c = this._univerInstanceService.getCurrentUnitForType(
|
|
7644
|
+
const b = (c = this._univerInstanceService.getCurrentUnitForType(ie.UNIVER_SHEET)) == null ? void 0 : c.getUnitId(), g = (f = (v = this._univerInstanceService.getCurrentUnitForType(ie.UNIVER_SHEET)) == null ? void 0 : v.getActiveSheet()) == null ? void 0 : f.getSheetId(), C = this._sheetsSelectionsService.getCurrentLastSelection(), _ = C == null ? void 0 : C.range;
|
|
7640
7645
|
b && g && _ && (this._painterConfig = { unitId: b, subUnitId: g, range: _ });
|
|
7641
7646
|
break;
|
|
7642
7647
|
}
|
|
@@ -7667,24 +7672,24 @@ var tc = Object.getOwnPropertyDescriptor, nc = (e, t, r, n) => {
|
|
|
7667
7672
|
(c = e[i]) && (o = c(o) || o);
|
|
7668
7673
|
return o;
|
|
7669
7674
|
}, Kn = (e, t) => (r, n) => t(r, n, e);
|
|
7670
|
-
let En = class extends
|
|
7675
|
+
let En = class extends $e {
|
|
7671
7676
|
constructor(e, t, r) {
|
|
7672
7677
|
super(), this._conditionalFormattingViewModel = e, this._univerInstanceService = t, this._renderManagerService = r, this._init();
|
|
7673
7678
|
}
|
|
7674
7679
|
_init() {
|
|
7675
|
-
const e = this._univerInstanceService.getCurrentUnitForType(
|
|
7680
|
+
const e = this._univerInstanceService.getCurrentUnitForType(ie.UNIVER_SHEET), t = (r) => {
|
|
7676
7681
|
const n = r.getUnitId(), o = this._renderManagerService.getRenderById(n);
|
|
7677
7682
|
if (!o)
|
|
7678
7683
|
return;
|
|
7679
7684
|
const i = o.with(To);
|
|
7680
7685
|
this.disposeWithMe(i.currentSkeleton$.subscribe((c) => {
|
|
7681
7686
|
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(
|
|
7687
|
+
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
7688
|
this._conditionalFormattingViewModel.setCacheLength(C);
|
|
7684
7689
|
}
|
|
7685
7690
|
}));
|
|
7686
7691
|
};
|
|
7687
|
-
e && t(e), this._univerInstanceService.getCurrentTypeOfUnit$(
|
|
7692
|
+
e && t(e), this._univerInstanceService.getCurrentTypeOfUnit$(ie.UNIVER_SHEET).subscribe((r) => {
|
|
7688
7693
|
r && t(r);
|
|
7689
7694
|
});
|
|
7690
7695
|
}
|
|
@@ -7723,18 +7728,18 @@ let Tn = class extends vo {
|
|
|
7723
7728
|
[wn],
|
|
7724
7729
|
[In],
|
|
7725
7730
|
[En]
|
|
7726
|
-
]),
|
|
7731
|
+
]), zn(this._injector, [
|
|
7727
7732
|
[Gt]
|
|
7728
7733
|
]);
|
|
7729
7734
|
}
|
|
7730
7735
|
onReady() {
|
|
7731
|
-
|
|
7736
|
+
zn(this._injector, [
|
|
7732
7737
|
[_n],
|
|
7733
7738
|
[Ht]
|
|
7734
7739
|
]);
|
|
7735
7740
|
}
|
|
7736
7741
|
onRendered() {
|
|
7737
|
-
|
|
7742
|
+
zn(this._injector, [
|
|
7738
7743
|
[Cn],
|
|
7739
7744
|
[wn],
|
|
7740
7745
|
[Ut],
|
|
@@ -7752,16 +7757,16 @@ let Tn = class extends vo {
|
|
|
7752
7757
|
Mo,
|
|
7753
7758
|
No,
|
|
7754
7759
|
Lo,
|
|
7755
|
-
zo,
|
|
7756
7760
|
$o,
|
|
7757
|
-
|
|
7761
|
+
zo,
|
|
7758
7762
|
ko,
|
|
7763
|
+
Fo,
|
|
7759
7764
|
Vo,
|
|
7760
7765
|
Ln,
|
|
7761
7766
|
mn,
|
|
7762
7767
|
cr,
|
|
7763
7768
|
lr,
|
|
7764
|
-
|
|
7769
|
+
On,
|
|
7765
7770
|
ar,
|
|
7766
7771
|
Pn
|
|
7767
7772
|
].forEach((e) => {
|
|
@@ -7770,7 +7775,7 @@ let Tn = class extends vo {
|
|
|
7770
7775
|
}
|
|
7771
7776
|
};
|
|
7772
7777
|
ai(Tn, "pluginName", `${Yt}_UI_PLUGIN`);
|
|
7773
|
-
ai(Tn, "type",
|
|
7778
|
+
ai(Tn, "type", ie.UNIVER_SHEET);
|
|
7774
7779
|
Tn = sc([
|
|
7775
7780
|
go(So),
|
|
7776
7781
|
Zn(1, ee(He)),
|
|
@@ -7779,14 +7784,14 @@ Tn = sc([
|
|
|
7779
7784
|
], Tn);
|
|
7780
7785
|
export {
|
|
7781
7786
|
Do as AddAverageCfCommand,
|
|
7782
|
-
|
|
7787
|
+
On as AddCfCommand,
|
|
7783
7788
|
Mo as AddColorScaleConditionalRuleCommand,
|
|
7784
7789
|
No as AddDataBarConditionalRuleCommand,
|
|
7785
7790
|
Lo as AddDuplicateValuesCfCommand,
|
|
7786
|
-
|
|
7787
|
-
|
|
7788
|
-
|
|
7789
|
-
|
|
7791
|
+
$o as AddNumberCfCommand,
|
|
7792
|
+
zo as AddRankCfCommand,
|
|
7793
|
+
ko as AddTextCfCommand,
|
|
7794
|
+
Fo as AddTimePeriodCfCommand,
|
|
7790
7795
|
Vo as AddUniqueValuesCfCommand,
|
|
7791
7796
|
ar as ClearRangeCfCommand,
|
|
7792
7797
|
Pn as ClearWorksheetCfCommand,
|