@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,19 @@
|
|
|
1
|
+
import type { IRange } from '@univerjs/core';
|
|
2
|
+
import type { IDeleteOperator, IDeleteRangeMoveLeftCommand, IDeleteRangeMoveUpCommand, IHorizontalMoveOperator, IInsertColCommand, IInsertRangeMoveDownCommand, IInsertRangeMoveRightCommand, IInsertRowCommand, IMoveRangeCommand, IOperator, IRemoveRowColCommand, IVerticalMoveOperator } from './type';
|
|
3
|
+
export declare const handleMoveRange: (param: IMoveRangeCommand, targetRange: IRange) => IOperator[];
|
|
4
|
+
/**
|
|
5
|
+
* see the doc 【ref-range-remove-col.tldr】
|
|
6
|
+
*/
|
|
7
|
+
export declare const handleIRemoveCol: (param: IRemoveRowColCommand, targetRange: IRange) => IOperator[];
|
|
8
|
+
/**
|
|
9
|
+
* see the doc 【ref-range-remove-row.tldr】
|
|
10
|
+
*/
|
|
11
|
+
export declare const handleIRemoveRow: (param: IRemoveRowColCommand, targetRange: IRange) => IOperator[];
|
|
12
|
+
export declare const handleInsertRow: (param: IInsertRowCommand, targetRange: IRange) => IDeleteOperator[] | IVerticalMoveOperator[];
|
|
13
|
+
export declare const handleInsertCol: (param: IInsertColCommand, targetRange: IRange) => IDeleteOperator[] | IHorizontalMoveOperator[];
|
|
14
|
+
export declare const handleInsertRangeMoveDown: (param: IInsertRangeMoveDownCommand, targetRange: IRange) => IDeleteOperator[] | IVerticalMoveOperator[];
|
|
15
|
+
export declare const handleInsertRangeMoveRight: (param: IInsertRangeMoveRightCommand, targetRange: IRange) => IDeleteOperator[] | IHorizontalMoveOperator[];
|
|
16
|
+
export declare const handleDeleteRangeMoveLeft: (param: IDeleteRangeMoveLeftCommand, targetRange: IRange) => IDeleteOperator[] | IHorizontalMoveOperator[];
|
|
17
|
+
export declare const handleDeleteRangeMoveUp: (param: IDeleteRangeMoveUpCommand, targetRange: IRange) => IDeleteOperator[] | IVerticalMoveOperator[];
|
|
18
|
+
export declare const runRefRangeMutations: (operators: IOperator[], range: IRange) => IRange | null;
|
|
19
|
+
//# sourceMappingURL=util.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../../src/services/ref-range/util.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAY,MAAM,gBAAgB,CAAC;AAGvD,OAAO,KAAK,EACR,eAAe,EACf,2BAA2B,EAC3B,yBAAyB,EACzB,uBAAuB,EACvB,iBAAiB,EACjB,2BAA2B,EAC3B,4BAA4B,EAC5B,iBAAiB,EACjB,iBAAiB,EACjB,SAAS,EACT,oBAAoB,EACpB,qBAAqB,EACxB,MAAM,QAAQ,CAAC;AAIhB,eAAO,MAAM,eAAe,UAAW,iBAAiB,eAAe,MAAM,gBA4B5E,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gBAAgB,UAAW,oBAAoB,eAAe,MAAM,gBAiDhF,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,gBAAgB,UAAW,oBAAoB,eAAe,MAAM,gBAiDhF,CAAC;AAEF,eAAO,MAAM,eAAe,UAAW,iBAAiB,eAAe,MAAM,gDA+B5E,CAAC;AAEF,eAAO,MAAM,eAAe,UAAW,iBAAiB,eAAe,MAAM,kDA8B5E,CAAC;AACF,eAAO,MAAM,yBAAyB,UAAW,2BAA2B,eAAe,MAAM,gDA2BhG,CAAC;AAEF,eAAO,MAAM,0BAA0B,UAAW,4BAA4B,eAAe,MAAM,kDAuBlG,CAAC;AAEF,eAAO,MAAM,yBAAyB,UAAW,2BAA2B,eAAe,MAAM,kDAwBhG,CAAC;AAEF,eAAO,MAAM,uBAAuB,UAAW,yBAAyB,eAAe,MAAM,gDAwB5F,CAAC;AAEF,eAAO,MAAM,oBAAoB,cAAe,SAAS,EAAE,SAAS,MAAM,kBAoCzE,CAAC"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import type { IRange, ISelectionCell, Nullable } from '@univerjs/core';
|
|
2
|
+
import type { IDisposable } from '@wendellhu/redi';
|
|
3
|
+
import type { ISelectionStyle, ISelectionWithStyle } from '../basics/selection';
|
|
4
|
+
export declare const NORMAL_SELECTION_PLUGIN_NAME = "normalSelectionPluginName";
|
|
5
|
+
export interface ISelectionManagerSearchParam {
|
|
6
|
+
pluginName: string;
|
|
7
|
+
unitId: string;
|
|
8
|
+
sheetId: string;
|
|
9
|
+
}
|
|
10
|
+
export interface ISelectionManagerInsertParam extends ISelectionManagerSearchParam {
|
|
11
|
+
selectionDatas: ISelectionWithStyle[];
|
|
12
|
+
}
|
|
13
|
+
export type ISelectionInfo = Map<string, Map<string, Map<string, ISelectionWithStyle[]>>>;
|
|
14
|
+
/**
|
|
15
|
+
* This service is responsible for managing the selection data.
|
|
16
|
+
*
|
|
17
|
+
* You can generally modify its data through SetSelectionsOperation.
|
|
18
|
+
*
|
|
19
|
+
* In the same app and sub-table, there will be different functional selection areas,
|
|
20
|
+
* such as charts, formulas, conditional formats, etc.,
|
|
21
|
+
* which are distinguished by the pluginName.
|
|
22
|
+
*
|
|
23
|
+
* The selection data drawn by the user through the SelectionRenderService will be saved to this service.
|
|
24
|
+
*
|
|
25
|
+
* Data changes within the service will also notify the SelectionController to redraw the selection area.
|
|
26
|
+
*
|
|
27
|
+
* Not only will switching sub-tables trigger a redraw, but also changing row and column widths,
|
|
28
|
+
* hiding rows and columns, automatic row height, dragging rows and columns, deleting rows and columns,
|
|
29
|
+
* and so on, will cause the size of the selection area to change.
|
|
30
|
+
*/
|
|
31
|
+
export declare class SelectionManagerService implements IDisposable {
|
|
32
|
+
private readonly _selectionInfo;
|
|
33
|
+
private _currentSelection;
|
|
34
|
+
private readonly _selectionInfo$;
|
|
35
|
+
private readonly _copySelectionInfo$;
|
|
36
|
+
readonly selectionInfo$: import("rxjs").Observable<Nullable<ISelectionWithStyle[]>>;
|
|
37
|
+
private _dirty;
|
|
38
|
+
getCurrent(): Nullable<ISelectionManagerSearchParam>;
|
|
39
|
+
getLastByPlugin(pluginName: string): Readonly<Nullable<ISelectionWithStyle>>;
|
|
40
|
+
changePlugin(pluginName: string): void;
|
|
41
|
+
changePluginNoRefresh(pluginName: string): void;
|
|
42
|
+
reset(): void;
|
|
43
|
+
resetPlugin(): void;
|
|
44
|
+
dispose(): void;
|
|
45
|
+
makeDirty(dirty?: boolean): void;
|
|
46
|
+
refreshSelection(): void;
|
|
47
|
+
setCurrentSelection(param: ISelectionManagerSearchParam): void;
|
|
48
|
+
setCurrentSelectionNotRefresh(param: ISelectionManagerSearchParam): void;
|
|
49
|
+
getSelectionInfo(): Readonly<ISelectionInfo>;
|
|
50
|
+
getSelectionDatasByParam(param: Nullable<ISelectionManagerSearchParam>): Readonly<Nullable<ISelectionWithStyle[]>>;
|
|
51
|
+
getSelections(): Readonly<Nullable<ISelectionWithStyle[]>>;
|
|
52
|
+
getSelectionRanges(): Nullable<IRange[]>;
|
|
53
|
+
getFirst(): Readonly<Nullable<ISelectionWithStyle>>;
|
|
54
|
+
getLast(): Readonly<Nullable<ISelectionWithStyle & {
|
|
55
|
+
primary: ISelectionCell;
|
|
56
|
+
}>>;
|
|
57
|
+
addNoRefresh(selectionDatas: ISelectionWithStyle[]): void;
|
|
58
|
+
add(selectionDatas: ISelectionWithStyle[]): void;
|
|
59
|
+
replace(selectionDatas: ISelectionWithStyle[]): void;
|
|
60
|
+
replaceWithNoRefresh(selectionDatas: ISelectionWithStyle[]): void;
|
|
61
|
+
clear(): void;
|
|
62
|
+
remove(index: number): void;
|
|
63
|
+
createDefaultAutoFillSelection(): ISelectionStyle;
|
|
64
|
+
createCopyPasteSelection(): ISelectionStyle;
|
|
65
|
+
createDefaultSelection(): ISelectionStyle;
|
|
66
|
+
/**
|
|
67
|
+
* Determine whether multiple current selections overlap
|
|
68
|
+
*/
|
|
69
|
+
isOverlapping(): boolean;
|
|
70
|
+
private _getSelectionDatas;
|
|
71
|
+
private refresh;
|
|
72
|
+
private _getFirstByParam;
|
|
73
|
+
private _getLastByParam;
|
|
74
|
+
private _addByParam;
|
|
75
|
+
private _replaceByParam;
|
|
76
|
+
private _clearByParam;
|
|
77
|
+
private _removeByParam;
|
|
78
|
+
}
|
|
79
|
+
//# sourceMappingURL=selection-manager.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"selection-manager.service.d.ts","sourceRoot":"","sources":["../../../src/services/selection-manager.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AACvE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAGnD,OAAO,KAAK,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAEhF,eAAO,MAAM,4BAA4B,8BAA8B,CAAC;AAExE,MAAM,WAAW,4BAA4B;IACzC,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,4BAA6B,SAAQ,4BAA4B;IAC9E,cAAc,EAAE,mBAAmB,EAAE,CAAC;CACzC;AAGD,MAAM,MAAM,cAAc,GAAG,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,mBAAmB,EAAE,CAAC,CAAC,CAAC,CAAC;AAE1F;;;;;;;;;;;;;;;;GAgBG;AACH,qBAAa,uBAAwB,YAAW,WAAW;IACvD,OAAO,CAAC,QAAQ,CAAC,cAAc,CAA6B;IAE5D,OAAO,CAAC,iBAAiB,CAAgD;IAIzE,OAAO,CAAC,QAAQ,CAAC,eAAe,CAA8D;IAC9F,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAA8D;IAGlG,QAAQ,CAAC,cAAc,6DAAuC;IAE9D,OAAO,CAAC,MAAM,CAAiB;IAU/B,UAAU;IAIV,eAAe,CAAC,UAAU,EAAE,MAAM;IAOlC,YAAY,CAAC,UAAU,EAAE,MAAM;IAa/B,qBAAqB,CAAC,UAAU,EAAE,MAAM;IAWxC,KAAK;IAcL,WAAW;IASX,OAAO,IAAI,IAAI;IAKf,SAAS,CAAC,KAAK,GAAE,OAAc;IAI/B,gBAAgB;IAQhB,mBAAmB,CAAC,KAAK,EAAE,4BAA4B;IASvD,6BAA6B,CAAC,KAAK,EAAE,4BAA4B;IAIjE,gBAAgB,IAAI,QAAQ,CAAC,cAAc,CAAC;IAI5C,wBAAwB,CAAC,KAAK,EAAE,QAAQ,CAAC,4BAA4B,CAAC,GAAG,QAAQ,CAAC,QAAQ,CAAC,mBAAmB,EAAE,CAAC,CAAC;IAIlH,aAAa,IAAI,QAAQ,CAAC,QAAQ,CAAC,mBAAmB,EAAE,CAAC,CAAC;IAI1D,kBAAkB,IAAI,QAAQ,CAAC,MAAM,EAAE,CAAC;IASxC,QAAQ,IAAI,QAAQ,CAAC,QAAQ,CAAC,mBAAmB,CAAC,CAAC;IAInD,OAAO,IAAI,QAAQ,CAAC,QAAQ,CAAC,mBAAmB,GAAG;QAAE,OAAO,EAAE,cAAc,CAAA;KAAE,CAAC,CAAC;IAOhF,YAAY,CAAC,cAAc,EAAE,mBAAmB,EAAE;IAalD,GAAG,CAAC,cAAc,EAAE,mBAAmB,EAAE;IAUzC,OAAO,CAAC,cAAc,EAAE,mBAAmB,EAAE;IAW7C,oBAAoB,CAAC,cAAc,EAAE,mBAAmB,EAAE;IAU1D,KAAK,IAAI,IAAI;IAOb,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAQ3B,8BAA8B,IAAI,eAAe;IAUjD,wBAAwB,IAAI,eAAe;IAW3C,sBAAsB,IAAI,eAAe;IAUzC;;OAEG;IACH,aAAa,IAAI,OAAO;IAqBxB,OAAO,CAAC,kBAAkB;IAQ1B,OAAO,CAAC,OAAO;IAIf,OAAO,CAAC,gBAAgB;IAMxB,OAAO,CAAC,eAAe;IAMvB,OAAO,CAAC,WAAW;IA2BnB,OAAO,CAAC,eAAe;IAyBvB,OAAO,CAAC,aAAa;IAQrB,OAAO,CAAC,cAAc;CAWzB"}
|
|
@@ -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 createCoreTestBed(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=create-core-test-bed.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-core-test-bed.d.ts","sourceRoot":"","sources":["../../../../../src/services/sheet-interceptor/__tests__/create-core-test-bed.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,EAAuE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAC7G,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AA2BlD,wBAAgB,iBAAiB,CAAC,cAAc,CAAC,EAAE,aAAa,EAAE,YAAY,CAAC,EAAE,UAAU,EAAE;;;;;;;;;;;EA6C5F"}
|
package/lib/types/services/sheet-interceptor/__tests__/sheet-interceptor.service.spec.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sheet-interceptor.service.spec.d.ts","sourceRoot":"","sources":["../../../../../src/services/sheet-interceptor/__tests__/sheet-interceptor.service.spec.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ICellData, ICommandInfo } from '@univerjs/core';
|
|
2
|
+
import type { ISheetLocation } from './utils/interceptor';
|
|
3
|
+
export declare const INTERCEPTOR_POINT: {
|
|
4
|
+
CELL_CONTENT: import("@univerjs/core").IInterceptor<ICellData, ISheetLocation>;
|
|
5
|
+
PERMISSION: import("@univerjs/core").IInterceptor<boolean, ICommandInfo<object>>;
|
|
6
|
+
};
|
|
7
|
+
//# sourceMappingURL=interceptor-const.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interceptor-const.d.ts","sourceRoot":"","sources":["../../../../src/services/sheet-interceptor/interceptor-const.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAG9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAK1D,eAAO,MAAM,iBAAiB;;;CAG7B,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { ICommandInfo, IInterceptor, IUndoRedoCommandInfos } from '@univerjs/core';
|
|
2
|
+
import { Disposable, IUniverInstanceService } from '@univerjs/core';
|
|
3
|
+
import type { IDisposable } from '@wendellhu/redi';
|
|
4
|
+
export interface ICommandInterceptor {
|
|
5
|
+
priority?: number;
|
|
6
|
+
getMutations(command: ICommandInfo): IUndoRedoCommandInfos;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* This class expose methods for sheet features to inject code to sheet underlying logic.
|
|
10
|
+
*
|
|
11
|
+
* It would inject Workbook & Worksheet.
|
|
12
|
+
*/
|
|
13
|
+
export declare class SheetInterceptorService extends Disposable {
|
|
14
|
+
private readonly _currentUniverService;
|
|
15
|
+
private _interceptorsByName;
|
|
16
|
+
private _commandInterceptors;
|
|
17
|
+
private readonly _workbookDisposables;
|
|
18
|
+
private readonly _worksheetDisposables;
|
|
19
|
+
constructor(_currentUniverService: IUniverInstanceService);
|
|
20
|
+
dispose(): void;
|
|
21
|
+
interceptCommand(interceptor: ICommandInterceptor): IDisposable;
|
|
22
|
+
/**
|
|
23
|
+
* When command is executing, call this method to gether undo redo mutations from upper features.
|
|
24
|
+
* @param command
|
|
25
|
+
* @returns
|
|
26
|
+
*/
|
|
27
|
+
onCommandExecute(command: ICommandInfo): IUndoRedoCommandInfos;
|
|
28
|
+
intercept<T extends IInterceptor<any, any>>(name: T, interceptor: T): IDisposable;
|
|
29
|
+
fetchThroughInterceptors<T, C>(name: IInterceptor<T, C>): (initValue: import("@univerjs/core/common/type-utils.js").Nullable<T>, initContext: C) => import("@univerjs/core/common/type-utils.js").Nullable<T>;
|
|
30
|
+
private _interceptWorkbook;
|
|
31
|
+
private _disposeWorkbookInterceptor;
|
|
32
|
+
private _disposeSheetInterceptor;
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=sheet-interceptor.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sheet-interceptor.service.d.ts","sourceRoot":"","sources":["../../../../src/services/sheet-interceptor/sheet-interceptor.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAER,YAAY,EACZ,YAAY,EACZ,qBAAqB,EAIxB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAEH,UAAU,EAEV,sBAAsB,EAKzB,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAInD,MAAM,WAAW,mBAAmB;IAChC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,OAAO,EAAE,YAAY,GAAG,qBAAqB,CAAC;CAC9D;AAED;;;;GAIG;AACH,qBACa,uBAAwB,SAAQ,UAAU;IAOf,OAAO,CAAC,QAAQ,CAAC,qBAAqB;IAN1E,OAAO,CAAC,mBAAmB,CAAiE;IAC5F,OAAO,CAAC,oBAAoB,CAA6B;IAEzD,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAAkC;IACvE,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAAkC;gBAEnB,qBAAqB,EAAE,sBAAsB;IAuCzF,OAAO,IAAI,IAAI;IAQxB,gBAAgB,CAAC,WAAW,EAAE,mBAAmB,GAAG,WAAW;IAW/D;;;;OAIG;IACH,gBAAgB,CAAC,OAAO,EAAE,YAAY,GAAG,qBAAqB;IAS9D,SAAS,CAAC,CAAC,SAAS,YAAY,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,WAAW,EAAE,CAAC;IAgBnE,wBAAwB,CAAC,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,YAAY,CAAC,CAAC,EAAE,CAAC,CAAC;IAMvD,OAAO,CAAC,kBAAkB;IA+C1B,OAAO,CAAC,2BAA2B;IAUnC,OAAO,CAAC,wBAAwB;CASnC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Workbook, Worksheet } from '@univerjs/core';
|
|
2
|
+
export interface ISheetLocation {
|
|
3
|
+
workbook: Workbook;
|
|
4
|
+
worksheet: Worksheet;
|
|
5
|
+
workbookId: string;
|
|
6
|
+
worksheetId: string;
|
|
7
|
+
row: number;
|
|
8
|
+
col: number;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=interceptor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interceptor.d.ts","sourceRoot":"","sources":["../../../../../src/services/sheet-interceptor/utils/interceptor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE1D,MAAM,WAAW,cAAc;IAC3B,QAAQ,EAAE,QAAQ,CAAC;IACnB,SAAS,EAAE,SAAS,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;CACf"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ICommandService, LocaleService, Plugin, PluginType } from '@univerjs/core';
|
|
2
|
+
import { Injector } from '@wendellhu/redi';
|
|
3
|
+
/**
|
|
4
|
+
* The main sheet base, construct the sheet container and layout, mount the rendering engine
|
|
5
|
+
*/
|
|
6
|
+
export declare class SheetsPlugin extends Plugin {
|
|
7
|
+
private readonly _commandService;
|
|
8
|
+
private readonly _localeService;
|
|
9
|
+
readonly _injector: Injector;
|
|
10
|
+
static type: PluginType;
|
|
11
|
+
constructor(config: undefined, _commandService: ICommandService, _localeService: LocaleService, _injector: Injector);
|
|
12
|
+
onRendered(): void;
|
|
13
|
+
private _initializeDependencies;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=sheets-plugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sheets-plugin.d.ts","sourceRoot":"","sources":["../../src/sheets-plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAEpF,OAAO,EAAU,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAenD;;GAEG;AACH,qBAAa,YAAa,SAAQ,MAAM;IAKf,OAAO,CAAC,QAAQ,CAAC,eAAe;IAC1B,OAAO,CAAC,QAAQ,CAAC,cAAc;aAClB,SAAS,EAAE,QAAQ;IAN3D,OAAgB,IAAI,aAAoB;gBAGpC,MAAM,EAAE,SAAS,EACiB,eAAe,EAAE,eAAe,EAC1B,cAAc,EAAE,aAAa,EACjC,SAAS,EAAE,QAAQ;IAOlD,UAAU,IAAI,IAAI;IAM3B,OAAO,CAAC,uBAAuB;CAmBlC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@univerjs/sheets",
|
|
3
|
+
"version": "0.1.0-alpha.1",
|
|
4
|
+
"description": "UniverSheet normal base-sheets",
|
|
5
|
+
"keywords": [],
|
|
6
|
+
"author": "DreamNum <developer@univer.ai>",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"main": "./lib/cjs/index.js",
|
|
9
|
+
"module": "./lib/esm/index.js",
|
|
10
|
+
"types": "./lib/types/index.d.ts",
|
|
11
|
+
"publishConfig": {
|
|
12
|
+
"access": "public"
|
|
13
|
+
},
|
|
14
|
+
"exports": {
|
|
15
|
+
".": {
|
|
16
|
+
"import": "./lib/esm/index.js",
|
|
17
|
+
"require": "./lib/cjs/index.js",
|
|
18
|
+
"types": "./lib/types/index.d.ts"
|
|
19
|
+
},
|
|
20
|
+
"./*": {
|
|
21
|
+
"import": "./lib/esm/*",
|
|
22
|
+
"require": "./lib/cjs/*",
|
|
23
|
+
"types": "./lib/types/index.d.ts"
|
|
24
|
+
},
|
|
25
|
+
"./locale/*": {
|
|
26
|
+
"import": "./lib/esm/locale/*.js",
|
|
27
|
+
"require": "./lib/cjs/locale/*.js",
|
|
28
|
+
"types": "./lib/types/index.d.ts"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"directories": {
|
|
32
|
+
"lib": "lib"
|
|
33
|
+
},
|
|
34
|
+
"files": [
|
|
35
|
+
"lib"
|
|
36
|
+
],
|
|
37
|
+
"private": false,
|
|
38
|
+
"dependencies": {
|
|
39
|
+
"@ctrl/tinycolor": "^4.0.2",
|
|
40
|
+
"@wendellhu/redi": "^0.12.11",
|
|
41
|
+
"rxjs": "^7.8.1",
|
|
42
|
+
"@univerjs/engine-render": "0.1.0-alpha.1",
|
|
43
|
+
"@univerjs/core": "0.1.0-alpha.1"
|
|
44
|
+
},
|
|
45
|
+
"devDependencies": {
|
|
46
|
+
"@vitest/coverage-istanbul": "^0.34.6",
|
|
47
|
+
"esbuild": "^0.19.8",
|
|
48
|
+
"happy-dom": "^12.10.3",
|
|
49
|
+
"less": "^4.2.0",
|
|
50
|
+
"ts-node": "^10.9.1",
|
|
51
|
+
"typescript": "^5.3.2",
|
|
52
|
+
"vitest": "^0.34.6"
|
|
53
|
+
},
|
|
54
|
+
"scripts": {
|
|
55
|
+
"test": "vitest run",
|
|
56
|
+
"test:watch": "vitest",
|
|
57
|
+
"coverage": "vitest run --coverage",
|
|
58
|
+
"esbuild": "node ./esbuild.config.mjs && tsc -p tsconfig.esbuild.json"
|
|
59
|
+
}
|
|
60
|
+
}
|