@univerjs/core 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 +16 -0
- package/lib/cjs/index.js +15323 -0
- package/lib/esm/index.js +14601 -0
- package/lib/types/basics/index.d.ts +6 -0
- package/lib/types/basics/index.d.ts.map +1 -0
- package/lib/types/basics/registry.d.ts +27 -0
- package/lib/types/basics/registry.d.ts.map +1 -0
- package/lib/types/basics/univer-doc.d.ts +20 -0
- package/lib/types/basics/univer-doc.d.ts.map +1 -0
- package/lib/types/basics/univer-sheet.d.ts +31 -0
- package/lib/types/basics/univer-sheet.d.ts.map +1 -0
- package/lib/types/basics/univer-slide.d.ts +29 -0
- package/lib/types/basics/univer-slide.d.ts.map +1 -0
- package/lib/types/basics/univer.d.ts +41 -0
- package/lib/types/basics/univer.d.ts.map +1 -0
- package/lib/types/common/array.d.ts +15 -0
- package/lib/types/common/array.d.ts.map +1 -0
- package/lib/types/common/color/color-builder.d.ts +1 -0
- package/lib/types/common/color/color-builder.d.ts.map +1 -0
- package/lib/types/common/const.d.ts +4 -0
- package/lib/types/common/const.d.ts.map +1 -0
- package/lib/types/common/interceptor.d.ts +21 -0
- package/lib/types/common/interceptor.d.ts.map +1 -0
- package/lib/types/common/memory-cursor.d.ts +6 -0
- package/lib/types/common/memory-cursor.d.ts.map +1 -0
- package/lib/types/common/sequence.d.ts +18 -0
- package/lib/types/common/sequence.d.ts.map +1 -0
- package/lib/types/common/type-utils.d.ts +5 -0
- package/lib/types/common/type-utils.d.ts.map +1 -0
- package/lib/types/docs/data-model/__tests__/apply-utils.spec.d.ts +2 -0
- package/lib/types/docs/data-model/__tests__/apply-utils.spec.d.ts.map +1 -0
- package/lib/types/docs/data-model/apply-utils/common.d.ts +30 -0
- package/lib/types/docs/data-model/apply-utils/common.d.ts.map +1 -0
- package/lib/types/docs/data-model/apply-utils/delete-apply.d.ts +3 -0
- package/lib/types/docs/data-model/apply-utils/delete-apply.d.ts.map +1 -0
- package/lib/types/docs/data-model/apply-utils/insert-apply.d.ts +3 -0
- package/lib/types/docs/data-model/apply-utils/insert-apply.d.ts.map +1 -0
- package/lib/types/docs/data-model/apply-utils/update-apply.d.ts +5 -0
- package/lib/types/docs/data-model/apply-utils/update-apply.d.ts.map +1 -0
- package/lib/types/docs/data-model/document-data-model.d.ts +57 -0
- package/lib/types/docs/data-model/document-data-model.d.ts.map +1 -0
- package/lib/types/docs/data-model/index.d.ts +3 -0
- package/lib/types/docs/data-model/index.d.ts.map +1 -0
- package/lib/types/docs/data-model/mutation-types.d.ts +33 -0
- package/lib/types/docs/data-model/mutation-types.d.ts.map +1 -0
- package/lib/types/docs/data-model/types.d.ts +27 -0
- package/lib/types/docs/data-model/types.d.ts.map +1 -0
- package/lib/types/docs/index.d.ts +2 -0
- package/lib/types/docs/index.d.ts.map +1 -0
- package/lib/types/index.d.ts +42 -0
- package/lib/types/index.d.ts.map +1 -0
- package/lib/types/observer/index.d.ts +3 -0
- package/lib/types/observer/index.d.ts.map +1 -0
- package/lib/types/observer/observable-hooks.d.ts +19 -0
- package/lib/types/observer/observable-hooks.d.ts.map +1 -0
- package/lib/types/observer/observable.d.ts +170 -0
- package/lib/types/observer/observable.d.ts.map +1 -0
- package/lib/types/plugin/plugin.d.ts +49 -0
- package/lib/types/plugin/plugin.d.ts.map +1 -0
- package/lib/types/services/auth/auth.service.d.ts +3 -0
- package/lib/types/services/auth/auth.service.d.ts.map +1 -0
- package/lib/types/services/command/command.service.d.ts +117 -0
- package/lib/types/services/command/command.service.d.ts.map +1 -0
- package/lib/types/services/command/command.service.spec.d.ts +2 -0
- package/lib/types/services/command/command.service.spec.d.ts.map +1 -0
- package/lib/types/services/config/config.service.d.ts +18 -0
- package/lib/types/services/config/config.service.d.ts.map +1 -0
- package/lib/types/services/context/context.d.ts +8 -0
- package/lib/types/services/context/context.d.ts.map +1 -0
- package/lib/types/services/context/context.service.d.ts +17 -0
- package/lib/types/services/context/context.service.d.ts.map +1 -0
- package/lib/types/services/error/error.service.d.ts +11 -0
- package/lib/types/services/error/error.service.d.ts.map +1 -0
- package/lib/types/services/floating-object/floating-object-interfaces.d.ts +20 -0
- package/lib/types/services/floating-object/floating-object-interfaces.d.ts.map +1 -0
- package/lib/types/services/floating-object/floating-object-manager.service.d.ts +82 -0
- package/lib/types/services/floating-object/floating-object-manager.service.d.ts.map +1 -0
- package/lib/types/services/instance/instance.service.d.ts +113 -0
- package/lib/types/services/instance/instance.service.d.ts.map +1 -0
- package/lib/types/services/lifecycle/lifecycle.d.ts +36 -0
- package/lib/types/services/lifecycle/lifecycle.d.ts.map +1 -0
- package/lib/types/services/lifecycle/lifecycle.service.d.ts +23 -0
- package/lib/types/services/lifecycle/lifecycle.service.d.ts.map +1 -0
- package/lib/types/services/local-storage/local-storage.service.d.ts +12 -0
- package/lib/types/services/local-storage/local-storage.service.d.ts.map +1 -0
- package/lib/types/services/locale/locale.service.d.ts +26 -0
- package/lib/types/services/locale/locale.service.d.ts.map +1 -0
- package/lib/types/services/log/log.service.d.ts +18 -0
- package/lib/types/services/log/log.service.d.ts.map +1 -0
- package/lib/types/services/permission/index.d.ts +4 -0
- package/lib/types/services/permission/index.d.ts.map +1 -0
- package/lib/types/services/permission/permission-point.d.ts +9 -0
- package/lib/types/services/permission/permission-point.d.ts.map +1 -0
- package/lib/types/services/permission/permission.service.d.ts +31 -0
- package/lib/types/services/permission/permission.service.d.ts.map +1 -0
- package/lib/types/services/permission/univer.permission.service.d.ts +12 -0
- package/lib/types/services/permission/univer.permission.service.d.ts.map +1 -0
- package/lib/types/services/resource-manager/resource-manager.service.d.ts +25 -0
- package/lib/types/services/resource-manager/resource-manager.service.d.ts.map +1 -0
- package/lib/types/services/resource-manager/type.d.ts +23 -0
- package/lib/types/services/resource-manager/type.d.ts.map +1 -0
- package/lib/types/services/theme/theme.service.d.ts +14 -0
- package/lib/types/services/theme/theme.service.d.ts.map +1 -0
- package/lib/types/services/undoredo/undoredo.service.d.ts +79 -0
- package/lib/types/services/undoredo/undoredo.service.d.ts.map +1 -0
- package/lib/types/shared/__test__/object-matrix.spec.d.ts +2 -0
- package/lib/types/shared/__test__/object-matrix.spec.d.ts.map +1 -0
- package/lib/types/shared/__test__/ref-alias.spec.d.ts +2 -0
- package/lib/types/shared/__test__/ref-alias.spec.d.ts.map +1 -0
- package/lib/types/shared/array-search.d.ts +4 -0
- package/lib/types/shared/array-search.d.ts.map +1 -0
- package/lib/types/shared/color/color-builder.d.ts +21 -0
- package/lib/types/shared/color/color-builder.d.ts.map +1 -0
- package/lib/types/shared/color/color.d.ts +65 -0
- package/lib/types/shared/color/color.d.ts.map +1 -0
- package/lib/types/shared/color-builder.d.ts +1 -0
- package/lib/types/shared/color-builder.d.ts.map +1 -0
- package/lib/types/shared/command-enum.d.ts +6 -0
- package/lib/types/shared/command-enum.d.ts.map +1 -0
- package/lib/types/shared/common.d.ts +29 -0
- package/lib/types/shared/common.d.ts.map +1 -0
- package/lib/types/shared/compare.d.ts +8 -0
- package/lib/types/shared/compare.d.ts.map +1 -0
- package/lib/types/shared/date-time.d.ts +6 -0
- package/lib/types/shared/date-time.d.ts.map +1 -0
- package/lib/types/shared/doc-tool.d.ts +8 -0
- package/lib/types/shared/doc-tool.d.ts.map +1 -0
- package/lib/types/shared/drop-cell.d.ts +1 -0
- package/lib/types/shared/drop-cell.d.ts.map +1 -0
- package/lib/types/shared/excel-date-time.d.ts +6 -0
- package/lib/types/shared/excel-date-time.d.ts.map +1 -0
- package/lib/types/shared/gen-name.d.ts +9 -0
- package/lib/types/shared/gen-name.d.ts.map +1 -0
- package/lib/types/shared/generate.d.ts +7 -0
- package/lib/types/shared/generate.d.ts.map +1 -0
- package/lib/types/shared/group-model.d.ts +4 -0
- package/lib/types/shared/group-model.d.ts.map +1 -0
- package/lib/types/shared/hash-algorithm.d.ts +2 -0
- package/lib/types/shared/hash-algorithm.d.ts.map +1 -0
- package/lib/types/shared/index.d.ts +35 -0
- package/lib/types/shared/index.d.ts.map +1 -0
- package/lib/types/shared/io-http.d.ts +84 -0
- package/lib/types/shared/io-http.d.ts.map +1 -0
- package/lib/types/shared/io-socket.d.ts +48 -0
- package/lib/types/shared/io-socket.d.ts.map +1 -0
- package/lib/types/shared/lifecycle.d.ts +28 -0
- package/lib/types/shared/lifecycle.d.ts.map +1 -0
- package/lib/types/shared/locale.d.ts +10 -0
- package/lib/types/shared/locale.d.ts.map +1 -0
- package/lib/types/shared/logger.d.ts +12 -0
- package/lib/types/shared/logger.d.ts.map +1 -0
- package/lib/types/shared/lru/index.d.ts +3 -0
- package/lib/types/shared/lru/index.d.ts.map +1 -0
- package/lib/types/shared/lru/lru-helper.d.ts +8 -0
- package/lib/types/shared/lru/lru-helper.d.ts.map +1 -0
- package/lib/types/shared/lru/lru-map.d.ts +66 -0
- package/lib/types/shared/lru/lru-map.d.ts.map +1 -0
- package/lib/types/shared/migrate/border.d.ts +3 -0
- package/lib/types/shared/migrate/border.d.ts.map +1 -0
- package/lib/types/shared/migrate/index.d.ts +2 -0
- package/lib/types/shared/migrate/index.d.ts.map +1 -0
- package/lib/types/shared/migrate/migrate.d.ts +3 -0
- package/lib/types/shared/migrate/migrate.d.ts.map +1 -0
- package/lib/types/shared/object-array.d.ts +96 -0
- package/lib/types/shared/object-array.d.ts.map +1 -0
- package/lib/types/shared/object-matrix.d.ts +67 -0
- package/lib/types/shared/object-matrix.d.ts.map +1 -0
- package/lib/types/shared/permission/index.d.ts +13 -0
- package/lib/types/shared/permission/index.d.ts.map +1 -0
- package/lib/types/shared/props-from.d.ts +6 -0
- package/lib/types/shared/props-from.d.ts.map +1 -0
- package/lib/types/shared/random.d.ts +7 -0
- package/lib/types/shared/random.d.ts.map +1 -0
- package/lib/types/shared/rect-tree/border-tree.d.ts +30 -0
- package/lib/types/shared/rect-tree/border-tree.d.ts.map +1 -0
- package/lib/types/shared/rect-tree/es-rect-tree.d.ts +9 -0
- package/lib/types/shared/rect-tree/es-rect-tree.d.ts.map +1 -0
- package/lib/types/shared/rect-tree/merge-tree.d.ts +1 -0
- package/lib/types/shared/rect-tree/merge-tree.d.ts.map +1 -0
- package/lib/types/shared/rect-tree/quick-select.d.ts +3 -0
- package/lib/types/shared/rect-tree/quick-select.d.ts.map +1 -0
- package/lib/types/shared/rect-tree/rect-tree.d.ts +60 -0
- package/lib/types/shared/rect-tree/rect-tree.d.ts.map +1 -0
- package/lib/types/shared/rect-tree/styles-tree.d.ts +1 -0
- package/lib/types/shared/rect-tree/styles-tree.d.ts.map +1 -0
- package/lib/types/shared/rectangle.d.ts +20 -0
- package/lib/types/shared/rectangle.d.ts.map +1 -0
- package/lib/types/shared/ref-alias.d.ts +26 -0
- package/lib/types/shared/ref-alias.d.ts.map +1 -0
- package/lib/types/shared/row-col-iter.d.ts +5 -0
- package/lib/types/shared/row-col-iter.d.ts.map +1 -0
- package/lib/types/shared/sequence.d.ts +27 -0
- package/lib/types/shared/sequence.d.ts.map +1 -0
- package/lib/types/shared/serialize/index.d.ts +5 -0
- package/lib/types/shared/serialize/index.d.ts.map +1 -0
- package/lib/types/shared/serialize/sequence.d.ts +4 -0
- package/lib/types/shared/serialize/sequence.d.ts.map +1 -0
- package/lib/types/shared/serialize/serialize-manager.d.ts +17 -0
- package/lib/types/shared/serialize/serialize-manager.d.ts.map +1 -0
- package/lib/types/shared/serialize/serialize.d.ts +8 -0
- package/lib/types/shared/serialize/serialize.d.ts.map +1 -0
- package/lib/types/shared/serialize/serializer.d.ts +14 -0
- package/lib/types/shared/serialize/serializer.d.ts.map +1 -0
- package/lib/types/shared/sort-rules.d.ts +10 -0
- package/lib/types/shared/sort-rules.d.ts.map +1 -0
- package/lib/types/shared/tools.d.ts +103 -0
- package/lib/types/shared/tools.d.ts.map +1 -0
- package/lib/types/shared/tuples.d.ts +12 -0
- package/lib/types/shared/tuples.d.ts.map +1 -0
- package/lib/types/shared/type-store.d.ts +10 -0
- package/lib/types/shared/type-store.d.ts.map +1 -0
- package/lib/types/shared/types.d.ts +30 -0
- package/lib/types/shared/types.d.ts.map +1 -0
- package/lib/types/sheets/__tests__/create-core-test-bed.d.ts +16 -0
- package/lib/types/sheets/__tests__/create-core-test-bed.d.ts.map +1 -0
- package/lib/types/sheets/__tests__/styles.spec.d.ts +2 -0
- package/lib/types/sheets/__tests__/styles.spec.d.ts.map +1 -0
- package/lib/types/sheets/column-manager.d.ts +51 -0
- package/lib/types/sheets/column-manager.d.ts.map +1 -0
- package/lib/types/sheets/range.d.ts +312 -0
- package/lib/types/sheets/range.d.ts.map +1 -0
- package/lib/types/sheets/reference.d.ts +46 -0
- package/lib/types/sheets/reference.d.ts.map +1 -0
- package/lib/types/sheets/row-manager.d.ts +41 -0
- package/lib/types/sheets/row-manager.d.ts.map +1 -0
- package/lib/types/sheets/styles.d.ts +23 -0
- package/lib/types/sheets/styles.d.ts.map +1 -0
- package/lib/types/sheets/view-model.d.ts +36 -0
- package/lib/types/sheets/view-model.d.ts.map +1 -0
- package/lib/types/sheets/workbook.d.ts +130 -0
- package/lib/types/sheets/workbook.d.ts.map +1 -0
- package/lib/types/sheets/worksheet.d.ts +180 -0
- package/lib/types/sheets/worksheet.d.ts.map +1 -0
- package/lib/types/slides/domain/index.d.ts +2 -0
- package/lib/types/slides/domain/index.d.ts.map +1 -0
- package/lib/types/slides/domain/slide-model.d.ts +20 -0
- package/lib/types/slides/domain/slide-model.d.ts.map +1 -0
- package/lib/types/types/const/action-names.d.ts +51 -0
- package/lib/types/types/const/action-names.d.ts.map +1 -0
- package/lib/types/types/const/const.d.ts +153 -0
- package/lib/types/types/const/const.d.ts.map +1 -0
- package/lib/types/types/const/doc-action-names.d.ts +7 -0
- package/lib/types/types/const/doc-action-names.d.ts.map +1 -0
- package/lib/types/types/const/extension-names.d.ts +8 -0
- package/lib/types/types/const/extension-names.d.ts.map +1 -0
- package/lib/types/types/const/index.d.ts +5 -0
- package/lib/types/types/const/index.d.ts.map +1 -0
- package/lib/types/types/const/theme-color-map.d.ts +8 -0
- package/lib/types/types/const/theme-color-map.d.ts.map +1 -0
- package/lib/types/types/enum/auto-fill-series.d.ts +19 -0
- package/lib/types/types/enum/auto-fill-series.d.ts.map +1 -0
- package/lib/types/types/enum/border-style-types.d.ts +32 -0
- package/lib/types/types/enum/border-style-types.d.ts.map +1 -0
- package/lib/types/types/enum/color-type.d.ts +10 -0
- package/lib/types/types/enum/color-type.d.ts.map +1 -0
- package/lib/types/types/enum/common-hide-types.d.ts +8 -0
- package/lib/types/types/enum/common-hide-types.d.ts.map +1 -0
- package/lib/types/types/enum/condition-type.d.ts +38 -0
- package/lib/types/types/enum/condition-type.d.ts.map +1 -0
- package/lib/types/types/enum/copy-paste-type.d.ts +17 -0
- package/lib/types/types/enum/copy-paste-type.d.ts.map +1 -0
- package/lib/types/types/enum/developer-metadata-visibility.d.ts +8 -0
- package/lib/types/types/enum/developer-metadata-visibility.d.ts.map +1 -0
- package/lib/types/types/enum/dimension.d.ts +16 -0
- package/lib/types/types/enum/dimension.d.ts.map +1 -0
- package/lib/types/types/enum/direction.d.ts +8 -0
- package/lib/types/types/enum/direction.d.ts.map +1 -0
- package/lib/types/types/enum/format-type.d.ts +15 -0
- package/lib/types/types/enum/format-type.d.ts.map +1 -0
- package/lib/types/types/enum/group-control-toggle-position.d.ts +8 -0
- package/lib/types/types/enum/group-control-toggle-position.d.ts.map +1 -0
- package/lib/types/types/enum/index.d.ts +19 -0
- package/lib/types/types/enum/index.d.ts.map +1 -0
- package/lib/types/types/enum/interpolation-point-type.d.ts +12 -0
- package/lib/types/types/enum/interpolation-point-type.d.ts.map +1 -0
- package/lib/types/types/enum/locale-type.d.ts +11 -0
- package/lib/types/types/enum/locale-type.d.ts.map +1 -0
- package/lib/types/types/enum/place-holder-type.d.ts +20 -0
- package/lib/types/types/enum/place-holder-type.d.ts.map +1 -0
- package/lib/types/types/enum/protection-type.d.ts +8 -0
- package/lib/types/types/enum/protection-type.d.ts.map +1 -0
- package/lib/types/types/enum/relative-date.d.ts +13 -0
- package/lib/types/types/enum/relative-date.d.ts.map +1 -0
- package/lib/types/types/enum/shape-type.d.ts +146 -0
- package/lib/types/types/enum/shape-type.d.ts.map +1 -0
- package/lib/types/types/enum/sheet-types.d.ts +9 -0
- package/lib/types/types/enum/sheet-types.d.ts.map +1 -0
- package/lib/types/types/enum/text-style.d.ts +119 -0
- package/lib/types/types/enum/text-style.d.ts.map +1 -0
- package/lib/types/types/enum/theme-color-type.d.ts +72 -0
- package/lib/types/types/enum/theme-color-type.d.ts.map +1 -0
- package/lib/types/types/interfaces/i-cell-data.d.ts +33 -0
- package/lib/types/types/interfaces/i-cell-data.d.ts.map +1 -0
- package/lib/types/types/interfaces/i-column-data.d.ts +15 -0
- package/lib/types/types/interfaces/i-column-data.d.ts.map +1 -0
- package/lib/types/types/interfaces/i-document-data.d.ts +666 -0
- package/lib/types/types/interfaces/i-document-data.d.ts.map +1 -0
- package/lib/types/types/interfaces/i-extra-model-data.d.ts +19 -0
- package/lib/types/types/interfaces/i-extra-model-data.d.ts.map +1 -0
- package/lib/types/types/interfaces/i-freeze.d.ts +11 -0
- package/lib/types/types/interfaces/i-freeze.d.ts.map +1 -0
- package/lib/types/types/interfaces/i-image-properties.d.ts +23 -0
- package/lib/types/types/interfaces/i-image-properties.d.ts.map +1 -0
- package/lib/types/types/interfaces/i-placeholder.d.ts +7 -0
- package/lib/types/types/interfaces/i-placeholder.d.ts.map +1 -0
- package/lib/types/types/interfaces/i-range.d.ts +161 -0
- package/lib/types/types/interfaces/i-range.d.ts.map +1 -0
- package/lib/types/types/interfaces/i-row-data.d.ts +23 -0
- package/lib/types/types/interfaces/i-row-data.d.ts.map +1 -0
- package/lib/types/types/interfaces/i-selection-data.d.ts +43 -0
- package/lib/types/types/interfaces/i-selection-data.d.ts.map +1 -0
- package/lib/types/types/interfaces/i-service-data.d.ts +6 -0
- package/lib/types/types/interfaces/i-service-data.d.ts.map +1 -0
- package/lib/types/types/interfaces/i-shape-properties.d.ts +16 -0
- package/lib/types/types/interfaces/i-shape-properties.d.ts.map +1 -0
- package/lib/types/types/interfaces/i-slide-data.d.ts +149 -0
- package/lib/types/types/interfaces/i-slide-data.d.ts.map +1 -0
- package/lib/types/types/interfaces/i-style-data.d.ts +150 -0
- package/lib/types/types/interfaces/i-style-data.d.ts.map +1 -0
- package/lib/types/types/interfaces/i-univer-data.d.ts +23 -0
- package/lib/types/types/interfaces/i-univer-data.d.ts.map +1 -0
- package/lib/types/types/interfaces/i-workbook-data.d.ts +30 -0
- package/lib/types/types/interfaces/i-workbook-data.d.ts.map +1 -0
- package/lib/types/types/interfaces/i-worksheet-data.d.ts +62 -0
- package/lib/types/types/interfaces/i-worksheet-data.d.ts.map +1 -0
- package/lib/types/types/interfaces/i-worksheet-order-data.d.ts +6 -0
- package/lib/types/types/interfaces/i-worksheet-order-data.d.ts.map +1 -0
- package/lib/types/types/interfaces/index.d.ts +18 -0
- package/lib/types/types/interfaces/index.d.ts.map +1 -0
- package/package.json +59 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Alias type for value that can be null
|
|
3
|
+
*/
|
|
4
|
+
export type Nullable<T> = T | null | undefined | void;
|
|
5
|
+
/**
|
|
6
|
+
* wrap any
|
|
7
|
+
*/
|
|
8
|
+
export type NoNeedCheckedType = any;
|
|
9
|
+
/**
|
|
10
|
+
* Class type
|
|
11
|
+
*/
|
|
12
|
+
export interface Class<T> {
|
|
13
|
+
new (...param: any): T;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Key value object
|
|
17
|
+
*
|
|
18
|
+
* @deprecated
|
|
19
|
+
*/
|
|
20
|
+
export interface IKeyValue {
|
|
21
|
+
[key: string]: any;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Custom type of key
|
|
25
|
+
*/
|
|
26
|
+
export interface IKeyType<T> {
|
|
27
|
+
[key: string]: T;
|
|
28
|
+
}
|
|
29
|
+
export type AsyncFunction<T = void, R = void> = (value: T) => Promise<R>;
|
|
30
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/shared/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,QAAQ,CAAC,CAAC,IAAI,CAAC,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI,CAAC;AAEtD;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,GAAG,CAAC;AAEpC;;GAEG;AACH,MAAM,WAAW,KAAK,CAAC,CAAC;IACpB,KAAK,GAAG,KAAK,EAAE,GAAG,GAAG,CAAC,CAAC;CAC1B;AAED;;;;GAIG;AACH,MAAM,WAAW,SAAS;IACtB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,QAAQ,CAAC,CAAC;IACvB,CAAC,GAAG,EAAE,MAAM,GAAG,CAAC,CAAC;CACpB;AAED,MAAM,MAAM,aAAa,CAAC,CAAC,GAAG,IAAI,EAAE,CAAC,GAAG,IAAI,IAAI,CAAC,KAAK,EAAE,CAAC,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { Dependency } from '@wendellhu/redi';
|
|
2
|
+
import { Univer } from '../../basics/univer';
|
|
3
|
+
import type { IWorkbookData } from '../../types/interfaces/i-workbook-data';
|
|
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("../workbook").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/sheets/__tests__/create-core-test-bed.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAGlD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAK7C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AA0B5E,wBAAgB,iBAAiB,CAAC,cAAc,CAAC,EAAE,aAAa,EAAE,YAAY,CAAC,EAAE,UAAU,EAAE;;;;;;;;;;;EAyC5F"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.spec.d.ts","sourceRoot":"","sources":["../../../../src/sheets/__tests__/styles.spec.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type { Nullable } from '../shared';
|
|
2
|
+
import type { ObjectArrayType } from '../shared/object-array';
|
|
3
|
+
import { ObjectArray } from '../shared/object-array';
|
|
4
|
+
import type { IColumnData, IRange, IWorksheetData } from '../types/interfaces';
|
|
5
|
+
/**
|
|
6
|
+
* Manage configuration information of all columns, get column width, column length, set column width, etc.
|
|
7
|
+
*/
|
|
8
|
+
export declare class ColumnManager {
|
|
9
|
+
private readonly _config;
|
|
10
|
+
private _columnData;
|
|
11
|
+
constructor(_config: IWorksheetData, data: ObjectArrayType<Partial<IColumnData>>);
|
|
12
|
+
/**
|
|
13
|
+
* Get width and hidden status of columns in the sheet
|
|
14
|
+
* @returns
|
|
15
|
+
*/
|
|
16
|
+
getColumnData(): ObjectArray<IColumnData>;
|
|
17
|
+
getColVisible(colPos: number): boolean;
|
|
18
|
+
getHiddenCols(start?: number, end?: number): IRange[];
|
|
19
|
+
getColumnDatas(columnPos: number, numColumns: number): ObjectArray<IColumnData>;
|
|
20
|
+
/**
|
|
21
|
+
* Get count of column in the sheet
|
|
22
|
+
* @returns
|
|
23
|
+
*/
|
|
24
|
+
getSize(): number;
|
|
25
|
+
/**
|
|
26
|
+
* Get the width of column
|
|
27
|
+
* @param columnPos column index
|
|
28
|
+
* @returns
|
|
29
|
+
*/
|
|
30
|
+
getColumnWidth(columnPos: number): number;
|
|
31
|
+
/**
|
|
32
|
+
* Get the width of column
|
|
33
|
+
* @param columnPos column index
|
|
34
|
+
* @param numColumns column count
|
|
35
|
+
* @returns
|
|
36
|
+
*/
|
|
37
|
+
getColumnWidth(columnPos: number, numColumns: number): number;
|
|
38
|
+
/**
|
|
39
|
+
* get given column data
|
|
40
|
+
* @param columnPos column index
|
|
41
|
+
* @returns
|
|
42
|
+
*/
|
|
43
|
+
getColumn(columnPos: number): Nullable<IColumnData>;
|
|
44
|
+
/**
|
|
45
|
+
* get given column data or create a column data when it's null
|
|
46
|
+
* @param columnPos column index
|
|
47
|
+
* @returns
|
|
48
|
+
*/
|
|
49
|
+
getColumnOrCreate(columnPos: number): IColumnData;
|
|
50
|
+
}
|
|
51
|
+
//# sourceMappingURL=column-manager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"column-manager.d.ts","sourceRoot":"","sources":["../../../src/sheets/column-manager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAE1C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAErD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAG/E;;GAEG;AACH,qBAAa,aAAa;IAIlB,OAAO,CAAC,QAAQ,CAAC,OAAO;IAH5B,OAAO,CAAC,WAAW,CAA2B;gBAGzB,OAAO,EAAE,cAAc,EACxC,IAAI,EAAE,eAAe,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;IAK/C;;;OAGG;IACH,aAAa,IAAI,WAAW,CAAC,WAAW,CAAC;IAIzC,aAAa,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO;IAStC,aAAa,CAAC,KAAK,GAAE,MAAU,EAAE,GAAG,GAAE,MAAyC,GAAG,MAAM,EAAE;IAoC1F,cAAc,CAAC,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,WAAW,CAAC,WAAW,CAAC;IAS/E;;;OAGG;IACH,OAAO,IAAI,MAAM;IAIjB;;;;OAIG;IACH,cAAc,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM;IACzC;;;;;OAKG;IACH,cAAc,CAAC,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,MAAM;IAwB7D;;;;OAIG;IACH,SAAS,CAAC,SAAS,EAAE,MAAM,GAAG,QAAQ,CAAC,WAAW,CAAC;IAOnD;;;;OAIG;IACH,iBAAiB,CAAC,SAAS,EAAE,MAAM,GAAG,WAAW;CAcpD"}
|
|
@@ -0,0 +1,312 @@
|
|
|
1
|
+
import type { Nullable, ObjectMatrixPrimitiveType } from '../shared';
|
|
2
|
+
import { ObjectMatrix } from '../shared';
|
|
3
|
+
import type { HorizontalAlign, VerticalAlign, WrapStrategy } from '../types/enum';
|
|
4
|
+
import { BooleanNumber, FontItalic, FontWeight } from '../types/enum';
|
|
5
|
+
import type { IBorderData, ICellData, IDocumentData, IRange, IStyleData, ITextDecoration, ITextRotation } from '../types/interfaces';
|
|
6
|
+
import type { Styles } from './styles';
|
|
7
|
+
import type { Worksheet } from './worksheet';
|
|
8
|
+
/**
|
|
9
|
+
* getObjectValues options type
|
|
10
|
+
*/
|
|
11
|
+
interface IValueOptionsType {
|
|
12
|
+
/**
|
|
13
|
+
* set whether to include style
|
|
14
|
+
*/
|
|
15
|
+
isIncludeStyle?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export interface IRangeDependencies {
|
|
18
|
+
getStyles(): Readonly<Styles>;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Access and modify spreadsheet ranges.
|
|
22
|
+
*
|
|
23
|
+
* @remarks
|
|
24
|
+
* A range can be a single cell in a sheet or a group of adjacent cells in a sheet.
|
|
25
|
+
*
|
|
26
|
+
* Reference from: https://developers.google.com/apps-script/reference/spreadsheet/range
|
|
27
|
+
*
|
|
28
|
+
* @beta
|
|
29
|
+
*/
|
|
30
|
+
export declare class Range {
|
|
31
|
+
private readonly _deps;
|
|
32
|
+
private _range;
|
|
33
|
+
private _worksheet;
|
|
34
|
+
constructor(workSheet: Worksheet, range: IRange, _deps: IRangeDependencies);
|
|
35
|
+
static foreach(range: IRange, action: (row: number, column: number) => void): void;
|
|
36
|
+
/**
|
|
37
|
+
* get current range data
|
|
38
|
+
*
|
|
39
|
+
* @returns current range
|
|
40
|
+
*/
|
|
41
|
+
getRangeData(): IRange;
|
|
42
|
+
/**
|
|
43
|
+
* Returns the value of the top-left cell in the range. The value may be of type Number, Boolean, Date, or String
|
|
44
|
+
* depending on the value of the cell. Empty cells return an empty string.
|
|
45
|
+
* @returns The value in this cell
|
|
46
|
+
*/
|
|
47
|
+
getValue(): Nullable<ICellData>;
|
|
48
|
+
/**
|
|
49
|
+
* Returns the rectangular grid of values for this range.
|
|
50
|
+
*
|
|
51
|
+
* Returns a two-dimensional array of values, indexed by row, then by column. The values may be of type Number,
|
|
52
|
+
* Boolean, Date, or String, depending on the value of the cell. Empty cells are represented by an empty string
|
|
53
|
+
* in the array. Remember that while a range index starts at 0, 0, same as the JavaScript array is indexed from [0][0].
|
|
54
|
+
*
|
|
55
|
+
* In web apps, a Date value isn't a legal parameter. getValues() fails to return data to a web app if the range
|
|
56
|
+
* contains a cell with a Date value. Instead, transform all the values retrieved from the sheet to a supported
|
|
57
|
+
* JavaScript primitive like a Number, Boolean, or String.
|
|
58
|
+
*
|
|
59
|
+
* @returns A two-dimensional array of values.
|
|
60
|
+
*/
|
|
61
|
+
getValues(): Array<Array<Nullable<ICellData>>>;
|
|
62
|
+
/**
|
|
63
|
+
* get range matrix
|
|
64
|
+
*
|
|
65
|
+
* @returns range matrix
|
|
66
|
+
*/
|
|
67
|
+
getMatrix(): ObjectMatrix<ICellData>;
|
|
68
|
+
/**
|
|
69
|
+
* get range matrix object
|
|
70
|
+
*
|
|
71
|
+
* @returns range matrix object
|
|
72
|
+
*/
|
|
73
|
+
getMatrixObject(): ObjectMatrix<ICellData>;
|
|
74
|
+
/**
|
|
75
|
+
* Returns the displayed value of the top-left cell in the range. The value is a String. The displayed value takes into account date, time and currency formatting formatting, including formats applied automatically by the spreadsheet's Locale setting. Empty cells return an empty string.
|
|
76
|
+
*
|
|
77
|
+
* @returns The displayed value in this cell.
|
|
78
|
+
*/
|
|
79
|
+
getDisplayValue(): string | IDocumentData;
|
|
80
|
+
/**
|
|
81
|
+
* Returns the rectangular grid of values for this range.
|
|
82
|
+
*
|
|
83
|
+
* Returns a two-dimensional array of displayed values, indexed by row, then by column. The values are String objects. The displayed value takes into account date, time and currency formatting, including formats applied automatically by the spreadsheet's Locale setting. Empty cells are represented by an empty string in the array. Remember that while a range index starts at 0, 0, same as the JavaScript array is indexed from [0][0].
|
|
84
|
+
*
|
|
85
|
+
* @returns — A two-dimensional array of values.
|
|
86
|
+
*/
|
|
87
|
+
getDisplayValues(): Array<Array<string | IDocumentData>>;
|
|
88
|
+
/**
|
|
89
|
+
* Returns a string description of the range, in A1 notation.
|
|
90
|
+
*
|
|
91
|
+
* @returns The string description of the range in A1 notation.
|
|
92
|
+
*/
|
|
93
|
+
getA1Notation(): string;
|
|
94
|
+
/**
|
|
95
|
+
* Returns the background color of the top-left cell in the range (for example, '#ffffff').
|
|
96
|
+
*
|
|
97
|
+
* @returns — The color code of the background.
|
|
98
|
+
*/
|
|
99
|
+
getBackground(): string;
|
|
100
|
+
/**
|
|
101
|
+
* Returns the background colors of the cells in the range (for example, '#ffffff').
|
|
102
|
+
*
|
|
103
|
+
* @returns — A two-dimensional array of color codes of the backgrounds.
|
|
104
|
+
*/
|
|
105
|
+
getBackgrounds(): string[][];
|
|
106
|
+
/**
|
|
107
|
+
* Returns a given cell within a range.
|
|
108
|
+
*
|
|
109
|
+
* The row and column here are relative to the range
|
|
110
|
+
* e.g. "B2:D4", getCell(0,0) in this code returns the cell at B2
|
|
111
|
+
* @returns — A range containing a single cell at the specified coordinates.
|
|
112
|
+
*/
|
|
113
|
+
getCell(row: number, column: number): Range;
|
|
114
|
+
/**
|
|
115
|
+
* Returns the starting column position for this range
|
|
116
|
+
*
|
|
117
|
+
* @returns — The range's starting column position in the spreadsheet.
|
|
118
|
+
*/
|
|
119
|
+
getColumn(): number;
|
|
120
|
+
/**
|
|
121
|
+
* Returns the data of the object structure, and can set whether to bring styles
|
|
122
|
+
*/
|
|
123
|
+
getObjectValue(options?: IValueOptionsType): ICellData;
|
|
124
|
+
/**
|
|
125
|
+
* Returns the data of the object structure, and can set whether to bring styles
|
|
126
|
+
*
|
|
127
|
+
* @param options set whether to include style
|
|
128
|
+
* @returns Returns a value in object format
|
|
129
|
+
*/
|
|
130
|
+
getObjectValues(options?: IValueOptionsType): ObjectMatrixPrimitiveType<ICellData>;
|
|
131
|
+
/**
|
|
132
|
+
* Returns the font color of the cell in the top-left corner of the range, in CSS notation
|
|
133
|
+
*/
|
|
134
|
+
getFontColor(): string;
|
|
135
|
+
/**
|
|
136
|
+
* Returns the font colors of the cells in the range in CSS notation (such as '#ffffff' or 'white').
|
|
137
|
+
*/
|
|
138
|
+
getFontColors(): string[][];
|
|
139
|
+
/**
|
|
140
|
+
* Returns the font families of the cells in the range.
|
|
141
|
+
*/
|
|
142
|
+
getFontFamilies(): string[][];
|
|
143
|
+
/**
|
|
144
|
+
* Returns the font family of the cell in the top-left corner of the range.
|
|
145
|
+
*/
|
|
146
|
+
getFontFamily(): string;
|
|
147
|
+
/**
|
|
148
|
+
* Returns the underlines of the cells in the range.
|
|
149
|
+
*/
|
|
150
|
+
getUnderlines(): ITextDecoration[][];
|
|
151
|
+
/**
|
|
152
|
+
* Returns the underline of the cells in the range.
|
|
153
|
+
*/
|
|
154
|
+
getUnderline(): ITextDecoration;
|
|
155
|
+
/**
|
|
156
|
+
* Returns the overlines of the cells in the range.
|
|
157
|
+
*/
|
|
158
|
+
getOverlines(): ITextDecoration[][];
|
|
159
|
+
/**
|
|
160
|
+
* Returns the overline of the cells in the range.
|
|
161
|
+
*/
|
|
162
|
+
getOverline(): ITextDecoration;
|
|
163
|
+
/**
|
|
164
|
+
* Returns the strikeThrough of the cells in the range.
|
|
165
|
+
*/
|
|
166
|
+
getStrikeThrough(): ITextDecoration;
|
|
167
|
+
/**
|
|
168
|
+
* Returns the strikeThroughs of the cells in the range.
|
|
169
|
+
*/
|
|
170
|
+
private getStrikeThroughs;
|
|
171
|
+
/**
|
|
172
|
+
* Returns the font size in point size of the cell in the top-left corner of the range.
|
|
173
|
+
*/
|
|
174
|
+
getFontSize(): number;
|
|
175
|
+
/**
|
|
176
|
+
* Returns the font sizes of the cells in the range.
|
|
177
|
+
*/
|
|
178
|
+
getFontSizes(): number[][];
|
|
179
|
+
/**
|
|
180
|
+
* Returns the border info of the cells in the range.
|
|
181
|
+
*/
|
|
182
|
+
getBorder(): IBorderData;
|
|
183
|
+
getBorders(): IBorderData[][];
|
|
184
|
+
/**
|
|
185
|
+
* Returns the font style ('italic' or 'normal') of the cell in the top-left corner of the range.
|
|
186
|
+
*/
|
|
187
|
+
getFontStyle(): FontItalic;
|
|
188
|
+
/**
|
|
189
|
+
* Returns the font styles of the cells in the range.
|
|
190
|
+
*/
|
|
191
|
+
private getFontStyles;
|
|
192
|
+
/**
|
|
193
|
+
* Returns the font weight (normal/bold) of the cell in the top-left corner of the range.
|
|
194
|
+
* If the cell has rich text, the return value according to the textRuns of the rich text,
|
|
195
|
+
* when all styles of textRuns are bold, it will return FontWeight.BOLD,
|
|
196
|
+
* otherwise return FontWeight.NORMAL.
|
|
197
|
+
*/
|
|
198
|
+
getFontWeight(): FontWeight;
|
|
199
|
+
/**
|
|
200
|
+
* Returns the font weights of the cells in the range.
|
|
201
|
+
*/
|
|
202
|
+
private getFontWeights;
|
|
203
|
+
/**
|
|
204
|
+
* Returns the grid ID of the range's parent sheet.
|
|
205
|
+
*/
|
|
206
|
+
getGridId(): string;
|
|
207
|
+
/**
|
|
208
|
+
* Returns the height of the range.
|
|
209
|
+
*/
|
|
210
|
+
getHeight(): number;
|
|
211
|
+
/**
|
|
212
|
+
* Returns the horizontal alignment of the text (left/center/right) of the cell in the top-left corner of the range.
|
|
213
|
+
*/
|
|
214
|
+
getHorizontalAlignment(): HorizontalAlign;
|
|
215
|
+
/**
|
|
216
|
+
*Returns the horizontal alignments of the cells in the range.
|
|
217
|
+
*/
|
|
218
|
+
getHorizontalAlignments(): HorizontalAlign[][];
|
|
219
|
+
/**
|
|
220
|
+
* Returns the end column position.
|
|
221
|
+
*/
|
|
222
|
+
getLastColumn(): number;
|
|
223
|
+
/**
|
|
224
|
+
* Returns the end row position.
|
|
225
|
+
*/
|
|
226
|
+
getLastRow(): number;
|
|
227
|
+
/**
|
|
228
|
+
* Returns the number of columns in this range.
|
|
229
|
+
*/
|
|
230
|
+
getNumColumns(): number;
|
|
231
|
+
/**
|
|
232
|
+
* Returns the number of rows in this range.
|
|
233
|
+
*/
|
|
234
|
+
getNumRows(): number;
|
|
235
|
+
/**
|
|
236
|
+
* Returns the Rich Text value for the top left cell of the range, or null if the cell value is not text.
|
|
237
|
+
*/
|
|
238
|
+
getRichTextValue(): Nullable<IDocumentData | ''>;
|
|
239
|
+
/**
|
|
240
|
+
* Returns the Rich Text values for the cells in the range.
|
|
241
|
+
*/
|
|
242
|
+
getRichTextValues(): Array<Array<Nullable<IDocumentData | ''>>>;
|
|
243
|
+
/**
|
|
244
|
+
* Returns the row position for this range.
|
|
245
|
+
*/
|
|
246
|
+
getRowIndex(): number;
|
|
247
|
+
/**
|
|
248
|
+
* Returns the sheet this range belongs to.
|
|
249
|
+
*/
|
|
250
|
+
getSheet(): Worksheet;
|
|
251
|
+
/**
|
|
252
|
+
* Returns the text direction for the top left cell of the range.
|
|
253
|
+
*/
|
|
254
|
+
getTextDirection(): number;
|
|
255
|
+
/**
|
|
256
|
+
* Returns the text directions for the cells in the range.
|
|
257
|
+
*/
|
|
258
|
+
getTextDirections(): number[][];
|
|
259
|
+
/**
|
|
260
|
+
* Returns the text rotation settings for the top left cell of the range.
|
|
261
|
+
*/
|
|
262
|
+
getTextRotation(): ITextRotation;
|
|
263
|
+
/**
|
|
264
|
+
* Returns the text rotation settings for the cells in the range.
|
|
265
|
+
*/
|
|
266
|
+
getTextRotations(): ITextRotation[][];
|
|
267
|
+
/**
|
|
268
|
+
* Returns the text style for the top left cell of the range.
|
|
269
|
+
*/
|
|
270
|
+
getTextStyle(): Nullable<IStyleData>;
|
|
271
|
+
/**
|
|
272
|
+
* Returns the text styles for the cells in the range.
|
|
273
|
+
*/
|
|
274
|
+
getTextStyles(): Array<Array<Nullable<IStyleData>>>;
|
|
275
|
+
/**
|
|
276
|
+
* Returns the vertical alignment (top/middle/bottom) of the cell in the top-left corner of the range.
|
|
277
|
+
*/
|
|
278
|
+
getVerticalAlignment(): VerticalAlign;
|
|
279
|
+
/**
|
|
280
|
+
* Returns the vertical alignments of the cells in the range.
|
|
281
|
+
*/
|
|
282
|
+
getVerticalAlignments(): VerticalAlign[][];
|
|
283
|
+
/**
|
|
284
|
+
* Returns the width of the range in columns.
|
|
285
|
+
*/
|
|
286
|
+
getWidth(): number;
|
|
287
|
+
/**
|
|
288
|
+
* Returns whether the text in the cell wraps.
|
|
289
|
+
*/
|
|
290
|
+
getWrap(): BooleanNumber;
|
|
291
|
+
/**
|
|
292
|
+
* Returns whether the text in the cells wrap.
|
|
293
|
+
*/
|
|
294
|
+
getWraps(): BooleanNumber[][];
|
|
295
|
+
/**
|
|
296
|
+
* Returns the text wrapping strategies for the cells in the range.
|
|
297
|
+
*/
|
|
298
|
+
getWrapStrategies(): WrapStrategy[][];
|
|
299
|
+
/**
|
|
300
|
+
* Returns the text wrapping strategy for the top left cell of the range.
|
|
301
|
+
*/
|
|
302
|
+
getWrapStrategy(): WrapStrategy;
|
|
303
|
+
forEach(action: (row: number, column: number) => void): void;
|
|
304
|
+
/**
|
|
305
|
+
*
|
|
306
|
+
* @param arg Shorthand for the style that gets
|
|
307
|
+
* @returns style value
|
|
308
|
+
*/
|
|
309
|
+
private _getStyles;
|
|
310
|
+
}
|
|
311
|
+
export {};
|
|
312
|
+
//# sourceMappingURL=range.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"range.d.ts","sourceRoot":"","sources":["../../../src/sheets/range.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,yBAAyB,EAAE,MAAM,WAAW,CAAC;AACrE,OAAO,EAAE,YAAY,EAAS,MAAM,WAAW,CAAC;AAEhD,OAAO,KAAK,EAAE,eAAe,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAClF,OAAO,EAAE,aAAa,EAAE,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MAAM,KAAK,IAAI,GAAG,IAAI;IAI5D;;;;OAIG;IACH,OAAO,CAAC,UAAU;CAWrB"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { IRange } from '../types/interfaces/i-range';
|
|
2
|
+
import { AbsoluteRefType } from '../types/interfaces/i-range';
|
|
3
|
+
export interface IGridRangeName {
|
|
4
|
+
unitId: string;
|
|
5
|
+
sheetName: string;
|
|
6
|
+
range: IRange;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
* @param singleRefString for example A1 or B10, not A1:B10
|
|
11
|
+
*/
|
|
12
|
+
export declare function getAbsoluteRefTypeWithSingleString(singleRefString: string): AbsoluteRefType;
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @param refString for example A1:B10
|
|
16
|
+
*/
|
|
17
|
+
export declare function getAbsoluteRefTypeWitString(refString: string): {
|
|
18
|
+
startAbsoluteRefType: AbsoluteRefType;
|
|
19
|
+
endAbsoluteRefType: AbsoluteRefType;
|
|
20
|
+
} | {
|
|
21
|
+
startAbsoluteRefType: AbsoluteRefType;
|
|
22
|
+
endAbsoluteRefType?: undefined;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Serialize an `IRange` into a string.
|
|
26
|
+
* @param range The `IRange` to be serialized
|
|
27
|
+
*/
|
|
28
|
+
export declare function serializeRange(range: IRange): string;
|
|
29
|
+
/**
|
|
30
|
+
* Serialize an `IRange` and a sheetID into a string.
|
|
31
|
+
* @param sheetName
|
|
32
|
+
* @param range
|
|
33
|
+
* @returns
|
|
34
|
+
*/
|
|
35
|
+
export declare function serializeRangeWithSheet(sheetName: string, range: IRange): string;
|
|
36
|
+
/**
|
|
37
|
+
* Serialize an `IRange` and a sheetID into a string.
|
|
38
|
+
* @param unit unitId or unitName
|
|
39
|
+
* @param sheetName
|
|
40
|
+
* @param range
|
|
41
|
+
* @returns
|
|
42
|
+
*/
|
|
43
|
+
export declare function serializeRangeWithSpreadsheet(unit: string, sheetName: string, range: IRange): string;
|
|
44
|
+
export declare function serializeRangeToRefString(gridRangeName: IGridRangeName): string;
|
|
45
|
+
export declare function deserializeRangeWithSheet(refString: string): IGridRangeName;
|
|
46
|
+
//# sourceMappingURL=reference.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reference.d.ts","sourceRoot":"","sources":["../../../src/sheets/reference.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAM9D,MAAM,WAAW,cAAc;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;CACjB;AAED;;;GAGG;AACH,wBAAgB,kCAAkC,CAAC,eAAe,EAAE,MAAM,mBAiBzE;AAED;;;GAGG;AACH,wBAAgB,2BAA2B,CAAC,SAAS,EAAE,MAAM;;;;;;EAiB5D;AAsBD;;;GAGG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAkBpD;AAED;;;;;GAKG;AACH,wBAAgB,uBAAuB,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAEhF;AAED;;;;;;GAMG;AACH,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAEpG;AAED,wBAAgB,yBAAyB,CAAC,aAAa,EAAE,cAAc,UAYtE;AAeD,wBAAgB,yBAAyB,CAAC,SAAS,EAAE,MAAM,GAAG,cAAc,CAoE3E"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { Nullable, ObjectArrayType } from '../shared';
|
|
2
|
+
import { ObjectArray } from '../shared';
|
|
3
|
+
import type { IRange, IRowData, IWorksheetData } from '../types/interfaces';
|
|
4
|
+
/**
|
|
5
|
+
* Manage configuration information of all rows, get row height, row length, set row height, etc.
|
|
6
|
+
*
|
|
7
|
+
* @deprecated This class is not necessary. It increases the complexity of the code and does not bring any benefits.
|
|
8
|
+
*/
|
|
9
|
+
export declare class RowManager {
|
|
10
|
+
private readonly _config;
|
|
11
|
+
private _rowData;
|
|
12
|
+
constructor(_config: IWorksheetData, data: ObjectArrayType<Partial<IRowData>>);
|
|
13
|
+
/**
|
|
14
|
+
* Get height and hidden status of columns in the sheet
|
|
15
|
+
* @returns
|
|
16
|
+
*/
|
|
17
|
+
getRowData(): ObjectArray<IRowData>;
|
|
18
|
+
getRowDatas(rowPos: number, numRows: number): ObjectArray<IRowData>;
|
|
19
|
+
getRowHeight(rowPos: number): number;
|
|
20
|
+
getRowHeight(rowPos: number, count: number): number;
|
|
21
|
+
/**
|
|
22
|
+
* Get row data of given row
|
|
23
|
+
* @param rowPos row index
|
|
24
|
+
* @returns
|
|
25
|
+
*/
|
|
26
|
+
getRow(rowPos: number): Nullable<IRowData>;
|
|
27
|
+
/**
|
|
28
|
+
* Get given row data or create a row data when it's null
|
|
29
|
+
* @param rowPos row index
|
|
30
|
+
* @returns
|
|
31
|
+
*/
|
|
32
|
+
getRowOrCreate(rowPos: number): IRowData;
|
|
33
|
+
getHiddenRows(start?: number, end?: number): IRange[];
|
|
34
|
+
getRowVisible(rowPos: number): boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Get count of row in the sheet
|
|
37
|
+
* @returns
|
|
38
|
+
*/
|
|
39
|
+
getSize(): number;
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=row-manager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"row-manager.d.ts","sourceRoot":"","sources":["../../../src/sheets/row-manager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAS,MAAM,WAAW,CAAC;AAE/C,OAAO,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAG5E;;;;GAIG;AACH,qBAAa,UAAU;IAIf,OAAO,CAAC,QAAQ,CAAC,OAAO;IAH5B,OAAO,CAAC,QAAQ,CAAwB;gBAGnB,OAAO,EAAE,cAAc,EACxC,IAAI,EAAE,eAAe,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;IAK5C;;;OAGG;IACH,UAAU,IAAI,WAAW,CAAC,QAAQ,CAAC;IAInC,WAAW,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,WAAW,CAAC,QAAQ,CAAC;IASnE,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM;IACpC,YAAY,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM;IAmBnD;;;;OAIG;IACH,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,QAAQ,CAAC,QAAQ,CAAC;IAK1C;;;;OAIG;IACH,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,QAAQ;IAaxC,aAAa,CAAC,KAAK,GAAE,MAAU,EAAE,GAAG,GAAE,MAAsC,GAAG,MAAM,EAAE;IA8BvF,aAAa,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO;IAStC;;;OAGG;IACH,OAAO,IAAI,MAAM;CAGpB"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { IKeyType, Nullable } from '../shared';
|
|
2
|
+
import type { ICellData, IStyleData } from '../types/interfaces';
|
|
3
|
+
/**
|
|
4
|
+
* Styles in a workbook, cells locate styles based on style IDs
|
|
5
|
+
*
|
|
6
|
+
* TODO@Dushusir: Cachemap needs to follow style to clear cleared following styles
|
|
7
|
+
*/
|
|
8
|
+
export declare class Styles {
|
|
9
|
+
private _styles;
|
|
10
|
+
private _cacheMap;
|
|
11
|
+
private _maxCacheSize;
|
|
12
|
+
constructor(styles?: IKeyType<Nullable<IStyleData>>, maxCacheSize?: number);
|
|
13
|
+
each(callback: (value: [string, Nullable<IStyleData>], index: number, array: Array<[string, Nullable<IStyleData>]>) => void): this;
|
|
14
|
+
search(data: IStyleData): string;
|
|
15
|
+
get(id: string | Nullable<IStyleData>): Nullable<IStyleData>;
|
|
16
|
+
add(data: IStyleData): string;
|
|
17
|
+
setValue(data: Nullable<IStyleData>): Nullable<string>;
|
|
18
|
+
toJSON(): IKeyType<Nullable<IStyleData>>;
|
|
19
|
+
getStyleByCell(cell: Nullable<ICellData>): Nullable<IStyleData>;
|
|
20
|
+
private _generateCacheMap;
|
|
21
|
+
private getExistingStyleId;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/sheets/styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAEpD,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjE;;;;GAIG;AACH,qBAAa,MAAM;IACf,OAAO,CAAC,OAAO,CAAiC;IAEhD,OAAO,CAAC,SAAS,CAA6B;IAE9C,OAAO,CAAC,aAAa,CAAS;gBAElB,MAAM,GAAE,QAAQ,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAM,EAAE,YAAY,SAAM;IAM3E,IAAI,CACA,QAAQ,EAAE,CACN,KAAK,EAAE,CAAC,MAAM,EAAE,QAAQ,CAAC,UAAU,CAAC,CAAC,EACrC,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,KAAK,CAAC,CAAC,MAAM,EAAE,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC,KAC3C,IAAI;IAMb,MAAM,CAAC,IAAI,EAAE,UAAU,GAAG,MAAM;IAoBhC,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,QAAQ,CAAC,UAAU,CAAC,GAAG,QAAQ,CAAC,UAAU,CAAC;IAO5D,GAAG,CAAC,IAAI,EAAE,UAAU,GAAG,MAAM;IAiB7B,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC,UAAU,CAAC,GAAG,QAAQ,CAAC,MAAM,CAAC;IAStD,MAAM,IAAI,QAAQ,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;IAIxC,cAAc,CAAC,IAAI,EAAE,QAAQ,CAAC,SAAS,CAAC,GAAG,QAAQ,CAAC,UAAU,CAAC;IAW/D,OAAO,CAAC,iBAAiB;IAazB,OAAO,CAAC,kBAAkB;CAS7B"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { IDisposable } from '@wendellhu/redi';
|
|
2
|
+
import type { Nullable } from '../common/type-utils';
|
|
3
|
+
import { Disposable } from '../shared/lifecycle';
|
|
4
|
+
import type { ICellData } from '../types/interfaces/i-cell-data';
|
|
5
|
+
export interface ICellContentInterceptor {
|
|
6
|
+
getCell(row: number, col: number): Nullable<ICellData>;
|
|
7
|
+
}
|
|
8
|
+
export interface IRowFilteredInterceptor {
|
|
9
|
+
}
|
|
10
|
+
export interface IRowVisibleInterceptor {
|
|
11
|
+
}
|
|
12
|
+
export interface IColVisibleInterceptor {
|
|
13
|
+
}
|
|
14
|
+
export interface ISheetViewModel {
|
|
15
|
+
registerCellContentInterceptor(interceptor: ICellContentInterceptor): IDisposable;
|
|
16
|
+
registerRowFilteredInterceptor(interceptor: IRowFilteredInterceptor): IDisposable;
|
|
17
|
+
registerRowVisibleInterceptor(interceptor: IRowVisibleInterceptor): IDisposable;
|
|
18
|
+
registerColVisibleInterceptor(interceptor: IColVisibleInterceptor): IDisposable;
|
|
19
|
+
getCell(row: number, col: number): Nullable<ICellData>;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* SheetViewModel
|
|
23
|
+
*/
|
|
24
|
+
export declare class SheetViewModel extends Disposable implements ISheetViewModel {
|
|
25
|
+
private readonly _cellContentInterceptors;
|
|
26
|
+
private readonly _rowFilteredInterceptors;
|
|
27
|
+
private readonly _rowVisibleInterceptors;
|
|
28
|
+
private readonly _colVisibleInterceptors;
|
|
29
|
+
dispose(): void;
|
|
30
|
+
getCell(row: number, col: number): Nullable<ICellData>;
|
|
31
|
+
registerCellContentInterceptor(interceptor: ICellContentInterceptor): IDisposable;
|
|
32
|
+
registerRowFilteredInterceptor(interceptor: IRowFilteredInterceptor): IDisposable;
|
|
33
|
+
registerRowVisibleInterceptor(interceptor: IRowVisibleInterceptor): IDisposable;
|
|
34
|
+
registerColVisibleInterceptor(interceptor: IColVisibleInterceptor): IDisposable;
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=view-model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"view-model.d.ts","sourceRoot":"","sources":["../../../src/sheets/view-model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAGnD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,UAAU,EAAgB,MAAM,qBAAqB,CAAC;AAC/D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAEjE,MAAM,WAAW,uBAAuB;IACpC,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,QAAQ,CAAC,SAAS,CAAC,CAAC;CAC1D;AAED,MAAM,WAAW,uBAAuB;CAAG;AAE3C,MAAM,WAAW,sBAAsB;CAAG;AAE1C,MAAM,WAAW,sBAAsB;CAAG;AAE1C,MAAM,WAAW,eAAe;IAC5B,8BAA8B,CAAC,WAAW,EAAE,uBAAuB,GAAG,WAAW,CAAC;IAClF,8BAA8B,CAAC,WAAW,EAAE,uBAAuB,GAAG,WAAW,CAAC;IAClF,6BAA6B,CAAC,WAAW,EAAE,sBAAsB,GAAG,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