@rowsncolumns/spreadsheet 10.19.6 → 10.20.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/cjs/atoms/cell-input-context.atom.d.ts.map +1 -1
- package/dist/cjs/components/canvas-grid/helpers.d.ts +2 -1
- package/dist/cjs/components/canvas-grid/helpers.d.ts.map +1 -1
- package/dist/cjs/components/canvas-grid/helpers.js +4 -1
- package/dist/cjs/components/canvas-grid/index.d.ts.map +1 -1
- package/dist/cjs/components/canvas-grid/index.js +6 -2
- package/dist/cjs/components/canvas-grid/typings.d.ts +84 -0
- package/dist/cjs/components/canvas-grid/typings.d.ts.map +1 -1
- package/dist/cjs/components/cell-structured/cell-image.d.ts +7 -0
- package/dist/cjs/components/cell-structured/cell-image.d.ts.map +1 -1
- package/dist/cjs/components/cell-structured/cell-image.js +10 -3
- package/dist/cjs/components/embeds/embed-component.d.ts.map +1 -1
- package/dist/cjs/components/embeds/embed-component.js +6 -1
- package/dist/cjs/components/embeds/linked-picture.d.ts.map +1 -1
- package/dist/cjs/components/embeds/linked-picture.js +2 -1
- package/dist/cjs/components/print-preview/page-block.d.ts.map +1 -1
- package/dist/cjs/components/print-preview/page-block.js +5 -2
- package/dist/cjs/components/sheet-background/index.d.ts +4 -1
- package/dist/cjs/components/sheet-background/index.d.ts.map +1 -1
- package/dist/cjs/components/sheet-background/index.js +3 -1
- package/dist/cjs/components/toolbar/border-color-selector.d.ts.map +1 -1
- package/dist/cjs/components/toolbar/border-color-selector.js +3 -1
- package/dist/cjs/components/toolbar/border-selector.d.ts +1 -1
- package/dist/cjs/components/toolbar/border-selector.d.ts.map +1 -1
- package/dist/cjs/components/toolbar/border-selector.js +3 -4
- package/dist/cjs/hooks/object-clipboard-payload.d.ts +2 -1
- package/dist/cjs/hooks/object-clipboard-payload.d.ts.map +1 -1
- package/dist/cjs/hooks/object-clipboard-payload.js +5 -1
- package/dist/cjs/hooks/use-cell-renderer.d.ts +6 -1
- package/dist/cjs/hooks/use-cell-renderer.d.ts.map +1 -1
- package/dist/cjs/hooks/use-cell-renderer.js +13 -7
- package/dist/cjs/hooks/use-editor-submit.d.ts +30 -7
- package/dist/cjs/hooks/use-editor-submit.d.ts.map +1 -1
- package/dist/cjs/hooks/use-editor-submit.js +234 -68
- package/dist/cjs/hooks/use-keyboard-handler.d.ts.map +1 -1
- package/dist/cjs/hooks/use-keyboard-handler.js +2 -1
- package/dist/cjs/index.d.ts +1 -0
- package/dist/cjs/index.d.ts.map +1 -1
- package/dist/cjs/index.js +4 -1
- package/dist/cjs/release-date.js +1 -1
- package/dist/cjs/themes.d.ts +8 -0
- package/dist/cjs/themes.d.ts.map +1 -1
- package/dist/cjs/themes.js +18 -1
- package/dist/esm/atoms/cell-input-context.atom.d.ts.map +1 -1
- package/dist/esm/components/canvas-grid/helpers.d.ts +2 -1
- package/dist/esm/components/canvas-grid/helpers.d.ts.map +1 -1
- package/dist/esm/components/canvas-grid/helpers.js +4 -1
- package/dist/esm/components/canvas-grid/index.d.ts.map +1 -1
- package/dist/esm/components/canvas-grid/index.js +5 -1
- package/dist/esm/components/canvas-grid/typings.d.ts +84 -0
- package/dist/esm/components/canvas-grid/typings.d.ts.map +1 -1
- package/dist/esm/components/cell-structured/cell-image.d.ts +7 -0
- package/dist/esm/components/cell-structured/cell-image.d.ts.map +1 -1
- package/dist/esm/components/cell-structured/cell-image.js +9 -2
- package/dist/esm/components/embeds/embed-component.d.ts.map +1 -1
- package/dist/esm/components/embeds/embed-component.js +6 -1
- package/dist/esm/components/embeds/linked-picture.d.ts.map +1 -1
- package/dist/esm/components/embeds/linked-picture.js +2 -1
- package/dist/esm/components/print-preview/page-block.d.ts.map +1 -1
- package/dist/esm/components/print-preview/page-block.js +5 -2
- package/dist/esm/components/sheet-background/index.d.ts +4 -1
- package/dist/esm/components/sheet-background/index.d.ts.map +1 -1
- package/dist/esm/components/sheet-background/index.js +3 -1
- package/dist/esm/components/toolbar/border-color-selector.d.ts.map +1 -1
- package/dist/esm/components/toolbar/border-color-selector.js +4 -2
- package/dist/esm/components/toolbar/border-selector.d.ts +1 -1
- package/dist/esm/components/toolbar/border-selector.d.ts.map +1 -1
- package/dist/esm/components/toolbar/border-selector.js +3 -4
- package/dist/esm/hooks/object-clipboard-payload.d.ts +2 -1
- package/dist/esm/hooks/object-clipboard-payload.d.ts.map +1 -1
- package/dist/esm/hooks/object-clipboard-payload.js +5 -1
- package/dist/esm/hooks/use-cell-renderer.d.ts +6 -1
- package/dist/esm/hooks/use-cell-renderer.d.ts.map +1 -1
- package/dist/esm/hooks/use-cell-renderer.js +12 -8
- package/dist/esm/hooks/use-editor-submit.d.ts +30 -7
- package/dist/esm/hooks/use-editor-submit.d.ts.map +1 -1
- package/dist/esm/hooks/use-editor-submit.js +176 -53
- package/dist/esm/hooks/use-keyboard-handler.d.ts.map +1 -1
- package/dist/esm/hooks/use-keyboard-handler.js +2 -1
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +1 -0
- package/dist/esm/release-date.js +1 -1
- package/dist/esm/themes.d.ts +8 -0
- package/dist/esm/themes.d.ts.map +1 -1
- package/dist/esm/themes.js +14 -0
- package/package.json +3 -3
|
@@ -3,13 +3,15 @@ import { Popover, PopoverContent, PopoverTrigger } from "@rowsncolumns/ui";
|
|
|
3
3
|
import { IconButton } from "@rowsncolumns/ui";
|
|
4
4
|
import React from "react";
|
|
5
5
|
import { useState } from "react";
|
|
6
|
-
import { getStringifiedColor } from "../../themes";
|
|
6
|
+
import { getStringifiedColor, isAutomaticBorderColor } from "../../themes";
|
|
7
7
|
import { ColorSelector } from "./color-selector";
|
|
8
8
|
export const BorderColorSelector = ({ color, theme, onChange, onAddUserDefinedColor, userDefinedColors, ColorSelector: ColorSelectorComponent = ColorSelector, }) => {
|
|
9
9
|
const [isOpen, setIsOpen] = useState(false);
|
|
10
10
|
const close = () => setIsOpen(false);
|
|
11
11
|
const open = () => setIsOpen(true);
|
|
12
|
-
const colorString =
|
|
12
|
+
const colorString = isAutomaticBorderColor(color)
|
|
13
|
+
? "currentColor"
|
|
14
|
+
: getStringifiedColor(color, theme);
|
|
13
15
|
return (React.createElement(Popover, { modal: false, open: isOpen, onOpenChange: setIsOpen },
|
|
14
16
|
React.createElement(PopoverTrigger, { asChild: true },
|
|
15
17
|
React.createElement(IconButton, { onClick: open, tooltip: "Border color" },
|
|
@@ -15,6 +15,6 @@ type BorderSelectorProps = {
|
|
|
15
15
|
*/
|
|
16
16
|
ColorSelector?: ComponentType<ColorSelectorProps>;
|
|
17
17
|
} & Pick<ComponentProps<typeof ColorSelector>, "userDefinedColors" | "onAddUserDefinedColor">;
|
|
18
|
-
export declare const BorderSelector: ({
|
|
18
|
+
export declare const BorderSelector: ({ theme, onChange, userDefinedColors, onAddUserDefinedColor, disabledBorderLocations, ColorSelector: ColorSelectorComponent, }: BorderSelectorProps) => React.JSX.Element;
|
|
19
19
|
export {};
|
|
20
20
|
//# sourceMappingURL=border-selector.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"border-selector.d.ts","sourceRoot":"","sources":["../../../../components/toolbar/border-selector.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3D,OAAO,KAAsB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"border-selector.d.ts","sourceRoot":"","sources":["../../../../components/toolbar/border-selector.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3D,OAAO,KAAsB,MAAM,OAAO,CAAC;AAI3C,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAC/D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAI/D,OAAO,KAAK,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC1E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C,KAAK,mBAAmB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,uBAAuB,CAAC,EAAE,cAAc,EAAE,CAAC;IAC3C,QAAQ,CAAC,CACP,QAAQ,EAAE,cAAc,EACxB,KAAK,EAAE,KAAK,GAAG,SAAS,EACxB,KAAK,EAAE,WAAW,GAAG,SAAS,GAC7B,IAAI,CAAC;IACR,OAAO,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IACzB,KAAK,EAAE,gBAAgB,CAAC;IACxB;;OAEG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC,kBAAkB,CAAC,CAAC;CACnD,GAAG,IAAI,CACN,cAAc,CAAC,OAAO,aAAa,CAAC,EACpC,mBAAmB,GAAG,uBAAuB,CAC9C,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,gIAO5B,mBAAmB,sBA0FrB,CAAC"}
|
|
@@ -5,16 +5,15 @@ import { Stack } from "@rowsncolumns/ui";
|
|
|
5
5
|
import { Separator } from "@rowsncolumns/ui";
|
|
6
6
|
import React, { useCallback } from "react";
|
|
7
7
|
import { useState } from "react";
|
|
8
|
+
import { AUTOMATIC_BORDER_COLOR } from "../../themes";
|
|
8
9
|
import { BorderColorSelector } from "./border-color-selector";
|
|
9
10
|
import { BorderLineStyleSelector } from "./border-line-style-selector";
|
|
10
11
|
import { BorderLocationOptions } from "./border-location-options";
|
|
11
|
-
export const BorderSelector = ({
|
|
12
|
+
export const BorderSelector = ({ theme, onChange, userDefinedColors, onAddUserDefinedColor, disabledBorderLocations, ColorSelector: ColorSelectorComponent, }) => {
|
|
12
13
|
const [color, setColorState] = useState(undefined);
|
|
13
14
|
const [style, setStyleState] = useState("solid");
|
|
14
15
|
const [borderLocation, setBorderLocationState] = useState();
|
|
15
|
-
const getDefaultBorderColor = useCallback(() =>
|
|
16
|
-
return { theme: 1, tint: isDarkMode ? 1 : 0 };
|
|
17
|
-
}, [isDarkMode]);
|
|
16
|
+
const getDefaultBorderColor = useCallback(() => AUTOMATIC_BORDER_COLOR, []);
|
|
18
17
|
const setColor = useCallback((col) => {
|
|
19
18
|
setColorState(col);
|
|
20
19
|
// Upstream change
|
|
@@ -27,7 +27,8 @@ export declare const MAX_ANCHOR_OFFSET_PIXELS = 4096;
|
|
|
27
27
|
export declare const isColourString: (value: unknown) => value is string;
|
|
28
28
|
/**
|
|
29
29
|
* Whether a pasted object may keep `url`: a `data:image/…` picture, a `blob:` URL of this page's
|
|
30
|
-
* origin, or an `https:` URL the host allows. Never `javascript:`, `http:` or any other scheme
|
|
30
|
+
* origin, or an `https:` URL the host allows. Never `javascript:`, `http:` or any other scheme,
|
|
31
|
+
* and never a picture's `https:` URL the image source policy blocks (`setImageSourcePolicy`).
|
|
31
32
|
*/
|
|
32
33
|
export declare const isPastedUrlAllowed: (url: string, use: ObjectClipboardUrlUse, policy: ObjectClipboardPolicy) => boolean;
|
|
33
34
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"object-clipboard-payload.d.ts","sourceRoot":"","sources":["../../../hooks/object-clipboard-payload.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"object-clipboard-payload.d.ts","sourceRoot":"","sources":["../../../hooks/object-clipboard-payload.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAEV,aAAa,EACb,cAAc,EAGf,MAAM,UAAU,CAAC;AAMlB,4CAA4C;AAC5C,MAAM,MAAM,qBAAqB,GAAG,OAAO,GAAG,MAAM,CAAC;AAErD,MAAM,MAAM,qBAAqB,GAAG;IAClC;;;;OAIG;IACH,YAAY,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,qBAAqB,KAAK,OAAO,CAAC;IACpE;;;;OAIG;IACH,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,cAAc,GAAG,SAAS,CAAC;IACxE,6FAA6F;IAC7F,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,4FAA4F;AAC5F,eAAO,MAAM,yBAAyB,QAAmB,CAAC;AAC1D,oEAAoE;AACpE,eAAO,MAAM,iBAAiB,QAAQ,CAAC;AACvC,+EAA+E;AAC/E,eAAO,MAAM,wBAAwB,OAAO,CAAC;AAgD7C,2FAA2F;AAC3F,eAAO,MAAM,cAAc,GAAI,OAAO,OAAO,KAAG,KAAK,IAAI,MACoC,CAAC;AAI9F;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,GAC7B,KAAK,MAAM,EACX,KAAK,qBAAqB,EAC1B,QAAQ,qBAAqB,YAgB9B,CAAC;AAyBF;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAE1D,CAAC;AAgOF;;;GAGG;AACH,eAAO,MAAM,wBAAwB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAS3D,CAAC;AAmBF;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,GAC5B,YAAY,MAAM,GAAG,SAAS,EAC9B,QAAQ,qBAAqB,KAC5B,cAAc,GAAG,SA0BnB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,GAC5B,YAAY,MAAM,GAAG,SAAS,EAC9B,UAAS;IAAE,WAAW,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAA;CAAO,KAC3D,aAAa,GAAG,SAmBlB,CAAC"}
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
// (`object-spec-schema.generated.ts`): known kinds, known keys at every depth with their types
|
|
5
5
|
// checked, colours only as hex / `rgb()` / `rgba()` / theme colours, URLs only of the kinds this
|
|
6
6
|
// page trusts, sizes bounded. Anything else is dropped, and a payload that fails is not pasted.
|
|
7
|
+
import { canLoadImageSource } from "@rowsncolumns/grid";
|
|
7
8
|
import { OBJECT_SPEC_SCHEMA, } from "./object-spec-schema.generated";
|
|
8
9
|
/** A clipboard payload longer than this is not read (a data-URL picture of about 12 MB). */
|
|
9
10
|
export const MAX_OBJECT_PAYLOAD_LENGTH = 16 * 1024 * 1024;
|
|
@@ -50,7 +51,8 @@ export const isColourString = (value) => typeof value === "string" && (HEX_COLOR
|
|
|
50
51
|
const DATA_IMAGE = /^data:image\/[a-z0-9.+-]+(?:;[a-z0-9=.+-]+)*,/i;
|
|
51
52
|
/**
|
|
52
53
|
* Whether a pasted object may keep `url`: a `data:image/…` picture, a `blob:` URL of this page's
|
|
53
|
-
* origin, or an `https:` URL the host allows. Never `javascript:`, `http:` or any other scheme
|
|
54
|
+
* origin, or an `https:` URL the host allows. Never `javascript:`, `http:` or any other scheme,
|
|
55
|
+
* and never a picture's `https:` URL the image source policy blocks (`setImageSourcePolicy`).
|
|
54
56
|
*/
|
|
55
57
|
export const isPastedUrlAllowed = (url, use, policy) => {
|
|
56
58
|
const trimmed = url.trim();
|
|
@@ -61,6 +63,8 @@ export const isPastedUrlAllowed = (url, use, policy) => {
|
|
|
61
63
|
}
|
|
62
64
|
if (!/^https:\/\//i.test(trimmed))
|
|
63
65
|
return false;
|
|
66
|
+
if (use === "image" && !canLoadImageSource(trimmed))
|
|
67
|
+
return false;
|
|
64
68
|
try {
|
|
65
69
|
// A URL the platform cannot read is not kept.
|
|
66
70
|
new URL(trimmed);
|
|
@@ -20,6 +20,11 @@ export type CellRendererProps<T extends CellData = CellData> = {
|
|
|
20
20
|
selectedRowHeaders: IndexRanges;
|
|
21
21
|
selectedColumnHeaders: IndexRanges;
|
|
22
22
|
cellBackgroundColor: string;
|
|
23
|
+
/**
|
|
24
|
+
* What a border in the automatic colour is drawn with. Unset draws it as
|
|
25
|
+
* stored (black).
|
|
26
|
+
*/
|
|
27
|
+
automaticBorderColor?: string;
|
|
23
28
|
headerBorderColor: string;
|
|
24
29
|
headerBackgroundColor: string;
|
|
25
30
|
headerColor: string;
|
|
@@ -299,5 +304,5 @@ export type CellRendererProps<T extends CellData = CellData> = {
|
|
|
299
304
|
*/
|
|
300
305
|
getDefaultHorizontalAlignment(sheetId: number, rowIndex: number, columnIndex: number): HorizontalAlign | undefined;
|
|
301
306
|
};
|
|
302
|
-
export declare const useCellRenderer: <T extends CellData = CellData>({ sheetId, scale, showGridLines, showZeros, isRowHeader, isColumnHeader, selectedRows, selectedColumns, selectedRowHeaders, selectedColumnHeaders, cellBackgroundColor, headerBorderColor, headerBackgroundColor, headerColor, headerActiveBackgroundColor, headerSelectedBackgroundColor, headerSelectedColor, headerTableBackgroundColor, headerTableActiveBackgroundColor, headerTableSelectedBackgroundColor, chipBackgroundColor, filterIconColor, showCalculatedColumnIcon, enableTextOverflow, rightToLeft, showHeaders, theme, getDefaultHorizontalAlignment, isTableFilterVisible, columnContainsTable, rowsContainsTable, canOverflowToNextCell, getTableHeaderSortOrder, getDataValidation, getErrorValue, formulaLocale, locale, getEffectiveValue, getSparklineGroup, getFormattedValue, getNote, getComment, getEffectiveCellFormat, getCellBounds, getCellImageUrl, getCellMetaType, getRowHeaderText, getColumnHeaderText, getMaximumOverflowTextWidth, getCenterAcrossSelectionSpan, activeCell, getTextDimension, getCellGroupingInfo, getTextFormatRuns, onRequestEdit, onFilterClick, onCheckboxClick, isTableHeader, isTableTotalsCell, onTotalsArrowClick, isCalculatedColumnHeader, isTableHeaderFilterActive, HeaderCell, Cell, StructuredResult, gridLineWidth, getErrorCheck, circleInvalidData, showNotes, showComments, defaultFontSizePoint, lineHeightMode, readonly, onExpandCollapse, onOverflow, isComparing, getCellDiff, }: CellRendererProps<T>) => readonly [(props: RendererProps) => React.JSX.Element | null, (props: RendererProps) => React.JSX.Element, (props: RendererProps) => React.JSX.Element | null, (props: RendererProps) => React.JSX.Element | null | undefined, (cells: RendererProps[]) => React.JSX.Element];
|
|
307
|
+
export declare const useCellRenderer: <T extends CellData = CellData>({ sheetId, scale, showGridLines, showZeros, isRowHeader, isColumnHeader, selectedRows, selectedColumns, selectedRowHeaders, selectedColumnHeaders, cellBackgroundColor, automaticBorderColor, headerBorderColor, headerBackgroundColor, headerColor, headerActiveBackgroundColor, headerSelectedBackgroundColor, headerSelectedColor, headerTableBackgroundColor, headerTableActiveBackgroundColor, headerTableSelectedBackgroundColor, chipBackgroundColor, filterIconColor, showCalculatedColumnIcon, enableTextOverflow, rightToLeft, showHeaders, theme, getDefaultHorizontalAlignment, isTableFilterVisible, columnContainsTable, rowsContainsTable, canOverflowToNextCell, getTableHeaderSortOrder, getDataValidation, getErrorValue, formulaLocale, locale, getEffectiveValue, getSparklineGroup, getFormattedValue, getNote, getComment, getEffectiveCellFormat, getCellBounds, getCellImageUrl, getCellMetaType, getRowHeaderText, getColumnHeaderText, getMaximumOverflowTextWidth, getCenterAcrossSelectionSpan, activeCell, getTextDimension, getCellGroupingInfo, getTextFormatRuns, onRequestEdit, onFilterClick, onCheckboxClick, isTableHeader, isTableTotalsCell, onTotalsArrowClick, isCalculatedColumnHeader, isTableHeaderFilterActive, HeaderCell, Cell, StructuredResult, gridLineWidth, getErrorCheck, circleInvalidData, showNotes, showComments, defaultFontSizePoint, lineHeightMode, readonly, onExpandCollapse, onOverflow, isComparing, getCellDiff, }: CellRendererProps<T>) => readonly [(props: RendererProps) => React.JSX.Element | null, (props: RendererProps) => React.JSX.Element, (props: RendererProps) => React.JSX.Element | null, (props: RendererProps) => React.JSX.Element | null | undefined, (cells: RendererProps[]) => React.JSX.Element];
|
|
303
308
|
//# sourceMappingURL=use-cell-renderer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-cell-renderer.d.ts","sourceRoot":"","sources":["../../../hooks/use-cell-renderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAmB,MAAM,4BAA4B,CAAC;AACnF,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACvE,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAQ/C,OAAO,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CA+E5D,iBAAiB,CAAC,CAAC,CAAC,uBA4oBX,aAAa,uCA/nBb,aAAa,gCAqhBb,aAAa,uCApFb,aAAa,mDA6Qb,aAAa,EAAE,uBA0B1B,CAAC"}
|
|
@@ -14,11 +14,11 @@ import { mirrorOverflowToCellFrame } from "../components/canvas-grid/overflow";
|
|
|
14
14
|
import { DEFAULT_ARRAY } from "../config";
|
|
15
15
|
import { convertBorderStyleToDashArray, getBorderStyleWidth, normalizeDisplayText, } from "../helpers";
|
|
16
16
|
import { getCellBordersForRendering } from "../helpers/merged-cell-borders";
|
|
17
|
-
import { getStringifiedColor } from "../themes";
|
|
17
|
+
import { getStringifiedColor, isAutomaticBorderColor } from "../themes";
|
|
18
18
|
import { applyShowZeros } from "./show-zeros";
|
|
19
19
|
import { useCellDiffHighlight } from "./use-cell-diff-highlight";
|
|
20
20
|
import { isIndexSelected } from "./use-selected-rows-columns";
|
|
21
|
-
export const useCellRenderer = ({ sheetId, scale, showGridLines, showZeros, isRowHeader, isColumnHeader, selectedRows, selectedColumns, selectedRowHeaders, selectedColumnHeaders, cellBackgroundColor, headerBorderColor, headerBackgroundColor, headerColor, headerActiveBackgroundColor, headerSelectedBackgroundColor, headerSelectedColor, headerTableBackgroundColor, headerTableActiveBackgroundColor, headerTableSelectedBackgroundColor, chipBackgroundColor, filterIconColor, showCalculatedColumnIcon, enableTextOverflow, rightToLeft = false, showHeaders, theme, getDefaultHorizontalAlignment, isTableFilterVisible, columnContainsTable, rowsContainsTable, canOverflowToNextCell, getTableHeaderSortOrder, getDataValidation, getErrorValue, formulaLocale, locale, getEffectiveValue, getSparklineGroup, getFormattedValue, getNote, getComment, getEffectiveCellFormat, getCellBounds, getCellImageUrl, getCellMetaType, getRowHeaderText, getColumnHeaderText, getMaximumOverflowTextWidth, getCenterAcrossSelectionSpan, activeCell, getTextDimension, getCellGroupingInfo, getTextFormatRuns, onRequestEdit, onFilterClick, onCheckboxClick, isTableHeader, isTableTotalsCell, onTotalsArrowClick, isCalculatedColumnHeader, isTableHeaderFilterActive, HeaderCell, Cell, StructuredResult, gridLineWidth, getErrorCheck, circleInvalidData = false, showNotes, showComments, defaultFontSizePoint, lineHeightMode, readonly, onExpandCollapse, onOverflow, isComparing = false, getCellDiff, }) => {
|
|
21
|
+
export const useCellRenderer = ({ sheetId, scale, showGridLines, showZeros, isRowHeader, isColumnHeader, selectedRows, selectedColumns, selectedRowHeaders, selectedColumnHeaders, cellBackgroundColor, automaticBorderColor, headerBorderColor, headerBackgroundColor, headerColor, headerActiveBackgroundColor, headerSelectedBackgroundColor, headerSelectedColor, headerTableBackgroundColor, headerTableActiveBackgroundColor, headerTableSelectedBackgroundColor, chipBackgroundColor, filterIconColor, showCalculatedColumnIcon, enableTextOverflow, rightToLeft = false, showHeaders, theme, getDefaultHorizontalAlignment, isTableFilterVisible, columnContainsTable, rowsContainsTable, canOverflowToNextCell, getTableHeaderSortOrder, getDataValidation, getErrorValue, formulaLocale, locale, getEffectiveValue, getSparklineGroup, getFormattedValue, getNote, getComment, getEffectiveCellFormat, getCellBounds, getCellImageUrl, getCellMetaType, getRowHeaderText, getColumnHeaderText, getMaximumOverflowTextWidth, getCenterAcrossSelectionSpan, activeCell, getTextDimension, getCellGroupingInfo, getTextFormatRuns, onRequestEdit, onFilterClick, onCheckboxClick, isTableHeader, isTableTotalsCell, onTotalsArrowClick, isCalculatedColumnHeader, isTableHeaderFilterActive, HeaderCell, Cell, StructuredResult, gridLineWidth, getErrorCheck, circleInvalidData = false, showNotes, showComments, defaultFontSizePoint, lineHeightMode, readonly, onExpandCollapse, onOverflow, isComparing = false, getCellDiff, }) => {
|
|
22
22
|
// Version comparison diff highlighting - only active when isComparing is true
|
|
23
23
|
const { mergeCellFormatWithDiff, getDiffHighlight } = useCellDiffHighlight(isComparing ? getCellDiff : undefined);
|
|
24
24
|
// Edit
|
|
@@ -347,12 +347,15 @@ export const useCellRenderer = ({ sheetId, scale, showGridLines, showZeros, isRo
|
|
|
347
347
|
const borders = getCellBordersForRendering(sheetId, { rowIndex, columnIndex }, isMergedCell, getCellBounds, getEffectiveCellFormat);
|
|
348
348
|
const finalCellBackgroundColor = getStringifiedColor(cellFormat?.backgroundColor ?? cellBackgroundColor, theme);
|
|
349
349
|
/* Border colors */
|
|
350
|
-
const
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
const
|
|
354
|
-
const
|
|
355
|
-
const
|
|
350
|
+
const borderColor = (color) => automaticBorderColor && isAutomaticBorderColor(color)
|
|
351
|
+
? automaticBorderColor
|
|
352
|
+
: getStringifiedColor(color, theme);
|
|
353
|
+
const strokeTopColor = borderColor(borders?.top?.color);
|
|
354
|
+
const strokeBottomColor = borderColor(borders?.bottom?.color);
|
|
355
|
+
const strokeLeftColor = borderColor(borders?.left?.color);
|
|
356
|
+
const strokeRightColor = borderColor(borders?.right?.color);
|
|
357
|
+
const strokeDiagonalUpColor = borderColor(borders?.diagonalUp?.color);
|
|
358
|
+
const strokeDiagonalDownColor = borderColor(borders?.diagonalDown?.color);
|
|
356
359
|
/* Border style */
|
|
357
360
|
const strokeTopStyle = borders?.top?.style;
|
|
358
361
|
const strokeBottomStyle = borders?.bottom?.style;
|
|
@@ -418,6 +421,7 @@ export const useCellRenderer = ({ sheetId, scale, showGridLines, showZeros, isRo
|
|
|
418
421
|
scale,
|
|
419
422
|
theme,
|
|
420
423
|
cellBackgroundColor,
|
|
424
|
+
automaticBorderColor,
|
|
421
425
|
]);
|
|
422
426
|
const cellBackgroundRenderer = useCallback((props) => {
|
|
423
427
|
const { rowIndex, columnIndex, isMergedCell } = props;
|
|
@@ -3,15 +3,10 @@ import type { CellInterface, GridRange, SelectionArea } from "@rowsncolumns/grid
|
|
|
3
3
|
import type { TextFormatRun } from "@rowsncolumns/ui";
|
|
4
4
|
import { type AutoCorrectOptions, type FormulaLocale, type ReferenceStyle } from "@rowsncolumns/utils";
|
|
5
5
|
import type { ValidationAlertRequest } from "../atoms/validation-alert.atom";
|
|
6
|
-
import type { CanvasGridProps, SelectionAttributes } from "../components/canvas-grid/typings";
|
|
6
|
+
import type { CanvasGridProps, EntryFill, EntryFillWrite, EntryFillWriters, SelectionAttributes } from "../components/canvas-grid/typings";
|
|
7
7
|
import type { EditorSubmitOptions } from "./use-editable";
|
|
8
8
|
import type { useSelection } from "./use-selection";
|
|
9
9
|
type EntryValue = string | boolean;
|
|
10
|
-
/** One `onChangeBatch` write: a rectangle of the selection and its per-cell values. */
|
|
11
|
-
export type EntryFillWrite = {
|
|
12
|
-
range: GridRange;
|
|
13
|
-
values: EntryValue[][];
|
|
14
|
-
};
|
|
15
10
|
/**
|
|
16
11
|
* Excel's "Enable automatic percent entry": a plain number typed into a Percentage-formatted cell
|
|
17
12
|
* is that many percent when it is 1 or more (`5` → `0.05`, shown 5%); a number below 1 (`0.5`,
|
|
@@ -57,6 +52,28 @@ export declare const entryTurnsOnWrap: ({ value, previousValue, format, }: {
|
|
|
57
52
|
export declare const ENTRY_LIMIT_REJECTION_CODES: ReadonlySet<string>;
|
|
58
53
|
/** Whether `result` (what the host's `onChange` returned) refuses the entry past Excel's limits. */
|
|
59
54
|
export declare const isEntryLimitRefusal: (result: unknown) => boolean;
|
|
55
|
+
/**
|
|
56
|
+
* Writes a planned entry in the grid's order: the active cell (with its rich-text runs), each
|
|
57
|
+
* rectangle of a Ctrl+Enter fill, then Wrap Text for an entry with a line break. Synchronous, so
|
|
58
|
+
* a caller that runs it inside one history batch has one undo entry for the gesture. The grid
|
|
59
|
+
* writes its own commits through it; a host given a fill by `onFillEntry` writes it through it
|
|
60
|
+
* too, with writers that do not gate again.
|
|
61
|
+
*
|
|
62
|
+
* `false` when the active cell's write was refused past Excel's entry limits
|
|
63
|
+
* ({@link isEntryLimitRefusal}): such an entry is written nowhere, not into the other selected
|
|
64
|
+
* cells and not as a format. It is typed again and committed, which fills them.
|
|
65
|
+
*/
|
|
66
|
+
export declare const writeEntryFill: (fill: EntryFill, { onChange, onChangeBatch, onChangeFormatting }: EntryFillWriters) => boolean;
|
|
67
|
+
/**
|
|
68
|
+
* The first write of a fill that reaches part of a legacy (Ctrl+Shift+Enter) array without
|
|
69
|
+
* holding it whole, which the engine refuses ("You can't change part of an array"): the active
|
|
70
|
+
* cell's (`"activeCell"`) or one rectangle's. A fill is the active cell's write and one write for
|
|
71
|
+
* each rectangle, and only writes that share one history batch are refused together, so the grid
|
|
72
|
+
* asks before it writes anything. An array a rectangle cuts has a cell on the rectangle's edge:
|
|
73
|
+
* the edges are read, an array found there is stepped over whole, and a fill whose edges are
|
|
74
|
+
* longer than {@link TORN_ARRAY_CHECK_CELLS} is not judged here (`undefined`).
|
|
75
|
+
*/
|
|
76
|
+
export declare const entryFillTornArrayWrite: (fill: Pick<EntryFill, "sheetId" | "activeCell" | "writes">, getArrayFormula: NonNullable<CanvasGridProps["getArrayFormula"]>) => "activeCell" | EntryFillWrite | undefined;
|
|
60
77
|
/**
|
|
61
78
|
* Commit-time data-validation enforcement decision for a value about to be
|
|
62
79
|
* written. `block` rejects the value (Excel `errorStyle="stop"`); `confirm`
|
|
@@ -116,6 +133,12 @@ type UseEditorSubmitProps = {
|
|
|
116
133
|
* as its own command; without a batcher each is its own undo step.
|
|
117
134
|
*/
|
|
118
135
|
batchHistory?: CanvasGridProps["batchHistory"];
|
|
136
|
+
/**
|
|
137
|
+
* The host takes a Ctrl+Enter fill as one operation: it is handed the whole fill before
|
|
138
|
+
* anything is written, judges it and writes it itself. With it a fill calls neither `onChange`,
|
|
139
|
+
* `onChangeBatch`, `batchHistory` nor `onChangeFormatting`.
|
|
140
|
+
*/
|
|
141
|
+
onFillEntry?: CanvasGridProps["onFillEntry"];
|
|
119
142
|
/**
|
|
120
143
|
* Ctrl+Shift+Enter: enter a formula as one legacy CSE array over a range
|
|
121
144
|
* (`options.arrayFormula`). Without it the key commits like Ctrl+Enter.
|
|
@@ -174,6 +197,6 @@ type UseEditorSubmitProps = {
|
|
|
174
197
|
*/
|
|
175
198
|
reopenEditor?: (sheetId: number, cell: CellInterface, text: string) => void;
|
|
176
199
|
};
|
|
177
|
-
export declare const useEditorSubmit: ({ sheetId, onChangeActiveSheet, setActiveCell, onChange, onComplete, getCommitValidation, showValidationAlert, selections, getSelections, onChangeBatch, batchHistory, formulaLocale, referenceStyle, onChangeArrayFormula, getArrayFormula, getEffectiveFormat, onChangeFormatting, autoCorrect, autoPercentEntry, reopenEditor, }: UseEditorSubmitProps) => (value: string | boolean, textFormatRuns: TextFormatRun[] | undefined | null, previousValue: string | boolean | undefined | null, editingSheetId: number, activeCell: CellInterface, nextActiveCell?: CellInterface | null, isDirty?: boolean, options?: EditorSubmitOptions) => Promise<void>;
|
|
200
|
+
export declare const useEditorSubmit: ({ sheetId, onChangeActiveSheet, setActiveCell, onChange, onComplete, getCommitValidation, showValidationAlert, selections, getSelections, onChangeBatch, batchHistory, onFillEntry, formulaLocale, referenceStyle, onChangeArrayFormula, getArrayFormula, getEffectiveFormat, onChangeFormatting, autoCorrect, autoPercentEntry, reopenEditor, }: UseEditorSubmitProps) => (value: string | boolean, textFormatRuns: TextFormatRun[] | undefined | null, previousValue: string | boolean | undefined | null, editingSheetId: number, activeCell: CellInterface, nextActiveCell?: CellInterface | null, isDirty?: boolean, options?: EditorSubmitOptions) => Promise<void>;
|
|
178
201
|
export {};
|
|
179
202
|
//# sourceMappingURL=use-editor-submit.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-editor-submit.d.ts","sourceRoot":"","sources":["../../../hooks/use-editor-submit.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,uBAAuB,EACxB,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAClF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAEL,KAAK,kBAAkB,EAIvB,KAAK,aAAa,EAElB,KAAK,cAAc,EACpB,MAAM,qBAAqB,CAAC;A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ACH,kBAAkB,CAAC,EAAE,eAAe,CAAC,oBAAoB,CAAC,CAAC;IAC3D;;;OAGG;IACH,WAAW,CAAC,EAAE,kBAAkB,CAAC;IACjC,wFAAwF;IACxF,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B;;;;OAIG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B;;;OAGG;IACH,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC;;;;;OAKG;IACH,YAAY,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CAC7E,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,kVAsB7B,oBAAoB,aAQV,MAAM,GAAG,OAAO,kBACP,aAAa,EAAE,GAAG,SAAS,GAAG,IAAI,iBACnC,MAAM,GAAG,OAAO,GAAG,SAAS,GAAG,IAAI,kBAClC,MAAM,cACV,aAAa,mBACR,aAAa,GAAG,IAAI,YAC3B,OAAO,YACP,mBAAmB,kBAoTlC,CAAC"}
|
|
@@ -143,7 +143,84 @@ export const isEntryLimitRefusal = (result) => {
|
|
|
143
143
|
rejections.some((r) => typeof r?.code === "string" &&
|
|
144
144
|
ENTRY_LIMIT_REJECTION_CODES.has(r.code)));
|
|
145
145
|
};
|
|
146
|
-
|
|
146
|
+
/**
|
|
147
|
+
* Writes a planned entry in the grid's order: the active cell (with its rich-text runs), each
|
|
148
|
+
* rectangle of a Ctrl+Enter fill, then Wrap Text for an entry with a line break. Synchronous, so
|
|
149
|
+
* a caller that runs it inside one history batch has one undo entry for the gesture. The grid
|
|
150
|
+
* writes its own commits through it; a host given a fill by `onFillEntry` writes it through it
|
|
151
|
+
* too, with writers that do not gate again.
|
|
152
|
+
*
|
|
153
|
+
* `false` when the active cell's write was refused past Excel's entry limits
|
|
154
|
+
* ({@link isEntryLimitRefusal}): such an entry is written nowhere, not into the other selected
|
|
155
|
+
* cells and not as a format. It is typed again and committed, which fills them.
|
|
156
|
+
*/
|
|
157
|
+
export const writeEntryFill = (fill, { onChange, onChangeBatch, onChangeFormatting }) => {
|
|
158
|
+
const result = onChange?.(fill.sheetId, fill.activeCell, fill.value, fill.textFormatRuns, fill.previousValue, fill.isDirty);
|
|
159
|
+
if (isEntryLimitRefusal(result)) {
|
|
160
|
+
return false;
|
|
161
|
+
}
|
|
162
|
+
for (const write of fill.writes) {
|
|
163
|
+
onChangeBatch?.(fill.sheetId, write.range, write.values);
|
|
164
|
+
}
|
|
165
|
+
if (fill.wrapText) {
|
|
166
|
+
// Excel turns Wrap Text on for an entry with a line break, so every line shows and
|
|
167
|
+
// an auto-height row grows to them (the engines refit it on the format change).
|
|
168
|
+
onChangeFormatting?.(fill.sheetId, fill.activeCell, fill.selections, "wrapStrategy", "wrap");
|
|
169
|
+
}
|
|
170
|
+
return true;
|
|
171
|
+
};
|
|
172
|
+
/** How many cells the array check of one fill reads at most; past that the engine alone judges. */
|
|
173
|
+
const TORN_ARRAY_CHECK_CELLS = 20_000;
|
|
174
|
+
/**
|
|
175
|
+
* The first write of a fill that reaches part of a legacy (Ctrl+Shift+Enter) array without
|
|
176
|
+
* holding it whole, which the engine refuses ("You can't change part of an array"): the active
|
|
177
|
+
* cell's (`"activeCell"`) or one rectangle's. A fill is the active cell's write and one write for
|
|
178
|
+
* each rectangle, and only writes that share one history batch are refused together, so the grid
|
|
179
|
+
* asks before it writes anything. An array a rectangle cuts has a cell on the rectangle's edge:
|
|
180
|
+
* the edges are read, an array found there is stepped over whole, and a fill whose edges are
|
|
181
|
+
* longer than {@link TORN_ARRAY_CHECK_CELLS} is not judged here (`undefined`).
|
|
182
|
+
*/
|
|
183
|
+
export const entryFillTornArrayWrite = (fill, getArrayFormula) => {
|
|
184
|
+
const { sheetId, activeCell } = fill;
|
|
185
|
+
const own = getArrayFormula(sheetId, activeCell.rowIndex, activeCell.columnIndex)?.range;
|
|
186
|
+
if (own &&
|
|
187
|
+
(own.startRowIndex !== own.endRowIndex ||
|
|
188
|
+
own.startColumnIndex !== own.endColumnIndex)) {
|
|
189
|
+
return "activeCell";
|
|
190
|
+
}
|
|
191
|
+
let left = TORN_ARRAY_CHECK_CELLS;
|
|
192
|
+
for (const write of fill.writes) {
|
|
193
|
+
const { range } = write;
|
|
194
|
+
const holds = (array) => array.startRowIndex >= range.startRowIndex &&
|
|
195
|
+
array.endRowIndex <= range.endRowIndex &&
|
|
196
|
+
array.startColumnIndex >= range.startColumnIndex &&
|
|
197
|
+
array.endColumnIndex <= range.endColumnIndex;
|
|
198
|
+
const rows = new Set([range.startRowIndex, range.endRowIndex]);
|
|
199
|
+
for (const row of rows) {
|
|
200
|
+
for (let col = range.startColumnIndex; col <= range.endColumnIndex; col++) {
|
|
201
|
+
if (left-- <= 0)
|
|
202
|
+
return undefined;
|
|
203
|
+
const array = getArrayFormula(sheetId, row, col)?.range;
|
|
204
|
+
if (array && !holds(array))
|
|
205
|
+
return write;
|
|
206
|
+
col = array ? array.endColumnIndex : col;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
const cols = new Set([range.startColumnIndex, range.endColumnIndex]);
|
|
210
|
+
for (const col of cols) {
|
|
211
|
+
for (let row = range.startRowIndex + 1; row < range.endRowIndex; row++) {
|
|
212
|
+
if (left-- <= 0)
|
|
213
|
+
return undefined;
|
|
214
|
+
const array = getArrayFormula(sheetId, row, col)?.range;
|
|
215
|
+
if (array && !holds(array))
|
|
216
|
+
return write;
|
|
217
|
+
row = array ? array.endRowIndex : row;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
return undefined;
|
|
222
|
+
};
|
|
223
|
+
export const useEditorSubmit = ({ sheetId, onChangeActiveSheet, setActiveCell, onChange, onComplete, getCommitValidation, showValidationAlert, selections, getSelections, onChangeBatch, batchHistory, onFillEntry, formulaLocale, referenceStyle, onChangeArrayFormula, getArrayFormula, getEffectiveFormat, onChangeFormatting, autoCorrect, autoPercentEntry = false, reopenEditor, }) => {
|
|
147
224
|
const [formulaMode, setFormulaMode] = useFormulaMode();
|
|
148
225
|
const [_, setEditingCellCoordinate] = useEditingCell();
|
|
149
226
|
const setActiveEditor = useSetActiveEditor();
|
|
@@ -195,15 +272,37 @@ export const useEditorSubmit = ({ sheetId, onChangeActiveSheet, setActiveCell, o
|
|
|
195
272
|
setFormulaMode(false);
|
|
196
273
|
onComplete?.();
|
|
197
274
|
};
|
|
198
|
-
/*
|
|
275
|
+
/* After the writes: a refused entry stays in the editor, a written one moves on */
|
|
276
|
+
const finish = (refused) => {
|
|
277
|
+
// The typed entry was refused, by Excel's entry limits or by the host for a fill it was
|
|
278
|
+
// handed whole: nothing was written. Stay on the cell and put the typed text back in the
|
|
279
|
+
// editor (after this submit has finished closing it).
|
|
280
|
+
if (refused && typeof typedValue === "string" && reopenEditor) {
|
|
281
|
+
if (editingSheetId !== sheetId) {
|
|
282
|
+
onChangeActiveSheet?.(editingSheetId);
|
|
283
|
+
}
|
|
284
|
+
resetEditorState();
|
|
285
|
+
void Promise.resolve().then(() => reopenEditor(editingSheetId, activeCell, typedValue));
|
|
286
|
+
return;
|
|
287
|
+
}
|
|
288
|
+
// Switch to active sheet
|
|
289
|
+
// Always change sheet first.
|
|
290
|
+
// Skipped when the submit was triggered *by* a sheet change — the
|
|
291
|
+
// value still lands on `editingSheetId`, but switching back would
|
|
292
|
+
// undo the sheet the user just moved to.
|
|
293
|
+
if (editingSheetId !== sheetId && !options?.preserveActiveSheet) {
|
|
294
|
+
onChangeActiveSheet?.(editingSheetId);
|
|
295
|
+
}
|
|
296
|
+
// Update and scroll to the new active cell
|
|
297
|
+
if (nextActiveCell) {
|
|
298
|
+
setActiveCell(editingSheetId, nextActiveCell);
|
|
299
|
+
}
|
|
300
|
+
resetEditorState();
|
|
301
|
+
};
|
|
302
|
+
/* Commit the value and advance to the next cell. A promise only while a host that was
|
|
303
|
+
* handed a fill (`onFillEntry`) waits for a person; every other commit is over on return. */
|
|
199
304
|
const commit = () => {
|
|
200
305
|
const selected = getSelections?.() ?? selectionsRef.current ?? [];
|
|
201
|
-
let refused = false;
|
|
202
|
-
const writeActiveCell = () => {
|
|
203
|
-
const result = onChange?.(editingSheetId, activeCell, value, textFormatRuns, previousValue, isDirty);
|
|
204
|
-
if (isEntryLimitRefusal(result))
|
|
205
|
-
refused = true;
|
|
206
|
-
};
|
|
207
306
|
// Ctrl+Shift+Enter on a formula: ONE legacy array over the selection (or the array being
|
|
208
307
|
// re-entered) — the engine writes and fits every cell of it, so nothing else is written.
|
|
209
308
|
const arrayFormula = options?.arrayFormula && onChangeArrayFormula && isFormulaEntry(value);
|
|
@@ -215,7 +314,7 @@ export const useEditorSubmit = ({ sheetId, onChangeActiveSheet, setActiveCell, o
|
|
|
215
314
|
// commits the same way.
|
|
216
315
|
const fillWrites = !arrayFormula &&
|
|
217
316
|
(options?.fillSelection || options?.arrayFormula) &&
|
|
218
|
-
onChangeBatch
|
|
317
|
+
(onChangeBatch || onFillEntry)
|
|
219
318
|
? planEntryFill(value, activeCell, selected)
|
|
220
319
|
: [];
|
|
221
320
|
const wrapLineBreak = onChangeFormatting &&
|
|
@@ -226,58 +325,78 @@ export const useEditorSubmit = ({ sheetId, onChangeActiveSheet, setActiveCell, o
|
|
|
226
325
|
});
|
|
227
326
|
if (arrayFormula) {
|
|
228
327
|
onChangeArrayFormula?.(editingSheetId, planArrayFormulaRange(activeCell, selected, getArrayFormula?.(editingSheetId, activeCell.rowIndex, activeCell.columnIndex)?.range), value);
|
|
328
|
+
return finish(false);
|
|
229
329
|
}
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
batchHistory(writeAll);
|
|
330
|
+
const isFill = fillWrites.length > 0;
|
|
331
|
+
// The commit as planned: the active cell's write, the other cells of a fill, the wrap.
|
|
332
|
+
const entry = {
|
|
333
|
+
sheetId: editingSheetId,
|
|
334
|
+
activeCell,
|
|
335
|
+
value,
|
|
336
|
+
textFormatRuns,
|
|
337
|
+
previousValue,
|
|
338
|
+
isDirty,
|
|
339
|
+
selections: isFill ? selected : [],
|
|
340
|
+
writes: fillWrites,
|
|
341
|
+
wrapText: Boolean(wrapLineBreak),
|
|
342
|
+
};
|
|
343
|
+
const torn = isFill && getArrayFormula
|
|
344
|
+
? entryFillTornArrayWrite(entry, getArrayFormula)
|
|
345
|
+
: undefined;
|
|
346
|
+
if (torn) {
|
|
347
|
+
// Excel refuses the whole fill ("You can't change part of an array") and changes
|
|
348
|
+
// nothing. Only the write the engine refuses is sent, so the engine says so in its
|
|
349
|
+
// own words and no other cell of the fill is written; the entry stays open.
|
|
350
|
+
if (torn === "activeCell") {
|
|
351
|
+
onChange?.(editingSheetId, activeCell, value, textFormatRuns, previousValue, isDirty);
|
|
253
352
|
}
|
|
254
353
|
else {
|
|
255
|
-
|
|
354
|
+
onChangeBatch?.(editingSheetId, torn.range, torn.values);
|
|
256
355
|
}
|
|
356
|
+
return finish(true);
|
|
257
357
|
}
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
358
|
+
if (isFill && onFillEntry) {
|
|
359
|
+
// One operation for the host (Athena-Intel/demo-app-monorepo#62479): it is handed the
|
|
360
|
+
// whole fill, judges it (a person's answer included) and writes it itself, in a
|
|
361
|
+
// history batch of its own. Nothing is written from here, whatever it answers: a
|
|
362
|
+
// refusal cannot leave the active cell written and the rest not.
|
|
363
|
+
//
|
|
364
|
+
// A host that throws or rejects has not said the fill was written: for the grid that
|
|
365
|
+
// is a refusal too, so the entry is not left closed with its text gone. The error
|
|
366
|
+
// goes on to the host.
|
|
367
|
+
const failed = (error) => {
|
|
368
|
+
finish(true);
|
|
369
|
+
throw error;
|
|
370
|
+
};
|
|
371
|
+
let answer;
|
|
372
|
+
try {
|
|
373
|
+
answer = onFillEntry(entry);
|
|
263
374
|
}
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
375
|
+
catch (error) {
|
|
376
|
+
return failed(error);
|
|
377
|
+
}
|
|
378
|
+
return answer instanceof Promise
|
|
379
|
+
? answer.then((written) => finish(written === false), failed)
|
|
380
|
+
: finish(answer === false);
|
|
267
381
|
}
|
|
268
|
-
//
|
|
269
|
-
//
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
382
|
+
// Read where the write is made, never from what `batchHistory` returns: a host's batcher
|
|
383
|
+
// may run the action and return nothing.
|
|
384
|
+
let written = true;
|
|
385
|
+
const writeAll = () => {
|
|
386
|
+
written = writeEntryFill(entry, {
|
|
387
|
+
onChange,
|
|
388
|
+
onChangeBatch,
|
|
389
|
+
onChangeFormatting,
|
|
390
|
+
});
|
|
391
|
+
};
|
|
392
|
+
// One gesture, one undo entry: the active cell, every rectangle and the wrap together.
|
|
393
|
+
if (batchHistory && (isFill || wrapLineBreak)) {
|
|
394
|
+
batchHistory(writeAll);
|
|
275
395
|
}
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
setActiveCell(editingSheetId, nextActiveCell);
|
|
396
|
+
else {
|
|
397
|
+
writeAll();
|
|
279
398
|
}
|
|
280
|
-
|
|
399
|
+
finish(!written);
|
|
281
400
|
};
|
|
282
401
|
/**
|
|
283
402
|
* Data validation enforcement (Excel parity). Only runs when the value
|
|
@@ -315,7 +434,10 @@ export const useEditorSubmit = ({ sheetId, onChangeActiveSheet, setActiveCell, o
|
|
|
315
434
|
}
|
|
316
435
|
}
|
|
317
436
|
}
|
|
318
|
-
commit();
|
|
437
|
+
const committing = commit();
|
|
438
|
+
if (committing) {
|
|
439
|
+
await committing;
|
|
440
|
+
}
|
|
319
441
|
}, [
|
|
320
442
|
setActiveCell,
|
|
321
443
|
setActiveEditor,
|
|
@@ -331,6 +453,7 @@ export const useEditorSubmit = ({ sheetId, onChangeActiveSheet, setActiveCell, o
|
|
|
331
453
|
getSelections,
|
|
332
454
|
onChangeBatch,
|
|
333
455
|
batchHistory,
|
|
456
|
+
onFillEntry,
|
|
334
457
|
formulaLocale,
|
|
335
458
|
referenceStyle,
|
|
336
459
|
onChangeArrayFormula,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-keyboard-handler.d.ts","sourceRoot":"","sources":["../../../hooks/use-keyboard-handler.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AASvE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,KAAK,EACV,eAAe,EACf,mBAAmB,EACpB,MAAM,mCAAmC,CAAC;
|
|
1
|
+
{"version":3,"file":"use-keyboard-handler.d.ts","sourceRoot":"","sources":["../../../hooks/use-keyboard-handler.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AASvE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,KAAK,EACV,eAAe,EACf,mBAAmB,EACpB,MAAM,mCAAmC,CAAC;AAG3C,OAAO,KAAK,EAEV,UAAU,EACV,aAAa,EAEb,KAAK,EACL,UAAU,EACX,MAAM,UAAU,CAAC;AAElB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAmCnE,KAAK,uBAAuB,GAAG;IAC7B,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB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