@univerjs/sheets-find-replace 0.15.2-insiders.20260124-12fc7f0 → 0.15.3-insiders.20260131-b9b8805
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/locale/sk-SK.js +1 -0
- package/lib/es/facade.js +8 -8
- package/lib/es/index.js +16 -16
- package/lib/es/locale/sk-SK.js +11 -0
- package/lib/facade.js +8 -8
- package/lib/index.js +16 -16
- package/lib/locale/sk-SK.js +11 -0
- package/lib/types/locale/sk-SK.d.ts +3 -0
- package/lib/umd/locale/sk-SK.js +1 -0
- package/package.json +8 -8
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const a={"sheet-find-replace":{replace:{"partial-failure":"Nepodarilo sa nahradiť niektoré bunky",failure:"Nepodarilo sa nahradiť všetky bunky"}}};module.exports=a;
|
package/lib/es/facade.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var u = Object.defineProperty;
|
|
2
2
|
var p = (a, e, t) => e in a ? u(a, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[e] = t;
|
|
3
3
|
var c = (a, e, t) => p(a, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
-
import { Inject as m, Injector as _,
|
|
5
|
-
import {
|
|
4
|
+
import { Inject as m, Injector as _, Disposable as f, IUniverInstanceService as v } from "@univerjs/core";
|
|
5
|
+
import { FindReplaceModel as g, createInitFindReplaceState as y, FindReplaceState as S, FindBy as h, IFindReplaceService as b } from "@univerjs/find-replace";
|
|
6
6
|
import { FRange as F } from "@univerjs/sheets/facade";
|
|
7
7
|
import { FUniver as d } from "@univerjs/core/facade";
|
|
8
8
|
var w = Object.getOwnPropertyDescriptor, C = (a, e, t, s) => {
|
|
@@ -10,17 +10,17 @@ var w = Object.getOwnPropertyDescriptor, C = (a, e, t, s) => {
|
|
|
10
10
|
(r = a[i]) && (n = r(n) || n);
|
|
11
11
|
return n;
|
|
12
12
|
}, o = (a, e) => (t, s) => e(t, s, a);
|
|
13
|
-
let l = class extends
|
|
13
|
+
let l = class extends f {
|
|
14
14
|
constructor(e, t, s, n) {
|
|
15
15
|
super();
|
|
16
|
-
c(this, "_state", new
|
|
16
|
+
c(this, "_state", new S());
|
|
17
17
|
c(this, "_model");
|
|
18
18
|
c(this, "_complete");
|
|
19
19
|
this._injector = t, this._univerInstanceService = s, this._findReplaceService = n;
|
|
20
20
|
const i = this._findReplaceService.getProviders();
|
|
21
|
-
this._model = this._injector.createInstance(
|
|
21
|
+
this._model = this._injector.createInstance(g, this._state, i);
|
|
22
22
|
const r = {
|
|
23
|
-
...
|
|
23
|
+
...y(),
|
|
24
24
|
...e
|
|
25
25
|
};
|
|
26
26
|
this._state.changeState(r);
|
|
@@ -89,8 +89,8 @@ let l = class extends v {
|
|
|
89
89
|
};
|
|
90
90
|
l = C([
|
|
91
91
|
o(1, m(_)),
|
|
92
|
-
o(2,
|
|
93
|
-
o(3,
|
|
92
|
+
o(2, v),
|
|
93
|
+
o(3, b)
|
|
94
94
|
], l);
|
|
95
95
|
class R extends d {
|
|
96
96
|
async createTextFinderAsync(e) {
|
package/lib/es/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
var ge = Object.defineProperty;
|
|
2
2
|
var fe = (h, e, t) => e in h ? ge(h, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : h[e] = t;
|
|
3
3
|
var f = (h, e, t) => fe(h, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
-
import { CommandType as H, IUndoRedoService as _e, ICommandService as O, Rectangle as Se, Inject as k, Injector as A,
|
|
4
|
+
import { CommandType as H, IUndoRedoService as _e, ICommandService as O, Rectangle as Se, Inject as k, Injector as A, ThemeService as me, Disposable as Z, EDITOR_ACTIVATED as pe, UniverInstanceType as q, fromCallback as F, ColorKit as ve, rotate as L, groupBy as Ie, ObjectMatrix as Ce, Tools as Re, replaceInDocumentBody as ke, IContextService as ee, IUniverInstanceService as te, DependentOn as we, Plugin as be, merge as Me, IConfigService as xe } from "@univerjs/core";
|
|
5
5
|
import { SetRangeValuesCommand as ie, SheetsSelectionsService as ye, SelectRangeCommand as Ue, SetWorksheetActiveOperation as Pe, SetSelectionsOperation as Be, SetWorksheetActivateCommand as Fe, UniverSheetsPlugin as j } from "@univerjs/sheets";
|
|
6
|
-
import { Shape as We, Rect as He,
|
|
7
|
-
import { FindReplaceController as Ee,
|
|
6
|
+
import { Shape as We, Rect as He, RENDER_RAW_FORMULA_KEY as Te, IRenderManagerService as ne } from "@univerjs/engine-render";
|
|
7
|
+
import { FindReplaceController as Ee, FindModel as Oe, FindBy as b, FindScope as R, FindDirection as w, IFindReplaceService as Ae, UniverFindReplacePlugin as Ne } from "@univerjs/find-replace";
|
|
8
8
|
import { SheetSkeletonManagerService as De, getCoordByCell as V, getSheetObject as $e, ScrollToCellCommand as Le } from "@univerjs/sheets-ui";
|
|
9
9
|
import { filter as M, Subject as G, throttleTime as je, merge as Ve, skip as Ge, debounceTime as Ye } from "rxjs";
|
|
10
10
|
const se = {
|
|
@@ -76,7 +76,7 @@ var Ze = Object.getOwnPropertyDescriptor, N = (h, e, t, i) => {
|
|
|
76
76
|
(s = h[r]) && (n = s(n) || n);
|
|
77
77
|
return n;
|
|
78
78
|
}, m = (h, e) => (t, i) => e(t, i, h);
|
|
79
|
-
let x = class extends
|
|
79
|
+
let x = class extends Z {
|
|
80
80
|
constructor(e, t, i, n, r) {
|
|
81
81
|
super();
|
|
82
82
|
f(this, "_provider");
|
|
@@ -96,12 +96,12 @@ let x = class extends ee {
|
|
|
96
96
|
x = N([
|
|
97
97
|
m(0, k(A)),
|
|
98
98
|
m(1, k(Ee)),
|
|
99
|
-
m(2,
|
|
100
|
-
m(3,
|
|
99
|
+
m(2, ee),
|
|
100
|
+
m(3, Ae),
|
|
101
101
|
m(4, O)
|
|
102
102
|
], x);
|
|
103
103
|
const qe = "sheets-find-replace-provider", et = 1e4;
|
|
104
|
-
let T = class extends
|
|
104
|
+
let T = class extends Oe {
|
|
105
105
|
constructor(e, t, i, n, r, s, o, c) {
|
|
106
106
|
super();
|
|
107
107
|
// We can directly inject the `FindReplaceService` here, and call its methods instead of using the observables.
|
|
@@ -524,17 +524,17 @@ let T = class extends Ae {
|
|
|
524
524
|
}
|
|
525
525
|
};
|
|
526
526
|
T = N([
|
|
527
|
-
m(2,
|
|
527
|
+
m(2, te),
|
|
528
528
|
m(3, ne),
|
|
529
529
|
m(4, O),
|
|
530
|
-
m(5,
|
|
530
|
+
m(5, ee),
|
|
531
531
|
m(6, k(me)),
|
|
532
532
|
m(7, k(ye))
|
|
533
533
|
], T);
|
|
534
534
|
function X(h) {
|
|
535
535
|
return h.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
|
|
536
536
|
}
|
|
537
|
-
let E = class extends
|
|
537
|
+
let E = class extends Z {
|
|
538
538
|
constructor(e, t, i) {
|
|
539
539
|
super();
|
|
540
540
|
/**
|
|
@@ -545,7 +545,7 @@ let E = class extends ee {
|
|
|
545
545
|
}
|
|
546
546
|
async find(e) {
|
|
547
547
|
this._terminate();
|
|
548
|
-
const t = this._univerInstanceService.getCurrentUnitOfType(
|
|
548
|
+
const t = this._univerInstanceService.getCurrentUnitOfType(q.UNIVER_SHEET);
|
|
549
549
|
if (!t) return [];
|
|
550
550
|
const i = this._preprocessQuery(e), n = this._renderManagerService.getRenderById(t.getUnitId()).with(De), r = this._injector.createInstance(T, t, n);
|
|
551
551
|
return this._findModelsByUnitId.set(t.getUnitId(), r), r.start(i), [r];
|
|
@@ -570,7 +570,7 @@ let E = class extends ee {
|
|
|
570
570
|
}
|
|
571
571
|
};
|
|
572
572
|
E = N([
|
|
573
|
-
m(0,
|
|
573
|
+
m(0, te),
|
|
574
574
|
m(1, ne),
|
|
575
575
|
m(2, k(A))
|
|
576
576
|
], E);
|
|
@@ -598,10 +598,10 @@ var rt = Object.defineProperty, ot = Object.getOwnPropertyDescriptor, ht = (h, e
|
|
|
598
598
|
return n;
|
|
599
599
|
}, J = (h, e) => (t, i) => e(t, i, h), re = (h, e, t) => ht(h, typeof e != "symbol" ? e + "" : e, t);
|
|
600
600
|
const at = "SHEET_FIND_REPLACE_PLUGIN";
|
|
601
|
-
let y = class extends
|
|
601
|
+
let y = class extends be {
|
|
602
602
|
constructor(h = z, e, t) {
|
|
603
603
|
super(), this._config = h, this._injector = e, this._configService = t;
|
|
604
|
-
const { ...i } =
|
|
604
|
+
const { ...i } = Me(
|
|
605
605
|
{},
|
|
606
606
|
z,
|
|
607
607
|
this._config
|
|
@@ -616,11 +616,11 @@ let y = class extends Me {
|
|
|
616
616
|
}
|
|
617
617
|
};
|
|
618
618
|
re(y, "pluginName", at);
|
|
619
|
-
re(y, "type",
|
|
619
|
+
re(y, "type", q.UNIVER_SHEET);
|
|
620
620
|
y = ct([
|
|
621
621
|
we(j, j, Ne),
|
|
622
622
|
J(1, k(A)),
|
|
623
|
-
J(2,
|
|
623
|
+
J(2, xe)
|
|
624
624
|
], y);
|
|
625
625
|
export {
|
|
626
626
|
se as SheetReplaceCommand,
|
package/lib/facade.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var u = Object.defineProperty;
|
|
2
2
|
var p = (a, e, t) => e in a ? u(a, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[e] = t;
|
|
3
3
|
var c = (a, e, t) => p(a, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
-
import { Inject as m, Injector as _,
|
|
5
|
-
import {
|
|
4
|
+
import { Inject as m, Injector as _, Disposable as f, IUniverInstanceService as v } from "@univerjs/core";
|
|
5
|
+
import { FindReplaceModel as g, createInitFindReplaceState as y, FindReplaceState as S, FindBy as h, IFindReplaceService as b } from "@univerjs/find-replace";
|
|
6
6
|
import { FRange as F } from "@univerjs/sheets/facade";
|
|
7
7
|
import { FUniver as d } from "@univerjs/core/facade";
|
|
8
8
|
var w = Object.getOwnPropertyDescriptor, C = (a, e, t, s) => {
|
|
@@ -10,17 +10,17 @@ var w = Object.getOwnPropertyDescriptor, C = (a, e, t, s) => {
|
|
|
10
10
|
(r = a[i]) && (n = r(n) || n);
|
|
11
11
|
return n;
|
|
12
12
|
}, o = (a, e) => (t, s) => e(t, s, a);
|
|
13
|
-
let l = class extends
|
|
13
|
+
let l = class extends f {
|
|
14
14
|
constructor(e, t, s, n) {
|
|
15
15
|
super();
|
|
16
|
-
c(this, "_state", new
|
|
16
|
+
c(this, "_state", new S());
|
|
17
17
|
c(this, "_model");
|
|
18
18
|
c(this, "_complete");
|
|
19
19
|
this._injector = t, this._univerInstanceService = s, this._findReplaceService = n;
|
|
20
20
|
const i = this._findReplaceService.getProviders();
|
|
21
|
-
this._model = this._injector.createInstance(
|
|
21
|
+
this._model = this._injector.createInstance(g, this._state, i);
|
|
22
22
|
const r = {
|
|
23
|
-
...
|
|
23
|
+
...y(),
|
|
24
24
|
...e
|
|
25
25
|
};
|
|
26
26
|
this._state.changeState(r);
|
|
@@ -89,8 +89,8 @@ let l = class extends v {
|
|
|
89
89
|
};
|
|
90
90
|
l = C([
|
|
91
91
|
o(1, m(_)),
|
|
92
|
-
o(2,
|
|
93
|
-
o(3,
|
|
92
|
+
o(2, v),
|
|
93
|
+
o(3, b)
|
|
94
94
|
], l);
|
|
95
95
|
class R extends d {
|
|
96
96
|
async createTextFinderAsync(e) {
|
package/lib/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
var ge = Object.defineProperty;
|
|
2
2
|
var fe = (h, e, t) => e in h ? ge(h, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : h[e] = t;
|
|
3
3
|
var f = (h, e, t) => fe(h, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
-
import { CommandType as H, IUndoRedoService as _e, ICommandService as O, Rectangle as Se, Inject as k, Injector as A,
|
|
4
|
+
import { CommandType as H, IUndoRedoService as _e, ICommandService as O, Rectangle as Se, Inject as k, Injector as A, ThemeService as me, Disposable as Z, EDITOR_ACTIVATED as pe, UniverInstanceType as q, fromCallback as F, ColorKit as ve, rotate as L, groupBy as Ie, ObjectMatrix as Ce, Tools as Re, replaceInDocumentBody as ke, IContextService as ee, IUniverInstanceService as te, DependentOn as we, Plugin as be, merge as Me, IConfigService as xe } from "@univerjs/core";
|
|
5
5
|
import { SetRangeValuesCommand as ie, SheetsSelectionsService as ye, SelectRangeCommand as Ue, SetWorksheetActiveOperation as Pe, SetSelectionsOperation as Be, SetWorksheetActivateCommand as Fe, UniverSheetsPlugin as j } from "@univerjs/sheets";
|
|
6
|
-
import { Shape as We, Rect as He,
|
|
7
|
-
import { FindReplaceController as Ee,
|
|
6
|
+
import { Shape as We, Rect as He, RENDER_RAW_FORMULA_KEY as Te, IRenderManagerService as ne } from "@univerjs/engine-render";
|
|
7
|
+
import { FindReplaceController as Ee, FindModel as Oe, FindBy as b, FindScope as R, FindDirection as w, IFindReplaceService as Ae, UniverFindReplacePlugin as Ne } from "@univerjs/find-replace";
|
|
8
8
|
import { SheetSkeletonManagerService as De, getCoordByCell as V, getSheetObject as $e, ScrollToCellCommand as Le } from "@univerjs/sheets-ui";
|
|
9
9
|
import { filter as M, Subject as G, throttleTime as je, merge as Ve, skip as Ge, debounceTime as Ye } from "rxjs";
|
|
10
10
|
const se = {
|
|
@@ -76,7 +76,7 @@ var Ze = Object.getOwnPropertyDescriptor, N = (h, e, t, i) => {
|
|
|
76
76
|
(s = h[r]) && (n = s(n) || n);
|
|
77
77
|
return n;
|
|
78
78
|
}, m = (h, e) => (t, i) => e(t, i, h);
|
|
79
|
-
let x = class extends
|
|
79
|
+
let x = class extends Z {
|
|
80
80
|
constructor(e, t, i, n, r) {
|
|
81
81
|
super();
|
|
82
82
|
f(this, "_provider");
|
|
@@ -96,12 +96,12 @@ let x = class extends ee {
|
|
|
96
96
|
x = N([
|
|
97
97
|
m(0, k(A)),
|
|
98
98
|
m(1, k(Ee)),
|
|
99
|
-
m(2,
|
|
100
|
-
m(3,
|
|
99
|
+
m(2, ee),
|
|
100
|
+
m(3, Ae),
|
|
101
101
|
m(4, O)
|
|
102
102
|
], x);
|
|
103
103
|
const qe = "sheets-find-replace-provider", et = 1e4;
|
|
104
|
-
let T = class extends
|
|
104
|
+
let T = class extends Oe {
|
|
105
105
|
constructor(e, t, i, n, r, s, o, c) {
|
|
106
106
|
super();
|
|
107
107
|
// We can directly inject the `FindReplaceService` here, and call its methods instead of using the observables.
|
|
@@ -524,17 +524,17 @@ let T = class extends Ae {
|
|
|
524
524
|
}
|
|
525
525
|
};
|
|
526
526
|
T = N([
|
|
527
|
-
m(2,
|
|
527
|
+
m(2, te),
|
|
528
528
|
m(3, ne),
|
|
529
529
|
m(4, O),
|
|
530
|
-
m(5,
|
|
530
|
+
m(5, ee),
|
|
531
531
|
m(6, k(me)),
|
|
532
532
|
m(7, k(ye))
|
|
533
533
|
], T);
|
|
534
534
|
function X(h) {
|
|
535
535
|
return h.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
|
|
536
536
|
}
|
|
537
|
-
let E = class extends
|
|
537
|
+
let E = class extends Z {
|
|
538
538
|
constructor(e, t, i) {
|
|
539
539
|
super();
|
|
540
540
|
/**
|
|
@@ -545,7 +545,7 @@ let E = class extends ee {
|
|
|
545
545
|
}
|
|
546
546
|
async find(e) {
|
|
547
547
|
this._terminate();
|
|
548
|
-
const t = this._univerInstanceService.getCurrentUnitOfType(
|
|
548
|
+
const t = this._univerInstanceService.getCurrentUnitOfType(q.UNIVER_SHEET);
|
|
549
549
|
if (!t) return [];
|
|
550
550
|
const i = this._preprocessQuery(e), n = this._renderManagerService.getRenderById(t.getUnitId()).with(De), r = this._injector.createInstance(T, t, n);
|
|
551
551
|
return this._findModelsByUnitId.set(t.getUnitId(), r), r.start(i), [r];
|
|
@@ -570,7 +570,7 @@ let E = class extends ee {
|
|
|
570
570
|
}
|
|
571
571
|
};
|
|
572
572
|
E = N([
|
|
573
|
-
m(0,
|
|
573
|
+
m(0, te),
|
|
574
574
|
m(1, ne),
|
|
575
575
|
m(2, k(A))
|
|
576
576
|
], E);
|
|
@@ -598,10 +598,10 @@ var rt = Object.defineProperty, ot = Object.getOwnPropertyDescriptor, ht = (h, e
|
|
|
598
598
|
return n;
|
|
599
599
|
}, J = (h, e) => (t, i) => e(t, i, h), re = (h, e, t) => ht(h, typeof e != "symbol" ? e + "" : e, t);
|
|
600
600
|
const at = "SHEET_FIND_REPLACE_PLUGIN";
|
|
601
|
-
let y = class extends
|
|
601
|
+
let y = class extends be {
|
|
602
602
|
constructor(h = z, e, t) {
|
|
603
603
|
super(), this._config = h, this._injector = e, this._configService = t;
|
|
604
|
-
const { ...i } =
|
|
604
|
+
const { ...i } = Me(
|
|
605
605
|
{},
|
|
606
606
|
z,
|
|
607
607
|
this._config
|
|
@@ -616,11 +616,11 @@ let y = class extends Me {
|
|
|
616
616
|
}
|
|
617
617
|
};
|
|
618
618
|
re(y, "pluginName", at);
|
|
619
|
-
re(y, "type",
|
|
619
|
+
re(y, "type", q.UNIVER_SHEET);
|
|
620
620
|
y = ct([
|
|
621
621
|
we(j, j, Ne),
|
|
622
622
|
J(1, k(A)),
|
|
623
|
-
J(2,
|
|
623
|
+
J(2, xe)
|
|
624
624
|
], y);
|
|
625
625
|
export {
|
|
626
626
|
se as SheetReplaceCommand,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(e,i){typeof exports=="object"&&typeof module<"u"?module.exports=i():typeof define=="function"&&define.amd?define(i):(e=typeof globalThis<"u"?globalThis:e||self,e.UniverSheetsFindReplaceSkSK=i())})(this,(function(){"use strict";return{"sheet-find-replace":{replace:{"partial-failure":"Nepodarilo sa nahradiť niektoré bunky",failure:"Nepodarilo sa nahradiť všetky bunky"}}}}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs/sheets-find-replace",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.3-insiders.20260131-b9b8805",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "UniverSheet find replace plugin",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -63,18 +63,18 @@
|
|
|
63
63
|
"rxjs": ">=7.0.0"
|
|
64
64
|
},
|
|
65
65
|
"dependencies": {
|
|
66
|
-
"@univerjs/core": "0.15.
|
|
67
|
-
"@univerjs/engine-render": "0.15.
|
|
68
|
-
"@univerjs/sheets": "0.15.
|
|
69
|
-
"@univerjs/find-replace": "0.15.
|
|
70
|
-
"@univerjs/sheets
|
|
66
|
+
"@univerjs/core": "0.15.3-insiders.20260131-b9b8805",
|
|
67
|
+
"@univerjs/engine-render": "0.15.3-insiders.20260131-b9b8805",
|
|
68
|
+
"@univerjs/sheets-ui": "0.15.3-insiders.20260131-b9b8805",
|
|
69
|
+
"@univerjs/find-replace": "0.15.3-insiders.20260131-b9b8805",
|
|
70
|
+
"@univerjs/sheets": "0.15.3-insiders.20260131-b9b8805"
|
|
71
71
|
},
|
|
72
72
|
"devDependencies": {
|
|
73
73
|
"rxjs": "^7.8.2",
|
|
74
74
|
"typescript": "^5.9.3",
|
|
75
75
|
"vite": "^7.3.1",
|
|
76
|
-
"vitest": "^4.0.
|
|
77
|
-
"@univerjs-infra/shared": "0.15.
|
|
76
|
+
"vitest": "^4.0.18",
|
|
77
|
+
"@univerjs-infra/shared": "0.15.3"
|
|
78
78
|
},
|
|
79
79
|
"scripts": {
|
|
80
80
|
"test": "vitest run",
|