@univerjs/core 0.2.7 → 0.2.8

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.
Files changed (97) hide show
  1. package/lib/cjs/index.js +7 -7
  2. package/lib/es/index.js +850 -41
  3. package/lib/types/common/equal.d.ts +0 -1
  4. package/lib/types/common/interceptor.d.ts +0 -1
  5. package/lib/types/common/unit.d.ts +0 -1
  6. package/lib/types/docs/data-model/document-data-model.d.ts +0 -1
  7. package/lib/types/docs/data-model/empty-snapshot.d.ts +0 -1
  8. package/lib/types/docs/data-model/json-x/json-x.d.ts +0 -1
  9. package/lib/types/docs/data-model/preset-list-type.d.ts +0 -1
  10. package/lib/types/docs/data-model/replacement.d.ts +0 -1
  11. package/lib/types/docs/data-model/text-x/action-iterator.d.ts +0 -1
  12. package/lib/types/docs/data-model/text-x/action-types.d.ts +0 -1
  13. package/lib/types/docs/data-model/text-x/apply-utils/common.d.ts +0 -1
  14. package/lib/types/docs/data-model/text-x/apply-utils/delete-apply.d.ts +0 -1
  15. package/lib/types/docs/data-model/text-x/apply-utils/insert-apply.d.ts +0 -1
  16. package/lib/types/docs/data-model/text-x/apply-utils/update-apply.d.ts +0 -1
  17. package/lib/types/docs/data-model/text-x/apply.d.ts +0 -1
  18. package/lib/types/docs/data-model/text-x/text-x.d.ts +0 -1
  19. package/lib/types/docs/data-model/text-x/transform-utils.d.ts +0 -1
  20. package/lib/types/docs/data-model/text-x/utils.d.ts +0 -1
  21. package/lib/types/observer/observable.d.ts +0 -1
  22. package/lib/types/services/__tests__/index.d.ts +0 -1
  23. package/lib/types/services/authz-io/authz-io-local.service.d.ts +2 -3
  24. package/lib/types/services/authz-io/type.d.ts +0 -1
  25. package/lib/types/services/command/command.service.d.ts +0 -1
  26. package/lib/types/services/config/config.service.d.ts +0 -1
  27. package/lib/types/services/context/context.service.d.ts +0 -1
  28. package/lib/types/services/error/error.service.d.ts +0 -1
  29. package/lib/types/services/instance/instance.service.d.ts +0 -1
  30. package/lib/types/services/lifecycle/lifecycle.d.ts +0 -1
  31. package/lib/types/services/lifecycle/lifecycle.service.d.ts +0 -1
  32. package/lib/types/services/locale/locale.service.d.ts +0 -1
  33. package/lib/types/services/log/log.service.d.ts +0 -1
  34. package/lib/types/services/permission/permission.service.d.ts +0 -1
  35. package/lib/types/services/permission/type.d.ts +0 -1
  36. package/lib/types/services/plugin/plugin-override.d.ts +0 -1
  37. package/lib/types/services/plugin/plugin.d.ts +0 -1
  38. package/lib/types/services/plugin/plugin.service.d.ts +0 -1
  39. package/lib/types/services/resource-loader/resource-loader.service.d.ts +0 -1
  40. package/lib/types/services/resource-loader/type.d.ts +0 -1
  41. package/lib/types/services/resource-manager/resource-manager.service.d.ts +0 -1
  42. package/lib/types/services/resource-manager/type.d.ts +0 -1
  43. package/lib/types/services/snapshot/__tests__/snapshot-mock.d.ts +0 -1
  44. package/lib/types/services/snapshot/snapshot-server.service.d.ts +0 -1
  45. package/lib/types/services/snapshot/snapshot-transform.d.ts +0 -1
  46. package/lib/types/services/snapshot/snapshot-utils.d.ts +0 -1
  47. package/lib/types/services/theme/theme.service.d.ts +0 -1
  48. package/lib/types/services/undoredo/undoredo.service.d.ts +0 -1
  49. package/lib/types/services/user-manager/const.d.ts +0 -1
  50. package/lib/types/shared/after-init-apply.d.ts +0 -1
  51. package/lib/types/shared/check-if-move.d.ts +0 -1
  52. package/lib/types/shared/clipboard.d.ts +0 -1
  53. package/lib/types/shared/color/color.d.ts +0 -1
  54. package/lib/types/shared/common.d.ts +0 -1
  55. package/lib/types/shared/compare.d.ts +0 -1
  56. package/lib/types/shared/doc-tool.d.ts +0 -1
  57. package/lib/types/shared/index.d.ts +1 -0
  58. package/lib/types/shared/lifecycle.d.ts +0 -1
  59. package/lib/types/shared/lru/lru-map.d.ts +0 -1
  60. package/lib/types/shared/numfmt.d.ts +2 -0
  61. package/lib/types/shared/object-matrix-query.d.ts +0 -1
  62. package/lib/types/shared/object-matrix.d.ts +6 -1
  63. package/lib/types/shared/range.d.ts +0 -1
  64. package/lib/types/shared/rectangle.d.ts +0 -1
  65. package/lib/types/shared/rxjs.d.ts +0 -1
  66. package/lib/types/shared/tools.d.ts +0 -1
  67. package/lib/types/sheets/__tests__/create-core-test-bed.d.ts +0 -1
  68. package/lib/types/sheets/column-manager.d.ts +0 -1
  69. package/lib/types/sheets/empty-snapshot.d.ts +0 -1
  70. package/lib/types/sheets/range.d.ts +0 -1
  71. package/lib/types/sheets/row-manager.d.ts +0 -1
  72. package/lib/types/sheets/sheet-snapshot-utils.d.ts +0 -1
  73. package/lib/types/sheets/styles.d.ts +0 -1
  74. package/lib/types/sheets/view-model.d.ts +0 -1
  75. package/lib/types/sheets/workbook.d.ts +0 -1
  76. package/lib/types/sheets/worksheet.d.ts +0 -1
  77. package/lib/types/slides/slide-model.d.ts +0 -1
  78. package/lib/types/types/const/const.d.ts +1 -1
  79. package/lib/types/types/interfaces/i-cell-custom-render.d.ts +0 -1
  80. package/lib/types/types/interfaces/i-cell-data.d.ts +0 -1
  81. package/lib/types/types/interfaces/i-cell-validation-data.d.ts +0 -1
  82. package/lib/types/types/interfaces/i-column-data.d.ts +0 -1
  83. package/lib/types/types/interfaces/i-data-validation.d.ts +0 -1
  84. package/lib/types/types/interfaces/i-document-data-interceptor.d.ts +0 -1
  85. package/lib/types/types/interfaces/i-document-data.d.ts +0 -1
  86. package/lib/types/types/interfaces/i-placeholder.d.ts +0 -1
  87. package/lib/types/types/interfaces/i-row-data.d.ts +0 -1
  88. package/lib/types/types/interfaces/i-selection-data.d.ts +0 -1
  89. package/lib/types/types/interfaces/i-shape-properties.d.ts +0 -1
  90. package/lib/types/types/interfaces/i-slide-data.d.ts +0 -1
  91. package/lib/types/types/interfaces/i-style-data.d.ts +0 -1
  92. package/lib/types/types/interfaces/i-univer-data.d.ts +0 -1
  93. package/lib/types/types/interfaces/i-workbook-data.d.ts +0 -1
  94. package/lib/types/types/interfaces/i-worksheet-data.d.ts +0 -1
  95. package/lib/types/univer.d.ts +0 -1
  96. package/lib/umd/index.js +7 -7
  97. package/package.json +7 -6
@@ -2,7 +2,6 @@ import { Observable } from 'rxjs';
2
2
  import { UnitModel, UniverInstanceType } from '../common/unit';
3
3
  import { Nullable } from '../shared';
4
4
  import { ISlideData, ISlidePage, PageType } from '../types/interfaces';
5
-
6
5
  export declare class SlideDataModel extends UnitModel<ISlideData, UniverInstanceType.UNIVER_SLIDE> {
7
6
  type: UniverInstanceType.UNIVER_SLIDE;
8
7
  private readonly _activePage$;
@@ -1,5 +1,4 @@
1
1
  import { BooleanNumber, HorizontalAlign, TextDirection, VerticalAlign, WrapStrategy } from '../enum';
2
-
3
2
  /**
4
3
  * Used as an illegal range array return value
5
4
  */
@@ -127,6 +126,7 @@ export declare const DEFAULT_STYLES: {
127
126
  b: number;
128
127
  l: number;
129
128
  };
129
+ n: null;
130
130
  };
131
131
  export declare const DEFAULT_SLIDE: {
132
132
  id: string;
@@ -4,7 +4,6 @@ import { Workbook } from '../../sheets/workbook';
4
4
  import { ISelectionCellWithMergeInfo } from './i-selection-data';
5
5
  import { IStyleData } from './i-style-data';
6
6
  import { ICellDataForSheetInterceptor } from './i-cell-data';
7
-
8
7
  export interface ICellRenderContext {
9
8
  data: ICellDataForSheetInterceptor;
10
9
  style: Nullable<IStyleData>;
@@ -4,7 +4,6 @@ import { ICellCustomRender } from './i-cell-custom-render';
4
4
  import { IDocumentData } from './i-document-data';
5
5
  import { IStyleData } from './i-style-data';
6
6
  import { ICellValidationData } from './i-cell-validation-data';
7
-
8
7
  /**
9
8
  * Cell value type
10
9
  */
@@ -1,6 +1,5 @@
1
1
  import { DataValidationStatus } from '../enum/data-validation-status';
2
2
  import { IDataValidationRule } from './i-data-validation';
3
-
4
3
  export interface ICellValidationData {
5
4
  ruleId: string;
6
5
  validStatus: DataValidationStatus;
@@ -1,5 +1,4 @@
1
1
  import { BooleanNumber } from '../enum';
2
-
3
2
  /**
4
3
  * Properties of column data
5
4
  */
@@ -4,7 +4,6 @@ import { DataValidationImeMode } from '../enum/data-validation-ime-mode';
4
4
  import { DataValidationErrorStyle } from '../enum/data-validation-error-style';
5
5
  import { DataValidationRenderMode } from '../enum/data-validation-render-mode';
6
6
  import { IRange } from './i-range';
7
-
8
7
  export interface IDataValidationRuleBase {
9
8
  type: DataValidationType;
10
9
  allowBlank?: boolean;
@@ -1,5 +1,4 @@
1
1
  import { ICustomDecoration, ICustomRange, IParagraph } from './i-document-data';
2
-
3
2
  export interface ICustomRangeForInterceptor extends ICustomRange {
4
3
  active?: boolean;
5
4
  show?: boolean;
@@ -3,7 +3,6 @@ import { IAbsoluteTransform, ISize } from '../../shared/shape';
3
3
  import { BooleanNumber, CellValueType, HorizontalAlign, LocaleType, TextDirection, VerticalAlign, WrapStrategy } from '../enum';
4
4
  import { IExtraModelData } from './i-extra-model-data';
5
5
  import { IColorStyle, IStyleBase } from './i-style-data';
6
-
7
6
  /**
8
7
  * Properties of document
9
8
  */
@@ -1,5 +1,4 @@
1
1
  import { PlaceholderType } from '../enum/place-holder-type';
2
-
3
2
  export interface IPlaceholder {
4
3
  type: PlaceholderType;
5
4
  index: number;
@@ -1,5 +1,4 @@
1
1
  import { BooleanNumber } from '../enum';
2
-
3
2
  /**
4
3
  * Properties of row data
5
4
  */
@@ -1,6 +1,5 @@
1
1
  import { Nullable } from '../../shared/types';
2
2
  import { IRange } from './i-range';
3
-
4
3
  /**
5
4
  * Properties of selection data
6
5
  */
@@ -1,6 +1,5 @@
1
1
  import { BorderStyleTypes } from '../enum/border-style-types';
2
2
  import { IColorStyle } from './i-style-data';
3
-
4
3
  /**
5
4
  * ShapeProperties
6
5
  */
@@ -9,7 +9,6 @@ import { IPlaceholder } from './i-placeholder';
9
9
  import { IShapeProperties } from './i-shape-properties';
10
10
  import { IColorStyle, IStyleBase, IStyleData } from './i-style-data';
11
11
  import { IWorksheetData } from './i-worksheet-data';
12
-
13
12
  export interface ISlideData extends IReferenceSource, IExtraModelData {
14
13
  id: string;
15
14
  locale?: LocaleType;
@@ -2,7 +2,6 @@ import { Nullable } from '../../shared/types';
2
2
  import { BorderStyleTypes } from '../enum/border-style-types';
3
3
  import { BaselineOffset, BooleanNumber, HorizontalAlign, TextDecoration, TextDirection, VerticalAlign, WrapStrategy } from '../enum/text-style';
4
4
  import { ThemeColorType } from '../enum/theme-color-type';
5
-
6
5
  /**
7
6
  * Properties of text decoration
8
7
  */
@@ -3,7 +3,6 @@ import { DependencyOverride } from '../../services/plugin/plugin-override';
3
3
  import { IStyleSheet } from '../../services/theme/theme.service';
4
4
  import { ILocales } from '../../shared/locale';
5
5
  import { LocaleType } from '../enum';
6
-
7
6
  export interface IUniverData {
8
7
  theme: IStyleSheet;
9
8
  locale: LocaleType;
@@ -3,7 +3,6 @@ import { LocaleType } from '../enum';
3
3
  import { IExtraModelData } from './i-extra-model-data';
4
4
  import { IStyleData } from './i-style-data';
5
5
  import { IWorksheetData } from './i-worksheet-data';
6
-
7
6
  export type Resources = Array<{
8
7
  id?: string;
9
8
  name: string;
@@ -5,7 +5,6 @@ import { IColumnData } from './i-column-data';
5
5
  import { IFreeze } from './i-freeze';
6
6
  import { IRange, IRangeType } from './i-range';
7
7
  import { IRowData } from './i-row-data';
8
-
9
8
  /**
10
9
  * Snapshot of a worksheet.
11
10
  */
@@ -6,7 +6,6 @@ import { LocaleType } from './types/enum/locale-type';
6
6
  import { IDocumentData, ISlideData, IUniverData, IWorkbookData } from './types/interfaces';
7
7
  import { UnitModel, UnitType } from './common/unit';
8
8
  import { Plugin, PluginCtor } from './services/plugin/plugin';
9
-
10
9
  export declare class Univer {
11
10
  private _startedTypes;
12
11
  private _injector;