@univerjs/sheets 0.4.1 → 0.4.2

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 (42) hide show
  1. package/lib/cjs/index.js +1 -1
  2. package/lib/es/index.js +487 -227
  3. package/lib/types/basics/row-column-value.d.ts +14 -0
  4. package/lib/types/commands/commands/__tests__/set-col-data.command.spec.d.ts +16 -0
  5. package/lib/types/commands/commands/__tests__/set-row-data.command.spec.d.ts +16 -0
  6. package/lib/types/commands/commands/__tests__/set-worksheet-default-style.command.spec.d.ts +16 -0
  7. package/lib/types/commands/commands/set-col-data.command.d.ts +7 -0
  8. package/lib/types/commands/commands/set-row-data.command.d.ts +7 -0
  9. package/lib/types/commands/commands/set-style.command.d.ts +1 -1
  10. package/lib/types/commands/commands/set-worksheet-col-width.command.d.ts +6 -0
  11. package/lib/types/commands/commands/set-worksheet-default-style.command.d.ts +2 -0
  12. package/lib/types/commands/commands/toggle-gridlines.command.d.ts +7 -0
  13. package/lib/types/commands/mutations/add-range-protection.mutation.d.ts +2 -2
  14. package/lib/types/commands/mutations/delete-range-protection.mutation.d.ts +3 -3
  15. package/lib/types/commands/mutations/set-col-data.mutation.d.ts +8 -0
  16. package/lib/types/commands/mutations/set-frozen.mutation.d.ts +8 -0
  17. package/lib/types/commands/mutations/set-row-data.mutation.d.ts +8 -0
  18. package/lib/types/commands/mutations/set-worksheet-col-width.mutation.d.ts +3 -0
  19. package/lib/types/commands/mutations/set-worksheet-default-style.mutation.d.ts +12 -0
  20. package/lib/types/commands/mutations/toggle-gridlines.mutation.d.ts +7 -0
  21. package/lib/types/controllers/config.schema.d.ts +4 -0
  22. package/lib/types/index.d.ts +16 -4
  23. package/lib/types/model/range-protection.cache.d.ts +5 -2
  24. package/lib/types/services/border-style-manager.service.d.ts +2 -2
  25. package/lib/types/services/permission/permission-point/index.d.ts +2 -0
  26. package/lib/types/services/permission/permission-point/range/delete-protection.d.ts +13 -0
  27. package/lib/types/services/permission/permission-point/range/manage-collaborator.d.ts +13 -0
  28. package/lib/types/services/permission/permission-point/workbook/create-permission.d.ts +11 -0
  29. package/lib/types/services/permission/permission-point/worksheet/delete-protection.d.ts +12 -0
  30. package/lib/types/services/permission/range-permission/range-protection.ref-range.d.ts +3 -3
  31. package/lib/types/services/permission/range-permission/range-protection.service.d.ts +3 -2
  32. package/lib/types/services/permission/range-permission/util.d.ts +1 -0
  33. package/lib/types/services/permission/type.d.ts +1 -1
  34. package/lib/types/services/permission/workbook-permission/workbook-permission.service.d.ts +4 -1
  35. package/lib/types/services/permission/worksheet-permission/utils.d.ts +2 -2
  36. package/lib/types/services/selections/selection-manager.service.d.ts +2 -2
  37. package/lib/umd/index.js +1 -1
  38. package/package.json +7 -7
  39. package/lib/types/basics/cell-custom.d.ts +0 -12
  40. package/lib/types/commands/commands/set-hide-gridlines.command.d.ts +0 -7
  41. package/lib/types/commands/mutations/set-hide-gridlines.mutatiom.d.ts +0 -8
  42. /package/lib/types/basics/__tests__/{cell-custom.spec.d.ts → row-column-value.spec.d.ts} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs/sheets",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "private": false,
5
5
  "description": "UniverSheet normal base-sheets",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -50,18 +50,18 @@
50
50
  "rxjs": ">=7.0.0"
51
51
  },
52
52
  "dependencies": {
53
- "@univerjs/protocol": "0.1.39-alpha.30",
54
- "@univerjs/core": "0.4.1",
55
- "@univerjs/rpc": "0.4.1",
56
- "@univerjs/engine-numfmt": "0.4.1",
57
- "@univerjs/engine-formula": "0.4.1"
53
+ "@univerjs/protocol": "0.1.39-alpha.38",
54
+ "@univerjs/core": "0.4.2",
55
+ "@univerjs/engine-formula": "0.4.2",
56
+ "@univerjs/engine-numfmt": "0.4.2",
57
+ "@univerjs/rpc": "0.4.2"
58
58
  },
59
59
  "devDependencies": {
60
60
  "rxjs": "^7.8.1",
61
61
  "typescript": "^5.6.3",
62
62
  "vite": "^5.4.8",
63
63
  "vitest": "^2.1.2",
64
- "@univerjs-infra/shared": "0.4.1"
64
+ "@univerjs-infra/shared": "0.4.2"
65
65
  },
66
66
  "univerSpace": {
67
67
  ".": {
@@ -1,12 +0,0 @@
1
- import { ICellData, Nullable } from '@univerjs/core';
2
- /**
3
- * Update custom object by old and new value
4
- * @param oldVal
5
- * @param newVal
6
- */
7
- export declare function handleCustom(oldVal: ICellData, newVal: ICellData): void;
8
- /**
9
- * Convert old custom normal key for storage
10
- * @param style
11
- */
12
- export declare function transformCustom(oldCustom: Nullable<Record<string, any>>, newCustom: Nullable<Record<string, any>>): Nullable<Record<string, any>>;
@@ -1,7 +0,0 @@
1
- import { ICommand, BooleanNumber } from '@univerjs/core';
2
- export interface ISetHideGridlinesCommandParams {
3
- hideGridlines?: BooleanNumber;
4
- unitId?: string;
5
- subUnitId?: string;
6
- }
7
- export declare const SetHideGridlinesCommand: ICommand;
@@ -1,8 +0,0 @@
1
- import { BooleanNumber, IAccessor, IMutation } from '@univerjs/core';
2
- export interface ISetHideGridlinesMutationParams {
3
- hideGridlines: BooleanNumber;
4
- unitId: string;
5
- subUnitId: string;
6
- }
7
- export declare const SetHideGridlinesUndoMutationFactory: (accessor: IAccessor, params: ISetHideGridlinesMutationParams) => ISetHideGridlinesMutationParams;
8
- export declare const SetHideGridlinesMutation: IMutation<ISetHideGridlinesMutationParams>;