@univerjs/sheets-crosshair-highlight 1.3.1 → 1.5.0
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/README.md +9 -5
- package/lib/cjs/facade.js +2 -5
- package/lib/cjs/index.js +47 -56
- package/lib/cjs/locale/ar-SA.js +1 -2
- package/lib/cjs/locale/ca-ES.js +1 -2
- package/lib/cjs/locale/de-DE.js +1 -2
- package/lib/cjs/locale/en-US.js +1 -2
- package/lib/cjs/locale/es-ES.js +1 -2
- package/lib/cjs/locale/fa-IR.js +1 -2
- package/lib/cjs/locale/fr-FR.js +1 -2
- package/lib/cjs/locale/id-ID.js +1 -2
- package/lib/cjs/locale/it-IT.js +1 -2
- package/lib/cjs/locale/ja-JP.js +1 -2
- package/lib/cjs/locale/ko-KR.js +1 -2
- package/lib/cjs/locale/pl-PL.js +1 -2
- package/lib/cjs/locale/pt-BR.js +1 -2
- package/lib/cjs/locale/ru-RU.js +1 -2
- package/lib/cjs/locale/sk-SK.js +1 -2
- package/lib/cjs/locale/vi-VN.js +1 -2
- package/lib/cjs/locale/zh-CN.js +1 -2
- package/lib/cjs/locale/zh-HK.js +1 -2
- package/lib/cjs/locale/zh-TW.js +1 -2
- package/lib/es/facade.js +2 -4
- package/lib/es/index.js +47 -56
- package/lib/es/locale/ar-SA.js +1 -2
- package/lib/es/locale/ca-ES.js +1 -2
- package/lib/es/locale/de-DE.js +1 -2
- package/lib/es/locale/en-US.js +1 -2
- package/lib/es/locale/es-ES.js +1 -2
- package/lib/es/locale/fa-IR.js +1 -2
- package/lib/es/locale/fr-FR.js +1 -2
- package/lib/es/locale/id-ID.js +1 -2
- package/lib/es/locale/it-IT.js +1 -2
- package/lib/es/locale/ja-JP.js +1 -2
- package/lib/es/locale/ko-KR.js +1 -2
- package/lib/es/locale/pl-PL.js +1 -2
- package/lib/es/locale/pt-BR.js +1 -2
- package/lib/es/locale/ru-RU.js +1 -2
- package/lib/es/locale/sk-SK.js +1 -2
- package/lib/es/locale/vi-VN.js +1 -2
- package/lib/es/locale/zh-CN.js +1 -2
- package/lib/es/locale/zh-HK.js +1 -2
- package/lib/es/locale/zh-TW.js +1 -2
- package/lib/facade.js +2 -4
- package/lib/index.js +47 -56
- package/lib/locale/ar-SA.js +1 -2
- package/lib/locale/ca-ES.js +1 -2
- package/lib/locale/de-DE.js +1 -2
- package/lib/locale/en-US.js +1 -2
- package/lib/locale/es-ES.js +1 -2
- package/lib/locale/fa-IR.js +1 -2
- package/lib/locale/fr-FR.js +1 -2
- package/lib/locale/id-ID.js +1 -2
- package/lib/locale/it-IT.js +1 -2
- package/lib/locale/ja-JP.js +1 -2
- package/lib/locale/ko-KR.js +1 -2
- package/lib/locale/pl-PL.js +1 -2
- package/lib/locale/pt-BR.js +1 -2
- package/lib/locale/ru-RU.js +1 -2
- package/lib/locale/sk-SK.js +1 -2
- package/lib/locale/vi-VN.js +1 -2
- package/lib/locale/zh-CN.js +1 -2
- package/lib/locale/zh-HK.js +1 -2
- package/lib/locale/zh-TW.js +1 -2
- package/lib/umd/index.js +1 -1
- package/package.json +14 -14
package/README.md
CHANGED
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
|
|
9
9
|
## Package Overview
|
|
10
10
|
|
|
11
|
-
| Package | UMD global | CSS | Locales | Facade entry |
|
|
12
|
-
| --- | --- | :---: | :---: | :---: |
|
|
13
|
-
| `@univerjs/sheets-crosshair-highlight` | `UniverSheetsCrosshairHighlight` | Yes | Yes | Yes |
|
|
11
|
+
| Package | UMD global | CSS | Locales | Facade entry | Worker entry |
|
|
12
|
+
| --- | --- | :---: | :---: | :---: | :---: |
|
|
13
|
+
| `@univerjs/sheets-crosshair-highlight` | `UniverSheetsCrosshairHighlight` | Yes | Yes | Yes | No |
|
|
14
14
|
|
|
15
15
|
## Installation
|
|
16
16
|
|
|
@@ -20,10 +20,10 @@ pnpm add @univerjs/sheets-crosshair-highlight
|
|
|
20
20
|
npm install @univerjs/sheets-crosshair-highlight
|
|
21
21
|
```
|
|
22
22
|
|
|
23
|
-
Keep all `@univerjs/*` packages on the same version.
|
|
24
|
-
|
|
25
23
|
## Usage
|
|
26
24
|
|
|
25
|
+
Start with the [integration setup](https://docs.univer.ai/) for your document type, including its required plugins, styles, and locale resources. The snippet below assumes that setup is complete.
|
|
26
|
+
|
|
27
27
|
```ts
|
|
28
28
|
import '@univerjs/sheets-crosshair-highlight/lib/index.css';
|
|
29
29
|
import EnUS from '@univerjs/sheets-crosshair-highlight/locale/en-US';
|
|
@@ -34,6 +34,10 @@ univer.registerPlugin(UniverSheetsCrosshairHighlightPlugin);
|
|
|
34
34
|
// Merge EnUS into your Univer locale map when this package contributes UI text.
|
|
35
35
|
```
|
|
36
36
|
|
|
37
|
+
## Integration Notes
|
|
38
|
+
|
|
39
|
+
- Import `@univerjs/sheets-crosshair-highlight/facade` when using this package through Univer Facade APIs.
|
|
40
|
+
|
|
37
41
|
## Resources
|
|
38
42
|
|
|
39
43
|
- [Documentation](https://docs.univer.ai)
|
package/lib/cjs/facade.js
CHANGED
|
@@ -2,7 +2,7 @@ let _univerjs_core = require("@univerjs/core");
|
|
|
2
2
|
let _univerjs_core_facade = require("@univerjs/core/facade");
|
|
3
3
|
let _univerjs_sheets_crosshair_highlight = require("@univerjs/sheets-crosshair-highlight");
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// src/facade/f-univer.ts
|
|
6
6
|
/**
|
|
7
7
|
* @ignore
|
|
8
8
|
*/
|
|
@@ -35,8 +35,7 @@ var FUniverSheetsCrosshairHighlightMixin = class extends _univerjs_core_facade.F
|
|
|
35
35
|
};
|
|
36
36
|
_univerjs_core_facade.FUniver.extend(FUniverSheetsCrosshairHighlightMixin);
|
|
37
37
|
|
|
38
|
-
|
|
39
|
-
//#region src/facade/f-event.ts
|
|
38
|
+
// src/facade/f-event.ts
|
|
40
39
|
/**
|
|
41
40
|
* @ignore
|
|
42
41
|
*/
|
|
@@ -46,5 +45,3 @@ var FSheetsCrosshairHighlightEventNameMixin = class extends _univerjs_core_facad
|
|
|
46
45
|
}
|
|
47
46
|
};
|
|
48
47
|
_univerjs_core_facade.FEventName.extend(FSheetsCrosshairHighlightEventNameMixin);
|
|
49
|
-
|
|
50
|
-
//#endregion
|
package/lib/cjs/index.js
CHANGED
|
@@ -10,7 +10,7 @@ let _univerjs_design = require("@univerjs/design");
|
|
|
10
10
|
let react = require("react");
|
|
11
11
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
// \0@oxc-project+runtime@0.157.0/helpers/esm/typeof.js
|
|
14
14
|
function _typeof(o) {
|
|
15
15
|
"@babel/helpers - typeof";
|
|
16
16
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
@@ -20,28 +20,25 @@ function _typeof(o) {
|
|
|
20
20
|
}, _typeof(o);
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
function toPrimitive(t, r) {
|
|
23
|
+
// \0@oxc-project+runtime@0.157.0/helpers/esm/toPrimitive.js
|
|
24
|
+
function toPrimitive(t, e) {
|
|
26
25
|
if ("object" != _typeof(t) || !t) return t;
|
|
27
|
-
var
|
|
28
|
-
if (void 0 !==
|
|
29
|
-
var i =
|
|
26
|
+
var r;
|
|
27
|
+
if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) {
|
|
28
|
+
var i = r.call(t, e || "default");
|
|
30
29
|
if ("object" != _typeof(i)) return i;
|
|
31
30
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
32
31
|
}
|
|
33
|
-
return ("string" ===
|
|
32
|
+
return ("string" === e ? String : Number)(t);
|
|
34
33
|
}
|
|
35
34
|
|
|
36
|
-
|
|
37
|
-
//#region \0@oxc-project+runtime@0.153.0/helpers/esm/toPropertyKey.js
|
|
35
|
+
// \0@oxc-project+runtime@0.157.0/helpers/esm/toPropertyKey.js
|
|
38
36
|
function toPropertyKey(t) {
|
|
39
37
|
var i = toPrimitive(t, "string");
|
|
40
38
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
41
39
|
}
|
|
42
40
|
|
|
43
|
-
|
|
44
|
-
//#region \0@oxc-project+runtime@0.153.0/helpers/esm/defineProperty.js
|
|
41
|
+
// \0@oxc-project+runtime@0.157.0/helpers/esm/defineProperty.js
|
|
45
42
|
function _defineProperty(e, r, t) {
|
|
46
43
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
47
44
|
value: t,
|
|
@@ -51,16 +48,14 @@ function _defineProperty(e, r, t) {
|
|
|
51
48
|
}) : e[r] = t, e;
|
|
52
49
|
}
|
|
53
50
|
|
|
54
|
-
|
|
55
|
-
//#region \0@oxc-project+runtime@0.153.0/helpers/esm/decorateParam.js
|
|
51
|
+
// \0@oxc-project+runtime@0.157.0/helpers/esm/decorateParam.js
|
|
56
52
|
function __decorateParam(paramIndex, decorator) {
|
|
57
53
|
return function(target, key) {
|
|
58
54
|
decorator(target, key, paramIndex);
|
|
59
55
|
};
|
|
60
56
|
}
|
|
61
57
|
|
|
62
|
-
|
|
63
|
-
//#region \0@oxc-project+runtime@0.153.0/helpers/esm/decorate.js
|
|
58
|
+
// \0@oxc-project+runtime@0.157.0/helpers/esm/decorate.js
|
|
64
59
|
function __decorate(decorators, target, key, desc) {
|
|
65
60
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
66
61
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -68,8 +63,7 @@ function __decorate(decorators, target, key, desc) {
|
|
|
68
63
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
69
64
|
}
|
|
70
65
|
|
|
71
|
-
|
|
72
|
-
//#region src/services/crosshair.service.ts
|
|
66
|
+
// src/services/crosshair.service.ts
|
|
73
67
|
const CROSSHAIR_HIGHLIGHT_COLOR_THEME_PATHS = Array.from({ length: 16 }, (_, index) => `highlight.background.${index + 1}`);
|
|
74
68
|
const DEFAULT_CROSSHAIR_HIGHLIGHT_COLOR_THEME_PATH = CROSSHAIR_HIGHLIGHT_COLOR_THEME_PATHS[0];
|
|
75
69
|
function resolveCrosshairHighlightColor(themeService, tokenPath) {
|
|
@@ -110,8 +104,7 @@ let SheetsCrosshairHighlightService = class SheetsCrosshairHighlightService exte
|
|
|
110
104
|
};
|
|
111
105
|
SheetsCrosshairHighlightService = __decorate([__decorateParam(0, (0, _univerjs_core.Inject)(_univerjs_core.ThemeService))], SheetsCrosshairHighlightService);
|
|
112
106
|
|
|
113
|
-
|
|
114
|
-
//#region src/commands/operations/operation.ts
|
|
107
|
+
// src/commands/operations/operation.ts
|
|
115
108
|
/**
|
|
116
109
|
* A {@link CommandType.OPERATION} to toggle the crosshair highlight.
|
|
117
110
|
*/
|
|
@@ -166,8 +159,7 @@ const DisableCrosshairHighlightOperation = {
|
|
|
166
159
|
}
|
|
167
160
|
};
|
|
168
161
|
|
|
169
|
-
|
|
170
|
-
//#region src/menu/crosshair.menu.ts
|
|
162
|
+
// src/menu/crosshair.menu.ts
|
|
171
163
|
const CROSSHAIR_HIGHLIGHT_OVERLAY_COMPONENT = "CROSSHAIR_HIGHLIGHT_OVERLAY_COMPONENT";
|
|
172
164
|
function CrosshairHighlightMenuItemFactory(accessor) {
|
|
173
165
|
const crosshairHighlightService = accessor.get(SheetsCrosshairHighlightService);
|
|
@@ -188,8 +180,7 @@ function CrosshairHighlightMenuItemFactory(accessor) {
|
|
|
188
180
|
};
|
|
189
181
|
}
|
|
190
182
|
|
|
191
|
-
|
|
192
|
-
//#region src/menu/schema.ts
|
|
183
|
+
// src/menu/schema.ts
|
|
193
184
|
const menuSchema = {
|
|
194
185
|
[_univerjs_ui.RibbonViewGroup.DISPLAY]: { [ToggleCrosshairHighlightOperation.id]: {
|
|
195
186
|
order: 2,
|
|
@@ -205,23 +196,19 @@ const menuSchema = {
|
|
|
205
196
|
} } }
|
|
206
197
|
};
|
|
207
198
|
|
|
208
|
-
|
|
209
|
-
//#region package.json
|
|
199
|
+
// package.json
|
|
210
200
|
var name = "@univerjs/sheets-crosshair-highlight";
|
|
211
|
-
var version = "1.
|
|
201
|
+
var version = "1.5.0";
|
|
212
202
|
|
|
213
|
-
|
|
214
|
-
//#region src/config/config.ts
|
|
203
|
+
// src/config/config.ts
|
|
215
204
|
const SHEETS_CROSSHAIR_HIGHLIGHT_PLUGIN_CONFIG_KEY = "sheets-crosshair-highlight.config";
|
|
216
205
|
const configSymbol = Symbol(SHEETS_CROSSHAIR_HIGHLIGHT_PLUGIN_CONFIG_KEY);
|
|
217
206
|
const defaultPluginConfig = {};
|
|
218
207
|
|
|
219
|
-
|
|
220
|
-
//#region src/const.ts
|
|
208
|
+
// src/const.ts
|
|
221
209
|
const SHEETS_CROSSHAIR_HIGHLIGHT_PLUGIN_NAME = "SHEET_CROSSHAIR_HIGHLIGHT_PLUGIN";
|
|
222
210
|
|
|
223
|
-
|
|
224
|
-
//#region src/menu/mobile-crosshair.menu.ts
|
|
211
|
+
// src/menu/mobile-crosshair.menu.ts
|
|
225
212
|
const MOBILE_CROSSHAIR_HIGHLIGHT_MENU_ID = "sheet.menu.mobile.crosshair-highlight";
|
|
226
213
|
const MOBILE_CROSSHAIR_HIGHLIGHT_PANEL = "MOBILE_CROSSHAIR_HIGHLIGHT_PANEL";
|
|
227
214
|
function MobileCrosshairHighlightMenuItemFactory(accessor) {
|
|
@@ -240,8 +227,7 @@ function MobileCrosshairHighlightMenuItemFactory(accessor) {
|
|
|
240
227
|
};
|
|
241
228
|
}
|
|
242
229
|
|
|
243
|
-
|
|
244
|
-
//#region src/views/components/CrosshairHighlight.tsx
|
|
230
|
+
// src/views/components/CrosshairHighlight.tsx
|
|
245
231
|
/**
|
|
246
232
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
247
233
|
*
|
|
@@ -278,8 +264,22 @@ function CrosshairOverlay(props) {
|
|
|
278
264
|
});
|
|
279
265
|
}
|
|
280
266
|
|
|
281
|
-
|
|
282
|
-
|
|
267
|
+
// src/views/mobile/MobileCrosshairHighlightPanel.tsx
|
|
268
|
+
/**
|
|
269
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
270
|
+
*
|
|
271
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
272
|
+
* you may not use this file except in compliance with the License.
|
|
273
|
+
* You may obtain a copy of the License at
|
|
274
|
+
*
|
|
275
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
276
|
+
*
|
|
277
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
278
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
279
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
280
|
+
* See the License for the specific language governing permissions and
|
|
281
|
+
* limitations under the License.
|
|
282
|
+
*/
|
|
283
283
|
function MobileCrosshairHighlightPanel() {
|
|
284
284
|
const commandService = (0, _univerjs_ui.useDependency)(_univerjs_core.ICommandService);
|
|
285
285
|
const crosshairHighlightService = (0, _univerjs_ui.useDependency)(SheetsCrosshairHighlightService);
|
|
@@ -296,6 +296,7 @@ function MobileCrosshairHighlightPanel() {
|
|
|
296
296
|
className: "univer-min-w-0 univer-flex-1 univer-text-base univer-font-medium univer-text-gray-900 dark:!univer-text-gray-100",
|
|
297
297
|
children: localeService.t("sheets-crosshair-highlight.button.tooltip")
|
|
298
298
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.Switch, {
|
|
299
|
+
"aria-label": localeService.t("sheets-crosshair-highlight.button.tooltip"),
|
|
299
300
|
defaultChecked: enabled,
|
|
300
301
|
onChange: (checked) => {
|
|
301
302
|
const operation = checked ? EnableCrosshairHighlightOperation : DisableCrosshairHighlightOperation;
|
|
@@ -323,8 +324,7 @@ function MobileCrosshairHighlightPanel() {
|
|
|
323
324
|
});
|
|
324
325
|
}
|
|
325
326
|
|
|
326
|
-
|
|
327
|
-
//#region src/controllers/components.controller.ts
|
|
327
|
+
// src/controllers/components.controller.ts
|
|
328
328
|
/**
|
|
329
329
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
330
330
|
*
|
|
@@ -358,15 +358,13 @@ let ComponentsController = class ComponentsController extends _univerjs_core.Dis
|
|
|
358
358
|
};
|
|
359
359
|
ComponentsController = __decorate([__decorateParam(0, (0, _univerjs_core.Inject)(_univerjs_ui.ComponentManager)), __decorateParam(1, (0, _univerjs_core.Inject)(_univerjs_ui.IconManager))], ComponentsController);
|
|
360
360
|
|
|
361
|
-
|
|
362
|
-
//#region src/menu/mobile-schema.ts
|
|
361
|
+
// src/menu/mobile-schema.ts
|
|
363
362
|
const mobileMenuSchema = { [_univerjs_ui.RibbonDataGroup.ORGANIZATION]: { [MOBILE_CROSSHAIR_HIGHLIGHT_MENU_ID]: {
|
|
364
363
|
order: 21,
|
|
365
364
|
menuItemFactory: MobileCrosshairHighlightMenuItemFactory
|
|
366
365
|
} } };
|
|
367
366
|
|
|
368
|
-
|
|
369
|
-
//#region src/controllers/mobile/crosshair.controller.ts
|
|
367
|
+
// src/controllers/mobile/crosshair.controller.ts
|
|
370
368
|
/**
|
|
371
369
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
372
370
|
*
|
|
@@ -396,8 +394,7 @@ let SheetsCrosshairHighlightMobileController = class SheetsCrosshairHighlightMob
|
|
|
396
394
|
};
|
|
397
395
|
SheetsCrosshairHighlightMobileController = __decorate([__decorateParam(0, _univerjs_core.ICommandService), __decorateParam(1, _univerjs_ui.IMenuManagerService)], SheetsCrosshairHighlightMobileController);
|
|
398
396
|
|
|
399
|
-
|
|
400
|
-
//#region src/util.ts
|
|
397
|
+
// src/util.ts
|
|
401
398
|
var CrossHairRangeCollection = class {
|
|
402
399
|
constructor() {
|
|
403
400
|
_defineProperty(this, "_selectedRanges", []);
|
|
@@ -441,8 +438,7 @@ var CrossHairRangeCollection = class {
|
|
|
441
438
|
}
|
|
442
439
|
};
|
|
443
440
|
|
|
444
|
-
|
|
445
|
-
//#region src/views/widgets/crosshair-highlight-shape.ts
|
|
441
|
+
// src/views/widgets/crosshair-highlight-shape.ts
|
|
446
442
|
var SheetCrossHairHighlightShape = class extends _univerjs_engine_render.Shape {
|
|
447
443
|
constructor(key, props) {
|
|
448
444
|
super(key, props);
|
|
@@ -470,8 +466,7 @@ var SheetCrossHairHighlightShape = class extends _univerjs_engine_render.Shape {
|
|
|
470
466
|
}
|
|
471
467
|
};
|
|
472
468
|
|
|
473
|
-
|
|
474
|
-
//#region src/views/widgets/crosshair-highlight.render-controller.ts
|
|
469
|
+
// src/views/widgets/crosshair-highlight.render-controller.ts
|
|
475
470
|
let SheetCrosshairHighlightRenderController = class SheetCrosshairHighlightRenderController extends _univerjs_core.Disposable {
|
|
476
471
|
constructor(_context, _sheetSkeletonManagerService, _sheetsSelectionsService, _sheetsCrosshairHighlightService, _contextService, _refSelectionsService) {
|
|
477
472
|
super();
|
|
@@ -603,8 +598,7 @@ SheetCrosshairHighlightRenderController = __decorate([
|
|
|
603
598
|
__decorateParam(5, _univerjs_sheets.IRefSelectionsService)
|
|
604
599
|
], SheetCrosshairHighlightRenderController);
|
|
605
600
|
|
|
606
|
-
|
|
607
|
-
//#region src/mobile-plugin.ts
|
|
601
|
+
// src/mobile-plugin.ts
|
|
608
602
|
let UniverSheetsCrosshairHighlightMobileUIPlugin = class UniverSheetsCrosshairHighlightMobileUIPlugin extends _univerjs_core.Plugin {
|
|
609
603
|
constructor(_config = defaultPluginConfig, _injector, _renderManagerService, _configService) {
|
|
610
604
|
super();
|
|
@@ -639,8 +633,7 @@ UniverSheetsCrosshairHighlightMobileUIPlugin = __decorate([
|
|
|
639
633
|
__decorateParam(3, _univerjs_core.IConfigService)
|
|
640
634
|
], UniverSheetsCrosshairHighlightMobileUIPlugin);
|
|
641
635
|
|
|
642
|
-
|
|
643
|
-
//#region src/controllers/crosshair.controller.ts
|
|
636
|
+
// src/controllers/crosshair.controller.ts
|
|
644
637
|
/**
|
|
645
638
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
646
639
|
*
|
|
@@ -678,8 +671,7 @@ let SheetsCrosshairHighlightController = class SheetsCrosshairHighlightControlle
|
|
|
678
671
|
};
|
|
679
672
|
SheetsCrosshairHighlightController = __decorate([__decorateParam(0, _univerjs_ui.IMenuManagerService), __decorateParam(1, _univerjs_core.ICommandService)], SheetsCrosshairHighlightController);
|
|
680
673
|
|
|
681
|
-
|
|
682
|
-
//#region src/plugin.ts
|
|
674
|
+
// src/plugin.ts
|
|
683
675
|
let UniverSheetsCrosshairHighlightPlugin = class UniverSheetsCrosshairHighlightPlugin extends _univerjs_core.Plugin {
|
|
684
676
|
constructor(_config = defaultPluginConfig, _injector, _renderManagerService, _configService) {
|
|
685
677
|
super();
|
|
@@ -715,7 +707,6 @@ UniverSheetsCrosshairHighlightPlugin = __decorate([
|
|
|
715
707
|
__decorateParam(3, _univerjs_core.IConfigService)
|
|
716
708
|
], UniverSheetsCrosshairHighlightPlugin);
|
|
717
709
|
|
|
718
|
-
//#endregion
|
|
719
710
|
exports.DisableCrosshairHighlightOperation = DisableCrosshairHighlightOperation;
|
|
720
711
|
exports.EnableCrosshairHighlightOperation = EnableCrosshairHighlightOperation;
|
|
721
712
|
exports.SetCrosshairHighlightColorOperation = SetCrosshairHighlightColorOperation;
|
package/lib/cjs/locale/ar-SA.js
CHANGED
package/lib/cjs/locale/ca-ES.js
CHANGED
package/lib/cjs/locale/de-DE.js
CHANGED
package/lib/cjs/locale/en-US.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/en-US.ts
|
|
2
2
|
/**
|
|
3
3
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
4
4
|
*
|
|
@@ -16,5 +16,4 @@
|
|
|
16
16
|
*/
|
|
17
17
|
const locale = { "sheets-crosshair-highlight": { button: { tooltip: "Crosshair Highlight" } } };
|
|
18
18
|
|
|
19
|
-
//#endregion
|
|
20
19
|
module.exports = locale;
|
package/lib/cjs/locale/es-ES.js
CHANGED
package/lib/cjs/locale/fa-IR.js
CHANGED
package/lib/cjs/locale/fr-FR.js
CHANGED
package/lib/cjs/locale/id-ID.js
CHANGED
package/lib/cjs/locale/it-IT.js
CHANGED
package/lib/cjs/locale/ja-JP.js
CHANGED
package/lib/cjs/locale/ko-KR.js
CHANGED
package/lib/cjs/locale/pl-PL.js
CHANGED
package/lib/cjs/locale/pt-BR.js
CHANGED
package/lib/cjs/locale/ru-RU.js
CHANGED
package/lib/cjs/locale/sk-SK.js
CHANGED
package/lib/cjs/locale/vi-VN.js
CHANGED
package/lib/cjs/locale/zh-CN.js
CHANGED
package/lib/cjs/locale/zh-HK.js
CHANGED
package/lib/cjs/locale/zh-TW.js
CHANGED
package/lib/es/facade.js
CHANGED
|
@@ -2,7 +2,7 @@ import { ICommandService } from "@univerjs/core";
|
|
|
2
2
|
import { FEventName, FUniver } from "@univerjs/core/facade";
|
|
3
3
|
import { DisableCrosshairHighlightOperation, EnableCrosshairHighlightOperation, SheetsCrosshairHighlightService, ToggleCrosshairHighlightOperation } from "@univerjs/sheets-crosshair-highlight";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// src/facade/f-univer.ts
|
|
6
6
|
/**
|
|
7
7
|
* @ignore
|
|
8
8
|
*/
|
|
@@ -35,8 +35,7 @@ var FUniverSheetsCrosshairHighlightMixin = class extends FUniver {
|
|
|
35
35
|
};
|
|
36
36
|
FUniver.extend(FUniverSheetsCrosshairHighlightMixin);
|
|
37
37
|
|
|
38
|
-
|
|
39
|
-
//#region src/facade/f-event.ts
|
|
38
|
+
// src/facade/f-event.ts
|
|
40
39
|
/**
|
|
41
40
|
* @ignore
|
|
42
41
|
*/
|
|
@@ -47,5 +46,4 @@ var FSheetsCrosshairHighlightEventNameMixin = class extends FEventName {
|
|
|
47
46
|
};
|
|
48
47
|
FEventName.extend(FSheetsCrosshairHighlightEventNameMixin);
|
|
49
48
|
|
|
50
|
-
//#endregion
|
|
51
49
|
export { };
|