@univerjs/sheets 0.1.0-alpha.1
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/LICENSE +21 -0
- package/README.md +13 -0
- package/lib/cjs/index.js +11383 -0
- package/lib/cjs/locale/en-US.js +26 -0
- package/lib/cjs/locale/zh-CN.js +26 -0
- package/lib/esm/index.js +10934 -0
- package/lib/esm/locale/en-US.js +5 -0
- package/lib/esm/locale/zh-CN.js +5 -0
- package/lib/types/basics/const/command-listener-const.d.ts +3 -0
- package/lib/types/basics/const/command-listener-const.d.ts.map +1 -0
- package/lib/types/basics/const/default-spreadsheet-plugin-data.d.ts +3 -0
- package/lib/types/basics/const/default-spreadsheet-plugin-data.d.ts.map +1 -0
- package/lib/types/basics/const/index.d.ts +3 -0
- package/lib/types/basics/const/index.d.ts.map +1 -0
- package/lib/types/basics/get-apply-data.d.ts +1 -0
- package/lib/types/basics/get-apply-data.d.ts.map +1 -0
- package/lib/types/basics/index.d.ts +4 -0
- package/lib/types/basics/index.d.ts.map +1 -0
- package/lib/types/basics/interfaces/i-ruler-manager.d.ts +8 -0
- package/lib/types/basics/interfaces/i-ruler-manager.d.ts.map +1 -0
- package/lib/types/basics/interfaces/index.d.ts +4 -0
- package/lib/types/basics/interfaces/index.d.ts.map +1 -0
- package/lib/types/basics/interfaces/mutation-interface.d.ts +66 -0
- package/lib/types/basics/interfaces/mutation-interface.d.ts.map +1 -0
- package/lib/types/basics/interfaces/selection-config.d.ts +9 -0
- package/lib/types/basics/interfaces/selection-config.d.ts.map +1 -0
- package/lib/types/basics/interfaces/spreadsheet-config.d.ts +5 -0
- package/lib/types/basics/interfaces/spreadsheet-config.d.ts.map +1 -0
- package/lib/types/basics/selection.d.ts +136 -0
- package/lib/types/basics/selection.d.ts.map +1 -0
- package/lib/types/basics/sheet-header.d.ts +4 -0
- package/lib/types/basics/sheet-header.d.ts.map +1 -0
- package/lib/types/commands/commands/__tests__/add-worksheet-merge.command.spec.d.ts +2 -0
- package/lib/types/commands/commands/__tests__/add-worksheet-merge.command.spec.d.ts.map +1 -0
- package/lib/types/commands/commands/__tests__/clear-selection.command.spec.d.ts +2 -0
- package/lib/types/commands/commands/__tests__/clear-selection.command.spec.d.ts.map +1 -0
- package/lib/types/commands/commands/__tests__/copy-worksheet.command.spec.d.ts +2 -0
- package/lib/types/commands/commands/__tests__/copy-worksheet.command.spec.d.ts.map +1 -0
- package/lib/types/commands/commands/__tests__/create-command-test-bed.d.ts +11 -0
- package/lib/types/commands/commands/__tests__/create-command-test-bed.d.ts.map +1 -0
- package/lib/types/commands/commands/__tests__/delete-range.command.spec.d.ts +2 -0
- package/lib/types/commands/commands/__tests__/delete-range.command.spec.d.ts.map +1 -0
- package/lib/types/commands/commands/__tests__/insert-range.command.spec.d.ts +2 -0
- package/lib/types/commands/commands/__tests__/insert-range.command.spec.d.ts.map +1 -0
- package/lib/types/commands/commands/__tests__/insert-remove-rows-cols.command.spec.d.ts +2 -0
- package/lib/types/commands/commands/__tests__/insert-remove-rows-cols.command.spec.d.ts.map +1 -0
- package/lib/types/commands/commands/__tests__/move-range-commands.spec.d.ts +2 -0
- package/lib/types/commands/commands/__tests__/move-range-commands.spec.d.ts.map +1 -0
- package/lib/types/commands/commands/__tests__/move-rows-cols.command.spec.d.ts +2 -0
- package/lib/types/commands/commands/__tests__/move-rows-cols.command.spec.d.ts.map +1 -0
- package/lib/types/commands/commands/__tests__/remove-sheet.command.spec.d.ts +2 -0
- package/lib/types/commands/commands/__tests__/remove-sheet.command.spec.d.ts.map +1 -0
- package/lib/types/commands/commands/__tests__/set-border.command.spec.d.ts +2 -0
- package/lib/types/commands/commands/__tests__/set-border.command.spec.d.ts.map +1 -0
- package/lib/types/commands/commands/__tests__/set-col-width.command.spec.d.ts +2 -0
- package/lib/types/commands/commands/__tests__/set-col-width.command.spec.d.ts.map +1 -0
- package/lib/types/commands/commands/__tests__/set-frozen.command.spec.d.ts +2 -0
- package/lib/types/commands/commands/__tests__/set-frozen.command.spec.d.ts.map +1 -0
- package/lib/types/commands/commands/__tests__/set-range-values.command.spec.d.ts +2 -0
- package/lib/types/commands/commands/__tests__/set-range-values.command.spec.d.ts.map +1 -0
- package/lib/types/commands/commands/__tests__/set-row-col-visible.command.spec.d.ts +2 -0
- package/lib/types/commands/commands/__tests__/set-row-col-visible.command.spec.d.ts.map +1 -0
- package/lib/types/commands/commands/__tests__/set-row-height.command.spec.d.ts +2 -0
- package/lib/types/commands/commands/__tests__/set-row-height.command.spec.d.ts.map +1 -0
- package/lib/types/commands/commands/__tests__/set-style.command.spec.d.ts +2 -0
- package/lib/types/commands/commands/__tests__/set-style.command.spec.d.ts.map +1 -0
- package/lib/types/commands/commands/__tests__/set-tab-color.command.spec.d.ts +2 -0
- package/lib/types/commands/commands/__tests__/set-tab-color.command.spec.d.ts.map +1 -0
- package/lib/types/commands/commands/__tests__/set-worksheet-hide.command.spec.d.ts +2 -0
- package/lib/types/commands/commands/__tests__/set-worksheet-hide.command.spec.d.ts.map +1 -0
- package/lib/types/commands/commands/__tests__/set-worksheet-name.command.spec.d.ts +2 -0
- package/lib/types/commands/commands/__tests__/set-worksheet-name.command.spec.d.ts.map +1 -0
- package/lib/types/commands/commands/__tests__/set-worksheet-order.command.spec.d.ts +2 -0
- package/lib/types/commands/commands/__tests__/set-worksheet-order.command.spec.d.ts.map +1 -0
- package/lib/types/commands/commands/__tests__/set-worksheet-show.command.spec.d.ts +2 -0
- package/lib/types/commands/commands/__tests__/set-worksheet-show.command.spec.d.ts.map +1 -0
- package/lib/types/commands/commands/add-worksheet-merge.command.d.ts +20 -0
- package/lib/types/commands/commands/add-worksheet-merge.command.d.ts.map +1 -0
- package/lib/types/commands/commands/clear-selection-all.command.d.ts +6 -0
- package/lib/types/commands/commands/clear-selection-all.command.d.ts.map +1 -0
- package/lib/types/commands/commands/clear-selection-content.command.d.ts +6 -0
- package/lib/types/commands/commands/clear-selection-content.command.d.ts.map +1 -0
- package/lib/types/commands/commands/clear-selection-format.command.d.ts +7 -0
- package/lib/types/commands/commands/clear-selection-format.command.d.ts.map +1 -0
- package/lib/types/commands/commands/copy-to-worksheet.command.d.ts +9 -0
- package/lib/types/commands/commands/copy-to-worksheet.command.d.ts.map +1 -0
- package/lib/types/commands/commands/copy-worksheet.command.d.ts +7 -0
- package/lib/types/commands/commands/copy-worksheet.command.d.ts.map +1 -0
- package/lib/types/commands/commands/delete-range-move-left.command.d.ts +10 -0
- package/lib/types/commands/commands/delete-range-move-left.command.d.ts.map +1 -0
- package/lib/types/commands/commands/delete-range-move-up.command.d.ts +10 -0
- package/lib/types/commands/commands/delete-range-move-up.command.d.ts.map +1 -0
- package/lib/types/commands/commands/insert-range-move-down.command.d.ts +10 -0
- package/lib/types/commands/commands/insert-range-move-down.command.d.ts.map +1 -0
- package/lib/types/commands/commands/insert-range-move-right.command.d.ts +10 -0
- package/lib/types/commands/commands/insert-range-move-right.command.d.ts.map +1 -0
- package/lib/types/commands/commands/insert-row-col.command.d.ts +36 -0
- package/lib/types/commands/commands/insert-row-col.command.d.ts.map +1 -0
- package/lib/types/commands/commands/insert-sheet.command.d.ts +11 -0
- package/lib/types/commands/commands/insert-sheet.command.d.ts.map +1 -0
- package/lib/types/commands/commands/move-range.command.d.ts +8 -0
- package/lib/types/commands/commands/move-range.command.d.ts.map +1 -0
- package/lib/types/commands/commands/move-rows-cols.command.d.ts +15 -0
- package/lib/types/commands/commands/move-rows-cols.command.d.ts.map +1 -0
- package/lib/types/commands/commands/remove-row-col.command.d.ts +15 -0
- package/lib/types/commands/commands/remove-row-col.command.d.ts.map +1 -0
- package/lib/types/commands/commands/remove-sheet.command.d.ts +10 -0
- package/lib/types/commands/commands/remove-sheet.command.d.ts.map +1 -0
- package/lib/types/commands/commands/remove-worksheet-merge.command.d.ts +3 -0
- package/lib/types/commands/commands/remove-worksheet-merge.command.d.ts.map +1 -0
- package/lib/types/commands/commands/set-border-command.d.ts +24 -0
- package/lib/types/commands/commands/set-border-command.d.ts.map +1 -0
- package/lib/types/commands/commands/set-col-visible.command.d.ts +10 -0
- package/lib/types/commands/commands/set-col-visible.command.d.ts.map +1 -0
- package/lib/types/commands/commands/set-frozen-cancel.command.d.ts +3 -0
- package/lib/types/commands/commands/set-frozen-cancel.command.d.ts.map +1 -0
- package/lib/types/commands/commands/set-frozen.command.d.ts +3 -0
- package/lib/types/commands/commands/set-frozen.command.d.ts.map +1 -0
- package/lib/types/commands/commands/set-hide-gridlines.command.d.ts +9 -0
- package/lib/types/commands/commands/set-hide-gridlines.command.d.ts.map +1 -0
- package/lib/types/commands/commands/set-range-values.command.d.ts +17 -0
- package/lib/types/commands/commands/set-range-values.command.d.ts.map +1 -0
- package/lib/types/commands/commands/set-row-visible.command.d.ts +10 -0
- package/lib/types/commands/commands/set-row-visible.command.d.ts.map +1 -0
- package/lib/types/commands/commands/set-style.command.d.ts +70 -0
- package/lib/types/commands/commands/set-style.command.d.ts.map +1 -0
- package/lib/types/commands/commands/set-tab-color.command.d.ts +6 -0
- package/lib/types/commands/commands/set-tab-color.command.d.ts.map +1 -0
- package/lib/types/commands/commands/set-worksheet-activate.command.d.ts +7 -0
- package/lib/types/commands/commands/set-worksheet-activate.command.d.ts.map +1 -0
- package/lib/types/commands/commands/set-worksheet-col-width.command.d.ts +11 -0
- package/lib/types/commands/commands/set-worksheet-col-width.command.d.ts.map +1 -0
- package/lib/types/commands/commands/set-worksheet-hide.command.d.ts +6 -0
- package/lib/types/commands/commands/set-worksheet-hide.command.d.ts.map +1 -0
- package/lib/types/commands/commands/set-worksheet-name.command.d.ts +11 -0
- package/lib/types/commands/commands/set-worksheet-name.command.d.ts.map +1 -0
- package/lib/types/commands/commands/set-worksheet-order.command.d.ts +8 -0
- package/lib/types/commands/commands/set-worksheet-order.command.d.ts.map +1 -0
- package/lib/types/commands/commands/set-worksheet-right-to-left.command.d.ts +9 -0
- package/lib/types/commands/commands/set-worksheet-right-to-left.command.d.ts.map +1 -0
- package/lib/types/commands/commands/set-worksheet-row-height.command.d.ts +14 -0
- package/lib/types/commands/commands/set-worksheet-row-height.command.d.ts.map +1 -0
- package/lib/types/commands/commands/set-worksheet-show.command.d.ts +6 -0
- package/lib/types/commands/commands/set-worksheet-show.command.d.ts.map +1 -0
- package/lib/types/commands/commands/utils/merged-cell-util.d.ts +7 -0
- package/lib/types/commands/commands/utils/merged-cell-util.d.ts.map +1 -0
- package/lib/types/commands/commands/utils/selection-util.d.ts +52 -0
- package/lib/types/commands/commands/utils/selection-util.d.ts.map +1 -0
- package/lib/types/commands/mutations/add-worksheet-merge.mutation.d.ts +6 -0
- package/lib/types/commands/mutations/add-worksheet-merge.mutation.d.ts.map +1 -0
- package/lib/types/commands/mutations/delete-range.mutation.d.ts +15 -0
- package/lib/types/commands/mutations/delete-range.mutation.d.ts.map +1 -0
- package/lib/types/commands/mutations/insert-range.mutation.d.ts +15 -0
- package/lib/types/commands/mutations/insert-range.mutation.d.ts.map +1 -0
- package/lib/types/commands/mutations/insert-row-col.mutation.d.ts +8 -0
- package/lib/types/commands/mutations/insert-row-col.mutation.d.ts.map +1 -0
- package/lib/types/commands/mutations/insert-sheet.mutation.d.ts +13 -0
- package/lib/types/commands/mutations/insert-sheet.mutation.d.ts.map +1 -0
- package/lib/types/commands/mutations/move-range.mutation.d.ts +9 -0
- package/lib/types/commands/mutations/move-range.mutation.d.ts.map +1 -0
- package/lib/types/commands/mutations/move-rows-cols.mutation.d.ts +36 -0
- package/lib/types/commands/mutations/move-rows-cols.mutation.d.ts.map +1 -0
- package/lib/types/commands/mutations/remove-row-col.mutation.d.ts +8 -0
- package/lib/types/commands/mutations/remove-row-col.mutation.d.ts.map +1 -0
- package/lib/types/commands/mutations/remove-sheet.mutation.d.ts +13 -0
- package/lib/types/commands/mutations/remove-sheet.mutation.d.ts.map +1 -0
- package/lib/types/commands/mutations/remove-worksheet-merge.mutation.d.ts +6 -0
- package/lib/types/commands/mutations/remove-worksheet-merge.mutation.d.ts.map +1 -0
- package/lib/types/commands/mutations/set-col-visible.mutation.d.ts +25 -0
- package/lib/types/commands/mutations/set-col-visible.mutation.d.ts.map +1 -0
- package/lib/types/commands/mutations/set-frozen.mutation.d.ts +13 -0
- package/lib/types/commands/mutations/set-frozen.mutation.d.ts.map +1 -0
- package/lib/types/commands/mutations/set-hide-gridlines.mutatiom.d.ts +10 -0
- package/lib/types/commands/mutations/set-hide-gridlines.mutatiom.d.ts.map +1 -0
- package/lib/types/commands/mutations/set-numfmt-mutation.d.ts +16 -0
- package/lib/types/commands/mutations/set-numfmt-mutation.d.ts.map +1 -0
- package/lib/types/commands/mutations/set-range-formatted-value.mutation.d.ts +18 -0
- package/lib/types/commands/mutations/set-range-formatted-value.mutation.d.ts.map +1 -0
- package/lib/types/commands/mutations/set-range-values.mutation.d.ts +63 -0
- package/lib/types/commands/mutations/set-range-values.mutation.d.ts.map +1 -0
- package/lib/types/commands/mutations/set-row-visible.mutation.d.ts +25 -0
- package/lib/types/commands/mutations/set-row-visible.mutation.d.ts.map +1 -0
- package/lib/types/commands/mutations/set-tab-color.mutation.d.ts +10 -0
- package/lib/types/commands/mutations/set-tab-color.mutation.d.ts.map +1 -0
- package/lib/types/commands/mutations/set-worksheet-activate.mutation.d.ts +9 -0
- package/lib/types/commands/mutations/set-worksheet-activate.mutation.d.ts.map +1 -0
- package/lib/types/commands/mutations/set-worksheet-col-width.mutation.d.ts +12 -0
- package/lib/types/commands/mutations/set-worksheet-col-width.mutation.d.ts.map +1 -0
- package/lib/types/commands/mutations/set-worksheet-config.mutation.d.ts +13 -0
- package/lib/types/commands/mutations/set-worksheet-config.mutation.d.ts.map +1 -0
- package/lib/types/commands/mutations/set-worksheet-hide.mutation.d.ts +10 -0
- package/lib/types/commands/mutations/set-worksheet-hide.mutation.d.ts.map +1 -0
- package/lib/types/commands/mutations/set-worksheet-name.mutation.d.ts +10 -0
- package/lib/types/commands/mutations/set-worksheet-name.mutation.d.ts.map +1 -0
- package/lib/types/commands/mutations/set-worksheet-order.mutation.d.ts +10 -0
- package/lib/types/commands/mutations/set-worksheet-order.mutation.d.ts.map +1 -0
- package/lib/types/commands/mutations/set-worksheet-right-to-left.mutation.d.ts +10 -0
- package/lib/types/commands/mutations/set-worksheet-right-to-left.mutation.d.ts.map +1 -0
- package/lib/types/commands/mutations/set-worksheet-row-height.mutation.d.ts +28 -0
- package/lib/types/commands/mutations/set-worksheet-row-height.mutation.d.ts.map +1 -0
- package/lib/types/commands/operations/selection.operation.d.ts +10 -0
- package/lib/types/commands/operations/selection.operation.d.ts.map +1 -0
- package/lib/types/commands/utils/interface.d.ts +5 -0
- package/lib/types/commands/utils/interface.d.ts.map +1 -0
- package/lib/types/controllers/__tests__/util.d.ts +16 -0
- package/lib/types/controllers/__tests__/util.d.ts.map +1 -0
- package/lib/types/controllers/basic-worksheet.controller.d.ts +16 -0
- package/lib/types/controllers/basic-worksheet.controller.d.ts.map +1 -0
- package/lib/types/controllers/config/config.d.ts +3 -0
- package/lib/types/controllers/config/config.d.ts.map +1 -0
- package/lib/types/controllers/merge-cell.controller.d.ts +27 -0
- package/lib/types/controllers/merge-cell.controller.d.ts.map +1 -0
- package/lib/types/index.d.ts +97 -0
- package/lib/types/index.d.ts.map +1 -0
- package/lib/types/locale/en-US.d.ts +3 -0
- package/lib/types/locale/en-US.d.ts.map +1 -0
- package/lib/types/locale/index.d.ts +3 -0
- package/lib/types/locale/index.d.ts.map +1 -0
- package/lib/types/locale/zh-CN.d.ts +3 -0
- package/lib/types/locale/zh-CN.d.ts.map +1 -0
- package/lib/types/services/__tests__/ref-range.setvice.spec.d.ts +2 -0
- package/lib/types/services/__tests__/ref-range.setvice.spec.d.ts.map +1 -0
- package/lib/types/services/__tests__/sheet-permission.spec.d.ts +2 -0
- package/lib/types/services/__tests__/sheet-permission.spec.d.ts.map +1 -0
- package/lib/types/services/__tests__/util.d.ts +17 -0
- package/lib/types/services/__tests__/util.d.ts.map +1 -0
- package/lib/types/services/border-style-manager.service.d.ts +24 -0
- package/lib/types/services/border-style-manager.service.d.ts.map +1 -0
- package/lib/types/services/numfmt/numfmt.service.d.ts +37 -0
- package/lib/types/services/numfmt/numfmt.service.d.ts.map +1 -0
- package/lib/types/services/numfmt/type.d.ts +37 -0
- package/lib/types/services/numfmt/type.d.ts.map +1 -0
- package/lib/types/services/permission/index.d.ts +3 -0
- package/lib/types/services/permission/index.d.ts.map +1 -0
- package/lib/types/services/permission/permission-point.d.ts +10 -0
- package/lib/types/services/permission/permission-point.d.ts.map +1 -0
- package/lib/types/services/permission/sheet-permission.service.d.ts +18 -0
- package/lib/types/services/permission/sheet-permission.service.d.ts.map +1 -0
- package/lib/types/services/ref-range/__tests__/util.d.ts +17 -0
- package/lib/types/services/ref-range/__tests__/util.d.ts.map +1 -0
- package/lib/types/services/ref-range/__tests__/util.spec.d.ts +2 -0
- package/lib/types/services/ref-range/__tests__/util.spec.d.ts.map +1 -0
- package/lib/types/services/ref-range/ref-range.service.d.ts +55 -0
- package/lib/types/services/ref-range/ref-range.service.d.ts.map +1 -0
- package/lib/types/services/ref-range/type.d.ts +81 -0
- package/lib/types/services/ref-range/type.d.ts.map +1 -0
- package/lib/types/services/ref-range/util.d.ts +19 -0
- package/lib/types/services/ref-range/util.d.ts.map +1 -0
- package/lib/types/services/selection-manager.service.d.ts +79 -0
- package/lib/types/services/selection-manager.service.d.ts.map +1 -0
- package/lib/types/services/sheet-interceptor/__tests__/create-core-test-bed.d.ts +16 -0
- package/lib/types/services/sheet-interceptor/__tests__/create-core-test-bed.d.ts.map +1 -0
- package/lib/types/services/sheet-interceptor/__tests__/sheet-interceptor.service.spec.d.ts +2 -0
- package/lib/types/services/sheet-interceptor/__tests__/sheet-interceptor.service.spec.d.ts.map +1 -0
- package/lib/types/services/sheet-interceptor/interceptor-const.d.ts +7 -0
- package/lib/types/services/sheet-interceptor/interceptor-const.d.ts.map +1 -0
- package/lib/types/services/sheet-interceptor/sheet-interceptor.service.d.ts +34 -0
- package/lib/types/services/sheet-interceptor/sheet-interceptor.service.d.ts.map +1 -0
- package/lib/types/services/sheet-interceptor/utils/interceptor.d.ts +10 -0
- package/lib/types/services/sheet-interceptor/utils/interceptor.d.ts.map +1 -0
- package/lib/types/sheets-plugin.d.ts +15 -0
- package/lib/types/sheets-plugin.d.ts.map +1 -0
- package/package.json +60 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { IMutation, IRange, Nullable } from '@univerjs/core';
|
|
2
|
+
import { Dimension, ObjectMatrix } from '@univerjs/core';
|
|
3
|
+
import type { IAccessor } from '@wendellhu/redi';
|
|
4
|
+
import type { IDeleteRangeMutationParams, IInsertRangeMutationParams } from '../../basics/interfaces/mutation-interface';
|
|
5
|
+
/**
|
|
6
|
+
* Generate undo mutation of a `DeleteRangeMutation`
|
|
7
|
+
*
|
|
8
|
+
* @param {IAccessor} accessor - injector accessor
|
|
9
|
+
* @param {IDeleteRangeMutationParams} params - do mutation params
|
|
10
|
+
* @returns {IInsertRangeMutationParams} undo mutation params
|
|
11
|
+
*/
|
|
12
|
+
export declare const DeleteRangeUndoMutationFactory: (accessor: IAccessor, params: IDeleteRangeMutationParams) => Nullable<IInsertRangeMutationParams>;
|
|
13
|
+
export declare const DeleteRangeMutation: IMutation<IDeleteRangeMutationParams, boolean>;
|
|
14
|
+
export declare function handleDeleteRangeMutation<T>(cellMatrix: ObjectMatrix<T>, ranges: IRange[], lastEndRow: number, lastEndColumn: number, shiftDimension: Dimension): void;
|
|
15
|
+
//# sourceMappingURL=delete-range.mutation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-range.mutation.d.ts","sourceRoot":"","sources":["../../../../src/commands/mutations/delete-range.mutation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAa,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC7E,OAAO,EAAe,SAAS,EAA0B,YAAY,EAAS,MAAM,gBAAgB,CAAC;AACrG,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEjD,OAAO,KAAK,EACR,0BAA0B,EAC1B,0BAA0B,EAC7B,MAAM,4CAA4C,CAAC;AAEpD;;;;;;GAMG;AACH,eAAO,MAAM,8BAA8B,aAC7B,SAAS,UACX,0BAA0B,KACnC,SAAS,0BAA0B,CAiDrC,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,SAAS,CAAC,0BAA0B,EAAE,OAAO,CAmB9E,CAAC;AAEF,wBAAgB,yBAAyB,CAAC,CAAC,EACvC,UAAU,EAAE,YAAY,CAAC,CAAC,CAAC,EAC3B,MAAM,EAAE,MAAM,EAAE,EAChB,UAAU,EAAE,MAAM,EAClB,aAAa,EAAE,MAAM,EACrB,cAAc,EAAE,SAAS,QAqC5B"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { IMutation, IRange, ObjectMatrix, ObjectMatrixPrimitiveType } from '@univerjs/core';
|
|
2
|
+
import { Dimension } from '@univerjs/core';
|
|
3
|
+
import type { IAccessor } from '@wendellhu/redi';
|
|
4
|
+
import type { IDeleteRangeMutationParams, IInsertRangeMutationParams } from '../../basics/interfaces/mutation-interface';
|
|
5
|
+
/**
|
|
6
|
+
* Generate undo mutation of a `InsertRangeMutation`
|
|
7
|
+
*
|
|
8
|
+
* @param {IAccessor} accessor - injector accessor
|
|
9
|
+
* @param {IInsertRangeMutationParams} params - do mutation params
|
|
10
|
+
* @returns {IDeleteRangeMutationParams} undo mutation params
|
|
11
|
+
*/
|
|
12
|
+
export declare const InsertRangeUndoMutationFactory: (accessor: IAccessor, params: IInsertRangeMutationParams) => IDeleteRangeMutationParams;
|
|
13
|
+
export declare const InsertRangeMutation: IMutation<IInsertRangeMutationParams, boolean>;
|
|
14
|
+
export declare function handleInsertRangeMutation<T>(cellMatrix: ObjectMatrix<T>, ranges: IRange[], lastEndRow: number, lastEndColumn: number, shiftDimension: Dimension, cellValue?: ObjectMatrixPrimitiveType<T>): void;
|
|
15
|
+
//# sourceMappingURL=insert-range.mutation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"insert-range.mutation.d.ts","sourceRoot":"","sources":["../../../../src/commands/mutations/insert-range.mutation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,YAAY,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAC;AACjG,OAAO,EAAe,SAAS,EAA0B,MAAM,gBAAgB,CAAC;AAChF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEjD,OAAO,KAAK,EACR,0BAA0B,EAC1B,0BAA0B,EAC7B,MAAM,4CAA4C,CAAC;AAEpD;;;;;;GAMG;AACH,eAAO,MAAM,8BAA8B,aAC7B,SAAS,UACX,0BAA0B,KACnC,0BAKD,CAAC;AAEH,eAAO,MAAM,mBAAmB,EAAE,SAAS,CAAC,0BAA0B,EAAE,OAAO,CAmB9E,CAAC;AAEF,wBAAgB,yBAAyB,CAAC,CAAC,EACvC,UAAU,EAAE,YAAY,CAAC,CAAC,CAAC,EAC3B,MAAM,EAAE,MAAM,EAAE,EAChB,UAAU,EAAE,MAAM,EAClB,aAAa,EAAE,MAAM,EACrB,cAAc,EAAE,SAAS,EACzB,SAAS,CAAC,EAAE,yBAAyB,CAAC,CAAC,CAAC,QAuD3C"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { IMutation } from '@univerjs/core';
|
|
2
|
+
import type { IAccessor } from '@wendellhu/redi';
|
|
3
|
+
import type { IInsertColMutationParams, IInsertRowMutationParams, IRemoveColMutationParams, IRemoveRowsMutationParams } from '../../basics/interfaces/mutation-interface';
|
|
4
|
+
export declare const InsertRowMutationUndoFactory: (accessor: IAccessor, params: IInsertRowMutationParams) => IRemoveRowsMutationParams;
|
|
5
|
+
export declare const InsertRowMutation: IMutation<IInsertRowMutationParams>;
|
|
6
|
+
export declare const InsertColMutationUndoFactory: (accessor: IAccessor, params: IInsertColMutationParams) => IRemoveColMutationParams;
|
|
7
|
+
export declare const InsertColMutation: IMutation<IInsertColMutationParams>;
|
|
8
|
+
//# sourceMappingURL=insert-row-col.mutation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"insert-row-col.mutation.d.ts","sourceRoot":"","sources":["../../../../src/commands/mutations/insert-row-col.mutation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAEhD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEjD,OAAO,KAAK,EACR,wBAAwB,EACxB,wBAAwB,EACxB,wBAAwB,EACxB,yBAAyB,EAC5B,MAAM,4CAA4C,CAAC;AAEpD,eAAO,MAAM,4BAA4B,aAC3B,SAAS,UACX,wBAAwB,KACjC,yBAaF,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,SAAS,CAAC,wBAAwB,CA6CjE,CAAC;AAEF,eAAO,MAAM,4BAA4B,aAC3B,SAAS,UACX,wBAAwB,KACjC,wBAaF,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,SAAS,CAAC,wBAAwB,CA2CjE,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { IMutation } from '@univerjs/core';
|
|
2
|
+
import type { IAccessor } from '@wendellhu/redi';
|
|
3
|
+
import type { IInsertSheetMutationParams, IRemoveSheetMutationParams } from '../../basics/interfaces/mutation-interface';
|
|
4
|
+
/**
|
|
5
|
+
* Generate undo mutation of a `InsertSheetMutation`
|
|
6
|
+
*
|
|
7
|
+
* @param {IAccessor} _accessor - injector accessor
|
|
8
|
+
* @param {IInsertSheetMutationParams} params - do mutation params
|
|
9
|
+
* @returns {IRemoveSheetMutationParams} undo mutation params
|
|
10
|
+
*/
|
|
11
|
+
export declare const InsertSheetUndoMutationFactory: (_accessor: IAccessor, params: IInsertSheetMutationParams) => IRemoveSheetMutationParams;
|
|
12
|
+
export declare const InsertSheetMutation: IMutation<IInsertSheetMutationParams, boolean>;
|
|
13
|
+
//# sourceMappingURL=insert-sheet.mutation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"insert-sheet.mutation.d.ts","sourceRoot":"","sources":["../../../../src/commands/mutations/insert-sheet.mutation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAEhD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEjD,OAAO,KAAK,EACR,0BAA0B,EAC1B,0BAA0B,EAC7B,MAAM,4CAA4C,CAAC;AAEpD;;;;;;GAMG;AACH,eAAO,MAAM,8BAA8B,cAC5B,SAAS,UACZ,0BAA0B,KACnC,0BAGD,CAAC;AAEH,eAAO,MAAM,mBAAmB,EAAE,SAAS,CAAC,0BAA0B,EAAE,OAAO,CAa9E,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ICellData, IMutation, ObjectMatrixPrimitiveType } from '@univerjs/core';
|
|
2
|
+
export interface IMoveRangeMutationParams {
|
|
3
|
+
workbookId: string;
|
|
4
|
+
worksheetId: string;
|
|
5
|
+
from: ObjectMatrixPrimitiveType<ICellData | null>;
|
|
6
|
+
to: ObjectMatrixPrimitiveType<ICellData | null>;
|
|
7
|
+
}
|
|
8
|
+
export declare const MoveRangeMutation: IMutation<IMoveRangeMutationParams, boolean>;
|
|
9
|
+
//# sourceMappingURL=move-range.mutation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"move-range.mutation.d.ts","sourceRoot":"","sources":["../../../../src/commands/mutations/move-range.mutation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAC;AAGtF,MAAM,WAAW,wBAAwB;IACrC,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,yBAAyB,CAAC,SAAS,GAAG,IAAI,CAAC,CAAC;IAClD,EAAE,EAAE,yBAAyB,CAAC,SAAS,GAAG,IAAI,CAAC,CAAC;CACnD;AAED,eAAO,MAAM,iBAAiB,EAAE,SAAS,CAAC,wBAAwB,EAAE,OAAO,CAiC1E,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { IMutation, IRange } from '@univerjs/core';
|
|
2
|
+
import type { IAccessor } from '@wendellhu/redi';
|
|
3
|
+
export interface IMoveRowsMutationParams {
|
|
4
|
+
workbookId: string;
|
|
5
|
+
worksheetId: string;
|
|
6
|
+
/**
|
|
7
|
+
* The rows to be moved.
|
|
8
|
+
*/
|
|
9
|
+
sourceRange: IRange;
|
|
10
|
+
/**
|
|
11
|
+
* The destination range to move the source rows to. Note that the range is before the movement has occurred.
|
|
12
|
+
*/
|
|
13
|
+
targetRange: IRange;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Get an undo mutation for the move rows mutation.
|
|
17
|
+
* @param accessor
|
|
18
|
+
* @param params
|
|
19
|
+
*/
|
|
20
|
+
export declare function MoveRowsMutationUndoFactory(_accessor: IAccessor, params: IMoveRowsMutationParams): IMoveRowsMutationParams;
|
|
21
|
+
export declare const MoveRowsMutation: IMutation<IMoveRowsMutationParams>;
|
|
22
|
+
export interface IMoveColumnsMutationParams {
|
|
23
|
+
workbookId: string;
|
|
24
|
+
worksheetId: string;
|
|
25
|
+
/**
|
|
26
|
+
* The cols to be moved.
|
|
27
|
+
*/
|
|
28
|
+
sourceRange: IRange;
|
|
29
|
+
/**
|
|
30
|
+
* The destination range to move the source cols to. Note that the range is before the movement has occurred.
|
|
31
|
+
*/
|
|
32
|
+
targetRange: IRange;
|
|
33
|
+
}
|
|
34
|
+
export declare function MoveColsMutationUndoFactory(_accessor: IAccessor, params: IMoveColumnsMutationParams): IMoveColumnsMutationParams;
|
|
35
|
+
export declare const MoveColsMutation: IMutation<IMoveColumnsMutationParams>;
|
|
36
|
+
//# sourceMappingURL=move-rows-cols.mutation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"move-rows-cols.mutation.d.ts","sourceRoot":"","sources":["../../../../src/commands/mutations/move-rows-cols.mutation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAIjD,MAAM,WAAW,uBAAuB;IACpC,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;CACvB;AAED;;;;GAIG;AACH,wBAAgB,2BAA2B,CACvC,SAAS,EAAE,SAAS,EACpB,MAAM,EAAE,uBAAuB,GAChC,uBAAuB,CAmBzB;AAED,eAAO,MAAM,gBAAgB,EAAE,SAAS,CAAC,uBAAuB,CA+B/D,CAAC;AAEF,MAAM,WAAW,0BAA0B;IACvC,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;CACvB;AAED,wBAAgB,2BAA2B,CACvC,SAAS,EAAE,SAAS,EACpB,MAAM,EAAE,0BAA0B,GACnC,0BAA0B,CAuB5B;AAED,eAAO,MAAM,gBAAgB,EAAE,SAAS,CAAC,0BAA0B,CA+BlE,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { IMutation, Worksheet } from '@univerjs/core';
|
|
2
|
+
import type { IAccessor } from '@wendellhu/redi';
|
|
3
|
+
import type { IInsertColMutationParams, IInsertRowMutationParams, IRemoveColMutationParams, IRemoveRowsMutationParams } from '../../basics/interfaces/mutation-interface';
|
|
4
|
+
export declare const RemoveRowsUndoMutationFactory: (params: IRemoveRowsMutationParams, worksheet: Worksheet) => IInsertRowMutationParams;
|
|
5
|
+
export declare const RemoveRowMutation: IMutation<IRemoveRowsMutationParams>;
|
|
6
|
+
export declare const RemoveColMutationFactory: (accessor: IAccessor, params: IRemoveColMutationParams) => IInsertColMutationParams;
|
|
7
|
+
export declare const RemoveColMutation: IMutation<IRemoveColMutationParams>;
|
|
8
|
+
//# sourceMappingURL=remove-row-col.mutation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"remove-row-col.mutation.d.ts","sourceRoot":"","sources":["../../../../src/commands/mutations/remove-row-col.mutation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAe,SAAS,EAAY,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAElF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEjD,OAAO,KAAK,EACR,wBAAwB,EACxB,wBAAwB,EACxB,wBAAwB,EACxB,yBAAyB,EAC5B,MAAM,4CAA4C,CAAC;AAEpD,eAAO,MAAM,6BAA6B,WAC9B,yBAAyB,aACtB,SAAS,KACrB,wBAkBF,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,SAAS,CAAC,yBAAyB,CAkClE,CAAC;AAEF,eAAO,MAAM,wBAAwB,aACvB,SAAS,UACX,wBAAwB,KACjC,wBAgCF,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,SAAS,CAAC,wBAAwB,CAmCjE,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { IMutation } from '@univerjs/core';
|
|
2
|
+
import type { IAccessor } from '@wendellhu/redi';
|
|
3
|
+
import type { IInsertSheetMutationParams, IRemoveSheetMutationParams } from '../../basics/interfaces/mutation-interface';
|
|
4
|
+
/**
|
|
5
|
+
* Generate undo mutation of a `RemoveSheetMutation`
|
|
6
|
+
*
|
|
7
|
+
* @param {IAccessor} accessor - injector accessor
|
|
8
|
+
* @param {IRemoveSheetMutationParams} params - do mutation params
|
|
9
|
+
* @returns {IInsertSheetMutationParams} undo mutation params
|
|
10
|
+
*/
|
|
11
|
+
export declare const RemoveSheetUndoMutationFactory: (accessor: IAccessor, params: IRemoveSheetMutationParams) => IInsertSheetMutationParams;
|
|
12
|
+
export declare const RemoveSheetMutation: IMutation<IRemoveSheetMutationParams, boolean>;
|
|
13
|
+
//# sourceMappingURL=remove-sheet.mutation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"remove-sheet.mutation.d.ts","sourceRoot":"","sources":["../../../../src/commands/mutations/remove-sheet.mutation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAEhD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEjD,OAAO,KAAK,EACR,0BAA0B,EAC1B,0BAA0B,EAC7B,MAAM,4CAA4C,CAAC;AAEpD;;;;;;GAMG;AACH,eAAO,MAAM,8BAA8B,aAC7B,SAAS,UACX,0BAA0B,KACnC,0BAaF,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,SAAS,CAAC,0BAA0B,EAAE,OAAO,CA2B9E,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { IMutation } from '@univerjs/core';
|
|
2
|
+
import type { IAccessor } from '@wendellhu/redi';
|
|
3
|
+
import type { IAddWorksheetMergeMutationParams, IRemoveWorksheetMergeMutationParams } from '../../basics/interfaces/mutation-interface';
|
|
4
|
+
export declare const RemoveMergeUndoMutationFactory: (accessor: IAccessor, params: IRemoveWorksheetMergeMutationParams) => IAddWorksheetMergeMutationParams;
|
|
5
|
+
export declare const RemoveWorksheetMergeMutation: IMutation<IRemoveWorksheetMergeMutationParams>;
|
|
6
|
+
//# sourceMappingURL=remove-worksheet-merge.mutation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"remove-worksheet-merge.mutation.d.ts","sourceRoot":"","sources":["../../../../src/commands/mutations/remove-worksheet-merge.mutation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAEhD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEjD,OAAO,KAAK,EACR,gCAAgC,EAChC,mCAAmC,EACtC,MAAM,4CAA4C,CAAC;AAEpD,eAAO,MAAM,8BAA8B,aAC7B,SAAS,UACX,mCAAmC,KAC5C,gCA+BF,CAAC;AAEF,eAAO,MAAM,4BAA4B,EAAE,SAAS,CAAC,mCAAmC,CA2BvF,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { IMutation, IRange } from '@univerjs/core';
|
|
2
|
+
import type { IAccessor } from '@wendellhu/redi';
|
|
3
|
+
export interface ISetColHiddenMutationParams {
|
|
4
|
+
workbookId: string;
|
|
5
|
+
worksheetId: string;
|
|
6
|
+
ranges: IRange[];
|
|
7
|
+
}
|
|
8
|
+
export declare const SetColHiddenUndoMutationFactory: (accessor: IAccessor, params: ISetColHiddenMutationParams) => {
|
|
9
|
+
workbookId: string;
|
|
10
|
+
worksheetId: string;
|
|
11
|
+
ranges: IRange[];
|
|
12
|
+
};
|
|
13
|
+
export declare const SetColHiddenMutation: IMutation<ISetColHiddenMutationParams>;
|
|
14
|
+
export interface ISetColVisibleMutationParams {
|
|
15
|
+
workbookId: string;
|
|
16
|
+
worksheetId: string;
|
|
17
|
+
ranges: IRange[];
|
|
18
|
+
}
|
|
19
|
+
export declare const SetColVisibleUndoMutationFactory: (accessor: IAccessor, params: ISetColVisibleMutationParams) => {
|
|
20
|
+
workbookId: string;
|
|
21
|
+
worksheetId: string;
|
|
22
|
+
ranges: IRange[];
|
|
23
|
+
};
|
|
24
|
+
export declare const SetColVisibleMutation: IMutation<ISetColVisibleMutationParams>;
|
|
25
|
+
//# sourceMappingURL=set-col-visible.mutation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"set-col-visible.mutation.d.ts","sourceRoot":"","sources":["../../../../src/commands/mutations/set-col-visible.mutation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEjD,MAAM,WAAW,2BAA2B;IACxC,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,EAAE,CAAC;CACpB;AAED,eAAO,MAAM,+BAA+B,aAAc,SAAS,UAAU,2BAA2B;;;;CAavG,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,SAAS,CAAC,2BAA2B,CAwBvE,CAAC;AAEF,MAAM,WAAW,4BAA4B;IACzC,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,EAAE,CAAC;CACpB;AAED,eAAO,MAAM,gCAAgC,aAAc,SAAS,UAAU,4BAA4B;;;;CAazG,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,SAAS,CAAC,4BAA4B,CAwBzE,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { IMutation } from '@univerjs/core';
|
|
2
|
+
import type { IAccessor } from '@wendellhu/redi';
|
|
3
|
+
export interface ISetFrozenMutationParams {
|
|
4
|
+
workbookId: string;
|
|
5
|
+
worksheetId: string;
|
|
6
|
+
startRow: number;
|
|
7
|
+
startColumn: number;
|
|
8
|
+
ySplit: number;
|
|
9
|
+
xSplit: number;
|
|
10
|
+
}
|
|
11
|
+
export declare const SetFrozenMutationFactory: (accessor: IAccessor, params: ISetFrozenMutationParams) => ISetFrozenMutationParams;
|
|
12
|
+
export declare const SetFrozenMutation: IMutation<ISetFrozenMutationParams>;
|
|
13
|
+
//# sourceMappingURL=set-frozen.mutation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"set-frozen.mutation.d.ts","sourceRoot":"","sources":["../../../../src/commands/mutations/set-frozen.mutation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAEhD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEjD,MAAM,WAAW,wBAAwB;IACrC,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,wBAAwB,aACvB,SAAS,UACX,wBAAwB,KACjC,wBAoBF,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,SAAS,CAAC,wBAAwB,CAkBjE,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { BooleanNumber, IMutation } from '@univerjs/core';
|
|
2
|
+
import type { IAccessor } from '@wendellhu/redi';
|
|
3
|
+
export interface ISetHideGridlinesMutationParams {
|
|
4
|
+
hideGridlines: BooleanNumber;
|
|
5
|
+
workbookId: string;
|
|
6
|
+
worksheetId: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const SetHideGridlinesUndoMutationFactory: (accessor: IAccessor, params: ISetHideGridlinesMutationParams) => ISetHideGridlinesMutationParams;
|
|
9
|
+
export declare const SetHideGridlinesMutation: IMutation<ISetHideGridlinesMutationParams>;
|
|
10
|
+
//# sourceMappingURL=set-hide-gridlines.mutatiom.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"set-hide-gridlines.mutatiom.d.ts","sourceRoot":"","sources":["../../../../src/commands/mutations/set-hide-gridlines.mutatiom.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE/D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEjD,MAAM,WAAW,+BAA+B;IAC5C,aAAa,EAAE,aAAa,CAAC;IAC7B,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;CACvB;AAED,eAAO,MAAM,mCAAmC,aAClC,SAAS,UACX,+BAA+B,KACxC,+BAWF,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,SAAS,CAAC,+BAA+B,CAc/E,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ICommand } from '@univerjs/core';
|
|
2
|
+
import type { IAccessor } from '@wendellhu/redi';
|
|
3
|
+
import type { FormatType } from '../../services/numfmt/type';
|
|
4
|
+
export declare const factorySetNumfmtUndoMutation: (accessor: IAccessor, option: ISetNumfmtMutationParams) => ISetNumfmtMutationParams;
|
|
5
|
+
export interface ISetNumfmtMutationParams {
|
|
6
|
+
values: Array<{
|
|
7
|
+
pattern?: string;
|
|
8
|
+
row: number;
|
|
9
|
+
col: number;
|
|
10
|
+
type?: FormatType;
|
|
11
|
+
}>;
|
|
12
|
+
workbookId: string;
|
|
13
|
+
worksheetId: string;
|
|
14
|
+
}
|
|
15
|
+
export declare const SetNumfmtMutation: ICommand<ISetNumfmtMutationParams>;
|
|
16
|
+
//# sourceMappingURL=set-numfmt-mutation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"set-numfmt-mutation.d.ts","sourceRoot":"","sources":["../../../../src/commands/mutations/set-numfmt-mutation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE/C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEjD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAG7D,eAAO,MAAM,4BAA4B,aAC3B,SAAS,UACX,wBAAwB,KACjC,wBAgBF,CAAC;AAEF,MAAM,WAAW,wBAAwB;IACrC,MAAM,EAAE,KAAK,CAAC;QAAE,OAAO,CAAC,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,UAAU,CAAA;KAAE,CAAC,CAAC;IACjF,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;CACvB;AAED,eAAO,MAAM,iBAAiB,EAAE,QAAQ,CAAC,wBAAwB,CAkBhE,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ICellV, IMutation, IRange, ObjectMatrixPrimitiveType } from '@univerjs/core';
|
|
2
|
+
import type { IAccessor } from '@wendellhu/redi';
|
|
3
|
+
export interface ISetRangeFormattedValueMutationParams {
|
|
4
|
+
workbookId: string;
|
|
5
|
+
worksheetId: string;
|
|
6
|
+
range: IRange[];
|
|
7
|
+
value: ObjectMatrixPrimitiveType<ICellV>;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Generate undo mutation of a `SetRangeFormattedValueMutation`
|
|
11
|
+
*
|
|
12
|
+
* @param {IAccessor} accessor - injector accessor
|
|
13
|
+
* @param {ISetRangeFormattedValueMutationParams} params - do mutation params
|
|
14
|
+
* @returns {ISetRangeFormattedValueMutationParams} undo mutation params
|
|
15
|
+
*/
|
|
16
|
+
export declare const SetRangeFormattedValueUndoMutationFactory: (accessor: IAccessor, params: ISetRangeFormattedValueMutationParams) => ISetRangeFormattedValueMutationParams;
|
|
17
|
+
export declare const SetRangeFormattedValueMutation: IMutation<ISetRangeFormattedValueMutationParams, boolean>;
|
|
18
|
+
//# sourceMappingURL=set-range-formatted-value.mutation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"set-range-formatted-value.mutation.d.ts","sourceRoot":"","sources":["../../../../src/commands/mutations/set-range-formatted-value.mutation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAa,MAAM,EAAE,SAAS,EAAE,MAAM,EAAY,yBAAyB,EAAE,MAAM,gBAAgB,CAAC;AAEhH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEjD,MAAM,WAAW,qCAAqC;IAClD,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,KAAK,EAAE,yBAAyB,CAAC,MAAM,CAAC,CAAC;CAC5C;AAED;;;;;;GAMG;AACH,eAAO,MAAM,yCAAyC,aACxC,SAAS,UACX,qCAAqC,KAC9C,qCAuBF,CAAC;AAEF,eAAO,MAAM,8BAA8B,EAAE,SAAS,CAAC,qCAAqC,EAAE,OAAO,CAiCpG,CAAC"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import type { IBorderData, ICellData, ICopyToOptionsData, IDocumentData, IMutation, IMutationCommonParams, IRange, IStyleData, Nullable, ObjectMatrixPrimitiveType } from '@univerjs/core';
|
|
2
|
+
import type { IAccessor } from '@wendellhu/redi';
|
|
3
|
+
/** Params of `SetRangeValuesMutation` */
|
|
4
|
+
export interface ISetRangeValuesMutationParams extends IMutationCommonParams {
|
|
5
|
+
worksheetId: string;
|
|
6
|
+
workbookId: string;
|
|
7
|
+
/**
|
|
8
|
+
* null for clear all
|
|
9
|
+
*/
|
|
10
|
+
cellValue?: ObjectMatrixPrimitiveType<ICellData | null>;
|
|
11
|
+
/**
|
|
12
|
+
* @deprecated not a good design
|
|
13
|
+
*/
|
|
14
|
+
options?: ICopyToOptionsData;
|
|
15
|
+
/**
|
|
16
|
+
* for formula calculate
|
|
17
|
+
*/
|
|
18
|
+
isFormulaUpdate?: boolean;
|
|
19
|
+
}
|
|
20
|
+
export interface ISetRangeValuesRangeMutationParams extends ISetRangeValuesMutationParams {
|
|
21
|
+
range: IRange[];
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Generate undo mutation of a `SetRangeValuesMutation`
|
|
25
|
+
*
|
|
26
|
+
* @param {IAccessor} accessor - injector accessor
|
|
27
|
+
* @param {ISetRangeValuesMutationParams} params - do mutation params
|
|
28
|
+
* @returns {ISetRangeValuesMutationParams} undo mutation params
|
|
29
|
+
*/
|
|
30
|
+
export declare const SetRangeValuesUndoMutationFactory: (accessor: IAccessor, params: ISetRangeValuesMutationParams) => ISetRangeValuesMutationParams;
|
|
31
|
+
export declare const SetRangeValuesMutation: IMutation<ISetRangeValuesMutationParams, boolean>;
|
|
32
|
+
/**
|
|
33
|
+
* Convert old style data for storage
|
|
34
|
+
* @param style
|
|
35
|
+
*/
|
|
36
|
+
export declare function transformStyle(oldStyle: Nullable<IStyleData>, newStyle: Nullable<IStyleData>): Nullable<IStyleData>;
|
|
37
|
+
/**
|
|
38
|
+
* Convert old style normal key for storage
|
|
39
|
+
*
|
|
40
|
+
* @param style
|
|
41
|
+
*/
|
|
42
|
+
export declare function transformNormalKey(oldStyle: Nullable<IStyleData>, newStyle: Nullable<IStyleData>): Nullable<IStyleData>;
|
|
43
|
+
/**
|
|
44
|
+
* Convert old style border for storage
|
|
45
|
+
*
|
|
46
|
+
|
|
47
|
+
* @param style
|
|
48
|
+
*/
|
|
49
|
+
export declare function transformBorders(oldBorders: IBorderData, newBorders: Nullable<IBorderData>): IBorderData;
|
|
50
|
+
/**
|
|
51
|
+
* merge new style to old style
|
|
52
|
+
*
|
|
53
|
+
* @param oldStyle
|
|
54
|
+
* @param newStyle
|
|
55
|
+
*/
|
|
56
|
+
export declare function mergeStyle(oldStyle: Nullable<IStyleData>, newStyle: Nullable<IStyleData>, isRichText?: boolean): Nullable<IStyleData>;
|
|
57
|
+
/**
|
|
58
|
+
* Find the text style of all paragraphs and modify it to the new style
|
|
59
|
+
* @param p
|
|
60
|
+
* @param newStyle
|
|
61
|
+
*/
|
|
62
|
+
export declare function mergeRichTextStyle(p: IDocumentData, newStyle: Nullable<IStyleData>): void;
|
|
63
|
+
//# sourceMappingURL=set-range-values.mutation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"set-range-values.mutation.d.ts","sourceRoot":"","sources":["../../../../src/commands/mutations/set-range-values.mutation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,WAAW,EACX,SAAS,EAET,kBAAkB,EAClB,aAAa,EAEb,SAAS,EACT,qBAAqB,EACrB,MAAM,EACN,UAAU,EAEV,QAAQ,EACR,yBAAyB,EAC5B,MAAM,gBAAgB,CAAC;AAExB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEjD,yCAAyC;AACzC,MAAM,WAAW,6BAA8B,SAAQ,qBAAqB;IACxE,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,SAAS,CAAC,EAAE,yBAAyB,CAAC,SAAS,GAAG,IAAI,CAAC,CAAC;IAExD;;OAEG;IACH,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAE7B;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED,MAAM,WAAW,kCAAmC,SAAQ,6BAA6B;IACrF,KAAK,EAAE,MAAM,EAAE,CAAC;CACnB;AAED;;;;;;GAMG;AACH,eAAO,MAAM,iCAAiC,aAChC,SAAS,UACX,6BAA6B,KACtC,6BAmCF,CAAC;AAyCF,eAAO,MAAM,sBAAsB,EAAE,SAAS,CAAC,6BAA6B,EAAE,OAAO,CA+FpF,CAAC;AAoBF;;;GAGG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,QAAQ,CAAC,UAAU,CAAC,EAAE,QAAQ,EAAE,QAAQ,CAAC,UAAU,CAAC,GAAG,QAAQ,CAAC,UAAU,CAAC,CAGnH;AACD;;;;GAIG;AACH,wBAAgB,kBAAkB,CAC9B,QAAQ,EAAE,QAAQ,CAAC,UAAU,CAAC,EAC9B,QAAQ,EAAE,QAAQ,CAAC,UAAU,CAAC,GAC/B,QAAQ,CAAC,UAAU,CAAC,CAkBtB;AACD;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,WAAW,EAAE,UAAU,EAAE,QAAQ,CAAC,WAAW,CAAC,GAAG,WAAW,CAexG;AAED;;;;;GAKG;AACH,wBAAgB,UAAU,CACtB,QAAQ,EAAE,QAAQ,CAAC,UAAU,CAAC,EAC9B,QAAQ,EAAE,QAAQ,CAAC,UAAU,CAAC,EAC9B,UAAU,GAAE,OAAe,GAC5B,QAAQ,CAAC,UAAU,CAAC,CA4CtB;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,aAAa,EAAE,QAAQ,EAAE,QAAQ,CAAC,UAAU,CAAC,QAmBlF"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { IMutation, IRange } from '@univerjs/core';
|
|
2
|
+
import type { IAccessor } from '@wendellhu/redi';
|
|
3
|
+
export interface ISetRowVisibleMutationParams {
|
|
4
|
+
workbookId: string;
|
|
5
|
+
worksheetId: string;
|
|
6
|
+
ranges: IRange[];
|
|
7
|
+
}
|
|
8
|
+
export declare const SetRowVisibleUndoMutationFactory: (accessor: IAccessor, params: ISetRowVisibleMutationParams) => {
|
|
9
|
+
workbookId: string;
|
|
10
|
+
worksheetId: string;
|
|
11
|
+
ranges: IRange[];
|
|
12
|
+
};
|
|
13
|
+
export declare const SetRowVisibleMutation: IMutation<ISetRowVisibleMutationParams>;
|
|
14
|
+
export interface ISetRowHiddenMutationParams {
|
|
15
|
+
workbookId: string;
|
|
16
|
+
worksheetId: string;
|
|
17
|
+
ranges: IRange[];
|
|
18
|
+
}
|
|
19
|
+
export declare const SetRowHiddenUndoMutationFactory: (accessor: IAccessor, params: ISetRowHiddenMutationParams) => {
|
|
20
|
+
workbookId: string;
|
|
21
|
+
worksheetId: string;
|
|
22
|
+
ranges: IRange[];
|
|
23
|
+
};
|
|
24
|
+
export declare const SetRowHiddenMutation: IMutation<ISetRowHiddenMutationParams>;
|
|
25
|
+
//# sourceMappingURL=set-row-visible.mutation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"set-row-visible.mutation.d.ts","sourceRoot":"","sources":["../../../../src/commands/mutations/set-row-visible.mutation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEjD,MAAM,WAAW,4BAA4B;IACzC,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,EAAE,CAAC;CACpB;AAED,eAAO,MAAM,gCAAgC,aAAc,SAAS,UAAU,4BAA4B;;;;CAazG,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,SAAS,CAAC,4BAA4B,CAwBzE,CAAC;AAEF,MAAM,WAAW,2BAA2B;IACxC,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,EAAE,CAAC;CACpB;AAED,eAAO,MAAM,+BAA+B,aAAc,SAAS,UAAU,2BAA2B;;;;CAavG,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,SAAS,CAAC,2BAA2B,CAyBvE,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { IMutation } from '@univerjs/core';
|
|
2
|
+
import type { IAccessor } from '@wendellhu/redi';
|
|
3
|
+
export interface ISetTabColorMutationParams {
|
|
4
|
+
color: string;
|
|
5
|
+
workbookId: string;
|
|
6
|
+
worksheetId: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const SetTabColorUndoMutationFactory: (accessor: IAccessor, params: ISetTabColorMutationParams) => ISetTabColorMutationParams;
|
|
9
|
+
export declare const SetTabColorMutation: IMutation<ISetTabColorMutationParams>;
|
|
10
|
+
//# sourceMappingURL=set-tab-color.mutation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"set-tab-color.mutation.d.ts","sourceRoot":"","sources":["../../../../src/commands/mutations/set-tab-color.mutation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAEhD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEjD,MAAM,WAAW,0BAA0B;IACvC,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;CACvB;AAED,eAAO,MAAM,8BAA8B,aAC7B,SAAS,UACX,0BAA0B,KACnC,0BAWF,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,SAAS,CAAC,0BAA0B,CAYrE,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { IMutation } from '@univerjs/core';
|
|
2
|
+
import type { IAccessor } from '@wendellhu/redi';
|
|
3
|
+
export interface ISetWorksheetActivateMutationParams {
|
|
4
|
+
workbookId: string;
|
|
5
|
+
worksheetId: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const SetWorksheetUnActivateMutationFactory: (accessor: IAccessor, params: ISetWorksheetActivateMutationParams) => ISetWorksheetActivateMutationParams;
|
|
8
|
+
export declare const SetWorksheetActivateMutation: IMutation<ISetWorksheetActivateMutationParams>;
|
|
9
|
+
//# sourceMappingURL=set-worksheet-activate.mutation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"set-worksheet-activate.mutation.d.ts","sourceRoot":"","sources":["../../../../src/commands/mutations/set-worksheet-activate.mutation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAuB,MAAM,gBAAgB,CAAC;AAErE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEjD,MAAM,WAAW,mCAAmC;IAChD,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;CACvB;AAED,eAAO,MAAM,qCAAqC,aACpC,SAAS,UACX,mCAAmC,KAC5C,mCAyBF,CAAC;AAEF,eAAO,MAAM,4BAA4B,EAAE,SAAS,CAAC,mCAAmC,CAmBvF,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { IMutation, IRange } from '@univerjs/core';
|
|
2
|
+
import { ObjectArray } from '@univerjs/core';
|
|
3
|
+
import type { IAccessor } from '@wendellhu/redi';
|
|
4
|
+
export interface ISetWorksheetColWidthMutationParams {
|
|
5
|
+
workbookId: string;
|
|
6
|
+
worksheetId: string;
|
|
7
|
+
ranges: IRange[];
|
|
8
|
+
colWidth: number | ObjectArray<number>;
|
|
9
|
+
}
|
|
10
|
+
export declare const SetWorksheetColWidthMutationFactory: (accessor: IAccessor, params: ISetWorksheetColWidthMutationParams) => ISetWorksheetColWidthMutationParams;
|
|
11
|
+
export declare const SetWorksheetColWidthMutation: IMutation<ISetWorksheetColWidthMutationParams>;
|
|
12
|
+
//# sourceMappingURL=set-worksheet-col-width.mutation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"set-worksheet-col-width.mutation.d.ts","sourceRoot":"","sources":["../../../../src/commands/mutations/set-worksheet-col-width.mutation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAuC,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAClF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEjD,MAAM,WAAW,mCAAmC;IAChD,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,QAAQ,EAAE,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,CAAC;CAC1C;AAED,eAAO,MAAM,mCAAmC,aAClC,SAAS,UACX,mCAAmC,KAC5C,mCA6BF,CAAC;AAEF,eAAO,MAAM,4BAA4B,EAAE,SAAS,CAAC,mCAAmC,CAkCvF,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { IMutation, IWorksheetData } from '@univerjs/core';
|
|
2
|
+
import type { IAccessor } from '@wendellhu/redi';
|
|
3
|
+
/** @deprecated */
|
|
4
|
+
export interface ISetWorksheetConfigMutationParams {
|
|
5
|
+
workbookId: string;
|
|
6
|
+
worksheetId: string;
|
|
7
|
+
config: IWorksheetData;
|
|
8
|
+
}
|
|
9
|
+
/** @deprecated */
|
|
10
|
+
export declare const SetWorksheetConfigUndoMutationFactory: (accessor: IAccessor, params: ISetWorksheetConfigMutationParams) => ISetWorksheetConfigMutationParams;
|
|
11
|
+
/** @deprecated */
|
|
12
|
+
export declare const SetWorksheetConfigMutation: IMutation<ISetWorksheetConfigMutationParams>;
|
|
13
|
+
//# sourceMappingURL=set-worksheet-config.mutation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"set-worksheet-config.mutation.d.ts","sourceRoot":"","sources":["../../../../src/commands/mutations/set-worksheet-config.mutation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAEhE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEjD,kBAAkB;AAClB,MAAM,WAAW,iCAAiC;IAC9C,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,cAAc,CAAC;CAC1B;AAED,kBAAkB;AAClB,eAAO,MAAM,qCAAqC,aACpC,SAAS,UACX,iCAAiC,KAC1C,iCAUF,CAAC;AAEF,kBAAkB;AAClB,eAAO,MAAM,0BAA0B,EAAE,SAAS,CAAC,iCAAiC,CAcnF,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { BooleanNumber, IMutation } from '@univerjs/core';
|
|
2
|
+
import type { IAccessor } from '@wendellhu/redi';
|
|
3
|
+
export interface ISetWorksheetHideMutationParams {
|
|
4
|
+
hidden: BooleanNumber;
|
|
5
|
+
workbookId: string;
|
|
6
|
+
worksheetId: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const SetWorksheetHideMutationFactory: (accessor: IAccessor, params: ISetWorksheetHideMutationParams) => ISetWorksheetHideMutationParams;
|
|
9
|
+
export declare const SetWorksheetHideMutation: IMutation<ISetWorksheetHideMutationParams>;
|
|
10
|
+
//# sourceMappingURL=set-worksheet-hide.mutation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"set-worksheet-hide.mutation.d.ts","sourceRoot":"","sources":["../../../../src/commands/mutations/set-worksheet-hide.mutation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE/D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEjD,MAAM,WAAW,+BAA+B;IAC5C,MAAM,EAAE,aAAa,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;CACvB;AAED,eAAO,MAAM,+BAA+B,aAC9B,SAAS,UACX,+BAA+B,KACxC,+BAWF,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,SAAS,CAAC,+BAA+B,CAoB/E,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { IMutation } from '@univerjs/core';
|
|
2
|
+
import type { IAccessor } from '@wendellhu/redi';
|
|
3
|
+
export interface ISetWorksheetNameMutationParams {
|
|
4
|
+
name: string;
|
|
5
|
+
workbookId: string;
|
|
6
|
+
worksheetId: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const SetWorksheetNameMutationFactory: (accessor: IAccessor, params: ISetWorksheetNameMutationParams) => ISetWorksheetNameMutationParams;
|
|
9
|
+
export declare const SetWorksheetNameMutation: IMutation<ISetWorksheetNameMutationParams>;
|
|
10
|
+
//# sourceMappingURL=set-worksheet-name.mutation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"set-worksheet-name.mutation.d.ts","sourceRoot":"","sources":["../../../../src/commands/mutations/set-worksheet-name.mutation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAEhD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEjD,MAAM,WAAW,+BAA+B;IAC5C,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;CACvB;AAED,eAAO,MAAM,+BAA+B,aAC9B,SAAS,UACX,+BAA+B,KACxC,+BAWF,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,SAAS,CAAC,+BAA+B,CAmB/E,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { IMutation } from '@univerjs/core';
|
|
2
|
+
import type { IAccessor } from '@wendellhu/redi';
|
|
3
|
+
export interface ISetWorksheetOrderMutationParams {
|
|
4
|
+
order: number;
|
|
5
|
+
workbookId: string;
|
|
6
|
+
worksheetId: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const SetWorksheetOrderUndoMutationFactory: (accessor: IAccessor, params: ISetWorksheetOrderMutationParams) => ISetWorksheetOrderMutationParams;
|
|
9
|
+
export declare const SetWorksheetOrderMutation: IMutation<ISetWorksheetOrderMutationParams>;
|
|
10
|
+
//# sourceMappingURL=set-worksheet-order.mutation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"set-worksheet-order.mutation.d.ts","sourceRoot":"","sources":["../../../../src/commands/mutations/set-worksheet-order.mutation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAEhD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEjD,MAAM,WAAW,gCAAgC;IAC7C,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;CACvB;AAED,eAAO,MAAM,oCAAoC,aACnC,SAAS,UACX,gCAAgC,KACzC,gCAQF,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,SAAS,CAAC,gCAAgC,CAYjF,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { BooleanNumber, IMutation } from '@univerjs/core';
|
|
2
|
+
import type { IAccessor } from '@wendellhu/redi';
|
|
3
|
+
export interface ISetWorksheetRightToLeftMutationParams {
|
|
4
|
+
rightToLeft: BooleanNumber;
|
|
5
|
+
workbookId: string;
|
|
6
|
+
worksheetId: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const SetWorksheetRightToLeftUndoMutationFactory: (accessor: IAccessor, params: ISetWorksheetRightToLeftMutationParams) => ISetWorksheetRightToLeftMutationParams;
|
|
9
|
+
export declare const SetWorksheetRightToLeftMutation: IMutation<ISetWorksheetRightToLeftMutationParams>;
|
|
10
|
+
//# sourceMappingURL=set-worksheet-right-to-left.mutation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"set-worksheet-right-to-left.mutation.d.ts","sourceRoot":"","sources":["../../../../src/commands/mutations/set-worksheet-right-to-left.mutation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE/D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEjD,MAAM,WAAW,sCAAsC;IACnD,WAAW,EAAE,aAAa,CAAC;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;CACvB;AAED,eAAO,MAAM,0CAA0C,aACzC,SAAS,UACX,sCAAsC,KAC/C,sCAWF,CAAC;AAEF,eAAO,MAAM,+BAA+B,EAAE,SAAS,CAAC,sCAAsC,CAc7F,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { IMutation, IRange, Nullable } from '@univerjs/core';
|
|
2
|
+
import { ObjectArray } from '@univerjs/core';
|
|
3
|
+
import type { IRowAutoHeightInfo } from '@univerjs/engine-render';
|
|
4
|
+
import type { IAccessor } from '@wendellhu/redi';
|
|
5
|
+
export interface ISetWorksheetRowHeightMutationParams {
|
|
6
|
+
workbookId: string;
|
|
7
|
+
worksheetId: string;
|
|
8
|
+
ranges: IRange[];
|
|
9
|
+
rowHeight: number | ObjectArray<number>;
|
|
10
|
+
}
|
|
11
|
+
export interface ISetWorksheetRowIsAutoHeightMutationParams {
|
|
12
|
+
workbookId: string;
|
|
13
|
+
worksheetId: string;
|
|
14
|
+
ranges: IRange[];
|
|
15
|
+
autoHeightInfo: boolean | ObjectArray<Nullable<boolean>>;
|
|
16
|
+
}
|
|
17
|
+
export interface ISetWorksheetRowAutoHeightMutationParams {
|
|
18
|
+
workbookId: string;
|
|
19
|
+
worksheetId: string;
|
|
20
|
+
rowsAutoHeightInfo: IRowAutoHeightInfo[];
|
|
21
|
+
}
|
|
22
|
+
export declare const SetWorksheetRowHeightMutationFactory: (accessor: IAccessor, params: ISetWorksheetRowHeightMutationParams) => ISetWorksheetRowHeightMutationParams;
|
|
23
|
+
export declare const SetWorksheetRowIsAutoHeightMutationFactory: (accessor: IAccessor, params: ISetWorksheetRowIsAutoHeightMutationParams) => ISetWorksheetRowIsAutoHeightMutationParams;
|
|
24
|
+
export declare const SetWorksheetRowAutoHeightMutationFactory: (accessor: IAccessor, params: ISetWorksheetRowAutoHeightMutationParams) => ISetWorksheetRowAutoHeightMutationParams;
|
|
25
|
+
export declare const SetWorksheetRowHeightMutation: IMutation<ISetWorksheetRowHeightMutationParams>;
|
|
26
|
+
export declare const SetWorksheetRowIsAutoHeightMutation: IMutation<ISetWorksheetRowIsAutoHeightMutationParams>;
|
|
27
|
+
export declare const SetWorksheetRowAutoHeightMutation: IMutation<ISetWorksheetRowAutoHeightMutationParams>;
|
|
28
|
+
//# sourceMappingURL=set-worksheet-row-height.mutation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"set-worksheet-row-height.mutation.d.ts","sourceRoot":"","sources":["../../../../src/commands/mutations/set-worksheet-row-height.mutation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAClE,OAAO,EAAuC,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAClF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAIjD,MAAM,WAAW,oCAAoC;IACjD,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,SAAS,EAAE,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,CAAC;CAC3C;AAED,MAAM,WAAW,0CAA0C;IACvD,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,cAAc,EAAE,OAAO,GAAG,WAAW,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC;CAC5D;AAED,MAAM,WAAW,wCAAwC;IACrD,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,kBAAkB,EAAE,kBAAkB,EAAE,CAAC;CAC5C;AAED,eAAO,MAAM,oCAAoC,aACnC,SAAS,UACX,oCAAoC,KAC7C,oCA0BF,CAAC;AAEF,eAAO,MAAM,0CAA0C,aACzC,SAAS,UACX,0CAA0C,KACnD,0CAwBF,CAAC;AAEF,eAAO,MAAM,wCAAwC,aACvC,SAAS,UACX,wCAAwC,KACjD,wCAwBF,CAAC;AAEF,eAAO,MAAM,6BAA6B,EAAE,SAAS,CAAC,oCAAoC,CAgCzF,CAAC;AAEF,eAAO,MAAM,mCAAmC,EAAE,SAAS,CAAC,0CAA0C,CA8BrG,CAAC;AAEF,eAAO,MAAM,iCAAiC,EAAE,SAAS,CAAC,wCAAwC,CAsBjG,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { IOperation } from '@univerjs/core';
|
|
2
|
+
import type { ISelectionWithStyle } from '../../basics/selection';
|
|
3
|
+
export interface ISetSelectionsOperationParams {
|
|
4
|
+
workbookId: string;
|
|
5
|
+
worksheetId: string;
|
|
6
|
+
pluginName: string;
|
|
7
|
+
selections: ISelectionWithStyle[];
|
|
8
|
+
}
|
|
9
|
+
export declare const SetSelectionsOperation: IOperation<ISetSelectionsOperationParams>;
|
|
10
|
+
//# sourceMappingURL=selection.operation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"selection.operation.d.ts","sourceRoot":"","sources":["../../../../src/commands/operations/selection.operation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAGjD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAGlE,MAAM,WAAW,6BAA6B;IAC1C,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,mBAAmB,EAAE,CAAC;CACrC;AACD,eAAO,MAAM,sBAAsB,EAAE,UAAU,CAAC,6BAA6B,CAmB5E,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interface.d.ts","sourceRoot":"","sources":["../../../../src/commands/utils/interface.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,yBAAyB;IACtC,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;CACvB"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { IWorkbookData } from '@univerjs/core';
|
|
2
|
+
import { Univer } from '@univerjs/core';
|
|
3
|
+
import type { Dependency } from '@wendellhu/redi';
|
|
4
|
+
export declare function createTestBase(workbookConfig?: IWorkbookData, dependencies?: Dependency[]): {
|
|
5
|
+
univer: Univer;
|
|
6
|
+
get: {
|
|
7
|
+
<T>(id: import("@wendellhu/redi").DependencyIdentifier<T>, lookUp?: import("@wendellhu/redi").LookUp | undefined): T;
|
|
8
|
+
<T_1>(id: import("@wendellhu/redi").DependencyIdentifier<T_1>, quantity: import("@wendellhu/redi").Quantity.MANY, lookUp?: import("@wendellhu/redi").LookUp | undefined): T_1[];
|
|
9
|
+
<T_2>(id: import("@wendellhu/redi").DependencyIdentifier<T_2>, quantity: import("@wendellhu/redi").Quantity.OPTIONAL, lookUp?: import("@wendellhu/redi").LookUp | undefined): T_2 | null;
|
|
10
|
+
<T_3>(id: import("@wendellhu/redi").DependencyIdentifier<T_3>, quantity: import("@wendellhu/redi").Quantity.REQUIRED, lookUp?: import("@wendellhu/redi").LookUp | undefined): T_3;
|
|
11
|
+
<T_4>(id: import("@wendellhu/redi").DependencyIdentifier<T_4>, quantity?: import("@wendellhu/redi").Quantity | undefined, lookUp?: import("@wendellhu/redi").LookUp | undefined): T_4 | T_4[] | null;
|
|
12
|
+
<T_5>(id: import("@wendellhu/redi").DependencyIdentifier<T_5>, quantityOrLookup?: import("@wendellhu/redi").Quantity | import("@wendellhu/redi").LookUp | undefined, lookUp?: import("@wendellhu/redi").LookUp | undefined): T_5 | T_5[] | null;
|
|
13
|
+
};
|
|
14
|
+
sheet: import("@univerjs/core").Workbook;
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=util.d.ts.map
|