@fileverse-dev/dsheet 2.1.5 → 3.0.1-yjs-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/dist/{constants-yStXQJiK.js → constants-Cdz6oSCq.js} +5 -7
- package/dist/constants.js +1 -1
- package/dist/editor/components/api-key-modal/api-key-input.d.ts +5 -0
- package/dist/editor/components/api-key-modal/api-key-modal.d.ts +7 -0
- package/dist/editor/components/api-key-modal/rate-limit-info.d.ts +4 -0
- package/dist/editor/components/comments/comment-actions-dropdown.d.ts +19 -0
- package/dist/editor/components/comments/comment-cell-popup.d.ts +4 -0
- package/dist/editor/components/comments/comment-input.d.ts +4 -0
- package/dist/editor/components/comments/comment-item.d.ts +4 -0
- package/dist/editor/components/comments/comment-sidebar-empty.d.ts +4 -0
- package/dist/editor/components/comments/comment-sidebar.d.ts +4 -0
- package/dist/editor/components/comments/ens/ens-cache.d.ts +10 -0
- package/dist/editor/components/comments/ens/use-ens-status.d.ts +10 -0
- package/dist/editor/components/comments/use-comment-cell-popup.d.ts +12 -0
- package/dist/editor/components/comments/use-comment-permissions.d.ts +15 -0
- package/dist/editor/components/editor-workbook.d.ts +11 -17
- package/dist/editor/components/sidebar/editor-right-sidebar.d.ts +20 -0
- package/dist/editor/components/sidebar/right-sidebar.d.ts +14 -0
- package/dist/editor/components/sidebar/sidebar-context.d.ts +17 -0
- package/dist/editor/components/sidebar/sidebar-portal-registry.d.ts +20 -0
- package/dist/editor/components/sidebar/use-right-panels.d.ts +12 -0
- package/dist/editor/components/sidebars/conditional-format.d.ts +2 -0
- package/dist/editor/components/sidebars/data-verification.d.ts +2 -0
- package/dist/editor/components/sidebars/function/function-categories-logic.d.ts +11 -0
- package/dist/editor/components/sidebars/function/function-categories.d.ts +6 -0
- package/dist/editor/components/sidebars/function/function-metadata.d.ts +7 -0
- package/dist/editor/components/sidebars/function/functionList.d.ts +8 -0
- package/dist/editor/components/sidebars/function/types.d.ts +24 -0
- package/dist/editor/components/sidebars/function/use-functions.d.ts +20 -0
- package/dist/editor/components/sidebars/function-content.d.ts +8 -0
- package/dist/editor/components/sidebars/template-ui.d.ts +22 -0
- package/dist/editor/components/sidebars/templates.d.ts +9 -0
- package/dist/editor/components/smart-contract/error-toast.d.ts +11 -0
- package/dist/editor/components/smart-contract/modal/abi-input-section.d.ts +11 -0
- package/dist/editor/components/smart-contract/modal/contract-name-section.d.ts +13 -0
- package/dist/editor/components/smart-contract/modal/file-upload-section.d.ts +12 -0
- package/dist/editor/components/smart-contract/modal/import-section.d.ts +8 -0
- package/dist/editor/components/smart-contract/modal/modal-header.d.ts +17 -0
- package/dist/editor/components/smart-contract/smart-contract-list-item.d.ts +8 -0
- package/dist/editor/components/smart-contract/smart-contract-modal-ui.d.ts +33 -0
- package/dist/editor/components/smart-contract/smart-contract-modal.d.ts +12 -0
- package/dist/editor/components/smart-contract/smart-contract-reading-intro.d.ts +4 -0
- package/dist/editor/components/smart-contract/smart-contract-view-list.d.ts +6 -0
- package/dist/editor/components/smart-contract/use-address-validation.d.ts +5 -0
- package/dist/editor/components/smart-contract/use-modal-outside-click.d.ts +18 -0
- package/dist/editor/components/smart-contract/use-smart-contract-modal.d.ts +38 -0
- package/dist/editor/constants/shared-constants.d.ts +0 -2
- package/dist/editor/contexts/editor-context.d.ts +20 -5
- package/dist/editor/dsheet-editor.d.ts +1 -1
- package/dist/editor/hooks/live-query/use-live-query.d.ts +4 -2
- package/dist/editor/hooks/use-editor-data.d.ts +4 -2
- package/dist/editor/hooks/use-smart-contract.d.ts +26 -0
- package/dist/editor/hooks/use-xlsx-import-impl.d.ts +7 -1
- package/dist/editor/types/comments.d.ts +134 -0
- package/dist/editor/types/smart-contract.d.ts +88 -0
- package/dist/editor/types.d.ts +39 -32
- package/dist/editor/utils/after-update-cell.d.ts +13 -8
- package/dist/editor/utils/api-key-storage.d.ts +6 -0
- package/dist/editor/utils/api-keys-local-storage.d.ts +19 -0
- package/dist/editor/utils/cell-comment-marker.d.ts +30 -0
- package/dist/editor/utils/comment-key-utils.d.ts +7 -0
- package/dist/editor/utils/config-ydoc-update.d.ts +20 -0
- package/dist/editor/utils/csv-import.d.ts +3 -1
- package/dist/editor/utils/data-block-error-handler.d.ts +21 -0
- package/dist/editor/utils/datablock-error-utils.d.ts +1 -0
- package/dist/editor/utils/sheet-editor-safe.d.ts +26 -0
- package/dist/editor/utils/smart-contract/constants.d.ts +488 -0
- package/dist/editor/utils/smart-contract/error-helper.d.ts +20 -0
- package/dist/editor/utils/smart-contract/helpers.d.ts +4 -0
- package/dist/editor/utils/smart-contract/reading-utils.d.ts +34 -0
- package/dist/editor/utils/smart-contract/signature-utils.d.ts +9 -0
- package/dist/editor/utils/spreadsheet-import.d.ts +12 -0
- package/dist/executeStringFunction-B2qjYgmE.js +31914 -0
- package/dist/formula.js +1 -1
- package/dist/index-C7kCuqoG.js +54326 -0
- package/dist/index.d.ts +11 -1
- package/dist/index.es.js +54 -48
- package/dist/observability/publish-trace.d.ts +26 -0
- package/dist/sheet-engine/core/api/cell.d.ts +0 -20
- package/dist/sheet-engine/core/api/common.d.ts +2 -1
- package/dist/sheet-engine/core/api/index.d.ts +1 -0
- package/dist/sheet-engine/core/api/sheet-flowdata-lifecycle.d.ts +15 -0
- package/dist/sheet-engine/core/api/sheet.d.ts +5 -0
- package/dist/sheet-engine/core/context.d.ts +5 -0
- package/dist/sheet-engine/core/index.d.ts +1 -1
- package/dist/sheet-engine/core/modules/formula-async-eval.d.ts +53 -0
- package/dist/sheet-engine/core/modules/formula-eval.worker.d.ts +1 -0
- package/dist/sheet-engine/core/modules/formula-range-cache.d.ts +20 -0
- package/dist/sheet-engine/core/modules/formula-snapshot-eval.d.ts +40 -0
- package/dist/sheet-engine/core/modules/formula-transitive-deps.d.ts +7 -0
- package/dist/sheet-engine/core/modules/formula-worker-bridge.d.ts +17 -0
- package/dist/sheet-engine/core/modules/formula-worker-types.d.ts +24 -0
- package/dist/sheet-engine/core/modules/formula.d.ts +26 -1
- package/dist/sheet-engine/core/modules/index.d.ts +3 -1
- package/dist/sheet-engine/core/paste/paste-border-utils.d.ts +23 -0
- package/dist/sheet-engine/core/theme.d.ts +67 -0
- package/dist/sheet-engine/core/types.d.ts +3 -0
- package/dist/sheet-engine/core/utils/border-config-utils.d.ts +10 -0
- package/dist/sheet-engine/core/utils/cell-persist-utils.d.ts +8 -0
- package/dist/sheet-engine/core/utils/range-format.d.ts +43 -0
- package/dist/sheet-engine/react/components/SheetOverlay/Icon.d.ts +5 -4
- package/dist/sheet-engine/react/components/SheetOverlay/LucideIcon.d.ts +4 -4
- package/dist/sheet-engine/react/components/SidebarPanelPortals/index.d.ts +17 -0
- package/dist/sheet-engine/react/components/Workbook/api.d.ts +8 -1
- package/dist/sheet-engine/react/components/Workbook/index.d.ts +11 -1
- package/dist/sheet-engine/react/components/index.d.ts +1 -0
- package/dist/sheet-engine/react/utils/datepickerStyles.d.ts +1 -1
- package/dist/style.css +1 -1
- package/dist/use-xlsx-import-impl-BQsXcyKJ.js +1551 -0
- package/dist/{xlsx-export-impl-DP_eK3zS.js → xlsx-export-impl-BBux0CIG.js} +1106 -1106
- package/package.json +6 -4
- package/dist/executeStringFunction-BkmJj04p.js +0 -27295
- package/dist/index-Drl8OuI3.js +0 -52659
- package/dist/sheet-engine/react/components/Toolbar/conditionalFormatPortal.d.ts +0 -7
- package/dist/sheet-engine/react/components/Toolbar/dataVerificationPortal.d.ts +0 -6
- package/dist/use-xlsx-import-impl-DC_BfAcT.js +0 -1527
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Patch as ImmerPatch } from 'immer';
|
|
2
2
|
import { PatchOptions } from './utils';
|
|
3
|
+
import { CellFormatRange } from './utils/range-format';
|
|
3
4
|
|
|
4
5
|
export type Op = {
|
|
5
6
|
op: 'replace' | 'remove' | 'add' | 'insertRowCol' | 'deleteRowCol' | 'addSheet' | 'deleteSheet';
|
|
@@ -140,6 +141,8 @@ export type SheetConfig = {
|
|
|
140
141
|
customHeight?: Record<string, number>;
|
|
141
142
|
customWidth?: Record<string, number>;
|
|
142
143
|
borderInfo?: any[];
|
|
144
|
+
/** Range-level cell formatting for empty cells (toolbar bulk format). */
|
|
145
|
+
cellFormatRanges?: CellFormatRange[];
|
|
143
146
|
authority?: any;
|
|
144
147
|
rowReadOnly?: Record<number, number>;
|
|
145
148
|
colReadOnly?: Record<number, number>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Context } from '../context';
|
|
2
|
+
|
|
3
|
+
export type BorderSelection = {
|
|
4
|
+
row: [number, number];
|
|
5
|
+
column: [number, number];
|
|
6
|
+
};
|
|
7
|
+
/** Remove border entries overlapping a single selection (cell + range types). */
|
|
8
|
+
export declare function removeBorderInfoForSelection(borderInfo: any[], rowSt: number, rowEd: number, colSt: number, colEd: number): any[];
|
|
9
|
+
export declare function removeBorderInfoInSelections(borderInfo: any[] | undefined, selections: BorderSelection[]): any[];
|
|
10
|
+
export declare function syncBorderInfoToYdoc(ctx: Context, borderInfo: any[]): void;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Cell } from '../types';
|
|
2
|
+
|
|
3
|
+
export declare const CELL_FORMAT_ATTRS: readonly ["tb", "ht", "vt", "tr", "fs", "ff", "fc", "bl", "it", "un", "cl", "bg", "ct"];
|
|
4
|
+
export type CellFormatAttr = (typeof CELL_FORMAT_ATTRS)[number];
|
|
5
|
+
export declare function hasCellMeaningfulContent(cell: Cell | string | number | boolean | null | undefined): boolean;
|
|
6
|
+
export declare function isFormatOnlyEmptyCell(cell: Cell | string | number | boolean | null | undefined): boolean;
|
|
7
|
+
export declare function shouldPersistCelldataCell(cell: Cell | string | number | boolean | null | undefined): boolean;
|
|
8
|
+
export declare function celldataEntryEqual(existing: unknown, next: unknown): boolean;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { Cell, CellMatrix, CellWithRowAndCol, Sheet } from '../types';
|
|
2
|
+
|
|
3
|
+
export type CellFormatRange = {
|
|
4
|
+
row: [number, number];
|
|
5
|
+
column: [number, number];
|
|
6
|
+
tb?: string;
|
|
7
|
+
ht?: number | string;
|
|
8
|
+
vt?: number | string;
|
|
9
|
+
tr?: string;
|
|
10
|
+
fs?: number;
|
|
11
|
+
ff?: number | string;
|
|
12
|
+
fc?: string;
|
|
13
|
+
bl?: number;
|
|
14
|
+
it?: number;
|
|
15
|
+
un?: number;
|
|
16
|
+
cl?: number;
|
|
17
|
+
bg?: string;
|
|
18
|
+
ct?: Cell['ct'];
|
|
19
|
+
};
|
|
20
|
+
declare function rangesEqual(a: CellFormatRange[] | undefined, b: CellFormatRange[] | undefined): boolean;
|
|
21
|
+
/** Merge overlapping/adjacent ranges that carry identical format attrs. */
|
|
22
|
+
export declare function normalizeCellFormatRanges(ranges: CellFormatRange[] | undefined): CellFormatRange[];
|
|
23
|
+
export declare function getCellFormatRangeGridBounds(ranges: CellFormatRange[] | undefined): {
|
|
24
|
+
maxRow: number;
|
|
25
|
+
maxCol: number;
|
|
26
|
+
} | null;
|
|
27
|
+
export declare function upsertCellFormatRange(ranges: CellFormatRange[] | undefined, rowSt: number, rowEd: number, colSt: number, colEd: number, attrs: Partial<CellFormatRange>): {
|
|
28
|
+
ranges: CellFormatRange[];
|
|
29
|
+
changed: boolean;
|
|
30
|
+
};
|
|
31
|
+
export declare function punchHoleInCellFormatRanges(ranges: CellFormatRange[] | undefined, r: number, c: number): CellFormatRange[];
|
|
32
|
+
export declare function punchRectHoleInCellFormatRanges(ranges: CellFormatRange[] | undefined, rowSt: number, rowEd: number, colSt: number, colEd: number): CellFormatRange[];
|
|
33
|
+
export declare function shiftCellFormatRangesOnInsert(ranges: CellFormatRange[] | undefined, type: 'row' | 'column', index: number, count: number, direction: 'lefttop' | 'rightbottom'): CellFormatRange[];
|
|
34
|
+
export declare function shiftCellFormatRangesOnDelete(ranges: CellFormatRange[] | undefined, type: 'row' | 'column', start: number, end: number): CellFormatRange[];
|
|
35
|
+
export declare function applyCellFormatRangesToData(data: CellMatrix | null | undefined, ranges: CellFormatRange[] | undefined): void;
|
|
36
|
+
export declare function buildSheetDataMatrixForExport(sheet: {
|
|
37
|
+
data?: CellMatrix | null;
|
|
38
|
+
celldata?: CellWithRowAndCol[];
|
|
39
|
+
row?: number;
|
|
40
|
+
column?: number;
|
|
41
|
+
config?: Sheet['config'];
|
|
42
|
+
}): CellMatrix;
|
|
43
|
+
export { rangesEqual };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
1
2
|
import { LucideIconProps } from './LucideIcon';
|
|
2
3
|
|
|
3
4
|
export declare const LucideIcons: {
|
|
@@ -11,10 +12,10 @@ export declare const LucideIcons: {
|
|
|
11
12
|
Farcaster: ({ width, height, ...props }: LucideIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
13
|
Warpcast: ({ width, height, ...props }: LucideIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
14
|
DSheetTextDisabled: ({ width, height, ...props }: LucideIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
AddColLeft: () => import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
AddColRight: () => import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
AddRowBelowLocal: () => import("react/jsx-runtime").JSX.Element;
|
|
17
|
-
AddRowAboveLocal: () => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
AddColLeft: ({ className, ...props }: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
AddColRight: ({ className, ...props }: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
AddRowBelowLocal: ({ className, ...props }: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
AddRowAboveLocal: ({ className, ...props }: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
18
19
|
DSheetOnlyText: () => import("react/jsx-runtime").JSX.Element;
|
|
19
20
|
Orb: ({ width, height, ...props }: LucideIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
20
21
|
Lens: ({ width, height, ...props }: LucideIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -11,10 +11,10 @@ export declare const UltimateIcons: {
|
|
|
11
11
|
Farcaster: ({ width, height, ...props }: LucideIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
12
|
Warpcast: ({ width, height, ...props }: LucideIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
DSheetTextDisabled: ({ width, height, ...props }: LucideIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
AddColLeft: () => import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
AddColRight: () => import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
AddRowBelowLocal: () => import("react/jsx-runtime").JSX.Element;
|
|
17
|
-
AddRowAboveLocal: () => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
AddColLeft: ({ className, ...props }: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
AddColRight: ({ className, ...props }: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
AddRowBelowLocal: ({ className, ...props }: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
AddRowAboveLocal: ({ className, ...props }: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
18
18
|
DSheetOnlyText: () => import("react/jsx-runtime").JSX.Element;
|
|
19
19
|
Orb: ({ width, height, ...props }: LucideIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
20
20
|
Lens: ({ width, height, ...props }: LucideIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Context } from '../../../core';
|
|
3
|
+
import { default as WorkbookContext } from '../../context';
|
|
4
|
+
|
|
5
|
+
export type SidebarPortalTargets = Record<string, HTMLElement | undefined>;
|
|
6
|
+
export type SidebarPortalRegistryHandle = {
|
|
7
|
+
getTargets: () => SidebarPortalTargets;
|
|
8
|
+
subscribe: (onStoreChange: () => void) => () => void;
|
|
9
|
+
};
|
|
10
|
+
export type SidebarPortalRenderer = (workbook: React.ContextType<typeof WorkbookContext>) => React.ReactNode;
|
|
11
|
+
interface SidebarPanelPortalsProps {
|
|
12
|
+
activePanel: string | null;
|
|
13
|
+
portalRegistry?: SidebarPortalRegistryHandle | null;
|
|
14
|
+
extraPortals?: Record<string, SidebarPortalRenderer>;
|
|
15
|
+
}
|
|
16
|
+
export declare function SidebarPanelPortals({ activePanel, portalRegistry, extraPortals, }: Readonly<SidebarPanelPortalsProps>): React.ReactPortal | null;
|
|
17
|
+
export type { Context };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CellFormatRange } from '../../../core/utils/range-format';
|
|
1
2
|
import { api, Cell, Context, Op, Range, Selection, Presence, Settings, SingleRange, Sheet, CellMatrix, CellWithRowAndCol, GlobalCache, LiveQueryData } from '../../../core';
|
|
2
3
|
import { getCryptoPrice } from '../../utils/cryptoApi';
|
|
3
4
|
import { SetContextOptions } from '../../context';
|
|
@@ -148,6 +149,12 @@ export declare function generateAPIs(context: Context, setContext: (recipe: (ctx
|
|
|
148
149
|
} | null;
|
|
149
150
|
}, options?: api.CommonOptions) => void;
|
|
150
151
|
setSheetMapField: (field: string, value: Record<string, any> | null | undefined, options?: api.CommonOptions) => void;
|
|
152
|
+
/** Merge keys into a map-backed sheet field without replacing the whole map. */
|
|
153
|
+
patchSheetMapField: (field: string, updates: Record<string, any>, deleteKeys?: string[], options?: api.CommonOptions) => void;
|
|
154
|
+
/** Merge sub-keys into sheet.config without replacing the whole config object. */
|
|
155
|
+
setSheetConfigFields: (partial: Record<string, any>, options?: api.CommonOptions & {
|
|
156
|
+
deleteKeys?: string[];
|
|
157
|
+
}) => void;
|
|
151
158
|
setSheetConditionFormatRules: (rules: any[], options?: api.CommonOptions) => void;
|
|
152
159
|
scroll: (options: {
|
|
153
160
|
scrollLeft?: number;
|
|
@@ -166,7 +173,7 @@ export declare function generateAPIs(context: Context, setContext: (recipe: (ctx
|
|
|
166
173
|
calculateSubSheetFormula: (id: string) => void;
|
|
167
174
|
calculateCellReferencedSubSheetFormula: (id: string, refCell?: string[]) => void;
|
|
168
175
|
dataToCelldata: (data: CellMatrix | undefined) => CellWithRowAndCol[];
|
|
169
|
-
celldataToData: (celldata: CellWithRowAndCol[], rowCount?: number, colCount?: number) => CellMatrix | null;
|
|
176
|
+
celldataToData: (celldata: CellWithRowAndCol[], rowCount?: number, colCount?: number, cellFormatRanges?: CellFormatRange[]) => CellMatrix | null;
|
|
170
177
|
insertFunction: (selectedFuncIndex: number, filteredFunctionList: any[], callback?: () => void) => void;
|
|
171
178
|
getLocaleContext: () => any;
|
|
172
179
|
getWorkbookContext: () => Context;
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
import { Settings, Context, CellWithRowAndCol, Sheet as SheetType, Op, CellMatrix, api } from '../../../core';
|
|
2
|
+
import { ThemeKey } from '../../../core/theme';
|
|
2
3
|
import { default as React } from 'react';
|
|
3
4
|
import { getCryptoPrice } from '../../utils/cryptoApi';
|
|
4
5
|
import { SetContextOptions } from '../../context';
|
|
5
6
|
import { generateAPIs } from './api';
|
|
7
|
+
import { SidebarPortalRegistryHandle, SidebarPortalRenderer } from '../SidebarPanelPortals';
|
|
6
8
|
|
|
7
9
|
export type WorkbookInstance = ReturnType<typeof generateAPIs>;
|
|
8
10
|
type AdditionalProps = {
|
|
9
11
|
onOp?: (op: Op[]) => void;
|
|
12
|
+
sidebarActivePanel?: string | null;
|
|
13
|
+
sidebarPortalRegistry?: SidebarPortalRegistryHandle | null;
|
|
14
|
+
sidebarPortalRenderers?: Record<string, SidebarPortalRenderer>;
|
|
15
|
+
theme?: ThemeKey;
|
|
10
16
|
};
|
|
11
17
|
declare const Workbook: React.ForwardRefExoticComponent<Settings & AdditionalProps & React.RefAttributes<{
|
|
12
18
|
applyOp: (ops: Op[]) => void;
|
|
@@ -144,6 +150,10 @@ declare const Workbook: React.ForwardRefExoticComponent<Settings & AdditionalPro
|
|
|
144
150
|
} | null;
|
|
145
151
|
}, options?: api.CommonOptions) => void;
|
|
146
152
|
setSheetMapField: (field: string, value: Record<string, any> | null | undefined, options?: api.CommonOptions) => void;
|
|
153
|
+
patchSheetMapField: (field: string, updates: Record<string, any>, deleteKeys?: string[], options?: api.CommonOptions) => void;
|
|
154
|
+
setSheetConfigFields: (partial: Record<string, any>, options?: api.CommonOptions & {
|
|
155
|
+
deleteKeys?: string[];
|
|
156
|
+
}) => void;
|
|
147
157
|
setSheetConditionFormatRules: (rules: any[], options?: api.CommonOptions) => void;
|
|
148
158
|
scroll: (options: {
|
|
149
159
|
scrollLeft?: number;
|
|
@@ -162,7 +172,7 @@ declare const Workbook: React.ForwardRefExoticComponent<Settings & AdditionalPro
|
|
|
162
172
|
calculateSubSheetFormula: (id: string) => void;
|
|
163
173
|
calculateCellReferencedSubSheetFormula: (id: string, refCell?: string[]) => void;
|
|
164
174
|
dataToCelldata: (data: CellMatrix | undefined) => CellWithRowAndCol[];
|
|
165
|
-
celldataToData: (celldata: CellWithRowAndCol[], rowCount?: number, colCount?: number) => CellMatrix | null;
|
|
175
|
+
celldataToData: (celldata: CellWithRowAndCol[], rowCount?: number, colCount?: number, cellFormatRanges?: import('../../../core/utils/range-format').CellFormatRange[]) => CellMatrix | null;
|
|
166
176
|
insertFunction: (selectedFuncIndex: number, filteredFunctionList: any[], callback?: () => void) => void;
|
|
167
177
|
getLocaleContext: () => any;
|
|
168
178
|
getWorkbookContext: () => Context;
|
|
@@ -3,5 +3,6 @@ import { default as Workbook } from './Workbook';
|
|
|
3
3
|
export { ERROR_MESSAGES_FLAG, SERVICES_API_KEY, } from '@fileverse-dev/formulajs/crypto-constants';
|
|
4
4
|
export { Workbook };
|
|
5
5
|
export type { WorkbookInstance } from './Workbook';
|
|
6
|
+
export type { SidebarPortalRenderer, SidebarPortalRegistryHandle, SidebarPortalTargets, } from './SidebarPanelPortals';
|
|
6
7
|
export type { Cell, Sheet, LiveQueryData } from '../../core';
|
|
7
8
|
export { markCellChanged as animateChangedCell } from '../../core';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const datepickerStyles = "\n .datepicker-toggle {\n display: inline-block;\n position: relative;\n width: 100%;\n }\n \n .datepicker-toggle-button {\n opacity: 0.3;\n position: absolute;\n right: 12px;\n top: 50%;\n transform: translateY(-50%);\n width: 16px;\n height: 16px;\n background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiPjxyZWN0IHg9IjMiIHk9IjQiIHdpZHRoPSIxOCIgaGVpZ2h0PSIxOCIgcng9IjIiIHJ5PSIyIj48L3JlY3Q+PGxpbmUgeDE9IjE2IiB5MT0iMiIgeDI9IjE2IiB5Mj0iNiI+PC9saW5lPjxsaW5lIHgxPSI4IiB5MT0iMiIgeDI9IjgiIHkyPSI2Ij48L2xpbmU+PGxpbmUgeDE9IjMiIHkxPSIxMCIgeDI9IjIxIiB5Mj0iMTAiPjwvbGluZT48L3N2Zz4=');\n background-repeat: no-repeat;\n background-position: center;\n pointer-events: none;\n }\n \n .datepicker-input {\n width: 100%;\n padding: 8px 12px;\n border: 1px solid
|
|
1
|
+
export declare const datepickerStyles = "\n .datepicker-toggle {\n display: inline-block;\n position: relative;\n width: 100%;\n }\n \n .datepicker-toggle-button {\n opacity: 0.3;\n position: absolute;\n right: 12px;\n top: 50%;\n transform: translateY(-50%);\n width: 16px;\n height: 16px;\n background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiPjxyZWN0IHg9IjMiIHk9IjQiIHdpZHRoPSIxOCIgaGVpZ2h0PSIxOCIgcng9IjIiIHJ5PSIyIj48L3JlY3Q+PGxpbmUgeDE9IjE2IiB5MT0iMiIgeDI9IjE2IiB5Mj0iNiI+PC9saW5lPjxsaW5lIHgxPSI4IiB5MT0iMiIgeDI9IjgiIHkyPSI2Ij48L2xpbmU+PGxpbmUgeDE9IjMiIHkxPSIxMCIgeDI9IjIxIiB5Mj0iMTAiPjwvbGluZT48L3N2Zz4=');\n background-repeat: no-repeat;\n background-position: center;\n pointer-events: none;\n }\n \n .datepicker-input {\n width: 100%;\n padding: 8px 12px;\n border: 1px solid hsl(var(--color-border-default));\n border-radius: 6px;\n font-size: 14px;\n line-height: 1.5;\n color: hsl(var(--color-text-default));\n background-color: hsl(var(--color-bg-default));\n cursor: pointer;\n color: hsl(var(--color-text-secondary));\n }\n \n .datepicker-input::-webkit-calendar-picker-indicator {\n position: absolute;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n margin: 0;\n padding: 0;\n cursor: pointer;\n opacity: 0;\n }\n \n .datepicker-input:focus {\n outline: none;\n border-color: #0188fb;\n box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);\n }\n";
|
|
2
2
|
export declare const injectDatepickerStyles: () => void;
|