@univerjs/sheets 0.1.0-alpha.1 → 0.1.0-alpha.3
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.txt +178 -0
- package/lib/cjs/index.js +1 -11383
- package/lib/es/index.js +5503 -0
- package/lib/types/basics/__tests__/rangeMerge.spec.d.ts +16 -0
- package/lib/types/basics/const/command-listener-const.d.ts +15 -1
- package/lib/types/basics/const/default-spreadsheet-plugin-data.d.ts +17 -3
- package/lib/types/basics/const/index.d.ts +15 -1
- package/lib/types/basics/index.d.ts +16 -1
- package/lib/types/basics/interfaces/i-ruler-manager.d.ts +15 -1
- package/lib/types/basics/interfaces/index.d.ts +15 -1
- package/lib/types/basics/interfaces/mutation-interface.d.ts +44 -30
- package/lib/types/basics/interfaces/selection-config.d.ts +16 -2
- package/lib/types/basics/interfaces/spreadsheet-config.d.ts +16 -2
- package/lib/types/basics/rangeMerge.d.ts +24 -0
- package/lib/types/basics/selection.d.ts +15 -1
- package/lib/types/basics/sheet-header.d.ts +15 -1
- package/lib/types/basics/utils.d.ts +17 -0
- package/lib/types/commands/commands/__tests__/clear-selection.command.spec.d.ts +15 -1
- package/lib/types/commands/commands/__tests__/copy-worksheet.command.spec.d.ts +15 -1
- package/lib/types/commands/commands/__tests__/create-command-test-bed.d.ts +15 -1
- package/lib/types/commands/commands/__tests__/delete-range.command.spec.d.ts +15 -1
- package/lib/types/commands/commands/__tests__/insert-range.command.spec.d.ts +15 -1
- package/lib/types/commands/commands/__tests__/insert-remove-rows-cols.command.spec.d.ts +15 -1
- package/lib/types/commands/commands/__tests__/move-range-commands.spec.d.ts +15 -1
- package/lib/types/commands/commands/__tests__/move-rows-cols.command.spec.d.ts +15 -1
- package/lib/types/commands/commands/__tests__/remove-sheet.command.spec.d.ts +15 -1
- package/lib/types/commands/commands/__tests__/set-border.command.spec.d.ts +15 -1
- package/lib/types/commands/commands/__tests__/set-col-width.command.spec.d.ts +15 -1
- package/lib/types/commands/commands/__tests__/set-frozen.command.spec.d.ts +15 -1
- package/lib/types/commands/commands/__tests__/set-range-values.command.spec.d.ts +15 -1
- package/lib/types/commands/commands/__tests__/set-row-col-visible.command.spec.d.ts +15 -1
- package/lib/types/commands/commands/__tests__/set-row-height.command.spec.d.ts +15 -1
- package/lib/types/commands/commands/__tests__/set-style.command.spec.d.ts +15 -1
- package/lib/types/commands/commands/__tests__/set-tab-color.command.spec.d.ts +15 -1
- package/lib/types/commands/commands/__tests__/set-worksheet-hide.command.spec.d.ts +15 -1
- package/lib/types/commands/commands/__tests__/set-worksheet-name.command.spec.d.ts +15 -1
- package/lib/types/commands/commands/__tests__/set-worksheet-order.command.spec.d.ts +15 -1
- package/lib/types/commands/commands/__tests__/set-worksheet-show.command.spec.d.ts +15 -1
- package/lib/types/commands/commands/add-worksheet-merge.command.d.ts +17 -10
- package/lib/types/commands/commands/clear-selection-all.command.d.ts +15 -1
- package/lib/types/commands/commands/clear-selection-content.command.d.ts +15 -1
- package/lib/types/commands/commands/clear-selection-format.command.d.ts +17 -3
- package/lib/types/commands/commands/copy-to-worksheet.command.d.ts +18 -4
- package/lib/types/commands/commands/copy-worksheet.command.d.ts +17 -3
- package/lib/types/commands/commands/delete-range-move-left.command.d.ts +16 -2
- package/lib/types/commands/commands/delete-range-move-up.command.d.ts +16 -2
- package/lib/types/commands/commands/insert-range-move-down.command.d.ts +16 -2
- package/lib/types/commands/commands/insert-range-move-right.command.d.ts +16 -2
- package/lib/types/commands/commands/insert-row-col.command.d.ts +22 -6
- package/lib/types/commands/commands/insert-sheet.command.d.ts +16 -2
- package/lib/types/commands/commands/move-range.command.d.ts +15 -1
- package/lib/types/commands/commands/move-rows-cols.command.d.ts +15 -1
- package/lib/types/commands/commands/remove-row-col.command.d.ts +16 -2
- package/lib/types/commands/commands/remove-sheet.command.d.ts +17 -3
- package/lib/types/commands/commands/remove-worksheet-merge.command.d.ts +15 -1
- package/lib/types/commands/commands/set-border-command.d.ts +15 -1
- package/lib/types/commands/commands/set-col-visible.command.d.ts +17 -3
- package/lib/types/commands/commands/set-frozen-cancel.command.d.ts +15 -1
- package/lib/types/commands/commands/set-frozen.command.d.ts +15 -1
- package/lib/types/commands/commands/set-hide-gridlines.command.d.ts +17 -3
- package/lib/types/commands/commands/set-range-values.command.d.ts +20 -6
- package/lib/types/commands/commands/set-row-visible.command.d.ts +17 -3
- package/lib/types/commands/commands/set-style.command.d.ts +17 -3
- package/lib/types/commands/commands/set-tab-color.command.d.ts +15 -1
- package/lib/types/commands/commands/set-worksheet-activate.command.d.ts +17 -3
- package/lib/types/commands/commands/set-worksheet-col-width.command.d.ts +15 -1
- package/lib/types/commands/commands/set-worksheet-hide.command.d.ts +16 -2
- package/lib/types/commands/commands/set-worksheet-name.command.d.ts +18 -4
- package/lib/types/commands/commands/set-worksheet-order.command.d.ts +17 -3
- package/lib/types/commands/commands/set-worksheet-right-to-left.command.d.ts +17 -3
- package/lib/types/commands/commands/set-worksheet-row-height.command.d.ts +17 -2
- package/lib/types/commands/commands/set-worksheet-show.command.d.ts +15 -1
- package/lib/types/commands/commands/utils/merged-cell-util.d.ts +15 -1
- package/lib/types/commands/commands/utils/selection-utils.d.ts +42 -0
- package/lib/types/commands/mutations/add-worksheet-merge.mutation.d.ts +15 -1
- package/lib/types/commands/mutations/delete-range.mutation.d.ts +16 -2
- package/lib/types/commands/mutations/insert-range.mutation.d.ts +17 -3
- package/lib/types/commands/mutations/insert-row-col.mutation.d.ts +15 -1
- package/lib/types/commands/mutations/insert-sheet.mutation.d.ts +15 -1
- package/lib/types/commands/mutations/move-range.mutation.d.ts +20 -6
- package/lib/types/commands/mutations/move-rows-cols.mutation.d.ts +19 -5
- package/lib/types/commands/mutations/numfmt-mutation.d.ts +52 -0
- package/lib/types/commands/mutations/remove-row-col.mutation.d.ts +15 -1
- package/lib/types/commands/mutations/remove-sheet.mutation.d.ts +15 -1
- package/lib/types/commands/mutations/remove-worksheet-merge.mutation.d.ts +15 -1
- package/lib/types/commands/mutations/set-col-visible.mutation.d.ts +23 -9
- package/lib/types/commands/mutations/set-frozen.mutation.d.ts +17 -3
- package/lib/types/commands/mutations/set-hide-gridlines.mutatiom.d.ts +17 -3
- package/lib/types/commands/mutations/set-range-values.mutation.d.ts +19 -9
- package/lib/types/commands/mutations/set-row-visible.mutation.d.ts +23 -9
- package/lib/types/commands/mutations/set-tab-color.mutation.d.ts +17 -3
- package/lib/types/commands/mutations/set-worksheet-col-width.mutation.d.ts +19 -6
- package/lib/types/commands/mutations/set-worksheet-config.mutation.d.ts +17 -3
- package/lib/types/commands/mutations/set-worksheet-hide.mutation.d.ts +17 -3
- package/lib/types/commands/mutations/set-worksheet-name.mutation.d.ts +17 -3
- package/lib/types/commands/mutations/set-worksheet-order.mutation.d.ts +17 -3
- package/lib/types/commands/mutations/set-worksheet-right-to-left.mutation.d.ts +17 -3
- package/lib/types/commands/mutations/set-worksheet-row-height.mutation.d.ts +24 -11
- package/lib/types/commands/operations/selection.operation.d.ts +19 -3
- package/lib/types/commands/operations/set-worksheet-active.operation.d.ts +21 -0
- package/lib/types/commands/utils/interface.d.ts +17 -3
- package/lib/types/controllers/__tests__/util.d.ts +15 -1
- package/lib/types/controllers/basic-worksheet.controller.d.ts +15 -1
- package/lib/types/controllers/calculate-result-apply.controller.d.ts +22 -0
- package/lib/types/controllers/config/config.d.ts +15 -1
- package/lib/types/controllers/feature-calculation.controller.d.ts +25 -0
- package/lib/types/controllers/merge-cell.controller.d.ts +24 -2
- package/lib/types/index.d.ts +29 -14
- package/lib/types/locale/en-US.d.ts +15 -1
- package/lib/types/locale/index.d.ts +15 -1
- package/lib/types/locale/zh-CN.d.ts +15 -1
- package/lib/types/services/__tests__/numfmt.service.test.d.ts +16 -0
- package/lib/types/services/__tests__/ref-range.setvice.spec.d.ts +15 -1
- package/lib/types/services/__tests__/sheet-permission.spec.d.ts +15 -1
- package/lib/types/services/__tests__/util.d.ts +15 -1
- package/lib/types/services/border-style-manager.service.d.ts +15 -1
- package/lib/types/services/numfmt/numfmt.service.d.ts +23 -9
- package/lib/types/services/numfmt/type.d.ts +25 -11
- package/lib/types/services/permission/index.d.ts +15 -1
- package/lib/types/services/permission/permission-point.d.ts +18 -4
- package/lib/types/services/permission/sheet-permission.service.d.ts +18 -4
- package/lib/types/services/ref-range/__tests__/util.d.ts +15 -1
- package/lib/types/services/ref-range/__tests__/util.spec.d.ts +15 -1
- package/lib/types/services/ref-range/ref-range.service.d.ts +25 -28
- package/lib/types/services/ref-range/type.d.ts +15 -1
- package/lib/types/services/ref-range/util.d.ts +15 -1
- package/lib/types/services/selection-manager.service.d.ts +34 -8
- package/lib/types/services/sheet-interceptor/__tests__/create-core-test-bed.d.ts +15 -1
- package/lib/types/services/sheet-interceptor/__tests__/sheet-interceptor.service.spec.d.ts +15 -1
- package/lib/types/services/sheet-interceptor/interceptor-const.d.ts +17 -3
- package/lib/types/services/sheet-interceptor/sheet-interceptor.service.d.ts +15 -1
- package/lib/types/services/sheet-interceptor/utils/interceptor.d.ts +17 -3
- package/lib/types/sheets-plugin.d.ts +21 -3
- package/lib/umd/index.js +1 -0
- package/package.json +24 -23
- package/LICENSE +0 -21
- package/lib/cjs/locale/en-US.js +0 -26
- package/lib/cjs/locale/zh-CN.js +0 -26
- package/lib/esm/index.js +0 -10934
- package/lib/esm/locale/en-US.js +0 -5
- package/lib/esm/locale/zh-CN.js +0 -5
- package/lib/types/basics/const/command-listener-const.d.ts.map +0 -1
- package/lib/types/basics/const/default-spreadsheet-plugin-data.d.ts.map +0 -1
- package/lib/types/basics/const/index.d.ts.map +0 -1
- package/lib/types/basics/get-apply-data.d.ts +0 -1
- package/lib/types/basics/get-apply-data.d.ts.map +0 -1
- package/lib/types/basics/index.d.ts.map +0 -1
- package/lib/types/basics/interfaces/i-ruler-manager.d.ts.map +0 -1
- package/lib/types/basics/interfaces/index.d.ts.map +0 -1
- package/lib/types/basics/interfaces/mutation-interface.d.ts.map +0 -1
- package/lib/types/basics/interfaces/selection-config.d.ts.map +0 -1
- package/lib/types/basics/interfaces/spreadsheet-config.d.ts.map +0 -1
- package/lib/types/basics/selection.d.ts.map +0 -1
- package/lib/types/basics/sheet-header.d.ts.map +0 -1
- package/lib/types/commands/commands/__tests__/add-worksheet-merge.command.spec.d.ts +0 -2
- package/lib/types/commands/commands/__tests__/add-worksheet-merge.command.spec.d.ts.map +0 -1
- package/lib/types/commands/commands/__tests__/clear-selection.command.spec.d.ts.map +0 -1
- package/lib/types/commands/commands/__tests__/copy-worksheet.command.spec.d.ts.map +0 -1
- package/lib/types/commands/commands/__tests__/create-command-test-bed.d.ts.map +0 -1
- package/lib/types/commands/commands/__tests__/delete-range.command.spec.d.ts.map +0 -1
- package/lib/types/commands/commands/__tests__/insert-range.command.spec.d.ts.map +0 -1
- package/lib/types/commands/commands/__tests__/insert-remove-rows-cols.command.spec.d.ts.map +0 -1
- package/lib/types/commands/commands/__tests__/move-range-commands.spec.d.ts.map +0 -1
- package/lib/types/commands/commands/__tests__/move-rows-cols.command.spec.d.ts.map +0 -1
- package/lib/types/commands/commands/__tests__/remove-sheet.command.spec.d.ts.map +0 -1
- package/lib/types/commands/commands/__tests__/set-border.command.spec.d.ts.map +0 -1
- package/lib/types/commands/commands/__tests__/set-col-width.command.spec.d.ts.map +0 -1
- package/lib/types/commands/commands/__tests__/set-frozen.command.spec.d.ts.map +0 -1
- package/lib/types/commands/commands/__tests__/set-range-values.command.spec.d.ts.map +0 -1
- package/lib/types/commands/commands/__tests__/set-row-col-visible.command.spec.d.ts.map +0 -1
- package/lib/types/commands/commands/__tests__/set-row-height.command.spec.d.ts.map +0 -1
- package/lib/types/commands/commands/__tests__/set-style.command.spec.d.ts.map +0 -1
- package/lib/types/commands/commands/__tests__/set-tab-color.command.spec.d.ts.map +0 -1
- package/lib/types/commands/commands/__tests__/set-worksheet-hide.command.spec.d.ts.map +0 -1
- package/lib/types/commands/commands/__tests__/set-worksheet-name.command.spec.d.ts.map +0 -1
- package/lib/types/commands/commands/__tests__/set-worksheet-order.command.spec.d.ts.map +0 -1
- package/lib/types/commands/commands/__tests__/set-worksheet-show.command.spec.d.ts.map +0 -1
- package/lib/types/commands/commands/add-worksheet-merge.command.d.ts.map +0 -1
- package/lib/types/commands/commands/clear-selection-all.command.d.ts.map +0 -1
- package/lib/types/commands/commands/clear-selection-content.command.d.ts.map +0 -1
- package/lib/types/commands/commands/clear-selection-format.command.d.ts.map +0 -1
- package/lib/types/commands/commands/copy-to-worksheet.command.d.ts.map +0 -1
- package/lib/types/commands/commands/copy-worksheet.command.d.ts.map +0 -1
- package/lib/types/commands/commands/delete-range-move-left.command.d.ts.map +0 -1
- package/lib/types/commands/commands/delete-range-move-up.command.d.ts.map +0 -1
- package/lib/types/commands/commands/insert-range-move-down.command.d.ts.map +0 -1
- package/lib/types/commands/commands/insert-range-move-right.command.d.ts.map +0 -1
- package/lib/types/commands/commands/insert-row-col.command.d.ts.map +0 -1
- package/lib/types/commands/commands/insert-sheet.command.d.ts.map +0 -1
- package/lib/types/commands/commands/move-range.command.d.ts.map +0 -1
- package/lib/types/commands/commands/move-rows-cols.command.d.ts.map +0 -1
- package/lib/types/commands/commands/remove-row-col.command.d.ts.map +0 -1
- package/lib/types/commands/commands/remove-sheet.command.d.ts.map +0 -1
- package/lib/types/commands/commands/remove-worksheet-merge.command.d.ts.map +0 -1
- package/lib/types/commands/commands/set-border-command.d.ts.map +0 -1
- package/lib/types/commands/commands/set-col-visible.command.d.ts.map +0 -1
- package/lib/types/commands/commands/set-frozen-cancel.command.d.ts.map +0 -1
- package/lib/types/commands/commands/set-frozen.command.d.ts.map +0 -1
- package/lib/types/commands/commands/set-hide-gridlines.command.d.ts.map +0 -1
- package/lib/types/commands/commands/set-range-values.command.d.ts.map +0 -1
- package/lib/types/commands/commands/set-row-visible.command.d.ts.map +0 -1
- package/lib/types/commands/commands/set-style.command.d.ts.map +0 -1
- package/lib/types/commands/commands/set-tab-color.command.d.ts.map +0 -1
- package/lib/types/commands/commands/set-worksheet-activate.command.d.ts.map +0 -1
- package/lib/types/commands/commands/set-worksheet-col-width.command.d.ts.map +0 -1
- package/lib/types/commands/commands/set-worksheet-hide.command.d.ts.map +0 -1
- package/lib/types/commands/commands/set-worksheet-name.command.d.ts.map +0 -1
- package/lib/types/commands/commands/set-worksheet-order.command.d.ts.map +0 -1
- package/lib/types/commands/commands/set-worksheet-right-to-left.command.d.ts.map +0 -1
- package/lib/types/commands/commands/set-worksheet-row-height.command.d.ts.map +0 -1
- package/lib/types/commands/commands/set-worksheet-show.command.d.ts.map +0 -1
- package/lib/types/commands/commands/utils/merged-cell-util.d.ts.map +0 -1
- package/lib/types/commands/commands/utils/selection-util.d.ts +0 -52
- package/lib/types/commands/commands/utils/selection-util.d.ts.map +0 -1
- package/lib/types/commands/mutations/add-worksheet-merge.mutation.d.ts.map +0 -1
- package/lib/types/commands/mutations/delete-range.mutation.d.ts.map +0 -1
- package/lib/types/commands/mutations/insert-range.mutation.d.ts.map +0 -1
- package/lib/types/commands/mutations/insert-row-col.mutation.d.ts.map +0 -1
- package/lib/types/commands/mutations/insert-sheet.mutation.d.ts.map +0 -1
- package/lib/types/commands/mutations/move-range.mutation.d.ts.map +0 -1
- package/lib/types/commands/mutations/move-rows-cols.mutation.d.ts.map +0 -1
- package/lib/types/commands/mutations/remove-row-col.mutation.d.ts.map +0 -1
- package/lib/types/commands/mutations/remove-sheet.mutation.d.ts.map +0 -1
- package/lib/types/commands/mutations/remove-worksheet-merge.mutation.d.ts.map +0 -1
- package/lib/types/commands/mutations/set-col-visible.mutation.d.ts.map +0 -1
- package/lib/types/commands/mutations/set-frozen.mutation.d.ts.map +0 -1
- package/lib/types/commands/mutations/set-hide-gridlines.mutatiom.d.ts.map +0 -1
- package/lib/types/commands/mutations/set-numfmt-mutation.d.ts +0 -16
- package/lib/types/commands/mutations/set-numfmt-mutation.d.ts.map +0 -1
- package/lib/types/commands/mutations/set-range-formatted-value.mutation.d.ts +0 -18
- package/lib/types/commands/mutations/set-range-formatted-value.mutation.d.ts.map +0 -1
- package/lib/types/commands/mutations/set-range-values.mutation.d.ts.map +0 -1
- package/lib/types/commands/mutations/set-row-visible.mutation.d.ts.map +0 -1
- package/lib/types/commands/mutations/set-tab-color.mutation.d.ts.map +0 -1
- package/lib/types/commands/mutations/set-worksheet-activate.mutation.d.ts +0 -9
- package/lib/types/commands/mutations/set-worksheet-activate.mutation.d.ts.map +0 -1
- package/lib/types/commands/mutations/set-worksheet-col-width.mutation.d.ts.map +0 -1
- package/lib/types/commands/mutations/set-worksheet-config.mutation.d.ts.map +0 -1
- package/lib/types/commands/mutations/set-worksheet-hide.mutation.d.ts.map +0 -1
- package/lib/types/commands/mutations/set-worksheet-name.mutation.d.ts.map +0 -1
- package/lib/types/commands/mutations/set-worksheet-order.mutation.d.ts.map +0 -1
- package/lib/types/commands/mutations/set-worksheet-right-to-left.mutation.d.ts.map +0 -1
- package/lib/types/commands/mutations/set-worksheet-row-height.mutation.d.ts.map +0 -1
- package/lib/types/commands/operations/selection.operation.d.ts.map +0 -1
- package/lib/types/commands/utils/interface.d.ts.map +0 -1
- package/lib/types/controllers/__tests__/util.d.ts.map +0 -1
- package/lib/types/controllers/basic-worksheet.controller.d.ts.map +0 -1
- package/lib/types/controllers/config/config.d.ts.map +0 -1
- package/lib/types/controllers/merge-cell.controller.d.ts.map +0 -1
- package/lib/types/index.d.ts.map +0 -1
- package/lib/types/locale/en-US.d.ts.map +0 -1
- package/lib/types/locale/index.d.ts.map +0 -1
- package/lib/types/locale/zh-CN.d.ts.map +0 -1
- package/lib/types/services/__tests__/ref-range.setvice.spec.d.ts.map +0 -1
- package/lib/types/services/__tests__/sheet-permission.spec.d.ts.map +0 -1
- package/lib/types/services/__tests__/util.d.ts.map +0 -1
- package/lib/types/services/border-style-manager.service.d.ts.map +0 -1
- package/lib/types/services/numfmt/numfmt.service.d.ts.map +0 -1
- package/lib/types/services/numfmt/type.d.ts.map +0 -1
- package/lib/types/services/permission/index.d.ts.map +0 -1
- package/lib/types/services/permission/permission-point.d.ts.map +0 -1
- package/lib/types/services/permission/sheet-permission.service.d.ts.map +0 -1
- package/lib/types/services/ref-range/__tests__/util.d.ts.map +0 -1
- package/lib/types/services/ref-range/__tests__/util.spec.d.ts.map +0 -1
- package/lib/types/services/ref-range/ref-range.service.d.ts.map +0 -1
- package/lib/types/services/ref-range/type.d.ts.map +0 -1
- package/lib/types/services/ref-range/util.d.ts.map +0 -1
- package/lib/types/services/selection-manager.service.d.ts.map +0 -1
- package/lib/types/services/sheet-interceptor/__tests__/create-core-test-bed.d.ts.map +0 -1
- package/lib/types/services/sheet-interceptor/__tests__/sheet-interceptor.service.spec.d.ts.map +0 -1
- package/lib/types/services/sheet-interceptor/interceptor-const.d.ts.map +0 -1
- package/lib/types/services/sheet-interceptor/sheet-interceptor.service.d.ts.map +0 -1
- package/lib/types/services/sheet-interceptor/utils/interceptor.d.ts.map +0 -1
- package/lib/types/sheets-plugin.d.ts.map +0 -1
|
@@ -1,10 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
1
16
|
import type { IOperation } from '@univerjs/core';
|
|
2
17
|
import type { ISelectionWithStyle } from '../../basics/selection';
|
|
18
|
+
import type { SelectionMoveType } from '../../services/selection-manager.service';
|
|
3
19
|
export interface ISetSelectionsOperationParams {
|
|
4
|
-
|
|
5
|
-
|
|
20
|
+
unitId: string;
|
|
21
|
+
subUnitId: string;
|
|
6
22
|
pluginName: string;
|
|
7
23
|
selections: ISelectionWithStyle[];
|
|
24
|
+
type?: SelectionMoveType;
|
|
8
25
|
}
|
|
9
26
|
export declare const SetSelectionsOperation: IOperation<ISetSelectionsOperationParams>;
|
|
10
|
-
//# sourceMappingURL=selection.operation.d.ts.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import type { IOperation } from '@univerjs/core';
|
|
17
|
+
export interface ISetWorksheetActiveOperationParams {
|
|
18
|
+
unitId: string;
|
|
19
|
+
subUnitId: string;
|
|
20
|
+
}
|
|
21
|
+
export declare const SetWorksheetActiveOperation: IOperation<ISetWorksheetActiveOperationParams>;
|
|
@@ -1,5 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
1
16
|
export interface ISheetCommandSharedParams {
|
|
2
|
-
|
|
3
|
-
|
|
17
|
+
unitId: string;
|
|
18
|
+
subUnitId: string;
|
|
4
19
|
}
|
|
5
|
-
//# sourceMappingURL=interface.d.ts.map
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
1
16
|
import type { IWorkbookData } from '@univerjs/core';
|
|
2
17
|
import { Univer } from '@univerjs/core';
|
|
3
18
|
import type { Dependency } from '@wendellhu/redi';
|
|
@@ -13,4 +28,3 @@ export declare function createTestBase(workbookConfig?: IWorkbookData, dependenc
|
|
|
13
28
|
};
|
|
14
29
|
sheet: import("@univerjs/core").Workbook;
|
|
15
30
|
};
|
|
16
|
-
//# sourceMappingURL=util.d.ts.map
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
1
16
|
import type { IStyleData } from '@univerjs/core';
|
|
2
17
|
import { Disposable, ICommandService, IConfigService } from '@univerjs/core';
|
|
3
18
|
import type { IDisposable } from '@wendellhu/redi';
|
|
@@ -13,4 +28,3 @@ export declare class BasicWorksheetController extends Disposable implements IDis
|
|
|
13
28
|
private readonly _configService;
|
|
14
29
|
constructor(_commandService: ICommandService, _configService: IConfigService);
|
|
15
30
|
}
|
|
16
|
-
//# sourceMappingURL=basic-worksheet.controller.d.ts.map
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { Disposable, ICommandService } from '@univerjs/core';
|
|
17
|
+
export declare class CalculateResultApplyController extends Disposable {
|
|
18
|
+
private readonly _commandService;
|
|
19
|
+
constructor(_commandService: ICommandService);
|
|
20
|
+
private _initialize;
|
|
21
|
+
private _commandExecutedListener;
|
|
22
|
+
}
|
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
1
16
|
export declare const MAX_CELL_PER_SHEET_KEY = "maxCellsPerSheet";
|
|
2
17
|
export declare const MAX_CELL_PER_SHEET_DEFAULT = 3000000;
|
|
3
|
-
//# sourceMappingURL=config.d.ts.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { Disposable, ICommandService, IUniverInstanceService } from '@univerjs/core';
|
|
17
|
+
import { FormulaDataModel, IFeatureCalculationManagerService } from '@univerjs/engine-formula';
|
|
18
|
+
export declare class FeatureCalculationController extends Disposable {
|
|
19
|
+
private readonly _commandService;
|
|
20
|
+
private readonly _featureCalculationManagerService;
|
|
21
|
+
private readonly _currentUniverService;
|
|
22
|
+
private readonly _formulaDataModel;
|
|
23
|
+
constructor(_commandService: ICommandService, _featureCalculationManagerService: IFeatureCalculationManagerService, _currentUniverService: IUniverInstanceService, _formulaDataModel: FormulaDataModel);
|
|
24
|
+
private _initialize;
|
|
25
|
+
}
|
|
@@ -1,8 +1,31 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import type { IRange } from '@univerjs/core';
|
|
17
|
+
import { Dimension, Disposable, ICommandService, IUniverInstanceService } from '@univerjs/core';
|
|
2
18
|
import { Injector } from '@wendellhu/redi';
|
|
3
19
|
import { RefRangeService } from '../services/ref-range/ref-range.service';
|
|
4
20
|
import { SelectionManagerService } from '../services/selection-manager.service';
|
|
5
21
|
import { SheetInterceptorService } from '../services/sheet-interceptor/sheet-interceptor.service';
|
|
22
|
+
/**
|
|
23
|
+
* calculates the selection based on the merged cell type
|
|
24
|
+
* @param {IRange[]} selection
|
|
25
|
+
* @param {Dimension} [type]
|
|
26
|
+
* @return {*}
|
|
27
|
+
*/
|
|
28
|
+
export declare function getAddMergeMutationRangeByType(selection: IRange[], type?: Dimension): IRange[];
|
|
6
29
|
export declare class MergeCellController extends Disposable {
|
|
7
30
|
private readonly _commandService;
|
|
8
31
|
private readonly _refRangeService;
|
|
@@ -24,4 +47,3 @@ export declare class MergeCellController extends Disposable {
|
|
|
24
47
|
private _handleDeleteRangeMoveLeftCommand;
|
|
25
48
|
private _handleNull;
|
|
26
49
|
}
|
|
27
|
-
//# sourceMappingURL=merge-cell.controller.d.ts.map
|
package/lib/types/index.d.ts
CHANGED
|
@@ -1,13 +1,28 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export { type IUniverSheetsConfig, UniverSheetsPlugin } from './sheets-plugin';
|
|
2
17
|
export { COMMAND_LISTENER_SKELETON_CHANGE, COMMAND_LISTENER_VALUE_CHANGE } from './basics/const/command-listener-const';
|
|
3
18
|
export { type IAddWorksheetMergeMutationParams, type IDeleteRangeMutationParams, type IInsertColMutationParams, type IInsertRangeMutationParams, type IInsertRowMutationParams, type IInsertSheetMutationParams, type IRemoveColMutationParams, type IRemoveRowsMutationParams, type IRemoveSheetMutationParams, type IRemoveWorksheetMergeMutationParams, } from './basics/interfaces/mutation-interface';
|
|
4
19
|
export { convertPrimaryWithCoordToPrimary, convertSelectionDataToRange, getNormalSelectionStyle, type ISelectionStyle, type ISelectionWidgetConfig, type ISelectionWithCoordAndStyle, type ISelectionWithStyle, SELECTION_CONTROL_BORDER_BUFFER_COLOR, SELECTION_CONTROL_BORDER_BUFFER_WIDTH, transformCellDataToSelectionData, } from './basics/selection';
|
|
5
|
-
export {
|
|
20
|
+
export { alignToMergedCellsBorders, getCellAtRowCol } from './commands/commands/utils/selection-utils';
|
|
6
21
|
export { MAX_CELL_PER_SHEET_KEY } from './controllers/config/config';
|
|
7
22
|
export { BorderStyleManagerService, type IBorderInfo } from './services/border-style-manager.service';
|
|
8
23
|
export { SheetEditablePermission, SheetPermissionService } from './services/permission';
|
|
9
|
-
export { NORMAL_SELECTION_PLUGIN_NAME, SelectionManagerService } from './services/selection-manager.service';
|
|
10
|
-
export {
|
|
24
|
+
export { NORMAL_SELECTION_PLUGIN_NAME, SelectionManagerService, SelectionMoveType, } from './services/selection-manager.service';
|
|
25
|
+
export { rangeMerge } from './basics/rangeMerge';
|
|
11
26
|
export { ClearSelectionAllCommand } from './commands/commands/clear-selection-all.command';
|
|
12
27
|
export { ClearSelectionContentCommand } from './commands/commands/clear-selection-content.command';
|
|
13
28
|
export { ClearSelectionFormatCommand } from './commands/commands/clear-selection-format.command';
|
|
@@ -38,15 +53,14 @@ export { type ISetRangeValuesCommandParams, SetRangeValuesCommand } from './comm
|
|
|
38
53
|
export { type ISetSpecificRowsVisibleCommandParams, SetRowHiddenCommand, SetSelectedRowsVisibleCommand, SetSpecificRowsVisibleCommand, } from './commands/commands/set-row-visible.command';
|
|
39
54
|
export { type ISetStyleCommandParams, ResetBackgroundColorCommand, ResetTextColorCommand, SetBackgroundColorCommand, SetBoldCommand, SetFontFamilyCommand, SetFontSizeCommand, SetHorizontalTextAlignCommand, SetItalicCommand, SetStrikeThroughCommand, SetStyleCommand, SetTextColorCommand, SetTextRotationCommand, SetTextWrapCommand, SetUnderlineCommand, SetVerticalTextAlignCommand, } from './commands/commands/set-style.command';
|
|
40
55
|
export { SetTabColorCommand } from './commands/commands/set-tab-color.command';
|
|
41
|
-
export { SetWorksheetActivateCommand } from './commands/commands/set-worksheet-activate.command';
|
|
56
|
+
export { type ISetWorksheetActivateCommandParams, SetWorksheetActivateCommand, } from './commands/commands/set-worksheet-activate.command';
|
|
42
57
|
export { DeltaColumnWidthCommand, type IDeltaColumnWidthCommandParams, SetColWidthCommand, } from './commands/commands/set-worksheet-col-width.command';
|
|
43
58
|
export { SetWorksheetHideCommand } from './commands/commands/set-worksheet-hide.command';
|
|
44
|
-
export { SetWorksheetNameCommand } from './commands/commands/set-worksheet-name.command';
|
|
59
|
+
export { type ISetWorksheetNameCommandParams, SetWorksheetNameCommand, } from './commands/commands/set-worksheet-name.command';
|
|
45
60
|
export { SetWorksheetOrderCommand } from './commands/commands/set-worksheet-order.command';
|
|
46
|
-
export { DeltaRowHeightCommand, type IDeltaRowHeightCommand, SetRowHeightCommand, SetWorksheetRowIsAutoHeightCommand, } from './commands/commands/set-worksheet-row-height.command';
|
|
61
|
+
export { DeltaRowHeightCommand, type IDeltaRowHeightCommand, type ISetWorksheetRowIsAutoHeightCommandParams, SetRowHeightCommand, SetWorksheetRowIsAutoHeightCommand, } from './commands/commands/set-worksheet-row-height.command';
|
|
47
62
|
export { SetWorksheetShowCommand } from './commands/commands/set-worksheet-show.command';
|
|
48
|
-
export { getPrimaryForRange } from './commands/commands/utils/selection-
|
|
49
|
-
export { findNextGapRange, findNextRange, getCellAtRowCol, getStartRange, } from './commands/commands/utils/selection-util';
|
|
63
|
+
export { getPrimaryForRange } from './commands/commands/utils/selection-utils';
|
|
50
64
|
export { AddMergeUndoMutationFactory, AddWorksheetMergeMutation, } from './commands/mutations/add-worksheet-merge.mutation';
|
|
51
65
|
export { DeleteRangeMutation } from './commands/mutations/delete-range.mutation';
|
|
52
66
|
export { handleDeleteRangeMutation } from './commands/mutations/delete-range.mutation';
|
|
@@ -59,14 +73,14 @@ export { type IMoveRangeMutationParams } from './commands/mutations/move-range.m
|
|
|
59
73
|
export { type IMoveColumnsMutationParams } from './commands/mutations/move-rows-cols.mutation';
|
|
60
74
|
export { type IMoveRowsMutationParams, MoveRowsMutation } from './commands/mutations/move-rows-cols.mutation';
|
|
61
75
|
export { MoveColsMutation } from './commands/mutations/move-rows-cols.mutation';
|
|
76
|
+
export type { IRemoveNumfmtMutationParams, ISetCellsNumfmt, ISetNumfmtMutationParams, } from './commands/mutations/numfmt-mutation';
|
|
77
|
+
export { factoryRemoveNumfmtUndoMutation, factorySetNumfmtUndoMutation, RemoveNumfmtMutation, SetNumfmtMutation, transformCellsToRange, } from './commands/mutations/numfmt-mutation';
|
|
62
78
|
export { RemoveColMutation, RemoveRowMutation } from './commands/mutations/remove-row-col.mutation';
|
|
63
79
|
export { RemoveSheetMutation, RemoveSheetUndoMutationFactory } from './commands/mutations/remove-sheet.mutation';
|
|
64
80
|
export { RemoveWorksheetMergeMutation } from './commands/mutations/remove-worksheet-merge.mutation';
|
|
65
81
|
export { RemoveMergeUndoMutationFactory } from './commands/mutations/remove-worksheet-merge.mutation';
|
|
66
82
|
export { type ISetColHiddenMutationParams, type ISetColVisibleMutationParams, SetColHiddenMutation, SetColVisibleMutation, } from './commands/mutations/set-col-visible.mutation';
|
|
67
83
|
export { type ISetFrozenMutationParams, SetFrozenMutation, SetFrozenMutationFactory, } from './commands/mutations/set-frozen.mutation';
|
|
68
|
-
export type { ISetNumfmtMutationParams } from './commands/mutations/set-numfmt-mutation';
|
|
69
|
-
export { factorySetNumfmtUndoMutation, SetNumfmtMutation } from './commands/mutations/set-numfmt-mutation';
|
|
70
84
|
export type { ISetRangeValuesMutationParams } from './commands/mutations/set-range-values.mutation';
|
|
71
85
|
export { SetRangeValuesMutation } from './commands/mutations/set-range-values.mutation';
|
|
72
86
|
export { SetRangeValuesUndoMutationFactory } from './commands/mutations/set-range-values.mutation';
|
|
@@ -74,8 +88,6 @@ export { type ISetRangeValuesRangeMutationParams } from './commands/mutations/se
|
|
|
74
88
|
export { SetRowHiddenMutation, SetRowVisibleMutation } from './commands/mutations/set-row-visible.mutation';
|
|
75
89
|
export { SetTabColorMutation } from './commands/mutations/set-tab-color.mutation';
|
|
76
90
|
export { type ISetTabColorMutationParams } from './commands/mutations/set-tab-color.mutation';
|
|
77
|
-
export { SetWorksheetActivateMutation } from './commands/mutations/set-worksheet-activate.mutation';
|
|
78
|
-
export { type ISetWorksheetActivateMutationParams } from './commands/mutations/set-worksheet-activate.mutation';
|
|
79
91
|
export { type ISetWorksheetColWidthMutationParams, SetWorksheetColWidthMutation, SetWorksheetColWidthMutationFactory, } from './commands/mutations/set-worksheet-col-width.mutation';
|
|
80
92
|
export { type ISetWorksheetHideMutationParams, SetWorksheetHideMutation, } from './commands/mutations/set-worksheet-hide.mutation';
|
|
81
93
|
export { SetWorksheetNameMutation } from './commands/mutations/set-worksheet-name.mutation';
|
|
@@ -84,7 +96,11 @@ export { SetWorksheetOrderMutation } from './commands/mutations/set-worksheet-or
|
|
|
84
96
|
export { type ISetWorksheetOrderMutationParams } from './commands/mutations/set-worksheet-order.mutation';
|
|
85
97
|
export { type ISetWorksheetRowAutoHeightMutationParams, type ISetWorksheetRowHeightMutationParams, type ISetWorksheetRowIsAutoHeightMutationParams, SetWorksheetRowAutoHeightMutation, SetWorksheetRowAutoHeightMutationFactory, SetWorksheetRowHeightMutation, SetWorksheetRowIsAutoHeightMutation, } from './commands/mutations/set-worksheet-row-height.mutation';
|
|
86
98
|
export { type ISetSelectionsOperationParams, SetSelectionsOperation } from './commands/operations/selection.operation';
|
|
99
|
+
export { SetWorksheetActiveOperation } from './commands/operations/set-worksheet-active.operation';
|
|
100
|
+
export { type ISetWorksheetActiveOperationParams } from './commands/operations/set-worksheet-active.operation';
|
|
87
101
|
export { type ISheetCommandSharedParams } from './commands/utils/interface';
|
|
102
|
+
export { getAddMergeMutationRangeByType } from './controllers/merge-cell.controller';
|
|
103
|
+
export { enUS, zhCN } from './locale';
|
|
88
104
|
export type { FormatType, INumfmtItem, INumfmtItemWithCache } from './services/numfmt/type';
|
|
89
105
|
export { INumfmtService } from './services/numfmt/type';
|
|
90
106
|
export { RefRangeService } from './services/ref-range/ref-range.service';
|
|
@@ -94,4 +110,3 @@ export { handleDeleteRangeMoveLeft, handleDeleteRangeMoveUp, handleInsertCol, ha
|
|
|
94
110
|
export { INTERCEPTOR_POINT } from './services/sheet-interceptor/interceptor-const';
|
|
95
111
|
export { SheetInterceptorService } from './services/sheet-interceptor/sheet-interceptor.service';
|
|
96
112
|
export type { ISheetLocation } from './services/sheet-interceptor/utils/interceptor';
|
|
97
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
1
16
|
declare const _default: {};
|
|
2
17
|
export default _default;
|
|
3
|
-
//# sourceMappingURL=en-US.d.ts.map
|
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
1
16
|
export { default as enUS } from './en-US';
|
|
2
17
|
export { default as zhCN } from './zh-CN';
|
|
3
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
1
16
|
declare const _default: {};
|
|
2
17
|
export default _default;
|
|
3
|
-
//# sourceMappingURL=zh-CN.d.ts.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export {};
|
|
@@ -1,2 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
1
16
|
export {};
|
|
2
|
-
//# sourceMappingURL=ref-range.setvice.spec.d.ts.map
|
|
@@ -1,2 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
1
16
|
export {};
|
|
2
|
-
//# sourceMappingURL=sheet-permission.spec.d.ts.map
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
1
16
|
import type { IWorkbookData } from '@univerjs/core';
|
|
2
17
|
import { Univer } from '@univerjs/core';
|
|
3
18
|
import type { Dependency } from '@wendellhu/redi';
|
|
@@ -14,4 +29,3 @@ export declare function createTestBase(workbookConfig?: IWorkbookData, dependenc
|
|
|
14
29
|
};
|
|
15
30
|
sheet: import("@univerjs/core").Workbook;
|
|
16
31
|
};
|
|
17
|
-
//# sourceMappingURL=util.d.ts.map
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
1
16
|
import { BorderStyleTypes, BorderType } from '@univerjs/core';
|
|
2
17
|
import type { IDisposable } from '@wendellhu/redi';
|
|
3
18
|
export interface IBorderInfo {
|
|
@@ -21,4 +36,3 @@ export declare class BorderStyleManagerService implements IDisposable {
|
|
|
21
36
|
getBorderInfo(): Readonly<IBorderInfo>;
|
|
22
37
|
private refresh;
|
|
23
38
|
}
|
|
24
|
-
//# sourceMappingURL=border-style-manager.service.d.ts.map
|
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import type { IRange } from '@univerjs/core';
|
|
1
17
|
import { Disposable, ICommandService, ILogService, IResourceManagerService, IUniverInstanceService, ObjectMatrix, RefAlias } from '@univerjs/core';
|
|
2
18
|
import type { FormatType, INumfmtItem, INumfmtService, IRefItem } from './type';
|
|
3
19
|
export declare class NumfmtService extends Disposable implements INumfmtService {
|
|
@@ -19,19 +35,17 @@ export declare class NumfmtService extends Disposable implements INumfmtService
|
|
|
19
35
|
private _toJson;
|
|
20
36
|
private _parseJson;
|
|
21
37
|
private _setValue;
|
|
22
|
-
private _groupByKey;
|
|
23
38
|
private _getUniqueRefId;
|
|
24
|
-
getValue(
|
|
39
|
+
getValue(unitId: string, subUnitId: string, row: number, col: number, model?: ObjectMatrix<INumfmtItem>): {
|
|
25
40
|
pattern: string;
|
|
26
41
|
type: FormatType;
|
|
27
42
|
} | null;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
pattern
|
|
43
|
+
deleteValues(unitId: string, subUnitId: string, values: IRange[]): void;
|
|
44
|
+
setValues(unitId: string, subUnitId: string, values: Array<{
|
|
45
|
+
ranges: IRange[];
|
|
46
|
+
pattern: string;
|
|
32
47
|
type: FormatType;
|
|
33
48
|
}>): void;
|
|
34
|
-
getModel(
|
|
35
|
-
getRefModel(
|
|
49
|
+
getModel(unitId: string, subUnitId: string): ObjectMatrix<INumfmtItem> | undefined;
|
|
50
|
+
getRefModel(unitId: string): RefAlias<IRefItem, "i" | "pattern"> | undefined;
|
|
36
51
|
}
|
|
37
|
-
//# sourceMappingURL=numfmt.service.d.ts.map
|
|
@@ -1,4 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import type { ICellData, IObjectMatrixPrimitiveType, IRange, Nullable, ObjectMatrix, RefAlias } from '@univerjs/core';
|
|
2
17
|
import type { Observable } from 'rxjs';
|
|
3
18
|
export type INumfmtItem = {
|
|
4
19
|
i: string;
|
|
@@ -18,20 +33,19 @@ export type IRefItem = INumfmtItem & {
|
|
|
18
33
|
pattern: string;
|
|
19
34
|
};
|
|
20
35
|
export interface INumfmtService {
|
|
21
|
-
getValue(
|
|
22
|
-
getModel(
|
|
23
|
-
setValues(
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
type?: FormatType;
|
|
36
|
+
getValue(unitId: string, subUnitId: string, row: number, col: number, model?: ObjectMatrix<INumfmtItem>): Nullable<INumfmtItemWithCache>;
|
|
37
|
+
getModel(unitId: string, subUnitId: string): Nullable<ObjectMatrix<INumfmtItem>>;
|
|
38
|
+
setValues(unitId: string, subUnitId: string, values: Array<{
|
|
39
|
+
ranges: IRange[];
|
|
40
|
+
pattern: string;
|
|
41
|
+
type: FormatType;
|
|
28
42
|
}>): void;
|
|
29
|
-
|
|
43
|
+
deleteValues(unitId: string, subUnitId: string, values: IRange[]): void;
|
|
44
|
+
getRefModel(unitId: string): Nullable<RefAlias<IRefItem, 'i' | 'pattern'>>;
|
|
30
45
|
modelReplace$: Observable<string>;
|
|
31
46
|
}
|
|
32
47
|
export interface ISnapshot {
|
|
33
|
-
model: Record<string,
|
|
48
|
+
model: Record<string, IObjectMatrixPrimitiveType<INumfmtItem>>;
|
|
34
49
|
refModel: IRefItem[];
|
|
35
50
|
}
|
|
36
51
|
export declare const INumfmtService: import("@wendellhu/redi").IdentifierDecorator<INumfmtService>;
|
|
37
|
-
//# sourceMappingURL=type.d.ts.map
|
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
1
16
|
export { SheetEditablePermission } from './permission-point';
|
|
2
17
|
export { SheetPermissionService } from './sheet-permission.service';
|
|
3
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,10 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
1
16
|
import { PermissionPoint } from '@univerjs/core';
|
|
2
17
|
export declare class SheetEditablePermission extends PermissionPoint<boolean> {
|
|
3
|
-
private
|
|
4
|
-
private
|
|
18
|
+
private _unitId;
|
|
19
|
+
private _subUnitId;
|
|
5
20
|
id: string;
|
|
6
21
|
value: boolean;
|
|
7
22
|
unitID: string;
|
|
8
|
-
constructor(
|
|
23
|
+
constructor(_unitId: string, _subUnitId: string);
|
|
9
24
|
}
|
|
10
|
-
//# sourceMappingURL=permission-point.d.ts.map
|