caplink-saas-ui-shared-component-library 1.58.2 → 1.60.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/lib/conditional-formatting.d.ts +2 -0
- package/dist/features/spreadsheet/lib/get-rows.d.ts +5 -0
- package/dist/features/spreadsheet/model/spreadsheet.d.ts +5 -0
- package/dist/index.es.js +9739 -9729
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +113 -113
- package/dist/index.umd.js.map +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export declare enum ConditionalFormattingCondition {
|
|
2
2
|
EQUALS = "equals",
|
|
3
|
+
REGEX = "regex",
|
|
3
4
|
NOT_EQUALS = "notEquals",
|
|
4
5
|
GREATER_THAN = "greaterThan",
|
|
5
6
|
LESS_THAN = "lessThan",
|
|
@@ -59,6 +60,7 @@ export type ApplyConditionalFormattingProps = {
|
|
|
59
60
|
isSelected: boolean;
|
|
60
61
|
isEditing: boolean;
|
|
61
62
|
};
|
|
63
|
+
export declare const regexFromString: (regexString: string) => RegExp;
|
|
62
64
|
export declare const evaluateConditionalFormattingRule: ({ value, rule, columnId, }: EvaluateConditionalFormattingProps) => boolean;
|
|
63
65
|
export declare const applyConditionalFormatting: ({ value, rules, columnId, isSelected, isEditing, }: ApplyConditionalFormattingProps) => ConditionalFormatting | null;
|
|
64
66
|
export declare const applyBackgroundColor: (backgroundColor: PresetColorName | string) => string;
|
|
@@ -158,6 +158,10 @@ export type HistoryContext = {
|
|
|
158
158
|
addToHistory: (historyItem: SpreadsheetHistory) => void;
|
|
159
159
|
undo: (matrix: Matrix.Matrix<unknown>, setMatrix: (matrix: Matrix.Matrix<unknown>) => void) => void;
|
|
160
160
|
};
|
|
161
|
+
export type RowFiltered = {
|
|
162
|
+
originalIndex: number;
|
|
163
|
+
value: unknown[];
|
|
164
|
+
};
|
|
161
165
|
export type Context = {
|
|
162
166
|
size: Matrix.Size;
|
|
163
167
|
setMatrix: Dispatch<SetStateAction<Matrix.Matrix<unknown>>>;
|
|
@@ -228,5 +232,6 @@ export type Context = {
|
|
|
228
232
|
freezeLine: number | null;
|
|
229
233
|
setFreezeLine: (freezeLine: number | null) => void;
|
|
230
234
|
conditionalFormatting?: ConditionalFormattingRule[];
|
|
235
|
+
filteredMatrix: RowFiltered[];
|
|
231
236
|
};
|
|
232
237
|
export type ContextProvider = Omit<PropsWithChildren<SpreadsheetProps>, 'className'>;
|