@univerjs/core 0.2.11 → 0.2.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +5 -5
- package/lib/es/index.js +458 -30
- package/lib/types/common/interceptor.d.ts +1 -0
- package/lib/types/docs/data-model/document-data-model.d.ts +4 -4
- package/lib/types/docs/data-model/index.d.ts +1 -0
- package/lib/types/docs/data-model/text-x/apply-utils/common.d.ts +1 -1
- package/lib/types/docs/data-model/text-x/build-utils/__test__/custom-range.spec.d.ts +16 -0
- package/lib/types/docs/data-model/text-x/build-utils/custom-range.d.ts +14 -0
- package/lib/types/docs/data-model/text-x/build-utils/index.d.ts +28 -0
- package/lib/types/docs/data-model/text-x/build-utils/selection.d.ts +29 -0
- package/lib/types/docs/data-model/text-x/build-utils/text-x-utils.d.ts +38 -0
- package/lib/types/docs/data-model/text-x/utils.d.ts +2 -1
- package/lib/types/services/__tests__/index.d.ts +6 -6
- package/lib/types/services/authz-io/type.d.ts +1 -1
- package/lib/types/services/command/command.service.d.ts +3 -3
- package/lib/types/services/config/config.service.d.ts +20 -7
- package/lib/types/services/context/context.service.d.ts +1 -1
- package/lib/types/services/instance/instance.service.d.ts +1 -1
- package/lib/types/services/local-storage/local-storage.service.d.ts +1 -1
- package/lib/types/services/log/log.service.d.ts +1 -1
- package/lib/types/services/permission/type.d.ts +1 -1
- package/lib/types/services/resource-loader/type.d.ts +1 -1
- package/lib/types/services/resource-manager/type.d.ts +1 -1
- package/lib/types/services/undoredo/undoredo.service.d.ts +1 -1
- package/lib/types/shared/common.d.ts +3 -2
- package/lib/types/shared/tools.d.ts +1 -2
- package/lib/types/sheets/row-manager.d.ts +2 -2
- package/lib/types/sheets/typedef.d.ts +25 -5
- package/lib/types/sheets/view-model.d.ts +1 -1
- package/lib/types/sheets/worksheet.d.ts +13 -7
- package/lib/types/slides/slide-model.d.ts +3 -3
- package/lib/types/types/const/const.d.ts +0 -4
- package/lib/types/types/enum/delete-direction.d.ts +19 -0
- package/lib/types/types/enum/index.d.ts +1 -0
- package/lib/types/types/interfaces/i-data-validation.d.ts +17 -2
- package/lib/types/types/interfaces/i-document-data.d.ts +24 -7
- package/lib/types/types/interfaces/i-need-check-disposable.d.ts +4 -0
- package/lib/types/types/interfaces/index.d.ts +1 -0
- package/lib/umd/index.js +5 -5
- package/package.json +5 -5
|
@@ -264,19 +264,27 @@ export interface ITextRun {
|
|
|
264
264
|
sId?: string;
|
|
265
265
|
ts?: ITextStyle;
|
|
266
266
|
}
|
|
267
|
-
|
|
267
|
+
/**
|
|
268
|
+
* Block element, link like, disabled to self nested
|
|
269
|
+
*/
|
|
270
|
+
export interface ICustomRange<T extends Record<string, any> = Record<string, any>> {
|
|
268
271
|
startIndex: number;
|
|
269
272
|
endIndex: number;
|
|
270
273
|
rangeId: string;
|
|
271
|
-
rangeType: CustomRangeType;
|
|
274
|
+
rangeType: CustomRangeType | number;
|
|
272
275
|
/**
|
|
273
276
|
* display as a whole-entity
|
|
274
277
|
*/
|
|
275
278
|
wholeEntity?: boolean;
|
|
279
|
+
/**
|
|
280
|
+
* properties of custom range,
|
|
281
|
+
* for example, hyperlink: `{ url: string }`
|
|
282
|
+
*/
|
|
283
|
+
properties?: T;
|
|
276
284
|
}
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
285
|
+
export type IHyperLinkCustomRange = ICustomRange<{
|
|
286
|
+
url: string;
|
|
287
|
+
}>;
|
|
280
288
|
export declare enum CustomRangeType {
|
|
281
289
|
HYPERLINK = 0,
|
|
282
290
|
FIELD = 1,// 17.16 Fields and Hyperlinks
|
|
@@ -575,8 +583,17 @@ export declare enum NamedStyleType {
|
|
|
575
583
|
HEADING_6 = 9
|
|
576
584
|
}
|
|
577
585
|
export declare enum SpacingRule {
|
|
578
|
-
|
|
579
|
-
|
|
586
|
+
/**
|
|
587
|
+
* Specifies that the line spacing of the parent object shall be automatically determined by the size of its contents, with no predetermined minimum or maximum size.
|
|
588
|
+
*/
|
|
589
|
+
AUTO = 0,
|
|
590
|
+
/**
|
|
591
|
+
* Specifies that the height of the line shall be at least the value specified, but might be expanded to fit its content as needed.
|
|
592
|
+
*/
|
|
593
|
+
AT_LEAST = 1,
|
|
594
|
+
/**
|
|
595
|
+
* Specifies that the height of the line shall be exactly the value specified, regardless of the size of the contents of the contents.
|
|
596
|
+
*/
|
|
580
597
|
EXACT = 2
|
|
581
598
|
}
|
|
582
599
|
/**
|