@univerjs/sheets-data-validation 0.1.11 → 0.1.12
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 +2 -2
- package/lib/es/index.js +476 -474
- package/lib/types/controllers/dv-render.controller.d.ts +7 -2
- package/lib/types/plugin.d.ts +3 -1
- package/lib/umd/index.js +2 -2
- package/package.json +23 -23
package/lib/es/index.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
var Ir = Object.defineProperty;
|
|
2
|
-
var
|
|
3
|
-
var v = (n, a, e) => (
|
|
4
|
-
import { Disposable as fe, DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY as
|
|
5
|
-
import { ICommandService as
|
|
2
|
+
var Lr = (n, a, e) => a in n ? Ir(n, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[a] = e;
|
|
3
|
+
var v = (n, a, e) => (Lr(n, typeof a != "symbol" ? a + "" : a, e), e);
|
|
4
|
+
import { Disposable as fe, DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY as Tr, DisposableCollection as ra, IUniverInstanceService as se, UniverInstanceType as me, toDisposable as Et, CommandType as we, ICommandService as J, IUndoRedoService as xa, sequenceExecuteAsync as Pa, LocaleService as de, DataValidationErrorStyle as et, UndoCommand as Ar, RedoCommand as br, isUnitRangesEqual as Dr, createInternalEditorID as oa, isValidRange as yr, debounce as Nr, shallowEqual as ga, DEFAULT_EMPTY_DOCUMENT_VALUE as ja, DataValidationRenderMode as ie, DataValidationType as Y, OnLifecycle as Ve, LifecycleStages as Ce, isFormulaString as T, Tools as j, RxDisposable as Ba, WrapStrategy as he, DataValidationStatus as ye, sequenceExecute as Ur, ObjectMatrix as nt, Range as k, ThemeService as xr, VerticalAlign as te, HorizontalAlign as Re, DataValidationOperator as R, DocumentDataModel as Pr, BooleanNumber as Ze, isRangesEqual as jr, Rectangle as Xe, queryObjectMatrix as bt, IResourceManagerService as Br, Plugin as $r } from "@univerjs/core";
|
|
5
|
+
import { ICommandService as ll, LocaleService as dl, Plugin as ul } from "@univerjs/core";
|
|
6
6
|
import { Inject as E, Injector as Be } from "@wendellhu/redi";
|
|
7
|
-
import { DataValidatorRegistryService as
|
|
8
|
-
import { useObservable as Ke, ComponentManager as
|
|
7
|
+
import { DataValidatorRegistryService as Fe, DataValidationModel as K, AddDataValidationMutation as Yt, RemoveDataValidationMutation as wt, createDefaultNewRule as $a, UpdateDataValidationMutation as He, UpdateRuleType as Ee, DataValidatorRegistryScope as qr, TWO_FORMULA_OPERATOR_COUNT as Wr, getRuleOptions as va, getRuleSetting as _a, UpdateDataValidationSettingCommand as Ra, RemoveDataValidationCommand as qa, UpdateDataValidationOptionsCommand as Hr, RemoveAllDataValidationCommand as kr, BaseDataValidator as $e, TextLengthErrorTitleMap as Yr, removeDataValidationUndoFactory as Xr, DataValidationManager as Gr } from "@univerjs/data-validation";
|
|
8
|
+
import { useObservable as Ke, ComponentManager as it, IZenZoneService as zr, ISidebarService as Wa, useEvent as Ha, RangeSelector as Qr, KeyCode as Kr, IDialogService as Zr, TextEditor as ka, MenuItemType as na, MenuPosition as Jr, MenuGroup as eo, getMenuHiddenObservable as to, IMenuService as ao } from "@univerjs/ui";
|
|
9
9
|
import { SheetCanvasPopManagerService as ro, SheetSkeletonManagerService as ia, IMarkSelectionService as oo, IEditorBridgeService as sa, AutoHeightController as no, HoverManagerService as io, CellAlertManagerService as so, CellAlertType as lo, IAutoFillService as uo, APPLY_TYPE as Dt, virtualizeDiscreteRanges as Xt, getAutoFillRepeatRange as co, COPY_TYPE as Ma, rangeToDiscreteRange as ho, PREDEFINED_HOOK_NAME as yt, getRepeatRange as Sa, ISheetClipboardService as mo } from "@univerjs/sheets-ui";
|
|
10
|
-
import { IRenderManagerService as Ya, DeviceInputEventType as fo, fixLineWidthByScale as Oa, Transform as po, Checkbox as go, getDocsSkeletonPageSize as
|
|
11
|
-
import { getSheetCommandTarget as Ga, SetRangeValuesCommand as la, SheetInterceptorService as za, INTERCEPTOR_POINT as Oo, SelectionManagerService as Eo, ClearSelectionAllCommand as wo, RefRangeService as Vo, handleCommonDefaultRangeChangeWithEffectRefCommands as
|
|
12
|
-
import Gt, { forwardRef as Ie, useRef as da, createElement as
|
|
10
|
+
import { IRenderManagerService as Ya, DeviceInputEventType as fo, fixLineWidthByScale as Oa, Transform as po, Checkbox as go, getDocsSkeletonPageSize as ut, Rect as Xa, DocumentViewModel as vo, DocumentSkeleton as _o, Documents as Ro, FontCache as Mo, Shape as So, getFontStyleString as Ea } from "@univerjs/engine-render";
|
|
11
|
+
import { getSheetCommandTarget as Ga, SetRangeValuesCommand as la, SheetInterceptorService as za, INTERCEPTOR_POINT as Oo, SelectionManagerService as Eo, ClearSelectionAllCommand as wo, RefRangeService as Vo, handleCommonDefaultRangeChangeWithEffectRefCommands as Co } from "@univerjs/sheets";
|
|
12
|
+
import Gt, { forwardRef as Ie, useRef as da, createElement as Le, useState as z, useMemo as zt, useEffect as Ye } from "react";
|
|
13
13
|
import { useDependency as A } from "@wendellhu/redi/react-bindings";
|
|
14
|
-
import { FormLayout as Q, RadioGroup as ua, Radio as Ue, Checkbox as Qa, Input as xe, Select as Qt, Button as Ge, RectPopup as
|
|
14
|
+
import { FormLayout as Q, RadioGroup as ua, Radio as Ue, Checkbox as Qa, Input as xe, Select as Qt, Button as Ge, RectPopup as Fo, Scrollbar as Io, DatePanel as Lo, DraggableList as To } from "@univerjs/design";
|
|
15
15
|
import { serializeRange as Ka, LexerTreeBuilder as Za, isFormulaTransformable as Ao, transformFormula as wa, isReferenceString as Ja, sequenceNodeType as bo } from "@univerjs/engine-formula";
|
|
16
16
|
import { Subject as er, filter as Do, BehaviorSubject as Va, distinctUntilChanged as yo, merge as No, Observable as Uo } from "rxjs";
|
|
17
17
|
import Pe from "dayjs";
|
|
18
18
|
import xo from "clsx";
|
|
19
19
|
import { RegisterOtherFormulaService as tr, FormulaRefRangeService as Po, SPECIAL_PASTE_FORMULA as jo } from "@univerjs/sheets-formula";
|
|
20
20
|
import { map as Bo, distinctUntilChanged as $o, switchMap as qo } from "rxjs/operators";
|
|
21
|
-
var ar = { exports: {} },
|
|
21
|
+
var ar = { exports: {} }, Tt = {};
|
|
22
22
|
/**
|
|
23
23
|
* @license React
|
|
24
24
|
* react-jsx-runtime.production.min.js
|
|
@@ -28,7 +28,7 @@ var ar = { exports: {} }, Lt = {};
|
|
|
28
28
|
* This source code is licensed under the MIT license found in the
|
|
29
29
|
* LICENSE file in the root directory of this source tree.
|
|
30
30
|
*/
|
|
31
|
-
var
|
|
31
|
+
var Wo = Gt, Ho = Symbol.for("react.element"), ko = Symbol.for("react.fragment"), Yo = Object.prototype.hasOwnProperty, Xo = Wo.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, Go = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
32
32
|
function rr(n, a, e) {
|
|
33
33
|
var t, r = {}, o = null, i = null;
|
|
34
34
|
e !== void 0 && (o = "" + e), a.key !== void 0 && (o = "" + a.key), a.ref !== void 0 && (i = a.ref);
|
|
@@ -39,13 +39,13 @@ function rr(n, a, e) {
|
|
|
39
39
|
r[t] === void 0 && (r[t] = a[t]);
|
|
40
40
|
return { $$typeof: Ho, type: n, key: o, ref: i, props: r, _owner: Xo.current };
|
|
41
41
|
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
ar.exports =
|
|
42
|
+
Tt.Fragment = ko;
|
|
43
|
+
Tt.jsx = rr;
|
|
44
|
+
Tt.jsxs = rr;
|
|
45
|
+
ar.exports = Tt;
|
|
46
46
|
var f = ar.exports;
|
|
47
47
|
function zo() {
|
|
48
|
-
const n = A(je), a = Ke(n.activeDropdown$, n.activeDropdown), e = A(
|
|
48
|
+
const n = A(je), a = Ke(n.activeDropdown$, n.activeDropdown), e = A(it);
|
|
49
49
|
if (!a)
|
|
50
50
|
return null;
|
|
51
51
|
const { location: t, componentKey: r } = a, o = e.get(r), i = `${t.unitId}-${t.subUnitId}-${t.row}-${t.col}`;
|
|
@@ -92,7 +92,7 @@ let je = class extends fe {
|
|
|
92
92
|
if (this._currentPopup && this._currentPopup.dispose(), this._zenVisible)
|
|
93
93
|
return;
|
|
94
94
|
this._activeDropdown = a, this._activeDropdown$.next(this._activeDropdown);
|
|
95
|
-
const o = this._renderManagerService.getRenderById(
|
|
95
|
+
const o = this._renderManagerService.getRenderById(Tr), i = this._canvasPopupManagerService.attachPopupToCell(
|
|
96
96
|
t,
|
|
97
97
|
r,
|
|
98
98
|
{
|
|
@@ -153,7 +153,7 @@ je = Zo([
|
|
|
153
153
|
Ae(0, E(ro)),
|
|
154
154
|
Ae(1, se),
|
|
155
155
|
Ae(2, E(ia)),
|
|
156
|
-
Ae(3, E(
|
|
156
|
+
Ae(3, E(Fe)),
|
|
157
157
|
Ae(4, zr),
|
|
158
158
|
Ae(5, Ya),
|
|
159
159
|
Ae(6, E(K))
|
|
@@ -162,7 +162,7 @@ var Jo = Object.defineProperty, en = Object.getOwnPropertyDescriptor, tn = (n, a
|
|
|
162
162
|
for (var r = t > 1 ? void 0 : t ? en(a, e) : a, o = n.length - 1, i; o >= 0; o--)
|
|
163
163
|
(i = n[o]) && (r = (t ? i(a, e, r) : i(r)) || r);
|
|
164
164
|
return t && r && Jo(a, e, r), r;
|
|
165
|
-
},
|
|
165
|
+
}, Ca = (n, a) => (e, t) => a(e, t, n);
|
|
166
166
|
let Se = class extends fe {
|
|
167
167
|
constructor(a, e) {
|
|
168
168
|
super();
|
|
@@ -205,16 +205,16 @@ let Se = class extends fe {
|
|
|
205
205
|
}
|
|
206
206
|
};
|
|
207
207
|
Se = tn([
|
|
208
|
-
|
|
209
|
-
|
|
208
|
+
Ca(0, se),
|
|
209
|
+
Ca(1, Wa)
|
|
210
210
|
], Se);
|
|
211
|
-
const nr = "DataValidationPanel",
|
|
211
|
+
const nr = "DataValidationPanel", st = {
|
|
212
212
|
id: "data-validation.operation.open-validation-panel",
|
|
213
213
|
type: we.OPERATION,
|
|
214
214
|
handler(n, a) {
|
|
215
215
|
if (!a)
|
|
216
216
|
return !1;
|
|
217
|
-
const { ruleId: e, isAdd: t } = a, r = n.get(Se), o = n.get(K), i = n.get(se), s = n.get(
|
|
217
|
+
const { ruleId: e, isAdd: t } = a, r = n.get(Se), o = n.get(K), i = n.get(se), s = n.get(Wa), l = Ga(i);
|
|
218
218
|
if (!l)
|
|
219
219
|
return !1;
|
|
220
220
|
const { unitId: d, subUnitId: u } = l, c = e ? o.getRuleById(d, u, e) : void 0;
|
|
@@ -242,7 +242,7 @@ const nr = "DataValidationPanel", it = {
|
|
|
242
242
|
type: we.OPERATION,
|
|
243
243
|
handler(n) {
|
|
244
244
|
const a = n.get(J), e = n.get(Se);
|
|
245
|
-
return e.open(), e.isOpen ? a.executeCommand(ir.id) : a.executeCommand(
|
|
245
|
+
return e.open(), e.isOpen ? a.executeCommand(ir.id) : a.executeCommand(st.id), !0;
|
|
246
246
|
}
|
|
247
247
|
}, ca = {
|
|
248
248
|
type: we.OPERATION,
|
|
@@ -396,7 +396,7 @@ const sr = {
|
|
|
396
396
|
unitId: s,
|
|
397
397
|
subUnitId: l
|
|
398
398
|
};
|
|
399
|
-
return await i.executeCommand(ha.id, d) ? (i.executeCommand(
|
|
399
|
+
return await i.executeCommand(ha.id, d) ? (i.executeCommand(st.id, {
|
|
400
400
|
ruleId: o.uid,
|
|
401
401
|
isAdd: !0
|
|
402
402
|
}), !0) : !1;
|
|
@@ -419,12 +419,12 @@ var ne = function() {
|
|
|
419
419
|
for (var r = 0, t = Object.getOwnPropertySymbols(n); r < t.length; r++)
|
|
420
420
|
a.indexOf(t[r]) < 0 && Object.prototype.propertyIsEnumerable.call(n, t[r]) && (e[t[r]] = n[t[r]]);
|
|
421
421
|
return e;
|
|
422
|
-
},
|
|
422
|
+
}, Te = Ie(function(n, a) {
|
|
423
423
|
var e = n.icon, t = n.id, r = n.className, o = n.extend, i = on(n, ["icon", "id", "className", "extend"]), s = "univerjs-icon univerjs-icon-".concat(t, " ").concat(r || "").trim(), l = da("_".concat(ln()));
|
|
424
424
|
return dr(e, "".concat(t), { defIds: e.defIds, idSuffix: l.current }, ne({ ref: a, className: s }, i), o);
|
|
425
425
|
});
|
|
426
426
|
function dr(n, a, e, t, r) {
|
|
427
|
-
return
|
|
427
|
+
return Le(n.tag, ne(ne({ key: a }, nn(n, e, r)), t), (sn(n, e).children || []).map(function(o, i) {
|
|
428
428
|
return dr(o, "".concat(a, "-").concat(n.tag, "-").concat(i), e, void 0, r);
|
|
429
429
|
}));
|
|
430
430
|
}
|
|
@@ -446,9 +446,9 @@ function sn(n, a) {
|
|
|
446
446
|
function ln() {
|
|
447
447
|
return Math.random().toString(36).substring(2, 8);
|
|
448
448
|
}
|
|
449
|
-
|
|
450
|
-
var dn = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M14.
|
|
451
|
-
return Te
|
|
449
|
+
Te.displayName = "UniverIcon";
|
|
450
|
+
var dn = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M14.1544 3.75557C14.3887 3.98988 14.3887 4.36978 14.1544 4.6041L6.51409 12.2444C6.40157 12.3569 6.24896 12.4201 6.08983 12.4201C5.9307 12.4201 5.77808 12.3569 5.66556 12.2444L1.84541 8.42425C1.6111 8.18993 1.6111 7.81003 1.84541 7.57572C2.07973 7.34141 2.45963 7.34141 2.69394 7.57572L6.08983 10.9716L13.3059 3.75557C13.5402 3.52126 13.9201 3.52126 14.1544 3.75557Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, ur = Ie(function(n, a) {
|
|
451
|
+
return Le(Te, Object.assign({}, n, {
|
|
452
452
|
id: "check-mark-single",
|
|
453
453
|
ref: a,
|
|
454
454
|
icon: dn
|
|
@@ -456,16 +456,16 @@ var dn = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em"
|
|
|
456
456
|
});
|
|
457
457
|
ur.displayName = "CheckMarkSingle";
|
|
458
458
|
const un = ur;
|
|
459
|
-
var cn = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 17
|
|
460
|
-
return Te
|
|
459
|
+
var cn = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 17 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M1.4917 3.07803C1.4917 2.19437 2.20804 1.47803 3.0917 1.47803H5.6917C6.57536 1.47803 7.2917 2.19437 7.2917 3.07803V5.67803C7.2917 6.56168 6.57535 7.27803 5.6917 7.27803H3.0917C2.20804 7.27803 1.4917 6.56168 1.4917 5.67803V3.07803ZM3.0917 2.67803C2.87078 2.67803 2.6917 2.85711 2.6917 3.07803V5.67803C2.6917 5.89894 2.87079 6.07803 3.0917 6.07803H5.6917C5.91261 6.07803 6.0917 5.89894 6.0917 5.67803V3.07803C6.0917 2.85711 5.91261 2.67803 5.6917 2.67803H3.0917Z", fillRule: "evenodd", clipRule: "evenodd" } }, { tag: "path", attrs: { fill: "currentColor", d: "M14.6175 2.45279C14.8518 2.68711 14.8518 3.06701 14.6175 3.30132L11.6151 6.30365C11.3957 6.52307 11.0451 6.53897 10.8067 6.34031L8.80915 4.67566C8.55458 4.46352 8.52019 4.08518 8.73233 3.83062 8.94447 3.57605 9.32281 3.54166 9.57737 3.7538L11.154 5.06767 13.769 2.45278C14.0033 2.21847 14.3832 2.21848 14.6175 2.45279zM14.1175 9.19746C14.3518 9.43178 14.3518 9.81168 14.1175 10.046L12.5418 11.6217 14.1175 13.1975C14.3518 13.4318 14.3518 13.8117 14.1175 14.046 13.8832 14.2803 13.5033 14.2803 13.269 14.046L11.6933 12.4703 10.1175 14.046C9.88321 14.2803 9.50331 14.2803 9.269 14.046 9.03468 13.8117 9.03468 13.4318 9.269 13.1975L10.8447 11.6217 9.269 10.046C9.03468 9.81168 9.03468 9.43178 9.269 9.19746 9.50331 8.96315 9.88321 8.96315 10.1175 9.19746L11.6933 10.7732 13.269 9.19746C13.5033 8.96315 13.8832 8.96315 14.1175 9.19746z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M3.0917 8.72168C2.20804 8.72168 1.4917 9.43802 1.4917 10.3217V12.9217C1.4917 13.8053 2.20804 14.5217 3.0917 14.5217H5.6917C6.57535 14.5217 7.2917 13.8053 7.2917 12.9217V10.3217C7.2917 9.43802 6.57536 8.72168 5.6917 8.72168H3.0917ZM2.6917 10.3217C2.6917 10.1008 2.87078 9.92168 3.0917 9.92168H5.6917C5.91261 9.92168 6.0917 10.1008 6.0917 10.3217V12.9217C6.0917 13.1426 5.91261 13.3217 5.6917 13.3217H3.0917C2.87079 13.3217 2.6917 13.1426 2.6917 12.9217V10.3217Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, cr = Ie(function(n, a) {
|
|
460
|
+
return Le(Te, Object.assign({}, n, {
|
|
461
461
|
id: "data-validation-single",
|
|
462
462
|
ref: a,
|
|
463
463
|
icon: cn
|
|
464
464
|
}));
|
|
465
465
|
});
|
|
466
466
|
cr.displayName = "DataValidationSingle";
|
|
467
|
-
var hn = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "
|
|
468
|
-
return Te
|
|
467
|
+
var hn = { tag: "svg", attrs: { 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.866699 5.9313.866699H10.069C10.4004.866699 10.669 1.13533 10.669 1.4667 10.669 1.79807 10.4004 2.0667 10.069 2.0667H5.9313C5.59993 2.0667 5.3313 1.79807 5.3313 1.4667zM1.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.64443 14.8999 3.9758 14.6312 4.24443 14.2999 4.24443H1.69985C1.36848 4.24443 1.09985 3.9758 1.09985 3.64443zM6.12398 8.30171C6.35829 8.0674 6.73819 8.0674 6.97251 8.30171L8.00007 9.32928 9.02764 8.30171C9.26195 8.0674 9.64185 8.0674 9.87617 8.30171 10.1105 8.53603 10.1105 8.91593 9.87617 9.15024L8.8486 10.1778 9.87617 11.2054C10.1105 11.4397 10.1105 11.8196 9.87617 12.0539 9.64185 12.2882 9.26195 12.2882 9.02764 12.0539L8.00007 11.0263 6.97251 12.0539C6.73819 12.2882 6.35829 12.2882 6.12398 12.0539 5.88966 11.8196 5.88966 11.4397 6.12398 11.2054L7.15154 10.1778 6.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" } }] }, hr = Ie(function(n, a) {
|
|
468
|
+
return Le(Te, Object.assign({}, n, {
|
|
469
469
|
id: "delete-single",
|
|
470
470
|
ref: a,
|
|
471
471
|
icon: hn
|
|
@@ -473,8 +473,8 @@ var hn = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em"
|
|
|
473
473
|
});
|
|
474
474
|
hr.displayName = "DeleteSingle";
|
|
475
475
|
const mr = hr;
|
|
476
|
-
var mn = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "
|
|
477
|
-
return Te
|
|
476
|
+
var mn = { tag: "svg", attrs: { 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" } }] }, fr = Ie(function(n, a) {
|
|
477
|
+
return Le(Te, Object.assign({}, n, {
|
|
478
478
|
id: "increase-single",
|
|
479
479
|
ref: a,
|
|
480
480
|
icon: mn
|
|
@@ -482,8 +482,8 @@ var mn = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em"
|
|
|
482
482
|
});
|
|
483
483
|
fr.displayName = "IncreaseSingle";
|
|
484
484
|
const fn = fr;
|
|
485
|
-
var pn = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "
|
|
486
|
-
return Te
|
|
485
|
+
var pn = { tag: "svg", attrs: { 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" } }] }, pr = Ie(function(n, a) {
|
|
486
|
+
return Le(Te, Object.assign({}, n, {
|
|
487
487
|
id: "more-down-single",
|
|
488
488
|
ref: a,
|
|
489
489
|
icon: pn
|
|
@@ -491,8 +491,8 @@ var pn = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em"
|
|
|
491
491
|
});
|
|
492
492
|
pr.displayName = "MoreDownSingle";
|
|
493
493
|
const gn = pr;
|
|
494
|
-
var vn = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "
|
|
495
|
-
return Te
|
|
494
|
+
var vn = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M4.64645 9.85355C4.45118 9.65829 4.45118 9.34171 4.64645 9.14645L7.64645 6.14645C7.84171 5.95118 8.15829 5.95118 8.35355 6.14645L11.3536 9.14645C11.5488 9.34171 11.5488 9.65829 11.3536 9.85355C11.1583 10.0488 10.8417 10.0488 10.6464 9.85355L8 7.20711L5.35355 9.85355C5.15829 10.0488 4.84171 10.0488 4.64645 9.85355Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, gr = Ie(function(n, a) {
|
|
495
|
+
return Le(Te, Object.assign({}, n, {
|
|
496
496
|
id: "more-up-single",
|
|
497
497
|
ref: a,
|
|
498
498
|
icon: vn
|
|
@@ -501,7 +501,7 @@ var vn = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em"
|
|
|
501
501
|
gr.displayName = "MoreUpSingle";
|
|
502
502
|
const _n = gr;
|
|
503
503
|
var Rn = { 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" } }] }] }, vr = Ie(function(n, a) {
|
|
504
|
-
return Te
|
|
504
|
+
return Le(Te, Object.assign({}, n, {
|
|
505
505
|
id: "sequence-single",
|
|
506
506
|
ref: a,
|
|
507
507
|
icon: Rn
|
|
@@ -514,7 +514,7 @@ const Mn = vr, Sn = "univer-data-validation-options-button", On = "univer-data-v
|
|
|
514
514
|
};
|
|
515
515
|
function En(n) {
|
|
516
516
|
var d;
|
|
517
|
-
const a = A(de), e = A(
|
|
517
|
+
const a = A(de), e = A(it), { value: t, onChange: r, extraComponent: o } = n, [i, s] = z(!1), l = o ? e.get(o) : null;
|
|
518
518
|
return /* @__PURE__ */ f.jsxs(f.Fragment, { children: [
|
|
519
519
|
/* @__PURE__ */ f.jsxs("div", { className: Nt.dataValidationOptionsButton, onClick: () => s(!i), children: [
|
|
520
520
|
a.t("dataValidation.panel.options"),
|
|
@@ -560,11 +560,11 @@ function En(n) {
|
|
|
560
560
|
] })
|
|
561
561
|
] });
|
|
562
562
|
}
|
|
563
|
-
const wn = "univer-data-validation-detail-form-item", Vn = "univer-data-validation-detail-buttons",
|
|
563
|
+
const wn = "univer-data-validation-detail-form-item", Vn = "univer-data-validation-detail-buttons", Cn = "univer-data-validation-detail-button", qe = {
|
|
564
564
|
dataValidationDetailFormItem: wn,
|
|
565
565
|
dataValidationDetailButtons: Vn,
|
|
566
|
-
dataValidationDetailButton:
|
|
567
|
-
},
|
|
566
|
+
dataValidationDetailButton: Cn
|
|
567
|
+
}, Fn = (n) => Nr(
|
|
568
568
|
async (a, e, t, r) => {
|
|
569
569
|
const o = await n.executeCommand(a, e, t);
|
|
570
570
|
r == null || r(o);
|
|
@@ -572,35 +572,35 @@ const wn = "univer-data-validation-detail-form-item", Vn = "univer-data-validati
|
|
|
572
572
|
275
|
|
573
573
|
);
|
|
574
574
|
function In() {
|
|
575
|
-
const [n, a] = z(0), e = A(Se), t = Ke(e.activeRule$, e.activeRule), { unitId: r, subUnitId: o, rule: i } = t || {}, s = i.uid, l = A(
|
|
575
|
+
const [n, a] = z(0), e = A(Se), t = Ke(e.activeRule$, e.activeRule), { unitId: r, subUnitId: o, rule: i } = t || {}, s = i.uid, l = A(Fe), d = A(it), u = A(J), c = A(K), h = A(de), [m, p] = z(i), g = l.getValidatorItem(m.type), [_, M] = z(!1), O = l.getValidatorsByScope(qr.SHEET), [S, C] = z(() => m.ranges.map((V) => ({ unitId: "", sheetId: "", range: V }))), F = zt(() => Fn(u), [u]);
|
|
576
576
|
if (Ye(() => {
|
|
577
577
|
u.onCommandExecuted((V) => {
|
|
578
578
|
(V.id === Ar.id || V.id === br.id) && setTimeout(() => {
|
|
579
|
-
const
|
|
580
|
-
a((G) => G + 1),
|
|
579
|
+
const L = c.getRuleById(r, o, s);
|
|
580
|
+
a((G) => G + 1), L && (p(L), C(L.ranges.map((G) => ({ unitId: "", sheetId: "", range: G }))));
|
|
581
581
|
}, 20);
|
|
582
582
|
});
|
|
583
583
|
}, [u, c, s, o, r]), !g)
|
|
584
584
|
return null;
|
|
585
|
-
const I = g.operators,
|
|
585
|
+
const I = g.operators, B = g.operatorNames, b = m.operator ? Wr.includes(m.operator) : !1, q = () => {
|
|
586
586
|
g.validatorFormula(m).success ? e.setActiveRule(null) : M(!0);
|
|
587
587
|
}, D = Ha((V) => {
|
|
588
588
|
if (Dr(V, S))
|
|
589
589
|
return;
|
|
590
|
-
|
|
591
|
-
const
|
|
590
|
+
C(V);
|
|
591
|
+
const L = V.filter((x) => (!x.unitId || x.unitId === r) && (!x.sheetId || x.sheetId === o)).map((x) => x.range);
|
|
592
592
|
if (p({
|
|
593
593
|
...m,
|
|
594
|
-
ranges:
|
|
595
|
-
}),
|
|
594
|
+
ranges: L
|
|
595
|
+
}), L.length === 0)
|
|
596
596
|
return;
|
|
597
597
|
const G = {
|
|
598
598
|
unitId: r,
|
|
599
599
|
subUnitId: o,
|
|
600
600
|
ruleId: s,
|
|
601
|
-
ranges:
|
|
601
|
+
ranges: L
|
|
602
602
|
};
|
|
603
|
-
|
|
603
|
+
F(sr.id, G);
|
|
604
604
|
}), y = (V) => {
|
|
605
605
|
if (ga(V, _a(m)))
|
|
606
606
|
return;
|
|
@@ -608,18 +608,18 @@ function In() {
|
|
|
608
608
|
...m,
|
|
609
609
|
...V
|
|
610
610
|
});
|
|
611
|
-
const
|
|
611
|
+
const L = {
|
|
612
612
|
unitId: r,
|
|
613
613
|
subUnitId: o,
|
|
614
614
|
ruleId: s,
|
|
615
615
|
setting: V
|
|
616
616
|
};
|
|
617
|
-
|
|
617
|
+
F(
|
|
618
618
|
Ra.id,
|
|
619
|
-
|
|
619
|
+
L,
|
|
620
620
|
void 0
|
|
621
621
|
);
|
|
622
|
-
},
|
|
622
|
+
}, W = async () => {
|
|
623
623
|
await u.executeCommand(qa.id, {
|
|
624
624
|
ruleId: s,
|
|
625
625
|
unitId: r,
|
|
@@ -632,10 +632,10 @@ function In() {
|
|
|
632
632
|
formula2: m.formula2,
|
|
633
633
|
allowBlank: m.allowBlank
|
|
634
634
|
}, H = (V) => {
|
|
635
|
-
const
|
|
636
|
-
if (!
|
|
635
|
+
const L = l.getValidatorItem(V);
|
|
636
|
+
if (!L)
|
|
637
637
|
return;
|
|
638
|
-
const G =
|
|
638
|
+
const G = L.operators, x = c.getRuleById(r, o, s), w = V === (x == null ? void 0 : x.type) ? {
|
|
639
639
|
...x
|
|
640
640
|
} : {
|
|
641
641
|
...m,
|
|
@@ -654,7 +654,7 @@ function In() {
|
|
|
654
654
|
ga(V, va(m)) || (p({
|
|
655
655
|
...m,
|
|
656
656
|
...V
|
|
657
|
-
}),
|
|
657
|
+
}), F(
|
|
658
658
|
Hr.id,
|
|
659
659
|
{
|
|
660
660
|
unitId: r,
|
|
@@ -674,7 +674,7 @@ function In() {
|
|
|
674
674
|
openForSheetUnitId: r,
|
|
675
675
|
openForSheetSubUnitId: o,
|
|
676
676
|
onChange: (V) => {
|
|
677
|
-
V.some((
|
|
677
|
+
V.some((L) => !yr(L.range) || L.range.endColumn < L.range.startColumn || L.range.endRow < L.range.startRow) || D(V);
|
|
678
678
|
}
|
|
679
679
|
},
|
|
680
680
|
n
|
|
@@ -694,9 +694,9 @@ function In() {
|
|
|
694
694
|
I != null && I.length ? /* @__PURE__ */ f.jsx(Q, { label: h.t("dataValidation.panel.operator"), children: /* @__PURE__ */ f.jsx(
|
|
695
695
|
Qt,
|
|
696
696
|
{
|
|
697
|
-
options: I.map((V,
|
|
697
|
+
options: I.map((V, L) => ({
|
|
698
698
|
value: `${V}`,
|
|
699
|
-
label:
|
|
699
|
+
label: B[L]
|
|
700
700
|
})),
|
|
701
701
|
value: `${m.operator}`,
|
|
702
702
|
onChange: (V) => {
|
|
@@ -732,18 +732,18 @@ function In() {
|
|
|
732
732
|
) : null,
|
|
733
733
|
/* @__PURE__ */ f.jsx(En, { value: pe, onChange: X, extraComponent: g.optionsInput }),
|
|
734
734
|
/* @__PURE__ */ f.jsxs("div", { className: qe.dataValidationDetailButtons, children: [
|
|
735
|
-
/* @__PURE__ */ f.jsx(Ge, { className: qe.dataValidationDetailButton, onClick:
|
|
735
|
+
/* @__PURE__ */ f.jsx(Ge, { className: qe.dataValidationDetailButton, onClick: W, children: h.t("dataValidation.panel.removeRule") }),
|
|
736
736
|
/* @__PURE__ */ f.jsx(Ge, { className: qe.dataValidationDetailButton, type: "primary", onClick: q, children: h.t("dataValidation.panel.done") })
|
|
737
737
|
] })
|
|
738
738
|
] });
|
|
739
739
|
}
|
|
740
|
-
const
|
|
741
|
-
dataValidationItemContainer:
|
|
742
|
-
dataValidationItemTitle:
|
|
740
|
+
const Ln = "univer-data-validation-item-container", Tn = "univer-data-validation-item-title", An = "univer-data-validation-item-content", bn = "univer-data-validation-item-icon", ct = {
|
|
741
|
+
dataValidationItemContainer: Ln,
|
|
742
|
+
dataValidationItemTitle: Tn,
|
|
743
743
|
dataValidationItemContent: An,
|
|
744
744
|
dataValidationItemIcon: bn
|
|
745
745
|
}, Dn = (n) => {
|
|
746
|
-
const { rule: a, onClick: e, unitId: t, subUnitId: r } = n, o = A(
|
|
746
|
+
const { rule: a, onClick: e, unitId: t, subUnitId: r } = n, o = A(Fe), i = A(J), s = A(oo), l = o.getValidatorItem(a.type), d = da(), [u, c] = z(!1), h = (m) => {
|
|
747
747
|
i.executeCommand(qa.id, {
|
|
748
748
|
ruleId: a.uid,
|
|
749
749
|
unitId: t,
|
|
@@ -758,7 +758,7 @@ const Tn = "univer-data-validation-item-container", Ln = "univer-data-validation
|
|
|
758
758
|
}, [s]), /* @__PURE__ */ f.jsxs(
|
|
759
759
|
"div",
|
|
760
760
|
{
|
|
761
|
-
className:
|
|
761
|
+
className: ct.dataValidationItemContainer,
|
|
762
762
|
onClick: e,
|
|
763
763
|
onMouseEnter: () => {
|
|
764
764
|
c(!0), d.current = a.ranges.map((m) => s.addShape({
|
|
@@ -789,9 +789,9 @@ const Tn = "univer-data-validation-item-container", Ln = "univer-data-validation
|
|
|
789
789
|
}), d.current = void 0;
|
|
790
790
|
},
|
|
791
791
|
children: [
|
|
792
|
-
/* @__PURE__ */ f.jsx("div", { className:
|
|
793
|
-
/* @__PURE__ */ f.jsx("div", { className:
|
|
794
|
-
u ? /* @__PURE__ */ f.jsx("div", { className:
|
|
792
|
+
/* @__PURE__ */ f.jsx("div", { className: ct.dataValidationItemTitle, children: l == null ? void 0 : l.generateRuleName(a) }),
|
|
793
|
+
/* @__PURE__ */ f.jsx("div", { className: ct.dataValidationItemContent, children: a.ranges.map((m) => Ka(m)).join(",") }),
|
|
794
|
+
u ? /* @__PURE__ */ f.jsx("div", { className: ct.dataValidationItemIcon, onClick: h, children: /* @__PURE__ */ f.jsx(mr, {}) }) : null
|
|
795
795
|
]
|
|
796
796
|
}
|
|
797
797
|
);
|
|
@@ -831,7 +831,7 @@ function xn(n) {
|
|
|
831
831
|
rule: g
|
|
832
832
|
});
|
|
833
833
|
}, p = () => {
|
|
834
|
-
e.executeCommand(
|
|
834
|
+
e.executeCommand(kr.id, {
|
|
835
835
|
unitId: u,
|
|
836
836
|
subUnitId: c
|
|
837
837
|
});
|
|
@@ -876,20 +876,20 @@ function oe(n) {
|
|
|
876
876
|
function _r(n) {
|
|
877
877
|
return n.filter(Boolean).join(",");
|
|
878
878
|
}
|
|
879
|
-
function
|
|
879
|
+
function ke(n) {
|
|
880
880
|
return n.split(",").filter(Boolean);
|
|
881
881
|
}
|
|
882
882
|
function jn(n) {
|
|
883
883
|
const a = oe(n);
|
|
884
884
|
return a == null ? "" : a.toString();
|
|
885
885
|
}
|
|
886
|
-
const ma = "SHEET_DATA_VALIDATION_PLUGIN", Ne = "#ECECEC", Bn = "univer-dv-list-dropdown", $n = "univer-dv-list-dropdown-title", qn = "univer-dv-list-dropdown-list",
|
|
886
|
+
const ma = "SHEET_DATA_VALIDATION_PLUGIN", Ne = "#ECECEC", Bn = "univer-dv-list-dropdown", $n = "univer-dv-list-dropdown-title", qn = "univer-dv-list-dropdown-list", Wn = "univer-dv-list-dropdown-list-container", Hn = "univer-dv-list-dropdown-selected-icon", kn = "univer-dv-list-dropdown-item-container", Yn = "univer-dv-list-dropdown-item", Xn = "univer-dv-list-dropdown-split", Gn = "univer-dv-list-dropdown-edit", ve = {
|
|
887
887
|
dvListDropdown: Bn,
|
|
888
888
|
dvListDropdownTitle: $n,
|
|
889
889
|
dvListDropdownList: qn,
|
|
890
|
-
dvListDropdownListContainer:
|
|
890
|
+
dvListDropdownListContainer: Wn,
|
|
891
891
|
dvListDropdownSelectedIcon: Hn,
|
|
892
|
-
dvListDropdownItemContainer:
|
|
892
|
+
dvListDropdownItemContainer: kn,
|
|
893
893
|
dvListDropdownItem: Yn,
|
|
894
894
|
dvListDropdownSplit: Xn,
|
|
895
895
|
dvListDropdownEdit: Gn
|
|
@@ -917,14 +917,14 @@ const ma = "SHEET_DATA_VALIDATION_PLUGIN", Ne = "#ECECEC", Bn = "univer-dv-list-
|
|
|
917
917
|
};
|
|
918
918
|
function Qn(n) {
|
|
919
919
|
var b, q;
|
|
920
|
-
const { location: a, hideFn: e } = n, { worksheet: t, row: r, col: o, unitId: i, subUnitId: s } = a, l = A(J), d = A(de), [u, c] = z(""), h = A(sa), m =
|
|
920
|
+
const { location: a, hideFn: e } = n, { worksheet: t, row: r, col: o, unitId: i, subUnitId: s } = a, l = A(J), d = A(de), [u, c] = z(""), h = A(sa), m = Fo.useContext(), p = m.right - m.left;
|
|
921
921
|
if (!t)
|
|
922
922
|
return null;
|
|
923
923
|
const g = t.getCell(r, o), _ = (b = g == null ? void 0 : g.dataValidation) == null ? void 0 : b.rule, M = (q = g == null ? void 0 : g.dataValidation) == null ? void 0 : q.validator, O = (_ == null ? void 0 : _.renderMode) === ie.CUSTOM || (_ == null ? void 0 : _.renderMode) === void 0;
|
|
924
924
|
if (!g || !_ || !M)
|
|
925
925
|
return;
|
|
926
|
-
const S = _.type === Y.LIST_MULTIPLE,
|
|
927
|
-
l.executeCommand(
|
|
926
|
+
const S = _.type === Y.LIST_MULTIPLE, C = M.getListWithColor(_, i, s), F = u || jn(g), I = ke(F), B = () => {
|
|
927
|
+
l.executeCommand(st.id, {
|
|
928
928
|
ruleId: _.uid
|
|
929
929
|
}), e();
|
|
930
930
|
};
|
|
@@ -936,7 +936,7 @@ function Qn(n) {
|
|
|
936
936
|
value: I,
|
|
937
937
|
multiple: S,
|
|
938
938
|
onChange: (D) => {
|
|
939
|
-
const y = _r(D),
|
|
939
|
+
const y = _r(D), W = {
|
|
940
940
|
unitId: i,
|
|
941
941
|
subUnitId: s,
|
|
942
942
|
range: {
|
|
@@ -956,14 +956,14 @@ function Qn(n) {
|
|
|
956
956
|
visible: !1,
|
|
957
957
|
keycode: Kr.ESC,
|
|
958
958
|
eventType: fo.Keyboard
|
|
959
|
-
}), l.executeCommand(la.id,
|
|
959
|
+
}), l.executeCommand(la.id, W), c(y), S || e();
|
|
960
960
|
},
|
|
961
|
-
options:
|
|
961
|
+
options: C.map((D) => ({
|
|
962
962
|
label: D.label,
|
|
963
963
|
value: D.label,
|
|
964
964
|
color: O ? D.color : "transparent"
|
|
965
965
|
})),
|
|
966
|
-
onEdit:
|
|
966
|
+
onEdit: B
|
|
967
967
|
}
|
|
968
968
|
);
|
|
969
969
|
}
|
|
@@ -1051,10 +1051,10 @@ let tt = class extends fe {
|
|
|
1051
1051
|
}
|
|
1052
1052
|
};
|
|
1053
1053
|
tt = Jn([
|
|
1054
|
-
Ve(
|
|
1054
|
+
Ve(Ce.Ready, tt),
|
|
1055
1055
|
Je(0, sa),
|
|
1056
1056
|
Je(1, E(K)),
|
|
1057
|
-
Je(2, E(
|
|
1057
|
+
Je(2, E(Fe)),
|
|
1058
1058
|
Je(3, Zr),
|
|
1059
1059
|
Je(4, E(de))
|
|
1060
1060
|
], tt);
|
|
@@ -1062,20 +1062,20 @@ const ei = "univer-dv-date-dropdown", ti = {
|
|
|
1062
1062
|
dvDateDropdown: ei
|
|
1063
1063
|
};
|
|
1064
1064
|
function ai(n) {
|
|
1065
|
-
var O, S,
|
|
1065
|
+
var O, S, C;
|
|
1066
1066
|
const { location: a, hideFn: e } = n, { worksheet: t, row: r, col: o, unitId: i, subUnitId: s } = a, l = A(J), d = A(tt), [u, c] = z();
|
|
1067
1067
|
if (!t)
|
|
1068
1068
|
return null;
|
|
1069
1069
|
const h = t.getCell(r, o), m = (O = h == null ? void 0 : h.dataValidation) == null ? void 0 : O.rule, p = (S = h == null ? void 0 : h.dataValidation) == null ? void 0 : S.validator;
|
|
1070
1070
|
if (!h || !m || !p)
|
|
1071
1071
|
return;
|
|
1072
|
-
const g = oe(h), _ = (
|
|
1072
|
+
const g = oe(h), _ = (C = p.transformDate(g)) != null ? C : Pe(), M = _.isValid() ? _ : Pe();
|
|
1073
1073
|
return /* @__PURE__ */ f.jsx("div", { className: ti.dvDateDropdown, children: /* @__PURE__ */ f.jsx(
|
|
1074
|
-
|
|
1074
|
+
Lo,
|
|
1075
1075
|
{
|
|
1076
1076
|
pickerValue: u != null ? u : M,
|
|
1077
|
-
onSelect: async (
|
|
1078
|
-
const I =
|
|
1077
|
+
onSelect: async (F) => {
|
|
1078
|
+
const I = F.format("YYYY/MM/DD");
|
|
1079
1079
|
m.errorStyle !== et.STOP || await p.validator({
|
|
1080
1080
|
value: I,
|
|
1081
1081
|
unitId: i,
|
|
@@ -1099,8 +1099,8 @@ function ai(n) {
|
|
|
1099
1099
|
}
|
|
1100
1100
|
}) : d.showReject(p.getRuleFinalError(m)), e();
|
|
1101
1101
|
},
|
|
1102
|
-
onPanelChange: (
|
|
1103
|
-
c(
|
|
1102
|
+
onPanelChange: (F) => {
|
|
1103
|
+
c(F);
|
|
1104
1104
|
}
|
|
1105
1105
|
}
|
|
1106
1106
|
) });
|
|
@@ -1110,7 +1110,7 @@ function ri(n) {
|
|
|
1110
1110
|
var l;
|
|
1111
1111
|
const { unitId: a, subUnitId: e, value: t, onChange: r, showError: o, validResult: i } = n, s = o ? i == null ? void 0 : i.formula1 : "";
|
|
1112
1112
|
return /* @__PURE__ */ f.jsx(Q, { error: s, children: /* @__PURE__ */ f.jsx(
|
|
1113
|
-
|
|
1113
|
+
ka,
|
|
1114
1114
|
{
|
|
1115
1115
|
value: (l = t == null ? void 0 : t.formula1) != null ? l : "",
|
|
1116
1116
|
id: oa(`dataValidation-custom-formula-${a}-${e}`),
|
|
@@ -1232,7 +1232,7 @@ const oi = "univer-data-validation-formula", ni = "univer-data-validation-formul
|
|
|
1232
1232
|
) })
|
|
1233
1233
|
}
|
|
1234
1234
|
);
|
|
1235
|
-
},
|
|
1235
|
+
}, Fa = (n) => {
|
|
1236
1236
|
const { item: a, commonProps: e, style: t } = n, { onItemChange: r, onItemDelete: o } = e;
|
|
1237
1237
|
return /* @__PURE__ */ f.jsxs("div", { className: ae.dataValidationFormulaListItem, style: t, children: [
|
|
1238
1238
|
a.isRef ? null : /* @__PURE__ */ f.jsx("div", { className: xo(ae.dataValidationFormulaListItemDrag, "draggableHandle"), children: /* @__PURE__ */ f.jsx(Mn, {}) }),
|
|
@@ -1260,43 +1260,43 @@ const oi = "univer-data-validation-formula", ni = "univer-data-validation-formul
|
|
|
1260
1260
|
};
|
|
1261
1261
|
function gi(n) {
|
|
1262
1262
|
const { value: a, onChange: e = () => {
|
|
1263
|
-
}, unitId: t, subUnitId: r, validResult: o, showError: i, ruleId: s } = n, { formula1: l = "", formula2: d = "" } = a || {}, u = da(null), [c, h] = z(() =>
|
|
1263
|
+
}, unitId: t, subUnitId: r, validResult: o, showError: i, ruleId: s } = n, { formula1: l = "", formula2: d = "" } = a || {}, u = da(null), [c, h] = z(() => T(l) ? "1" : "0"), [m, p] = z(c === "1" ? l : "="), [g, _] = z(c === "1" ? l : "="), M = A(de), O = A(Fe), S = A(K), [C, F] = z(() => d.split(",")), I = O.getValidatorItem(Y.LIST), [B, b] = z([]), [q, D] = z(""), y = i ? o == null ? void 0 : o.formula1 : "", W = Ke(S.ruleChange$), N = Ha(e);
|
|
1264
1264
|
Ye(() => {
|
|
1265
1265
|
(async () => {
|
|
1266
1266
|
await new Promise((P) => {
|
|
1267
1267
|
setTimeout(() => P(!0), 100);
|
|
1268
1268
|
});
|
|
1269
|
-
const w = S.getRuleById(t, r, s),
|
|
1270
|
-
if (
|
|
1269
|
+
const w = S.getRuleById(t, r, s), $ = w == null ? void 0 : w.formula1;
|
|
1270
|
+
if (T($) && I && w) {
|
|
1271
1271
|
const P = await I.getListAsync(w, t, r);
|
|
1272
1272
|
b(P);
|
|
1273
1273
|
}
|
|
1274
1274
|
})();
|
|
1275
|
-
}, [S,
|
|
1276
|
-
|
|
1275
|
+
}, [S, W, I, s, r, t]), Ye(() => {
|
|
1276
|
+
T(l) && l !== g && (p(l), _(g));
|
|
1277
1277
|
}, [g, l]);
|
|
1278
1278
|
const [H, U] = z(() => {
|
|
1279
|
-
const w = c !== "1" ?
|
|
1279
|
+
const w = c !== "1" ? ke(l) : [], $ = d.split(",");
|
|
1280
1280
|
return w.map((P, ee) => ({
|
|
1281
1281
|
label: P,
|
|
1282
|
-
color:
|
|
1282
|
+
color: $[ee] || Ne,
|
|
1283
1283
|
isRef: !1,
|
|
1284
|
-
id:
|
|
1284
|
+
id: j.generateRandomId(4)
|
|
1285
1285
|
}));
|
|
1286
|
-
}), Z = (w,
|
|
1286
|
+
}), Z = (w, $, P) => {
|
|
1287
1287
|
const ee = H.find((ge) => ge.id === w);
|
|
1288
|
-
ee && (ee.label =
|
|
1288
|
+
ee && (ee.label = $, ee.color = P, U([...H]));
|
|
1289
1289
|
}, pe = (w) => {
|
|
1290
|
-
const
|
|
1291
|
-
|
|
1292
|
-
}, X = d.split(","), V = zt(() =>
|
|
1290
|
+
const $ = H.findIndex((P) => P.id === w);
|
|
1291
|
+
$ !== -1 && (H.splice($, 1), U([...H]));
|
|
1292
|
+
}, X = d.split(","), V = zt(() => B.map((w, $) => ({
|
|
1293
1293
|
label: w,
|
|
1294
|
-
color: X[
|
|
1295
|
-
id: `${
|
|
1294
|
+
color: X[$] || Ne,
|
|
1295
|
+
id: `${$}`,
|
|
1296
1296
|
isRef: !0
|
|
1297
|
-
})), [X,
|
|
1298
|
-
const ee = [...
|
|
1299
|
-
ee[+w] = P,
|
|
1297
|
+
})), [X, B]), L = (w, $, P) => {
|
|
1298
|
+
const ee = [...C];
|
|
1299
|
+
ee[+w] = P, F(ee), N({
|
|
1300
1300
|
formula1: l,
|
|
1301
1301
|
formula2: ee.join(",")
|
|
1302
1302
|
});
|
|
@@ -1307,32 +1307,32 @@ function gi(n) {
|
|
|
1307
1307
|
label: "",
|
|
1308
1308
|
color: Ne,
|
|
1309
1309
|
isRef: !1,
|
|
1310
|
-
id:
|
|
1310
|
+
id: j.generateRandomId(4)
|
|
1311
1311
|
}
|
|
1312
1312
|
]);
|
|
1313
1313
|
};
|
|
1314
1314
|
Ye(() => {
|
|
1315
1315
|
if (c === "1")
|
|
1316
1316
|
return;
|
|
1317
|
-
const w = /* @__PURE__ */ new Set(),
|
|
1317
|
+
const w = /* @__PURE__ */ new Set(), $ = [];
|
|
1318
1318
|
H.map((P) => ({
|
|
1319
1319
|
labelList: P.label.split(","),
|
|
1320
1320
|
item: P
|
|
1321
1321
|
})).forEach(({ item: P, labelList: ee }) => {
|
|
1322
1322
|
ee.forEach((ge) => {
|
|
1323
|
-
w.has(ge) || (w.add(ge),
|
|
1323
|
+
w.has(ge) || (w.add(ge), $.push({
|
|
1324
1324
|
label: ge,
|
|
1325
1325
|
color: P.color
|
|
1326
1326
|
}));
|
|
1327
1327
|
});
|
|
1328
1328
|
}), N({
|
|
1329
|
-
formula1: _r(
|
|
1330
|
-
formula2:
|
|
1329
|
+
formula1: _r($.map((P) => P.label)),
|
|
1330
|
+
formula2: $.map((P) => P.color === Ne ? "" : P.color).join(",")
|
|
1331
1331
|
});
|
|
1332
|
-
}, [H, N, c, g,
|
|
1332
|
+
}, [H, N, c, g, C]);
|
|
1333
1333
|
const x = zt(
|
|
1334
1334
|
() => async (w) => {
|
|
1335
|
-
if (!
|
|
1335
|
+
if (!T(w)) {
|
|
1336
1336
|
N == null || N({
|
|
1337
1337
|
formula1: "",
|
|
1338
1338
|
formula2: d
|
|
@@ -1340,7 +1340,7 @@ function gi(n) {
|
|
|
1340
1340
|
return;
|
|
1341
1341
|
}
|
|
1342
1342
|
N == null || N({
|
|
1343
|
-
formula1:
|
|
1343
|
+
formula1: T(w) ? w : "",
|
|
1344
1344
|
formula2: d
|
|
1345
1345
|
});
|
|
1346
1346
|
},
|
|
@@ -1354,7 +1354,7 @@ function gi(n) {
|
|
|
1354
1354
|
onChange: (w) => {
|
|
1355
1355
|
h(w), p(g), w === "1" && N({
|
|
1356
1356
|
formula1: g === "=" ? "" : g,
|
|
1357
|
-
formula2:
|
|
1357
|
+
formula2: C.join(",")
|
|
1358
1358
|
});
|
|
1359
1359
|
},
|
|
1360
1360
|
children: [
|
|
@@ -1365,7 +1365,7 @@ function gi(n) {
|
|
|
1365
1365
|
) }),
|
|
1366
1366
|
c === "1" ? /* @__PURE__ */ f.jsxs(f.Fragment, { children: [
|
|
1367
1367
|
/* @__PURE__ */ f.jsx(Q, { error: y || q, children: /* @__PURE__ */ f.jsx(
|
|
1368
|
-
|
|
1368
|
+
ka,
|
|
1369
1369
|
{
|
|
1370
1370
|
id: oa(`list-ref-range-${t}-${r}`),
|
|
1371
1371
|
value: m,
|
|
@@ -1373,15 +1373,15 @@ function gi(n) {
|
|
|
1373
1373
|
openForSheetSubUnitId: r,
|
|
1374
1374
|
onlyInputFormula: !0,
|
|
1375
1375
|
onChange: async (w) => {
|
|
1376
|
-
const
|
|
1377
|
-
_(
|
|
1376
|
+
const $ = w != null ? w : "";
|
|
1377
|
+
_($), x($);
|
|
1378
1378
|
}
|
|
1379
1379
|
}
|
|
1380
1380
|
) }),
|
|
1381
|
-
/* @__PURE__ */ f.jsx(Q, { children: /* @__PURE__ */ f.jsx("div", { ref: u, children: V.map((w) => /* @__PURE__ */ f.jsx(
|
|
1381
|
+
/* @__PURE__ */ f.jsx(Q, { children: /* @__PURE__ */ f.jsx("div", { ref: u, children: V.map((w) => /* @__PURE__ */ f.jsx(Fa, { item: w, commonProps: { onItemChange: L }, style: { marginBottom: 12 } }, w.id)) }) })
|
|
1382
1382
|
] }) : /* @__PURE__ */ f.jsx(Q, { error: y, children: /* @__PURE__ */ f.jsxs("div", { ref: u, style: { marginTop: "-12px" }, children: [
|
|
1383
1383
|
/* @__PURE__ */ f.jsx(
|
|
1384
|
-
|
|
1384
|
+
To,
|
|
1385
1385
|
{
|
|
1386
1386
|
list: H,
|
|
1387
1387
|
onListChange: U,
|
|
@@ -1389,7 +1389,7 @@ function gi(n) {
|
|
|
1389
1389
|
margin: [0, 12],
|
|
1390
1390
|
draggableHandle: ".draggableHandle",
|
|
1391
1391
|
itemRender: (w) => /* @__PURE__ */ f.jsx(
|
|
1392
|
-
|
|
1392
|
+
Fa,
|
|
1393
1393
|
{
|
|
1394
1394
|
item: w,
|
|
1395
1395
|
commonProps: {
|
|
@@ -1456,13 +1456,13 @@ function vi(n) {
|
|
|
1456
1456
|
) }) : null
|
|
1457
1457
|
] });
|
|
1458
1458
|
}
|
|
1459
|
-
const Sr = "data-validation.custom-formula-input",
|
|
1459
|
+
const Sr = "data-validation.custom-formula-input", lt = "data-validation.formula-input", Or = "data-validation.list-formula-input", Er = "data-validation.checkbox-formula-input", _i = [
|
|
1460
1460
|
[
|
|
1461
1461
|
Sr,
|
|
1462
1462
|
ri
|
|
1463
1463
|
],
|
|
1464
1464
|
[
|
|
1465
|
-
|
|
1465
|
+
lt,
|
|
1466
1466
|
mi
|
|
1467
1467
|
],
|
|
1468
1468
|
[
|
|
@@ -1498,7 +1498,7 @@ function Mi(n) {
|
|
|
1498
1498
|
}
|
|
1499
1499
|
function Si(n) {
|
|
1500
1500
|
return {
|
|
1501
|
-
id:
|
|
1501
|
+
id: st.id,
|
|
1502
1502
|
title: "dataValidation.panel.title",
|
|
1503
1503
|
type: na.BUTTON,
|
|
1504
1504
|
positions: [fa]
|
|
@@ -1517,29 +1517,28 @@ var Ei = Object.defineProperty, wi = Object.getOwnPropertyDescriptor, Vi = (n, a
|
|
|
1517
1517
|
(i = n[o]) && (r = (t ? i(a, e, r) : i(r)) || r);
|
|
1518
1518
|
return t && r && Ei(a, e, r), r;
|
|
1519
1519
|
}, re = (n, a) => (e, t) => a(e, t, n);
|
|
1520
|
-
const Fi = {
|
|
1520
|
+
const Ci = {}, Fi = {
|
|
1521
1521
|
tr: {
|
|
1522
1522
|
size: 6,
|
|
1523
1523
|
color: "#fe4b4b"
|
|
1524
1524
|
}
|
|
1525
1525
|
};
|
|
1526
|
-
let
|
|
1527
|
-
constructor(n, a, e, t, r, o, i, s, l, d, u, c, h) {
|
|
1528
|
-
super(), this.
|
|
1526
|
+
let at = class extends Ba {
|
|
1527
|
+
constructor(n, a, e, t, r, o, i, s, l, d, u, c, h, m) {
|
|
1528
|
+
super(), this._config = n, this._componentManager = a, this._menuService = e, this._dataValidationModel = t, this._sheetSkeletonManagerService = r, this._renderManagerService = o, this._univerInstanceService = i, this._dataValidatorRegistryService = s, this._editorBridgeService = l, this._dropdownManagerService = d, this._sheetInterceptorService = u, this._injector = c, this._autoHeightController = h, this._commandService = m, this._init();
|
|
1529
1529
|
}
|
|
1530
1530
|
_init() {
|
|
1531
1531
|
this._initComponents(), this._initMenu(), this._initSkeletonChange(), this._initDropdown(), this._initViewModelIntercept(), this._initAutoHeight();
|
|
1532
1532
|
}
|
|
1533
1533
|
_initMenu() {
|
|
1534
|
+
const { menu: n = {} } = this._config;
|
|
1534
1535
|
[
|
|
1535
1536
|
Mi,
|
|
1536
1537
|
Si,
|
|
1537
1538
|
Oi
|
|
1538
|
-
].forEach((
|
|
1539
|
+
].forEach((a) => {
|
|
1539
1540
|
this.disposeWithMe(
|
|
1540
|
-
this._menuService.addMenuItem(
|
|
1541
|
-
n(this._injector)
|
|
1542
|
-
)
|
|
1541
|
+
this._menuService.addMenuItem(a(this._injector), n)
|
|
1543
1542
|
);
|
|
1544
1543
|
});
|
|
1545
1544
|
}
|
|
@@ -1627,9 +1626,10 @@ let vt = class extends Ba {
|
|
|
1627
1626
|
this._sheetInterceptorService.intercept(
|
|
1628
1627
|
Oo.CELL_CONTENT,
|
|
1629
1628
|
{
|
|
1629
|
+
priority: 200,
|
|
1630
1630
|
// eslint-disable-next-line max-lines-per-function, complexity
|
|
1631
1631
|
handler: (n, a, e) => {
|
|
1632
|
-
var O, S,
|
|
1632
|
+
var O, S, C, F;
|
|
1633
1633
|
const { row: t, col: r, unitId: o, subUnitId: i } = a, s = this._dataValidationModel.ensureManager(o, i), l = (O = this._sheetSkeletonManagerService.getCurrent()) == null ? void 0 : O.skeleton;
|
|
1634
1634
|
if (!s || !l)
|
|
1635
1635
|
return e(n);
|
|
@@ -1659,7 +1659,7 @@ let vt = class extends Ba {
|
|
|
1659
1659
|
});
|
|
1660
1660
|
}
|
|
1661
1661
|
if (h.type === Y.LIST && (h.renderMode === ie.ARROW || h.renderMode === ie.TEXT)) {
|
|
1662
|
-
const I = g.getListWithColorMap(h),
|
|
1662
|
+
const I = g.getListWithColorMap(h), B = `${(C = oe(n)) != null ? C : ""}`, b = I[B];
|
|
1663
1663
|
b && (M = {
|
|
1664
1664
|
...M,
|
|
1665
1665
|
interceptorStyle: {
|
|
@@ -1684,7 +1684,7 @@ let vt = class extends Ba {
|
|
|
1684
1684
|
...p === ye.INVALID ? Fi : null
|
|
1685
1685
|
},
|
|
1686
1686
|
customRender: [
|
|
1687
|
-
...(
|
|
1687
|
+
...(F = n == null ? void 0 : n.customRender) != null ? F : [],
|
|
1688
1688
|
...g != null && g.canvasRender ? [g.canvasRender] : []
|
|
1689
1689
|
],
|
|
1690
1690
|
// @ts-ignore
|
|
@@ -1699,10 +1699,10 @@ let vt = class extends Ba {
|
|
|
1699
1699
|
},
|
|
1700
1700
|
get interceptorAutoHeight() {
|
|
1701
1701
|
var b, q, D, y;
|
|
1702
|
-
const I = l.mergeData.find((
|
|
1703
|
-
const { startColumn: N, startRow: H, endColumn: U, endRow: Z } =
|
|
1702
|
+
const I = l.mergeData.find((W) => {
|
|
1703
|
+
const { startColumn: N, startRow: H, endColumn: U, endRow: Z } = W;
|
|
1704
1704
|
return t >= H && r >= N && t <= Z && r <= U;
|
|
1705
|
-
}),
|
|
1705
|
+
}), B = {
|
|
1706
1706
|
data: {
|
|
1707
1707
|
...n,
|
|
1708
1708
|
dataValidation: {
|
|
@@ -1719,7 +1719,7 @@ let vt = class extends Ba {
|
|
|
1719
1719
|
row: t,
|
|
1720
1720
|
col: r
|
|
1721
1721
|
};
|
|
1722
|
-
return (y = (D = g == null ? void 0 : g.canvasRender) == null ? void 0 : D.calcCellAutoHeight) == null ? void 0 : y.call(D,
|
|
1722
|
+
return (y = (D = g == null ? void 0 : g.canvasRender) == null ? void 0 : D.calcCellAutoHeight) == null ? void 0 : y.call(D, B);
|
|
1723
1723
|
}
|
|
1724
1724
|
});
|
|
1725
1725
|
}
|
|
@@ -1737,28 +1737,28 @@ let vt = class extends Ba {
|
|
|
1737
1737
|
});
|
|
1738
1738
|
}
|
|
1739
1739
|
};
|
|
1740
|
-
|
|
1741
|
-
Ve(
|
|
1742
|
-
re(
|
|
1743
|
-
re(
|
|
1744
|
-
re(
|
|
1745
|
-
re(
|
|
1746
|
-
re(
|
|
1747
|
-
re(
|
|
1748
|
-
re(
|
|
1749
|
-
re(
|
|
1750
|
-
re(
|
|
1751
|
-
re(
|
|
1752
|
-
re(
|
|
1753
|
-
re(
|
|
1754
|
-
re(
|
|
1755
|
-
],
|
|
1756
|
-
var
|
|
1757
|
-
for (var r = t > 1 ? void 0 : t ?
|
|
1740
|
+
at = Vi([
|
|
1741
|
+
Ve(Ce.Rendered, at),
|
|
1742
|
+
re(1, E(it)),
|
|
1743
|
+
re(2, ao),
|
|
1744
|
+
re(3, E(K)),
|
|
1745
|
+
re(4, E(ia)),
|
|
1746
|
+
re(5, Ya),
|
|
1747
|
+
re(6, se),
|
|
1748
|
+
re(7, E(Fe)),
|
|
1749
|
+
re(8, sa),
|
|
1750
|
+
re(9, E(je)),
|
|
1751
|
+
re(10, E(za)),
|
|
1752
|
+
re(11, E(Be)),
|
|
1753
|
+
re(12, E(no)),
|
|
1754
|
+
re(13, J)
|
|
1755
|
+
], at);
|
|
1756
|
+
var Ii = Object.defineProperty, Li = Object.getOwnPropertyDescriptor, Ti = (n, a, e, t) => {
|
|
1757
|
+
for (var r = t > 1 ? void 0 : t ? Li(a, e) : a, o = n.length - 1, i; o >= 0; o--)
|
|
1758
1758
|
(i = n[o]) && (r = (t ? i(a, e, r) : i(r)) || r);
|
|
1759
|
-
return t && r &&
|
|
1760
|
-
},
|
|
1761
|
-
let
|
|
1759
|
+
return t && r && Ii(a, e, r), r;
|
|
1760
|
+
}, Ai = (n, a) => (e, t) => a(e, t, n);
|
|
1761
|
+
let Ct = class {
|
|
1762
1762
|
constructor(n) {
|
|
1763
1763
|
v(this, "_currentManager");
|
|
1764
1764
|
v(this, "_currentManager$", new er());
|
|
@@ -1786,10 +1786,10 @@ let Ft = class {
|
|
|
1786
1786
|
return this._ensureManager(n, a);
|
|
1787
1787
|
}
|
|
1788
1788
|
};
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
],
|
|
1792
|
-
class
|
|
1789
|
+
Ct = Ti([
|
|
1790
|
+
Ai(0, E(K))
|
|
1791
|
+
], Ct);
|
|
1792
|
+
class dt {
|
|
1793
1793
|
constructor() {
|
|
1794
1794
|
v(this, "_cacheMatrix", /* @__PURE__ */ new Map());
|
|
1795
1795
|
}
|
|
@@ -1797,7 +1797,7 @@ class lt {
|
|
|
1797
1797
|
let t = this._cacheMatrix.get(a);
|
|
1798
1798
|
t || (t = /* @__PURE__ */ new Map(), this._cacheMatrix.set(a, t));
|
|
1799
1799
|
let r = t.get(e);
|
|
1800
|
-
return r || (r = new
|
|
1800
|
+
return r || (r = new nt(), t.set(e, r)), r;
|
|
1801
1801
|
}
|
|
1802
1802
|
ensureCache(a, e) {
|
|
1803
1803
|
return this._ensureCache(a, e);
|
|
@@ -1811,17 +1811,17 @@ class lt {
|
|
|
1811
1811
|
updateRuleRanges(a, e, t, r, o) {
|
|
1812
1812
|
const i = this._ensureCache(a, e);
|
|
1813
1813
|
o.forEach((s) => {
|
|
1814
|
-
|
|
1814
|
+
k.foreach(s, (l, d) => {
|
|
1815
1815
|
const u = i.getValue(l, d);
|
|
1816
1816
|
u && (u.temp = !0);
|
|
1817
1817
|
});
|
|
1818
1818
|
}), r.forEach((s) => {
|
|
1819
|
-
|
|
1819
|
+
k.foreach(s, (l, d) => {
|
|
1820
1820
|
const u = i.getValue(l, d);
|
|
1821
1821
|
u && u.ruleId === t ? u.temp = !1 : i.setValue(l, d, void 0);
|
|
1822
1822
|
});
|
|
1823
1823
|
}), o.forEach((s) => {
|
|
1824
|
-
|
|
1824
|
+
k.foreach(s, (l, d) => {
|
|
1825
1825
|
const u = i.getValue(l, d);
|
|
1826
1826
|
u && u.temp === !0 && i.realDeleteValue(l, d);
|
|
1827
1827
|
});
|
|
@@ -1830,7 +1830,7 @@ class lt {
|
|
|
1830
1830
|
markRangeDirty(a, e, t) {
|
|
1831
1831
|
const r = this._ensureCache(a, e);
|
|
1832
1832
|
t.forEach((o) => {
|
|
1833
|
-
|
|
1833
|
+
k.foreach(o, (i, s) => {
|
|
1834
1834
|
r.setValue(i, s, void 0);
|
|
1835
1835
|
});
|
|
1836
1836
|
});
|
|
@@ -1841,7 +1841,7 @@ class lt {
|
|
|
1841
1841
|
_deleteRange(a, e, t) {
|
|
1842
1842
|
const r = this._ensureCache(a, e);
|
|
1843
1843
|
t.forEach((o) => {
|
|
1844
|
-
|
|
1844
|
+
k.foreach(o, (i, s) => {
|
|
1845
1845
|
r.realDeleteValue(i, s);
|
|
1846
1846
|
});
|
|
1847
1847
|
});
|
|
@@ -1853,11 +1853,11 @@ class lt {
|
|
|
1853
1853
|
return this._ensureCache(a, e).setValue(t, r, o);
|
|
1854
1854
|
}
|
|
1855
1855
|
}
|
|
1856
|
-
var
|
|
1857
|
-
for (var r = t > 1 ? void 0 : t ?
|
|
1856
|
+
var bi = Object.defineProperty, Di = Object.getOwnPropertyDescriptor, yi = (n, a, e, t) => {
|
|
1857
|
+
for (var r = t > 1 ? void 0 : t ? Di(a, e) : a, o = n.length - 1, i; o >= 0; o--)
|
|
1858
1858
|
(i = n[o]) && (r = (t ? i(a, e, r) : i(r)) || r);
|
|
1859
|
-
return t && r &&
|
|
1860
|
-
},
|
|
1859
|
+
return t && r && bi(a, e, r), r;
|
|
1860
|
+
}, ht = (n, a) => (e, t) => a(e, t, n);
|
|
1861
1861
|
let Qe = class extends fe {
|
|
1862
1862
|
constructor(a, e, t, r) {
|
|
1863
1863
|
super();
|
|
@@ -1891,7 +1891,7 @@ let Qe = class extends fe {
|
|
|
1891
1891
|
let t = this._formulaMap.get(a), r = this._ruleFormulaMap.get(a), o = this._formulaCellMap.get(a);
|
|
1892
1892
|
(!t || !r || !o) && (t = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map(), this._formulaMap.set(a, t), this._ruleFormulaMap.set(a, r), this._formulaCellMap.set(a, o));
|
|
1893
1893
|
let i = t.get(e), s = r.get(e), l = o.get(e);
|
|
1894
|
-
return (!i || !s || !l) && (i = new
|
|
1894
|
+
return (!i || !s || !l) && (i = new nt(), t.set(e, i), s = /* @__PURE__ */ new Map(), r.set(e, s), l = /* @__PURE__ */ new Map(), o.set(e, l)), {
|
|
1895
1895
|
formulaMap: i,
|
|
1896
1896
|
ruleFormulaMap: s,
|
|
1897
1897
|
formulaCellMap: l
|
|
@@ -1903,7 +1903,7 @@ let Qe = class extends fe {
|
|
|
1903
1903
|
deleteByRuleId(a, e, t) {
|
|
1904
1904
|
const { formulaMap: r, formulaCellMap: o, ruleFormulaMap: i } = this._ensureMaps(a, e), s = this._dataValidationModel.getRuleById(a, e, t), l = /* @__PURE__ */ new Set(), d = i.get(t);
|
|
1905
1905
|
!s || !d || (i.delete(t), s.ranges.forEach((u) => {
|
|
1906
|
-
|
|
1906
|
+
k.foreach(u, (c, h) => {
|
|
1907
1907
|
const m = r.getValue(c, h);
|
|
1908
1908
|
if (m && m.ruleId === t) {
|
|
1909
1909
|
const { formulaId: p } = m;
|
|
@@ -1922,7 +1922,7 @@ let Qe = class extends fe {
|
|
|
1922
1922
|
), u = o[0].startRow, c = o[0].startColumn;
|
|
1923
1923
|
let h;
|
|
1924
1924
|
d ? o.forEach((m) => {
|
|
1925
|
-
|
|
1925
|
+
k.foreach(m, (p, g) => {
|
|
1926
1926
|
const _ = wa(
|
|
1927
1927
|
this._lexerTreeBuilder,
|
|
1928
1928
|
r,
|
|
@@ -1938,7 +1938,7 @@ let Qe = class extends fe {
|
|
|
1938
1938
|
}), l.set(M, { row: p, column: g });
|
|
1939
1939
|
});
|
|
1940
1940
|
}) : (h = this._registerFormula(a, e, t, r), o.forEach((m) => {
|
|
1941
|
-
|
|
1941
|
+
k.foreach(m, (p, g) => {
|
|
1942
1942
|
i.setValue(p, g, {
|
|
1943
1943
|
formulaId: h,
|
|
1944
1944
|
// formulaText: formula,
|
|
@@ -1955,7 +1955,7 @@ let Qe = class extends fe {
|
|
|
1955
1955
|
}
|
|
1956
1956
|
addRule(a, e, t) {
|
|
1957
1957
|
const { ranges: r, formula1: o, uid: i, type: s } = t;
|
|
1958
|
-
s !== Y.CUSTOM || !o || !
|
|
1958
|
+
s !== Y.CUSTOM || !o || !T(o) || this._addFormulaByRange(a, e, i, o, r);
|
|
1959
1959
|
}
|
|
1960
1960
|
updateRuleRanges(a, e, t, r, o) {
|
|
1961
1961
|
const { formulaMap: i, ruleFormulaMap: s, formulaCellMap: l } = this._ensureMaps(a, e), d = s.get(t);
|
|
@@ -1963,23 +1963,23 @@ let Qe = class extends fe {
|
|
|
1963
1963
|
return;
|
|
1964
1964
|
const { formula: u, originCol: c, originRow: h, isTransformable: m, formulaId: p } = d, g = /* @__PURE__ */ new Set();
|
|
1965
1965
|
r.forEach((_) => {
|
|
1966
|
-
|
|
1966
|
+
k.foreach(_, (M, O) => {
|
|
1967
1967
|
const S = i.getValue(M, O);
|
|
1968
1968
|
S && S.ruleId === t && (S.temp = !0);
|
|
1969
1969
|
});
|
|
1970
1970
|
}), o.forEach((_) => {
|
|
1971
|
-
|
|
1972
|
-
var
|
|
1973
|
-
const S = (
|
|
1971
|
+
k.foreach(_, (M, O) => {
|
|
1972
|
+
var C;
|
|
1973
|
+
const S = (C = i.getValue(M, O)) != null ? C : {};
|
|
1974
1974
|
if (S.ruleId !== t) {
|
|
1975
|
-
const
|
|
1976
|
-
if (
|
|
1977
|
-
const I = wa(this._lexerTreeBuilder, u, h, c, M, O),
|
|
1975
|
+
const F = s.get(S.ruleId);
|
|
1976
|
+
if (F != null && F.isTransformable && g.add(S.formulaId), m) {
|
|
1977
|
+
const I = wa(this._lexerTreeBuilder, u, h, c, M, O), B = this._registerFormula(a, e, t, I);
|
|
1978
1978
|
i.setValue(M, O, {
|
|
1979
1979
|
// formulaText: relativeText,
|
|
1980
1980
|
ruleId: t,
|
|
1981
|
-
formulaId:
|
|
1982
|
-
}), l.set(
|
|
1981
|
+
formulaId: B
|
|
1982
|
+
}), l.set(B, { row: M, column: O });
|
|
1983
1983
|
} else
|
|
1984
1984
|
i.setValue(M, O, {
|
|
1985
1985
|
// formulaText: formula,
|
|
@@ -1990,7 +1990,7 @@ let Qe = class extends fe {
|
|
|
1990
1990
|
S.temp = !1;
|
|
1991
1991
|
});
|
|
1992
1992
|
}), r.forEach((_) => {
|
|
1993
|
-
|
|
1993
|
+
k.foreach(_, (M, O) => {
|
|
1994
1994
|
const S = i.getValue(M, O);
|
|
1995
1995
|
S && S.ruleId === t && S.temp === !0 && (i.realDeleteValue(M, O), m && g.add(S.formulaId));
|
|
1996
1996
|
});
|
|
@@ -2011,17 +2011,17 @@ let Qe = class extends fe {
|
|
|
2011
2011
|
return r.get(t);
|
|
2012
2012
|
}
|
|
2013
2013
|
};
|
|
2014
|
-
Qe =
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2014
|
+
Qe = yi([
|
|
2015
|
+
ht(0, E(tr)),
|
|
2016
|
+
ht(1, E(Za)),
|
|
2017
|
+
ht(2, E(K)),
|
|
2018
|
+
ht(3, E(dt))
|
|
2019
2019
|
], Qe);
|
|
2020
2020
|
function Me(n) {
|
|
2021
2021
|
var a, e;
|
|
2022
2022
|
return (e = (a = n == null ? void 0 : n[0]) == null ? void 0 : a[0]) == null ? void 0 : e.v;
|
|
2023
2023
|
}
|
|
2024
|
-
class
|
|
2024
|
+
class Ni extends $e {
|
|
2025
2025
|
constructor() {
|
|
2026
2026
|
super(...arguments);
|
|
2027
2027
|
v(this, "id", Y.CUSTOM);
|
|
@@ -2032,7 +2032,7 @@ class yi extends $e {
|
|
|
2032
2032
|
v(this, "_customFormulaService", this.injector.get(Qe));
|
|
2033
2033
|
}
|
|
2034
2034
|
validatorFormula(e) {
|
|
2035
|
-
const t =
|
|
2035
|
+
const t = T(e.formula1);
|
|
2036
2036
|
return {
|
|
2037
2037
|
success: t,
|
|
2038
2038
|
formula1: t ? "" : this.localeService.t("dataValidation.validFail.formula")
|
|
@@ -2052,10 +2052,10 @@ class yi extends $e {
|
|
|
2052
2052
|
return this.localeService.t("dataValidation.custom.error");
|
|
2053
2053
|
}
|
|
2054
2054
|
}
|
|
2055
|
-
var
|
|
2056
|
-
for (var r = t > 1 ? void 0 : t ?
|
|
2055
|
+
var Ui = Object.defineProperty, xi = Object.getOwnPropertyDescriptor, Pi = (n, a, e, t) => {
|
|
2056
|
+
for (var r = t > 1 ? void 0 : t ? xi(a, e) : a, o = n.length - 1, i; o >= 0; o--)
|
|
2057
2057
|
(i = n[o]) && (r = (t ? i(a, e, r) : i(r)) || r);
|
|
2058
|
-
return t && r &&
|
|
2058
|
+
return t && r && Ui(a, e, r), r;
|
|
2059
2059
|
}, xt = (n, a) => (e, t) => a(e, t, n);
|
|
2060
2060
|
let le = class extends fe {
|
|
2061
2061
|
constructor(a, e, t) {
|
|
@@ -2087,7 +2087,7 @@ let le = class extends fe {
|
|
|
2087
2087
|
return r || (r = /* @__PURE__ */ new Map(), t.set(e, r)), r;
|
|
2088
2088
|
}
|
|
2089
2089
|
addRule(a, e, t, r, o) {
|
|
2090
|
-
const i =
|
|
2090
|
+
const i = T(r), s = T(o);
|
|
2091
2091
|
if (!i && !s)
|
|
2092
2092
|
return;
|
|
2093
2093
|
const l = this._ensureRuleFormulaMap(a, e), d = [void 0, void 0];
|
|
@@ -2116,7 +2116,7 @@ let le = class extends fe {
|
|
|
2116
2116
|
}
|
|
2117
2117
|
const [l, d] = s;
|
|
2118
2118
|
if ((l == null ? void 0 : l.text) !== r)
|
|
2119
|
-
if (l && this._registerOtherFormulaService.deleteFormula(a, e, [l.id]),
|
|
2119
|
+
if (l && this._registerOtherFormulaService.deleteFormula(a, e, [l.id]), T(r)) {
|
|
2120
2120
|
const u = this._registerOtherFormulaService.registerFormula(a, e, r, { ruleId: t });
|
|
2121
2121
|
s[0] = {
|
|
2122
2122
|
text: r,
|
|
@@ -2125,7 +2125,7 @@ let le = class extends fe {
|
|
|
2125
2125
|
} else
|
|
2126
2126
|
s[0] = void 0;
|
|
2127
2127
|
if ((d == null ? void 0 : d.text) !== o)
|
|
2128
|
-
if (d && this._registerOtherFormulaService.deleteFormula(a, e, [d.id]),
|
|
2128
|
+
if (d && this._registerOtherFormulaService.deleteFormula(a, e, [d.id]), T(o)) {
|
|
2129
2129
|
const u = this._registerOtherFormulaService.registerFormula(a, e, o, { ruleId: t });
|
|
2130
2130
|
s[1] = {
|
|
2131
2131
|
text: o,
|
|
@@ -2156,24 +2156,24 @@ let le = class extends fe {
|
|
|
2156
2156
|
return this._ensureRuleFormulaMap(a, e).get(t);
|
|
2157
2157
|
}
|
|
2158
2158
|
};
|
|
2159
|
-
le =
|
|
2159
|
+
le = Pi([
|
|
2160
2160
|
xt(0, E(tr)),
|
|
2161
|
-
xt(1, E(
|
|
2161
|
+
xt(1, E(dt)),
|
|
2162
2162
|
xt(2, E(K))
|
|
2163
2163
|
], le);
|
|
2164
|
-
var
|
|
2165
|
-
for (var r = t > 1 ? void 0 : t ?
|
|
2164
|
+
var ji = Object.defineProperty, Bi = Object.getOwnPropertyDescriptor, $i = (n, a, e, t) => {
|
|
2165
|
+
for (var r = t > 1 ? void 0 : t ? Bi(a, e) : a, o = n.length - 1, i; o >= 0; o--)
|
|
2166
2166
|
(i = n[o]) && (r = (t ? i(a, e, r) : i(r)) || r);
|
|
2167
|
-
return t && r &&
|
|
2167
|
+
return t && r && ji(a, e, r), r;
|
|
2168
2168
|
}, Pt = (n, a) => (e, t) => a(e, t, n);
|
|
2169
|
-
const
|
|
2169
|
+
const mt = 6;
|
|
2170
2170
|
let Kt = class {
|
|
2171
2171
|
constructor(n, a, e) {
|
|
2172
2172
|
this._commandService = n, this._formulaService = a, this._themeService = e;
|
|
2173
2173
|
}
|
|
2174
2174
|
_calc(n, a) {
|
|
2175
2175
|
var d, u, c;
|
|
2176
|
-
const { vt: e, ht: t } = a || {}, r = n.endX - n.startX -
|
|
2176
|
+
const { vt: e, ht: t } = a || {}, r = n.endX - n.startX - mt * 2, o = n.endY - n.startY, i = ((d = a == null ? void 0 : a.fs) != null ? d : 10) * 1.6;
|
|
2177
2177
|
let s = 0, l = 0;
|
|
2178
2178
|
switch (e) {
|
|
2179
2179
|
case te.TOP:
|
|
@@ -2188,13 +2188,13 @@ let Kt = class {
|
|
|
2188
2188
|
}
|
|
2189
2189
|
switch (t) {
|
|
2190
2190
|
case Re.LEFT:
|
|
2191
|
-
s =
|
|
2191
|
+
s = mt;
|
|
2192
2192
|
break;
|
|
2193
2193
|
case Re.RIGHT:
|
|
2194
|
-
s =
|
|
2194
|
+
s = mt + (r - i);
|
|
2195
2195
|
break;
|
|
2196
2196
|
default:
|
|
2197
|
-
s =
|
|
2197
|
+
s = mt + (r - i) / 2;
|
|
2198
2198
|
break;
|
|
2199
2199
|
}
|
|
2200
2200
|
return {
|
|
@@ -2211,21 +2211,21 @@ let Kt = class {
|
|
|
2211
2211
|
}
|
|
2212
2212
|
async _parseFormula(n, a, e) {
|
|
2213
2213
|
var i, s;
|
|
2214
|
-
const { formula1: t =
|
|
2214
|
+
const { formula1: t = Ft, formula2: r = Zt } = n, o = await this._formulaService.getRuleFormulaResult(a, e, n.uid);
|
|
2215
2215
|
return {
|
|
2216
|
-
formula1:
|
|
2217
|
-
formula2:
|
|
2216
|
+
formula1: T(t) ? Me((i = o == null ? void 0 : o[0]) == null ? void 0 : i.result) : t,
|
|
2217
|
+
formula2: T(r) ? Me((s = o == null ? void 0 : o[1]) == null ? void 0 : s.result) : r
|
|
2218
2218
|
};
|
|
2219
2219
|
}
|
|
2220
2220
|
drawWith(n, a) {
|
|
2221
|
-
var q, D, y,
|
|
2221
|
+
var q, D, y, W, N;
|
|
2222
2222
|
const { style: e, data: t, primaryWithCoord: r, unitId: o, subUnitId: i } = a, s = r.isMergedMainCell ? r.mergeInfo : r, l = oe(t), d = (q = t.dataValidation) == null ? void 0 : q.rule, u = (D = t.dataValidation) == null ? void 0 : D.validator;
|
|
2223
2223
|
if (!d || !u)
|
|
2224
2224
|
return;
|
|
2225
2225
|
const c = this._themeService.getCurrentTheme();
|
|
2226
2226
|
if (!u.skipDefaultFontRender(d, l, { unitId: o, subUnitId: i }))
|
|
2227
2227
|
return;
|
|
2228
|
-
const { formula1: h =
|
|
2228
|
+
const { formula1: h = Ft } = d, m = this._calc(s, e), { a: p, d: g } = n.getTransform(), _ = Oa(m.left, p), M = Oa(m.top, g), O = po.create().composeMatrix({
|
|
2229
2229
|
left: _,
|
|
2230
2230
|
top: M,
|
|
2231
2231
|
scaleX: 1,
|
|
@@ -2235,16 +2235,16 @@ let Kt = class {
|
|
|
2235
2235
|
skewY: 0,
|
|
2236
2236
|
flipX: !1,
|
|
2237
2237
|
flipY: !1
|
|
2238
|
-
}), S = s.endX - s.startX,
|
|
2239
|
-
n.save(), n.beginPath(), n.rect(s.startX, s.startY, S,
|
|
2240
|
-
const
|
|
2241
|
-
n.transform(
|
|
2242
|
-
const I = ((y = e == null ? void 0 : e.fs) != null ? y : 10) * 1.6,
|
|
2238
|
+
}), S = s.endX - s.startX, C = s.endY - s.startY;
|
|
2239
|
+
n.save(), n.beginPath(), n.rect(s.startX, s.startY, S, C), n.clip();
|
|
2240
|
+
const F = O.getMatrix();
|
|
2241
|
+
n.transform(F[0], F[1], F[2], F[3], F[4], F[5]);
|
|
2242
|
+
const I = ((y = e == null ? void 0 : e.fs) != null ? y : 10) * 1.6, B = String(l) === String(h), b = c.hyacinth500;
|
|
2243
2243
|
go.drawWith(n, {
|
|
2244
|
-
checked:
|
|
2244
|
+
checked: B,
|
|
2245
2245
|
width: I,
|
|
2246
2246
|
height: I,
|
|
2247
|
-
fill: (N = (
|
|
2247
|
+
fill: (N = (W = e == null ? void 0 : e.cl) == null ? void 0 : W.rgb) != null ? N : b
|
|
2248
2248
|
}), n.restore();
|
|
2249
2249
|
}
|
|
2250
2250
|
isHit(n, a) {
|
|
@@ -2276,13 +2276,13 @@ let Kt = class {
|
|
|
2276
2276
|
);
|
|
2277
2277
|
}
|
|
2278
2278
|
};
|
|
2279
|
-
Kt =
|
|
2279
|
+
Kt = $i([
|
|
2280
2280
|
Pt(0, J),
|
|
2281
2281
|
Pt(1, E(le)),
|
|
2282
2282
|
Pt(2, E(xr))
|
|
2283
2283
|
], Kt);
|
|
2284
|
-
const
|
|
2285
|
-
class
|
|
2284
|
+
const Ft = 1, Zt = 0;
|
|
2285
|
+
class qi extends $e {
|
|
2286
2286
|
constructor() {
|
|
2287
2287
|
super(...arguments);
|
|
2288
2288
|
v(this, "id", Y.CHECKBOX);
|
|
@@ -2298,7 +2298,7 @@ class $i extends $e {
|
|
|
2298
2298
|
return !s || s === `${o}` || s === `${i}`;
|
|
2299
2299
|
}
|
|
2300
2300
|
validatorFormula(e) {
|
|
2301
|
-
const { formula1: t, formula2: r } = e, o =
|
|
2301
|
+
const { formula1: t, formula2: r } = e, o = !j.isBlank(t), i = !j.isBlank(r), s = t === r;
|
|
2302
2302
|
return {
|
|
2303
2303
|
success: o && i && !s || !o && !i,
|
|
2304
2304
|
formula1: o ? s ? this.localeService.t("dataValidation.validFail.checkboxEqual") : "" : this.localeService.t("dataValidation.validFail.common"),
|
|
@@ -2307,33 +2307,33 @@ class $i extends $e {
|
|
|
2307
2307
|
}
|
|
2308
2308
|
async parseFormula(e, t, r) {
|
|
2309
2309
|
var l, d;
|
|
2310
|
-
const { formula1: o =
|
|
2310
|
+
const { formula1: o = Ft, formula2: i = Zt } = e, s = await this._formulaService.getRuleFormulaResult(t, r, e.uid);
|
|
2311
2311
|
return {
|
|
2312
|
-
formula1:
|
|
2313
|
-
formula2:
|
|
2312
|
+
formula1: T(o) ? Me((l = s == null ? void 0 : s[0]) == null ? void 0 : l.result) : o,
|
|
2313
|
+
formula2: T(i) ? Me((d = s == null ? void 0 : s[1]) == null ? void 0 : d.result) : i
|
|
2314
2314
|
};
|
|
2315
2315
|
}
|
|
2316
2316
|
parseFormulaSync(e, t, r) {
|
|
2317
2317
|
var l, d;
|
|
2318
|
-
const { formula1: o =
|
|
2318
|
+
const { formula1: o = Ft, formula2: i = Zt } = e, s = this._formulaService.getRuleFormulaResultSync(t, r, e.uid);
|
|
2319
2319
|
return {
|
|
2320
|
-
formula1:
|
|
2321
|
-
formula2:
|
|
2320
|
+
formula1: T(o) ? Me((l = s == null ? void 0 : s[0]) == null ? void 0 : l.result) : o,
|
|
2321
|
+
formula2: T(i) ? Me((d = s == null ? void 0 : s[1]) == null ? void 0 : d.result) : i
|
|
2322
2322
|
};
|
|
2323
2323
|
}
|
|
2324
2324
|
async isValidType(e, t, r) {
|
|
2325
2325
|
const { value: o, unitId: i, subUnitId: s } = e, { formula1: l, formula2: d } = await this.parseFormula(r, i, s);
|
|
2326
|
-
return
|
|
2326
|
+
return !j.isDefine(l) || !j.isDefine(d) ? !0 : j.isDefine(o) && (String(o) === String(l) || String(o) === String(d));
|
|
2327
2327
|
}
|
|
2328
2328
|
generateRuleErrorMessage(e) {
|
|
2329
2329
|
return this.localeService.t("dataValidation.checkbox.error");
|
|
2330
2330
|
}
|
|
2331
2331
|
}
|
|
2332
|
-
const
|
|
2332
|
+
const ot = [
|
|
2333
2333
|
R.BETWEEN,
|
|
2334
2334
|
R.NOT_BETWEEN
|
|
2335
2335
|
], jt = 86400;
|
|
2336
|
-
function
|
|
2336
|
+
function Wi(n, a = !0) {
|
|
2337
2337
|
if (a && n >= 0) {
|
|
2338
2338
|
if (n === 0)
|
|
2339
2339
|
return [1900, 1, 0];
|
|
@@ -2352,14 +2352,14 @@ function qi(n, a = !0) {
|
|
|
2352
2352
|
const s = o + 2 - 12 * e;
|
|
2353
2353
|
return [100 * (t - 49) + r + e | 0, s | 0, i | 0];
|
|
2354
2354
|
}
|
|
2355
|
-
const
|
|
2355
|
+
const Hi = (n) => {
|
|
2356
2356
|
let a = n | 0;
|
|
2357
2357
|
const e = jt * (n - a);
|
|
2358
2358
|
let t = Math.floor(e);
|
|
2359
2359
|
e - t > 0.9999 && (t += 1, t === jt && (t = 0, a += 1));
|
|
2360
|
-
const r = t < 0 ? jt + t : t, [o, i, s] =
|
|
2360
|
+
const r = t < 0 ? jt + t : t, [o, i, s] = Wi(n, !0), l = Math.floor(r / 60 / 60) % 60, d = Math.floor(r / 60) % 60, u = Math.floor(r) % 60, c = /* @__PURE__ */ new Date(0);
|
|
2361
2361
|
return c.setUTCFullYear(o, i - 1, s), c.setUTCHours(l, d, u), c.getTime();
|
|
2362
|
-
},
|
|
2362
|
+
}, ki = {
|
|
2363
2363
|
[R.BETWEEN]: "dataValidation.date.operators.between",
|
|
2364
2364
|
[R.EQUAL]: "dataValidation.date.operators.equal",
|
|
2365
2365
|
[R.GREATER_THAN]: "dataValidation.date.operators.greaterThan",
|
|
@@ -2370,7 +2370,7 @@ const ki = (n) => {
|
|
|
2370
2370
|
[R.NOT_EQUAL]: "dataValidation.date.operators.notEqual"
|
|
2371
2371
|
};
|
|
2372
2372
|
R.BETWEEN + "", R.EQUAL + "", R.GREATER_THAN + "", R.GREATER_THAN_OR_EQUAL + "", R.LESS_THAN + "", R.LESS_THAN_OR_EQUAL + "", R.NOT_BETWEEN + "", R.NOT_EQUAL + "";
|
|
2373
|
-
const
|
|
2373
|
+
const Yi = {
|
|
2374
2374
|
[R.BETWEEN]: "dataValidation.date.ruleName.between",
|
|
2375
2375
|
[R.EQUAL]: "dataValidation.date.ruleName.equal",
|
|
2376
2376
|
[R.GREATER_THAN]: "dataValidation.date.ruleName.greaterThan",
|
|
@@ -2379,7 +2379,7 @@ const Wi = {
|
|
|
2379
2379
|
[R.LESS_THAN_OR_EQUAL]: "dataValidation.date.ruleName.lessThanOrEqual",
|
|
2380
2380
|
[R.NOT_BETWEEN]: "dataValidation.date.ruleName.notBetween",
|
|
2381
2381
|
[R.NOT_EQUAL]: "dataValidation.date.ruleName.notEqual"
|
|
2382
|
-
},
|
|
2382
|
+
}, Xi = {
|
|
2383
2383
|
[R.BETWEEN]: "dataValidation.date.errorMsg.between",
|
|
2384
2384
|
[R.EQUAL]: "dataValidation.date.errorMsg.equal",
|
|
2385
2385
|
[R.GREATER_THAN]: "dataValidation.date.errorMsg.greaterThan",
|
|
@@ -2388,11 +2388,11 @@ const Wi = {
|
|
|
2388
2388
|
[R.LESS_THAN_OR_EQUAL]: "dataValidation.date.errorMsg.lessThanOrEqual",
|
|
2389
2389
|
[R.NOT_BETWEEN]: "dataValidation.date.errorMsg.notBetween",
|
|
2390
2390
|
[R.NOT_EQUAL]: "dataValidation.date.errorMsg.notEqual"
|
|
2391
|
-
}, Ia = "{FORMULA1}",
|
|
2391
|
+
}, Ia = "{FORMULA1}", La = "{FORMULA2}", Ta = (n) => Pe(n).isValid(), ft = (n) => {
|
|
2392
2392
|
if (!(n == null || typeof n == "boolean"))
|
|
2393
|
-
return typeof n == "number" || !Number.isNaN(+n) ? Pe(
|
|
2393
|
+
return typeof n == "number" || !Number.isNaN(+n) ? Pe(Hi(+n)) : Pe(n);
|
|
2394
2394
|
};
|
|
2395
|
-
class
|
|
2395
|
+
class Gi extends $e {
|
|
2396
2396
|
constructor() {
|
|
2397
2397
|
super(...arguments);
|
|
2398
2398
|
v(this, "id", Y.DATE);
|
|
@@ -2408,17 +2408,17 @@ class Xi extends $e {
|
|
|
2408
2408
|
R.NOT_EQUAL
|
|
2409
2409
|
]);
|
|
2410
2410
|
v(this, "scopes", ["sheet"]);
|
|
2411
|
-
v(this, "formulaInput",
|
|
2411
|
+
v(this, "formulaInput", lt);
|
|
2412
2412
|
v(this, "dropdown", Mr);
|
|
2413
2413
|
v(this, "_formulaService", this.injector.get(le));
|
|
2414
|
-
v(this, "transformDate",
|
|
2414
|
+
v(this, "transformDate", ft);
|
|
2415
2415
|
}
|
|
2416
2416
|
async parseFormula(e, t, r) {
|
|
2417
2417
|
var l, d;
|
|
2418
2418
|
const o = await this._formulaService.getRuleFormulaResult(t, r, e.uid), { formula1: i, formula2: s } = e;
|
|
2419
2419
|
return {
|
|
2420
|
-
formula1:
|
|
2421
|
-
formula2:
|
|
2420
|
+
formula1: ft(T(i) ? Me((l = o == null ? void 0 : o[0]) == null ? void 0 : l.result) : i),
|
|
2421
|
+
formula2: ft(T(s) ? Me((d = o == null ? void 0 : o[1]) == null ? void 0 : d.result) : s)
|
|
2422
2422
|
};
|
|
2423
2423
|
}
|
|
2424
2424
|
async isValidType(e) {
|
|
@@ -2426,7 +2426,7 @@ class Xi extends $e {
|
|
|
2426
2426
|
return typeof t == "string" ? Pe(t).isValid() : typeof t == "number";
|
|
2427
2427
|
}
|
|
2428
2428
|
_validatorSingleFormula(e) {
|
|
2429
|
-
return
|
|
2429
|
+
return !j.isBlank(e) && (T(e) || !Number.isNaN(+e) || !!e && Pe(e).isValid());
|
|
2430
2430
|
}
|
|
2431
2431
|
validatorFormula(e) {
|
|
2432
2432
|
const t = e.operator;
|
|
@@ -2435,7 +2435,7 @@ class Xi extends $e {
|
|
|
2435
2435
|
success: !1
|
|
2436
2436
|
};
|
|
2437
2437
|
const r = this._validatorSingleFormula(e.formula1), o = this.localeService.t("dataValidation.validFail.date");
|
|
2438
|
-
if (
|
|
2438
|
+
if (ot.includes(t)) {
|
|
2439
2439
|
const s = this._validatorSingleFormula(e.formula2);
|
|
2440
2440
|
return {
|
|
2441
2441
|
success: r && s,
|
|
@@ -2452,7 +2452,7 @@ class Xi extends $e {
|
|
|
2452
2452
|
const { value: o } = e;
|
|
2453
2453
|
return {
|
|
2454
2454
|
...e,
|
|
2455
|
-
value:
|
|
2455
|
+
value: ft(o)
|
|
2456
2456
|
};
|
|
2457
2457
|
}
|
|
2458
2458
|
async validatorIsEqual(e, t, r) {
|
|
@@ -2494,38 +2494,38 @@ class Xi extends $e {
|
|
|
2494
2494
|
return o ? r.isBefore(o) || r.isSame(o) : !0;
|
|
2495
2495
|
}
|
|
2496
2496
|
validatorFormulaValue(e) {
|
|
2497
|
-
if (
|
|
2497
|
+
if (!j.isDefine(e.operator))
|
|
2498
2498
|
return;
|
|
2499
|
-
if (
|
|
2500
|
-
if (
|
|
2499
|
+
if (ot.includes(e.operator)) {
|
|
2500
|
+
if (j.isBlank(e.formula1) || j.isBlank(e.formula2))
|
|
2501
2501
|
return "";
|
|
2502
|
-
if (!
|
|
2502
|
+
if (!Ta(e.formula1) || !Ta(e.formula2))
|
|
2503
2503
|
return "";
|
|
2504
|
-
} else if (
|
|
2504
|
+
} else if (j.isBlank(e.formula1))
|
|
2505
2505
|
return "";
|
|
2506
2506
|
}
|
|
2507
2507
|
get operatorNames() {
|
|
2508
|
-
return this.operators.map((e) => this.localeService.t(
|
|
2508
|
+
return this.operators.map((e) => this.localeService.t(ki[e]));
|
|
2509
2509
|
}
|
|
2510
2510
|
generateRuleName(e) {
|
|
2511
2511
|
var r, o;
|
|
2512
2512
|
if (!e.operator)
|
|
2513
2513
|
return this.titleStr;
|
|
2514
|
-
const t = this.localeService.t(
|
|
2514
|
+
const t = this.localeService.t(Yi[e.operator]).replace(Ia, (r = e.formula1) != null ? r : "").replace(La, (o = e.formula2) != null ? o : "");
|
|
2515
2515
|
return `${this.titleStr} ${t}`;
|
|
2516
2516
|
}
|
|
2517
2517
|
generateRuleErrorMessage(e) {
|
|
2518
2518
|
var r, o;
|
|
2519
|
-
return e.operator ? `${this.localeService.t(
|
|
2519
|
+
return e.operator ? `${this.localeService.t(Xi[e.operator]).replace(Ia, (r = e.formula1) != null ? r : "").replace(La, (o = e.formula2) != null ? o : "")}` : this.titleStr;
|
|
2520
2520
|
}
|
|
2521
2521
|
}
|
|
2522
|
-
var
|
|
2523
|
-
for (var r = t > 1 ? void 0 : t ?
|
|
2522
|
+
var zi = Object.defineProperty, Qi = Object.getOwnPropertyDescriptor, Ki = (n, a, e, t) => {
|
|
2523
|
+
for (var r = t > 1 ? void 0 : t ? Qi(a, e) : a, o = n.length - 1, i; o >= 0; o--)
|
|
2524
2524
|
(i = n[o]) && (r = (t ? i(a, e, r) : i(r)) || r);
|
|
2525
|
-
return t && r &&
|
|
2525
|
+
return t && r && zi(a, e, r), r;
|
|
2526
2526
|
}, Aa = (n, a) => (e, t) => a(e, t, n);
|
|
2527
|
-
const
|
|
2528
|
-
function
|
|
2527
|
+
const We = 4, Zi = 6, ue = 14, be = 6, _e = 2, Ji = "#565656", ba = new Path2D("M3.32201 4.84556C3.14417 5.05148 2.85583 5.05148 2.67799 4.84556L0.134292 1.90016C-0.152586 1.56798 0.0505937 1 0.456301 1L5.5437 1C5.94941 1 6.15259 1.56798 5.86571 1.90016L3.32201 4.84556Z");
|
|
2528
|
+
function es(n, a) {
|
|
2529
2529
|
const e = n.length;
|
|
2530
2530
|
return {
|
|
2531
2531
|
id: "d",
|
|
@@ -2566,7 +2566,7 @@ function Ji(n, a) {
|
|
|
2566
2566
|
};
|
|
2567
2567
|
}
|
|
2568
2568
|
function Jt(n, a, e) {
|
|
2569
|
-
const t =
|
|
2569
|
+
const t = es(n, e), r = new Pr(t), o = new vo(r);
|
|
2570
2570
|
return {
|
|
2571
2571
|
documentSkeleton: _o.create(o, a),
|
|
2572
2572
|
docModel: r,
|
|
@@ -2580,7 +2580,7 @@ function Da(n, a, e) {
|
|
|
2580
2580
|
docViewModel: o
|
|
2581
2581
|
} = Jt(n, a, e);
|
|
2582
2582
|
return {
|
|
2583
|
-
documents: new Ro(`DOCUMENTS_${
|
|
2583
|
+
documents: new Ro(`DOCUMENTS_${j.generateRandomId()}`, t, {
|
|
2584
2584
|
pageMarginLeft: 0,
|
|
2585
2585
|
pageMarginTop: 0
|
|
2586
2586
|
}),
|
|
@@ -2589,8 +2589,8 @@ function Da(n, a, e) {
|
|
|
2589
2589
|
docViewModel: o
|
|
2590
2590
|
};
|
|
2591
2591
|
}
|
|
2592
|
-
var
|
|
2593
|
-
let ea = (
|
|
2592
|
+
var kt;
|
|
2593
|
+
let ea = (kt = class {
|
|
2594
2594
|
constructor(n, a) {
|
|
2595
2595
|
v(this, "_dropdownInfoMap", /* @__PURE__ */ new Map());
|
|
2596
2596
|
v(this, "zIndex");
|
|
@@ -2629,27 +2629,27 @@ let ea = (Wt = class {
|
|
|
2629
2629
|
endX: d.endX - p,
|
|
2630
2630
|
startY: d.startY + g,
|
|
2631
2631
|
endY: d.endY - _
|
|
2632
|
-
}, O = M.endX - M.startX, S = M.endY - M.startY,
|
|
2633
|
-
let { tb: D, vt: y, ht:
|
|
2634
|
-
if (D = D != null ? D : he.WRAP, y = y != null ? y : te.TOP,
|
|
2632
|
+
}, O = M.endX - M.startX, S = M.endY - M.startY, C = this._ensureMap(l), F = this._generateKey(r, o), I = c.getListWithColor(u), B = oe(s), b = `${B != null ? B : ""}`, q = I.find((U) => U.label === b);
|
|
2633
|
+
let { tb: D, vt: y, ht: W } = i || {};
|
|
2634
|
+
if (D = D != null ? D : he.WRAP, y = y != null ? y : te.TOP, W = W != null ? W : Re.LEFT, u.renderMode === ie.ARROW) {
|
|
2635
2635
|
this._drawDownIcon(n, M, O, S, y), n.save(), n.translateWithPrecision(M.startX, M.startY), n.beginPath(), n.rect(0, 0, O, S), n.clip();
|
|
2636
2636
|
const U = O - ue, { documentSkeleton: Z, documents: pe, docModel: X } = Da(b, this._localeService, i);
|
|
2637
2637
|
D === he.WRAP && X.updateDocumentDataPageSize(Math.max(U, 1)), Z.calculate(), Z.getActualSize();
|
|
2638
|
-
const V =
|
|
2638
|
+
const V = ut(Z), { height: L, width: G } = V;
|
|
2639
2639
|
let x = 0;
|
|
2640
2640
|
switch (y) {
|
|
2641
2641
|
case te.BOTTOM:
|
|
2642
|
-
x = S - _e -
|
|
2642
|
+
x = S - _e - L;
|
|
2643
2643
|
break;
|
|
2644
2644
|
case te.MIDDLE:
|
|
2645
|
-
x = (S - _e -
|
|
2645
|
+
x = (S - _e - L) / 2;
|
|
2646
2646
|
break;
|
|
2647
2647
|
default:
|
|
2648
2648
|
x = _e;
|
|
2649
2649
|
break;
|
|
2650
2650
|
}
|
|
2651
2651
|
let w = 0;
|
|
2652
|
-
switch (
|
|
2652
|
+
switch (W) {
|
|
2653
2653
|
case Re.CENTER:
|
|
2654
2654
|
w = (U - G) / 2;
|
|
2655
2655
|
break;
|
|
@@ -2657,7 +2657,7 @@ let ea = (Wt = class {
|
|
|
2657
2657
|
w = U - G;
|
|
2658
2658
|
break;
|
|
2659
2659
|
}
|
|
2660
|
-
n.translate(0, x), n.save(), n.translateWithPrecision(
|
|
2660
|
+
n.translate(0, x), n.save(), n.translateWithPrecision(We, 0), n.beginPath(), n.rect(0, 0, U, L), n.clip(), pe.render(n), n.translateWithPrecision(w, 0), n.restore(), n.restore(), C.set(F, {
|
|
2661
2661
|
left: M.endX + e.rowHeaderWidth - ue,
|
|
2662
2662
|
top: M.startY + e.columnHeaderHeight,
|
|
2663
2663
|
width: ue,
|
|
@@ -2665,23 +2665,23 @@ let ea = (Wt = class {
|
|
|
2665
2665
|
});
|
|
2666
2666
|
} else {
|
|
2667
2667
|
n.save(), n.translateWithPrecision(M.startX, M.startY), n.beginPath(), n.rect(0, 0, O, S), n.clip();
|
|
2668
|
-
const U = O - be * 2 -
|
|
2668
|
+
const U = O - be * 2 - We - ue, { documentSkeleton: Z, documents: pe, docModel: X } = Da(b, this._localeService, i);
|
|
2669
2669
|
D === he.WRAP && X.updateDocumentDataPageSize(Math.max(U, 1)), Z.calculate();
|
|
2670
|
-
const V =
|
|
2670
|
+
const V = ut(Z), { height: L, width: G } = V;
|
|
2671
2671
|
let x = 0;
|
|
2672
2672
|
switch (y) {
|
|
2673
2673
|
case te.BOTTOM:
|
|
2674
|
-
x = S - _e -
|
|
2674
|
+
x = S - _e - L;
|
|
2675
2675
|
break;
|
|
2676
2676
|
case te.MIDDLE:
|
|
2677
|
-
x = (S - _e -
|
|
2677
|
+
x = (S - _e - L) / 2;
|
|
2678
2678
|
break;
|
|
2679
2679
|
default:
|
|
2680
2680
|
x = _e;
|
|
2681
2681
|
break;
|
|
2682
2682
|
}
|
|
2683
2683
|
let w = 0;
|
|
2684
|
-
switch (
|
|
2684
|
+
switch (W) {
|
|
2685
2685
|
case Re.CENTER:
|
|
2686
2686
|
w = (U - G) / 2;
|
|
2687
2687
|
break;
|
|
@@ -2690,16 +2690,16 @@ let ea = (Wt = class {
|
|
|
2690
2690
|
break;
|
|
2691
2691
|
}
|
|
2692
2692
|
n.translate(be, x);
|
|
2693
|
-
const
|
|
2693
|
+
const $ = Math.max(O - be * 2, 1), P = L;
|
|
2694
2694
|
Xa.drawWith(n, {
|
|
2695
|
-
width:
|
|
2695
|
+
width: $,
|
|
2696
2696
|
height: P,
|
|
2697
2697
|
fill: (q == null ? void 0 : q.color) || Ne,
|
|
2698
2698
|
radius: 8
|
|
2699
|
-
}), n.save(), n.translateWithPrecision(
|
|
2699
|
+
}), n.save(), n.translateWithPrecision(We, 0), n.beginPath(), n.rect(0, 0, U, L), n.clip(), n.translateWithPrecision(w, 0), pe.render(n), n.restore(), n.translate(U + We + 4, (L - Zi) / 2), n.fillStyle = Ji, n.fill(ba), n.restore(), C.set(F, {
|
|
2700
2700
|
left: M.startX + be + e.rowHeaderWidth,
|
|
2701
2701
|
top: M.startY + x + e.columnHeaderHeight,
|
|
2702
|
-
width:
|
|
2702
|
+
width: $,
|
|
2703
2703
|
height: P
|
|
2704
2704
|
});
|
|
2705
2705
|
}
|
|
@@ -2719,15 +2719,15 @@ let ea = (Wt = class {
|
|
|
2719
2719
|
if (g = g != null ? g : he.WRAP, u.renderMode === ie.ARROW) {
|
|
2720
2720
|
const M = h - ue, { documentSkeleton: O, docModel: S } = Jt(p, this._localeService, e);
|
|
2721
2721
|
g === he.WRAP && S.updateDocumentDataPageSize(Math.max(M, 1)), O.calculate(), O.getActualSize();
|
|
2722
|
-
const
|
|
2723
|
-
return
|
|
2722
|
+
const C = ut(O), { height: F } = C;
|
|
2723
|
+
return F;
|
|
2724
2724
|
} else {
|
|
2725
|
-
const M = h - be * 2 -
|
|
2725
|
+
const M = h - be * 2 - We - ue, { documentSkeleton: O, docModel: S } = Jt(p, this._localeService, e);
|
|
2726
2726
|
g === he.WRAP && S.updateDocumentDataPageSize(Math.max(M, 1)), O.calculate();
|
|
2727
|
-
const
|
|
2728
|
-
height:
|
|
2729
|
-
} =
|
|
2730
|
-
return
|
|
2727
|
+
const C = ut(O), {
|
|
2728
|
+
height: F
|
|
2729
|
+
} = C;
|
|
2730
|
+
return F + _e * 2;
|
|
2731
2731
|
}
|
|
2732
2732
|
}
|
|
2733
2733
|
isHit(n, a) {
|
|
@@ -2748,13 +2748,13 @@ let ea = (Wt = class {
|
|
|
2748
2748
|
};
|
|
2749
2749
|
this._commandService.executeCommand(ca.id, i);
|
|
2750
2750
|
}
|
|
2751
|
-
}, v(
|
|
2752
|
-
l: be +
|
|
2751
|
+
}, v(kt, "padding", {
|
|
2752
|
+
l: be + We,
|
|
2753
2753
|
r: ue + be,
|
|
2754
2754
|
t: _e,
|
|
2755
2755
|
b: _e
|
|
2756
|
-
}),
|
|
2757
|
-
ea =
|
|
2756
|
+
}), kt);
|
|
2757
|
+
ea = Ki([
|
|
2758
2758
|
Aa(0, E(de)),
|
|
2759
2759
|
Aa(1, J)
|
|
2760
2760
|
], ea);
|
|
@@ -2771,17 +2771,17 @@ function Bt(n) {
|
|
|
2771
2771
|
}
|
|
2772
2772
|
), [...a];
|
|
2773
2773
|
}
|
|
2774
|
-
const
|
|
2774
|
+
const ts = [
|
|
2775
2775
|
"if",
|
|
2776
2776
|
"indirect",
|
|
2777
2777
|
"choose",
|
|
2778
2778
|
"offset"
|
|
2779
2779
|
];
|
|
2780
|
-
function
|
|
2781
|
-
if (!
|
|
2780
|
+
function as(n, a) {
|
|
2781
|
+
if (!T(n) || Ja(n.slice(1)))
|
|
2782
2782
|
return !0;
|
|
2783
2783
|
const t = a.sequenceNodesBuilder(n);
|
|
2784
|
-
return t && t.some((r) => typeof r == "object" && r.nodeType === bo.FUNCTION &&
|
|
2784
|
+
return t && t.some((r) => typeof r == "object" && r.nodeType === bo.FUNCTION && ts.indexOf(r.token.toLowerCase()) > -1);
|
|
2785
2785
|
}
|
|
2786
2786
|
class Vr extends $e {
|
|
2787
2787
|
constructor() {
|
|
@@ -2802,7 +2802,7 @@ class Vr extends $e {
|
|
|
2802
2802
|
}
|
|
2803
2803
|
validatorFormula(e) {
|
|
2804
2804
|
var o;
|
|
2805
|
-
const t =
|
|
2805
|
+
const t = !j.isBlank(e.formula1), r = as((o = e.formula1) != null ? o : "", this._lexer);
|
|
2806
2806
|
return {
|
|
2807
2807
|
success: !!(t && r),
|
|
2808
2808
|
formula1: t ? r ? void 0 : this.localeService.t("dataValidation.validFail.listInvalid") : this.localeService.t("dataValidation.validFail.list")
|
|
@@ -2810,13 +2810,13 @@ class Vr extends $e {
|
|
|
2810
2810
|
}
|
|
2811
2811
|
parseCellValue(e) {
|
|
2812
2812
|
const t = e.toString();
|
|
2813
|
-
return
|
|
2813
|
+
return ke(t);
|
|
2814
2814
|
}
|
|
2815
2815
|
async parseFormula(e, t, r) {
|
|
2816
2816
|
var s;
|
|
2817
2817
|
const { formula1: o = "" } = e, i = await this.formulaService.getRuleFormulaResult(t, r, e.uid);
|
|
2818
2818
|
return {
|
|
2819
|
-
formula1:
|
|
2819
|
+
formula1: T(o) ? Bt((s = i == null ? void 0 : i[0]) == null ? void 0 : s.result) : ke(o),
|
|
2820
2820
|
formula2: void 0
|
|
2821
2821
|
};
|
|
2822
2822
|
}
|
|
@@ -2836,7 +2836,7 @@ class Vr extends $e {
|
|
|
2836
2836
|
if (!s)
|
|
2837
2837
|
return [];
|
|
2838
2838
|
const l = (m = r ? s.getSheetBySheetId(r) : void 0) != null ? m : s.getActiveSheet(), d = s.getUnitId(), u = l.getSheetId(), c = this.formulaService.getRuleFormulaResultSync(d, u, e.uid);
|
|
2839
|
-
return
|
|
2839
|
+
return T(o) ? Bt((p = c == null ? void 0 : c[0]) == null ? void 0 : p.result) : ke(o);
|
|
2840
2840
|
}
|
|
2841
2841
|
async getListAsync(e, t, r) {
|
|
2842
2842
|
var h, m, p;
|
|
@@ -2844,7 +2844,7 @@ class Vr extends $e {
|
|
|
2844
2844
|
if (!s)
|
|
2845
2845
|
return [];
|
|
2846
2846
|
const l = (m = r ? s.getSheetBySheetId(r) : void 0) != null ? m : s.getActiveSheet(), d = s.getUnitId(), u = l.getSheetId(), c = await this.formulaService.getRuleFormulaResult(d, u, e.uid);
|
|
2847
|
-
return
|
|
2847
|
+
return T(o) ? Bt((p = c == null ? void 0 : c[0]) == null ? void 0 : p.result) : ke(o);
|
|
2848
2848
|
}
|
|
2849
2849
|
getListWithColor(e, t, r) {
|
|
2850
2850
|
const o = this.getList(e, t, r), i = (e.formula2 || "").split(",");
|
|
@@ -2861,7 +2861,7 @@ function It(n) {
|
|
|
2861
2861
|
let a = n;
|
|
2862
2862
|
return typeof n == "string" ? ((n.startsWith("¥") || n.startsWith("$")) && (a = n.slice(1)), +a) : +n;
|
|
2863
2863
|
}
|
|
2864
|
-
class
|
|
2864
|
+
class rs extends $e {
|
|
2865
2865
|
constructor() {
|
|
2866
2866
|
super(...arguments);
|
|
2867
2867
|
v(this, "_formulaService", this.injector.get(le));
|
|
@@ -2878,11 +2878,11 @@ class as extends $e {
|
|
|
2878
2878
|
R.NOT_EQUAL
|
|
2879
2879
|
]);
|
|
2880
2880
|
v(this, "scopes", ["sheet"]);
|
|
2881
|
-
v(this, "formulaInput",
|
|
2881
|
+
v(this, "formulaInput", lt);
|
|
2882
2882
|
v(this, "dropDownInput");
|
|
2883
2883
|
}
|
|
2884
2884
|
_isFormulaOrNumber(e) {
|
|
2885
|
-
return
|
|
2885
|
+
return !j.isBlank(e) && (T(e) || !Number.isNaN(+e));
|
|
2886
2886
|
}
|
|
2887
2887
|
async isValidType(e, t, r) {
|
|
2888
2888
|
const { value: o } = e;
|
|
@@ -2902,8 +2902,8 @@ class as extends $e {
|
|
|
2902
2902
|
var d, u, c, h, m, p, g, _;
|
|
2903
2903
|
const o = await this._formulaService.getRuleFormulaResult(t, r, e.uid), { formula1: i, formula2: s } = e;
|
|
2904
2904
|
return {
|
|
2905
|
-
formula1: this._parseNumber(
|
|
2906
|
-
formula2: this._parseNumber(
|
|
2905
|
+
formula1: this._parseNumber(T(i) ? (h = (c = (u = (d = o == null ? void 0 : o[0]) == null ? void 0 : d.result) == null ? void 0 : u[0]) == null ? void 0 : c[0]) == null ? void 0 : h.v : i),
|
|
2906
|
+
formula2: this._parseNumber(T(s) ? (_ = (g = (p = (m = o == null ? void 0 : o[1]) == null ? void 0 : m.result) == null ? void 0 : p[0]) == null ? void 0 : g[0]) == null ? void 0 : _.v : s)
|
|
2907
2907
|
};
|
|
2908
2908
|
}
|
|
2909
2909
|
validatorFormula(e) {
|
|
@@ -2912,7 +2912,7 @@ class as extends $e {
|
|
|
2912
2912
|
return {
|
|
2913
2913
|
success: !1
|
|
2914
2914
|
};
|
|
2915
|
-
const r =
|
|
2915
|
+
const r = j.isDefine(e.formula1) && this._isFormulaOrNumber(e.formula1), o = j.isDefine(e.formula2) && this._isFormulaOrNumber(e.formula2), i = ot.includes(t), s = this.localeService.t("dataValidation.validFail.number");
|
|
2916
2916
|
return i ? {
|
|
2917
2917
|
success: r && o,
|
|
2918
2918
|
formula1: r ? void 0 : s,
|
|
@@ -2961,8 +2961,8 @@ class as extends $e {
|
|
|
2961
2961
|
return Number.isNaN(o) ? !0 : e.value <= o;
|
|
2962
2962
|
}
|
|
2963
2963
|
}
|
|
2964
|
-
const
|
|
2965
|
-
class
|
|
2964
|
+
const os = "{FORMULA1}", ns = "{FORMULA2}";
|
|
2965
|
+
class is extends $e {
|
|
2966
2966
|
constructor() {
|
|
2967
2967
|
super(...arguments);
|
|
2968
2968
|
v(this, "id", Y.TEXT_LENGTH);
|
|
@@ -2978,11 +2978,11 @@ class ns extends $e {
|
|
|
2978
2978
|
R.NOT_EQUAL
|
|
2979
2979
|
]);
|
|
2980
2980
|
v(this, "scopes", ["sheet"]);
|
|
2981
|
-
v(this, "formulaInput",
|
|
2981
|
+
v(this, "formulaInput", lt);
|
|
2982
2982
|
v(this, "_formulaService", this.injector.get(le));
|
|
2983
2983
|
}
|
|
2984
2984
|
_isFormulaOrInt(e) {
|
|
2985
|
-
return
|
|
2985
|
+
return !j.isBlank(e) && (T(e) || !Number.isNaN(+e) && Number.isInteger(+e));
|
|
2986
2986
|
}
|
|
2987
2987
|
validatorFormula(e) {
|
|
2988
2988
|
const t = e.operator;
|
|
@@ -2990,7 +2990,7 @@ class ns extends $e {
|
|
|
2990
2990
|
return {
|
|
2991
2991
|
success: !1
|
|
2992
2992
|
};
|
|
2993
|
-
const r =
|
|
2993
|
+
const r = j.isDefine(e.formula1) && this._isFormulaOrInt(e.formula1), o = j.isDefine(e.formula2) && this._isFormulaOrInt(e.formula2), i = ot.includes(t), s = this.localeService.t("dataValidation.validFail.number");
|
|
2994
2994
|
return i ? {
|
|
2995
2995
|
success: r && o,
|
|
2996
2996
|
formula1: r ? void 0 : s,
|
|
@@ -3010,8 +3010,8 @@ class ns extends $e {
|
|
|
3010
3010
|
var l, d, u, c, h, m, p, g;
|
|
3011
3011
|
const o = await this._formulaService.getRuleFormulaResult(t, r, e.uid), { formula1: i, formula2: s } = e;
|
|
3012
3012
|
return {
|
|
3013
|
-
formula1: this._parseNumber(
|
|
3014
|
-
formula2: this._parseNumber(
|
|
3013
|
+
formula1: this._parseNumber(T(i) ? (c = (u = (d = (l = o == null ? void 0 : o[0]) == null ? void 0 : l.result) == null ? void 0 : d[0]) == null ? void 0 : u[0]) == null ? void 0 : c.v : i),
|
|
3014
|
+
formula2: this._parseNumber(T(s) ? (g = (p = (m = (h = o == null ? void 0 : o[1]) == null ? void 0 : h.result) == null ? void 0 : m[0]) == null ? void 0 : p[0]) == null ? void 0 : g.v : s)
|
|
3015
3015
|
};
|
|
3016
3016
|
}
|
|
3017
3017
|
transform(e, t, r) {
|
|
@@ -3026,11 +3026,11 @@ class ns extends $e {
|
|
|
3026
3026
|
}
|
|
3027
3027
|
async validatorIsEqual(e, t, r) {
|
|
3028
3028
|
const { formula1: o } = t;
|
|
3029
|
-
return
|
|
3029
|
+
return j.isDefine(o) ? e.value === o : !1;
|
|
3030
3030
|
}
|
|
3031
3031
|
async validatorIsNotEqual(e, t, r) {
|
|
3032
3032
|
const { formula1: o } = t;
|
|
3033
|
-
return
|
|
3033
|
+
return j.isDefine(o) ? e.value !== o : !1;
|
|
3034
3034
|
}
|
|
3035
3035
|
async validatorIsBetween(e, t, r) {
|
|
3036
3036
|
const { formula1: o, formula2: i } = t, { value: s } = e;
|
|
@@ -3064,10 +3064,10 @@ class ns extends $e {
|
|
|
3064
3064
|
}
|
|
3065
3065
|
generateRuleErrorMessage(e) {
|
|
3066
3066
|
var r, o;
|
|
3067
|
-
return e.operator ? `${this.localeService.t(Yr[e.operator]).replace(
|
|
3067
|
+
return e.operator ? `${this.localeService.t(Yr[e.operator]).replace(os, (r = e.formula1) != null ? r : "").replace(ns, (o = e.formula2) != null ? o : "")}` : this.titleStr;
|
|
3068
3068
|
}
|
|
3069
3069
|
}
|
|
3070
|
-
class
|
|
3070
|
+
class ss extends $e {
|
|
3071
3071
|
constructor() {
|
|
3072
3072
|
super(...arguments);
|
|
3073
3073
|
v(this, "_formulaService", this.injector.get(le));
|
|
@@ -3084,11 +3084,11 @@ class is extends $e {
|
|
|
3084
3084
|
R.NOT_EQUAL
|
|
3085
3085
|
]);
|
|
3086
3086
|
v(this, "scopes", ["sheet"]);
|
|
3087
|
-
v(this, "formulaInput",
|
|
3087
|
+
v(this, "formulaInput", lt);
|
|
3088
3088
|
v(this, "dropDownInput");
|
|
3089
3089
|
}
|
|
3090
3090
|
_isFormulaOrInt(e) {
|
|
3091
|
-
return
|
|
3091
|
+
return !j.isBlank(e) && (T(e) || !Number.isNaN(+e) && Number.isInteger(+e));
|
|
3092
3092
|
}
|
|
3093
3093
|
async isValidType(e, t, r) {
|
|
3094
3094
|
const { value: o } = e, i = It(o);
|
|
@@ -3108,8 +3108,8 @@ class is extends $e {
|
|
|
3108
3108
|
var d, u, c, h, m, p, g, _;
|
|
3109
3109
|
const o = await this._formulaService.getRuleFormulaResult(t, r, e.uid), { formula1: i, formula2: s } = e;
|
|
3110
3110
|
return {
|
|
3111
|
-
formula1: this._parseNumber(
|
|
3112
|
-
formula2: this._parseNumber(
|
|
3111
|
+
formula1: this._parseNumber(T(i) ? (h = (c = (u = (d = o == null ? void 0 : o[0]) == null ? void 0 : d.result) == null ? void 0 : u[0]) == null ? void 0 : c[0]) == null ? void 0 : h.v : i),
|
|
3112
|
+
formula2: this._parseNumber(T(s) ? (_ = (g = (p = (m = o == null ? void 0 : o[1]) == null ? void 0 : m.result) == null ? void 0 : p[0]) == null ? void 0 : g[0]) == null ? void 0 : _.v : s)
|
|
3113
3113
|
};
|
|
3114
3114
|
}
|
|
3115
3115
|
validatorFormula(e) {
|
|
@@ -3118,7 +3118,7 @@ class is extends $e {
|
|
|
3118
3118
|
return {
|
|
3119
3119
|
success: !1
|
|
3120
3120
|
};
|
|
3121
|
-
const r =
|
|
3121
|
+
const r = j.isDefine(e.formula1) && this._isFormulaOrInt(e.formula1), o = j.isDefine(e.formula2) && this._isFormulaOrInt(e.formula2), i = ot.includes(t), s = this.localeService.t("dataValidation.validFail.number");
|
|
3122
3122
|
return i ? {
|
|
3123
3123
|
success: r && o,
|
|
3124
3124
|
formula1: r ? void 0 : s,
|
|
@@ -3167,18 +3167,18 @@ class is extends $e {
|
|
|
3167
3167
|
return Number.isNaN(o) ? !0 : e.value <= o;
|
|
3168
3168
|
}
|
|
3169
3169
|
}
|
|
3170
|
-
const
|
|
3171
|
-
function
|
|
3172
|
-
const e = Mo.getTextSize(n, a), t = e.width +
|
|
3170
|
+
const Cr = 4, ls = 0, $t = 4, Fr = 4, ta = 6, Lt = 6, De = 14;
|
|
3171
|
+
function ds(n, a) {
|
|
3172
|
+
const e = Mo.getTextSize(n, a), t = e.width + Cr * 2, { ba: r, bd: o } = e, i = r + o;
|
|
3173
3173
|
return {
|
|
3174
3174
|
width: t,
|
|
3175
|
-
height: i +
|
|
3175
|
+
height: i + ls * 2,
|
|
3176
3176
|
ba: r
|
|
3177
3177
|
};
|
|
3178
3178
|
}
|
|
3179
3179
|
function ya(n, a, e, t) {
|
|
3180
|
-
const r = e - De - ta, o = t -
|
|
3181
|
-
layout:
|
|
3180
|
+
const r = e - De - ta, o = t - Lt * 2, i = n.map((u) => ({
|
|
3181
|
+
layout: ds(u, a),
|
|
3182
3182
|
text: u
|
|
3183
3183
|
}));
|
|
3184
3184
|
let s;
|
|
@@ -3199,33 +3199,33 @@ function ya(n, a, e, t) {
|
|
|
3199
3199
|
});
|
|
3200
3200
|
let d = 0;
|
|
3201
3201
|
return l.forEach((u, c) => {
|
|
3202
|
-
c === l.length - 1 ? d += u.height : d += u.height +
|
|
3202
|
+
c === l.length - 1 ? d += u.height : d += u.height + Fr;
|
|
3203
3203
|
}), {
|
|
3204
3204
|
lines: l,
|
|
3205
3205
|
totalHeight: d,
|
|
3206
3206
|
contentWidth: r,
|
|
3207
3207
|
contentHeight: o,
|
|
3208
|
-
cellAutoHeight: d +
|
|
3208
|
+
cellAutoHeight: d + Lt * 2
|
|
3209
3209
|
};
|
|
3210
3210
|
}
|
|
3211
|
-
const
|
|
3212
|
-
class
|
|
3211
|
+
const us = 8;
|
|
3212
|
+
class cs extends So {
|
|
3213
3213
|
static drawWith(a, e) {
|
|
3214
3214
|
const { fontFamily: t, fontString: r, fontSize: o, info: i, fill: s, color: l } = e, { layout: d, text: u } = i;
|
|
3215
3215
|
a.save(), Xa.drawWith(a, {
|
|
3216
3216
|
width: d.width,
|
|
3217
3217
|
height: d.height,
|
|
3218
|
-
radius:
|
|
3218
|
+
radius: us,
|
|
3219
3219
|
fill: s || Ne
|
|
3220
|
-
}), a.translateWithPrecision(
|
|
3220
|
+
}), a.translateWithPrecision(Cr, d.ba), a.font = r, a.fillStyle = l, a.fillText(u, 0, 0), a.restore();
|
|
3221
3221
|
}
|
|
3222
3222
|
}
|
|
3223
|
-
var
|
|
3224
|
-
for (var r = t > 1 ? void 0 : t ?
|
|
3223
|
+
var hs = Object.defineProperty, ms = Object.getOwnPropertyDescriptor, fs = (n, a, e, t) => {
|
|
3224
|
+
for (var r = t > 1 ? void 0 : t ? ms(a, e) : a, o = n.length - 1, i; o >= 0; o--)
|
|
3225
3225
|
(i = n[o]) && (r = (t ? i(a, e, r) : i(r)) || r);
|
|
3226
|
-
return t && r &&
|
|
3227
|
-
},
|
|
3228
|
-
const
|
|
3226
|
+
return t && r && hs(a, e, r), r;
|
|
3227
|
+
}, ps = (n, a) => (e, t) => a(e, t, n);
|
|
3228
|
+
const gs = new Path2D("M3.32201 4.84556C3.14417 5.05148 2.85583 5.05148 2.67799 4.84556L0.134292 1.90016C-0.152586 1.56798 0.0505937 1 0.456301 1L5.5437 1C5.94941 1 6.15259 1.56798 5.86571 1.90016L3.32201 4.84556Z");
|
|
3229
3229
|
let aa = class {
|
|
3230
3230
|
constructor(n) {
|
|
3231
3231
|
v(this, "zIndex");
|
|
@@ -3250,11 +3250,11 @@ let aa = class {
|
|
|
3250
3250
|
i = t - De + 4;
|
|
3251
3251
|
break;
|
|
3252
3252
|
}
|
|
3253
|
-
n.save(), n.translateWithPrecision(a.startX + o, a.startY + i), n.fillStyle = "#565656", n.fill(
|
|
3253
|
+
n.save(), n.translateWithPrecision(a.startX + o, a.startY + i), n.fillStyle = "#565656", n.fill(gs), n.restore();
|
|
3254
3254
|
}
|
|
3255
3255
|
// eslint-disable-next-line max-lines-per-function
|
|
3256
3256
|
drawWith(n, a, e, t) {
|
|
3257
|
-
var
|
|
3257
|
+
var L, G;
|
|
3258
3258
|
const { primaryWithCoord: r, row: o, col: i, style: s, data: l, subUnitId: d } = a, u = r.isMergedMainCell ? r.mergeInfo : r, c = l.fontRenderExtension, { leftOffset: h = 0, rightOffset: m = 0, topOffset: p = 0, downOffset: g = 0 } = c || {}, _ = l.dataValidation, M = this._ensureMap(d), O = this._generateKey(o, i);
|
|
3259
3259
|
if (!_)
|
|
3260
3260
|
return;
|
|
@@ -3263,8 +3263,8 @@ let aa = class {
|
|
|
3263
3263
|
endX: u.endX - m,
|
|
3264
3264
|
startY: u.startY + p,
|
|
3265
3265
|
endY: u.endY - g
|
|
3266
|
-
},
|
|
3267
|
-
this._drawDownIcon(n, S,
|
|
3266
|
+
}, C = S.endX - S.startX, F = S.endY - S.startY, { cl: I } = s || {}, B = (L = typeof I == "object" ? I == null ? void 0 : I.rgb : I) != null ? L : "#000", b = Ea(s != null ? s : void 0), { rule: q, validator: D } = _, y = D, { vt: W, ht: N } = s || {}, H = W != null ? W : te.MIDDLE, U = (G = oe(l)) != null ? G : "", Z = y.parseCellValue(U), pe = y.getListWithColorMap(q), X = ya(Z, b, C, F);
|
|
3267
|
+
this._drawDownIcon(n, S, C, F, H), n.save(), n.translateWithPrecision(S.startX, S.startY), n.beginPath(), n.rect(0, 0, C - De, F), n.clip(), n.translateWithPrecision(ta, Lt);
|
|
3268
3268
|
let V = 0;
|
|
3269
3269
|
switch (H) {
|
|
3270
3270
|
case te.MIDDLE:
|
|
@@ -3276,21 +3276,21 @@ let aa = class {
|
|
|
3276
3276
|
}
|
|
3277
3277
|
n.translateWithPrecision(0, V), X.lines.forEach((x, w) => {
|
|
3278
3278
|
n.save();
|
|
3279
|
-
const { width:
|
|
3279
|
+
const { width: $, height: P, items: ee } = x;
|
|
3280
3280
|
let ge = 0;
|
|
3281
3281
|
switch (N) {
|
|
3282
3282
|
case Re.RIGHT:
|
|
3283
|
-
ge = X.contentWidth -
|
|
3283
|
+
ge = X.contentWidth - $;
|
|
3284
3284
|
break;
|
|
3285
3285
|
case Re.CENTER:
|
|
3286
|
-
ge = (X.contentWidth -
|
|
3286
|
+
ge = (X.contentWidth - $) / 2;
|
|
3287
3287
|
break;
|
|
3288
3288
|
}
|
|
3289
|
-
n.translate(ge, w * (P +
|
|
3290
|
-
n.save(), n.translateWithPrecision(At.left, 0),
|
|
3289
|
+
n.translate(ge, w * (P + Fr)), ee.forEach((At) => {
|
|
3290
|
+
n.save(), n.translateWithPrecision(At.left, 0), cs.drawWith(n, {
|
|
3291
3291
|
...b,
|
|
3292
3292
|
info: At,
|
|
3293
|
-
color:
|
|
3293
|
+
color: B,
|
|
3294
3294
|
fill: pe[At.text]
|
|
3295
3295
|
}), n.restore();
|
|
3296
3296
|
}), n.restore();
|
|
@@ -3298,11 +3298,11 @@ let aa = class {
|
|
|
3298
3298
|
left: S.startX,
|
|
3299
3299
|
top: S.startY,
|
|
3300
3300
|
width: X.contentWidth + ta + De,
|
|
3301
|
-
height: X.contentHeight +
|
|
3301
|
+
height: X.contentHeight + Lt * 2
|
|
3302
3302
|
});
|
|
3303
3303
|
}
|
|
3304
3304
|
calcCellAutoHeight(n) {
|
|
3305
|
-
var
|
|
3305
|
+
var C;
|
|
3306
3306
|
const { primaryWithCoord: a, style: e, data: t } = n, r = t.fontRenderExtension, { leftOffset: o = 0, rightOffset: i = 0, topOffset: s = 0, downOffset: l = 0 } = r || {}, d = a.isMergedMainCell ? a.mergeInfo : a, u = {
|
|
3307
3307
|
startX: d.startX + o,
|
|
3308
3308
|
endX: d.endX - i,
|
|
@@ -3311,7 +3311,7 @@ let aa = class {
|
|
|
3311
3311
|
}, c = t.dataValidation;
|
|
3312
3312
|
if (!c)
|
|
3313
3313
|
return;
|
|
3314
|
-
const h = u.endX - u.startX, m = u.endY - u.startY, p = (
|
|
3314
|
+
const h = u.endX - u.startX, m = u.endY - u.startY, p = (C = oe(t)) != null ? C : "", { validator: g } = c, M = g.parseCellValue(p), O = Ea(e != null ? e : void 0);
|
|
3315
3315
|
return ya(M, O, h, m).cellAutoHeight;
|
|
3316
3316
|
}
|
|
3317
3317
|
isHit(n, a) {
|
|
@@ -3330,10 +3330,10 @@ let aa = class {
|
|
|
3330
3330
|
this._commandService.executeCommand(ca.id, i);
|
|
3331
3331
|
}
|
|
3332
3332
|
};
|
|
3333
|
-
aa =
|
|
3334
|
-
|
|
3333
|
+
aa = fs([
|
|
3334
|
+
ps(0, J)
|
|
3335
3335
|
], aa);
|
|
3336
|
-
class
|
|
3336
|
+
class vs extends Vr {
|
|
3337
3337
|
constructor() {
|
|
3338
3338
|
super(...arguments);
|
|
3339
3339
|
v(this, "id", Y.LIST_MULTIPLE);
|
|
@@ -3344,10 +3344,10 @@ class gs extends Vr {
|
|
|
3344
3344
|
return !0;
|
|
3345
3345
|
}
|
|
3346
3346
|
}
|
|
3347
|
-
var
|
|
3348
|
-
for (var r = t > 1 ? void 0 : t ?
|
|
3347
|
+
var _s = Object.defineProperty, Rs = Object.getOwnPropertyDescriptor, Ms = (n, a, e, t) => {
|
|
3348
|
+
for (var r = t > 1 ? void 0 : t ? Rs(a, e) : a, o = n.length - 1, i; o >= 0; o--)
|
|
3349
3349
|
(i = n[o]) && (r = (t ? i(a, e, r) : i(r)) || r);
|
|
3350
|
-
return t && r &&
|
|
3350
|
+
return t && r && _s(a, e, r), r;
|
|
3351
3351
|
}, Oe = (n, a) => (e, t) => a(e, t, n);
|
|
3352
3352
|
let _t = class extends Ba {
|
|
3353
3353
|
constructor(n, a, e, t, r, o, i, s) {
|
|
@@ -3358,14 +3358,14 @@ let _t = class extends Ba {
|
|
|
3358
3358
|
}
|
|
3359
3359
|
_registerValidators() {
|
|
3360
3360
|
[
|
|
3361
|
-
|
|
3361
|
+
rs,
|
|
3362
|
+
ss,
|
|
3362
3363
|
is,
|
|
3363
|
-
|
|
3364
|
-
|
|
3365
|
-
$i,
|
|
3364
|
+
Gi,
|
|
3365
|
+
qi,
|
|
3366
3366
|
Vr,
|
|
3367
|
-
|
|
3368
|
-
|
|
3367
|
+
vs,
|
|
3368
|
+
Ni
|
|
3369
3369
|
].forEach((n) => {
|
|
3370
3370
|
const a = this._injector.createInstance(n);
|
|
3371
3371
|
this.disposeWithMe(
|
|
@@ -3410,22 +3410,22 @@ let _t = class extends Ba {
|
|
|
3410
3410
|
});
|
|
3411
3411
|
}
|
|
3412
3412
|
};
|
|
3413
|
-
_t =
|
|
3414
|
-
Ve(
|
|
3413
|
+
_t = Ms([
|
|
3414
|
+
Ve(Ce.Rendered, _t),
|
|
3415
3415
|
Oe(0, se),
|
|
3416
|
-
Oe(1, E(
|
|
3417
|
-
Oe(2, E(
|
|
3416
|
+
Oe(1, E(Ct)),
|
|
3417
|
+
Oe(2, E(Fe)),
|
|
3418
3418
|
Oe(3, E(Be)),
|
|
3419
|
-
Oe(4, E(
|
|
3419
|
+
Oe(4, E(it)),
|
|
3420
3420
|
Oe(5, E(Eo)),
|
|
3421
3421
|
Oe(6, E(za)),
|
|
3422
3422
|
Oe(7, E(K))
|
|
3423
3423
|
], _t);
|
|
3424
|
-
var
|
|
3425
|
-
for (var r = t > 1 ? void 0 : t ?
|
|
3424
|
+
var Ss = Object.defineProperty, Os = Object.getOwnPropertyDescriptor, Es = (n, a, e, t) => {
|
|
3425
|
+
for (var r = t > 1 ? void 0 : t ? Os(a, e) : a, o = n.length - 1, i; o >= 0; o--)
|
|
3426
3426
|
(i = n[o]) && (r = (t ? i(a, e, r) : i(r)) || r);
|
|
3427
|
-
return t && r &&
|
|
3428
|
-
},
|
|
3427
|
+
return t && r && Ss(a, e, r), r;
|
|
3428
|
+
}, pt = (n, a) => (e, t) => a(e, t, n);
|
|
3429
3429
|
const qt = "SHEET_DATA_VALIDATION_ALERT";
|
|
3430
3430
|
let Rt = class extends fe {
|
|
3431
3431
|
constructor(n, a, e, t) {
|
|
@@ -3462,19 +3462,19 @@ let Rt = class extends fe {
|
|
|
3462
3462
|
}));
|
|
3463
3463
|
}
|
|
3464
3464
|
};
|
|
3465
|
-
Rt =
|
|
3466
|
-
Ve(
|
|
3467
|
-
|
|
3468
|
-
|
|
3469
|
-
|
|
3470
|
-
|
|
3465
|
+
Rt = Es([
|
|
3466
|
+
Ve(Ce.Rendered, Rt),
|
|
3467
|
+
pt(0, E(io)),
|
|
3468
|
+
pt(1, E(so)),
|
|
3469
|
+
pt(2, se),
|
|
3470
|
+
pt(3, E(de))
|
|
3471
3471
|
], Rt);
|
|
3472
|
-
var
|
|
3473
|
-
for (var r = t > 1 ? void 0 : t ?
|
|
3472
|
+
var ws = Object.defineProperty, Vs = Object.getOwnPropertyDescriptor, Cs = (n, a, e, t) => {
|
|
3473
|
+
for (var r = t > 1 ? void 0 : t ? Vs(a, e) : a, o = n.length - 1, i; o >= 0; o--)
|
|
3474
3474
|
(i = n[o]) && (r = (t ? i(a, e, r) : i(r)) || r);
|
|
3475
|
-
return t && r &&
|
|
3475
|
+
return t && r && ws(a, e, r), r;
|
|
3476
3476
|
}, ce = (n, a) => (e, t) => a(e, t, n);
|
|
3477
|
-
let
|
|
3477
|
+
let rt = class extends fe {
|
|
3478
3478
|
constructor(a, e, t, r, o, i, s, l, d, u) {
|
|
3479
3479
|
super();
|
|
3480
3480
|
v(this, "_disposableMap", /* @__PURE__ */ new Map());
|
|
@@ -3568,7 +3568,7 @@ let at = class extends fe {
|
|
|
3568
3568
|
register(a, e, t) {
|
|
3569
3569
|
var l;
|
|
3570
3570
|
const r = (d) => {
|
|
3571
|
-
const u = [...t.ranges], h = u.map((p) =>
|
|
3571
|
+
const u = [...t.ranges], h = u.map((p) => Co(p, d)).filter((p) => !!p).flat();
|
|
3572
3572
|
if (jr(h, u))
|
|
3573
3573
|
return { redos: [], undos: [] };
|
|
3574
3574
|
if (h.length) {
|
|
@@ -3654,8 +3654,8 @@ let at = class extends fe {
|
|
|
3654
3654
|
}));
|
|
3655
3655
|
}
|
|
3656
3656
|
};
|
|
3657
|
-
|
|
3658
|
-
Ve(
|
|
3657
|
+
rt = Cs([
|
|
3658
|
+
Ve(Ce.Ready, rt),
|
|
3659
3659
|
ce(0, E(K)),
|
|
3660
3660
|
ce(1, E(se)),
|
|
3661
3661
|
ce(2, E(Be)),
|
|
@@ -3665,9 +3665,9 @@ at = Vs([
|
|
|
3665
3665
|
ce(6, E(le)),
|
|
3666
3666
|
ce(7, E(Po)),
|
|
3667
3667
|
ce(8, J),
|
|
3668
|
-
ce(9, E(
|
|
3669
|
-
],
|
|
3670
|
-
const
|
|
3668
|
+
ce(9, E(dt))
|
|
3669
|
+
], rt);
|
|
3670
|
+
const ol = {
|
|
3671
3671
|
dataValidation: {
|
|
3672
3672
|
title: "Data validation",
|
|
3673
3673
|
validFail: {
|
|
@@ -3823,7 +3823,7 @@ const Fs = {
|
|
|
3823
3823
|
label: "Display style"
|
|
3824
3824
|
}
|
|
3825
3825
|
}
|
|
3826
|
-
},
|
|
3826
|
+
}, Fs = {
|
|
3827
3827
|
dataValidation: {
|
|
3828
3828
|
title: "数据验证",
|
|
3829
3829
|
validFail: {
|
|
@@ -3981,7 +3981,7 @@ const Fs = {
|
|
|
3981
3981
|
label: "显示样式"
|
|
3982
3982
|
}
|
|
3983
3983
|
}
|
|
3984
|
-
},
|
|
3984
|
+
}, nl = {
|
|
3985
3985
|
dataValidation: {
|
|
3986
3986
|
title: "Проверка данных",
|
|
3987
3987
|
validFail: {
|
|
@@ -4138,8 +4138,8 @@ const Fs = {
|
|
|
4138
4138
|
}
|
|
4139
4139
|
}
|
|
4140
4140
|
};
|
|
4141
|
-
var Is = Object.defineProperty,
|
|
4142
|
-
for (var r = t > 1 ? void 0 : t ?
|
|
4141
|
+
var Is = Object.defineProperty, Ls = Object.getOwnPropertyDescriptor, Ts = (n, a, e, t) => {
|
|
4142
|
+
for (var r = t > 1 ? void 0 : t ? Ls(a, e) : a, o = n.length - 1, i; o >= 0; o--)
|
|
4143
4143
|
(i = n[o]) && (r = (t ? i(a, e, r) : i(r)) || r);
|
|
4144
4144
|
return t && r && Is(a, e, r), r;
|
|
4145
4145
|
}, Na = (n, a) => (e, t) => a(e, t, n);
|
|
@@ -4155,18 +4155,18 @@ let Mt = class extends fe {
|
|
|
4155
4155
|
col: c.startColumn
|
|
4156
4156
|
};
|
|
4157
4157
|
co(c, h).forEach((S) => {
|
|
4158
|
-
const
|
|
4158
|
+
const C = S.repeatStartCell, F = S.relativeRange, I = {
|
|
4159
4159
|
startRow: p.row,
|
|
4160
4160
|
startColumn: p.col,
|
|
4161
4161
|
endColumn: p.col,
|
|
4162
4162
|
endRow: p.row
|
|
4163
|
-
},
|
|
4164
|
-
startRow:
|
|
4165
|
-
startColumn:
|
|
4166
|
-
endColumn:
|
|
4167
|
-
endRow:
|
|
4163
|
+
}, B = {
|
|
4164
|
+
startRow: C.row,
|
|
4165
|
+
startColumn: C.col,
|
|
4166
|
+
endColumn: C.col,
|
|
4167
|
+
endRow: C.row
|
|
4168
4168
|
};
|
|
4169
|
-
|
|
4169
|
+
k.foreach(F, (b, q) => {
|
|
4170
4170
|
const D = Xe.getPositionRange(
|
|
4171
4171
|
{
|
|
4172
4172
|
startRow: b,
|
|
@@ -4175,7 +4175,7 @@ let Mt = class extends fe {
|
|
|
4175
4175
|
endRow: b
|
|
4176
4176
|
},
|
|
4177
4177
|
I
|
|
4178
|
-
), { row: y, col:
|
|
4178
|
+
), { row: y, col: W } = m(D.startRow, D.startColumn), N = l.getRuleIdByLocation(y, W);
|
|
4179
4179
|
if (N) {
|
|
4180
4180
|
const H = Xe.getPositionRange(
|
|
4181
4181
|
{
|
|
@@ -4184,7 +4184,7 @@ let Mt = class extends fe {
|
|
|
4184
4184
|
endColumn: q,
|
|
4185
4185
|
endRow: b
|
|
4186
4186
|
},
|
|
4187
|
-
|
|
4187
|
+
B
|
|
4188
4188
|
), { row: U, col: Z } = m(H.startRow, H.startColumn);
|
|
4189
4189
|
d.setValue(U, Z, N);
|
|
4190
4190
|
}
|
|
@@ -4202,8 +4202,8 @@ let Mt = class extends fe {
|
|
|
4202
4202
|
this.disposeWithMe(this._autoFillService.addHook(e));
|
|
4203
4203
|
}
|
|
4204
4204
|
};
|
|
4205
|
-
Mt =
|
|
4206
|
-
Ve(
|
|
4205
|
+
Mt = Ts([
|
|
4206
|
+
Ve(Ce.Ready, Mt),
|
|
4207
4207
|
Na(0, uo),
|
|
4208
4208
|
Na(1, E(K))
|
|
4209
4209
|
], Mt);
|
|
@@ -4211,7 +4211,7 @@ var As = Object.defineProperty, bs = Object.getOwnPropertyDescriptor, Ds = (n, a
|
|
|
4211
4211
|
for (var r = t > 1 ? void 0 : t ? bs(a, e) : a, o = n.length - 1, i; o >= 0; o--)
|
|
4212
4212
|
(i = n[o]) && (r = (t ? i(a, e, r) : i(r)) || r);
|
|
4213
4213
|
return t && r && As(a, e, r), r;
|
|
4214
|
-
},
|
|
4214
|
+
}, Wt = (n, a) => (e, t) => a(e, t, n);
|
|
4215
4215
|
let St = class extends fe {
|
|
4216
4216
|
constructor(a, e, t) {
|
|
4217
4217
|
super();
|
|
@@ -4229,7 +4229,7 @@ let St = class extends fe {
|
|
|
4229
4229
|
});
|
|
4230
4230
|
}
|
|
4231
4231
|
_collect(a, e, t) {
|
|
4232
|
-
const r = new
|
|
4232
|
+
const r = new nt();
|
|
4233
4233
|
this._copyInfo = {
|
|
4234
4234
|
unitId: a,
|
|
4235
4235
|
subUnitId: e,
|
|
@@ -4270,7 +4270,7 @@ let St = class extends fe {
|
|
|
4270
4270
|
c.forEach(({ startRange: g }) => {
|
|
4271
4271
|
var _;
|
|
4272
4272
|
(_ = this._copyInfo) == null || _.matrix.forValue((M, O, S) => {
|
|
4273
|
-
const
|
|
4273
|
+
const C = Xe.getPositionRange(
|
|
4274
4274
|
{
|
|
4275
4275
|
startRow: M,
|
|
4276
4276
|
endRow: M,
|
|
@@ -4278,10 +4278,10 @@ let St = class extends fe {
|
|
|
4278
4278
|
endColumn: O
|
|
4279
4279
|
},
|
|
4280
4280
|
g
|
|
4281
|
-
),
|
|
4282
|
-
!i.getRuleById(
|
|
4283
|
-
const { row:
|
|
4284
|
-
s.setValue(
|
|
4281
|
+
), F = `${r}-${S}`, I = o.getRuleById(S);
|
|
4282
|
+
!i.getRuleById(F) && I && h.set(F, { ...I, uid: F });
|
|
4283
|
+
const { row: B, col: b } = u(C.startRow, C.startColumn);
|
|
4284
|
+
s.setValue(B, b, F);
|
|
4285
4285
|
});
|
|
4286
4286
|
});
|
|
4287
4287
|
const { redoMutations: m, undoMutations: p } = ze(
|
|
@@ -4306,8 +4306,8 @@ let St = class extends fe {
|
|
|
4306
4306
|
endColumn: _
|
|
4307
4307
|
},
|
|
4308
4308
|
m
|
|
4309
|
-
), { row: S, col:
|
|
4310
|
-
i.setValue(S,
|
|
4309
|
+
), { row: S, col: C } = d(O.startRow, O.startColumn);
|
|
4310
|
+
i.setValue(S, C, M);
|
|
4311
4311
|
});
|
|
4312
4312
|
});
|
|
4313
4313
|
const { redoMutations: c, undoMutations: h } = ze(
|
|
@@ -4323,10 +4323,10 @@ let St = class extends fe {
|
|
|
4323
4323
|
}
|
|
4324
4324
|
};
|
|
4325
4325
|
St = Ds([
|
|
4326
|
-
Ve(
|
|
4327
|
-
|
|
4328
|
-
|
|
4329
|
-
|
|
4326
|
+
Ve(Ce.Ready, St),
|
|
4327
|
+
Wt(0, mo),
|
|
4328
|
+
Wt(1, E(K)),
|
|
4329
|
+
Wt(2, E(Be))
|
|
4330
4330
|
], St);
|
|
4331
4331
|
class pa {
|
|
4332
4332
|
constructor(a) {
|
|
@@ -4336,21 +4336,21 @@ class pa {
|
|
|
4336
4336
|
addRule(a) {
|
|
4337
4337
|
const e = a.uid;
|
|
4338
4338
|
a.ranges.forEach((t) => {
|
|
4339
|
-
|
|
4339
|
+
k.foreach(t, (r, o) => {
|
|
4340
4340
|
this.value.setValue(r, o, e);
|
|
4341
4341
|
});
|
|
4342
4342
|
});
|
|
4343
4343
|
}
|
|
4344
4344
|
removeRange(a) {
|
|
4345
4345
|
a.forEach((e) => {
|
|
4346
|
-
|
|
4346
|
+
k.foreach(e, (t, r) => {
|
|
4347
4347
|
this.value.realDeleteValue(t, r);
|
|
4348
4348
|
});
|
|
4349
4349
|
});
|
|
4350
4350
|
}
|
|
4351
4351
|
removeRule(a) {
|
|
4352
4352
|
a.ranges.forEach((e) => {
|
|
4353
|
-
|
|
4353
|
+
k.foreach(e, (t, r) => {
|
|
4354
4354
|
this.value.setValue(t, r, "");
|
|
4355
4355
|
});
|
|
4356
4356
|
});
|
|
@@ -4358,15 +4358,15 @@ class pa {
|
|
|
4358
4358
|
updateRange(a, e, t) {
|
|
4359
4359
|
const r = `${a}$`;
|
|
4360
4360
|
e.forEach((o) => {
|
|
4361
|
-
|
|
4361
|
+
k.foreach(o, (i, s) => {
|
|
4362
4362
|
this.value.getValue(i, s) === a && this.value.setValue(i, s, r);
|
|
4363
4363
|
});
|
|
4364
4364
|
}), t.forEach((o) => {
|
|
4365
|
-
|
|
4365
|
+
k.foreach(o, (i, s) => {
|
|
4366
4366
|
this.value.setValue(i, s, a);
|
|
4367
4367
|
});
|
|
4368
4368
|
}), e.forEach((o) => {
|
|
4369
|
-
|
|
4369
|
+
k.foreach(o, (i, s) => {
|
|
4370
4370
|
this.value.getValue(i, s) === r && this.value.realDeleteValue(i, s);
|
|
4371
4371
|
});
|
|
4372
4372
|
});
|
|
@@ -4415,7 +4415,7 @@ class pa {
|
|
|
4415
4415
|
}), t;
|
|
4416
4416
|
}
|
|
4417
4417
|
clone() {
|
|
4418
|
-
return new pa(new
|
|
4418
|
+
return new pa(new nt(this.value.clone()));
|
|
4419
4419
|
}
|
|
4420
4420
|
getValue(a, e) {
|
|
4421
4421
|
return this.value.getValue(a, e);
|
|
@@ -4437,12 +4437,12 @@ class ys extends Gr {
|
|
|
4437
4437
|
v(this, "_dataValidationCustomFormulaService");
|
|
4438
4438
|
v(this, "_cache");
|
|
4439
4439
|
v(this, "_dataValidationRefRangeController");
|
|
4440
|
-
this._injector = o, this._dataValidatorRegistryService = this._injector.get(
|
|
4441
|
-
const i = new
|
|
4440
|
+
this._injector = o, this._dataValidatorRegistryService = this._injector.get(Fe), this._dataValidationCacheService = this._injector.get(dt), this._dataValidationFormulaService = this._injector.get(le), this._dataValidationCustomFormulaService = this._injector.get(Qe), this._dataValidationRefRangeController = this._injector.get(rt), this._cache = this._dataValidationCacheService.ensureCache(e, t);
|
|
4441
|
+
const i = new nt();
|
|
4442
4442
|
r == null || r.forEach((s) => {
|
|
4443
4443
|
const l = s.uid;
|
|
4444
4444
|
s.ranges.forEach((d) => {
|
|
4445
|
-
|
|
4445
|
+
k.foreach(d, (u, c) => {
|
|
4446
4446
|
i.setValue(u, c, l);
|
|
4447
4447
|
});
|
|
4448
4448
|
});
|
|
@@ -4512,7 +4512,7 @@ var Ns = Object.defineProperty, Us = Object.getOwnPropertyDescriptor, xs = (n, a
|
|
|
4512
4512
|
for (var r = t > 1 ? void 0 : t ? Us(a, e) : a, o = n.length - 1, i; o >= 0; o--)
|
|
4513
4513
|
(i = n[o]) && (r = (t ? i(a, e, r) : i(r)) || r);
|
|
4514
4514
|
return t && r && Ns(a, e, r), r;
|
|
4515
|
-
},
|
|
4515
|
+
}, gt = (n, a) => (e, t) => a(e, t, n);
|
|
4516
4516
|
let Ot = class extends fe {
|
|
4517
4517
|
constructor(n, a, e, t) {
|
|
4518
4518
|
super(), this._resourceManagerService = n, this._univerInstanceService = a, this._dataValidationModel = e, this._injector = t, this._initDataValidationDataSource();
|
|
@@ -4530,35 +4530,40 @@ let Ot = class extends fe {
|
|
|
4530
4530
|
}
|
|
4531
4531
|
};
|
|
4532
4532
|
Ot = xs([
|
|
4533
|
-
Ve(
|
|
4534
|
-
|
|
4535
|
-
|
|
4536
|
-
|
|
4537
|
-
|
|
4533
|
+
Ve(Ce.Starting, Ot),
|
|
4534
|
+
gt(0, Br),
|
|
4535
|
+
gt(1, se),
|
|
4536
|
+
gt(2, E(K)),
|
|
4537
|
+
gt(3, E(Be))
|
|
4538
4538
|
], Ot);
|
|
4539
4539
|
var Ps = Object.defineProperty, js = Object.getOwnPropertyDescriptor, Bs = (n, a, e, t) => {
|
|
4540
4540
|
for (var r = t > 1 ? void 0 : t ? js(a, e) : a, o = n.length - 1, i; o >= 0; o--)
|
|
4541
4541
|
(i = n[o]) && (r = (t ? i(a, e, r) : i(r)) || r);
|
|
4542
4542
|
return t && r && Ps(a, e, r), r;
|
|
4543
|
-
}, Ht = (n, a) => (e, t) => a(e, t, n),
|
|
4544
|
-
let Ua = (
|
|
4545
|
-
constructor(n, a, e, t) {
|
|
4546
|
-
super(), this._injector = a, this._commandService = e, this._localeService = t;
|
|
4543
|
+
}, Ht = (n, a) => (e, t) => a(e, t, n), vt;
|
|
4544
|
+
let Ua = (vt = class extends $r {
|
|
4545
|
+
constructor(n = {}, a, e, t) {
|
|
4546
|
+
super(), this._config = n, this._injector = a, this._commandService = e, this._localeService = t, this._config = j.deepMerge({}, Ci, this._config);
|
|
4547
4547
|
}
|
|
4548
4548
|
onStarting(n) {
|
|
4549
4549
|
[
|
|
4550
4550
|
[Se],
|
|
4551
|
-
[
|
|
4552
|
-
[
|
|
4551
|
+
[Ct],
|
|
4552
|
+
[dt],
|
|
4553
4553
|
[le],
|
|
4554
4554
|
[Qe],
|
|
4555
4555
|
[je],
|
|
4556
4556
|
// controller
|
|
4557
4557
|
[Ot],
|
|
4558
4558
|
[_t],
|
|
4559
|
-
[
|
|
4559
|
+
[
|
|
4560
|
+
at,
|
|
4561
|
+
{
|
|
4562
|
+
useFactory: () => this._injector.createInstance(at, this._config)
|
|
4563
|
+
}
|
|
4564
|
+
],
|
|
4560
4565
|
[Rt],
|
|
4561
|
-
[
|
|
4566
|
+
[rt],
|
|
4562
4567
|
[Mt],
|
|
4563
4568
|
[St],
|
|
4564
4569
|
[tt]
|
|
@@ -4572,16 +4577,13 @@ let Ua = (gt = class extends $r {
|
|
|
4572
4577
|
ca,
|
|
4573
4578
|
rn,
|
|
4574
4579
|
ir,
|
|
4575
|
-
|
|
4580
|
+
st,
|
|
4576
4581
|
an
|
|
4577
4582
|
].forEach((a) => {
|
|
4578
4583
|
this._commandService.registerCommand(a);
|
|
4579
|
-
}), this._localeService.load({
|
|
4580
|
-
zhCN: Cs,
|
|
4581
|
-
enUS: Fs
|
|
4582
|
-
});
|
|
4584
|
+
}), this._localeService.load({ zhCN: Fs });
|
|
4583
4585
|
}
|
|
4584
|
-
}, v(
|
|
4586
|
+
}, v(vt, "pluginName", ma), v(vt, "type", me.UNIVER_SHEET), vt);
|
|
4585
4587
|
Ua = Bs([
|
|
4586
4588
|
Ht(1, E(Be)),
|
|
4587
4589
|
Ht(2, J),
|
|
@@ -4593,23 +4595,23 @@ export {
|
|
|
4593
4595
|
ma as DATA_VALIDATION_PLUGIN_NAME,
|
|
4594
4596
|
Rt as DataValidationAlertController,
|
|
4595
4597
|
Mt as DataValidationAutoFillController,
|
|
4596
|
-
|
|
4598
|
+
dt as DataValidationCacheService,
|
|
4597
4599
|
_t as DataValidationController,
|
|
4598
4600
|
St as DataValidationCopyPasteController,
|
|
4599
4601
|
Qe as DataValidationCustomFormulaService,
|
|
4600
4602
|
le as DataValidationFormulaService,
|
|
4601
|
-
|
|
4603
|
+
rt as DataValidationRefRangeController,
|
|
4602
4604
|
tt as DataValidationRejectInputController,
|
|
4603
|
-
|
|
4605
|
+
at as DataValidationRenderController,
|
|
4604
4606
|
rn as HideDataValidationDropdown,
|
|
4605
|
-
|
|
4606
|
-
|
|
4607
|
-
|
|
4608
|
-
|
|
4607
|
+
ll as ICommandService,
|
|
4608
|
+
dl as LocaleService,
|
|
4609
|
+
ul as Plugin,
|
|
4610
|
+
Ct as SheetDataValidationService,
|
|
4609
4611
|
ca as ShowDataValidationDropdown,
|
|
4610
4612
|
Ua as UniverSheetsDataValidationPlugin,
|
|
4611
4613
|
sr as UpdateSheetDataValidationRangeCommand,
|
|
4612
|
-
|
|
4613
|
-
|
|
4614
|
-
|
|
4614
|
+
ol as enUS,
|
|
4615
|
+
nl as ruRU,
|
|
4616
|
+
Fs as zhCN
|
|
4615
4617
|
};
|