@univerjs/core 1.3.1 → 1.5.0
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/README.md +7 -5
- package/lib/cjs/facade.js +20 -35
- package/lib/cjs/index.js +448 -592
- package/lib/es/facade.js +20 -35
- package/lib/es/index.js +448 -593
- package/lib/facade.js +20 -35
- package/lib/index.js +448 -593
- package/lib/types/bases/typedef.d.ts +25 -25
- package/lib/types/common/interceptor.d.ts +6 -3
- package/lib/types/common/regexp/index.d.ts +4 -4
- package/lib/types/docs/data-model/paragraph-style.d.ts +5 -2
- package/lib/types/docs/data-model/preset-list-type.d.ts +8 -8
- package/lib/types/docs/data-model/rich-text-builder.d.ts +1 -1
- package/lib/types/docs/data-model/text-x/build-utils/custom-range.d.ts +1 -1
- package/lib/types/docs/data-model/text-x/build-utils/index.d.ts +15 -13
- package/lib/types/docs/data-model/text-x/utils.d.ts +20 -20
- package/lib/types/index.d.ts +1 -0
- package/lib/types/services/lifecycle/lifecycle.d.ts +4 -4
- package/lib/types/services/resource-loader/type.d.ts +2 -2
- package/lib/types/services/user-manager/user-manager.service.d.ts +2 -2
- package/lib/types/shared/common.d.ts +1 -0
- package/lib/types/shared/r-tree.d.ts +3 -1
- package/lib/types/shared/sort-rules.d.ts +2 -2
- package/lib/types/sheets/sheet-skeleton.d.ts +12 -4
- package/lib/types/sheets/typedef.d.ts +8 -3
- package/lib/types/types/enum/sheet-types.d.ts +2 -1
- package/lib/types/types/interfaces/i-document-data.d.ts +1 -5
- package/lib/types/types/interfaces/i-drawing.d.ts +3 -1
- package/lib/types/types/interfaces/index.d.ts +0 -3
- package/lib/types/univer.d.ts +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +26 -26
- package/package.json +8 -8
- package/lib/types/slides/slide-data-model.d.ts +0 -27
- package/lib/types/types/enum/place-holder-type.d.ts +0 -34
- package/lib/types/types/interfaces/i-image-properties.d.ts +0 -34
- package/lib/types/types/interfaces/i-placeholder.d.ts +0 -21
- package/lib/types/types/interfaces/i-shape-properties.d.ts +0 -30
package/lib/es/index.js
CHANGED
|
@@ -10,24 +10,23 @@ import fastDiff from "fast-diff";
|
|
|
10
10
|
import { defaultTheme } from "@univerjs/themes";
|
|
11
11
|
import KDBush from "kdbush";
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
// \0rolldown/runtime.js
|
|
14
14
|
var __defProp = Object.defineProperty;
|
|
15
|
-
var __exportAll = (all,
|
|
16
|
-
let target = {};
|
|
15
|
+
var __exportAll = (all, flags) => {
|
|
16
|
+
let target = Object.setPrototypeOf({}, null);
|
|
17
17
|
for (var name in all) {
|
|
18
18
|
__defProp(target, name, {
|
|
19
19
|
get: all[name],
|
|
20
20
|
enumerable: true
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
|
-
if (!
|
|
23
|
+
if (!(flags & 1)) {
|
|
24
24
|
__defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
25
25
|
}
|
|
26
|
-
return target;
|
|
26
|
+
return flags & 2 ? target : Object.preventExtensions(target);
|
|
27
27
|
};
|
|
28
28
|
|
|
29
|
-
|
|
30
|
-
//#region src/common/shims.ts
|
|
29
|
+
// src/common/shims.ts
|
|
31
30
|
/**
|
|
32
31
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
33
32
|
*
|
|
@@ -122,8 +121,7 @@ function installShims() {
|
|
|
122
121
|
installStringAt();
|
|
123
122
|
}
|
|
124
123
|
|
|
125
|
-
|
|
126
|
-
//#region \0@oxc-project+runtime@0.153.0/helpers/esm/typeof.js
|
|
124
|
+
// \0@oxc-project+runtime@0.157.0/helpers/esm/typeof.js
|
|
127
125
|
function _typeof(o) {
|
|
128
126
|
"@babel/helpers - typeof";
|
|
129
127
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
@@ -133,28 +131,25 @@ function _typeof(o) {
|
|
|
133
131
|
}, _typeof(o);
|
|
134
132
|
}
|
|
135
133
|
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
function toPrimitive(t, r) {
|
|
134
|
+
// \0@oxc-project+runtime@0.157.0/helpers/esm/toPrimitive.js
|
|
135
|
+
function toPrimitive(t, e) {
|
|
139
136
|
if ("object" != _typeof(t) || !t) return t;
|
|
140
|
-
var
|
|
141
|
-
if (void 0 !==
|
|
142
|
-
var i =
|
|
137
|
+
var r;
|
|
138
|
+
if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) {
|
|
139
|
+
var i = r.call(t, e || "default");
|
|
143
140
|
if ("object" != _typeof(i)) return i;
|
|
144
141
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
145
142
|
}
|
|
146
|
-
return ("string" ===
|
|
143
|
+
return ("string" === e ? String : Number)(t);
|
|
147
144
|
}
|
|
148
145
|
|
|
149
|
-
|
|
150
|
-
//#region \0@oxc-project+runtime@0.153.0/helpers/esm/toPropertyKey.js
|
|
146
|
+
// \0@oxc-project+runtime@0.157.0/helpers/esm/toPropertyKey.js
|
|
151
147
|
function toPropertyKey(t) {
|
|
152
148
|
var i = toPrimitive(t, "string");
|
|
153
149
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
154
150
|
}
|
|
155
151
|
|
|
156
|
-
|
|
157
|
-
//#region \0@oxc-project+runtime@0.153.0/helpers/esm/defineProperty.js
|
|
152
|
+
// \0@oxc-project+runtime@0.157.0/helpers/esm/defineProperty.js
|
|
158
153
|
function _defineProperty(e, r, t) {
|
|
159
154
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
160
155
|
value: t,
|
|
@@ -164,8 +159,7 @@ function _defineProperty(e, r, t) {
|
|
|
164
159
|
}) : e[r] = t, e;
|
|
165
160
|
}
|
|
166
161
|
|
|
167
|
-
|
|
168
|
-
//#region src/shared/lifecycle.ts
|
|
162
|
+
// src/shared/lifecycle.ts
|
|
169
163
|
function isSubscriptionLike(value) {
|
|
170
164
|
return value instanceof Subscription || value instanceof Subject || value && "closed" in value && typeof value.unsubscribe !== "undefined";
|
|
171
165
|
}
|
|
@@ -246,15 +240,13 @@ var RCDisposable = class extends Disposable {
|
|
|
246
240
|
}
|
|
247
241
|
};
|
|
248
242
|
|
|
249
|
-
|
|
250
|
-
//#region src/common/unit.ts
|
|
243
|
+
// src/common/unit.ts
|
|
251
244
|
/**
|
|
252
245
|
* The base class for all units.
|
|
253
246
|
*/
|
|
254
247
|
var UnitModel = class extends Disposable {};
|
|
255
248
|
|
|
256
|
-
|
|
257
|
-
//#region src/common/url.ts
|
|
249
|
+
// src/common/url.ts
|
|
258
250
|
/**
|
|
259
251
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
260
252
|
*
|
|
@@ -597,8 +589,7 @@ function resolveWithBasePath(url, baseURL) {
|
|
|
597
589
|
}
|
|
598
590
|
}
|
|
599
591
|
|
|
600
|
-
|
|
601
|
-
//#region src/shared/tools.ts
|
|
592
|
+
// src/shared/tools.ts
|
|
602
593
|
/**
|
|
603
594
|
* Deep diff between two object
|
|
604
595
|
* @param oneValue The first test value
|
|
@@ -883,8 +874,7 @@ const isNodeEnv = () => {
|
|
|
883
874
|
return typeof process !== "undefined" && process.versions != null && process.versions.node != null;
|
|
884
875
|
};
|
|
885
876
|
|
|
886
|
-
|
|
887
|
-
//#region src/types/enum/auto-fill-series.ts
|
|
877
|
+
// src/types/enum/auto-fill-series.ts
|
|
888
878
|
/**
|
|
889
879
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
890
880
|
*
|
|
@@ -912,8 +902,7 @@ let AutoFillSeries = /* @__PURE__ */ function(AutoFillSeries) {
|
|
|
912
902
|
return AutoFillSeries;
|
|
913
903
|
}({});
|
|
914
904
|
|
|
915
|
-
|
|
916
|
-
//#region src/types/enum/border-style-types.ts
|
|
905
|
+
// src/types/enum/border-style-types.ts
|
|
917
906
|
/**
|
|
918
907
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
919
908
|
*
|
|
@@ -968,8 +957,7 @@ let BorderType = /* @__PURE__ */ function(BorderType) {
|
|
|
968
957
|
return BorderType;
|
|
969
958
|
}({});
|
|
970
959
|
|
|
971
|
-
|
|
972
|
-
//#region src/types/enum/color-type.ts
|
|
960
|
+
// src/types/enum/color-type.ts
|
|
973
961
|
/**
|
|
974
962
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
975
963
|
*
|
|
@@ -993,8 +981,7 @@ let ColorType = /* @__PURE__ */ function(ColorType) {
|
|
|
993
981
|
return ColorType;
|
|
994
982
|
}({});
|
|
995
983
|
|
|
996
|
-
|
|
997
|
-
//#region src/types/enum/common-hide-types.ts
|
|
984
|
+
// src/types/enum/common-hide-types.ts
|
|
998
985
|
/**
|
|
999
986
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
1000
987
|
*
|
|
@@ -1016,8 +1003,7 @@ let CommonHideTypes = /* @__PURE__ */ function(CommonHideTypes) {
|
|
|
1016
1003
|
return CommonHideTypes;
|
|
1017
1004
|
}({});
|
|
1018
1005
|
|
|
1019
|
-
|
|
1020
|
-
//#region src/types/enum/copy-paste-type.ts
|
|
1006
|
+
// src/types/enum/copy-paste-type.ts
|
|
1021
1007
|
/**
|
|
1022
1008
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
1023
1009
|
*
|
|
@@ -1045,8 +1031,7 @@ let CopyPasteType = /* @__PURE__ */ function(CopyPasteType) {
|
|
|
1045
1031
|
return CopyPasteType;
|
|
1046
1032
|
}({});
|
|
1047
1033
|
|
|
1048
|
-
|
|
1049
|
-
//#region src/types/enum/date-system.ts
|
|
1034
|
+
// src/types/enum/date-system.ts
|
|
1050
1035
|
/**
|
|
1051
1036
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
1052
1037
|
*
|
|
@@ -1071,8 +1056,7 @@ let DateSystem = /* @__PURE__ */ function(DateSystem) {
|
|
|
1071
1056
|
return DateSystem;
|
|
1072
1057
|
}({});
|
|
1073
1058
|
|
|
1074
|
-
|
|
1075
|
-
//#region src/types/enum/delete-direction.ts
|
|
1059
|
+
// src/types/enum/delete-direction.ts
|
|
1076
1060
|
/**
|
|
1077
1061
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
1078
1062
|
*
|
|
@@ -1094,8 +1078,7 @@ let DeleteDirection = /* @__PURE__ */ function(DeleteDirection) {
|
|
|
1094
1078
|
return DeleteDirection;
|
|
1095
1079
|
}({});
|
|
1096
1080
|
|
|
1097
|
-
|
|
1098
|
-
//#region src/types/enum/developer-metadata-visibility.ts
|
|
1081
|
+
// src/types/enum/developer-metadata-visibility.ts
|
|
1099
1082
|
/**
|
|
1100
1083
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
1101
1084
|
*
|
|
@@ -1117,8 +1100,7 @@ let DeveloperMetadataVisibility = /* @__PURE__ */ function(DeveloperMetadataVisi
|
|
|
1117
1100
|
return DeveloperMetadataVisibility;
|
|
1118
1101
|
}({});
|
|
1119
1102
|
|
|
1120
|
-
|
|
1121
|
-
//#region src/types/enum/dimension.ts
|
|
1103
|
+
// src/types/enum/dimension.ts
|
|
1122
1104
|
/**
|
|
1123
1105
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
1124
1106
|
*
|
|
@@ -1146,8 +1128,7 @@ let Dimension = /* @__PURE__ */ function(Dimension) {
|
|
|
1146
1128
|
return Dimension;
|
|
1147
1129
|
}({});
|
|
1148
1130
|
|
|
1149
|
-
|
|
1150
|
-
//#region src/types/enum/direction.ts
|
|
1131
|
+
// src/types/enum/direction.ts
|
|
1151
1132
|
/**
|
|
1152
1133
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
1153
1134
|
*
|
|
@@ -1179,8 +1160,7 @@ function getReverseDirection(direction) {
|
|
|
1179
1160
|
}
|
|
1180
1161
|
}
|
|
1181
1162
|
|
|
1182
|
-
|
|
1183
|
-
//#region src/types/enum/interpolation-point-type.ts
|
|
1163
|
+
// src/types/enum/interpolation-point-type.ts
|
|
1184
1164
|
/**
|
|
1185
1165
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
1186
1166
|
*
|
|
@@ -1206,8 +1186,7 @@ let InterpolationPointType = /* @__PURE__ */ function(InterpolationPointType) {
|
|
|
1206
1186
|
return InterpolationPointType;
|
|
1207
1187
|
}({});
|
|
1208
1188
|
|
|
1209
|
-
|
|
1210
|
-
//#region src/types/enum/locale-type.ts
|
|
1189
|
+
// src/types/enum/locale-type.ts
|
|
1211
1190
|
/**
|
|
1212
1191
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
1213
1192
|
*
|
|
@@ -1348,8 +1327,7 @@ const LOCALE_META = {
|
|
|
1348
1327
|
}
|
|
1349
1328
|
};
|
|
1350
1329
|
|
|
1351
|
-
|
|
1352
|
-
//#region src/types/enum/mention-type.ts
|
|
1330
|
+
// src/types/enum/mention-type.ts
|
|
1353
1331
|
/**
|
|
1354
1332
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
1355
1333
|
*
|
|
@@ -1374,8 +1352,7 @@ let MentionType = /* @__PURE__ */ function(MentionType) {
|
|
|
1374
1352
|
return MentionType;
|
|
1375
1353
|
}({});
|
|
1376
1354
|
|
|
1377
|
-
|
|
1378
|
-
//#region src/types/enum/protection-type.ts
|
|
1355
|
+
// src/types/enum/protection-type.ts
|
|
1379
1356
|
/**
|
|
1380
1357
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
1381
1358
|
*
|
|
@@ -1397,8 +1374,7 @@ let ProtectionType = /* @__PURE__ */ function(ProtectionType) {
|
|
|
1397
1374
|
return ProtectionType;
|
|
1398
1375
|
}({});
|
|
1399
1376
|
|
|
1400
|
-
|
|
1401
|
-
//#region src/types/enum/relative-date.ts
|
|
1377
|
+
// src/types/enum/relative-date.ts
|
|
1402
1378
|
/**
|
|
1403
1379
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
1404
1380
|
*
|
|
@@ -1425,8 +1401,7 @@ let RelativeDate = /* @__PURE__ */ function(RelativeDate) {
|
|
|
1425
1401
|
return RelativeDate;
|
|
1426
1402
|
}({});
|
|
1427
1403
|
|
|
1428
|
-
|
|
1429
|
-
//#region src/types/enum/sheet-types.ts
|
|
1404
|
+
// src/types/enum/sheet-types.ts
|
|
1430
1405
|
/**
|
|
1431
1406
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
1432
1407
|
*
|
|
@@ -1446,11 +1421,11 @@ let SheetTypes = /* @__PURE__ */ function(SheetTypes) {
|
|
|
1446
1421
|
SheetTypes[SheetTypes["GRID"] = 0] = "GRID";
|
|
1447
1422
|
SheetTypes[SheetTypes["KANBAN"] = 1] = "KANBAN";
|
|
1448
1423
|
SheetTypes[SheetTypes["GANTT"] = 2] = "GANTT";
|
|
1424
|
+
SheetTypes[SheetTypes["CHART"] = 3] = "CHART";
|
|
1449
1425
|
return SheetTypes;
|
|
1450
1426
|
}({});
|
|
1451
1427
|
|
|
1452
|
-
|
|
1453
|
-
//#region src/types/enum/text-style.ts
|
|
1428
|
+
// src/types/enum/text-style.ts
|
|
1454
1429
|
/**
|
|
1455
1430
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
1456
1431
|
*
|
|
@@ -1593,8 +1568,7 @@ let CellValueType = /* @__PURE__ */ function(CellValueType) {
|
|
|
1593
1568
|
return CellValueType;
|
|
1594
1569
|
}({});
|
|
1595
1570
|
|
|
1596
|
-
|
|
1597
|
-
//#region src/types/enum/theme-color-type.ts
|
|
1571
|
+
// src/types/enum/theme-color-type.ts
|
|
1598
1572
|
/**
|
|
1599
1573
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
1600
1574
|
*
|
|
@@ -1667,13 +1641,11 @@ let ThemeColors = /* @__PURE__ */ function(ThemeColors) {
|
|
|
1667
1641
|
return ThemeColors;
|
|
1668
1642
|
}({});
|
|
1669
1643
|
|
|
1670
|
-
|
|
1671
|
-
//#region package.json
|
|
1644
|
+
// package.json
|
|
1672
1645
|
var name = "@univerjs/core";
|
|
1673
|
-
var version = "1.
|
|
1646
|
+
var version = "1.5.0";
|
|
1674
1647
|
|
|
1675
|
-
|
|
1676
|
-
//#region src/common/array.ts
|
|
1648
|
+
// src/common/array.ts
|
|
1677
1649
|
/**
|
|
1678
1650
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
1679
1651
|
*
|
|
@@ -1759,8 +1731,7 @@ function makeArray(thing) {
|
|
|
1759
1731
|
return [thing];
|
|
1760
1732
|
}
|
|
1761
1733
|
|
|
1762
|
-
|
|
1763
|
-
//#region src/common/di.ts
|
|
1734
|
+
// src/common/di.ts
|
|
1764
1735
|
/**
|
|
1765
1736
|
* Register the dependencies to the injector.
|
|
1766
1737
|
* @param injector The injector to register the dependencies.
|
|
@@ -1780,8 +1751,7 @@ function touchDependencies(injector, dependencies) {
|
|
|
1780
1751
|
});
|
|
1781
1752
|
}
|
|
1782
1753
|
|
|
1783
|
-
|
|
1784
|
-
//#region src/common/error.ts
|
|
1754
|
+
// src/common/error.ts
|
|
1785
1755
|
/**
|
|
1786
1756
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
1787
1757
|
*
|
|
@@ -1810,8 +1780,7 @@ var CanceledError = class extends CustomCommandExecutionError {
|
|
|
1810
1780
|
}
|
|
1811
1781
|
};
|
|
1812
1782
|
|
|
1813
|
-
|
|
1814
|
-
//#region src/common/sequence.ts
|
|
1783
|
+
// src/common/sequence.ts
|
|
1815
1784
|
/**
|
|
1816
1785
|
* Execute promise tasks in sequence, if one of the tasks return false, the sequence will be stopped.
|
|
1817
1786
|
* @param tasks All promise tasks that need to be triggered.
|
|
@@ -1859,8 +1828,7 @@ function sequence(tasks) {
|
|
|
1859
1828
|
};
|
|
1860
1829
|
}
|
|
1861
1830
|
|
|
1862
|
-
|
|
1863
|
-
//#region src/services/config/config.service.ts
|
|
1831
|
+
// src/services/config/config.service.ts
|
|
1864
1832
|
/**
|
|
1865
1833
|
* IConfig provides universal configuration for the whole application.
|
|
1866
1834
|
*/
|
|
@@ -1898,8 +1866,7 @@ var ConfigService = class {
|
|
|
1898
1866
|
}
|
|
1899
1867
|
};
|
|
1900
1868
|
|
|
1901
|
-
|
|
1902
|
-
//#region src/services/context/context.service.ts
|
|
1869
|
+
// src/services/context/context.service.ts
|
|
1903
1870
|
/**
|
|
1904
1871
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
1905
1872
|
*
|
|
@@ -1944,8 +1911,7 @@ var ContextService = class extends Disposable {
|
|
|
1944
1911
|
}
|
|
1945
1912
|
};
|
|
1946
1913
|
|
|
1947
|
-
|
|
1948
|
-
//#region src/services/log/log.service.ts
|
|
1914
|
+
// src/services/log/log.service.ts
|
|
1949
1915
|
/**
|
|
1950
1916
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
1951
1917
|
*
|
|
@@ -2015,16 +1981,14 @@ function hashLogContent(...args) {
|
|
|
2015
1981
|
return args.map((a) => JSON.stringify(a)).join("");
|
|
2016
1982
|
}
|
|
2017
1983
|
|
|
2018
|
-
|
|
2019
|
-
//#region \0@oxc-project+runtime@0.153.0/helpers/esm/decorateParam.js
|
|
1984
|
+
// \0@oxc-project+runtime@0.157.0/helpers/esm/decorateParam.js
|
|
2020
1985
|
function __decorateParam(paramIndex, decorator) {
|
|
2021
1986
|
return function(target, key) {
|
|
2022
1987
|
decorator(target, key, paramIndex);
|
|
2023
1988
|
};
|
|
2024
1989
|
}
|
|
2025
1990
|
|
|
2026
|
-
|
|
2027
|
-
//#region \0@oxc-project+runtime@0.153.0/helpers/esm/decorate.js
|
|
1991
|
+
// \0@oxc-project+runtime@0.157.0/helpers/esm/decorate.js
|
|
2028
1992
|
function __decorate(decorators, target, key, desc) {
|
|
2029
1993
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2030
1994
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -2032,8 +1996,7 @@ function __decorate(decorators, target, key, desc) {
|
|
|
2032
1996
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2033
1997
|
}
|
|
2034
1998
|
|
|
2035
|
-
|
|
2036
|
-
//#region src/services/command/command.service.ts
|
|
1999
|
+
// src/services/command/command.service.ts
|
|
2037
2000
|
/**
|
|
2038
2001
|
* The config key for enabling command execution logging.
|
|
2039
2002
|
* Set via `logCommandExecution` in `IUniverConfig` when calling `new Univer()`.
|
|
@@ -2376,8 +2339,7 @@ function sequenceExecuteAsync(tasks, commandService, options) {
|
|
|
2376
2339
|
return sequenceAsync(promises);
|
|
2377
2340
|
}
|
|
2378
2341
|
|
|
2379
|
-
|
|
2380
|
-
//#region src/shared/rxjs.ts
|
|
2342
|
+
// src/shared/rxjs.ts
|
|
2381
2343
|
/**
|
|
2382
2344
|
* Creates an observable from a callback function.
|
|
2383
2345
|
*
|
|
@@ -2423,8 +2385,7 @@ function convertObservableToBehaviorSubject(observable, initValue) {
|
|
|
2423
2385
|
return subject;
|
|
2424
2386
|
}
|
|
2425
2387
|
|
|
2426
|
-
|
|
2427
|
-
//#region src/shared/after-init-apply.ts
|
|
2388
|
+
// src/shared/after-init-apply.ts
|
|
2428
2389
|
const afterInitApply = (commandService) => {
|
|
2429
2390
|
return new Promise((res) => {
|
|
2430
2391
|
merge$1(fromCallback(commandService.onCommandExecuted.bind(commandService)).pipe(filter$1(([info]) => {
|
|
@@ -2435,8 +2396,7 @@ const afterInitApply = (commandService) => {
|
|
|
2435
2396
|
});
|
|
2436
2397
|
};
|
|
2437
2398
|
|
|
2438
|
-
|
|
2439
|
-
//#region src/shared/array-search.ts
|
|
2399
|
+
// src/shared/array-search.ts
|
|
2440
2400
|
/**
|
|
2441
2401
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
2442
2402
|
*
|
|
@@ -2538,8 +2498,7 @@ function searchArray(arr, target, firstMatch = false) {
|
|
|
2538
2498
|
return index;
|
|
2539
2499
|
}
|
|
2540
2500
|
|
|
2541
|
-
|
|
2542
|
-
//#region src/shared/blob.ts
|
|
2501
|
+
// src/shared/blob.ts
|
|
2543
2502
|
/**
|
|
2544
2503
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
2545
2504
|
*
|
|
@@ -2560,8 +2519,7 @@ function codeToBlob(code) {
|
|
|
2560
2519
|
return window.URL.createObjectURL(blob);
|
|
2561
2520
|
}
|
|
2562
2521
|
|
|
2563
|
-
|
|
2564
|
-
//#region src/shared/check-if-move.ts
|
|
2522
|
+
// src/shared/check-if-move.ts
|
|
2565
2523
|
const MOVE_BUFFER_VALUE = 2;
|
|
2566
2524
|
const ROTATE_BUFFER_VALUE = 1;
|
|
2567
2525
|
function checkIfMove(transform, previousTransform) {
|
|
@@ -2575,8 +2533,7 @@ function checkIfMove(transform, previousTransform) {
|
|
|
2575
2533
|
return Math.abs(left - leftPrev) > 2 || Math.abs(top - topPrev) > 2 || Math.abs(allWidth - allWidthPrev) > 2 || Math.abs(allHeight - allHeightPrev) > 2 || Math.abs(angle - anglePrev) > 1;
|
|
2576
2534
|
}
|
|
2577
2535
|
|
|
2578
|
-
|
|
2579
|
-
//#region src/shared/color/color-kit.ts
|
|
2536
|
+
// src/shared/color/color-kit.ts
|
|
2580
2537
|
const RGB_PAREN = "rgb(";
|
|
2581
2538
|
const RGBA_PAREN = "rgba(";
|
|
2582
2539
|
const COLORS = {
|
|
@@ -3747,8 +3704,7 @@ function isWhiteColor(color) {
|
|
|
3747
3704
|
return false;
|
|
3748
3705
|
}
|
|
3749
3706
|
|
|
3750
|
-
|
|
3751
|
-
//#region src/shared/command-enum.ts
|
|
3707
|
+
// src/shared/command-enum.ts
|
|
3752
3708
|
/**
|
|
3753
3709
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
3754
3710
|
*
|
|
@@ -3770,8 +3726,7 @@ let UpdateDocsAttributeType = /* @__PURE__ */ function(UpdateDocsAttributeType)
|
|
|
3770
3726
|
return UpdateDocsAttributeType;
|
|
3771
3727
|
}({});
|
|
3772
3728
|
|
|
3773
|
-
|
|
3774
|
-
//#region src/sheets/typedef.ts
|
|
3729
|
+
// src/sheets/typedef.ts
|
|
3775
3730
|
/** Worksheet-only hiding states; row/column and cell flags still use BooleanNumber. */
|
|
3776
3731
|
let WorksheetHiddenState = /* @__PURE__ */ function(WorksheetHiddenState) {
|
|
3777
3732
|
/** Visible in the sheet bar. Preserves the existing hidden: 0 value. */
|
|
@@ -3862,8 +3817,7 @@ let CellModeEnum = /* @__PURE__ */ function(CellModeEnum) {
|
|
|
3862
3817
|
return CellModeEnum;
|
|
3863
3818
|
}({});
|
|
3864
3819
|
|
|
3865
|
-
|
|
3866
|
-
//#region src/types/const/theme-color-map.ts
|
|
3820
|
+
// src/types/const/theme-color-map.ts
|
|
3867
3821
|
const THEME_COLORS = { ["Office"]: {
|
|
3868
3822
|
[4]: "#4472C4",
|
|
3869
3823
|
[5]: "#ED7D31",
|
|
@@ -3879,8 +3833,7 @@ const THEME_COLORS = { ["Office"]: {
|
|
|
3879
3833
|
[11]: "#954F72"
|
|
3880
3834
|
} };
|
|
3881
3835
|
|
|
3882
|
-
|
|
3883
|
-
//#region src/shared/numfmt/constants.ts
|
|
3836
|
+
// src/shared/numfmt/constants.ts
|
|
3884
3837
|
const MIN_L_DATE = -694324;
|
|
3885
3838
|
const MAX_L_DATE = 35830291;
|
|
3886
3839
|
const TOKEN_GENERAL = "general";
|
|
@@ -4005,8 +3958,7 @@ const currencySymbols$1 = [
|
|
|
4005
3958
|
];
|
|
4006
3959
|
const reCurrencySymbols = new RegExp(`[${currencySymbols$1.join("")}]`);
|
|
4007
3960
|
|
|
4008
|
-
|
|
4009
|
-
//#region src/shared/numfmt/decimal.ts
|
|
3961
|
+
// src/shared/numfmt/decimal.ts
|
|
4010
3962
|
function decimalFromNumber(value) {
|
|
4011
3963
|
if (!Number.isFinite(value)) throw new RangeError("decimalFromNumber requires a finite number");
|
|
4012
3964
|
const negative = value < 0 || Object.is(value, -0);
|
|
@@ -4094,8 +4046,7 @@ function roundScientificDecimal(value, integerDigits, hasIntegerPattern, fractio
|
|
|
4094
4046
|
};
|
|
4095
4047
|
}
|
|
4096
4048
|
|
|
4097
|
-
|
|
4098
|
-
//#region src/shared/numfmt/code-to-locale.ts
|
|
4049
|
+
// src/shared/numfmt/code-to-locale.ts
|
|
4099
4050
|
/**
|
|
4100
4051
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
4101
4052
|
*
|
|
@@ -4300,8 +4251,7 @@ const codeToLocale = Object.freeze({
|
|
|
4300
4251
|
1077: "zu"
|
|
4301
4252
|
});
|
|
4302
4253
|
|
|
4303
|
-
|
|
4304
|
-
//#region src/shared/numfmt/locale.ts
|
|
4254
|
+
// src/shared/numfmt/locale.ts
|
|
4305
4255
|
const re_locale = /^([a-z\d]+)(?:[_-]([a-z\d]+))?(?:\.([a-z\d]+))?(?:@([a-z\d]+))?$/i;
|
|
4306
4256
|
const locales = {};
|
|
4307
4257
|
/**
|
|
@@ -4981,8 +4931,7 @@ addLocale({
|
|
|
4981
4931
|
ampm: _("am;pm")
|
|
4982
4932
|
}, "hi");
|
|
4983
4933
|
|
|
4984
|
-
|
|
4985
|
-
//#region src/shared/numfmt/parse-format-section.ts
|
|
4934
|
+
// src/shared/numfmt/parse-format-section.ts
|
|
4986
4935
|
function getNumberPattern(part, prefix) {
|
|
4987
4936
|
switch (prefix) {
|
|
4988
4937
|
case "int": return part.int_pattern;
|
|
@@ -5371,8 +5320,7 @@ function parseFormatSection(inputTokens) {
|
|
|
5371
5320
|
return part;
|
|
5372
5321
|
}
|
|
5373
5322
|
|
|
5374
|
-
|
|
5375
|
-
//#region src/shared/numfmt/clamp.ts
|
|
5323
|
+
// src/shared/numfmt/clamp.ts
|
|
5376
5324
|
/**
|
|
5377
5325
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
5378
5326
|
*
|
|
@@ -5395,8 +5343,7 @@ function clamp(number) {
|
|
|
5395
5343
|
return isFinite(mag) ? Math.round(number * mag) / mag : 0;
|
|
5396
5344
|
}
|
|
5397
5345
|
|
|
5398
|
-
|
|
5399
|
-
//#region src/shared/numfmt/dec-to-frac.ts
|
|
5346
|
+
// src/shared/numfmt/dec-to-frac.ts
|
|
5400
5347
|
/**
|
|
5401
5348
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
5402
5349
|
*
|
|
@@ -5453,8 +5400,7 @@ function dec2frac(number, numeratorMaxDigits = 2, denominatorMaxDigits = 2) {
|
|
|
5453
5400
|
return r;
|
|
5454
5401
|
}
|
|
5455
5402
|
|
|
5456
|
-
|
|
5457
|
-
//#region src/shared/numfmt/num-dec.ts
|
|
5403
|
+
// src/shared/numfmt/num-dec.ts
|
|
5458
5404
|
const ZERO_DIGITS = {
|
|
5459
5405
|
total: 1,
|
|
5460
5406
|
sign: 0,
|
|
@@ -5480,8 +5426,7 @@ function numDec(value, includeSign = true) {
|
|
|
5480
5426
|
};
|
|
5481
5427
|
}
|
|
5482
5428
|
|
|
5483
|
-
|
|
5484
|
-
//#region src/shared/numfmt/number-props.ts
|
|
5429
|
+
// src/shared/numfmt/number-props.ts
|
|
5485
5430
|
/**
|
|
5486
5431
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
5487
5432
|
*
|
|
@@ -5506,8 +5451,7 @@ function getSignificand(number, exponent = 1) {
|
|
|
5506
5451
|
return number * 10 ** -exponent;
|
|
5507
5452
|
}
|
|
5508
5453
|
|
|
5509
|
-
|
|
5510
|
-
//#region src/shared/numfmt/round.ts
|
|
5454
|
+
// src/shared/numfmt/round.ts
|
|
5511
5455
|
/**
|
|
5512
5456
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
5513
5457
|
*
|
|
@@ -5541,8 +5485,7 @@ function round(number, places = 0) {
|
|
|
5541
5485
|
return Number.isFinite(rounded) ? rounded : number;
|
|
5542
5486
|
}
|
|
5543
5487
|
|
|
5544
|
-
|
|
5545
|
-
//#region src/shared/numfmt/general.ts
|
|
5488
|
+
// src/shared/numfmt/general.ts
|
|
5546
5489
|
function fixLocale(value, locale) {
|
|
5547
5490
|
return value.replace(/\./, locale.decimal);
|
|
5548
5491
|
}
|
|
@@ -5619,8 +5562,7 @@ function general(output, part, value, locale, decimalValue = null) {
|
|
|
5619
5562
|
return output;
|
|
5620
5563
|
}
|
|
5621
5564
|
|
|
5622
|
-
|
|
5623
|
-
//#region src/shared/numfmt/pad.ts
|
|
5565
|
+
// src/shared/numfmt/pad.ts
|
|
5624
5566
|
/**
|
|
5625
5567
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
5626
5568
|
*
|
|
@@ -5648,8 +5590,7 @@ function pad$1(char, nbsp = false) {
|
|
|
5648
5590
|
return "";
|
|
5649
5591
|
}
|
|
5650
5592
|
|
|
5651
|
-
|
|
5652
|
-
//#region src/shared/numfmt/to-ymd.ts
|
|
5593
|
+
// src/shared/numfmt/to-ymd.ts
|
|
5653
5594
|
const floor$1 = Math.floor;
|
|
5654
5595
|
function toYMD1900(serial, leap1900 = true) {
|
|
5655
5596
|
if (leap1900 && serial >= 0) {
|
|
@@ -5725,8 +5666,7 @@ function toYMD(serial, system = 0, leap1900 = true) {
|
|
|
5725
5666
|
return toYMD1900(int, leap1900);
|
|
5726
5667
|
}
|
|
5727
5668
|
|
|
5728
|
-
|
|
5729
|
-
//#region src/shared/numfmt/serial-date.ts
|
|
5669
|
+
// src/shared/numfmt/serial-date.ts
|
|
5730
5670
|
const floor = Math.floor;
|
|
5731
5671
|
const DAYSIZE$1 = 86400;
|
|
5732
5672
|
const MILLISECONDS_PER_DAY = DAYSIZE$1 * 1e3;
|
|
@@ -5894,8 +5834,7 @@ function dateFromSerial(serial, options) {
|
|
|
5894
5834
|
];
|
|
5895
5835
|
}
|
|
5896
5836
|
|
|
5897
|
-
|
|
5898
|
-
//#region src/shared/numfmt/run-part.ts
|
|
5837
|
+
// src/shared/numfmt/run-part.ts
|
|
5899
5838
|
const DAYSIZE = 86400;
|
|
5900
5839
|
function dateOverflows(inputValue, roundedValue, bigRange, dateSystem) {
|
|
5901
5840
|
if (bigRange) return inputValue < -694324 || roundedValue >= 35830291;
|
|
@@ -6209,8 +6148,7 @@ function runPart(value, part, options, locale, decimalValue = null) {
|
|
|
6209
6148
|
return output.join("");
|
|
6210
6149
|
}
|
|
6211
6150
|
|
|
6212
|
-
|
|
6213
|
-
//#region src/shared/numfmt/format-number.ts
|
|
6151
|
+
// src/shared/numfmt/format-number.ts
|
|
6214
6152
|
const defaultText = parseFormatSection([{
|
|
6215
6153
|
type: TOKEN_TEXT,
|
|
6216
6154
|
value: "@",
|
|
@@ -6267,8 +6205,7 @@ function formatValue(value, pattern, options) {
|
|
|
6267
6205
|
return part ? runPart(value, part, options, locale, decimalValue) : options.overflow;
|
|
6268
6206
|
}
|
|
6269
6207
|
|
|
6270
|
-
|
|
6271
|
-
//#region src/shared/numfmt/date-time-edit-pattern.ts
|
|
6208
|
+
// src/shared/numfmt/date-time-edit-pattern.ts
|
|
6272
6209
|
function isParsedSection$1(section) {
|
|
6273
6210
|
return !!section && "scale" in section;
|
|
6274
6211
|
}
|
|
@@ -6389,8 +6326,7 @@ function createDateTimeEditPattern(partitions, value) {
|
|
|
6389
6326
|
return datePattern ?? timePattern;
|
|
6390
6327
|
}
|
|
6391
6328
|
|
|
6392
|
-
|
|
6393
|
-
//#region src/shared/numfmt/format-info.ts
|
|
6329
|
+
// src/shared/numfmt/format-info.ts
|
|
6394
6330
|
function isParsedSection(part) {
|
|
6395
6331
|
return !!part && "scale" in part;
|
|
6396
6332
|
}
|
|
@@ -6544,8 +6480,7 @@ function dateInfo(partitions) {
|
|
|
6544
6480
|
};
|
|
6545
6481
|
}
|
|
6546
6482
|
|
|
6547
|
-
|
|
6548
|
-
//#region src/shared/numfmt/options.ts
|
|
6483
|
+
// src/shared/numfmt/options.ts
|
|
6549
6484
|
const defaultOptions = {
|
|
6550
6485
|
overflow: "######",
|
|
6551
6486
|
dateErrorThrows: false,
|
|
@@ -6565,8 +6500,7 @@ const defaultOptions = {
|
|
|
6565
6500
|
fillChar: ""
|
|
6566
6501
|
};
|
|
6567
6502
|
|
|
6568
|
-
|
|
6569
|
-
//#region src/shared/numfmt/tokenize.ts
|
|
6503
|
+
// src/shared/numfmt/tokenize.ts
|
|
6570
6504
|
const tokenHandlers = [
|
|
6571
6505
|
[
|
|
6572
6506
|
TOKEN_GENERAL,
|
|
@@ -6819,8 +6753,7 @@ function tokenize(pattern) {
|
|
|
6819
6753
|
return tokens;
|
|
6820
6754
|
}
|
|
6821
6755
|
|
|
6822
|
-
|
|
6823
|
-
//#region src/shared/numfmt/parse-pattern.ts
|
|
6756
|
+
// src/shared/numfmt/parse-pattern.ts
|
|
6824
6757
|
function maybeAddMinus(part) {
|
|
6825
6758
|
var _part$condition, _part$condition2;
|
|
6826
6759
|
const operator = (_part$condition = part.condition) === null || _part$condition === void 0 ? void 0 : _part$condition[0];
|
|
@@ -6931,8 +6864,7 @@ function parsePattern(pattern) {
|
|
|
6931
6864
|
};
|
|
6932
6865
|
}
|
|
6933
6866
|
|
|
6934
|
-
|
|
6935
|
-
//#region src/shared/numfmt/parse-value.ts
|
|
6867
|
+
// src/shared/numfmt/parse-value.ts
|
|
6936
6868
|
const okDateFormats = [
|
|
6937
6869
|
"!d-m-y",
|
|
6938
6870
|
"!d-m-Y",
|
|
@@ -7442,8 +7374,7 @@ function parseValue(value, options) {
|
|
|
7442
7374
|
return parseNumber(value, options) ?? parseDate(value, options) ?? parseTime(value, options) ?? parseBool(value, options);
|
|
7443
7375
|
}
|
|
7444
7376
|
|
|
7445
|
-
|
|
7446
|
-
//#region src/shared/numfmt/api.ts
|
|
7377
|
+
// src/shared/numfmt/api.ts
|
|
7447
7378
|
var api_exports = /* @__PURE__ */ __exportAll({
|
|
7448
7379
|
addLocale: () => addLocale,
|
|
7449
7380
|
dateFromSerial: () => dateFromSerial,
|
|
@@ -7594,8 +7525,7 @@ const tokenTypes = Object.freeze({
|
|
|
7594
7525
|
ZERO: TOKEN_ZERO
|
|
7595
7526
|
});
|
|
7596
7527
|
|
|
7597
|
-
|
|
7598
|
-
//#region src/common/regexp/factory.ts
|
|
7528
|
+
// src/common/regexp/factory.ts
|
|
7599
7529
|
/**
|
|
7600
7530
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
7601
7531
|
*
|
|
@@ -7635,8 +7565,7 @@ function normalizeRegExpFlags(flags) {
|
|
|
7635
7565
|
return flags;
|
|
7636
7566
|
}
|
|
7637
7567
|
|
|
7638
|
-
|
|
7639
|
-
//#region src/common/regexp/charset.ts
|
|
7568
|
+
// src/common/regexp/charset.ts
|
|
7640
7569
|
/**
|
|
7641
7570
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
7642
7571
|
*
|
|
@@ -7769,8 +7698,7 @@ function escapeCharClassCodePoint(point) {
|
|
|
7769
7698
|
return char;
|
|
7770
7699
|
}
|
|
7771
7700
|
|
|
7772
|
-
|
|
7773
|
-
//#region src/common/regexp/escape.ts
|
|
7701
|
+
// src/common/regexp/escape.ts
|
|
7774
7702
|
/**
|
|
7775
7703
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
7776
7704
|
*
|
|
@@ -7809,8 +7737,7 @@ function createFromWildcard(pattern) {
|
|
|
7809
7737
|
return createRegExpFromSafeFragment(`^${source}$`, "i");
|
|
7810
7738
|
}
|
|
7811
7739
|
|
|
7812
|
-
|
|
7813
|
-
//#region src/common/regexp/or.ts
|
|
7740
|
+
// src/common/regexp/or.ts
|
|
7814
7741
|
/**
|
|
7815
7742
|
* Builds a regex alternation from literal strings and character sets.
|
|
7816
7743
|
*
|
|
@@ -7872,8 +7799,7 @@ var Or = class Or {
|
|
|
7872
7799
|
*/
|
|
7873
7800
|
const or = (...inputs) => new Or(...inputs);
|
|
7874
7801
|
|
|
7875
|
-
|
|
7876
|
-
//#region src/common/regexp/index.ts
|
|
7802
|
+
// src/common/regexp/index.ts
|
|
7877
7803
|
/**
|
|
7878
7804
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
7879
7805
|
*
|
|
@@ -7908,8 +7834,7 @@ const regexp = {
|
|
|
7908
7834
|
createFromWildcard
|
|
7909
7835
|
};
|
|
7910
7836
|
|
|
7911
|
-
|
|
7912
|
-
//#region src/shared/numfmt/utils.ts
|
|
7837
|
+
// src/shared/numfmt/utils.ts
|
|
7913
7838
|
const DEFAULT_TEXT_FORMAT = "@@@";
|
|
7914
7839
|
const DEFAULT_TEXT_FORMAT_EXCEL = "@";
|
|
7915
7840
|
const DEFAULT_NUMBER_FORMAT = "General";
|
|
@@ -8049,8 +7974,7 @@ const getNumfmtParseValueFilter = (value, options = {}) => {
|
|
|
8049
7974
|
return parseData;
|
|
8050
7975
|
};
|
|
8051
7976
|
|
|
8052
|
-
|
|
8053
|
-
//#region src/shared/object-matrix.ts
|
|
7977
|
+
// src/shared/object-matrix.ts
|
|
8054
7978
|
function mapObjectMatrix(o, callback) {
|
|
8055
7979
|
const result = {};
|
|
8056
7980
|
for (const row in o) {
|
|
@@ -8587,8 +8511,7 @@ var ObjectMatrix = class ObjectMatrix {
|
|
|
8587
8511
|
}
|
|
8588
8512
|
};
|
|
8589
8513
|
|
|
8590
|
-
|
|
8591
|
-
//#region src/shared/common.ts
|
|
8514
|
+
// src/shared/common.ts
|
|
8592
8515
|
/**
|
|
8593
8516
|
* Data type convert, convert ICellWithCoord to IRangeWithCoord
|
|
8594
8517
|
* @param cellInfo
|
|
@@ -8887,7 +8810,29 @@ function cellToRange(row, col) {
|
|
|
8887
8810
|
};
|
|
8888
8811
|
}
|
|
8889
8812
|
/**
|
|
8813
|
+
* Writing content replaces the target formula, and writing a new formula disassociates the target
|
|
8814
|
+
* from its shared formula id. The formula controller performs both removals for the current client
|
|
8815
|
+
* with an `onlyLocal` mutation, which never reaches a collaboration changeset, so they have to be
|
|
8816
|
+
* part of the write itself.
|
|
8817
|
+
* @param {ICellData} cell - The cell data to normalize.
|
|
8818
|
+
* @returns {ICellData} The same instance when no formula identity has to be removed.
|
|
8819
|
+
*/
|
|
8820
|
+
function withFormulaIdentityCleared(cell) {
|
|
8821
|
+
if (cell.si !== void 0) return cell;
|
|
8822
|
+
if (cell.f !== void 0) return {
|
|
8823
|
+
...cell,
|
|
8824
|
+
si: null
|
|
8825
|
+
};
|
|
8826
|
+
if (cell.v === void 0 && cell.p === void 0) return cell;
|
|
8827
|
+
return {
|
|
8828
|
+
...cell,
|
|
8829
|
+
f: null,
|
|
8830
|
+
si: null
|
|
8831
|
+
};
|
|
8832
|
+
}
|
|
8833
|
+
/**
|
|
8890
8834
|
* Covert cell value to cell data.
|
|
8835
|
+
* A formula or content value also clears the shared formula id of the cell it replaces.
|
|
8891
8836
|
* @param {CellValue | ICellData} value - The cell value.
|
|
8892
8837
|
* @returns {ICellData} The cell data.
|
|
8893
8838
|
*/
|
|
@@ -8895,7 +8840,8 @@ function covertCellValue(value) {
|
|
|
8895
8840
|
if (isFormulaString(value)) return {
|
|
8896
8841
|
f: value,
|
|
8897
8842
|
v: null,
|
|
8898
|
-
p: null
|
|
8843
|
+
p: null,
|
|
8844
|
+
si: null
|
|
8899
8845
|
};
|
|
8900
8846
|
if (isCellV(value)) {
|
|
8901
8847
|
if (typeof value === "string") {
|
|
@@ -8904,16 +8850,18 @@ function covertCellValue(value) {
|
|
|
8904
8850
|
v: parseData.v,
|
|
8905
8851
|
p: null,
|
|
8906
8852
|
f: null,
|
|
8853
|
+
si: null,
|
|
8907
8854
|
s: { n: { pattern: parseData.z || "General" } }
|
|
8908
8855
|
};
|
|
8909
8856
|
}
|
|
8910
8857
|
return {
|
|
8911
8858
|
v: value,
|
|
8912
8859
|
p: null,
|
|
8913
|
-
f: null
|
|
8860
|
+
f: null,
|
|
8861
|
+
si: null
|
|
8914
8862
|
};
|
|
8915
8863
|
}
|
|
8916
|
-
if (isICellData(value)) return value;
|
|
8864
|
+
if (isICellData(value)) return withFormulaIdentityCleared(value);
|
|
8917
8865
|
return value;
|
|
8918
8866
|
}
|
|
8919
8867
|
/**
|
|
@@ -8932,8 +8880,7 @@ function covertCellValues(value, range) {
|
|
|
8932
8880
|
return cellValue.getMatrix();
|
|
8933
8881
|
}
|
|
8934
8882
|
|
|
8935
|
-
|
|
8936
|
-
//#region src/shared/compare.ts
|
|
8883
|
+
// src/shared/compare.ts
|
|
8937
8884
|
function deepCompare(arg1, arg2) {
|
|
8938
8885
|
if (Object.prototype.toString.call(arg1) === Object.prototype.toString.call(arg2)) {
|
|
8939
8886
|
if (Object.prototype.toString.call(arg1) === "[object Object]" || Object.prototype.toString.call(arg1) === "[object Array]") {
|
|
@@ -8959,8 +8906,7 @@ function checkForSubstrings(searchString, substrings) {
|
|
|
8959
8906
|
return substrings.some((substring) => searchString.indexOf(substring) > -1);
|
|
8960
8907
|
}
|
|
8961
8908
|
|
|
8962
|
-
|
|
8963
|
-
//#region src/shared/date-kit.ts
|
|
8909
|
+
// src/shared/date-kit.ts
|
|
8964
8910
|
const SECOND = 1e3;
|
|
8965
8911
|
const MINUTE = 60 * SECOND;
|
|
8966
8912
|
const HOUR = 60 * MINUTE;
|
|
@@ -9349,8 +9295,7 @@ const dateKit = Object.assign(createDateKit, {
|
|
|
9349
9295
|
unix: (timestamp) => createDateKit(timestamp * 1e3)
|
|
9350
9296
|
});
|
|
9351
9297
|
|
|
9352
|
-
|
|
9353
|
-
//#region src/shared/doc-tool.ts
|
|
9298
|
+
// src/shared/doc-tool.ts
|
|
9354
9299
|
function horizontalLineSegmentsSubtraction(aStart, aEnd, bStart, bEnd) {
|
|
9355
9300
|
if (aStart > aEnd) throw new Error("a1 should be less than a2");
|
|
9356
9301
|
if (bStart > bEnd) throw new Error("b1 should be less than b2");
|
|
@@ -9386,8 +9331,7 @@ function deleteContent(content, start, end) {
|
|
|
9386
9331
|
return content.slice(0, start) + content.slice(end);
|
|
9387
9332
|
}
|
|
9388
9333
|
|
|
9389
|
-
|
|
9390
|
-
//#region src/shared/generate.ts
|
|
9334
|
+
// src/shared/generate.ts
|
|
9391
9335
|
/**
|
|
9392
9336
|
* Determine whether it is a pure number, "12" and "12e+3" are both true
|
|
9393
9337
|
* @param val The number or string to be judged
|
|
@@ -9405,8 +9349,7 @@ function isRealNum(val) {
|
|
|
9405
9349
|
return false;
|
|
9406
9350
|
}
|
|
9407
9351
|
|
|
9408
|
-
|
|
9409
|
-
//#region src/shared/hash-algorithm.ts
|
|
9352
|
+
// src/shared/hash-algorithm.ts
|
|
9410
9353
|
/**
|
|
9411
9354
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
9412
9355
|
*
|
|
@@ -9428,8 +9371,7 @@ function hashAlgorithm(str) {
|
|
|
9428
9371
|
return hash >>> 0;
|
|
9429
9372
|
}
|
|
9430
9373
|
|
|
9431
|
-
|
|
9432
|
-
//#region src/shared/intervals.ts
|
|
9374
|
+
// src/shared/intervals.ts
|
|
9433
9375
|
/**
|
|
9434
9376
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
9435
9377
|
*
|
|
@@ -9490,8 +9432,7 @@ function mergeIntervals(intervals) {
|
|
|
9490
9432
|
return merged;
|
|
9491
9433
|
}
|
|
9492
9434
|
|
|
9493
|
-
|
|
9494
|
-
//#region src/shared/locale.ts
|
|
9435
|
+
// src/shared/locale.ts
|
|
9495
9436
|
/**
|
|
9496
9437
|
* Merges multiple locale objects into a single locale object.
|
|
9497
9438
|
* It can accept either multiple locale objects as arguments or a single array of locale objects.
|
|
@@ -9505,8 +9446,7 @@ function mergeLocales(...locales) {
|
|
|
9505
9446
|
return Object.assign({}, ...mergedLocales);
|
|
9506
9447
|
}
|
|
9507
9448
|
|
|
9508
|
-
|
|
9509
|
-
//#region src/shared/lru/lru-map.ts
|
|
9449
|
+
// src/shared/lru/lru-map.ts
|
|
9510
9450
|
let _Symbol$iterator;
|
|
9511
9451
|
let _Symbol$iterator2;
|
|
9512
9452
|
let _Symbol$iterator3;
|
|
@@ -9812,8 +9752,7 @@ var LRUHelper = class {
|
|
|
9812
9752
|
}
|
|
9813
9753
|
};
|
|
9814
9754
|
|
|
9815
|
-
|
|
9816
|
-
//#region src/shared/max-row-column.ts
|
|
9755
|
+
// src/shared/max-row-column.ts
|
|
9817
9756
|
/**
|
|
9818
9757
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
9819
9758
|
*
|
|
@@ -9851,8 +9790,7 @@ function columnLabelToNumber(label) {
|
|
|
9851
9790
|
const MAX_ROW_COUNT = 1048576;
|
|
9852
9791
|
const MAX_COLUMN_COUNT = 16384;
|
|
9853
9792
|
|
|
9854
|
-
|
|
9855
|
-
//#region src/shared/random-id.ts
|
|
9793
|
+
// src/shared/random-id.ts
|
|
9856
9794
|
/**
|
|
9857
9795
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
9858
9796
|
*
|
|
@@ -9901,8 +9839,7 @@ function generateRandomId(n = 21, alphabet) {
|
|
|
9901
9839
|
return createRandomId(n, alphabet);
|
|
9902
9840
|
}
|
|
9903
9841
|
|
|
9904
|
-
|
|
9905
|
-
//#region src/shared/rectangle.ts
|
|
9842
|
+
// src/shared/rectangle.ts
|
|
9906
9843
|
/**
|
|
9907
9844
|
* This class provides a set of methods to calculate and manipulate rectangular ranges (IRange).
|
|
9908
9845
|
* A range represents a rectangular area in a grid, defined by start/end rows and columns.
|
|
@@ -10335,8 +10272,7 @@ _defineProperty(Rectangle, "moveOffset", (range, offsetX, offsetY) => {
|
|
|
10335
10272
|
return _range;
|
|
10336
10273
|
});
|
|
10337
10274
|
|
|
10338
|
-
|
|
10339
|
-
//#region src/shared/range.ts
|
|
10275
|
+
// src/shared/range.ts
|
|
10340
10276
|
function moveRangeByOffset(range, refOffsetX, refOffsetY, ignoreAbsolute = false) {
|
|
10341
10277
|
if (refOffsetX === 0 && refOffsetY === 0) return range;
|
|
10342
10278
|
let newRange = { ...range };
|
|
@@ -10595,8 +10531,7 @@ function inferRangeType(startRow, endRow, startColumn, endColumn) {
|
|
|
10595
10531
|
else return 3;
|
|
10596
10532
|
}
|
|
10597
10533
|
|
|
10598
|
-
|
|
10599
|
-
//#region src/shared/ref-alias.ts
|
|
10534
|
+
// src/shared/ref-alias.ts
|
|
10600
10535
|
/**
|
|
10601
10536
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
10602
10537
|
*
|
|
@@ -10689,16 +10624,14 @@ var RefAlias = class {
|
|
|
10689
10624
|
}
|
|
10690
10625
|
};
|
|
10691
10626
|
|
|
10692
|
-
|
|
10693
|
-
//#region src/shared/row-col-iter.ts
|
|
10627
|
+
// src/shared/row-col-iter.ts
|
|
10694
10628
|
function createRowColIter(rowStart, rowEnd, colStart, colEnd) {
|
|
10695
10629
|
return { forEach(cb) {
|
|
10696
10630
|
for (let r = rowStart; r <= rowEnd; r++) for (let c = colStart; c <= colEnd; c++) cb(r, c);
|
|
10697
10631
|
} };
|
|
10698
10632
|
}
|
|
10699
10633
|
|
|
10700
|
-
|
|
10701
|
-
//#region src/shared/sequence.ts
|
|
10634
|
+
// src/shared/sequence.ts
|
|
10702
10635
|
/**
|
|
10703
10636
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
10704
10637
|
*
|
|
@@ -10772,8 +10705,7 @@ function numberToListABC(n, uppercase = false) {
|
|
|
10772
10705
|
return repeatStringNumTimes(String.fromCharCode(n % len + order), Math.floor(n / len) + 1);
|
|
10773
10706
|
}
|
|
10774
10707
|
|
|
10775
|
-
|
|
10776
|
-
//#region src/shared/sort-rules.ts
|
|
10708
|
+
// src/shared/sort-rules.ts
|
|
10777
10709
|
/**
|
|
10778
10710
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
10779
10711
|
*
|
|
@@ -10813,8 +10745,7 @@ function sortRulesFactory(key = "index", ruler = 1) {
|
|
|
10813
10745
|
};
|
|
10814
10746
|
}
|
|
10815
10747
|
|
|
10816
|
-
|
|
10817
|
-
//#region src/bases/typedef.ts
|
|
10748
|
+
// src/bases/typedef.ts
|
|
10818
10749
|
let BaseFieldType = /* @__PURE__ */ function(BaseFieldType) {
|
|
10819
10750
|
BaseFieldType["Text"] = "text";
|
|
10820
10751
|
BaseFieldType["SingleSelect"] = "singleSelect";
|
|
@@ -10939,8 +10870,7 @@ let BaseHierarchyInvalidReason = /* @__PURE__ */ function(BaseHierarchyInvalidRe
|
|
|
10939
10870
|
return BaseHierarchyInvalidReason;
|
|
10940
10871
|
}({});
|
|
10941
10872
|
|
|
10942
|
-
|
|
10943
|
-
//#region src/bases/record-identity.ts
|
|
10873
|
+
// src/bases/record-identity.ts
|
|
10944
10874
|
const BASE_RECORD_ID_FIELD_ID = "__record_id";
|
|
10945
10875
|
const BASE_RECORD_ID_FIELD_NAME = "record-id";
|
|
10946
10876
|
const BASE_RECORD_ID_PATTERN = /^[A-Za-z0-9_-]+$/;
|
|
@@ -10971,8 +10901,7 @@ function assertBaseTableRecordIdentity(table) {
|
|
|
10971
10901
|
for (const [recordKey, record] of Object.entries(table.records)) if (record.id !== recordKey || !isValidBaseRecordId(record.id) || record.values["__record_id"] !== record.id) throw new Error(`[BaseDataModel]: record "${recordKey}" has an invalid record-id projection.`);
|
|
10972
10902
|
}
|
|
10973
10903
|
|
|
10974
|
-
|
|
10975
|
-
//#region src/bases/empty-snapshot.ts
|
|
10904
|
+
// src/bases/empty-snapshot.ts
|
|
10976
10905
|
function createDefaultBaseTableSnapshot(options) {
|
|
10977
10906
|
const now = options.now ?? Date.now();
|
|
10978
10907
|
const primaryFieldId = options.primaryFieldId ?? generateRandomId(6);
|
|
@@ -11067,8 +10996,7 @@ function getEmptySnapshot(unitId = generateRandomId(), name = "", locale = "zhCN
|
|
|
11067
10996
|
};
|
|
11068
10997
|
}
|
|
11069
10998
|
|
|
11070
|
-
|
|
11071
|
-
//#region src/bases/base-data-model.ts
|
|
10999
|
+
// src/bases/base-data-model.ts
|
|
11072
11000
|
const BASE_LIST_VALUE_SEPARATOR = ", ";
|
|
11073
11001
|
const BASE_ATTACHMENT_RESOURCE_KEY_SEPARATOR = "";
|
|
11074
11002
|
var BaseDataModel = class extends UnitModel {
|
|
@@ -11398,8 +11326,7 @@ function normalizeBaseCellValueType(type, value) {
|
|
|
11398
11326
|
return inferPrimitiveType(value ?? null);
|
|
11399
11327
|
}
|
|
11400
11328
|
|
|
11401
|
-
|
|
11402
|
-
//#region src/bases/formula-table-name.ts
|
|
11329
|
+
// src/bases/formula-table-name.ts
|
|
11403
11330
|
function normalizeBaseFormulaTableName(displayName) {
|
|
11404
11331
|
const replaced = displayName.trim().replace(/[^A-Za-z0-9_.]+/g, "_");
|
|
11405
11332
|
const normalized = /[A-Za-z0-9]/.test(replaced) ? replaced : "Table";
|
|
@@ -11563,8 +11490,7 @@ function scanFormulaStringState(formula, start, end, initialState) {
|
|
|
11563
11490
|
return inString;
|
|
11564
11491
|
}
|
|
11565
11492
|
|
|
11566
|
-
|
|
11567
|
-
//#region src/common/boolean.ts
|
|
11493
|
+
// src/common/boolean.ts
|
|
11568
11494
|
/**
|
|
11569
11495
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
11570
11496
|
*
|
|
@@ -11585,8 +11511,7 @@ function isBooleanString(str) {
|
|
|
11585
11511
|
return BooleanStringSet.has(str.toLowerCase());
|
|
11586
11512
|
}
|
|
11587
11513
|
|
|
11588
|
-
|
|
11589
|
-
//#region src/common/const.ts
|
|
11514
|
+
// src/common/const.ts
|
|
11590
11515
|
/**
|
|
11591
11516
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
11592
11517
|
*
|
|
@@ -11620,8 +11545,7 @@ function isCommentEditorID(id) {
|
|
|
11620
11545
|
return id.startsWith(DOCS_COMMENT_EDITOR_UNIT_ID_KEY);
|
|
11621
11546
|
}
|
|
11622
11547
|
|
|
11623
|
-
|
|
11624
|
-
//#region src/types/interfaces/i-drawing.ts
|
|
11548
|
+
// src/types/interfaces/i-drawing.ts
|
|
11625
11549
|
/**
|
|
11626
11550
|
* The layer type of Drawing, used to distinguish between forward, backward, front, and back
|
|
11627
11551
|
*/
|
|
@@ -11700,11 +11624,12 @@ let DrawingTypeEnum = /* @__PURE__ */ function(DrawingTypeEnum) {
|
|
|
11700
11624
|
* Spreadsheet Timeline control.
|
|
11701
11625
|
*/
|
|
11702
11626
|
DrawingTypeEnum[DrawingTypeEnum["DRAWING_TIMELINE"] = 11] = "DRAWING_TIMELINE";
|
|
11627
|
+
/** Independent Office attachment; its preview image is separate from its original file. */
|
|
11628
|
+
DrawingTypeEnum[DrawingTypeEnum["DRAWING_OLE"] = 12] = "DRAWING_OLE";
|
|
11703
11629
|
return DrawingTypeEnum;
|
|
11704
11630
|
}({});
|
|
11705
11631
|
|
|
11706
|
-
|
|
11707
|
-
//#region src/common/drawing-order.ts
|
|
11632
|
+
// src/common/drawing-order.ts
|
|
11708
11633
|
/** Clamps a requested zero-based index to an available drawing order. */
|
|
11709
11634
|
function normalizeDrawingOrderIndex(index, length) {
|
|
11710
11635
|
const lastIndex = Math.max(0, length - 1);
|
|
@@ -11719,8 +11644,7 @@ function getDrawingOrderIndex(currentIndex, length, arrangeType) {
|
|
|
11719
11644
|
return 0;
|
|
11720
11645
|
}
|
|
11721
11646
|
|
|
11722
|
-
|
|
11723
|
-
//#region src/common/equal.ts
|
|
11647
|
+
// src/common/equal.ts
|
|
11724
11648
|
/**
|
|
11725
11649
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
11726
11650
|
*
|
|
@@ -11751,8 +11675,7 @@ function shallowEqual(objA, objB) {
|
|
|
11751
11675
|
return true;
|
|
11752
11676
|
}
|
|
11753
11677
|
|
|
11754
|
-
|
|
11755
|
-
//#region src/common/function.ts
|
|
11678
|
+
// src/common/function.ts
|
|
11756
11679
|
/**
|
|
11757
11680
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
11758
11681
|
*
|
|
@@ -11795,8 +11718,7 @@ function throttle(fn, wait = 16) {
|
|
|
11795
11718
|
};
|
|
11796
11719
|
}
|
|
11797
11720
|
|
|
11798
|
-
|
|
11799
|
-
//#region src/common/interceptor.ts
|
|
11721
|
+
// src/common/interceptor.ts
|
|
11800
11722
|
let InterceptorEffectEnum = /* @__PURE__ */ function(InterceptorEffectEnum) {
|
|
11801
11723
|
InterceptorEffectEnum[InterceptorEffectEnum["Style"] = 1] = "Style";
|
|
11802
11724
|
InterceptorEffectEnum[InterceptorEffectEnum["Value"] = 2] = "Value";
|
|
@@ -11826,8 +11748,9 @@ const composeInterceptors = (interceptors) => function(initialValue, context) {
|
|
|
11826
11748
|
}
|
|
11827
11749
|
return value;
|
|
11828
11750
|
};
|
|
11829
|
-
var InterceptorManager = class {
|
|
11751
|
+
var InterceptorManager = class extends Disposable {
|
|
11830
11752
|
constructor(interceptorPoints) {
|
|
11753
|
+
super();
|
|
11831
11754
|
_defineProperty(this, "_interceptorsByName", /* @__PURE__ */ new Map());
|
|
11832
11755
|
_defineProperty(this, "_interceptorPoints", void 0);
|
|
11833
11756
|
this._interceptorPoints = interceptorPoints;
|
|
@@ -11838,26 +11761,41 @@ var InterceptorManager = class {
|
|
|
11838
11761
|
* @param filter A callback function to filter the interceptors.
|
|
11839
11762
|
* @returns It will return a composed interceptor function. If you will perform the interceptor repeatedly,
|
|
11840
11763
|
* you should cache the result instead of calling this function multiple times.
|
|
11764
|
+
* A cached chain cannot start a new call after this manager is disposed.
|
|
11841
11765
|
*/
|
|
11842
11766
|
fetchThroughInterceptors(name, filter) {
|
|
11767
|
+
this.ensureNotDisposed();
|
|
11843
11768
|
const key = name;
|
|
11844
11769
|
let interceptors = this._interceptorsByName.get(key);
|
|
11845
11770
|
if (filter) interceptors = interceptors.filter(filter);
|
|
11846
|
-
|
|
11771
|
+
const handler = composeInterceptors(interceptors || []);
|
|
11772
|
+
return (initialValue, context) => {
|
|
11773
|
+
this.ensureNotDisposed();
|
|
11774
|
+
return handler(initialValue, context);
|
|
11775
|
+
};
|
|
11847
11776
|
}
|
|
11848
11777
|
intercept(name, interceptor) {
|
|
11778
|
+
this.ensureNotDisposed();
|
|
11849
11779
|
const key = name;
|
|
11850
11780
|
if (!this._interceptorsByName.has(key)) this._interceptorsByName.set(key, []);
|
|
11851
11781
|
const interceptors = this._interceptorsByName.get(key);
|
|
11852
11782
|
interceptors.push(interceptor);
|
|
11853
11783
|
this._interceptorsByName.set(key, interceptors.sort((a, b) => (b.priority ?? 0) - (a.priority ?? 0)));
|
|
11854
|
-
|
|
11784
|
+
let registration = interceptor;
|
|
11785
|
+
return () => {
|
|
11786
|
+
const current = registration;
|
|
11787
|
+
registration = void 0;
|
|
11788
|
+
if (!current || this._disposed) return false;
|
|
11789
|
+
const list = this._interceptorsByName.get(key);
|
|
11790
|
+
return list ? remove(list, current) : false;
|
|
11791
|
+
};
|
|
11855
11792
|
}
|
|
11856
11793
|
getInterceptPoints() {
|
|
11857
11794
|
return this._interceptorPoints;
|
|
11858
11795
|
}
|
|
11859
11796
|
dispose() {
|
|
11860
11797
|
this._interceptorsByName.clear();
|
|
11798
|
+
super.dispose();
|
|
11861
11799
|
}
|
|
11862
11800
|
};
|
|
11863
11801
|
function createAsyncInterceptorKey(key) {
|
|
@@ -11882,8 +11820,9 @@ const composeAsyncInterceptors = (interceptors) => {
|
|
|
11882
11820
|
return value;
|
|
11883
11821
|
};
|
|
11884
11822
|
};
|
|
11885
|
-
var AsyncInterceptorManager = class {
|
|
11823
|
+
var AsyncInterceptorManager = class extends Disposable {
|
|
11886
11824
|
constructor(asyncInterceptorPoints) {
|
|
11825
|
+
super();
|
|
11887
11826
|
_defineProperty(this, "_asyncInterceptorsByName", /* @__PURE__ */ new Map());
|
|
11888
11827
|
_defineProperty(this, "_asyncInterceptorPoints", void 0);
|
|
11889
11828
|
this._asyncInterceptorPoints = asyncInterceptorPoints;
|
|
@@ -11894,31 +11833,45 @@ var AsyncInterceptorManager = class {
|
|
|
11894
11833
|
* @param filter A callback function to filter the interceptors.
|
|
11895
11834
|
* @returns It will return a composed interceptor function. If you will perform the interceptor repeatedly,
|
|
11896
11835
|
* you should cache the result instead of calling this function multiple times.
|
|
11836
|
+
* A cached chain cannot start a new call after this manager is disposed.
|
|
11897
11837
|
*/
|
|
11898
11838
|
fetchThroughAsyncInterceptors(name, filter) {
|
|
11839
|
+
this.ensureNotDisposed();
|
|
11899
11840
|
const key = name;
|
|
11900
11841
|
let interceptors = this._asyncInterceptorsByName.get(key);
|
|
11901
11842
|
if (filter) interceptors = interceptors.filter(filter);
|
|
11902
|
-
|
|
11843
|
+
const handler = composeAsyncInterceptors(interceptors || []);
|
|
11844
|
+
return async (initialValue, context) => {
|
|
11845
|
+
this.ensureNotDisposed();
|
|
11846
|
+
return handler(initialValue, context);
|
|
11847
|
+
};
|
|
11903
11848
|
}
|
|
11904
11849
|
async interceptAsync(name, interceptor) {
|
|
11850
|
+
this.ensureNotDisposed();
|
|
11905
11851
|
const key = name;
|
|
11906
11852
|
if (!this._asyncInterceptorsByName.has(key)) this._asyncInterceptorsByName.set(key, []);
|
|
11907
11853
|
const interceptors = this._asyncInterceptorsByName.get(key);
|
|
11908
11854
|
interceptors.push(interceptor);
|
|
11909
11855
|
this._asyncInterceptorsByName.set(key, interceptors.sort((a, b) => (b.priority ?? 0) - (a.priority ?? 0)));
|
|
11910
|
-
|
|
11856
|
+
let registration = interceptor;
|
|
11857
|
+
return () => {
|
|
11858
|
+
const current = registration;
|
|
11859
|
+
registration = void 0;
|
|
11860
|
+
if (!current || this._disposed) return false;
|
|
11861
|
+
const list = this._asyncInterceptorsByName.get(key);
|
|
11862
|
+
return list ? remove(list, current) : false;
|
|
11863
|
+
};
|
|
11911
11864
|
}
|
|
11912
11865
|
getInterceptPoints() {
|
|
11913
11866
|
return this._asyncInterceptorPoints;
|
|
11914
11867
|
}
|
|
11915
11868
|
dispose() {
|
|
11916
11869
|
this._asyncInterceptorsByName.clear();
|
|
11870
|
+
super.dispose();
|
|
11917
11871
|
}
|
|
11918
11872
|
};
|
|
11919
11873
|
|
|
11920
|
-
|
|
11921
|
-
//#region src/common/invert-color/utils.ts
|
|
11874
|
+
// src/common/invert-color/utils.ts
|
|
11922
11875
|
function normalizeRGBColor(color) {
|
|
11923
11876
|
return color.map((c) => c / 255);
|
|
11924
11877
|
}
|
|
@@ -11926,8 +11879,7 @@ function denormalizeRGBColor(color) {
|
|
|
11926
11879
|
return color.map((c) => Math.round(c * 255));
|
|
11927
11880
|
}
|
|
11928
11881
|
|
|
11929
|
-
|
|
11930
|
-
//#region src/common/invert-color/invert-hsl.ts
|
|
11882
|
+
// src/common/invert-color/invert-hsl.ts
|
|
11931
11883
|
function rgbToHsl([r, g, b]) {
|
|
11932
11884
|
const max = Math.max(r, g, b);
|
|
11933
11885
|
const min = Math.min(r, g, b);
|
|
@@ -12027,8 +11979,7 @@ function invertColorByHSL(color) {
|
|
|
12027
11979
|
return denormalizeRGBColor(invertNormalizedColorByHSL(normalizeRGBColor(color)));
|
|
12028
11980
|
}
|
|
12029
11981
|
|
|
12030
|
-
|
|
12031
|
-
//#region src/common/invert-color/invert-rgb.ts
|
|
11982
|
+
// src/common/invert-color/invert-rgb.ts
|
|
12032
11983
|
const matrix = [
|
|
12033
11984
|
[
|
|
12034
11985
|
.333,
|
|
@@ -12080,8 +12031,7 @@ function invertColorByMatrix(color) {
|
|
|
12080
12031
|
return denormalizeRGBColor(invertNormalizedColorByMatrix(normalizeRGBColor(color)));
|
|
12081
12032
|
}
|
|
12082
12033
|
|
|
12083
|
-
|
|
12084
|
-
//#region src/common/memory-cursor.ts
|
|
12034
|
+
// src/common/memory-cursor.ts
|
|
12085
12035
|
/**
|
|
12086
12036
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
12087
12037
|
*
|
|
@@ -12113,8 +12063,7 @@ var MemoryCursor = class {
|
|
|
12113
12063
|
}
|
|
12114
12064
|
};
|
|
12115
12065
|
|
|
12116
|
-
|
|
12117
|
-
//#region src/common/mixin.ts
|
|
12066
|
+
// src/common/mixin.ts
|
|
12118
12067
|
/**
|
|
12119
12068
|
* Mixin some methods to targetObject as prototype, the static methods will not be mixed in
|
|
12120
12069
|
* @param {T} targetClassPrototype The target class to mixin
|
|
@@ -12124,8 +12073,7 @@ function mixinClass(targetClassPrototype, mixin) {
|
|
|
12124
12073
|
for (const key in mixin) if (mixin.hasOwnProperty(key)) targetClassPrototype[key] = mixin[key];
|
|
12125
12074
|
}
|
|
12126
12075
|
|
|
12127
|
-
|
|
12128
|
-
//#region src/common/number.ts
|
|
12076
|
+
// src/common/number.ts
|
|
12129
12077
|
/**
|
|
12130
12078
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
12131
12079
|
*
|
|
@@ -12157,8 +12105,7 @@ function willLoseNumericPrecision(str) {
|
|
|
12157
12105
|
return Number(str) > Number.MAX_SAFE_INTEGER || str.length >= 18;
|
|
12158
12106
|
}
|
|
12159
12107
|
|
|
12160
|
-
|
|
12161
|
-
//#region src/common/registry.ts
|
|
12108
|
+
// src/common/registry.ts
|
|
12162
12109
|
/**
|
|
12163
12110
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
12164
12111
|
*
|
|
@@ -12218,8 +12165,7 @@ var RegistryAsMap = class RegistryAsMap {
|
|
|
12218
12165
|
}
|
|
12219
12166
|
};
|
|
12220
12167
|
|
|
12221
|
-
|
|
12222
|
-
//#region src/common/request-immediate-macro-task.ts
|
|
12168
|
+
// src/common/request-immediate-macro-task.ts
|
|
12223
12169
|
/**
|
|
12224
12170
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
12225
12171
|
*
|
|
@@ -12259,8 +12205,7 @@ function requestImmediateMacroTask(callback) {
|
|
|
12259
12205
|
};
|
|
12260
12206
|
}
|
|
12261
12207
|
|
|
12262
|
-
|
|
12263
|
-
//#region src/common/set.ts
|
|
12208
|
+
// src/common/set.ts
|
|
12264
12209
|
/**
|
|
12265
12210
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
12266
12211
|
*
|
|
@@ -12287,8 +12232,7 @@ function mergeSets(s1, s2) {
|
|
|
12287
12232
|
return s1;
|
|
12288
12233
|
}
|
|
12289
12234
|
|
|
12290
|
-
|
|
12291
|
-
//#region src/docs/section-break-id.ts
|
|
12235
|
+
// src/docs/section-break-id.ts
|
|
12292
12236
|
const SECTION_ID_PREFIX = "section_";
|
|
12293
12237
|
function createSectionId(existingIds) {
|
|
12294
12238
|
let sectionId = `${SECTION_ID_PREFIX}${generateRandomId(12)}`;
|
|
@@ -12309,8 +12253,7 @@ function isValidSectionId(value) {
|
|
|
12309
12253
|
return typeof value === "string" && value.startsWith("section_") && value.length > 8;
|
|
12310
12254
|
}
|
|
12311
12255
|
|
|
12312
|
-
|
|
12313
|
-
//#region src/docs/data-model/types.ts
|
|
12256
|
+
// src/docs/data-model/types.ts
|
|
12314
12257
|
/**
|
|
12315
12258
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
12316
12259
|
*
|
|
@@ -12365,8 +12308,7 @@ let DataStreamTreeTokenType = /* @__PURE__ */ function(DataStreamTreeTokenType)
|
|
|
12365
12308
|
return DataStreamTreeTokenType;
|
|
12366
12309
|
}({});
|
|
12367
12310
|
|
|
12368
|
-
|
|
12369
|
-
//#region src/docs/data-model/document-statistics.ts
|
|
12311
|
+
// src/docs/data-model/document-statistics.ts
|
|
12370
12312
|
const CONTROL_TOKENS = /* @__PURE__ */ new Set([
|
|
12371
12313
|
"\r",
|
|
12372
12314
|
"\n",
|
|
@@ -12476,8 +12418,7 @@ async function calculateDocumentStatistics(dataStream, options) {
|
|
|
12476
12418
|
return statistics;
|
|
12477
12419
|
}
|
|
12478
12420
|
|
|
12479
|
-
|
|
12480
|
-
//#region src/types/interfaces/i-document-data.ts
|
|
12421
|
+
// src/types/interfaces/i-document-data.ts
|
|
12481
12422
|
/**
|
|
12482
12423
|
* The top-level block types in a document body.
|
|
12483
12424
|
* These block types are used to represent the structure of the document and can be used to identify different sections or elements within the document.
|
|
@@ -12924,8 +12865,7 @@ const PAPER_TYPES = [
|
|
|
12924
12865
|
"Folio"
|
|
12925
12866
|
];
|
|
12926
12867
|
|
|
12927
|
-
|
|
12928
|
-
//#region src/types/interfaces/i-style-data.ts
|
|
12868
|
+
// src/types/interfaces/i-style-data.ts
|
|
12929
12869
|
function defineExactKeys() {
|
|
12930
12870
|
return (keys) => keys;
|
|
12931
12871
|
}
|
|
@@ -13001,8 +12941,7 @@ const STYLE_KEYS = defineExactKeys()([
|
|
|
13001
12941
|
"pd"
|
|
13002
12942
|
]);
|
|
13003
12943
|
|
|
13004
|
-
|
|
13005
|
-
//#region src/types/const/const.ts
|
|
12944
|
+
// src/types/const/const.ts
|
|
13006
12945
|
/**
|
|
13007
12946
|
* Used as an illegal range array return value
|
|
13008
12947
|
*/
|
|
@@ -13204,8 +13143,7 @@ const NAMED_STYLE_SPACE_MAP = {
|
|
|
13204
13143
|
};
|
|
13205
13144
|
const DOC_DRAWING_PRINTING_COMPONENT_KEY = "univer-docs-drawing-printing";
|
|
13206
13145
|
|
|
13207
|
-
|
|
13208
|
-
//#region src/types/const/extension-names.ts
|
|
13146
|
+
// src/types/const/extension-names.ts
|
|
13209
13147
|
/**
|
|
13210
13148
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
13211
13149
|
*
|
|
@@ -13227,8 +13165,7 @@ let EXTENSION_NAMES = /* @__PURE__ */ function(EXTENSION_NAMES) {
|
|
|
13227
13165
|
return EXTENSION_NAMES;
|
|
13228
13166
|
}({});
|
|
13229
13167
|
|
|
13230
|
-
|
|
13231
|
-
//#region src/types/const/page-size.ts
|
|
13168
|
+
// src/types/const/page-size.ts
|
|
13232
13169
|
const PAGE_SIZE = {
|
|
13233
13170
|
["A3"]: {
|
|
13234
13171
|
width: 1123,
|
|
@@ -13290,8 +13227,7 @@ const MODERN_DOCUMENT_DEFAULT_MARGIN = 50 / .75;
|
|
|
13290
13227
|
/** Default margin for a paginated Traditional document, in 96-DPI layout pixels. */
|
|
13291
13228
|
const TRADITIONAL_DOCUMENT_DEFAULT_MARGIN = 72;
|
|
13292
13229
|
|
|
13293
|
-
|
|
13294
|
-
//#region src/docs/paragraph-id.ts
|
|
13230
|
+
// src/docs/paragraph-id.ts
|
|
13295
13231
|
const PARAGRAPH_ID_PREFIX = "para_";
|
|
13296
13232
|
function createParagraphId(existingIds) {
|
|
13297
13233
|
let paragraphId = `${PARAGRAPH_ID_PREFIX}${generateRandomId(12)}`;
|
|
@@ -13324,8 +13260,7 @@ function cloneParagraph(paragraph) {
|
|
|
13324
13260
|
return JSON.parse(JSON.stringify(paragraph));
|
|
13325
13261
|
}
|
|
13326
13262
|
|
|
13327
|
-
|
|
13328
|
-
//#region src/docs/data-model/empty-snapshot.ts
|
|
13263
|
+
// src/docs/data-model/empty-snapshot.ts
|
|
13329
13264
|
function getEmptySnapshot$1(unitID = generateRandomId(6), locale = "enUS", title = "", documentFlavor = 2) {
|
|
13330
13265
|
const EMPTY_DOCUMENT_DATA = {
|
|
13331
13266
|
id: unitID,
|
|
@@ -13405,8 +13340,7 @@ function getEmptySnapshot$1(unitID = generateRandomId(6), locale = "enUS", title
|
|
|
13405
13340
|
return EMPTY_DOCUMENT_DATA;
|
|
13406
13341
|
}
|
|
13407
13342
|
|
|
13408
|
-
|
|
13409
|
-
//#region src/docs/data-model/text-x/action-types.ts
|
|
13343
|
+
// src/docs/data-model/text-x/action-types.ts
|
|
13410
13344
|
const PRESERVE_INSERTED_PARAGRAPH_IDS = "__textXPreserveParagraphIds";
|
|
13411
13345
|
let TextXActionType = /* @__PURE__ */ function(TextXActionType) {
|
|
13412
13346
|
TextXActionType["RETAIN"] = "r";
|
|
@@ -13415,8 +13349,7 @@ let TextXActionType = /* @__PURE__ */ function(TextXActionType) {
|
|
|
13415
13349
|
return TextXActionType;
|
|
13416
13350
|
}({});
|
|
13417
13351
|
|
|
13418
|
-
|
|
13419
|
-
//#region src/docs/data-model/text-x/build-utils/range-interval.ts
|
|
13352
|
+
// src/docs/data-model/text-x/build-utils/range-interval.ts
|
|
13420
13353
|
/** Converts persisted inclusive indexes `[startIndex, endIndex]` to `[startOffset, endOffset)`. */
|
|
13421
13354
|
function getInclusiveRangeInterval(range) {
|
|
13422
13355
|
return {
|
|
@@ -13560,8 +13493,7 @@ function getPairedTokenInterval(dataStream, startOffset, startToken, endToken) {
|
|
|
13560
13493
|
return null;
|
|
13561
13494
|
}
|
|
13562
13495
|
|
|
13563
|
-
|
|
13564
|
-
//#region src/docs/data-model/text-x/apply-utils/common.ts
|
|
13496
|
+
// src/docs/data-model/text-x/apply-utils/common.ts
|
|
13565
13497
|
const RESTORE_INSERTED_PARAGRAPH_IDS = "__textXRestoreParagraphIds";
|
|
13566
13498
|
function normalizeTextRuns(textRuns, reserveEmptyTextRun = false) {
|
|
13567
13499
|
const results = [];
|
|
@@ -14384,8 +14316,7 @@ function deleteCustomDecorations(body, textLength, currentIndex, needOffset = tr
|
|
|
14384
14316
|
return removeCustomDecorations;
|
|
14385
14317
|
}
|
|
14386
14318
|
|
|
14387
|
-
|
|
14388
|
-
//#region src/docs/data-model/preset-list-type.ts
|
|
14319
|
+
// src/docs/data-model/preset-list-type.ts
|
|
14389
14320
|
let QuickListType = /* @__PURE__ */ function(QuickListType) {
|
|
14390
14321
|
QuickListType["ORDER_LIST_QUICK_1"] = "1.";
|
|
14391
14322
|
QuickListType["ORDER_LIST_QUICK_2"] = "a)";
|
|
@@ -14819,8 +14750,7 @@ const QuickListTypeMap = {
|
|
|
14819
14750
|
["*"]: "BULLET_LIST"
|
|
14820
14751
|
};
|
|
14821
14752
|
|
|
14822
|
-
|
|
14823
|
-
//#region src/docs/data-model/text-x/apply-utils/update-apply.ts
|
|
14753
|
+
// src/docs/data-model/text-x/apply-utils/update-apply.ts
|
|
14824
14754
|
function updateAttribute(body, updateBody, textLength, currentIndex, coverType) {
|
|
14825
14755
|
return {
|
|
14826
14756
|
dataStream: "",
|
|
@@ -15260,8 +15190,7 @@ function updateCustomDecorations(body, updateBody, textLength, currentIndex, cov
|
|
|
15260
15190
|
return removeCustomDecorations;
|
|
15261
15191
|
}
|
|
15262
15192
|
|
|
15263
|
-
|
|
15264
|
-
//#region src/docs/data-model/text-x/build-utils/selection.ts
|
|
15193
|
+
// src/docs/data-model/text-x/build-utils/selection.ts
|
|
15265
15194
|
function makeSelection(startOffset, endOffset) {
|
|
15266
15195
|
if (typeof endOffset === "undefined") return {
|
|
15267
15196
|
startOffset,
|
|
@@ -15333,8 +15262,7 @@ function transformParagraphs(paragraphs, dataStream) {
|
|
|
15333
15262
|
return results;
|
|
15334
15263
|
}
|
|
15335
15264
|
|
|
15336
|
-
|
|
15337
|
-
//#region src/docs/data-model/text-x/build-utils/paragraph.ts
|
|
15265
|
+
// src/docs/data-model/text-x/build-utils/paragraph.ts
|
|
15338
15266
|
const switchParagraphBullet = (params) => {
|
|
15339
15267
|
var _docDataModel$getSelf;
|
|
15340
15268
|
const { paragraphs: currentParagraphs, segmentId, document: docDataModel } = params;
|
|
@@ -15620,8 +15548,7 @@ const setParagraphStyle = (params) => {
|
|
|
15620
15548
|
return textX;
|
|
15621
15549
|
};
|
|
15622
15550
|
|
|
15623
|
-
|
|
15624
|
-
//#region src/docs/data-model/text-x/utils.ts
|
|
15551
|
+
// src/docs/data-model/text-x/utils.ts
|
|
15625
15552
|
let SliceBodyType = /* @__PURE__ */ function(SliceBodyType) {
|
|
15626
15553
|
SliceBodyType[SliceBodyType["copy"] = 0] = "copy";
|
|
15627
15554
|
SliceBodyType[SliceBodyType["cut"] = 1] = "cut";
|
|
@@ -16034,8 +15961,7 @@ function getRichTextEditPath(docDataModel, segmentId = "") {
|
|
|
16034
15961
|
else throw new Error("Segment id not found in headers or footers");
|
|
16035
15962
|
}
|
|
16036
15963
|
|
|
16037
|
-
|
|
16038
|
-
//#region src/docs/data-model/text-x/action-iterator.ts
|
|
15964
|
+
// src/docs/data-model/text-x/action-iterator.ts
|
|
16039
15965
|
var ActionIterator = class {
|
|
16040
15966
|
constructor(_actions) {
|
|
16041
15967
|
this._actions = _actions;
|
|
@@ -16106,8 +16032,7 @@ var ActionIterator = class {
|
|
|
16106
16032
|
}
|
|
16107
16033
|
};
|
|
16108
16034
|
|
|
16109
|
-
|
|
16110
|
-
//#region src/docs/data-model/text-x/apply-utils/delete-apply.ts
|
|
16035
|
+
// src/docs/data-model/text-x/apply-utils/delete-apply.ts
|
|
16111
16036
|
function updateAttributeByDelete(body, textLength, currentIndex) {
|
|
16112
16037
|
var _body$renderedPageBre;
|
|
16113
16038
|
const { dataStream } = body;
|
|
@@ -16150,8 +16075,7 @@ function updateAttributeByDelete(body, textLength, currentIndex) {
|
|
|
16150
16075
|
};
|
|
16151
16076
|
}
|
|
16152
16077
|
|
|
16153
|
-
|
|
16154
|
-
//#region src/docs/data-model/text-x/apply-utils/insert-apply.ts
|
|
16078
|
+
// src/docs/data-model/text-x/apply-utils/insert-apply.ts
|
|
16155
16079
|
function updateAttributeByInsert(body, insertBody, textLength, currentIndex) {
|
|
16156
16080
|
const originalDataStream = body.dataStream;
|
|
16157
16081
|
body.dataStream = insertTextToContent(body.dataStream, currentIndex, insertBody.dataStream);
|
|
@@ -16170,8 +16094,7 @@ function updateAttributeByInsert(body, insertBody, textLength, currentIndex) {
|
|
|
16170
16094
|
insertCustomDecorations(body, insertBody, textLength, currentIndex);
|
|
16171
16095
|
}
|
|
16172
16096
|
|
|
16173
|
-
|
|
16174
|
-
//#region src/docs/data-model/text-x/custom-range-update.ts
|
|
16097
|
+
// src/docs/data-model/text-x/custom-range-update.ts
|
|
16175
16098
|
function getChangedPropertyPaths(before, after, path = []) {
|
|
16176
16099
|
if (Tools.diffValue(before, after)) return [];
|
|
16177
16100
|
if (after && typeof after === "object" && !Array.isArray(after) && (before == null || typeof before === "object" && !Array.isArray(before))) {
|
|
@@ -16384,8 +16307,7 @@ function dropRemovedRangeAnchors(actions, suppressed, updates) {
|
|
|
16384
16307
|
return appendRangeUpdates(kept, moveRangeUpdates(updates, removed));
|
|
16385
16308
|
}
|
|
16386
16309
|
|
|
16387
|
-
|
|
16388
|
-
//#region src/docs/data-model/text-x/apply.ts
|
|
16310
|
+
// src/docs/data-model/text-x/apply.ts
|
|
16389
16311
|
function updateApply(doc, updateBody, textLength, currentIndex, coverType = 0) {
|
|
16390
16312
|
return updateAttribute(doc, updateBody, textLength, currentIndex, coverType);
|
|
16391
16313
|
}
|
|
@@ -16439,8 +16361,7 @@ function onlyHasDataStream$1(body) {
|
|
|
16439
16361
|
return Object.keys(body).length === 1 && typeof body.dataStream === "string";
|
|
16440
16362
|
}
|
|
16441
16363
|
|
|
16442
|
-
|
|
16443
|
-
//#region src/docs/data-model/text-x/transform-utils.ts
|
|
16364
|
+
// src/docs/data-model/text-x/transform-utils.ts
|
|
16444
16365
|
function transformTextRuns(originTextRuns, targetTextRuns, originCoverType, targetCoverType, transformType) {
|
|
16445
16366
|
if (originTextRuns == null || targetTextRuns == null) return targetTextRuns;
|
|
16446
16367
|
if (originTextRuns.length === 0 || targetTextRuns.length === 0) return [];
|
|
@@ -16681,8 +16602,7 @@ function transformBlockRanges(thisBlockRanges, otherBlockRanges, priority) {
|
|
|
16681
16602
|
});
|
|
16682
16603
|
}
|
|
16683
16604
|
|
|
16684
|
-
|
|
16685
|
-
//#region src/docs/data-model/text-x/text-x.ts
|
|
16605
|
+
// src/docs/data-model/text-x/text-x.ts
|
|
16686
16606
|
function onlyHasDataStream(body) {
|
|
16687
16607
|
return Object.keys(body).length === 1;
|
|
16688
16608
|
}
|
|
@@ -17068,8 +16988,7 @@ _defineProperty(TextX, "id", "text-x");
|
|
|
17068
16988
|
_defineProperty(TextX, "uri", "https://github.com/dream-num/univer#text-x");
|
|
17069
16989
|
Object.defineProperty(TextX, "name", { value: "text-x" });
|
|
17070
16990
|
|
|
17071
|
-
|
|
17072
|
-
//#region src/docs/data-model/json-x/json-x.ts
|
|
16991
|
+
// src/docs/data-model/json-x/json-x.ts
|
|
17073
16992
|
var JSONX = class JSONX {
|
|
17074
16993
|
static registerSubtype(subType) {
|
|
17075
16994
|
var _this$_subTypes$get;
|
|
@@ -17122,8 +17041,7 @@ _defineProperty(JSONX, "_subTypes", /* @__PURE__ */ new Map());
|
|
|
17122
17041
|
_defineProperty(JSONX, "_instance", null);
|
|
17123
17042
|
JSONX.registerSubtype(TextX);
|
|
17124
17043
|
|
|
17125
|
-
|
|
17126
|
-
//#region src/docs/data-model/text-x/build-utils/parse.ts
|
|
17044
|
+
// src/docs/data-model/text-x/build-utils/parse.ts
|
|
17127
17045
|
const tags = [
|
|
17128
17046
|
"",
|
|
17129
17047
|
"\x1B",
|
|
@@ -17193,8 +17111,7 @@ const fromPlainText = (text) => {
|
|
|
17193
17111
|
};
|
|
17194
17112
|
};
|
|
17195
17113
|
|
|
17196
|
-
|
|
17197
|
-
//#region src/docs/data-model/document-data-model.ts
|
|
17114
|
+
// src/docs/data-model/document-data-model.ts
|
|
17198
17115
|
const DEFAULT_DOC = {
|
|
17199
17116
|
id: "default_doc",
|
|
17200
17117
|
documentStyle: {}
|
|
@@ -17512,8 +17429,7 @@ var DocumentDataModel = class DocumentDataModel extends DocumentDataModelSimple
|
|
|
17512
17429
|
}
|
|
17513
17430
|
};
|
|
17514
17431
|
|
|
17515
|
-
|
|
17516
|
-
//#region src/docs/data-model/paragraph-style.ts
|
|
17432
|
+
// src/docs/data-model/paragraph-style.ts
|
|
17517
17433
|
function _definedStyle(style) {
|
|
17518
17434
|
if (style == null) return {};
|
|
17519
17435
|
const definedStyle = Tools.deepClone(style);
|
|
@@ -17563,9 +17479,17 @@ function resolveDocumentParagraphStyle(documentStyle, paragraphStyle, options =
|
|
|
17563
17479
|
...definedParagraphStyle
|
|
17564
17480
|
});
|
|
17565
17481
|
}
|
|
17482
|
+
/** Resolves word splitting without materializing inherited defaults in the snapshot. */
|
|
17483
|
+
function resolveDocumentParagraphWordWrap(document, paragraph) {
|
|
17484
|
+
const { documentStyle } = document;
|
|
17485
|
+
const { wordWrap } = resolveDocumentParagraphStyle(documentStyle, paragraph === null || paragraph === void 0 ? void 0 : paragraph.paragraphStyle, {
|
|
17486
|
+
styles: document.styles,
|
|
17487
|
+
paragraphStyleId: paragraph === null || paragraph === void 0 ? void 0 : paragraph.styleId
|
|
17488
|
+
});
|
|
17489
|
+
return wordWrap ?? 0;
|
|
17490
|
+
}
|
|
17566
17491
|
|
|
17567
|
-
|
|
17568
|
-
//#region src/docs/data-model/replacement.ts
|
|
17492
|
+
// src/docs/data-model/replacement.ts
|
|
17569
17493
|
function replaceInDocumentBody(body, query, target, caseSensitive) {
|
|
17570
17494
|
if (query === "") return body;
|
|
17571
17495
|
const documentDataModel = new DocumentDataModel({
|
|
@@ -17606,8 +17530,7 @@ function replaceInDocumentBody(body, query, target, caseSensitive) {
|
|
|
17606
17530
|
return newBody;
|
|
17607
17531
|
}
|
|
17608
17532
|
|
|
17609
|
-
|
|
17610
|
-
//#region src/docs/data-model/text-x/build-utils/custom-decoration.ts
|
|
17533
|
+
// src/docs/data-model/text-x/build-utils/custom-decoration.ts
|
|
17611
17534
|
function addCustomDecorationTextX(param) {
|
|
17612
17535
|
const { ranges, id, type } = param;
|
|
17613
17536
|
const textX = new TextX();
|
|
@@ -17665,8 +17588,7 @@ function deleteCustomDecorationTextX(params) {
|
|
|
17665
17588
|
return textX;
|
|
17666
17589
|
}
|
|
17667
17590
|
|
|
17668
|
-
|
|
17669
|
-
//#region src/docs/data-model/text-x/build-utils/custom-range.ts
|
|
17591
|
+
// src/docs/data-model/text-x/build-utils/custom-range.ts
|
|
17670
17592
|
/**
|
|
17671
17593
|
* Check if two ranges intersect
|
|
17672
17594
|
* @param line1Start - The start of the first range
|
|
@@ -17734,8 +17656,7 @@ function getSelectionForAddCustomRange(range, body) {
|
|
|
17734
17656
|
};
|
|
17735
17657
|
}
|
|
17736
17658
|
|
|
17737
|
-
|
|
17738
|
-
//#region src/docs/data-model/text-x/build-utils/text-x-utils.ts
|
|
17659
|
+
// src/docs/data-model/text-x/build-utils/text-x-utils.ts
|
|
17739
17660
|
function deleteCustomRangeTextX(params) {
|
|
17740
17661
|
var _documentDataModel$ge;
|
|
17741
17662
|
const { rangeId, segmentId, documentDataModel, insert } = params;
|
|
@@ -18269,8 +18190,7 @@ const replaceSelectionTextRuns = (params) => {
|
|
|
18269
18190
|
return textX;
|
|
18270
18191
|
};
|
|
18271
18192
|
|
|
18272
|
-
|
|
18273
|
-
//#region src/docs/data-model/text-x/build-utils/drawings.ts
|
|
18193
|
+
// src/docs/data-model/text-x/build-utils/drawings.ts
|
|
18274
18194
|
function getCustomBlockIdsInSelections(body, selections) {
|
|
18275
18195
|
const customBlockIds = [];
|
|
18276
18196
|
const { customBlocks = [] } = body;
|
|
@@ -18410,8 +18330,7 @@ function buildDrawingInsertBody(body, drawings, insertOffset) {
|
|
|
18410
18330
|
};
|
|
18411
18331
|
}
|
|
18412
18332
|
|
|
18413
|
-
|
|
18414
|
-
//#region src/docs/data-model/text-x/build-utils/data-stream-change.ts
|
|
18333
|
+
// src/docs/data-model/text-x/build-utils/data-stream-change.ts
|
|
18415
18334
|
/**
|
|
18416
18335
|
* Finds one contiguous dataStream change. Pure structural insertions and deletions
|
|
18417
18336
|
* are anchored by their stable ids before falling back to string comparison.
|
|
@@ -18475,8 +18394,7 @@ function collectNewStartOffsets(previousItems, nextItems, getId) {
|
|
|
18475
18394
|
return (nextItems ?? []).filter((item) => !previousIds.has(getId(item))).map((item) => item.startIndex);
|
|
18476
18395
|
}
|
|
18477
18396
|
|
|
18478
|
-
|
|
18479
|
-
//#region src/docs/data-model/text-x/build-utils/index.ts
|
|
18397
|
+
// src/docs/data-model/text-x/build-utils/index.ts
|
|
18480
18398
|
/**
|
|
18481
18399
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
18482
18400
|
*
|
|
@@ -18541,8 +18459,7 @@ _defineProperty(BuildTextUtils, "drawing", {
|
|
|
18541
18459
|
remove: removeDrawingReferences
|
|
18542
18460
|
});
|
|
18543
18461
|
|
|
18544
|
-
|
|
18545
|
-
//#region src/docs/data-model/rich-text-builder.ts
|
|
18462
|
+
// src/docs/data-model/rich-text-builder.ts
|
|
18546
18463
|
const NON_EDITABLE_RICH_TEXT_TOKENS = new Set(Object.values(DataStreamTreeTokenType).filter((token) => token !== "" && token !== " "));
|
|
18547
18464
|
function normalizeBody$1(body) {
|
|
18548
18465
|
if (!body.customRanges) body.customRanges = [];
|
|
@@ -21039,8 +20956,7 @@ function createParagraphSnapshot(data, paragraphId, range) {
|
|
|
21039
20956
|
};
|
|
21040
20957
|
}
|
|
21041
20958
|
|
|
21042
|
-
|
|
21043
|
-
//#region src/docs/data-model/subdocument.ts
|
|
20959
|
+
// src/docs/data-model/subdocument.ts
|
|
21044
20960
|
/**
|
|
21045
20961
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
21046
20962
|
*
|
|
@@ -21058,8 +20974,7 @@ function createParagraphSnapshot(data, paragraphId, range) {
|
|
|
21058
20974
|
*/
|
|
21059
20975
|
const DEFAULT_DOCUMENT_SUB_COMPONENT_ID = "__default_document_sub_component_id20231101__";
|
|
21060
20976
|
|
|
21061
|
-
|
|
21062
|
-
//#region src/docs/data-model/text-x/structure-validator.ts
|
|
20977
|
+
// src/docs/data-model/text-x/structure-validator.ts
|
|
21063
20978
|
const DOCUMENT_STRUCTURAL_TOKEN_PATTERN_SOURCE = `[${[
|
|
21064
20979
|
"\r",
|
|
21065
20980
|
"\n",
|
|
@@ -21430,8 +21345,7 @@ function validateDocumentStructure(snapshot) {
|
|
|
21430
21345
|
return issues;
|
|
21431
21346
|
}
|
|
21432
21347
|
|
|
21433
|
-
|
|
21434
|
-
//#region src/docs/section-header-footer.ts
|
|
21348
|
+
// src/docs/section-header-footer.ts
|
|
21435
21349
|
function getSectionHeaderFooterReferenceKey(kind, variant) {
|
|
21436
21350
|
return `${variant === "default" ? "default" : variant === "first" ? "firstPage" : "evenPage"}${kind === "header" ? "Header" : "Footer"}Id`;
|
|
21437
21351
|
}
|
|
@@ -21479,8 +21393,7 @@ function resolveSectionHeaderFooterReferences(documentStyle, sections, sectionIn
|
|
|
21479
21393
|
return result;
|
|
21480
21394
|
}
|
|
21481
21395
|
|
|
21482
|
-
|
|
21483
|
-
//#region src/docs/sdt-binding.ts
|
|
21396
|
+
// src/docs/sdt-binding.ts
|
|
21484
21397
|
function getSdtBindingKey(range) {
|
|
21485
21398
|
var _range$properties;
|
|
21486
21399
|
const binding = (_range$properties = range.properties) === null || _range$properties === void 0 ? void 0 : _range$properties.dataBinding;
|
|
@@ -21510,8 +21423,7 @@ function getSdtBindingValue(body, range) {
|
|
|
21510
21423
|
return ["text", "richText"].includes(range.properties.kind) ? text : void 0;
|
|
21511
21424
|
}
|
|
21512
21425
|
|
|
21513
|
-
|
|
21514
|
-
//#region src/observer/observable.ts
|
|
21426
|
+
// src/observer/observable.ts
|
|
21515
21427
|
/**
|
|
21516
21428
|
* A class serves as a medium between the observable and its observers
|
|
21517
21429
|
*/
|
|
@@ -21607,12 +21519,10 @@ function fromEventSubject(subject$) {
|
|
|
21607
21519
|
});
|
|
21608
21520
|
}
|
|
21609
21521
|
|
|
21610
|
-
|
|
21611
|
-
//#region src/services/resource-manager/type.ts
|
|
21522
|
+
// src/services/resource-manager/type.ts
|
|
21612
21523
|
const IResourceManagerService = createIdentifier("core.resource-manager.service");
|
|
21613
21524
|
|
|
21614
|
-
|
|
21615
|
-
//#region src/services/user-manager/const.ts
|
|
21525
|
+
// src/services/user-manager/const.ts
|
|
21616
21526
|
const nameMap = {
|
|
21617
21527
|
[UnitRole.Editor]: "Editor",
|
|
21618
21528
|
[UnitRole.Owner]: "Owner",
|
|
@@ -21637,8 +21547,7 @@ const isDevRole = (userId, type) => {
|
|
|
21637
21547
|
return userId.startsWith(nameMap[type]);
|
|
21638
21548
|
};
|
|
21639
21549
|
|
|
21640
|
-
|
|
21641
|
-
//#region src/services/user-manager/user-manager.service.ts
|
|
21550
|
+
// src/services/user-manager/user-manager.service.ts
|
|
21642
21551
|
/**
|
|
21643
21552
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
21644
21553
|
*
|
|
@@ -21705,8 +21614,7 @@ var UserManagerService = class extends Disposable {
|
|
|
21705
21614
|
}
|
|
21706
21615
|
};
|
|
21707
21616
|
|
|
21708
|
-
|
|
21709
|
-
//#region src/services/authz-io/authz-io-local.service.ts
|
|
21617
|
+
// src/services/authz-io/authz-io-local.service.ts
|
|
21710
21618
|
let AuthzIoLocalService = class AuthzIoLocalService {
|
|
21711
21619
|
constructor(_resourceManagerService, _userManagerService) {
|
|
21712
21620
|
this._resourceManagerService = _resourceManagerService;
|
|
@@ -22017,12 +21925,10 @@ let AuthzIoLocalService = class AuthzIoLocalService {
|
|
|
22017
21925
|
};
|
|
22018
21926
|
AuthzIoLocalService = __decorate([__decorateParam(0, IResourceManagerService), __decorateParam(1, Inject(UserManagerService))], AuthzIoLocalService);
|
|
22019
21927
|
|
|
22020
|
-
|
|
22021
|
-
//#region src/services/authz-io/type.ts
|
|
21928
|
+
// src/services/authz-io/type.ts
|
|
22022
21929
|
const IAuthzIoService = createIdentifier("IAuthzIoIoService");
|
|
22023
21930
|
|
|
22024
|
-
|
|
22025
|
-
//#region src/services/confirm/confirm.service.ts
|
|
21931
|
+
// src/services/confirm/confirm.service.ts
|
|
22026
21932
|
const IConfirmService = createIdentifier("univer.confirm-service");
|
|
22027
21933
|
/**
|
|
22028
21934
|
* This is a mock service for testing purposes.
|
|
@@ -22045,8 +21951,7 @@ var TestConfirmService = class {
|
|
|
22045
21951
|
}
|
|
22046
21952
|
};
|
|
22047
21953
|
|
|
22048
|
-
|
|
22049
|
-
//#region src/services/context/context.ts
|
|
21954
|
+
// src/services/context/context.ts
|
|
22050
21955
|
/**
|
|
22051
21956
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
22052
21957
|
*
|
|
@@ -22089,8 +21994,7 @@ const FOCUSING_COMMON_DRAWINGS = "FOCUSING_COMMON_DRAWINGS";
|
|
|
22089
21994
|
const FOCUSING_SHAPE_TEXT_EDITOR = "FOCUSING_SHAPE_TEXT_EDITOR";
|
|
22090
21995
|
const FORMULA_EDITOR_ACTIVATED = "FORMULA_EDITOR_ACTIVATED";
|
|
22091
21996
|
|
|
22092
|
-
|
|
22093
|
-
//#region src/services/error/error.service.ts
|
|
21997
|
+
// src/services/error/error.service.ts
|
|
22094
21998
|
/**
|
|
22095
21999
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
22096
22000
|
*
|
|
@@ -22127,8 +22031,7 @@ var ErrorService = class extends Disposable {
|
|
|
22127
22031
|
}
|
|
22128
22032
|
};
|
|
22129
22033
|
|
|
22130
|
-
|
|
22131
|
-
//#region src/services/image-io/image-io.service.ts
|
|
22034
|
+
// src/services/image-io/image-io.service.ts
|
|
22132
22035
|
/**
|
|
22133
22036
|
* The type of image data source
|
|
22134
22037
|
*/
|
|
@@ -22157,12 +22060,10 @@ let ImageUploadStatusType = /* @__PURE__ */ function(ImageUploadStatusType) {
|
|
|
22157
22060
|
}({});
|
|
22158
22061
|
const IImageIoService = createIdentifier("core.image-io.service");
|
|
22159
22062
|
|
|
22160
|
-
|
|
22161
|
-
//#region src/services/image-io/url-image.service.ts
|
|
22063
|
+
// src/services/image-io/url-image.service.ts
|
|
22162
22064
|
const IURLImageService = createIdentifier("core.url-image.service");
|
|
22163
22065
|
|
|
22164
|
-
|
|
22165
|
-
//#region src/sheets/calculation-settings.ts
|
|
22066
|
+
// src/sheets/calculation-settings.ts
|
|
22166
22067
|
const MAX_ITERATION_COUNT = 32767;
|
|
22167
22068
|
const DEFAULT_WORKBOOK_CALCULATION_SETTINGS = Object.freeze({
|
|
22168
22069
|
iterativeCalculation: false,
|
|
@@ -22178,8 +22079,7 @@ function normalizeWorkbookCalculationSettings(value) {
|
|
|
22178
22079
|
};
|
|
22179
22080
|
}
|
|
22180
22081
|
|
|
22181
|
-
|
|
22182
|
-
//#region src/sheets/empty-snapshot.ts
|
|
22082
|
+
// src/sheets/empty-snapshot.ts
|
|
22183
22083
|
function getEmptySnapshot$2(unitID = "", locale = "zhCN", name = "") {
|
|
22184
22084
|
return {
|
|
22185
22085
|
id: unitID,
|
|
@@ -22194,8 +22094,7 @@ function getEmptySnapshot$2(unitID = "", locale = "zhCN", name = "") {
|
|
|
22194
22094
|
};
|
|
22195
22095
|
}
|
|
22196
22096
|
|
|
22197
|
-
|
|
22198
|
-
//#region src/sheets/styles.ts
|
|
22097
|
+
// src/sheets/styles.ts
|
|
22199
22098
|
/**
|
|
22200
22099
|
* Styles in a workbook, cells locate styles based on style IDs
|
|
22201
22100
|
*
|
|
@@ -22275,8 +22174,7 @@ var Styles = class {
|
|
|
22275
22174
|
}
|
|
22276
22175
|
};
|
|
22277
22176
|
|
|
22278
|
-
|
|
22279
|
-
//#region src/sheets/util.ts
|
|
22177
|
+
// src/sheets/util.ts
|
|
22280
22178
|
const isRangesEqual = (oldRanges, ranges) => {
|
|
22281
22179
|
return ranges.length === oldRanges.length && !oldRanges.some((oldRange) => ranges.some((range) => !Rectangle.equals(range, oldRange)));
|
|
22282
22180
|
};
|
|
@@ -22421,8 +22319,7 @@ function getEmptyCell() {
|
|
|
22421
22319
|
};
|
|
22422
22320
|
}
|
|
22423
22321
|
|
|
22424
|
-
|
|
22425
|
-
//#region src/docs/data-model/utils.ts
|
|
22322
|
+
// src/docs/data-model/utils.ts
|
|
22426
22323
|
const DEFAULT_FONTFACE_PLANE = "\"Helvetica Neue\", Helvetica, Arial, \"PingFang SC\", \"Hiragino Sans GB\", \"Heiti SC\", \"Microsoft YaHei\", \"WenQuanYi Micro Hei\", sans-serif";
|
|
22427
22324
|
function getFontStyleString(textStyle) {
|
|
22428
22325
|
const defaultFont = DEFAULT_STYLES.ff;
|
|
@@ -22486,8 +22383,7 @@ function convertTextRotation(textRotation) {
|
|
|
22486
22383
|
};
|
|
22487
22384
|
}
|
|
22488
22385
|
|
|
22489
|
-
|
|
22490
|
-
//#region src/sheets/sheet-dimensions.ts
|
|
22386
|
+
// src/sheets/sheet-dimensions.ts
|
|
22491
22387
|
function isValidSheetDimension(value, allowZero = true) {
|
|
22492
22388
|
return typeof value === "number" && Number.isFinite(value) && (allowZero ? value >= 0 : value > 0);
|
|
22493
22389
|
}
|
|
@@ -22501,8 +22397,7 @@ function isValidRowDimensions(data) {
|
|
|
22501
22397
|
return ((data === null || data === void 0 ? void 0 : data.h) == null || isValidSheetDimension(data.h)) && ((data === null || data === void 0 ? void 0 : data.ah) == null || isValidSheetDimension(data.ah));
|
|
22502
22398
|
}
|
|
22503
22399
|
|
|
22504
|
-
|
|
22505
|
-
//#region src/sheets/sheet-snapshot-utils.ts
|
|
22400
|
+
// src/sheets/sheet-snapshot-utils.ts
|
|
22506
22401
|
const DEFAULT_WORKSHEET_ROW_COUNT_KEY = "DEFAULT_WORKSHEET_ROW_COUNT";
|
|
22507
22402
|
const DEFAULT_WORKSHEET_ROW_COUNT = 1e3;
|
|
22508
22403
|
const DEFAULT_WORKSHEET_COLUMN_COUNT_KEY = "DEFAULT_WORKSHEET_COLUMN_COUNT";
|
|
@@ -22576,8 +22471,7 @@ function mergeWorksheetSnapshotWithDefault(snapshot) {
|
|
|
22576
22471
|
return snapshot;
|
|
22577
22472
|
}
|
|
22578
22473
|
|
|
22579
|
-
|
|
22580
|
-
//#region src/sheets/column-manager.ts
|
|
22474
|
+
// src/sheets/column-manager.ts
|
|
22581
22475
|
/**
|
|
22582
22476
|
* Manage configuration information of all columns, get column width, column length, set column width, etc.
|
|
22583
22477
|
*/
|
|
@@ -22800,8 +22694,7 @@ var ColumnManager = class {
|
|
|
22800
22694
|
}
|
|
22801
22695
|
};
|
|
22802
22696
|
|
|
22803
|
-
|
|
22804
|
-
//#region src/sheets/range.ts
|
|
22697
|
+
// src/sheets/range.ts
|
|
22805
22698
|
function isAllFormatInTextRuns(key, body) {
|
|
22806
22699
|
const { textRuns = [] } = body;
|
|
22807
22700
|
let len = 0;
|
|
@@ -23339,8 +23232,7 @@ _defineProperty(Range, "transformRange", (range, worksheet) => {
|
|
|
23339
23232
|
};
|
|
23340
23233
|
});
|
|
23341
23234
|
|
|
23342
|
-
|
|
23343
|
-
//#region src/sheets/row-manager.ts
|
|
23235
|
+
// src/sheets/row-manager.ts
|
|
23344
23236
|
const MAXIMUM_ROW_HEIGHT = 2e3;
|
|
23345
23237
|
/**
|
|
23346
23238
|
* Manage configuration information of all rows, get row height, row length, set row height, etc.
|
|
@@ -23573,8 +23465,7 @@ var RowManager = class {
|
|
|
23573
23465
|
}
|
|
23574
23466
|
};
|
|
23575
23467
|
|
|
23576
|
-
|
|
23577
|
-
//#region src/sheets/span-model.ts
|
|
23468
|
+
// src/sheets/span-model.ts
|
|
23578
23469
|
var SpanModel = class extends Disposable {
|
|
23579
23470
|
constructor(mergeData) {
|
|
23580
23471
|
super();
|
|
@@ -23738,8 +23629,7 @@ var SpanModel = class extends Disposable {
|
|
|
23738
23629
|
}
|
|
23739
23630
|
};
|
|
23740
23631
|
|
|
23741
|
-
|
|
23742
|
-
//#region src/sheets/view-model.ts
|
|
23632
|
+
// src/sheets/view-model.ts
|
|
23743
23633
|
/**
|
|
23744
23634
|
* @internal
|
|
23745
23635
|
*/
|
|
@@ -23783,8 +23673,7 @@ var SheetViewModel = class extends Disposable {
|
|
|
23783
23673
|
}
|
|
23784
23674
|
};
|
|
23785
23675
|
|
|
23786
|
-
|
|
23787
|
-
//#region src/sheets/worksheet.ts
|
|
23676
|
+
// src/sheets/worksheet.ts
|
|
23788
23677
|
const DEFAULT_CELL_DOCUMENT_MODEL_OPTION = {
|
|
23789
23678
|
isDeepClone: false,
|
|
23790
23679
|
displayRawFormula: false,
|
|
@@ -24781,8 +24670,7 @@ function getOriginCellValue(cell) {
|
|
|
24781
24670
|
return cell === null || cell === void 0 ? void 0 : cell.v;
|
|
24782
24671
|
}
|
|
24783
24672
|
|
|
24784
|
-
|
|
24785
|
-
//#region src/sheets/workbook.ts
|
|
24673
|
+
// src/sheets/workbook.ts
|
|
24786
24674
|
function getWorksheetUID(workbook, worksheet) {
|
|
24787
24675
|
return `${workbook.getUnitId()}|${worksheet.getSheetId()}`;
|
|
24788
24676
|
}
|
|
@@ -25113,8 +25001,7 @@ let Workbook = class Workbook extends UnitModel {
|
|
|
25113
25001
|
};
|
|
25114
25002
|
Workbook = __decorate([__decorateParam(1, ILogService)], Workbook);
|
|
25115
25003
|
|
|
25116
|
-
|
|
25117
|
-
//#region src/services/instance/instance.service.ts
|
|
25004
|
+
// src/services/instance/instance.service.ts
|
|
25118
25005
|
const IUniverInstanceService = createIdentifier("univer.current");
|
|
25119
25006
|
let UniverInstanceService = class UniverInstanceService extends Disposable {
|
|
25120
25007
|
constructor(_injector, _contextService, _logService) {
|
|
@@ -25309,8 +25196,7 @@ UniverInstanceService = __decorate([
|
|
|
25309
25196
|
__decorateParam(2, Inject(ILogService))
|
|
25310
25197
|
], UniverInstanceService);
|
|
25311
25198
|
|
|
25312
|
-
|
|
25313
|
-
//#region src/services/lifecycle/lifecycle.ts
|
|
25199
|
+
// src/services/lifecycle/lifecycle.ts
|
|
25314
25200
|
/**
|
|
25315
25201
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
25316
25202
|
*
|
|
@@ -25356,8 +25242,7 @@ const LifecycleNameMap = {
|
|
|
25356
25242
|
[3]: "Steady"
|
|
25357
25243
|
};
|
|
25358
25244
|
|
|
25359
|
-
|
|
25360
|
-
//#region src/services/lifecycle/lifecycle.service.ts
|
|
25245
|
+
// src/services/lifecycle/lifecycle.service.ts
|
|
25361
25246
|
/**
|
|
25362
25247
|
* An error that indicates a lifecycle stage will never be reached, mostly due to the Univer instance is
|
|
25363
25248
|
* disposed.
|
|
@@ -25430,8 +25315,7 @@ function getLifecycleStagesAndBefore(lifecycleStage) {
|
|
|
25430
25315
|
}
|
|
25431
25316
|
}
|
|
25432
25317
|
|
|
25433
|
-
|
|
25434
|
-
//#region src/services/local-storage/local-storage.service.ts
|
|
25318
|
+
// src/services/local-storage/local-storage.service.ts
|
|
25435
25319
|
/**
|
|
25436
25320
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
25437
25321
|
*
|
|
@@ -25449,8 +25333,7 @@ function getLifecycleStagesAndBefore(lifecycleStage) {
|
|
|
25449
25333
|
*/
|
|
25450
25334
|
const ILocalStorageService = createIdentifier("ILocalStorageService");
|
|
25451
25335
|
|
|
25452
|
-
|
|
25453
|
-
//#region src/services/locale/locale.service.ts
|
|
25336
|
+
// src/services/locale/locale.service.ts
|
|
25454
25337
|
/**
|
|
25455
25338
|
* This service provides i18n and timezone / location features to other modules.
|
|
25456
25339
|
*/
|
|
@@ -25550,8 +25433,7 @@ var LocaleService = class extends Disposable {
|
|
|
25550
25433
|
}
|
|
25551
25434
|
};
|
|
25552
25435
|
|
|
25553
|
-
|
|
25554
|
-
//#region src/services/mention-io/mention-io-local.service.ts
|
|
25436
|
+
// src/services/mention-io/mention-io-local.service.ts
|
|
25555
25437
|
let MentionIOLocalService = class MentionIOLocalService {
|
|
25556
25438
|
constructor(_userManagerService) {
|
|
25557
25439
|
this._userManagerService = _userManagerService;
|
|
@@ -25577,12 +25459,10 @@ let MentionIOLocalService = class MentionIOLocalService {
|
|
|
25577
25459
|
};
|
|
25578
25460
|
MentionIOLocalService = __decorate([__decorateParam(0, Inject(UserManagerService))], MentionIOLocalService);
|
|
25579
25461
|
|
|
25580
|
-
|
|
25581
|
-
//#region src/services/mention-io/type.ts
|
|
25462
|
+
// src/services/mention-io/type.ts
|
|
25582
25463
|
const IMentionIOService = createIdentifier("univer.service.mention-io");
|
|
25583
25464
|
|
|
25584
|
-
|
|
25585
|
-
//#region src/services/permission/object-permission-rule.model.ts
|
|
25465
|
+
// src/services/permission/object-permission-rule.model.ts
|
|
25586
25466
|
/** Shared storage only; each product owns its rule type, resource name and mutation. */
|
|
25587
25467
|
var ObjectPermissionRuleModel = class extends Disposable {
|
|
25588
25468
|
constructor(resources, name, business, _objectTypes) {
|
|
@@ -25654,8 +25534,7 @@ var ObjectPermissionRuleModel = class extends Disposable {
|
|
|
25654
25534
|
}
|
|
25655
25535
|
};
|
|
25656
25536
|
|
|
25657
|
-
|
|
25658
|
-
//#region src/services/undoredo/undoredo.service.ts
|
|
25537
|
+
// src/services/undoredo/undoredo.service.ts
|
|
25659
25538
|
const IUndoRedoService = createIdentifier("univer.undo-redo.service");
|
|
25660
25539
|
const DEFAULT_UNDO_REDO_HISTORY_LIMIT = 50;
|
|
25661
25540
|
const UNDO_REDO_HISTORY_LIMIT_CONFIG_KEY = "undoRedo.historyLimit";
|
|
@@ -25901,8 +25780,7 @@ LocalUndoRedoService = __decorate([
|
|
|
25901
25780
|
__decorateParam(3, IConfigService)
|
|
25902
25781
|
], LocalUndoRedoService);
|
|
25903
25782
|
|
|
25904
|
-
|
|
25905
|
-
//#region src/services/permission/type.ts
|
|
25783
|
+
// src/services/permission/type.ts
|
|
25906
25784
|
let PermissionStatus = /* @__PURE__ */ function(PermissionStatus) {
|
|
25907
25785
|
PermissionStatus["INIT"] = "init";
|
|
25908
25786
|
PermissionStatus["FETCHING"] = "fetching";
|
|
@@ -25911,8 +25789,7 @@ let PermissionStatus = /* @__PURE__ */ function(PermissionStatus) {
|
|
|
25911
25789
|
}({});
|
|
25912
25790
|
const IPermissionService = createIdentifier("univer.permission-service");
|
|
25913
25791
|
|
|
25914
|
-
|
|
25915
|
-
//#region src/services/permission/object-permission.service.ts
|
|
25792
|
+
// src/services/permission/object-permission.service.ts
|
|
25916
25793
|
/** Frontend opt-in; does not change the Authz service interface or existing local setters. */
|
|
25917
25794
|
const OBJECT_PERMISSION_CONFIG_KEY = "objectPermissionTypes";
|
|
25918
25795
|
const ROOT_OBJECT_TYPES = {
|
|
@@ -26426,8 +26303,7 @@ ObjectPermissionService = __decorate([
|
|
|
26426
26303
|
__decorateParam(5, ICommandService)
|
|
26427
26304
|
], ObjectPermissionService);
|
|
26428
26305
|
|
|
26429
|
-
|
|
26430
|
-
//#region src/services/permission/permission.service.ts
|
|
26306
|
+
// src/services/permission/permission.service.ts
|
|
26431
26307
|
var PermissionService = class extends Disposable {
|
|
26432
26308
|
constructor(..._args) {
|
|
26433
26309
|
super(..._args);
|
|
@@ -26511,8 +26387,7 @@ var PermissionService = class extends Disposable {
|
|
|
26511
26387
|
}
|
|
26512
26388
|
};
|
|
26513
26389
|
|
|
26514
|
-
|
|
26515
|
-
//#region src/services/plugin/plugin-override.ts
|
|
26390
|
+
// src/services/plugin/plugin-override.ts
|
|
26516
26391
|
function mergeOverrideWithDependencies(dependencies, override) {
|
|
26517
26392
|
if (!override) return dependencies;
|
|
26518
26393
|
const result = [];
|
|
@@ -26526,8 +26401,7 @@ function mergeOverrideWithDependencies(dependencies, override) {
|
|
|
26526
26401
|
return result;
|
|
26527
26402
|
}
|
|
26528
26403
|
|
|
26529
|
-
|
|
26530
|
-
//#region src/services/plugin/plugin.service.ts
|
|
26404
|
+
// src/services/plugin/plugin.service.ts
|
|
26531
26405
|
const INIT_LAZY_PLUGINS_TIMEOUT = 4;
|
|
26532
26406
|
const DependentOnSymbol = Symbol("DependentOn");
|
|
26533
26407
|
/**
|
|
@@ -26725,8 +26599,7 @@ PluginService = __decorate([
|
|
|
26725
26599
|
__decorateParam(2, ILogService)
|
|
26726
26600
|
], PluginService);
|
|
26727
26601
|
|
|
26728
|
-
|
|
26729
|
-
//#region src/services/region/region.service.ts
|
|
26602
|
+
// src/services/region/region.service.ts
|
|
26730
26603
|
let RegionService = class RegionService extends Disposable {
|
|
26731
26604
|
constructor(_localeService) {
|
|
26732
26605
|
super();
|
|
@@ -26751,12 +26624,10 @@ let RegionService = class RegionService extends Disposable {
|
|
|
26751
26624
|
};
|
|
26752
26625
|
RegionService = __decorate([__decorateParam(0, Inject(LocaleService))], RegionService);
|
|
26753
26626
|
|
|
26754
|
-
|
|
26755
|
-
//#region src/services/resource-loader/type.ts
|
|
26627
|
+
// src/services/resource-loader/type.ts
|
|
26756
26628
|
const IResourceLoaderService = createIdentifier("resource-loader-service");
|
|
26757
26629
|
|
|
26758
|
-
|
|
26759
|
-
//#region src/services/resource-manager/resource-manager.service.ts
|
|
26630
|
+
// src/services/resource-manager/resource-manager.service.ts
|
|
26760
26631
|
let ResourceManagerService = class ResourceManagerService extends Disposable {
|
|
26761
26632
|
constructor(_logService) {
|
|
26762
26633
|
super();
|
|
@@ -26831,8 +26702,7 @@ let ResourceManagerService = class ResourceManagerService extends Disposable {
|
|
|
26831
26702
|
};
|
|
26832
26703
|
ResourceManagerService = __decorate([__decorateParam(0, ILogService)], ResourceManagerService);
|
|
26833
26704
|
|
|
26834
|
-
|
|
26835
|
-
//#region src/services/theme/theme.service.ts
|
|
26705
|
+
// src/services/theme/theme.service.ts
|
|
26836
26706
|
var ThemeService = class extends Disposable {
|
|
26837
26707
|
get darkMode() {
|
|
26838
26708
|
return this._darkMode$.getValue();
|
|
@@ -26905,8 +26775,7 @@ var ThemeService = class extends Disposable {
|
|
|
26905
26775
|
}
|
|
26906
26776
|
};
|
|
26907
26777
|
|
|
26908
|
-
|
|
26909
|
-
//#region src/shared/cache/image-cache.ts
|
|
26778
|
+
// src/shared/cache/image-cache.ts
|
|
26910
26779
|
var ImageCacheMap = class {
|
|
26911
26780
|
constructor(_injector, maxSize = 1e3) {
|
|
26912
26781
|
this._injector = _injector;
|
|
@@ -26951,8 +26820,7 @@ var ImageCacheMap = class {
|
|
|
26951
26820
|
}
|
|
26952
26821
|
};
|
|
26953
26822
|
|
|
26954
|
-
|
|
26955
|
-
//#region src/shared/name.ts
|
|
26823
|
+
// src/shared/name.ts
|
|
26956
26824
|
/**
|
|
26957
26825
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
26958
26826
|
*
|
|
@@ -27011,8 +26879,7 @@ function customNameCharacterCheck(name, sheetNameSet) {
|
|
|
27011
26879
|
return true;
|
|
27012
26880
|
}
|
|
27013
26881
|
|
|
27014
|
-
|
|
27015
|
-
//#region src/shared/r-tree.ts
|
|
26882
|
+
// src/shared/r-tree.ts
|
|
27016
26883
|
var RTree = class {
|
|
27017
26884
|
constructor(_enableOneCellCache = false) {
|
|
27018
26885
|
this._enableOneCellCache = _enableOneCellCache;
|
|
@@ -27176,8 +27043,10 @@ var RTree = class {
|
|
|
27176
27043
|
}
|
|
27177
27044
|
}
|
|
27178
27045
|
_removeRTreeItem(search) {
|
|
27046
|
+
var _this$_tree$get3;
|
|
27179
27047
|
const { unitId, sheetId: subUnitId, range, id } = search;
|
|
27180
|
-
const tree = this.
|
|
27048
|
+
const tree = (_this$_tree$get3 = this._tree.get(unitId)) === null || _this$_tree$get3 === void 0 ? void 0 : _this$_tree$get3.get(subUnitId);
|
|
27049
|
+
if (!tree) return;
|
|
27181
27050
|
const items = tree.search({
|
|
27182
27051
|
minX: range.startColumn,
|
|
27183
27052
|
minY: range.startRow,
|
|
@@ -27198,7 +27067,93 @@ var RTree = class {
|
|
|
27198
27067
|
} else this._removeRTreeItem(search);
|
|
27199
27068
|
}
|
|
27200
27069
|
bulkRemove(searchList) {
|
|
27201
|
-
|
|
27070
|
+
if (searchList.length < 2) {
|
|
27071
|
+
for (const search of searchList) this.remove(search);
|
|
27072
|
+
return;
|
|
27073
|
+
}
|
|
27074
|
+
const groups = /* @__PURE__ */ new Map();
|
|
27075
|
+
for (const search of searchList) {
|
|
27076
|
+
let sheets = groups.get(search.unitId);
|
|
27077
|
+
if (!sheets) {
|
|
27078
|
+
sheets = /* @__PURE__ */ new Map();
|
|
27079
|
+
groups.set(search.unitId, sheets);
|
|
27080
|
+
}
|
|
27081
|
+
let ids = sheets.get(search.sheetId);
|
|
27082
|
+
if (!ids) {
|
|
27083
|
+
ids = /* @__PURE__ */ new Map();
|
|
27084
|
+
sheets.set(search.sheetId, ids);
|
|
27085
|
+
}
|
|
27086
|
+
const ranges = ids.get(search.id);
|
|
27087
|
+
if (ranges) ranges.push(search);
|
|
27088
|
+
else ids.set(search.id, [search]);
|
|
27089
|
+
}
|
|
27090
|
+
for (const [unitId, sheets] of groups) for (const [sheetId, ids] of sheets) if (!this._removeSparseRanges(unitId, sheetId, ids)) this._bulkRemoveFromSheet(unitId, sheetId, ids);
|
|
27091
|
+
}
|
|
27092
|
+
_bulkRemoveFromSheet(unitId, sheetId, searches) {
|
|
27093
|
+
var _this$_tree$get4, _this$_oneCellCache$g2;
|
|
27094
|
+
if (searches.size === 1) {
|
|
27095
|
+
const [ranges] = searches.values();
|
|
27096
|
+
if (ranges.length === 1) {
|
|
27097
|
+
this.remove(ranges[0]);
|
|
27098
|
+
return;
|
|
27099
|
+
}
|
|
27100
|
+
}
|
|
27101
|
+
const matches = (id, bounds, rangedOnly = false) => {
|
|
27102
|
+
var _searches$get;
|
|
27103
|
+
return ((_searches$get = searches.get(id)) === null || _searches$get === void 0 ? void 0 : _searches$get.some(({ range }) => (!rangedOnly || !this._enableOneCellCache || range.startRow !== range.endRow || range.startColumn !== range.endColumn) && range.startColumn <= bounds.maxX && range.endColumn >= bounds.minX && range.startRow <= bounds.maxY && range.endRow >= bounds.minY)) ?? false;
|
|
27104
|
+
};
|
|
27105
|
+
const tree = (_this$_tree$get4 = this._tree.get(unitId)) === null || _this$_tree$get4 === void 0 ? void 0 : _this$_tree$get4.get(sheetId);
|
|
27106
|
+
if (tree) {
|
|
27107
|
+
const entries = tree.all();
|
|
27108
|
+
let retained = 0;
|
|
27109
|
+
for (const item of entries) if (!matches(item.id, item, true)) entries[retained++] = item;
|
|
27110
|
+
if (retained !== entries.length) {
|
|
27111
|
+
entries.length = retained;
|
|
27112
|
+
tree.clear();
|
|
27113
|
+
tree.load(entries);
|
|
27114
|
+
}
|
|
27115
|
+
}
|
|
27116
|
+
const cells = (_this$_oneCellCache$g2 = this._oneCellCache.get(unitId)) === null || _this$_oneCellCache$g2 === void 0 ? void 0 : _this$_oneCellCache$g2.get(sheetId);
|
|
27117
|
+
if (cells) for (const [row, columns] of cells) for (const [column, ids] of columns) {
|
|
27118
|
+
const bounds = {
|
|
27119
|
+
minX: column,
|
|
27120
|
+
maxX: column,
|
|
27121
|
+
minY: row,
|
|
27122
|
+
maxY: row
|
|
27123
|
+
};
|
|
27124
|
+
for (const id of ids) if (matches(id, bounds)) ids.delete(id);
|
|
27125
|
+
}
|
|
27126
|
+
}
|
|
27127
|
+
_removeSparseRanges(unitId, sheetId, searches) {
|
|
27128
|
+
var _this$_tree$get5, _this$_oneCellCache$g3;
|
|
27129
|
+
let remaining = 128;
|
|
27130
|
+
if (searches.size > remaining) return false;
|
|
27131
|
+
const visit = (node, range) => {
|
|
27132
|
+
if (--remaining < 0) return false;
|
|
27133
|
+
if (!node.leaf && range.startColumn <= node.minX && range.endColumn >= node.maxX && range.startRow <= node.minY && range.endRow >= node.maxY) return false;
|
|
27134
|
+
for (const child of node.children) if (range.startColumn <= child.maxX && range.endColumn >= child.minX && range.startRow <= child.maxY && range.endRow >= child.minY) {
|
|
27135
|
+
if (node.leaf) {
|
|
27136
|
+
if (--remaining < 0) return false;
|
|
27137
|
+
} else if (!visit(child, range)) return false;
|
|
27138
|
+
}
|
|
27139
|
+
return true;
|
|
27140
|
+
};
|
|
27141
|
+
const tree = (_this$_tree$get5 = this._tree.get(unitId)) === null || _this$_tree$get5 === void 0 ? void 0 : _this$_tree$get5.get(sheetId);
|
|
27142
|
+
const root = tree === null || tree === void 0 ? void 0 : tree.toJSON();
|
|
27143
|
+
const cells = (_this$_oneCellCache$g3 = this._oneCellCache.get(unitId)) === null || _this$_oneCellCache$g3 === void 0 ? void 0 : _this$_oneCellCache$g3.get(sheetId);
|
|
27144
|
+
for (const [id, ranges] of searches) {
|
|
27145
|
+
if (Number.isNaN(id)) return false;
|
|
27146
|
+
for (const { range } of ranges) {
|
|
27147
|
+
if (--remaining < 0) return false;
|
|
27148
|
+
if (this._enableOneCellCache) {
|
|
27149
|
+
if (range.startRow === range.endRow && range.startColumn === range.endColumn) continue;
|
|
27150
|
+
if (cells) return false;
|
|
27151
|
+
}
|
|
27152
|
+
if (root && !visit(root, range)) return false;
|
|
27153
|
+
}
|
|
27154
|
+
}
|
|
27155
|
+
for (const ranges of searches.values()) for (const search of ranges) this.remove(search);
|
|
27156
|
+
return true;
|
|
27202
27157
|
}
|
|
27203
27158
|
clear() {
|
|
27204
27159
|
this._tree.clear();
|
|
@@ -27227,8 +27182,7 @@ var RTree = class {
|
|
|
27227
27182
|
}
|
|
27228
27183
|
};
|
|
27229
27184
|
|
|
27230
|
-
|
|
27231
|
-
//#region src/types/enum/record-filter.ts
|
|
27185
|
+
// src/types/enum/record-filter.ts
|
|
27232
27186
|
/**
|
|
27233
27187
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
27234
27188
|
*
|
|
@@ -27262,8 +27216,7 @@ let FilterSelectionMode = /* @__PURE__ */ function(FilterSelectionMode) {
|
|
|
27262
27216
|
return FilterSelectionMode;
|
|
27263
27217
|
}({});
|
|
27264
27218
|
|
|
27265
|
-
|
|
27266
|
-
//#region src/shared/record-value.ts
|
|
27219
|
+
// src/shared/record-value.ts
|
|
27267
27220
|
function getRecordValueKey(_value) {
|
|
27268
27221
|
const value = _value;
|
|
27269
27222
|
if (!isRecord(value) || typeof value.type !== "string") throw new TypeError("Invalid record value.");
|
|
@@ -27290,8 +27243,7 @@ function isRecord(value) {
|
|
|
27290
27243
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
27291
27244
|
}
|
|
27292
27245
|
|
|
27293
|
-
|
|
27294
|
-
//#region src/shared/timer.ts
|
|
27246
|
+
// src/shared/timer.ts
|
|
27295
27247
|
/**
|
|
27296
27248
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
27297
27249
|
*
|
|
@@ -27336,8 +27288,7 @@ function delayAnimationFrame(frames = 1) {
|
|
|
27336
27288
|
});
|
|
27337
27289
|
}
|
|
27338
27290
|
|
|
27339
|
-
|
|
27340
|
-
//#region src/shared/units.ts
|
|
27291
|
+
// src/shared/units.ts
|
|
27341
27292
|
/**
|
|
27342
27293
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
27343
27294
|
*
|
|
@@ -27362,8 +27313,7 @@ function emuToCssPx(value) {
|
|
|
27362
27313
|
return value / EMU_PER_CSS_PX;
|
|
27363
27314
|
}
|
|
27364
27315
|
|
|
27365
|
-
|
|
27366
|
-
//#region src/sheets/clone.ts
|
|
27316
|
+
// src/sheets/clone.ts
|
|
27367
27317
|
/**
|
|
27368
27318
|
* Fast clone for primitive values and simple objects.
|
|
27369
27319
|
* Avoids type checking overhead when we know the structure.
|
|
@@ -27512,12 +27462,14 @@ function cloneMergeData(ranges) {
|
|
|
27512
27462
|
function cloneWorksheetData(worksheet) {
|
|
27513
27463
|
const result = {
|
|
27514
27464
|
id: worksheet.id,
|
|
27465
|
+
...worksheet.type === void 0 ? {} : { type: worksheet.type },
|
|
27515
27466
|
name: worksheet.name,
|
|
27516
27467
|
tabColor: worksheet.tabColor,
|
|
27517
27468
|
hidden: worksheet.hidden,
|
|
27518
27469
|
rowCount: worksheet.rowCount,
|
|
27519
27470
|
columnCount: worksheet.columnCount,
|
|
27520
27471
|
zoomRatio: worksheet.zoomRatio,
|
|
27472
|
+
...worksheet.zoomToFit === void 0 ? {} : { zoomToFit: worksheet.zoomToFit },
|
|
27521
27473
|
scrollTop: worksheet.scrollTop,
|
|
27522
27474
|
scrollLeft: worksheet.scrollLeft,
|
|
27523
27475
|
defaultColumnWidth: worksheet.defaultColumnWidth,
|
|
@@ -27558,8 +27510,7 @@ function cloneWorksheetData(worksheet) {
|
|
|
27558
27510
|
return result;
|
|
27559
27511
|
}
|
|
27560
27512
|
|
|
27561
|
-
|
|
27562
|
-
//#region src/skeleton.ts
|
|
27513
|
+
// src/skeleton.ts
|
|
27563
27514
|
let Skeleton = class Skeleton extends Disposable {
|
|
27564
27515
|
constructor(_localeService) {
|
|
27565
27516
|
super();
|
|
@@ -27585,8 +27536,7 @@ let Skeleton = class Skeleton extends Disposable {
|
|
|
27585
27536
|
};
|
|
27586
27537
|
Skeleton = __decorate([__decorateParam(0, Inject(LocaleService))], Skeleton);
|
|
27587
27538
|
|
|
27588
|
-
|
|
27589
|
-
//#region src/sheets/sheet-skeleton.ts
|
|
27539
|
+
// src/sheets/sheet-skeleton.ts
|
|
27590
27540
|
/**
|
|
27591
27541
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
27592
27542
|
*
|
|
@@ -27898,35 +27848,19 @@ let SheetSkeleton = class SheetSkeleton extends Skeleton {
|
|
|
27898
27848
|
}
|
|
27899
27849
|
_getOverflowBound(row, startColumn, endColumn, contentWidth, horizontalAlign = 1) {
|
|
27900
27850
|
let cumWidth = 0;
|
|
27901
|
-
|
|
27902
|
-
|
|
27903
|
-
for (let i = startColumn; i >= endColumn; i--) {
|
|
27904
|
-
const column = i;
|
|
27905
|
-
const cell = this.worksheet.getCell(row, column);
|
|
27906
|
-
if (!isCellCoverable(cell) && column !== startColumn || this.intersectMergeRange(row, column)) {
|
|
27907
|
-
if (column === startColumn) return column;
|
|
27908
|
-
return column + 1 > columnCount ? columnCount : column + 1;
|
|
27909
|
-
}
|
|
27910
|
-
const { startX, endX } = getCellWithCoordByIndexCore(row, column, this.rowHeightAccumulation, this.columnWidthAccumulation, void 0, this.getGapSizeGetter());
|
|
27911
|
-
if (horizontalAlign === 2 && column === startColumn) cumWidth += (endX - startX) / 2;
|
|
27912
|
-
else cumWidth += endX - startX;
|
|
27913
|
-
if (contentWidth < cumWidth) return column;
|
|
27914
|
-
}
|
|
27915
|
-
return startColumn;
|
|
27916
|
-
}
|
|
27917
|
-
for (let i = startColumn; i <= endColumn; i++) {
|
|
27918
|
-
const column = i;
|
|
27851
|
+
const direction = startColumn > endColumn ? -1 : 1;
|
|
27852
|
+
for (let column = startColumn; direction === 1 ? column <= endColumn : column >= endColumn; column += direction) {
|
|
27919
27853
|
const cell = this.worksheet.getCell(row, column);
|
|
27920
27854
|
if (!isCellCoverable(cell) && column !== startColumn || this.intersectMergeRange(row, column)) {
|
|
27921
27855
|
if (column === startColumn) return column;
|
|
27922
|
-
return column -
|
|
27856
|
+
return Tools.clamp(column - direction, 0, this._columnWidthAccumulation.length - 1);
|
|
27923
27857
|
}
|
|
27924
27858
|
const { startX, endX } = getCellWithCoordByIndexCore(row, column, this.rowHeightAccumulation, this.columnWidthAccumulation, void 0, this.getGapSizeGetter());
|
|
27925
27859
|
if (horizontalAlign === 2 && column === startColumn) cumWidth += (endX - startX) / 2;
|
|
27926
27860
|
else cumWidth += endX - startX;
|
|
27927
27861
|
if (contentWidth < cumWidth) return column;
|
|
27928
27862
|
}
|
|
27929
|
-
return endColumn;
|
|
27863
|
+
return direction === 1 ? endColumn : startColumn;
|
|
27930
27864
|
}
|
|
27931
27865
|
/**
|
|
27932
27866
|
* Calculate data for row col & cell position.
|
|
@@ -27986,30 +27920,22 @@ let SheetSkeleton = class SheetSkeleton extends Skeleton {
|
|
|
27986
27920
|
let lastSearchedMergeCell = null;
|
|
27987
27921
|
while (isSearching) {
|
|
27988
27922
|
isSearching = false;
|
|
27989
|
-
for (
|
|
27990
|
-
|
|
27991
|
-
if (
|
|
27992
|
-
const rect1 = {
|
|
27923
|
+
for (const mergeRange of mergeData) {
|
|
27924
|
+
if (searchedMerge.getValue(mergeRange.startRow, mergeRange.startColumn)) continue;
|
|
27925
|
+
if (getIntersectRange({
|
|
27993
27926
|
startColumn,
|
|
27994
27927
|
startRow,
|
|
27995
27928
|
endColumn,
|
|
27996
27929
|
endRow
|
|
27997
|
-
}
|
|
27998
|
-
|
|
27999
|
-
startColumn
|
|
28000
|
-
|
|
28001
|
-
endColumn
|
|
28002
|
-
|
|
28003
|
-
};
|
|
28004
|
-
if (getIntersectRange(rect1, rect2)) {
|
|
28005
|
-
startRow = Math.min(startRow, mainStartRow);
|
|
28006
|
-
startColumn = Math.min(startColumn, mainStartColumn);
|
|
28007
|
-
endRow = Math.max(endRow, mainEndRow);
|
|
28008
|
-
endColumn = Math.max(endColumn, mainEndColumn);
|
|
28009
|
-
searchedMerge.setValue(mainStartRow, mainStartColumn, true);
|
|
27930
|
+
}, mergeRange)) {
|
|
27931
|
+
startRow = Math.min(startRow, mergeRange.startRow);
|
|
27932
|
+
startColumn = Math.min(startColumn, mergeRange.startColumn);
|
|
27933
|
+
endRow = Math.max(endRow, mergeRange.endRow);
|
|
27934
|
+
endColumn = Math.max(endColumn, mergeRange.endColumn);
|
|
27935
|
+
searchedMerge.setValue(mergeRange.startRow, mergeRange.startColumn, true);
|
|
28010
27936
|
isSearching = true;
|
|
28011
27937
|
searchedMergeSize++;
|
|
28012
|
-
lastSearchedMergeCell =
|
|
27938
|
+
lastSearchedMergeCell = mergeRange;
|
|
28013
27939
|
}
|
|
28014
27940
|
}
|
|
28015
27941
|
}
|
|
@@ -28067,10 +27993,10 @@ let SheetSkeleton = class SheetSkeleton extends Skeleton {
|
|
|
28067
27993
|
*/
|
|
28068
27994
|
getRowIndexByOffsetY(offsetY, scaleY, scrollXY, options) {
|
|
28069
27995
|
const { rowHeightAccumulation } = this;
|
|
28070
|
-
|
|
28071
|
-
let row = searchArray(rowHeightAccumulation,
|
|
27996
|
+
const transformedOffsetY = getTransformOffsetY(offsetY, scaleY, scrollXY, this.columnHeaderHeightAndMarginTop);
|
|
27997
|
+
let row = searchArray(rowHeightAccumulation, transformedOffsetY, options === null || options === void 0 ? void 0 : options.firstMatch);
|
|
28072
27998
|
if (options === null || options === void 0 ? void 0 : options.closeFirst) {
|
|
28073
|
-
if (Math.abs(rowHeightAccumulation[row] -
|
|
27999
|
+
if (Math.abs(rowHeightAccumulation[row] - transformedOffsetY) < Math.abs(transformedOffsetY - (rowHeightAccumulation[row - 1] ?? 0))) row = row + 1;
|
|
28074
28000
|
}
|
|
28075
28001
|
return row;
|
|
28076
28002
|
}
|
|
@@ -28157,6 +28083,8 @@ let SheetSkeleton = class SheetSkeleton extends Skeleton {
|
|
|
28157
28083
|
* @param scaleX render scene scale x-axis, scene.getAncestorScale
|
|
28158
28084
|
* @param scaleY render scene scale y-axis, scene.getAncestorScale
|
|
28159
28085
|
* @param scrollXY render viewportScroll {x, y}
|
|
28086
|
+
* @param scrollXY.x horizontal scroll offset
|
|
28087
|
+
* @param scrollXY.y vertical scroll offset
|
|
28160
28088
|
* @param options {IGetRowColByPosOptions}
|
|
28161
28089
|
* @returns {ICellWithCoord} Selection data with coordinates
|
|
28162
28090
|
*/
|
|
@@ -28301,76 +28229,40 @@ function getCellCoordByIndexSimple(row, column, rowHeightAccumulation, columnWid
|
|
|
28301
28229
|
* @returns {ICellWithCoord} The cell position information of the specified row and column, including the position information of the cell and the merge information of the cell
|
|
28302
28230
|
*/
|
|
28303
28231
|
function getCellWithCoordByIndexCore(row, column, rowHeightAccumulation, columnWidthAccumulation, mergeDataInfo, gapSizeGetter) {
|
|
28304
|
-
|
|
28305
|
-
|
|
28306
|
-
|
|
28307
|
-
|
|
28308
|
-
startY,
|
|
28309
|
-
endY,
|
|
28310
|
-
startX,
|
|
28311
|
-
endX,
|
|
28232
|
+
const actualRow = Tools.clamp(row, 0, rowHeightAccumulation.length - 1);
|
|
28233
|
+
const actualColumn = Tools.clamp(column, 0, columnWidthAccumulation.length - 1);
|
|
28234
|
+
const position = getCellCoordByIndexSimple(actualRow, actualColumn, rowHeightAccumulation, columnWidthAccumulation, (gapSizeGetter === null || gapSizeGetter === void 0 ? void 0 : gapSizeGetter.row(actualRow)) ?? 0, (gapSizeGetter === null || gapSizeGetter === void 0 ? void 0 : gapSizeGetter.col(actualColumn)) ?? 0);
|
|
28235
|
+
const { isMerged, isMergedMainCell, startRow, startColumn, endRow, endColumn } = mergeDataInfo ?? {
|
|
28312
28236
|
isMerged: false,
|
|
28313
28237
|
isMergedMainCell: false,
|
|
28314
|
-
|
|
28315
|
-
|
|
28316
|
-
|
|
28317
|
-
|
|
28318
|
-
endY,
|
|
28319
|
-
startX,
|
|
28320
|
-
endX,
|
|
28321
|
-
startRow: row,
|
|
28322
|
-
startColumn: column,
|
|
28323
|
-
endRow: row,
|
|
28324
|
-
endColumn: column
|
|
28325
|
-
}
|
|
28238
|
+
startRow: actualRow,
|
|
28239
|
+
startColumn: actualColumn,
|
|
28240
|
+
endRow: actualRow,
|
|
28241
|
+
endColumn: actualColumn
|
|
28326
28242
|
};
|
|
28327
|
-
const
|
|
28328
|
-
|
|
28243
|
+
const mergeInfo = {
|
|
28244
|
+
...position,
|
|
28329
28245
|
startRow,
|
|
28330
28246
|
startColumn,
|
|
28331
28247
|
endRow,
|
|
28332
|
-
endColumn
|
|
28333
|
-
startY,
|
|
28334
|
-
endY,
|
|
28335
|
-
startX,
|
|
28336
|
-
endX
|
|
28248
|
+
endColumn
|
|
28337
28249
|
};
|
|
28338
|
-
|
|
28339
|
-
|
|
28340
|
-
|
|
28341
|
-
|
|
28342
|
-
|
|
28343
|
-
|
|
28344
|
-
|
|
28345
|
-
|
|
28346
|
-
|
|
28347
|
-
mergeInfo = {
|
|
28348
|
-
...mergeInfo,
|
|
28349
|
-
startY: mergeStartY,
|
|
28350
|
-
endY: mergeEndY,
|
|
28351
|
-
startX: mergeStartX,
|
|
28352
|
-
endX: mergeEndX
|
|
28353
|
-
};
|
|
28354
|
-
} else if (!isMerged && endRow !== -1 && endColumn !== -1) {
|
|
28355
|
-
const mergeEndY = rowHeightAccumulation[endRow] || rowHeightAccumulation[rowAccumulationCount];
|
|
28356
|
-
const mergeEndX = columnWidthAccumulation[endColumn] || columnWidthAccumulation[columnAccumulationCount];
|
|
28357
|
-
mergeInfo = {
|
|
28358
|
-
...mergeInfo,
|
|
28359
|
-
startY,
|
|
28360
|
-
endY: mergeEndY,
|
|
28361
|
-
startX,
|
|
28362
|
-
endX: mergeEndX
|
|
28363
|
-
};
|
|
28250
|
+
if (isMerged ? startRow !== -1 && startColumn !== -1 : endRow !== -1 && endColumn !== -1) {
|
|
28251
|
+
if (isMerged) {
|
|
28252
|
+
const mergeRowGapSize = (gapSizeGetter === null || gapSizeGetter === void 0 ? void 0 : gapSizeGetter.row(startRow)) ?? 0;
|
|
28253
|
+
const mergeColGapSize = (gapSizeGetter === null || gapSizeGetter === void 0 ? void 0 : gapSizeGetter.col(startColumn)) ?? 0;
|
|
28254
|
+
mergeInfo.startY = (rowHeightAccumulation[startRow - 1] ?? 0) + mergeRowGapSize;
|
|
28255
|
+
mergeInfo.startX = (columnWidthAccumulation[startColumn - 1] ?? 0) + mergeColGapSize;
|
|
28256
|
+
}
|
|
28257
|
+
mergeInfo.endY = rowHeightAccumulation[endRow] ?? rowHeightAccumulation[rowHeightAccumulation.length - 1];
|
|
28258
|
+
mergeInfo.endX = columnWidthAccumulation[endColumn] ?? columnWidthAccumulation[columnWidthAccumulation.length - 1];
|
|
28364
28259
|
}
|
|
28365
28260
|
return {
|
|
28261
|
+
...position,
|
|
28366
28262
|
isMerged,
|
|
28367
28263
|
isMergedMainCell,
|
|
28368
|
-
actualRow
|
|
28369
|
-
actualColumn
|
|
28370
|
-
startY,
|
|
28371
|
-
endY,
|
|
28372
|
-
startX,
|
|
28373
|
-
endX,
|
|
28264
|
+
actualRow,
|
|
28265
|
+
actualColumn,
|
|
28374
28266
|
mergeInfo
|
|
28375
28267
|
};
|
|
28376
28268
|
}
|
|
@@ -28379,6 +28271,8 @@ function getCellWithCoordByIndexCore(row, column, rowHeightAccumulation, columnW
|
|
|
28379
28271
|
* @param offsetX Offset value from PointerEvent in canvas element.
|
|
28380
28272
|
* @param scaleX from scene.getAncestorScale
|
|
28381
28273
|
* @param scrollXY Scroll value of viewport
|
|
28274
|
+
* @param scrollXY.x horizontal scroll offset
|
|
28275
|
+
* @param scrollXY.y vertical scroll offset
|
|
28382
28276
|
* @returns {number} x in sheet coordinate.
|
|
28383
28277
|
*/
|
|
28384
28278
|
function getTransformOffsetX(offsetX, scaleX, scrollXY, rowHeaderWidth) {
|
|
@@ -28389,15 +28283,15 @@ function getTransformOffsetX(offsetX, scaleX, scrollXY, rowHeaderWidth) {
|
|
|
28389
28283
|
* @param offsetY
|
|
28390
28284
|
* @param scaleY
|
|
28391
28285
|
* @param scrollXY
|
|
28286
|
+
* @param scrollXY.x horizontal scroll offset
|
|
28287
|
+
* @param scrollXY.y vertical scroll offset
|
|
28392
28288
|
*/
|
|
28393
28289
|
function getTransformOffsetY(offsetY, scaleY, scrollXY, columnHeight) {
|
|
28394
28290
|
const { y: scrollY } = scrollXY;
|
|
28395
|
-
|
|
28396
|
-
return offsetY;
|
|
28291
|
+
return offsetY / scaleY + scrollY - columnHeight;
|
|
28397
28292
|
}
|
|
28398
28293
|
|
|
28399
|
-
|
|
28400
|
-
//#region src/types/const/clipboard.ts
|
|
28294
|
+
// src/types/const/clipboard.ts
|
|
28401
28295
|
/**
|
|
28402
28296
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
28403
28297
|
*
|
|
@@ -28421,8 +28315,7 @@ const skipParseTagNames = [
|
|
|
28421
28315
|
"link"
|
|
28422
28316
|
];
|
|
28423
28317
|
|
|
28424
|
-
|
|
28425
|
-
//#region src/types/enum/data-validation-error-style.ts
|
|
28318
|
+
// src/types/enum/data-validation-error-style.ts
|
|
28426
28319
|
/**
|
|
28427
28320
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
28428
28321
|
*
|
|
@@ -28445,8 +28338,7 @@ let DataValidationErrorStyle = /* @__PURE__ */ function(DataValidationErrorStyle
|
|
|
28445
28338
|
return DataValidationErrorStyle;
|
|
28446
28339
|
}({});
|
|
28447
28340
|
|
|
28448
|
-
|
|
28449
|
-
//#region src/types/enum/data-validation-ime-mode.ts
|
|
28341
|
+
// src/types/enum/data-validation-ime-mode.ts
|
|
28450
28342
|
/**
|
|
28451
28343
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
28452
28344
|
*
|
|
@@ -28477,8 +28369,7 @@ let DataValidationImeMode = /* @__PURE__ */ function(DataValidationImeMode) {
|
|
|
28477
28369
|
return DataValidationImeMode;
|
|
28478
28370
|
}({});
|
|
28479
28371
|
|
|
28480
|
-
|
|
28481
|
-
//#region src/types/enum/data-validation-operator.ts
|
|
28372
|
+
// src/types/enum/data-validation-operator.ts
|
|
28482
28373
|
/**
|
|
28483
28374
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
28484
28375
|
*
|
|
@@ -28506,8 +28397,7 @@ let DataValidationOperator = /* @__PURE__ */ function(DataValidationOperator) {
|
|
|
28506
28397
|
return DataValidationOperator;
|
|
28507
28398
|
}({});
|
|
28508
28399
|
|
|
28509
|
-
|
|
28510
|
-
//#region src/types/enum/data-validation-render-mode.ts
|
|
28400
|
+
// src/types/enum/data-validation-render-mode.ts
|
|
28511
28401
|
/**
|
|
28512
28402
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
28513
28403
|
*
|
|
@@ -28530,8 +28420,7 @@ let DataValidationRenderMode = /* @__PURE__ */ function(DataValidationRenderMode
|
|
|
28530
28420
|
return DataValidationRenderMode;
|
|
28531
28421
|
}({});
|
|
28532
28422
|
|
|
28533
|
-
|
|
28534
|
-
//#region src/types/enum/data-validation-status.ts
|
|
28423
|
+
// src/types/enum/data-validation-status.ts
|
|
28535
28424
|
/**
|
|
28536
28425
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
28537
28426
|
*
|
|
@@ -28554,8 +28443,7 @@ let DataValidationStatus = /* @__PURE__ */ function(DataValidationStatus) {
|
|
|
28554
28443
|
return DataValidationStatus;
|
|
28555
28444
|
}({});
|
|
28556
28445
|
|
|
28557
|
-
|
|
28558
|
-
//#region src/types/enum/data-validation-type.ts
|
|
28446
|
+
// src/types/enum/data-validation-type.ts
|
|
28559
28447
|
/**
|
|
28560
28448
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
28561
28449
|
*
|
|
@@ -28595,8 +28483,7 @@ let DataValidationType = /* @__PURE__ */ function(DataValidationType) {
|
|
|
28595
28483
|
return DataValidationType;
|
|
28596
28484
|
}({});
|
|
28597
28485
|
|
|
28598
|
-
|
|
28599
|
-
//#region src/services/resource-loader/resource-loader.service.ts
|
|
28486
|
+
// src/services/resource-loader/resource-loader.service.ts
|
|
28600
28487
|
let ResourceLoaderService = class ResourceLoaderService extends Disposable {
|
|
28601
28488
|
constructor(_resourceManagerService, _univerInstanceService) {
|
|
28602
28489
|
super();
|
|
@@ -28695,36 +28582,7 @@ let ResourceLoaderService = class ResourceLoaderService extends Disposable {
|
|
|
28695
28582
|
};
|
|
28696
28583
|
ResourceLoaderService = __decorate([__decorateParam(0, Inject(IResourceManagerService)), __decorateParam(1, Inject(IUniverInstanceService))], ResourceLoaderService);
|
|
28697
28584
|
|
|
28698
|
-
|
|
28699
|
-
//#region src/slides/slide-data-model.ts
|
|
28700
|
-
var SlideDataModel = class extends UnitModel {
|
|
28701
|
-
constructor(..._args) {
|
|
28702
|
-
super(..._args);
|
|
28703
|
-
_defineProperty(this, "type", void 0);
|
|
28704
|
-
_defineProperty(this, "name$", void 0);
|
|
28705
|
-
}
|
|
28706
|
-
getUnitId() {
|
|
28707
|
-
throw new Error("Method not implemented.");
|
|
28708
|
-
}
|
|
28709
|
-
setName(name) {
|
|
28710
|
-
throw new Error("Method not implemented.");
|
|
28711
|
-
}
|
|
28712
|
-
getSnapshot() {
|
|
28713
|
-
throw new Error("Method not implemented.");
|
|
28714
|
-
}
|
|
28715
|
-
getRev() {
|
|
28716
|
-
throw new Error("Method not implemented.");
|
|
28717
|
-
}
|
|
28718
|
-
incrementRev() {
|
|
28719
|
-
throw new Error("Method not implemented.");
|
|
28720
|
-
}
|
|
28721
|
-
setRev(rev) {
|
|
28722
|
-
throw new Error("Method not implemented.");
|
|
28723
|
-
}
|
|
28724
|
-
};
|
|
28725
|
-
|
|
28726
|
-
//#endregion
|
|
28727
|
-
//#region src/univer.ts
|
|
28585
|
+
// src/univer.ts
|
|
28728
28586
|
/**
|
|
28729
28587
|
* @hideconstructor
|
|
28730
28588
|
*/
|
|
@@ -28792,7 +28650,6 @@ var Univer = class {
|
|
|
28792
28650
|
_init(injector) {
|
|
28793
28651
|
this._univerInstanceService.registerCtorForType(UniverInstanceType.UNIVER_SHEET, Workbook);
|
|
28794
28652
|
this._univerInstanceService.registerCtorForType(UniverInstanceType.UNIVER_DOC, DocumentDataModel);
|
|
28795
|
-
this._univerInstanceService.registerCtorForType(UniverInstanceType.UNIVER_SLIDE, SlideDataModel);
|
|
28796
28653
|
const univerInstanceService = injector.get(IUniverInstanceService);
|
|
28797
28654
|
univerInstanceService.__setCreateHandler((type, data, ctor, options) => {
|
|
28798
28655
|
const isFirstTime = !this._startedTypes.has(type);
|
|
@@ -28868,8 +28725,7 @@ function createUniverInjector(parentInjector, override) {
|
|
|
28868
28725
|
return injector;
|
|
28869
28726
|
}
|
|
28870
28727
|
|
|
28871
|
-
|
|
28872
|
-
//#region src/index.ts
|
|
28728
|
+
// src/index.ts
|
|
28873
28729
|
/**
|
|
28874
28730
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
28875
28731
|
*
|
|
@@ -28887,5 +28743,4 @@ function createUniverInjector(parentInjector, override) {
|
|
|
28887
28743
|
*/
|
|
28888
28744
|
installShims();
|
|
28889
28745
|
|
|
28890
|
-
//#endregion
|
|
28891
|
-
export { ABCToNumber, AUTO_HEIGHT_FOR_MERGED_CELLS, AbsoluteRefType, ActionIterator, AlignTypeH, AlignTypeV, ArrangeTypeEnum, AsyncInterceptorManager, AsyncLock, AuthzIoLocalService, AutoFillSeries, BASE_RECORD_ID_FIELD_ID, BASE_RECORD_ID_FIELD_NAME, BORDER_KEYS, BORDER_STYLE_KEYS, BaseConditionalColorOperator, BaseConditionalColorTarget, BaseConditionalDateMode, BaseDataModel, BaseFieldType, BaseFilterConjunction, BaseFilterOperator, BaseHierarchyInvalidReason, BaseRecordLinkRole, BaseSortDirection, BaseViewType, BaselineOffset, BlockType, BooleanNumber, BorderStyleTypes, BorderType, BuildTextUtils, BulletAlignment, COLORS, COLOR_STYLE_KEYS, COMMAND_LOG_EXECUTION_CONFIG_KEY, CanceledError, CellModeEnum, CellValueType, ColorKit, ColorType, ColumnLayoutType, ColumnResponsiveType, ColumnSeparatorType, CommandService, CommandType, CommonHideTypes, ConfigService, ContextService, CopyPasteType, CustomCommandExecutionError, CustomDecorationType, CustomRangeType, DEFAULT_CELL, DEFAULT_DOC, DEFAULT_DOCUMENT_PARAGRAPH_LINE_SPACING, DEFAULT_DOCUMENT_PARAGRAPH_SPACE_ABOVE, DEFAULT_DOCUMENT_PARAGRAPH_SPACE_BELOW, DEFAULT_DOCUMENT_SUB_COMPONENT_ID, DEFAULT_EMPTY_DOCUMENT_VALUE, DEFAULT_NUMBER_FORMAT, DEFAULT_RANGE, DEFAULT_RANGE_ARRAY, DEFAULT_SELECTION, DEFAULT_STYLES, DEFAULT_TEXT_FORMAT, DEFAULT_TEXT_FORMAT_EXCEL, DEFAULT_WORKSHEET_COLUMN_COUNT, DEFAULT_WORKSHEET_COLUMN_COUNT_KEY, DEFAULT_WORKSHEET_COLUMN_TITLE_HEIGHT, DEFAULT_WORKSHEET_COLUMN_TITLE_HEIGHT_KEY, DEFAULT_WORKSHEET_COLUMN_WIDTH, DEFAULT_WORKSHEET_COLUMN_WIDTH_KEY, DEFAULT_WORKSHEET_ROW_COUNT, DEFAULT_WORKSHEET_ROW_COUNT_KEY, DEFAULT_WORKSHEET_ROW_HEIGHT, DEFAULT_WORKSHEET_ROW_HEIGHT_KEY, DEFAULT_WORKSHEET_ROW_TITLE_WIDTH, DEFAULT_WORKSHEET_ROW_TITLE_WIDTH_KEY, DOCS_COMMENT_EDITOR_UNIT_ID_KEY, DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY, DOCS_NORMAL_EDITOR_UNIT_ID_KEY, DOC_DRAWING_PRINTING_COMPONENT_KEY, DOC_RANGE_TYPE, DashStyleType, DataStreamTreeNodeType, DataStreamTreeTokenType, DataValidationErrorStyle, DataValidationImeMode, DataValidationOperator, DataValidationRenderMode, DataValidationStatus, DataValidationType, DateSystem, DeleteDirection, DependentOn, DesktopLogService, DeveloperMetadataVisibility, Dimension, Direction, Disposable, DisposableCollection, DocStyleType, DocumentBlockRangeType, DocumentBlockType, DocumentDataModel, DocumentFlavor, DocxBreakType, DrawingTypeEnum, EDITOR_ACTIVATED, EMU_PER_CSS_PX, EXCEL_1904_OFFSET, EXTENSION_NAMES, ErrorService, EventState, EventSubject, FOCUSING_BOARD, FOCUSING_COMMENT_EDITOR, FOCUSING_COMMON_DRAWINGS, FOCUSING_DOC, FOCUSING_EDITOR_INPUT_FORMULA, FOCUSING_EDITOR_STANDALONE, FOCUSING_FX_BAR_EDITOR, FOCUSING_PANEL_EDITOR, FOCUSING_SHAPE_TEXT_EDITOR, FOCUSING_SHEET, FOCUSING_SLIDE, FOCUSING_UNIT, FOCUSING_UNIVER_EDITOR, FOCUSING_UNIVER_EDITOR_STANDALONE_SINGLE_MODE, FORMULA_EDITOR_ACTIVATED, FilterSelectionMode, FollowNumberWithType, FontItalic, FontStyleType, FontWeight, FormulaType, GridType, HorizontalAlign, IAuthzIoService, ICommandService, IConfigService, IConfirmService, IContextService, IImageIoService, ILocalStorageService, ILogService, IMentionIOService, IPermissionService, IResourceLoaderService, IResourceManagerService, IS_ROW_STYLE_PRECEDE_COLUMN_STYLE, IURLImageService, IUndoRedoService, IUniverInstanceService, ImageCacheMap, ImageSourceType, ImageUploadStatusType, Inject, InjectSelf, Injector, InterceptorEffectEnum, InterceptorManager, InterpolationPointType, json1 as JSON1, JSONX, LOCALE_META, LRUHelper, LRUMap, LifecycleService, LifecycleStages, LifecycleUnreachableError, ListGlyphType, LocalUndoRedoService, LocaleService, LocaleType, LogLevel, LookUp, MAX_COLUMN_COUNT, MAX_ITERATION_COUNT, MAX_ROW_COUNT, MODERN_DOCUMENT_DEFAULT_MARGIN, MODERN_DOCUMENT_WIDTH, MOVE_BUFFER_VALUE, Many, MemoryCursor, MentionIOLocalService, MentionType, ModernDocumentWidthMode, NAMED_STYLE_MAP, NAMED_STYLE_SPACE_MAP, NamedStyleType, NilCommand, NumberUnitType, OBJECT_PERMISSION_CONFIG_KEY, ObjectMatrix, ObjectPermissionRuleModel, ObjectPermissionService, ObjectRelativeFromH, ObjectRelativeFromV, Optional, PADDING_KEYS, PAGE_SIZE, PAPER_TYPES, PARAGRAPH_ID_PREFIX, PRESERVE_INSERTED_PARAGRAPH_IDS, PRESET_LIST_TYPE, PageOrientType, PaperType, ParagraphElementType, ParagraphStyleBuilder, ParagraphStyleValue, PermissionService, PermissionStatus, Plugin, PluginService, PositionedObjectLayoutType, PresetListType, ProtectionType, Quantity, QuickListType, QuickListTypeMap, RANGE_DIRECTION, RANGE_TYPE, RBush, RCDisposable, RESTORE_INSERTED_PARAGRAPH_IDS, RGBA_PAREN, RGB_PAREN, ROTATE_BUFFER_VALUE, RTree, Range, RecordValueType, Rectangle, RediError, RedoCommand, RedoCommandId, RefAlias, RegionService, Registry, RegistryAsMap, RelativeDate, ResourceManagerService, RichTextBuilder, RichTextParagraphBuilder, RichTextRunBuilder, RichTextValue, RxDisposable, SECTION_ID_PREFIX, SHEET_EDITOR_UNITS, SHEET_TEXT_LINE_GAP, STYLE_KEYS, SectionType, Self, SheetSkeleton, SheetTypes, SheetViewModel, Skeleton, SkipSelf, SliceBodyType, SpacingRule, Styles, TEXT_DECORATION_KEYS, TEXT_ROTATION_KEYS, THEME_COLORS, TRADITIONAL_DOCUMENT_DEFAULT_MARGIN, TabStopAlignment, TabStopLeader, TableAlignmentType, TableLayoutType, TableRowHeightRule, TableSizeType, TableTextWrapType, TestConfirmService, TextDecoration, TextDecorationBuilder, TextDirection, TextDirectionType, TextStyleBuilder, TextStyleValue, TextX, TextXActionType, ThemeColorType, ThemeColors, ThemeService, Tools, UndoCommand, UndoCommandId, UnitModel, Univer, UniverInstanceService, UniverInstanceType, UpdateDocsAttributeType, UserManagerService, VerticalAlign, VerticalAlignmentType, WithNew, Workbook, Worksheet, WorksheetHiddenState, WrapStrategy, WrapTextType, addLinkToDocumentModel, afterInitApply, afterTime, allocateBaseFormulaTableName, assertBaseTableRecordIdentity, awaitTime, binSearchFirstGreaterThanTarget, binarySearchArray, bufferDebounceTime, cellToRange, characterSpacingControlType, checkForSubstrings, checkIfMove, checkParagraphHasBullet, checkParagraphHasIndent, checkParagraphHasIndentByStyle, cloneBodyWithFreshParagraphIds, cloneCellData, cloneCellDataMatrix, cloneCellDataWithSpanAndDisplay, cloneParagraphWithId, cloneSectionBreakWithId, cloneValue, cloneWorksheetData, codeToBlob, columnLabelToNumber, composeBody, composeInterceptors, composeStyles, concatMatrixArray, containsInteriorInsertionOffset, containsStreamIndex, convertCellToRange, convertObservableToBehaviorSubject, covertCellValue, covertCellValues, createAsyncInterceptorKey, createBaseFormulaTableNameMap, createBaseFormulaTableReferenceNormalizer, createBaseRecordIdField, createDefaultBaseTableSnapshot, createDefaultUser, createDocumentModelWithStyle, createIdentifier, createInterceptorKey, createInternalEditorID, createParagraphId, createRandomId, createRowColIter, createSectionId, createSheetGapTestConfig, cssPxToEmu, currencySymbols, customNameCharacterCheck, dateKit, debounce, dedupe, dedupeBy, deepCompare, delayAnimationFrame, deleteContent, emuToCssPx, excelDateSerial, excelDateTimePartsToSerial, excelDateTimeSerial, excelSerialToDate, excelSerialToDateTime, excelSerialToDateTimeParts, extractPureTextFromCell, forwardRef, fromCallback, fromEventSubject, generateIntervalsByPoints, generateRandomId, get, getArrayLength, getBaseFormulaTableName, getEmptySnapshot as getBasesEmptySnapshot, getBlockRangeInterval, getBodySlice, getBodySliceForSplitTextXAction, getBodySliceForTextXAction, getBorderStyleType, getCellCoordByIndexSimple, getCellValueType, getCellWithCoordByIndexCore, getColorStyle, getColumnGroupRangeInterval, getCustomBlockIdsInSelections, getCustomBlockInterval, getCustomBlockSlice, getCustomDecorationSlice, getCustomRangeInterval, getCustomRangeSlice, getDateSystemMaxSerial, getDisplayValueFromCell, getEmptySnapshot$1 as getDocsEmptySnapshot, getDocsUpdateBody, getDrawingOrderIndex, getEmptyCell, getExclusiveRangeInterval, getInclusiveRangeInterval, getIntersectRange, getNumfmtLocaleTag, getNumfmtParseValueFilter, getOriginCellValue, getParagraphContentStartOffset, getParagraphContentStartOffsets, getParagraphFollowingBlockOffset, getParagraphsSlice, getPlainText, getRecordValueKey, getReverseDirection, getRichTextEditPath, getSdtBindingKey, getSdtBindingValue, getSectionBreakSlice, getSectionHeaderFooterReferenceKey, getEmptySnapshot$2 as getSheetsEmptySnapshot, getSingleDataStreamChange, getTableCellTokenInterval, getTableRangeInterval, getTableRowTokenInterval, getTableSlice, getTextRunSlice, getTransformOffsetX, getTransformOffsetY, getWorksheetUID, groupBy, handleStyleToString, hashAlgorithm, horizontalLineSegmentsSubtraction, insertMatrixArray, insertTextToContent, intersectsOperationalIntervals, invertColorByHSL, invertColorByMatrix, isAsyncDependencyItem, isAsyncHook, isBaseRecordIdFieldName, isBlackColor, isBooleanString, isCellCoverable, isCellV, isClassDependencyItem, isCommentEditorID, isCtor, isDefaultFormat, isDisposable, isEmptyCell, isFactoryDependencyItem, isFormulaId, isFormulaString, isICellData, isInternalEditorID, isNodeEnv, isNotNullOrUndefined, isNullCell, isNumeric, isPatternEqualWithoutDecimal, isRangesEqual, isRealNum, isSafeNumeric, isSafeUrl, isSameStyleTextRun, isTextFormat, isUnitRangesEqual, isValidBaseRecordId, isValidColumnDimensions, isValidRange, isValidRowDimensions, isValidSheetDimension, isValueDependencyItem, isWhiteColor, makeArray, makeCellRangeToRangeData, mapObjectMatrix, merge, mergeIntervals, mergeLocales, mergeOverrideWithDependencies, mergeSets, mergeWith, mergeWorksheetSnapshotWithDefault, migrateBaseFormulaTableNames, mixinClass, moveMatrixArray, moveRangeByOffset, nameCharacterCheck, noop, normalizeBaseFormulaTableName, normalizeBaseFormulaTableReferences, normalizeBody, normalizeDrawingOrderIndex, normalizeInsertedSectionIdsForDocument, normalizeTextRuns, normalizeUrl, normalizeWorkbookCalculationSettings, numberToABC, numberToListABC, api_exports as numfmt, regexp, registerDependencies, remove, repeatStringNumTimes, replaceInDocumentBody, requestImmediateMacroTask, resolveDocumentParagraphStyle, resolveSectionHeaderFooterReference, resolveSectionHeaderFooterReferences, resolveWithBasePath, rotate, searchArray, searchInOrderedArray, selectionToArray, sequence, sequenceAsync, sequenceExecute, sequenceExecuteAsync, set, setDependencies, setWith, shallowEqual, shiftExclusiveRangeOnDelete, shiftExclusiveRangeOnInsert, shiftInclusiveRangeOnDelete, shiftInclusiveRangeOnInsert, skipParseTagNames, sliceMatrixArray, sortRules, sortRulesByDesc, sortRulesFactory, spliceArray, splitIntoGrid, takeAfter, throttle, toDisposable, touchDependencies, updateAttributeByDelete, updateAttributeByInsert, validateDocBodyStructure, validateDocumentStructure, willLoseNumericPrecision };
|
|
28746
|
+
export { ABCToNumber, AUTO_HEIGHT_FOR_MERGED_CELLS, AbsoluteRefType, ActionIterator, AlignTypeH, AlignTypeV, ArrangeTypeEnum, AsyncInterceptorManager, AsyncLock, AuthzIoLocalService, AutoFillSeries, BASE_RECORD_ID_FIELD_ID, BASE_RECORD_ID_FIELD_NAME, BORDER_KEYS, BORDER_STYLE_KEYS, BaseConditionalColorOperator, BaseConditionalColorTarget, BaseConditionalDateMode, BaseDataModel, BaseFieldType, BaseFilterConjunction, BaseFilterOperator, BaseHierarchyInvalidReason, BaseRecordLinkRole, BaseSortDirection, BaseViewType, BaselineOffset, BlockType, BooleanNumber, BorderStyleTypes, BorderType, BuildTextUtils, BulletAlignment, COLORS, COLOR_STYLE_KEYS, COMMAND_LOG_EXECUTION_CONFIG_KEY, CanceledError, CellModeEnum, CellValueType, ColorKit, ColorType, ColumnLayoutType, ColumnResponsiveType, ColumnSeparatorType, CommandService, CommandType, CommonHideTypes, ConfigService, ContextService, CopyPasteType, CustomCommandExecutionError, CustomDecorationType, CustomRangeType, DEFAULT_CELL, DEFAULT_DOC, DEFAULT_DOCUMENT_PARAGRAPH_LINE_SPACING, DEFAULT_DOCUMENT_PARAGRAPH_SPACE_ABOVE, DEFAULT_DOCUMENT_PARAGRAPH_SPACE_BELOW, DEFAULT_DOCUMENT_SUB_COMPONENT_ID, DEFAULT_EMPTY_DOCUMENT_VALUE, DEFAULT_NUMBER_FORMAT, DEFAULT_RANGE, DEFAULT_RANGE_ARRAY, DEFAULT_SELECTION, DEFAULT_STYLES, DEFAULT_TEXT_FORMAT, DEFAULT_TEXT_FORMAT_EXCEL, DEFAULT_WORKSHEET_COLUMN_COUNT, DEFAULT_WORKSHEET_COLUMN_COUNT_KEY, DEFAULT_WORKSHEET_COLUMN_TITLE_HEIGHT, DEFAULT_WORKSHEET_COLUMN_TITLE_HEIGHT_KEY, DEFAULT_WORKSHEET_COLUMN_WIDTH, DEFAULT_WORKSHEET_COLUMN_WIDTH_KEY, DEFAULT_WORKSHEET_ROW_COUNT, DEFAULT_WORKSHEET_ROW_COUNT_KEY, DEFAULT_WORKSHEET_ROW_HEIGHT, DEFAULT_WORKSHEET_ROW_HEIGHT_KEY, DEFAULT_WORKSHEET_ROW_TITLE_WIDTH, DEFAULT_WORKSHEET_ROW_TITLE_WIDTH_KEY, DOCS_COMMENT_EDITOR_UNIT_ID_KEY, DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY, DOCS_NORMAL_EDITOR_UNIT_ID_KEY, DOC_DRAWING_PRINTING_COMPONENT_KEY, DOC_RANGE_TYPE, DashStyleType, DataStreamTreeNodeType, DataStreamTreeTokenType, DataValidationErrorStyle, DataValidationImeMode, DataValidationOperator, DataValidationRenderMode, DataValidationStatus, DataValidationType, DateSystem, DeleteDirection, DependentOn, DesktopLogService, DeveloperMetadataVisibility, Dimension, Direction, Disposable, DisposableCollection, DocStyleType, DocumentBlockRangeType, DocumentBlockType, DocumentDataModel, DocumentFlavor, DocxBreakType, DrawingTypeEnum, EDITOR_ACTIVATED, EMU_PER_CSS_PX, EXCEL_1904_OFFSET, EXTENSION_NAMES, ErrorService, EventState, EventSubject, FOCUSING_BOARD, FOCUSING_COMMENT_EDITOR, FOCUSING_COMMON_DRAWINGS, FOCUSING_DOC, FOCUSING_EDITOR_INPUT_FORMULA, FOCUSING_EDITOR_STANDALONE, FOCUSING_FX_BAR_EDITOR, FOCUSING_PANEL_EDITOR, FOCUSING_SHAPE_TEXT_EDITOR, FOCUSING_SHEET, FOCUSING_SLIDE, FOCUSING_UNIT, FOCUSING_UNIVER_EDITOR, FOCUSING_UNIVER_EDITOR_STANDALONE_SINGLE_MODE, FORMULA_EDITOR_ACTIVATED, FilterSelectionMode, FollowNumberWithType, FontItalic, FontStyleType, FontWeight, FormulaType, GridType, HorizontalAlign, IAuthzIoService, ICommandService, IConfigService, IConfirmService, IContextService, IImageIoService, ILocalStorageService, ILogService, IMentionIOService, IPermissionService, IResourceLoaderService, IResourceManagerService, IS_ROW_STYLE_PRECEDE_COLUMN_STYLE, IURLImageService, IUndoRedoService, IUniverInstanceService, ImageCacheMap, ImageSourceType, ImageUploadStatusType, Inject, InjectSelf, Injector, InterceptorEffectEnum, InterceptorManager, InterpolationPointType, json1 as JSON1, JSONX, LOCALE_META, LRUHelper, LRUMap, LifecycleService, LifecycleStages, LifecycleUnreachableError, ListGlyphType, LocalUndoRedoService, LocaleService, LocaleType, LogLevel, LookUp, MAX_COLUMN_COUNT, MAX_ITERATION_COUNT, MAX_ROW_COUNT, MODERN_DOCUMENT_DEFAULT_MARGIN, MODERN_DOCUMENT_WIDTH, MOVE_BUFFER_VALUE, Many, MemoryCursor, MentionIOLocalService, MentionType, ModernDocumentWidthMode, NAMED_STYLE_MAP, NAMED_STYLE_SPACE_MAP, NamedStyleType, NilCommand, NumberUnitType, OBJECT_PERMISSION_CONFIG_KEY, ObjectMatrix, ObjectPermissionRuleModel, ObjectPermissionService, ObjectRelativeFromH, ObjectRelativeFromV, Optional, PADDING_KEYS, PAGE_SIZE, PAPER_TYPES, PARAGRAPH_ID_PREFIX, PRESERVE_INSERTED_PARAGRAPH_IDS, PRESET_LIST_TYPE, PageOrientType, PaperType, ParagraphElementType, ParagraphStyleBuilder, ParagraphStyleValue, PermissionService, PermissionStatus, Plugin, PluginService, PositionedObjectLayoutType, PresetListType, ProtectionType, Quantity, QuickListType, QuickListTypeMap, RANGE_DIRECTION, RANGE_TYPE, RBush, RCDisposable, RESTORE_INSERTED_PARAGRAPH_IDS, RGBA_PAREN, RGB_PAREN, ROTATE_BUFFER_VALUE, RTree, Range, RecordValueType, Rectangle, RediError, RedoCommand, RedoCommandId, RefAlias, RegionService, Registry, RegistryAsMap, RelativeDate, ResourceManagerService, RichTextBuilder, RichTextParagraphBuilder, RichTextRunBuilder, RichTextValue, RxDisposable, SECTION_ID_PREFIX, SHEET_EDITOR_UNITS, SHEET_TEXT_LINE_GAP, STYLE_KEYS, SectionType, Self, SheetSkeleton, SheetTypes, SheetViewModel, Skeleton, SkipSelf, SliceBodyType, SpacingRule, Styles, TEXT_DECORATION_KEYS, TEXT_ROTATION_KEYS, THEME_COLORS, TRADITIONAL_DOCUMENT_DEFAULT_MARGIN, TabStopAlignment, TabStopLeader, TableAlignmentType, TableLayoutType, TableRowHeightRule, TableSizeType, TableTextWrapType, TestConfirmService, TextDecoration, TextDecorationBuilder, TextDirection, TextDirectionType, TextStyleBuilder, TextStyleValue, TextX, TextXActionType, ThemeColorType, ThemeColors, ThemeService, Tools, UndoCommand, UndoCommandId, UnitModel, Univer, UniverInstanceService, UniverInstanceType, UpdateDocsAttributeType, UserManagerService, VerticalAlign, VerticalAlignmentType, WithNew, Workbook, Worksheet, WorksheetHiddenState, WrapStrategy, WrapTextType, addLinkToDocumentModel, afterInitApply, afterTime, allocateBaseFormulaTableName, assertBaseTableRecordIdentity, awaitTime, binSearchFirstGreaterThanTarget, binarySearchArray, bufferDebounceTime, cellToRange, characterSpacingControlType, checkForSubstrings, checkIfMove, checkParagraphHasBullet, checkParagraphHasIndent, checkParagraphHasIndentByStyle, cloneBodyWithFreshParagraphIds, cloneCellData, cloneCellDataMatrix, cloneCellDataWithSpanAndDisplay, cloneParagraphWithId, cloneSectionBreakWithId, cloneValue, cloneWorksheetData, codeToBlob, columnLabelToNumber, composeBody, composeInterceptors, composeStyles, concatMatrixArray, containsInteriorInsertionOffset, containsStreamIndex, convertCellToRange, convertObservableToBehaviorSubject, covertCellValue, covertCellValues, createAsyncInterceptorKey, createBaseFormulaTableNameMap, createBaseFormulaTableReferenceNormalizer, createBaseRecordIdField, createDefaultBaseTableSnapshot, createDefaultUser, createDocumentModelWithStyle, createIdentifier, createInterceptorKey, createInternalEditorID, createParagraphId, createRandomId, createRowColIter, createSectionId, createSheetGapTestConfig, cssPxToEmu, currencySymbols, customNameCharacterCheck, dateKit, debounce, dedupe, dedupeBy, deepCompare, delayAnimationFrame, deleteContent, emuToCssPx, excelDateSerial, excelDateTimePartsToSerial, excelDateTimeSerial, excelSerialToDate, excelSerialToDateTime, excelSerialToDateTimeParts, extractPureTextFromCell, forwardRef, fromCallback, fromEventSubject, generateIntervalsByPoints, generateRandomId, get, getArrayLength, getBaseFormulaTableName, getEmptySnapshot as getBasesEmptySnapshot, getBlockRangeInterval, getBodySlice, getBodySliceForSplitTextXAction, getBodySliceForTextXAction, getBorderStyleType, getCellCoordByIndexSimple, getCellValueType, getCellWithCoordByIndexCore, getColorStyle, getColumnGroupRangeInterval, getCustomBlockIdsInSelections, getCustomBlockInterval, getCustomBlockSlice, getCustomDecorationSlice, getCustomRangeInterval, getCustomRangeSlice, getDateSystemMaxSerial, getDisplayValueFromCell, getEmptySnapshot$1 as getDocsEmptySnapshot, getDocsUpdateBody, getDrawingOrderIndex, getEmptyCell, getExclusiveRangeInterval, getInclusiveRangeInterval, getIntersectRange, getNumfmtLocaleTag, getNumfmtParseValueFilter, getOriginCellValue, getParagraphContentStartOffset, getParagraphContentStartOffsets, getParagraphFollowingBlockOffset, getParagraphsSlice, getPlainText, getRecordValueKey, getReverseDirection, getRichTextEditPath, getSdtBindingKey, getSdtBindingValue, getSectionBreakSlice, getSectionHeaderFooterReferenceKey, getEmptySnapshot$2 as getSheetsEmptySnapshot, getSingleDataStreamChange, getTableCellTokenInterval, getTableRangeInterval, getTableRowTokenInterval, getTableSlice, getTextRunSlice, getTransformOffsetX, getTransformOffsetY, getWorksheetUID, groupBy, handleStyleToString, hashAlgorithm, horizontalLineSegmentsSubtraction, insertMatrixArray, insertTextToContent, intersectsOperationalIntervals, invertColorByHSL, invertColorByMatrix, isAsyncDependencyItem, isAsyncHook, isBaseRecordIdFieldName, isBlackColor, isBooleanString, isCellCoverable, isCellV, isClassDependencyItem, isCommentEditorID, isCtor, isDefaultFormat, isDisposable, isEmptyCell, isFactoryDependencyItem, isFormulaId, isFormulaString, isICellData, isInternalEditorID, isNodeEnv, isNotNullOrUndefined, isNullCell, isNumeric, isPatternEqualWithoutDecimal, isRangesEqual, isRealNum, isSafeNumeric, isSafeUrl, isSameStyleTextRun, isTextFormat, isUnitRangesEqual, isValidBaseRecordId, isValidColumnDimensions, isValidRange, isValidRowDimensions, isValidSheetDimension, isValueDependencyItem, isWhiteColor, makeArray, makeCellRangeToRangeData, mapObjectMatrix, merge, mergeIntervals, mergeLocales, mergeOverrideWithDependencies, mergeSets, mergeWith, mergeWorksheetSnapshotWithDefault, migrateBaseFormulaTableNames, mixinClass, moveMatrixArray, moveRangeByOffset, nameCharacterCheck, noop, normalizeBaseFormulaTableName, normalizeBaseFormulaTableReferences, normalizeBody, normalizeDrawingOrderIndex, normalizeInsertedSectionIdsForDocument, normalizeTextRuns, normalizeUrl, normalizeWorkbookCalculationSettings, numberToABC, numberToListABC, api_exports as numfmt, regexp, registerDependencies, remove, repeatStringNumTimes, replaceInDocumentBody, requestImmediateMacroTask, resolveDocumentParagraphStyle, resolveDocumentParagraphWordWrap, resolveSectionHeaderFooterReference, resolveSectionHeaderFooterReferences, resolveWithBasePath, rotate, searchArray, searchInOrderedArray, selectionToArray, sequence, sequenceAsync, sequenceExecute, sequenceExecuteAsync, set, setDependencies, setWith, shallowEqual, shiftExclusiveRangeOnDelete, shiftExclusiveRangeOnInsert, shiftInclusiveRangeOnDelete, shiftInclusiveRangeOnInsert, skipParseTagNames, sliceMatrixArray, sortRules, sortRulesByDesc, sortRulesFactory, spliceArray, splitIntoGrid, takeAfter, throttle, toDisposable, touchDependencies, updateAttributeByDelete, updateAttributeByInsert, validateDocBodyStructure, validateDocumentStructure, willLoseNumericPrecision };
|