@univerjs-pro/shape-editor-ui 1.0.0-beta.0 → 1.0.0-beta.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/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.css +455 -49
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/commands/operations/toggle-shape-floating-toolbar.operation.d.ts +2 -0
- package/lib/types/common/formula-shape-en-us.d.ts +0 -19
- package/lib/types/config/config.d.ts +2 -25
- package/lib/types/controllers/components.controller.d.ts +3 -2
- package/lib/types/index.d.ts +21 -4
- package/lib/types/locale/en-US.d.ts +132 -21
- package/lib/types/menu/shape-floating-toolbar.menu.d.ts +3 -0
- package/lib/types/plugin.d.ts +3 -2
- package/lib/types/services/formula-binding.service.d.ts +34 -0
- package/lib/types/services/shape-floating-toolbar.service.d.ts +16 -0
- package/lib/types/utils/shape-contextual-ribbon-host.d.ts +2 -0
- package/lib/types/utils/shape-floating-toolbar-config.d.ts +3 -3
- package/lib/types/views/FormulaBindingEditorDialog.d.ts +1 -1
- package/lib/types/views/formula-shape/UseFormulaShapeToolbar.d.ts +3 -0
- package/lib/types/views/shape-floating-toolbar/ShapeFillControls.d.ts +2 -0
- package/lib/types/views/shape-floating-toolbar/ShapeFloatingToolbar.d.ts +1 -2
- package/lib/types/views/shape-floating-toolbar/ShapeFloatingToolbarPrimitives.d.ts +11 -2
- package/lib/types/views/shape-floating-toolbar/ShapeStrokeControls.d.ts +5 -0
- package/lib/types/views/shape-floating-toolbar/ShapeTextControls.d.ts +3 -0
- package/lib/types/views/shape-floating-toolbar/shape-floating-toolbar-utils.d.ts +7 -1
- package/lib/types/views/shape-floating-toolbar/shape-floating-toolbar-wheel.util.d.ts +1 -0
- package/lib/types/views/shape-format-ribbon/ShapeEffectControls.d.ts +19 -0
- package/lib/types/views/shape-format-ribbon/ShapeEffectPresetIcon.d.ts +11 -0
- package/lib/types/views/shape-format-ribbon/ShapeFormatRibbonControls.d.ts +27 -0
- package/lib/types/views/shape-format-ribbon/shape-effect-reference-paths.generated.d.ts +6 -0
- package/lib/types/views/shape-picker/ShapeChangePicker.d.ts +7 -0
- package/lib/types/views/shape-quick-style/ShapeQuickStyleGallery.d.ts +10 -0
- package/lib/types/views/shape-text-editor/DocParagraphTypeDropdown.d.ts +1 -1
- package/lib/types/views/shape-text-editor/ShapeTextFloatToolbar.d.ts +0 -1
- package/lib/types/views/shape-text-editor/shape-text-keyboard.d.ts +4 -0
- package/lib/types/views/shape-text-editor/types.d.ts +1 -0
- package/lib/types/views/smart-art/SmartArtColorGallery.d.ts +6 -0
- package/lib/types/views/smart-art/SmartArtLayoutGallery.d.ts +6 -0
- package/lib/types/views/smart-art/SmartArtLayoutIcon.d.ts +6 -0
- package/lib/types/views/smart-art/SmartArtQuickStyleGallery.d.ts +10 -0
- package/lib/types/views/smart-art/SmartArtRibbonControl.d.ts +33 -0
- package/lib/types/views/smart-art/SmartArtTextPane.d.ts +14 -0
- package/lib/types/views/smart-art/smart-art-layout-catalog.generated.d.ts +35 -0
- package/lib/types/views/smart-art/smart-art-layout-gallery-catalog.generated.d.ts +5 -0
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +21 -24
- package/lib/types/services/formula-binding-unit-viewer.service.d.ts +0 -67
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/shape-editor-ui",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Reusable shape editor UI building blocks for Univer Pro.",
|
|
6
6
|
"author": "DreamNum Co., Ltd. <developer@univer.ai>",
|
|
@@ -53,31 +53,27 @@
|
|
|
53
53
|
"lib"
|
|
54
54
|
],
|
|
55
55
|
"peerDependencies": {
|
|
56
|
-
"react": "^16.9.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc"
|
|
56
|
+
"react": "^16.9.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc",
|
|
57
|
+
"rxjs": ">=7.0.0"
|
|
57
58
|
},
|
|
58
59
|
"dependencies": {
|
|
59
60
|
"@univerjs/icons": "1.35.0",
|
|
60
|
-
"@univerjs-pro/
|
|
61
|
-
"@univerjs-pro/
|
|
62
|
-
"@univerjs-pro/
|
|
63
|
-
"@univerjs-pro/
|
|
64
|
-
"@univerjs-pro/shape-editor": "1.0.0-beta.
|
|
65
|
-
"@univerjs-pro/
|
|
66
|
-
"@univerjs
|
|
67
|
-
"@univerjs/
|
|
68
|
-
"@univerjs/
|
|
69
|
-
"@univerjs/docs": "1.0.0-beta.
|
|
70
|
-
"@univerjs/
|
|
71
|
-
"@univerjs/
|
|
72
|
-
"@univerjs/
|
|
73
|
-
"@univerjs/
|
|
74
|
-
"@univerjs/
|
|
75
|
-
"@univerjs/
|
|
76
|
-
"@univerjs/sheets-formula": "1.0.0-beta.0",
|
|
77
|
-
"@univerjs/sheets-formula-ui": "1.0.0-beta.0",
|
|
78
|
-
"@univerjs/sheets-numfmt": "1.0.0-beta.0",
|
|
79
|
-
"@univerjs/sheets-ui": "1.0.0-beta.0",
|
|
80
|
-
"@univerjs/ui": "1.0.0-beta.0"
|
|
61
|
+
"@univerjs-pro/embed": "1.0.0-beta.1",
|
|
62
|
+
"@univerjs-pro/embed-unit-ui": "1.0.0-beta.1",
|
|
63
|
+
"@univerjs-pro/engine-formula": "1.0.0-beta.1",
|
|
64
|
+
"@univerjs-pro/engine-shape": "1.0.0-beta.1",
|
|
65
|
+
"@univerjs-pro/shape-editor": "1.0.0-beta.1",
|
|
66
|
+
"@univerjs-pro/license": "1.0.0-beta.1",
|
|
67
|
+
"@univerjs/core": "1.0.0-beta.1",
|
|
68
|
+
"@univerjs/design": "1.0.0-beta.1",
|
|
69
|
+
"@univerjs/docs": "1.0.0-beta.1",
|
|
70
|
+
"@univerjs/docs-ui": "1.0.0-beta.1",
|
|
71
|
+
"@univerjs/engine-formula": "1.0.0-beta.1",
|
|
72
|
+
"@univerjs/drawing": "1.0.0-beta.1",
|
|
73
|
+
"@univerjs/sheets-formula-ui": "1.0.0-beta.1",
|
|
74
|
+
"@univerjs/sheets-numfmt": "1.0.0-beta.1",
|
|
75
|
+
"@univerjs/engine-render": "1.0.0-beta.1",
|
|
76
|
+
"@univerjs/ui": "1.0.0-beta.1"
|
|
81
77
|
},
|
|
82
78
|
"devDependencies": {
|
|
83
79
|
"postcss": "^8.5.25",
|
|
@@ -86,7 +82,8 @@
|
|
|
86
82
|
"tailwindcss": "3.4.17",
|
|
87
83
|
"typescript": "^6.0.3",
|
|
88
84
|
"vitest": "^4.1.10",
|
|
89
|
-
"@univerjs-infra/shared": "1.0.0-beta.
|
|
85
|
+
"@univerjs-infra/shared": "1.0.0-beta.1",
|
|
86
|
+
"@univerjs/sheets": "1.0.0-beta.1"
|
|
90
87
|
},
|
|
91
88
|
"scripts": {
|
|
92
89
|
"test": "vitest run",
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import type { BaseDataModel } from '@univerjs/core';
|
|
2
|
-
import type { FormulaSequenceNode, IFormulaRefSelection } from '@univerjs/engine-formula';
|
|
3
|
-
import type { IFormulaBindingHost, IFormulaBindingUnitResource } from '../config/config';
|
|
4
|
-
import type { IFormulaBindingReferenceSelectionChange } from './formula-binding-editor';
|
|
5
|
-
import { Disposable, IConfigService, IUniverInstanceService, LocaleService, ThemeService, Workbook } from '@univerjs/core';
|
|
6
|
-
export type FormulaBindingViewerUnit = Workbook | BaseDataModel;
|
|
7
|
-
export interface IFormulaBindingViewerFormulaContext {
|
|
8
|
-
formula: string;
|
|
9
|
-
sequenceNodes: FormulaSequenceNode[];
|
|
10
|
-
refSelections: IFormulaRefSelection[];
|
|
11
|
-
selectionStart: number;
|
|
12
|
-
selectionEnd: number;
|
|
13
|
-
}
|
|
14
|
-
/** Owns the real, isolated Univer rendered inside the cross-unit formula editor. */
|
|
15
|
-
export declare class FormulaBindingUnitViewerService extends Disposable {
|
|
16
|
-
private readonly _configService;
|
|
17
|
-
private readonly _instanceService;
|
|
18
|
-
private readonly _localeService;
|
|
19
|
-
private readonly _themeService;
|
|
20
|
-
private _univer;
|
|
21
|
-
private _activeUnitId;
|
|
22
|
-
private _container;
|
|
23
|
-
private _generation;
|
|
24
|
-
private _selectionDisposables;
|
|
25
|
-
private _formulaContext;
|
|
26
|
-
private _host;
|
|
27
|
-
private _resource;
|
|
28
|
-
private _onSelectReferences;
|
|
29
|
-
private _activeWorkbook;
|
|
30
|
-
private _activeBase;
|
|
31
|
-
private _visibleReferenceIndexes;
|
|
32
|
-
private _isApplyingBaseHighlight;
|
|
33
|
-
private _pointerCtrlKey;
|
|
34
|
-
private _pointerListener;
|
|
35
|
-
private _selectionChangingDisposable;
|
|
36
|
-
private _controlDisposables;
|
|
37
|
-
private _isDraggingFormulaSelection;
|
|
38
|
-
private _closeRequest;
|
|
39
|
-
constructor(_configService: IConfigService, _instanceService: IUniverInstanceService, _localeService: LocaleService, _themeService: ThemeService);
|
|
40
|
-
listUnits(): Promise<IFormulaBindingUnitResource[]>;
|
|
41
|
-
mount(container: HTMLElement): void;
|
|
42
|
-
switchUnit(resource: IFormulaBindingUnitResource, host: IFormulaBindingHost, onSelectReferences: (change: IFormulaBindingReferenceSelectionChange) => void): Promise<FormulaBindingViewerUnit | null>;
|
|
43
|
-
private _makeBaseSnapshotReadOnly;
|
|
44
|
-
private _setBasePermissionsReadOnly;
|
|
45
|
-
updateFormulaContext(context: IFormulaBindingViewerFormulaContext): void;
|
|
46
|
-
close(): void;
|
|
47
|
-
/** Defers nested Univer disposal until the owning React tree has finished unmounting. */
|
|
48
|
-
scheduleClose(): void;
|
|
49
|
-
private _closeNow;
|
|
50
|
-
dispose(): void;
|
|
51
|
-
private _createUniver;
|
|
52
|
-
private _observeSheetSelection;
|
|
53
|
-
private _observeBaseSelection;
|
|
54
|
-
private _handleBaseSelectionChange;
|
|
55
|
-
private _getBaseReferenceSource;
|
|
56
|
-
private _emitSheetSelectionChange;
|
|
57
|
-
private _refreshFormulaSelections;
|
|
58
|
-
private _refreshSheetFormulaSelections;
|
|
59
|
-
private _refreshBaseFormulaSelection;
|
|
60
|
-
private _bindFormulaSelectionControls;
|
|
61
|
-
private _getEditingContext;
|
|
62
|
-
private _canSelectFormulaReference;
|
|
63
|
-
private _matchesSheetReference;
|
|
64
|
-
private _matchesUnitQualifier;
|
|
65
|
-
private _createExternalReference;
|
|
66
|
-
private _listLoadedUnits;
|
|
67
|
-
}
|