@rowsncolumns/spreadsheet 10.9.0 → 10.9.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/cjs/api/scheduler.d.ts +1 -1
- package/dist/cjs/api/scheduler.d.ts.map +1 -1
- package/dist/cjs/api/scheduler.js +2 -4
- package/dist/cjs/atoms/cell-input-context.atom.d.ts.map +1 -1
- package/dist/cjs/atoms/sheet-context.atom.d.ts +3 -3
- package/dist/cjs/atoms/sheet-context.atom.d.ts.map +1 -1
- package/dist/cjs/components/canvas-grid/index.d.ts.map +1 -1
- package/dist/cjs/components/canvas-grid/index.js +1 -0
- package/dist/cjs/components/canvas-grid/typings.d.ts +6 -3
- package/dist/cjs/components/canvas-grid/typings.d.ts.map +1 -1
- package/dist/cjs/components/cell/index.d.ts.map +1 -1
- package/dist/cjs/components/cell/index.js +1 -1
- package/dist/cjs/components/cell-arrow/index.d.ts +7 -1
- package/dist/cjs/components/cell-arrow/index.d.ts.map +1 -1
- package/dist/cjs/components/cell-arrow/index.js +27 -3
- package/dist/cjs/components/toolbar/text-horizontal-align-selector.d.ts +5 -0
- package/dist/cjs/components/toolbar/text-horizontal-align-selector.d.ts.map +1 -1
- package/dist/cjs/components/toolbar/text-horizontal-align-selector.js +36 -30
- package/dist/cjs/components/toolbar/text-vertical-align-selector.d.ts +5 -0
- package/dist/cjs/components/toolbar/text-vertical-align-selector.d.ts.map +1 -1
- package/dist/cjs/components/toolbar/text-vertical-align-selector.js +26 -21
- package/dist/cjs/components/toolbar/text-wrap-selector.d.ts +3 -0
- package/dist/cjs/components/toolbar/text-wrap-selector.d.ts.map +1 -1
- package/dist/cjs/components/toolbar/text-wrap-selector.js +33 -28
- package/dist/cjs/config.d.ts +1 -1
- package/dist/cjs/config.d.ts.map +1 -1
- package/dist/cjs/config.js +2 -1
- package/dist/cjs/hooks/use-context-setter.d.ts.map +1 -1
- package/dist/cjs/hooks/use-context-setter.js +3 -1
- package/dist/cjs/hooks/use-copy-paste-cut.d.ts.map +1 -1
- package/dist/cjs/hooks/use-copy-paste-cut.js +5 -0
- package/dist/cjs/hooks/use-create-formula-tokenizer.d.ts +1 -1
- package/dist/cjs/hooks/use-create-formula-tokenizer.d.ts.map +1 -1
- package/dist/cjs/release-date.js +1 -1
- package/dist/cjs/types.d.ts +2 -67
- package/dist/cjs/types.d.ts.map +1 -1
- package/dist/esm/api/scheduler.d.ts +1 -1
- package/dist/esm/api/scheduler.d.ts.map +1 -1
- package/dist/esm/api/scheduler.js +2 -2
- package/dist/esm/atoms/cell-input-context.atom.d.ts.map +1 -1
- package/dist/esm/atoms/sheet-context.atom.d.ts +3 -3
- package/dist/esm/atoms/sheet-context.atom.d.ts.map +1 -1
- package/dist/esm/components/canvas-grid/index.d.ts.map +1 -1
- package/dist/esm/components/canvas-grid/index.js +1 -0
- package/dist/esm/components/canvas-grid/typings.d.ts +6 -3
- package/dist/esm/components/canvas-grid/typings.d.ts.map +1 -1
- package/dist/esm/components/cell/index.d.ts.map +1 -1
- package/dist/esm/components/cell/index.js +1 -1
- package/dist/esm/components/cell-arrow/index.d.ts +7 -1
- package/dist/esm/components/cell-arrow/index.d.ts.map +1 -1
- package/dist/esm/components/cell-arrow/index.js +24 -2
- package/dist/esm/components/toolbar/text-horizontal-align-selector.d.ts +5 -0
- package/dist/esm/components/toolbar/text-horizontal-align-selector.d.ts.map +1 -1
- package/dist/esm/components/toolbar/text-horizontal-align-selector.js +29 -25
- package/dist/esm/components/toolbar/text-vertical-align-selector.d.ts +5 -0
- package/dist/esm/components/toolbar/text-vertical-align-selector.d.ts.map +1 -1
- package/dist/esm/components/toolbar/text-vertical-align-selector.js +23 -20
- package/dist/esm/components/toolbar/text-wrap-selector.d.ts +3 -0
- package/dist/esm/components/toolbar/text-wrap-selector.d.ts.map +1 -1
- package/dist/esm/components/toolbar/text-wrap-selector.js +30 -27
- package/dist/esm/config.d.ts +1 -1
- package/dist/esm/config.d.ts.map +1 -1
- package/dist/esm/config.js +1 -1
- package/dist/esm/hooks/use-context-setter.d.ts.map +1 -1
- package/dist/esm/hooks/use-context-setter.js +3 -1
- package/dist/esm/hooks/use-copy-paste-cut.d.ts.map +1 -1
- package/dist/esm/hooks/use-copy-paste-cut.js +5 -0
- package/dist/esm/hooks/use-create-formula-tokenizer.d.ts +1 -1
- package/dist/esm/hooks/use-create-formula-tokenizer.d.ts.map +1 -1
- package/dist/esm/release-date.js +1 -1
- package/dist/esm/types.d.ts +2 -67
- package/dist/esm/types.d.ts.map +1 -1
- package/package.json +6 -6
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TextVerticalAlignSelector = void 0;
|
|
3
|
+
exports.TextVerticalAlignSelector = exports.TextVerticalAlignSelectorContent = void 0;
|
|
4
4
|
var tslib_1 = require("tslib");
|
|
5
5
|
var icons_1 = require("@rowsncolumns/icons");
|
|
6
6
|
var ui_1 = require("@rowsncolumns/ui");
|
|
@@ -8,9 +8,32 @@ var ui_2 = require("@rowsncolumns/ui");
|
|
|
8
8
|
var ui_3 = require("@rowsncolumns/ui");
|
|
9
9
|
var react_1 = tslib_1.__importStar(require("react"));
|
|
10
10
|
var atoms_1 = require("../../atoms");
|
|
11
|
+
var TextVerticalAlignSelectorContent = function (_a) {
|
|
12
|
+
var value = _a.value, onChange = _a.onChange, close = _a.close;
|
|
13
|
+
var focusSheet = (0, atoms_1.useFocusSheet)();
|
|
14
|
+
return (react_1.default.createElement(ui_3.Stack, { direction: "horizontal", className: "gap-1 flex-wrap max-w-[140px]" },
|
|
15
|
+
react_1.default.createElement(ui_1.IconButton, { size: "lg", isActive: value === "top", onClick: function () {
|
|
16
|
+
onChange("top");
|
|
17
|
+
focusSheet === null || focusSheet === void 0 ? void 0 : focusSheet();
|
|
18
|
+
close();
|
|
19
|
+
} },
|
|
20
|
+
react_1.default.createElement(icons_1.MdVerticalAlignTop, null)),
|
|
21
|
+
react_1.default.createElement(ui_1.IconButton, { size: "lg", isActive: value === "middle", onClick: function () {
|
|
22
|
+
onChange("middle");
|
|
23
|
+
focusSheet === null || focusSheet === void 0 ? void 0 : focusSheet();
|
|
24
|
+
close();
|
|
25
|
+
} },
|
|
26
|
+
react_1.default.createElement(icons_1.MdVerticalAlignCenter, null)),
|
|
27
|
+
react_1.default.createElement(ui_1.IconButton, { size: "lg", isActive: value === "bottom", onClick: function () {
|
|
28
|
+
onChange("bottom");
|
|
29
|
+
focusSheet === null || focusSheet === void 0 ? void 0 : focusSheet();
|
|
30
|
+
close();
|
|
31
|
+
} },
|
|
32
|
+
react_1.default.createElement(icons_1.MdVerticalAlignBottom, null))));
|
|
33
|
+
};
|
|
34
|
+
exports.TextVerticalAlignSelectorContent = TextVerticalAlignSelectorContent;
|
|
11
35
|
var TextVerticalAlignSelector = function (_a) {
|
|
12
36
|
var _b = _a.value, value = _b === void 0 ? "bottom" : _b, onChange = _a.onChange;
|
|
13
|
-
var focusSheet = (0, atoms_1.useFocusSheet)();
|
|
14
37
|
var _c = tslib_1.__read((0, react_1.useState)(false), 2), isOpen = _c[0], onOpenChange = _c[1];
|
|
15
38
|
var close = function () { return onOpenChange(false); };
|
|
16
39
|
return (react_1.default.createElement(ui_2.Popover, { open: isOpen, onOpenChange: onOpenChange },
|
|
@@ -19,24 +42,6 @@ var TextVerticalAlignSelector = function (_a) {
|
|
|
19
42
|
value === "top" ? (react_1.default.createElement(icons_1.MdVerticalAlignTop, null)) : value === "middle" ? (react_1.default.createElement(icons_1.MdVerticalAlignCenter, null)) : (react_1.default.createElement(icons_1.MdVerticalAlignBottom, null)),
|
|
20
43
|
react_1.default.createElement(icons_1.MdOutlineArrowDropDown, null))),
|
|
21
44
|
react_1.default.createElement(ui_2.PopoverContent, { align: "start" },
|
|
22
|
-
react_1.default.createElement(
|
|
23
|
-
react_1.default.createElement(ui_1.IconButton, { size: "lg", isActive: value === "top", onClick: function () {
|
|
24
|
-
onChange("top");
|
|
25
|
-
focusSheet === null || focusSheet === void 0 ? void 0 : focusSheet();
|
|
26
|
-
close();
|
|
27
|
-
} },
|
|
28
|
-
react_1.default.createElement(icons_1.MdVerticalAlignTop, null)),
|
|
29
|
-
react_1.default.createElement(ui_1.IconButton, { size: "lg", isActive: value === "middle", onClick: function () {
|
|
30
|
-
onChange("middle");
|
|
31
|
-
focusSheet === null || focusSheet === void 0 ? void 0 : focusSheet();
|
|
32
|
-
close();
|
|
33
|
-
} },
|
|
34
|
-
react_1.default.createElement(icons_1.MdVerticalAlignCenter, null)),
|
|
35
|
-
react_1.default.createElement(ui_1.IconButton, { size: "lg", isActive: value === "bottom", onClick: function () {
|
|
36
|
-
onChange("bottom");
|
|
37
|
-
focusSheet === null || focusSheet === void 0 ? void 0 : focusSheet();
|
|
38
|
-
close();
|
|
39
|
-
} },
|
|
40
|
-
react_1.default.createElement(icons_1.MdVerticalAlignBottom, null))))));
|
|
45
|
+
react_1.default.createElement(exports.TextVerticalAlignSelectorContent, { value: value, onChange: onChange, close: close }))));
|
|
41
46
|
};
|
|
42
47
|
exports.TextVerticalAlignSelector = TextVerticalAlignSelector;
|
|
@@ -10,6 +10,9 @@ type TextWrapSelectorProps = {
|
|
|
10
10
|
shrinkToFit?: boolean | null;
|
|
11
11
|
onChangeShrinkToFit?(value: boolean): void;
|
|
12
12
|
};
|
|
13
|
+
export declare const TextWrapSelectorContent: ({ value, onChange, shrinkToFit, onChangeShrinkToFit, close, }: TextWrapSelectorProps & {
|
|
14
|
+
close(): void;
|
|
15
|
+
}) => React.JSX.Element;
|
|
13
16
|
export declare const TextWrapSelector: ({ value, onChange, shrinkToFit, onChangeShrinkToFit, }: TextWrapSelectorProps) => React.JSX.Element;
|
|
14
17
|
export {};
|
|
15
18
|
//# sourceMappingURL=text-wrap-selector.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-wrap-selector.d.ts","sourceRoot":"","sources":["../../../../components/toolbar/text-wrap-selector.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAGxC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhD,KAAK,qBAAqB,GAAG;IAC3B,KAAK,CAAC,EAAE,YAAY,GAAG,IAAI,CAAC;IAC5B,QAAQ,CAAC,KAAK,EAAE,YAAY,GAAG,IAAI,CAAC;IACpC;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAC7B,mBAAmB,CAAC,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,CAAC;CAC5C,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,wDAK9B,qBAAqB,
|
|
1
|
+
{"version":3,"file":"text-wrap-selector.d.ts","sourceRoot":"","sources":["../../../../components/toolbar/text-wrap-selector.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAGxC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhD,KAAK,qBAAqB,GAAG;IAC3B,KAAK,CAAC,EAAE,YAAY,GAAG,IAAI,CAAC;IAC5B,QAAQ,CAAC,KAAK,EAAE,YAAY,GAAG,IAAI,CAAC;IACpC;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAC7B,mBAAmB,CAAC,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,CAAC;CAC5C,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAAI,+DAMrC,qBAAqB,GAAG;IACzB,KAAK,IAAI,IAAI,CAAC;CACf,sBA6DA,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,wDAK9B,qBAAqB,sBAiCvB,CAAC"}
|
|
@@ -1,15 +1,45 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TextWrapSelector = void 0;
|
|
3
|
+
exports.TextWrapSelector = exports.TextWrapSelectorContent = void 0;
|
|
4
4
|
var tslib_1 = require("tslib");
|
|
5
5
|
var icons_1 = require("@rowsncolumns/icons");
|
|
6
6
|
var icons_2 = require("@rowsncolumns/icons");
|
|
7
7
|
var ui_1 = require("@rowsncolumns/ui");
|
|
8
8
|
var react_1 = tslib_1.__importStar(require("react"));
|
|
9
9
|
var atoms_1 = require("../../atoms");
|
|
10
|
+
var TextWrapSelectorContent = function (_a) {
|
|
11
|
+
var value = _a.value, onChange = _a.onChange, shrinkToFit = _a.shrinkToFit, onChangeShrinkToFit = _a.onChangeShrinkToFit, close = _a.close;
|
|
12
|
+
var focusSheet = (0, atoms_1.useFocusSheet)();
|
|
13
|
+
return (react_1.default.createElement(ui_1.Stack, { direction: "horizontal", className: "flex-wrap gap-1 max-w-[140px]" },
|
|
14
|
+
react_1.default.createElement(ui_1.IconButton, { size: "lg", isActive: value === "overflow", tooltip: "Overflow", onClick: function () {
|
|
15
|
+
onChange("overflow");
|
|
16
|
+
focusSheet === null || focusSheet === void 0 ? void 0 : focusSheet();
|
|
17
|
+
close();
|
|
18
|
+
} },
|
|
19
|
+
react_1.default.createElement(icons_1.TextOverflowIcon, null)),
|
|
20
|
+
react_1.default.createElement(ui_1.IconButton, { size: "lg", isActive: value === "wrap", tooltip: "Wrap", onClick: function () {
|
|
21
|
+
onChange("wrap");
|
|
22
|
+
focusSheet === null || focusSheet === void 0 ? void 0 : focusSheet();
|
|
23
|
+
close();
|
|
24
|
+
} },
|
|
25
|
+
react_1.default.createElement(icons_1.TextOverflowWrapIcon, null)),
|
|
26
|
+
react_1.default.createElement(ui_1.IconButton, { size: "lg", isActive: value === "clip", tooltip: "Clip", onClick: function () {
|
|
27
|
+
onChange("clip");
|
|
28
|
+
focusSheet === null || focusSheet === void 0 ? void 0 : focusSheet();
|
|
29
|
+
close();
|
|
30
|
+
} },
|
|
31
|
+
react_1.default.createElement(icons_1.TextoverflowClipIcon, null)),
|
|
32
|
+
onChangeShrinkToFit ? (react_1.default.createElement(ui_1.IconButton, { size: "lg", isActive: !!shrinkToFit, "aria-pressed": !!shrinkToFit, tooltip: "Shrink text to fit the cell", "aria-label": "Shrink text to fit the cell", className: "w-full justify-start gap-1", onClick: function () {
|
|
33
|
+
onChangeShrinkToFit(!shrinkToFit);
|
|
34
|
+
focusSheet === null || focusSheet === void 0 ? void 0 : focusSheet();
|
|
35
|
+
close();
|
|
36
|
+
} },
|
|
37
|
+
react_1.default.createElement(icons_1.TextoverflowClipIcon, null),
|
|
38
|
+
react_1.default.createElement("span", { className: "text-xs" }, "Shrink to fit"))) : null));
|
|
39
|
+
};
|
|
40
|
+
exports.TextWrapSelectorContent = TextWrapSelectorContent;
|
|
10
41
|
var TextWrapSelector = function (_a) {
|
|
11
42
|
var _b = _a.value, value = _b === void 0 ? "overflow" : _b, onChange = _a.onChange, shrinkToFit = _a.shrinkToFit, onChangeShrinkToFit = _a.onChangeShrinkToFit;
|
|
12
|
-
var focusSheet = (0, atoms_1.useFocusSheet)();
|
|
13
43
|
var _c = tslib_1.__read((0, react_1.useState)(false), 2), isOpen = _c[0], onOpenChange = _c[1];
|
|
14
44
|
var close = function () { return onOpenChange(false); };
|
|
15
45
|
return (react_1.default.createElement(ui_1.Popover, { open: isOpen, onOpenChange: onOpenChange },
|
|
@@ -18,31 +48,6 @@ var TextWrapSelector = function (_a) {
|
|
|
18
48
|
value === "overflow" ? (react_1.default.createElement(icons_1.TextOverflowIcon, null)) : value === "wrap" ? (react_1.default.createElement(icons_1.TextOverflowWrapIcon, null)) : (react_1.default.createElement(icons_1.TextoverflowClipIcon, null)),
|
|
19
49
|
react_1.default.createElement(icons_2.MdOutlineArrowDropDown, null))),
|
|
20
50
|
react_1.default.createElement(ui_1.PopoverContent, { align: "start" },
|
|
21
|
-
react_1.default.createElement(
|
|
22
|
-
react_1.default.createElement(ui_1.IconButton, { size: "lg", isActive: value === "overflow", tooltip: "Overflow", onClick: function () {
|
|
23
|
-
onChange("overflow");
|
|
24
|
-
focusSheet === null || focusSheet === void 0 ? void 0 : focusSheet();
|
|
25
|
-
close();
|
|
26
|
-
} },
|
|
27
|
-
react_1.default.createElement(icons_1.TextOverflowIcon, null)),
|
|
28
|
-
react_1.default.createElement(ui_1.IconButton, { size: "lg", isActive: value === "wrap", tooltip: "Wrap", onClick: function () {
|
|
29
|
-
onChange("wrap");
|
|
30
|
-
focusSheet === null || focusSheet === void 0 ? void 0 : focusSheet();
|
|
31
|
-
close();
|
|
32
|
-
} },
|
|
33
|
-
react_1.default.createElement(icons_1.TextOverflowWrapIcon, null)),
|
|
34
|
-
react_1.default.createElement(ui_1.IconButton, { size: "lg", isActive: value === "clip", tooltip: "Clip", onClick: function () {
|
|
35
|
-
onChange("clip");
|
|
36
|
-
focusSheet === null || focusSheet === void 0 ? void 0 : focusSheet();
|
|
37
|
-
close();
|
|
38
|
-
} },
|
|
39
|
-
react_1.default.createElement(icons_1.TextoverflowClipIcon, null)),
|
|
40
|
-
onChangeShrinkToFit ? (react_1.default.createElement(ui_1.IconButton, { size: "lg", isActive: !!shrinkToFit, "aria-pressed": !!shrinkToFit, tooltip: "Shrink text to fit the cell", "aria-label": "Shrink text to fit the cell", className: "w-full justify-start gap-1", onClick: function () {
|
|
41
|
-
onChangeShrinkToFit(!shrinkToFit);
|
|
42
|
-
focusSheet === null || focusSheet === void 0 ? void 0 : focusSheet();
|
|
43
|
-
close();
|
|
44
|
-
} },
|
|
45
|
-
react_1.default.createElement(icons_1.TextoverflowClipIcon, null),
|
|
46
|
-
react_1.default.createElement("span", { className: "text-xs" }, "Shrink to fit"))) : null))));
|
|
51
|
+
react_1.default.createElement(exports.TextWrapSelectorContent, { value: value, onChange: onChange, shrinkToFit: shrinkToFit, onChangeShrinkToFit: onChangeShrinkToFit, close: close }))));
|
|
47
52
|
};
|
|
48
53
|
exports.TextWrapSelector = TextWrapSelector;
|
package/dist/cjs/config.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import type { SpreadsheetTheme } from "./components/canvas-grid/typings";
|
|
|
4
4
|
import type { OverlayPosition, TextFormat } from "./types";
|
|
5
5
|
export declare const DEFAULT_ACTIVE_CELL: CellInterface;
|
|
6
6
|
export declare const DEFAULT_SELECTIONS: readonly never[];
|
|
7
|
-
export
|
|
7
|
+
export { DEFAULT_ARRAY } from "@rowsncolumns/utils";
|
|
8
8
|
export declare const FROZEN_EMPTY_ARRAY: readonly never[];
|
|
9
9
|
export declare const DEFAULT_SCROLL_POSITION: ScrollCoords;
|
|
10
10
|
export declare const MAX_ROW_COUNT = 1048576;
|
package/dist/cjs/config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAEtE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAEzE,OAAO,KAAK,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAE3D,eAAO,MAAM,mBAAmB,EAAE,aAGhC,CAAC;AACH,eAAO,MAAM,kBAAkB,kBAAoB,CAAC;AACpD,
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAEtE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAEzE,OAAO,KAAK,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAE3D,eAAO,MAAM,mBAAmB,EAAE,aAGhC,CAAC;AACH,eAAO,MAAM,kBAAkB,kBAAoB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAA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AO,MAAM,WAAW,aAAa,CAAC;AACtC,eAAO,MAAM,WAAW,QAC4a,CAAC;AACrc,eAAO,MAAM,SAAS,QACyF,CAAC;AAEhH,eAAO,MAAM,aAAa,mBAyExB,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,wDACiB,CAAC;AAExD;;;;GAIG;AACH,eAAO,MAAM,mCAAmC,mDACE,CAAC"}
|
package/dist/cjs/config.js
CHANGED
|
@@ -9,7 +9,8 @@ exports.DEFAULT_ACTIVE_CELL = Object.freeze({
|
|
|
9
9
|
columnIndex: 1,
|
|
10
10
|
});
|
|
11
11
|
exports.DEFAULT_SELECTIONS = Object.freeze([]);
|
|
12
|
-
|
|
12
|
+
var utils_1 = require("@rowsncolumns/utils");
|
|
13
|
+
Object.defineProperty(exports, "DEFAULT_ARRAY", { enumerable: true, get: function () { return utils_1.DEFAULT_ARRAY; } });
|
|
13
14
|
exports.FROZEN_EMPTY_ARRAY = exports.DEFAULT_SELECTIONS;
|
|
14
15
|
exports.DEFAULT_SCROLL_POSITION = Object.freeze({
|
|
15
16
|
scrollLeft: 0,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-context-setter.d.ts","sourceRoot":"","sources":["../../../hooks/use-context-setter.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAG3E,eAAO,MAAM,gBAAgB,GAC3B,cAAc,KAAK,CAAC,YAAY,CAAC,iBAAiB,CAAC,EACnD,cAAc,iBAAiB,
|
|
1
|
+
{"version":3,"file":"use-context-setter.d.ts","sourceRoot":"","sources":["../../../hooks/use-context-setter.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAG3E,eAAO,MAAM,gBAAgB,GAC3B,cAAc,KAAK,CAAC,YAAY,CAAC,iBAAiB,CAAC,EACnD,cAAc,iBAAiB,SAgNhC,CAAC"}
|
|
@@ -6,7 +6,7 @@ var sheet_context_atom_1 = require("../atoms/sheet-context.atom");
|
|
|
6
6
|
var use_isomorphic_layout_effect_1 = require("./use-isomorphic-layout-effect");
|
|
7
7
|
var useContextSetter = function (forwardedRef, contextValue) {
|
|
8
8
|
var setSpreadsheetContext = (0, sheet_context_atom_1.useSetSpreadsheetContext)();
|
|
9
|
-
var submitEditor = contextValue.submitEditor, cancelEditor = contextValue.cancelEditor, commit = contextValue.commit, makeEditable = contextValue.makeEditable, editCell = contextValue.editCell, getNextFocusableCell = contextValue.getNextFocusableCell, onEditorKeyDown = contextValue.onEditorKeyDown, scrollToCell = contextValue.scrollToCell, scrollToChart = contextValue.scrollToChart, selectAllObjects = contextValue.selectAllObjects, scrollToBottom = contextValue.scrollToBottom, focusSheet = contextValue.focusSheet, canEditCell = contextValue.canEditCell, isSheetProtected = contextValue.isSheetProtected, isWorkbookProtected = contextValue.isWorkbookProtected, getSheetProtection = contextValue.getSheetProtection, getSelectionsFromFormula = contextValue.getSelectionsFromFormula, getAddressFromSelection = contextValue.getAddressFromSelection, getR1C1AddressFromSelection = contextValue.getR1C1AddressFromSelection, tokenizer = contextValue.tokenizer, localeTokenizer = contextValue.localeTokenizer, formulaLocale = contextValue.formulaLocale, referenceStyle = contextValue.referenceStyle, setEditorValue = contextValue.setEditorValue, getCellBounds = contextValue.getCellBounds, getTableNames = contextValue.getTableNames, getStructuredProperties = contextValue.getStructuredProperties, getNamedRanges = contextValue.getNamedRanges, getTableColumnNames = contextValue.getTableColumnNames, updateSelectionStartEndReference = contextValue.updateSelectionStartEndReference, getCellDimensions = contextValue.getCellDimensions, getRowHeight = contextValue.getRowHeight, getContentfulGridRangeAroundCell = contextValue.getContentfulGridRangeAroundCell, getCellCoordsFromOffset = contextValue.getCellCoordsFromOffset, getCellOffsetFromCoords = contextValue.getCellOffsetFromCoords, getEffectiveValuesFromRange = contextValue.getEffectiveValuesFromRange, getSheetDimensions = contextValue.getSheetDimensions, getFinalRowHeight = contextValue.getFinalRowHeight, getColumnWidth = contextValue.getColumnWidth, getSheetId = contextValue.getSheetId, getSheetName = contextValue.getSheetName, onInsertNote = contextValue.onInsertNote, onPinToolTip = contextValue.onPinToolTip, onUnpinTooltip = contextValue.onUnpinTooltip, showCellPopover = contextValue.showCellPopover, showFilterMenu = contextValue.showFilterMenu, redrawGrid = contextValue.redrawGrid, flash = contextValue.flash, navigateToSheetRange = contextValue.navigateToSheetRange, mark = contextValue.mark, unmark = contextValue.unmark, exportRange = contextValue.exportRange, getViewPort = contextValue.getViewPort, setActiveCell = contextValue.setActiveCell, getGridRef = contextValue.getGridRef, getMentions = contextValue.getMentions, dispatchEvent = contextValue.dispatchEvent, splitTextToColumns = contextValue.splitTextToColumns, copy = contextValue.copy, cut = contextValue.cut, paste = contextValue.paste;
|
|
9
|
+
var submitEditor = contextValue.submitEditor, cancelEditor = contextValue.cancelEditor, commit = contextValue.commit, makeEditable = contextValue.makeEditable, editCell = contextValue.editCell, getNextFocusableCell = contextValue.getNextFocusableCell, onEditorKeyDown = contextValue.onEditorKeyDown, scrollToCell = contextValue.scrollToCell, scrollToChart = contextValue.scrollToChart, selectAllObjects = contextValue.selectAllObjects, scrollToBottom = contextValue.scrollToBottom, focusSheet = contextValue.focusSheet, canEditCell = contextValue.canEditCell, isSheetProtected = contextValue.isSheetProtected, isWorkbookProtected = contextValue.isWorkbookProtected, getSheetProtection = contextValue.getSheetProtection, getSelectionsFromFormula = contextValue.getSelectionsFromFormula, getAddressFromSelection = contextValue.getAddressFromSelection, getR1C1AddressFromSelection = contextValue.getR1C1AddressFromSelection, tokenizer = contextValue.tokenizer, localeTokenizer = contextValue.localeTokenizer, formulaLocale = contextValue.formulaLocale, referenceStyle = contextValue.referenceStyle, setEditorValue = contextValue.setEditorValue, getCellBounds = contextValue.getCellBounds, getTableNames = contextValue.getTableNames, getStructuredProperties = contextValue.getStructuredProperties, getNamedRanges = contextValue.getNamedRanges, getTableColumnNames = contextValue.getTableColumnNames, updateSelectionStartEndReference = contextValue.updateSelectionStartEndReference, getCellDimensions = contextValue.getCellDimensions, getRowHeight = contextValue.getRowHeight, getContentfulGridRangeAroundCell = contextValue.getContentfulGridRangeAroundCell, getCellCoordsFromOffset = contextValue.getCellCoordsFromOffset, getCellOffsetFromCoords = contextValue.getCellOffsetFromCoords, getEffectiveCellFormat = contextValue.getEffectiveCellFormat, getEffectiveValuesFromRange = contextValue.getEffectiveValuesFromRange, getSheetDimensions = contextValue.getSheetDimensions, getFinalRowHeight = contextValue.getFinalRowHeight, getColumnWidth = contextValue.getColumnWidth, getSheetId = contextValue.getSheetId, getSheetName = contextValue.getSheetName, onInsertNote = contextValue.onInsertNote, onPinToolTip = contextValue.onPinToolTip, onUnpinTooltip = contextValue.onUnpinTooltip, showCellPopover = contextValue.showCellPopover, showFilterMenu = contextValue.showFilterMenu, redrawGrid = contextValue.redrawGrid, flash = contextValue.flash, navigateToSheetRange = contextValue.navigateToSheetRange, mark = contextValue.mark, unmark = contextValue.unmark, exportRange = contextValue.exportRange, getViewPort = contextValue.getViewPort, setActiveCell = contextValue.setActiveCell, getGridRef = contextValue.getGridRef, getMentions = contextValue.getMentions, dispatchEvent = contextValue.dispatchEvent, splitTextToColumns = contextValue.splitTextToColumns, copy = contextValue.copy, cut = contextValue.cut, paste = contextValue.paste;
|
|
10
10
|
// Expose grid methods in context and ref
|
|
11
11
|
var imperativeHandleRefs = (0, react_1.useMemo)(function () { return ({
|
|
12
12
|
submitEditor: submitEditor,
|
|
@@ -44,6 +44,7 @@ var useContextSetter = function (forwardedRef, contextValue) {
|
|
|
44
44
|
getContentfulGridRangeAroundCell: getContentfulGridRangeAroundCell,
|
|
45
45
|
getCellCoordsFromOffset: getCellCoordsFromOffset,
|
|
46
46
|
getCellOffsetFromCoords: getCellOffsetFromCoords,
|
|
47
|
+
getEffectiveCellFormat: getEffectiveCellFormat,
|
|
47
48
|
getEffectiveValuesFromRange: getEffectiveValuesFromRange,
|
|
48
49
|
getSheetDimensions: getSheetDimensions,
|
|
49
50
|
getFinalRowHeight: getFinalRowHeight,
|
|
@@ -106,6 +107,7 @@ var useContextSetter = function (forwardedRef, contextValue) {
|
|
|
106
107
|
getContentfulGridRangeAroundCell,
|
|
107
108
|
getCellCoordsFromOffset,
|
|
108
109
|
getCellOffsetFromCoords,
|
|
110
|
+
getEffectiveCellFormat,
|
|
109
111
|
getEffectiveValuesFromRange,
|
|
110
112
|
getSheetDimensions,
|
|
111
113
|
getFinalRowHeight,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-copy-paste-cut.d.ts","sourceRoot":"","sources":["../../../hooks/use-copy-paste-cut.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAcvE,OAAO,KAAK,EACV,eAAe,EAEhB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAGL,KAAK,aAAa,EACnB,MAAM,uCAAuC,CAAC;AAK/C,MAAM,MAAM,oBAAoB,GAAG;IACjC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,UAAU,EAAE,aAAa,CAAC;IAC1B;;OAEG;IACH,UAAU,EAAE,aAAa,EAAE,CAAC;IAC5B;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,UAAU,IAAI,IAAI,CAAC;IACnB;;OAEG;IACH,OAAO,EAAE,eAAe,CAAC,SAAS,CAAC,CAAC;IACpC;;OAEG;IACH,MAAM,EAAE,eAAe,CAAC,QAAQ,CAAC,CAAC;IAClC;;OAEG;IACH,KAAK,EAAE,eAAe,CAAC,OAAO,CAAC,CAAC;IAChC;;;OAGG;IACH,cAAc,CAAC,EAAE,eAAe,CAAC,gBAAgB,CAAC,CAAC;CACpD,CAAC;AA8BF,MAAM,MAAM,gBAAgB,GACxB,YAAY,GACZ,YAAY,GACZ,OAAO,GACP,SAAS,GACT,MAAM,CAAC;AAEX,2FAA2F;AAC3F,MAA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,kDAAkD;;;;wBAjS9C,cAAc;yBAqEd,cAAc;uBA3Bd,cAAc;kCA8HD,aAAa;CAkIjC,CAAC"}
|
|
@@ -156,6 +156,11 @@ var useCopyPasteCut = function (_a) {
|
|
|
156
156
|
return;
|
|
157
157
|
if (/^(Arrow|Page|Home|End|Tab|Escape)/.test(e.key))
|
|
158
158
|
return;
|
|
159
|
+
// A key pressed on the Paste Options button itself (Enter or Space to
|
|
160
|
+
// open it) keeps it.
|
|
161
|
+
if (e.target instanceof Element &&
|
|
162
|
+
e.target.closest('[data-testid="paste-options"]'))
|
|
163
|
+
return;
|
|
159
164
|
setShowPasteMenu(false);
|
|
160
165
|
};
|
|
161
166
|
// Capture phase: the grid's own shortcuts stop propagation.
|
|
@@ -10,6 +10,6 @@ type UseTokenizerProps = {
|
|
|
10
10
|
sheetId: number;
|
|
11
11
|
activeCell: CellInterface;
|
|
12
12
|
};
|
|
13
|
-
export declare const useCreateFormulaTokenizer: ({ getSelectionFromNamedRange, getSelectionFromTable, tokenizer, editingCellCoordinate, sheetId, activeCell, }: UseTokenizerProps) => (value: string) => import("
|
|
13
|
+
export declare const useCreateFormulaTokenizer: ({ getSelectionFromNamedRange, getSelectionFromTable, tokenizer, editingCellCoordinate, sheetId, activeCell, }: UseTokenizerProps) => (value: string) => import("@rowsncolumns/common-types").ParsedToken[];
|
|
14
14
|
export {};
|
|
15
15
|
//# sourceMappingURL=use-create-formula-tokenizer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-create-formula-tokenizer.d.ts","sourceRoot":"","sources":["../../../hooks/use-create-formula-tokenizer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAGxD,OAAO,KAAK,EACV,eAAe,EACf,0BAA0B,EAC3B,MAAM,mCAAmC,CAAC;AAC3C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAEhD,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,sCAAsC,CAAC;AAE9F,KAAK,iBAAiB,GAAG;IACvB,0BAA0B,EAAE,0BAA0B,CAAC;IACvD,qBAAqB,EAAE,UAAU,CAAC,OAAO,iCAAiC,CAAC,CAAC;IAC5E,SAAS,EAAE,eAAe,CAAC,WAAW,CAAC,CAAC;IACxC,qBAAqB,CAAC,EAAE,eAAe,CAAC;IACxC,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,aAAa,CAAC;CAC3B,CAAC;AAEF,eAAO,MAAM,yBAAyB,GAAI,+GAOvC,iBAAiB,aAON,MAAM,
|
|
1
|
+
{"version":3,"file":"use-create-formula-tokenizer.d.ts","sourceRoot":"","sources":["../../../hooks/use-create-formula-tokenizer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAGxD,OAAO,KAAK,EACV,eAAe,EACf,0BAA0B,EAC3B,MAAM,mCAAmC,CAAC;AAC3C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAEhD,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,sCAAsC,CAAC;AAE9F,KAAK,iBAAiB,GAAG;IACvB,0BAA0B,EAAE,0BAA0B,CAAC;IACvD,qBAAqB,EAAE,UAAU,CAAC,OAAO,iCAAiC,CAAC,CAAC;IAC5E,SAAS,EAAE,eAAe,CAAC,WAAW,CAAC,CAAC;IACxC,qBAAqB,CAAC,EAAE,eAAe,CAAC;IACxC,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,aAAa,CAAC;CAC3B,CAAC;AAEF,eAAO,MAAM,yBAAyB,GAAI,+GAOvC,iBAAiB,aAON,MAAM,uDAkDnB,CAAC"}
|
package/dist/cjs/release-date.js
CHANGED
|
@@ -4,4 +4,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.releaseDate = void 0;
|
|
5
5
|
exports.releaseDate =
|
|
6
6
|
// @ts-ignore
|
|
7
|
-
(_a = new Date("2026-11-
|
|
7
|
+
(_a = new Date("2026-11-10")) !== null && _a !== void 0 ? _a : new Date("2025-06-18");
|
package/dist/cjs/types.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { BooleanCondition, HorizontalAlign, SheetRange, SortOrder, PivotTable } from "@rowsncolumns/common-types";
|
|
1
|
+
import type { BooleanCondition, DimensionProperties, HorizontalAlign, SheetRange, SortOrder, PivotTable } from "@rowsncolumns/common-types";
|
|
2
2
|
import type { FormulaResult } from "@rowsncolumns/fast-formula-parser";
|
|
3
3
|
import type { TableStyleElements, TotalsRowFunction } from "@rowsncolumns/utils";
|
|
4
4
|
import type { CellInterface, GridRange, SelectionArea, Style } from "@rowsncolumns/grid";
|
|
5
5
|
import type { ColorIndex } from "./themes";
|
|
6
|
-
export type { BooleanCondition, CellData, ConditionType, ConditionValue, CustomFormulaResult, DataValidationInputMessage, DataValidationRule, DataValidationRuleAlert, ErrorValue, HorizontalAlign, IterativeCalculationOptions, NamedCellStyle, ExtendedValue, Mention, PivotArea, PivotAreaReference, PivotCacheField, PivotCalculatedField, PivotFieldItem, PivotSharedItem, PivotSharedItems, PivotGroup, PivotTable, PivotTableChartFormat, PivotTableStyleInfo, PivotValue, PivotValueSummarizeFunction, SheetCoordinate, SheetRange, SortOrder, StructuredValue, StyleReference, TextFormatRun, DataValidationRuleRecord, } from "@rowsncolumns/common-types";
|
|
6
|
+
export type { DimensionProperties, ParsedToken, Token, BooleanCondition, CellData, ConditionType, ConditionValue, CustomFormulaResult, DataValidationInputMessage, DataValidationRule, DataValidationRuleAlert, ErrorValue, HorizontalAlign, IterativeCalculationOptions, NamedCellStyle, ExtendedValue, Mention, PivotArea, PivotAreaReference, PivotCacheField, PivotCalculatedField, PivotFieldItem, PivotSharedItem, PivotSharedItems, PivotGroup, PivotTable, PivotTableChartFormat, PivotTableStyleInfo, PivotValue, PivotValueSummarizeFunction, SheetCoordinate, SheetRange, SortOrder, StructuredValue, StyleReference, TextFormatRun, DataValidationRuleRecord, } from "@rowsncolumns/common-types";
|
|
7
7
|
export { CONDITION_TYPES } from "@rowsncolumns/common-types";
|
|
8
8
|
/**
|
|
9
9
|
* Utility type for values that can be undefined or null
|
|
@@ -2241,42 +2241,6 @@ export type DataBarRule = {
|
|
|
2241
2241
|
minLength?: Maybe<number>;
|
|
2242
2242
|
maxLength?: Maybe<number>;
|
|
2243
2243
|
};
|
|
2244
|
-
export type DimensionProperties = {
|
|
2245
|
-
size?: Maybe<number>;
|
|
2246
|
-
resizedByUser?: Maybe<boolean>;
|
|
2247
|
-
/**
|
|
2248
|
-
* Mirrors the xlsx `customHeight="1"` (or `customWidth="1"`) attribute
|
|
2249
|
-
* captured at import time. Distinct from `resizedByUser` — that runtime
|
|
2250
|
-
* flag can be flipped by engine paths (column-resize side effects,
|
|
2251
|
-
* autofit, etc.) and is not safe to use as the export gate for
|
|
2252
|
-
* `customHeight`. When the source carried the explicit `customHeight`
|
|
2253
|
-
* marker, this stays true through round-trip and tells the exporter
|
|
2254
|
-
* to emit `customHeight="1"` even when `size` matches the sheet
|
|
2255
|
-
* default — which round-trips Excel's "user locked this row even though
|
|
2256
|
-
* it happens to be the default height" behavior verbatim.
|
|
2257
|
-
*/
|
|
2258
|
-
customHeight?: Maybe<boolean>;
|
|
2259
|
-
hiddenByUser?: Maybe<boolean>;
|
|
2260
|
-
hiddenByFilter?: Maybe<boolean>;
|
|
2261
|
-
/**
|
|
2262
|
-
* Hidden because the parent outline group is collapsed. Kept separate
|
|
2263
|
-
* from `hiddenByUser` so expanding the group doesn't blow away a
|
|
2264
|
-
* manual hide. Render layer ORs all three.
|
|
2265
|
-
*/
|
|
2266
|
-
hiddenByGroup?: Maybe<boolean>;
|
|
2267
|
-
/**
|
|
2268
|
-
* Excel outline depth (0–7). 0 = no grouping. Mirrors OOXML
|
|
2269
|
-
* `<row outlineLevel=…>` / `<col outlineLevel=…>`. Persisted only
|
|
2270
|
-
* when > 0.
|
|
2271
|
-
*/
|
|
2272
|
-
outlineLevel?: Maybe<number>;
|
|
2273
|
-
/**
|
|
2274
|
-
* True on the SUMMARY row/column of a group when the group is in
|
|
2275
|
-
* the collapsed state — that's where the `+` button is drawn.
|
|
2276
|
-
* Mirrors OOXML `<row collapsed="1">` / `<col collapsed="1">`.
|
|
2277
|
-
*/
|
|
2278
|
-
collapsed?: Maybe<boolean>;
|
|
2279
|
-
};
|
|
2280
2244
|
export type SortSpecs = {
|
|
2281
2245
|
dimensionIndex: number;
|
|
2282
2246
|
sortOrder: SortOrder;
|
|
@@ -2342,35 +2306,6 @@ export declare enum MimeTypes {
|
|
|
2342
2306
|
plain = "text/plain",
|
|
2343
2307
|
json = "application/json"
|
|
2344
2308
|
}
|
|
2345
|
-
export type Token = {
|
|
2346
|
-
image: string;
|
|
2347
|
-
startOffset: number;
|
|
2348
|
-
startColumn: number;
|
|
2349
|
-
endOffset: number;
|
|
2350
|
-
endColumn: number;
|
|
2351
|
-
endLine: number;
|
|
2352
|
-
tokenType: {
|
|
2353
|
-
name: string;
|
|
2354
|
-
};
|
|
2355
|
-
tokenTypeIdx: number;
|
|
2356
|
-
};
|
|
2357
|
-
export type ParsedToken = Token & {
|
|
2358
|
-
index?: number;
|
|
2359
|
-
sheetName?: string;
|
|
2360
|
-
selection?: boolean;
|
|
2361
|
-
isNamedRange?: boolean;
|
|
2362
|
-
isColumnRange?: boolean;
|
|
2363
|
-
isRowRange?: boolean;
|
|
2364
|
-
tableName?: string;
|
|
2365
|
-
columnNames?: string[];
|
|
2366
|
-
thisRow?: boolean;
|
|
2367
|
-
specialItem?: SpecialItem;
|
|
2368
|
-
structured?: boolean;
|
|
2369
|
-
property?: string | null;
|
|
2370
|
-
resolvedSheetName?: string;
|
|
2371
|
-
resolvedRowIndex?: number;
|
|
2372
|
-
resolvedColumnIndex?: number;
|
|
2373
|
-
};
|
|
2374
2309
|
export type SpecialItem = "#Totals" | "#Data" | "#All" | "#Headers" | "#This Row";
|
|
2375
2310
|
export type AutoFillType = "FillCopy" | "FillDays" | "FillDefault" | "FillFormats" | "FillMonths" | "FillSeries" | "FillValues"
|
|
2376
2311
|
/** Alias of Excel's `xlFillValues` under the Auto Fill Options label ("Fill Without Formatting"). */
|