caplink-saas-ui-shared-component-library 1.102.0 → 1.103.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/dist/features/spreadsheet/core/clipboard/services/paste-protection.d.ts +22 -0
- package/dist/features/spreadsheet/model/matrix-value.d.ts +1 -0
- package/dist/index.es.js +6669 -6645
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +47 -47
- package/dist/index.umd.js.map +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { MatrixValue } from '../../../model/matrix-value';
|
|
2
|
+
import type * as Spreadsheet from '../../../model/spreadsheet';
|
|
3
|
+
export type ResolvedPastedCell = {
|
|
4
|
+
isBlocked: true;
|
|
5
|
+
cell: MatrixValue | undefined;
|
|
6
|
+
} | {
|
|
7
|
+
isBlocked: false;
|
|
8
|
+
cell: MatrixValue;
|
|
9
|
+
};
|
|
10
|
+
export declare function isCellProtected(params: {
|
|
11
|
+
column?: Spreadsheet.Column;
|
|
12
|
+
currentCell?: MatrixValue;
|
|
13
|
+
}): boolean;
|
|
14
|
+
export declare function isValueAllowedForColumn(params: {
|
|
15
|
+
value: unknown;
|
|
16
|
+
column?: Spreadsheet.Column;
|
|
17
|
+
}): boolean;
|
|
18
|
+
export declare function resolvePastedCell(params: {
|
|
19
|
+
prevCell: MatrixValue | undefined;
|
|
20
|
+
incomingInner: unknown;
|
|
21
|
+
column?: Spreadsheet.Column;
|
|
22
|
+
}): ResolvedPastedCell;
|
|
@@ -16,6 +16,7 @@ export declare function normalizeToMatrixCell(raw: unknown): MatrixValue | undef
|
|
|
16
16
|
export declare function getMatrixCellInner(cell: MatrixValue | undefined): unknown;
|
|
17
17
|
export declare function mergeMatrixCell(prev: MatrixValue | undefined, nextInner: unknown): MatrixValue;
|
|
18
18
|
export declare function isMatrixCellEmpty(inner: unknown): boolean;
|
|
19
|
+
export declare function createEmptyMatrixCell(): MatrixValue;
|
|
19
20
|
export declare function matrixFromLegacy(rows: LegacyMatrix): Matrix<MatrixValue>;
|
|
20
21
|
export declare function normalizeMatrixInput(matrix?: LegacyMatrix, matrixObject?: Matrix<MatrixValue>): Matrix<MatrixValue>;
|
|
21
22
|
export declare function toLegacyMatrix(m: Matrix<MatrixValue>): LegacyMatrix;
|