@univerjs/sheets-conditional-formatting-ui 0.8.0-nightly.202505271607 → 0.8.0-nightly.202505291607
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +118 -120
- package/lib/index.js +118 -120
- package/lib/umd/index.js +1 -1
- package/package.json +12 -12
package/lib/es/index.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var Se = (t, e, r) =>
|
|
4
|
-
import { CommandType as me, ICommandService as te, IUniverInstanceService as Z, ColorKit as mn, BooleanNumber as le, LocaleService as re, UniverInstanceType as A, Tools as Bt, get as
|
|
5
|
-
import { ConditionalFormattingRuleModel as Q, CFSubRuleType as F, CFRuleType as L, AddConditionalRuleMutation as se, CFNumberOperator as U, getColorScaleFromValue as
|
|
6
|
-
import { getSheetCommandTarget as Ie, SheetsSelectionsService as je, RemoveSheetMutation as
|
|
7
|
-
import { useDependency as q, useSidebarClick as Nt,
|
|
1
|
+
var lr = Object.defineProperty;
|
|
2
|
+
var cr = (t, e, r) => e in t ? lr(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
|
|
3
|
+
var Se = (t, e, r) => cr(t, typeof e != "symbol" ? e + "" : e, r);
|
|
4
|
+
import { CommandType as me, ICommandService as te, IUniverInstanceService as Z, ColorKit as mn, BooleanNumber as le, LocaleService as re, UniverInstanceType as A, Tools as Bt, get as ur, set as dr, createInterceptorKey as fn, InterceptorManager as hr, Inject as P, Disposable as ue, Injector as fe, Rectangle as ye, generateRandomId as vr, ObjectMatrix as Me, Range as be, toDisposable as pn, InterceptorEffectEnum as gr, DependentOn as Cn, IConfigService as yn, Plugin as bn, merge as In, registerDependencies as mr, touchDependencies as kt } from "@univerjs/core";
|
|
5
|
+
import { ConditionalFormattingRuleModel as Q, CFSubRuleType as F, CFRuleType as L, AddConditionalRuleMutation as se, CFNumberOperator as U, getColorScaleFromValue as fr, iconMap as Ve, DEFAULT_BG_COLOR as pr, DEFAULT_FONT_COLOR as Cr, defaultDataBarPositiveColor as Ke, defaultDataBarNativeColor as Xe, CFValueType as D, createDefaultValueByValueType as Je, removeUndefinedAttr as yr, createDefaultValue as mt, CFTextOperator as H, CFTimePeriodOperator as ve, iconGroup as br, getOppositeOperator as Ht, compareWithNumber as Ir, EMPTY_ICON_TYPE as Sr, SetCfCommand as _r, AddCfCommand as Sn, SetConditionalRuleMutation as _e, DeleteConditionalRuleMutation as we, MoveConditionalRuleMutation as _n, ClearWorksheetCfCommand as wn, DeleteCfCommand as Yt, MoveCfCommand as wr, ClearRangeCfCommand as Rr, createDefaultRule as xe, ConditionalFormattingViewModel as it, SHEET_CONDITIONAL_FORMATTING_PLUGIN as st, DeleteConditionalRuleMutationUndoFactory as $e, AddConditionalRuleMutationUndoFactory as Rn, setConditionalRuleMutationUndoFactory as Ae, isRangesEqual as Tr, ConditionalFormattingService as Tn, DEFAULT_PADDING as xr, DEFAULT_WIDTH as Er, UniverSheetsConditionalFormattingPlugin as xn, CONDITIONAL_FORMATTING_VIEWPORT_CACHE_LENGTH as Nr } from "@univerjs/sheets-conditional-formatting";
|
|
6
|
+
import { getSheetCommandTarget as Ie, SheetsSelectionsService as je, RemoveSheetMutation as Mr, SetWorksheetActiveOperation as Wt, setEndForRange as Vr, SetSelectionsOperation as kr, checkRangesEditablePermission as ft, rangeToDiscreteRange as Fr, findAllRectangle as pt, createTopMatrixFromMatrix as Ct, SheetPermissionCheckController as Lr, WorksheetEditPermission as En, WorksheetSetCellStylePermission as Nn, RangeProtectionPermissionEditPoint as Mn, WorkbookEditablePermission as Vn, RefRangeService as Ur, handleDefaultRangeChangeWithEffectRefCommands as Pr, SheetInterceptorService as qt, INTERCEPTOR_POINT as Or, ClearSelectionFormatCommand as Dr, ClearSelectionAllCommand as $r, RangeMergeUtil as Ar, AFTER_CELL_EDIT as Hr } from "@univerjs/sheets";
|
|
7
|
+
import { useDependency as q, useSidebarClick as Nt, ILayoutService as jr, useScrollYOverContainer as Br, ISidebarService as kn, useObservable as Wr, ComponentManager as qr, getMenuHiddenObservable as Gr, MenuItemType as Zr, RibbonDataGroup as zr, IMenuManagerService as Yr } from "@univerjs/ui";
|
|
8
8
|
import { jsx as c, jsxs as k, Fragment as jt } from "react/jsx-runtime";
|
|
9
9
|
import { forwardRef as oe, useRef as ge, createElement as de, useMemo as J, useState as N, useEffect as K } from "react";
|
|
10
10
|
import { Dropdown as Gt, clsx as X, ColorPicker as Kr, borderClassName as Be, Select as ce, InputNumber as ke, RadioGroup as Xr, Radio as Kt, Checkbox as yt, Input as Jr, Button as Xt, Tooltip as Jt, ReactGridLayout as Qr } from "@univerjs/design";
|
|
11
|
-
import { serializeRange as
|
|
11
|
+
import { serializeRange as Fn, deserializeRangeWithSheet as ei } from "@univerjs/engine-formula";
|
|
12
12
|
import { FormulaEditor as Mt, RangeSelector as ti } from "@univerjs/sheets-formula-ui";
|
|
13
|
-
import { useHighlightRange as ni, ISheetClipboardService as ri, COPY_TYPE as Qt, PREDEFINED_HOOK_NAME as Ft, virtualizeDiscreteRanges as
|
|
14
|
-
import { Observable as Ne, debounceTime as en, merge as
|
|
15
|
-
import { IRenderManagerService as
|
|
13
|
+
import { useHighlightRange as ni, ISheetClipboardService as ri, COPY_TYPE as Qt, PREDEFINED_HOOK_NAME as Ft, virtualizeDiscreteRanges as Ln, getRepeatRange as ii, SheetSkeletonManagerService as Un, IAutoFillService as si, APPLY_TYPE as Lt, getAutoFillRepeatRange as oi, getCurrentRangeDisable$ as ai, IFormatPainterService as li, FormatPainterStatus as Ut } from "@univerjs/sheets-ui";
|
|
14
|
+
import { Observable as Ne, debounceTime as en, merge as Pn } from "rxjs";
|
|
15
|
+
import { IRenderManagerService as On } from "@univerjs/engine-render";
|
|
16
16
|
import { bufferTime as ci, filter as tn, debounceTime as nn } from "rxjs/operators";
|
|
17
|
-
const
|
|
17
|
+
const Dn = {
|
|
18
18
|
type: me.COMMAND,
|
|
19
19
|
id: "sheet.command.add-average-conditional-rule",
|
|
20
20
|
handler(t, e) {
|
|
@@ -35,7 +35,7 @@ const $n = {
|
|
|
35
35
|
};
|
|
36
36
|
return u.executeCommand(se.id, { unitId: l, subUnitId: d, rule: p });
|
|
37
37
|
}
|
|
38
|
-
},
|
|
38
|
+
}, $n = {
|
|
39
39
|
type: me.COMMAND,
|
|
40
40
|
id: "sheet.command.add-color-scale-conditional-rule",
|
|
41
41
|
handler(t, e) {
|
|
@@ -54,7 +54,7 @@ const $n = {
|
|
|
54
54
|
};
|
|
55
55
|
return o.executeCommand(se.id, { unitId: h, subUnitId: l, rule: v });
|
|
56
56
|
}
|
|
57
|
-
},
|
|
57
|
+
}, An = {
|
|
58
58
|
type: me.COMMAND,
|
|
59
59
|
id: "sheet.command.add-data-bar-conditional-rule",
|
|
60
60
|
handler(t, e) {
|
|
@@ -80,7 +80,7 @@ const $n = {
|
|
|
80
80
|
};
|
|
81
81
|
return f.executeCommand(se.id, { unitId: p, subUnitId: y, rule: I });
|
|
82
82
|
}
|
|
83
|
-
},
|
|
83
|
+
}, Hn = {
|
|
84
84
|
type: me.COMMAND,
|
|
85
85
|
id: "sheet.command.add-duplicate-values-conditional-rule",
|
|
86
86
|
handler(t, e) {
|
|
@@ -100,7 +100,7 @@ const $n = {
|
|
|
100
100
|
};
|
|
101
101
|
return o.executeCommand(se.id, { unitId: h, subUnitId: l, rule: v });
|
|
102
102
|
}
|
|
103
|
-
},
|
|
103
|
+
}, jn = {
|
|
104
104
|
type: me.COMMAND,
|
|
105
105
|
id: "sheet.command.add-number-conditional-rule",
|
|
106
106
|
handler(t, e) {
|
|
@@ -145,7 +145,7 @@ const $n = {
|
|
|
145
145
|
}
|
|
146
146
|
return a.executeCommand(se.id, { unitId: d, subUnitId: v, rule: y });
|
|
147
147
|
}
|
|
148
|
-
},
|
|
148
|
+
}, Bn = {
|
|
149
149
|
type: me.COMMAND,
|
|
150
150
|
id: "sheet.command.add-rank-conditional-rule",
|
|
151
151
|
handler(t, e) {
|
|
@@ -168,7 +168,7 @@ const $n = {
|
|
|
168
168
|
};
|
|
169
169
|
return l.executeCommand(se.id, { unitId: v, subUnitId: p, rule: f });
|
|
170
170
|
}
|
|
171
|
-
},
|
|
171
|
+
}, Wn = {
|
|
172
172
|
type: me.COMMAND,
|
|
173
173
|
id: "sheet.command.add-text-conditional-rule",
|
|
174
174
|
handler(t, e) {
|
|
@@ -190,7 +190,7 @@ const $n = {
|
|
|
190
190
|
};
|
|
191
191
|
return v.executeCommand(se.id, { unitId: l, subUnitId: d, rule: y });
|
|
192
192
|
}
|
|
193
|
-
},
|
|
193
|
+
}, qn = {
|
|
194
194
|
type: me.COMMAND,
|
|
195
195
|
id: "sheet.command.add-time-period-conditional-rule",
|
|
196
196
|
handler(t, e) {
|
|
@@ -211,7 +211,7 @@ const $n = {
|
|
|
211
211
|
};
|
|
212
212
|
return a.executeCommand(se.id, { unitId: l, subUnitId: d, rule: p });
|
|
213
213
|
}
|
|
214
|
-
},
|
|
214
|
+
}, Gn = {
|
|
215
215
|
type: me.COMMAND,
|
|
216
216
|
id: "sheet.command.add-uniqueValues-conditional-rule",
|
|
217
217
|
handler(t, e) {
|
|
@@ -249,11 +249,11 @@ var ae = function() {
|
|
|
249
249
|
return r;
|
|
250
250
|
}, he = oe(function(t, e) {
|
|
251
251
|
var r = t.icon, n = t.id, i = t.className, s = t.extend, o = ui(t, ["icon", "id", "className", "extend"]), u = "univerjs-icon univerjs-icon-".concat(n, " ").concat(i || "").trim(), a = ge("_".concat(vi()));
|
|
252
|
-
return
|
|
252
|
+
return Zn(r, "".concat(n), { defIds: r.defIds, idSuffix: a.current }, ae({ ref: e, className: u }, o), s);
|
|
253
253
|
});
|
|
254
|
-
function
|
|
254
|
+
function Zn(t, e, r, n, i) {
|
|
255
255
|
return de(t.tag, ae(ae({ key: e }, di(t, r, i)), n), (hi(t, r).children || []).map(function(s, o) {
|
|
256
|
-
return
|
|
256
|
+
return Zn(s, "".concat(e, "-").concat(t.tag, "-").concat(o), r, void 0, i);
|
|
257
257
|
}));
|
|
258
258
|
}
|
|
259
259
|
function di(t, e, r) {
|
|
@@ -271,21 +271,21 @@ function di(t, e, r) {
|
|
|
271
271
|
function hi(t, e) {
|
|
272
272
|
var r, n = e.defIds;
|
|
273
273
|
return !n || n.length === 0 ? t : t.tag === "defs" && (!((r = t.children) === null || r === void 0) && r.length) ? ae(ae({}, t), { children: t.children.map(function(i) {
|
|
274
|
-
return typeof i.attrs.id == "string" && n && n.
|
|
274
|
+
return typeof i.attrs.id == "string" && n && n.includes(i.attrs.id) ? ae(ae({}, i), { attrs: ae(ae({}, i.attrs), { id: i.attrs.id + e.idSuffix }) }) : i;
|
|
275
275
|
}) }) : t;
|
|
276
276
|
}
|
|
277
277
|
function vi() {
|
|
278
278
|
return Math.random().toString(36).substring(2, 8);
|
|
279
279
|
}
|
|
280
280
|
he.displayName = "UniverIcon";
|
|
281
|
-
var gi = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M4.65791 1.30005C3.77355 1.30005 3.05664 2.01696 3.05664 2.90132V12.8588C3.05664 13.8755 3.88086 14.6998 4.89759 14.6998H9.1016C11.2233 14.6998 12.9433 12.9798 12.9433 10.8581C12.9433 9.13925 11.8145 7.68407 10.2578 7.1934C10.8806 6.56856 11.2655 5.70659 11.2655 4.75472C11.2655 2.84676 9.71883 1.30005 7.81087 1.30005H4.65791ZM4.25664 2.90132C4.25664 2.6797 4.4363 2.50005 4.65791 2.50005H7.81087C9.05609 2.50005 10.0655 3.5095 10.0655 4.75472C10.0655 5.99993 9.05609 7.00938 7.81087 7.00938H4.25664V2.90132ZM4.25664 12.8588V8.21636H9.1016C10.5606 8.21636 11.7433 9.39909 11.7433 10.8581C11.7433 12.317 10.5606 13.4998 9.1016 13.4998H4.89759C4.5436 13.4998 4.25664 13.2128 4.25664 12.8588Z", fillRule: "evenodd", clipRule: "evenodd" } }] },
|
|
281
|
+
var gi = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M4.65791 1.30005C3.77355 1.30005 3.05664 2.01696 3.05664 2.90132V12.8588C3.05664 13.8755 3.88086 14.6998 4.89759 14.6998H9.1016C11.2233 14.6998 12.9433 12.9798 12.9433 10.8581C12.9433 9.13925 11.8145 7.68407 10.2578 7.1934C10.8806 6.56856 11.2655 5.70659 11.2655 4.75472C11.2655 2.84676 9.71883 1.30005 7.81087 1.30005H4.65791ZM4.25664 2.90132C4.25664 2.6797 4.4363 2.50005 4.65791 2.50005H7.81087C9.05609 2.50005 10.0655 3.5095 10.0655 4.75472C10.0655 5.99993 9.05609 7.00938 7.81087 7.00938H4.25664V2.90132ZM4.25664 12.8588V8.21636H9.1016C10.5606 8.21636 11.7433 9.39909 11.7433 10.8581C11.7433 12.317 10.5606 13.4998 9.1016 13.4998H4.89759C4.5436 13.4998 4.25664 13.2128 4.25664 12.8588Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, zn = oe(function(t, e) {
|
|
282
282
|
return de(he, Object.assign({}, t, {
|
|
283
283
|
id: "bold-icon",
|
|
284
284
|
ref: e,
|
|
285
285
|
icon: gi
|
|
286
286
|
}));
|
|
287
287
|
});
|
|
288
|
-
|
|
288
|
+
zn.displayName = "BoldIcon";
|
|
289
289
|
var mi = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M5.3313 1.4667C5.3313 1.13533 5.59993 0.866699 5.9313 0.866699H10.069C10.4004 0.866699 10.669 1.13533 10.669 1.4667C10.669 1.79807 10.4004 2.0667 10.069 2.0667H5.9313C5.59993 2.0667 5.3313 1.79807 5.3313 1.4667Z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M1.09985 3.64443C1.09985 3.31306 1.36848 3.04443 1.69985 3.04443H14.2999C14.6312 3.04443 14.8999 3.31306 14.8999 3.64443C14.8999 3.9758 14.6312 4.24443 14.2999 4.24443H1.69985C1.36848 4.24443 1.09985 3.9758 1.09985 3.64443Z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M6.12398 8.30171C6.35829 8.0674 6.73819 8.0674 6.97251 8.30171L8.00007 9.32928L9.02764 8.30171C9.26195 8.0674 9.64185 8.0674 9.87617 8.30171C10.1105 8.53603 10.1105 8.91593 9.87617 9.15024L8.8486 10.1778L9.87617 11.2054C10.1105 11.4397 10.1105 11.8196 9.87617 12.0539C9.64185 12.2882 9.26195 12.2882 9.02764 12.0539L8.00007 11.0263L6.97251 12.0539C6.73819 12.2882 6.35829 12.2882 6.12398 12.0539C5.88966 11.8196 5.88966 11.4397 6.12398 11.2054L7.15154 10.1778L6.12398 9.15024C5.88966 8.91593 5.88966 8.53603 6.12398 8.30171Z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M4.75332 5.22217C3.86966 5.22217 3.15332 5.93851 3.15332 6.82217V12.5331C3.15332 13.9691 4.31738 15.1332 5.75332 15.1332H10.2465C11.6825 15.1332 12.8465 13.9691 12.8465 12.5331V6.82217C12.8465 5.93851 12.1302 5.22217 11.2465 5.22217H4.75332ZM4.35332 6.82217C4.35332 6.60125 4.53241 6.42217 4.75332 6.42217H11.2465C11.4674 6.42217 11.6465 6.60125 11.6465 6.82217V12.5331C11.6465 13.3063 11.0197 13.9332 10.2465 13.9332H5.75332C4.98012 13.9332 4.35332 13.3063 4.35332 12.5331V6.82217Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, gt = oe(function(t, e) {
|
|
290
290
|
return de(he, Object.assign({}, t, {
|
|
291
291
|
id: "delete-icon",
|
|
@@ -294,30 +294,30 @@ var mi = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none
|
|
|
294
294
|
}));
|
|
295
295
|
});
|
|
296
296
|
gt.displayName = "DeleteIcon";
|
|
297
|
-
var fi = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 17 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "colorChannel1", d: "M1.98682 13.4992C1.98682 12.5603 2.74793 11.7992 3.68682 11.7992H14.2868C15.2257 11.7992 15.9868 12.5603 15.9868 13.4992V13.4992C15.9868 14.4381 15.2257 15.1992 14.2868 15.1992H3.68682C2.74793 15.1992 1.98682 14.4381 1.98682 13.4992V13.4992Z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M10.3014 1.70389C9.85268 0.479568 8.12109 0.479557 7.67238 1.70389L4.72235 9.75326C4.60832 10.0644 4.76811 10.4091 5.07924 10.5231C5.39038 10.6371 5.73504 10.4773 5.84907 10.1662L6.99975 7.02646C7.03588 7.03324 7.07314 7.03679 7.11123 7.03679H10.9778L12.1247 10.1662C12.2387 10.4773 12.5834 10.6371 12.8945 10.5231C13.2057 10.4091 13.3654 10.0644 13.2514 9.75326L10.3014 1.70389ZM10.538 5.83679L9.17467 2.11682C9.11057 1.94192 8.8632 1.94192 8.7991 2.11682L7.43576 5.83679H10.538Z", fillRule: "evenodd", clipRule: "evenodd" } }] },
|
|
297
|
+
var fi = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 17 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "colorChannel1", d: "M1.98682 13.4992C1.98682 12.5603 2.74793 11.7992 3.68682 11.7992H14.2868C15.2257 11.7992 15.9868 12.5603 15.9868 13.4992V13.4992C15.9868 14.4381 15.2257 15.1992 14.2868 15.1992H3.68682C2.74793 15.1992 1.98682 14.4381 1.98682 13.4992V13.4992Z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M10.3014 1.70389C9.85268 0.479568 8.12109 0.479557 7.67238 1.70389L4.72235 9.75326C4.60832 10.0644 4.76811 10.4091 5.07924 10.5231C5.39038 10.6371 5.73504 10.4773 5.84907 10.1662L6.99975 7.02646C7.03588 7.03324 7.07314 7.03679 7.11123 7.03679H10.9778L12.1247 10.1662C12.2387 10.4773 12.5834 10.6371 12.8945 10.5231C13.2057 10.4091 13.3654 10.0644 13.2514 9.75326L10.3014 1.70389ZM10.538 5.83679L9.17467 2.11682C9.11057 1.94192 8.8632 1.94192 8.7991 2.11682L7.43576 5.83679H10.538Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, Yn = oe(function(t, e) {
|
|
298
298
|
return de(he, Object.assign({}, t, {
|
|
299
299
|
id: "font-color-double-icon",
|
|
300
300
|
ref: e,
|
|
301
301
|
icon: fi
|
|
302
302
|
}));
|
|
303
303
|
});
|
|
304
|
-
|
|
305
|
-
var pi = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M8.6 1.99991C8.60001 1.66854 8.33138 1.39991 8.00001 1.3999C7.66864 1.3999 7.40001 1.66853 7.4 1.9999L7.39996 7.3999H1.9999C1.66853 7.3999 1.3999 7.66853 1.3999 7.9999C1.3999 8.33127 1.66853 8.5999 1.9999 8.5999H7.39995L7.3999 13.9999C7.3999 14.3313 7.66853 14.5999 7.9999 14.5999C8.33127 14.5999 8.5999 14.3313 8.5999 13.9999L8.59995 8.5999H13.9999C14.3313 8.5999 14.5999 8.33127 14.5999 7.9999C14.5999 7.66853 14.3313 7.3999 13.9999 7.3999H8.59996L8.6 1.99991Z" } }] },
|
|
304
|
+
Yn.displayName = "FontColorDoubleIcon";
|
|
305
|
+
var pi = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M8.6 1.99991C8.60001 1.66854 8.33138 1.39991 8.00001 1.3999C7.66864 1.3999 7.40001 1.66853 7.4 1.9999L7.39996 7.3999H1.9999C1.66853 7.3999 1.3999 7.66853 1.3999 7.9999C1.3999 8.33127 1.66853 8.5999 1.9999 8.5999H7.39995L7.3999 13.9999C7.3999 14.3313 7.66853 14.5999 7.9999 14.5999C8.33127 14.5999 8.5999 14.3313 8.5999 13.9999L8.59995 8.5999H13.9999C14.3313 8.5999 14.5999 8.33127 14.5999 7.9999C14.5999 7.66853 14.3313 7.3999 13.9999 7.3999H8.59996L8.6 1.99991Z" } }] }, Kn = oe(function(t, e) {
|
|
306
306
|
return de(he, Object.assign({}, t, {
|
|
307
307
|
id: "increase-icon",
|
|
308
308
|
ref: e,
|
|
309
309
|
icon: pi
|
|
310
310
|
}));
|
|
311
311
|
});
|
|
312
|
-
|
|
313
|
-
var Ci = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M9.80385 1.40005H11.9997C12.3311 1.40005 12.5997 1.66868 12.5997 2.00005C12.5997 2.33143 12.3311 2.60005 11.9997 2.60005H10.1185L7.12251 13.4001H9.33324C9.66461 13.4001 9.93324 13.6687 9.93324 14.0001C9.93324 14.3314 9.66461 14.6001 9.33324 14.6001H6.34785C6.33847 14.6003 6.32905 14.6003 6.31962 14.6001H3.9999C3.66853 14.6001 3.3999 14.3314 3.3999 14.0001C3.3999 13.6687 3.66853 13.4001 3.9999 13.4001H5.87719L8.87322 2.60005H6.66641C6.33504 2.60005 6.06641 2.33143 6.06641 2.00005C6.06641 1.66868 6.33504 1.40005 6.66641 1.40005H9.52916C9.61698 1.37929 9.71064 1.3781 9.80385 1.40005Z" } }] },
|
|
312
|
+
Kn.displayName = "IncreaseIcon";
|
|
313
|
+
var Ci = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M9.80385 1.40005H11.9997C12.3311 1.40005 12.5997 1.66868 12.5997 2.00005C12.5997 2.33143 12.3311 2.60005 11.9997 2.60005H10.1185L7.12251 13.4001H9.33324C9.66461 13.4001 9.93324 13.6687 9.93324 14.0001C9.93324 14.3314 9.66461 14.6001 9.33324 14.6001H6.34785C6.33847 14.6003 6.32905 14.6003 6.31962 14.6001H3.9999C3.66853 14.6001 3.3999 14.3314 3.3999 14.0001C3.3999 13.6687 3.66853 13.4001 3.9999 13.4001H5.87719L8.87322 2.60005H6.66641C6.33504 2.60005 6.06641 2.33143 6.06641 2.00005C6.06641 1.66868 6.33504 1.40005 6.66641 1.40005H9.52916C9.61698 1.37929 9.71064 1.3781 9.80385 1.40005Z" } }] }, Xn = oe(function(t, e) {
|
|
314
314
|
return de(he, Object.assign({}, t, {
|
|
315
315
|
id: "italic-icon",
|
|
316
316
|
ref: e,
|
|
317
317
|
icon: Ci
|
|
318
318
|
}));
|
|
319
319
|
});
|
|
320
|
-
|
|
320
|
+
Xn.displayName = "ItalicIcon";
|
|
321
321
|
var yi = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M11.3536 6.14645C11.5488 6.34171 11.5488 6.65829 11.3536 6.85355L8.35355 9.85355C8.15829 10.0488 7.84171 10.0488 7.64645 9.85355L4.64645 6.85355C4.45118 6.65829 4.45118 6.34171 4.64645 6.14645C4.84171 5.95118 5.15829 5.95118 5.35355 6.14645L8 8.79289L10.6464 6.14645C10.8417 5.95118 11.1583 5.95118 11.3536 6.14645Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, Zt = oe(function(t, e) {
|
|
322
322
|
return de(he, Object.assign({}, t, {
|
|
323
323
|
id: "more-down-icon",
|
|
@@ -326,22 +326,22 @@ var yi = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none
|
|
|
326
326
|
}));
|
|
327
327
|
});
|
|
328
328
|
Zt.displayName = "MoreDownIcon";
|
|
329
|
-
var bi = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 17 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M8.01281 1.36643C8.79386 0.585377 10.0602 0.585378 10.8412 1.36643L12.9223 3.44752C13.7034 4.22857 13.7034 5.4949 12.9223 6.27595L9.36445 9.83383C8.5834 10.6149 7.31707 10.6149 6.53602 9.83383L4.45493 7.75273C3.67388 6.97168 3.67388 5.70535 4.45493 4.9243L8.01281 1.36643ZM9.9927 2.21495C9.68028 1.90253 9.17375 1.90253 8.86133 2.21495L5.30346 5.77283L5.29671 5.77966L10.839 6.66224L12.0738 5.42742C12.3862 5.115 12.3862 4.60847 12.0738 4.29605L9.9927 2.21495Z", fillRule: "evenodd", clipRule: "evenodd" } }, { tag: "path", attrs: { fill: "currentColor", d: "M14.5179 9.48875C14.5179 9.99175 14.1101 10.3995 13.607 10.3995C13.1041 10.3995 12.6963 9.99175 12.6963 9.48875C12.6963 9.1773 13.0455 8.59966 13.3114 8.20487C13.4549 7.99177 13.7591 7.99177 13.9027 8.20486C14.1687 8.59965 14.5179 9.1773 14.5179 9.48875Z" } }, { tag: "path", attrs: { fill: "colorChannel1", d: "M1.98682 13.4992C1.98682 12.5603 2.74793 11.7992 3.68682 11.7992H14.2868C15.2257 11.7992 15.9868 12.5603 15.9868 13.4992V13.4992C15.9868 14.4381 15.2257 15.1992 14.2868 15.1992H3.68682C2.74793 15.1992 1.98682 14.4381 1.98682 13.4992V13.4992Z" } }] },
|
|
329
|
+
var bi = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 17 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M8.01281 1.36643C8.79386 0.585377 10.0602 0.585378 10.8412 1.36643L12.9223 3.44752C13.7034 4.22857 13.7034 5.4949 12.9223 6.27595L9.36445 9.83383C8.5834 10.6149 7.31707 10.6149 6.53602 9.83383L4.45493 7.75273C3.67388 6.97168 3.67388 5.70535 4.45493 4.9243L8.01281 1.36643ZM9.9927 2.21495C9.68028 1.90253 9.17375 1.90253 8.86133 2.21495L5.30346 5.77283L5.29671 5.77966L10.839 6.66224L12.0738 5.42742C12.3862 5.115 12.3862 4.60847 12.0738 4.29605L9.9927 2.21495Z", fillRule: "evenodd", clipRule: "evenodd" } }, { tag: "path", attrs: { fill: "currentColor", d: "M14.5179 9.48875C14.5179 9.99175 14.1101 10.3995 13.607 10.3995C13.1041 10.3995 12.6963 9.99175 12.6963 9.48875C12.6963 9.1773 13.0455 8.59966 13.3114 8.20487C13.4549 7.99177 13.7591 7.99177 13.9027 8.20486C14.1687 8.59965 14.5179 9.1773 14.5179 9.48875Z" } }, { tag: "path", attrs: { fill: "colorChannel1", d: "M1.98682 13.4992C1.98682 12.5603 2.74793 11.7992 3.68682 11.7992H14.2868C15.2257 11.7992 15.9868 12.5603 15.9868 13.4992V13.4992C15.9868 14.4381 15.2257 15.1992 14.2868 15.1992H3.68682C2.74793 15.1992 1.98682 14.4381 1.98682 13.4992V13.4992Z" } }] }, Jn = oe(function(t, e) {
|
|
330
330
|
return de(he, Object.assign({}, t, {
|
|
331
331
|
id: "paint-bucket-double-icon",
|
|
332
332
|
ref: e,
|
|
333
333
|
icon: bi
|
|
334
334
|
}));
|
|
335
335
|
});
|
|
336
|
-
|
|
337
|
-
var Ii = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "mask", attrs: { id: "mask0_622_8", 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 4C7 3.44772 6.55228 3 6 3C5.44772 3 5 3.44772 5 4C5 4.55228 5.44772 5 6 5Z" } }, { tag: "path", attrs: { d: "M6 9C6.55228 9 7 8.55229 7 8C7 7.44772 6.55228 7 6 7C5.44772 7 5 7.44772 5 8C5 8.55229 5.44772 9 6 9Z" } }, { tag: "path", attrs: { d: "M7 12C7 12.5523 6.55228 13 6 13C5.44772 13 5 12.5523 5 12C5 11.4477 5.44772 11 6 11C6.55228 11 7 11.4477 7 12Z" } }, { tag: "path", attrs: { d: "M10 5C10.5523 5 11 4.55228 11 4C11 3.44772 10.5523 3 10 3C9.44771 3 9 3.44772 9 4C9 4.55228 9.44771 5 10 5Z" } }, { tag: "path", attrs: { d: "M11 8C11 8.55229 10.5523 9 10 9C9.44771 9 9 8.55229 9 8C9 7.44772 9.44771 7 10 7C10.5523 7 11 7.44772 11 8Z" } }, { tag: "path", attrs: { d: "M10 13C10.5523 13 11 12.5523 11 12C11 11.4477 10.5523 11 10 11C9.44771 11 9 11.4477 9 12C9 12.5523 9.44771 13 10 13Z" } }] }] },
|
|
336
|
+
Jn.displayName = "PaintBucketDoubleIcon";
|
|
337
|
+
var Ii = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "mask", attrs: { id: "mask0_622_8", 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 4C7 3.44772 6.55228 3 6 3C5.44772 3 5 3.44772 5 4C5 4.55228 5.44772 5 6 5Z" } }, { tag: "path", attrs: { d: "M6 9C6.55228 9 7 8.55229 7 8C7 7.44772 6.55228 7 6 7C5.44772 7 5 7.44772 5 8C5 8.55229 5.44772 9 6 9Z" } }, { tag: "path", attrs: { d: "M7 12C7 12.5523 6.55228 13 6 13C5.44772 13 5 12.5523 5 12C5 11.4477 5.44772 11 6 11C6.55228 11 7 11.4477 7 12Z" } }, { tag: "path", attrs: { d: "M10 5C10.5523 5 11 4.55228 11 4C11 3.44772 10.5523 3 10 3C9.44771 3 9 3.44772 9 4C9 4.55228 9.44771 5 10 5Z" } }, { tag: "path", attrs: { d: "M11 8C11 8.55229 10.5523 9 10 9C9.44771 9 9 8.55229 9 8C9 7.44772 9.44771 7 10 7C10.5523 7 11 7.44772 11 8Z" } }, { tag: "path", attrs: { d: "M10 13C10.5523 13 11 12.5523 11 12C11 11.4477 10.5523 11 10 11C9.44771 11 9 11.4477 9 12C9 12.5523 9.44771 13 10 13Z" } }] }] }, Qn = oe(function(t, e) {
|
|
338
338
|
return de(he, Object.assign({}, t, {
|
|
339
339
|
id: "sequence-icon",
|
|
340
340
|
ref: e,
|
|
341
341
|
icon: Ii
|
|
342
342
|
}));
|
|
343
343
|
});
|
|
344
|
-
|
|
344
|
+
Qn.displayName = "SequenceIcon";
|
|
345
345
|
var Si = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 17 17", width: "1em", height: "1em" }, children: [{ tag: "mask", attrs: { id: "mask0_436_41", width: 17, height: 17, x: 0, y: 0, maskUnits: "userSpaceOnUse" }, children: [{ tag: "path", attrs: { fill: "#D9D9D9", d: "M.35.48H16.35V16.48H.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" } }] }] }, ot = oe(function(t, e) {
|
|
346
346
|
return de(he, Object.assign({}, t, {
|
|
347
347
|
id: "slash-icon",
|
|
@@ -350,24 +350,24 @@ var Si = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none
|
|
|
350
350
|
}));
|
|
351
351
|
});
|
|
352
352
|
ot.displayName = "SlashIcon";
|
|
353
|
-
var _i = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M8.00033 1.20996C6.43345 1.20996 5.23596 1.88077 4.64804 2.94304C4.06338 3.99943 4.15123 5.32084 4.90099 6.47062C5.08199 6.7482 5.45374 6.82648 5.73131 6.64548C6.00888 6.46448 6.08716 6.09273 5.90616 5.81516C5.36418 4.98402 5.35768 4.13897 5.69797 3.52412C6.035 2.91515 6.78176 2.40996 8.00033 2.40996C9.19423 2.40996 10.0017 2.93409 10.5236 3.46755C10.7871 3.73682 10.9756 4.00712 11.0974 4.20903C11.158 4.30951 11.2013 4.39164 11.2284 4.44625C11.2419 4.47351 11.2514 4.49377 11.2568 4.50588L11.2621 4.51771C11.3901 4.82216 11.7407 4.96686 12.046 4.83992C12.3519 4.71267 12.4968 4.36149 12.3695 4.05552L11.8231 4.28278C12.3695 4.05552 12.3697 4.0558 12.3695 4.05552L12.3691 4.05437L12.3685 4.05298L12.367 4.04953L12.3629 4.03993L12.3498 4.01036C12.3388 3.98619 12.3234 3.95326 12.3033 3.91282C12.2632 3.83203 12.2043 3.72072 12.1249 3.58908C11.9666 3.32674 11.7235 2.97805 11.3814 2.62834C10.6921 1.92381 9.59192 1.20996 8.00033 1.20996Z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M2.11953 8.5999H7.88935C10.1109 9.46549 10.5895 10.7649 10.4268 11.6869C10.2475 12.703 9.26939 13.5898 8.00009 13.5898C6.63323 13.5898 5.77631 13.0502 5.25534 12.528C4.99021 12.2623 4.80823 11.9965 4.69365 11.7993C4.63659 11.7011 4.59698 11.6211 4.5727 11.5686C4.56059 11.5424 4.55236 11.5231 4.54774 11.512L4.54352 11.5016C4.4267 11.193 4.0823 11.0363 3.77279 11.1516C3.46228 11.2673 3.30438 11.6129 3.4201 11.9234L3.9649 11.7203C3.4201 11.9234 3.41998 11.9231 3.4201 11.9234L3.4206 11.9247L3.42118 11.9263L3.42262 11.9301L3.42661 11.9403C3.42977 11.9484 3.43394 11.9588 3.43914 11.9713C3.44956 11.9965 3.46418 12.0304 3.48334 12.0719C3.52161 12.1547 3.57828 12.2682 3.65608 12.4021C3.81124 12.6692 4.0534 13.0223 4.40584 13.3756C5.12 14.0914 6.27196 14.7898 8.00009 14.7898C9.82574 14.7898 11.3236 13.5101 11.6085 11.8955C11.812 10.7422 11.3901 9.55402 10.2665 8.5999H13.8804C14.2117 8.5999 14.4803 8.33127 14.4803 7.9999C14.4803 7.66853 14.2117 7.3999 13.8804 7.3999H8.01411C8.0048 7.39968 7.99551 7.39969 7.98625 7.3999H2.11953C1.78816 7.3999 1.51953 7.66853 1.51953 7.9999C1.51953 8.33127 1.78816 8.5999 2.11953 8.5999Z" } }] },
|
|
353
|
+
var _i = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M8.00033 1.20996C6.43345 1.20996 5.23596 1.88077 4.64804 2.94304C4.06338 3.99943 4.15123 5.32084 4.90099 6.47062C5.08199 6.7482 5.45374 6.82648 5.73131 6.64548C6.00888 6.46448 6.08716 6.09273 5.90616 5.81516C5.36418 4.98402 5.35768 4.13897 5.69797 3.52412C6.035 2.91515 6.78176 2.40996 8.00033 2.40996C9.19423 2.40996 10.0017 2.93409 10.5236 3.46755C10.7871 3.73682 10.9756 4.00712 11.0974 4.20903C11.158 4.30951 11.2013 4.39164 11.2284 4.44625C11.2419 4.47351 11.2514 4.49377 11.2568 4.50588L11.2621 4.51771C11.3901 4.82216 11.7407 4.96686 12.046 4.83992C12.3519 4.71267 12.4968 4.36149 12.3695 4.05552L11.8231 4.28278C12.3695 4.05552 12.3697 4.0558 12.3695 4.05552L12.3691 4.05437L12.3685 4.05298L12.367 4.04953L12.3629 4.03993L12.3498 4.01036C12.3388 3.98619 12.3234 3.95326 12.3033 3.91282C12.2632 3.83203 12.2043 3.72072 12.1249 3.58908C11.9666 3.32674 11.7235 2.97805 11.3814 2.62834C10.6921 1.92381 9.59192 1.20996 8.00033 1.20996Z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M2.11953 8.5999H7.88935C10.1109 9.46549 10.5895 10.7649 10.4268 11.6869C10.2475 12.703 9.26939 13.5898 8.00009 13.5898C6.63323 13.5898 5.77631 13.0502 5.25534 12.528C4.99021 12.2623 4.80823 11.9965 4.69365 11.7993C4.63659 11.7011 4.59698 11.6211 4.5727 11.5686C4.56059 11.5424 4.55236 11.5231 4.54774 11.512L4.54352 11.5016C4.4267 11.193 4.0823 11.0363 3.77279 11.1516C3.46228 11.2673 3.30438 11.6129 3.4201 11.9234L3.9649 11.7203C3.4201 11.9234 3.41998 11.9231 3.4201 11.9234L3.4206 11.9247L3.42118 11.9263L3.42262 11.9301L3.42661 11.9403C3.42977 11.9484 3.43394 11.9588 3.43914 11.9713C3.44956 11.9965 3.46418 12.0304 3.48334 12.0719C3.52161 12.1547 3.57828 12.2682 3.65608 12.4021C3.81124 12.6692 4.0534 13.0223 4.40584 13.3756C5.12 14.0914 6.27196 14.7898 8.00009 14.7898C9.82574 14.7898 11.3236 13.5101 11.6085 11.8955C11.812 10.7422 11.3901 9.55402 10.2665 8.5999H13.8804C14.2117 8.5999 14.4803 8.33127 14.4803 7.9999C14.4803 7.66853 14.2117 7.3999 13.8804 7.3999H8.01411C8.0048 7.39968 7.99551 7.39969 7.98625 7.3999H2.11953C1.78816 7.3999 1.51953 7.66853 1.51953 7.9999C1.51953 8.33127 1.78816 8.5999 2.11953 8.5999Z" } }] }, er = oe(function(t, e) {
|
|
354
354
|
return de(he, Object.assign({}, t, {
|
|
355
355
|
id: "strikethrough-icon",
|
|
356
356
|
ref: e,
|
|
357
357
|
icon: _i
|
|
358
358
|
}));
|
|
359
359
|
});
|
|
360
|
-
|
|
361
|
-
var wi = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M4.46416 2.03237C4.46416 1.701 4.19553 1.43237 3.86416 1.43237C3.53279 1.43237 3.26416 1.701 3.26416 2.03237V7.33338C3.26416 10.0313 5.35834 12.2667 7.9999 12.2667C10.6415 12.2667 12.7356 10.0313 12.7356 7.33338V2.03237C12.7356 1.701 12.467 1.43237 12.1356 1.43237C11.8043 1.43237 11.5356 1.701 11.5356 2.03237V7.33338C11.5356 9.42194 9.92656 11.0667 7.9999 11.0667C6.07325 11.0667 4.46416 9.42194 4.46416 7.33338V2.03237Z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M2.66641 13.4663C2.33504 13.4663 2.06641 13.7349 2.06641 14.0663C2.06641 14.3977 2.33504 14.6663 2.66641 14.6663H13.3331C13.6644 14.6663 13.9331 14.3977 13.9331 14.0663C13.9331 13.7349 13.6644 13.4663 13.3331 13.4663H2.66641Z" } }] },
|
|
360
|
+
er.displayName = "StrikethroughIcon";
|
|
361
|
+
var wi = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M4.46416 2.03237C4.46416 1.701 4.19553 1.43237 3.86416 1.43237C3.53279 1.43237 3.26416 1.701 3.26416 2.03237V7.33338C3.26416 10.0313 5.35834 12.2667 7.9999 12.2667C10.6415 12.2667 12.7356 10.0313 12.7356 7.33338V2.03237C12.7356 1.701 12.467 1.43237 12.1356 1.43237C11.8043 1.43237 11.5356 1.701 11.5356 2.03237V7.33338C11.5356 9.42194 9.92656 11.0667 7.9999 11.0667C6.07325 11.0667 4.46416 9.42194 4.46416 7.33338V2.03237Z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M2.66641 13.4663C2.33504 13.4663 2.06641 13.7349 2.06641 14.0663C2.06641 14.3977 2.33504 14.6663 2.66641 14.6663H13.3331C13.6644 14.6663 13.9331 14.3977 13.9331 14.0663C13.9331 13.7349 13.6644 13.4663 13.3331 13.4663H2.66641Z" } }] }, tr = oe(function(t, e) {
|
|
362
362
|
return de(he, Object.assign({}, t, {
|
|
363
363
|
id: "underline-icon",
|
|
364
364
|
ref: e,
|
|
365
365
|
icon: wi
|
|
366
366
|
}));
|
|
367
367
|
});
|
|
368
|
-
|
|
368
|
+
tr.displayName = "UnderlineIcon";
|
|
369
369
|
const Fe = (t) => {
|
|
370
|
-
const { color: e, onChange: r, disable: n = !1, Icon: i =
|
|
370
|
+
const { color: e, onChange: r, disable: n = !1, Icon: i = Jn, className: s } = t, o = J(() => new mn(e), [e]), u = () => {
|
|
371
371
|
const a = {
|
|
372
372
|
className: X("univer-fill-primary-600", n && s),
|
|
373
373
|
extend: { colorChannel1: o.isValid ? e : "" }
|
|
@@ -394,7 +394,7 @@ const Fe = (t) => {
|
|
|
394
394
|
const r = J(() => {
|
|
395
395
|
if (e.type === L.colorScale) {
|
|
396
396
|
const l = e.config.map((p, y) => ({ color: new mn(p.color), value: y })), d = l.length - 1;
|
|
397
|
-
return new Array(5).fill("").map((p, y, f) => y * d / (f.length - 1)).map((p) =>
|
|
397
|
+
return new Array(5).fill("").map((p, y, f) => y * d / (f.length - 1)).map((p) => fr(l, p));
|
|
398
398
|
}
|
|
399
399
|
return null;
|
|
400
400
|
}, [e]), n = J(() => {
|
|
@@ -442,7 +442,7 @@ const Fe = (t) => {
|
|
|
442
442
|
case L.iconSet:
|
|
443
443
|
return n && /* @__PURE__ */ c("div", { className: i, children: n.map((l, d) => l ? /* @__PURE__ */ c("img", { className: "univer-h-full", src: l, draggable: !1 }, d) : /* @__PURE__ */ c(ot, {}, d)) });
|
|
444
444
|
case L.highlightCell: {
|
|
445
|
-
const { ul: l, st: d, it: v, bl: p, bg: y, cl: f } = e.style, w = (l == null ? void 0 : l.s) === le.TRUE, I = (d == null ? void 0 : d.s) === le.TRUE, R = v === le.TRUE, x = p === le.TRUE, T = (u = y == null ? void 0 : y.rgb) != null ? u :
|
|
445
|
+
const { ul: l, st: d, it: v, bl: p, bg: y, cl: f } = e.style, w = (l == null ? void 0 : l.s) === le.TRUE, I = (d == null ? void 0 : d.s) === le.TRUE, R = v === le.TRUE, x = p === le.TRUE, T = (u = y == null ? void 0 : y.rgb) != null ? u : pr, g = (a = f == null ? void 0 : f.rgb) != null ? a : Cr, b = {
|
|
446
446
|
textDecoration: (h = `${w ? "underline" : ""} ${I ? "line-through" : ""}`.replace(/^ /, "")) != null ? h : void 0,
|
|
447
447
|
backgroundColor: T,
|
|
448
448
|
color: g
|
|
@@ -1110,9 +1110,7 @@ const Fe = (t) => {
|
|
|
1110
1110
|
] })
|
|
1111
1111
|
] });
|
|
1112
1112
|
}, ct = (t) => [le.FALSE, void 0].includes(t) ? le.TRUE : le.FALSE, ut = (t) => t !== le.FALSE, zt = (t) => {
|
|
1113
|
-
const { style: e, onChange: r, className: n } = t
|
|
1114
|
-
q(kn);
|
|
1115
|
-
const [i, s] = N(() => {
|
|
1113
|
+
const { style: e, onChange: r, className: n } = t, [i, s] = N(() => {
|
|
1116
1114
|
if (e != null && e.bl)
|
|
1117
1115
|
return e.bl;
|
|
1118
1116
|
}), [o, u] = N(() => {
|
|
@@ -1138,7 +1136,7 @@ const Fe = (t) => {
|
|
|
1138
1136
|
bl: i,
|
|
1139
1137
|
it: o
|
|
1140
1138
|
};
|
|
1141
|
-
v !== void 0 && (I.cl = { rgb: v }), y !== void 0 && (I.bg = { rgb: y }), l !== void 0 && (I.st = { s: l }), a !== void 0 && (I.ul = { s: a }), r(
|
|
1139
|
+
v !== void 0 && (I.cl = { rgb: v }), y !== void 0 && (I.bg = { rgb: y }), l !== void 0 && (I.st = { s: l }), a !== void 0 && (I.ul = { s: a }), r(yr(I));
|
|
1142
1140
|
}, [i, o, a, l, v, y]);
|
|
1143
1141
|
const w = "univer-flex univer-cursor-pointer univer-items-center univer-rounded univer-px-1";
|
|
1144
1142
|
return /* @__PURE__ */ k("div", { className: X("univer-my-2.5 univer-flex univer-justify-between", n), children: [
|
|
@@ -1149,7 +1147,7 @@ const Fe = (t) => {
|
|
|
1149
1147
|
"univer-bg-gray-100 dark:!univer-bg-gray-700": ut(i || le.FALSE)
|
|
1150
1148
|
}),
|
|
1151
1149
|
onClick: () => s(ct(i)),
|
|
1152
|
-
children: /* @__PURE__ */ c(
|
|
1150
|
+
children: /* @__PURE__ */ c(zn, {})
|
|
1153
1151
|
}
|
|
1154
1152
|
),
|
|
1155
1153
|
/* @__PURE__ */ c(
|
|
@@ -1159,7 +1157,7 @@ const Fe = (t) => {
|
|
|
1159
1157
|
"univer-bg-gray-100 dark:!univer-bg-gray-700": ut(o || le.FALSE)
|
|
1160
1158
|
}),
|
|
1161
1159
|
onClick: () => u(ct(o)),
|
|
1162
|
-
children: /* @__PURE__ */ c(
|
|
1160
|
+
children: /* @__PURE__ */ c(Xn, {})
|
|
1163
1161
|
}
|
|
1164
1162
|
),
|
|
1165
1163
|
/* @__PURE__ */ c(
|
|
@@ -1169,7 +1167,7 @@ const Fe = (t) => {
|
|
|
1169
1167
|
"univer-bg-gray-100 dark:!univer-bg-gray-700": ut(a || le.FALSE)
|
|
1170
1168
|
}),
|
|
1171
1169
|
onClick: () => h(ct(a)),
|
|
1172
|
-
children: /* @__PURE__ */ c(
|
|
1170
|
+
children: /* @__PURE__ */ c(tr, {})
|
|
1173
1171
|
}
|
|
1174
1172
|
),
|
|
1175
1173
|
/* @__PURE__ */ c(
|
|
@@ -1179,10 +1177,10 @@ const Fe = (t) => {
|
|
|
1179
1177
|
"univer-bg-gray-100 dark:!univer-bg-gray-700": ut(l || le.FALSE)
|
|
1180
1178
|
}),
|
|
1181
1179
|
onClick: () => d(ct(l)),
|
|
1182
|
-
children: /* @__PURE__ */ c(
|
|
1180
|
+
children: /* @__PURE__ */ c(er, {})
|
|
1183
1181
|
}
|
|
1184
1182
|
),
|
|
1185
|
-
/* @__PURE__ */ c(Fe, { color: v, onChange: p, Icon:
|
|
1183
|
+
/* @__PURE__ */ c(Fe, { color: v, onChange: p, Icon: Yn }),
|
|
1186
1184
|
/* @__PURE__ */ c(Fe, { color: y, onChange: f })
|
|
1187
1185
|
] });
|
|
1188
1186
|
}, xi = (t) => {
|
|
@@ -1516,7 +1514,7 @@ const Fe = (t) => {
|
|
|
1516
1514
|
}
|
|
1517
1515
|
)
|
|
1518
1516
|
] });
|
|
1519
|
-
},
|
|
1517
|
+
}, nr = (t, e) => (Ve[t] || [])[Number(e)] || "", Ni = (t) => {
|
|
1520
1518
|
var l;
|
|
1521
1519
|
const { error: e, type: r, onChange: n } = t, i = q(Z), s = i.getCurrentUnitForType(A.UNIVER_SHEET).getUnitId(), o = (l = i.getCurrentUnitForType(A.UNIVER_SHEET).getActiveSheet()) == null ? void 0 : l.getSheetId(), u = ge(null), [a, h] = N(!1);
|
|
1522
1520
|
return Nt((d) => {
|
|
@@ -1557,7 +1555,7 @@ const Fe = (t) => {
|
|
|
1557
1555
|
const { onClick: r } = t, n = q(re), i = (s) => {
|
|
1558
1556
|
r(s);
|
|
1559
1557
|
};
|
|
1560
|
-
return /* @__PURE__ */ c("div", { ref: e, className: "univer-w-80", children:
|
|
1558
|
+
return /* @__PURE__ */ c("div", { ref: e, className: "univer-w-80", children: br.map((s, o) => /* @__PURE__ */ k("div", { className: "univer-mb-3", children: [
|
|
1561
1559
|
/* @__PURE__ */ c("div", { className: "univer-mb-1 univer-text-sm", children: n.t(s.title) }),
|
|
1562
1560
|
/* @__PURE__ */ c("div", { className: "univer-flex univer-flex-wrap", children: s.group.map((u) => /* @__PURE__ */ c(
|
|
1563
1561
|
"div",
|
|
@@ -1607,7 +1605,7 @@ const Fe = (t) => {
|
|
|
1607
1605
|
"div",
|
|
1608
1606
|
{
|
|
1609
1607
|
className: "univer-mb-2.5 univer-flex univer-cursor-pointer univer-items-center univer-pl-1",
|
|
1610
|
-
onClick: () => n({ iconType:
|
|
1608
|
+
onClick: () => n({ iconType: Sr, iconId: "" }),
|
|
1611
1609
|
children: [
|
|
1612
1610
|
/* @__PURE__ */ c(ot, { className: "univer-size-5" }),
|
|
1613
1611
|
/* @__PURE__ */ c("span", { className: "univer-ml-2", children: "无单元格图标" })
|
|
@@ -1649,7 +1647,7 @@ const Fe = (t) => {
|
|
|
1649
1647
|
u(y, v);
|
|
1650
1648
|
};
|
|
1651
1649
|
return J(() => r.map((d, v) => {
|
|
1652
|
-
const p = n[v], y =
|
|
1650
|
+
const p = n[v], y = nr(d.iconType, d.iconId), f = v === r.length - 1, w = v === 0, I = r[v - 1], R = (I == null ? void 0 : I.value.type) === D.formula ? i.t("sheet.cf.valueType.formula") : I == null ? void 0 : I.value.value, x = (T, g) => {
|
|
1653
1651
|
const b = { ...d, iconId: g, iconType: T };
|
|
1654
1652
|
e([String(v)], b);
|
|
1655
1653
|
};
|
|
@@ -1809,7 +1807,7 @@ const Fe = (t) => {
|
|
|
1809
1807
|
iconId: String(S)
|
|
1810
1808
|
} : an(o, S, C));
|
|
1811
1809
|
}), [l, d] = N(() => r ? !!r.isShowValue : !0), v = J(() => {
|
|
1812
|
-
const g = a.map((b) =>
|
|
1810
|
+
const g = a.map((b) => nr(b.iconType, b.iconId));
|
|
1813
1811
|
return /* @__PURE__ */ c("div", { className: "univer-flex univer-items-center", children: g.map((b, S) => b ? /* @__PURE__ */ c(
|
|
1814
1812
|
"img",
|
|
1815
1813
|
{
|
|
@@ -1834,12 +1832,12 @@ const Fe = (t) => {
|
|
|
1834
1832
|
if (M - 1 < 0 || M === E.length - 1)
|
|
1835
1833
|
return;
|
|
1836
1834
|
const O = g[M - 1], m = Ht(O.operator);
|
|
1837
|
-
|
|
1835
|
+
Ir({ operator: m, value: O.value.value }, C.value.value) || (S[M] = `${n.t(`sheet.cf.form.${m}`, String(O.value.value))} `);
|
|
1838
1836
|
}), S;
|
|
1839
1837
|
}
|
|
1840
1838
|
return {};
|
|
1841
1839
|
}, y = (g, b) => {
|
|
1842
|
-
|
|
1840
|
+
ur(a, g) !== b && (dr(a, g, b), h([...a]), s(p(a)));
|
|
1843
1841
|
}, f = (g) => {
|
|
1844
1842
|
u(g);
|
|
1845
1843
|
const b = Ve[g] || [], S = new Array(b.length).fill("").map((C, M, E) => an(g, M, E));
|
|
@@ -1870,8 +1868,8 @@ const Fe = (t) => {
|
|
|
1870
1868
|
const C = a.length - 1 - S, M = g[C];
|
|
1871
1869
|
b.iconId = M.iconId, b.iconType = M.iconType;
|
|
1872
1870
|
}), h([...a]);
|
|
1873
|
-
}, I = q(
|
|
1874
|
-
return
|
|
1871
|
+
}, I = q(jr), [R, x] = N();
|
|
1872
|
+
return Br(R, I.rootContainerElement), /* @__PURE__ */ k("div", { children: [
|
|
1875
1873
|
/* @__PURE__ */ c("div", { className: "univer-mt-4 univer-text-sm univer-text-gray-600", children: n.t("sheet.cf.panel.styleRule") }),
|
|
1876
1874
|
/* @__PURE__ */ c("div", { className: "univer-mt-3", children: /* @__PURE__ */ c(
|
|
1877
1875
|
Gt,
|
|
@@ -2043,7 +2041,7 @@ const Fe = (t) => {
|
|
|
2043
2041
|
var V, O, m;
|
|
2044
2042
|
let E = (V = t.rule) == null ? void 0 : V.ranges;
|
|
2045
2043
|
return E != null && E.length || (E = (m = (O = s.getCurrentSelections()) == null ? void 0 : O.map((_) => _.range)) != null ? m : []), l.current = E, E != null && E.length ? E.map((_) => {
|
|
2046
|
-
const j =
|
|
2044
|
+
const j = Fn(_);
|
|
2047
2045
|
return j === "NaN" ? "" : j;
|
|
2048
2046
|
}).filter((_) => !!_).join(",") : "";
|
|
2049
2047
|
}, [t.rule]), v = [
|
|
@@ -2083,7 +2081,7 @@ const Fe = (t) => {
|
|
|
2083
2081
|
return "6";
|
|
2084
2082
|
}
|
|
2085
2083
|
return V;
|
|
2086
|
-
}), f = ge(void 0), w = J(() => new
|
|
2084
|
+
}), f = ge(void 0), w = J(() => new hr({ beforeSubmit: Ui, submit: Pi }), []), I = J(() => {
|
|
2087
2085
|
switch (p) {
|
|
2088
2086
|
case "1":
|
|
2089
2087
|
return on;
|
|
@@ -2103,7 +2101,7 @@ const Fe = (t) => {
|
|
|
2103
2101
|
}, [p]);
|
|
2104
2102
|
K(() => {
|
|
2105
2103
|
const E = r.onCommandExecuted((V) => {
|
|
2106
|
-
if (V.id ===
|
|
2104
|
+
if (V.id === Mr.id) {
|
|
2107
2105
|
const O = V.params;
|
|
2108
2106
|
O.subUnitId === u && O.unitId === o && t.onCancel();
|
|
2109
2107
|
}
|
|
@@ -2123,7 +2121,7 @@ const Fe = (t) => {
|
|
|
2123
2121
|
const m = n.getCurrentUnitForType(A.UNIVER_SHEET).getActiveSheet();
|
|
2124
2122
|
if (!m)
|
|
2125
2123
|
throw new Error("No active sheet found");
|
|
2126
|
-
return l.current.map((Y) =>
|
|
2124
|
+
return l.current.map((Y) => Vr(Y, m.getRowCount(), m.getColumnCount())).filter((Y) => !(Number.isNaN(Y.startRow) || Number.isNaN(Y.startColumn)));
|
|
2127
2125
|
})();
|
|
2128
2126
|
if (w.fetchThroughInterceptors(w.getInterceptPoints().beforeSubmit)(!0, null)) {
|
|
2129
2127
|
const m = w.fetchThroughInterceptors(w.getInterceptPoints().submit)(null, null);
|
|
@@ -2132,7 +2130,7 @@ const Fe = (t) => {
|
|
|
2132
2130
|
if (!_ || !j)
|
|
2133
2131
|
throw new Error("No active sheet found");
|
|
2134
2132
|
let Y = {};
|
|
2135
|
-
t.rule && t.rule.cfId ? (Y = { ...t.rule, ranges: V, rule: m }, r.executeCommand(
|
|
2133
|
+
t.rule && t.rule.cfId ? (Y = { ...t.rule, ranges: V, rule: m }, r.executeCommand(_r.id, { unitId: _, subUnitId: j, rule: Y }), t.onCancel()) : (Y = { cfId: i.createCfId(_, j), ranges: V, rule: m, stopIfTrue: !1 }, r.executeCommand(Sn.id, { unitId: _, subUnitId: j, rule: Y }), t.onCancel());
|
|
2136
2134
|
}
|
|
2137
2135
|
}
|
|
2138
2136
|
}, g = () => {
|
|
@@ -2276,7 +2274,7 @@ const Hi = (t, e) => {
|
|
|
2276
2274
|
};
|
|
2277
2275
|
let un = 0;
|
|
2278
2276
|
const ji = (t) => {
|
|
2279
|
-
const { onClick: e } = t, r = q(Q), n = q(Z), i = q(je), s = q(te), o = q(re), u = q(fe), a = q(
|
|
2277
|
+
const { onClick: e } = t, r = q(Q), n = q(Z), i = q(je), s = q(te), o = q(re), u = q(fe), a = q(kn), h = q(He), l = Wr(() => n.getCurrentTypeOfUnit$(A.UNIVER_SHEET), void 0, void 0, []), d = l.getUnitId(), v = l.getActiveSheet();
|
|
2280
2278
|
if (!v)
|
|
2281
2279
|
throw new Error("No active sheet found");
|
|
2282
2280
|
const p = v.getSheetId(), [y, f] = N([]), [w, I] = N("2"), [R, x] = N(0), [T, g] = N(-1), [b, S] = N(un), C = ge(null), M = [
|
|
@@ -2307,7 +2305,7 @@ const ji = (t) => {
|
|
|
2307
2305
|
if (w === "2")
|
|
2308
2306
|
return;
|
|
2309
2307
|
const $ = new Ne((B) => {
|
|
2310
|
-
const G = [
|
|
2308
|
+
const G = [kr.id, se.id, _e.id, we.id, _n.id], z = s.onCommandExecuted((ee) => {
|
|
2311
2309
|
const { id: ne, params: Re } = ee, Te = n.getCurrentUnitOfType(A.UNIVER_SHEET).getUnitId();
|
|
2312
2310
|
G.includes(ne) && Re.unitId === Te && B.next(null);
|
|
2313
2311
|
});
|
|
@@ -2364,11 +2362,11 @@ const ji = (t) => {
|
|
|
2364
2362
|
const z = n.getCurrentUnitOfType(A.UNIVER_SHEET).getUnitId(), ee = (lt = n.getCurrentUnitOfType(A.UNIVER_SHEET).getActiveSheet()) == null ? void 0 : lt.getSheetId();
|
|
2365
2363
|
if (!z || !ee)
|
|
2366
2364
|
throw new Error("No active sheet found");
|
|
2367
|
-
const ne = (
|
|
2368
|
-
const
|
|
2369
|
-
return Math.min(
|
|
2365
|
+
const ne = (or) => {
|
|
2366
|
+
const ar = V.length;
|
|
2367
|
+
return Math.min(ar - 1, Math.max(0, or));
|
|
2370
2368
|
}, Re = V[ne(B.y)].cfId, Te = V[ne(G.y)].cfId;
|
|
2371
|
-
Re !== Te && s.executeCommand(
|
|
2369
|
+
Re !== Te && s.executeCommand(wr.id, { unitId: z, subUnitId: ee, start: { id: Re, type: "self" }, end: { id: Te, type: G.y > B.y ? "after" : "before" } });
|
|
2372
2370
|
}, Y = () => {
|
|
2373
2371
|
t.onCreate();
|
|
2374
2372
|
}, pe = () => {
|
|
@@ -2410,7 +2408,7 @@ const ji = (t) => {
|
|
|
2410
2408
|
{
|
|
2411
2409
|
className: "univer-size-5 univer-cursor-pointer",
|
|
2412
2410
|
onClick: Y,
|
|
2413
|
-
children: /* @__PURE__ */ c(
|
|
2411
|
+
children: /* @__PURE__ */ c(Kn, {})
|
|
2414
2412
|
}
|
|
2415
2413
|
) }),
|
|
2416
2414
|
V.length && Ue ? /* @__PURE__ */ c(Jt, { title: o.t("sheet.cf.panel.clear"), placement: "bottom", children: /* @__PURE__ */ c(
|
|
@@ -2454,7 +2452,7 @@ const ji = (t) => {
|
|
|
2454
2452
|
{
|
|
2455
2453
|
className: X("univer-absolute univer-left-0 univer-hidden univer-size-5 univer-cursor-grab univer-items-center univer-justify-center univer-rounded group-hover:univer-flex", "draggableHandle"),
|
|
2456
2454
|
onClick: (G) => G.stopPropagation(),
|
|
2457
|
-
children: /* @__PURE__ */ c(
|
|
2455
|
+
children: /* @__PURE__ */ c(Qn, {})
|
|
2458
2456
|
}
|
|
2459
2457
|
),
|
|
2460
2458
|
/* @__PURE__ */ k(
|
|
@@ -2469,7 +2467,7 @@ const ji = (t) => {
|
|
|
2469
2467
|
children: Hi($, o)
|
|
2470
2468
|
}
|
|
2471
2469
|
),
|
|
2472
|
-
/* @__PURE__ */ c("div", { className: "univer-text-xs univer-text-gray-400", children: $.ranges.map((G) =>
|
|
2470
|
+
/* @__PURE__ */ c("div", { className: "univer-text-xs univer-text-gray-400", children: $.ranges.map((G) => Fn(G)).join(",") })
|
|
2473
2471
|
]
|
|
2474
2472
|
}
|
|
2475
2473
|
),
|
|
@@ -2530,7 +2528,7 @@ let Qe = class extends ue {
|
|
|
2530
2528
|
children: {
|
|
2531
2529
|
label: ht,
|
|
2532
2530
|
rule: e,
|
|
2533
|
-
key:
|
|
2531
|
+
key: vr(4)
|
|
2534
2532
|
},
|
|
2535
2533
|
onClose: () => this._sidebarDisposable = null
|
|
2536
2534
|
};
|
|
@@ -2545,8 +2543,8 @@ let Qe = class extends ue {
|
|
|
2545
2543
|
Qe = qi([
|
|
2546
2544
|
qe(0, Z),
|
|
2547
2545
|
qe(1, P(fe)),
|
|
2548
|
-
qe(2, P(
|
|
2549
|
-
qe(3, P(
|
|
2546
|
+
qe(2, P(qr)),
|
|
2547
|
+
qe(3, P(kn)),
|
|
2550
2548
|
qe(4, P(re))
|
|
2551
2549
|
], Qe);
|
|
2552
2550
|
var ie = /* @__PURE__ */ ((t) => (t[t.createRule = 1] = "createRule", t[t.viewRule = 2] = "viewRule", t[t.highlightCell = 3] = "highlightCell", t[t.rank = 4] = "rank", t[t.formula = 5] = "formula", t[t.colorScale = 6] = "colorScale", t[t.dataBar = 7] = "dataBar", t[t.icon = 8] = "icon", t[t.clearRangeRules = 9] = "clearRangeRules", t[t.clearWorkSheetRules = 10] = "clearWorkSheetRules", t))(ie || {});
|
|
@@ -2632,7 +2630,7 @@ const Vt = {
|
|
|
2632
2630
|
break;
|
|
2633
2631
|
}
|
|
2634
2632
|
case 9: {
|
|
2635
|
-
i.executeCommand(
|
|
2633
|
+
i.executeCommand(Rr.id, { ranges: s });
|
|
2636
2634
|
break;
|
|
2637
2635
|
}
|
|
2638
2636
|
case 10: {
|
|
@@ -2676,7 +2674,7 @@ let et = class extends ue {
|
|
|
2676
2674
|
cfMap: s
|
|
2677
2675
|
}
|
|
2678
2676
|
};
|
|
2679
|
-
const o = this._injector.invoke((l) =>
|
|
2677
|
+
const o = this._injector.invoke((l) => Fr(n, l, e, r));
|
|
2680
2678
|
if (!o)
|
|
2681
2679
|
return;
|
|
2682
2680
|
const { rows: u, cols: a } = o, h = /* @__PURE__ */ new Set();
|
|
@@ -2707,7 +2705,7 @@ let et = class extends ue {
|
|
|
2707
2705
|
r.pasteType
|
|
2708
2706
|
))
|
|
2709
2707
|
return { redos: [], undos: [] };
|
|
2710
|
-
const { ranges: [a, h], mapFunc: l } =
|
|
2708
|
+
const { ranges: [a, h], mapFunc: l } = Ln([r.copyRange, e]), d = ii(a, h, !0), v = {};
|
|
2711
2709
|
be.foreach(h, (g, b) => {
|
|
2712
2710
|
const { row: S, col: C } = l(g, b), M = this._conditionalFormattingViewModel.getCellCfs(s, o, S, C);
|
|
2713
2711
|
M && M.forEach((E) => {
|
|
@@ -2833,7 +2831,7 @@ let tt = class extends ue {
|
|
|
2833
2831
|
tt = Yi([
|
|
2834
2832
|
Ot(0, P(re)),
|
|
2835
2833
|
Ot(1, te),
|
|
2836
|
-
Ot(2, P(
|
|
2834
|
+
Ot(2, P(Lr))
|
|
2837
2835
|
], tt);
|
|
2838
2836
|
var Ki = Object.getOwnPropertyDescriptor, Xi = (t, e, r, n) => {
|
|
2839
2837
|
for (var i = n > 1 ? void 0 : n ? Ki(e, r) : e, s = t.length - 1, o; s >= 0; s--)
|
|
@@ -2847,8 +2845,8 @@ let nt = class extends ue {
|
|
|
2847
2845
|
_initRefRange() {
|
|
2848
2846
|
const t = /* @__PURE__ */ new Map(), e = (n, i, s) => `${n}_${i}_${s}`, r = (n, i, s) => {
|
|
2849
2847
|
const o = (a) => {
|
|
2850
|
-
const h = [...s.ranges], l = h.map((v) =>
|
|
2851
|
-
if (
|
|
2848
|
+
const h = [...s.ranges], l = h.map((v) => Pr(v, a)).filter((v) => !!v);
|
|
2849
|
+
if (Tr(l, h))
|
|
2852
2850
|
return { redos: [], undos: [] };
|
|
2853
2851
|
if (l.length) {
|
|
2854
2852
|
const v = { unitId: n, subUnitId: i, rule: { ...s, ranges: l } }, p = [{ id: _e.id, params: v }], y = Ae(this._injector, v);
|
|
@@ -2892,7 +2890,7 @@ nt = Xi([
|
|
|
2892
2890
|
vt(0, P(Q)),
|
|
2893
2891
|
vt(1, P(Z)),
|
|
2894
2892
|
vt(2, P(fe)),
|
|
2895
|
-
vt(3, P(
|
|
2893
|
+
vt(3, P(Ur))
|
|
2896
2894
|
], nt);
|
|
2897
2895
|
var Ji = Object.getOwnPropertyDescriptor, Qi = (t, e, r, n) => {
|
|
2898
2896
|
for (var i = n > 1 ? void 0 : n ? Ji(e, r) : e, s = t.length - 1, o; s >= 0; s--)
|
|
@@ -2914,10 +2912,10 @@ let rt = class extends ue {
|
|
|
2914
2912
|
_markDirtySkeleton() {
|
|
2915
2913
|
var r, n, i;
|
|
2916
2914
|
const e = this._univerInstanceService.getCurrentUnitForType(A.UNIVER_SHEET).getUnitId();
|
|
2917
|
-
(r = this._renderManagerService.getRenderById(e)) == null || r.with(
|
|
2915
|
+
(r = this._renderManagerService.getRenderById(e)) == null || r.with(Un).reCalculate(), (i = (n = this._renderManagerService.getRenderById(e)) == null ? void 0 : n.mainComponent) == null || i.makeDirty();
|
|
2918
2916
|
}
|
|
2919
2917
|
_initSkeleton() {
|
|
2920
|
-
this.disposeWithMe(
|
|
2918
|
+
this.disposeWithMe(Pn(this._conditionalFormattingRuleModel.$ruleChange, this._conditionalFormattingViewModel.markDirty$).pipe(
|
|
2921
2919
|
ci(16),
|
|
2922
2920
|
tn((e) => !!e.length),
|
|
2923
2921
|
tn((e) => {
|
|
@@ -2929,14 +2927,14 @@ let rt = class extends ue {
|
|
|
2929
2927
|
).subscribe(() => this._markDirtySkeleton()));
|
|
2930
2928
|
}
|
|
2931
2929
|
_initViewModelInterceptor() {
|
|
2932
|
-
this.disposeWithMe(this._sheetInterceptorService.intercept(
|
|
2933
|
-
effect:
|
|
2930
|
+
this.disposeWithMe(this._sheetInterceptorService.intercept(Or.CELL_CONTENT, {
|
|
2931
|
+
effect: gr.Style,
|
|
2934
2932
|
handler: (e, r, n) => {
|
|
2935
2933
|
const i = this._conditionalFormattingService.composeStyle(r.unitId, r.subUnitId, r.row, r.col);
|
|
2936
2934
|
if (!i)
|
|
2937
2935
|
return n(e);
|
|
2938
2936
|
const s = r.workbook.getStyles(), o = (typeof (e == null ? void 0 : e.s) == "string" ? s.get(e == null ? void 0 : e.s) : e == null ? void 0 : e.s) || {}, u = e === r.rawData ? { ...r.rawData } : e;
|
|
2939
|
-
return i.style && Object.assign(u, o), u.fontRenderExtension || (u.fontRenderExtension = {}, i.isShowValue !== void 0 && (u.fontRenderExtension.isSkip = !i.isShowValue)), i.dataBar && (u.dataBar = i.dataBar), i.iconSet && (u.iconSet = i.iconSet, u.fontRenderExtension.leftOffset =
|
|
2937
|
+
return i.style && Object.assign(u, o), u.fontRenderExtension || (u.fontRenderExtension = {}, i.isShowValue !== void 0 && (u.fontRenderExtension.isSkip = !i.isShowValue)), i.dataBar && (u.dataBar = i.dataBar), i.iconSet && (u.iconSet = i.iconSet, u.fontRenderExtension.leftOffset = xr + Er), n(u);
|
|
2940
2938
|
},
|
|
2941
2939
|
priority: 10
|
|
2942
2940
|
}));
|
|
@@ -2946,16 +2944,16 @@ rt = Qi([
|
|
|
2946
2944
|
Oe(0, P(qt)),
|
|
2947
2945
|
Oe(1, P(Tn)),
|
|
2948
2946
|
Oe(2, P(Z)),
|
|
2949
|
-
Oe(3, P(
|
|
2947
|
+
Oe(3, P(On)),
|
|
2950
2948
|
Oe(4, P(it)),
|
|
2951
2949
|
Oe(5, P(Q))
|
|
2952
2950
|
], rt);
|
|
2953
|
-
const
|
|
2951
|
+
const rr = "sheets-conditional-formatting-ui.config", bt = {};
|
|
2954
2952
|
var es = Object.defineProperty, ts = Object.getOwnPropertyDescriptor, ns = (t, e, r) => e in t ? es(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, rs = (t, e, r, n) => {
|
|
2955
2953
|
for (var i = n > 1 ? void 0 : n ? ts(e, r) : e, s = t.length - 1, o; s >= 0; s--)
|
|
2956
2954
|
(o = t[s]) && (i = o(i) || i);
|
|
2957
2955
|
return i;
|
|
2958
|
-
}, Dt = (t, e) => (r, n) => e(r, n, t),
|
|
2956
|
+
}, Dt = (t, e) => (r, n) => e(r, n, t), ir = (t, e, r) => ns(t, typeof e != "symbol" ? e + "" : e, r);
|
|
2959
2957
|
let It = class extends bn {
|
|
2960
2958
|
constructor(t = bt, e, r, n) {
|
|
2961
2959
|
super(), this._config = t, this._injector = e, this._commandService = r, this._configService = n;
|
|
@@ -2964,10 +2962,11 @@ let It = class extends bn {
|
|
|
2964
2962
|
bt,
|
|
2965
2963
|
this._config
|
|
2966
2964
|
);
|
|
2967
|
-
i && this._configService.setConfig("menu", i, { merge: !0 }), this._configService.setConfig(
|
|
2965
|
+
i && this._configService.setConfig("menu", i, { merge: !0 }), this._configService.setConfig(rr, s), this._initCommand(), this._injector.add([rt]), this._injector.add([nt]), this._injector.add([et]), this._injector.add([tt]), this._injector.add([He]);
|
|
2968
2966
|
}
|
|
2969
2967
|
_initCommand() {
|
|
2970
2968
|
[
|
|
2969
|
+
Dn,
|
|
2971
2970
|
$n,
|
|
2972
2971
|
An,
|
|
2973
2972
|
Hn,
|
|
@@ -2976,15 +2975,14 @@ let It = class extends bn {
|
|
|
2976
2975
|
Wn,
|
|
2977
2976
|
qn,
|
|
2978
2977
|
Gn,
|
|
2979
|
-
Zn,
|
|
2980
2978
|
Vt
|
|
2981
2979
|
].forEach((t) => {
|
|
2982
2980
|
this._commandService.registerCommand(t);
|
|
2983
2981
|
});
|
|
2984
2982
|
}
|
|
2985
2983
|
};
|
|
2986
|
-
|
|
2987
|
-
|
|
2984
|
+
ir(It, "pluginName", `${st}_MOBILE_UI_PLUGIN`);
|
|
2985
|
+
ir(It, "type", A.UNIVER_SHEET);
|
|
2988
2986
|
It = rs([
|
|
2989
2987
|
Cn(xn),
|
|
2990
2988
|
Dt(1, P(fe)),
|
|
@@ -3079,7 +3077,7 @@ let St = class extends ue {
|
|
|
3079
3077
|
const o = (I = this._univerInstanceService.getCurrentUnitForType(A.UNIVER_SHEET)) == null ? void 0 : I.getUnitId(), u = (x = (R = this._univerInstanceService.getCurrentUnitForType(A.UNIVER_SHEET)) == null ? void 0 : R.getActiveSheet()) == null ? void 0 : x.getSheetId(), a = /* @__PURE__ */ new Map(), h = [], l = [];
|
|
3080
3078
|
if (!o || !u)
|
|
3081
3079
|
return t();
|
|
3082
|
-
const d =
|
|
3080
|
+
const d = Ln([i, s]), [v, p] = d.ranges, { mapFunc: y } = d, f = {
|
|
3083
3081
|
row: v.startRow,
|
|
3084
3082
|
col: v.startColumn
|
|
3085
3083
|
};
|
|
@@ -3143,7 +3141,7 @@ let _t = class extends ue {
|
|
|
3143
3141
|
getMutations: (t) => {
|
|
3144
3142
|
var i;
|
|
3145
3143
|
const e = [], r = [], n = { redos: e, undos: r };
|
|
3146
|
-
if ([
|
|
3144
|
+
if ([Dr.id, $r.id].includes(t.id)) {
|
|
3147
3145
|
const s = (i = this._selectionManagerService.getCurrentSelections()) == null ? void 0 : i.map((p) => p.range);
|
|
3148
3146
|
if (!s)
|
|
3149
3147
|
return n;
|
|
@@ -3182,7 +3180,7 @@ _t = as([
|
|
|
3182
3180
|
function dn(t, e, r, n, i) {
|
|
3183
3181
|
const s = [], o = [];
|
|
3184
3182
|
return e.filter((u) => r.some((a) => u.ranges.some((h) => ye.getIntersects(h, a)))).forEach((u) => {
|
|
3185
|
-
const h = new
|
|
3183
|
+
const h = new Ar().add(...u.ranges).subtract(...r).merge();
|
|
3186
3184
|
if (h.length) {
|
|
3187
3185
|
const l = {
|
|
3188
3186
|
id: _e.id,
|
|
@@ -3224,7 +3222,7 @@ let wt = class extends ue {
|
|
|
3224
3222
|
this.disposeWithMe(
|
|
3225
3223
|
pn(
|
|
3226
3224
|
this._sheetInterceptorService.writeCellInterceptor.intercept(
|
|
3227
|
-
|
|
3225
|
+
Hr,
|
|
3228
3226
|
{
|
|
3229
3227
|
handler: (t, e, r) => {
|
|
3230
3228
|
var o, u, a;
|
|
@@ -3335,7 +3333,7 @@ const vn = [
|
|
|
3335
3333
|
value: ie.clearWorkSheetRules
|
|
3336
3334
|
}
|
|
3337
3335
|
], us = (t) => {
|
|
3338
|
-
const e = t.get(je), r = t.get(te), n = t.get(Z), i = t.get(Q), s = new Ne((a) =>
|
|
3336
|
+
const e = t.get(je), r = t.get(te), n = t.get(Z), i = t.get(Q), s = new Ne((a) => Pn(
|
|
3339
3337
|
e.selectionMoveEnd$,
|
|
3340
3338
|
e.selectionSet$,
|
|
3341
3339
|
new Ne((h) => {
|
|
@@ -3644,10 +3642,10 @@ let xt = class extends ue {
|
|
|
3644
3642
|
const n = r.getUnitId(), i = this._renderManagerService.getRenderById(n);
|
|
3645
3643
|
if (!i)
|
|
3646
3644
|
return;
|
|
3647
|
-
const s = i.with(
|
|
3645
|
+
const s = i.with(Un);
|
|
3648
3646
|
this.disposeWithMe(s.currentSkeleton$.subscribe((o) => {
|
|
3649
3647
|
if (o) {
|
|
3650
|
-
const u = o.skeleton.rowColumnSegment, a = u.endColumn - u.startColumn + 1, l = (u.endRow - u.startRow + 1) * a * 9, d = Math.max(
|
|
3648
|
+
const u = o.skeleton.rowColumnSegment, a = u.endColumn - u.startColumn + 1, l = (u.endRow - u.startRow + 1) * a * 9, d = Math.max(Nr, l);
|
|
3651
3649
|
this._conditionalFormattingViewModel.setCacheLength(d);
|
|
3652
3650
|
}
|
|
3653
3651
|
}));
|
|
@@ -3660,13 +3658,13 @@ let xt = class extends ue {
|
|
|
3660
3658
|
xt = Cs([
|
|
3661
3659
|
$t(0, P(it)),
|
|
3662
3660
|
$t(1, Z),
|
|
3663
|
-
$t(2,
|
|
3661
|
+
$t(2, On)
|
|
3664
3662
|
], xt);
|
|
3665
3663
|
var ys = Object.defineProperty, bs = Object.getOwnPropertyDescriptor, Is = (t, e, r) => e in t ? ys(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, Ss = (t, e, r, n) => {
|
|
3666
3664
|
for (var i = n > 1 ? void 0 : n ? bs(e, r) : e, s = t.length - 1, o; s >= 0; s--)
|
|
3667
3665
|
(o = t[s]) && (i = o(i) || i);
|
|
3668
3666
|
return i;
|
|
3669
|
-
}, At = (t, e) => (r, n) => e(r, n, t),
|
|
3667
|
+
}, At = (t, e) => (r, n) => e(r, n, t), sr = (t, e, r) => Is(t, typeof e != "symbol" ? e + "" : e, r);
|
|
3670
3668
|
let Et = class extends bn {
|
|
3671
3669
|
constructor(t = bt, e, r, n) {
|
|
3672
3670
|
super(), this._config = t, this._injector = e, this._commandService = r, this._configService = n;
|
|
@@ -3675,10 +3673,10 @@ let Et = class extends bn {
|
|
|
3675
3673
|
bt,
|
|
3676
3674
|
this._config
|
|
3677
3675
|
);
|
|
3678
|
-
i && this._configService.setConfig("menu", i, { merge: !0 }), this._configService.setConfig(
|
|
3676
|
+
i && this._configService.setConfig("menu", i, { merge: !0 }), this._configService.setConfig(rr, s), this._initCommand();
|
|
3679
3677
|
}
|
|
3680
3678
|
onStarting() {
|
|
3681
|
-
|
|
3679
|
+
mr(this._injector, [
|
|
3682
3680
|
[rt],
|
|
3683
3681
|
[nt],
|
|
3684
3682
|
[et],
|
|
@@ -3716,6 +3714,7 @@ let Et = class extends bn {
|
|
|
3716
3714
|
}
|
|
3717
3715
|
_initCommand() {
|
|
3718
3716
|
[
|
|
3717
|
+
Dn,
|
|
3719
3718
|
$n,
|
|
3720
3719
|
An,
|
|
3721
3720
|
Hn,
|
|
@@ -3724,15 +3723,14 @@ let Et = class extends bn {
|
|
|
3724
3723
|
Wn,
|
|
3725
3724
|
qn,
|
|
3726
3725
|
Gn,
|
|
3727
|
-
Zn,
|
|
3728
3726
|
Vt
|
|
3729
3727
|
].forEach((t) => {
|
|
3730
3728
|
this._commandService.registerCommand(t);
|
|
3731
3729
|
});
|
|
3732
3730
|
}
|
|
3733
3731
|
};
|
|
3734
|
-
|
|
3735
|
-
|
|
3732
|
+
sr(Et, "pluginName", `${st}_UI_PLUGIN`);
|
|
3733
|
+
sr(Et, "type", A.UNIVER_SHEET);
|
|
3736
3734
|
Et = Ss([
|
|
3737
3735
|
Cn(xn),
|
|
3738
3736
|
At(1, P(fe)),
|
|
@@ -3740,15 +3738,15 @@ Et = Ss([
|
|
|
3740
3738
|
At(3, yn)
|
|
3741
3739
|
], Et);
|
|
3742
3740
|
export {
|
|
3743
|
-
|
|
3744
|
-
|
|
3745
|
-
|
|
3746
|
-
|
|
3747
|
-
|
|
3748
|
-
|
|
3749
|
-
|
|
3750
|
-
|
|
3751
|
-
|
|
3741
|
+
Dn as AddAverageCfCommand,
|
|
3742
|
+
$n as AddColorScaleConditionalRuleCommand,
|
|
3743
|
+
An as AddDataBarConditionalRuleCommand,
|
|
3744
|
+
Hn as AddDuplicateValuesCfCommand,
|
|
3745
|
+
jn as AddNumberCfCommand,
|
|
3746
|
+
Bn as AddRankCfCommand,
|
|
3747
|
+
Wn as AddTextCfCommand,
|
|
3748
|
+
qn as AddTimePeriodCfCommand,
|
|
3749
|
+
Gn as AddUniqueValuesCfCommand,
|
|
3752
3750
|
_t as ConditionalFormattingClearController,
|
|
3753
3751
|
Vt as OpenConditionalFormattingOperator,
|
|
3754
3752
|
It as UniverSheetsConditionalFormattingMobileUIPlugin,
|