@univerjs/find-replace 1.0.0-alpha.6 → 1.0.0-alpha.8
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 +105 -42
- package/lib/cjs/locale/ar-SA.js +2 -1
- package/lib/cjs/locale/ca-ES.js +2 -1
- package/lib/cjs/locale/de-DE.js +2 -1
- package/lib/cjs/locale/en-US.js +2 -1
- package/lib/cjs/locale/es-ES.js +2 -1
- package/lib/cjs/locale/fa-IR.js +2 -1
- package/lib/cjs/locale/fr-FR.js +2 -1
- package/lib/cjs/locale/id-ID.js +2 -1
- package/lib/cjs/locale/it-IT.js +2 -1
- package/lib/cjs/locale/ja-JP.js +2 -1
- package/lib/cjs/locale/ko-KR.js +2 -1
- package/lib/cjs/locale/pl-PL.js +2 -1
- package/lib/cjs/locale/pt-BR.js +2 -1
- package/lib/cjs/locale/ru-RU.js +2 -1
- package/lib/cjs/locale/sk-SK.js +2 -1
- package/lib/cjs/locale/vi-VN.js +2 -1
- package/lib/cjs/locale/zh-CN.js +1 -0
- package/lib/cjs/locale/zh-HK.js +2 -1
- package/lib/cjs/locale/zh-TW.js +2 -1
- package/lib/es/index.js +107 -44
- package/lib/es/locale/ar-SA.js +2 -1
- package/lib/es/locale/ca-ES.js +2 -1
- package/lib/es/locale/de-DE.js +2 -1
- package/lib/es/locale/en-US.js +2 -1
- package/lib/es/locale/es-ES.js +2 -1
- package/lib/es/locale/fa-IR.js +2 -1
- package/lib/es/locale/fr-FR.js +2 -1
- package/lib/es/locale/id-ID.js +2 -1
- package/lib/es/locale/it-IT.js +2 -1
- package/lib/es/locale/ja-JP.js +2 -1
- package/lib/es/locale/ko-KR.js +2 -1
- package/lib/es/locale/pl-PL.js +2 -1
- package/lib/es/locale/pt-BR.js +2 -1
- package/lib/es/locale/ru-RU.js +2 -1
- package/lib/es/locale/sk-SK.js +2 -1
- package/lib/es/locale/vi-VN.js +2 -1
- package/lib/es/locale/zh-CN.js +1 -0
- package/lib/es/locale/zh-HK.js +2 -1
- package/lib/es/locale/zh-TW.js +2 -1
- package/lib/index.js +107 -44
- package/lib/locale/ar-SA.js +2 -1
- package/lib/locale/ca-ES.js +2 -1
- package/lib/locale/de-DE.js +2 -1
- package/lib/locale/en-US.js +2 -1
- package/lib/locale/es-ES.js +2 -1
- package/lib/locale/fa-IR.js +2 -1
- package/lib/locale/fr-FR.js +2 -1
- package/lib/locale/id-ID.js +2 -1
- package/lib/locale/it-IT.js +2 -1
- package/lib/locale/ja-JP.js +2 -1
- package/lib/locale/ko-KR.js +2 -1
- package/lib/locale/pl-PL.js +2 -1
- package/lib/locale/pt-BR.js +2 -1
- package/lib/locale/ru-RU.js +2 -1
- package/lib/locale/sk-SK.js +2 -1
- package/lib/locale/vi-VN.js +2 -1
- package/lib/locale/zh-CN.js +1 -0
- package/lib/locale/zh-HK.js +2 -1
- package/lib/locale/zh-TW.js +2 -1
- package/lib/types/locale/en-US.d.ts +1 -0
- package/lib/types/services/context-keys.d.ts +2 -0
- package/lib/types/services/find-replace.service.d.ts +24 -3
- 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 +8 -8
package/lib/cjs/locale/zh-HK.js
CHANGED
|
@@ -17,10 +17,11 @@ const locale = { "find-replace": {
|
|
|
17
17
|
replace: "取代",
|
|
18
18
|
"replace-all": "全部取代",
|
|
19
19
|
"case-sensitive": "區分大小寫",
|
|
20
|
-
"find-placeholder": "
|
|
20
|
+
"find-placeholder": "尋找",
|
|
21
21
|
"advanced-finding": "進階搜尋與取代",
|
|
22
22
|
"replace-placeholder": "輸入取代字串",
|
|
23
23
|
"match-the-whole-cell": "完全符合儲存格內容",
|
|
24
|
+
"match-the-whole-word": "全詞匹配",
|
|
24
25
|
"find-direction": {
|
|
25
26
|
title: "尋找方向",
|
|
26
27
|
row: "按列搜尋",
|
package/lib/cjs/locale/zh-TW.js
CHANGED
|
@@ -17,10 +17,11 @@ const locale = { "find-replace": {
|
|
|
17
17
|
replace: "取代",
|
|
18
18
|
"replace-all": "全部取代",
|
|
19
19
|
"case-sensitive": "區分大小寫",
|
|
20
|
-
"find-placeholder": "
|
|
20
|
+
"find-placeholder": "尋找",
|
|
21
21
|
"advanced-finding": "進階搜尋與取代",
|
|
22
22
|
"replace-placeholder": "輸入取代字串",
|
|
23
23
|
"match-the-whole-cell": "完全符合儲存格內容",
|
|
24
|
+
"match-the-whole-word": "全詞匹配",
|
|
24
25
|
"find-direction": {
|
|
25
26
|
title: "尋找方向",
|
|
26
27
|
row: "按列搜尋",
|
package/lib/es/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { CommandType, Disposable, DisposableCollection, EDITOR_ACTIVATED, FOCUSING_SHEET, ICommandService, IConfigService, IConfirmService, IContextService, IUniverInstanceService, Inject, Injector, LocaleService, Plugin, RxDisposable, UniverInstanceType, createIdentifier, merge, toDisposable } from "@univerjs/core";
|
|
1
|
+
import { CommandType, DependentOn, Disposable, DisposableCollection, EDITOR_ACTIVATED, FOCUSING_SHEET, ICommandService, IConfigService, IConfirmService, IContextService, IUniverInstanceService, Inject, Injector, LocaleService, Plugin, RxDisposable, UniverInstanceType, createIdentifier, merge, toDisposable } from "@univerjs/core";
|
|
2
2
|
import { Button, Checkbox, FormDualColumnLayout, FormLayout, Input, MessageType, Pager, Select } from "@univerjs/design";
|
|
3
|
-
import { ComponentManager, IDialogService, ILayoutService, IMenuManagerService, IMessageService, IShortcutService, IconManager, KeyCode, MenuItemType, MetaKeys, RibbonDataGroup, getMenuHiddenObservable, useDebounceFn, useDependency, useObservable } from "@univerjs/ui";
|
|
3
|
+
import { ComponentManager, IDialogService, ILayoutService, IMenuManagerService, IMessageService, IShortcutService, IconManager, KeyCode, MenuItemType, MetaKeys, RibbonDataGroup, UniverUIPlugin, getMenuHiddenObservable, useDebounceFn, useDependency, useObservable } from "@univerjs/ui";
|
|
4
4
|
import { RENDER_RAW_FORMULA_KEY } from "@univerjs/engine-render";
|
|
5
5
|
import { BehaviorSubject, Subject, combineLatest, debounceTime, fromEvent, map, takeUntil, throttleTime } from "rxjs";
|
|
6
6
|
import { SearchIcon } from "@univerjs/icons";
|
|
@@ -32,9 +32,11 @@ const FIND_REPLACE_DIALOG_FOCUS = "FIND_REPLACE_DIALOG_FOCUS";
|
|
|
32
32
|
* If the find replace feature is activated and the replace is revealed.
|
|
33
33
|
*/
|
|
34
34
|
const FIND_REPLACE_REPLACE_REVEALED = "FIND_REPLACE_REPLACE_REVEALED";
|
|
35
|
+
/** If the focused unit has a find-replace provider. */
|
|
36
|
+
const FIND_REPLACE_AVAILABLE = "FIND_REPLACE_AVAILABLE";
|
|
35
37
|
|
|
36
38
|
//#endregion
|
|
37
|
-
//#region \0@oxc-project+runtime@0.
|
|
39
|
+
//#region \0@oxc-project+runtime@0.140.0/helpers/esm/typeof.js
|
|
38
40
|
function _typeof(o) {
|
|
39
41
|
"@babel/helpers - typeof";
|
|
40
42
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
@@ -45,7 +47,7 @@ function _typeof(o) {
|
|
|
45
47
|
}
|
|
46
48
|
|
|
47
49
|
//#endregion
|
|
48
|
-
//#region \0@oxc-project+runtime@0.
|
|
50
|
+
//#region \0@oxc-project+runtime@0.140.0/helpers/esm/toPrimitive.js
|
|
49
51
|
function toPrimitive(t, r) {
|
|
50
52
|
if ("object" != _typeof(t) || !t) return t;
|
|
51
53
|
var e = t[Symbol.toPrimitive];
|
|
@@ -58,14 +60,14 @@ function toPrimitive(t, r) {
|
|
|
58
60
|
}
|
|
59
61
|
|
|
60
62
|
//#endregion
|
|
61
|
-
//#region \0@oxc-project+runtime@0.
|
|
63
|
+
//#region \0@oxc-project+runtime@0.140.0/helpers/esm/toPropertyKey.js
|
|
62
64
|
function toPropertyKey(t) {
|
|
63
65
|
var i = toPrimitive(t, "string");
|
|
64
66
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
65
67
|
}
|
|
66
68
|
|
|
67
69
|
//#endregion
|
|
68
|
-
//#region \0@oxc-project+runtime@0.
|
|
70
|
+
//#region \0@oxc-project+runtime@0.140.0/helpers/esm/defineProperty.js
|
|
69
71
|
function _defineProperty(e, r, t) {
|
|
70
72
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
71
73
|
value: t,
|
|
@@ -76,7 +78,7 @@ function _defineProperty(e, r, t) {
|
|
|
76
78
|
}
|
|
77
79
|
|
|
78
80
|
//#endregion
|
|
79
|
-
//#region \0@oxc-project+runtime@0.
|
|
81
|
+
//#region \0@oxc-project+runtime@0.140.0/helpers/esm/decorateParam.js
|
|
80
82
|
function __decorateParam(paramIndex, decorator) {
|
|
81
83
|
return function(target, key) {
|
|
82
84
|
decorator(target, key, paramIndex);
|
|
@@ -84,7 +86,7 @@ function __decorateParam(paramIndex, decorator) {
|
|
|
84
86
|
}
|
|
85
87
|
|
|
86
88
|
//#endregion
|
|
87
|
-
//#region \0@oxc-project+runtime@0.
|
|
89
|
+
//#region \0@oxc-project+runtime@0.140.0/helpers/esm/decorate.js
|
|
88
90
|
function __decorate(decorators, target, key, desc) {
|
|
89
91
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
90
92
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -105,6 +107,7 @@ function shouldStateUpdateTriggerResearch(statusUpdate) {
|
|
|
105
107
|
if (typeof statusUpdate.inputtingFindString !== "undefined") return true;
|
|
106
108
|
if (typeof statusUpdate.findDirection !== "undefined") return true;
|
|
107
109
|
if (typeof statusUpdate.matchesTheWholeCell !== "undefined") return true;
|
|
110
|
+
if (typeof statusUpdate.matchesTheWholeWord !== "undefined") return true;
|
|
108
111
|
if (typeof statusUpdate.caseSensitive !== "undefined") return true;
|
|
109
112
|
if (typeof statusUpdate.findScope !== "undefined") return true;
|
|
110
113
|
if (typeof statusUpdate.findBy !== "undefined") return true;
|
|
@@ -170,7 +173,8 @@ let FindReplaceModel = class FindReplaceModel extends Disposable {
|
|
|
170
173
|
findBy: this._state.findBy,
|
|
171
174
|
replaceRevealed: this._state.replaceRevealed,
|
|
172
175
|
caseSensitive: this._state.caseSensitive,
|
|
173
|
-
matchesTheWholeCell: this._state.matchesTheWholeCell
|
|
176
|
+
matchesTheWholeCell: this._state.matchesTheWholeCell,
|
|
177
|
+
matchesTheWholeWord: this._state.matchesTheWholeWord
|
|
174
178
|
})))).flat();
|
|
175
179
|
this._subscribeToModelsChanges(findModels);
|
|
176
180
|
const newMatches = this._matches = findModels.map((c) => c.getMatches()).flat();
|
|
@@ -357,6 +361,7 @@ function createInitFindReplaceState() {
|
|
|
357
361
|
matchesCount: 0,
|
|
358
362
|
matchesPosition: 0,
|
|
359
363
|
matchesTheWholeCell: false,
|
|
364
|
+
matchesTheWholeWord: false,
|
|
360
365
|
replaceRevealed: false,
|
|
361
366
|
replaceString: "",
|
|
362
367
|
revealed: true
|
|
@@ -382,6 +387,7 @@ var FindReplaceState = class {
|
|
|
382
387
|
_defineProperty(this, "_matchesCount", 0);
|
|
383
388
|
_defineProperty(this, "_caseSensitive", true);
|
|
384
389
|
_defineProperty(this, "_matchesTheWholeCell", false);
|
|
390
|
+
_defineProperty(this, "_matchesTheWholeWord", false);
|
|
385
391
|
_defineProperty(this, "_findDirection", "row");
|
|
386
392
|
_defineProperty(this, "_findScope", "subunit");
|
|
387
393
|
_defineProperty(this, "_findBy", "value");
|
|
@@ -417,6 +423,9 @@ var FindReplaceState = class {
|
|
|
417
423
|
get matchesTheWholeCell() {
|
|
418
424
|
return this._matchesTheWholeCell;
|
|
419
425
|
}
|
|
426
|
+
get matchesTheWholeWord() {
|
|
427
|
+
return this._matchesTheWholeWord;
|
|
428
|
+
}
|
|
420
429
|
get findDirection() {
|
|
421
430
|
return this._findDirection;
|
|
422
431
|
}
|
|
@@ -487,6 +496,11 @@ var FindReplaceState = class {
|
|
|
487
496
|
changedState.matchesTheWholeCell = changes.matchesTheWholeCell;
|
|
488
497
|
changed = true;
|
|
489
498
|
}
|
|
499
|
+
if (typeof changes.matchesTheWholeWord !== "undefined" && changes.matchesTheWholeWord !== this._matchesTheWholeWord) {
|
|
500
|
+
this._matchesTheWholeWord = changes.matchesTheWholeWord;
|
|
501
|
+
changedState.matchesTheWholeWord = changes.matchesTheWholeWord;
|
|
502
|
+
changed = true;
|
|
503
|
+
}
|
|
490
504
|
if (typeof changes.inputtingFindString !== "undefined" && changes.inputtingFindString !== this._inputtingFindString) {
|
|
491
505
|
this._inputtingFindString = changes.inputtingFindString;
|
|
492
506
|
changedState.inputtingFindString = changes.inputtingFindString;
|
|
@@ -509,6 +523,7 @@ var FindReplaceState = class {
|
|
|
509
523
|
matchesCount: this._matchesCount,
|
|
510
524
|
matchesPosition: this._matchesPosition,
|
|
511
525
|
matchesTheWholeCell: this._matchesTheWholeCell,
|
|
526
|
+
matchesTheWholeWord: this._matchesTheWholeWord,
|
|
512
527
|
replaceRevealed: this._replaceRevealed,
|
|
513
528
|
revealed: this._revealed
|
|
514
529
|
});
|
|
@@ -529,10 +544,11 @@ let FindReplaceService = class FindReplaceService extends Disposable {
|
|
|
529
544
|
get replaceRevealed() {
|
|
530
545
|
return this._state.replaceRevealed;
|
|
531
546
|
}
|
|
532
|
-
constructor(_injector, _contextService) {
|
|
547
|
+
constructor(_injector, _contextService, _univerInstanceService) {
|
|
533
548
|
super();
|
|
534
549
|
this._injector = _injector;
|
|
535
550
|
this._contextService = _contextService;
|
|
551
|
+
this._univerInstanceService = _univerInstanceService;
|
|
536
552
|
_defineProperty(this, "_providers", /* @__PURE__ */ new Set());
|
|
537
553
|
_defineProperty(this, "_state", new FindReplaceState());
|
|
538
554
|
_defineProperty(this, "_model", void 0);
|
|
@@ -543,6 +559,10 @@ let FindReplaceService = class FindReplaceService extends Disposable {
|
|
|
543
559
|
_defineProperty(this, "replaceables$", this._replaceables$.asObservable());
|
|
544
560
|
_defineProperty(this, "_focusSignal$", new Subject());
|
|
545
561
|
_defineProperty(this, "focusSignal$", this._focusSignal$.asObservable());
|
|
562
|
+
_defineProperty(this, "_providerCapabilities$", new BehaviorSubject(null));
|
|
563
|
+
_defineProperty(this, "providerCapabilities$", this._providerCapabilities$.asObservable());
|
|
564
|
+
_defineProperty(this, "_activeProvider", null);
|
|
565
|
+
this.disposeWithMe(toDisposable(this._univerInstanceService.focused$.subscribe(() => this._syncActiveProvider())));
|
|
546
566
|
}
|
|
547
567
|
dispose() {
|
|
548
568
|
super.dispose();
|
|
@@ -551,6 +571,7 @@ let FindReplaceService = class FindReplaceService extends Disposable {
|
|
|
551
571
|
this._replaceables$.next([]);
|
|
552
572
|
this._replaceables$.complete();
|
|
553
573
|
this._focusSignal$.complete();
|
|
574
|
+
this._providerCapabilities$.complete();
|
|
554
575
|
}
|
|
555
576
|
getProviders() {
|
|
556
577
|
return this._providers;
|
|
@@ -581,6 +602,9 @@ let FindReplaceService = class FindReplaceService extends Disposable {
|
|
|
581
602
|
changeMatchesTheWholeCell(matchesTheWholeCell) {
|
|
582
603
|
this._state.changeState({ matchesTheWholeCell });
|
|
583
604
|
}
|
|
605
|
+
changeMatchesTheWholeWord(matchesTheWholeWord) {
|
|
606
|
+
this._state.changeState({ matchesTheWholeWord });
|
|
607
|
+
}
|
|
584
608
|
changeCaseSensitive(caseSensitive) {
|
|
585
609
|
this._state.changeState({ caseSensitive });
|
|
586
610
|
}
|
|
@@ -630,8 +654,8 @@ let FindReplaceService = class FindReplaceService extends Disposable {
|
|
|
630
654
|
(_this$_model2 = this._model) === null || _this$_model2 === void 0 || _this$_model2.focusSelection();
|
|
631
655
|
}
|
|
632
656
|
start(revealReplace = false) {
|
|
633
|
-
if (this.
|
|
634
|
-
this._model = this._injector.createInstance(FindReplaceModel, this._state, this.
|
|
657
|
+
if (!this._activeProvider) return false;
|
|
658
|
+
this._model = this._injector.createInstance(FindReplaceModel, this._state, /* @__PURE__ */ new Set([this._activeProvider]));
|
|
635
659
|
this._modelDisposables = new DisposableCollection();
|
|
636
660
|
this._modelDisposables.add(toDisposable(this._model.currentMatch$.subscribe((match) => this._currentMatch$.next(match))));
|
|
637
661
|
this._modelDisposables.add(toDisposable(this._model.replaceables$.subscribe((replaceables) => this._replaceables$.next(replaceables))));
|
|
@@ -656,7 +680,21 @@ let FindReplaceService = class FindReplaceService extends Disposable {
|
|
|
656
680
|
}
|
|
657
681
|
registerFindReplaceProvider(provider) {
|
|
658
682
|
this._providers.add(provider);
|
|
659
|
-
|
|
683
|
+
this._syncActiveProvider();
|
|
684
|
+
return toDisposable(() => {
|
|
685
|
+
this._providers.delete(provider);
|
|
686
|
+
this._syncActiveProvider();
|
|
687
|
+
});
|
|
688
|
+
}
|
|
689
|
+
_syncActiveProvider() {
|
|
690
|
+
var _Array$from$find, _provider$capabilitie;
|
|
691
|
+
const unit = this._univerInstanceService.getFocusedUnit();
|
|
692
|
+
const provider = unit == null ? null : (_Array$from$find = Array.from(this._providers).find((candidate) => candidate.isSupported(unit))) !== null && _Array$from$find !== void 0 ? _Array$from$find : null;
|
|
693
|
+
if (provider === this._activeProvider) return;
|
|
694
|
+
if (this.revealed) this.terminate();
|
|
695
|
+
this._activeProvider = provider;
|
|
696
|
+
this._providerCapabilities$.next((_provider$capabilitie = provider === null || provider === void 0 ? void 0 : provider.capabilities) !== null && _provider$capabilitie !== void 0 ? _provider$capabilitie : null);
|
|
697
|
+
this._contextService.setContextValue(FIND_REPLACE_AVAILABLE, provider != null);
|
|
660
698
|
}
|
|
661
699
|
_toggleRevealReplace(revealReplace) {
|
|
662
700
|
this._contextService.setContextValue(FIND_REPLACE_REPLACE_REVEALED, revealReplace);
|
|
@@ -665,7 +703,11 @@ let FindReplaceService = class FindReplaceService extends Disposable {
|
|
|
665
703
|
this._contextService.setContextValue(RENDER_RAW_FORMULA_KEY, force);
|
|
666
704
|
}
|
|
667
705
|
};
|
|
668
|
-
FindReplaceService = __decorate([
|
|
706
|
+
FindReplaceService = __decorate([
|
|
707
|
+
__decorateParam(0, Inject(Injector)),
|
|
708
|
+
__decorateParam(1, IContextService),
|
|
709
|
+
__decorateParam(2, IUniverInstanceService)
|
|
710
|
+
], FindReplaceService);
|
|
669
711
|
|
|
670
712
|
//#endregion
|
|
671
713
|
//#region src/commands/commands/replace.command.ts
|
|
@@ -776,6 +818,10 @@ function FindReplaceMenuItemFactory(accessor) {
|
|
|
776
818
|
//#region src/menu/schema.ts
|
|
777
819
|
const menuSchema = { [RibbonDataGroup.ORGANIZATION]: { [OpenFindDialogOperation.id]: {
|
|
778
820
|
order: 2,
|
|
821
|
+
gridLayout: {
|
|
822
|
+
row: 1,
|
|
823
|
+
column: 3
|
|
824
|
+
},
|
|
779
825
|
menuItemFactory: FindReplaceMenuItemFactory
|
|
780
826
|
} } };
|
|
781
827
|
|
|
@@ -791,8 +837,8 @@ function whenFindReplaceInputFocused(contextService) {
|
|
|
791
837
|
return contextService.getContextValue(FIND_REPLACE_INPUT_FOCUS);
|
|
792
838
|
}
|
|
793
839
|
const FIND_REPLACE_SHORTCUT_GROUP = "7_find-replace-shortcuts";
|
|
794
|
-
function
|
|
795
|
-
return contextService.getContextValue(
|
|
840
|
+
function whenFindReplaceAvailable(contextService) {
|
|
841
|
+
return contextService.getContextValue(FIND_REPLACE_AVAILABLE);
|
|
796
842
|
}
|
|
797
843
|
function whenEditorNotActivated(contextService) {
|
|
798
844
|
return !contextService.getContextValue(EDITOR_ACTIVATED);
|
|
@@ -804,7 +850,7 @@ const OpenFindDialogShortcutItem = {
|
|
|
804
850
|
group: FIND_REPLACE_SHORTCUT_GROUP,
|
|
805
851
|
groupTitle: "find-replace.shortcut.panel",
|
|
806
852
|
preconditions(contextService) {
|
|
807
|
-
return !whenFindReplaceDialogFocused(contextService) &&
|
|
853
|
+
return !whenFindReplaceDialogFocused(contextService) && whenFindReplaceAvailable(contextService) && whenEditorNotActivated(contextService);
|
|
808
854
|
}
|
|
809
855
|
};
|
|
810
856
|
const MacOpenFindDialogShortcutItem = {
|
|
@@ -813,7 +859,7 @@ const MacOpenFindDialogShortcutItem = {
|
|
|
813
859
|
binding: KeyCode.F | MetaKeys.CTRL_COMMAND,
|
|
814
860
|
mac: KeyCode.F | MetaKeys.MAC_CTRL,
|
|
815
861
|
preconditions(contextService) {
|
|
816
|
-
return !whenFindReplaceDialogFocused(contextService) &&
|
|
862
|
+
return !whenFindReplaceDialogFocused(contextService) && whenFindReplaceAvailable(contextService) && whenEditorNotActivated(contextService);
|
|
817
863
|
}
|
|
818
864
|
};
|
|
819
865
|
const OpenReplaceDialogShortcutItem = {
|
|
@@ -824,7 +870,7 @@ const OpenReplaceDialogShortcutItem = {
|
|
|
824
870
|
group: FIND_REPLACE_SHORTCUT_GROUP,
|
|
825
871
|
groupTitle: "find-replace.shortcut.panel",
|
|
826
872
|
preconditions(contextService) {
|
|
827
|
-
return
|
|
873
|
+
return whenFindReplaceAvailable(contextService) && whenEditorNotActivated(contextService) && (!whenFindReplaceDialogFocused(contextService) || !whenReplaceRevealed(contextService));
|
|
828
874
|
}
|
|
829
875
|
};
|
|
830
876
|
const GoToNextFindMatchShortcutItem = {
|
|
@@ -919,13 +965,14 @@ let FindReplaceController = class FindReplaceController extends RxDisposable {
|
|
|
919
965
|
});
|
|
920
966
|
}
|
|
921
967
|
_openPanel() {
|
|
968
|
+
var _this$_univerInstance;
|
|
969
|
+
const sessionUnitId = (_this$_univerInstance = this._univerInstanceService.getFocusedUnit()) === null || _this$_univerInstance === void 0 ? void 0 : _this$_univerInstance.getUnitId();
|
|
922
970
|
this._dialogService.open({
|
|
923
971
|
id: FIND_REPLACE_DIALOG_ID,
|
|
924
972
|
draggable: true,
|
|
925
973
|
width: FIND_REPLACE_PANEL_WIDTH,
|
|
926
974
|
title: { title: this._localeService.t("find-replace.dialog.title") },
|
|
927
975
|
children: { label: "FindReplaceDialog" },
|
|
928
|
-
destroyOnClose: true,
|
|
929
976
|
mask: false,
|
|
930
977
|
maskClosable: false,
|
|
931
978
|
defaultPosition: getFindReplaceDialogDefaultPosition(),
|
|
@@ -933,7 +980,7 @@ let FindReplaceController = class FindReplaceController extends RxDisposable {
|
|
|
933
980
|
onClose: () => this.closePanel()
|
|
934
981
|
});
|
|
935
982
|
this._closingListenerDisposable = toDisposable(this._univerInstanceService.focused$.pipe(takeUntil(this.dispose$)).subscribe((focused) => {
|
|
936
|
-
if (!focused ||
|
|
983
|
+
if (!focused || focused !== sessionUnitId) this.closePanel();
|
|
937
984
|
}));
|
|
938
985
|
}
|
|
939
986
|
closePanel() {
|
|
@@ -966,7 +1013,7 @@ function getFindReplaceDialogDefaultPosition() {
|
|
|
966
1013
|
//#endregion
|
|
967
1014
|
//#region package.json
|
|
968
1015
|
var name = "@univerjs/find-replace";
|
|
969
|
-
var version = "1.0.0-alpha.
|
|
1016
|
+
var version = "1.0.0-alpha.8";
|
|
970
1017
|
|
|
971
1018
|
//#endregion
|
|
972
1019
|
//#region src/config/config.ts
|
|
@@ -1091,7 +1138,8 @@ const ReplaceDialog = forwardRef(function ReplaceDialogImpl(_props, ref) {
|
|
|
1091
1138
|
const messageService = useDependency(IMessageService);
|
|
1092
1139
|
const currentMatch = useObservable(findReplaceService.currentMatch$, void 0, true);
|
|
1093
1140
|
const replaceables = useObservable(findReplaceService.replaceables$, void 0, true);
|
|
1094
|
-
const
|
|
1141
|
+
const capabilities = useObservable(findReplaceService.providerCapabilities$, null, true);
|
|
1142
|
+
const { matchesCount, matchesPosition, findString, inputtingFindString, replaceString, caseSensitive, matchesTheWholeCell, matchesTheWholeWord, findDirection, findScope, findBy, findCompleted } = useObservable(findReplaceService.state$, void 0, true);
|
|
1095
1143
|
const findDisabled = inputtingFindString.length === 0;
|
|
1096
1144
|
const replaceDisabled = matchesCount === 0 || !(currentMatch === null || currentMatch === void 0 ? void 0 : currentMatch.replaceable);
|
|
1097
1145
|
const replaceAllDisabled = replaceables.length === 0;
|
|
@@ -1113,7 +1161,7 @@ const ReplaceDialog = forwardRef(function ReplaceDialogImpl(_props, ref) {
|
|
|
1113
1161
|
const onClickReplaceAllButton = useCallback(async () => {
|
|
1114
1162
|
await commandService.executeCommand(ReplaceAllMatchesCommand.id);
|
|
1115
1163
|
focus();
|
|
1116
|
-
}, [commandService]);
|
|
1164
|
+
}, [commandService, focus]);
|
|
1117
1165
|
const onChangeFindDirection = useCallback((findDirection) => {
|
|
1118
1166
|
findReplaceService.changeFindDirection(findDirection);
|
|
1119
1167
|
}, [findReplaceService]);
|
|
@@ -1168,7 +1216,7 @@ const ReplaceDialog = forwardRef(function ReplaceDialogImpl(_props, ref) {
|
|
|
1168
1216
|
onChange: (value) => onReplaceStringChange(value)
|
|
1169
1217
|
})
|
|
1170
1218
|
}),
|
|
1171
|
-
/* @__PURE__ */ jsx(FormLayout, {
|
|
1219
|
+
(capabilities === null || capabilities === void 0 ? void 0 : capabilities.findDirection) && /* @__PURE__ */ jsx(FormLayout, {
|
|
1172
1220
|
label: localeService.t("find-replace.dialog.find-direction.title"),
|
|
1173
1221
|
children: /* @__PURE__ */ jsx(Select, {
|
|
1174
1222
|
value: findDirection,
|
|
@@ -1176,14 +1224,14 @@ const ReplaceDialog = forwardRef(function ReplaceDialogImpl(_props, ref) {
|
|
|
1176
1224
|
onChange: onChangeFindDirection
|
|
1177
1225
|
})
|
|
1178
1226
|
}),
|
|
1179
|
-
/* @__PURE__ */ jsx(FormDualColumnLayout, { children: /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(FormLayout, {
|
|
1227
|
+
((capabilities === null || capabilities === void 0 ? void 0 : capabilities.findScope) || (capabilities === null || capabilities === void 0 ? void 0 : capabilities.findBy)) && /* @__PURE__ */ jsx(FormDualColumnLayout, { children: /* @__PURE__ */ jsxs(Fragment, { children: [capabilities.findScope && /* @__PURE__ */ jsx(FormLayout, {
|
|
1180
1228
|
label: localeService.t("find-replace.dialog.find-scope.title"),
|
|
1181
1229
|
children: /* @__PURE__ */ jsx(Select, {
|
|
1182
1230
|
value: findScope,
|
|
1183
1231
|
options: findScopeOptions,
|
|
1184
1232
|
onChange: onChangeFindScope
|
|
1185
1233
|
})
|
|
1186
|
-
}), /* @__PURE__ */ jsx(FormLayout, {
|
|
1234
|
+
}), capabilities.findBy && /* @__PURE__ */ jsx(FormLayout, {
|
|
1187
1235
|
label: localeService.t("find-replace.dialog.find-by.title"),
|
|
1188
1236
|
children: /* @__PURE__ */ jsx(Select, {
|
|
1189
1237
|
value: findBy,
|
|
@@ -1191,19 +1239,29 @@ const ReplaceDialog = forwardRef(function ReplaceDialogImpl(_props, ref) {
|
|
|
1191
1239
|
onChange: onChangeFindBy
|
|
1192
1240
|
})
|
|
1193
1241
|
})] }) }),
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1242
|
+
((capabilities === null || capabilities === void 0 ? void 0 : capabilities.caseSensitive) || (capabilities === null || capabilities === void 0 ? void 0 : capabilities.matchesTheWholeCell) || (capabilities === null || capabilities === void 0 ? void 0 : capabilities.matchesTheWholeWord)) && /* @__PURE__ */ jsx(FormDualColumnLayout, { children: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1243
|
+
capabilities.caseSensitive && /* @__PURE__ */ jsx(FormLayout, { children: /* @__PURE__ */ jsx(Checkbox, {
|
|
1244
|
+
checked: caseSensitive,
|
|
1245
|
+
onChange: (checked) => {
|
|
1246
|
+
findReplaceService.changeCaseSensitive(checked);
|
|
1247
|
+
if (findCompleted) findReplaceService.find();
|
|
1248
|
+
},
|
|
1249
|
+
children: localeService.t("find-replace.dialog.case-sensitive")
|
|
1250
|
+
}) }),
|
|
1251
|
+
capabilities.matchesTheWholeCell && /* @__PURE__ */ jsx(FormLayout, { children: /* @__PURE__ */ jsx(Checkbox, {
|
|
1252
|
+
checked: matchesTheWholeCell,
|
|
1253
|
+
onChange: (checked) => findReplaceService.changeMatchesTheWholeCell(checked),
|
|
1254
|
+
children: localeService.t("find-replace.dialog.match-the-whole-cell")
|
|
1255
|
+
}) }),
|
|
1256
|
+
capabilities.matchesTheWholeWord && /* @__PURE__ */ jsx(FormLayout, { children: /* @__PURE__ */ jsx(Checkbox, {
|
|
1257
|
+
checked: matchesTheWholeWord,
|
|
1258
|
+
onChange: (checked) => {
|
|
1259
|
+
findReplaceService.changeMatchesTheWholeWord(checked);
|
|
1260
|
+
if (findCompleted) findReplaceService.find();
|
|
1261
|
+
},
|
|
1262
|
+
children: localeService.t("find-replace.dialog.match-the-whole-word")
|
|
1263
|
+
}) })
|
|
1264
|
+
] }) }),
|
|
1207
1265
|
/* @__PURE__ */ jsxs("div", {
|
|
1208
1266
|
className: "univer-mt-6 univer-flex univer-justify-between",
|
|
1209
1267
|
children: [/* @__PURE__ */ jsx(Button, {
|
|
@@ -1233,9 +1291,10 @@ function FindReplaceDialog() {
|
|
|
1233
1291
|
const state = useObservable(findReplaceService.state$, void 0, true);
|
|
1234
1292
|
const dialogContainerRef = useRef(null);
|
|
1235
1293
|
useEffect(() => {
|
|
1236
|
-
|
|
1237
|
-
if (
|
|
1238
|
-
|
|
1294
|
+
const container = dialogContainerRef.current;
|
|
1295
|
+
if (!container) return;
|
|
1296
|
+
const disposable = layoutService.registerContainerElement(container);
|
|
1297
|
+
return () => disposable.dispose();
|
|
1239
1298
|
}, [layoutService]);
|
|
1240
1299
|
const focusRef = useRef(null);
|
|
1241
1300
|
const setDialogContainerFocus = useCallback((focused) => contextService.setContextValue(FIND_REPLACE_DIALOG_FOCUS, focused), [contextService]);
|
|
@@ -1323,7 +1382,11 @@ let UniverFindReplacePlugin = class UniverFindReplacePlugin extends Plugin {
|
|
|
1323
1382
|
_defineProperty(UniverFindReplacePlugin, "pluginName", "UNIVER_FIND_REPLACE_PLUGIN");
|
|
1324
1383
|
_defineProperty(UniverFindReplacePlugin, "packageName", name);
|
|
1325
1384
|
_defineProperty(UniverFindReplacePlugin, "version", version);
|
|
1326
|
-
UniverFindReplacePlugin = __decorate([
|
|
1385
|
+
UniverFindReplacePlugin = __decorate([
|
|
1386
|
+
DependentOn(UniverUIPlugin),
|
|
1387
|
+
__decorateParam(1, Inject(Injector)),
|
|
1388
|
+
__decorateParam(2, IConfigService)
|
|
1389
|
+
], UniverFindReplacePlugin);
|
|
1327
1390
|
|
|
1328
1391
|
//#endregion
|
|
1329
1392
|
export { FindBy, FindDirection, FindModel, FindReplaceController, menuSchema as FindReplaceMenuSchema, FindReplaceModel, FindReplaceService, FindReplaceState, FindScope, GoToNextMatchOperation, GoToPreviousMatchOperation, IFindReplaceService, OpenFindDialogOperation, OpenReplaceDialogOperation, ReplaceAllMatchesCommand, ReplaceCurrentMatchCommand, UniverFindReplacePlugin, createInitFindReplaceState };
|
package/lib/es/locale/ar-SA.js
CHANGED
|
@@ -16,10 +16,11 @@ const locale = { "find-replace": {
|
|
|
16
16
|
replace: "استبدال",
|
|
17
17
|
"replace-all": "استبدال الكل",
|
|
18
18
|
"case-sensitive": "حساس لحالة الأحرف",
|
|
19
|
-
"find-placeholder": "البحث
|
|
19
|
+
"find-placeholder": "البحث",
|
|
20
20
|
"advanced-finding": "بحث واستبدال متقدم",
|
|
21
21
|
"replace-placeholder": "أدخل نص الاستبدال",
|
|
22
22
|
"match-the-whole-cell": "تطابق الخلية بأكملها",
|
|
23
|
+
"match-the-whole-word": "مطابقة الكلمة بالكامل",
|
|
23
24
|
"find-direction": {
|
|
24
25
|
title: "اتجاه البحث",
|
|
25
26
|
row: "البحث حسب الصف",
|
package/lib/es/locale/ca-ES.js
CHANGED
|
@@ -16,10 +16,11 @@ const locale = { "find-replace": {
|
|
|
16
16
|
replace: "Reemplaça",
|
|
17
17
|
"replace-all": "Reemplaça-ho tot",
|
|
18
18
|
"case-sensitive": "Distingeix majúscules de minúscules",
|
|
19
|
-
"find-placeholder": "Cerca
|
|
19
|
+
"find-placeholder": "Cerca",
|
|
20
20
|
"advanced-finding": "Cerca i reemplaçament avançats",
|
|
21
21
|
"replace-placeholder": "Introduïu la cadena de reemplaçament",
|
|
22
22
|
"match-the-whole-cell": "Coincidir amb la cel·la sencera",
|
|
23
|
+
"match-the-whole-word": "Coincideix amb la paraula sencera",
|
|
23
24
|
"find-direction": {
|
|
24
25
|
title: "Direcció de la cerca",
|
|
25
26
|
row: "Cerca per fila",
|
package/lib/es/locale/de-DE.js
CHANGED
|
@@ -16,10 +16,11 @@ const locale = { "find-replace": {
|
|
|
16
16
|
replace: "Ersetzen",
|
|
17
17
|
"replace-all": "Alle ersetzen",
|
|
18
18
|
"case-sensitive": "Groß-/Kleinschreibung beachten",
|
|
19
|
-
"find-placeholder": "
|
|
19
|
+
"find-placeholder": "Suchen",
|
|
20
20
|
"advanced-finding": "Erweitertes Suchen & Ersetzen",
|
|
21
21
|
"replace-placeholder": "Ersetzungstext eingeben",
|
|
22
22
|
"match-the-whole-cell": "Ganze Zelle vergleichen",
|
|
23
|
+
"match-the-whole-word": "Nur ganzes Wort",
|
|
23
24
|
"find-direction": {
|
|
24
25
|
title: "Suchrichtung",
|
|
25
26
|
row: "Nach Zeile suchen",
|
package/lib/es/locale/en-US.js
CHANGED
|
@@ -31,10 +31,11 @@ const locale = { "find-replace": {
|
|
|
31
31
|
replace: "Replace",
|
|
32
32
|
"replace-all": "Replace All",
|
|
33
33
|
"case-sensitive": "Case Sensitive",
|
|
34
|
-
"find-placeholder": "Find
|
|
34
|
+
"find-placeholder": "Find",
|
|
35
35
|
"advanced-finding": "Advanced Searching & Replace",
|
|
36
36
|
"replace-placeholder": "Input Replace String",
|
|
37
37
|
"match-the-whole-cell": "Match the Whole Cell",
|
|
38
|
+
"match-the-whole-word": "Match Whole Word",
|
|
38
39
|
"find-direction": {
|
|
39
40
|
title: "Find Direction",
|
|
40
41
|
row: "Search by Row",
|
package/lib/es/locale/es-ES.js
CHANGED
|
@@ -16,10 +16,11 @@ const locale = { "find-replace": {
|
|
|
16
16
|
replace: "Reemplazar",
|
|
17
17
|
"replace-all": "Reemplazar todo",
|
|
18
18
|
"case-sensitive": "Distinguir mayúsculas y minúsculas",
|
|
19
|
-
"find-placeholder": "Buscar
|
|
19
|
+
"find-placeholder": "Buscar",
|
|
20
20
|
"advanced-finding": "Búsqueda y reemplazo avanzados",
|
|
21
21
|
"replace-placeholder": "Introducir cadena de reemplazo",
|
|
22
22
|
"match-the-whole-cell": "Coincidir con toda la celda",
|
|
23
|
+
"match-the-whole-word": "Coincidir con la palabra completa",
|
|
23
24
|
"find-direction": {
|
|
24
25
|
title: "Dirección de búsqueda",
|
|
25
26
|
row: "Buscar por fila",
|
package/lib/es/locale/fa-IR.js
CHANGED
|
@@ -16,10 +16,11 @@ const locale = { "find-replace": {
|
|
|
16
16
|
replace: "جایگزینی",
|
|
17
17
|
"replace-all": "جایگزینی همه",
|
|
18
18
|
"case-sensitive": "حساس به حروف بزرگ و کوچک",
|
|
19
|
-
"find-placeholder": "جستجو
|
|
19
|
+
"find-placeholder": "جستجو",
|
|
20
20
|
"advanced-finding": "جستجو و جایگزینی پیشرفته",
|
|
21
21
|
"replace-placeholder": "رشته جایگزینی را وارد کنید",
|
|
22
22
|
"match-the-whole-cell": "تطابق کل سلول",
|
|
23
|
+
"match-the-whole-word": "تطبیق کل کلمه",
|
|
23
24
|
"find-direction": {
|
|
24
25
|
title: "جهت جستجو",
|
|
25
26
|
row: "جستجو بر اساس ردیف",
|
package/lib/es/locale/fr-FR.js
CHANGED
|
@@ -16,10 +16,11 @@ const locale = { "find-replace": {
|
|
|
16
16
|
replace: "Remplacer",
|
|
17
17
|
"replace-all": "Remplacer tout",
|
|
18
18
|
"case-sensitive": "Sensible à la casse",
|
|
19
|
-
"find-placeholder": "Rechercher
|
|
19
|
+
"find-placeholder": "Rechercher",
|
|
20
20
|
"advanced-finding": "Recherche et remplacement avancés",
|
|
21
21
|
"replace-placeholder": "Saisir la chaîne de remplacement",
|
|
22
22
|
"match-the-whole-cell": "Correspondance de la cellule entière",
|
|
23
|
+
"match-the-whole-word": "Mot entier",
|
|
23
24
|
"find-direction": {
|
|
24
25
|
title: "Direction de la recherche",
|
|
25
26
|
row: "Rechercher par ligne",
|
package/lib/es/locale/id-ID.js
CHANGED
|
@@ -16,10 +16,11 @@ const locale = { "find-replace": {
|
|
|
16
16
|
replace: "Ganti",
|
|
17
17
|
"replace-all": "Ganti Semua",
|
|
18
18
|
"case-sensitive": "Sensitif Huruf",
|
|
19
|
-
"find-placeholder": "Cari
|
|
19
|
+
"find-placeholder": "Cari",
|
|
20
20
|
"advanced-finding": "Pencarian & Penggantian Lanjutan",
|
|
21
21
|
"replace-placeholder": "Masukkan String Pengganti",
|
|
22
22
|
"match-the-whole-cell": "Cocokkan Seluruh Sel",
|
|
23
|
+
"match-the-whole-word": "Cocokkan seluruh kata",
|
|
23
24
|
"find-direction": {
|
|
24
25
|
title: "Arah Cari",
|
|
25
26
|
row: "Cari per Baris",
|
package/lib/es/locale/it-IT.js
CHANGED
|
@@ -16,10 +16,11 @@ const locale = { "find-replace": {
|
|
|
16
16
|
replace: "Sostituisci",
|
|
17
17
|
"replace-all": "Sostituisci tutto",
|
|
18
18
|
"case-sensitive": "Maiuscole/minuscole",
|
|
19
|
-
"find-placeholder": "Trova
|
|
19
|
+
"find-placeholder": "Trova",
|
|
20
20
|
"advanced-finding": "Ricerca e sostituzione avanzate",
|
|
21
21
|
"replace-placeholder": "Inserisci stringa di sostituzione",
|
|
22
22
|
"match-the-whole-cell": "Corrispondenza con l'intera cella",
|
|
23
|
+
"match-the-whole-word": "Trova parola intera",
|
|
23
24
|
"find-direction": {
|
|
24
25
|
title: "Direzione ricerca",
|
|
25
26
|
row: "Cerca per riga",
|
package/lib/es/locale/ja-JP.js
CHANGED
|
@@ -16,10 +16,11 @@ const locale = { "find-replace": {
|
|
|
16
16
|
replace: "置換",
|
|
17
17
|
"replace-all": "すべて置換",
|
|
18
18
|
"case-sensitive": "大文字と小文字を区別",
|
|
19
|
-
"find-placeholder": "
|
|
19
|
+
"find-placeholder": "検索",
|
|
20
20
|
"advanced-finding": "詳細検索と置換",
|
|
21
21
|
"replace-placeholder": "置換文字列を入力",
|
|
22
22
|
"match-the-whole-cell": "セル全体に一致",
|
|
23
|
+
"match-the-whole-word": "単語単位で検索",
|
|
23
24
|
"find-direction": {
|
|
24
25
|
title: "検索方向",
|
|
25
26
|
row: "行ごとに検索",
|
package/lib/es/locale/ko-KR.js
CHANGED
|
@@ -16,10 +16,11 @@ const locale = { "find-replace": {
|
|
|
16
16
|
replace: "바꾸기",
|
|
17
17
|
"replace-all": "모두 바꾸기",
|
|
18
18
|
"case-sensitive": "대/소문자 구분",
|
|
19
|
-
"find-placeholder": "
|
|
19
|
+
"find-placeholder": "찾기",
|
|
20
20
|
"advanced-finding": "고급 검색 및 바꾸기",
|
|
21
21
|
"replace-placeholder": "바꿀 문자열 입력",
|
|
22
22
|
"match-the-whole-cell": "전체 셀 내용 일치",
|
|
23
|
+
"match-the-whole-word": "단어 단위로 일치",
|
|
23
24
|
"find-direction": {
|
|
24
25
|
title: "검색 방향",
|
|
25
26
|
row: "행 기준 검색",
|
package/lib/es/locale/pl-PL.js
CHANGED
|
@@ -16,10 +16,11 @@ const locale = { "find-replace": {
|
|
|
16
16
|
replace: "Zamień",
|
|
17
17
|
"replace-all": "Zamień wszystko",
|
|
18
18
|
"case-sensitive": "Rozróżniaj wielkość liter",
|
|
19
|
-
"find-placeholder": "Znajdź
|
|
19
|
+
"find-placeholder": "Znajdź",
|
|
20
20
|
"advanced-finding": "Zaawansowane wyszukiwanie i zastępowanie",
|
|
21
21
|
"replace-placeholder": "Wprowadź ciąg zastępujący",
|
|
22
22
|
"match-the-whole-cell": "Dopasuj całą komórkę",
|
|
23
|
+
"match-the-whole-word": "Dopasuj całe słowo",
|
|
23
24
|
"find-direction": {
|
|
24
25
|
title: "Kierunek wyszukiwania",
|
|
25
26
|
row: "Szukaj według wierszy",
|
package/lib/es/locale/pt-BR.js
CHANGED
|
@@ -16,10 +16,11 @@ const locale = { "find-replace": {
|
|
|
16
16
|
replace: "Substituir",
|
|
17
17
|
"replace-all": "Substituir Tudo",
|
|
18
18
|
"case-sensitive": "Diferenciar Maiúsculas/Minúsculas",
|
|
19
|
-
"find-placeholder": "Localizar
|
|
19
|
+
"find-placeholder": "Localizar",
|
|
20
20
|
"advanced-finding": "Pesquisa e Substituição Avançadas",
|
|
21
21
|
"replace-placeholder": "Digite o Texto de Substituição",
|
|
22
22
|
"match-the-whole-cell": "Corresponder à Célula Inteira",
|
|
23
|
+
"match-the-whole-word": "Corresponder palavra inteira",
|
|
23
24
|
"find-direction": {
|
|
24
25
|
title: "Direção da Pesquisa",
|
|
25
26
|
row: "Pesquisar por Linha",
|
package/lib/es/locale/ru-RU.js
CHANGED
|
@@ -16,10 +16,11 @@ const locale = { "find-replace": {
|
|
|
16
16
|
replace: "Заменить",
|
|
17
17
|
"replace-all": "Заменить все",
|
|
18
18
|
"case-sensitive": "Учитывать регистр",
|
|
19
|
-
"find-placeholder": "Найти
|
|
19
|
+
"find-placeholder": "Найти",
|
|
20
20
|
"advanced-finding": "Расширенный поиск и замена",
|
|
21
21
|
"replace-placeholder": "Введите строку для замены",
|
|
22
22
|
"match-the-whole-cell": "Соответствие всей ячейке",
|
|
23
|
+
"match-the-whole-word": "Только слово целиком",
|
|
23
24
|
"find-direction": {
|
|
24
25
|
title: "Направление поиска",
|
|
25
26
|
row: "Искать по строкам",
|