@univerjs/core 0.24.0 → 0.25.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/lib/cjs/facade.js +15 -9
- package/lib/cjs/index.js +906 -694
- package/lib/es/facade.js +15 -9
- package/lib/es/index.js +897 -695
- package/lib/facade.js +15 -9
- package/lib/index.js +897 -695
- package/lib/types/common/url.d.ts +1 -0
- package/lib/types/docs/data-model/text-x/apply-utils/common.d.ts +3 -1
- package/lib/types/docs/data-model/text-x/utils.d.ts +3 -2
- package/lib/types/docs/data-model/types.d.ts +3 -0
- package/lib/types/facade/f-univer.d.ts +9 -3
- package/lib/types/index.d.ts +1 -1
- package/lib/types/shared/index.d.ts +1 -1
- package/lib/types/shared/numfmt.d.ts +2 -1
- package/lib/types/shared/tools.d.ts +5 -0
- package/lib/types/types/const/const.d.ts +3 -0
- package/lib/types/types/const/page-size.d.ts +7 -0
- package/lib/types/types/enum/locale-type.d.ts +8 -1
- package/lib/types/types/interfaces/i-document-data.d.ts +7 -0
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +10 -9
- package/package.json +5 -5
- package/lib/types/shared/coder.d.ts +0 -17
package/lib/cjs/facade.js
CHANGED
|
@@ -78,7 +78,7 @@ var FBaseInitialable = class extends _univerjs_core.Disposable {
|
|
|
78
78
|
};
|
|
79
79
|
|
|
80
80
|
//#endregion
|
|
81
|
-
//#region \0@oxc-project+runtime@0.
|
|
81
|
+
//#region \0@oxc-project+runtime@0.133.0/helpers/esm/decorateParam.js
|
|
82
82
|
function __decorateParam(paramIndex, decorator) {
|
|
83
83
|
return function(target, key) {
|
|
84
84
|
decorator(target, key, paramIndex);
|
|
@@ -86,7 +86,7 @@ function __decorateParam(paramIndex, decorator) {
|
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
//#endregion
|
|
89
|
-
//#region \0@oxc-project+runtime@0.
|
|
89
|
+
//#region \0@oxc-project+runtime@0.133.0/helpers/esm/decorate.js
|
|
90
90
|
function __decorate(decorators, target, key, desc) {
|
|
91
91
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
92
92
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -210,7 +210,7 @@ let FBlob = _FBlob = class FBlob extends FBase {
|
|
|
210
210
|
FBlob = _FBlob = __decorate([__decorateParam(1, (0, _univerjs_core.Inject)(_univerjs_core.Injector))], FBlob);
|
|
211
211
|
|
|
212
212
|
//#endregion
|
|
213
|
-
//#region \0@oxc-project+runtime@0.
|
|
213
|
+
//#region \0@oxc-project+runtime@0.133.0/helpers/esm/typeof.js
|
|
214
214
|
function _typeof(o) {
|
|
215
215
|
"@babel/helpers - typeof";
|
|
216
216
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
@@ -221,7 +221,7 @@ function _typeof(o) {
|
|
|
221
221
|
}
|
|
222
222
|
|
|
223
223
|
//#endregion
|
|
224
|
-
//#region \0@oxc-project+runtime@0.
|
|
224
|
+
//#region \0@oxc-project+runtime@0.133.0/helpers/esm/toPrimitive.js
|
|
225
225
|
function toPrimitive(t, r) {
|
|
226
226
|
if ("object" != _typeof(t) || !t) return t;
|
|
227
227
|
var e = t[Symbol.toPrimitive];
|
|
@@ -234,14 +234,14 @@ function toPrimitive(t, r) {
|
|
|
234
234
|
}
|
|
235
235
|
|
|
236
236
|
//#endregion
|
|
237
|
-
//#region \0@oxc-project+runtime@0.
|
|
237
|
+
//#region \0@oxc-project+runtime@0.133.0/helpers/esm/toPropertyKey.js
|
|
238
238
|
function toPropertyKey(t) {
|
|
239
239
|
var i = toPrimitive(t, "string");
|
|
240
240
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
241
241
|
}
|
|
242
242
|
|
|
243
243
|
//#endregion
|
|
244
|
-
//#region \0@oxc-project+runtime@0.
|
|
244
|
+
//#region \0@oxc-project+runtime@0.133.0/helpers/esm/defineProperty.js
|
|
245
245
|
function _defineProperty(e, r, t) {
|
|
246
246
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
247
247
|
value: t,
|
|
@@ -1514,7 +1514,9 @@ let FUniver = _FUniver = class FUniver extends _univerjs_core.Disposable {
|
|
|
1514
1514
|
* @example
|
|
1515
1515
|
* ```ts
|
|
1516
1516
|
* const richText = univerAPI.newRichText({ body: { dataStream: 'Hello World\r\n' } });
|
|
1517
|
-
* const
|
|
1517
|
+
* const fWorksheet = univerAPI.getActiveWorkbook().getSheetByName('Sheet1');
|
|
1518
|
+
* if (!fWorksheet) return;
|
|
1519
|
+
* const range = fWorksheet.getRange('A1');
|
|
1518
1520
|
* range.setRichTextValueForCell(richText);
|
|
1519
1521
|
* ```
|
|
1520
1522
|
*/
|
|
@@ -1528,7 +1530,9 @@ let FUniver = _FUniver = class FUniver extends _univerjs_core.Disposable {
|
|
|
1528
1530
|
* @example
|
|
1529
1531
|
* ```ts
|
|
1530
1532
|
* const richTextValue = univerAPI.newRichTextValue({ body: { dataStream: 'Hello World\r\n' } });
|
|
1531
|
-
* const
|
|
1533
|
+
* const fWorksheet = univerAPI.getActiveWorkbook().getSheetByName('Sheet1');
|
|
1534
|
+
* if (!fWorksheet) return;
|
|
1535
|
+
* const range = fWorksheet.getRange('A1');
|
|
1532
1536
|
* range.setRichTextValueForCell(richTextValue);
|
|
1533
1537
|
* ```
|
|
1534
1538
|
*/
|
|
@@ -1544,7 +1548,9 @@ let FUniver = _FUniver = class FUniver extends _univerjs_core.Disposable {
|
|
|
1544
1548
|
* const richText = univerAPI.newRichText({ body: { dataStream: 'Hello World\r\n' } });
|
|
1545
1549
|
* const paragraphStyle = univerAPI.newParagraphStyle({ textStyle: { ff: 'Arial', fs: 12, it: univerAPI.Enum.BooleanNumber.TRUE, bl: univerAPI.Enum.BooleanNumber.TRUE } });
|
|
1546
1550
|
* richText.insertParagraph(paragraphStyle);
|
|
1547
|
-
* const
|
|
1551
|
+
* const fWorksheet = univerAPI.getActiveWorkbook().getSheetByName('Sheet1');
|
|
1552
|
+
* if (!fWorksheet) return;
|
|
1553
|
+
* const range = fWorksheet.getRange('A1');
|
|
1548
1554
|
* range.setRichTextValueForCell(richText);
|
|
1549
1555
|
* ```
|
|
1550
1556
|
*/
|