@univerjs/core 0.1.0-alpha.1 → 0.1.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.txt +178 -0
- package/lib/cjs/index.js +11 -15323
- package/lib/es/index.js +7369 -0
- package/lib/types/basics/index.d.ts +15 -1
- package/lib/types/basics/registry.d.ts +12 -4
- package/lib/types/basics/univer-doc.d.ts +15 -1
- package/lib/types/basics/univer-sheet.d.ts +15 -1
- package/lib/types/basics/univer-slide.d.ts +15 -1
- package/lib/types/basics/univer.d.ts +18 -4
- package/lib/types/common/array.d.ts +13 -5
- package/lib/types/common/const.d.ts +15 -1
- package/lib/types/common/interceptor.d.ts +15 -1
- package/lib/types/common/memory-cursor.d.ts +15 -1
- package/lib/types/common/request-immediate-macro-task.d.ts +16 -0
- package/lib/types/common/sequence.d.ts +15 -1
- package/lib/types/common/type-utils.d.ts +13 -2
- package/lib/types/docs/data-model/__tests__/apply-utils.spec.d.ts +15 -1
- package/lib/types/docs/data-model/apply-utils/common.d.ts +15 -1
- package/lib/types/docs/data-model/apply-utils/delete-apply.d.ts +15 -1
- package/lib/types/docs/data-model/apply-utils/insert-apply.d.ts +15 -1
- package/lib/types/docs/data-model/apply-utils/update-apply.d.ts +15 -1
- package/lib/types/docs/data-model/document-data-model.d.ts +15 -1
- package/lib/types/docs/data-model/index.d.ts +15 -1
- package/lib/types/docs/data-model/mutation-types.d.ts +15 -1
- package/lib/types/docs/data-model/types.d.ts +15 -1
- package/lib/types/docs/index.d.ts +15 -1
- package/lib/types/index.d.ts +18 -3
- package/lib/types/observer/index.d.ts +15 -1
- package/lib/types/observer/observable-hooks.d.ts +15 -1
- package/lib/types/observer/observable.d.ts +15 -1
- package/lib/types/plugin/plugin.d.ts +15 -1
- package/lib/types/services/auth/auth.service.d.ts +15 -1
- package/lib/types/services/command/command.service.d.ts +30 -3
- package/lib/types/services/command/command.service.spec.d.ts +15 -1
- package/lib/types/services/config/config.service.d.ts +15 -1
- package/lib/types/services/context/context.d.ts +15 -1
- package/lib/types/services/context/context.service.d.ts +15 -1
- package/lib/types/services/error/error.service.d.ts +15 -1
- package/lib/types/services/floating-object/floating-object-interfaces.d.ts +15 -1
- package/lib/types/services/floating-object/floating-object-manager.service.d.ts +15 -1
- package/lib/types/services/instance/instance.service.d.ts +15 -1
- package/lib/types/services/lifecycle/lifecycle.d.ts +15 -1
- package/lib/types/services/lifecycle/lifecycle.service.d.ts +15 -1
- package/lib/types/services/local-storage/local-storage.service.d.ts +15 -1
- package/lib/types/services/locale/locale.service.d.ts +15 -1
- package/lib/types/services/log/log.service.d.ts +24 -6
- package/lib/types/services/permission/index.d.ts +15 -1
- package/lib/types/services/permission/permission-point.d.ts +15 -1
- package/lib/types/services/permission/permission.service.d.ts +15 -1
- package/lib/types/services/permission/univer.permission.service.d.ts +15 -1
- package/lib/types/services/resource-manager/resource-manager.service.d.ts +15 -1
- package/lib/types/services/resource-manager/type.d.ts +21 -1
- package/lib/types/services/theme/theme.service.d.ts +15 -1
- package/lib/types/services/undoredo/undoredo.service.d.ts +15 -1
- package/lib/types/shared/__test__/object-matrix.spec.d.ts +15 -1
- package/lib/types/shared/__test__/ref-alias.spec.d.ts +15 -1
- package/lib/types/shared/array-search.d.ts +15 -1
- package/lib/types/shared/blob.d.ts +16 -0
- package/lib/types/shared/color/color-builder.d.ts +15 -1
- package/lib/types/shared/color/color.d.ts +15 -1
- package/lib/types/shared/command-enum.d.ts +15 -1
- package/lib/types/shared/common.d.ts +15 -1
- package/lib/types/shared/compare.d.ts +15 -1
- package/lib/types/shared/doc-tool.d.ts +15 -1
- package/lib/types/shared/gen-name.d.ts +15 -1
- package/lib/types/shared/generate.d.ts +15 -1
- package/lib/types/shared/hash-algorithm.d.ts +15 -1
- package/lib/types/shared/index.d.ts +16 -12
- package/lib/types/shared/lifecycle.d.ts +15 -1
- package/lib/types/shared/locale.d.ts +15 -1
- package/lib/types/shared/lru/index.d.ts +15 -1
- package/lib/types/shared/lru/lru-helper.d.ts +15 -1
- package/lib/types/shared/lru/lru-map.d.ts +15 -1
- package/lib/types/shared/object-array.d.ts +15 -1
- package/lib/types/shared/object-matrix.d.ts +38 -2
- package/lib/types/shared/permission/index.d.ts +15 -1
- package/lib/types/shared/props-from.d.ts +15 -1
- package/lib/types/shared/rectangle.d.ts +15 -1
- package/lib/types/shared/ref-alias.d.ts +13 -9
- package/lib/types/shared/row-col-iter.d.ts +15 -1
- package/lib/types/shared/sequence.d.ts +13 -4
- package/lib/types/shared/sort-rules.d.ts +15 -1
- package/lib/types/shared/tools.d.ts +15 -1
- package/lib/types/shared/types.d.ts +13 -2
- package/lib/types/sheets/__tests__/create-core-test-bed.d.ts +15 -1
- package/lib/types/sheets/__tests__/styles.spec.d.ts +15 -1
- package/lib/types/sheets/column-manager.d.ts +15 -8
- package/lib/types/sheets/range.d.ts +15 -15
- package/lib/types/sheets/reference.d.ts +15 -1
- package/lib/types/sheets/row-manager.d.ts +15 -1
- package/lib/types/sheets/styles.d.ts +17 -3
- package/lib/types/sheets/view-model.d.ts +19 -5
- package/lib/types/sheets/workbook.d.ts +17 -1
- package/lib/types/sheets/worksheet.d.ts +22 -3
- package/lib/types/slides/domain/index.d.ts +15 -1
- package/lib/types/slides/domain/slide-model.d.ts +15 -1
- package/lib/types/types/const/action-names.d.ts +15 -1
- package/lib/types/types/const/const.d.ts +15 -1
- package/lib/types/types/const/doc-action-names.d.ts +15 -1
- package/lib/types/types/const/extension-names.d.ts +13 -2
- package/lib/types/types/const/index.d.ts +15 -1
- package/lib/types/types/const/theme-color-map.d.ts +15 -1
- package/lib/types/types/enum/auto-fill-series.d.ts +11 -5
- package/lib/types/types/enum/border-style-types.d.ts +13 -2
- package/lib/types/types/enum/color-type.d.ts +13 -2
- package/lib/types/types/enum/common-hide-types.d.ts +13 -2
- package/lib/types/types/enum/condition-type.d.ts +13 -2
- package/lib/types/types/enum/copy-paste-type.d.ts +12 -4
- package/lib/types/types/enum/developer-metadata-visibility.d.ts +13 -2
- package/lib/types/types/enum/dimension.d.ts +12 -3
- package/lib/types/types/enum/direction.d.ts +15 -1
- package/lib/types/types/enum/format-type.d.ts +13 -2
- package/lib/types/types/enum/group-control-toggle-position.d.ts +13 -2
- package/lib/types/types/enum/index.d.ts +15 -1
- package/lib/types/types/enum/interpolation-point-type.d.ts +13 -2
- package/lib/types/types/enum/locale-type.d.ts +12 -3
- package/lib/types/types/enum/place-holder-type.d.ts +15 -1
- package/lib/types/types/enum/protection-type.d.ts +13 -2
- package/lib/types/types/enum/relative-date.d.ts +13 -2
- package/lib/types/types/enum/shape-type.d.ts +15 -1
- package/lib/types/types/enum/sheet-types.d.ts +13 -2
- package/lib/types/types/enum/text-style.d.ts +13 -2
- package/lib/types/types/enum/theme-color-type.d.ts +10 -19
- package/lib/types/types/interfaces/i-cell-data.d.ts +25 -9
- package/lib/types/types/interfaces/i-column-data.d.ts +15 -1
- package/lib/types/types/interfaces/i-document-data.d.ts +15 -1
- package/lib/types/types/interfaces/i-extra-model-data.d.ts +15 -1
- package/lib/types/types/interfaces/i-freeze.d.ts +13 -3
- package/lib/types/types/interfaces/i-image-properties.d.ts +13 -2
- package/lib/types/types/interfaces/i-placeholder.d.ts +15 -1
- package/lib/types/types/interfaces/i-range.d.ts +15 -1
- package/lib/types/types/interfaces/i-row-data.d.ts +15 -1
- package/lib/types/types/interfaces/i-selection-data.d.ts +15 -1
- package/lib/types/types/interfaces/i-service-data.d.ts +13 -2
- package/lib/types/types/interfaces/i-shape-properties.d.ts +15 -1
- package/lib/types/types/interfaces/i-slide-data.d.ts +15 -1
- package/lib/types/types/interfaces/i-style-data.d.ts +15 -1
- package/lib/types/types/interfaces/i-univer-data.d.ts +17 -1
- package/lib/types/types/interfaces/i-workbook-data.d.ts +15 -1
- package/lib/types/types/interfaces/i-worksheet-data.d.ts +19 -1
- package/lib/types/types/interfaces/i-worksheet-order-data.d.ts +13 -2
- package/lib/types/types/interfaces/index.d.ts +15 -1
- package/lib/umd/index.js +11 -0
- package/package.json +20 -15
- package/LICENSE +0 -21
- package/lib/esm/index.js +0 -14601
- package/lib/types/basics/index.d.ts.map +0 -1
- package/lib/types/basics/registry.d.ts.map +0 -1
- package/lib/types/basics/univer-doc.d.ts.map +0 -1
- package/lib/types/basics/univer-sheet.d.ts.map +0 -1
- package/lib/types/basics/univer-slide.d.ts.map +0 -1
- package/lib/types/basics/univer.d.ts.map +0 -1
- package/lib/types/common/array.d.ts.map +0 -1
- package/lib/types/common/color/color-builder.d.ts +0 -1
- package/lib/types/common/color/color-builder.d.ts.map +0 -1
- package/lib/types/common/const.d.ts.map +0 -1
- package/lib/types/common/interceptor.d.ts.map +0 -1
- package/lib/types/common/memory-cursor.d.ts.map +0 -1
- package/lib/types/common/sequence.d.ts.map +0 -1
- package/lib/types/common/type-utils.d.ts.map +0 -1
- package/lib/types/docs/data-model/__tests__/apply-utils.spec.d.ts.map +0 -1
- package/lib/types/docs/data-model/apply-utils/common.d.ts.map +0 -1
- package/lib/types/docs/data-model/apply-utils/delete-apply.d.ts.map +0 -1
- package/lib/types/docs/data-model/apply-utils/insert-apply.d.ts.map +0 -1
- package/lib/types/docs/data-model/apply-utils/update-apply.d.ts.map +0 -1
- package/lib/types/docs/data-model/document-data-model.d.ts.map +0 -1
- package/lib/types/docs/data-model/index.d.ts.map +0 -1
- package/lib/types/docs/data-model/mutation-types.d.ts.map +0 -1
- package/lib/types/docs/data-model/types.d.ts.map +0 -1
- package/lib/types/docs/index.d.ts.map +0 -1
- package/lib/types/index.d.ts.map +0 -1
- package/lib/types/observer/index.d.ts.map +0 -1
- package/lib/types/observer/observable-hooks.d.ts.map +0 -1
- package/lib/types/observer/observable.d.ts.map +0 -1
- package/lib/types/plugin/plugin.d.ts.map +0 -1
- package/lib/types/services/auth/auth.service.d.ts.map +0 -1
- package/lib/types/services/command/command.service.d.ts.map +0 -1
- package/lib/types/services/command/command.service.spec.d.ts.map +0 -1
- package/lib/types/services/config/config.service.d.ts.map +0 -1
- package/lib/types/services/context/context.d.ts.map +0 -1
- package/lib/types/services/context/context.service.d.ts.map +0 -1
- package/lib/types/services/error/error.service.d.ts.map +0 -1
- package/lib/types/services/floating-object/floating-object-interfaces.d.ts.map +0 -1
- package/lib/types/services/floating-object/floating-object-manager.service.d.ts.map +0 -1
- package/lib/types/services/instance/instance.service.d.ts.map +0 -1
- package/lib/types/services/lifecycle/lifecycle.d.ts.map +0 -1
- package/lib/types/services/lifecycle/lifecycle.service.d.ts.map +0 -1
- package/lib/types/services/local-storage/local-storage.service.d.ts.map +0 -1
- package/lib/types/services/locale/locale.service.d.ts.map +0 -1
- package/lib/types/services/log/log.service.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/permission.service.d.ts.map +0 -1
- package/lib/types/services/permission/univer.permission.service.d.ts.map +0 -1
- package/lib/types/services/resource-manager/resource-manager.service.d.ts.map +0 -1
- package/lib/types/services/resource-manager/type.d.ts.map +0 -1
- package/lib/types/services/theme/theme.service.d.ts.map +0 -1
- package/lib/types/services/undoredo/undoredo.service.d.ts.map +0 -1
- package/lib/types/shared/__test__/object-matrix.spec.d.ts.map +0 -1
- package/lib/types/shared/__test__/ref-alias.spec.d.ts.map +0 -1
- package/lib/types/shared/array-search.d.ts.map +0 -1
- package/lib/types/shared/color/color-builder.d.ts.map +0 -1
- package/lib/types/shared/color/color.d.ts.map +0 -1
- package/lib/types/shared/color-builder.d.ts +0 -1
- package/lib/types/shared/color-builder.d.ts.map +0 -1
- package/lib/types/shared/command-enum.d.ts.map +0 -1
- package/lib/types/shared/common.d.ts.map +0 -1
- package/lib/types/shared/compare.d.ts.map +0 -1
- package/lib/types/shared/date-time.d.ts +0 -6
- package/lib/types/shared/date-time.d.ts.map +0 -1
- package/lib/types/shared/doc-tool.d.ts.map +0 -1
- package/lib/types/shared/drop-cell.d.ts +0 -1
- package/lib/types/shared/drop-cell.d.ts.map +0 -1
- package/lib/types/shared/excel-date-time.d.ts +0 -6
- package/lib/types/shared/excel-date-time.d.ts.map +0 -1
- package/lib/types/shared/gen-name.d.ts.map +0 -1
- package/lib/types/shared/generate.d.ts.map +0 -1
- package/lib/types/shared/group-model.d.ts +0 -4
- package/lib/types/shared/group-model.d.ts.map +0 -1
- package/lib/types/shared/hash-algorithm.d.ts.map +0 -1
- package/lib/types/shared/index.d.ts.map +0 -1
- package/lib/types/shared/io-http.d.ts +0 -84
- package/lib/types/shared/io-http.d.ts.map +0 -1
- package/lib/types/shared/io-socket.d.ts +0 -48
- package/lib/types/shared/io-socket.d.ts.map +0 -1
- package/lib/types/shared/lifecycle.d.ts.map +0 -1
- package/lib/types/shared/locale.d.ts.map +0 -1
- package/lib/types/shared/logger.d.ts +0 -12
- package/lib/types/shared/logger.d.ts.map +0 -1
- package/lib/types/shared/lru/index.d.ts.map +0 -1
- package/lib/types/shared/lru/lru-helper.d.ts.map +0 -1
- package/lib/types/shared/lru/lru-map.d.ts.map +0 -1
- package/lib/types/shared/migrate/border.d.ts +0 -3
- package/lib/types/shared/migrate/border.d.ts.map +0 -1
- package/lib/types/shared/migrate/index.d.ts +0 -2
- package/lib/types/shared/migrate/index.d.ts.map +0 -1
- package/lib/types/shared/migrate/migrate.d.ts +0 -3
- package/lib/types/shared/migrate/migrate.d.ts.map +0 -1
- package/lib/types/shared/object-array.d.ts.map +0 -1
- package/lib/types/shared/object-matrix.d.ts.map +0 -1
- package/lib/types/shared/permission/index.d.ts.map +0 -1
- package/lib/types/shared/props-from.d.ts.map +0 -1
- package/lib/types/shared/random.d.ts +0 -7
- package/lib/types/shared/random.d.ts.map +0 -1
- package/lib/types/shared/rect-tree/border-tree.d.ts +0 -30
- package/lib/types/shared/rect-tree/border-tree.d.ts.map +0 -1
- package/lib/types/shared/rect-tree/es-rect-tree.d.ts +0 -9
- package/lib/types/shared/rect-tree/es-rect-tree.d.ts.map +0 -1
- package/lib/types/shared/rect-tree/merge-tree.d.ts +0 -1
- package/lib/types/shared/rect-tree/merge-tree.d.ts.map +0 -1
- package/lib/types/shared/rect-tree/quick-select.d.ts +0 -3
- package/lib/types/shared/rect-tree/quick-select.d.ts.map +0 -1
- package/lib/types/shared/rect-tree/rect-tree.d.ts +0 -60
- package/lib/types/shared/rect-tree/rect-tree.d.ts.map +0 -1
- package/lib/types/shared/rect-tree/styles-tree.d.ts +0 -1
- package/lib/types/shared/rect-tree/styles-tree.d.ts.map +0 -1
- package/lib/types/shared/rectangle.d.ts.map +0 -1
- package/lib/types/shared/ref-alias.d.ts.map +0 -1
- package/lib/types/shared/row-col-iter.d.ts.map +0 -1
- package/lib/types/shared/sequence.d.ts.map +0 -1
- package/lib/types/shared/serialize/index.d.ts +0 -5
- package/lib/types/shared/serialize/index.d.ts.map +0 -1
- package/lib/types/shared/serialize/sequence.d.ts +0 -4
- package/lib/types/shared/serialize/sequence.d.ts.map +0 -1
- package/lib/types/shared/serialize/serialize-manager.d.ts +0 -17
- package/lib/types/shared/serialize/serialize-manager.d.ts.map +0 -1
- package/lib/types/shared/serialize/serialize.d.ts +0 -8
- package/lib/types/shared/serialize/serialize.d.ts.map +0 -1
- package/lib/types/shared/serialize/serializer.d.ts +0 -14
- package/lib/types/shared/serialize/serializer.d.ts.map +0 -1
- package/lib/types/shared/sort-rules.d.ts.map +0 -1
- package/lib/types/shared/tools.d.ts.map +0 -1
- package/lib/types/shared/tuples.d.ts +0 -12
- package/lib/types/shared/tuples.d.ts.map +0 -1
- package/lib/types/shared/type-store.d.ts +0 -10
- package/lib/types/shared/type-store.d.ts.map +0 -1
- package/lib/types/shared/types.d.ts.map +0 -1
- package/lib/types/sheets/__tests__/create-core-test-bed.d.ts.map +0 -1
- package/lib/types/sheets/__tests__/styles.spec.d.ts.map +0 -1
- package/lib/types/sheets/column-manager.d.ts.map +0 -1
- package/lib/types/sheets/range.d.ts.map +0 -1
- package/lib/types/sheets/reference.d.ts.map +0 -1
- package/lib/types/sheets/row-manager.d.ts.map +0 -1
- package/lib/types/sheets/styles.d.ts.map +0 -1
- package/lib/types/sheets/view-model.d.ts.map +0 -1
- package/lib/types/sheets/workbook.d.ts.map +0 -1
- package/lib/types/sheets/worksheet.d.ts.map +0 -1
- package/lib/types/slides/domain/index.d.ts.map +0 -1
- package/lib/types/slides/domain/slide-model.d.ts.map +0 -1
- package/lib/types/types/const/action-names.d.ts.map +0 -1
- package/lib/types/types/const/const.d.ts.map +0 -1
- package/lib/types/types/const/doc-action-names.d.ts.map +0 -1
- package/lib/types/types/const/extension-names.d.ts.map +0 -1
- package/lib/types/types/const/index.d.ts.map +0 -1
- package/lib/types/types/const/theme-color-map.d.ts.map +0 -1
- package/lib/types/types/enum/auto-fill-series.d.ts.map +0 -1
- package/lib/types/types/enum/border-style-types.d.ts.map +0 -1
- package/lib/types/types/enum/color-type.d.ts.map +0 -1
- package/lib/types/types/enum/common-hide-types.d.ts.map +0 -1
- package/lib/types/types/enum/condition-type.d.ts.map +0 -1
- package/lib/types/types/enum/copy-paste-type.d.ts.map +0 -1
- package/lib/types/types/enum/developer-metadata-visibility.d.ts.map +0 -1
- package/lib/types/types/enum/dimension.d.ts.map +0 -1
- package/lib/types/types/enum/direction.d.ts.map +0 -1
- package/lib/types/types/enum/format-type.d.ts.map +0 -1
- package/lib/types/types/enum/group-control-toggle-position.d.ts.map +0 -1
- package/lib/types/types/enum/index.d.ts.map +0 -1
- package/lib/types/types/enum/interpolation-point-type.d.ts.map +0 -1
- package/lib/types/types/enum/locale-type.d.ts.map +0 -1
- package/lib/types/types/enum/place-holder-type.d.ts.map +0 -1
- package/lib/types/types/enum/protection-type.d.ts.map +0 -1
- package/lib/types/types/enum/relative-date.d.ts.map +0 -1
- package/lib/types/types/enum/shape-type.d.ts.map +0 -1
- package/lib/types/types/enum/sheet-types.d.ts.map +0 -1
- package/lib/types/types/enum/text-style.d.ts.map +0 -1
- package/lib/types/types/enum/theme-color-type.d.ts.map +0 -1
- package/lib/types/types/interfaces/i-cell-data.d.ts.map +0 -1
- package/lib/types/types/interfaces/i-column-data.d.ts.map +0 -1
- package/lib/types/types/interfaces/i-document-data.d.ts.map +0 -1
- package/lib/types/types/interfaces/i-extra-model-data.d.ts.map +0 -1
- package/lib/types/types/interfaces/i-freeze.d.ts.map +0 -1
- package/lib/types/types/interfaces/i-image-properties.d.ts.map +0 -1
- package/lib/types/types/interfaces/i-placeholder.d.ts.map +0 -1
- package/lib/types/types/interfaces/i-range.d.ts.map +0 -1
- package/lib/types/types/interfaces/i-row-data.d.ts.map +0 -1
- package/lib/types/types/interfaces/i-selection-data.d.ts.map +0 -1
- package/lib/types/types/interfaces/i-service-data.d.ts.map +0 -1
- package/lib/types/types/interfaces/i-shape-properties.d.ts.map +0 -1
- package/lib/types/types/interfaces/i-slide-data.d.ts.map +0 -1
- package/lib/types/types/interfaces/i-style-data.d.ts.map +0 -1
- package/lib/types/types/interfaces/i-univer-data.d.ts.map +0 -1
- package/lib/types/types/interfaces/i-workbook-data.d.ts.map +0 -1
- package/lib/types/types/interfaces/i-worksheet-data.d.ts.map +0 -1
- package/lib/types/types/interfaces/i-worksheet-order-data.d.ts.map +0 -1
- package/lib/types/types/interfaces/index.d.ts.map +0 -1
|
@@ -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 { Ctor, Injector } from '@wendellhu/redi';
|
|
2
17
|
export type PluginCtor<T extends Plugin> = Ctor<T> & {
|
|
3
18
|
type: PluginType;
|
|
@@ -46,4 +61,3 @@ export declare class PluginRegistry {
|
|
|
46
61
|
getRegisterPlugins(type: PluginType): [IPluginRegistryItem];
|
|
47
62
|
}
|
|
48
63
|
export {};
|
|
49
|
-
//# sourceMappingURL=plugin.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 interface IAuthService {
|
|
2
17
|
}
|
|
3
|
-
//# sourceMappingURL=auth.service.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 { IAccessor, IDisposable } from '@wendellhu/redi';
|
|
2
17
|
import { Injector } from '@wendellhu/redi';
|
|
3
18
|
import { IContextService } from '../context/context.service';
|
|
@@ -17,7 +32,11 @@ export interface ICommand<P extends object = object, R = boolean> {
|
|
|
17
32
|
readonly id: string;
|
|
18
33
|
readonly type: CommandType;
|
|
19
34
|
handler(accessor: IAccessor, params?: P): Promise<R> | R;
|
|
20
|
-
/**
|
|
35
|
+
/**
|
|
36
|
+
* When this command is unregistered, this function would be called.
|
|
37
|
+
*
|
|
38
|
+
* @deprecated
|
|
39
|
+
*/
|
|
21
40
|
onDispose?: () => void;
|
|
22
41
|
}
|
|
23
42
|
export interface IMultiCommand<P extends object = object, R = boolean> extends ICommand<P, R> {
|
|
@@ -78,6 +97,8 @@ export interface IOperationInfo<T extends object = object> {
|
|
|
78
97
|
export interface IExecutionOptions {
|
|
79
98
|
/** This mutation should only be executed on the local machine. */
|
|
80
99
|
local?: boolean;
|
|
100
|
+
/** From collaboration peers. */
|
|
101
|
+
fromCollab?: boolean;
|
|
81
102
|
[key: PropertyKey]: string | number | boolean | undefined;
|
|
82
103
|
}
|
|
83
104
|
export type CommandListener = (commandInfo: Readonly<ICommandInfo>, options?: IExecutionOptions) => void;
|
|
@@ -87,15 +108,21 @@ export interface ICommandService {
|
|
|
87
108
|
executeCommand<P extends object = object, R = boolean>(id: string, params?: P, options?: IExecutionOptions): Promise<R>;
|
|
88
109
|
syncExecuteCommand<P extends object = object, R = boolean>(id: string, params?: P, options?: IExecutionOptions): R;
|
|
89
110
|
/**
|
|
90
|
-
* Register a callback function that will be executed
|
|
111
|
+
* Register a callback function that will be executed after a command is executed.
|
|
91
112
|
*/
|
|
92
113
|
onCommandExecuted(listener: CommandListener): IDisposable;
|
|
114
|
+
/**
|
|
115
|
+
* Register a callback function that will be executed before a command is executed.
|
|
116
|
+
* @param listener
|
|
117
|
+
*/
|
|
118
|
+
beforeCommandExecuted(listener: CommandListener): IDisposable;
|
|
93
119
|
}
|
|
94
120
|
export declare const ICommandService: import("@wendellhu/redi").IdentifierDecorator<ICommandService>;
|
|
95
121
|
export declare class CommandService implements ICommandService {
|
|
96
122
|
private readonly _injector;
|
|
97
123
|
private readonly _log;
|
|
98
124
|
private readonly _commandRegistry;
|
|
125
|
+
private readonly _beforeCommandExecutionListeners;
|
|
99
126
|
private readonly _commandExecutedListeners;
|
|
100
127
|
private _multiCommandDisposables;
|
|
101
128
|
private _commandExecutingLevel;
|
|
@@ -103,6 +130,7 @@ export declare class CommandService implements ICommandService {
|
|
|
103
130
|
constructor(_injector: Injector, _log: ILogService);
|
|
104
131
|
registerCommand(command: ICommand): IDisposable;
|
|
105
132
|
registerAsMultipleCommand(command: ICommand): IDisposable;
|
|
133
|
+
beforeCommandExecuted(listener: CommandListener): IDisposable;
|
|
106
134
|
onCommandExecuted(listener: (commandInfo: ICommandInfo) => void): IDisposable;
|
|
107
135
|
executeCommand<P extends object = object, R = boolean>(id: string, params?: P, options?: IExecutionOptions): Promise<R>;
|
|
108
136
|
syncExecuteCommand<P extends object = object, R = boolean>(id: string, params?: P | undefined, options?: IExecutionOptions): R;
|
|
@@ -114,4 +142,3 @@ export declare class CommandService implements ICommandService {
|
|
|
114
142
|
}
|
|
115
143
|
export declare function sequenceExecute(tasks: ICommandInfo[], commandService: ICommandService, options?: IExecutionOptions): import("../../common/sequence").ISequenceExecuteResult;
|
|
116
144
|
export declare function sequenceExecuteAsync(tasks: ICommandInfo[], commandService: ICommandService, options?: IExecutionOptions): Promise<import("../../common/sequence").ISequenceExecuteResult>;
|
|
117
|
-
//# sourceMappingURL=command.service.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=command.service.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 { Nullable } from '../../shared/types';
|
|
2
17
|
/**
|
|
3
18
|
* IConfig provides universal configuration for the whole application.
|
|
@@ -15,4 +30,3 @@ export declare class ConfigService implements IConfigService {
|
|
|
15
30
|
setConfig(id: string, value: any): void;
|
|
16
31
|
deleteConfig(id: string): void;
|
|
17
32
|
}
|
|
18
|
-
//# sourceMappingURL=config.service.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
|
export declare const FOCUSING_SHEET = "FOCUSING_SHEET";
|
|
2
17
|
export declare const FOCUSING_DOC = "FOCUSING_DOC";
|
|
3
18
|
export declare const FOCUSING_SLIDE = "FOCUSING_SLIDE";
|
|
@@ -5,4 +20,3 @@ export declare const FOCUSING_EDITOR_BUT_HIDDEN = "FOCUSING_EDITOR_BUT_HIDDEN";
|
|
|
5
20
|
export declare const FOCUSING_EDITOR = "FOCUSING_EDITOR";
|
|
6
21
|
export declare const FOCUSING_EDITOR_INPUT_FORMULA = "FOCUSING_EDITOR_INPUT_FORMULA";
|
|
7
22
|
export declare const FOCUSING_FORMULA_EDITOR = "FOCUSING_FORMULA_EDITOR";
|
|
8
|
-
//# sourceMappingURL=context.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 { Observable } from 'rxjs';
|
|
2
17
|
import { Disposable } from '../../shared/lifecycle';
|
|
3
18
|
export interface IContextService {
|
|
@@ -14,4 +29,3 @@ export declare class ContextService extends Disposable implements IContextServic
|
|
|
14
29
|
getContextValue(key: string): boolean;
|
|
15
30
|
setContextValue(key: string, value: boolean): void;
|
|
16
31
|
}
|
|
17
|
-
//# sourceMappingURL=context.service.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 { Disposable } from '../../shared/lifecycle';
|
|
2
17
|
export interface IError {
|
|
3
18
|
errorKey: string;
|
|
@@ -8,4 +23,3 @@ export declare class ErrorService extends Disposable {
|
|
|
8
23
|
dispose(): void;
|
|
9
24
|
emit(key: string): void;
|
|
10
25
|
}
|
|
11
|
-
//# sourceMappingURL=error.service.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
|
export interface ISize {
|
|
2
17
|
width?: number;
|
|
3
18
|
height?: number;
|
|
@@ -17,4 +32,3 @@ export interface ITransformState extends IOffset, ISize, IScale {
|
|
|
17
32
|
flipX?: boolean;
|
|
18
33
|
flipY?: boolean;
|
|
19
34
|
}
|
|
20
|
-
//# sourceMappingURL=floating-object-interfaces.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 { IDisposable } from '@wendellhu/redi';
|
|
2
17
|
import type { Observable } from 'rxjs';
|
|
3
18
|
import type { Nullable } from '../../common/type-utils';
|
|
@@ -79,4 +94,3 @@ export declare class FloatingObjectManagerService implements IDisposable, IFloat
|
|
|
79
94
|
private _removeByParam;
|
|
80
95
|
}
|
|
81
96
|
export declare const IFloatingObjectManagerService: import("@wendellhu/redi").IdentifierDecorator<IFloatingObjectManagerService>;
|
|
82
|
-
//# sourceMappingURL=floating-object-manager.service.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 { Observable } from 'rxjs';
|
|
2
17
|
import { DocumentDataModel } from '../../docs/data-model/document-data-model';
|
|
3
18
|
import type { Nullable } from '../../shared';
|
|
@@ -110,4 +125,3 @@ export declare class UniverInstanceService extends Disposable implements IUniver
|
|
|
110
125
|
getDocumentType(unitID: string): DocumentType;
|
|
111
126
|
disposeDocument(unitId: string): boolean;
|
|
112
127
|
}
|
|
113
|
-
//# sourceMappingURL=instance.service.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 { Ctor, DependencyIdentifier } from '@wendellhu/redi';
|
|
2
17
|
/**
|
|
3
18
|
* This enum defines multiple lifecycle stages in Univer SDK.
|
|
@@ -33,4 +48,3 @@ export declare const LifecycleToModules: Map<LifecycleStages, DependencyIdentifi
|
|
|
33
48
|
*/
|
|
34
49
|
export declare function OnLifecycle(lifecycleStage: LifecycleStages, identifier: DependencyIdentifier<unknown>): (_: Ctor<unknown>) => void;
|
|
35
50
|
export declare function runOnLifecycle(lifecycleStage: LifecycleStages, identifier: DependencyIdentifier<unknown>): void;
|
|
36
|
-
//# sourceMappingURL=lifecycle.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 { Injector } from '@wendellhu/redi';
|
|
2
17
|
import { Observable } from 'rxjs';
|
|
3
18
|
import { Disposable } from '../../shared/lifecycle';
|
|
@@ -20,4 +35,3 @@ export declare class LifecycleInitializerService extends Disposable {
|
|
|
20
35
|
start(): void;
|
|
21
36
|
initModulesOnStage(stage: LifecycleStages): void;
|
|
22
37
|
}
|
|
23
|
-
//# sourceMappingURL=lifecycle.service.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
|
export declare const ILocalStorageService: import("@wendellhu/redi").IdentifierDecorator<ILocalStorageService>;
|
|
2
17
|
export type LocalStorageValueTypes = string;
|
|
3
18
|
export interface ILocalStorageService {
|
|
@@ -9,4 +24,3 @@ export interface ILocalStorageService {
|
|
|
9
24
|
keys(): Promise<string[]>;
|
|
10
25
|
iterate<T, U>(iteratee: (value: T, key: string, iterationNumber: number) => U): Promise<U>;
|
|
11
26
|
}
|
|
12
|
-
//# sourceMappingURL=local-storage.service.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 { Subject } from 'rxjs';
|
|
2
17
|
import { Disposable } from '../../shared/lifecycle';
|
|
3
18
|
import type { ILocales } from '../../shared/locale';
|
|
@@ -23,4 +38,3 @@ export declare class LocaleService extends Disposable {
|
|
|
23
38
|
getLocales(): import("../../shared/locale").ILanguagePack | undefined;
|
|
24
39
|
getCurrentLocale(): LocaleType;
|
|
25
40
|
}
|
|
26
|
-
//# sourceMappingURL=locale.service.d.ts.map
|
|
@@ -1,18 +1,36 @@
|
|
|
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 { Disposable } from '../../shared/lifecycle';
|
|
17
|
+
export declare enum LogLevel {
|
|
18
|
+
SILENT = 0,
|
|
19
|
+
ERROR = 1,
|
|
20
|
+
WARN = 2,
|
|
21
|
+
VERBOSE = 3
|
|
22
|
+
}
|
|
2
23
|
export interface ILogService {
|
|
3
24
|
log(...args: any[]): void;
|
|
4
25
|
warn(...args: any[]): void;
|
|
5
26
|
error(...args: any[]): void;
|
|
6
|
-
|
|
7
|
-
getLogEnabled(): boolean;
|
|
27
|
+
setLogLevel(enabled: LogLevel): void;
|
|
8
28
|
}
|
|
9
29
|
export declare const ILogService: import("@wendellhu/redi").IdentifierDecorator<ILogService>;
|
|
10
30
|
export declare class DesktopLogService extends Disposable implements ILogService {
|
|
11
|
-
private
|
|
31
|
+
private _logLevel;
|
|
12
32
|
log(...args: any[]): void;
|
|
13
33
|
warn(...args: any[]): void;
|
|
14
34
|
error(...args: any[]): void;
|
|
15
|
-
|
|
16
|
-
getLogEnabled(): boolean;
|
|
35
|
+
setLogLevel(logLevel: LogLevel): void;
|
|
17
36
|
}
|
|
18
|
-
//# sourceMappingURL=log.service.d.ts.map
|
|
@@ -1,4 +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
|
export { IPermissionService, PermissionService } from './permission.service';
|
|
2
17
|
export { UniverEditablePermission, UniverEditablePermissionPoint } from './permission-point';
|
|
3
18
|
export { UniverPermissionService } from './univer.permission.service';
|
|
4
|
-
//# sourceMappingURL=index.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 { PermissionPoint } from '../../shared';
|
|
2
17
|
export declare const UniverEditablePermissionPoint = "univer.editable";
|
|
3
18
|
export declare class UniverEditablePermission extends PermissionPoint<boolean> {
|
|
@@ -6,4 +21,3 @@ export declare class UniverEditablePermission extends PermissionPoint<boolean> {
|
|
|
6
21
|
unitID: string;
|
|
7
22
|
constructor(unitID: string);
|
|
8
23
|
}
|
|
9
|
-
//# sourceMappingURL=permission-point.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 { Observable } from 'rxjs';
|
|
2
17
|
import type { PermissionPoint } from '../../shared';
|
|
3
18
|
import { Disposable } from '../../shared';
|
|
@@ -28,4 +43,3 @@ export declare class PermissionService extends Disposable implements IPermission
|
|
|
28
43
|
composePermission$(unitID: string, permissionIdList: string[]): Observable<PermissionPoint<any>[]>;
|
|
29
44
|
composePermission(unitID: string, permissionIdList: string[]): PermissionPoint<any>[];
|
|
30
45
|
}
|
|
31
|
-
//# sourceMappingURL=permission.service.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 { Disposable } from '../../shared';
|
|
2
17
|
import { IUniverInstanceService } from '../instance/instance.service';
|
|
3
18
|
import { IPermissionService } from './permission.service';
|
|
@@ -9,4 +24,3 @@ export declare class UniverPermissionService extends Disposable {
|
|
|
9
24
|
getEditable(unitID?: string): any;
|
|
10
25
|
setEditable(unitID: string, v: boolean): void;
|
|
11
26
|
}
|
|
12
|
-
//# sourceMappingURL=univer.permission.service.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 { Disposable } from '../../shared/lifecycle';
|
|
2
17
|
import type { IResourceHook, IResourceManagerService } from './type';
|
|
3
18
|
export declare class ResourceManagerService extends Disposable implements IResourceManagerService {
|
|
@@ -22,4 +37,3 @@ export declare class ResourceManagerService extends Disposable implements IResou
|
|
|
22
37
|
disposePluginResource(unitID: string, pluginName: string): void;
|
|
23
38
|
dispose(): void;
|
|
24
39
|
}
|
|
25
|
-
//# sourceMappingURL=resource-manager.service.d.ts.map
|
|
@@ -1,5 +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
|
+
*/
|
|
1
16
|
import type { IDisposable } from '@wendellhu/redi';
|
|
2
17
|
import type { Observable } from 'rxjs';
|
|
18
|
+
import type { Workbook } from '../../sheets/workbook';
|
|
19
|
+
import type { IWorkbookData } from '../../types/interfaces/i-workbook-data';
|
|
3
20
|
export interface IResourceHook<T = any> {
|
|
4
21
|
onChange: (unitID: string, resource: T) => void;
|
|
5
22
|
toJson: (unitID: string) => string;
|
|
@@ -20,4 +37,7 @@ export interface IResourceManagerService {
|
|
|
20
37
|
}>;
|
|
21
38
|
}
|
|
22
39
|
export declare const IResourceManagerService: import("@wendellhu/redi").IdentifierDecorator<IResourceManagerService>;
|
|
23
|
-
|
|
40
|
+
export interface ISnapshotPersistenceService {
|
|
41
|
+
saveWorkbook: (workbook: Workbook) => IWorkbookData;
|
|
42
|
+
}
|
|
43
|
+
export declare const ISnapshotPersistenceService: import("@wendellhu/redi").IdentifierDecorator<ISnapshotPersistenceService>;
|
|
@@ -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 { Observable } from 'rxjs';
|
|
2
17
|
import { Disposable } from '../../shared/lifecycle';
|
|
3
18
|
export interface IStyleSheet {
|
|
@@ -11,4 +26,3 @@ export declare class ThemeService extends Disposable {
|
|
|
11
26
|
getCurrentTheme(): IStyleSheet;
|
|
12
27
|
setTheme(theme: IStyleSheet): void;
|
|
13
28
|
}
|
|
14
|
-
//# sourceMappingURL=theme.service.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 { IAccessor } from '@wendellhu/redi';
|
|
2
17
|
import type { Observable } from 'rxjs';
|
|
3
18
|
import { BehaviorSubject } from 'rxjs';
|
|
@@ -76,4 +91,3 @@ export declare const RedoCommand: {
|
|
|
76
91
|
dispose(): void;
|
|
77
92
|
dispatchToHandlers(): Promise<boolean>;
|
|
78
93
|
};
|
|
79
|
-
//# sourceMappingURL=undoredo.service.d.ts.map
|