@particle-academy/fancy-sheets 0.1.2 → 0.3.0
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/README.md +100 -10
- package/dist/index.cjs +785 -22
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +785 -22
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -7,11 +7,15 @@ type CellAddress = string;
|
|
|
7
7
|
type CellValue = string | number | boolean | null;
|
|
8
8
|
/** Text alignment */
|
|
9
9
|
type TextAlign = "left" | "center" | "right";
|
|
10
|
+
/** Display format for cell values */
|
|
11
|
+
type CellDisplayFormat = "auto" | "text" | "number" | "date" | "datetime" | "percentage" | "currency";
|
|
10
12
|
/** Cell formatting */
|
|
11
13
|
interface CellFormat {
|
|
12
14
|
bold?: boolean;
|
|
13
15
|
italic?: boolean;
|
|
14
16
|
textAlign?: TextAlign;
|
|
17
|
+
/** Display format — controls how the value is rendered */
|
|
18
|
+
displayFormat?: CellDisplayFormat;
|
|
15
19
|
}
|
|
16
20
|
/** A single cell's complete data */
|
|
17
21
|
interface CellData {
|
|
@@ -116,6 +120,8 @@ interface SpreadsheetContextValue {
|
|
|
116
120
|
renameSheet: (sheetId: string, name: string) => void;
|
|
117
121
|
deleteSheet: (sheetId: string) => void;
|
|
118
122
|
setActiveSheet: (sheetId: string) => void;
|
|
123
|
+
setFrozenRows: (count: number) => void;
|
|
124
|
+
setFrozenCols: (count: number) => void;
|
|
119
125
|
undo: () => void;
|
|
120
126
|
redo: () => void;
|
|
121
127
|
canUndo: boolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -7,11 +7,15 @@ type CellAddress = string;
|
|
|
7
7
|
type CellValue = string | number | boolean | null;
|
|
8
8
|
/** Text alignment */
|
|
9
9
|
type TextAlign = "left" | "center" | "right";
|
|
10
|
+
/** Display format for cell values */
|
|
11
|
+
type CellDisplayFormat = "auto" | "text" | "number" | "date" | "datetime" | "percentage" | "currency";
|
|
10
12
|
/** Cell formatting */
|
|
11
13
|
interface CellFormat {
|
|
12
14
|
bold?: boolean;
|
|
13
15
|
italic?: boolean;
|
|
14
16
|
textAlign?: TextAlign;
|
|
17
|
+
/** Display format — controls how the value is rendered */
|
|
18
|
+
displayFormat?: CellDisplayFormat;
|
|
15
19
|
}
|
|
16
20
|
/** A single cell's complete data */
|
|
17
21
|
interface CellData {
|
|
@@ -116,6 +120,8 @@ interface SpreadsheetContextValue {
|
|
|
116
120
|
renameSheet: (sheetId: string, name: string) => void;
|
|
117
121
|
deleteSheet: (sheetId: string) => void;
|
|
118
122
|
setActiveSheet: (sheetId: string) => void;
|
|
123
|
+
setFrozenRows: (count: number) => void;
|
|
124
|
+
setFrozenCols: (count: number) => void;
|
|
119
125
|
undo: () => void;
|
|
120
126
|
redo: () => void;
|
|
121
127
|
canUndo: boolean;
|