@fileverse-dev/dsheet 2.0.1-search-1 → 2.0.1-search-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/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export { default as DSheetEditor } from './editor/dsheet-editor';
|
|
2
|
-
export { openFindAndReplace, type OpenFindAndReplaceOptions, } from './editor/open-find-and-replace';
|
|
3
2
|
export { formulaResponseUiSync } from './editor/utils/formula-ui-sync';
|
|
4
3
|
export { executeStringFunction } from './editor/utils/executeStringFunction';
|
|
5
4
|
export { FLVURL } from '@fileverse-dev/formulajs';
|
package/dist/index.es.js
CHANGED
|
@@ -6,7 +6,7 @@ import * as Ue from "yjs";
|
|
|
6
6
|
import _, { isPlainObject as ud, isObject as Pp } from "lodash";
|
|
7
7
|
import ze from "dayjs";
|
|
8
8
|
import * as Ll from "@fileverse-dev/formulajs";
|
|
9
|
-
import { FLVURL as
|
|
9
|
+
import { FLVURL as Sv } from "@fileverse-dev/formulajs";
|
|
10
10
|
import kr, { applyPatches as ps, enablePatches as Hp, produceWithPatches as qp } from "immer";
|
|
11
11
|
import { Tooltip as er, LucideIcon as Qe, cn as kn, TextField as Vt, Button as yt, IconButton as Et, Select as Pr, SelectTrigger as Hr, SelectValue as qr, SelectContent as zr, SelectItem as En, Checkbox as Gr, Divider as ra, Table as zp, TableHeader as Vp, TableRow as dd, TableHead as Zi, TableBody as Up, TableCell as Gi, Popover as hl, PopoverTrigger as ml, PopoverContent as pl, SelectGroup as fd, SelectLabel as hd, Command as Wp, CommandInput as Yp, CommandList as Zp, CommandEmpty as Gp, CommandGroup as Kp, CommandItem as Xp, RadioGroup as Zf, RadioGroupItem as Fa, Label as Ba, DynamicModal as Qp, toast as Jp } from "@fileverse/ui";
|
|
12
12
|
import { createPortal as Gf } from "react-dom";
|
|
@@ -18,7 +18,7 @@ import { utils as wr, write as r0 } from "xlsx-js-style";
|
|
|
18
18
|
import { Workbook as Kf } from "exceljs";
|
|
19
19
|
import { transformExcelToLucky as o0 } from "luckyexcel";
|
|
20
20
|
import { TEMPLATES_DATA as l0 } from "@fileverse-dev/dsheets-templates";
|
|
21
|
-
import { TEMPLATES as
|
|
21
|
+
import { TEMPLATES as Nv } from "@fileverse-dev/dsheets-templates";
|
|
22
22
|
var Jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
23
23
|
function zo(e) {
|
|
24
24
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
@@ -55917,16 +55917,7 @@ function j5(e, t, n, r, o, a, l, i, s, c) {
|
|
|
55917
55917
|
getRefs: () => c,
|
|
55918
55918
|
getShowDialog: () => Ir,
|
|
55919
55919
|
getSplitColComponent: () => ou,
|
|
55920
|
-
getConditionalFormatComponent: () => lp
|
|
55921
|
-
/** Opens the Find and Replace dialog (same UI as Ctrl+H / context menu). */
|
|
55922
|
-
openFindAndReplace: (u) => {
|
|
55923
|
-
t((d) => {
|
|
55924
|
-
var f;
|
|
55925
|
-
d.showQuickSearch = !1, d.quickSearchHighlight = null, d.quickSearchLoading = !1, d.findReplaceHiddenDuringRangePick = !1, d.findReplaceRestoreVisibility = void 0;
|
|
55926
|
-
const h = (f = u == null ? void 0 : u.prefill) == null ? void 0 : f.trim();
|
|
55927
|
-
d.findReplacePrefill = h && h.length > 0 ? h : void 0, d.showSearch = !0, d.showReplace = !0;
|
|
55928
|
-
});
|
|
55929
|
-
}
|
|
55920
|
+
getConditionalFormatComponent: () => lp
|
|
55930
55921
|
};
|
|
55931
55922
|
}
|
|
55932
55923
|
const Sf = ({ item: e, isChecked: t, onChange: n, isItemVisible: r }) => {
|
|
@@ -66166,16 +66157,13 @@ const W4 = ({
|
|
|
66166
66157
|
}
|
|
66167
66158
|
);
|
|
66168
66159
|
};
|
|
66169
|
-
function kv(e, t) {
|
|
66170
|
-
e == null || e.openFindAndReplace(t);
|
|
66171
|
-
}
|
|
66172
66160
|
export {
|
|
66173
66161
|
_v as DSheetEditor,
|
|
66174
66162
|
z5 as ERROR_MESSAGES_FLAG,
|
|
66175
|
-
|
|
66163
|
+
Sv as FLVURL,
|
|
66176
66164
|
vv as FortuneCore,
|
|
66177
66165
|
Cv as SERVICES_API_KEY,
|
|
66178
|
-
|
|
66166
|
+
Nv as TEMPLATES,
|
|
66179
66167
|
Ay as api,
|
|
66180
66168
|
$h as clearColumnsCellsFormat,
|
|
66181
66169
|
ma as clearFilter,
|
|
@@ -66204,7 +66192,6 @@ export {
|
|
|
66204
66192
|
Qr as insertRowCol,
|
|
66205
66193
|
jn as jfrefreshgrid,
|
|
66206
66194
|
Qf as loadLocale,
|
|
66207
|
-
kv as openFindAndReplace,
|
|
66208
66195
|
Qa as removeActiveImage,
|
|
66209
66196
|
Oc as showImgChooser,
|
|
66210
66197
|
f1 as toolbarItemClickHandler,
|
|
@@ -157,8 +157,4 @@ export declare function generateAPIs(context: Context, setContext: (recipe: (ctx
|
|
|
157
157
|
getConditionalFormatComponent: () => import('react').FC<{
|
|
158
158
|
context?: any;
|
|
159
159
|
}>;
|
|
160
|
-
/** Opens the Find and Replace dialog (same UI as Ctrl+H / context menu). */
|
|
161
|
-
openFindAndReplace: (options?: {
|
|
162
|
-
prefill?: string;
|
|
163
|
-
}) => void;
|
|
164
160
|
};
|
|
@@ -162,8 +162,5 @@ declare const Workbook: React.ForwardRefExoticComponent<Settings & AdditionalPro
|
|
|
162
162
|
getConditionalFormatComponent: () => React.FC<{
|
|
163
163
|
context?: any;
|
|
164
164
|
}>;
|
|
165
|
-
openFindAndReplace: (options?: {
|
|
166
|
-
prefill?: string;
|
|
167
|
-
}) => void;
|
|
168
165
|
}>>;
|
|
169
166
|
export default Workbook;
|
package/package.json
CHANGED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { WorkbookInstance } from '../sheet-engine/react';
|
|
2
|
-
|
|
3
|
-
export type OpenFindAndReplaceOptions = {
|
|
4
|
-
/** Initial value for the Find field (optional). */
|
|
5
|
-
prefill?: string;
|
|
6
|
-
};
|
|
7
|
-
/**
|
|
8
|
-
* Opens the Find and Replace dialog for a mounted workbook.
|
|
9
|
-
* Pass the imperative handle from `Workbook` / `DSheetEditor` (e.g. `sheetEditorRef.current`).
|
|
10
|
-
*/
|
|
11
|
-
export declare function openFindAndReplace(workbook: WorkbookInstance | null | undefined, options?: OpenFindAndReplaceOptions): void;
|