Skip to content

Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.

feat(conditional-format): support conditional format (#1681)

Gpound.liu50edd3475c6c
diff --git a/examples/package.json b/examples/package.json
index de223cf933..b832346ae7 100644
--- a/examples/package.json
+++ b/examples/package.json
@@ -21,6 +21,7 @@
"@univerjs/icons": "^0.1.42",
"@univerjs/rpc": "workspace:*",
"@univerjs/sheets": "workspace:*",
+ "@univerjs/sheets-conditional-format": "workspace:*",
"@univerjs/sheets-find-replace": "workspace:*",
"@univerjs/sheets-formula": "workspace:*",
"@univerjs/sheets-numfmt": "workspace:*",
diff --git a/examples/src/plugins/debugger/commands/operations/save-snapshot.operations.ts b/examples/src/plugins/debugger/commands/operations/save-snapshot.operations.ts
index da9f4ed086..0c14e3734f 100644
--- a/examples/src/plugins/debugger/commands/operations/save-snapshot.operations.ts
+++ b/examples/src/plugins/debugger/commands/operations/save-snapshot.operations.ts
@@ -66,12 +66,13 @@ export const SaveSnapshotOptions: ICommand = {
const sheet = snapshot.sheets[sheetId];
snapshot.sheets = { [sheetId]: sheet };
snapshot.sheetOrder = [sheetId];
+ const text = JSON.stringify(filterStyle(snapshot), null, 2);
+ exportController.exportJson(text, `${preName} snapshot`);
break;
}
case 'workbook': {
const text = JSON.stringify(filterStyle(snapshot), null, 2);
- // navigator.clipboard.writeText(text);
exportController.exportJson(text, `${preName} snapshot`);
break;
diff --git a/examples/src/sheets/main.ts b/examples/src/sheets/main.ts
index b3f505e704..41816009dd 100644
--- a/examples/src/sheets/main.ts
+++ b/examples/src/sheets/main.ts
@@ -30,7 +30,7 @@ import { UniverSheetsNumfmtPlugin } from '@univerjs/sheets-numfmt';
import { UniverSheetsUIPlugin } from '@univerjs/sheets-ui';
import { UniverSheetsZenEditorPlugin } from '@univerjs/sheets-zen-editor';
import { UniverUIPlugin } from '@univerjs/ui';
-
+import { SheetsConditionalFormatPlugin } from '@univerjs/sheets-conditional-format';
import { DebuggerPlugin } from '../plugins/debugger';
import { DEFAULT_WORKBOOK_DATA_DEMO } from '../data/sheets/demo/default-workbook-data-demo';
import { locales } from './locales';
@@ -82,6 +82,9 @@ univer.registerPlugin(UniverSheetsFindReplacePlugin);
// create univer sheet instance
univer.createUniverSheet(DEFAULT_WORKBOOK_DATA_DEMO);
+// sheet condition format
+univer.registerPlugin(SheetsConditionalFormatPlugin);
+
declare global {
interface Window {
univer?: Univer;
diff --git a/packages/core/src/services/locale/locale.service.ts b/packages/core/src/services/locale/locale.service.ts
index 774e50f2ad..701a5cedba 100644
--- a/packages/core/src/services/locale/locale.service.ts
+++ b/packages/core/src/services/locale/locale.service.ts
@@ -74,25 +74,8 @@ export class LocaleService extends Disposable {
t = (key: string, ...args: string[]): string => {
if (!this._locales) throw new Error('Locale not initialized');
- function resolveKeyPath(obj: ILanguagePack, keys: string[]): LanguageValue | null {
- const currentKey = keys.shift();
-
- if (currentKey && obj && currentKey in obj) {
- const nextObj = (obj as ILanguagePack)[currentKey];
-
- if (keys.length > 0 && (typeof nextObj === 'object' || Array.isArray(nextObj))) {
- return resolveKeyPath(nextObj as ILanguagePack, keys);
- } else {
- return nextObj;
- }
- }
-
- return null;
- }
-
const keys = key.split('.');
- const resolvedValue = resolveKeyPath(this._locales[this._currentLocale], keys);
-
+ const resolvedValue = this.resolveKeyPath(this._locales[this._currentLocale], keys);
if (typeof resolvedValue === 'string') {
let result = resolvedValue;
args.forEach((arg, index) => {
@@ -116,4 +99,20 @@ export class LocaleService extends Disposable {
getCurrentLocale() {
return this._currentLocale;
}
+
+ public resolveKeyPath(obj: ILanguagePack, keys: string[]): LanguageValue | null {
+ const currentKey = keys.shift();
+
+ if (currentKey && obj && currentKey in obj) {
+ const nextObj = (obj as ILanguagePack)[currentKey];
+
+ if (keys.length > 0 && (typeof nextObj === 'object' || Array.isArray(nextObj))) {
+ return this.resolveKeyPath(nextObj as ILanguagePack, keys);
+ } else {
+ return nextObj;
+ }
+ }
+
+ return null;
+ }
}
diff --git a/packages/core/src/services/resource-manager/resource-manager.service.ts b/packages/core/src/services/resource-manager/resource-manager.service.ts
index 5cd7126305..e769b2e2e6 100644
--- a/packages/core/src/services/resource-manager/resource-manager.service.ts
+++ b/packages/core/src/services/resource-manager/resource-manager.service.ts
@@ -54,7 +54,7 @@ export class ResourceManagerService extends Disposable implements IResourceManag
registerPluginResource<T = any>(unitID: string, resourceName: string, hook: IResourceHook<T>) {
const resourceMap = this._resourceMap.get(unitID) || new Map<string, IResourceHook>();
if (resourceMap.has(resourceName)) {
- throw new Error('the pluginName is registered');
+ throw new Error(`the pluginName is registered {${resourceName}}`);
}
resourceMap.set(resourceName, hook);
this._resourceMap.set(unitID, resourceMap);
diff --git a/packages/core/src/shared/__test__/rectangle.spec.ts b/packages/core/src/shared/__test__/rectangle.spec.ts
index fd7fb70085..9b5ec2af1d 100644
--- a/packages/core/src/shared/__test__/rectangle.spec.ts
+++ b/packages/core/src/shared/__test__/rectangle.spec.ts
@@ -17,7 +17,10 @@
import { describe, expect, it } from 'vitest';
import { Rectangle } from '../rectangle';
+import { AbsoluteRefType } from '../../types/interfaces/i-range';
+import type { IRange } from '../../types/interfaces/i-range';
+const cellToRange = (row: number, col: number) => ({ startRow: row, endRow: row, startColumn: col, endColumn: col } as IRange);
describe('test "Rectangle"', () => {
it('test "subtract"', () => {
// completely covered
@@ -77,4 +80,34 @@ describe('test "Rectangle"', () => {
{ startRow: 2, startColumn: 3, endRow: 2, endColumn: 3 },
]);
});
+
+ it('test getRelativeRange', () => {
+ const relativeRange = Rectangle.getRelativeRange({ startRow: 5, endRow: 6, startColumn: 5, endColumn: 6 }, cellToRange(10, 10));
+ expect(relativeRange).toEqual({
+ endColumn: 1,
+ endRow: 1,
+ startColumn: -5,
+ startRow: -5,
+ });
+ });
+ it('test getPositionRange', () => {
+ const originRange = { startRow: 5, endRow: 6, startColumn: 5, endColumn: 6 };
+ const relativeRange = Rectangle.getRelativeRange(originRange, cellToRange(10, 10));
+ const positionRange = Rectangle.getPositionRange(relativeRange, cellToRange(11, 11));
+ expect(positionRange).toEqual({ startRow: 6, endRow: 7, startColumn: 6, endColumn: 7 });
+ const positionRangeWithAbsoluteStartAll = Rectangle.getPositionRange(relativeRange, cellToRange(11, 11), { ...originRange, startAbsoluteRefType: AbsoluteRefType.ALL });
+ const positionRangeWithAbsoluteStartRow = Rectangle.getPositionRange(relativeRange, cellToRange(11, 11), { ...originRange, startAbsoluteRefType: AbsoluteRefType.ROW });
+ const positionRangeWithAbsoluteStartCol = Rectangle.getPositionRange(relativeRange, cellToRange(11, 11), { ...originRange, startAbsoluteRefType: AbsoluteRefType.COLUMN });
+ const positionRangeWithAbsoluteEndALl = Rectangle.getPositionRange(relativeRange, cellToRange(11, 11), { ...originRange, endAbsoluteRefType: AbsoluteRefType.ALL });
+ const positionRangeWithAbsoluteEndRow = Rectangle.getPositionRange(relativeRange, cellToRange(11, 11), { ...originRange, endAbsoluteRefType: AbsoluteRefType.ROW });
+ const positionRangeWithAbsoluteEndCol = Rectangle.getPositionRange(relativeRange, cellToRange(11, 11), { ...originRange, endAbsoluteRefType: AbsoluteRefType.COLUMN });
+ const positionRangeWithALl = Rectangle.getPositionRange(relativeRange, cellToRange(11, 11), { ...originRange, endAbsoluteRefType: AbsoluteRefType.ALL, startAbsoluteRefType: AbsoluteRefType.ALL });
+ expect(positionRangeWithAbsoluteStartAll).toEqual({ ...originRange, endColumn: 7, endRow: 7, startAbsoluteRefType: AbsoluteRefType.ALL });
+ expect(positionRangeWithAbsoluteStartRow).toEqual({ ...originRange, startColumn: 6, endColumn: 7, endRow: 7, startAbsoluteRefType: AbsoluteRefType.ROW });
+ expect(positionRangeWithAbsoluteStartCol).toEqual({ ...originRange, startRow: 6, endColumn: 7, endRow: 7, startAbsoluteRefType: AbsoluteRefType.COLUMN });
+ expect(positionRangeWithAbsoluteEndALl).toEqual({ ...originRange, startRow: 6, startColumn: 6, endAbsoluteRefType: AbsoluteRefType.ALL });
+ expect(positionRangeWithAbsoluteEndRow).toEqual({ ...originRange, endColumn: 7, startRow: 6, startColumn: 6, endAbsoluteRefType: AbsoluteRefType.ROW });
+ expect(positionRangeWithAbsoluteEndCol).toEqual({ ...originRange, endRow: 7, startRow: 6, startColumn: 6, endAbsoluteRefType: AbsoluteRefType.COLUMN });
+ expect(positionRangeWithALl).toEqual({ ...originRange, endAbsoluteRefType: AbsoluteRefType.ALL, startAbsoluteRefType: AbsoluteRefType.ALL });
+ });
});
diff --git a/packages/core/src/shared/rectangle.ts b/packages/core/src/shared/rectangle.ts
index c1a8bd1220..6688b473a8 100644
--- a/packages/core/src/shared/rectangle.ts
+++ b/packages/core/src/shared/rectangle.ts
@@ -15,7 +15,7 @@
*/
import type { IRange } from '../types/interfaces/i-range';
-import { RANGE_TYPE } from '../types/interfaces/i-range';
+import { AbsoluteRefType, RANGE_TYPE } from '../types/interfaces/i-range';
import type { Nullable } from './types';
/**
@@ -193,13 +193,15 @@ export class Rectangle {
endColumn: range.endColumn - range.startColumn,
}) as IRange;
- static getPositionRange = (relativeRange: IRange, originRange: IRange) =>
- ({
- startRow: relativeRange.startRow + originRange.startRow,
- endRow: relativeRange.endRow + relativeRange.startRow + originRange.startRow,
- startColumn: relativeRange.startColumn + originRange.startColumn,
- endColumn: relativeRange.endColumn + relativeRange.startColumn + originRange.startColumn,
+ static getPositionRange = (relativeRange: IRange, originRange: IRange, absoluteRange?: IRange) => {
+ return ({
+ ...(absoluteRange || {}),
+ startRow: absoluteRange ? ([AbsoluteRefType.ROW, AbsoluteRefType.ALL].includes(absoluteRange.startAbsoluteRefType || 0) ? absoluteRange.startRow : relativeRange.startRow + originRange.startRow) : (relativeRange.startRow + originRange.startRow),
+ endRow: absoluteRange ? ([AbsoluteRefType.ROW, AbsoluteRefType.ALL].includes(absoluteRange.endAbsoluteRefType || 0) ? absoluteRange.endRow : relativeRange.endRow + relativeRange.startRow + originRange.startRow) : (relativeRange.endRow + relativeRange.startRow + originRange.startRow),
+ startColumn: absoluteRange ? ([AbsoluteRefType.COLUMN, AbsoluteRefType.ALL].includes(absoluteRange.startAbsoluteRefType || 0) ? absoluteRange.startColumn : relativeRange.startColumn + originRange.startColumn) : relativeRange.startColumn + originRange.startColumn,
+ endColumn: absoluteRange ? ([AbsoluteRefType.COLUMN, AbsoluteRefType.ALL].includes(absoluteRange.endAbsoluteRefType || 0) ? absoluteRange.endColumn : relativeRange.endColumn + relativeRange.startColumn + originRange.startColumn) : relativeRange.endColumn + relativeRange.startColumn + originRange.startColumn,
}) as IRange;
+ };
static moveHorizontal = (range: IRange, step: number = 0, length: number = 0): IRange => ({
...range,
diff --git a/packages/engine-formula/src/basics/common.ts b/packages/engine-formula/src/basics/common.ts
index f555ca8672..b0d0affba7 100644
--- a/packages/engine-formula/src/basics/common.ts
+++ b/packages/engine-formula/src/basics/common.ts
@@ -74,7 +74,7 @@ export interface IRuntimeUnitDataPrimitiveType {
}
export interface IRuntimeOtherUnitDataType {
- [unitId: string]: Nullable<{ [sheetId: string]: Nullable<{ [formulaId: string]: ICellData }> }>;
+ [unitId: string]: Nullable<{ [sheetId: string]: Nullable<{ [formulaId: string]: Nullable<ICellData>[][] }> }>;
}
export interface IUnitSheetNameMap {
@@ -93,6 +93,10 @@ export interface IDirtyUnitFeatureMap {
[unitId: string]: Nullable<{ [sheetId: string]: { [featureId: string]: boolean } }>;
}
+export interface IDirtyUnitOtherFormulaMap {
+ [unitId: string]: Nullable<{ [sheetId: string]: { [formulaId: string]: boolean } }>;
+}
+
export interface IArrayFormulaRangeType {
[unitId: string]: Nullable<{ [sheetId: string]: IObjectMatrixPrimitiveType<IRange> }>;
}
@@ -154,6 +158,7 @@ export interface IFormulaDatasetConfig {
dirtyRanges: IUnitRange[];
dirtyNameMap: IDirtyUnitSheetNameMap;
dirtyUnitFeatureMap: IDirtyUnitFeatureMap;
+ dirtyUnitOtherFormulaMap: IDirtyUnitOtherFormulaMap;
numfmtItemMap: INumfmtItemMap;
excludedCell?: IUnitExcludedCell;
allUnitData?: IUnitData;
diff --git a/packages/engine-formula/src/commands/mutations/set-formula-calculation.mutation.ts b/packages/engine-formula/src/commands/mutations/set-formula-calculation.mutation.ts
index 8d7d25195b..f3927d9a71 100644
--- a/packages/engine-formula/src/commands/mutations/set-formula-calculation.mutation.ts
+++ b/packages/engine-formula/src/commands/mutations/set-formula-calculation.mutation.ts
@@ -19,6 +19,7 @@ import { CommandType } from '@univerjs/core';
import type {
IDirtyUnitFeatureMap,
+ IDirtyUnitOtherFormulaMap,
IDirtyUnitSheetNameMap,
INumfmtItemMap,
IRuntimeOtherUnitDataType,
@@ -30,6 +31,7 @@ export interface ISetFormulaCalculationStartMutation {
dirtyRanges: IUnitRange[];
dirtyNameMap: IDirtyUnitSheetNameMap;
dirtyUnitFeatureMap: IDirtyUnitFeatureMap;
+ dirtyUnitOtherFormulaMap: IDirtyUnitOtherFormulaMap;
options: Nullable<IExecutionOptions>;
numfmtItemMap: INumfmtItemMap;
forceCalculation?: boolean;
diff --git a/packages/engine-formula/src/commands/mutations/set-other-formula.mutation.ts b/packages/engine-formula/src/commands/mutations/set-other-formula.mutation.ts
index 15e50ca86d..590206aecf 100644
--- a/packages/engine-formula/src/commands/mutations/set-other-formula.mutation.ts
+++ b/packages/engine-formula/src/commands/mutations/set-other-formula.mutation.ts
@@ -17,22 +17,29 @@
import type { IMutation } from '@univerjs/core';
import { CommandType } from '@univerjs/core';
-import type {
- IOtherFormulaManagerInsertParam,
- IOtherFormulaManagerSearchParam,
-} from '../../services/other-formula-manager.service';
+import type { IFormulaDataItem } from '../../basics/common';
+export interface ISetOtherFormulaMutationParams {
+ unitId: string;
+ subUnitId: string;
+ formulaMap: Record<string, IFormulaDataItem>;
+};
+export interface IRemoveOtherFormulaMutationParams {
+ unitId: string;
+ subUnitId: string;
+ formulaIdList: string[];
+};
/**
* In the formula engine, the mutation is solely responsible for communication between the worker and the main thread.
* It requires setting local to true during execution.
*/
-export const SetOtherFormulaMutation: IMutation<IOtherFormulaManagerInsertParam> = {
+export const SetOtherFormulaMutation: IMutation<ISetOtherFormulaMutationParams> = {
id: 'formula.mutation.set-other-formula',
type: CommandType.MUTATION,
handler: () => true,
};
-export const RemoveOtherFormulaMutation: IMutation<IOtherFormulaManagerSearchParam> = {
+export const RemoveOtherFormulaMutation: IMutation<IRemoveOtherFormulaMutationParams> = {
id: 'formula.mutation.remove-other-formula',
type: CommandType.MUTATION,
handler: () => true,
diff --git a/packages/engine-formula/src/controller/calculate.controller.ts b/packages/engine-formula/src/controller/calculate.controller.ts
index 7dc31f3591..64185f805d 100644
--- a/packages/engine-formula/src/controller/calculate.controller.ts
+++ b/packages/engine-formula/src/controller/calculate.controller.ts
@@ -18,7 +18,7 @@ import type { ICommandInfo, IUnitRange } from '@univerjs/core';
import { Disposable, ICommandService, IUniverInstanceService, LifecycleStages, OnLifecycle, Tools } from '@univerjs/core';
import { Inject } from '@wendellhu/redi';
-import type { IDirtyUnitFeatureMap, IDirtyUnitSheetNameMap, IFormulaData, INumfmtItemMap } from '../basics/common';
+import type { IDirtyUnitFeatureMap, IDirtyUnitOtherFormulaMap, IDirtyUnitSheetNameMap, IFormulaData, INumfmtItemMap } from '../basics/common';
import type { ISetArrayFormulaDataMutationParams } from '../commands/mutations/set-array-formula-data.mutation';
import { SetArrayFormulaDataMutation } from '../commands/mutations/set-array-formula-data.mutation';
import type { ISetFormulaCalculationStartMutation } from '../commands/mutations/set-formula-calculation.mutation';
@@ -71,9 +71,9 @@ export class CalculateController extends Disposable {
if (params.forceCalculation === true) {
this._calculate(true);
} else {
- const { dirtyRanges, dirtyNameMap, dirtyUnitFeatureMap, numfmtItemMap } = params;
+ const { dirtyRanges, dirtyNameMap, dirtyUnitFeatureMap, dirtyUnitOtherFormulaMap, numfmtItemMap } = params;
- this._calculate(false, dirtyRanges, dirtyNameMap, dirtyUnitFeatureMap, numfmtItemMap);
+ this._calculate(false, dirtyRanges, dirtyNameMap, dirtyUnitFeatureMap, dirtyUnitOtherFormulaMap, numfmtItemMap);
}
} else if (command.id === SetArrayFormulaDataMutation.id) {
const params = command.params as ISetArrayFormulaDataMutationParams;
@@ -95,12 +95,14 @@ export class CalculateController extends Disposable {
dirtyRanges: IUnitRange[] = [],
dirtyNameMap: IDirtyUnitSheetNameMap = {},
dirtyUnitFeatureMap: IDirtyUnitFeatureMap = {},
+ dirtyUnitOtherFormulaMap: IDirtyUnitOtherFormulaMap = {},
numfmtItemMap: INumfmtItemMap = {}
) {
if (
dirtyRanges.length === 0 &&
Object.keys(dirtyNameMap).length === 0 &&
Object.keys(dirtyUnitFeatureMap).length === 0 &&
+ Object.keys(dirtyUnitOtherFormulaMap).length === 0 &&
forceCalculate === false
) {
return;
@@ -119,6 +121,7 @@ export class CalculateController extends Disposable {
dirtyRanges,
dirtyNameMap,
dirtyUnitFeatureMap,
+ dirtyUnitOtherFormulaMap,
numfmtItemMap,
});
}
diff --git a/packages/engine-formula/src/controller/set-other-formula.controller.ts b/packages/engine-formula/src/controller/set-other-formula.controller.ts
index 8aec6d7b0b..5948850dcb 100644
--- a/packages/engine-formula/src/controller/set-other-formula.controller.ts
+++ b/packages/engine-formula/src/controller/set-other-formula.controller.ts
@@ -17,12 +17,11 @@
import type { ICommandInfo } from '@univerjs/core';
import { Disposable, ICommandService, LifecycleStages, OnLifecycle } from '@univerjs/core';
-import { RemoveOtherFormulaMutation, SetOtherFormulaMutation } from '../commands/mutations/set-other-formula.mutation';
import {
- type IOtherFormulaManagerInsertParam,
- type IOtherFormulaManagerSearchParam,
IOtherFormulaManagerService,
} from '../services/other-formula-manager.service';
+import { RemoveOtherFormulaMutation, SetOtherFormulaMutation } from '../commands/mutations/set-other-formula.mutation';
+import type { IRemoveOtherFormulaMutationParams, ISetOtherFormulaMutationParams } from '../commands/mutations/set-other-formula.mutation';
@OnLifecycle(LifecycleStages.Ready, SetOtherFormulaController)
export class SetOtherFormulaController extends Disposable {
@@ -43,19 +42,21 @@ export class SetOtherFormulaController extends Disposable {
this.disposeWithMe(
this._commandService.onCommandExecuted((command: ICommandInfo) => {
if (command.id === SetOtherFormulaMutation.id) {
- const params = command.params as IOtherFormulaManagerInsertParam;
+ const params = command.params as ISetOtherFormulaMutationParams;
if (params == null) {
return;
}
-
- this._otherFormulaManagerService.register(params);
+ const config = { [params.unitId]: { [params.subUnitId]: params.formulaMap } };
+ this._otherFormulaManagerService.batchRegister(config);
} else if (command.id === RemoveOtherFormulaMutation.id) {
- const params = command.params as IOtherFormulaManagerSearchParam;
+ const params = command.params as IRemoveOtherFormulaMutationParams;
if (params == null) {
return;
}
-
- this._otherFormulaManagerService.remove(params);
+ const obj: Record<string, true> = {};
+ params.formulaIdList.forEach((id) => obj[id] = true);
+ const config = { [params.unitId]: { [params.subUnitId]: obj } };
+ this._otherFormulaManagerService.batchRemove(config);
}
})
);
diff --git a/packages/engine-formula/src/engine/analysis/__tests__/parser.spec.ts b/packages/engine-formula/src/engine/analysis/__tests__/parser.spec.ts
index 275a684095..372ea2997b 100644
--- a/packages/engine-formula/src/engine/analysis/__tests__/parser.spec.ts
+++ b/packages/engine-formula/src/engine/analysis/__tests__/parser.spec.ts
@@ -65,6 +65,7 @@ describe('Test indirect', () => {
dirtyRanges: [],
dirtyNameMap: {},
dirtyUnitFeatureMap: {},
+ dirtyUnitOtherFormulaMap: {},
excludedCell: {},
allUnitData: {
[testBed.unitId]: testBed.sheetData,
diff --git a/packages/engine-formula/src/engine/dependency/formula-dependency.ts b/packages/engine-formula/src/engine/dependency/formula-dependency.ts
index f546843132..42161318e5 100644
--- a/packages/engine-formula/src/engine/dependency/formula-dependency.ts
+++ b/packages/engine-formula/src/engine/dependency/formula-dependency.ts
@@ -555,6 +555,18 @@ export class FormulaDependencyGenerator extends Disposable {
}
}
+ /**
+ * Specify a specific other formula for flagging a functionality as dirty.
+ */
+ const formulaId = tree.formulaId;
+ if (formulaId != null) {
+ const otherFormulaMap = this._currentConfigService.getDirtyUnitOtherFormulaMap();
+ const state = otherFormulaMap?.[unitId]?.[subUnitId]?.[formulaId];
+ if (state != null) {
+ return true;
+ }
+ }
+
const excludedCell = this._currentConfigService.getExcludedRange()?.[unitId]?.[subUnitId];
/**
diff --git a/packages/engine-formula/src/functions/__tests__/nested-functions.spec.ts b/packages/engine-formula/src/functions/__tests__/nested-functions.spec.ts
index 5d4f83f871..7c26e37656 100644
--- a/packages/engine-formula/src/functions/__tests__/nested-functions.spec.ts
+++ b/packages/engine-formula/src/functions/__tests__/nested-functions.spec.ts
@@ -277,6 +277,7 @@ describe('Test nested functions', () => {
dirtyRanges: [],
dirtyNameMap: {},
dirtyUnitFeatureMap: {},
+ dirtyUnitOtherFormulaMap: {},
excludedCell: {},
allUnitData: {
[testBed.unitId]: testBed.sheetData,
diff --git a/packages/engine-formula/src/functions/information/isref/__tests__/index.spec.ts b/packages/engine-formula/src/functions/information/isref/__tests__/index.spec.ts
index 4e8938c16a..e8b0a053e6 100644
--- a/packages/engine-formula/src/functions/information/isref/__tests__/index.spec.ts
+++ b/packages/engine-formula/src/functions/information/isref/__tests__/index.spec.ts
@@ -174,6 +174,7 @@ describe('Test isref function', () => {
allUnitData: {
[testBed.unitId]: testBed.sheetData,
},
+ dirtyUnitOtherFormulaMap: {},
});
const sheetItem = testBed.sheetData[testBed.sheetId];
diff --git a/packages/engine-formula/src/functions/lookup/column/__tests__/index.spec.ts b/packages/engine-formula/src/functions/lookup/column/__tests__/index.spec.ts
index 1a462e9b89..c976486209 100644
--- a/packages/engine-formula/src/functions/lookup/column/__tests__/index.spec.ts
+++ b/packages/engine-formula/src/functions/lookup/column/__tests__/index.spec.ts
@@ -65,6 +65,7 @@ describe('Test column', () => {
allUnitData: {
[testBed.unitId]: testBed.sheetData,
},
+ dirtyUnitOtherFormulaMap: {},
});
const sheetItem = testBed.sheetData[testBed.sheetId];
diff --git a/packages/engine-formula/src/functions/lookup/columns/__tests__/index.spec.ts b/packages/engine-formula/src/functions/lookup/columns/__tests__/index.spec.ts
index ceaf6b70b3..9ba99536d5 100644
--- a/packages/engine-formula/src/functions/lookup/columns/__tests__/index.spec.ts
+++ b/packages/engine-formula/src/functions/lookup/columns/__tests__/index.spec.ts
@@ -64,6 +64,7 @@ describe('Test columns', () => {
allUnitData: {
[testBed.unitId]: testBed.sheetData,
},
+ dirtyUnitOtherFormulaMap: {},
});
const sheetItem = testBed.sheetData[testBed.sheetId];
diff --git a/packages/engine-formula/src/functions/lookup/index/__test__/index.spec.ts b/packages/engine-formula/src/functions/lookup/index/__test__/index.spec.ts
index 56e2788855..ee2ecd4cba 100644
--- a/packages/engine-formula/src/functions/lookup/index/__test__/index.spec.ts
+++ b/packages/engine-formula/src/functions/lookup/index/__test__/index.spec.ts
@@ -176,6 +176,7 @@ describe('Test index', () => {
allUnitData: {
[testBed.unitId]: testBed.sheetData,
},
+ dirtyUnitOtherFormulaMap: {},
});
const sheetItem = testBed.sheetData[testBed.sheetId];
diff --git a/packages/engine-formula/src/functions/lookup/indirect/__test__/index.spec.ts b/packages/engine-formula/src/functions/lookup/indirect/__test__/index.spec.ts
index 031dd37243..6189c6e13d 100644
--- a/packages/engine-formula/src/functions/lookup/indirect/__test__/index.spec.ts
+++ b/packages/engine-formula/src/functions/lookup/indirect/__test__/index.spec.ts
@@ -64,6 +64,7 @@ describe('Test indirect', () => {
dirtyRanges: [],
dirtyNameMap: {},
dirtyUnitFeatureMap: {},
+ dirtyUnitOtherFormulaMap: {},
excludedCell: {},
allUnitData: {
[testBed.unitId]: testBed.sheetData,
diff --git a/packages/engine-formula/src/functions/lookup/offset/__tests__/index.spec.ts b/packages/engine-formula/src/functions/lookup/offset/__tests__/index.spec.ts
index 59a874ca90..578e80e617 100644
--- a/packages/engine-formula/src/functions/lookup/offset/__tests__/index.spec.ts
+++ b/packages/engine-formula/src/functions/lookup/offset/__tests__/index.spec.ts
@@ -63,6 +63,7 @@ describe('Test offset', () => {
dirtyRanges: [],
dirtyNameMap: {},
dirtyUnitFeatureMap: {},
+ dirtyUnitOtherFormulaMap: {},
excludedCell: {},
allUnitData: {
[testBed.unitId]: testBed.sheetData,
diff --git a/packages/engine-formula/src/functions/lookup/row/__tests__/index.spec.ts b/packages/engine-formula/src/functions/lookup/row/__tests__/index.spec.ts
index d0bdabc91e..efcebc2416 100644
--- a/packages/engine-formula/src/functions/lookup/row/__tests__/index.spec.ts
+++ b/packages/engine-formula/src/functions/lookup/row/__tests__/index.spec.ts
@@ -65,6 +65,7 @@ describe('Test row', () => {
allUnitData: {
[testBed.unitId]: testBed.sheetData,
},
+ dirtyUnitOtherFormulaMap: {},
});
const sheetItem = testBed.sheetData[testBed.sheetId];
diff --git a/packages/engine-formula/src/functions/lookup/rows/__tests__/index.spec.ts b/packages/engine-formula/src/functions/lookup/rows/__tests__/index.spec.ts
index 990b563172..43becde594 100644
--- a/packages/engine-formula/src/functions/lookup/rows/__tests__/index.spec.ts
+++ b/packages/engine-formula/src/functions/lookup/rows/__tests__/index.spec.ts
@@ -64,6 +64,7 @@ describe('Test rows', () => {
allUnitData: {
[testBed.unitId]: testBed.sheetData,
},
+ dirtyUnitOtherFormulaMap: {},
});
const sheetItem = testBed.sheetData[testBed.sheetId];
diff --git a/packages/engine-formula/src/functions/math/subtotal/__tests__/index.spec.ts b/packages/engine-formula/src/functions/math/subtotal/__tests__/index.spec.ts
index 8905a88c88..488d4db906 100644
--- a/packages/engine-formula/src/functions/math/subtotal/__tests__/index.spec.ts
+++ b/packages/engine-formula/src/functions/math/subtotal/__tests__/index.spec.ts
@@ -165,6 +165,7 @@ describe('Test subtotal', () => {
allUnitData: {
[testBed.unitId]: testBed.sheetData,
},
+ dirtyUnitOtherFormulaMap: {},
});
const sheetItem = testBed.sheetData[testBed.sheetId];
diff --git a/packages/engine-formula/src/index.ts b/packages/engine-formula/src/index.ts
index 291a8fea26..b352c33868 100644
--- a/packages/engine-formula/src/index.ts
+++ b/packages/engine-formula/src/index.ts
@@ -27,6 +27,7 @@ export type {
IUnitData,
IUnitSheetNameMap,
INumfmtItemMap,
+ IDirtyUnitOtherFormulaMap,
} from './basics/common';
export { isInDirtyRange } from './basics/dirty';
export { ErrorType } from './basics/error-type';
@@ -59,7 +60,7 @@ export {
type ISetFormulaDataMutationParams,
SetFormulaDataMutation,
} from './commands/mutations/set-formula-data.mutation';
-export { RemoveOtherFormulaMutation, SetOtherFormulaMutation } from './commands/mutations/set-other-formula.mutation';
+export { RemoveOtherFormulaMutation, SetOtherFormulaMutation, type ISetOtherFormulaMutationParams, type IRemoveOtherFormulaMutationParams } from './commands/mutations/set-other-formula.mutation';
export {
RemoveSuperTableMutation,
SetSuperTableMutation,
@@ -84,6 +85,7 @@ export {
export { generateStringWithSequence, type ISequenceNode, sequenceNodeType } from './engine/utils/sequence';
export { ArrayValueObject, ValueObjectFactory } from './engine/value-object/array-value-object';
export { BaseValueObject, ErrorValueObject } from './engine/value-object/base-value-object';
+export { BooleanValue } from './basics/common';
export type { PrimitiveValueType } from './engine/value-object/primitive-object';
export { NumberValueObject } from './engine/value-object/primitive-object';
export { BooleanValueObject } from './engine/value-object/primitive-object';
@@ -130,7 +132,7 @@ export {
} from './services/feature-calculation-manager.service';
export { FunctionService } from './services/function.service';
export { IFunctionService } from './services/function.service';
-export { type IOtherFormulaManagerService, OtherFormulaManagerService } from './services/other-formula-manager.service';
+export { IOtherFormulaManagerService, OtherFormulaManagerService } from './services/other-formula-manager.service';
export { FormulaExecuteStageType, type IExecutionInProgressParams } from './services/runtime.service';
export { FormulaExecutedStateType, type IAllRuntimeData } from './services/runtime.service';
export { SetNumfmtFormulaDataMutation } from './commands/mutations/set-numfmt-formula-data.mutation';
diff --git a/packages/engine-formula/src/services/current-data.service.ts b/packages/engine-formula/src/services/current-data.service.ts
index 09599f714c..cd2fc9ab04 100644
--- a/packages/engine-formula/src/services/current-data.service.ts
+++ b/packages/engine-formula/src/services/current-data.service.ts
@@ -20,6 +20,7 @@ import { createIdentifier } from '@wendellhu/redi';
import type {
IDirtyUnitFeatureMap,
+ IDirtyUnitOtherFormulaMap,
IDirtyUnitSheetNameMap,
IFormulaData,
IFormulaDatasetConfig,
@@ -65,6 +66,8 @@ export interface IFormulaCurrentConfigService {
getArrayFormulaCellData(): IRuntimeUnitDataType;
getSheetName(unitId: string, sheetId: string): string;
+
+ getDirtyUnitOtherFormulaMap(): IDirtyUnitOtherFormulaMap;
}
export class FormulaCurrentConfigService extends Disposable implements IFormulaCurrentConfigService {
@@ -86,6 +89,8 @@ export class FormulaCurrentConfigService extends Disposable implements IFormulaC
private _dirtyUnitFeatureMap: IDirtyUnitFeatureMap = {};
+ private _dirtyUnitOtherFormulaMap: IDirtyUnitOtherFormulaMap = {};
+
private _excludedCell: Nullable<IUnitExcludedCell>;
private _sheetIdToNameMap: IUnitSheetIdToNameMap = {};
@@ -105,6 +110,7 @@ export class FormulaCurrentConfigService extends Disposable implements IFormulaC
this._dirtyUnitFeatureMap = {};
this._excludedCell = {};
this._sheetIdToNameMap = {};
+ this._dirtyUnitOtherFormulaMap = {};
}
getExcludedRange() {
@@ -155,6 +161,10 @@ export class FormulaCurrentConfigService extends Disposable implements IFormulaC
return this._sheetIdToNameMap[unitId]![sheetId] || '';
}
+ getDirtyUnitOtherFormulaMap() {
+ return this._dirtyUnitOtherFormulaMap;
+ }
+
load(config: IFormulaDatasetConfig) {
if (config.allUnitData && config.unitSheetNameMap) {
this._unitData = config.allUnitData;
@@ -181,6 +191,8 @@ export class FormulaCurrentConfigService extends Disposable implements IFormulaC
this._dirtyUnitFeatureMap = config.dirtyUnitFeatureMap;
+ this._dirtyUnitOtherFormulaMap = config.dirtyUnitOtherFormulaMap;
+
this._excludedCell = config.excludedCell;
this._mergeNameMap(this._sheetNameMap, this._dirtyNameMap);
diff --git a/packages/engine-formula/src/services/other-formula-manager.service.ts b/packages/engine-formula/src/services/other-formula-manager.service.ts
index e6e66b193f..4210495141 100644
--- a/packages/engine-formula/src/services/other-formula-manager.service.ts
+++ b/packages/engine-formula/src/services/other-formula-manager.service.ts
@@ -18,7 +18,7 @@ import type { Nullable } from '@univerjs/core';
import { Disposable } from '@univerjs/core';
import { createIdentifier } from '@wendellhu/redi';
-import type { IFormulaDataItem, IOtherFormulaData } from '../basics/common';
+import type { IDirtyUnitOtherFormulaMap, IFormulaDataItem, IOtherFormulaData } from '../basics/common';
export interface IOtherFormulaManagerSearchParam {
unitId: string;
@@ -42,6 +42,10 @@ export interface IOtherFormulaManagerService {
register(insertParam: IOtherFormulaManagerInsertParam): void;
getOtherFormulaData(): IOtherFormulaData;
+
+ batchRegister(formulaData: IOtherFormulaData): void;
+
+ batchRemove(formulaData: IDirtyUnitOtherFormulaMap): void;
}
/**
@@ -74,17 +78,67 @@ export class OtherFormulaManagerService extends Disposable implements IOtherForm
register(insertParam: IOtherFormulaManagerInsertParam) {
const { unitId, subUnitId, formulaId, item } = insertParam;
- if (this._otherFormulaData[unitId]) {
+ if (!this._otherFormulaData[unitId]) {
this._otherFormulaData[unitId] = {};
}
- if (this._otherFormulaData[unitId]![subUnitId]) {
+ if (!this._otherFormulaData[unitId]![subUnitId]) {
this._otherFormulaData[unitId]![subUnitId] = {};
}
this._otherFormulaData[unitId]![subUnitId]![formulaId] = item;
}
+ batchRegister(formulaData: IOtherFormulaData) {
+ Object.keys(formulaData).forEach((unitId) => {
+ const subUnits = formulaData[unitId];
+ if (subUnits == null) {
+ return true;
+ }
+ Object.keys(subUnits).forEach((subUnitId) => {
+ const subUnit = subUnits[subUnitId];
+ if (subUnit == null) {
+ return true;
+ }
+ Object.keys(subUnit).forEach((formulaId) => {
+ const item = subUnit[formulaId];
+ if (item == null) {
+ return true;
+ }
+
+ this.register({
+ unitId,
+ subUnitId,
+ formulaId,
+ item,
+ });
+ });
+ });
+ });
+ }
+
+ batchRemove(formulaData: IDirtyUnitOtherFormulaMap) {
+ Object.keys(formulaData).forEach((unitId) => {
+ const subUnits = formulaData[unitId];
+ if (subUnits == null) {
+ return true;
+ }
+ Object.keys(subUnits).forEach((subUnitId) => {
+ const subUnit = subUnits[subUnitId];
+ if (subUnit == null) {
+ return true;
+ }
+ Object.keys(subUnit).forEach((formulaId) => {
+ this.remove({
+ unitId,
+ subUnitId,
+ formulaId,
+ });
+ });
+ });
+ });
+ }
+
getOtherFormulaData() {
return this._otherFormulaData;
}
diff --git a/packages/engine-formula/src/services/runtime.service.ts b/packages/engine-formula/src/services/runtime.service.ts
index 66f451b553..ab7cdbaff9 100644
--- a/packages/engine-formula/src/services/runtime.service.ts
+++ b/packages/engine-formula/src/services/runtime.service.ts
@@ -387,7 +387,30 @@ export class FormulaRuntimeService extends Disposable implements IFormulaRuntime
const subComponentData = unitData[subUnitId];
- subComponentData![formulaId] = this._objectValueToCellValue(functionVariant as BaseValueObject)!;
+ let cellDatas: Nullable<ICellData>[][] = [];
+
+ if (
+ functionVariant.isReferenceObject() ||
+ (functionVariant.isValueObject() && (functionVariant as BaseValueObject).isArray())
+ ) {
+ const objectValueRefOrArray = functionVariant as BaseReferenceObject | ArrayValueObject;
+ const { startRow, startColumn } = objectValueRefOrArray.getRangePosition();
+ objectValueRefOrArray.iterator((valueObject, rowIndex, columnIndex) => {
+ const value = this._objectValueToCellValue(valueObject);
+
+ const row = rowIndex - startRow;
+ const column = columnIndex - startColumn;
+ if (cellDatas[row] == null) {
+ cellDatas[row] = [];
+ }
+
+ cellDatas[row][column] = value;
+ });
+ } else {
+ cellDatas = [[this._objectValueToCellValue(functionVariant as BaseValueObject)!]];
+ }
+
+ subComponentData![formulaId] = cellDatas;
}
setRuntimeData(functionVariant: FunctionVariantType) {
diff --git a/packages/sheets-conditional-format/.gitignore b/packages/sheets-conditional-format/.gitignore
new file mode 100644
index 0000000000..61dbdce6a4
--- /dev/null
+++ b/packages/sheets-conditional-format/.gitignore
@@ -0,0 +1 @@
+src/assets/icon-map.json
\ No newline at end of file
diff --git a/packages/sheets-conditional-format/README.md b/packages/sheets-conditional-format/README.md
new file mode 100644
index 0000000000..752e776cb3
--- /dev/null
+++ b/packages/sheets-conditional-format/README.md
@@ -0,0 +1,16 @@
+# @univerjs/sheets-conditional-format
+
+[![npm version](https://img.shields.io/npm/v/@univerjs/sheets-conditional-format)](https://npmjs.org/packages/@univerjs/sheets-conditional-format)
+[![license](https://img.shields.io/npm/l/@univerjs/sheets-conditional-format)](https://img.shields.io/npm/l/@univerjs/sheets-conditional-format)
+
+## Introduction
+
+> TODO: Introduction
+
+## Usage
+
+### Installation
+
+```shell
+npm i @univerjs/sheets-conditional-format
+```
diff --git a/packages/sheets-conditional-format/package.json b/packages/sheets-conditional-format/package.json
new file mode 100644
index 0000000000..21fdd8e025
--- /dev/null
+++ b/packages/sheets-conditional-format/package.json
@@ -0,0 +1,99 @@
+{
+ "name": "@univerjs/sheets-conditional-format",
+ "version": "0.1.3",
+ "private": true,
+ "description": "",
+ "author": "DreamNum <[email protected]>",
+ "license": "Apache-2.0",
+ "homepage": "https://github.com/dream-num/univer",
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/dream-num/univer.git"
+ },
+ "keywords": [],
+ "exports": {
+ ".": "./src/index.ts",
+ "./*": "./src/*"
+ },
+ "main": "./lib/cjs/index.js",
+ "module": "./lib/es/index.js",
+ "types": "./lib/types/index.d.ts",
+ "publishConfig": {
+ "access": "public",
+ "main": "./lib/cjs/index.js",
+ "module": "./lib/es/index.js",
+ "exports": {
+ ".": {
+ "import": "./lib/es/index.js",
+ "require": "./lib/cjs/index.js",
+ "types": "./lib/types/index.d.ts"
+ },
+ "./*": {
+ "import": "./lib/es/*",
+ "require": "./lib/cjs/*",
+ "types": "./lib/types/index.d.ts"
+ }
+ }
+ },
+ "directories": {
+ "lib": "lib"
+ },
+ "files": [
+ "lib"
+ ],
+ "scripts": {
+ "postinstall": "node ./scripts/build-icons",
+ "test": "vitest run",
+ "test:watch": "vitest",
+ "coverage": "vitest run --coverage",
+ "lint:types": "tsc --noEmit",
+ "build": "tsc && vite build"
+ },
+ "peerDependencies": {
+ "@univerjs/core": "workspace:*",
+ "@univerjs/design": "workspace:*",
+ "@univerjs/engine-render": "workspace:*",
+ "@univerjs/sheets-ui": "workspace:*",
+ "@univerjs/ui": "workspace:*",
+ "@wendellhu/redi": ">=0.13",
+ "clsx": ">=2.0.0",
+ "react": ">=16.9.0",
+ "rxjs": ">=7.0.0"
+ },
+ "dependencies": {
+ "@types/lodash.get": "^4.4.9",
+ "@types/lodash.set": "^4.3.9",
+ "@types/react-grid-layout": "^1.3.5",
+ "@univerjs/core": "workspace:*",
+ "@univerjs/design": "workspace:*",
+ "@univerjs/engine-formula": "workspace:*",
+ "@univerjs/engine-render": "workspace:*",
+ "@univerjs/icons": "^0.1.33",
+ "@univerjs/icons-svg": "^0.1.33",
+ "@univerjs/sheets": "workspace:*",
+ "@univerjs/sheets-formula": "workspace:*",
+ "@univerjs/ui": "workspace:*",
+ "clsx": "^2.1.0",
+ "dayjs": "^1.11.10",
+ "lodash.get": "^4.4.2",
+ "lodash.set": "^4.3.2",
+ "react": "^18.2.0",
+ "react-grid-layout": "^1.4.4",
+ "react-resizable": "^3.0.5",
+ "rxjs": "^7.8.1"
+ },
+ "devDependencies": {
+ "@univerjs/shared": "workspace:*",
+ "@vitejs/plugin-react": "^4.2.1",
+ "@vitest/coverage-istanbul": "^1.2.1",
+ "@wendellhu/redi": "^0.13.0",
+ "happy-dom": "^13.2.1",
+ "less": "^4.2.0",
+ "sharp": "^0.33.2",
+ "typescript": "^5.4.2",
+ "vite": "^5.0.12",
+ "vite-plugin-dts": "^3.7.1",
+ "vite-plugin-externals": "^0.6.2",
+ "vitest": "^1.2.1"
+ }
+}
diff --git a/packages/sheets-conditional-format/scripts/build-icons.js b/packages/sheets-conditional-format/scripts/build-icons.js
new file mode 100644
index 0000000000..43cbbbe74c
--- /dev/null
+++ b/packages/sheets-conditional-format/scripts/build-icons.js
@@ -0,0 +1,133 @@
+const { Buffer } = require('node:buffer');
+const fs = require('node:fs').promises;
+const sharp = require('sharp');
+
+const progress = [
+ ['progress0', '@univerjs/icons-svg/single/start-page/progress-0-single.svg', { black: '#7A7A7A', '#E5E5E5': '#7A7A7A' }],
+ ['progress25', '@univerjs/icons-svg/single/start-page/progress-25-single.svg', { black: '#7A7A7A', '#E5E5E5': '#7A7A7A' }],
+ ['progress50', '@univerjs/icons-svg/single/start-page/progress-50-single.svg', { black: '#7A7A7A', '#E5E5E5': '#7A7A7A' }],
+ ['progress75', '@univerjs/icons-svg/single/start-page/progress-75-single.svg', { black: '#7A7A7A', '#E5E5E5': '#7A7A7A' }],
+ ['progress100', '@univerjs/icons-svg/single/start-page/progress-100-single.svg', { black: '#7A7A7A', '#E5E5E5': '#7A7A7A' }],
+
+];
+const star = [
+ ['starEmpty', '@univerjs/icons-svg/binary/start-page/star-empty.svg', { black: '#FFBD37', '#E5E5E5': '#fff' }],
+ ['starIncomplete', '@univerjs/icons-svg/binary/start-page/star-incomplete.svg', { black: '#FFBD37', '#E5E5E5': '#fff' }],
+ ['starFull', '@univerjs/icons-svg/binary/start-page/star-full.svg', { black: '#FFBD37', '#E5E5E5': '#fff' }],
+];
+const feeling = [
+ ['guffaw', '@univerjs/icons-svg/binary/start-page/guffaw.svg', { black: '#8F5F00', '#E5E5E5': '#FFBD37' }],
+ ['smile', '@univerjs/icons-svg/binary/start-page/smile.svg', { black: '#8F5F00', '#E5E5E5': '#FFBD37' }],
+ ['noninductive', '@univerjs/icons-svg/binary/start-page/noninductive.svg', { black: '#8F5F00', '#E5E5E5': '#FFBD37' }],
+ ['dissatisfied', '@univerjs/icons-svg/binary/start-page/dissatisfied.svg', { black: '#8F5F00', '#E5E5E5': '#FFBD37' }],
+ ['impatient', '@univerjs/icons-svg/binary/start-page/impatient.svg', { black: '#8F5F00', '#E5E5E5': '#FFBD37' }],
+];
+
+const signal = [
+ ['signal0', '@univerjs/icons-svg/binary/start-page/signal-0.svg', { black: '#0493EE' }],
+ ['signal25', '@univerjs/icons-svg/binary/start-page/signal-25.svg', { black: '#0493EE' }],
+ ['signal50', '@univerjs/icons-svg/binary/start-page/signal-50.svg', { black: '#0493EE' }],
+ ['signal75', '@univerjs/icons-svg/binary/start-page/signal-75.svg', { black: '#0493EE' }],
+ ['signal100', '@univerjs/icons-svg/binary/start-page/signal-100.svg', { black: '#0493EE' }],
+];
+const feedback = [
+ ['mistake', '@univerjs/icons-svg/binary/start-page/mistake.svg', { black: '#FE4B4B', '#E5E5E5': '#FFFFFF' }],
+ ['warn', '@univerjs/icons-svg/binary/start-page/warn.svg', { black: '#FFBD37', '#E5E5E5': '#FFFFFF' }],
+ ['correct', '@univerjs/icons-svg/binary/start-page/correct.svg', { black: '#59D01E', '#E5E5E5': '#FFFFFF' }],
+];
+const feedback2 = [
+ ['mistake2', '@univerjs/icons-svg/single/start-page/mistake-single.svg', { black: '#FE4B4B' }],
+ ['warn2', '@univerjs/icons-svg/single/start-page/warn-single.svg', { black: '#FFBD37' }],
+ ['correct2', '@univerjs/icons-svg/single/start-page/correct-single.svg', { black: '#59D01E' }],
+];
+
+const arrow = [
+ ['down-red', '@univerjs/icons-svg/single/start-page/arrow-down-single.svg', { black: '#FE4B4B' }],
+ ['right-gold', '@univerjs/icons-svg/single/start-page/arrow-righe-single.svg', { black: '#FFBD37' }],
+ ['up-green', '@univerjs/icons-svg/single/start-page/arrow-up-single.svg', { black: '#59D01E' }],
+ ['rightAndDown-gold', '@univerjs/icons-svg/single/start-page/arrow-tilt-down-single.svg', { black: '#FFBD37' }],
+ ['rightAndUp-gold', '@univerjs/icons-svg/single/start-page/arrow-tilt-up-single.svg', { black: '#FFBD37' }],
+
+ ['down-gray', '@univerjs/icons-svg/single/start-page/arrow-down-single.svg', { black: '#999999' }],
+ ['right-gray', '@univerjs/icons-svg/single/start-page/arrow-righe-single.svg', { black: '#999999' }],
+ ['up-gray', '@univerjs/icons-svg/single/start-page/arrow-up-single.svg', { black: '#999999' }],
+ ['rightAndDown-gray', '@univerjs/icons-svg/single/start-page/arrow-tilt-down-single.svg', { black: '#999999' }],
+ ['rightAndUp-gray', '@univerjs/icons-svg/single/start-page/arrow-tilt-up-single.svg', { black: '#999999' }],
+];
+const flag = [
+ ['flag-green', '@univerjs/icons-svg/single/start-page/flag-single.svg', { black: '#59D01E' }],
+ ['flag-gold', '@univerjs/icons-svg/single/start-page/flag-single.svg', { black: '#FFBD37' }],
+ ['flag-red', '@univerjs/icons-svg/single/start-page/flag-single.svg', { black: '#FE4B4B' }],
+];
+
+const shape = [
+ ['cross', '@univerjs/icons-svg/single/start-page/cross-single.svg', { black: '#FFBD37' }],
+ ['up', '@univerjs/icons-svg/single/start-page/up-single.svg', { black: '#59D01E' }],
+ ['down', '@univerjs/icons-svg/single/start-page/down-single.svg', { black: '#FE4B4B' }],
+
+ ['rhomboid-red', '@univerjs/icons-svg/single/start-page/rhomboid-single.svg', { black: '#FE4B4B' }],
+ ['rhomboid-gold', '@univerjs/icons-svg/single/start-page/rhomboid-single.svg', { black: '#FFBD37' }],
+ ['roundness-greed', '@univerjs/icons-svg/single/start-page/roundness-single.svg', { black: '#59D01E' }],
+ ['roundness-gold', '@univerjs/icons-svg/single/start-page/roundness-single.svg', { black: '#FFBD37' }],
+ ['roundness-red', '@univerjs/icons-svg/single/start-page/roundness-single.svg', { black: '#FE4B4B' }],
+ ['roundness-pink', '@univerjs/icons-svg/single/start-page/roundness-single.svg', { black: '#FB9D9D' }],
+ ['roundness-gray', '@univerjs/icons-svg/single/start-page/roundness-single.svg', { black: '#999999' }],
+ ['roundness-black', '@univerjs/icons-svg/single/start-page/roundness-single.svg'],
+ ['triangle-gold', '@univerjs/icons-svg/single/start-page/triangle-single.svg', { black: '#FFBD37' }],
+
+ ['indicate-greed', '@univerjs/icons-svg/binary/start-page/indicate.svg', { '#E5E5E5': '#59D01E' }],
+ ['indicate-gold', '@univerjs/icons-svg/binary/start-page/indicate.svg', { '#E5E5E5': '#FFBD37' }],
+ ['indicate-red', '@univerjs/icons-svg/binary/start-page/indicate.svg', { '#E5E5E5': '#FE4B4B' }],
+
+];
+
+const cell = [
+ ['cell-0', '@univerjs/icons-svg/binary/start-page/cell-0.svg', { white: '#0493EE', black: '#0493EE' }],
+ ['cell-25', '@univerjs/icons-svg/binary/start-page/cell-25.svg', { white: '#0493EE', black: '#0493EE' }],
+ ['cell-50', '@univerjs/icons-svg/binary/start-page/cell-50.svg', { white: '#0493EE', black: '#0493EE' }],
+ ['cell-75', '@univerjs/icons-svg/binary/start-page/cell-75.svg', { white: '#0493EE', black: '#0493EE' }],
+ ['cell-100', '@univerjs/icons-svg/binary/start-page/cell-100.svg', { white: '#0493EE', black: '#0493EE' }],
+
+];
+
+async function replaceFillAndConvertToBase64(filePath, replaceMap) {
+ try {
+ let svgContent = await fs.readFile(filePath, 'utf8');
+ if (replaceMap) {
+ for (const key in replaceMap) {
+ svgContent = svgContent.replace(new RegExp(`"${key}"`, 'g'), `"${replaceMap[key]}"`);
+ }
+ }
+
+ const base64Encoded = await sharp(Buffer.from(svgContent)).resize(72)
+ .png({ progressive: true, compressionLevel: 0 })
+ .toBuffer()
+ .then((pngBuffer) => pngBuffer.toString('base64'));
+
+ return base64Encoded;
+ } catch (error) {
+ console.error('An error occurred:', error);
+ }
+}
+const runTask = async () => {
+ const base64EncodedSVGs = {};
+ const obj = { feedback, star, progress, signal, feeling, arrow, shape, feedback2, flag, cell };
+ for (const iconType in obj) {
+ const list = obj[iconType];
+ const map = {};
+ base64EncodedSVGs[iconType] = map;
+ for (const element of list) {
+ const [key, path, replaceMap] = element;
+ const base64 = await replaceFillAndConvertToBase64(`./node_modules/${path}`, replaceMap);
+ map[key] = `data:image/png;base64,${base64}`;
+ }
+ }
+ try {
+ await fs.stat('./src/assets');
+ } catch (err) {
+ await fs.mkdir('./src/assets');
+ }
+
+ fs.writeFile('./src/assets/icon-map.json', `${JSON.stringify(base64EncodedSVGs, null, 4)}\n`, 'utf8');
+};
+runTask();
diff --git a/packages/sheets-conditional-format/src/base/const.ts b/packages/sheets-conditional-format/src/base/const.ts
new file mode 100644
index 0000000000..defee77feb
--- /dev/null
+++ b/packages/sheets-conditional-format/src/base/const.ts
@@ -0,0 +1,128 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import type { IConditionFormatRule, ITextHighlightCell } from '../models/type';
+
+export const SHEET_CONDITION_FORMAT_PLUGIN = 'SHEET_CONDITION_FORMAT_PLUGIN';
+export enum CFTextOperator {
+ beginsWith = 'beginsWith',
+ endsWith = 'endsWith',
+ containsText = 'containsText',
+ notContainsText = 'notContainsText',
+ equal = 'equal',
+ notEqual = 'notEqual',
+ containsBlanks = 'containsBlanks',
+ notContainsBlanks = 'notContainsBlanks',
+ containsErrors = 'containsErrors',
+ notContainsErrors = 'notContainsErrors',
+}
+export enum CFTimePeriodOperator {
+ today = 'today',
+ yesterday = 'yesterday',
+ tomorrow = 'tomorrow',
+ last7Days = 'last7Days',
+ thisMonth = 'thisMonth',
+ lastMonth = 'lastMonth',
+ nextMonth = 'nextMonth',
+ thisWeek = 'thisWeek',
+ lastWeek = 'lastWeek',
+ nextWeek = 'nextWeek',
+}
+export enum CFNumberOperator {
+ greaterThan = 'greaterThan',
+ greaterThanOrEqual = 'greaterThanOrEqual',
+ lessThan = 'lessThan',
+ lessThanOrEqual = 'lessThanOrEqual',
+ notBetween = 'notBetween',
+ between = 'between',
+ equal = 'equal',
+ notEqual = 'notEqual',
+}
+
+export enum CFRuleType {
+ highlightCell = 'highlightCell',
+ dataBar = 'dataBar',
+ colorScale = 'colorScale',
+ iconSet = 'iconSet',
+}
+export enum CFSubRuleType {
+ uniqueValues = 'uniqueValues',
+ duplicateValues = 'duplicateValues',
+ rank = 'rank',
+ text = 'text',
+ timePeriod = 'timePeriod',
+ number = 'number',
+ average = 'average',
+ formula = 'formula',
+
+}
+
+export enum CFValueType {
+ num = 'num',
+ min = 'min',
+ max = 'max',
+ percent = 'percent',
+
+ percentile = 'percentile',
+
+ formula = 'formula',
+}
+
+export const DEFAULT_BG_COLOR = '#fff';
+export const DEFAULT_FONT_COLOR = '#000000';
+
+export const createDefaultRule = () => ({
+ cfId: undefined as unknown as string,
+ ranges: [],
+ stopIfTrue: false,
+ rule: { type: CFRuleType.highlightCell, subType: CFSubRuleType.text, operator: CFTextOperator.containsText } as ITextHighlightCell,
+} as IConditionFormatRule);
+
+export const createDefaultValue = (subType: CFSubRuleType, operator: CFTextOperator | CFNumberOperator | CFTimePeriodOperator) => {
+ switch (subType) {
+ case CFSubRuleType.text:{
+ if ([CFTextOperator.beginsWith, CFTextOperator.containsText, CFTextOperator.endsWith, CFTextOperator.equal, CFTextOperator.notContainsText, CFTextOperator.notEqual].includes(operator as CFTextOperator)) {
+ return '';
+ }
+ break;
+ }
+ case CFSubRuleType.number:{
+ if ([CFNumberOperator.between, CFNumberOperator.notBetween].includes(operator as CFNumberOperator)) {
+ return [10, 100] as [number, number];
+ }
+ return 10;
+ }
+ }
+ return '';
+};
+
+export const createDefaultValueByValueType = (type: CFValueType, defaultValue?: number) => {
+ switch (type) {
+ case CFValueType.formula:{
+ return '=';
+ }
+ case CFValueType.max:
+ case CFValueType.min:{
+ return '';
+ }
+ case CFValueType.percent:
+ case CFValueType.percentile:
+ case CFValueType.num:{
+ return defaultValue !== undefined ? defaultValue : 10;
+ }
+ }
+ return '';
+};
diff --git a/packages/sheets-conditional-format/src/commands/commands/add-average-cf.command.ts b/packages/sheets-conditional-format/src/commands/commands/add-average-cf.command.ts
new file mode 100644
index 0000000000..a90d822794
--- /dev/null
+++ b/packages/sheets-conditional-format/src/commands/commands/add-average-cf.command.ts
@@ -0,0 +1,63 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import type { ICommand, IRange } from '@univerjs/core';
+import {
+ CommandType,
+ ICommandService,
+ IUniverInstanceService,
+} from '@univerjs/core';
+import { ConditionalFormatRuleModel } from '../../models/conditional-format-rule-model';
+import type { IAverageHighlightCell, IConditionFormatRule } from '../../models/type';
+import { CFRuleType, CFSubRuleType } from '../../base/const';
+import type { IAddConditionalRuleMutationParams } from '../mutations/add-conditional-rule.mutation';
+import { AddConditionalRuleMutation } from '../mutations/add-conditional-rule.mutation';
+
+interface IAddAverageCfParams {
+ ranges: IRange[];
+ stopIfTrue?: boolean;
+ style: IAverageHighlightCell['style'];
+ operator: IAverageHighlightCell['operator'];
+}
+// { ranges: [{ startRow: 0, endRow: 10, startColumn: 3, endColumn: 3 }, { startRow: 0, endRow: 10, startColumn: 5, endColumn: 5 }], style: { fs: 30 }, operator: 'greaterThan' };
+export const DddAverageCfCommand: ICommand<IAddAverageCfParams> = {
+ type: CommandType.COMMAND,
+ id: 'sheet.command.add-average-conditional-rule',
+ handler(accessor, params) {
+ if (!params) {
+ return false;
+ }
+ const { ranges, style, stopIfTrue, operator } = params;
+ const conditionalFormatRuleModel = accessor.get(ConditionalFormatRuleModel);
+ const commandService = accessor.get(ICommandService);
+
+ const univerInstanceService = accessor.get(IUniverInstanceService);
+ const workbook = univerInstanceService.getCurrentUniverSheetInstance();
+ const worksheet = workbook.getActiveSheet();
+ const unitId = workbook.getUnitId();
+ const subUnitId = worksheet.getSheetId();
+ const cfId = conditionalFormatRuleModel.createCfId(unitId, subUnitId);
+ const rule: IConditionFormatRule = { ranges, cfId, stopIfTrue: !!stopIfTrue,
+ rule: {
+ type: CFRuleType.highlightCell,
+ subType: CFSubRuleType.average,
+ operator,
+ style,
+ } };
+ const result = commandService.executeCommand(AddConditionalRuleMutation.id, { unitId, subUnitId, rule } as IAddConditionalRuleMutationParams);
+ return result;
+ },
+};
diff --git a/packages/sheets-conditional-format/src/commands/commands/add-cf.command.ts b/packages/sheets-conditional-format/src/commands/commands/add-cf.command.ts
new file mode 100644
index 0000000000..ac2a747685
--- /dev/null
+++ b/packages/sheets-conditional-format/src/commands/commands/add-cf.command.ts
@@ -0,0 +1,66 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import type { ICommand } from '@univerjs/core';
+import {
+ CommandType,
+ ICommandService,
+ IUndoRedoService,
+ IUniverInstanceService,
+} from '@univerjs/core';
+import type { IConditionFormatRule } from '../../models/type';
+import type { IAddConditionalRuleMutationParams } from '../mutations/add-conditional-rule.mutation';
+import type { MakePropertyOptional } from '../../utils/type';
+import { AddConditionalRuleMutation, AddConditionalRuleMutationUndoFactory } from '../mutations/add-conditional-rule.mutation';
+import { ConditionalFormatRuleModel } from '../../models/conditional-format-rule-model';
+
+export interface IAddCfCommandParams {
+ unitId?: string;
+ subUnitId?: string;
+ rule: MakePropertyOptional<IConditionFormatRule, 'cfId'>;
+};
+
+export const AddCfCommand: ICommand<IAddCfCommandParams> = {
+ type: CommandType.COMMAND,
+ id: 'sheet.command.add-conditional-rule',
+ handler(accessor, params) {
+ if (!params) {
+ return false;
+ }
+ const { rule } = params;
+ const undoRedoService = accessor.get(IUndoRedoService);
+ const commandService = accessor.get(ICommandService);
+ const conditionalFormatRuleModel = accessor.get(ConditionalFormatRuleModel);
+ const univerInstanceService = accessor.get(IUniverInstanceService);
+ const workbook = univerInstanceService.getCurrentUniverSheetInstance();
+ const worksheet = workbook.getActiveSheet();
+ const unitId = params.unitId ?? workbook.getUnitId();
+ const subUnitId = params.subUnitId ?? worksheet.getSheetId();
+ const cfId = conditionalFormatRuleModel.createCfId(unitId, subUnitId);
+ const config: IAddConditionalRuleMutationParams = { unitId, subUnitId, rule: { ...rule, cfId: rule.cfId || cfId } };
+ const undo = AddConditionalRuleMutationUndoFactory(accessor, config);
+ const result = commandService.syncExecuteCommand(AddConditionalRuleMutation.id, config);
+ if (result) {
+ undoRedoService.pushUndoRedo({
+ unitID: unitId,
+ redoMutations: [{ id: AddConditionalRuleMutation.id, params: config }],
+ undoMutations: [undo],
+ });
+ }
+
+ return result;
+ },
+};
diff --git a/packages/sheets-conditional-format/src/commands/commands/add-color-scale-cf.command.ts b/packages/sheets-conditional-format/src/commands/commands/add-color-scale-cf.command.ts
new file mode 100644
index 0000000000..8659506d89
--- /dev/null
+++ b/packages/sheets-conditional-format/src/commands/commands/add-color-scale-cf.command.ts
@@ -0,0 +1,59 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import type { ICommand, IRange } from '@univerjs/core';
+import {
+ CommandType,
+ ICommandService,
+ IUniverInstanceService,
+} from '@univerjs/core';
+import { ConditionalFormatRuleModel } from '../../models/conditional-format-rule-model';
+import type { IColorScale, IConditionFormatRule } from '../../models/type';
+import { CFRuleType } from '../../base/const';
+import type { IAddConditionalRuleMutationParams } from '../mutations/add-conditional-rule.mutation';
+import { AddConditionalRuleMutation } from '../mutations/add-conditional-rule.mutation';
+
+interface IAddColorScaleConditionalRuleParams {
+ ranges: IRange[];
+ stopIfTrue?: boolean;
+ config: IColorScale['config'];
+
+}
+export const AddColorScaleConditionalRuleCommand: ICommand<IAddColorScaleConditionalRuleParams> = {
+ type: CommandType.COMMAND,
+ id: 'sheet.command.add-color-scale-conditional-rule',
+ handler(accessor, params) {
+ if (!params) {
+ return false;
+ }
+ const { ranges, config, stopIfTrue } = params;
+ const conditionalFormatRuleModel = accessor.get(ConditionalFormatRuleModel);
+ const commandService = accessor.get(ICommandService);
+
+ const univerInstanceService = accessor.get(IUniverInstanceService);
+ const workbook = univerInstanceService.getCurrentUniverSheetInstance();
+ const worksheet = workbook.getActiveSheet();
+ const unitId = workbook.getUnitId();
+ const subUnitId = worksheet.getSheetId();
+ const cfId = conditionalFormatRuleModel.createCfId(unitId, subUnitId);
+ const rule: IConditionFormatRule = { ranges, cfId, stopIfTrue: !!stopIfTrue,
+ rule: {
+ type: CFRuleType.colorScale,
+ config,
+ } };
+ return commandService.executeCommand(AddConditionalRuleMutation.id, { unitId, subUnitId, rule } as IAddConditionalRuleMutationParams);
+ },
+};
diff --git a/packages/sheets-conditional-format/src/commands/commands/add-data-bar-cf.command.ts b/packages/sheets-conditional-format/src/commands/commands/add-data-bar-cf.command.ts
new file mode 100644
index 0000000000..f2eff38ad7
--- /dev/null
+++ b/packages/sheets-conditional-format/src/commands/commands/add-data-bar-cf.command.ts
@@ -0,0 +1,65 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import type { ICommand, IRange } from '@univerjs/core';
+import {
+ CommandType,
+ ICommandService,
+ IUniverInstanceService,
+} from '@univerjs/core';
+import { ConditionalFormatRuleModel } from '../../models/conditional-format-rule-model';
+import type { IConditionFormatRule, IDataBar } from '../../models/type';
+import { CFRuleType } from '../../base/const';
+import type { IAddConditionalRuleMutationParams } from '../mutations/add-conditional-rule.mutation';
+import { AddConditionalRuleMutation } from '../mutations/add-conditional-rule.mutation';
+
+interface IAddUniqueValuesConditionalRuleParams {
+ ranges: IRange[];
+ stopIfTrue?: boolean;
+ min: IDataBar['config']['min'];
+ max: IDataBar['config']['max'];
+ nativeColor: IDataBar['config']['nativeColor'];
+ positiveColor: IDataBar['config']['positiveColor'];
+ isGradient: IDataBar['config']['isGradient'];
+
+}
+export const AddDataBarConditionalRuleCommand: ICommand<IAddUniqueValuesConditionalRuleParams> = {
+ type: CommandType.COMMAND,
+ id: 'sheet.command.add-data-bar-conditional-rule',
+ handler(accessor, params) {
+ if (!params) {
+ return false;
+ }
+ const { ranges, min, max, nativeColor, positiveColor, isGradient, stopIfTrue } = params;
+ const conditionalFormatRuleModel = accessor.get(ConditionalFormatRuleModel);
+ const univerInstanceService = accessor.get(IUniverInstanceService);
+ const commandService = accessor.get(ICommandService);
+
+ const workbook = univerInstanceService.getCurrentUniverSheetInstance();
+ const worksheet = workbook.getActiveSheet();
+ const unitId = workbook.getUnitId();
+ const subUnitId = worksheet.getSheetId();
+ const cfId = conditionalFormatRuleModel.createCfId(unitId, subUnitId);
+ const rule: IConditionFormatRule = { ranges, cfId, stopIfTrue: !!stopIfTrue,
+ rule: {
+ type: CFRuleType.dataBar,
+ config: {
+ min, max, nativeColor, positiveColor, isGradient,
+ },
+ } };
+ return commandService.executeCommand(AddConditionalRuleMutation.id, { unitId, subUnitId, rule } as IAddConditionalRuleMutationParams);
+ },
+};
diff --git a/packages/sheets-conditional-format/src/commands/commands/add-duplicate-values-cf.command.ts b/packages/sheets-conditional-format/src/commands/commands/add-duplicate-values-cf.command.ts
new file mode 100644
index 0000000000..b1864d6bf1
--- /dev/null
+++ b/packages/sheets-conditional-format/src/commands/commands/add-duplicate-values-cf.command.ts
@@ -0,0 +1,59 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import type { ICommand, IRange } from '@univerjs/core';
+import {
+ CommandType,
+ ICommandService,
+ IUniverInstanceService,
+} from '@univerjs/core';
+import { ConditionalFormatRuleModel } from '../../models/conditional-format-rule-model';
+import type { IConditionFormatRule, IHighlightCell } from '../../models/type';
+import { CFRuleType, CFSubRuleType } from '../../base/const';
+import type { IAddConditionalRuleMutationParams } from '../mutations/add-conditional-rule.mutation';
+import { AddConditionalRuleMutation } from '../mutations/add-conditional-rule.mutation';
+
+interface IAddDuplicateValuesConditionalRuleParams {
+ ranges: IRange[];
+ stopIfTrue?: boolean;
+ style: IHighlightCell['style'];
+}
+export const AddDuplicateValuesCfCommand: ICommand<IAddDuplicateValuesConditionalRuleParams> = {
+ type: CommandType.COMMAND,
+ id: 'sheet.command.add-duplicate-values-conditional-rule',
+ handler(accessor, params) {
+ if (!params) {
+ return false;
+ }
+ const { ranges, style, stopIfTrue } = params;
+ const conditionalFormatRuleModel = accessor.get(ConditionalFormatRuleModel);
+ const commandService = accessor.get(ICommandService);
+
+ const univerInstanceService = accessor.get(IUniverInstanceService);
+ const workbook = univerInstanceService.getCurrentUniverSheetInstance();
+ const worksheet = workbook.getActiveSheet();
+ const unitId = workbook.getUnitId();
+ const subUnitId = worksheet.getSheetId();
+ const cfId = conditionalFormatRuleModel.createCfId(unitId, subUnitId);
+ const rule: IConditionFormatRule = { ranges, cfId, stopIfTrue: !!stopIfTrue,
+ rule: {
+ type: CFRuleType.highlightCell,
+ subType: CFSubRuleType.duplicateValues,
+ style,
+ } };
+ return commandService.executeCommand(AddConditionalRuleMutation.id, { unitId, subUnitId, rule } as IAddConditionalRuleMutationParams);
+ },
+};
diff --git a/packages/sheets-conditional-format/src/commands/commands/add-number-cf.command.ts b/packages/sheets-conditional-format/src/commands/commands/add-number-cf.command.ts
new file mode 100644
index 0000000000..a5e6ae6eae
--- /dev/null
+++ b/packages/sheets-conditional-format/src/commands/commands/add-number-cf.command.ts
@@ -0,0 +1,82 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import type { ICommand, IRange } from '@univerjs/core';
+import {
+ CommandType,
+ ICommandService,
+ IUniverInstanceService,
+} from '@univerjs/core';
+import { ConditionalFormatRuleModel } from '../../models/conditional-format-rule-model';
+import type { IConditionFormatRule, INumberHighlightCell } from '../../models/type';
+import { CFNumberOperator, CFRuleType, CFSubRuleType } from '../../base/const';
+import type { IAddConditionalRuleMutationParams } from '../mutations/add-conditional-rule.mutation';
+import { AddConditionalRuleMutation } from '../mutations/add-conditional-rule.mutation';
+
+interface IAddNumberCfParams {
+ ranges: IRange[];
+ stopIfTrue?: boolean;
+ style: INumberHighlightCell['style'];
+ operator: INumberHighlightCell['operator'];
+ value: number | [number, number];
+}
+export const AddNumberCfCommand: ICommand<IAddNumberCfParams> = {
+ type: CommandType.COMMAND,
+ id: 'sheet.command.add-number-conditional-rule',
+ handler(accessor, params) {
+ if (!params) {
+ return false;
+ }
+ const { ranges, style, stopIfTrue, operator, value } = params;
+ const conditionalFormatRuleModel = accessor.get(ConditionalFormatRuleModel);
+ const commandService = accessor.get(ICommandService);
+ const univerInstanceService = accessor.get(IUniverInstanceService);
+ const workbook = univerInstanceService.getCurrentUniverSheetInstance();
+ const worksheet = workbook.getActiveSheet();
+ const unitId = workbook.getUnitId();
+ const subUnitId = worksheet.getSheetId();
+ const cfId = conditionalFormatRuleModel.createCfId(unitId, subUnitId);
+ let rule: IConditionFormatRule;
+ if ([CFNumberOperator.between, CFNumberOperator.notBetween].includes(operator)) {
+ const _value = value as [number, number];
+ if (_value.length !== 2 || !Array.isArray(_value)) {
+ return false;
+ }
+ rule = { ranges, cfId, stopIfTrue: !!stopIfTrue,
+ rule: {
+ type: CFRuleType.highlightCell,
+ subType: CFSubRuleType.number,
+ operator: operator as CFNumberOperator.between | CFNumberOperator.notBetween,
+ style,
+ value: _value as [number, number],
+ } };
+ } else {
+ const _value = value as number;
+ if (typeof _value !== 'number') {
+ return false;
+ }
+ rule = { ranges, cfId, stopIfTrue: !!stopIfTrue,
+ rule: {
+ type: CFRuleType.highlightCell,
+ subType: CFSubRuleType.number,
+ operator: operator as any,
+ style,
+ value: _value,
+ } };
+ }
+ return commandService.executeCommand(AddConditionalRuleMutation.id, { unitId, subUnitId, rule } as IAddConditionalRuleMutationParams);
+ },
+};
diff --git a/packages/sheets-conditional-format/src/commands/commands/add-rank-cf.command.ts b/packages/sheets-conditional-format/src/commands/commands/add-rank-cf.command.ts
new file mode 100644
index 0000000000..4b8670e03b
--- /dev/null
+++ b/packages/sheets-conditional-format/src/commands/commands/add-rank-cf.command.ts
@@ -0,0 +1,66 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import type { ICommand, IRange } from '@univerjs/core';
+import {
+ CommandType,
+ ICommandService,
+ IUniverInstanceService,
+} from '@univerjs/core';
+import { ConditionalFormatRuleModel } from '../../models/conditional-format-rule-model';
+import type { IConditionFormatRule, IRankHighlightCell } from '../../models/type';
+import { CFRuleType, CFSubRuleType } from '../../base/const';
+import type { IAddConditionalRuleMutationParams } from '../mutations/add-conditional-rule.mutation';
+import { AddConditionalRuleMutation } from '../mutations/add-conditional-rule.mutation';
+
+interface IAddRankCfParams {
+ ranges: IRange[];
+ stopIfTrue?: boolean;
+ style: IRankHighlightCell['style'];
+ isPercent: boolean;
+ isBottom: boolean;
+ value: number;
+
+}
+export const AddRankCfCommand: ICommand<IAddRankCfParams> = {
+ type: CommandType.COMMAND,
+ id: 'sheet.command.add-rank-conditional-rule',
+ handler(accessor, params) {
+ if (!params) {
+ return false;
+ }
+ const { ranges, style, stopIfTrue, isPercent, isBottom, value } = params;
+ const conditionalFormatRuleModel = accessor.get(ConditionalFormatRuleModel);
+ const univerInstanceService = accessor.get(IUniverInstanceService);
+ const commandService = accessor.get(ICommandService);
+
+ const workbook = univerInstanceService.getCurrentUniverSheetInstance();
+ const worksheet = workbook.getActiveSheet();
+ const unitId = workbook.getUnitId();
+ const subUnitId = worksheet.getSheetId();
+ const cfId = conditionalFormatRuleModel.createCfId(unitId, subUnitId);
+ const rule: IConditionFormatRule = { ranges, cfId, stopIfTrue: !!stopIfTrue,
+ rule: {
+ type: CFRuleType.highlightCell,
+ subType: CFSubRuleType.rank,
+ isPercent,
+ isBottom,
+ style,
+ value,
+ } };
+ return commandService.executeCommand(AddConditionalRuleMutation.id, { unitId, subUnitId, rule } as IAddConditionalRuleMutationParams);
+ },
+};
diff --git a/packages/sheets-conditional-format/src/commands/commands/add-text-cf.command.ts b/packages/sheets-conditional-format/src/commands/commands/add-text-cf.command.ts
new file mode 100644
index 0000000000..c00f6eca3e
--- /dev/null
+++ b/packages/sheets-conditional-format/src/commands/commands/add-text-cf.command.ts
@@ -0,0 +1,64 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import type { ICommand, IRange } from '@univerjs/core';
+import {
+ CommandType,
+ ICommandService,
+ IUniverInstanceService,
+
+} from '@univerjs/core';
+import { ConditionalFormatRuleModel } from '../../models/conditional-format-rule-model';
+import type { IConditionFormatRule, ITextHighlightCell } from '../../models/type';
+import { CFRuleType, CFSubRuleType } from '../../base/const';
+import type { IAddConditionalRuleMutationParams } from '../mutations/add-conditional-rule.mutation';
+import { AddConditionalRuleMutation } from '../mutations/add-conditional-rule.mutation';
+
+interface IAddAverageCfParams {
+ ranges: IRange[];
+ stopIfTrue?: boolean;
+ style: ITextHighlightCell['style'];
+ operator: ITextHighlightCell['operator'];
+ value: ITextHighlightCell['value'];
+}
+export const AddTextCfCommand: ICommand<IAddAverageCfParams> = {
+ type: CommandType.COMMAND,
+ id: 'sheet.command.add-text-conditional-rule',
+ handler(accessor, params) {
+ if (!params) {
+ return false;
+ }
+ const { ranges, style, stopIfTrue, operator, value } = params;
+ const conditionalFormatRuleModel = accessor.get(ConditionalFormatRuleModel);
+ const univerInstanceService = accessor.get(IUniverInstanceService);
+ const workbook = univerInstanceService.getCurrentUniverSheetInstance();
+ const commandService = accessor.get(ICommandService);
+
+ const worksheet = workbook.getActiveSheet();
+ const unitId = workbook.getUnitId();
+ const subUnitId = worksheet.getSheetId();
+ const cfId = conditionalFormatRuleModel.createCfId(unitId, subUnitId);
+ const rule: IConditionFormatRule = { ranges, cfId, stopIfTrue: !!stopIfTrue,
+ rule: {
+ type: CFRuleType.highlightCell,
+ subType: CFSubRuleType.text,
+ operator,
+ style,
+ value,
+ } };
+ return commandService.executeCommand(AddConditionalRuleMutation.id, { unitId, subUnitId, rule } as IAddConditionalRuleMutationParams);
+ },
+};
diff --git a/packages/sheets-conditional-format/src/commands/commands/add-time-period-cf.command.ts b/packages/sheets-conditional-format/src/commands/commands/add-time-period-cf.command.ts
new file mode 100644
index 0000000000..7632ac06ac
--- /dev/null
+++ b/packages/sheets-conditional-format/src/commands/commands/add-time-period-cf.command.ts
@@ -0,0 +1,62 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import type { ICommand, IRange } from '@univerjs/core';
+import {
+ CommandType,
+ ICommandService,
+ IUniverInstanceService,
+} from '@univerjs/core';
+import { ConditionalFormatRuleModel } from '../../models/conditional-format-rule-model';
+import type { IConditionFormatRule, ITimePeriodHighlightCell } from '../../models/type';
+import { CFRuleType, CFSubRuleType } from '../../base/const';
+import type { IAddConditionalRuleMutationParams } from '../mutations/add-conditional-rule.mutation';
+import { AddConditionalRuleMutation } from '../mutations/add-conditional-rule.mutation';
+
+interface IAddTimePeriodCf {
+ ranges: IRange[];
+ stopIfTrue?: boolean;
+ style: ITimePeriodHighlightCell['style'];
+ operator: ITimePeriodHighlightCell['operator'];
+
+}
+export const AddTimePeriodCfCommand: ICommand<IAddTimePeriodCf> = {
+ type: CommandType.COMMAND,
+ id: 'sheet.command.add-time-period-conditional-rule',
+ handler(accessor, params) {
+ if (!params) {
+ return false;
+ }
+ const { ranges, style, stopIfTrue, operator } = params;
+ const conditionalFormatRuleModel = accessor.get(ConditionalFormatRuleModel);
+ const univerInstanceService = accessor.get(IUniverInstanceService);
+ const commandService = accessor.get(ICommandService);
+
+ const workbook = univerInstanceService.getCurrentUniverSheetInstance();
+ const worksheet = workbook.getActiveSheet();
+ const unitId = workbook.getUnitId();
+ const subUnitId = worksheet.getSheetId();
+ const cfId = conditionalFormatRuleModel.createCfId(unitId, subUnitId);
+ const rule: IConditionFormatRule<ITimePeriodHighlightCell> = { ranges, cfId, stopIfTrue: !!stopIfTrue,
+ rule: {
+ type: CFRuleType.highlightCell,
+ subType: CFSubRuleType.timePeriod,
+ operator,
+ style,
+ } };
+ return commandService.executeCommand(AddConditionalRuleMutation.id, { unitId, subUnitId, rule } as IAddConditionalRuleMutationParams);
+ },
+};
diff --git a/packages/sheets-conditional-format/src/commands/commands/add-unique-values-cf.command.ts b/packages/sheets-conditional-format/src/commands/commands/add-unique-values-cf.command.ts
new file mode 100644
index 0000000000..cee9b3593e
--- /dev/null
+++ b/packages/sheets-conditional-format/src/commands/commands/add-unique-values-cf.command.ts
@@ -0,0 +1,59 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import type { ICommand, IRange } from '@univerjs/core';
+import {
+ CommandType,
+ ICommandService,
+ IUniverInstanceService,
+} from '@univerjs/core';
+import { ConditionalFormatRuleModel } from '../../models/conditional-format-rule-model';
+import type { IConditionFormatRule, IHighlightCell } from '../../models/type';
+import { CFRuleType, CFSubRuleType } from '../../base/const';
+import type { IAddConditionalRuleMutationParams } from '../mutations/add-conditional-rule.mutation';
+import { AddConditionalRuleMutation } from '../mutations/add-conditional-rule.mutation';
+
+interface IAddUniqueValuesConditionalRuleParams {
+ ranges: IRange[];
+ stopIfTrue?: boolean;
+ style: IHighlightCell['style'];
+}
+export const AddUniqueValuesCfCommand: ICommand<IAddUniqueValuesConditionalRuleParams> = {
+ type: CommandType.COMMAND,
+ id: 'sheet.command.add-uniqueValues-conditional-rule',
+ handler(accessor, params) {
+ if (!params) {
+ return false;
+ }
+ const { ranges, style, stopIfTrue } = params;
+ const conditionalFormatRuleModel = accessor.get(ConditionalFormatRuleModel);
+ const univerInstanceService = accessor.get(IUniverInstanceService);
+ const commandService = accessor.get(ICommandService);
+
+ const workbook = univerInstanceService.getCurrentUniverSheetInstance();
+ const worksheet = workbook.getActiveSheet();
+ const unitId = workbook.getUnitId();
+ const subUnitId = worksheet.getSheetId();
+ const cfId = conditionalFormatRuleModel.createCfId(unitId, subUnitId);
+ const rule: IConditionFormatRule = { ranges, cfId, stopIfTrue: !!stopIfTrue,
+ rule: {
+ type: CFRuleType.highlightCell,
+ subType: CFSubRuleType.uniqueValues,
+ style,
+ } };
+ return commandService.executeCommand(AddConditionalRuleMutation.id, { unitId, subUnitId, rule } as IAddConditionalRuleMutationParams);
+ },
+};
diff --git a/packages/sheets-conditional-format/src/commands/commands/clear-range-cf.command.ts b/packages/sheets-conditional-format/src/commands/commands/clear-range-cf.command.ts
new file mode 100644
index 0000000000..40c1732195
--- /dev/null
+++ b/packages/sheets-conditional-format/src/commands/commands/clear-range-cf.command.ts
@@ -0,0 +1,105 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import type { ICommand, IMutationInfo,
+ IRange,
+} from '@univerjs/core';
+import {
+ CommandType,
+ ICommandService,
+ IUndoRedoService,
+ IUniverInstanceService,
+ ObjectMatrix,
+ Range,
+ sequenceExecute,
+} from '@univerjs/core';
+import { createTopMatrixFromMatrix, findAllRectangle, SelectionManagerService } from '@univerjs/sheets';
+
+import { ConditionalFormatRuleModel } from '../../models/conditional-format-rule-model';
+import type { IConditionFormatRule } from '../../models/type';
+import type { ISetConditionalRuleMutationParams } from '../mutations/set-conditional-rule.mutation';
+import { SetConditionalRuleMutation, setConditionalRuleMutationUndoFactory } from '../mutations/set-conditional-rule.mutation';
+import type { IDeleteConditionalRuleMutationParams } from '../mutations/delete-conditional-rule.mutation';
+import { DeleteConditionalRuleMutation, DeleteConditionalRuleMutationUndoFactory } from '../mutations/delete-conditional-rule.mutation';
+
+export interface IClearRangeCfParams {
+ ranges?: IRange[];
+ unitId?: string;
+ subUnitId?: string;
+}
+export const ClearRangeCfCommand: ICommand<IClearRangeCfParams> = {
+ type: CommandType.COMMAND,
+ id: 'sheet.command.clear-range-conditional-rule',
+ handler(accessor, params) {
+ if (!params) {
+ return false;
+ }
+ const conditionalFormatRuleModel = accessor.get(ConditionalFormatRuleModel);
+ const univerInstanceService = accessor.get(IUniverInstanceService);
+ const commandService = accessor.get(ICommandService);
+ const workbook = univerInstanceService.getCurrentUniverSheetInstance();
+ const undoRedoService = accessor.get(IUndoRedoService);
+ const selectionManagerService = accessor.get(SelectionManagerService);
+
+ const worksheet = workbook.getActiveSheet();
+ const unitId = params.unitId ?? workbook.getUnitId();
+ const subUnitId = params.subUnitId ?? worksheet.getSheetId();
+ const ranges = selectionManagerService.getSelections()?.map((selection) => selection.range) || [];
+ const allRuleList = conditionalFormatRuleModel.getSubunitRules(unitId, subUnitId);
+ if (!allRuleList?.length || !ranges.length) {
+ return false;
+ }
+
+ const redos: IMutationInfo[] = [];
+ const undos: IMutationInfo[] = [];
+ allRuleList.forEach((oldRule) => {
+ const matrix = new ObjectMatrix<1>();
+ oldRule.ranges.forEach((range) => {
+ Range.foreach(range, (row, col) => {
+ matrix.setValue(row, col, 1);
+ });
+ });
+ ranges.forEach((range) => {
+ Range.foreach(range, (row, col) => {
+ matrix.realDeleteValue(row, col);
+ });
+ });
+ const newRanges = findAllRectangle(createTopMatrixFromMatrix(matrix));
+ if (newRanges.length) {
+ const rule: IConditionFormatRule = { ...oldRule, ranges: newRanges };
+ const params = { unitId, subUnitId, rule } as ISetConditionalRuleMutationParams;
+ const undo = setConditionalRuleMutationUndoFactory(accessor, params);
+ redos.push({ id: SetConditionalRuleMutation.id, params });
+ undos.push(...undo);
+ } else {
+ const params = { unitId, subUnitId, cfId: oldRule.cfId } as IDeleteConditionalRuleMutationParams;
+ const undo = DeleteConditionalRuleMutationUndoFactory(accessor, params);
+ redos.push({ id: DeleteConditionalRuleMutation.id, params });
+ undos.push(...undo);
+ }
+ });
+
+ const result = sequenceExecute(redos, commandService).result;
+ if (result) {
+ undoRedoService.pushUndoRedo({
+ unitID: unitId,
+ redoMutations: redos,
+ undoMutations: undos,
+ });
+ }
+ return result;
+ },
+};
diff --git a/packages/sheets-conditional-format/src/commands/commands/clear-worksheet-cf.command.ts b/packages/sheets-conditional-format/src/commands/commands/clear-worksheet-cf.command.ts
new file mode 100644
index 0000000000..53fa0719cd
--- /dev/null
+++ b/packages/sheets-conditional-format/src/commands/commands/clear-worksheet-cf.command.ts
@@ -0,0 +1,65 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import type { ICommand, IMutationInfo } from '@univerjs/core';
+import {
+ CommandType,
+ ICommandService,
+ IUndoRedoService,
+ IUniverInstanceService,
+ sequenceExecute,
+} from '@univerjs/core';
+import { ConditionalFormatRuleModel } from '../../models/conditional-format-rule-model';
+
+import type { IDeleteConditionalRuleMutationParams } from '../mutations/delete-conditional-rule.mutation';
+import { DeleteConditionalRuleMutation, DeleteConditionalRuleMutationUndoFactory } from '../mutations/delete-conditional-rule.mutation';
+
+export interface IClearWorksheetCfParams {
+ unitId?: string;
+ subUnitId?: string;
+}
+export const ClearWorksheetCfCommand: ICommand<IClearWorksheetCfParams> = {
+ type: CommandType.COMMAND,
+ id: 'sheet.command.clear-worksheet-conditional-rule',
+ handler(accessor, params) {
+ const conditionalFormatRuleModel = accessor.get(ConditionalFormatRuleModel);
+ const univerInstanceService = accessor.get(IUniverInstanceService);
+ const commandService = accessor.get(ICommandService);
+ const workbook = univerInstanceService.getCurrentUniverSheetInstance();
+ const undoRedoService = accessor.get(IUndoRedoService);
+
+ const worksheet = workbook.getActiveSheet();
+ const unitId = params?.unitId ?? workbook.getUnitId();
+ const subUnitId = params?.subUnitId ?? worksheet.getSheetId();
+ const ruleList = conditionalFormatRuleModel.getSubunitRules(unitId, subUnitId);
+ if (!ruleList?.length) {
+ return false;
+ }
+ const configList: IDeleteConditionalRuleMutationParams[] = ruleList.map((rule) => ({ cfId: rule.cfId, unitId, subUnitId }));
+ const redos: IMutationInfo[] = configList.map((config) => ({ id: DeleteConditionalRuleMutation.id, params: config }));
+ const undos: IMutationInfo[] = configList.map((config) => DeleteConditionalRuleMutationUndoFactory(accessor, config)[0]);
+
+ const result = sequenceExecute(redos, commandService).result;
+ if (result) {
+ undoRedoService.pushUndoRedo({
+ unitID: unitId,
+ redoMutations: redos,
+ undoMutations: undos,
+ });
+ }
+ return result;
+ },
+};
diff --git a/packages/sheets-conditional-format/src/commands/commands/delete-cf.command.ts b/packages/sheets-conditional-format/src/commands/commands/delete-cf.command.ts
new file mode 100644
index 0000000000..4590960bd7
--- /dev/null
+++ b/packages/sheets-conditional-format/src/commands/commands/delete-cf.command.ts
@@ -0,0 +1,54 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import type { ICommand } from '@univerjs/core';
+import {
+ CommandType,
+ ICommandService,
+ IUndoRedoService,
+ IUniverInstanceService,
+} from '@univerjs/core';
+import type { IDeleteConditionalRuleMutationParams } from '../mutations/delete-conditional-rule.mutation';
+import { DeleteConditionalRuleMutation, DeleteConditionalRuleMutationUndoFactory } from '../mutations/delete-conditional-rule.mutation';
+
+export interface IDeleteCfCommandParams {
+ unitId?: string;
+ subUnitId?: string;
+ cfId: string;
+}
+export const DeleteCfCommand: ICommand<IDeleteCfCommandParams> = {
+ type: CommandType.COMMAND,
+ id: 'sheet.command.delete-conditional-rule',
+ handler(accessor, params) {
+ if (!params) {
+ return false;
+ }
+ const undoRedoService = accessor.get(IUndoRedoService);
+ const commandService = accessor.get(ICommandService);
+ const univerInstanceService = accessor.get(IUniverInstanceService);
+ const workbook = univerInstanceService.getCurrentUniverSheetInstance();
+ const worksheet = workbook.getActiveSheet();
+ const unitId = params.unitId ?? workbook.getUnitId();
+ const subUnitId = params.subUnitId ?? worksheet.getSheetId();
+ const config: IDeleteConditionalRuleMutationParams = { unitId, subUnitId, cfId: params.cfId };
+ const undos = DeleteConditionalRuleMutationUndoFactory(accessor, config);
+ const result = commandService.syncExecuteCommand(DeleteConditionalRuleMutation.id, config);
+ if (result) {
+ undoRedoService.pushUndoRedo({ unitID: unitId, undoMutations: undos, redoMutations: [{ id: DeleteConditionalRuleMutation.id, params: config }] });
+ }
+ return result;
+ },
+};
diff --git a/packages/sheets-conditional-format/src/commands/commands/move-cf.command.ts b/packages/sheets-conditional-format/src/commands/commands/move-cf.command.ts
new file mode 100644
index 0000000000..124a51be6b
--- /dev/null
+++ b/packages/sheets-conditional-format/src/commands/commands/move-cf.command.ts
@@ -0,0 +1,61 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import type { ICommand } from '@univerjs/core';
+import {
+ CommandType,
+ ICommandService,
+ IUndoRedoService,
+ IUniverInstanceService,
+} from '@univerjs/core';
+import type { IMoveConditionalRuleMutationParams } from '../mutations/move-conditional-rule.mutation';
+import { MoveConditionalRuleMutation, MoveConditionalRuleMutationUndoFactory } from '../mutations/move-conditional-rule.mutation';
+
+export interface IMoveCfCommand {
+ unitId?: string;
+ subUnitId?: string;
+ cfId: string;
+ targetCfId: string;
+};
+export const moveCfCommand: ICommand<IMoveCfCommand> = {
+ type: CommandType.COMMAND,
+ id: 'sheet.command.move-conditional-rule',
+ handler(accessor, params) {
+ if (!params) {
+ return false;
+ }
+ const { cfId, targetCfId } = params;
+ const undoRedoService = accessor.get(IUndoRedoService);
+ const commandService = accessor.get(ICommandService);
+ const univerInstanceService = accessor.get(IUniverInstanceService);
+ const workbook = univerInstanceService.getCurrentUniverSheetInstance();
+ const worksheet = workbook.getActiveSheet();
+ const unitId = params.unitId ?? workbook.getUnitId();
+ const subUnitId = params.subUnitId ?? worksheet.getSheetId();
+ const config: IMoveConditionalRuleMutationParams = { unitId, subUnitId, cfId, targetCfId };
+ const undos = MoveConditionalRuleMutationUndoFactory(accessor, config);
+ const result = commandService.syncExecuteCommand(MoveConditionalRuleMutation.id, config);
+ if (result) {
+ undoRedoService.pushUndoRedo({
+ unitID: unitId,
+ redoMutations: [{ id: MoveConditionalRuleMutation.id, params: config }],
+ undoMutations: undos,
+ });
+ }
+
+ return result;
+ },
+};
diff --git a/packages/sheets-conditional-format/src/commands/commands/set-cf.command.ts b/packages/sheets-conditional-format/src/commands/commands/set-cf.command.ts
new file mode 100644
index 0000000000..9390bc2b86
--- /dev/null
+++ b/packages/sheets-conditional-format/src/commands/commands/set-cf.command.ts
@@ -0,0 +1,56 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import type { ICommand } from '@univerjs/core';
+import {
+ CommandType,
+ ICommandService,
+ IUndoRedoService,
+ IUniverInstanceService,
+} from '@univerjs/core';
+import type { IConditionFormatRule } from '../../models/type';
+import type { ISetConditionalRuleMutationParams } from '../mutations/set-conditional-rule.mutation';
+import { SetConditionalRuleMutation, setConditionalRuleMutationUndoFactory } from '../mutations/set-conditional-rule.mutation';
+
+export interface ISetCfCommandParams {
+ unitId?: string;
+ subUnitId?: string;
+ rule: IConditionFormatRule;
+};
+export const SetCfCommand: ICommand<ISetCfCommandParams> = {
+ type: CommandType.COMMAND,
+ id: 'sheet.command.set-conditional-rule',
+ handler(accessor, params) {
+ if (!params) {
+ return false;
+ }
+ const undoRedoService = accessor.get(IUndoRedoService);
+
+ const commandService = accessor.get(ICommandService);
+ const univerInstanceService = accessor.get(IUniverInstanceService);
+ const workbook = univerInstanceService.getCurrentUniverSheetInstance();
+ const worksheet = workbook.getActiveSheet();
+ const unitId = params.unitId ?? workbook.getUnitId();
+ const subUnitId = params.subUnitId ?? worksheet.getSheetId();
+ const config: ISetConditionalRuleMutationParams = { unitId, subUnitId, rule: params.rule };
+ const undos = setConditionalRuleMutationUndoFactory(accessor, config);
+ const result = commandService.syncExecuteCommand(SetConditionalRuleMutation.id, config);
+ if (result) {
+ undoRedoService.pushUndoRedo({ unitID: unitId, undoMutations: undos, redoMutations: [{ id: SetConditionalRuleMutation.id, params: config }] });
+ }
+ return result;
+ },
+};
diff --git a/packages/sheets-conditional-format/src/commands/mutations/add-conditional-rule.mutation.ts b/packages/sheets-conditional-format/src/commands/mutations/add-conditional-rule.mutation.ts
new file mode 100644
index 0000000000..3a0e02d402
--- /dev/null
+++ b/packages/sheets-conditional-format/src/commands/mutations/add-conditional-rule.mutation.ts
@@ -0,0 +1,47 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import type { IMutation } from '@univerjs/core';
+import {
+ CommandType,
+} from '@univerjs/core';
+import type { IAccessor } from '@wendellhu/redi';
+import { ConditionalFormatRuleModel } from '../../models/conditional-format-rule-model';
+import type { IConditionFormatRule } from '../../models/type';
+import type { IDeleteConditionalRuleMutationParams } from './delete-conditional-rule.mutation';
+import { DeleteConditionalRuleMutation } from './delete-conditional-rule.mutation';
+
+export interface IAddConditionalRuleMutationParams {
+ unitId: string;
+ subUnitId: string;
+ rule: IConditionFormatRule;
+}
+export const AddConditionalRuleMutationUndoFactory = (accessor: IAccessor, param: IAddConditionalRuleMutationParams) => {
+ return { id: DeleteConditionalRuleMutation.id, params: { unitId: param.unitId, subUnitId: param.subUnitId, cfId: param.rule.cfId } as IDeleteConditionalRuleMutationParams };
+};
+export const AddConditionalRuleMutation: IMutation<IAddConditionalRuleMutationParams> = {
+ type: CommandType.MUTATION,
+ id: 'sheet.mutation.add-conditional-rule',
+ handler(accessor, params) {
+ if (!params) {
+ return false;
+ }
+ const { unitId, subUnitId, rule } = params;
+ const conditionalFormatRuleModel = accessor.get(ConditionalFormatRuleModel);
+ conditionalFormatRuleModel.addRule(unitId, subUnitId, rule);
+ return true;
+ },
+};
diff --git a/packages/sheets-conditional-format/src/commands/mutations/delete-conditional-rule.mutation.ts b/packages/sheets-conditional-format/src/commands/mutations/delete-conditional-rule.mutation.ts
new file mode 100644
index 0000000000..a8ebb2ab12
--- /dev/null
+++ b/packages/sheets-conditional-format/src/commands/mutations/delete-conditional-rule.mutation.ts
@@ -0,0 +1,66 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import type { IMutation, IMutationInfo } from '@univerjs/core';
+import {
+ CommandType,
+ Tools,
+} from '@univerjs/core';
+import type { IAccessor } from '@wendellhu/redi';
+import { ConditionalFormatRuleModel } from '../../models/conditional-format-rule-model';
+import type { IAddConditionalRuleMutationParams } from './add-conditional-rule.mutation';
+import { AddConditionalRuleMutation } from './add-conditional-rule.mutation';
+import type { IMoveConditionalRuleMutationParams } from './move-conditional-rule.mutation';
+import { MoveConditionalRuleMutation } from './move-conditional-rule.mutation';
+
+export interface IDeleteConditionalRuleMutationParams {
+ unitId: string;
+ subUnitId: string;
+ cfId: string;
+}
+export const DeleteConditionalRuleMutationUndoFactory = (accessor: IAccessor, param: IDeleteConditionalRuleMutationParams) => {
+ const conditionalFormatRuleModel = accessor.get(ConditionalFormatRuleModel);
+ const { unitId, subUnitId, cfId } = param;
+ const rule = conditionalFormatRuleModel.getRule(unitId, subUnitId, cfId);
+ const ruleList = conditionalFormatRuleModel.getSubunitRules(unitId, subUnitId);
+ if (rule) {
+ const index = ruleList!.findIndex((rule) => rule.cfId === cfId);
+ const nextRule = ruleList![index - 1];
+ const result: IMutationInfo[] = [{ id: AddConditionalRuleMutation.id,
+ params: { unitId, subUnitId, rule: Tools.deepClone(rule) } as IAddConditionalRuleMutationParams },
+ ];
+ if (nextRule && index !== 0) {
+ result.push({ id: MoveConditionalRuleMutation.id, params: {
+ unitId, subUnitId, cfId, targetCfId: nextRule.cfId,
+ } as IMoveConditionalRuleMutationParams });
+ }
+ return result;
+ }
+ return [];
+};
+export const DeleteConditionalRuleMutation: IMutation<IDeleteConditionalRuleMutationParams> = {
+ type: CommandType.MUTATION,
+ id: 'sheet.mutation.delete-conditional-rule',
+ handler(accessor, params) {
+ if (!params) {
+ return false;
+ }
+ const { unitId, subUnitId, cfId } = params;
+ const conditionalFormatRuleModel = accessor.get(ConditionalFormatRuleModel);
+ conditionalFormatRuleModel.deleteRule(unitId, subUnitId, cfId);
+ return true;
+ },
+};
diff --git a/packages/sheets-conditional-format/src/commands/mutations/formula-mark-dirty.mutation.ts b/packages/sheets-conditional-format/src/commands/mutations/formula-mark-dirty.mutation.ts
new file mode 100644
index 0000000000..63bf6e11d6
--- /dev/null
+++ b/packages/sheets-conditional-format/src/commands/mutations/formula-mark-dirty.mutation.ts
@@ -0,0 +1,27 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import type { IMutation } from '@univerjs/core';
+import { CommandType } from '@univerjs/core';
+
+export interface IConditionalFormatFormulaMarkDirtyParams { [unitId: string]: { [sunUnitId: string]: { [formulaId: string]: boolean } } }
+export const ConditionalFormatFormulaMarkDirty: IMutation<IConditionalFormatFormulaMarkDirtyParams> = {
+ type: CommandType.MUTATION,
+ id: 'sheet.mutation.conditional-format-formula-mark-dirty',
+ handler() {
+ return true;
+ },
+};
diff --git a/packages/sheets-conditional-format/src/commands/mutations/move-conditional-rule.mutation.ts b/packages/sheets-conditional-format/src/commands/mutations/move-conditional-rule.mutation.ts
new file mode 100644
index 0000000000..06253a6d14
--- /dev/null
+++ b/packages/sheets-conditional-format/src/commands/mutations/move-conditional-rule.mutation.ts
@@ -0,0 +1,60 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import type { IMutation } from '@univerjs/core';
+import type { IAccessor } from '@wendellhu/redi';
+
+import {
+ CommandType,
+} from '@univerjs/core';
+import { ConditionalFormatRuleModel } from '../../models/conditional-format-rule-model';
+
+export interface IMoveConditionalRuleMutationParams {
+ unitId: string;
+ subUnitId: string;
+ cfId: string;
+ targetCfId: string;
+}
+
+export const MoveConditionalRuleMutation: IMutation<IMoveConditionalRuleMutationParams> = {
+ type: CommandType.MUTATION,
+ id: 'sheet.mutation.move-conditional-rule',
+ handler(accessor, params) {
+ if (!params) {
+ return false;
+ }
+ const { unitId, subUnitId, cfId, targetCfId } = params;
+ const conditionalFormatRuleModel = accessor.get(ConditionalFormatRuleModel);
+ conditionalFormatRuleModel.moveRulePriority(unitId, subUnitId, cfId, targetCfId);
+ return true;
+ },
+};
+export const MoveConditionalRuleMutationUndoFactory = (accessor: IAccessor, param: IMoveConditionalRuleMutationParams) => {
+ const { unitId, subUnitId, cfId } = param;
+ const conditionalFormatRuleModel = accessor.get(ConditionalFormatRuleModel);
+ const ruleList = conditionalFormatRuleModel.getSubunitRules(unitId, subUnitId);
+ if (!ruleList) {
+ return [];
+ }
+ const index = ruleList.findIndex((rule) => rule.cfId === cfId);
+ const preTargetRule = ruleList[index - 1];
+ if (!preTargetRule) {
+ return [];
+ }
+ return [{ id: MoveConditionalRuleMutation.id,
+ params: { unitId, subUnitId, cfId, targetCfId: preTargetRule.cfId } as IMoveConditionalRuleMutationParams },
+ ];
+};
diff --git a/packages/sheets-conditional-format/src/commands/mutations/set-conditional-rule.mutation.ts b/packages/sheets-conditional-format/src/commands/mutations/set-conditional-rule.mutation.ts
new file mode 100644
index 0000000000..2f0958da7f
--- /dev/null
+++ b/packages/sheets-conditional-format/src/commands/mutations/set-conditional-rule.mutation.ts
@@ -0,0 +1,55 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import type { IMutation } from '@univerjs/core';
+import {
+ CommandType, Tools,
+} from '@univerjs/core';
+import type { IAccessor } from '@wendellhu/redi';
+import { ConditionalFormatRuleModel } from '../../models/conditional-format-rule-model';
+import type { IConditionFormatRule } from '../../models/type';
+
+export interface ISetConditionalRuleMutationParams {
+ unitId: string;
+ subUnitId: string;
+ rule: IConditionFormatRule;
+}
+
+export const SetConditionalRuleMutation: IMutation<ISetConditionalRuleMutationParams> = {
+ type: CommandType.MUTATION,
+ id: 'sheet.mutation.set-conditional-rule',
+ handler(accessor, params) {
+ if (!params) {
+ return false;
+ }
+ const { unitId, subUnitId, rule } = params;
+ const conditionalFormatRuleModel = accessor.get(ConditionalFormatRuleModel);
+ conditionalFormatRuleModel.setRule(unitId, subUnitId, rule);
+ return true;
+ },
+};
+export const setConditionalRuleMutationUndoFactory = (accessor: IAccessor, param: ISetConditionalRuleMutationParams) => {
+ const conditionalFormatRuleModel = accessor.get(ConditionalFormatRuleModel);
+ const { unitId, subUnitId } = param;
+ const cfId = param.rule.cfId;
+ const rule = conditionalFormatRuleModel.getRule(unitId, subUnitId, cfId);
+ if (rule) {
+ return [{ id: SetConditionalRuleMutation.id,
+ params: { unitId, subUnitId, rule: Tools.deepClone(rule) } as ISetConditionalRuleMutationParams },
+ ];
+ }
+ return [];
+};
diff --git a/packages/sheets-conditional-format/src/commands/operations/open-conditional-format-panel.ts b/packages/sheets-conditional-format/src/commands/operations/open-conditional-format-panel.ts
new file mode 100644
index 0000000000..f74c1ac72f
--- /dev/null
+++ b/packages/sheets-conditional-format/src/commands/operations/open-conditional-format-panel.ts
@@ -0,0 +1,142 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import type { ICommand } from '@univerjs/core';
+import { CommandType, ICommandService } from '@univerjs/core';
+import type { IAccessor } from '@wendellhu/redi';
+import { SelectionManagerService } from '@univerjs/sheets';
+import { ConditionalFormatMenuController } from '../../controllers/cf.menu.controller';
+import { CFRuleType, CFSubRuleType, createDefaultRule } from '../../base/const';
+import type { IColorScale, IConditionFormatRule, IDataBar, IFormulaHighlightCell, IIconSet, IRankHighlightCell } from '../../models/type';
+import type { IClearRangeCfParams } from '../commands/clear-range-cf.command';
+import { ClearRangeCfCommand } from '../commands/clear-range-cf.command';
+import { ClearWorksheetCfCommand } from '../commands/clear-worksheet-cf.command';
+
+interface IOpenConditionalFormatOperatorParams {
+ value: number;
+}
+
+export enum CF_MENU_OPERATION {
+ createRule = 1,
+ viewRule,
+ highlightCell,
+ rank,
+ formula,
+ colorScale,
+ dataBar,
+ icon,
+ clearRangeRules,
+ clearWorkSheetRules,
+}
+export const OpenConditionalFormatOperator: ICommand = {
+ id: 'sheet.operation.open.conditional.format.panel',
+ type: CommandType.OPERATION,
+ handler: (accessor: IAccessor, params: IOpenConditionalFormatOperatorParams) => {
+ const conditionalFormatMenuController = accessor.get(ConditionalFormatMenuController);
+ const selectionManagerService = accessor.get(SelectionManagerService);
+ const commandService = accessor.get(ICommandService);
+
+ const ranges = selectionManagerService.getSelectionRanges() || [];
+
+ const type = params.value;
+ switch (type) {
+ case CF_MENU_OPERATION.highlightCell:{
+ conditionalFormatMenuController.openPanel({ ...createDefaultRule(), ranges });
+ break;
+ }
+ case CF_MENU_OPERATION.rank:{
+ const rule = {
+ ...createDefaultRule,
+ ranges,
+ rule: {
+ type: CFRuleType.highlightCell,
+ subType: CFSubRuleType.rank,
+ },
+ } as IConditionFormatRule<IRankHighlightCell>;
+ conditionalFormatMenuController.openPanel(rule);
+ break;
+ }
+ case CF_MENU_OPERATION.formula:{
+ const rule = {
+ ...createDefaultRule,
+ ranges,
+ rule: {
+ type: CFRuleType.highlightCell,
+ subType: CFSubRuleType.formula,
+ value: '=',
+ },
+ } as IConditionFormatRule<IFormulaHighlightCell>;
+ conditionalFormatMenuController.openPanel(rule);
+ break;
+ }
+ case CF_MENU_OPERATION.colorScale:{
+ const rule = {
+ ...createDefaultRule,
+ ranges,
+ rule: {
+ type: CFRuleType.colorScale,
+ config: [],
+ },
+ } as unknown as IConditionFormatRule<IColorScale>;
+ conditionalFormatMenuController.openPanel(rule);
+ break;
+ }
+ case CF_MENU_OPERATION.dataBar:{
+ const rule = {
+ ...createDefaultRule,
+ ranges,
+ rule: {
+ type: CFRuleType.dataBar,
+ },
+ } as unknown as IConditionFormatRule<IDataBar>;
+ conditionalFormatMenuController.openPanel(rule);
+ break;
+ }
+ case CF_MENU_OPERATION.icon:{
+ const rule = {
+ ...createDefaultRule,
+ ranges,
+ rule: {
+ type: CFRuleType.iconSet,
+ config: [],
+ isShowValue: true,
+ },
+ } as unknown as IConditionFormatRule<IIconSet>;
+ conditionalFormatMenuController.openPanel(rule);
+ break;
+ }
+ case CF_MENU_OPERATION.viewRule:{
+ conditionalFormatMenuController.openPanel();
+ break;
+ }
+ case CF_MENU_OPERATION.createRule:{
+ conditionalFormatMenuController.openPanel({ ...createDefaultRule(), ranges });
+ break;
+ }
+ case CF_MENU_OPERATION.clearRangeRules:{
+ commandService.executeCommand(ClearRangeCfCommand.id, { ranges } as IClearRangeCfParams);
+
+ break;
+ }
+ case CF_MENU_OPERATION.clearWorkSheetRules:{
+ commandService.executeCommand(ClearWorksheetCfCommand.id);
+ break;
+ }
+ }
+
+ return true;
+ },
+};
diff --git a/packages/sheets-conditional-format/src/components/color-picker/index.module.less b/packages/sheets-conditional-format/src/components/color-picker/index.module.less
new file mode 100644
index 0000000000..68a0793a80
--- /dev/null
+++ b/packages/sheets-conditional-format/src/components/color-picker/index.module.less
@@ -0,0 +1,25 @@
+.cf-color-picker {
+ padding: var(--padding-base);
+ font-size: var(--font-size-xs);
+ list-style: none;
+ background-color: rgb(var(--bg-color-secondary));
+ border: 1px solid rgb(var(--border-color));
+ border-radius: var(--border-radius-lg);
+ outline: none;
+ box-shadow: var(--box-shadow-base);
+}
+.cf-color-picker-icon {
+ cursor: pointer;
+ padding: 4px;
+ display: flex;
+ align-items: center;
+ &:hover {
+ background: rgb(var(--bg-color-hover));
+ border-radius: var(--border-radius-base);
+ }
+ .icon-dropdown {
+ font-size: 8px;
+ color: rgb(var(--text-color-secondary));
+ margin-left: 6px;
+ }
+}
diff --git a/packages/sheets-conditional-format/src/components/color-picker/index.tsx b/packages/sheets-conditional-format/src/components/color-picker/index.tsx
new file mode 100644
index 0000000000..4019a211e2
--- /dev/null
+++ b/packages/sheets-conditional-format/src/components/color-picker/index.tsx
@@ -0,0 +1,58 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { Dropdown, ColorPicker as OriginColorPicker } from '@univerjs/design';
+import { ColorKit } from '@univerjs/core';
+import { ComponentManager } from '@univerjs/ui';
+import { useDependency } from '@wendellhu/redi/react-bindings';
+import React, { useMemo } from 'react';
+import { MoreDownSingle } from '@univerjs/icons';
+
+import styles from './index.module.less';
+
+interface IColorPickerProps {
+ color: string;
+ onChange: (color: string) => void;
+ disable?: boolean;
+ iconId?: string;
+ className?: string;
+ isNeedDropdownIcon?: boolean;
+};
+
+export const ColorPicker = (props: IColorPickerProps) => {
+ const { color, onChange, disable = false, iconId = 'PaintBucket', className, isNeedDropdownIcon = true } = props;
+ const componentManager = useDependency(ComponentManager);
+
+ const colorKit = useMemo(() => new ColorKit(color), [color]);
+ const Icon = componentManager.get(iconId);
+
+ return Icon && (!disable
+ ? (
+ <Dropdown overlay={(
+ <div className={`${styles.cfColorPicker} `}>
+ <OriginColorPicker color={color} onChange={onChange} />
+ </div>
+ )}
+ >
+ <span className={`${styles.cfColorPickerIcon} ${className}`}>
+ <Icon extend={{ colorChannel1: colorKit.isValid ? color : 'rgb(var(--primary-color))' }} />
+ {isNeedDropdownIcon && <MoreDownSingle className={styles.iconDropdown} />}
+ </span>
+
+ </Dropdown>
+ )
+ : <Icon className={className} extend={{ colorChannel1: colorKit.isValid ? color : 'rgb(var(--primary-color))' }} />);
+};
diff --git a/packages/sheets-conditional-format/src/components/conditional-style-editor/index.module.less b/packages/sheets-conditional-format/src/components/conditional-style-editor/index.module.less
new file mode 100644
index 0000000000..8172758083
--- /dev/null
+++ b/packages/sheets-conditional-format/src/components/conditional-style-editor/index.module.less
@@ -0,0 +1,18 @@
+.cf-style-edit {
+ display: flex;
+ justify-content: space-between;
+ margin: 10px 0px;
+ .button-item {
+ cursor: pointer;
+ border-radius: var(--border-radius-base);
+ display: flex;
+ align-items: center;
+ padding: 0px 3px;
+ &:hover {
+ background-color: rgb(var(--grey-100));
+ }
+ }
+ .isActive {
+ background-color: rgb(var(--grey-100));
+ }
+}
diff --git a/packages/sheets-conditional-format/src/components/conditional-style-editor/index.tsx b/packages/sheets-conditional-format/src/components/conditional-style-editor/index.tsx
new file mode 100644
index 0000000000..8ee2348200
--- /dev/null
+++ b/packages/sheets-conditional-format/src/components/conditional-style-editor/index.tsx
@@ -0,0 +1,132 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import React, { useEffect, useState } from 'react';
+import { BooleanNumber } from '@univerjs/core';
+import { ComponentManager } from '@univerjs/ui';
+import { useDependency } from '@wendellhu/redi/react-bindings';
+import cl from 'clsx';
+import { ColorPicker } from '../color-picker';
+import type { IHighlightCell } from '../../models/type';
+import { removeUndefinedAttr } from '../../utils/removeUndefinedAttr';
+import styles from './index.module.less';
+
+interface IConditionalStyleEditorProps {
+ className?: string;
+ style?: IHighlightCell['style'];
+ onChange: (style: IHighlightCell['style']) => void;
+};
+
+const getAnotherBooleanNumber = (v: BooleanNumber | undefined) => {
+ return [BooleanNumber.FALSE, undefined].includes(v) ? BooleanNumber.TRUE : BooleanNumber.FALSE;
+};
+const getBooleanFromNumber = (v: BooleanNumber) => v !== BooleanNumber.FALSE;
+export const ConditionalStyleEditor = (props: IConditionalStyleEditorProps) => {
+ const { style, onChange, className } = props;
+ const componentManager = useDependency(ComponentManager);
+ const [isBold, isBoldSet] = useState<BooleanNumber | undefined>(() => {
+ const defaultV = undefined;
+ if (!style?.bl) {
+ return defaultV;
+ }
+ return style.bl;
+ });
+ const [isItalic, isItalicSet] = useState<BooleanNumber | undefined>(() => {
+ const defaultV = undefined;
+ if (!style?.it) {
+ return defaultV;
+ }
+ return style.it;
+ });
+ const [isUnderline, isUnderlineSet] = useState<BooleanNumber | undefined>(() => {
+ const defaultV = undefined;
+ if (!style?.ul) {
+ return defaultV;
+ }
+ return style.ul.s;
+ });
+ const [isStrikethrough, isStrikethroughSet] = useState<BooleanNumber | undefined>(() => {
+ const defaultV = undefined;
+ if (!style?.st) {
+ return defaultV;
+ }
+ return style.st.s;
+ });
+ const [fontColor, fontColorSet] = useState(() => {
+ const defaultV = '#2f56ef';
+ if (!style?.cl?.rgb) {
+ return defaultV;
+ }
+ return style.cl.rgb;
+ });
+ const [bgColor, bgColorSet] = useState(() => {
+ const defaultV = '#e8ecfc';
+ if (!style?.bg?.rgb) {
+ return defaultV;
+ }
+ return style.bg.rgb;
+ });
+ const BoldSingleIcon = componentManager.get('BoldSingle');
+ const ItalicSingleIcon = componentManager.get('ItalicSingle');
+ const UnderlineSingleIcon = componentManager.get('UnderlineSingle');
+ const StrikethroughSingle = componentManager.get('StrikethroughSingle');
+ useEffect(() => {
+ const resultStyle: IHighlightCell['style'] = {
+ bl: isBold,
+ it: isItalic,
+ };
+ if (fontColor !== undefined) {
+ resultStyle.cl = { rgb: fontColor };
+ }
+ if (bgColor !== undefined) {
+ resultStyle.bg = { rgb: bgColor };
+ }
+ if (isStrikethrough !== undefined) {
+ resultStyle.st = { s: isStrikethrough };
+ }
+ if (isUnderline !== undefined) {
+ resultStyle.ul = { s: isUnderline };
+ }
+ onChange(removeUndefinedAttr(resultStyle));
+ // eslint-disable-next-line react-hooks/exhaustive-deps
+ }, [isBold, isItalic, isUnderline, isStrikethrough, fontColor, bgColor]);
+ return (
+ <div className={`${styles.cfStyleEdit} ${className}`}>
+ { BoldSingleIcon && (
+ <div className={cl({ [styles.isActive]: getBooleanFromNumber(isBold || BooleanNumber.FALSE) }, styles.buttonItem)} onClick={() => isBoldSet(getAnotherBooleanNumber(isBold))}>
+ <BoldSingleIcon />
+ </div>
+ )}
+ { ItalicSingleIcon && (
+ <div className={cl({ [styles.isActive]: getBooleanFromNumber(isItalic || BooleanNumber.FALSE) }, styles.buttonItem)} onClick={() => isItalicSet(getAnotherBooleanNumber(isItalic))}>
+ <ItalicSingleIcon />
+ </div>
+ )}
+ { UnderlineSingleIcon && (
+ <div className={cl({ [styles.isActive]: getBooleanFromNumber(isUnderline || BooleanNumber.FALSE) }, styles.buttonItem)} onClick={() => isUnderlineSet(getAnotherBooleanNumber(isUnderline))}>
+ <UnderlineSingleIcon />
+ </div>
+ )}
+ { StrikethroughSingle && (
+ <div className={cl({ [styles.isActive]: getBooleanFromNumber(isStrikethrough || BooleanNumber.FALSE) }, styles.buttonItem)} onClick={() => isStrikethroughSet(getAnotherBooleanNumber(isStrikethrough))}>
+ <StrikethroughSingle />
+ </div>
+ )}
+ <ColorPicker color={fontColor} onChange={fontColorSet} iconId="FontColor" />
+ <ColorPicker color={bgColor} onChange={bgColorSet} iconId="PaintBucket" />
+ </div>
+ );
+};
diff --git a/packages/sheets-conditional-format/src/components/panel/index.module.less b/packages/sheets-conditional-format/src/components/panel/index.module.less
new file mode 100644
index 0000000000..6c7ea37cf2
--- /dev/null
+++ b/packages/sheets-conditional-format/src/components/panel/index.module.less
@@ -0,0 +1,73 @@
+.conditional-format-wrap {
+ height: 100%;
+ display: flex;
+ flex-direction: column;
+ justify-content: space-between;
+
+ .cf-rule-item {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ .preview {
+ flex-shrink: 0;
+ }
+ }
+ .create-rule {
+ margin-bottom: 20px;
+ .button {
+ border: 1px solid rgb(var(--border-color));
+ border-radius: var(--border-radius-base);
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ padding: var(--padding-base);
+ cursor: pointer;
+ font-size: var(--font-size-sm);
+ }
+ }
+ .title {
+ margin-top: var(--margin-base);
+ font-size: 15px;
+ color: rgb(var(--text-color-secondary));
+ }
+ .label {
+ font-size: 12px;
+ margin-top: var(--margin-sm);
+ color: rgb(var(--text-color-secondary));
+ }
+ .label-container {
+ display: flex;
+ align-items: center;
+ .input-width {
+ width: 100px;
+ }
+ }
+ .m-t-base {
+ //16
+ margin-top: var(--margin-base);
+ }
+ .m-t-sm {
+ //12
+ margin-top: var(--margin-sm);
+ }
+ .m-t-xl {
+ margin-top: var(--margin-xl);
+ }
+ .m-l-sm {
+ // 12
+ margin-left: var(--margin-sm);
+ }
+ .m-l-xl {
+ margin-left: var(--margin-xl);
+ }
+ .m-l-xxs {
+ // 4
+ margin-left: var(--margin-xxs);
+ }
+ .m-l-0 {
+ margin-left: 0px;
+ }
+ .m-r-0 {
+ margin-right: 0px;
+ }
+}
diff --git a/packages/sheets-conditional-format/src/components/panel/index.tsx b/packages/sheets-conditional-format/src/components/panel/index.tsx
new file mode 100644
index 0000000000..1f3ea7e0c3
--- /dev/null
+++ b/packages/sheets-conditional-format/src/components/panel/index.tsx
@@ -0,0 +1,55 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import React, { useState } from 'react';
+import type { IConditionFormatRule } from '../../models/type';
+import styles from './index.module.less';
+import { RuleList } from './rule-list';
+import { RuleEdit } from './rule-edit';
+
+interface IConditionFormatPanelProps { rule?: IConditionFormatRule };
+
+export const ConditionFormatPanel = (props: IConditionFormatPanelProps) => {
+ const [currentEditRule, currentEditRuleSet] = useState<IConditionFormatRule | undefined>(props.rule);
+ const [isShowRuleEditor, isShowRuleEditorSet] = useState(!!props.rule);
+
+ const createCfRule = () => {
+ isShowRuleEditorSet(true);
+ };
+
+ const handleCancel = () => {
+ isShowRuleEditorSet(false);
+ currentEditRuleSet(undefined);
+ };
+
+ const handleRuleClick = (rule: IConditionFormatRule) => {
+ currentEditRuleSet(rule);
+ isShowRuleEditorSet(true);
+ };
+
+ return (
+ <div className={styles.conditionalFormatWrap}>
+ {isShowRuleEditor
+ ? (
+ <RuleEdit onCancel={handleCancel} rule={currentEditRule} />
+ )
+ : (
+ <RuleList onClick={handleRuleClick} onCreate={createCfRule} />
+ )}
+
+ </div>
+ );
+};
diff --git a/packages/sheets-conditional-format/src/components/panel/rule-edit/colorScale.tsx b/packages/sheets-conditional-format/src/components/panel/rule-edit/colorScale.tsx
new file mode 100644
index 0000000000..2e6b02ef5e
--- /dev/null
+++ b/packages/sheets-conditional-format/src/components/panel/rule-edit/colorScale.tsx
@@ -0,0 +1,317 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import React, { useEffect, useMemo, useState } from 'react';
+import { useDependency } from '@wendellhu/redi/react-bindings';
+import { IUniverInstanceService, LocaleService } from '@univerjs/core';
+import { InputNumber, Select } from '@univerjs/design';
+import { TextEditor } from '@univerjs/ui';
+import { CFRuleType, CFValueType, createDefaultValueByValueType, SHEET_CONDITION_FORMAT_PLUGIN } from '../../../base/const';
+import { ColorPicker } from '../../color-picker';
+import type { IColorScale, IConditionalFormatRuleConfig } from '../../../models/type';
+import stylesBase from '../index.module.less';
+import { Preview } from '../../preview';
+import styles from './index.module.less';
+import type { IStyleEditorProps } from './type';
+
+const createOptionItem = (text: string, localeService: LocaleService) => ({ label: localeService.t(`sheet.cf.valueType.${text}`), value: text });
+
+const TextInput = (props: { id: string; type: CFValueType | 'none';value: number | string;onChange: (v: number | string) => void; className: string }) => {
+ const { type, className, onChange, id, value } = props;
+ const univerInstanceService = useDependency(IUniverInstanceService);
+ const unitId = univerInstanceService.getCurrentUniverSheetInstance().getUnitId();
+ const subUnitId = univerInstanceService.getCurrentUniverSheetInstance().getActiveSheet().getSheetId();
+ const formulaInitValue = useMemo(() => {
+ return String(value).startsWith('=') ? String(value) : '=';
+ }, [value]);
+ const config = useMemo(() => {
+ if ([CFValueType.max, CFValueType.min, 'none'].includes(type as CFValueType)) {
+ return { disabled: true };
+ }
+ if ([CFValueType.percent, CFValueType.percentile].includes(type as CFValueType)) {
+ return {
+ min: 0, max: 100,
+ };
+ }
+ return {
+ min: Number.MIN_SAFE_INTEGER, max: Number.MAX_SAFE_INTEGER,
+ };
+ }, [type]);
+ if (type === CFValueType.formula) {
+ return (
+ <TextEditor
+ openForSheetSubUnitId={subUnitId}
+ openForSheetUnitId={unitId}
+ id={`${SHEET_CONDITION_FORMAT_PLUGIN}_colo_scale_${id}`}
+ value={formulaInitValue}
+ style={{ maxWidth: '50%', marginLeft: 4 }}
+ canvasStyle={{ fontSize: 10 }}
+ onlyInputFormula={true}
+ onChange={(v = '') => {
+ const formula = v || '';
+ onChange(formula);
+ }}
+ />
+ );
+ } else {
+ return <InputNumber className={className} value={Number(props.value) || 0} onChange={(v) => props.onChange(v || 0)} {...config} />;
+ }
+};
+export const ColorScaleStyleEditor = (props: IStyleEditorProps) => {
+ const { interceptorManager } = props;
+ const localeService = useDependency(LocaleService);
+
+ const rule = props.rule?.type === CFRuleType.colorScale ? props.rule : undefined as IColorScale | undefined;
+ const commonOptions = [createOptionItem(CFValueType.num, localeService), createOptionItem(CFValueType.percent, localeService), createOptionItem(CFValueType.percentile, localeService), createOptionItem(CFValueType.formula, localeService)];
+ const minOptions = [createOptionItem(CFValueType.min, localeService), ...commonOptions];
+ const medianOptions = [createOptionItem('none', localeService), ...commonOptions];
+ const maxOptions = [createOptionItem(CFValueType.max, localeService), ...commonOptions];
+
+ const [minType, minTypeSet] = useState(() => {
+ const defaultV = CFValueType.min;
+ if (!rule) {
+ return defaultV;
+ }
+ return rule.config[0]?.value.type || defaultV;
+ });
+ const [medianType, medianTypeSet] = useState<CFValueType | 'none'>(() => {
+ const defaultV = 'none';
+ if (!rule) {
+ return defaultV;
+ }
+ if (rule.config.length !== 3) {
+ return defaultV;
+ }
+ return rule.config[1]?.value.type || defaultV;
+ });
+ const [maxType, maxTypeSet] = useState(() => {
+ const defaultV = CFValueType.max;
+ if (!rule) {
+ return defaultV;
+ }
+ return rule.config[rule.config.length - 1]?.value.type || defaultV;
+ });
+
+ const [minValue, minValueSet] = useState(() => {
+ const defaultV = 10;
+ if (!rule) {
+ return defaultV;
+ }
+ const valueConfig = rule.config[0];
+ return valueConfig?.value.value === undefined ? defaultV : valueConfig?.value.value;
+ });
+ const [medianValue, medianValueSet] = useState(() => {
+ const defaultV = 50;
+ if (!rule) {
+ return defaultV;
+ }
+ if (rule.config.length !== 3) {
+ return defaultV;
+ }
+ const v = rule.config[1]?.value.value;
+ return v === undefined ? defaultV : v;
+ });
+ const [maxValue, maxValueSet] = useState(() => {
+ const defaultV = 90;
+ if (!rule) {
+ return defaultV;
+ }
+ const v = rule.config[rule.config.length - 1]?.value.value;
+ return v === undefined ? defaultV : v;
+ });
+
+ const [minColor, minColorSet] = useState(() => {
+ const defaultV = '#d0d9fb';
+ if (!rule) {
+ return defaultV;
+ }
+ return rule.config[0]?.color || defaultV;
+ });
+ const [medianColor, medianColorSet] = useState(() => {
+ const defaultV = '#7790f3';
+ if (!rule) {
+ return defaultV;
+ }
+ if (rule.config.length !== 3) {
+ return defaultV;
+ }
+ return rule.config[1]?.color || defaultV;
+ });
+ const [maxColor, maxColorSet] = useState(() => {
+ const defaultV = '#2e55ef';
+ if (!rule) {
+ return defaultV;
+ }
+ return rule.config[rule.config.length - 1]?.color || defaultV;
+ });
+
+ const getResult = useMemo(() => (option: {
+ minType: typeof minType;
+ medianType: typeof medianType;
+ maxType: typeof maxType;
+ minValue: number | string;
+ medianValue: number | string;
+ maxValue: number | string;
+ minColor: string;
+ medianColor: string;
+ maxColor: string;
+ }) => {
+ const { minType,
+ medianType,
+ maxType,
+ minValue,
+ medianValue,
+ maxValue,
+ minColor,
+ medianColor,
+ maxColor } = option;
+ const list = [];
+ list.push({ color: minColor, value: { type: minType, value: minValue } });
+ medianType !== 'none' && list.push({ color: medianColor, value: { type: medianType, value: medianValue } });
+ list.push({ color: maxColor, value: { type: maxType, value: maxValue } });
+ const config: IColorScale['config'] = list.map((item, index) => ({ ...item, index }));
+ return { config, type: CFRuleType.colorScale };
+ }, []);
+
+ useEffect(() => {
+ const dispose = interceptorManager.intercept(interceptorManager.getInterceptPoints().submit, {
+ handler() {
+ return getResult({ minType, medianType, maxType, minValue, medianValue, maxValue, minColor, medianColor, maxColor });
+ },
+ });
+ return dispose as () => void;
+ }, [getResult, minType, medianType, maxType, minValue, medianValue, maxValue, minColor, medianColor, maxColor, interceptorManager]);
+
+ const handleChange = (option: {
+ minType: typeof minType;
+ medianType: typeof medianType;
+ maxType: typeof maxType;
+ minValue: number | string;
+ medianValue: number | string;
+ maxValue: number | string;
+ minColor: string;
+ medianColor: string;
+ maxColor: string;
+ }) => {
+ props.onChange(getResult(option));
+ };
+ return (
+ <div>
+ <div className={stylesBase.title}>{localeService.t('sheet.cf.panel.styleRule')}</div>
+ <div className={`${styles.cfPreviewWrap}`}>
+ <Preview rule={getResult({ minType, medianType, maxType, minValue, medianValue, maxValue, minColor, medianColor, maxColor }) as IConditionalFormatRuleConfig} />
+ </div>
+ <div className={stylesBase.label}>{localeService.t('sheet.cf.valueType.min')}</div>
+ <div className={`${stylesBase.labelContainer} ${stylesBase.mTSm}`}>
+ <Select
+ options={minOptions}
+ value={minType}
+ onChange={(v) => {
+ minTypeSet(v as CFValueType);
+ const value = createDefaultValueByValueType(v as CFValueType, 10);
+ minValueSet(value);
+ handleChange({ minType: v as CFValueType, medianType, maxType, minValue: value, medianValue, maxValue, minColor, medianColor, maxColor });
+ }}
+ />
+ <TextInput
+ id="min"
+ className={`${stylesBase.mLXxs}`}
+ value={minValue}
+ type={minType}
+ onChange={(v) => {
+ minValueSet(v);
+ handleChange({ minType, medianType, maxType, minValue: v, medianValue, maxValue, minColor, medianColor, maxColor });
+ }}
+ />
+ <ColorPicker
+ className={stylesBase.mLXxs}
+ color={minColor}
+ onChange={(v) => {
+ minColorSet(v);
+ handleChange({ minType, medianType, maxType, minValue, medianValue, maxValue, minColor: v, medianColor, maxColor });
+ }}
+ />
+ </div>
+ <div className={stylesBase.label}>{localeService.t('sheet.cf.panel.medianValue')}</div>
+ <div className={`${stylesBase.labelContainer} ${stylesBase.mTSm}`}>
+ <Select
+ options={medianOptions}
+ value={medianType}
+ onChange={(v) => {
+ medianTypeSet(v as CFValueType);
+ const value = createDefaultValueByValueType(v as CFValueType, 50);
+ medianValueSet(value);
+ handleChange({ minType, medianType: v as CFValueType, maxType, minValue, medianValue: value, maxValue, minColor, medianColor, maxColor });
+ }}
+ />
+
+ <TextInput
+ id="median"
+ className={` ${stylesBase.mLXxs}`}
+ value={medianValue}
+ type={medianType}
+ onChange={(v) => {
+ medianValueSet(v);
+ handleChange({ minType, medianType, maxType, minValue, medianValue: v, maxValue, minColor, medianColor, maxColor });
+ }}
+ />
+ {medianType !== 'none' && (
+ <ColorPicker
+ className={stylesBase.mLXxs}
+ color={medianColor}
+ onChange={(v) => {
+ medianColorSet(v);
+ handleChange({ minType, medianType, maxType, minValue, medianValue, maxValue, minColor, medianColor: v, maxColor });
+ }}
+ />
+ )}
+
+ </div>
+ <div className={stylesBase.label}>{localeService.t('sheet.cf.valueType.max')}</div>
+ <div className={`${stylesBase.labelContainer} ${stylesBase.mTSm}`}>
+ <Select
+ options={maxOptions}
+ value={maxType}
+ onChange={(v) => {
+ maxTypeSet(v as CFValueType);
+ const value = createDefaultValueByValueType(v as CFValueType, 90);
+ maxValueSet(value);
+ handleChange({ minType, medianType, maxType: v as CFValueType, minValue, medianValue, maxValue: value, minColor, medianColor, maxColor });
+ }}
+ />
+ <TextInput
+ id="max"
+ className={`${stylesBase.mLXxs}`}
+ value={maxValue}
+ type={maxType}
+ onChange={(v) => {
+ maxValueSet(v);
+ handleChange({ minType, medianType, maxType, minValue, medianValue, maxValue: v, minColor, medianColor, maxColor });
+ }}
+ />
+ <ColorPicker
+ className={stylesBase.mLXxs}
+ color={maxColor}
+ onChange={(v) => {
+ maxColorSet(v);
+ handleChange({ minType, medianType, maxType, minValue, medianValue, maxValue, minColor, medianColor, maxColor: v });
+ }}
+ />
+ </div>
+
+ </div>
+ );
+};
diff --git a/packages/sheets-conditional-format/src/components/panel/rule-edit/dataBar.tsx b/packages/sheets-conditional-format/src/components/panel/rule-edit/dataBar.tsx
new file mode 100644
index 0000000000..374cfde66b
--- /dev/null
+++ b/packages/sheets-conditional-format/src/components/panel/rule-edit/dataBar.tsx
@@ -0,0 +1,302 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import React, { useEffect, useMemo, useRef, useState } from 'react';
+import { InputNumber, Radio, RadioGroup, Select } from '@univerjs/design';
+import { useDependency } from '@wendellhu/redi/react-bindings';
+import { IUniverInstanceService, LocaleService } from '@univerjs/core';
+import { TextEditor } from '@univerjs/ui';
+import { CFRuleType, CFValueType, createDefaultValueByValueType, SHEET_CONDITION_FORMAT_PLUGIN } from '../../../base/const';
+import type { IConditionalFormatRuleConfig, IValueConfig } from '../../../models/type';
+import { ColorPicker } from '../../color-picker';
+import stylesBase from '../index.module.less';
+import { Preview } from '../../preview';
+import styles from './index.module.less';
+import type { IStyleEditorProps } from './type';
+
+const createOptionItem = (text: CFValueType, localeService: LocaleService) => ({ label: localeService.t(`sheet.cf.valueType.${text}`), value: text });
+
+const InputText = (props: { disabled?: boolean; id: string; className: string; type: CFValueType;value: string | number;onChange: (v: string | number) => void }) => {
+ const { onChange, className, value, type, id, disabled = false } = props;
+ const univerInstanceService = useDependency(IUniverInstanceService);
+ const unitId = univerInstanceService.getCurrentUniverSheetInstance().getUnitId();
+ const subUnitId = univerInstanceService.getCurrentUniverSheetInstance().getActiveSheet().getSheetId();
+ const _value = useRef(value);
+ const config = useMemo(() => {
+ if ([CFValueType.percentile, CFValueType.percent].includes(type)) {
+ return {
+ max: 100,
+ min: 0,
+ };
+ }
+ return {
+ min: Number.MIN_SAFE_INTEGER, max: Number.MAX_SAFE_INTEGER,
+ };
+ }, [type]);
+ if (type === CFValueType.formula) {
+ const v = String(_value.current).startsWith('=') ? String(_value.current) || '' : '=';
+ return (
+ <TextEditor
+ id={`${SHEET_CONDITION_FORMAT_PLUGIN}_data_bar_${id}`}
+ value={v}
+ openForSheetSubUnitId={subUnitId}
+ openForSheetUnitId={unitId}
+ style={{ width: '47%', marginLeft: 14 }}
+ canvasStyle={{ fontSize: 10 }}
+ onlyInputFormula={true}
+ onChange={(v = '') => {
+ const formula = v || '';
+ onChange(formula);
+ }}
+ />
+ );
+ }
+ return (
+ <InputNumber
+ className={className}
+ value={Number(value) || 0}
+ disabled={disabled}
+ onChange={(v) => {
+ onChange(v || 0);
+ }}
+ {...config}
+ />
+ );
+};
+export const DataBarStyleEditor = (props: IStyleEditorProps) => {
+ const { interceptorManager } = props;
+ const localeService = useDependency(LocaleService);
+
+ const rule = props.rule?.type === CFRuleType.dataBar ? props.rule : undefined;
+ const [isGradient, isGradientSet] = useState(() => {
+ const defaultV = '0';
+ if (!rule) {
+ return defaultV;
+ }
+ return rule.config?.isGradient ? '1' : '0';
+ });
+ const [positiveColor, positiveColorSet] = useState(() => {
+ const defaultV = '#abd91a';
+ if (!rule) {
+ return defaultV;
+ }
+ return rule.config?.positiveColor || defaultV;
+ });
+ const [nativeColor, nativeColorSet] = useState(() => {
+ const defaultV = '#ffbe38';
+ if (!rule) {
+ return defaultV;
+ }
+ return rule.config?.nativeColor || defaultV;
+ });
+ const commonOptions = [createOptionItem(CFValueType.num, localeService), createOptionItem(CFValueType.percent, localeService), createOptionItem(CFValueType.percentile, localeService), createOptionItem(CFValueType.formula, localeService)];
+ const minOptions = [createOptionItem(CFValueType.min, localeService), ...commonOptions];
+ const maxOptions = [createOptionItem(CFValueType.max, localeService), ...commonOptions];
+ const [minValueType, minValueTypeSet] = useState<CFValueType>(() => {
+ const defaultV = minOptions[0].value as CFValueType;
+ if (!rule) {
+ return defaultV;
+ }
+ return rule.config?.min.type || defaultV;
+ });
+ const [maxValueType, maxValueTypeSet] = useState<CFValueType>(() => {
+ const defaultV = maxOptions[0].value as CFValueType;
+ if (!rule) {
+ return defaultV;
+ }
+ return rule.config?.max.type || defaultV;
+ });
+ const [minValue, minValueSet] = useState(() => {
+ const defaultV = 0;
+ if (!rule) {
+ return defaultV;
+ }
+ const value = rule.config?.min || {};
+ if (value.type === CFValueType.formula) {
+ return value.value || '=';
+ }
+ return value.value || defaultV;
+ });
+ const [maxValue, maxValueSet] = useState(() => {
+ const defaultV = 100;
+ if (!rule) {
+ return defaultV;
+ }
+ const value = rule.config?.max || {};
+ if (value.type === CFValueType.formula) {
+ return value.value || '=';
+ }
+ return value.value === undefined ? defaultV : value.value;
+ });
+
+ const getResult = (option: { minValueType: CFValueType ;
+ minValue: number | string;
+ maxValueType: CFValueType ;
+ maxValue: number | string;
+ isGradient: string;
+ positiveColor: string;
+ nativeColor: string; }) => {
+ const config: { min: IValueConfig;
+ max: IValueConfig;
+ isGradient: boolean;
+ positiveColor: string;
+ nativeColor: string; } = {
+ min: { type: option.minValueType, value: option.minValue },
+ max: { type: option.maxValueType, value: option.maxValue },
+ isGradient: option.isGradient === '1',
+ positiveColor: option.positiveColor,
+ nativeColor: option.nativeColor,
+ };
+ return { config, type: CFRuleType.dataBar };
+ };
+ useEffect(() => {
+ const dispose = interceptorManager.intercept(interceptorManager.getInterceptPoints().submit, {
+ handler() {
+ return getResult({ isGradient, minValue, minValueType, maxValue, maxValueType, positiveColor, nativeColor });
+ },
+ });
+ return dispose as () => void;
+ }, [isGradient, minValue, minValueType, maxValue, maxValueType, positiveColor, nativeColor, interceptorManager]);
+
+ const _handleChange = (option: { minValueType: CFValueType ;
+ minValue: number | string;
+ maxValueType: CFValueType ;
+ maxValue: number | string;
+ isGradient: string;
+ positiveColor: string;
+ nativeColor: string; }) => {
+ props.onChange(getResult(option));
+ };
+
+ const handlePositiveColorChange = (color: string) => {
+ positiveColorSet(color);
+
+ _handleChange({ isGradient, minValue, minValueType, maxValue, maxValueType, positiveColor: color, nativeColor });
+ };
+ const handleNativeColorChange = (color: string) => {
+ nativeColorSet(color);
+ _handleChange({ isGradient, minValue, minValueType, maxValue, maxValueType, positiveColor, nativeColor: color });
+ };
+
+ const isShowInput = (type: string) => {
+ return commonOptions.map((item) => item.value).includes(type as CFValueType);
+ };
+
+ return (
+ <div>
+ <div className={stylesBase.title}>
+ {localeService.t('sheet.cf.panel.styleRule')}
+ </div>
+ <div className={`${styles.cfPreviewWrap}`}>
+ <Preview rule={getResult({ isGradient, minValue, minValueType, maxValue, maxValueType, positiveColor, nativeColor }) as IConditionalFormatRuleConfig} />
+ </div>
+ <div>
+ <div className={stylesBase.label}>
+ {localeService.t('sheet.cf.panel.fillType')}
+ </div>
+
+ <div className={`${stylesBase.mTSm} ${stylesBase.mLXxs} `}>
+ <RadioGroup
+ value={isGradient}
+ onChange={(v) => {
+ isGradientSet(v as string);
+ _handleChange({ isGradient: v as string, minValue, minValueType, maxValue, maxValueType, positiveColor, nativeColor });
+ }}
+ >
+ <Radio value="0">
+ <span className={styles.text}>{localeService.t('sheet.cf.panel.pureColor')}</span>
+ </Radio>
+ <Radio value="1">
+ <span className={styles.text}>{localeService.t('sheet.cf.panel.gradient')}</span>
+ </Radio>
+ </RadioGroup>
+ </div>
+ </div>
+ <div>
+ <div className={stylesBase.label}>{localeService.t('sheet.cf.panel.colorSet')}</div>
+ <div className={`${stylesBase.labelContainer} ${stylesBase.mTSm} ${stylesBase.mLXxs}`}>
+ <div className={`${stylesBase.labelContainer}`}>
+ <div className={`${styles.text}`}>{localeService.t('sheet.cf.panel.native')}</div>
+ <ColorPicker
+ color={nativeColor}
+ onChange={handleNativeColorChange}
+ />
+ </div>
+ <div className={`${stylesBase.labelContainer} ${stylesBase.mLSm} `}>
+ <div className={`${styles.text} `}>{localeService.t('sheet.cf.panel.positive')}</div>
+ <ColorPicker
+ color={positiveColor}
+ onChange={handlePositiveColorChange}
+ />
+ </div>
+ </div>
+
+ </div>
+ <div>
+ <div className={stylesBase.label}>{localeService.t('sheet.cf.valueType.min')}</div>
+ <div className={`${stylesBase.mTSm} ${stylesBase.labelContainer}`}>
+ <Select
+ options={minOptions}
+ value={minValueType}
+ onChange={(v) => {
+ minValueTypeSet(v as CFValueType);
+ const value = createDefaultValueByValueType(v as CFValueType, 10);
+ minValueSet(value);
+ _handleChange({ isGradient, minValue: value, minValueType: v as CFValueType, maxValue, maxValueType, positiveColor, nativeColor });
+ }}
+ />
+
+ <InputText
+ disabled={!isShowInput(minValueType)}
+ id="min"
+ type={minValueType}
+ className={stylesBase.mLSm}
+ value={minValue}
+ onChange={(v) => {
+ minValueSet(v || 0);
+ _handleChange({ isGradient, minValue: v || 0, minValueType, maxValue, maxValueType, positiveColor, nativeColor });
+ }}
+ />
+ </div>
+ <div className={stylesBase.label}>{localeService.t('sheet.cf.valueType.max')}</div>
+ <div className={`${stylesBase.mTSm} ${stylesBase.labelContainer}`}>
+ <Select
+ options={maxOptions}
+ value={maxValueType}
+ onChange={(v) => {
+ maxValueTypeSet(v as CFValueType);
+ const value = createDefaultValueByValueType(v as CFValueType, 90);
+ maxValueSet(value);
+ _handleChange({ isGradient, minValue, minValueType, maxValue: value, maxValueType: v as CFValueType, positiveColor, nativeColor });
+ }}
+ />
+ <InputText
+ disabled={!isShowInput(maxValueType)}
+ id="max"
+ type={maxValueType}
+ className={stylesBase.mLSm}
+ value={maxValue}
+ onChange={(v) => {
+ maxValueSet(v || 0);
+ _handleChange({ isGradient, minValue, minValueType, maxValue: v || 0, maxValueType, positiveColor, nativeColor });
+ }}
+ />
+ </div>
+ </div>
+
+ </div>
+ );
+};
diff --git a/packages/sheets-conditional-format/src/components/panel/rule-edit/formula.tsx b/packages/sheets-conditional-format/src/components/panel/rule-edit/formula.tsx
new file mode 100644
index 0000000000..1aa7d7dae2
--- /dev/null
+++ b/packages/sheets-conditional-format/src/components/panel/rule-edit/formula.tsx
@@ -0,0 +1,102 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import React, { useEffect, useState } from 'react';
+import { useDependency } from '@wendellhu/redi/react-bindings';
+import { IUniverInstanceService, LocaleService } from '@univerjs/core';
+import { TextEditor } from '@univerjs/ui';
+import { CFRuleType, CFSubRuleType, SHEET_CONDITION_FORMAT_PLUGIN } from '../../../base/const';
+import { ConditionalStyleEditor } from '../../conditional-style-editor';
+import type { IAverageHighlightCell, IConditionalFormatRuleConfig, IHighlightCell, IRankHighlightCell } from '../../../models/type';
+import stylesBase from '../index.module.less';
+import { Preview } from '../../preview';
+import styles from './index.module.less';
+import type { IStyleEditorProps } from './type';
+
+export const FormulaStyleEditor = (props: IStyleEditorProps) => {
+ const { onChange, interceptorManager } = props;
+ const localeService = useDependency(LocaleService);
+ const univerInstanceService = useDependency(IUniverInstanceService);
+ const workbook = univerInstanceService.getCurrentUniverSheetInstance();
+ const worksheet = workbook.getActiveSheet();
+
+ const rule = props.rule?.type === CFRuleType.highlightCell ? props.rule : undefined as IRankHighlightCell | IAverageHighlightCell | undefined;
+
+ const [style, styleSet] = useState<IHighlightCell['style']>({});
+ const [formula, formulaSet] = useState(() => {
+ if (rule?.subType === CFSubRuleType.formula) {
+ return rule.value;
+ }
+ return '=';
+ });
+
+ const getResult = (config: {
+ style: IHighlightCell['style'];
+ formula: string;
+ }) => {
+ return { style: config.style,
+ value: formula,
+ type: CFRuleType.highlightCell,
+ subType: CFSubRuleType.formula };
+ };
+ useEffect(() => {
+ const dispose = interceptorManager.intercept(interceptorManager.getInterceptPoints().submit, {
+ handler() {
+ return getResult({ style, formula });
+ },
+ });
+ return dispose as () => void;
+ }, [style, formula, interceptorManager]);
+
+ const _onChange = (config: {
+ formula: string;
+ style: IHighlightCell['style'];
+ }) => {
+ onChange(getResult(config));
+ };
+ return (
+ <div>
+ <div className={`${stylesBase.title} ${stylesBase.mTBase}`}>{localeService.t('sheet.cf.panel.styleRule')}</div>
+ <div className={`${stylesBase.mTSm}`}>
+ <TextEditor
+ id={`${SHEET_CONDITION_FORMAT_PLUGIN}_formula`}
+ openForSheetSubUnitId={worksheet.getSheetId()}
+ openForSheetUnitId={workbook.getUnitId()}
+ value={formula}
+ canvasStyle={{ fontSize: 10 }}
+ onlyInputFormula={true}
+ onChange={(v = '') => {
+ const formula = v || '';
+ formulaSet(formula);
+ _onChange({ style, formula });
+ }}
+ />
+ </div>
+
+ <div className={`${styles.cfPreviewWrap} `}>
+ <Preview rule={getResult({ style, formula }) as IConditionalFormatRuleConfig} />
+ </div>
+ <ConditionalStyleEditor
+ style={rule?.style}
+ className={`${stylesBase.mTSm} `}
+ onChange={(v) => {
+ styleSet(v);
+ _onChange({ style: v, formula });
+ }}
+ />
+ </div>
+ );
+};
diff --git a/packages/sheets-conditional-format/src/components/panel/rule-edit/highlightCell.tsx b/packages/sheets-conditional-format/src/components/panel/rule-edit/highlightCell.tsx
new file mode 100644
index 0000000000..62e95c99f4
--- /dev/null
+++ b/packages/sheets-conditional-format/src/components/panel/rule-edit/highlightCell.tsx
@@ -0,0 +1,330 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import React, { useEffect, useMemo, useState } from 'react';
+import { Input, InputNumber, Select } from '@univerjs/design';
+import { useDependency } from '@wendellhu/redi/react-bindings';
+import { LocaleService } from '@univerjs/core';
+import { CFNumberOperator,
+ CFRuleType,
+ CFSubRuleType,
+ CFTextOperator,
+ CFTimePeriodOperator,
+ createDefaultValue } from '../../../base/const';
+import type {
+ IConditionalFormatRuleConfig,
+ IHighlightCell,
+ INumberHighlightCell,
+ ITextHighlightCell,
+ ITimePeriodHighlightCell } from '../../../models/type';
+import { ConditionalStyleEditor } from '../../conditional-style-editor';
+import { Preview } from '../../preview';
+import stylesBase from '../index.module.less';
+import type { IStyleEditorProps } from './type';
+import styles from './index.module.less';
+
+const createOptionItem = (text: string, localeService: LocaleService) => ({ label: localeService.t(`sheet.cf.operator.${text}`), value: text });
+type IValue = number | string | [number, number];
+type IResult = (Pick< ITextHighlightCell | INumberHighlightCell | ITimePeriodHighlightCell, 'operator' | 'subType'>) & { value?: IValue };
+
+const HighlightCellInput = (props: { type: IResult['subType'] | CFSubRuleType.duplicateValues | CFSubRuleType.uniqueValues;
+ operator?: IResult['operator'];
+ interceptorManager: IStyleEditorProps['interceptorManager'];
+ rule?: IHighlightCell;
+ value: IValue;
+ onChange: (value: IValue) => void; }) => {
+ const { type, operator, onChange, value } = props;
+ const [inputNumberValue, inputNumberValueSet] = useState(() => typeof value === 'number' ? value : 0);
+ const [inputTextValue, inputTextValueSet] = useState(() => typeof value === 'string' ? value : '');
+ const [inputNumberMin, inputNumberMinSet] = useState(() => Array.isArray(value) ? value[0] === undefined ? 0 : value[0] : 0);
+ const [inputNumberMax, inputNumberMaxSet] = useState(() => Array.isArray(value) ? value[1] === undefined ? 100 : value[1] : 100);
+
+ useEffect(() => {
+ switch (type) {
+ case CFSubRuleType.text:{
+ if ([CFTextOperator.beginsWith, CFTextOperator.endsWith,
+ CFTextOperator.containsText, CFTextOperator.notContainsText,
+ CFTextOperator.equal, CFTextOperator.notEqual].includes(operator as CFTextOperator)) {
+ onChange(inputTextValue);
+ }
+ break;
+ }
+ case CFSubRuleType.number:{
+ if ([CFNumberOperator.equal, CFNumberOperator.notEqual,
+ CFNumberOperator.greaterThan, CFNumberOperator.greaterThanOrEqual,
+ CFNumberOperator.lessThan, CFNumberOperator.lessThanOrEqual,
+ ].includes(operator as CFNumberOperator)) {
+ onChange(inputNumberValue);
+ }
+ if ([CFNumberOperator.between, CFNumberOperator.notBetween].includes(operator as CFNumberOperator)) {
+ onChange([inputNumberMin, inputNumberMax]);
+ }
+ break;
+ }
+ }
+ }, [type]);
+
+ switch (type) {
+ case CFSubRuleType.text:{
+ if ([CFTextOperator.beginsWith, CFTextOperator.endsWith,
+ CFTextOperator.containsText, CFTextOperator.notContainsText,
+ CFTextOperator.equal, CFTextOperator.notEqual].includes(operator as CFTextOperator)) {
+ const _onChange = (value: string) => {
+ inputTextValueSet(value);
+ onChange(value);
+ };
+ return (
+ <div className={`${stylesBase.mTSm}`}>
+ <Input className={styles.width100} value={inputTextValue} onChange={_onChange} />
+ </div>
+ );
+ }
+ break;
+ }
+ case CFSubRuleType.number:{
+ if ([CFNumberOperator.equal, CFNumberOperator.notEqual,
+ CFNumberOperator.greaterThan, CFNumberOperator.greaterThanOrEqual,
+ CFNumberOperator.lessThan, CFNumberOperator.lessThanOrEqual,
+ ].includes(operator as CFNumberOperator)) {
+ const _onChange = (value: number | null) => {
+ inputNumberValueSet(value || 0);
+ onChange(value || 0);
+ };
+ return (
+ <div className={`${stylesBase.mTSm}`}>
+ <InputNumber min={Number.MIN_SAFE_INTEGER} max={Number.MAX_SAFE_INTEGER} className={styles.width100} value={inputNumberValue} onChange={_onChange} />
+ </div>
+ );
+ }
+ if ([CFNumberOperator.between, CFNumberOperator.notBetween].includes(operator as CFNumberOperator)) {
+ const onChangeMin = (_value: number | null) => {
+ inputNumberMinSet(_value || 0);
+ const value: [number, number] = [_value || 0, inputNumberMax];
+ onChange(value);
+ };
+ const onChangeMax = (_value: number | null) => {
+ inputNumberMaxSet(_value || 0);
+ const value: [number, number] = [inputNumberMin, _value || 0];
+ onChange(value);
+ };
+ return (
+ <div className={`${stylesBase.mTSm} ${stylesBase.labelContainer} `}>
+ <InputNumber min={Number.MIN_SAFE_INTEGER} max={Number.MAX_SAFE_INTEGER} value={inputNumberMin} onChange={onChangeMin} />
+ <InputNumber min={Number.MIN_SAFE_INTEGER} max={Number.MAX_SAFE_INTEGER} className={`${stylesBase.mLSm}`} value={inputNumberMax} onChange={onChangeMax} />
+ </div>
+ );
+ }
+ }
+ }
+ return null;
+};
+const getOperatorOptions = (type: CFSubRuleType.duplicateValues | CFSubRuleType.uniqueValues | CFSubRuleType.number | CFSubRuleType.text | CFSubRuleType.timePeriod | CFSubRuleType.formula, localeService: LocaleService) => {
+ switch (type) {
+ case CFSubRuleType.text:{
+ return [
+ createOptionItem(CFTextOperator.containsText, localeService),
+ createOptionItem(CFTextOperator.notContainsText, localeService),
+ createOptionItem(CFTextOperator.beginsWith, localeService),
+ createOptionItem(CFTextOperator.endsWith, localeService),
+ createOptionItem(CFTextOperator.equal, localeService),
+ createOptionItem(CFTextOperator.notEqual, localeService),
+ createOptionItem(CFTextOperator.containsBlanks, localeService),
+ createOptionItem(CFTextOperator.notContainsBlanks, localeService)];
+ }
+ case CFSubRuleType.number:{
+ return [
+ createOptionItem(CFNumberOperator.between, localeService),
+ createOptionItem(CFNumberOperator.notBetween, localeService),
+ createOptionItem(CFNumberOperator.equal, localeService),
+ createOptionItem(CFNumberOperator.notEqual, localeService),
+ createOptionItem(CFNumberOperator.greaterThan, localeService),
+ createOptionItem(CFNumberOperator.greaterThanOrEqual, localeService),
+ createOptionItem(CFNumberOperator.lessThan, localeService),
+ createOptionItem(CFNumberOperator.lessThanOrEqual, localeService),
+ ];
+ }
+ case CFSubRuleType.timePeriod:{
+ return [
+ createOptionItem(CFTimePeriodOperator.yesterday, localeService),
+ createOptionItem(CFTimePeriodOperator.today, localeService),
+ createOptionItem(CFTimePeriodOperator.tomorrow, localeService),
+ createOptionItem(CFTimePeriodOperator.last7Days, localeService),
+ createOptionItem(CFTimePeriodOperator.lastWeek, localeService),
+ createOptionItem(CFTimePeriodOperator.thisWeek, localeService),
+ createOptionItem(CFTimePeriodOperator.nextWeek, localeService),
+ createOptionItem(CFTimePeriodOperator.lastMonth, localeService),
+ createOptionItem(CFTimePeriodOperator.thisMonth, localeService),
+ createOptionItem(CFTimePeriodOperator.nextMonth, localeService),
+ ];
+ }
+ }
+};
+export const HighlightCellStyleEditor = (props: IStyleEditorProps<any, ITextHighlightCell | INumberHighlightCell | ITimePeriodHighlightCell>) => {
+ const { interceptorManager, onChange } = props;
+ const localeService = useDependency(LocaleService);
+
+ const rule = props.rule?.type === CFRuleType.highlightCell ? props.rule : undefined;
+ const [subType, subTypeSet] = useState<CFSubRuleType.number | CFSubRuleType.text | CFSubRuleType.timePeriod | CFSubRuleType.duplicateValues | CFSubRuleType.uniqueValues >(() => {
+ const defaultV = CFSubRuleType.text;
+ if (!rule) {
+ return defaultV;
+ }
+ return rule.subType || defaultV;
+ });
+
+ const typeOptions = [{
+ value: CFSubRuleType.text,
+ label: localeService.t('sheet.cf.subRuleType.text'),
+ }, {
+ value: CFSubRuleType.number,
+ label: localeService.t('sheet.cf.subRuleType.number'),
+ }, {
+ value: CFSubRuleType.timePeriod,
+ label: localeService.t('sheet.cf.subRuleType.timePeriod'),
+ }, {
+ value: CFSubRuleType.duplicateValues,
+ label: localeService.t('sheet.cf.subRuleType.duplicateValues'),
+ }, {
+ value: CFSubRuleType.uniqueValues,
+ label: localeService.t('sheet.cf.subRuleType.uniqueValues'),
+ }];
+ const operatorOptions = useMemo(() => getOperatorOptions(subType, localeService), [subType]);
+
+ const [operator, operatorSet] = useState<IResult['operator'] | undefined>(() => {
+ const defaultV = operatorOptions ? operatorOptions[0].value as IResult['operator'] : undefined;
+ if (!rule) {
+ return defaultV;
+ }
+ return rule.operator || defaultV;
+ });
+
+ const [value, valueSet] = useState<IValue>(() => {
+ const defaultV = '';
+ if (!rule) {
+ return defaultV;
+ }
+ const v = (rule as ITextHighlightCell | INumberHighlightCell).value ?? createDefaultValue(rule.subType, rule.operator);
+ return v;
+ });
+
+ const [style, styleSet] = useState<IHighlightCell['style']>({});
+ const getResult = useMemo(() => (option: { subType?: string;operator?: string;value?: IValue;style?: IHighlightCell['style'] }) => {
+ switch (option.subType || subType) {
+ case CFSubRuleType.text:{
+ if ([CFTextOperator.beginsWith, CFTextOperator.endsWith,
+ CFTextOperator.containsText, CFTextOperator.notContainsText,
+ CFTextOperator.equal, CFTextOperator.notEqual].includes(operator as CFTextOperator)) {
+ return {
+ type: CFRuleType.highlightCell,
+ subType: option.subType ?? subType,
+ operator: option.operator ?? operator,
+ style: option.style ?? style,
+ value: option.value ?? value,
+ };
+ }
+ break;
+ }
+ case CFSubRuleType.number:{
+ if ([CFNumberOperator.equal, CFNumberOperator.notEqual,
+ CFNumberOperator.greaterThan, CFNumberOperator.greaterThanOrEqual,
+ CFNumberOperator.lessThan, CFNumberOperator.lessThanOrEqual,
+ ].includes(operator as CFNumberOperator)) {
+ return {
+ type: CFRuleType.highlightCell,
+ subType: option.subType ?? subType,
+ operator: option.operator ?? operator,
+ style: option.style ?? style,
+ value: option.value ?? value,
+ };
+ }
+ if ([CFNumberOperator.between, CFNumberOperator.notBetween].includes(operator as CFNumberOperator)) {
+ return {
+ type: CFRuleType.highlightCell,
+ subType: option.subType ?? subType,
+ operator: option.operator ?? operator,
+ style: option.style ?? style,
+ value: option.value ?? value,
+ };
+ }
+ break;
+ }
+ }
+ return {
+ type: CFRuleType.highlightCell,
+ subType: option.subType ?? subType,
+ operator: option.operator ?? operator,
+ style: option.style ?? style,
+ };
+ }, [subType, operator, value, style]);
+
+ useEffect(() => {
+ const dispose = interceptorManager.intercept(interceptorManager.getInterceptPoints().submit, {
+ handler() {
+ return getResult({});
+ },
+ });
+ return dispose as () => void;
+ }, [getResult, interceptorManager]);
+
+ useEffect(() => {
+ if (!typeOptions.some((item) => item.value === subType)) {
+ subTypeSet(typeOptions[0].value as CFSubRuleType.text);
+ }
+ }, [typeOptions]);
+
+ const onTypeChange = (v: string) => {
+ const _subType = v as typeof subType;
+ const operatorList = getOperatorOptions(_subType, localeService);
+ const _operator = operatorList && operatorList[0].value as typeof operator;
+ subTypeSet(_subType);
+ operatorSet(_operator);
+ _operator && valueSet(createDefaultValue(_subType, _operator));
+ onChange(getResult({ subType: _subType, operator: _operator }));
+ };
+ const onOperatorChange = (v: string) => {
+ const _operator = v as typeof operator;
+ operatorSet(_operator);
+ onChange(getResult({ operator: _operator }));
+ };
+
+ const onInputChange = (value: number | string | [number, number]) => {
+ valueSet(value);
+ onChange(getResult({ value }));
+ };
+ const inputRenderKey = useMemo(() => {
+ return `${subType}_${operator}_${Math.random()}`;
+ }, [subType, operator]);
+
+ return (
+ <div>
+ <div className={`${stylesBase.title} ${stylesBase.mTBase}`}>{localeService.t('sheet.cf.panel.styleRule')}</div>
+ <Select className={`${stylesBase.mTSm} ${styles.width100}`} onChange={onTypeChange} value={subType} options={typeOptions} />
+ {operatorOptions?.length && <Select className={`${stylesBase.mTSm} ${styles.width100}`} onChange={onOperatorChange} value={operator || ''} options={operatorOptions} />}
+ <HighlightCellInput key={inputRenderKey} value={value} interceptorManager={interceptorManager} type={subType} operator={operator} rule={rule} onChange={onInputChange} />
+ <div className={`${styles.cfPreviewWrap}`}>
+ <Preview rule={getResult({}) as IConditionalFormatRuleConfig} />
+ </div>
+ <ConditionalStyleEditor
+ style={rule?.style}
+ className={`${stylesBase.mLXxs}`}
+ onChange={(v) => {
+ styleSet(v);
+ onChange(getResult({ style: v }));
+ }}
+ />
+ </div>
+ );
+};
diff --git a/packages/sheets-conditional-format/src/components/panel/rule-edit/iconSet.tsx b/packages/sheets-conditional-format/src/components/panel/rule-edit/iconSet.tsx
new file mode 100644
index 0000000000..fa9976fd17
--- /dev/null
+++ b/packages/sheets-conditional-format/src/components/panel/rule-edit/iconSet.tsx
@@ -0,0 +1,450 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import React, { useEffect, useMemo, useState } from 'react';
+import set from 'lodash.set';
+import get from 'lodash.get';
+import { MoreDownSingle, SlashSingle } from '@univerjs/icons';
+
+import { Checkbox, Dropdown, InputNumber, Select } from '@univerjs/design';
+import { useDependency } from '@wendellhu/redi/react-bindings';
+
+import { IUniverInstanceService, LocaleService, Tools } from '@univerjs/core';
+import { TextEditor } from '@univerjs/ui';
+import type { IIconType } from '../../../models/icon-map';
+import { EMPTY_ICON_TYPE, iconGroup, iconMap } from '../../../models/icon-map';
+import type { IIconSet } from '../../../models/type';
+import { CFNumberOperator, CFRuleType, CFSubRuleType, CFValueType, createDefaultValue, SHEET_CONDITION_FORMAT_PLUGIN } from '../../../base/const';
+import { compareWithNumber, getOppositeOperator } from '../../../services/calculate-unit/utils';
+import stylesBase from '../index.module.less';
+import type { IStyleEditorProps } from './type';
+
+import styles from './index.module.less';
+
+const getIcon = (iconType: string, iconId: string | number) => {
+ const arr = iconMap[iconType] || [];
+ return arr[Number(iconId)] || '';
+};
+
+const TextInput = (props: { id: number; type: CFValueType; value: number | string;onChange: (v: number | string) => void; error?: string }) => {
+ const univerInstanceService = useDependency(IUniverInstanceService);
+ const unitId = univerInstanceService.getCurrentUniverSheetInstance().getUnitId();
+ const subUnitId = univerInstanceService.getCurrentUniverSheetInstance().getActiveSheet().getSheetId();
+ const className = useMemo(() => {
+ if (props.error) {
+ return styles.errorInput;
+ }
+ return '';
+ }, [props.error]);
+ return (
+ <div className={styles.positionRelative}>
+ {props.type !== CFValueType.formula
+ ? (
+ <>
+ <InputNumber className={className} value={Number(props.value) || 0} onChange={(v) => props.onChange(v ?? 0)} />
+ {props.error && (
+ <div className={styles.errorText}>
+ {props.error}
+ </div>
+ )}
+ </>
+ )
+ : (
+ <TextEditor
+ id={`${SHEET_CONDITION_FORMAT_PLUGIN}_icon_set_${props.id}`}
+ value={String(props.value).startsWith('=') ? String(props.value) : '='}
+ openForSheetSubUnitId={subUnitId}
+ openForSheetUnitId={unitId}
+ canvasStyle={{ fontSize: 10 }}
+ onlyInputFormula={true}
+ onChange={(v = '') => {
+ const formula = v || '';
+ props.onChange(formula);
+ }}
+ />
+ )}
+ </div>
+ );
+};
+const createDefaultConfigItem = (iconType: IIconType, index: number, list: unknown[]): IIconSet['config'][number] => ({
+ operator: CFNumberOperator.greaterThan,
+ value: { type: CFValueType.num, value: (list.length - 1 - index) * 10 },
+ iconType,
+ iconId: String(index),
+});
+
+const IconGroupList = (props: {
+ onClick: (iconType: IIconType) => void;
+ iconType?: IIconType;
+}) => {
+ const localeService = useDependency(LocaleService);
+
+ const handleClick = (iconType: IIconType) => {
+ props.onClick(iconType);
+ };
+ return (
+ <div className={styles.iconGroupList}>
+ {iconGroup.map((group, index) => {
+ return (
+ <div key={index} className={styles.group}>
+ <div className={styles.title}>{localeService.t(group.title)}</div>
+ <div className={styles.itemContent}>
+ {group.group.map((groupItem) => {
+ return (
+ <div className={styles.itemWrap} key={groupItem.name} onClick={() => { handleClick(groupItem.name); }}>
+ <div className={styles.item}>
+ {groupItem.list.map((base64, index) => <img className={styles.icon} key={index} src={base64}></img>)}
+ </div>
+ </div>
+ );
+ })}
+ </div>
+
+ </div>
+ );
+ })}
+ </div>
+ );
+};
+
+const IconItemList = (props: { onClick: (iconType: IIconType, iconId: string) => void;iconType?: IIconType; iconId: string }) => {
+ const list = useMemo(() => {
+ const result: { iconType: IIconType;iconId: string; base64: string }[] = [];
+ for (const key in iconMap) {
+ const list = iconMap[key as IIconType];
+ const iconType = key as IIconType;
+ list.forEach((base64, index) => {
+ result.push({
+ iconType,
+ base64,
+ iconId: String(index),
+ });
+ });
+ }
+ return result;
+ }, []);
+ const handleClick = (item: typeof list[0]) => {
+ props.onClick(item.iconType, item.iconId);
+ };
+ return (
+ <div className={styles.iconItemListWrap}>
+ <div className={styles.none} onClick={() => handleClick({ iconType: EMPTY_ICON_TYPE as any, iconId: '', base64: '' })}>
+ <SlashSingle className={styles.icon} />
+ <span>无单元格图标</span>
+ </div>
+ <div className={styles.iconItemList}>
+ {list.map((item) => (
+ <div key={`${item.iconType}_${item.iconId}`} className={styles.item}>
+ <img onClick={() => handleClick(item)} className={`${styles.icon}`} src={item.base64}></img>
+ </div>
+ ))}
+ </div>
+ </div>
+
+ );
+};
+
+const IconSetRuleEdit = (props: {
+ configList: IIconSet['config'];
+ onChange: (keys: string[], value: unknown) => void;
+ errorMap?: Record<string, string>;
+}) => {
+ const { onChange, configList, errorMap = {} } = props;
+ const localeService = useDependency(LocaleService);
+
+ const options = [{ label: localeService.t(`sheet.cf.symbol.${CFNumberOperator.greaterThan}`), value: CFNumberOperator.greaterThan },
+ { label: localeService.t(`sheet.cf.symbol.${CFNumberOperator.greaterThanOrEqual}`), value: CFNumberOperator.greaterThanOrEqual }];
+ const valueTypeOptions = [
+ { label: localeService.t(`sheet.cf.valueType.${CFValueType.num}`), value: CFValueType.num },
+ { label: localeService.t(`sheet.cf.valueType.${CFValueType.percent}`), value: CFValueType.percent },
+ { label: localeService.t(`sheet.cf.valueType.${CFValueType.percentile}`), value: CFValueType.percentile },
+ { label: localeService.t(`sheet.cf.valueType.${CFValueType.formula}`), value: CFValueType.formula },
+
+ ];
+ const handleValueValueChange = (v: number | string, index: number) => {
+ onChange([String(index), 'value', 'value'], v);
+ };
+
+ const handleOperatorChange = (operator: CFNumberOperator, index: number) => {
+ onChange([String(index), 'operator'], operator);
+ const defaultValue = createDefaultValue(CFSubRuleType.number, operator) as number;
+ handleValueValueChange(defaultValue, index);
+ };
+
+ const handleValueTypeChange = (v: string, index: number) => {
+ onChange([String(index), 'value', 'type'], v);
+ };
+ const render = useMemo(() => {
+ return configList.map((item, index) => {
+ const error = errorMap[index];
+ const icon = getIcon(item.iconType, item.iconId);
+ const isEnd = index === configList.length - 1;
+ const isFirst = index === 0;
+ const preItem = configList[index - 1];
+ const lessThanText = preItem?.value.type === CFValueType.formula ? localeService.t('sheet.cf.valueType.formula') : preItem?.value.value;
+
+ const handleIconClick = (iconType: IIconType, iconId: string) => {
+ const value = { ...item, iconId, iconType } as typeof item;
+ onChange([String(index)], value);
+ };
+ return (
+ <div key={index} className={`${index ? stylesBase.mTXl : stylesBase.mTSm}`}>
+ <div className={`${stylesBase.label} ${styles.flex}`}>
+ <div className={`${styles.width45}`}>
+ {localeService.t('sheet.cf.iconSet.icon')}
+ {index + 1}
+ </div>
+
+ <div className={`${styles.width45}`}>
+ <>
+ {!isFirst && !isEnd && localeService.t('sheet.cf.iconSet.rule')}
+ {!isFirst && !isEnd && (
+ <span className={styles.stress}>
+ (
+ {localeService.t('sheet.cf.iconSet.when')}
+ {localeService.t(`sheet.cf.symbol.${getOppositeOperator(preItem.operator)}`)}
+ {lessThanText}
+ {isEnd ? '' : ` ${localeService.t('sheet.cf.iconSet.and')} `}
+ )
+ </span>
+ )}
+
+ </>
+
+ </div>
+
+ </div>
+ <div className={`${styles.flex} ${stylesBase.mTSm}`}>
+ <div className={`${styles.iconWrap} ${styles.width45}`}>
+ <Dropdown overlay={<IconItemList onClick={handleIconClick} iconId={item.iconId} iconType={item.iconType} />}>
+ <div className={styles.dropdownIcon}>
+ {icon ? <img src={icon} className={styles.icon} /> : <SlashSingle className={styles.icon} />}
+ <MoreDownSingle />
+ </div>
+
+ </Dropdown>
+
+ </div>
+ {!isEnd
+ ? <Select className={`${stylesBase.mL0} ${styles.width45} ${stylesBase.mR0}`} options={options} value={item.operator} onChange={(v) => { handleOperatorChange(v as CFNumberOperator, index); }} />
+ : (
+ <div className={`${styles.width45} ${stylesBase.label}`} style={{ marginTop: 0 }}>
+ {localeService.t('sheet.cf.iconSet.rule')}
+ <span className={styles.stress}>
+ (
+ {localeService.t('sheet.cf.iconSet.when')}
+ {localeService.t(`sheet.cf.symbol.${getOppositeOperator(preItem.operator)}`)}
+ {lessThanText}
+ {isEnd ? '' : ` ${localeService.t('sheet.cf.iconSet.and')} `}
+ )
+ </span>
+ </div>
+ )}
+ </div>
+ {!isEnd
+ ? (
+ <>
+ <div className={`${stylesBase.mTSm} ${stylesBase.label} ${styles.flex}`}>
+ <div className={`${styles.width45}`}>
+ {localeService.t('sheet.cf.iconSet.type')}
+ </div>
+ <div className={`${styles.width45}`}>
+ {localeService.t('sheet.cf.iconSet.value')}
+ </div>
+ </div>
+ <div className={`${stylesBase.mTSm} ${styles.flex}`}>
+ <Select className={`${styles.width45} ${stylesBase.mL0}`} options={valueTypeOptions} value={item.value.type} onChange={(v) => { handleValueTypeChange(v as CFNumberOperator, index); }} />
+ <div className={`${stylesBase.mL0} ${styles.width45}`}>
+ <TextInput id={index} type={item.value.type} error={error} value={item.value.value || ''} onChange={(v) => handleValueValueChange(v, index)} />
+ </div>
+
+ </div>
+ </>
+ )
+ : <div />}
+
+ </div>
+ );
+ });
+ }, [configList, errorMap]);
+ return render;
+};
+export const IconSet = (props: IStyleEditorProps<unknown, IIconSet>) => {
+ const { interceptorManager } = props;
+ const rule = props.rule?.type === CFRuleType.iconSet ? props.rule : undefined;
+ const localeService = useDependency(LocaleService);
+ const [errorMap, errorMapSet] = useState<Record<string, string>>({});
+ const [currentIconType, currentIconTypeSet] = useState<IIconType>(() => {
+ const defaultV = Object.keys(iconMap)[0] as IIconType;
+ if (rule && rule.config.length) {
+ const type = rule.config[0].iconType;
+ const isNotSame = rule.config.some((item) => item.iconType !== type);
+ if (!isNotSame) {
+ return type;
+ }
+ }
+ return defaultV;
+ });
+
+ const [configList, configListSet] = useState(() => {
+ if (rule && rule.config.length) {
+ return Tools.deepClone(rule?.config);
+ }
+ const list = iconMap[currentIconType] || [];
+ return new Array(list.length).fill('').map((_e, index, list) => {
+ if (index === list.length - 1) {
+ // The last condition is actually the complement of the above conditions,
+ // packages/sheets-conditional-format/src/services/calculate-unit/icon-set.ts
+ return { operator: CFNumberOperator.lessThanOrEqual,
+ value: { type: CFValueType.num, value: Number.MAX_SAFE_INTEGER },
+ iconType: currentIconType,
+ iconId: String(index) };
+ }
+ return createDefaultConfigItem(currentIconType, index, list);
+ });
+ });
+
+ const [isShowValue, isShowValueSet] = useState(() => {
+ if (!rule) {
+ return true;
+ }
+ return !!rule.isShowValue;
+ });
+
+ const previewIcon = useMemo(() => {
+ const list = configList.map((item) => {
+ return getIcon(item.iconType, item.iconId);
+ });
+ return (
+ <div className={styles.iconWrap}>
+ {list.map((icon, index) => (icon ? <img className={styles.icon} key={index} src={icon} /> : <SlashSingle className={styles.icon} key={index} />))}
+ </div>
+ );
+ }, [configList]);
+
+ const checkResult = (_configList: typeof configList) => {
+ const isTypeSame = _configList.reduce((pre, cur, index) => {
+ if ((pre.preType && !pre.result) || _configList.length - 1 === index) {
+ return pre;
+ }
+
+ if (cur.value.type === CFValueType.formula) {
+ return {
+ preType: CFValueType.formula,
+ result: false,
+ };
+ }
+ if (pre.preType) {
+ return {
+ result: pre.preType === cur.value.type,
+ preType: cur.value.type,
+ };
+ } else {
+ return {
+ result: true,
+ preType: cur.value.type,
+ };
+ }
+ }, { result: true, preType: '' }).result;
+ if (isTypeSame && [CFValueType.num, CFValueType.percent, CFValueType.percentile].includes(_configList[0].value.type)) {
+ const result: Record<string, string> = {};
+ _configList.forEach((item, index, arr) => {
+ const preIndex = index - 1;
+ if (preIndex < 0 || index === arr.length - 1) {
+ return;
+ }
+ const preItem = _configList[index - 1];
+ const preOperator = getOppositeOperator(preItem.operator);
+ if (!compareWithNumber({ operator: preOperator, value: preItem.value.value as number }, item.value.value as number)) {
+ result[index] = `${localeService.t(`sheet.cf.form.${preOperator}`, String(preItem.value.value))} `;
+ }
+ });
+ return result;
+ }
+ return {};
+ };
+ const handleChange = (keys: string[], v: unknown) => {
+ const oldV = get(configList, keys);
+ if (oldV !== v) {
+ set(configList, keys, v);
+ configListSet([...configList]);
+ errorMapSet(checkResult(configList));
+ }
+ };
+ const handleClickIconList = (iconType: IIconType) => {
+ currentIconTypeSet(iconType);
+ const list = iconMap[iconType] || [];
+ const config = new Array(list.length).fill('').map((_e, index, list) => createDefaultConfigItem(iconType, index, list));
+ configListSet(config);
+ errorMapSet(checkResult(config));
+ };
+
+ useEffect(() => {
+ const dispose = interceptorManager.intercept(interceptorManager.getInterceptPoints().submit, { handler() {
+ const result: IIconSet = { type: CFRuleType.iconSet, isShowValue, config: configList } as IIconSet;
+ return result;
+ } });
+ return () => {
+ dispose();
+ };
+ }, [isShowValue, configList, interceptorManager]);
+
+ useEffect(() => {
+ const dispose = interceptorManager.intercept(interceptorManager.getInterceptPoints().beforeSubmit, { handler() {
+ const keys = Object.keys(errorMap);
+ return keys.length === 0;
+ } });
+ return () => {
+ dispose();
+ };
+ }, [isShowValue, configList, interceptorManager, errorMap]);
+
+ const reverseIcon = () => {
+ const iconList = configList.map((item) => ({ ...item }));
+ configList.forEach((item, index) => {
+ const mirrorIndex = configList.length - 1 - index;
+ const newIcon = iconList[mirrorIndex];
+ item.iconId = newIcon.iconId;
+ item.iconType = newIcon.iconType;
+ });
+ configListSet([...configList]);
+ };
+ return (
+ <div className={styles.iconSet}>
+ <div className={stylesBase.title}>{localeService.t('sheet.cf.panel.styleRule')}</div>
+ <div className={`${stylesBase.mTSm}`}>
+ <Dropdown overlay={<IconGroupList iconType={currentIconType} onClick={handleClickIconList} />}>
+ <div className={styles.dropdownIcon} style={{ width: 'unset' }}>
+ {previewIcon}
+ <MoreDownSingle />
+ </div>
+ {/* <div>{previewIcon}</div> */}
+ </Dropdown>
+ </div>
+ <div className={`${stylesBase.mTSm} ${styles.renderConfig}`}>
+ <div className={styles.utilItem}>
+ <Checkbox onChange={reverseIcon} />
+ {localeService.t('sheet.cf.iconSet.reverseIconOrder')}
+ </div>
+ <div className={`${styles.utilItem} ${stylesBase.mLXl}`}>
+ <Checkbox checked={!isShowValue} onChange={(v) => { isShowValueSet(!v); }} />
+ {localeService.t('sheet.cf.iconSet.onlyShowIcon')}
+ </div>
+ </div>
+ <IconSetRuleEdit errorMap={errorMap} onChange={handleChange} configList={configList} />
+ </div>
+ );
+};
diff --git a/packages/sheets-conditional-format/src/components/panel/rule-edit/index.module.less b/packages/sheets-conditional-format/src/components/panel/rule-edit/index.module.less
new file mode 100644
index 0000000000..49bc0ef629
--- /dev/null
+++ b/packages/sheets-conditional-format/src/components/panel/rule-edit/index.module.less
@@ -0,0 +1,175 @@
+.cf-rule-style-editor {
+ .cf-preview-wrap {
+ margin-top: var(--margin-sm);
+ padding: var(--padding-xs) var(--padding-sm);
+ border: 1px solid rgb(var(--border-color));
+ border-radius: var(--border-radius-base);
+ }
+ .text {
+ font-size: var(--font-size-xxs);
+ }
+ .position-relative {
+ position: relative;
+ }
+
+ .btn-list {
+ display: flex;
+ justify-content: flex-end;
+ margin-bottom: var(--margin-base);
+ }
+ .icon-set {
+ .render-config {
+ display: flex;
+ align-items: center;
+ font-size: var(--font-size-xxs);
+ justify-content: flex-start;
+ .util-item {
+ display: flex;
+ justify-content: flex-start;
+ align-items: center;
+ }
+ }
+ .flex {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ }
+ .width45 {
+ width: 45%;
+ }
+ .icon-wrap {
+ display: flex;
+ align-items: center;
+ }
+ .icon {
+ width: 20px;
+ height: 20px;
+ }
+ .dropdown-icon {
+ background-color: rgb(var(--bg-color-secondary));
+ border: 1px solid rgb(var(--border-color));
+ border-radius: var(--border-radius-base);
+ display: flex;
+ justify-content: space-between;
+ width: 100%;
+ align-items: center;
+ padding: var(--padding-sm) var(--padding-lg);
+ font-size: var(--font-size-xxs);
+ color: rgb(var(--text-color-secondary));
+ transition: all 0.15s;
+ &:hover {
+ border-color: rgb(var(--primary-color)) !important;
+ }
+ .icon {
+ width: 16px;
+ height: 16px;
+ }
+ }
+ .error-input {
+ border: 1px solid rgb(var(--red-400));
+ }
+ .error-text {
+ color: rgb(var(--red-400));
+ font-size: 12px;
+ position: absolute;
+ }
+ }
+}
+.icon-group-list {
+ padding: var(--padding-base);
+ font-size: var(--font-size-xs);
+ width: 314px;
+ background-color: rgb(var(--bg-color-secondary));
+ border: 1px solid rgb(var(--border-color));
+ border-radius: var(--border-radius-lg);
+ outline: none;
+ box-shadow: var(--box-shadow-base);
+ .title {
+ font-size: 13px;
+ margin-bottom: var(--margin-xxs);
+ }
+ .group {
+ margin-bottom: var(--margin-sm);
+ }
+ .item-content {
+ display: flex;
+ flex-wrap: wrap;
+ .item-wrap {
+ display: flex;
+ align-items: center;
+ justify-content: start;
+ width: 50%;
+ margin-bottom: 4px;
+ .item {
+ border-radius: var(--border-radius-base);
+ cursor: pointer;
+ :not(:first-child).icon {
+ margin-left: 8px;
+ }
+
+ &:hover {
+ background-color: rgb(var(--bg-color-hover));
+ }
+ }
+ :not(:first-child).icon {
+ margin-left: 8px;
+ }
+ }
+ }
+
+ .icon {
+ width: 20px;
+ height: 20px;
+ }
+}
+.icon-item-list-wrap {
+ padding: var(--padding-base) 4px var(--padding-base) var(--padding-base);
+ font-size: var(--font-size-xs);
+ background-color: rgb(var(--bg-color-secondary));
+ border: 1px solid rgb(var(--border-color));
+ border-radius: var(--border-radius-lg);
+ outline: none;
+ box-shadow: var(--box-shadow-base);
+ .none {
+ display: flex;
+ align-items: center;
+ margin-bottom: 10px;
+ cursor: pointer;
+ padding-left: 4px;
+ span {
+ margin-left: 8px;
+ }
+ }
+
+ .icon-item-list {
+ display: flex;
+ width: 252px;
+ flex-wrap: wrap;
+ .item {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ border-radius: var(--border-radius-base);
+ margin-right: 8px;
+ margin-bottom: 8px;
+ cursor: pointer;
+
+ &:hover {
+ background-color: rgb(var(--bg-color-hover));
+ }
+ }
+
+ .icon {
+ width: 20px;
+ height: 20px;
+ }
+ }
+}
+
+.width100 {
+ width: 100%;
+}
+.stress {
+ color: rgb(var(--text-color));
+ font-weight: 500;
+}
diff --git a/packages/sheets-conditional-format/src/components/panel/rule-edit/index.tsx b/packages/sheets-conditional-format/src/components/panel/rule-edit/index.tsx
new file mode 100644
index 0000000000..ac29c49842
--- /dev/null
+++ b/packages/sheets-conditional-format/src/components/panel/rule-edit/index.tsx
@@ -0,0 +1,232 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import React, { useEffect, useMemo, useRef, useState } from 'react';
+import type { IRange, IUnitRange } from '@univerjs/core';
+import { ICommandService, InterceptorManager, IUniverInstanceService, LocaleService } from '@univerjs/core';
+import { useDependency } from '@wendellhu/redi/react-bindings';
+import { serializeRange } from '@univerjs/engine-formula';
+import { Button, Select } from '@univerjs/design';
+
+import { RangeSelector } from '@univerjs/ui';
+import type { IRemoveSheetMutationParams } from '@univerjs/sheets';
+import { RemoveSheetMutation, SelectionManagerService, SetWorksheetActiveOperation } from '@univerjs/sheets';
+import type { IConditionFormatRule } from '../../../models/type';
+import { ConditionalFormatRuleModel } from '../../../models/conditional-format-rule-model';
+import { CFRuleType, CFSubRuleType, SHEET_CONDITION_FORMAT_PLUGIN } from '../../../base/const';
+import type { IAddCfCommandParams } from '../../../commands/commands/add-cf.command';
+import { AddCfCommand } from '../../../commands/commands/add-cf.command';
+import type { ISetCfCommandParams } from '../../../commands/commands/set-cf.command';
+import { SetCfCommand } from '../../../commands/commands/set-cf.command';
+
+import styleBase from '../index.module.less';
+import type { IStyleEditorProps } from './type';
+import { beforeSubmit, submit } from './type';
+import { ColorScaleStyleEditor } from './colorScale';
+import { DataBarStyleEditor } from './dataBar';
+import { RankStyleEditor } from './rank';
+import { HighlightCellStyleEditor } from './highlightCell';
+import { FormulaStyleEditor } from './formula';
+import styles from './index.module.less';
+import { IconSet } from './iconSet';
+
+interface IRuleEditProps {
+ rule?: IConditionFormatRule;
+ onCancel: () => void;
+}
+
+const getUnitId = (univerInstanceService: IUniverInstanceService) => univerInstanceService.getCurrentUniverSheetInstance().getUnitId();
+const getSubUnitId = (univerInstanceService: IUniverInstanceService) => univerInstanceService.getCurrentUniverSheetInstance().getActiveSheet().getSheetId();
+
+export const RuleEdit = (props: IRuleEditProps) => {
+ const localeService = useDependency(LocaleService);
+ const commandService = useDependency(ICommandService);
+ const univerInstanceService = useDependency(IUniverInstanceService);
+ const conditionalFormatRuleModel = useDependency(ConditionalFormatRuleModel);
+ const selectionManagerService = useDependency(SelectionManagerService);
+ const unitId = getUnitId(univerInstanceService);
+ const subUnitId = getSubUnitId(univerInstanceService);
+
+ const rangeResult = useRef<IRange[]>([]);
+ const rangeString = useMemo(() => {
+ let ranges = props.rule?.ranges;
+ if (!ranges?.length) {
+ ranges = selectionManagerService.getSelectionRanges() ?? [];
+ }
+ if (!ranges?.length) {
+ return '';
+ }
+ return ranges.map((range) => {
+ const v = serializeRange(range);
+ return v === 'NaN' ? '' : v;
+ }).filter((r) => !!r).join(',');
+ }, [props.rule]);
+
+ const options = [
+ { label: localeService.t('sheet.cf.ruleType.highlightCell'), value: '1' },
+ { label: localeService.t('sheet.cf.panel.rankAndAverage'), value: '2' },
+ { label: localeService.t('sheet.cf.ruleType.dataBar'), value: '3' },
+ { label: localeService.t('sheet.cf.ruleType.colorScale'), value: '4' },
+ { label: localeService.t('sheet.cf.ruleType.formula'), value: '5' },
+ { label: localeService.t('sheet.cf.ruleType.iconSet'), value: '6' }];
+
+ const [ruleType, ruleTypeSet] = useState(() => {
+ const type = props.rule?.rule.type;
+ const defaultType = options[0].value;
+ if (!type) {
+ return defaultType;
+ }
+ switch (type) {
+ case CFRuleType.highlightCell:{
+ const subType = props.rule?.rule.subType;
+ switch (subType) {
+ case CFSubRuleType.number:
+ case CFSubRuleType.text:
+ case CFSubRuleType.duplicateValues:
+ case CFSubRuleType.uniqueValues:
+ case CFSubRuleType.timePeriod:{
+ return '1';
+ }
+ case CFSubRuleType.average:
+ case CFSubRuleType.rank:{
+ return '2';
+ }
+ case CFSubRuleType.formula:{
+ return '5';
+ }
+ }
+ break;
+ }
+ case CFRuleType.dataBar:{
+ return '3';
+ }
+ case CFRuleType.colorScale:{
+ return '4';
+ }
+ case CFRuleType.iconSet:{
+ return '6';
+ }
+ }
+ return defaultType;
+ });
+ const result = useRef < Parameters<IStyleEditorProps['onChange']>>();
+ const interceptorManager = useMemo(() => {
+ const _interceptorManager = new InterceptorManager({ beforeSubmit, submit });
+ return _interceptorManager;
+ }, []);
+
+ const StyleEditor = useMemo(() => {
+ switch (ruleType) {
+ case '1':{
+ return HighlightCellStyleEditor;
+ }
+ case '2':{
+ return RankStyleEditor;
+ }
+ case '3':{
+ return DataBarStyleEditor;
+ }
+ case '4':{
+ return ColorScaleStyleEditor;
+ }
+ case '5':{
+ return FormulaStyleEditor;
+ }
+ case '6':{
+ return IconSet;
+ }
+ default :{
+ return HighlightCellStyleEditor;
+ }
+ }
+ }, [ruleType]);
+
+ useEffect(() => {
+ // If the child table which the rule being edited is deleted, exit edit mode
+ if (props.rule?.cfId !== undefined) {
+ const disposable = commandService.onCommandExecuted((commandInfo) => {
+ if (commandInfo.id === RemoveSheetMutation.id) {
+ const params = commandInfo.params as IRemoveSheetMutationParams;
+ if (params.subUnitId === subUnitId && params.unitId === unitId) {
+ props.onCancel();
+ }
+ }
+ if (commandInfo.id === SetWorksheetActiveOperation.id) {
+ props.onCancel();
+ }
+ });
+ return () => disposable.dispose();
+ }
+ }, [props.rule?.cfId]);
+
+ const onStyleChange = (config: unknown) => {
+ result.current = config as Parameters<IStyleEditorProps['onChange']>;
+ };
+
+ const onRangeSelectorChange = (ranges: IUnitRange[]) => {
+ rangeResult.current = ranges.map((r) => r.range);
+ };
+
+ const handleSubmit = () => {
+ const beforeSubmitResult = interceptorManager.fetchThroughInterceptors(interceptorManager.getInterceptPoints().beforeSubmit)(true, null);
+ const getRanges = () => {
+ const ranges = rangeResult.current;
+ const isError = ranges.some((range) => Number.isNaN(range.startRow) || Number.isNaN(range.startColumn));
+ return isError ? [] : ranges;
+ };
+
+ if (beforeSubmitResult) {
+ const result = interceptorManager.fetchThroughInterceptors(interceptorManager.getInterceptPoints().submit)(null, null);
+ const ranges = getRanges();
+ if (result && ranges.length) {
+ // When you switch the child table, you need to fetch it again here, instead of using the
+ const unitId = getUnitId(univerInstanceService);
+ const subUnitId = getSubUnitId(univerInstanceService);
+ let rule = {} as IConditionFormatRule;
+ if (props.rule && props.rule.cfId) {
+ rule = { ...props.rule, ranges, rule: result };
+ commandService.executeCommand(SetCfCommand.id, { unitId, subUnitId, rule } as ISetCfCommandParams);
+ props.onCancel();
+ } else {
+ const cfId = conditionalFormatRuleModel.createCfId(unitId, subUnitId);
+ rule = { cfId, ranges, rule: result, stopIfTrue: false };
+ commandService.executeCommand(AddCfCommand.id, { unitId, subUnitId, rule } as IAddCfCommandParams);
+ props.onCancel();
+ }
+ }
+ }
+ };
+ const handleCancel = () => {
+ props.onCancel();
+ };
+ return (
+ <div className={styles.cfRuleStyleEditor}>
+ <div className={styleBase.title}>{localeService.t('sheet.cf.panel.range')}</div>
+ <div className={`${styleBase.mTBase}`}>
+ <RangeSelector placeholder={localeService.t('sheet.cf.form.rangeSelector')} width={'100%' as unknown as number} openForSheetSubUnitId={subUnitId} openForSheetUnitId={unitId} value={rangeString} id={`${SHEET_CONDITION_FORMAT_PLUGIN}_rangeSelector`} onChange={onRangeSelectorChange} />
+ </div>
+ <div className={styleBase.title}>{localeService.t('sheet.cf.panel.styleType')}</div>
+ <div className={styleBase.mTBase}>
+ <Select className={styles.width100} value={ruleType} options={options} onChange={(e) => ruleTypeSet(e)} />
+ </div>
+ <StyleEditor interceptorManager={interceptorManager} rule={props.rule?.rule as any} onChange={onStyleChange} />
+ <div className={`${styleBase.mTBase} ${styles.btnList}`}>
+ <Button size="small" onClick={handleCancel}>{localeService.t('sheet.cf.panel.cancel')}</Button>
+ <Button className={styleBase.mLSm} size="small" type="primary" onClick={handleSubmit}>{localeService.t('sheet.cf.panel.submit')}</Button>
+ </div>
+ </div>
+ );
+};
diff --git a/packages/sheets-conditional-format/src/components/panel/rule-edit/rank.tsx b/packages/sheets-conditional-format/src/components/panel/rule-edit/rank.tsx
new file mode 100644
index 0000000000..7324b6552b
--- /dev/null
+++ b/packages/sheets-conditional-format/src/components/panel/rule-edit/rank.tsx
@@ -0,0 +1,194 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import React, { useEffect, useState } from 'react';
+import { useDependency } from '@wendellhu/redi/react-bindings';
+import { LocaleService } from '@univerjs/core';
+import { Checkbox, InputNumber, Select } from '@univerjs/design';
+import { CFNumberOperator, CFRuleType, CFSubRuleType } from '../../../base/const';
+import { ConditionalStyleEditor } from '../../conditional-style-editor';
+import type { IAverageHighlightCell, IConditionalFormatRuleConfig, IHighlightCell, IRankHighlightCell } from '../../../models/type';
+import stylesBase from '../index.module.less';
+import { Preview } from '../../preview';
+import styles from './index.module.less';
+import type { IStyleEditorProps } from './type';
+
+export const RankStyleEditor = (props: IStyleEditorProps) => {
+ const { onChange, interceptorManager } = props;
+ const localeService = useDependency(LocaleService);
+
+ const rule = props.rule?.type === CFRuleType.highlightCell ? props.rule : undefined as IRankHighlightCell | IAverageHighlightCell | undefined;
+ const options = [{ label: localeService.t('sheet.cf.panel.isNotBottom'), value: 'isNotBottom' }, { label: localeService.t('sheet.cf.panel.isBottom'), value: 'isBottom' },
+ { label: localeService.t('sheet.cf.panel.greaterThanAverage'), value: 'greaterThanAverage' }, { label: localeService.t('sheet.cf.panel.lessThanAverage'), value: 'lessThanAverage' }];
+
+ const [type, typeSet] = useState(() => {
+ const defaultV = options[0].value;
+ const type = rule?.type;
+ if (!rule) {
+ return defaultV;
+ }
+ switch (type) {
+ case CFRuleType.highlightCell:{
+ const subType = rule.subType;
+ switch (subType) {
+ case CFSubRuleType.average:{
+ if ([CFNumberOperator.greaterThan, CFNumberOperator.greaterThanOrEqual].includes(rule.operator)) {
+ return 'greaterThanAverage';
+ }
+ if ([CFNumberOperator.lessThan, CFNumberOperator.lessThanOrEqual].includes(rule.operator)) {
+ return 'lessThanAverage';
+ }
+ return defaultV;
+ }
+ case CFSubRuleType.rank:{
+ if (rule.isBottom) {
+ return 'isBottom';
+ } else {
+ return 'isNotBottom';
+ }
+ }
+ }
+ }
+ }
+ return defaultV;
+ });
+ const [value, valueSet] = useState(() => {
+ const defaultV = 10;
+ const type = rule?.type;
+ if (!rule) {
+ return defaultV;
+ }
+ switch (type) {
+ case CFRuleType.highlightCell:{
+ const subType = rule.subType;
+ switch (subType) {
+ case CFSubRuleType.rank:{
+ return rule.value || defaultV;
+ }
+ }
+ }
+ }
+ return defaultV;
+ });
+ const [isPercent, isPercentSet] = useState(() => {
+ const defaultV = false;
+ const type = rule?.type;
+ if (!rule) {
+ return defaultV;
+ }
+ switch (type) {
+ case CFRuleType.highlightCell:{
+ const subType = rule.subType;
+ switch (subType) {
+ case CFSubRuleType.rank:{
+ return rule.isPercent || defaultV;
+ }
+ }
+ }
+ }
+ return defaultV;
+ });
+
+ const [style, styleSet] = useState<IHighlightCell['style']>({});
+
+ const getResult = (config: {
+ type: string;
+ isPercent: boolean;
+ value: number;
+ style: IHighlightCell['style'];
+ }) => {
+ const { type, isPercent, value, style } = config;
+ if (type === 'isNotBottom') {
+ return { type: CFRuleType.highlightCell, subType: CFSubRuleType.rank, isPercent, isBottom: false, value, style };
+ }
+ if (type === 'isBottom') {
+ return { type: CFRuleType.highlightCell, subType: CFSubRuleType.rank, isPercent, isBottom: true, value, style };
+ }
+ if (type === 'greaterThanAverage') {
+ return { type: CFRuleType.highlightCell, subType: CFSubRuleType.average, operator: CFNumberOperator.greaterThan, style };
+ }
+ if (type === 'lessThanAverage') {
+ return { type: CFRuleType.highlightCell, subType: CFSubRuleType.average, operator: CFNumberOperator.lessThan, style };
+ }
+ };
+ useEffect(() => {
+ const dispose = interceptorManager.intercept(interceptorManager.getInterceptPoints().submit, {
+ handler() {
+ return getResult({ type, isPercent, value, style });
+ },
+ });
+ return dispose as () => void;
+ }, [type, isPercent, value, style, interceptorManager]);
+
+ const _onChange = (config: {
+ type: string;
+ isPercent: boolean;
+ value: number;
+ style: IHighlightCell['style'];
+ }) => {
+ onChange(getResult(config));
+ };
+ return (
+ <div>
+ <div className={`${stylesBase.title} ${stylesBase.mTBase}`}>{localeService.t('sheet.cf.panel.styleRule')}</div>
+ <Select
+ className={`${styles.width100} ${stylesBase.mTSm}`}
+ value={type}
+ options={options}
+ onChange={(v) => {
+ typeSet(v);
+ _onChange({ type: v, isPercent, value, style });
+ }}
+ />
+ {['isNotBottom', 'isBottom'].includes(type) && (
+ <div className={`${stylesBase.labelContainer} ${stylesBase.mTSm}`}>
+ <InputNumber
+ min={1}
+ max={1000}
+ value={value}
+ onChange={(v) => {
+ const value = v || 0;
+ valueSet(value);
+ _onChange({ type, isPercent, value, style });
+ }}
+ />
+ <div className={`${stylesBase.mLSm} ${stylesBase.labelContainer} ${styles.text}`}>
+ <Checkbox
+ checked={isPercent}
+ onChange={(v) => {
+ isPercentSet(!!v);
+ _onChange({ type, isPercent: !!v, value, style });
+ }}
+ />
+ {localeService.t('sheet.cf.valueType.percent')}
+ </div>
+
+ </div>
+ )}
+ <div className={`${styles.cfPreviewWrap} `}>
+ <Preview rule={getResult({ type, isPercent, value, style }) as IConditionalFormatRuleConfig} />
+ </div>
+ <ConditionalStyleEditor
+ style={rule?.style}
+ className={`${stylesBase.mTSm} `}
+ onChange={(v) => {
+ styleSet(v);
+ _onChange({ type, isPercent, value, style: v });
+ }}
+ />
+ </div>
+ );
+};
diff --git a/packages/sheets-conditional-format/src/components/panel/rule-edit/type.ts b/packages/sheets-conditional-format/src/components/panel/rule-edit/type.ts
new file mode 100644
index 0000000000..0d57363453
--- /dev/null
+++ b/packages/sheets-conditional-format/src/components/panel/rule-edit/type.ts
@@ -0,0 +1,28 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { createInterceptorKey } from '@univerjs/core';
+import type { InterceptorManager } from '@univerjs/core';
+import type { IConditionalFormatRuleConfig } from '../../../models/type';
+
+export const beforeSubmit = createInterceptorKey<boolean, null>('beforeSubmit');
+export const submit = createInterceptorKey<any, null>('submit');
+
+export interface IStyleEditorProps<S = any, R = IConditionalFormatRuleConfig> {
+ onChange: (style: S) => void;
+ rule?: R;
+ interceptorManager: InterceptorManager<{ beforeSubmit: typeof beforeSubmit; submit: typeof submit }>;
+};
diff --git a/packages/sheets-conditional-format/src/components/panel/rule-list/index.module.less b/packages/sheets-conditional-format/src/components/panel/rule-list/index.module.less
new file mode 100644
index 0000000000..392cd54a4e
--- /dev/null
+++ b/packages/sheets-conditional-format/src/components/panel/rule-list/index.module.less
@@ -0,0 +1,137 @@
+.cf-rule-list {
+ .rule-selector {
+ color: rgb(var(--text-color-secondary));
+ font-size: 12px;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ .select {
+ color: rgb(var(--text-color));
+ width: 126px;
+ .select-selector {
+ border: none;
+ padding: 0;
+ }
+ .select-selection-item {
+ top: -2px;
+ left: 4px;
+ }
+ .select-selection-search-input {
+ cursor: pointer;
+ }
+ }
+ .btn-list {
+ font-size: 16px;
+ color: black;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ .gap {
+ margin-left: 8px;
+ }
+ .icon {
+ cursor: pointer;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ border-radius: 4px 4px 4px 4px;
+ padding: 4px;
+
+ &:hover {
+ background: rgb(var(--grey-300));
+ }
+ }
+ .disabled {
+ color: rgb(var(--grey-500));
+ display: flex;
+ align-items: center;
+ border-radius: 4px 4px 4px 4px;
+ padding: 4px;
+ }
+ }
+ }
+ .rule-item {
+ padding: 8px 32px 8px 20px;
+ display: flex;
+ justify-content: space-between;
+ position: relative;
+ align-items: center;
+ border-radius: var(--border-radius-base);
+ .rule-describe {
+ max-width: 100%;
+ min-width: 0px;
+ overflow: hidden;
+ flex-shrink: 1;
+ font-size: var(--font-size-sm);
+ line-height: 21px;
+ .rule-type {
+ font-size: 14px;
+ line-height: 22px;
+ color: #1e222b;
+ }
+ .rule-range {
+ font-size: 12px;
+ line-height: 22px;
+ color: #7a7a7a;
+ }
+ }
+ &:hover {
+ background-color: rgb(var(--grey-100));
+ }
+ &.active {
+ background-color: rgb(var(--grey-100));
+ }
+ .draggableHandle {
+ display: none;
+ position: absolute;
+ left: 0px;
+ width: 20px;
+ height: 20px;
+ border-radius: var(--border-radius-base);
+ cursor: grab;
+ // &:hover {
+ // background-color: rgb(var(--grey-300));
+ // }
+ }
+ &:hover {
+ .delete-item {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ }
+ .draggableHandle {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ }
+ }
+ .delete-item {
+ display: none;
+ cursor: pointer;
+ border-radius: var(--border-radius-base);
+ position: absolute;
+ right: 4px;
+ width: 24px;
+ height: 24px;
+ &:hover {
+ background-color: rgb(var(--grey-300));
+ }
+ }
+ & .active {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ }
+ }
+ .grid-layout-wrap {
+ width: calc(100% - 2 * var(--padding-sm) + 2 * var(--padding-xl));
+ margin-left: calc(-1 * var(--padding-xl));
+ padding-left: var(--padding-sm);
+ .react-grid-item {
+ transition: none;
+ }
+ }
+}
+:global .react-grid-item.react-grid-placeholder {
+ background: rgb(var(--grey-300));
+}
diff --git a/packages/sheets-conditional-format/src/components/panel/rule-list/index.tsx b/packages/sheets-conditional-format/src/components/panel/rule-list/index.tsx
new file mode 100644
index 0000000000..cc59884057
--- /dev/null
+++ b/packages/sheets-conditional-format/src/components/panel/rule-list/index.tsx
@@ -0,0 +1,358 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import React, { useEffect, useRef, useState } from 'react';
+import { Select, Tooltip } from '@univerjs/design';
+
+import { useDependency } from '@wendellhu/redi/react-bindings';
+import { ICommandService, IUniverInstanceService, LocaleService, Rectangle } from '@univerjs/core';
+import { SelectionManagerService, SetSelectionsOperation, SetWorksheetActiveOperation } from '@univerjs/sheets';
+import { serializeRange } from '@univerjs/engine-formula';
+import { DeleteSingle, IncreaseSingle, SequenceSingle } from '@univerjs/icons';
+import GridLayout from 'react-grid-layout';
+import { debounceTime, Observable } from 'rxjs';
+import { AddConditionalRuleMutation } from '../../../commands/mutations/add-conditional-rule.mutation';
+import { SetConditionalRuleMutation } from '../../../commands/mutations/set-conditional-rule.mutation';
+import { DeleteConditionalRuleMutation } from '../../../commands/mutations/delete-conditional-rule.mutation';
+import { MoveConditionalRuleMutation } from '../../../commands/mutations/move-conditional-rule.mutation';
+import { ConditionalFormatRuleModel } from '../../../models/conditional-format-rule-model';
+import type { IDeleteCfCommandParams } from '../../../commands/commands/delete-cf.command';
+import { DeleteCfCommand } from '../../../commands/commands/delete-cf.command';
+import type { IMoveCfCommand } from '../../../commands/commands/move-cf.command';
+import { moveCfCommand } from '../../../commands/commands/move-cf.command';
+import type { IConditionFormatRule } from '../../../models/type';
+import { CFRuleType, CFSubRuleType } from '../../../base/const';
+import 'react-grid-layout/css/styles.css';
+import 'react-resizable/css/styles.css';
+import { Preview } from '../../preview';
+import { ConditionalFormatI18nController } from '../../../controllers/cf.i18n.controller';
+import { ClearWorksheetCfCommand } from '../../../commands/commands/clear-worksheet-cf.command';
+
+import styles from './index.module.less';
+
+interface IRuleListProps {
+ onClick: (rule: IConditionFormatRule) => void;
+ onCreate: () => void;
+};
+const getRuleDescribe = (rule: IConditionFormatRule, localeService: LocaleService) => {
+ const ruleConfig = rule.rule;
+ switch (ruleConfig.type) {
+ case CFRuleType.colorScale:{
+ return localeService.t('sheet.cf.ruleType.colorScale');
+ }
+ case CFRuleType.dataBar:{
+ return localeService.t('sheet.cf.ruleType.dataBar');
+ }
+ case CFRuleType.iconSet:{
+ return localeService.t('sheet.cf.ruleType.iconSet');
+ }
+ case CFRuleType.highlightCell:{
+ switch (ruleConfig.subType) {
+ case CFSubRuleType.average:{
+ const operator = ruleConfig.operator;
+ return localeService.t(`sheet.cf.preview.describe.${operator}`, localeService.t('sheet.cf.subRuleType.average'));
+ }
+ case CFSubRuleType.duplicateValues:{
+ return localeService.t('sheet.cf.subRuleType.duplicateValues');
+ }
+ case CFSubRuleType.uniqueValues:{
+ return localeService.t('sheet.cf.subRuleType.uniqueValues');
+ }
+ case CFSubRuleType.number:{
+ const operator = ruleConfig.operator;
+ return localeService.t(`sheet.cf.preview.describe.${operator}`, ...Array.isArray(ruleConfig.value) ? (ruleConfig.value.map((e) => String(e))) : [String(ruleConfig.value || '')]);
+ }
+ case CFSubRuleType.text:{
+ const operator = ruleConfig.operator;
+ return localeService.t(`sheet.cf.preview.describe.${operator}`, ruleConfig.value || '');
+ }
+
+ case CFSubRuleType.timePeriod:{
+ const operator = ruleConfig.operator;
+ return localeService.t(`sheet.cf.preview.describe.${operator}`);
+ }
+ case CFSubRuleType.rank:{
+ if (ruleConfig.isPercent) {
+ if (ruleConfig.isBottom) {
+ return localeService.t('sheet.cf.preview.describe.bottomNPercent', String(ruleConfig.value));
+ } else {
+ return localeService.t('sheet.cf.preview.describe.topNPercent', String(ruleConfig.value));
+ }
+ } else {
+ if (ruleConfig.isBottom) {
+ return localeService.t('sheet.cf.preview.describe.bottomN', String(ruleConfig.value));
+ } else {
+ return localeService.t('sheet.cf.preview.describe.topN', String(ruleConfig.value));
+ }
+ }
+ }
+ case CFSubRuleType.formula:{
+ return localeService.t('sheet.cf.ruleType.formula');
+ }
+ }
+ }
+ }
+};
+let defaultWidth = 0;
+export const RuleList = (props: IRuleListProps) => {
+ const { onClick } = props;
+ const conditionalFormatRuleModel = useDependency(ConditionalFormatRuleModel);
+ const univerInstanceService = useDependency(IUniverInstanceService);
+ const selectionManagerService = useDependency(SelectionManagerService);
+ const commandService = useDependency(ICommandService);
+ const localeService = useDependency(LocaleService);
+ const conditionalFormatI18nController = useDependency(ConditionalFormatI18nController);
+
+ const workbook = univerInstanceService.getCurrentUniverSheetInstance();
+ const unitId = workbook.getUnitId();
+ const worksheet = workbook.getActiveSheet();
+ const subUnitId = worksheet.getSheetId();
+ const [selectValue, selectValueSet] = useState('2');
+ const [fetchRuleListId, fetchRuleListIdSet] = useState(0);
+ const [draggingId, draggingIdSet] = useState<number>(-1);
+ const [layoutWidth, layoutWidthSet] = useState(defaultWidth);
+ const layoutContainerRef = useRef<HTMLDivElement>(null);
+ const selectOption = [
+ { label: localeService.t('sheet.cf.panel.workSheet'), value: '2' },
+ { label: localeService.t('sheet.cf.panel.selectedRange'), value: '1' },
+ ];
+ const getRuleList = () => {
+ const ruleList = conditionalFormatRuleModel.getSubunitRules(unitId, subUnitId);
+ if (!ruleList || !ruleList.length) {
+ return [];
+ }
+ if (selectValue === '1') {
+ const selection = selectionManagerService.getLast();
+ if (!selection) {
+ return [];
+ }
+ const range = selection.range;
+ const _ruleList = ruleList.filter((rule) => {
+ return rule.ranges.some((ruleRange) => Rectangle.intersects(ruleRange, range));
+ });
+ return _ruleList;
+ } else if (selectValue === '2') {
+ return ruleList;
+ }
+ return [];
+ };
+ const [ruleList, ruleListSet] = useState(getRuleList);
+
+ useEffect(() => {
+ const disposable = commandService.onCommandExecuted((commandInfo) => {
+ if (commandInfo.id === SetWorksheetActiveOperation.id) {
+ fetchRuleListIdSet(Math.random());
+ }
+ });
+ return () => disposable.dispose();
+ });
+
+ useEffect(() => {
+ ruleListSet(getRuleList);
+ }, [selectValue, fetchRuleListId, unitId, subUnitId]);
+
+ useEffect(() => {
+ if (selectValue === '2') {
+ return;
+ }
+ const subscription =
+ new Observable<null>((commandSubscribe) => {
+ const commandList = [SetSelectionsOperation.id, AddConditionalRuleMutation.id, SetConditionalRuleMutation.id, DeleteConditionalRuleMutation.id, MoveConditionalRuleMutation.id];
+ const disposable = commandService.onCommandExecuted((commandInfo) => {
+ const { id, params } = commandInfo;
+ const unitId = univerInstanceService.getCurrentUniverSheetInstance().getUnitId();
+ if (commandList.includes(id) && (params as { unitId: string }).unitId === unitId) {
+ commandSubscribe.next(null);
+ }
+ });
+ return () => disposable.dispose();
+ }).pipe(debounceTime(16))
+ .subscribe(() => {
+ ruleListSet(getRuleList);
+ });
+ return () => {
+ subscription.unsubscribe();
+ };
+ }, [univerInstanceService, selectValue, unitId, subUnitId]);
+
+ useEffect(() => {
+ const dispose = conditionalFormatRuleModel.$ruleChange.subscribe(() => {
+ fetchRuleListIdSet(Math.random());
+ });
+ return () => dispose.unsubscribe();
+ }, [conditionalFormatRuleModel]);
+
+ useEffect(() => {
+ // Because univer-sidebar contains animations, accurate width values can not be obtained in real time。
+ // Also set a global width as the default width to avoid a gap before the first calculation.
+ const getWidth = () => {
+ // 8 is padding-left
+ const width = Math.max(0, (layoutContainerRef.current?.getBoundingClientRect().width || 0) - 8);
+ defaultWidth = width;
+ return width;
+ };
+ const observer = new Observable((subscribe) => {
+ const targetElement = document.querySelector('.univer-sidebar');
+ if (targetElement) {
+ let time = setTimeout(() => {
+ subscribe.next();
+ }, 150);
+ const clearTime = () => {
+ time && clearTimeout(time);
+ time = null as any;
+ };
+ const handle: any = (e: TransitionEvent) => {
+ if (e.propertyName === 'width') {
+ clearTime();
+ subscribe.next();
+ }
+ };
+ targetElement.addEventListener('transitionend', handle);
+ return () => {
+ clearTime();
+ targetElement.removeEventListener('transitionend', handle);
+ };
+ }
+ });
+ const subscription = observer.pipe(debounceTime(16)).subscribe(() => {
+ layoutWidthSet(getWidth());
+ });
+ return () => {
+ subscription.unsubscribe();
+ };
+ }, []);
+
+ const handleDelete = (rule: IConditionFormatRule) => {
+ const unitId = univerInstanceService.getCurrentUniverSheetInstance().getUnitId();
+ const subUnitId = univerInstanceService.getCurrentUniverSheetInstance().getActiveSheet().getSheetId();
+ commandService.executeCommand(DeleteCfCommand.id, { unitId, subUnitId, cfId: rule.cfId } as IDeleteCfCommandParams);
+ };
+
+ const handleDragStart = (_layout: unknown, from: { y: number }) => {
+ draggingIdSet(from.y);
+ };
+
+ const handleDragStop = (_layout: unknown, from: { y: number }, to: { y: number }) => {
+ draggingIdSet(-1);
+ const unitId = univerInstanceService.getCurrentUniverSheetInstance().getUnitId();
+ const subUnitId = univerInstanceService.getCurrentUniverSheetInstance().getActiveSheet().getSheetId();
+ const getSaveIndex = (index: number) => {
+ const length = ruleList.length;
+ return Math.min(length - 1, Math.max(0, index));
+ };
+ const cfId = ruleList[getSaveIndex(from.y)].cfId;
+ const targetCfId = ruleList[getSaveIndex(to.y)].cfId;
+ commandService.executeCommand(moveCfCommand.id, { unitId, subUnitId, cfId, targetCfId } as IMoveCfCommand);
+ };
+
+ const handleCreate = () => {
+ props.onCreate();
+ };
+
+ const handleClear = () => {
+ if (selectValue === '2') {
+ commandService.executeCommand(ClearWorksheetCfCommand.id);
+ } else if (selectValue === '1') {
+ const list = ruleList.map((rule) => ({ unitId, subUnitId, cfId: rule.cfId }));
+ list.forEach((config) => {
+ commandService.executeCommand(DeleteCfCommand.id, config);
+ });
+ }
+ };
+
+ const layout = ruleList.map((rule, index) => ({ i: rule.cfId, x: 0, w: 12, y: index, h: 1, isResizable: false }));
+
+ return (
+ <div className={styles.cfRuleList}>
+ <div className={styles.ruleSelector}>
+ <div>
+ {conditionalFormatI18nController.tWithReactNode('sheet.cf.panel.managerRuleSelect',
+ <Select className={styles.select} options={selectOption} value={selectValue} onChange={(v) => { selectValueSet(v); }} />
+ )
+ .map((ele, index) => <span key={index}>{ele}</span>)}
+ </div>
+ <div className={styles.btnList}>
+ <Tooltip title={localeService.t('sheet.cf.panel.createRule')} placement="bottom">
+ <div className={`${styles.icon}`} onClick={handleCreate}>
+ <IncreaseSingle />
+ </div>
+ </Tooltip>
+ {ruleList.length
+ ? (
+ <Tooltip title={localeService.t('sheet.cf.panel.clear')} placement="bottom">
+ <div className={`${styles.gap} ${styles.icon}`} onClick={handleClear}>
+ <DeleteSingle />
+ </div>
+ </Tooltip>
+ )
+ : (
+ <div className={`${styles.gap} ${styles.disabled}`}>
+ <DeleteSingle />
+ </div>
+ )}
+
+ </div>
+
+ </div>
+ <div ref={layoutContainerRef} className={styles.gridLayoutWrap}>
+ { layoutWidth
+ ? (
+ <GridLayout
+ onDragStop={handleDragStop}
+ onDragStart={handleDragStart}
+ layout={layout}
+ cols={12}
+ rowHeight={60}
+ width={layoutWidth}
+ margin={[0, 10]}
+ draggableHandle=".draggableHandle"
+ >
+ { ruleList.map((rule, index) => {
+ return (
+ <div key={`${rule.cfId}`}>
+ <div className={`${styles.ruleItem} ${draggingId === index ? styles.active : ''}`} onClick={() => onClick(rule)}>
+ <div
+ className={`${styles.draggableHandle} draggableHandle`}
+ onClick={(e) => e.stopPropagation()}
+ >
+ <SequenceSingle />
+ </div>
+ <div className={styles.ruleDescribe}>
+ <div className={styles.ruleType}>{getRuleDescribe(rule, localeService)}</div>
+ <div className={styles.ruleRange}>{rule.ranges.map((range) => serializeRange(range)).join(',')}</div>
+ </div>
+ <div className={styles.preview}><Preview rule={rule.rule} /></div>
+ <div
+ className={`${styles.deleteItem} ${draggingId === index ? styles.active : ''}`}
+ onClick={(e) => {
+ e.stopPropagation();
+ handleDelete(rule);
+ }}
+ >
+ <DeleteSingle />
+ </div>
+ </div>
+ </div>
+ );
+ })}
+ </GridLayout>
+ )
+ : null}
+
+ </div>
+ </div>
+ );
+};
diff --git a/packages/sheets-conditional-format/src/components/preview/index.module.less b/packages/sheets-conditional-format/src/components/preview/index.module.less
new file mode 100644
index 0000000000..47c06d9025
--- /dev/null
+++ b/packages/sheets-conditional-format/src/components/preview/index.module.less
@@ -0,0 +1,9 @@
+.cf-preview {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ pointer-events: none;
+ min-width: 72px;
+ height: 20px;
+ font-size: 12px;
+}
diff --git a/packages/sheets-conditional-format/src/components/preview/index.tsx b/packages/sheets-conditional-format/src/components/preview/index.tsx
new file mode 100644
index 0000000000..a94fd1bdeb
--- /dev/null
+++ b/packages/sheets-conditional-format/src/components/preview/index.tsx
@@ -0,0 +1,102 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import React, { useMemo } from 'react';
+import { BooleanNumber, ColorKit } from '@univerjs/core';
+import { SlashSingle } from '@univerjs/icons';
+import type { IConditionalFormatRuleConfig } from '../../models/type';
+import { CFRuleType, DEFAULT_BG_COLOR, DEFAULT_FONT_COLOR } from '../../base/const';
+import { getColorScaleFromValue } from '../../services/calculate-unit/utils';
+import { iconMap } from '../../models/icon-map';
+import styles from './index.module.less';
+
+export const Preview = (props: { rule?: IConditionalFormatRuleConfig }) => {
+ const rule = props.rule;
+ if (!rule) {
+ return null;
+ }
+ const colorList = useMemo(() => {
+ if (rule.type === CFRuleType.colorScale) {
+ const config = rule.config.map((c, index) => ({ color: new ColorKit(c.color), value: index }));
+ const maxValue = config.length - 1;
+ const valueList = new Array(5).fill('').map((_v, index, arr) => index * maxValue / (arr.length - 1));
+ return valueList.map((value) => getColorScaleFromValue(config, value));
+ }
+ return null;
+ }, [rule]);
+ const iconSet = useMemo(() => {
+ if (rule.type === CFRuleType.iconSet) {
+ return rule.config.map((item) => {
+ const iconList = iconMap[item.iconType];
+ return iconList && iconList[Number(item.iconId)];
+ });
+ }
+ }, [rule]);
+ switch (rule.type) {
+ case CFRuleType.dataBar:
+ {
+ const { isGradient } = rule.config;
+ const commonStyle = { width: '50%', height: '100%' };
+ const positiveColor = isGradient ? `linear-gradient(to right, ${rule.config.positiveColor}, rgb(255 255 255))` : rule.config.positiveColor;
+ const nativeColor = isGradient ? `linear-gradient(to right, rgb(255 255 255),${rule.config.nativeColor})` : rule.config.nativeColor;
+ return (
+ <div className={styles.cfPreview}>
+ <div style={{ ...commonStyle, background: nativeColor, border: `1px solid ${rule.config.nativeColor}` }}></div>
+ <div style={{ ...commonStyle, background: positiveColor, border: `1px solid ${rule.config.positiveColor}` }}></div>
+ </div>
+ );
+ }
+
+ case CFRuleType.colorScale:{
+ return colorList && (
+ <div className={styles.cfPreview}>
+ {colorList.map((item, index) => (
+ <div key={index} style={{ width: `${100 / colorList.length}%`, height: '100%', background: item }}>
+ </div>
+ ))}
+ </div>
+ );
+ }
+ case CFRuleType.iconSet:{
+ return iconSet && (
+ <div className={styles.cfPreview}>
+ {iconSet.map((base64, index) => (base64 ? <img style={{ height: '100%' }} key={index} src={base64} /> : <SlashSingle key={index} />))}
+ </div>
+ );
+ }
+ case CFRuleType.highlightCell:{
+ const { ul, st, it, bl, bg, cl } = rule.style;
+ const isUnderline = ul?.s === BooleanNumber.TRUE;
+ const isStrikethrough = st?.s === BooleanNumber.TRUE;
+ const isItalic = it === BooleanNumber.TRUE;
+ const isBold = bl === BooleanNumber.TRUE;
+ const bgColor = bg?.rgb ?? DEFAULT_BG_COLOR;
+ const fontColor = cl?.rgb ?? DEFAULT_FONT_COLOR;
+ const style = { fontWeight: isBold ? 'bold' : undefined,
+ fontStyle: isItalic ? 'italic' : undefined,
+ textDecoration: `${isUnderline ? 'underline' : ''} ${isStrikethrough ? 'line-through' : ''}`.replace(/^ /, '') || undefined,
+ backgroundColor: bgColor,
+ color: fontColor,
+ };
+ return (
+ <div style={style} className={styles.cfPreview}>
+ 123
+ </div>
+ );
+ }
+ }
+ return null;
+};
diff --git a/packages/sheets-conditional-format/src/controllers/cf.auto-fill.controller.ts b/packages/sheets-conditional-format/src/controllers/cf.auto-fill.controller.ts
new file mode 100644
index 0000000000..98ecad3db4
--- /dev/null
+++ b/packages/sheets-conditional-format/src/controllers/cf.auto-fill.controller.ts
@@ -0,0 +1,192 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import type { IMutationInfo, IRange } from '@univerjs/core';
+import { Disposable, IUniverInstanceService, LifecycleStages, ObjectMatrix, OnLifecycle, Range, Rectangle } from '@univerjs/core';
+import { createTopMatrixFromMatrix, findAllRectangle } from '@univerjs/sheets';
+
+import type { ISheetAutoFillHook } from '@univerjs/sheets-ui';
+import { APPLY_TYPE, getAutoFillRepeatRange, IAutoFillService } from '@univerjs/sheets-ui';
+import { Inject, Injector } from '@wendellhu/redi';
+import { SetConditionalRuleMutation, setConditionalRuleMutationUndoFactory } from '../commands/mutations/set-conditional-rule.mutation';
+import type { ISetConditionalRuleMutationParams } from '../commands/mutations/set-conditional-rule.mutation';
+import { ConditionalFormatViewModel } from '../models/conditional-format-view-model';
+import { ConditionalFormatRuleModel } from '../models/conditional-format-rule-model';
+
+import { SHEET_CONDITION_FORMAT_PLUGIN } from '../base/const';
+
+@OnLifecycle(LifecycleStages.Rendered, ConditionalFormatAutoFillController)
+export class ConditionalFormatAutoFillController extends Disposable {
+ constructor(
+ @Inject(Injector) private _injector: Injector,
+ @Inject(IUniverInstanceService) private _univerInstanceService: IUniverInstanceService,
+ @Inject(IAutoFillService) private _autoFillService: IAutoFillService,
+ @Inject(ConditionalFormatRuleModel) private _conditionalFormatRuleModel: ConditionalFormatRuleModel,
+
+ @Inject(ConditionalFormatViewModel) private _conditionalFormatViewModel: ConditionalFormatViewModel
+
+ ) {
+ super();
+
+ this._initAutoFill();
+ }
+
+ private _initAutoFill() {
+ const noopReturnFunc = () => ({ redos: [], undos: [] });
+ const loopFunc = (
+ sourceStartCell: { row: number; col: number },
+ targetStartCell: { row: number; col: number },
+ relativeRange: IRange,
+ matrixMap: Map<string, ObjectMatrix<1>>
+ ) => {
+ const unitId = this._univerInstanceService.getCurrentUniverSheetInstance().getUnitId();
+ const subUnitId = this._univerInstanceService.getCurrentUniverSheetInstance().getActiveSheet().getSheetId();
+ const sourceRange = {
+ startRow: sourceStartCell.row,
+ startColumn: sourceStartCell.col,
+ endColumn: sourceStartCell.col,
+ endRow: sourceStartCell.row,
+ };
+ const targetRange = {
+ startRow: targetStartCell.row,
+ startColumn: targetStartCell.col,
+ endColumn: targetStartCell.col,
+ endRow: targetStartCell.row,
+ };
+
+ Range.foreach(relativeRange, (row, col) => {
+ const sourcePositionRange = Rectangle.getPositionRange(
+ {
+ startRow: row,
+ startColumn: col,
+ endColumn: col,
+ endRow: row,
+ },
+ sourceRange
+ );
+ const targetPositionRange = Rectangle.getPositionRange(
+ {
+ startRow: row,
+ startColumn: col,
+ endColumn: col,
+ endRow: row,
+ },
+ targetRange
+ );
+ const sourceCellCf = this._conditionalFormatViewModel.getCellCf(
+ unitId,
+ subUnitId,
+ sourcePositionRange.startRow,
+ sourcePositionRange.startColumn
+ );
+
+ const targetCellCf = this._conditionalFormatViewModel.getCellCf(
+ unitId,
+ subUnitId,
+ targetPositionRange.startRow,
+ targetPositionRange.startColumn
+ );
+ if (targetCellCf) {
+ targetCellCf.cfList.forEach((cf) => {
+ let matrix = matrixMap.get(cf.cfId);
+ if (!matrixMap.get(cf.cfId)) {
+ const rule = this._conditionalFormatRuleModel.getRule(unitId, subUnitId, cf.cfId);
+ if (!rule) {
+ return;
+ }
+ matrix = new ObjectMatrix();
+ rule.ranges.forEach((range) => {
+ Range.foreach(range, (row, col) => {
+ matrix!.setValue(row, col, 1);
+ });
+ });
+ matrixMap.set(cf.cfId, matrix);
+ }
+ matrix!.realDeleteValue(targetPositionRange.startRow, targetPositionRange.startColumn);
+ });
+ }
+
+ if (sourceCellCf) {
+ sourceCellCf.cfList.forEach((cf) => {
+ let matrix = matrixMap.get(cf.cfId);
+ if (!matrixMap.get(cf.cfId)) {
+ const rule = this._conditionalFormatRuleModel.getRule(unitId, subUnitId, cf.cfId);
+ if (!rule) {
+ return;
+ }
+ matrix = new ObjectMatrix();
+ rule.ranges.forEach((range) => {
+ Range.foreach(range, (row, col) => {
+ matrix!.setValue(row, col, 1);
+ });
+ });
+ matrixMap.set(cf.cfId, matrix);
+ }
+ matrix!.setValue(targetPositionRange.startRow, targetPositionRange.startColumn, 1);
+ });
+ }
+ });
+ };
+ const generalApplyFunc = (sourceRange: IRange, targetRange: IRange) => {
+ const unitId = this._univerInstanceService.getCurrentUniverSheetInstance().getUnitId();
+ const subUnitId = this._univerInstanceService.getCurrentUniverSheetInstance().getActiveSheet().getSheetId();
+ const matrixMap: Map<string, ObjectMatrix<1>> = new Map();
+
+ const redos: IMutationInfo[] = [];
+ const undos: IMutationInfo[] = [];
+
+ const sourceStartCell = {
+ row: sourceRange.startRow,
+ col: sourceRange.startColumn,
+ };
+ const repeats = getAutoFillRepeatRange(sourceRange, targetRange);
+ repeats.forEach((repeat) => {
+ loopFunc(sourceStartCell, repeat.repeatStartCell, repeat.relativeRange, matrixMap);
+ });
+ matrixMap.forEach((item, cfId) => {
+ const rule = this._conditionalFormatRuleModel.getRule(unitId, subUnitId, cfId);
+ if (!rule) {
+ return;
+ }
+ const ranges = findAllRectangle(createTopMatrixFromMatrix(item));
+ const params: ISetConditionalRuleMutationParams = {
+ unitId, subUnitId, rule: { ...rule, ranges },
+ };
+ redos.push({ id: SetConditionalRuleMutation.id, params });
+ undos.push(...setConditionalRuleMutationUndoFactory(this._injector, params));
+ });
+ return {
+ undos,
+ redos,
+ };
+ };
+ const hook: ISheetAutoFillHook = {
+ id: SHEET_CONDITION_FORMAT_PLUGIN,
+ onFillData: (location, direction, applyType) => {
+ if (
+ applyType === APPLY_TYPE.COPY ||
+ applyType === APPLY_TYPE.ONLY_FORMAT ||
+ applyType === APPLY_TYPE.SERIES
+ ) {
+ const { source, target } = location;
+ return generalApplyFunc(source, target);
+ }
+ return noopReturnFunc();
+ },
+ };
+ this.disposeWithMe(this._autoFillService.addHook(hook));
+ }
+}
diff --git a/packages/sheets-conditional-format/src/controllers/cf.clear.controller.ts b/packages/sheets-conditional-format/src/controllers/cf.clear.controller.ts
new file mode 100644
index 0000000000..1dfa1c20e6
--- /dev/null
+++ b/packages/sheets-conditional-format/src/controllers/cf.clear.controller.ts
@@ -0,0 +1,93 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import type { IMutationInfo } from '@univerjs/core';
+import { Disposable, IUniverInstanceService, LifecycleStages, OnLifecycle, Rectangle } from '@univerjs/core';
+import { ClearSelectionAllCommand, ClearSelectionFormatCommand, RangeMergeUtil, SelectionManagerService, SheetInterceptorService } from '@univerjs/sheets';
+import { Inject, Injector } from '@wendellhu/redi';
+import { ConditionalFormatRuleModel } from '../models/conditional-format-rule-model';
+import type { ISetConditionalRuleMutationParams } from '../commands/mutations/set-conditional-rule.mutation';
+import { SetConditionalRuleMutation, setConditionalRuleMutationUndoFactory } from '../commands/mutations/set-conditional-rule.mutation';
+import type { IDeleteConditionalRuleMutationParams } from '../commands/mutations/delete-conditional-rule.mutation';
+import { DeleteConditionalRuleMutation, DeleteConditionalRuleMutationUndoFactory } from '../commands/mutations/delete-conditional-rule.mutation';
+
+@OnLifecycle(LifecycleStages.Rendered, ConditionalFormatClearController)
+export class ConditionalFormatClearController extends Disposable {
+ constructor(
+ @Inject(Injector) private _injector: Injector,
+ @Inject(IUniverInstanceService) private _univerInstanceService: IUniverInstanceService,
+ @Inject(SheetInterceptorService) private _sheetInterceptorService: SheetInterceptorService,
+ @Inject(SelectionManagerService) private _selectionManagerService: SelectionManagerService,
+ @Inject(ConditionalFormatRuleModel) private _conditionalFormatRuleModel: ConditionalFormatRuleModel
+
+ ) {
+ super();
+
+ this._init();
+ }
+
+ private _init() {
+ this.disposeWithMe(this._sheetInterceptorService.interceptCommand({ getMutations: (commandInfo) => {
+ const redos: IMutationInfo[] = [];
+ const undos: IMutationInfo[] = [];
+ const defaultV = { redos, undos };
+ if ([ClearSelectionFormatCommand.id, ClearSelectionAllCommand.id].includes(commandInfo.id)) {
+ const ranges = this._selectionManagerService.getSelectionRanges();
+ if (!ranges) {
+ return defaultV;
+ }
+ const workbook = this._univerInstanceService.getCurrentUniverSheetInstance();
+ const worksheet = workbook.getActiveSheet();
+ const allRules = this._conditionalFormatRuleModel.getSubunitRules(workbook.getUnitId(), worksheet.getSheetId());
+ if (!allRules || !allRules.length) {
+ return defaultV;
+ }
+ allRules.filter((rule) => {
+ return ranges.some((range) => rule.ranges.some((ruleRange) => Rectangle.getIntersects(ruleRange, range)));
+ }).forEach((rule) => {
+ const mergeUtil = new RangeMergeUtil();
+ const mergeRanges = mergeUtil.add(...rule.ranges).subtract(...ranges).merge();
+ if (mergeRanges.length) {
+ const redo: IMutationInfo<ISetConditionalRuleMutationParams> = {
+ id: SetConditionalRuleMutation.id,
+ params: {
+ unitId: workbook.getUnitId(),
+ subUnitId: worksheet.getSheetId(),
+ rule: { ...rule, ranges: mergeRanges },
+ },
+ };
+ const undo = setConditionalRuleMutationUndoFactory(this._injector, redo.params);
+ redos.push(redo);
+ undos.push(...undo);
+ } else {
+ const redo: IMutationInfo<IDeleteConditionalRuleMutationParams> = {
+ id: DeleteConditionalRuleMutation.id,
+ params: {
+ unitId: workbook.getUnitId(),
+ subUnitId: worksheet.getSheetId(),
+ cfId: rule.cfId,
+ },
+ };
+ const undo = DeleteConditionalRuleMutationUndoFactory(this._injector, redo.params);
+ redos.push(redo);
+ undos.push(...undo);
+ }
+ });
+ }
+ return defaultV;
+ } }));
+ }
+}
diff --git a/packages/sheets-conditional-format/src/controllers/cf.copy-paste.controller.ts b/packages/sheets-conditional-format/src/controllers/cf.copy-paste.controller.ts
new file mode 100644
index 0000000000..63c1af196e
--- /dev/null
+++ b/packages/sheets-conditional-format/src/controllers/cf.copy-paste.controller.ts
@@ -0,0 +1,275 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import type { IRange, Nullable } from '@univerjs/core';
+import {
+ Disposable,
+ IUniverInstanceService,
+ LifecycleStages,
+ ObjectMatrix,
+ OnLifecycle,
+ Range,
+ Rectangle,
+ Tools,
+} from '@univerjs/core';
+import {
+ createTopMatrixFromMatrix, findAllRectangle,
+} from '@univerjs/sheets';
+import { COPY_TYPE, getRepeatRange, ISheetClipboardService, PREDEFINED_HOOK_NAME } from '@univerjs/sheets-ui';
+import { Inject, Injector } from '@wendellhu/redi';
+import { SHEET_CONDITION_FORMAT_PLUGIN } from '../base/const';
+import { ConditionalFormatViewModel } from '../models/conditional-format-view-model';
+import { ConditionalFormatRuleModel } from '../models/conditional-format-rule-model';
+import type { IConditionalFormatRuleConfig, IConditionFormatRule } from '../models/type';
+import type { IAddConditionalRuleMutationParams } from '../commands/mutations/add-conditional-rule.mutation';
+import { AddConditionalRuleMutation, AddConditionalRuleMutationUndoFactory } from '../commands/mutations/add-conditional-rule.mutation';
+import type { IDeleteConditionalRuleMutationParams } from '../commands/mutations/delete-conditional-rule.mutation';
+import { DeleteConditionalRuleMutation, DeleteConditionalRuleMutationUndoFactory } from '../commands/mutations/delete-conditional-rule.mutation';
+import type { ISetConditionalRuleMutationParams } from '../commands/mutations/set-conditional-rule.mutation';
+import { SetConditionalRuleMutation, setConditionalRuleMutationUndoFactory } from '../commands/mutations/set-conditional-rule.mutation';
+
+@OnLifecycle(LifecycleStages.Rendered, ConditionalFormatCopyPasteController)
+export class ConditionalFormatCopyPasteController extends Disposable {
+ private _copyInfo: Nullable<{
+ matrix: ObjectMatrix<string[]>;
+ info: {
+ unitId: string;
+ subUnitId: string;
+ cfMap: Record<string, IConditionalFormatRuleConfig>;
+ };
+ }>;
+
+ constructor(
+ @Inject(ISheetClipboardService) private _sheetClipboardService: ISheetClipboardService,
+ @Inject(ConditionalFormatRuleModel) private _conditionalFormatRuleModel: ConditionalFormatRuleModel,
+ @Inject(Injector) private _injector: Injector,
+ @Inject(ConditionalFormatViewModel) private _conditionalFormatViewModel: ConditionalFormatViewModel,
+
+ @Inject(IUniverInstanceService) private _univerInstanceService: IUniverInstanceService
+ ) {
+ super();
+ this._initClipboardHook();
+ }
+
+ private _initClipboardHook() {
+ this.disposeWithMe(
+ this._sheetClipboardService.addClipboardHook({
+ id: SHEET_CONDITION_FORMAT_PLUGIN,
+ onBeforeCopy: (unitId, subUnitId, range) => this._collectConditionalRule(unitId, subUnitId, range),
+ onPasteCells: (pasteFrom, pasteTo, data, payload) => {
+ const { copyType = COPY_TYPE.COPY, pasteType } = payload;
+ const { range: copyRange } = pasteFrom || {};
+ const { range: pastedRange } = pasteTo;
+ return this._generateConditionalFormatMutations(pastedRange, { copyType, pasteType, copyRange });
+ },
+ })
+ );
+ }
+
+ private _collectConditionalRule(unitId: string, subUnitId: string, range: IRange) {
+ const matrix = new ObjectMatrix<string[]>();
+ const cfMap: Record<string, IConditionalFormatRuleConfig> = {};
+ this._copyInfo = {
+ matrix,
+ info: {
+ unitId,
+ subUnitId,
+ cfMap,
+ },
+ };
+ const model = this._conditionalFormatViewModel.getMatrix(unitId, subUnitId);
+ if (!model) {
+ return;
+ }
+ const cfIdSet: Set<string> = new Set();
+ Range.foreach(range, (row, col) => {
+ const cellCfList = this._conditionalFormatViewModel.getCellCf(unitId, subUnitId, row, col, model);
+ if (!cellCfList) {
+ return;
+ }
+ const relativeRange = Rectangle.getRelativeRange(
+ {
+ startRow: row,
+ endRow: row,
+ startColumn: col,
+ endColumn: col,
+ },
+ range
+ );
+ cellCfList.cfList.forEach((item) => cfIdSet.add(item.cfId));
+ matrix.setValue(relativeRange.startRow, relativeRange.startColumn, cellCfList.cfList.map((item) => item.cfId));
+ });
+ cfIdSet.forEach((cfId) => {
+ const rule = this._conditionalFormatRuleModel.getRule(unitId, subUnitId, cfId);
+ if (rule) {
+ cfMap[cfId] = rule.rule;
+ }
+ });
+ }
+
+ private _generateConditionalFormatMutations(
+ pastedRange: IRange,
+ copyInfo: {
+ copyType: COPY_TYPE;
+ copyRange?: IRange;
+ pasteType: string;
+ }
+ ) {
+ const workbook = this._univerInstanceService.getCurrentUniverSheetInstance();
+ const sheet = workbook.getActiveSheet();
+ const unitId = workbook.getUnitId();
+ const subUnitId = sheet.getSheetId();
+ if (copyInfo.copyType === COPY_TYPE.CUT) {
+ // This do not need to deal with clipping.
+ // move range had handle this case .
+ // to see cf.ref-range.controller.ts
+ this._copyInfo = null;
+ return { redos: [], undos: [] };
+ }
+ if (!this._copyInfo || !copyInfo.copyRange) {
+ return { redos: [], undos: [] };
+ }
+
+ if (
+ ![PREDEFINED_HOOK_NAME.SPECIAL_PASTE_FORMAT, PREDEFINED_HOOK_NAME.DEFAULT_PASTE, PREDEFINED_HOOK_NAME.SPECIAL_PASTE_BESIDES_BORDER].includes(
+ copyInfo.pasteType
+ )
+ ) {
+ return { redos: [], undos: [] };
+ }
+ const repeatRange = getRepeatRange(copyInfo.copyRange, pastedRange, true);
+ const model = this._conditionalFormatViewModel.getMatrix(unitId, subUnitId);
+ const effectedConditionalFormatRuleMatrix: Record<string, ObjectMatrix<1>> = {};
+ Range.foreach(pastedRange, (row, col) => {
+ const cellCfList = this._conditionalFormatViewModel.getCellCf(unitId, subUnitId, row, col, model!);
+ if (cellCfList) {
+ cellCfList.cfList.forEach((item) => {
+ if (!effectedConditionalFormatRuleMatrix[item.cfId]) {
+ const ruleMatrix = new ObjectMatrix<1>();
+ effectedConditionalFormatRuleMatrix[item.cfId] = ruleMatrix;
+ const rule = this._conditionalFormatRuleModel.getRule(unitId, subUnitId, item.cfId);
+ rule?.ranges.forEach((range) => {
+ Range.foreach(range, (row, col) => {
+ ruleMatrix.setValue(row, col, 1);
+ });
+ });
+ }
+ effectedConditionalFormatRuleMatrix[item.cfId].realDeleteValue(row, col);
+ });
+ }
+ });
+
+ const { matrix, info } = this._copyInfo;
+ const waitAddRule: IConditionFormatRule[] = [];
+ let nextCfId = this._conditionalFormatRuleModel.createCfId(unitId, subUnitId);
+ const cacheCfIdMap: Record<string, IConditionFormatRule> = {};
+ /**
+ used to match the conditional format in the current worksheet with the same conditional format
+ configuration in the copy range, and if this worksheet does not exist,
+ a new cf is created based on the current worksheet.
+ */
+ const getCurrentSheetCfRule = (copyRangeCfId: string) => {
+ if (cacheCfIdMap[copyRangeCfId]) {
+ return cacheCfIdMap[copyRangeCfId];
+ }
+ const oldRule = info?.cfMap[copyRangeCfId];
+ const targetRule = [...(this._conditionalFormatRuleModel.getSubunitRules(unitId, subUnitId) || []), ...waitAddRule].find((rule) => {
+ return Tools.diffValue(rule.rule, oldRule);
+ });
+ if (targetRule) {
+ cacheCfIdMap[copyRangeCfId] = targetRule;
+ return targetRule;
+ } else {
+ const rule: IConditionFormatRule = {
+ rule: oldRule,
+ cfId: nextCfId,
+ ranges: [],
+ stopIfTrue: false,
+ };
+ cacheCfIdMap[copyRangeCfId] = rule;
+ waitAddRule.push(rule);
+ nextCfId = `${Number(nextCfId) + 1}`;
+ return rule;
+ }
+ };
+
+ repeatRange.forEach((item) => {
+ matrix &&
+ matrix.forValue((row, col, copyRangeCfIdList) => {
+ const range = Rectangle.getPositionRange(
+ {
+ startRow: row,
+ endRow: row,
+ startColumn: col,
+ endColumn: col,
+ },
+ item.startRange
+ );
+
+ const _row = range.startRow;
+ const _col = range.startColumn;
+ copyRangeCfIdList.forEach((cfId) => {
+ if (!effectedConditionalFormatRuleMatrix[cfId]) {
+ const rule = getCurrentSheetCfRule(cfId);
+ const ruleMatrix = new ObjectMatrix<1>();
+ effectedConditionalFormatRuleMatrix[cfId] = ruleMatrix;
+ rule.ranges.forEach((range) => {
+ Range.foreach(range, (row, col) => {
+ ruleMatrix.setValue(row, col, 1);
+ });
+ });
+ }
+ effectedConditionalFormatRuleMatrix[cfId].setValue(_row, _col, 1);
+ });
+ });
+ });
+ const redos = [];
+ const undos = [];
+ for (const cfId in effectedConditionalFormatRuleMatrix) {
+ const matrix = effectedConditionalFormatRuleMatrix[cfId];
+ const ranges = findAllRectangle(createTopMatrixFromMatrix(matrix));
+ if (!ranges.length) {
+ const deleteParams: IDeleteConditionalRuleMutationParams = {
+ unitId, subUnitId, cfId,
+ };
+ redos.push({ id: DeleteConditionalRuleMutation.id, params: deleteParams });
+ undos.push(...DeleteConditionalRuleMutationUndoFactory(this._injector, deleteParams));
+ }
+ if (waitAddRule.some((rule) => rule.cfId === cfId)) {
+ const rule = getCurrentSheetCfRule(cfId);
+ const addParams: IAddConditionalRuleMutationParams = {
+ unitId, subUnitId, rule: { ...rule, ranges },
+ };
+ redos.push({ id: AddConditionalRuleMutation.id, params: addParams });
+ undos.push(AddConditionalRuleMutationUndoFactory(this._injector, addParams));
+ } else {
+ const rule = this._conditionalFormatRuleModel.getRule(unitId, subUnitId, cfId);
+ if (!rule) {
+ continue;
+ }
+ const setParams: ISetConditionalRuleMutationParams = {
+ unitId, subUnitId, rule: { ...rule, ranges },
+ };
+ redos.push({ id: SetConditionalRuleMutation.id, params: setParams });
+ undos.push(...setConditionalRuleMutationUndoFactory(this._injector, setParams));
+ }
+ }
+ return {
+ redos,
+ undos,
+ };
+ }
+}
diff --git a/packages/sheets-conditional-format/src/controllers/cf.editor.controller.ts b/packages/sheets-conditional-format/src/controllers/cf.editor.controller.ts
new file mode 100644
index 0000000000..b3a0236b70
--- /dev/null
+++ b/packages/sheets-conditional-format/src/controllers/cf.editor.controller.ts
@@ -0,0 +1,73 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import {
+ Disposable,
+ LifecycleStages,
+ OnLifecycle,
+ toDisposable,
+} from '@univerjs/core';
+
+import { IEditorBridgeService } from '@univerjs/sheets-ui';
+import { Inject } from '@wendellhu/redi';
+import { ConditionalFormatService } from '../services/conditional-format.service';
+import { getStringFromDataStream } from '../utils/getStringFromDataStream';
+
+@OnLifecycle(LifecycleStages.Rendered, ConditionalFormatEditorController)
+export class ConditionalFormatEditorController extends Disposable {
+ constructor(
+ @Inject(IEditorBridgeService) private _editorBridgeService: IEditorBridgeService,
+ @Inject(ConditionalFormatService) private _conditionalFormatService: ConditionalFormatService
+
+ ) {
+ super();
+ this._initInterceptorEditorEnd();
+ }
+
+ /**
+ * Process the values after edit
+ * @private
+ * @memberof NumfmtService
+ */
+ private _initInterceptorEditorEnd() {
+ this.disposeWithMe(
+ toDisposable(
+ this._editorBridgeService.interceptor.intercept(
+ this._editorBridgeService.interceptor.getInterceptPoints().AFTER_CELL_EDIT,
+ {
+ handler: (value, context, next) => {
+ const result = this._conditionalFormatService.composeStyle(context.unitId, context.subUnitId, context.row, context.col);
+ if (result?.style && value?.p) {
+ const keys = Object.keys(result?.style);
+ if (keys.length > 0) {
+ const v = getStringFromDataStream(value.p);
+ const s = { ...(typeof value.s === 'string' ? context.workbook.getStyles().get(value.s) : value.s) || {} };
+ keys.forEach((key) => {
+ delete s[key as keyof typeof s];
+ });
+ const cellData = { ...value, s: { ...s }, v };
+ delete cellData.p;
+ return next(cellData);
+ }
+ }
+ return next(value);
+ },
+ }
+ )
+ )
+ );
+ }
+}
diff --git a/packages/sheets-conditional-format/src/controllers/cf.i18n.controller.ts b/packages/sheets-conditional-format/src/controllers/cf.i18n.controller.ts
new file mode 100644
index 0000000000..9d0794a558
--- /dev/null
+++ b/packages/sheets-conditional-format/src/controllers/cf.i18n.controller.ts
@@ -0,0 +1,71 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { Disposable, LifecycleStages, LocaleService, OnLifecycle } from '@univerjs/core';
+import { Inject } from '@wendellhu/redi';
+
+import type { ReactNode } from 'react';
+import { zhCN } from '../locale';
+
+@OnLifecycle(LifecycleStages.Rendered, ConditionalFormatI18nController)
+export class ConditionalFormatI18nController extends Disposable {
+ constructor(@Inject(LocaleService) private _localeService: LocaleService) {
+ super();
+ this._initLocal();
+ }
+
+ private _initLocal = () => {
+ this._localeService.load({ zhCN });
+ };
+
+ public tWithReactNode(key: string, ...args: (ReactNode | string)[]) {
+ const locale = this._localeService.getLocales();
+ const keys = key.split('.');
+ const resolvedValue = locale && this._localeService.resolveKeyPath(locale, keys);
+ if (typeof resolvedValue === 'string') {
+ const result: (string | ReactNode)[] = [];
+ this._findReplaceIndex(resolvedValue).forEach((item, index, list) => {
+ const preItem = list[index - 1] || { startIndex: 0, endIndex: -1 };
+ if (preItem.endIndex + 1 < item.startIndex) {
+ const text = resolvedValue.slice(preItem.endIndex + 1, item.startIndex);
+ text && result.push(text);
+ }
+ args[item.key] && result.push(args[item.key]);
+ if (index === list.length - 1) {
+ const text = resolvedValue.slice(item.endIndex + 1);
+ text && result.push(text);
+ }
+ });
+ return result;
+ }
+ return [];
+ }
+
+ private _findReplaceIndex = (text: string) => {
+ const reg = /\{([^}]+)?\}/g;
+ const result: { startIndex: number;key: number;endIndex: number }[] = [];
+ let currentValue = reg.exec(text);
+ while (currentValue) {
+ result.push({
+ startIndex: currentValue.index,
+ key: Number(currentValue[1]),
+ endIndex: currentValue.index + currentValue[0].length - 1,
+ });
+ currentValue = reg.exec(text);
+ }
+ return result;
+ };
+}
diff --git a/packages/sheets-conditional-format/src/controllers/cf.menu.controller.ts b/packages/sheets-conditional-format/src/controllers/cf.menu.controller.ts
new file mode 100644
index 0000000000..00a505dc2a
--- /dev/null
+++ b/packages/sheets-conditional-format/src/controllers/cf.menu.controller.ts
@@ -0,0 +1,58 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { Inject, Injector } from '@wendellhu/redi';
+import { Disposable, LifecycleStages, LocaleService, OnLifecycle } from '@univerjs/core';
+import { ComponentManager, IMenuService, ISidebarService } from '@univerjs/ui';
+import { FactoryManageConditionalFormatRule } from '../menu/manage-rule';
+import type { IConditionFormatRule } from '../models/type';
+import { ConditionFormatPanel } from '../components/panel';
+
+const CF_PANEL_KEY = 'sheet.conditional.format.panel';
+@OnLifecycle(LifecycleStages.Ready, ConditionalFormatMenuController)
+export class ConditionalFormatMenuController extends Disposable {
+ constructor(
+ @Inject(Injector) private _injector: Injector,
+ @Inject(ComponentManager) private _componentManager: ComponentManager,
+ @Inject(IMenuService) private _menuService: IMenuService,
+ @Inject(ISidebarService) private _sidebarService: ISidebarService,
+ @Inject(LocaleService) private _localeService: LocaleService
+
+ ) {
+ super();
+ this._initMenu();
+ this._initPanel();
+ }
+
+ openPanel(rule?: IConditionFormatRule) {
+ const props = {
+ header: { title: this._localeService.t('sheet.cf.title') },
+ children: {
+ label: CF_PANEL_KEY,
+ rule,
+ },
+ };
+ this._sidebarService.open(props);
+ }
+
+ private _initMenu() {
+ this._menuService.addMenuItem(FactoryManageConditionalFormatRule(this._componentManager)(this._injector));
+ }
+
+ private _initPanel() {
+ this._componentManager.register(CF_PANEL_KEY, ConditionFormatPanel);
+ }
+}
diff --git a/packages/sheets-conditional-format/src/controllers/cf.ref-range.controller.ts b/packages/sheets-conditional-format/src/controllers/cf.ref-range.controller.ts
new file mode 100644
index 0000000000..040d75f706
--- /dev/null
+++ b/packages/sheets-conditional-format/src/controllers/cf.ref-range.controller.ts
@@ -0,0 +1,134 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import type { IRange } from '@univerjs/core';
+import { Disposable, DisposableCollection, IUniverInstanceService, LifecycleStages, OnLifecycle, toDisposable } from '@univerjs/core';
+import type { EffectRefRangeParams } from '@univerjs/sheets';
+import { SheetSkeletonManagerService } from '@univerjs/sheets-ui';
+import { handleDefaultRangeChangeWithEffectRefCommands, RefRangeService } from '@univerjs/sheets';
+import { Inject, Injector } from '@wendellhu/redi';
+import { merge, Observable } from 'rxjs';
+import { distinctUntilChanged, map, switchMap } from 'rxjs/operators';
+import { ConditionalFormatRuleModel } from '../models/conditional-format-rule-model';
+import type { IConditionFormatRule } from '../models/type';
+import type { ISetConditionalRuleMutationParams } from '../commands/mutations/set-conditional-rule.mutation';
+import type { IDeleteConditionalRuleMutationParams } from '../commands/mutations/delete-conditional-rule.mutation';
+import { DeleteConditionalRuleMutation, DeleteConditionalRuleMutationUndoFactory } from '../commands/mutations/delete-conditional-rule.mutation';
+import { SetConditionalRuleMutation, setConditionalRuleMutationUndoFactory } from '../commands/mutations/set-conditional-rule.mutation';
+import { isRangesEqual } from '../utils/isRangesEqual';
+
+@OnLifecycle(LifecycleStages.Rendered, RefRangeController)
+export class RefRangeController extends Disposable {
+ constructor(
+ @Inject(ConditionalFormatRuleModel) private _conditionalFormatRuleModel: ConditionalFormatRuleModel,
+ @Inject(IUniverInstanceService) private _univerInstanceService: IUniverInstanceService,
+ @Inject(Injector) private _injector: Injector,
+ @Inject(SheetSkeletonManagerService) private _sheetSkeletonManagerService: SheetSkeletonManagerService,
+
+ @Inject(RefRangeService) private _refRangeService: RefRangeService) {
+ super();
+ this._initRefRange();
+ }
+
+ private _initRefRange() {
+ const disposableMap: Map<string, () => void> = new Map();
+ const getCfIdWithUnitId = (unitID: string, subUnitId: string, cfId: string) => `${unitID}_${subUnitId}_${cfId}`;
+ const register = (unitId: string, subUnitId: string, rule: IConditionFormatRule) => {
+ const handleRangeChange = (commandInfo: EffectRefRangeParams) => {
+ const oldRanges = [...rule.ranges];
+ const resultRanges = oldRanges.map((range) => {
+ return handleDefaultRangeChangeWithEffectRefCommands(range, commandInfo) as IRange;
+ }).filter((range) => !!range);
+ const isEqual = isRangesEqual(resultRanges, oldRanges);
+ if (isEqual) {
+ return { redos: [], undos: [] };
+ }
+ if (resultRanges.length) {
+ const redoParams: ISetConditionalRuleMutationParams = { unitId, subUnitId, rule: { ...rule, ranges: resultRanges } };
+ const redos = [{ id: SetConditionalRuleMutation.id, params: redoParams }];
+ const undos = setConditionalRuleMutationUndoFactory(this._injector, redoParams);
+ return { redos, undos };
+ } else {
+ const redoParams: IDeleteConditionalRuleMutationParams = { unitId, subUnitId, cfId: rule.cfId };
+ const redos = [{ id: DeleteConditionalRuleMutation.id, params: redoParams }];
+ const undos = DeleteConditionalRuleMutationUndoFactory(this._injector, redoParams);
+ return { redos, undos };
+ }
+ };
+ const disposeList: (() => void)[] = [];
+ rule.ranges.forEach((range) => {
+ const disposable = this._refRangeService.registerRefRange(range, handleRangeChange);
+ disposeList.push(() => disposable.dispose());
+ });
+ disposableMap.set(getCfIdWithUnitId(unitId, subUnitId, rule.cfId), () => disposeList.forEach((dispose) => dispose()));
+ };
+
+ this.disposeWithMe(
+ merge(
+ this._sheetSkeletonManagerService.currentSkeleton$.pipe(
+ map((skeleton) => skeleton?.sheetId),
+ distinctUntilChanged()
+ )
+ )
+ .pipe(
+ switchMap(
+ () =>
+ new Observable<DisposableCollection>((subscribe) => {
+ const disposableCollection = new DisposableCollection();
+ subscribe.next(disposableCollection);
+ return () => {
+ disposableCollection.dispose();
+ };
+ })
+ )
+ ).subscribe((disposableCollection) => {
+ disposableCollection.add(
+ toDisposable(
+ this._conditionalFormatRuleModel.$ruleChange.subscribe((option) => {
+ const { unitId, subUnitId, rule } = option;
+ const workbook = this._univerInstanceService.getCurrentUniverSheetInstance();
+ const worksheet = workbook.getActiveSheet();
+ if (option.unitId !== workbook.getUnitId() || option.subUnitId !== worksheet.getSheetId()) {
+ return;
+ }
+ switch (option.type) {
+ case 'add':{
+ register(option.unitId, option.subUnitId, option.rule);
+ break;
+ }
+ case 'delete':{
+ const dispose = disposableMap.get(getCfIdWithUnitId(unitId, subUnitId, rule.cfId));
+ dispose && dispose();
+ break;
+ }
+ case 'set':{
+ const dispose = disposableMap.get(getCfIdWithUnitId(unitId, subUnitId, rule.cfId));
+ dispose && dispose();
+ // and to add
+ register(option.unitId, option.subUnitId, option.rule);
+ }
+ }
+ })));
+ }));
+
+ this.disposeWithMe(toDisposable(() => {
+ disposableMap.forEach((item) => {
+ item();
+ });
+ disposableMap.clear();
+ }));
+ }
+}
diff --git a/packages/sheets-conditional-format/src/controllers/cf.render.controller.ts b/packages/sheets-conditional-format/src/controllers/cf.render.controller.ts
new file mode 100644
index 0000000000..6043a91875
--- /dev/null
+++ b/packages/sheets-conditional-format/src/controllers/cf.render.controller.ts
@@ -0,0 +1,133 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { Disposable, IUniverInstanceService, LifecycleStages, OnLifecycle } from '@univerjs/core';
+import { INTERCEPTOR_POINT, SheetInterceptorService } from '@univerjs/sheets';
+import { SheetSkeletonManagerService } from '@univerjs/sheets-ui';
+import { Inject } from '@wendellhu/redi';
+import { bufferTime, filter } from 'rxjs/operators';
+import type { ISheetFontRenderExtension, Spreadsheet } from '@univerjs/engine-render';
+import { IRenderManagerService } from '@univerjs/engine-render';
+
+import { ConditionalFormatService } from '../services/conditional-format.service';
+import { ConditionalFormatViewModel } from '../models/conditional-format-view-model';
+import { ConditionalFormatRuleModel } from '../models/conditional-format-rule-model';
+import { DataBar, dataBarUKey } from '../render/data-bar.render';
+
+import { ConditionalFormatIcon, DEFAULT_PADDING, DEFAULT_WIDTH, IconUKey } from '../render/icon.render';
+import type { IConditionalFormatCellData } from '../render/type';
+
+@OnLifecycle(LifecycleStages.Rendered, RenderController)
+export class RenderController extends Disposable {
+ constructor(@Inject(SheetInterceptorService) private _sheetInterceptorService: SheetInterceptorService,
+ @Inject(ConditionalFormatService) private _conditionalFormatService: ConditionalFormatService,
+ @Inject(IUniverInstanceService) private _univerInstanceService: IUniverInstanceService,
+ @Inject(IRenderManagerService) private _renderManagerService: IRenderManagerService,
+ @Inject(ConditionalFormatViewModel) private _conditionalFormatViewModel: ConditionalFormatViewModel,
+ @Inject(ConditionalFormatRuleModel) private _conditionalFormatRuleModel: ConditionalFormatRuleModel,
+ @Inject(SheetSkeletonManagerService) private _sheetSkeletonManagerService: SheetSkeletonManagerService) {
+ super();
+ this._initViewModelInterceptor();
+ this._initSkeleton();
+ this._initRender();
+ }
+
+ _initRender() {
+ const list: [string, new () => any][] = [[dataBarUKey, DataBar], [IconUKey, ConditionalFormatIcon]];
+ const register = (renderId: string) => {
+ const render = renderId && this._renderManagerService.getRenderById(renderId);
+ const spreadsheetRender = render && render.mainComponent as Spreadsheet;
+ if (spreadsheetRender) {
+ list.forEach(([key, Instance]) => {
+ if (!spreadsheetRender.getExtensionByKey(key)) {
+ spreadsheetRender.register(new Instance());
+ }
+ });
+ }
+ };
+ this.disposeWithMe(this._renderManagerService.currentRender$.subscribe((renderId) => {
+ renderId && register(renderId);
+ }));
+ const workbook = this._univerInstanceService.getCurrentUniverSheetInstance();
+ if (workbook) {
+ register(workbook.getUnitId());
+ }
+ }
+
+ _initSkeleton() {
+ const markDirtySkeleton = () => {
+ this._sheetSkeletonManagerService.reCalculate();
+ const unitId = this._univerInstanceService.getCurrentUniverSheetInstance().getUnitId();
+ this._renderManagerService.getRenderById(unitId)?.mainComponent?.makeDirty();
+ };
+
+ // After the conditional format is marked dirty to drive a rendering, to trigger the window within the conditional format recalculation
+ this.disposeWithMe(this._conditionalFormatViewModel.markDirty$.pipe(bufferTime(16), filter((v) => {
+ const workbook = this._univerInstanceService.getCurrentUniverSheetInstance();
+ const worksheet = workbook.getActiveSheet();
+ return v.filter((item) => item.unitId === workbook.getUnitId() && item.subUnitId === worksheet.getSheetId()).length > 0;
+ })).subscribe(markDirtySkeleton));
+
+ // Sort and delete does not mark dirty.
+ this.disposeWithMe(this._conditionalFormatRuleModel.$ruleChange.pipe(bufferTime(16), filter((v) => {
+ const workbook = this._univerInstanceService.getCurrentUniverSheetInstance();
+ const worksheet = workbook.getActiveSheet();
+ return v.filter((item) => ['sort', 'delete'].includes(item.type) && item.unitId === workbook.getUnitId() && item.subUnitId === worksheet.getSheetId()).length > 0;
+ })).subscribe(markDirtySkeleton));
+
+ // Once the calculation is complete, a view update is triggered
+ // This rendering does not trigger conditional format recalculation,because the rule is not mark dirty
+ this.disposeWithMe(this._conditionalFormatService.ruleComputeStatus$.pipe(bufferTime(16), filter((v) => {
+ const workbook = this._univerInstanceService.getCurrentUniverSheetInstance();
+ const worksheet = workbook.getActiveSheet();
+ return v.filter((item) => item.unitId === workbook.getUnitId() && item.subUnitId === worksheet.getSheetId()).length > 0;
+ })).subscribe(markDirtySkeleton));
+ }
+
+ _initViewModelInterceptor() {
+ this.disposeWithMe(this._sheetInterceptorService.intercept(INTERCEPTOR_POINT.CELL_CONTENT, { handler: (cell, context, next) => {
+ const result = this._conditionalFormatService.composeStyle(context.unitId, context.subUnitId, context.row, context.col);
+ if (!result) {
+ return next(cell);
+ }
+ const styleMap = context.workbook.getStyles();
+ const defaultStyle = (typeof cell?.s === 'string' ? styleMap.get(cell?.s) : cell?.s) || {};
+ const s = { ...defaultStyle };
+ const cloneCell = { ...cell, s } as IConditionalFormatCellData & ISheetFontRenderExtension;
+ if (result.style) {
+ Object.assign(s, result.style);
+ }
+ if (result.dataBar) {
+ cloneCell.dataBar = result.dataBar;
+ }
+ if (result.iconSet) {
+ cloneCell.iconSet = result.iconSet;
+ if (!cloneCell.fontRenderExtension) {
+ cloneCell.fontRenderExtension = {};
+ }
+
+ cloneCell.fontRenderExtension.leftOffset = DEFAULT_PADDING + DEFAULT_WIDTH;
+
+ if (!result.iconSet.isShowValue) {
+ cloneCell.fontRenderExtension.isSkip = true;
+ }
+ }
+
+ return next(cloneCell);
+ },
+ }));
+ }
+}
diff --git a/packages/sheets-conditional-format/src/index.ts b/packages/sheets-conditional-format/src/index.ts
new file mode 100644
index 0000000000..8eab700c88
--- /dev/null
+++ b/packages/sheets-conditional-format/src/index.ts
@@ -0,0 +1,17 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+export { SheetsConditionalFormatPlugin } from './plugin';
diff --git a/packages/sheets-conditional-format/src/locale/index.ts b/packages/sheets-conditional-format/src/locale/index.ts
new file mode 100644
index 0000000000..e0c0d934cd
--- /dev/null
+++ b/packages/sheets-conditional-format/src/locale/index.ts
@@ -0,0 +1,19 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import zhCN from './zh-ch';
+
+export { zhCN };
diff --git a/packages/sheets-conditional-format/src/locale/zh-ch.ts b/packages/sheets-conditional-format/src/locale/zh-ch.ts
new file mode 100644
index 0000000000..ec4a719b97
--- /dev/null
+++ b/packages/sheets-conditional-format/src/locale/zh-ch.ts
@@ -0,0 +1,171 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+export default {
+ sheet: {
+ cf: {
+ title: '条件格式',
+ menu: {
+ manageConditionalFormat: '管理条件格式',
+ createConditionalFormat: '新建条件格式',
+ clearRangeRules: '清除所选区域的规则',
+ clearWorkSheetRules: '清除整个工作表的规则',
+
+ },
+ form: {
+ lessThan: '该值必须小于 {0}',
+ lessThanOrEqual: '该值必须小于等于 {0}',
+ greaterThan: '该值必大于 {0}',
+ greaterThanOrEqual: '该值必大于等于 {0}',
+ rangeSelector: '选择范围或者输入值',
+ },
+ iconSet: {
+ direction: '方向',
+ shape: '形状',
+ mark: '标记',
+ rank: '等级',
+ rule: '规则',
+ icon: '图标',
+ type: '类型',
+ value: '值',
+ reverseIconOrder: '反转图标次序',
+ and: '且',
+ when: '当值',
+ onlyShowIcon: '仅显示图标',
+ },
+ symbol: {
+ greaterThan: '>',
+ greaterThanOrEqual: '>=',
+ lessThan: '<',
+ lessThanOrEqual: '<=',
+ },
+ panel: {
+ createRule: '新增规则',
+ clear: '清空所有规则',
+ range: '应用范围',
+ styleType: '样式类型',
+ submit: '确认',
+ cancel: '取消',
+ rankAndAverage: '最前/最后/平均值',
+ styleRule: '样式规则',
+ isNotBottom: '最前',
+ isBottom: '最后',
+ greaterThanAverage: '大于平均值',
+ lessThanAverage: '小于平均值',
+ medianValue: '中间值',
+ fillType: '填充方式',
+ pureColor: '纯色',
+ gradient: '渐变',
+ colorSet: '颜色设置',
+ positive: '正值',
+ native: '负值',
+ workSheet: '整张工作表',
+ selectedRange: '所选单元格',
+ managerRuleSelect: '管理 {0} 的规则',
+ },
+ preview: {
+ describe: {
+ beginsWith: '开头为{0}',
+ endsWith: '结尾为{0}',
+ containsText: '文本包含{0}',
+ notContainsText: '文本不包含{0}',
+ equal: '等于{0}',
+ notEqual: '不等于{0}',
+ containsBlanks: '为空',
+ notContainsBlanks: '不为空',
+ containsErrors: '错误',
+ notContainsErrors: '非错误',
+ greaterThan: '大于{0}',
+ greaterThanOrEqual: '大于等于{0}',
+ lessThan: '小于{0}',
+ lessThanOrEqual: '小于等于{0}',
+ notBetween: '不介于{0}和{1}之间',
+ between: '介于{0}和{1}之间',
+ yesterday: '昨日',
+ tomorrow: '明日',
+ last7Days: '最近7天',
+ thisMonth: '本月',
+ lastMonth: '上个月',
+ nextMonth: '下个月',
+ thisWeek: '本周',
+ lastWeek: '上周',
+ nextWeek: '下周',
+ today: '今日',
+ topN: '前{0}项',
+ bottomN: '后{0}项',
+ topNPercent: '前{0}%',
+ bottomNPercent: '后{0}%',
+ },
+ },
+ operator: {
+ beginsWith: '开头为',
+ endsWith: '结尾为',
+ containsText: '文本包含',
+ notContainsText: '文本不包含',
+ equal: '等于',
+ notEqual: '不等于',
+ containsBlanks: '为空',
+ notContainsBlanks: '不为空',
+ containsErrors: '错误',
+ notContainsErrors: '非错误',
+ greaterThan: '大于',
+ greaterThanOrEqual: '大于等于',
+ lessThan: '小于',
+ lessThanOrEqual: '小于等于',
+ notBetween: '不介于',
+ between: '介于',
+ yesterday: '昨日',
+ tomorrow: '明日',
+ last7Days: '最近 7 天',
+ thisMonth: '本月',
+ lastMonth: '上个月',
+ nextMonth: '下个月',
+ thisWeek: '本周',
+ lastWeek: '上周',
+ nextWeek: '下周',
+ today: '今日',
+ },
+ ruleType: {
+ highlightCell: '突出显示单元格',
+ dataBar: '数据条',
+ colorScale: '色阶',
+ formula: '自定义公式',
+ iconSet: '图标集',
+ duplicateValues: '重复值',
+ uniqueValues: '唯一值',
+
+ },
+ subRuleType: {
+ uniqueValues: '唯一值',
+ duplicateValues: '重复值',
+ rank: '最前最后',
+ text: '文本',
+ timePeriod: '时间日期',
+ number: '数值',
+ average: '平均值',
+ },
+ valueType: {
+ num: '数值',
+ min: '最小值',
+ max: '最大值',
+ percent: '百分比',
+ percentile: '百分点',
+ formula: '公式',
+ none: '无',
+ },
+ },
+ },
+};
diff --git a/packages/sheets-conditional-format/src/menu/manage-rule.ts b/packages/sheets-conditional-format/src/menu/manage-rule.ts
new file mode 100644
index 0000000000..dbb81fa2ea
--- /dev/null
+++ b/packages/sheets-conditional-format/src/menu/manage-rule.ts
@@ -0,0 +1,165 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { merge, Observable } from 'rxjs';
+import type { ComponentManager, IMenuSelectorItem } from '@univerjs/ui';
+import type { IAccessor } from '@wendellhu/redi';
+import { IZenZoneService, MenuGroup, MenuItemType, MenuPosition } from '@univerjs/ui';
+import { SelectionManagerService, SetWorksheetActiveOperation } from '@univerjs/sheets';
+
+import { debounceTime } from 'rxjs/operators';
+import { ICommandService, IUniverInstanceService, LocaleService, Rectangle } from '@univerjs/core';
+import { Conditions } from '@univerjs/icons';
+import { AddConditionalRuleMutation } from '../commands/mutations/add-conditional-rule.mutation';
+import { SetConditionalRuleMutation } from '../commands/mutations/set-conditional-rule.mutation';
+import { DeleteConditionalRuleMutation } from '../commands/mutations/delete-conditional-rule.mutation';
+import { MoveConditionalRuleMutation } from '../commands/mutations/move-conditional-rule.mutation';
+import { ConditionalFormatRuleModel } from '../models/conditional-format-rule-model';
+
+import { CF_MENU_OPERATION, OpenConditionalFormatOperator } from '../commands/operations/open-conditional-format-panel';
+
+export const FactoryManageConditionalFormatRule = (componentManager: ComponentManager) => {
+ const key = 'conditional-format-menu-icon';
+ componentManager.register(key, Conditions);
+ return (_accessor: IAccessor) => {
+ const localeService = _accessor.get(LocaleService);
+ const selectionManagerService = _accessor.get(SelectionManagerService);
+ const commandService = _accessor.get(ICommandService);
+ const univerInstanceService = _accessor.get(IUniverInstanceService);
+ const conditionalFormatRuleModel = _accessor.get(ConditionalFormatRuleModel);
+ const zenZoneService = _accessor.get(IZenZoneService);
+
+ const commandList = [SetWorksheetActiveOperation.id, AddConditionalRuleMutation.id, SetConditionalRuleMutation.id, DeleteConditionalRuleMutation.id, MoveConditionalRuleMutation.id];
+
+ const clearRangeEnable$ = new Observable<boolean>((subscriber) =>
+ merge(
+ selectionManagerService.selectionMoveEnd$,
+ new Observable<null>((commandSubscribe) => {
+ const disposable = commandService.onCommandExecuted((commandInfo) => {
+ const { id, params } = commandInfo;
+ const unitId = univerInstanceService.getCurrentUniverSheetInstance().getUnitId();
+ if (commandList.includes(id) && (params as { unitId: string }).unitId === unitId) {
+ commandSubscribe.next(null);
+ }
+ });
+ return () => disposable.dispose();
+ })
+ ).pipe(debounceTime(16)).subscribe(() => {
+ const ranges = selectionManagerService.getSelections()?.map((selection) => selection.range) || [];
+ const unitId = univerInstanceService.getCurrentUniverSheetInstance().getUnitId();
+ const subUnitId = univerInstanceService.getCurrentUniverSheetInstance().getActiveSheet().getSheetId();
+ const allRule = conditionalFormatRuleModel.getSubunitRules(unitId, subUnitId) || [];
+ const ruleList = allRule.filter((rule) => rule.ranges.some((ruleRange) => ranges.some((range) => Rectangle.intersects(range, ruleRange))));
+ subscriber.next(!!ruleList.length);
+ })
+ );
+ const clearSheetEnable$ = new Observable<boolean>((subscriber) =>
+ merge(
+ selectionManagerService.selectionMoveEnd$,
+ new Observable<null>((commandSubscribe) => {
+ const disposable = commandService.onCommandExecuted((commandInfo) => {
+ const { id, params } = commandInfo;
+ const unitId = univerInstanceService.getCurrentUniverSheetInstance().getUnitId();
+ if (commandList.includes(id) && (params as { unitId: string }).unitId === unitId) {
+ commandSubscribe.next(null);
+ }
+ });
+ return () => disposable.dispose();
+ })
+ ).pipe(debounceTime(16)).subscribe(() => {
+ const unitId = univerInstanceService.getCurrentUniverSheetInstance().getUnitId();
+ const subUnitId = univerInstanceService.getCurrentUniverSheetInstance().getActiveSheet().getSheetId();
+ const allRule = conditionalFormatRuleModel.getSubunitRules(unitId, subUnitId) || [];
+ subscriber.next(!!allRule.length);
+ })
+ );
+ const selections$ = new Observable((subscriber) => {
+ const commonSelections = [
+ {
+ label: localeService.t('sheet.cf.ruleType.highlightCell'),
+ value: CF_MENU_OPERATION.highlightCell,
+ },
+ {
+ label: localeService.t('sheet.cf.panel.rankAndAverage'),
+ value: CF_MENU_OPERATION.rank,
+ },
+ {
+ label: localeService.t('sheet.cf.ruleType.formula'),
+ value: CF_MENU_OPERATION.formula,
+ },
+ {
+ label: localeService.t('sheet.cf.ruleType.colorScale'),
+ value: CF_MENU_OPERATION.colorScale,
+ },
+ {
+ label: localeService.t('sheet.cf.ruleType.dataBar'),
+ value: CF_MENU_OPERATION.dataBar,
+ }, {
+ label: localeService.t('sheet.cf.ruleType.iconSet'),
+ value: CF_MENU_OPERATION.icon,
+ },
+ {
+ label: localeService.t('sheet.cf.menu.manageConditionalFormat'),
+ value: CF_MENU_OPERATION.viewRule,
+ }, {
+ label: localeService.t('sheet.cf.menu.createConditionalFormat'),
+ value: CF_MENU_OPERATION.createRule,
+ },
+ {
+ label: localeService.t('sheet.cf.menu.clearRangeRules'),
+ value: CF_MENU_OPERATION.clearRangeRules,
+ disabled: !clearRangeEnable$,
+ },
+ {
+ label: localeService.t('sheet.cf.menu.clearWorkSheetRules'),
+ value: CF_MENU_OPERATION.clearWorkSheetRules,
+ }];
+ clearRangeEnable$.subscribe((v) => {
+ const item = commonSelections.find((item) => item.value === CF_MENU_OPERATION.clearRangeRules);
+ if (item) {
+ item.disabled = !v;
+ subscriber.next(commonSelections);
+ }
+ });
+ clearSheetEnable$.subscribe((v) => {
+ const item = commonSelections.find((item) => item.value === CF_MENU_OPERATION.clearWorkSheetRules);
+ if (item) {
+ item.disabled = !v;
+ subscriber.next(commonSelections);
+ }
+ });
+ subscriber.next(commonSelections);
+ });
+ const hidden$ = new Observable((subscriber) => {
+ const disposable = zenZoneService.visible$.subscribe((v) => {
+ subscriber.next(v);
+ });
+ return () => {
+ disposable.unsubscribe();
+ };
+ });
+ return {
+ id: OpenConditionalFormatOperator.id,
+ type: MenuItemType.SELECTOR,
+ group: MenuGroup.TOOLBAR_FORMULAS_INSERT,
+ positions: [MenuPosition.TOOLBAR_START],
+ icon: key,
+ tooltip: localeService.t('sheet.cf.title'),
+ selections: selections$,
+ hidden$,
+ } as IMenuSelectorItem;
+ };
+};
diff --git a/packages/sheets-conditional-format/src/models/conditional-format-rule-model.ts b/packages/sheets-conditional-format/src/models/conditional-format-rule-model.ts
new file mode 100644
index 0000000000..e26a168367
--- /dev/null
+++ b/packages/sheets-conditional-format/src/models/conditional-format-rule-model.ts
@@ -0,0 +1,182 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { Inject, Injector } from '@wendellhu/redi';
+import { Range } from '@univerjs/core';
+import { Subject } from 'rxjs';
+import { ConditionalFormatService } from '../services/conditional-format.service';
+import type { IConditionFormatRule, IRuleModel } from './type';
+import { ConditionalFormatViewModel } from './conditional-format-view-model';
+
+type RuleOperatorType = 'delete' | 'set' | 'add' | 'sort';
+export class ConditionalFormatRuleModel {
+ // Map<unitID ,<sheetId ,IConditionFormatRule[]>>
+ private _model: IRuleModel = new Map();
+ private _ruleChange$ = new Subject<{ rule: IConditionFormatRule;unitId: string;subUnitId: string; type: RuleOperatorType }>();
+ $ruleChange = this._ruleChange$.asObservable();
+
+ constructor(@Inject(ConditionalFormatViewModel) private _conditionalFormatViewModel: ConditionalFormatViewModel,
+ @Inject(Injector) private _injector: Injector
+
+ ) {
+
+ }
+
+ private _ensureList(unitId: string, subUnitId: string) {
+ let list = this.getSubunitRules(unitId, subUnitId);
+ if (!list) {
+ list = [];
+ let unitMap = this._model.get(unitId);
+ if (!unitMap) {
+ unitMap = new Map<string, IConditionFormatRule[]>();
+ this._model.set(unitId, unitMap);
+ }
+ unitMap.set(subUnitId, list);
+ }
+ return list;
+ }
+
+ getRule(unitId: string, subUnitId: string, cfId?: string) {
+ const list = this.getSubunitRules(unitId, subUnitId);
+ if (list) {
+ return list.find((item) => item.cfId === cfId);
+ }
+ return null;
+ }
+
+ getUnitRules(unitId: string) {
+ const map = this._model.get(unitId);
+ return map || null;
+ }
+
+ getSubunitRules(unitId: string, subUnitId: string) {
+ const list = this._model.get(unitId)?.get(subUnitId);
+ return list || null;
+ }
+
+ deleteRule(unitId: string, subUnitId: string, cfId: string) {
+ const list = this.getSubunitRules(unitId, subUnitId);
+ if (list) {
+ const index = list.findIndex((e) => e.cfId === cfId);
+ const rule = list[index];
+ if (rule) {
+ list.splice(index, 1);
+ rule.ranges.forEach((range) => {
+ Range.foreach(range, (row, col) => {
+ this._conditionalFormatViewModel.deleteCellCf(unitId, subUnitId, row, col, rule.cfId);
+ });
+ });
+ this._ruleChange$.next({ rule, subUnitId, unitId, type: 'delete' });
+ }
+ }
+ }
+
+ setRule(unitId: string, subUnitId: string, rule: IConditionFormatRule) {
+ const list = this._ensureList(unitId, subUnitId);
+ const oldRule = list.find((item) => item.cfId === rule.cfId);
+ if (oldRule) {
+ const cfPriorityMap = list.map((item) => item.cfId).reduce((map, cur, index) => {
+ map.set(cur, index);
+ return map;
+ }, new Map<string, number>());
+ // After each setting, the cache needs to be cleared,
+ // and this cleanup is deferred until the end of the calculation.
+ // Otherwise the render will flash once
+ const cloneRange = [...oldRule.ranges];
+ const conditionalFormatService = this._injector.get(ConditionalFormatService);
+ const dispose = conditionalFormatService.interceptorManager.intercept(conditionalFormatService.interceptorManager.getInterceptPoints().beforeUpdateRuleResult, {
+ handler: (config) => {
+ if (unitId === config?.unitId && subUnitId === config.subUnitId && rule.cfId === config.cfId) {
+ cloneRange.forEach((range) => {
+ Range.foreach(range, (row, col) => {
+ this._conditionalFormatViewModel.deleteCellCf(unitId, subUnitId, row, col, oldRule.cfId);
+ });
+ });
+ rule.ranges.forEach((range) => {
+ Range.foreach(range, (row, col) => {
+ this._conditionalFormatViewModel.pushCellCf(unitId, subUnitId, row, col, rule.cfId);
+ this._conditionalFormatViewModel.sortCellCf(unitId, subUnitId, row, col, cfPriorityMap);
+ });
+ });
+ dispose();
+ }
+ },
+ });
+ rule.ranges.forEach((range) => {
+ Range.foreach(range, (row, col) => {
+ this._conditionalFormatViewModel.pushCellCf(unitId, subUnitId, row, col, rule.cfId);
+ });
+ });
+ Object.assign(oldRule, rule);
+ this._conditionalFormatViewModel.markRuleDirty(unitId, subUnitId, rule);
+ this._ruleChange$.next({ rule, subUnitId, unitId, type: 'set' });
+ }
+ }
+
+ addRule(unitId: string, subUnitId: string, rule: IConditionFormatRule) {
+ const list = this._ensureList(unitId, subUnitId);
+ const item = list.find((item) => item.cfId === rule.cfId);
+ if (!item) {
+ // The new conditional format has a higher priority
+ list.unshift(rule);
+ }
+ const cfPriorityMap = list.map((item) => item.cfId).reduce((map, cur, index) => {
+ map.set(cur, index);
+ return map;
+ }, new Map<string, number>());
+ rule.ranges.forEach((range) => {
+ Range.foreach(range, (row, col) => {
+ this._conditionalFormatViewModel.pushCellCf(unitId, subUnitId, row, col, rule.cfId);
+ this._conditionalFormatViewModel.sortCellCf(unitId, subUnitId, row, col, cfPriorityMap);
+ });
+ });
+ this._conditionalFormatViewModel.markRuleDirty(unitId, subUnitId, rule);
+ this._ruleChange$.next({ rule, subUnitId, unitId, type: 'add' });
+ }
+
+ /**
+ * example [1,2,3,4,5,6],if you move behind 5 to 2, then cfId=5,targetId=2.
+ * if targetId does not exist, it defaults to top
+ */
+ moveRulePriority(unitId: string, subUnitId: string, cfId: string, targetCfId: string) {
+ const list = this._ensureList(unitId, subUnitId);
+ const curIndex = list.findIndex((item) => item.cfId === cfId);
+ const targetCfIndex = list.findIndex((item) => item.cfId === targetCfId);
+ if (targetCfIndex === -1 || curIndex === -1 || targetCfIndex === curIndex) {
+ return;
+ }
+ const rule = list[curIndex];
+ if (rule) {
+ list.splice(curIndex, 1);
+ list.splice(targetCfIndex, 0, rule);
+ const cfPriorityMap = list.map((item) => item.cfId).reduce((map, cur, index) => {
+ map.set(cur, index);
+ return map;
+ }, new Map<string, number>());
+ rule.ranges.forEach((range) => {
+ Range.foreach(range, (row, col) => {
+ this._conditionalFormatViewModel.sortCellCf(unitId, subUnitId, row, col, cfPriorityMap);
+ });
+ });
+ this._ruleChange$.next({ rule, subUnitId, unitId, type: 'sort' });
+ }
+ }
+
+ createCfId(unitId: string, subUnitId: string) {
+ const list = this._model.get(unitId)?.get(subUnitId);
+ return `${(list?.length || 0) + 1}`;
+ }
+}
diff --git a/packages/sheets-conditional-format/src/models/conditional-format-view-model.ts b/packages/sheets-conditional-format/src/models/conditional-format-view-model.ts
new file mode 100644
index 0000000000..142046c3fc
--- /dev/null
+++ b/packages/sheets-conditional-format/src/models/conditional-format-view-model.ts
@@ -0,0 +1,181 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { ObjectMatrix, Range } from '@univerjs/core';
+import { Subject } from 'rxjs';
+import type { IDataBarRenderParams } from '../render/type';
+import type { IConditionFormatRule, IHighlightCell } from './type';
+
+interface ICellItem {
+ cfList: { cfId: string; ruleCache?: IHighlightCell['style'] | IDataBarRenderParams ;isDirty: boolean }[];
+}
+
+export class ConditionalFormatViewModel {
+ // Map<unitID ,<sheetId ,ObjectMatrix>>
+ private _model: Map<string, Map<string, ObjectMatrix<ICellItem>>> = new Map();
+
+ private _markDirty$ = new Subject<{ rule: IConditionFormatRule;unitId: string;subUnitId: string }>();
+ public markDirty$ = this._markDirty$.asObservable();
+
+ private _ensureMatrix(unitId: string, subUnitId: string) {
+ let _matrix = this.getMatrix(unitId, subUnitId);
+ if (!_matrix) {
+ _matrix = new ObjectMatrix<ICellItem>();
+ let unitModel = this._model.get(unitId);
+ if (!unitModel) {
+ unitModel = new Map<string, ObjectMatrix<ICellItem>>();
+ this._model.set(unitId, unitModel);
+ }
+ unitModel.set(subUnitId, _matrix);
+ }
+ return _matrix;
+ }
+
+ public getMatrix(unitId: string, subUnitId: string) {
+ return this._model.get(unitId)?.get(subUnitId);
+ }
+
+ public getCellCf(unitId: string, subUnitId: string, row: number, col: number, matrix?: ObjectMatrix<ICellItem>) {
+ const _matrix = matrix ?? this.getMatrix(unitId, subUnitId);
+ if (!_matrix) {
+ return null;
+ }
+ const value = _matrix.getValue(row, col);
+ return value;
+ }
+
+ public setCellCfRuleCache(unitId: string, subUnitId: string, row: number, col: number, cfId: string, value: any) {
+ const matrix = this._ensureMatrix(unitId, subUnitId);
+ const cell = matrix.getValue(row, col);
+ const item = cell?.cfList.find((e) => e.cfId === cfId);
+ if (item) {
+ item.ruleCache = value;
+ item.isDirty = false;
+ }
+ }
+
+ public deleteCellCf(
+ unitId: string,
+ subUnitId: string,
+ row: number,
+ col: number,
+ cfId: string,
+ matrix?: ObjectMatrix<ICellItem>) {
+ const _matrix = matrix ?? this.getMatrix(unitId, subUnitId);
+ if (_matrix) {
+ const cellItem = _matrix.getValue(row, col);
+ if (cellItem) {
+ const cfList = cellItem.cfList;
+ const index = cfList.findIndex((item) => item.cfId === cfId);
+ if (index > -1) {
+ cfList.splice(index, 1);
+ }
+ if (!cfList.length) {
+ _matrix.realDeleteValue(row, col);
+ }
+ }
+ }
+ }
+
+ public pushCellCf(
+ unitId: string,
+ subUnitId: string,
+ row: number,
+ col: number,
+ cfId: string
+ ) {
+ const _matrix = this._ensureMatrix(unitId, subUnitId);
+ let cellValue = _matrix.getValue(row, col);
+ if (!cellValue) {
+ cellValue = { cfList: [{ cfId, isDirty: true }] };
+ } else {
+ const cfIdList = cellValue.cfList;
+ const index = cfIdList.findIndex((item) => item.cfId === cfId);
+ if (index > -1) {
+ return;
+ }
+ cfIdList.push({ cfId, isDirty: true });
+ }
+ _matrix.setValue(row, col, cellValue);
+ }
+
+ public sortCellCf(
+ unitId: string,
+ subUnitId: string,
+ row: number,
+ col: number,
+ cfPriorityMap: Map<string, number>) {
+ const cell = this.getCellCf(unitId, subUnitId, row, col);
+ if (cell) {
+ const sortResult = cell.cfList.map((cf) => {
+ const priority = cfPriorityMap.get(cf.cfId);
+ if (priority === undefined) {
+ return null;
+ }
+ return { ...cf, priority };
+ })
+ .filter((item) => !!item)
+ .sort((a, b) => a!.priority - b!.priority) as ICellItem['cfList'];
+ // The smaller the priority, the higher
+ cell.cfList = sortResult;
+ }
+ }
+
+ public markRuleDirty(
+ unitId: string,
+ subUnitId: string,
+ rule: IConditionFormatRule,
+ row?: number,
+ col?: number
+ ) {
+ const handleCell = (row: number, col: number) => {
+ const cell = this.getCellCf(unitId, subUnitId, row, col);
+ if (cell) {
+ const ruleItem = cell.cfList.find((item) => item.cfId === rule.cfId);
+ if (ruleItem) {
+ ruleItem.isDirty = true;
+ }
+ }
+ };
+ if (row !== undefined && col !== undefined) {
+ handleCell(row, col);
+ this._markDirty$.next({ rule, unitId, subUnitId });
+ } else {
+ rule.ranges.forEach((range) => {
+ Range.foreach(range, (row, col) => {
+ handleCell(row, col);
+ });
+ });
+ this._markDirty$.next({ rule, unitId, subUnitId });
+ }
+ }
+}
diff --git a/packages/sheets-conditional-format/src/models/icon-map.ts b/packages/sheets-conditional-format/src/models/icon-map.ts
new file mode 100644
index 0000000000..e85ce07c51
--- /dev/null
+++ b/packages/sheets-conditional-format/src/models/icon-map.ts
@@ -0,0 +1,100 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import ICON_MAP from '../assets/icon-map.json';
+
+export type IIconItem = string;
+
+export const iconGroup: { title: string;group: { name: string;list: string[] }[] }[] = [
+ {
+ title: 'sheet.cf.iconSet.direction',
+ group: [
+ { name: '3Arrows', list: [ICON_MAP.arrow['up-green'], ICON_MAP.arrow['right-gold'], ICON_MAP.arrow['down-red']] },
+ { name: '_3Shape', list: [ICON_MAP.shape.up, ICON_MAP.shape.cross, ICON_MAP.shape.down] },
+ { name: '4Arrows', list: [ICON_MAP.arrow['up-green'], ICON_MAP.arrow['rightAndUp-gold'], ICON_MAP.arrow['rightAndDown-gold'], ICON_MAP.arrow['down-red']] },
+ { name: '5Arrows', list: [ICON_MAP.arrow['up-green'], ICON_MAP.arrow['rightAndUp-gold'], ICON_MAP.arrow['right-gold'], ICON_MAP.arrow['rightAndDown-gold'], ICON_MAP.arrow['down-red']] },
+ ],
+
+ },
+ {
+ title: 'sheet.cf.iconSet.shape',
+ group: [
+ {
+ name: '3TrafficLights1', list: [ICON_MAP.shape['roundness-greed'], ICON_MAP.shape['roundness-gold'], ICON_MAP.shape['roundness-red']],
+ },
+ {
+ name: '3Signs', list: [ICON_MAP.shape['roundness-greed'], ICON_MAP.shape['triangle-gold'], ICON_MAP.shape['rhomboid-red']],
+ },
+ {
+ name: '4RedToBlack', list: [ICON_MAP.shape['roundness-red'], ICON_MAP.shape['roundness-pink'], ICON_MAP.shape['roundness-gray'], ICON_MAP.shape['roundness-black']],
+ },
+ {
+ name: '4TrafficLights', list: [ICON_MAP.shape['roundness-greed'], ICON_MAP.shape['roundness-gold'], ICON_MAP.shape['roundness-red'], ICON_MAP.shape['roundness-black']],
+ },
+ { name: '_3Indicate', list: [ICON_MAP.shape['indicate-greed'], ICON_MAP.shape['indicate-gold'], ICON_MAP.shape['indicate-red']] },
+ ],
+ },
+ {
+ title: 'sheet.cf.iconSet.mark',
+ group: [
+ {
+ name: '3Symbols', list: [ICON_MAP.feedback.correct, ICON_MAP.feedback.warn, ICON_MAP.feedback.mistake],
+ },
+ {
+ name: '3Symbols2', list: [ICON_MAP.feedback2.correct2, ICON_MAP.feedback2.warn2, ICON_MAP.feedback2.mistake2],
+ },
+ {
+ name: '3Flags', list: [ICON_MAP.flag['flag-green'], ICON_MAP.flag['flag-gold'], ICON_MAP.flag['flag-red']],
+ },
+
+ ],
+ },
+ {
+ title: 'sheet.cf.iconSet.rank',
+ group: [
+ {
+ name: '3Stars', list: [ICON_MAP.star.starEmpty, ICON_MAP.star.starIncomplete, ICON_MAP.star.starFull],
+ },
+ {
+ name: '5Quarters', list: [ICON_MAP.progress.progress0, ICON_MAP.progress.progress25, ICON_MAP.progress.progress50, ICON_MAP.progress.progress75, ICON_MAP.progress.progress100],
+ },
+ {
+ name: '5Rating', list: [ICON_MAP.feeling.guffaw, ICON_MAP.feeling.smile, ICON_MAP.feeling.noninductive, ICON_MAP.feeling.dissatisfied, ICON_MAP.feeling.impatient],
+ },
+ {
+ name: '_5Rating2', list: [ICON_MAP.signal.signal0, ICON_MAP.signal.signal25, ICON_MAP.signal.signal50, ICON_MAP.signal.signal75, ICON_MAP.signal.signal100],
+ },
+ {
+ name: '_5Rating3', list: [ICON_MAP.cell['cell-0'], ICON_MAP.cell['cell-25'], ICON_MAP.cell['cell-50'], ICON_MAP.cell['cell-75'], ICON_MAP.cell['cell-100']],
+ },
+ ],
+ },
+];
+
+export const iconMap = iconGroup.reduce((result, cur) => {
+ const { group } = cur;
+ for (const v of group) {
+ result[v.name] = v.list;
+ }
+ return result;
+}, {} as Record<string, string[]>);
+export type IIconType = keyof typeof iconMap;
+
+for (const key in iconMap) {
+ const v = iconMap[key as IIconType];
+ Object.freeze(v);
+}
+export const EMPTY_ICON_TYPE = 'EMPTY_ICON_TYPE';
diff --git a/packages/sheets-conditional-format/src/models/type.ts b/packages/sheets-conditional-format/src/models/type.ts
new file mode 100644
index 0000000000..cd81c9d7f8
--- /dev/null
+++ b/packages/sheets-conditional-format/src/models/type.ts
@@ -0,0 +1,111 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import type { IRange, IStyleBase } from '@univerjs/core';
+import type { CFNumberOperator, CFRuleType, CFSubRuleType, CFTextOperator, CFTimePeriodOperator, CFValueType } from '../base/const';
+import type { IIconType } from './icon-map';
+
+export interface IBaseCfRule {
+ type: string;
+}
+export interface IHighlightCell extends IBaseCfRule {
+ style: IStyleBase;
+ type: CFRuleType.highlightCell; // cellIs
+ subType: CFSubRuleType;
+}
+
+export interface IValueConfig {
+ type: CFValueType;
+ value?: number | string;
+}
+
+export interface IUniqueValuesHighlightCell extends IHighlightCell {
+ subType: CFSubRuleType.uniqueValues;
+}
+export interface IDuplicateValuesHighlightCell extends IHighlightCell {
+ subType: CFSubRuleType.duplicateValues;
+}
+
+export interface IRankHighlightCell extends IHighlightCell {
+ subType: CFSubRuleType.rank; // top10
+ isBottom: boolean;
+ isPercent: boolean;
+ value: number;
+}
+
+export interface ITextHighlightCell extends IHighlightCell {
+ subType: CFSubRuleType.text;
+ operator: CFTextOperator;
+ value?: string;
+}
+
+export interface ITimePeriodHighlightCell extends IHighlightCell {
+ subType: CFSubRuleType.timePeriod;
+ operator: CFTimePeriodOperator;
+}
+
+export interface IFormulaHighlightCell extends IHighlightCell {
+ subType: CFSubRuleType.formula;
+ value: string;
+}
+export type INumberHighlightCell = ({
+ subType: CFSubRuleType.number;
+ operator: CFNumberOperator.between | CFNumberOperator.notBetween;
+ value: [number, number];
+} & IHighlightCell) | ({
+ subType: CFSubRuleType.number;
+ operator: CFNumberOperator.equal | CFNumberOperator.notEqual | CFNumberOperator.greaterThan | CFNumberOperator.greaterThanOrEqual | CFNumberOperator.lessThanOrEqual | CFNumberOperator.lessThan;
+ value?: number;
+} & IHighlightCell);
+
+export interface IAverageHighlightCell extends IHighlightCell {
+ subType: CFSubRuleType.average;
+ operator: CFNumberOperator.greaterThan | CFNumberOperator.greaterThanOrEqual | CFNumberOperator.lessThan | CFNumberOperator.lessThanOrEqual | CFNumberOperator.equal | CFNumberOperator.notEqual;
+}
+
+export interface IDataBar extends IBaseCfRule {
+ type: CFRuleType.dataBar;
+ config: {
+ min: IValueConfig;
+ max: IValueConfig;
+ isGradient: boolean;
+ positiveColor: string;
+ nativeColor: string;
+ };
+}
+
+export interface IColorScale extends IBaseCfRule {
+ type: CFRuleType.colorScale;
+ config: { index: number; color: string; value: IValueConfig }[];
+}
+
+export interface IIconSet extends IBaseCfRule {
+ type: CFRuleType.iconSet;
+ isShowValue: boolean;
+ config: { operator: CFNumberOperator;value: IValueConfig;iconType: IIconType; iconId: string }[];
+}
+
+export type IConditionalFormatRuleConfig = IColorScale | IDataBar | IUniqueValuesHighlightCell |
+IDuplicateValuesHighlightCell | IRankHighlightCell | ITextHighlightCell |
+ITimePeriodHighlightCell | INumberHighlightCell | IAverageHighlightCell | IFormulaHighlightCell | IIconSet;
+export interface IConditionFormatRule<C = IConditionalFormatRuleConfig> {
+ ranges: IRange [];
+ cfId: string;
+ stopIfTrue: boolean;
+ rule: C;
+}
+export type IRuleModel = Map<string, Map<string, IConditionFormatRule[]>>;
+export type IRuleModelJson = Record<string, Record<string, IConditionFormatRule[]>>;
diff --git a/packages/sheets-conditional-format/src/plugin.ts b/packages/sheets-conditional-format/src/plugin.ts
new file mode 100644
index 0000000000..52fd90f7cb
--- /dev/null
+++ b/packages/sheets-conditional-format/src/plugin.ts
@@ -0,0 +1,110 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { ICommandService, Plugin, PluginType } from '@univerjs/core';
+import { Inject, Injector } from '@wendellhu/redi';
+import { SHEET_CONDITION_FORMAT_PLUGIN } from './base/const';
+import { ConditionalFormatService } from './services/conditional-format.service';
+import { ConditionalFormatRuleModel } from './models/conditional-format-rule-model';
+import { ConditionalFormatViewModel } from './models/conditional-format-view-model';
+import { RenderController } from './controllers/cf.render.controller';
+import { DddAverageCfCommand } from './commands/commands/add-average-cf.command';
+import { AddColorScaleConditionalRuleCommand } from './commands/commands/add-color-scale-cf.command';
+import { AddDataBarConditionalRuleCommand } from './commands/commands/add-data-bar-cf.command';
+import { AddDuplicateValuesCfCommand } from './commands/commands/add-duplicate-values-cf.command';
+import { AddNumberCfCommand } from './commands/commands/add-number-cf.command';
+import { AddRankCfCommand } from './commands/commands/add-rank-cf.command';
+import { AddTextCfCommand } from './commands/commands/add-text-cf.command';
+import { AddTimePeriodCfCommand } from './commands/commands/add-time-period-cf.command';
+import { AddUniqueValuesCfCommand } from './commands/commands/add-unique-values-cf.command';
+import { AddConditionalRuleMutation } from './commands/mutations/add-conditional-rule.mutation';
+import { DeleteConditionalRuleMutation } from './commands/mutations/delete-conditional-rule.mutation';
+import { RefRangeController } from './controllers/cf.ref-range.controller';
+import { SetConditionalRuleMutation } from './commands/mutations/set-conditional-rule.mutation';
+import { ConditionalFormatCopyPasteController } from './controllers/cf.copy-paste.controller';
+import { ConditionalFormatAutoFillController } from './controllers/cf.auto-fill.controller';
+import { ConditionalFormatMenuController } from './controllers/cf.menu.controller';
+import { ConditionalFormatI18nController } from './controllers/cf.i18n.controller';
+
+import { ClearRangeCfCommand } from './commands/commands/clear-range-cf.command';
+import { ClearWorksheetCfCommand } from './commands/commands/clear-worksheet-cf.command';
+import { OpenConditionalFormatOperator } from './commands/operations/open-conditional-format-panel';
+import { DeleteCfCommand } from './commands/commands/delete-cf.command';
+import { SetCfCommand } from './commands/commands/set-cf.command';
+import { moveCfCommand } from './commands/commands/move-cf.command';
+import { AddCfCommand } from './commands/commands/add-cf.command';
+import { MoveConditionalRuleMutation } from './commands/mutations/move-conditional-rule.mutation';
+import { ConditionalFormatFormulaService } from './services/conditional-format-formula.service';
+import { ConditionalFormatFormulaMarkDirty } from './commands/mutations/formula-mark-dirty.mutation';
+import { ConditionalFormatEditorController } from './controllers/cf.editor.controller';
+import { ConditionalFormatClearController } from './controllers/cf.clear.controller';
+
+export class SheetsConditionalFormatPlugin extends Plugin {
+ static override type = PluginType.Sheet;
+ static commandList = [DddAverageCfCommand,
+ AddColorScaleConditionalRuleCommand,
+ AddDataBarConditionalRuleCommand,
+ AddDuplicateValuesCfCommand,
+ AddNumberCfCommand,
+ AddRankCfCommand,
+ AddTextCfCommand,
+ AddTimePeriodCfCommand,
+ AddUniqueValuesCfCommand,
+ OpenConditionalFormatOperator,
+ DeleteCfCommand,
+ SetCfCommand,
+ moveCfCommand,
+ AddCfCommand,
+ ClearRangeCfCommand,
+ ClearWorksheetCfCommand,
+ ];
+
+ static mutationList = [AddConditionalRuleMutation, DeleteConditionalRuleMutation, SetConditionalRuleMutation, MoveConditionalRuleMutation, ConditionalFormatFormulaMarkDirty];
+ constructor(
+ _config: unknown,
+ @Inject(Injector) override readonly _injector: Injector,
+ @Inject(ICommandService) private _commandService: ICommandService
+ ) {
+ super(SHEET_CONDITION_FORMAT_PLUGIN);
+ this._initCommand();
+ }
+
+ override onStarting(): void {
+ this._injector.add([ConditionalFormatService]);
+ this._injector.add([ConditionalFormatFormulaService]);
+
+ this._injector.add([ConditionalFormatRuleModel]);
+ this._injector.add([ConditionalFormatViewModel]);
+
+ this._injector.add([RenderController]);
+ this._injector.add([RefRangeController]);
+ this._injector.add([ConditionalFormatCopyPasteController]);
+ this._injector.add([ConditionalFormatAutoFillController]);
+ this._injector.add([ConditionalFormatMenuController]);
+ this._injector.add([ConditionalFormatI18nController]);
+ this._injector.add([ConditionalFormatEditorController]);
+ this._injector.add([ConditionalFormatClearController]);
+ }
+
+ _initCommand() {
+ SheetsConditionalFormatPlugin.commandList.forEach((m) => {
+ this._commandService.registerCommand(m);
+ });
+ SheetsConditionalFormatPlugin.mutationList.forEach((m) => {
+ this._commandService.registerCommand(m);
+ });
+ }
+}
diff --git a/packages/sheets-conditional-format/src/render/data-bar.render.ts b/packages/sheets-conditional-format/src/render/data-bar.render.ts
new file mode 100644
index 0000000000..3d4e966504
--- /dev/null
+++ b/packages/sheets-conditional-format/src/render/data-bar.render.ts
@@ -0,0 +1,148 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import type { IRange, IScale } from '@univerjs/core';
+import { Range } from '@univerjs/core';
+import type { SpreadsheetSkeleton, UniverRenderingContext } from '@univerjs/engine-render';
+import { FIX_ONE_PIXEL_BLUR_OFFSET, SheetExtension } from '@univerjs/engine-render';
+import type { IDataBarCellData } from './type';
+
+export const dataBarUKey = 'sheet-conditional-rule-data-bar';
+const EXTENSION_Z_INDEX = 35;
+
+export class DataBar extends SheetExtension {
+ private _paddingRightAndLeft = 2;
+ private _paddingTopAndBottom = 2;
+ override uKey = dataBarUKey;
+
+ override Z_INDEX = EXTENSION_Z_INDEX;
+ _radius = 1;
+ override draw(
+ ctx: UniverRenderingContext,
+ parentScale: IScale,
+ spreadsheetSkeleton: SpreadsheetSkeleton,
+ diffRanges?: IRange[]
+ ) {
+ const { rowHeightAccumulation, columnWidthAccumulation, worksheet, dataMergeCache } =
+ spreadsheetSkeleton;
+ if (!worksheet) {
+ return false;
+ }
+ ctx.save();
+ ctx.globalCompositeOperation = 'destination-over';
+ Range.foreach(spreadsheetSkeleton.rowColumnSegment, (row, col) => {
+ const cellData = worksheet.getCell(row, col) as IDataBarCellData;
+ if (cellData && cellData.dataBar) {
+ const { color, value, startPoint, isGradient } = cellData.dataBar;
+ const cellInfo = this.getCellIndex(row, col, rowHeightAccumulation, columnWidthAccumulation, dataMergeCache);
+ let { isMerged, isMergedMainCell, mergeInfo, startY, endY, startX, endX } = cellInfo;
+ if (isMerged) {
+ return;
+ }
+ if (isMergedMainCell) {
+ startY = mergeInfo.startY;
+ endY = mergeInfo.endY;
+ startX = mergeInfo.startX;
+ endX = mergeInfo.endX;
+ }
+ if (!this.isRenderDiffRangesByCell(mergeInfo, diffRanges)) {
+ return;
+ }
+ const borderWidth = endX - startX;
+ const borderHeight = (endY + FIX_ONE_PIXEL_BLUR_OFFSET) - startY;
+ const width = borderWidth - this._paddingRightAndLeft * 2;
+ const height = borderHeight - this._paddingTopAndBottom * 2;
+ if (value > 0) {
+ // Width less than 1, almost invisible
+ const dataBarWidth = Math.max(width * (1 - startPoint / 100) * value / 100, 1);
+ const x0 = startX + this._paddingRightAndLeft + (startPoint / 100) * width;
+ const y0 = startY + this._paddingTopAndBottom;
+ if (isGradient) {
+ const gradient = ctx.createLinearGradient(x0, y0, x0 + dataBarWidth, y0);
+ gradient.addColorStop(0, color);
+ gradient.addColorStop(1, 'rgb(255 255 255)');
+ ctx.fillStyle = gradient;
+ ctx.strokeStyle = color;
+ ctx.lineWidth = 1;
+ } else {
+ ctx.fillStyle = color;
+ }
+
+ this._drawRectWithRoundedCorner(ctx, x0, y0, dataBarWidth, height, false, true, true, false);
+ if (isGradient) {
+ ctx.stroke();
+ }
+ } else {
+ // Width less than 1, almost invisible
+ const dataBarWidth = Math.max(width * startPoint / 100 * Math.abs(value) / 100, 1);
+ const x0 = startX + this._paddingRightAndLeft + (startPoint / 100) * width - dataBarWidth;
+ const y0 = startY + this._paddingTopAndBottom;
+ if (isGradient) {
+ const gradient = ctx.createLinearGradient(x0, y0, x0 + dataBarWidth, y0);
+ gradient.addColorStop(0, 'rgb(255 255 255)');
+ gradient.addColorStop(1, color);
+ ctx.fillStyle = gradient;
+ ctx.strokeStyle = color;
+ ctx.lineWidth = 1;
+ } else {
+ ctx.fillStyle = color;
+ }
+
+ this._drawRectWithRoundedCorner(ctx, x0, y0, dataBarWidth, height, true, false, false, true);
+ if (isGradient) {
+ ctx.stroke();
+ }
+ }
+ }
+ });
+ ctx.restore();
+ }
+
+ private _drawRectWithRoundedCorner(ctx: UniverRenderingContext, x: number, y: number, width: number, height: number, topLeftRadius: boolean, topRightRadius: boolean, bottomRightRadius: boolean, bottomLeftRadius: boolean) {
+ const radius = this._radius;
+ if (!height || !width) {
+ return;
+ }
+ ctx.beginPath();
+ ctx.moveTo(x + radius, y);
+ ctx.lineTo(x + width - radius, y);
+ if (topRightRadius) {
+ ctx.arcTo(x + width, y, x + width, y + radius, radius);
+ } else {
+ ctx.lineTo(x + width, y);
+ }
+ ctx.lineTo(x + width, y + height - radius);
+ if (bottomRightRadius) {
+ ctx.arcTo(x + width, y + height, x + width - radius, y + height, radius);
+ } else {
+ ctx.lineTo(x + width, y + height);
+ }
+ ctx.lineTo(x + radius, y + height);
+ if (bottomLeftRadius) {
+ ctx.arcTo(x, y + height, x, y + height - radius, radius);
+ } else {
+ ctx.lineTo(x, y + height);
+ }
+ ctx.lineTo(x, y + radius);
+ if (topLeftRadius) {
+ ctx.arcTo(x, y, x + radius, y, radius);
+ } else {
+ ctx.lineTo(x, y);
+ }
+ ctx.closePath();
+ ctx.fill();
+ }
+}
diff --git a/packages/sheets-conditional-format/src/render/icon.render.ts b/packages/sheets-conditional-format/src/render/icon.render.ts
new file mode 100644
index 0000000000..5b3b2f53cc
--- /dev/null
+++ b/packages/sheets-conditional-format/src/render/icon.render.ts
@@ -0,0 +1,113 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import type { IRange, IScale } from '@univerjs/core';
+import { Range } from '@univerjs/core';
+import type { SpreadsheetSkeleton, UniverRenderingContext } from '@univerjs/engine-render';
+import { SheetExtension } from '@univerjs/engine-render';
+import type { IIconType } from '../models/icon-map';
+import { EMPTY_ICON_TYPE, iconMap } from '../models/icon-map';
+import type { IIconSetCellData } from './type';
+
+export const IconUKey = 'sheet-conditional-rule-icon';
+const EXTENSION_Z_INDEX = 34;
+export const DEFAULT_WIDTH = 15;
+export const DEFAULT_PADDING = 2;
+
+export class ConditionalFormatIcon extends SheetExtension {
+ private _paddingRightAndLeft = DEFAULT_PADDING;
+
+ private _width = DEFAULT_WIDTH;
+
+ private _imageMap: Map<string, HTMLImageElement> = new Map();
+ override uKey = IconUKey;
+
+ override Z_INDEX = EXTENSION_Z_INDEX;
+ _radius = 1;
+ constructor() {
+ super();
+ this._init();
+ }
+
+ override draw(
+ ctx: UniverRenderingContext,
+ parentScale: IScale,
+ spreadsheetSkeleton: SpreadsheetSkeleton,
+ diffRanges?: IRange[]
+ ) {
+ const { rowHeightAccumulation, columnWidthAccumulation, worksheet, dataMergeCache } =
+ spreadsheetSkeleton;
+ if (!worksheet) {
+ return false;
+ }
+ ctx.save();
+ ctx.globalCompositeOperation = 'destination-over';
+ Range.foreach(spreadsheetSkeleton.rowColumnSegment, (row, col) => {
+ const cellData = worksheet.getCell(row, col) as IIconSetCellData;
+ if (cellData?.iconSet) {
+ const { iconType, iconId } = cellData.iconSet;
+ if (iconType === EMPTY_ICON_TYPE) {
+ return;
+ }
+ const icon = this._imageMap.get(this._createKey(iconType, iconId));
+ if (!icon) {
+ return;
+ }
+ const cellInfo = this.getCellIndex(row, col, rowHeightAccumulation, columnWidthAccumulation, dataMergeCache);
+ let { isMerged, isMergedMainCell, mergeInfo, startY, endY, startX, endX } = cellInfo;
+ if (isMerged) {
+ return;
+ }
+ if (isMergedMainCell) {
+ startY = mergeInfo.startY;
+ endY = mergeInfo.endY;
+ startX = mergeInfo.startX;
+ endX = mergeInfo.endX;
+ }
+ if (!this.isRenderDiffRangesByCell(mergeInfo, diffRanges)) {
+ return;
+ }
+ const borderWidth = endX - startX;
+ const borderHeight = endY - startY;
+ if (this._width > borderHeight || this._width > borderWidth + this._paddingRightAndLeft * 2) {
+ return;
+ }
+ // Highly centered processing
+ const y = (borderHeight - this._width) / 2 + startY;
+ ctx.drawImage(icon, startX + this._paddingRightAndLeft, y, this._width, this._width);
+ }
+ });
+ ctx.restore();
+ }
+
+ private _init() {
+ for (const type in iconMap) {
+ const list = iconMap[type as IIconType];
+ list.forEach((base64, index) => {
+ const key = this._createKey(type as IIconType, String(index));
+ const image = new Image();
+ image.onload = () => {
+ this._imageMap.set(key, image);
+ };
+ image.src = base64;
+ });
+ }
+ }
+
+ private _createKey(iconType: IIconType, iconIndex: string) {
+ return `${iconType}_${iconIndex}`;
+ }
+}
diff --git a/packages/sheets-conditional-format/src/render/type.ts b/packages/sheets-conditional-format/src/render/type.ts
new file mode 100644
index 0000000000..ec90b0c0f0
--- /dev/null
+++ b/packages/sheets-conditional-format/src/render/type.ts
@@ -0,0 +1,40 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import type { ICellData } from '@univerjs/core';
+import type { IIconType } from '../models/icon-map';
+
+export interface IDataBarRenderParams {
+ color: string;
+ value: number; // -100 - 100.
+ startPoint: number; //0-100
+ isGradient: boolean;
+}
+export interface IDataBarCellData extends ICellData {
+ dataBar?: IDataBarRenderParams;
+}
+
+export interface IIconSetRenderParams {
+ iconId: string;
+ iconType: IIconType;
+ isShowValue: boolean;
+}
+
+export interface IIconSetCellData extends ICellData {
+ iconSet?: IIconSetRenderParams;
+ _originV?: ICellData['v'];
+}
+export type IConditionalFormatCellData = IDataBarCellData & IIconSetCellData;
diff --git a/packages/sheets-conditional-format/src/services/__test__/cf.service.spec.ts b/packages/sheets-conditional-format/src/services/__test__/cf.service.spec.ts
new file mode 100644
index 0000000000..6ec9a7e07b
--- /dev/null
+++ b/packages/sheets-conditional-format/src/services/__test__/cf.service.spec.ts
@@ -0,0 +1,953 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { beforeEach, describe, expect, it } from 'vitest';
+import type { IAverageHighlightCell, IColorScale, IConditionFormatRule, IDataBar, INumberHighlightCell, IRankHighlightCell, ITextHighlightCell } from '../../models/type';
+import { CFNumberOperator, CFRuleType, CFSubRuleType, CFTextOperator, CFValueType } from '../../base/const';
+import { EMPTY_STYLE } from '../calculate-unit/type';
+import { createTestBed } from './test.util';
+
+describe('Test conditional format service', () => {
+ let testBed: ReturnType<typeof createTestBed>;
+ beforeEach(() => {
+ testBed && testBed.univer.dispose();
+ testBed = createTestBed();
+ });
+
+ describe('Test highlight', () => {
+ describe('Test Number', () => {
+ it(`Is ${CFNumberOperator.between}`, () => {
+ const params: IConditionFormatRule<INumberHighlightCell> = {
+ ranges: [{ startRow: 0, startColumn: 0, endRow: 2, endColumn: 2 }],
+ cfId: testBed.getConditionalFormatRuleModel().createCfId(testBed.unitId, testBed.subUnitId),
+ stopIfTrue: false,
+ rule: {
+ style: { bg: { rgb: '#2AEAEA' } },
+ type: CFRuleType.highlightCell,
+ subType: CFSubRuleType.number,
+ operator: CFNumberOperator.between,
+ value: [0, 10],
+ },
+ };
+ testBed.getConditionalFormatRuleModel().addRule(testBed.unitId, testBed.subUnitId, params);
+ testBed.getConditionalFormatService().composeStyle(testBed.unitId, testBed.subUnitId, 1, 1);
+ const dispose = testBed.getConditionalFormatService().ruleComputeStatus$.subscribe(() => {
+ dispose.unsubscribe();
+ const result = testBed.getConditionalFormatService().composeStyle(testBed.unitId, testBed.subUnitId, 1, 1);
+ expect(result).toEqual({ style: { bg: { rgb: '#2AEAEA' } } });
+ });
+ });
+ it(`Is not ${CFNumberOperator.between}`, () => {
+ const params: IConditionFormatRule<INumberHighlightCell> = {
+ ranges: [{ startRow: 0, startColumn: 0, endRow: 2, endColumn: 2 }],
+ cfId: testBed.getConditionalFormatRuleModel().createCfId(testBed.unitId, testBed.subUnitId),
+ stopIfTrue: false,
+ rule: {
+ style: { bg: { rgb: '#2AEAEA' } },
+ type: CFRuleType.highlightCell,
+ subType: CFSubRuleType.number,
+ operator: CFNumberOperator.between,
+ value: [5, 10],
+ },
+ };
+ testBed.getConditionalFormatRuleModel().addRule(testBed.unitId, testBed.subUnitId, params);
+ testBed.getConditionalFormatService().composeStyle(testBed.unitId, testBed.subUnitId, 1, 1);
+ const dispose = testBed.getConditionalFormatService().ruleComputeStatus$.subscribe(() => {
+ dispose.unsubscribe();
+ const result = testBed.getConditionalFormatService().composeStyle(testBed.unitId, testBed.subUnitId, 1, 1);
+ expect(result).toEqual({ style: EMPTY_STYLE });
+ });
+ });
+ it(`Is ${CFNumberOperator.equal}`, () => {
+ const params: IConditionFormatRule<INumberHighlightCell> = {
+ ranges: [{ startRow: 0, startColumn: 0, endRow: 2, endColumn: 2 }],
+ cfId: testBed.getConditionalFormatRuleModel().createCfId(testBed.unitId, testBed.subUnitId),
+ stopIfTrue: false,
+ rule: {
+ style: { bg: { rgb: '#2AEAEA' } },
+ type: CFRuleType.highlightCell,
+ subType: CFSubRuleType.number,
+ operator: CFNumberOperator.equal,
+ value: 2,
+ },
+ };
+ testBed.getConditionalFormatRuleModel().addRule(testBed.unitId, testBed.subUnitId, params);
+ testBed.getConditionalFormatService().composeStyle(testBed.unitId, testBed.subUnitId, 1, 1);
+ const dispose = testBed.getConditionalFormatService().ruleComputeStatus$.subscribe(() => {
+ dispose.unsubscribe();
+ const result = testBed.getConditionalFormatService().composeStyle(testBed.unitId, testBed.subUnitId, 1, 1);
+ expect(result).toEqual({ style: { bg: { rgb: '#2AEAEA' } } });
+ });
+ });
+ it(`Is not ${CFNumberOperator.equal}`, () => {
+ const params: IConditionFormatRule<INumberHighlightCell> = {
+ ranges: [{ startRow: 0, startColumn: 0, endRow: 2, endColumn: 2 }],
+ cfId: testBed.getConditionalFormatRuleModel().createCfId(testBed.unitId, testBed.subUnitId),
+ stopIfTrue: false,
+ rule: {
+ style: { bg: { rgb: '#2AEAEA' } },
+ type: CFRuleType.highlightCell,
+ subType: CFSubRuleType.number,
+ operator: CFNumberOperator.equal,
+ value: 2,
+ },
+ };
+ testBed.getConditionalFormatRuleModel().addRule(testBed.unitId, testBed.subUnitId, params);
+ testBed.getConditionalFormatService().composeStyle(testBed.unitId, testBed.subUnitId, 1, 1);
+ const dispose = testBed.getConditionalFormatService().ruleComputeStatus$.subscribe(() => {
+ dispose.unsubscribe();
+ const result = testBed.getConditionalFormatService().composeStyle(testBed.unitId, testBed.subUnitId, 1, 2);
+ expect(result).toEqual({ style: EMPTY_STYLE });
+ });
+ });
+ it(`Is ${CFNumberOperator.greaterThan}`, () => {
+ const params: IConditionFormatRule<INumberHighlightCell> = {
+ ranges: [{ startRow: 0, startColumn: 0, endRow: 2, endColumn: 2 }],
+ cfId: testBed.getConditionalFormatRuleModel().createCfId(testBed.unitId, testBed.subUnitId),
+ stopIfTrue: false,
+ rule: {
+ style: { bg: { rgb: '#2AEAEA' } },
+ type: CFRuleType.highlightCell,
+ subType: CFSubRuleType.number,
+ operator: CFNumberOperator.greaterThan,
+ value: 0,
+ },
+ };
+ testBed.getConditionalFormatRuleModel().addRule(testBed.unitId, testBed.subUnitId, params);
+ testBed.getConditionalFormatService().composeStyle(testBed.unitId, testBed.subUnitId, 1, 1);
+ const dispose = testBed.getConditionalFormatService().ruleComputeStatus$.subscribe(() => {
+ dispose.unsubscribe();
+ const result = testBed.getConditionalFormatService().composeStyle(testBed.unitId, testBed.subUnitId, 1, 1);
+ expect(result).toEqual({ style: { bg: { rgb: '#2AEAEA' } } });
+ });
+ });
+ it(`Is not ${CFNumberOperator.greaterThan}`, () => {
+ const params: IConditionFormatRule<INumberHighlightCell> = {
+ ranges: [{ startRow: 0, startColumn: 0, endRow: 2, endColumn: 2 }],
+ cfId: testBed.getConditionalFormatRuleModel().createCfId(testBed.unitId, testBed.subUnitId),
+ stopIfTrue: false,
+ rule: {
+ style: { bg: { rgb: '#2AEAEA' } },
+ type: CFRuleType.highlightCell,
+ subType: CFSubRuleType.number,
+ operator: CFNumberOperator.greaterThan,
+ value: 2,
+ },
+ };
+ testBed.getConditionalFormatRuleModel().addRule(testBed.unitId, testBed.subUnitId, params);
+ testBed.getConditionalFormatService().composeStyle(testBed.unitId, testBed.subUnitId, 1, 1);
+ const dispose = testBed.getConditionalFormatService().ruleComputeStatus$.subscribe(() => {
+ dispose.unsubscribe();
+ const result = testBed.getConditionalFormatService().composeStyle(testBed.unitId, testBed.subUnitId, 1, 1);
+ expect(result).toEqual({ style: EMPTY_STYLE });
+ });
+ });
+ it(`Is ${CFNumberOperator.greaterThanOrEqual}`, () => {
+ const params: IConditionFormatRule<INumberHighlightCell> = {
+ ranges: [{ startRow: 0, startColumn: 0, endRow: 2, endColumn: 2 }],
+ cfId: testBed.getConditionalFormatRuleModel().createCfId(testBed.unitId, testBed.subUnitId),
+ stopIfTrue: false,
+ rule: {
+ style: { bg: { rgb: '#2AEAEA' } },
+ type: CFRuleType.highlightCell,
+ subType: CFSubRuleType.number,
+ operator: CFNumberOperator.greaterThanOrEqual,
+ value: 0,
+ },
+ };
+ testBed.getConditionalFormatRuleModel().addRule(testBed.unitId, testBed.subUnitId, params);
+ testBed.getConditionalFormatService().composeStyle(testBed.unitId, testBed.subUnitId, 1, 1);
+ const dispose = testBed.getConditionalFormatService().ruleComputeStatus$.subscribe(() => {
+ dispose.unsubscribe();
+ const result = testBed.getConditionalFormatService().composeStyle(testBed.unitId, testBed.subUnitId, 1, 1);
+ expect(result).toEqual({ style: { bg: { rgb: '#2AEAEA' } } });
+ });
+ });
+ it(`Is not ${CFNumberOperator.greaterThanOrEqual}`, () => {
+ const params: IConditionFormatRule<INumberHighlightCell> = {
+ ranges: [{ startRow: 0, startColumn: 0, endRow: 2, endColumn: 2 }],
+ cfId: testBed.getConditionalFormatRuleModel().createCfId(testBed.unitId, testBed.subUnitId),
+ stopIfTrue: false,
+ rule: {
+ style: { bg: { rgb: '#2AEAEA' } },
+ type: CFRuleType.highlightCell,
+ subType: CFSubRuleType.number,
+ operator: CFNumberOperator.greaterThanOrEqual,
+ value: 3,
+ },
+ };
+ testBed.getConditionalFormatRuleModel().addRule(testBed.unitId, testBed.subUnitId, params);
+ testBed.getConditionalFormatService().composeStyle(testBed.unitId, testBed.subUnitId, 1, 1);
+ const dispose = testBed.getConditionalFormatService().ruleComputeStatus$.subscribe(() => {
+ dispose.unsubscribe();
+ const result = testBed.getConditionalFormatService().composeStyle(testBed.unitId, testBed.subUnitId, 1, 1);
+ expect(result).toEqual({ style: EMPTY_STYLE });
+ });
+ });
+ it(`Is ${CFNumberOperator.lessThan}`, () => {
+ const params: IConditionFormatRule<INumberHighlightCell> = {
+ ranges: [{ startRow: 0, startColumn: 0, endRow: 2, endColumn: 2 }],
+ cfId: testBed.getConditionalFormatRuleModel().createCfId(testBed.unitId, testBed.subUnitId),
+ stopIfTrue: false,
+ rule: {
+ style: { bg: { rgb: '#2AEAEA' } },
+ type: CFRuleType.highlightCell,
+ subType: CFSubRuleType.number,
+ operator: CFNumberOperator.lessThan,
+ value: 3,
+ },
+ };
+ testBed.getConditionalFormatRuleModel().addRule(testBed.unitId, testBed.subUnitId, params);
+ testBed.getConditionalFormatService().composeStyle(testBed.unitId, testBed.subUnitId, 1, 1);
+ const dispose = testBed.getConditionalFormatService().ruleComputeStatus$.subscribe(() => {
+ dispose.unsubscribe();
+ const result = testBed.getConditionalFormatService().composeStyle(testBed.unitId, testBed.subUnitId, 1, 1);
+ expect(result).toEqual({ style: { bg: { rgb: '#2AEAEA' } } });
+ });
+ });
+ it(`Is not ${CFNumberOperator.lessThan}`, () => {
+ const params: IConditionFormatRule<INumberHighlightCell> = {
+ ranges: [{ startRow: 0, startColumn: 0, endRow: 2, endColumn: 2 }],
+ cfId: testBed.getConditionalFormatRuleModel().createCfId(testBed.unitId, testBed.subUnitId),
+ stopIfTrue: false,
+ rule: {
+ style: { bg: { rgb: '#2AEAEA' } },
+ type: CFRuleType.highlightCell,
+ subType: CFSubRuleType.number,
+ operator: CFNumberOperator.lessThan,
+ value: 0,
+ },
+ };
+ testBed.getConditionalFormatRuleModel().addRule(testBed.unitId, testBed.subUnitId, params);
+ testBed.getConditionalFormatService().composeStyle(testBed.unitId, testBed.subUnitId, 1, 1);
+ const dispose = testBed.getConditionalFormatService().ruleComputeStatus$.subscribe(() => {
+ dispose.unsubscribe();
+ const result = testBed.getConditionalFormatService().composeStyle(testBed.unitId, testBed.subUnitId, 1, 1);
+ expect(result).toEqual({ style: EMPTY_STYLE });
+ });
+ });
+ it(`Is ${CFNumberOperator.lessThanOrEqual}`, () => {
+ const params: IConditionFormatRule<INumberHighlightCell> = {
+ ranges: [{ startRow: 0, startColumn: 0, endRow: 2, endColumn: 2 }],
+ cfId: testBed.getConditionalFormatRuleModel().createCfId(testBed.unitId, testBed.subUnitId),
+ stopIfTrue: false,
+ rule: {
+ style: { bg: { rgb: '#2AEAEA' } },
+ type: CFRuleType.highlightCell,
+ subType: CFSubRuleType.number,
+ operator: CFNumberOperator.lessThanOrEqual,
+ value: 3,
+ },
+ };
+ testBed.getConditionalFormatRuleModel().addRule(testBed.unitId, testBed.subUnitId, params);
+ testBed.getConditionalFormatService().composeStyle(testBed.unitId, testBed.subUnitId, 1, 1);
+ const dispose = testBed.getConditionalFormatService().ruleComputeStatus$.subscribe(() => {
+ dispose.unsubscribe();
+ const result = testBed.getConditionalFormatService().composeStyle(testBed.unitId, testBed.subUnitId, 1, 1);
+ expect(result).toEqual({ style: { bg: { rgb: '#2AEAEA' } } });
+ });
+ });
+ it(`Is not ${CFNumberOperator.lessThanOrEqual}`, () => {
+ const params: IConditionFormatRule<INumberHighlightCell> = {
+ ranges: [{ startRow: 0, startColumn: 0, endRow: 2, endColumn: 2 }],
+ cfId: testBed.getConditionalFormatRuleModel().createCfId(testBed.unitId, testBed.subUnitId),
+ stopIfTrue: false,
+ rule: {
+ style: { bg: { rgb: '#2AEAEA' } },
+ type: CFRuleType.highlightCell,
+ subType: CFSubRuleType.number,
+ operator: CFNumberOperator.lessThanOrEqual,
+ value: 0,
+ },
+ };
+ testBed.getConditionalFormatRuleModel().addRule(testBed.unitId, testBed.subUnitId, params);
+ testBed.getConditionalFormatService().composeStyle(testBed.unitId, testBed.subUnitId, 1, 1);
+ const dispose = testBed.getConditionalFormatService().ruleComputeStatus$.subscribe(() => {
+ dispose.unsubscribe();
+ const result = testBed.getConditionalFormatService().composeStyle(testBed.unitId, testBed.subUnitId, 1, 1);
+ expect(result).toEqual({ style: EMPTY_STYLE });
+ });
+ });
+ it(`Is ${CFNumberOperator.notBetween}`, () => {
+ const params: IConditionFormatRule<INumberHighlightCell> = {
+ ranges: [{ startRow: 0, startColumn: 0, endRow: 2, endColumn: 2 }],
+ cfId: testBed.getConditionalFormatRuleModel().createCfId(testBed.unitId, testBed.subUnitId),
+ stopIfTrue: false,
+ rule: {
+ style: { bg: { rgb: '#2AEAEA' } },
+ type: CFRuleType.highlightCell,
+ subType: CFSubRuleType.number,
+ operator: CFNumberOperator.notBetween,
+ value: [5, 7],
+ },
+ };
+ testBed.getConditionalFormatRuleModel().addRule(testBed.unitId, testBed.subUnitId, params);
+ testBed.getConditionalFormatService().composeStyle(testBed.unitId, testBed.subUnitId, 1, 1);
+ const dispose = testBed.getConditionalFormatService().ruleComputeStatus$.subscribe(() => {
+ dispose.unsubscribe();
+ const result = testBed.getConditionalFormatService().composeStyle(testBed.unitId, testBed.subUnitId, 1, 1);
+ expect(result).toEqual({ style: { bg: { rgb: '#2AEAEA' } } });
+ });
+ });
+ it(`Is not ${CFNumberOperator.notBetween}`, () => {
+ const params: IConditionFormatRule<INumberHighlightCell> = {
+ ranges: [{ startRow: 0, startColumn: 0, endRow: 2, endColumn: 2 }],
+ cfId: testBed.getConditionalFormatRuleModel().createCfId(testBed.unitId, testBed.subUnitId),
+ stopIfTrue: false,
+ rule: {
+ style: { bg: { rgb: '#2AEAEA' } },
+ type: CFRuleType.highlightCell,
+ subType: CFSubRuleType.number,
+ operator: CFNumberOperator.notBetween,
+ value: [0, 3],
+ },
+ };
+ testBed.getConditionalFormatRuleModel().addRule(testBed.unitId, testBed.subUnitId, params);
+ testBed.getConditionalFormatService().composeStyle(testBed.unitId, testBed.subUnitId, 1, 1);
+ const dispose = testBed.getConditionalFormatService().ruleComputeStatus$.subscribe(() => {
+ dispose.unsubscribe();
+ const result = testBed.getConditionalFormatService().composeStyle(testBed.unitId, testBed.subUnitId, 1, 1);
+ expect(result).toEqual({ style: EMPTY_STYLE });
+ });
+ });
+ it(`Is ${CFNumberOperator.notEqual}`, () => {
+ const params: IConditionFormatRule<INumberHighlightCell> = {
+ ranges: [{ startRow: 0, startColumn: 0, endRow: 2, endColumn: 2 }],
+ cfId: testBed.getConditionalFormatRuleModel().createCfId(testBed.unitId, testBed.subUnitId),
+ stopIfTrue: false,
+ rule: {
+ style: { bg: { rgb: '#2AEAEA' } },
+ type: CFRuleType.highlightCell,
+ subType: CFSubRuleType.number,
+ operator: CFNumberOperator.notEqual,
+ value: 11,
+ },
+ };
+ testBed.getConditionalFormatRuleModel().addRule(testBed.unitId, testBed.subUnitId, params);
+ testBed.getConditionalFormatService().composeStyle(testBed.unitId, testBed.subUnitId, 1, 1);
+ const dispose = testBed.getConditionalFormatService().ruleComputeStatus$.subscribe(() => {
+ dispose.unsubscribe();
+ const result = testBed.getConditionalFormatService().composeStyle(testBed.unitId, testBed.subUnitId, 1, 1);
+ expect(result).toEqual({ style: { bg: { rgb: '#2AEAEA' } } });
+ });
+ });
+ it(`Is not ${CFNumberOperator.notEqual}`, () => {
+ const params: IConditionFormatRule<INumberHighlightCell> = {
+ ranges: [{ startRow: 0, startColumn: 0, endRow: 2, endColumn: 2 }],
+ cfId: testBed.getConditionalFormatRuleModel().createCfId(testBed.unitId, testBed.subUnitId),
+ stopIfTrue: false,
+ rule: {
+ style: { bg: { rgb: '#2AEAEA' } },
+ type: CFRuleType.highlightCell,
+ subType: CFSubRuleType.number,
+ operator: CFNumberOperator.notEqual,
+ value: 2,
+ },
+ };
+ testBed.getConditionalFormatRuleModel().addRule(testBed.unitId, testBed.subUnitId, params);
+ testBed.getConditionalFormatService().composeStyle(testBed.unitId, testBed.subUnitId, 1, 1);
+ const dispose = testBed.getConditionalFormatService().ruleComputeStatus$.subscribe(() => {
+ dispose.unsubscribe();
+ const result = testBed.getConditionalFormatService().composeStyle(testBed.unitId, testBed.subUnitId, 1, 1);
+ expect(result).toEqual({ style: EMPTY_STYLE });
+ });
+ });
+ });
+ describe('Test Text', () => {
+ it(`is ${CFTextOperator.beginsWith}`, () => {
+ const params: IConditionFormatRule<ITextHighlightCell> = {
+ ranges: [{ startRow: 0, startColumn: 0, endRow: 2, endColumn: 2 }],
+ cfId: testBed.getConditionalFormatRuleModel().createCfId(testBed.unitId, testBed.subUnitId),
+ stopIfTrue: false,
+ rule: {
+ style: { bg: { rgb: '#2AEAEA' } },
+ type: CFRuleType.highlightCell,
+ subType: CFSubRuleType.text,
+ operator: CFTextOperator.beginsWith,
+ value: '2',
+ },
+ };
+ testBed.getConditionalFormatRuleModel().addRule(testBed.unitId, testBed.subUnitId, params);
+ testBed.getConditionalFormatService().composeStyle(testBed.unitId, testBed.subUnitId, 1, 1);
+ const dispose = testBed.getConditionalFormatService().ruleComputeStatus$.subscribe(() => {
+ dispose.unsubscribe();
+ const result = testBed.getConditionalFormatService().composeStyle(testBed.unitId, testBed.subUnitId, 1, 1);
+ expect(result).toEqual({ style: { bg: { rgb: '#2AEAEA' } } });
+ });
+ });
+ it(`is not ${CFTextOperator.beginsWith}`, () => {
+ const params: IConditionFormatRule<ITextHighlightCell> = {
+ ranges: [{ startRow: 0, startColumn: 0, endRow: 2, endColumn: 2 }],
+ cfId: testBed.getConditionalFormatRuleModel().createCfId(testBed.unitId, testBed.subUnitId),
+ stopIfTrue: false,
+ rule: {
+ style: { bg: { rgb: '#2AEAEA' } },
+ type: CFRuleType.highlightCell,
+ subType: CFSubRuleType.text,
+ operator: CFTextOperator.beginsWith,
+ value: '11',
+ },
+ };
+ testBed.getConditionalFormatRuleModel().addRule(testBed.unitId, testBed.subUnitId, params);
+ testBed.getConditionalFormatService().composeStyle(testBed.unitId, testBed.subUnitId, 1, 1);
+ const dispose = testBed.getConditionalFormatService().ruleComputeStatus$.subscribe(() => {
+ dispose.unsubscribe();
+ const result = testBed.getConditionalFormatService().composeStyle(testBed.unitId, testBed.subUnitId, 1, 1);
+ expect(result).toEqual({ style: EMPTY_STYLE });
+ });
+ });
+
+ it(`is ${CFTextOperator.endsWith}`, () => {
+ const params: IConditionFormatRule<ITextHighlightCell> = {
+ ranges: [{ startRow: 0, startColumn: 0, endRow: 2, endColumn: 2 }],
+ cfId: testBed.getConditionalFormatRuleModel().createCfId(testBed.unitId, testBed.subUnitId),
+ stopIfTrue: false,
+ rule: {
+ style: { bg: { rgb: '#2AEAEA' } },
+ type: CFRuleType.highlightCell,
+ subType: CFSubRuleType.text,
+ operator: CFTextOperator.endsWith,
+ value: '2',
+ },
+ };
+ testBed.getConditionalFormatRuleModel().addRule(testBed.unitId, testBed.subUnitId, params);
+ testBed.getConditionalFormatService().composeStyle(testBed.unitId, testBed.subUnitId, 1, 1);
+ const dispose = testBed.getConditionalFormatService().ruleComputeStatus$.subscribe(() => {
+ dispose.unsubscribe();
+ const result = testBed.getConditionalFormatService().composeStyle(testBed.unitId, testBed.subUnitId, 1, 1);
+ expect(result).toEqual({ style: { bg: { rgb: '#2AEAEA' } } });
+ });
+ });
+ it(`is not ${CFTextOperator.endsWith}`, () => {
+ const params: IConditionFormatRule<ITextHighlightCell> = {
+ ranges: [{ startRow: 0, startColumn: 0, endRow: 2, endColumn: 2 }],
+ cfId: testBed.getConditionalFormatRuleModel().createCfId(testBed.unitId, testBed.subUnitId),
+ stopIfTrue: false,
+ rule: {
+ style: { bg: { rgb: '#2AEAEA' } },
+ type: CFRuleType.highlightCell,
+ subType: CFSubRuleType.text,
+ operator: CFTextOperator.endsWith,
+ value: '11',
+ },
+ };
+ testBed.getConditionalFormatRuleModel().addRule(testBed.unitId, testBed.subUnitId, params);
+ testBed.getConditionalFormatService().composeStyle(testBed.unitId, testBed.subUnitId, 1, 1);
+ const dispose = testBed.getConditionalFormatService().ruleComputeStatus$.subscribe(() => {
+ dispose.unsubscribe();
+ const result = testBed.getConditionalFormatService().composeStyle(testBed.unitId, testBed.subUnitId, 1, 1);
+ expect(result).toEqual({ style: EMPTY_STYLE });
+ });
+ });
+
+ it(`is ${CFTextOperator.containsText}`, () => {
+ const params: IConditionFormatRule<ITextHighlightCell> = {
+ ranges: [{ startRow: 0, startColumn: 0, endRow: 2, endColumn: 2 }],
+ cfId: testBed.getConditionalFormatRuleModel().createCfId(testBed.unitId, testBed.subUnitId),
+ stopIfTrue: false,
+ rule: {
+ style: { bg: { rgb: '#2AEAEA' } },
+ type: CFRuleType.highlightCell,
+ subType: CFSubRuleType.text,
+ operator: CFTextOperator.containsText,
+ value: '2',
+ },
+ };
+ testBed.getConditionalFormatRuleModel().addRule(testBed.unitId, testBed.subUnitId, params);
+ testBed.getConditionalFormatService().composeStyle(testBed.unitId, testBed.subUnitId, 1, 1);
+ const dispose = testBed.getConditionalFormatService().ruleComputeStatus$.subscribe(() => {
+ dispose.unsubscribe();
+ const result = testBed.getConditionalFormatService().composeStyle(testBed.unitId, testBed.subUnitId, 1, 1);
+ expect(result).toEqual({ style: { bg: { rgb: '#2AEAEA' } } });
+ });
+ });
+ it(`is not ${CFTextOperator.containsText}`, () => {
+ const params: IConditionFormatRule<ITextHighlightCell> = {
+ ranges: [{ startRow: 0, startColumn: 0, endRow: 2, endColumn: 2 }],
+ cfId: testBed.getConditionalFormatRuleModel().createCfId(testBed.unitId, testBed.subUnitId),
+ stopIfTrue: false,
+ rule: {
+ style: { bg: { rgb: '#2AEAEA' } },
+ type: CFRuleType.highlightCell,
+ subType: CFSubRuleType.text,
+ operator: CFTextOperator.containsText,
+ value: '11',
+ },
+ };
+ testBed.getConditionalFormatRuleModel().addRule(testBed.unitId, testBed.subUnitId, params);
+ testBed.getConditionalFormatService().composeStyle(testBed.unitId, testBed.subUnitId, 1, 1);
+ const dispose = testBed.getConditionalFormatService().ruleComputeStatus$.subscribe(() => {
+ dispose.unsubscribe();
+ const result = testBed.getConditionalFormatService().composeStyle(testBed.unitId, testBed.subUnitId, 1, 1);
+ expect(result).toEqual({ style: EMPTY_STYLE });
+ });
+ });
+ it(`is ${CFTextOperator.equal}`, () => {
+ const params: IConditionFormatRule<ITextHighlightCell> = {
+ ranges: [{ startRow: 0, startColumn: 0, endRow: 2, endColumn: 2 }],
+ cfId: testBed.getConditionalFormatRuleModel().createCfId(testBed.unitId, testBed.subUnitId),
+ stopIfTrue: false,
+ rule: {
+ style: { bg: { rgb: '#2AEAEA' } },
+ type: CFRuleType.highlightCell,
+ subType: CFSubRuleType.text,
+ operator: CFTextOperator.containsText,
+ value: '2',
+ },
+ };
+ testBed.getConditionalFormatRuleModel().addRule(testBed.unitId, testBed.subUnitId, params);
+ testBed.getConditionalFormatService().composeStyle(testBed.unitId, testBed.subUnitId, 1, 1);
+ const dispose = testBed.getConditionalFormatService().ruleComputeStatus$.subscribe(() => {
+ dispose.unsubscribe();
+ const result = testBed.getConditionalFormatService().composeStyle(testBed.unitId, testBed.subUnitId, 1, 1);
+ expect(result).toEqual({ style: { bg: { rgb: '#2AEAEA' } } });
+ });
+ });
+ it(`is not ${CFTextOperator.equal}`, () => {
+ const params: IConditionFormatRule<ITextHighlightCell> = {
+ ranges: [{ startRow: 0, startColumn: 0, endRow: 2, endColumn: 2 }],
+ cfId: testBed.getConditionalFormatRuleModel().createCfId(testBed.unitId, testBed.subUnitId),
+ stopIfTrue: false,
+ rule: {
+ style: { bg: { rgb: '#2AEAEA' } },
+ type: CFRuleType.highlightCell,
+ subType: CFSubRuleType.text,
+ operator: CFTextOperator.containsText,
+ value: '11',
+ },
+ };
+ testBed.getConditionalFormatRuleModel().addRule(testBed.unitId, testBed.subUnitId, params);
+ testBed.getConditionalFormatService().composeStyle(testBed.unitId, testBed.subUnitId, 1, 1);
+ const dispose = testBed.getConditionalFormatService().ruleComputeStatus$.subscribe(() => {
+ dispose.unsubscribe();
+ const result = testBed.getConditionalFormatService().composeStyle(testBed.unitId, testBed.subUnitId, 1, 1);
+ expect(result).toEqual({ style: EMPTY_STYLE });
+ });
+ });
+ it(`is ${CFTextOperator.notEqual}`, () => {
+ const params: IConditionFormatRule<ITextHighlightCell> = {
+ ranges: [{ startRow: 0, startColumn: 0, endRow: 2, endColumn: 2 }],
+ cfId: testBed.getConditionalFormatRuleModel().createCfId(testBed.unitId, testBed.subUnitId),
+ stopIfTrue: false,
+ rule: {
+ style: { bg: { rgb: '#2AEAEA' } },
+ type: CFRuleType.highlightCell,
+ subType: CFSubRuleType.text,
+ operator: CFTextOperator.notEqual,
+ value: '22',
+ },
+ };
+ testBed.getConditionalFormatRuleModel().addRule(testBed.unitId, testBed.subUnitId, params);
+ testBed.getConditionalFormatService().composeStyle(testBed.unitId, testBed.subUnitId, 1, 1);
+ const dispose = testBed.getConditionalFormatService().ruleComputeStatus$.subscribe(() => {
+ dispose.unsubscribe();
+ const result = testBed.getConditionalFormatService().composeStyle(testBed.unitId, testBed.subUnitId, 1, 1);
+ expect(result).toEqual({ style: { bg: { rgb: '#2AEAEA' } } });
+ });
+ });
+ it(`is not ${CFTextOperator.notEqual}`, () => {
+ const params: IConditionFormatRule<ITextHighlightCell> = {
+ ranges: [{ startRow: 0, startColumn: 0, endRow: 2, endColumn: 2 }],
+ cfId: testBed.getConditionalFormatRuleModel().createCfId(testBed.unitId, testBed.subUnitId),
+ stopIfTrue: false,
+ rule: {
+ style: { bg: { rgb: '#2AEAEA' } },
+ type: CFRuleType.highlightCell,
+ subType: CFSubRuleType.text,
+ operator: CFTextOperator.notEqual,
+ value: '2',
+ },
+ };
+ testBed.getConditionalFormatRuleModel().addRule(testBed.unitId, testBed.subUnitId, params);
+ testBed.getConditionalFormatService().composeStyle(testBed.unitId, testBed.subUnitId, 1, 1);
+ const dispose = testBed.getConditionalFormatService().ruleComputeStatus$.subscribe(() => {
+ dispose.unsubscribe();
+ const result = testBed.getConditionalFormatService().composeStyle(testBed.unitId, testBed.subUnitId, 1, 1);
+ expect(result).toEqual({ style: EMPTY_STYLE });
+ });
+ });
+ it(`is ${CFTextOperator.notContainsText}`, () => {
+ const params: IConditionFormatRule<ITextHighlightCell> = {
+ ranges: [{ startRow: 0, startColumn: 0, endRow: 2, endColumn: 2 }],
+ cfId: testBed.getConditionalFormatRuleModel().createCfId(testBed.unitId, testBed.subUnitId),
+ stopIfTrue: false,
+ rule: {
+ style: { bg: { rgb: '#2AEAEA' } },
+ type: CFRuleType.highlightCell,
+ subType: CFSubRuleType.text,
+ operator: CFTextOperator.notEqual,
+ value: '11',
+ },
+ };
+ testBed.getConditionalFormatRuleModel().addRule(testBed.unitId, testBed.subUnitId, params);
+ testBed.getConditionalFormatService().composeStyle(testBed.unitId, testBed.subUnitId, 1, 1);
+ const dispose = testBed.getConditionalFormatService().ruleComputeStatus$.subscribe(() => {
+ dispose.unsubscribe();
+ const result = testBed.getConditionalFormatService().composeStyle(testBed.unitId, testBed.subUnitId, 1, 1);
+ expect(result).toEqual({ style: { bg: { rgb: '#2AEAEA' } } });
+ });
+ });
+ it(`is not ${CFTextOperator.notContainsText}`, () => {
+ const params: IConditionFormatRule<ITextHighlightCell> = {
+ ranges: [{ startRow: 0, startColumn: 0, endRow: 2, endColumn: 2 }],
+ cfId: testBed.getConditionalFormatRuleModel().createCfId(testBed.unitId, testBed.subUnitId),
+ stopIfTrue: false,
+ rule: {
+ style: { bg: { rgb: '#2AEAEA' } },
+ type: CFRuleType.highlightCell,
+ subType: CFSubRuleType.text,
+ operator: CFTextOperator.notEqual,
+ value: '2',
+ },
+ };
+ testBed.getConditionalFormatRuleModel().addRule(testBed.unitId, testBed.subUnitId, params);
+ testBed.getConditionalFormatService().composeStyle(testBed.unitId, testBed.subUnitId, 1, 1);
+ const dispose = testBed.getConditionalFormatService().ruleComputeStatus$.subscribe(() => {
+ dispose.unsubscribe();
+ const result = testBed.getConditionalFormatService().composeStyle(testBed.unitId, testBed.subUnitId, 1, 1);
+ expect(result).toEqual({ style: EMPTY_STYLE });
+ });
+ });
+ });
+ describe('Test average', () => {
+ it(`is ${CFNumberOperator.greaterThanOrEqual} average`, () => {
+ const params: IConditionFormatRule<IAverageHighlightCell> = {
+ ranges: [{ startRow: 0, startColumn: 0, endRow: 2, endColumn: 2 }],
+ cfId: testBed.getConditionalFormatRuleModel().createCfId(testBed.unitId, testBed.subUnitId),
+ stopIfTrue: false,
+ rule: {
+ style: { bg: { rgb: '#2AEAEA' } },
+ type: CFRuleType.highlightCell,
+ subType: CFSubRuleType.average,
+ operator: CFNumberOperator.greaterThanOrEqual,
+ },
+ };
+ testBed.getConditionalFormatRuleModel().addRule(testBed.unitId, testBed.subUnitId, params);
+ testBed.getConditionalFormatService().composeStyle(testBed.unitId, testBed.subUnitId, 1, 1);
+ const dispose = testBed.getConditionalFormatService().ruleComputeStatus$.subscribe(() => {
+ dispose.unsubscribe();
+ const result = testBed.getConditionalFormatService().composeStyle(testBed.unitId, testBed.subUnitId, 1, 1);
+ expect(result).toEqual({ style: { bg: { rgb: '#2AEAEA' } } });
+ });
+ });
+ it(`is ${CFNumberOperator.lessThanOrEqual} average`, () => {
+ const params: IConditionFormatRule<IAverageHighlightCell> = {
+ ranges: [{ startRow: 0, startColumn: 0, endRow: 2, endColumn: 2 }],
+ cfId: testBed.getConditionalFormatRuleModel().createCfId(testBed.unitId, testBed.subUnitId),
+ stopIfTrue: false,
+ rule: {
+ style: { bg: { rgb: '#2AEAEA' } },
+ type: CFRuleType.highlightCell,
+ subType: CFSubRuleType.average,
+ operator: CFNumberOperator.lessThanOrEqual,
+ },
+ };
+ testBed.getConditionalFormatRuleModel().addRule(testBed.unitId, testBed.subUnitId, params);
+ testBed.getConditionalFormatService().composeStyle(testBed.unitId, testBed.subUnitId, 1, 1);
+ const dispose = testBed.getConditionalFormatService().ruleComputeStatus$.subscribe(() => {
+ dispose.unsubscribe();
+ const result = testBed.getConditionalFormatService().composeStyle(testBed.unitId, testBed.subUnitId, 1, 0);
+ expect(result).toEqual({ style: { bg: { rgb: '#2AEAEA' } } });
+ });
+ });
+ });
+ describe('Test rank', () => {
+ it('is bottom 2', () => {
+ const params: IConditionFormatRule<IRankHighlightCell> = {
+ ranges: [{ startRow: 0, startColumn: 0, endRow: 4, endColumn: 4 }],
+ cfId: testBed.getConditionalFormatRuleModel().createCfId(testBed.unitId, testBed.subUnitId),
+ stopIfTrue: false,
+ rule: {
+ style: { bg: { rgb: '#2AEAEA' } },
+ type: CFRuleType.highlightCell,
+ subType: CFSubRuleType.rank,
+ isBottom: true,
+ isPercent: false,
+ value: 2,
+ },
+ };
+ testBed.getConditionalFormatRuleModel().addRule(testBed.unitId, testBed.subUnitId, params);
+ testBed.getConditionalFormatService().composeStyle(testBed.unitId, testBed.subUnitId, 1, 0);
+ const dispose = testBed.getConditionalFormatService().ruleComputeStatus$.subscribe(() => {
+ dispose.unsubscribe();
+ const result = testBed.getConditionalFormatService().composeStyle(testBed.unitId, testBed.subUnitId, 1, 0);
+ expect(result).toEqual({ style: { bg: { rgb: '#2AEAEA' } } });
+ });
+ });
+ it('is bottom 6', () => {
+ const params: IConditionFormatRule<IRankHighlightCell> = {
+ ranges: [{ startRow: 0, startColumn: 0, endRow: 4, endColumn: 4 }],
+ cfId: testBed.getConditionalFormatRuleModel().createCfId(testBed.unitId, testBed.subUnitId),
+ stopIfTrue: false,
+ rule: {
+ style: { bg: { rgb: '#2AEAEA' } },
+ type: CFRuleType.highlightCell,
+ subType: CFSubRuleType.rank,
+ isBottom: true,
+ isPercent: false,
+ value: 6,
+ },
+ };
+ testBed.getConditionalFormatRuleModel().addRule(testBed.unitId, testBed.subUnitId, params);
+ testBed.getConditionalFormatService().composeStyle(testBed.unitId, testBed.subUnitId, 1, 1);
+ const dispose = testBed.getConditionalFormatService().ruleComputeStatus$.subscribe(() => {
+ dispose.unsubscribe();
+ const result = testBed.getConditionalFormatService().composeStyle(testBed.unitId, testBed.subUnitId, 1, 1);
+ expect(result).toEqual({ style: { bg: { rgb: '#2AEAEA' } } });
+ });
+ });
+ });
+ // describe('Test timePeriod', () => {
+ // // wait
+ // });
+ describe('Test dataBar', () => {
+ it('dataBar', () => {
+ const params: IConditionFormatRule<IDataBar> = {
+ ranges: [{ startRow: 0, startColumn: 0, endRow: 5, endColumn: 6 }],
+ cfId: testBed.getConditionalFormatRuleModel().createCfId(testBed.unitId, testBed.subUnitId),
+ stopIfTrue: false,
+ rule: {
+ type: CFRuleType.dataBar,
+ config: {
+ min: { value: 2, type: CFValueType.num },
+ max: { value: 5, type: CFValueType.num },
+ isGradient: true,
+ positiveColor: '#abd91a',
+ nativeColor: '#ffbe38',
+ },
+ },
+
+ };
+ testBed.getConditionalFormatRuleModel().addRule(testBed.unitId, testBed.subUnitId, params);
+ testBed.getConditionalFormatService().composeStyle(testBed.unitId, testBed.subUnitId, 1, 0);
+ const dispose = testBed.getConditionalFormatService().ruleComputeStatus$.subscribe(() => {
+ dispose.unsubscribe();
+ const one = testBed.getConditionalFormatService().composeStyle(testBed.unitId, testBed.subUnitId, 1, 0);
+ const two = testBed.getConditionalFormatService().composeStyle(testBed.unitId, testBed.subUnitId, 1, 1);
+ const three = testBed.getConditionalFormatService().composeStyle(testBed.unitId, testBed.subUnitId, 1, 2);
+ const four = testBed.getConditionalFormatService().composeStyle(testBed.unitId, testBed.subUnitId, 1, 3);
+ const five = testBed.getConditionalFormatService().composeStyle(testBed.unitId, testBed.subUnitId, 1, 4);
+ expect(one).toEqual(EMPTY_STYLE);
+ expect(two).toEqual({
+ dataBar: {
+ color: '#abd91a',
+ startPoint: 0,
+ value: 0,
+ isGradient: true,
+ },
+ });
+ expect(three).toEqual({
+ dataBar: {
+ color: '#abd91a',
+ startPoint: 0,
+ value: 33.333333333333336,
+ isGradient: true,
+ },
+ });
+
+ expect(four).toEqual({
+ dataBar: {
+ color: '#abd91a',
+ startPoint: 0,
+ value: 66.66666666666667,
+ isGradient: true,
+ },
+ });
+ expect(five).toEqual({
+ dataBar: {
+ color: '#abd91a',
+ startPoint: 0,
+ value: 100,
+ isGradient: true,
+ },
+ });
+ });
+ });
+ });
+ describe('Test colorScale', () => {
+ it('colorScale', () => {
+ const params: IConditionFormatRule<IColorScale> = {
+ ranges: [{ startRow: 0, startColumn: 0, endRow: 5, endColumn: 6 }],
+ cfId: testBed.getConditionalFormatRuleModel().createCfId(testBed.unitId, testBed.subUnitId),
+ stopIfTrue: false,
+ rule: {
+ type: CFRuleType.colorScale,
+ config: [{
+ index: 0,
+ color: '#d0d9fb',
+ value: {
+ type: CFValueType.min,
+ },
+ },
+ {
+ index: 1,
+ color: '#2e55ef',
+ value: {
+ type: CFValueType.max,
+ },
+ }],
+ },
+
+ };
+ testBed.getConditionalFormatRuleModel().addRule(testBed.unitId, testBed.subUnitId, params);
+ testBed.getConditionalFormatService().composeStyle(testBed.unitId, testBed.subUnitId, 1, 0);
+ const dispose = testBed.getConditionalFormatService().ruleComputeStatus$.subscribe(() => {
+ dispose.unsubscribe();
+ const one = testBed.getConditionalFormatService().composeStyle(testBed.unitId, testBed.subUnitId, 1, 0);
+ const two = testBed.getConditionalFormatService().composeStyle(testBed.unitId, testBed.subUnitId, 1, 1);
+ const three = testBed.getConditionalFormatService().composeStyle(testBed.unitId, testBed.subUnitId, 1, 2);
+ const four = testBed.getConditionalFormatService().composeStyle(testBed.unitId, testBed.subUnitId, 1, 3);
+ const five = testBed.getConditionalFormatService().composeStyle(testBed.unitId, testBed.subUnitId, 1, 4);
+ expect(one).toEqual({
+ style: {
+ bg: {
+ rgb: 'rgb(208,217,251)',
+ },
+ },
+ });
+ expect(two).toEqual({
+ style: {
+ bg: {
+ rgb: 'rgb(181,195,249)',
+ },
+ },
+ });
+ expect(three).toEqual({
+ style: {
+ bg: {
+ rgb: 'rgb(154,173,247)',
+ },
+ },
+ });
+ expect(four).toEqual({
+ style: {
+ bg: {
+ rgb: 'rgb(127,151,245)',
+ },
+ },
+ });
+ expect(five).toEqual({
+ style: {
+ bg: {
+ rgb: 'rgb(100,129,243)',
+ },
+ },
+ });
+ });
+ });
+ it('Need to filter if the set value is wrong', () => {
+ const params: IConditionFormatRule<IColorScale> = {
+ ranges: [{ startRow: 0, startColumn: 0, endRow: 5, endColumn: 6 }],
+ cfId: testBed.getConditionalFormatRuleModel().createCfId(testBed.unitId, testBed.subUnitId),
+ stopIfTrue: false,
+ rule: {
+ type: CFRuleType.colorScale,
+ config: [{
+ index: 0,
+ color: '#d0d9fb',
+ value: {
+ type: CFValueType.num,
+ value: 1,
+ },
+ },
+ {
+ index: 1,
+ color: '#2e55ef',
+ value: {
+ type: CFValueType.num,
+ value: -5, // this wrong value is filter
+ },
+ },
+ {
+ index: 2,
+ color: 'rgb(231, 37, 143)',
+ value: {
+ type: CFValueType.num,
+ value: 3,
+ },
+ },
+ ],
+ },
+ };
+ /**
+ * the same as
+ [{
+ index: 0,
+ color: '#d0d9fb',
+ value: {
+ type: CFValueType.num,
+ value: 1,
+ },
+ },
+ {
+ index: 2,
+ color: 'rgb(231, 37, 143)',
+ value: {
+ type: CFValueType.num,
+ value: 3,
+ },
+ },
+ ]
+ */
+ testBed.getConditionalFormatRuleModel().addRule(testBed.unitId, testBed.subUnitId, params);
+ testBed.getConditionalFormatService().composeStyle(testBed.unitId, testBed.subUnitId, 1, 0);
+ const dispose = testBed.getConditionalFormatService().ruleComputeStatus$.subscribe(() => {
+ dispose.unsubscribe();
+ const one = testBed.getConditionalFormatService().composeStyle(testBed.unitId, testBed.subUnitId, 1, 0); // 1
+ const two = testBed.getConditionalFormatService().composeStyle(testBed.unitId, testBed.subUnitId, 1, 1); // 2
+ const three = testBed.getConditionalFormatService().composeStyle(testBed.unitId, testBed.subUnitId, 1, 2);// 3
+ const four = testBed.getConditionalFormatService().composeStyle(testBed.unitId, testBed.subUnitId, 1, 3); // 4
+ const five = testBed.getConditionalFormatService().composeStyle(testBed.unitId, testBed.subUnitId, 1, 6); // is same as 3
+ expect(one).toEqual({
+ style: {
+ bg: {
+ rgb: 'rgb(208,217,251)',
+ },
+ },
+ });
+ expect(two).toEqual({
+ style: {
+ bg: {
+ rgb: 'rgb(220,127,197)',
+ },
+ },
+ });
+ expect(three).toEqual({
+ style: {
+ bg: {
+ rgb: 'rgb(231,37,143)',
+ },
+ },
+ });
+ expect(four).toEqual({
+ style: {
+ bg: {
+ rgb: 'rgb(231,37,143)',
+ },
+ },
+ });
+ expect(five).toEqual({
+ style: {
+ bg: {
+ rgb: 'rgb(231,37,143)',
+ },
+ },
+ });
+ });
+ });
+ });
+ });
+});
diff --git a/packages/sheets-conditional-format/src/services/__test__/test.util.ts b/packages/sheets-conditional-format/src/services/__test__/test.util.ts
new file mode 100644
index 0000000000..e2b960b81a
--- /dev/null
+++ b/packages/sheets-conditional-format/src/services/__test__/test.util.ts
@@ -0,0 +1,122 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import type { IWorkbookData } from '@univerjs/core';
+import { ICommandService, IUniverInstanceService, LocaleType, Plugin, PluginType, Univer } from '@univerjs/core';
+import {
+ SheetInterceptorService,
+} from '@univerjs/sheets';
+import { IActiveDirtyManagerService } from '@univerjs/sheets-formula';
+
+import type { Dependency } from '@wendellhu/redi';
+import { Inject, Injector } from '@wendellhu/redi';
+import { ConditionalFormatService } from '../conditional-format.service';
+import { ConditionalFormatFormulaService } from '../conditional-format-formula.service';
+import { SheetsConditionalFormatPlugin } from '../../plugin';
+import { ConditionalFormatRuleModel } from '../../models/conditional-format-rule-model';
+import { ConditionalFormatViewModel } from '../../models/conditional-format-view-model';
+
+const TEST_WORKBOOK_DATA_DEMO: () => IWorkbookData = () => ({
+ id: 'test',
+ appVersion: '3.0.0-alpha',
+ sheets: {
+ sheet1: {
+ id: 'sheet1',
+ cellData: {
+ 0: { 0: { v: 1, t: 2 }, 1: { v: 2, t: 2 }, 2: { v: 3, t: 2 }, 3: { v: 4, t: 2 }, 4: { v: 5, t: 2 }, 5: { v: 6, t: 2 }, 6: { v: 7, t: 2 } },
+ 1: { 0: { v: 1, t: 2 }, 1: { v: 2, t: 2 }, 2: { v: 3, t: 2 }, 3: { v: 4, t: 2 }, 4: { v: 5, t: 2 }, 5: { v: 6, t: 2 }, 6: { v: 7, t: 2 } },
+ 2: { 0: { v: 1, t: 2 }, 1: { v: 2, t: 2 }, 2: { v: 3, t: 2 }, 3: { v: 4, t: 2 }, 4: { v: 5, t: 2 }, 5: { v: 6, t: 2 }, 6: { v: 7, t: 2 } },
+ 3: { 0: { v: 1, t: 2 }, 1: { v: 2, t: 2 }, 2: { v: 3, t: 2 }, 3: { v: 4, t: 2 }, 4: { v: 5, t: 2 }, 5: { v: 6, t: 2 }, 6: { v: 7, t: 2 } },
+ 4: { 0: { v: 1, t: 2 }, 1: { v: 2, t: 2 }, 2: { v: 3, t: 2 }, 3: { v: 4, t: 2 }, 4: { v: 5, t: 2 }, 5: { v: 6, t: 2 }, 6: { v: 7, t: 2 } },
+ 5: { 0: { v: 1, t: 2 }, 1: { v: 2, t: 2 }, 2: { v: 3, t: 2 }, 3: { v: 4, t: 2 }, 4: { v: 5, t: 2 }, 5: { v: 6, t: 2 }, 6: { v: 7, t: 2 } },
+ },
+
+ },
+ },
+ locale: LocaleType.ZH_CN,
+ name: '',
+ sheetOrder: [],
+ styles: {},
+ resources: [
+ {
+ name: 'SHEET_NUMFMT_PLUGIN',
+ data: '{"model":{},"refModel":[]}',
+ },
+ {
+ name: 'SHEET_CONDITION_FORMAT_PLUGIN',
+ data: '{"sheet1":[{"cfId":"1","ranges":[{"startRow":0,"startColumn":0,"endRow":5,"endColumn":6,"startAbsoluteRefType":0,"endAbsoluteRefType":0,"rangeType":0}],"rule":{"config":[{"color":"#ff0000","value":{"type":"min","value":10},"index":0},{"color":"#0000ff","value":{"type":"max","value":90},"index":1}],"type":"colorScale"},"stopIfTrue":false}]}',
+ },
+ ],
+});
+export const createTestBed = (dependencies?: Dependency[]) => {
+ const univer = new Univer();
+ const injector = univer.__getInjector();
+ const get = injector.get.bind(injector);
+
+ class TestPlugin extends Plugin {
+ static override type = PluginType.Sheet;
+
+ constructor(
+ _config: undefined,
+ @Inject(Injector) override readonly _injector: Injector
+ ) {
+ super('test-plugin');
+ }
+
+ override onStarting(injector: Injector): void {
+ injector.add([SheetInterceptorService]);
+ dependencies?.forEach((d) => injector.add(d));
+ }
+
+ override onReady(): void {
+ this._injector.add([ConditionalFormatService]);
+ this._injector.add([ConditionalFormatFormulaService]);
+ this._injector.add([ConditionalFormatRuleModel]);
+ this._injector.add([ConditionalFormatViewModel]);
+ this._injector.add([IActiveDirtyManagerService, { useFactory: () => ({ register: () => {} } as any) }]);
+ this._injector.get(ConditionalFormatService);
+ }
+ }
+
+ univer.registerPlugin(TestPlugin);
+
+ const workbookJson = TEST_WORKBOOK_DATA_DEMO();
+ const workbook = univer.createUniverSheet(workbookJson);
+
+ const univerInstanceService = injector.get(IUniverInstanceService);
+ const commandService = injector.get(ICommandService);
+ [...SheetsConditionalFormatPlugin.commandList, ...SheetsConditionalFormatPlugin.mutationList].forEach((commandInfo) => {
+ commandService.registerCommand(commandInfo);
+ });
+ const unitId = workbookJson.id;
+ const subUnitId = workbookJson.sheets.sheet1.id!;
+ univerInstanceService.focusUniverInstance('test');
+ univerInstanceService.setCurrentUniverSheetInstance(subUnitId);
+ const getConditionalFormatRuleModel = () => injector.get(ConditionalFormatRuleModel);
+ const getConditionalFormatViewModel = () => injector.get(ConditionalFormatViewModel);
+ const getConditionalFormatService = () => injector.get(ConditionalFormatService);
+ return {
+ univer,
+ get,
+ workbook,
+ unitId,
+ subUnitId,
+ commandService,
+ getConditionalFormatRuleModel,
+ getConditionalFormatViewModel,
+ getConditionalFormatService,
+ };
+};
diff --git a/packages/sheets-conditional-format/src/services/calculate-unit/color-scale.ts b/packages/sheets-conditional-format/src/services/calculate-unit/color-scale.ts
new file mode 100644
index 0000000000..d74b41458c
--- /dev/null
+++ b/packages/sheets-conditional-format/src/services/calculate-unit/color-scale.ts
@@ -0,0 +1,88 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { CellValueType, ColorKit, ObjectMatrix, Range } from '@univerjs/core';
+import { isObject } from '@univerjs/engine-render';
+import { CFRuleType } from '../../base/const';
+import type { IColorScale, IConditionFormatRule } from '../../models/type';
+import { ConditionalFormatFormulaService, FormulaResultStatus } from '../conditional-format-formula.service';
+import { getColorScaleFromValue, getValueByType, isNullable } from './utils';
+import type { ICalculateUnit } from './type';
+
+const emptyStyle = '';
+export const colorScaleCellCalculateUnit: ICalculateUnit = {
+ type: CFRuleType.colorScale,
+ handle: async (rule: IConditionFormatRule, context) => {
+ const ruleConfig = rule.rule as IColorScale;
+ const conditionalFormatFormulaService = context.accessor.get(ConditionalFormatFormulaService);
+ const { worksheet } = context;
+ const matrix = new ObjectMatrix< number>();
+ rule.ranges.forEach((range) => {
+ Range.foreach(range, (row, col) => {
+ const cell = worksheet?.getCellRaw(row, col);
+ const v = cell && cell.v;
+ if (!isNullable(v) && cell?.t === CellValueType.NUMBER) {
+ const _value = Number(v);
+ !Number.isNaN(_value) && matrix.setValue(row, col, _value);
+ }
+ });
+ });
+
+ const computeResult = new ObjectMatrix< string >();
+ rule.ranges.forEach((range) => {
+ Range.foreach(range, (row, col) => {
+ computeResult.setValue(row, col, emptyStyle);
+ });
+ });
+
+ const _colorList = [...ruleConfig.config].sort((a, b) => a.index - b.index).map((config) => {
+ return {
+ value: getValueByType(config.value, matrix, { ...context, cfId: rule.cfId }), color: new ColorKit(config.color),
+ };
+ });
+ // If the formula triggers the calculation, wait for the result,
+ // and use the previous style cache until the result comes out
+ const isFormulaWithoutSuccess = _colorList.some((item) => isObject(item.value) ? item.value.status !== FormulaResultStatus.SUCCESS : false);
+ if (isFormulaWithoutSuccess) {
+ return conditionalFormatFormulaService.getCache(context.unitId, context.subUnitId, rule.cfId) ?? computeResult;
+ }
+
+ const colorList = _colorList.map((item) => {
+ return { ...item, value: isObject(item.value) ? Number(item.value.result) ?? 0 : item.value ?? 0 };
+ }).reduce((res, cur) => {
+ const pre = res[res.length - 1];
+ if (pre && cur.value <= pre.value) {
+ return res;
+ }
+ res.push(cur);
+ return res;
+ }, [] as {
+ value: number;
+ color: ColorKit;
+ }[]);
+
+ if (colorList.length <= 1) {
+ return computeResult;
+ }
+
+ matrix.forValue((row, col, value) => {
+ const color = getColorScaleFromValue(colorList, value);
+ color && computeResult.setValue(row, col, color);
+ });
+ return computeResult;
+ },
+
+};
diff --git a/packages/sheets-conditional-format/src/services/calculate-unit/data-bar.ts b/packages/sheets-conditional-format/src/services/calculate-unit/data-bar.ts
new file mode 100644
index 0000000000..20be96c04f
--- /dev/null
+++ b/packages/sheets-conditional-format/src/services/calculate-unit/data-bar.ts
@@ -0,0 +1,122 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { CellValueType, ObjectMatrix, Range } from '@univerjs/core';
+import { CFRuleType } from '../../base/const';
+import type { IDataBarRenderParams } from '../../render/type';
+import type { IConditionFormatRule, IDataBar } from '../../models/type';
+import { ConditionalFormatFormulaService, FormulaResultStatus } from '../conditional-format-formula.service';
+import { getValueByType, isNullable } from './utils';
+import type { ICalculateUnit } from './type';
+import { EMPTY_STYLE } from './type';
+
+export const dataBarCellCalculateUnit: ICalculateUnit = {
+ type: CFRuleType.dataBar,
+ handle: async (rule: IConditionFormatRule, context) => {
+ const ruleConfig = rule.rule as IDataBar;
+ const conditionalFormatFormulaService = context.accessor.get(ConditionalFormatFormulaService);
+
+ const { worksheet } = context;
+ const matrix = new ObjectMatrix< number>();
+
+ rule.ranges.forEach((range) => {
+ Range.foreach(range, (row, col) => {
+ const cell = worksheet?.getCellRaw(row, col);
+ const v = cell && cell.v;
+ if (!isNullable(v) && cell?.t === CellValueType.NUMBER) {
+ const _value = Number(v);
+ !Number.isNaN(_value) && matrix.setValue(row, col, _value);
+ }
+ });
+ });
+
+ const computeResult = new ObjectMatrix<IDataBarRenderParams >();
+ rule.ranges.forEach((range) => {
+ Range.foreach(range, (row, col) => {
+ computeResult.setValue(row, col, EMPTY_STYLE as IDataBarRenderParams);
+ });
+ });
+
+ const _min = getValueByType(ruleConfig.config.min, matrix, { ...context, cfId: rule.cfId });
+ const _max = getValueByType(ruleConfig.config.max, matrix, { ...context, cfId: rule.cfId });
+ let min = 0;
+ let max = 0;
+
+ // If the formula triggers the calculation, wait for the result,
+ // and use the previous style cache until the result comes out。
+ if (_min.status === FormulaResultStatus.WAIT) {
+ return conditionalFormatFormulaService.getCache(context.unitId, context.subUnitId, rule.cfId) || computeResult;
+ } else if (_min.status === FormulaResultStatus.SUCCESS) {
+ const v = Number(_min.result);
+ min = Number.isNaN(v) ? 0 : v;
+ } else {
+ return computeResult;
+ }
+ if (_max.status === FormulaResultStatus.WAIT) {
+ return conditionalFormatFormulaService.getCache(context.unitId, context.subUnitId, rule.cfId) || computeResult;
+ } else if (_max.status === FormulaResultStatus.SUCCESS) {
+ const v = Number(_max.result);
+ max = Number.isNaN(v) ? 0 : v;
+ } else {
+ return computeResult;
+ }
+
+ const isGradient = ruleConfig.config.isGradient;
+
+ const getSafeValue = (v: number) => Math.max(Math.min(100, v), 0);
+
+ if (min === max || max < min) {
+ // do nothing,don't know how it work.
+ } else if (min < 0 && max <= 0) {
+ const length = max - min;
+ const startPoint = 100;
+ matrix.forValue((row, col, value) => {
+ if (value > max) {
+ return;
+ }
+ const v = getSafeValue((max - value) / length * 100);
+ computeResult.setValue(row, col, { color: ruleConfig.config.nativeColor, startPoint, value: -v, isGradient });
+ });
+ } else if (min < 0 && max > 0) {
+ const length = Math.abs(max) + Math.abs(min);
+ const startPoint = Math.abs(min) / length * 100;
+ matrix.forValue((row, col, value) => {
+ if (!value) {
+ return;
+ }
+ if (value > 0) {
+ const v = getSafeValue(Math.min(value / max, 1) * 100);
+ computeResult.setValue(row, col, { color: ruleConfig.config.positiveColor, startPoint, value: v, isGradient });
+ } else {
+ const v = getSafeValue(Math.min(Math.abs(value) / Math.abs(min), 1) * 100);
+ computeResult.setValue(row, col, { color: ruleConfig.config.nativeColor, startPoint, value: -v, isGradient });
+ }
+ });
+ } else if (min >= 0 && max > 0) {
+ const length = max - min;
+ const startPoint = 0;
+ matrix.forValue((row, col, value) => {
+ if (value < min) {
+ return;
+ }
+ const v = getSafeValue((1 - (max - value) / length) * 100);
+ computeResult.setValue(row, col, { color: ruleConfig.config.positiveColor, startPoint, value: v, isGradient });
+ });
+ }
+ return computeResult;
+ },
+
+};
diff --git a/packages/sheets-conditional-format/src/services/calculate-unit/highlight-cell.ts b/packages/sheets-conditional-format/src/services/calculate-unit/highlight-cell.ts
new file mode 100644
index 0000000000..1c3f6ce0eb
--- /dev/null
+++ b/packages/sheets-conditional-format/src/services/calculate-unit/highlight-cell.ts
@@ -0,0 +1,352 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import type { IStyleBase } from '@univerjs/core';
+import { CellValueType, ObjectMatrix, Range, Rectangle, Tools } from '@univerjs/core';
+import dayjs from 'dayjs';
+import { deserializeRangeWithSheet, generateStringWithSequence, LexerTreeBuilder, sequenceNodeType, serializeRange } from '@univerjs/engine-formula';
+import { CFNumberOperator, CFRuleType, CFSubRuleType, CFTextOperator, CFTimePeriodOperator } from '../../base/const';
+import type { IAverageHighlightCell, IConditionFormatRule, IFormulaHighlightCell, IHighlightCell, INumberHighlightCell, IRankHighlightCell, ITextHighlightCell, ITimePeriodHighlightCell } from '../../models/type';
+import { ConditionalFormatFormulaService, FormulaResultStatus } from '../conditional-format-formula.service';
+import { compareWithNumber, getCellValue, isFloatsEqual, isNullable, serialTimeToTimestamp } from './utils';
+import type { ICalculateUnit } from './type';
+import { EMPTY_STYLE } from './type';
+
+export const highlightCellCalculateUnit: ICalculateUnit = {
+ type: CFRuleType.highlightCell,
+ handle: async (rule: IConditionFormatRule, context) => {
+ const ruleConfig = rule.rule as IHighlightCell;
+ const { worksheet } = context;
+
+ const getCache = () => {
+ switch (ruleConfig.subType) {
+ case CFSubRuleType.average:{
+ let sum = 0;
+ let count = 0;
+ rule.ranges.forEach((range) => {
+ Range.foreach(range, (row, col) => {
+ const cell = worksheet?.getCellRaw(row, col);
+ const v = getCellValue(cell || undefined);
+ if (cell && cell.t === CellValueType.NUMBER && v !== undefined) {
+ sum += Number(v) || 0;
+ count++;
+ }
+ });
+ });
+ return { average: sum / count };
+ }
+ case CFSubRuleType.uniqueValues:
+ case CFSubRuleType.duplicateValues:{
+ const cacheMap: Map<any, number> = new Map();
+ rule.ranges.forEach((range) => {
+ Range.foreach(range, (row, col) => {
+ const cell = worksheet?.getCellRaw(row, col);
+ const v = getCellValue(cell || undefined);
+ if (v !== undefined) {
+ const cache = cacheMap.get(v);
+ if (cache) {
+ cacheMap.set(v, cache + 1);
+ } else {
+ cacheMap.set(v, 1);
+ }
+ }
+ });
+ });
+ return { count: cacheMap };
+ }
+ case CFSubRuleType.rank:{
+ const allValue: number[] = [];
+ rule.ranges.forEach((range) => {
+ Range.foreach(range, (row, col) => {
+ const cell = worksheet?.getCellRaw(row, col);
+ const v = getCellValue(cell || undefined);
+ if (cell && cell.t === CellValueType.NUMBER && v !== undefined) {
+ allValue.push(Number(v) || 0);
+ }
+ });
+ });
+ allValue.sort((a, b) => b - a);
+ const configRule = rule.rule as IRankHighlightCell;
+ const targetIndex = configRule.isPercent
+ ? Math.round(Math.max(Math.min(configRule.value, 100), 0) / 100 * allValue.length)
+ : Math.round(Math.max(Math.min(configRule.value, allValue.length), 0));
+ if (configRule.isBottom) {
+ return { rank: allValue[allValue.length - targetIndex] };
+ } else {
+ return { rank: allValue[Math.max(targetIndex - 1, 0)] };
+ }
+ }
+ case CFSubRuleType.formula:{
+ const subRuleConfig = ruleConfig as IFormulaHighlightCell;
+ const lexerTreeBuilder = context.accessor.get(LexerTreeBuilder);
+ const formulaString = subRuleConfig.value;
+ const sequenceNodes = lexerTreeBuilder.sequenceNodesBuilder(formulaString);
+ if (!sequenceNodes) {
+ return {
+ sequenceNodes: null,
+ };
+ } else {
+ return { sequenceNodes };
+ }
+ }
+ }
+ };
+ const cache = getCache();
+ const check = (row: number, col: number) => {
+ const cellValue = worksheet?.getCellRaw(row, col);
+ switch (ruleConfig.subType) {
+ case CFSubRuleType.number:{
+ const v = cellValue && Number(cellValue.v);
+ if (isNullable(v) || Number.isNaN(v) || cellValue?.t !== CellValueType.NUMBER) {
+ return false;
+ }
+ const subRuleConfig = ruleConfig as INumberHighlightCell;
+ return compareWithNumber({ operator: subRuleConfig.operator, value: subRuleConfig.value || 0 }, v || 0);
+ }
+ case CFSubRuleType.text:{
+ const subRuleConfig = ruleConfig as ITextHighlightCell;
+ const value = getCellValue(cellValue!);
+ const v = value === null ? '' : String(value);
+ const condition = subRuleConfig.value || '';
+ switch (subRuleConfig.operator) {
+ case CFTextOperator.beginsWith:{
+ return v.startsWith(condition);
+ }
+ case CFTextOperator.containsBlanks:{
+ return /^\s*$/.test(v);
+ }
+ case CFTextOperator.notContainsBlanks:{
+ return !/^\s*$/.test(v);
+ }
+ case CFTextOperator.containsErrors:{
+ // wait do do.
+ return false;
+ }
+ case CFTextOperator.notContainsErrors:{
+ return false;
+ }
+ case CFTextOperator.containsText:{
+ return v.indexOf(condition) > -1;
+ }
+ case CFTextOperator.notContainsText:{
+ return v.indexOf(condition) === -1;
+ }
+ case CFTextOperator.endsWith:{
+ return v.endsWith(condition);
+ }
+ case CFTextOperator.equal:{
+ return v === condition;
+ }
+ case CFTextOperator.notEqual:{
+ return v !== condition;
+ }
+ default:{
+ return false;
+ }
+ }
+ }
+ case CFSubRuleType.timePeriod:{
+ const value = getCellValue(cellValue!);
+ if (isNullable(value) || Number.isNaN(Number(value)) || cellValue?.t !== CellValueType.NUMBER) {
+ return false;
+ }
+ const subRuleConfig = ruleConfig as ITimePeriodHighlightCell;
+ const v = serialTimeToTimestamp(Number(value));
+ switch (subRuleConfig.operator) {
+ case CFTimePeriodOperator.last7Days:{
+ const start = dayjs().subtract(7, 'day').valueOf();
+ const end = dayjs().valueOf();
+ return v >= start && v <= end;
+ }
+ case CFTimePeriodOperator.lastMonth:{
+ const preMonth = dayjs().subtract(1, 'month');
+ const start = preMonth.startOf('month').valueOf();
+ const end = preMonth.endOf('month').valueOf();
+ return v >= start && v <= end;
+ }
+ case CFTimePeriodOperator.lastWeek:{
+ const start = dayjs().subtract(1, 'week').valueOf();
+ const end = dayjs().valueOf();
+ return v >= start && v <= end;
+ }
+ case CFTimePeriodOperator.nextMonth:{
+ const nextMonth = dayjs().add(1, 'month');
+ const start = nextMonth.startOf('month').valueOf();
+ const end = nextMonth.endOf('month').valueOf();
+ return v >= start && v <= end;
+ }
+ case CFTimePeriodOperator.nextWeek:{
+ const week = dayjs();
+ const nextWeek = week.add(1, 'week');
+ const start = nextWeek.startOf('week').valueOf();
+ const end = nextWeek.endOf('week').valueOf();
+ return v >= start && v <= end;
+ }
+ case CFTimePeriodOperator.thisMonth:{
+ const start = dayjs().startOf('month').valueOf();
+ const end = dayjs().endOf('month').valueOf();
+ return v >= start && v <= end;
+ }
+ case CFTimePeriodOperator.thisWeek:{
+ const start = dayjs().startOf('week').valueOf();
+ const end = dayjs().endOf('week').valueOf();
+ return v >= start && v <= end;
+ }
+ case CFTimePeriodOperator.tomorrow:{
+ const start = dayjs().startOf('day').add(1, 'day').valueOf();
+ const end = dayjs().endOf('day').add(1, 'day').valueOf();
+ return v >= start && v <= end;
+ }
+ case CFTimePeriodOperator.yesterday:{
+ const start = dayjs().startOf('day').subtract(1, 'day').valueOf();
+ const end = dayjs().endOf('day').subtract(1, 'day').valueOf();
+ return v >= start && v <= end;
+ }
+ case CFTimePeriodOperator.today:{
+ const start = dayjs().startOf('day').valueOf();
+ const end = dayjs().endOf('day').valueOf();
+ return v >= start && v <= end;
+ }
+ default:{
+ return false;
+ }
+ }
+ }
+ case CFSubRuleType.average:{
+ const value = cellValue && cellValue.v;
+ const v = Number(value);
+ if (isNullable(value) || Number.isNaN(v) || cellValue?.t !== CellValueType.NUMBER) {
+ return false;
+ }
+ const subRuleConfig = ruleConfig as IAverageHighlightCell;
+ const average = cache?.average!;
+
+ switch (subRuleConfig.operator) {
+ case CFNumberOperator.greaterThan:{
+ return v > average;
+ }
+ case CFNumberOperator.greaterThanOrEqual:{
+ return v >= average;
+ }
+ case CFNumberOperator.lessThan:{
+ return v < average;
+ }
+ case CFNumberOperator.lessThanOrEqual:{
+ return v <= average;
+ }
+ case CFNumberOperator.equal:{
+ return isFloatsEqual(v, average);
+ }
+ case CFNumberOperator.notEqual:{
+ return !isFloatsEqual(v, average);
+ }
+ default:{
+ return false;
+ }
+ }
+ }
+ case CFSubRuleType.rank:{
+ const value = getCellValue(cellValue!);
+
+ const v = Number(value);
+
+ if (isNullable(value) || Number.isNaN(v) || cellValue?.t !== CellValueType.NUMBER) {
+ return false;
+ }
+
+ const targetValue = cache!.rank!;
+ const subRuleConfig = ruleConfig as IRankHighlightCell;
+ if (subRuleConfig.isBottom) {
+ return v <= targetValue;
+ } else {
+ return v >= targetValue;
+ }
+ }
+ case CFSubRuleType.uniqueValues:{
+ const value = getCellValue(cellValue!);
+
+ if (isNullable(value)) {
+ return false;
+ }
+ const uniqueCache = cache!.count!;
+ return uniqueCache.get(value) === 1;
+ }
+ case CFSubRuleType.duplicateValues:{
+ const value = getCellValue(cellValue!);
+
+ if (isNullable(value)) {
+ return false;
+ }
+ const uniqueCache = cache!.count!;
+ return uniqueCache.get(value) !== 1;
+ }
+ case CFSubRuleType.formula:{
+ if (!cache?.sequenceNodes) {
+ return false;
+ }
+ const { unitId, subUnitId } = context;
+ const conditionalFormatFormulaService = context.accessor.get(ConditionalFormatFormulaService);
+
+ const getRangeFromCell = (row: number, col: number) => ({ startRow: row, endRow: row, startColumn: col, endColumn: col });
+ const originRange = getRangeFromCell(rule.ranges[0].startRow, rule.ranges[0].startColumn);
+ const sequenceNodes = Tools.deepClone(cache.sequenceNodes);
+ const transformSequenceNodes = Array.isArray(sequenceNodes)
+ ? sequenceNodes.map((node) => {
+ if (typeof node === 'object' && node.nodeType === sequenceNodeType.REFERENCE) {
+ const gridRangeName = deserializeRangeWithSheet(node.token);
+ const relativeRange = Rectangle.getRelativeRange(gridRangeName.range, originRange);
+ const newRange = Rectangle.getPositionRange(relativeRange, getRangeFromCell(row, col), gridRangeName.range);
+ const newToken = serializeRange(newRange);
+ return {
+ ...node, token: newToken,
+ };
+ }
+ return node;
+ })
+ : sequenceNodes;
+ let formulaString = transformSequenceNodes && generateStringWithSequence(transformSequenceNodes);
+ if (formulaString) {
+ formulaString = `=${formulaString}`;
+ conditionalFormatFormulaService.registerFormula(unitId, subUnitId, rule.cfId, formulaString);
+ const formulaItem = conditionalFormatFormulaService.getFormulaResult(unitId, subUnitId, formulaString);
+ if (formulaItem && formulaItem.status === FormulaResultStatus.SUCCESS) {
+ return formulaItem.result === true;
+ } else {
+ // If the formula triggers the calculation, wait for the result,
+ // and use the previous style cache until the result comes out
+ const cache = conditionalFormatFormulaService.getCache(unitId, subUnitId, rule.cfId);
+ const style = cache?.getValue(row, col);
+ return style && style !== EMPTY_STYLE;
+ }
+ }
+ return false;
+ }
+ }
+ };
+ const computeResult = new ObjectMatrix<IStyleBase>();
+ rule.ranges.forEach((range) => {
+ Range.foreach(range, (row, col) => {
+ if (check(row, col)) {
+ computeResult.setValue(row, col, ruleConfig.style);
+ } else {
+ // Returns an empty property indicating that it has been processed.
+ computeResult.setValue(row, col, EMPTY_STYLE as IStyleBase);
+ }
+ });
+ });
+ return computeResult;
+ },
+};
diff --git a/packages/sheets-conditional-format/src/services/calculate-unit/icon-set.ts b/packages/sheets-conditional-format/src/services/calculate-unit/icon-set.ts
new file mode 100644
index 0000000000..94656302f5
--- /dev/null
+++ b/packages/sheets-conditional-format/src/services/calculate-unit/icon-set.ts
@@ -0,0 +1,107 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { CellValueType, ObjectMatrix, Range } from '@univerjs/core';
+import type { CFNumberOperator } from '../../base/const';
+import { CFRuleType } from '../../base/const';
+
+import type { IIconSetRenderParams } from '../../render/type';
+import type { IConditionFormatRule, IIconSet } from '../../models/type';
+import { ConditionalFormatFormulaService, FormulaResultStatus } from '../conditional-format-formula.service';
+import { compareWithNumber, getOppositeOperator, getValueByType, isNullable } from './utils';
+import type { ICalculateUnit } from './type';
+import { EMPTY_STYLE } from './type';
+
+export const iconSetCalculateUnit: ICalculateUnit = {
+ type: CFRuleType.iconSet,
+ handle: async (rule: IConditionFormatRule, context) => {
+ const ruleConfig = rule.rule as IIconSet;
+ const conditionalFormatFormulaService = context.accessor.get(ConditionalFormatFormulaService);
+
+ const { worksheet } = context;
+ const matrix = new ObjectMatrix<number>();
+
+ rule.ranges.forEach((range) => {
+ Range.foreach(range, (row, col) => {
+ const cell = worksheet?.getCellRaw(row, col);
+ const v = cell && cell.v;
+ if (!isNullable(v) && cell?.t === CellValueType.NUMBER) {
+ const _value = Number(v);
+ !Number.isNaN(_value) && matrix.setValue(row, col, _value);
+ }
+ });
+ });
+
+ const computeResult = new ObjectMatrix<IIconSetRenderParams >();
+ rule.ranges.forEach((range) => {
+ Range.foreach(range, (row, col) => {
+ computeResult.setValue(row, col, EMPTY_STYLE as IIconSetRenderParams);
+ });
+ });
+
+ const splitValueResult = ruleConfig.config.map((v) => getValueByType(v.value, matrix, { ...context, cfId: rule.cfId }));
+
+ const isFormulaWithoutSuccess = splitValueResult.some((item) => item.status !== FormulaResultStatus.SUCCESS);
+ if (isFormulaWithoutSuccess) {
+ return conditionalFormatFormulaService.getCache(context.unitId, context.subUnitId, rule.cfId) ?? computeResult;
+ }
+
+ const splitValue = splitValueResult.map((item, index) => ({
+ operator: ruleConfig.config[index].operator,
+ value: Number(item.result) || 0,
+ })).reduce((result, cur, index, list) => {
+ if (!index || index === list.length - 1) {
+ result.push(cur);
+ } else {
+ const pre = list[index - 1];
+ if (!compareWithNumber(pre, cur.value)) {
+ result.push(cur);
+ }
+ }
+ return result;
+ }, [] as { operator: CFNumberOperator;value: number }[]);
+
+ const isShowValue = ruleConfig.isShowValue === undefined ? true : !!ruleConfig.isShowValue;
+ matrix.forValue((row, col, value) => {
+ for (let index = 0; index < splitValue.length; index++) {
+ const item = splitValue[index];
+ const start = { ...item };
+ const end = { ...item };
+ const { iconId, iconType } = ruleConfig.config[index];
+ if (index === 0) {
+ if (compareWithNumber(item, value)) {
+ computeResult.setValue(row, col, { iconId, iconType, isShowValue });
+ return;
+ }
+ } else if (index === splitValue.length - 1) {
+ computeResult.setValue(row, col, { iconId, iconType, isShowValue });
+ return;
+ } else {
+ const pre = splitValue[index - 1];
+ end.operator = getOppositeOperator(pre.operator);
+ end.value = pre.value;
+ if (compareWithNumber(start, value) && compareWithNumber(end, value)) {
+ computeResult.setValue(row, col, { iconId, iconType, isShowValue });
+ return;
+ }
+ }
+ }
+ });
+
+ return computeResult;
+ },
+
+};
diff --git a/packages/sheets-conditional-format/src/services/calculate-unit/type.ts b/packages/sheets-conditional-format/src/services/calculate-unit/type.ts
new file mode 100644
index 0000000000..e56cb164c6
--- /dev/null
+++ b/packages/sheets-conditional-format/src/services/calculate-unit/type.ts
@@ -0,0 +1,35 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import type { IAccessor } from '@wendellhu/redi';
+import type { ObjectMatrix, Workbook, Worksheet } from '@univerjs/core';
+import type { CFRuleType } from '../../base/const';
+import type { IConditionFormatRule } from '../../models/type';
+
+export interface IContext {
+ accessor: IAccessor;
+ unitId: string;
+ subUnitId: string;
+ workbook: Workbook;
+ worksheet: Worksheet;
+};
+export interface ICalculateUnit<R = any> {
+ type: CFRuleType;
+ handle: (rule: IConditionFormatRule, context: IContext) => Promise<ObjectMatrix<R>>;
+}
+
+export const EMPTY_STYLE = {} as unknown;
+Object.freeze(EMPTY_STYLE);
diff --git a/packages/sheets-conditional-format/src/services/calculate-unit/utils.ts b/packages/sheets-conditional-format/src/services/calculate-unit/utils.ts
new file mode 100644
index 0000000000..b3c099e7da
--- /dev/null
+++ b/packages/sheets-conditional-format/src/services/calculate-unit/utils.ts
@@ -0,0 +1,289 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import type { ICellData } from '@univerjs/core';
+import { BooleanNumber, CellValueType, ColorKit, ObjectMatrix, Range } from '@univerjs/core';
+import { BooleanValue } from '@univerjs/engine-formula';
+import type { IConditionFormatRule, IValueConfig } from '../../models/type';
+import { CFNumberOperator, CFValueType } from '../../base/const';
+import { ConditionalFormatFormulaService, FormulaResultStatus } from '../conditional-format-formula.service';
+import { ConditionalFormatViewModel } from '../../models/conditional-format-view-model';
+import type { IContext } from './type';
+
+export function isFloatsEqual(a: number, b: number) {
+ return Math.abs(a - b) < Number.EPSILON;
+}
+export const isNullable = (v: any) => [undefined, null].includes(v);
+export const getCellValue = (cell?: ICellData) => {
+ if (!cell) {
+ return null;
+ }
+ if (cell.t === CellValueType.BOOLEAN) {
+ return cell.v === BooleanNumber.TRUE ? BooleanValue.TRUE : BooleanValue.FALSE;
+ }
+ const v = cell.v;
+ const dataStream = cell.p?.body?.dataStream.replace(/\r\n$/, '');
+ return !isNullable(v) ? v : !isNullable(dataStream) ? dataStream : null;
+};
+const DAY_SIZE = 86400;
+
+export function toYMD_1900(ord: number, leap1900 = true) {
+ if (leap1900 && ord >= 0) {
+ if (ord === 0) {
+ return [1900, 1, 0];
+ }
+ if (ord === 60) {
+ return [1900, 2, 29];
+ }
+ if (ord < 60) {
+ return [1900, (ord < 32 ? 1 : 2), ((ord - 1) % 31) + 1];
+ }
+ }
+ let l = ord + 68569 + 2415019;
+ const n = Math.floor((4 * l) / 146097);
+ l = l - Math.floor((146097 * n + 3) / 4);
+ const i = Math.floor((4000 * (l + 1)) / 1461001);
+ l = l - Math.floor((1461 * i) / 4) + 31;
+ const j = Math.floor((80 * l) / 2447);
+ const nDay = l - Math.floor((2447 * j) / 80);
+ l = Math.floor(j / 11);
+ const nMonth = j + 2 - (12 * l);
+ const nYear = 100 * (n - 49) + i + l;
+ return [nYear | 0, nMonth | 0, nDay | 0];
+}
+export const serialTimeToTimestamp = (value: number) => {
+ let date = (value | 0);
+ const t = DAY_SIZE * (value - date);
+ let time = Math.floor(t); // in seconds
+ // date "epsilon" correction
+ if ((t - time) > 0.9999) {
+ time += 1;
+ if (time === DAY_SIZE) {
+ time = 0;
+ date += 1;
+ }
+ }
+ // serial date/time to gregorian calendar
+ const x = (time < 0) ? DAY_SIZE + time : time;
+ const [y, m, d] = toYMD_1900(value, true);
+ const hh = Math.floor((x / 60) / 60) % 60;
+ const mm = Math.floor(x / 60) % 60;
+ const ss = Math.floor(x) % 60;
+ // return it as a native date object
+ const dt = new Date(0);
+ dt.setUTCFullYear(y, m - 1, d);
+ dt.setUTCHours(hh, mm, ss);
+ return dt.getTime();
+};
+export const getValueByType = (value: IValueConfig, matrix: ObjectMatrix< number>, context: IContext & { cfId: string }) => {
+ switch (value.type) {
+ case CFValueType.max:{
+ let max = 0;
+ matrix.forValue((row, col, value) => {
+ if (value > max) {
+ max = value;
+ }
+ });
+ return {
+ status: FormulaResultStatus.SUCCESS,
+ result: max,
+ };
+ }
+ case CFValueType.min:{
+ let min: number | undefined;
+ matrix.forValue((row, col, value) => {
+ if (min === undefined) {
+ min = value;
+ }
+ if (value < min!) {
+ min = value;
+ }
+ });
+ return {
+ status: FormulaResultStatus.SUCCESS,
+ result: min,
+ };
+ }
+ case CFValueType.percent:{
+ let max: number | undefined;
+ let min: number | undefined;
+ matrix.forValue((row, col, value) => {
+ if (max === undefined || min === undefined) {
+ max = value;
+ min = value;
+ }
+ if (value > max!) {
+ max = value;
+ }
+ if (value < min!) {
+ min = value;
+ }
+ });
+
+ const length = (max || 0) - (min || 0);
+ const v = Math.max(Math.min(Number(value.value) || 0, 100), 0);
+ return {
+ status: FormulaResultStatus.SUCCESS,
+ result: length * (v / 100) + (min || 0),
+ };
+ }
+ case CFValueType.percentile:{
+ const list = matrix.toNativeArray().sort((a, b) => a - b);
+ const v = Math.max(Math.min(Number(value.value) || 0, 100), 0);
+ const index = ((list.length - 1) * v) / 100;
+ const intIndex = Math.floor(index);
+ const decimalIndex = index - intIndex;
+ const result = list[intIndex] + (list[Math.min(intIndex + 1, list.length - 1)] - list[intIndex]) * decimalIndex;
+ return {
+ status: FormulaResultStatus.SUCCESS,
+ result,
+ };
+ }
+
+ case CFValueType.formula:{
+ const { accessor, unitId, subUnitId, cfId } = context;
+ const formulaText = String(value.value);
+ const conditionalFormatFormulaService = accessor.get(ConditionalFormatFormulaService);
+ conditionalFormatFormulaService.registerFormula(unitId, subUnitId, cfId, formulaText);
+ const result = conditionalFormatFormulaService.getFormulaResult(unitId, subUnitId, formulaText);
+ return result;
+ }
+ case CFValueType.num:{
+ const v = Number(value.value);
+ return {
+ status: FormulaResultStatus.SUCCESS,
+ result: Number.isNaN(v) ? 0 : v,
+ };
+ }
+ }
+};
+
+export const getCacheStyleMatrix = <S = any>(unitId: string, subUnitId: string, rule: IConditionFormatRule, context: IContext) => {
+ const { accessor } = context;
+ const conditionalFormatViewModel = accessor.get(ConditionalFormatViewModel);
+ const matrix = new ObjectMatrix<S>();
+ rule.ranges.forEach((range) => {
+ Range.foreach(range, (row, col) => {
+ const cellCfItem = conditionalFormatViewModel.getCellCf(unitId, subUnitId, row, col);
+ if (cellCfItem) {
+ const item = cellCfItem.cfList.find((item) => item.cfId === rule.cfId);
+ item?.ruleCache && matrix.setValue(row, col, item.ruleCache as any);
+ }
+ });
+ });
+ return matrix;
+};
+export const compareWithNumber = (config: { operator: CFNumberOperator;value: number | [number, number] }, v: number) => {
+ switch (config.operator) {
+ case CFNumberOperator.between:{
+ if (typeof config.value !== 'object' || !(config.value as unknown as Array<number>).length) {
+ return;
+ }
+ const start = Math.min(...config.value as [number, number]);
+ const end = Math.max(...config.value as [number, number]);
+ return v >= start && v <= end;
+ }
+ case CFNumberOperator.notBetween:{
+ if (typeof config.value !== 'object' || !(config.value as unknown as Array<number>).length) {
+ return;
+ }
+ const start = Math.min(...config.value as [number, number]);
+ const end = Math.max(...config.value as [number, number]);
+ return !(v >= start && v <= end);
+ }
+ case CFNumberOperator.equal:{
+ const condition = (config.value || 0) as number;
+ return isFloatsEqual(condition, v);
+ }
+ case CFNumberOperator.notEqual:{
+ const condition = (config.value || 0) as number;
+ return !isFloatsEqual(condition, v);
+ }
+ case CFNumberOperator.greaterThan:{
+ const condition = (config.value || 0) as number;
+ return v > condition;
+ }
+ case CFNumberOperator.greaterThanOrEqual:{
+ const condition = (config.value || 0) as number;
+ return v >= condition;
+ }
+ case CFNumberOperator.lessThan:{
+ const condition = (config.value || 0) as number;
+ return v < condition;
+ }
+ case CFNumberOperator.lessThanOrEqual:{
+ const condition = (config.value || 0) as number;
+ return v <= condition;
+ }
+ default:{
+ return false;
+ }
+ }
+};
+export const getOppositeOperator = (operator: CFNumberOperator) => {
+ switch (operator) {
+ case CFNumberOperator.greaterThan:{
+ return CFNumberOperator.lessThanOrEqual;
+ }
+ case CFNumberOperator.greaterThanOrEqual:{
+ return CFNumberOperator.lessThan;
+ }
+ case CFNumberOperator.lessThan:{
+ return CFNumberOperator.greaterThanOrEqual;
+ }
+ case CFNumberOperator.lessThanOrEqual:{
+ return CFNumberOperator.greaterThan;
+ }
+ }
+ return operator;
+};
+
+export const getColorScaleFromValue = (colorList: { color: ColorKit;value: number }[], value: number) => {
+ interface IRgbColor {
+ b: number; g: number;r: number;a?: number;
+ }
+ const prefixRgba = (rgb: IRgbColor): Required<IRgbColor> => {
+ if (rgb.a !== undefined) {
+ return rgb as Required<IRgbColor>;
+ } else {
+ return { ...rgb, a: 1 };
+ }
+ };
+ const index = colorList.findIndex((item) => item.value >= value);
+ const preIndex = index - 1;
+ if (index === 0) {
+ return colorList[0].color.toRgbString();
+ } else if (preIndex >= 0) {
+ const minItem = colorList[preIndex];
+ const maxItem = colorList[index];
+
+ if (minItem.color.isValid && maxItem.color.isValid) {
+ const minRgb = prefixRgba(minItem.color.toRgb());
+ const maxRgb = prefixRgba(maxItem.color.toRgb());
+ const length = maxItem.value - minItem.value;
+ const v = (value - minItem.value) / length;
+ const rgbResult = ['r', 'g', 'b', 'a'].reduce((obj, key) => {
+ const minV = minRgb[key as unknown as keyof IRgbColor];
+ obj[key as unknown as keyof IRgbColor] = (maxRgb[key as unknown as keyof IRgbColor] - minV) * v + minV;
+ return obj;
+ }, {} as IRgbColor);
+ const result = new ColorKit(rgbResult).toRgbString();
+ return result;
+ }
+ } else {
+ return colorList[colorList.length - 1].color.toRgbString();
+ }
+};
diff --git a/packages/sheets-conditional-format/src/services/conditional-format-formula.service.ts b/packages/sheets-conditional-format/src/services/conditional-format-formula.service.ts
new file mode 100644
index 0000000000..6452080501
--- /dev/null
+++ b/packages/sheets-conditional-format/src/services/conditional-format-formula.service.ts
@@ -0,0 +1,280 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import type { ICellData, Nullable, ObjectMatrix } from '@univerjs/core';
+import { Disposable, ICommandService, RefAlias, toDisposable, Tools } from '@univerjs/core';
+import { Inject, Injector } from '@wendellhu/redi';
+import type { IRemoveOtherFormulaMutationParams, ISetFormulaCalculationResultMutation, ISetOtherFormulaMutationParams } from '@univerjs/engine-formula';
+import { IActiveDirtyManagerService } from '@univerjs/sheets-formula';
+import { RemoveOtherFormulaMutation,
+ SetFormulaCalculationResultMutation,
+ SetOtherFormulaMutation } from '@univerjs/engine-formula';
+import { Subject } from 'rxjs';
+import { bufferTime, filter, map } from 'rxjs/operators';
+import type { IConditionalFormatFormulaMarkDirtyParams } from '../commands/mutations/formula-mark-dirty.mutation';
+import { ConditionalFormatFormulaMarkDirty } from '../commands/mutations/formula-mark-dirty.mutation';
+import { ConditionalFormatViewModel } from '../models/conditional-format-view-model';
+import { ConditionalFormatRuleModel } from '../models/conditional-format-rule-model';
+import { ConditionalFormatService } from './conditional-format.service';
+
+// eslint-disable-next-line ts/consistent-type-definitions
+type IFormulaItem = {
+ formulaText: string;cfId: string;result?: boolean | number | string;status: FormulaResultStatus;count: number;formulaId: string;
+};
+export enum FormulaResultStatus {
+ NOT_REGISTER = 1,
+ SUCCESS,
+ WAIT,
+ ERROR,
+}
+
+const getResultFromFormula = (formulaResult: Nullable<ICellData>[][]) => {
+ const v = formulaResult && formulaResult[0] && formulaResult[0][0];
+ return v ? v.v : false;
+};
+// TODO: @Gggpound
+// It may be possible later to abstract a service that manages the results of an asynchronous calculation to handle the use of the last calculation before waiting for the result to return.
+export class ConditionalFormatFormulaService extends Disposable {
+ private _formulaMap: Map<string, Map<string, RefAlias<IFormulaItem, 'formulaId' | 'formulaText'>>> = new Map();
+
+ private _cache: Map<string, Map<string, Map<string, ObjectMatrix<unknown>>>> = new Map();
+
+ private _formulaChange$ = new Subject<{
+ unitId: string; subUnitId: string; cfId: string; formulaText: string;formulaId: string;
+ }>();
+
+ public formulaChange$ = this._formulaChange$.asObservable();
+
+ constructor(
+ @Inject(ICommandService) private _commandService: ICommandService,
+ @Inject(Injector) private _injector: Injector,
+ @Inject(IActiveDirtyManagerService) private _activeDirtyManagerService: IActiveDirtyManagerService,
+ @Inject(ConditionalFormatViewModel) private _conditionalFormatViewModel: ConditionalFormatViewModel,
+ @Inject(ConditionalFormatRuleModel) private _conditionalFormatRuleModel: ConditionalFormatRuleModel
+
+ ) {
+ super();
+ this._initFormulaCalculationResultChange();
+ this._initRuleChange();
+ this._initCache();
+ this.disposeWithMe(toDisposable(() => {
+ this._cache.clear();
+ this._formulaMap.clear();
+ }));
+ }
+
+ private _initCache() {
+ const _conditionalFormatService = this._injector.get(ConditionalFormatService);
+ this.disposeWithMe(_conditionalFormatService.ruleComputeStatus$.subscribe((option) => {
+ const { unitId, subUnitId, status, result, cfId } = option;
+ if (status === 'end' && result) {
+ const cacheMap = this._ensureCacheMap(unitId, subUnitId);
+ cacheMap.set(cfId, result);
+ }
+ }));
+ this.disposeWithMe(this._conditionalFormatRuleModel.$ruleChange.subscribe((option) => {
+ if (option.type === 'delete') {
+ const { unitId, subUnitId, rule } = option;
+ this._deleteCache(unitId, subUnitId, rule.cfId);
+ }
+ }));
+ }
+
+ private _initRuleChange() {
+ this.disposeWithMe(this._conditionalFormatRuleModel.$ruleChange.subscribe((option) => {
+ const { unitId, subUnitId, rule } = option;
+ if (option.type === 'delete') {
+ this._removeFormulaByCfId(unitId, subUnitId, rule.cfId);
+ }
+ // @gggpound: todo clear cache when set rule
+ }));
+ }
+
+ private _initFormulaCalculationResultChange() {
+ // Gets the result of the formula calculation and caches it
+ this.disposeWithMe(this._commandService.onCommandExecuted((commandInfo) => {
+ if (commandInfo.id === SetFormulaCalculationResultMutation.id) {
+ const params = commandInfo.params as ISetFormulaCalculationResultMutation;
+ for (const unitId in params.unitOtherData) {
+ for (const subUnitId in params.unitOtherData[unitId]) {
+ const map = this.getSubUnitFormulaMap(unitId, subUnitId);
+ if (!map) {
+ continue;
+ }
+ const cfIdSet = new Set<string>();
+ for (const formulaId in params.unitOtherData[unitId]![subUnitId]) {
+ const item = map.getValue(formulaId);
+ if (item) {
+ const value = getResultFromFormula(params.unitOtherData[unitId]![subUnitId]![formulaId]);
+ item.result = value!;
+ item.status = FormulaResultStatus.SUCCESS;
+ cfIdSet.add(item.cfId);
+ }
+ }
+ for (const cfId of cfIdSet) {
+ const rule = this._conditionalFormatRuleModel.getRule(unitId, subUnitId, cfId);
+ rule && this._conditionalFormatViewModel.markRuleDirty(unitId, subUnitId, rule);
+ }
+ }
+ }
+ }
+ }));
+
+ // Register formula with Dirty Logic
+ this._activeDirtyManagerService.register(ConditionalFormatFormulaMarkDirty.id,
+ { commandId: ConditionalFormatFormulaMarkDirty.id,
+ getDirtyData(commandInfo) {
+ const params = commandInfo.params as IConditionalFormatFormulaMarkDirtyParams;
+ return {
+ dirtyUnitOtherFormulaMap: params,
+ };
+ } });
+
+ // Sum up formulas that need to be marked dirty
+ this.formulaChange$.pipe(bufferTime(16), filter((list) => !!list.length), map((list) => {
+ return list.reduce((result, cur) => {
+ const { unitId, subUnitId, formulaId, formulaText } = cur;
+ if (!result[unitId]) {
+ result[unitId] = {};
+ }
+ if (!result[unitId][subUnitId]) {
+ result[unitId][subUnitId] = {};
+ }
+ result[unitId][subUnitId][formulaId] = { f: formulaText };
+ return result;
+ }, {} as { [unitId: string]: { [sunUnitId: string]: { [formulaId: string]: { f: string } } } });
+ })).subscribe((result) => {
+ for (const unitId in result) {
+ for (const subUnitId in result[unitId]) {
+ const value = result[unitId][subUnitId];
+ const config: ISetOtherFormulaMutationParams = { unitId, subUnitId, formulaMap: value };
+ this._commandService.executeCommand(SetOtherFormulaMutation.id, config).then(() => {
+ this._commandService.executeCommand(ConditionalFormatFormulaMarkDirty.id,
+ { [unitId]: { [subUnitId]: value } } as unknown as IConditionalFormatFormulaMarkDirtyParams);
+ });
+ }
+ }
+ });
+ }
+
+ private _ensureSubunitFormulaMap(unitId: string, subUnitId: string) {
+ let unitMap = this._formulaMap.get(unitId);
+ if (!unitMap) {
+ unitMap = new Map<string, RefAlias<IFormulaItem, 'formulaId' | 'formulaText'>>();
+ this._formulaMap.set(unitId, unitMap);
+ }
+ let subUnitMap = unitMap.get(subUnitId);
+ if (!subUnitMap) {
+ subUnitMap = new RefAlias<IFormulaItem, 'formulaId' | 'formulaText'>([], ['formulaId', 'formulaText']);
+ unitMap.set(subUnitId, subUnitMap);
+ }
+ return subUnitMap;
+ }
+
+ private _ensureCacheMap(unitId: string, subUnitId: string) {
+ let unitMap = this._cache.get(unitId);
+ if (!unitMap) {
+ unitMap = new Map<string, Map<string, ObjectMatrix<any>>>();
+ this._cache.set(unitId, unitMap);
+ }
+ let subUnitMap = unitMap.get(subUnitId);
+ if (!subUnitMap) {
+ subUnitMap = new Map();
+ unitMap.set(subUnitId, subUnitMap);
+ }
+ return subUnitMap;
+ }
+
+ private _deleteCache(unitId: string, subUnitId: string, cfId?: string) {
+ const unitCache = this._cache.get(unitId);
+ if (unitCache) {
+ const subUnitCache = unitCache.get(subUnitId);
+ if (subUnitCache) {
+ if (cfId) {
+ subUnitCache.delete(cfId);
+ } else {
+ subUnitCache.clear();
+ }
+ }
+ }
+ }
+
+ public getCache(unitId: string, subUnitId: string, cfId: string) {
+ const map = this._ensureCacheMap(unitId, subUnitId);
+ return map.get(cfId);
+ }
+
+ public getSubUnitFormulaMap(unitId: string, subUnitId: string) {
+ return this._formulaMap.get(unitId)?.get(subUnitId);
+ }
+
+ public registerFormula(unitId: string, subUnitId: string, cfId: string, formulaText: string) {
+ const subUnitFormulaMap = this._ensureSubunitFormulaMap(unitId, subUnitId);
+ const formulaItem = subUnitFormulaMap.getValue(formulaText);
+ if (formulaItem) {
+ if (!subUnitFormulaMap.getValues().some((item) => item.cfId === cfId)) {
+ formulaItem.count++;
+ }
+ return;
+ }
+ const formulaId = this._createFormulaId(unitId, subUnitId);
+ subUnitFormulaMap.addValue({ formulaId, formulaText, cfId, status: FormulaResultStatus.WAIT, count: 1 });
+ this._formulaChange$.next({ unitId, cfId, subUnitId, formulaText, formulaId });
+ }
+
+ private _removeFormulaByCfId(unitId: string, subUnitId: string, cfId: string) {
+ const subUnitFormulaMap = this._ensureSubunitFormulaMap(unitId, subUnitId);
+ const reduceCount = (formulaText: string) => {
+ const formulaItem = subUnitFormulaMap.getValue(formulaText);
+ if (formulaItem) {
+ formulaItem.count--;
+ if (formulaItem.count <= 0) {
+ subUnitFormulaMap.deleteValue(formulaText);
+ }
+ }
+ };
+ const values = subUnitFormulaMap.getValues().filter((item) => item.cfId === cfId);
+ values.forEach((item) => {
+ reduceCount(item.formulaText);
+ });
+ const formulaIdList = values.map((item) => item.formulaId);
+ this._commandService.executeCommand(RemoveOtherFormulaMutation.id, { unitId, subUnitId, formulaIdList } as IRemoveOtherFormulaMutationParams);
+ }
+
+ public getFormulaResult(unitId: string, subUnitId: string, formulaText: string) {
+ const map = this.getSubUnitFormulaMap(unitId, subUnitId);
+ if (!map) {
+ return { status: FormulaResultStatus.NOT_REGISTER };
+ }
+ const item = map.getValue(formulaText);
+ if (!item) {
+ return { status: FormulaResultStatus.NOT_REGISTER };
+ }
+ if (FormulaResultStatus.SUCCESS === item.status) {
+ return { result: item.result, status: FormulaResultStatus.SUCCESS };
+ }
+
+ if (item.status === FormulaResultStatus.WAIT) {
+ return { status: FormulaResultStatus.WAIT };
+ }
+
+ return { status: FormulaResultStatus.ERROR };
+ }
+
+ _createFormulaId(unitId: string, subUnitId: string) {
+ return `sheet.cf_${unitId}_${subUnitId}_${Tools.generateRandomId(8)}`;
+ }
+}
diff --git a/packages/sheets-conditional-format/src/services/conditional-format.service.ts b/packages/sheets-conditional-format/src/services/conditional-format.service.ts
new file mode 100644
index 0000000000..d680c9019a
--- /dev/null
+++ b/packages/sheets-conditional-format/src/services/conditional-format.service.ts
@@ -0,0 +1,402 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import type { IMutationInfo, IRange, Workbook } from '@univerjs/core';
+import { createInterceptorKey, Disposable, ICommandService, InterceptorManager, IResourceManagerService, IUniverInstanceService, LifecycleStages, ObjectMatrix, OnLifecycle, Rectangle, toDisposable, Tools } from '@univerjs/core';
+import type { IInsertColMutationParams, IMoveColumnsMutationParams, IMoveRangeMutationParams, IMoveRowsMutationParams, IRemoveRowsMutationParams, IRemoveSheetCommandParams, ISetRangeValuesMutationParams } from '@univerjs/sheets';
+import { InsertColMutation, InsertRowMutation, MoveColsMutation, MoveRangeMutation, MoveRowsMutation, RemoveColMutation, RemoveRowMutation, RemoveSheetCommand, SetRangeValuesMutation, SheetInterceptorService } from '@univerjs/sheets';
+import { Inject, Injector } from '@wendellhu/redi';
+import { Subject } from 'rxjs';
+import { filter } from 'rxjs/operators';
+import type { IDeleteConditionalRuleMutationParams } from '../commands/mutations/delete-conditional-rule.mutation';
+import { DeleteConditionalRuleMutation, DeleteConditionalRuleMutationUndoFactory } from '../commands/mutations/delete-conditional-rule.mutation';
+import { ConditionalFormatRuleModel } from '../models/conditional-format-rule-model';
+import { ConditionalFormatViewModel } from '../models/conditional-format-view-model';
+import { CFRuleType, SHEET_CONDITION_FORMAT_PLUGIN } from '../base/const';
+import type { IConditionFormatRule, IHighlightCell, IRuleModelJson } from '../models/type';
+import type { IDataBarCellData, IDataBarRenderParams, IIconSetCellData, IIconSetRenderParams } from '../render/type';
+import { dataBarCellCalculateUnit } from './calculate-unit/data-bar';
+import { highlightCellCalculateUnit } from './calculate-unit/highlight-cell';
+import { colorScaleCellCalculateUnit } from './calculate-unit/color-scale';
+import { iconSetCalculateUnit } from './calculate-unit/icon-set';
+import type { ICalculateUnit, IContext } from './calculate-unit/type';
+import { EMPTY_STYLE } from './calculate-unit/type';
+
+type ComputeStatus = 'computing' | 'end' | 'error';
+
+interface IComputeCache { status: ComputeStatus };
+
+const beforeUpdateRuleResult = createInterceptorKey< { subUnitId: string; unitId: string; cfId: string }>('conditional-format-before-update-rule-result');
+@OnLifecycle(LifecycleStages.Starting, ConditionalFormatService)
+export class ConditionalFormatService extends Disposable {
+ // <unitId,<subUnitId,<cfId,IComputeCache>>>
+ private _ruleCacheMap: Map<string, Map<string, Map<string, IComputeCache>>> = new Map();
+
+ private _ruleComputeStatus$: Subject<{ status: ComputeStatus;result?: ObjectMatrix<any>;unitId: string; subUnitId: string; cfId: string }> = new Subject();
+ public ruleComputeStatus$ = this._ruleComputeStatus$.asObservable();
+
+ public interceptorManager = new InterceptorManager({ beforeUpdateRuleResult });
+
+ private _calculationUnitMap: Map<IConditionFormatRule['rule']['type'], ICalculateUnit> = new Map();
+
+ constructor(
+ @Inject(ConditionalFormatRuleModel) private _conditionalFormatRuleModel: ConditionalFormatRuleModel,
+ @Inject(Injector) private _injector: Injector,
+ @Inject(ConditionalFormatViewModel) private _conditionalFormatViewModel: ConditionalFormatViewModel,
+ @Inject(IUniverInstanceService) private _univerInstanceService: IUniverInstanceService,
+ @Inject(IResourceManagerService) private _resourceManagerService: IResourceManagerService,
+ @Inject(SheetInterceptorService) private _sheetInterceptorService: SheetInterceptorService,
+ @Inject(ICommandService) private _commandService: ICommandService
+ ) {
+ super();
+ this._initCellChange();
+ this._initCacheManager();
+ this._initRemoteCalculate();
+ this._initSnapshot();
+ this._initSheetChange();
+ this._registerCalculationUnit(dataBarCellCalculateUnit);
+ this._registerCalculationUnit(colorScaleCellCalculateUnit);
+ this._registerCalculationUnit(highlightCellCalculateUnit);
+ this._registerCalculationUnit(iconSetCalculateUnit);
+ }
+
+ public composeStyle(unitId: string, subUnitId: string, row: number, col: number) {
+ const cell = this._conditionalFormatViewModel.getCellCf(unitId, subUnitId, row, col);
+ if (cell) {
+ // High priority should be applied at the back, overwriting the previous results.
+ // reverse is a side-effect function that changes the original array.
+ const ruleList = cell.cfList.map((item) => this._conditionalFormatRuleModel.getRule(unitId, subUnitId, item.cfId)!).filter((rule) => !!rule).reverse();
+ const endIndex = ruleList.findIndex((rule) => rule?.stopIfTrue);
+ if (endIndex > -1) {
+ ruleList.splice(endIndex + 1);
+ }
+ const result = ruleList.reduce((pre, rule) => {
+ const type = rule.rule.type;
+ const ruleCacheItem = cell.cfList.find((cache) => cache.cfId === rule.cfId);
+ if (ruleCacheItem?.isDirty) {
+ this._handleCalculateUnit(unitId, subUnitId, rule);
+ }
+ if (type === CFRuleType.highlightCell) {
+ ruleCacheItem!.ruleCache && Tools.deepMerge(pre, { style: ruleCacheItem!.ruleCache });
+ } else if (type === CFRuleType.colorScale) {
+ const ruleCache = ruleCacheItem?.ruleCache as string;
+ if (ruleCache) {
+ pre.style = { ...(pre.style ?? {}), bg: { rgb: ruleCache } };
+ }
+ } else if (type === CFRuleType.dataBar) {
+ const ruleCache = ruleCacheItem?.ruleCache as IDataBarRenderParams;
+ if (ruleCache && ruleCache !== EMPTY_STYLE) {
+ pre.dataBar = ruleCache;
+ }
+ } else if (type === CFRuleType.iconSet) {
+ const ruleCache = ruleCacheItem?.ruleCache as IIconSetRenderParams;
+ if (ruleCache && ruleCache !== EMPTY_STYLE) {
+ pre.iconSet = ruleCache;
+ }
+ }
+ return pre;
+ }, {} as { style?: IHighlightCell['style'] } & IDataBarCellData & IIconSetCellData);
+ return result;
+ }
+ return null;
+ }
+
+ private _initSnapshot() {
+ const toJson = (unitID: string) => {
+ const map = this._conditionalFormatRuleModel.getUnitRules(unitID);
+ const resultMap: IRuleModelJson[keyof IRuleModelJson] = {};
+ if (map) {
+ map.forEach((v, key) => {
+ resultMap[key] = v;
+ });
+ return JSON.stringify(resultMap);
+ }
+ return '';
+ };
+ const parseJson = (json: string): IRuleModelJson[keyof IRuleModelJson] => {
+ if (!json) {
+ return {};
+ }
+ try {
+ return JSON.parse(json);
+ } catch (err) {
+ return {};
+ }
+ };
+ const handleWorkbookAdd = (workbook: Workbook) => {
+ const unitID = workbook.getUnitId();
+ this.disposeWithMe(
+ this._resourceManagerService.registerPluginResource<IRuleModelJson[keyof IRuleModelJson]>(unitID, SHEET_CONDITION_FORMAT_PLUGIN, {
+ toJson: (unitID) => toJson(unitID),
+ parseJson: (json) => parseJson(json),
+ onChange: (unitID, value) => {
+ Object.keys(value).forEach((subunitId) => {
+ const ruleList = value[subunitId];
+ ruleList.forEach((rule) => {
+ this._conditionalFormatRuleModel.addRule(unitID, subunitId, rule);
+ });
+ });
+ },
+ })
+ );
+ };
+ this.disposeWithMe(toDisposable(this._univerInstanceService.sheetAdded$.subscribe(handleWorkbookAdd)));
+ this.disposeWithMe(
+ toDisposable(
+ this._univerInstanceService.sheetDisposed$.subscribe((workbook) => {
+ const unitID = workbook.getUnitId();
+ this._resourceManagerService.disposePluginResource(unitID, SHEET_CONDITION_FORMAT_PLUGIN);
+ })
+ )
+ );
+ const workbook = this._univerInstanceService.getCurrentUniverSheetInstance();
+ handleWorkbookAdd(workbook);
+ }
+
+ private _initSheetChange() {
+ this.disposeWithMe(
+ this._sheetInterceptorService.interceptCommand({
+ getMutations: (commandInfo) => {
+ if (commandInfo.id === RemoveSheetCommand.id) {
+ const params = commandInfo.params as IRemoveSheetCommandParams;
+ const unitId = params.unitId || getUnitId(this._univerInstanceService);
+ const subUnitId = params.subUnitId || getSubUnitId(this._univerInstanceService);
+ const ruleList = this._conditionalFormatRuleModel.getSubunitRules(unitId, subUnitId);
+ if (!ruleList) {
+ return { redos: [], undos: [] };
+ }
+
+ const redos: IMutationInfo[] = [];
+ const undos: IMutationInfo[] = [];
+
+ ruleList.forEach((item) => {
+ const params: IDeleteConditionalRuleMutationParams = {
+ unitId, subUnitId,
+ cfId: item.cfId,
+ };
+ redos.push({
+ id: DeleteConditionalRuleMutation.id, params,
+ });
+ undos.push(...DeleteConditionalRuleMutationUndoFactory(this._injector, params));
+ });
+
+ return {
+ redos,
+ undos,
+ };
+ }
+ return { redos: [], undos: [] };
+ },
+ })
+ );
+ }
+
+ private _registerCalculationUnit(unit: ICalculateUnit) {
+ this._calculationUnitMap.set(unit.type, unit);
+ }
+
+ private _getComputedCache(unitId: string, subUnitId: string, cfId: string) {
+ return this._ruleCacheMap.get(unitId)?.get(subUnitId)?.get(cfId);
+ }
+
+ private _setComputedCache(unitId: string, subUnitId: string, cfId: string, value: IComputeCache) {
+ let unitMap = this._ruleCacheMap.get(unitId);
+ if (!unitMap) {
+ unitMap = new Map();
+ this._ruleCacheMap.set(unitId, unitMap);
+ }
+ let subUnitMap = unitMap.get(subUnitId);
+ if (!subUnitMap) {
+ subUnitMap = new Map();
+ unitMap.set(subUnitId, subUnitMap);
+ }
+ subUnitMap.set(cfId, value);
+ }
+
+ private _deleteComputeCache(unitId: string, subUnitId: string, cfId: string) {
+ const unitCache = this._ruleCacheMap.get(unitId);
+ const subUnitCache = unitCache?.get(subUnitId);
+ if (subUnitCache) {
+ subUnitCache.delete(cfId);
+ const size = subUnitCache.size;
+ if (!size) {
+ unitCache?.delete(subUnitId);
+ }
+ }
+ }
+
+ private _initCacheManager() {
+ this.disposeWithMe(this._conditionalFormatViewModel.markDirty$.subscribe((item) => {
+ this._deleteComputeCache(item.unitId, item.subUnitId, item.rule.cfId);
+ }));
+
+ this.disposeWithMe(this._conditionalFormatRuleModel.$ruleChange.pipe(filter((item) => item.type !== 'sort')).subscribe((item) => {
+ this._deleteComputeCache(item.unitId, item.subUnitId, item.rule.cfId);
+ }));
+ }
+
+ private _initCellChange() {
+ this.disposeWithMe(
+ this._commandService.onCommandExecuted((commandInfo) => {
+ const collectRule = (unitId: string, subUnitId: string, cellData: [number, number][]) => {
+ const ruleIds: Set<string> = new Set();
+ cellData.forEach(([row, col]) => {
+ const ruleItem = this._conditionalFormatViewModel.getCellCf(unitId, subUnitId, row, col);
+ ruleItem?.cfList.forEach((item) => ruleIds.add(item.cfId));
+ });
+ return [...ruleIds].map((cfId) => this._conditionalFormatRuleModel.getRule(unitId, subUnitId, cfId) as IConditionFormatRule).filter((rule) => !!rule);
+ };
+
+ switch (commandInfo.id) {
+ case SetRangeValuesMutation.id:{
+ const params = commandInfo.params as ISetRangeValuesMutationParams;
+ const { subUnitId, unitId, cellValue } = params;
+ const cellMatrix: [number, number][] = [];
+ new ObjectMatrix(cellValue).forValue((row, col, value) => {
+ // When P and V are involved
+ const result = value && Object.keys(value).some((key) => ['p', 'v'].includes(key));
+ if (result) {
+ cellMatrix.push([row, col]);
+ }
+ });
+ const rules = collectRule(unitId, subUnitId, cellMatrix);
+ rules.forEach((rule) => {
+ this._conditionalFormatViewModel.markRuleDirty(unitId, subUnitId, rule);
+ this._deleteComputeCache(unitId, subUnitId, rule.cfId);
+ });
+ break;
+ }
+ case InsertColMutation.id:
+ case RemoveColMutation.id:{
+ const { range, unitId, subUnitId } = commandInfo.params as IInsertColMutationParams;
+ const allRules = this._conditionalFormatRuleModel.getSubunitRules(unitId, subUnitId);
+ const effectRange: IRange = { ...range, endColumn: Number.MAX_SAFE_INTEGER };
+ if (allRules) {
+ const effectRule = allRules.filter((rule) => rule.ranges.some((ruleRange) => Rectangle.intersects(ruleRange, effectRange)));
+ effectRule.forEach((rule) => {
+ this._conditionalFormatViewModel.markRuleDirty(unitId, subUnitId, rule);
+ this._deleteComputeCache(unitId, subUnitId, rule.cfId);
+ });
+ }
+ break;
+ }
+ case RemoveRowMutation.id:
+ case InsertRowMutation.id:{
+ const { range, unitId, subUnitId } = commandInfo.params as IRemoveRowsMutationParams;
+ const allRules = this._conditionalFormatRuleModel.getSubunitRules(unitId, subUnitId);
+ const effectRange: IRange = { ...range, endRow: Number.MAX_SAFE_INTEGER };
+ if (allRules) {
+ const effectRule = allRules.filter((rule) => rule.ranges.some((ruleRange) => Rectangle.intersects(ruleRange, effectRange)));
+ effectRule.forEach((rule) => {
+ this._conditionalFormatViewModel.markRuleDirty(unitId, subUnitId, rule);
+ this._deleteComputeCache(unitId, subUnitId, rule.cfId);
+ });
+ }
+ break;
+ }
+ case MoveRowsMutation.id:{
+ const { sourceRange, targetRange, unitId, subUnitId } = commandInfo.params as IMoveRowsMutationParams;
+ const allRules = this._conditionalFormatRuleModel.getSubunitRules(unitId, subUnitId);
+ const effectRange: IRange = { startRow: Math.min(sourceRange.startRow, targetRange.startRow),
+ endRow: Number.MAX_SAFE_INTEGER,
+ startColumn: 0,
+ endColumn: Number.MAX_SAFE_INTEGER };
+ if (allRules) {
+ const effectRule = allRules.filter((rule) => rule.ranges.some((ruleRange) => Rectangle.intersects(ruleRange, effectRange)));
+ effectRule.forEach((rule) => {
+ this._conditionalFormatViewModel.markRuleDirty(unitId, subUnitId, rule);
+ this._deleteComputeCache(unitId, subUnitId, rule.cfId);
+ });
+ }
+ break;
+ }
+ case MoveColsMutation.id:{
+ const { sourceRange, targetRange, unitId, subUnitId } = commandInfo.params as IMoveColumnsMutationParams;
+ const allRules = this._conditionalFormatRuleModel.getSubunitRules(unitId, subUnitId);
+ const effectRange: IRange = { startRow: 0,
+ endRow: Number.MAX_SAFE_INTEGER,
+ startColumn: Math.min(sourceRange.startColumn, targetRange.startColumn),
+ endColumn: Number.MAX_SAFE_INTEGER };
+ if (allRules) {
+ const effectRule = allRules.filter((rule) => rule.ranges.some((ruleRange) => Rectangle.intersects(ruleRange, effectRange)));
+ effectRule.forEach((rule) => {
+ this._conditionalFormatViewModel.markRuleDirty(unitId, subUnitId, rule);
+ this._deleteComputeCache(unitId, subUnitId, rule.cfId);
+ });
+ }
+ break;
+ }
+ case MoveRangeMutation.id:{
+ const { unitId, to, from } = commandInfo.params as IMoveRangeMutationParams;
+ const handleSubUnit = (value: IMoveRangeMutationParams['from']) => {
+ const cellMatrix: [number, number][] = [];
+ new ObjectMatrix(value.value).forValue((row, col) => {
+ cellMatrix.push([row, col]);
+ });
+ const rules = collectRule(unitId, value.subUnitId, cellMatrix);
+ rules.forEach((rule) => {
+ this._conditionalFormatViewModel.markRuleDirty(unitId, value.subUnitId, rule);
+ this._deleteComputeCache(unitId, value.subUnitId, rule.cfId);
+ });
+ };
+ handleSubUnit(to);
+ handleSubUnit(from);
+ break;
+ }
+ }
+ }));
+ }
+
+ private _initRemoteCalculate() {
+ this.disposeWithMe(this._ruleComputeStatus$.subscribe(({ status, subUnitId, unitId, cfId, result }) => {
+ const cache = this._getComputedCache(unitId, subUnitId, cfId) || {} as IComputeCache;
+ cache.status = status;
+ this._setComputedCache(unitId, subUnitId, cfId, cache);
+ if (status === 'end' && result) {
+ this.interceptorManager.fetchThroughInterceptors(this.interceptorManager.getInterceptPoints().beforeUpdateRuleResult)({
+ subUnitId, unitId, cfId,
+ }, undefined);
+ result.forValue((row, col, value) => {
+ this._conditionalFormatViewModel.setCellCfRuleCache(unitId, subUnitId, row, col, cfId, value);
+ });
+ this._deleteComputeCache(unitId, subUnitId, cfId);
+ }
+ }));
+ }
+
+ private async _handleCalculateUnit(unitId: string, subUnitId: string, rule: IConditionFormatRule) {
+ const workbook = this._univerInstanceService.getUniverSheetInstance(unitId);
+ const worksheet = workbook?.getSheetBySheetId(subUnitId);
+ let cache = this._getComputedCache(unitId, subUnitId, rule.cfId);
+ if (cache && cache.status === 'computing') {
+ return;
+ }
+ if (!cache) {
+ cache = { status: 'computing' };
+ this._setComputedCache(unitId, subUnitId, rule.cfId, cache);
+ }
+ const unit = this._calculationUnitMap.get(rule.rule.type);
+ if (!unit || !worksheet) {
+ return;
+ }
+ const context: IContext = { unitId, subUnitId, accessor: this._injector, workbook: workbook!, worksheet };
+ const result = await unit.handle(rule, context);
+ this._ruleComputeStatus$.next({ status: 'end', unitId, subUnitId, cfId: rule.cfId, result });
+ }
+}
+
+const getUnitId = (u: IUniverInstanceService) => u.getCurrentUniverSheetInstance().getUnitId();
+const getSubUnitId = (u: IUniverInstanceService) => u.getCurrentUniverSheetInstance().getActiveSheet().getSheetId();
diff --git a/packages/sheets-conditional-format/src/utils/getStringFromDataStream.ts b/packages/sheets-conditional-format/src/utils/getStringFromDataStream.ts
new file mode 100644
index 0000000000..20edb2aa68
--- /dev/null
+++ b/packages/sheets-conditional-format/src/utils/getStringFromDataStream.ts
@@ -0,0 +1,22 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import type { IDocumentData } from '@univerjs/core';
+
+export const getStringFromDataStream = (data: IDocumentData) => {
+ const dataStream = data.body?.dataStream.replace(/\r\n$/, '') || '';
+ return dataStream;
+};
diff --git a/packages/sheets-conditional-format/src/utils/isRangesEqual.ts b/packages/sheets-conditional-format/src/utils/isRangesEqual.ts
new file mode 100644
index 0000000000..342d04095c
--- /dev/null
+++ b/packages/sheets-conditional-format/src/utils/isRangesEqual.ts
@@ -0,0 +1,22 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import type { IRange } from '@univerjs/core';
+import { Rectangle } from '@univerjs/core';
+
+export const isRangesEqual = (oldRanges: IRange[], ranges: IRange[]) => {
+ return ranges.length === oldRanges.length && !oldRanges.some((oldRange) => ranges.some((range) => !Rectangle.equals(range, oldRange)));
+};
diff --git a/packages/sheets-conditional-format/src/utils/removeUndefinedAttr.ts b/packages/sheets-conditional-format/src/utils/removeUndefinedAttr.ts
new file mode 100644
index 0000000000..f54b90a397
--- /dev/null
+++ b/packages/sheets-conditional-format/src/utils/removeUndefinedAttr.ts
@@ -0,0 +1,34 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+export function removeUndefinedAttr<T = unknown>(obj: T): T {
+ if (typeof obj !== 'object' || obj === null) {
+ return obj;
+ }
+
+ const result: Record<string, any> = {};
+
+ for (const key in obj) {
+ if (obj.hasOwnProperty(key)) {
+ const value = removeUndefinedAttr(obj[key]);
+ if (value !== undefined) {
+ result[key] = value;
+ }
+ }
+ }
+
+ return result as T;
+}
diff --git a/packages/sheets-conditional-format/src/utils/type.ts b/packages/sheets-conditional-format/src/utils/type.ts
new file mode 100644
index 0000000000..a0cd6348a0
--- /dev/null
+++ b/packages/sheets-conditional-format/src/utils/type.ts
@@ -0,0 +1,19 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+export type MakePropertyOptional<T, K extends keyof T> = {
+ [P in keyof T]: P extends K ? T[P] | undefined : T[P];
+};
diff --git a/packages/sheets-conditional-format/src/vite-env.d.ts b/packages/sheets-conditional-format/src/vite-env.d.ts
new file mode 100644
index 0000000000..11f02fe2a0
--- /dev/null
+++ b/packages/sheets-conditional-format/src/vite-env.d.ts
@@ -0,0 +1 @@
+/// <reference types="vite/client" />
diff --git a/packages/sheets-conditional-format/tsconfig.json b/packages/sheets-conditional-format/tsconfig.json
new file mode 100644
index 0000000000..d676ad2a20
--- /dev/null
+++ b/packages/sheets-conditional-format/tsconfig.json
@@ -0,0 +1,9 @@
+{
+ "extends": "@univerjs/shared/tsconfigs/base",
+ "compilerOptions": {
+ "rootDir": "src",
+ "outDir": "lib/types"
+ },
+ "references": [{ "path": "./tsconfig.node.json" }],
+ "include": ["src"]
+}
diff --git a/packages/sheets-conditional-format/tsconfig.node.json b/packages/sheets-conditional-format/tsconfig.node.json
new file mode 100644
index 0000000000..e53dac8868
--- /dev/null
+++ b/packages/sheets-conditional-format/tsconfig.node.json
@@ -0,0 +1,4 @@
+{
+ "extends": "@univerjs/shared/tsconfigs/node",
+ "include": ["vite.config.ts"]
+}
diff --git a/packages/sheets-conditional-format/vite.config.ts b/packages/sheets-conditional-format/vite.config.ts
new file mode 100644
index 0000000000..8e4292cd0a
--- /dev/null
+++ b/packages/sheets-conditional-format/vite.config.ts
@@ -0,0 +1,48 @@
+import createViteConfig from '@univerjs/shared/vite';
+import pkg from './package.json';
+
+export default ({ mode }) => createViteConfig({
+ build: {
+ rollupOptions: {
+ external: [
+ '@univerjs/core',
+ '@univerjs/design',
+ '@univerjs/engine-formula',
+ '@univerjs/engine-render',
+ '@univerjs/sheets',
+ '@univerjs/sheets-ui',
+ '@univerjs/ui',
+ '@wendellhu/redi',
+ '@wendellhu/redi/react-bindings',
+ 'react',
+ 'rxjs',
+ 'rxjs/operators',
+ ],
+ output: {
+ assetFileNames: 'index.css',
+ globals: {
+ '@univerjs/core': 'UniverCore',
+ '@univerjs/design': 'UniverDesign',
+ '@univerjs/engine-formula': 'UniverEngineFormula',
+ '@univerjs/engine-render': 'UniverEngineRender',
+ '@univerjs/sheets': 'UniverSheets',
+ '@univerjs/sheets-ui': 'UniverSheetsUi',
+ '@univerjs/ui': 'UniverUi',
+ '@wendellhu/redi': '@wendellhu/redi',
+ '@wendellhu/redi/react-bindings': '@wendellhu/redi/react-bindings',
+ react: 'React',
+ rxjs: 'rxjs',
+ 'rxjs/operators': 'rxjs.operators',
+ },
+ },
+ },
+ },
+}, {
+ mode,
+ pkg,
+ features: {
+ react: true,
+ css: true,
+ dom: true,
+ },
+});
diff --git a/packages/sheets-formula/src/controllers/numfmt-formula-display.controller.ts b/packages/sheets-formula/src/controllers/numfmt-formula-display.controller.ts
index dcc55f1a02..3585f3bfca 100644
--- a/packages/sheets-formula/src/controllers/numfmt-formula-display.controller.ts
+++ b/packages/sheets-formula/src/controllers/numfmt-formula-display.controller.ts
@@ -70,9 +70,9 @@ export class NumfmtFormulaDisplayController extends Disposable {
const numfmtItemMap = this._formulaDataModel.getNumfmtItemMap();
const numfmtItem = numfmtItemMap[unitId]?.[subUnitId]?.[row]?.[col];
-
+ const v = next(cell);
if (numfmtItem == null || numfmtItem === '') {
- return next(cell);
+ return v;
}
const rawValue = location.worksheet.getCellRaw(row, col);
@@ -80,7 +80,7 @@ export class NumfmtFormulaDisplayController extends Disposable {
const type = rawValue?.t;
if (value == null || type !== CellValueType.NUMBER) {
- return next(cell);
+ return v;
}
const info = getPatternPreview(numfmtItem, value as number);
@@ -89,7 +89,7 @@ export class NumfmtFormulaDisplayController extends Disposable {
const colorMap = this._themeService.getCurrentTheme();
const color = colorMap[`${info.color}500`];
return {
- ...cell,
+ ...v,
v: info.result,
t: CellValueType.STRING,
s: { cl: { rgb: color } },
@@ -97,7 +97,7 @@ export class NumfmtFormulaDisplayController extends Disposable {
}
return {
- ...cell,
+ ...v,
v: info.result,
t: CellValueType.STRING,
};
diff --git a/packages/sheets-formula/src/controllers/trigger-calculation.controller.ts b/packages/sheets-formula/src/controllers/trigger-calculation.controller.ts
index 55aba5a710..b4412d18c3 100644
--- a/packages/sheets-formula/src/controllers/trigger-calculation.controller.ts
+++ b/packages/sheets-formula/src/controllers/trigger-calculation.controller.ts
@@ -18,6 +18,7 @@ import type { ICommandInfo, IUnitRange } from '@univerjs/core';
import { Disposable, ICommandService, LifecycleStages, OnLifecycle, Tools } from '@univerjs/core';
import type {
IDirtyUnitFeatureMap,
+ IDirtyUnitOtherFormulaMap,
IDirtyUnitSheetNameMap,
INumfmtItemMap,
ISetFormulaCalculationNotificationMutation,
@@ -132,6 +133,8 @@ export class TriggerCalculationController extends Disposable {
const allDirtyRanges: IUnitRange[] = [];
const allDirtyNameMap: IDirtyUnitSheetNameMap = {};
const allDirtyUnitFeatureMap: IDirtyUnitFeatureMap = {};
+ const allDirtyUnitOtherFormulaMap: IDirtyUnitOtherFormulaMap = {};
+
const numfmtItemMap: INumfmtItemMap = Tools.deepClone(this._formulaDataModel.getNumfmtItemMap());
for (const command of commands) {
@@ -143,7 +146,7 @@ export class TriggerCalculationController extends Disposable {
const params = conversion.getDirtyData(command);
- const { dirtyRanges, dirtyNameMap, dirtyUnitFeatureMap } = params;
+ const { dirtyRanges, dirtyNameMap, dirtyUnitFeatureMap, dirtyUnitOtherFormulaMap } = params;
if (dirtyRanges != null) {
allDirtyRanges.push(...dirtyRanges);
@@ -154,7 +157,11 @@ export class TriggerCalculationController extends Disposable {
}
if (dirtyUnitFeatureMap != null) {
- this._mergeDirtyUnitFeatureMap(allDirtyUnitFeatureMap, dirtyUnitFeatureMap);
+ this._mergeDirtyUnitFeatureOrOtherFormulaMap(allDirtyUnitFeatureMap, dirtyUnitFeatureMap);
+ }
+
+ if (dirtyUnitOtherFormulaMap != null) {
+ this._mergeDirtyUnitFeatureOrOtherFormulaMap(allDirtyUnitOtherFormulaMap, dirtyUnitOtherFormulaMap);
}
}
@@ -195,6 +202,7 @@ export class TriggerCalculationController extends Disposable {
dirtyRanges: allDirtyRanges,
dirtyNameMap: allDirtyNameMap,
dirtyUnitFeatureMap: allDirtyUnitFeatureMap,
+ dirtyUnitOtherFormulaMap: allDirtyUnitOtherFormulaMap,
numfmtItemMap,
};
}
@@ -216,21 +224,21 @@ export class TriggerCalculationController extends Disposable {
});
}
- private _mergeDirtyUnitFeatureMap(
- allDirtyUnitFeatureMap: IDirtyUnitFeatureMap,
- dirtyUnitFeatureMap: IDirtyUnitFeatureMap
+ private _mergeDirtyUnitFeatureOrOtherFormulaMap(
+ allDirtyUnitFeatureOrOtherFormulaMap: IDirtyUnitFeatureMap | IDirtyUnitOtherFormulaMap,
+ dirtyUnitFeatureOrOtherFormulaMap: IDirtyUnitFeatureMap | IDirtyUnitOtherFormulaMap
) {
- Object.keys(dirtyUnitFeatureMap).forEach((unitId) => {
- if (allDirtyUnitFeatureMap[unitId] == null) {
- allDirtyUnitFeatureMap[unitId] = {};
+ Object.keys(dirtyUnitFeatureOrOtherFormulaMap).forEach((unitId) => {
+ if (allDirtyUnitFeatureOrOtherFormulaMap[unitId] == null) {
+ allDirtyUnitFeatureOrOtherFormulaMap[unitId] = {};
}
- Object.keys(dirtyUnitFeatureMap[unitId]!).forEach((sheetId) => {
- if (allDirtyUnitFeatureMap[unitId]![sheetId] == null) {
- allDirtyUnitFeatureMap[unitId]![sheetId] = {};
+ Object.keys(dirtyUnitFeatureOrOtherFormulaMap[unitId]!).forEach((sheetId) => {
+ if (allDirtyUnitFeatureOrOtherFormulaMap[unitId]![sheetId] == null) {
+ allDirtyUnitFeatureOrOtherFormulaMap[unitId]![sheetId] = {};
}
- Object.keys(dirtyUnitFeatureMap[unitId]![sheetId]).forEach((featureId) => {
- allDirtyUnitFeatureMap[unitId]![sheetId][featureId] =
- dirtyUnitFeatureMap[unitId]![sheetId]![featureId] || false;
+ Object.keys(dirtyUnitFeatureOrOtherFormulaMap[unitId]![sheetId]).forEach((featureIdOrFormulaId) => {
+ allDirtyUnitFeatureOrOtherFormulaMap[unitId]![sheetId][featureIdOrFormulaId] =
+ dirtyUnitFeatureOrOtherFormulaMap[unitId]![sheetId]![featureIdOrFormulaId] || false;
});
});
});
@@ -272,7 +280,7 @@ export class TriggerCalculationController extends Disposable {
switch (state) {
case FormulaExecutedStateType.NOT_EXECUTED:
result = 'No tasks are being executed anymore';
- this._waitingCommandQueue.unshift(...this._executingCommandQueue);
+ // this._waitingCommandQueue.unshift(...this._executingCommandQueue);
this._executingCommandQueue = [];
break;
case FormulaExecutedStateType.STOP_EXECUTION:
diff --git a/packages/sheets-formula/src/index.ts b/packages/sheets-formula/src/index.ts
index 839dc85dfa..9591852149 100644
--- a/packages/sheets-formula/src/index.ts
+++ b/packages/sheets-formula/src/index.ts
@@ -22,6 +22,7 @@ export {
FormulaCustomFunctionService,
IFormulaCustomFunctionService,
} from './services/formula-custom-function.service';
+export { IActiveDirtyManagerService, type IDirtyConversionManagerParams } from './services/active-dirty-manager.service';
export type { IRegisterFunctionParams, IUnregisterFunctionParams } from './services/register-function.service';
export { RegisterFunctionService } from './services/register-function.service';
export { IRegisterFunctionService } from './services/register-function.service';
diff --git a/packages/sheets-formula/src/services/active-dirty-manager.service.ts b/packages/sheets-formula/src/services/active-dirty-manager.service.ts
index 28f5bbaf68..53331c0d33 100644
--- a/packages/sheets-formula/src/services/active-dirty-manager.service.ts
+++ b/packages/sheets-formula/src/services/active-dirty-manager.service.ts
@@ -16,7 +16,7 @@
import type { ICommandInfo, IUnitRange, Nullable } from '@univerjs/core';
import { Disposable } from '@univerjs/core';
-import type { IDirtyUnitFeatureMap, IDirtyUnitSheetNameMap } from '@univerjs/engine-formula';
+import type { IDirtyUnitFeatureMap, IDirtyUnitOtherFormulaMap, IDirtyUnitSheetNameMap } from '@univerjs/engine-formula';
import { createIdentifier } from '@wendellhu/redi';
export interface IDirtyConversionManagerParams {
@@ -25,6 +25,7 @@ export interface IDirtyConversionManagerParams {
dirtyRanges?: IUnitRange[];
dirtyNameMap?: IDirtyUnitSheetNameMap;
dirtyUnitFeatureMap?: IDirtyUnitFeatureMap;
+ dirtyUnitOtherFormulaMap?: IDirtyUnitOtherFormulaMap;
};
}
diff --git a/packages/sheets-numfmt/src/controllers/numfmt.cell-content.controller.ts b/packages/sheets-numfmt/src/controllers/numfmt.cell-content.controller.ts
index 09cefc557a..491be2fe68 100644
--- a/packages/sheets-numfmt/src/controllers/numfmt.cell-content.controller.ts
+++ b/packages/sheets-numfmt/src/controllers/numfmt.cell-content.controller.ts
@@ -73,7 +73,7 @@ export class NumfmtCellContent extends Disposable {
let numfmtRes: string = '';
const cache = renderCache.getValue(location.row, location.col);
if (cache && cache.parameters === originCellValue.v) {
- return { ...cell, ...cache.result };
+ return next({ ...cell, ...cache.result });
}
const info = getPatternPreview(numfmtValue.pattern, Number(originCellValue.v), this._localeService.getCurrentLocale());
@@ -98,8 +98,7 @@ export class NumfmtCellContent extends Disposable {
result: res,
parameters: originCellValue.v as number,
});
-
- return { ...cell, ...res };
+ return next({ ...cell, ...res });
},
})
);
diff --git a/packages/sheets-numfmt/src/controllers/numfmt.controller.ts b/packages/sheets-numfmt/src/controllers/numfmt.controller.ts
index aa006e6e8f..6bfe117cc0 100644
--- a/packages/sheets-numfmt/src/controllers/numfmt.controller.ts
+++ b/packages/sheets-numfmt/src/controllers/numfmt.controller.ts
@@ -290,6 +290,7 @@ export class NumfmtController extends Disposable implements INumfmtController {
priority: 99,
handler: (cell, location, next) => {
const { row, col } = location;
+ const defaultValue = next(cell) || {};
if (
selectionRanges.find(
(range) =>
@@ -308,26 +309,26 @@ export class NumfmtController extends Disposable implements INumfmtController {
type !== CellValueType.NUMBER ||
this._previewPattern === null
) {
- return next(cell);
+ return defaultValue;
}
const info = getPatternPreview(this._previewPattern, value as number, this._localeService.getCurrentLocale());
if (info.color) {
const colorMap = this._themeService.getCurrentTheme();
const color = colorMap[`${info.color}500`];
return {
- ...cell,
+ ...defaultValue,
v: info.result,
t: CellValueType.STRING,
s: { cl: { rgb: color } },
};
}
return {
- ...cell,
+ ...defaultValue,
v: info.result,
t: CellValueType.STRING,
};
}
- return next(cell);
+ return defaultValue;
},
})
);
diff --git a/packages/sheets/src/services/numfmt/numfmt.service.ts b/packages/sheets/src/services/numfmt/numfmt.service.ts
index 1018332c4f..04af40b2aa 100644
--- a/packages/sheets/src/services/numfmt/numfmt.service.ts
+++ b/packages/sheets/src/services/numfmt/numfmt.service.ts
@@ -34,6 +34,8 @@ import { Subject } from 'rxjs';
import type { FormatType, INumfmtItem, INumfmtService, IRefItem, ISnapshot } from './type';
const SHEET_NUMFMT_PLUGIN = 'SHEET_NUMFMT_PLUGIN';
+const millisecondsPerDay = 24 * 60 * 60 * 1000;
+
@OnLifecycle(LifecycleStages.Starting, NumfmtService)
export class NumfmtService extends Disposable implements INumfmtService {
/**
@@ -271,4 +273,10 @@ export class NumfmtService extends Disposable implements INumfmtService {
const refModel = this._refAliasModel.get(unitId);
return refModel;
}
+
+ serialTimeToTimestamp(serialValue: number, is1900 = true) {
+ const excelBaseDate = new Date('1900-01-01').getTime();
+ const timestamp = (serialValue - (is1900 ? 25569 : 24107)) * millisecondsPerDay + excelBaseDate;
+ return timestamp;
+ }
}
diff --git a/packages/sheets/src/services/numfmt/type.ts b/packages/sheets/src/services/numfmt/type.ts
index 67d5d57f9a..730287e0c4 100644
--- a/packages/sheets/src/services/numfmt/type.ts
+++ b/packages/sheets/src/services/numfmt/type.ts
@@ -67,6 +67,7 @@ export interface INumfmtService {
deleteValues(unitId: string, subUnitId: string, values: IRange[]): void;
getRefModel(unitId: string): Nullable<RefAlias<IRefItem, 'i' | 'pattern'>>;
modelReplace$: Observable<string>;
+ serialTimeToTimestamp: (v: number, is1900?: boolean) => number;
}
export interface ISnapshot {
diff --git a/packages/ui/src/components/menu/Menu.tsx b/packages/ui/src/components/menu/Menu.tsx
index 5db072d005..23fa03e4c4 100644
--- a/packages/ui/src/components/menu/Menu.tsx
+++ b/packages/ui/src/components/menu/Menu.tsx
@@ -136,7 +136,7 @@ function MenuOptionsWrapper(props: IBaseMenuProps) {
});
return (
- <DesignMenuItem key={key} eventKey={key} className={_className} onClick={handleClick}>
+ <DesignMenuItem disabled={option.disabled} key={key} eventKey={key} className={_className} onClick={handleClick}>
<span
className={clsx(styles.menuItemContent, {
[styles.menuItemSelectable]: !(
diff --git a/packages/ui/src/views/components/doc-bars/ToolbarItem.tsx b/packages/ui/src/views/components/doc-bars/ToolbarItem.tsx
index 4f40270637..5de44abb7e 100644
--- a/packages/ui/src/views/components/doc-bars/ToolbarItem.tsx
+++ b/packages/ui/src/views/components/doc-bars/ToolbarItem.tsx
@@ -20,9 +20,9 @@ import { ITextSelectionRenderManager } from '@univerjs/engine-render';
import { MoreDownSingle } from '@univerjs/icons';
import { useDependency, useInjector } from '@wendellhu/redi/react-bindings';
import type { Ref } from 'react';
-import React, { forwardRef, useEffect, useState } from 'react';
+import React, { forwardRef, useEffect, useMemo, useState } from 'react';
import type { Subscription } from 'rxjs';
-import { isObservable } from 'rxjs';
+import { isObservable, Observable } from 'rxjs';
import { ComponentManager } from '../../../common/component-manager';
import { CustomLabel } from '../../../components/custom-label/CustomLabel';
@@ -108,11 +108,29 @@ export const ToolbarItem = forwardRef((props: IDisplayMenuItem<IMenuItem>, ref:
const tooltipTitle = localeService.t(tooltip ?? '') + (shortcut ? ` (${shortcut})` : '');
const { selections } = props as IDisplayMenuItem<IMenuSelectorItem>;
+ const selections$ = useMemo(() => {
+ if (isObservable(selections)) {
+ return selections;
+ } else {
+ return new Observable< typeof selections>((subscribe) => {
+ subscribe.next(selections);
+ });
+ }
+ }, [selections]);
+ const options = useObservable(selections$) as IValueOption[];
- const options = selections as IValueOption[];
+ const icon$ = useMemo(() => {
+ if (isObservable(icon)) {
+ return icon;
+ } else {
+ return new Observable< typeof icon>((subscribe) => {
+ const v = options?.find((o) => o.value === value)?.icon ?? icon;
+ subscribe.next(v);
+ });
+ }
+ }, [icon, options, value]);
- const iconFromObservable = useObservable(isObservable(icon) ? icon : undefined);
- const iconToDisplay = iconFromObservable ?? options?.find((o) => o.value === value)?.icon ?? icon;
+ const iconToDisplay = useObservable(icon$, undefined, true);
function renderSelectorType(menuType: MenuItemType) {
function handleSelect(option: IValueOption) {
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 194fe313df..c6a767d24b 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -139,7 +139,7 @@ importers:
'@storybook/react-webpack5':
specifier: 8.0.4
'@storybook/types':
specifier: ^8.0.4
version: 8.0.4
@@ -166,7 +166,7 @@ importers:
storybook-addon-swc:
specifier: ^1.2.0
- version: 1.2.0(@swc/[email protected])([email protected])
+ version: 1.2.0(@swc/[email protected])([email protected])
style-loader:
specifier: ^3.3.4
version: 3.3.4([email protected])
@@ -216,6 +216,9 @@ importers:
'@univerjs/sheets':
specifier: workspace:*
version: link:../packages/sheets
+ '@univerjs/sheets-conditional-format':
+ specifier: workspace:*
+ version: link:../packages/sheets-conditional-format
'@univerjs/sheets-find-replace':
specifier: workspace:*
version: link:../packages/sheets-find-replace
@@ -767,6 +770,109 @@ importers:
specifier: ^1.4.0
version: 1.4.0(@types/[email protected])([email protected])
+ packages/sheets-conditional-format:
+ dependencies:
+ '@types/lodash.get':
+ specifier: ^4.4.9
+ version: 4.4.9
+ '@types/lodash.set':
+ specifier: ^4.3.9
+ version: 4.3.9
+ '@types/react-grid-layout':
+ specifier: ^1.3.5
+ version: 1.3.5
+ '@univerjs/core':
+ specifier: workspace:*
+ version: link:../core
+ '@univerjs/design':
+ specifier: workspace:*
+ version: link:../design
+ '@univerjs/engine-formula':
+ specifier: workspace:*
+ version: link:../engine-formula
+ '@univerjs/engine-render':
+ specifier: workspace:*
+ version: link:../engine-render
+ '@univerjs/icons':
+ specifier: ^0.1.33
+ '@univerjs/icons-svg':
+ specifier: ^0.1.33
+ version: 0.1.33
+ '@univerjs/sheets':
+ specifier: workspace:*
+ version: link:../sheets
+ '@univerjs/sheets-formula':
+ specifier: workspace:*
+ version: link:../sheets-formula
+ '@univerjs/sheets-ui':
+ specifier: workspace:*
+ version: link:../sheets-ui
+ '@univerjs/ui':
+ specifier: workspace:*
+ version: link:../ui
+ clsx:
+ specifier: ^2.1.0
+ version: 2.1.0
+ dayjs:
+ specifier: ^1.11.10
+ version: 1.11.10
+ lodash.get:
+ specifier: ^4.4.2
+ version: 4.4.2
+ lodash.set:
+ specifier: ^4.3.2
+ version: 4.3.2
+ react:
+ specifier: ^18.2.0
+ version: 18.2.0
+ react-grid-layout:
+ specifier: ^1.4.4
+ react-resizable:
+ specifier: ^3.0.5
+ rxjs:
+ specifier: ^7.8.1
+ version: 7.8.1
+ devDependencies:
+ '@univerjs/shared':
+ specifier: workspace:*
+ version: link:../../common/shared
+ '@vitejs/plugin-react':
+ specifier: ^4.2.1
+ version: 4.2.1([email protected])
+ '@vitest/coverage-istanbul':
+ specifier: ^1.2.1
+ version: 1.2.1([email protected])
+ '@wendellhu/redi':
+ specifier: ^0.13.0
+ version: 0.13.0
+ happy-dom:
+ specifier: ^13.2.1
+ version: 13.2.1
+ less:
+ specifier: ^4.2.0
+ version: 4.2.0
+ sharp:
+ specifier: ^0.33.2
+ version: 0.33.2
+ typescript:
+ specifier: ^5.4.2
+ version: 5.4.2
+ vite:
+ specifier: ^5.0.12
+ version: 5.0.12(@types/[email protected])([email protected])
+ vite-plugin-dts:
+ specifier: ^3.7.1
+ vite-plugin-externals:
+ specifier: ^0.6.2
+ version: 0.6.2([email protected])
+ vitest:
+ specifier: ^1.2.1
+
packages/sheets-find-replace:
devDependencies:
'@univerjs/core':
@@ -1253,7 +1359,7 @@ packages:
engines: {node: '>=6.0.0'}
dependencies:
'@jridgewell/gen-mapping': 0.3.3
- '@jridgewell/trace-mapping': 0.3.22
+ '@jridgewell/trace-mapping': 0.3.20
resolution: {integrity: sha512-9xeY3FIGtnOVlVKn5HraLrA+7sMrFFJkk5yLZPV7QGTyu45x1GtoPs2j+z+tHsyPEblEnPmfcVn/KbiA1N8NLw==}
@@ -1302,7 +1408,7 @@ packages:
'@typescript-eslint/parser': 7.4.0([email protected])([email protected])
eslint: 8.57.0
eslint-config-flat-gitignore: 0.1.3
- eslint-flat-config-utils: 0.1.0
+ eslint-flat-config-utils: 0.1.1
eslint-merge-processors: 0.1.0([email protected])
eslint-plugin-antfu: 2.1.2([email protected])
eslint-plugin-eslint-comments: 3.2.0([email protected])
@@ -1354,6 +1460,14 @@ packages:
default-browser-id: 3.0.0
dev: false
+ resolution: {integrity: sha512-r1IONyb6Ia+jYR2vvIDhdWdlTGhqbBoFqLTQidzZ4kepUFH15ejXvFHxCVbtl7BOXIudsIubf4E81xeA3h3IXA==}
+ engines: {node: '>=6.9.0'}
+ dependencies:
+ '@babel/highlight': 7.23.4
+ chalk: 2.4.2
+ dev: true
+
resolution: {integrity: sha512-CgH3s1a96LipHCmSUmYFPwY7MNx8C3avkq7i4Wl3cfa662ldtUe4VM1TPXX70pfmrlWTb6jLqTYrZyT2ZTJBgA==}
engines: {node: '>=6.9.0'}
@@ -1361,24 +1475,50 @@ packages:
'@babel/highlight': 7.23.4
chalk: 2.4.2
+ resolution: {integrity: sha512-BmR4bWbDIoFJmJ9z2cZ8Gmm2MXgEDgjdWgpKmKWUt54UGFJdlj31ECtbaDvCG/qVdG3AQ1SfpZEs01lUFbzLOQ==}
+ engines: {node: '>=6.9.0'}
+
resolution: {integrity: sha512-uU27kfDRlhfKl+w1U6vp16IuvSLtjAxdArVXPa9BvLkrr7CYIsxH5adpHObeAGY/41+syctUWOZ140a2Rvkgjw==}
engines: {node: '>=6.9.0'}
- resolution: {integrity: sha512-5q0175NOjddqpvvzU+kDiSOAk4PfdO6FvwCWoQ6RO7rTzEe8vlo+4HVfcnAREhD4npMs0e9uZypjTwzZPCf/cw==}
+ resolution: {integrity: sha512-Cwc2XjUrG4ilcfOw4wBAK+enbdgwAcAJCfGUItPBKR7Mjw4aEfAFYrLxeRp4jWgtNIKn3n2AlBOfwwafl+42/g==}
+ engines: {node: '>=6.9.0'}
+ dependencies:
+ '@ampproject/remapping': 2.2.1
+ '@babel/code-frame': 7.23.5
+ '@babel/generator': 7.23.5
+ '@babel/helper-compilation-targets': 7.22.15
+ '@babel/helper-module-transforms': 7.23.3(@babel/[email protected])
+ '@babel/helpers': 7.23.5
+ '@babel/parser': 7.23.5
+ '@babel/template': 7.22.15
+ '@babel/traverse': 7.23.5
+ '@babel/types': 7.23.5
+ convert-source-map: 2.0.0
+ debug: 4.3.4
+ gensync: 1.0.0-beta.2
+ json5: 2.2.3
+ semver: 6.3.1
+ transitivePeerDependencies:
+ - supports-color
+
+ resolution: {integrity: sha512-fQfkg0Gjkza3nf0c7/w6Xf34BW4YvzNfACRLmmb7XRLa6XHdR+K9AlJlxneFfWYf6uhOzuzZVTjF/8KfndZANw==}
engines: {node: '>=6.9.0'}
dependencies:
'@ampproject/remapping': 2.2.1
'@babel/code-frame': 7.23.5
'@babel/generator': 7.23.6
'@babel/helper-compilation-targets': 7.23.6
- '@babel/helper-module-transforms': 7.23.3(@babel/[email protected])
- '@babel/helpers': 7.23.9
- '@babel/parser': 7.23.9
- '@babel/template': 7.23.9
- '@babel/traverse': 7.23.9
- '@babel/types': 7.23.9
+ '@babel/helper-module-transforms': 7.23.3(@babel/[email protected])
+ '@babel/helpers': 7.24.0
+ '@babel/parser': 7.24.0
+ '@babel/template': 7.24.0
+ '@babel/traverse': 7.24.0
+ '@babel/types': 7.24.0
convert-source-map: 2.0.0
debug: 4.3.4
gensync: 1.0.0-beta.2
@@ -1387,75 +1527,94 @@ packages:
transitivePeerDependencies:
- supports-color
+ resolution: {integrity: sha512-BPssCHrBD+0YrxviOa3QzpqwhNIXKEtOa2jQrm4FlmkC2apYgRnQcmPWiGZDlGxiNtltnUFolMe8497Esry+jA==}
+ engines: {node: '>=6.9.0'}
+ dependencies:
+ '@babel/types': 7.23.5
+ '@jridgewell/gen-mapping': 0.3.3
+ '@jridgewell/trace-mapping': 0.3.20
+ jsesc: 2.5.2
+
resolution: {integrity: sha512-qrSfCYxYQB5owCmGLbl8XRpX1ytXlpueOb0N0UmQwA073KZxejgQTzAmJezxvpwQD9uGtK2shHdi55QT+MbjIw==}
engines: {node: '>=6.9.0'}
dependencies:
- '@babel/types': 7.23.9
+ '@babel/types': 7.24.0
'@jridgewell/gen-mapping': 0.3.3
- '@jridgewell/trace-mapping': 0.3.22
+ '@jridgewell/trace-mapping': 0.3.25
jsesc: 2.5.2
resolution: {integrity: sha512-LvBTxu8bQSQkcyKOU+a1btnNFQ1dMAd0R6PyW3arXes06F6QLWLIrd681bxRPIXlrMGR3XYnW9JyML7dP3qgxg==}
engines: {node: '>=6.9.0'}
dependencies:
- '@babel/types': 7.23.9
+ '@babel/types': 7.24.0
dev: false
resolution: {integrity: sha512-QkBXwGgaoC2GtGZRoma6kv7Szfv06khvhFav67ZExau2RaXzy8MpHSMO2PNoP2XtmQphJQRHFfg77Bq731Yizw==}
engines: {node: '>=6.9.0'}
dependencies:
- '@babel/types': 7.23.9
+ '@babel/types': 7.24.0
dev: false
+ resolution: {integrity: sha512-y6EEzULok0Qvz8yyLkCvVX+02ic+By2UdOhylwUOvOn9dvYc9mKICJuuU1n1XBI02YWsNsnrY1kc6DVbjcXbtw==}
+ engines: {node: '>=6.9.0'}
+ dependencies:
+ '@babel/compat-data': 7.23.3
+ '@babel/helper-validator-option': 7.22.15
+ browserslist: 4.22.1
+ lru-cache: 5.1.1
+ semver: 6.3.1
+
resolution: {integrity: sha512-9JB548GZoQVmzrFgp8o7KxdgkTGm6xs9DW0o/Pim72UDjzr5ObUQ6ZzYPqA+g9OTS2bBQoctLJrky0RDCAWRgQ==}
engines: {node: '>=6.9.0'}
dependencies:
'@babel/compat-data': 7.23.5
'@babel/helper-validator-option': 7.23.5
- browserslist: 4.23.0
+ browserslist: 4.22.2
lru-cache: 5.1.1
semver: 6.3.1
- resolution: {integrity: sha512-2XpP2XhkXzgxecPNEEK8Vz8Asj9aRxt08oKOqtiZoqV2UGZ5T+EkyP9sXQ9nwMxBIG34a7jmasVqoMop7VdPUw==}
+ resolution: {integrity: sha512-jKkwA59IXcvSaiK2UN45kKwSC9o+KuoXsBDvHvU/7BecYIp8GQ2UwrVvFgJASUT+hBnwJx6MhvMCuMzwZZ7jlg==}
engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.0.0
dependencies:
- '@babel/core': 7.23.9
+ '@babel/core': 7.24.0
'@babel/helper-annotate-as-pure': 7.22.5
'@babel/helper-environment-visitor': 7.22.20
'@babel/helper-function-name': 7.23.0
'@babel/helper-member-expression-to-functions': 7.23.0
'@babel/helper-optimise-call-expression': 7.22.5
- '@babel/helper-replace-supers': 7.22.20(@babel/[email protected])
+ '@babel/helper-replace-supers': 7.22.20(@babel/[email protected])
'@babel/helper-skip-transparent-expression-wrappers': 7.22.5
'@babel/helper-split-export-declaration': 7.22.6
semver: 6.3.1
dev: false
resolution: {integrity: sha512-29FkPLFjn4TPEa3RE7GpW+qbE8tlsu3jntNYNfcGsc49LphF1PQIiD+vMZ1z1xVOKt+93khA9tc2JBs3kBjA7w==}
engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.0.0
dependencies:
- '@babel/core': 7.23.9
+ '@babel/core': 7.24.0
'@babel/helper-annotate-as-pure': 7.22.5
regexpu-core: 5.3.2
semver: 6.3.1
dev: false
- resolution: {integrity: sha512-NovQquuQLAQ5HuyjCz7WQP9MjRj7dx++yspwiyUiGl9ZyadHRSql1HZh5ogRd8W8w6YM6EQ/NTB8rgjLt5W65Q==}
+ resolution: {integrity: sha512-WBrLmuPP47n7PNwsZ57pqam6G/RGo1vw/87b0Blc53tZNGZ4x7YvZ6HgQe2vo1W/FR20OgjeZuGXzudPiXHFug==}
peerDependencies:
'@babel/core': ^7.4.0 || ^8.0.0-0 <8.0.0
dependencies:
- '@babel/core': 7.23.9
+ '@babel/core': 7.24.0
'@babel/helper-compilation-targets': 7.23.6
'@babel/helper-plugin-utils': 7.22.5
debug: 4.3.4
@@ -1473,35 +1632,48 @@ packages:
resolution: {integrity: sha512-OErEqsrxjZTJciZ4Oo+eoZqeW9UIiOcuYKRJA4ZAgV9myA+pOXhhmpfNCKjEH/auVfEYVFJ6y1Tc4r0eIApqiw==}
engines: {node: '>=6.9.0'}
dependencies:
- '@babel/template': 7.23.9
- '@babel/types': 7.23.9
+ '@babel/template': 7.22.15
+ '@babel/types': 7.23.5
resolution: {integrity: sha512-wGjk9QZVzvknA6yKIUURb8zY3grXCcOZt+/7Wcy8O2uctxhplmUPkOdlgoNhmdVee2c92JXbf1xpMtVNbfoxRw==}
engines: {node: '>=6.9.0'}
dependencies:
- '@babel/types': 7.23.9
+ '@babel/types': 7.23.5
resolution: {integrity: sha512-6gfrPwh7OuT6gZyJZvd6WbTfrqAo7vm4xCzAXOusKqq/vWdKXphTpj5klHKNmRUU6/QRGlBsyU9mAIPaWHlqJA==}
engines: {node: '>=6.9.0'}
dependencies:
- '@babel/types': 7.23.9
+ '@babel/types': 7.24.0
dev: false
resolution: {integrity: sha512-0pYVBnDKZO2fnSPCrgM/6WMc7eS20Fbok+0r88fp+YtWVLZrp4CkafFGIp+W0VKw4a22sgebPT99y+FDNMdP4w==}
engines: {node: '>=6.9.0'}
dependencies:
- '@babel/types': 7.23.9
+ '@babel/types': 7.23.4
+
+ resolution: {integrity: sha512-7bBs4ED9OmswdfDzpz4MpWgSrV7FXlc3zIagvLFjS5H+Mk7Snr21vQ6QwrsoCGMfNC4e4LQPdoULEt4ykz0SRQ==}
+ engines: {node: '>=6.9.0'}
+ peerDependencies:
+ '@babel/core': ^7.0.0
+ dependencies:
+ '@babel/core': 7.23.5
+ '@babel/helper-environment-visitor': 7.22.20
+ '@babel/helper-module-imports': 7.22.15
+ '@babel/helper-simple-access': 7.22.5
+ '@babel/helper-split-export-declaration': 7.22.6
+ '@babel/helper-validator-identifier': 7.22.20
resolution: {integrity: sha512-7bBs4ED9OmswdfDzpz4MpWgSrV7FXlc3zIagvLFjS5H+Mk7Snr21vQ6QwrsoCGMfNC4e4LQPdoULEt4ykz0SRQ==}
engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.0.0
dependencies:
- '@babel/core': 7.23.9
+ '@babel/core': 7.24.0
'@babel/helper-environment-visitor': 7.22.20
'@babel/helper-module-imports': 7.22.15
'@babel/helper-simple-access': 7.22.5
@@ -1512,32 +1684,32 @@ packages:
resolution: {integrity: sha512-HBwaojN0xFRx4yIvpwGqxiV2tUfl7401jlok564NgB9EHS1y6QT17FmKWm4ztqjeVdXLuC4fSvHc5ePpQjoTbw==}
engines: {node: '>=6.9.0'}
dependencies:
- '@babel/types': 7.23.9
+ '@babel/types': 7.24.0
dev: false
resolution: {integrity: sha512-uLls06UVKgFG9QD4OeFYLEGteMIAa5kpTPcFL28yuCIIzsf6ZyKZMllKVOCZFhiZ5ptnwX4mtKdWCBE/uT4amg==}
engines: {node: '>=6.9.0'}
resolution: {integrity: sha512-pBGyV4uBqOns+0UvhsTO8qgl8hO89PmiDYv+/COyp1aeMcmfrfruz+/nCMFiYyFF/Knn0yfrC85ZzNFjembFTw==}
engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.0.0
dependencies:
- '@babel/core': 7.23.9
+ '@babel/core': 7.24.0
'@babel/helper-annotate-as-pure': 7.22.5
'@babel/helper-environment-visitor': 7.22.20
'@babel/helper-wrap-function': 7.22.20
dev: false
resolution: {integrity: sha512-qsW0In3dbwQUbK8kejJ4R7IHVGwHJlV6lpG6UA7a9hSa2YEiAib+N1T2kr6PEeUT+Fl7najmSOS6SmAwCHK6Tw==}
engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.0.0
dependencies:
- '@babel/core': 7.23.9
+ '@babel/core': 7.24.0
'@babel/helper-environment-visitor': 7.22.20
'@babel/helper-member-expression-to-functions': 7.23.0
'@babel/helper-optimise-call-expression': 7.22.5
@@ -1547,20 +1719,20 @@ packages:
resolution: {integrity: sha512-n0H99E/K+Bika3++WNL17POvo4rKWZ7lZEp1Q+fStVbUi8nxPQEBOlTmCOxW/0JsS56SKKQ+ojAe2pHKJHN35w==}
engines: {node: '>=6.9.0'}
dependencies:
- '@babel/types': 7.23.9
+ '@babel/types': 7.23.4
resolution: {integrity: sha512-tK14r66JZKiC43p8Ki33yLBVJKlQDFoA8GYN67lWCDCqoL6EMMSuM9b+Iff2jHaM/RRFYl7K+iiru7hbRqNx8Q==}
engines: {node: '>=6.9.0'}
dependencies:
- '@babel/types': 7.23.9
+ '@babel/types': 7.24.0
dev: false
resolution: {integrity: sha512-AsUnxuLhRYsisFiaJwvp1QF+I3KjD5FOxut14q/GzovUe6orHLesW2C7d754kRm53h5gqrz6sFl6sxc4BVtE/g==}
engines: {node: '>=6.9.0'}
dependencies:
- '@babel/types': 7.23.9
+ '@babel/types': 7.23.5
resolution: {integrity: sha512-803gmbQdqwdf4olxrX4AJyFBV/RTr3rSmOj0rKwesmzlfhYNDEs+/iOcznzpNWlJlIlTJC2QfPFcHB6DlzdVLQ==}
@@ -1570,6 +1742,10 @@ packages:
resolution: {integrity: sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A==}
engines: {node: '>=6.9.0'}
+ resolution: {integrity: sha512-bMn7RmyFjY/mdECUbgn9eoSY4vqvacUnS9i9vGAGttgFWesO6B4CYWA7XlpbWgBt71iv/hfbPlynohStqnu5hA==}
+ engines: {node: '>=6.9.0'}
+
resolution: {integrity: sha512-85ttAOMLsr53VgXkTbkx8oA6YTfT4q7/HzXSLEYmjcSTJPMPQtvq1BD79Byep5xMUYbGRzEpDsjUf3dyp54IKw==}
engines: {node: '>=6.9.0'}
@@ -1579,17 +1755,27 @@ packages:
engines: {node: '>=6.9.0'}
dependencies:
'@babel/helper-function-name': 7.23.0
- '@babel/template': 7.23.9
- '@babel/types': 7.23.9
+ '@babel/template': 7.24.0
+ '@babel/types': 7.24.0
dev: false
- resolution: {integrity: sha512-87ICKgU5t5SzOT7sBMfCOZQ2rHjRU+Pcb9BoILMYz600W6DkVRLFBPwQ18gwUVvggqXivaUakpnxWQGbpywbBQ==}
+ resolution: {integrity: sha512-oO7us8FzTEsG3U6ag9MfdF1iA/7Z6dz+MtFhifZk8C8o453rGJFFWUP1t+ULM9TUIAzC9uxXEiXjOiVMyd7QPg==}
+ engines: {node: '>=6.9.0'}
+ dependencies:
+ '@babel/template': 7.22.15
+ '@babel/traverse': 7.23.5
+ '@babel/types': 7.23.5
+ transitivePeerDependencies:
+ - supports-color
+
+ resolution: {integrity: sha512-ulDZdc0Aj5uLc5nETsa7EPx2L7rM0YJM8r7ck7U73AXi7qOV44IHHRAYZHY6iU1rr3C5N4NtTmMRUJP6kwCWeA==}
engines: {node: '>=6.9.0'}
dependencies:
- '@babel/template': 7.23.9
- '@babel/traverse': 7.23.9
- '@babel/types': 7.23.9
+ '@babel/template': 7.24.0
+ '@babel/traverse': 7.24.0
+ '@babel/types': 7.24.0
transitivePeerDependencies:
- supports-color
@@ -1601,963 +1787,984 @@ packages:
chalk: 2.4.2
js-tokens: 4.0.0
- resolution: {integrity: sha512-9tcKgqKbs3xGJ+NtKF2ndOBBLVwPjl1SHxPQkd36r3Dlirw3xWUeGaTbqr7uGZcTaxkVNwc+03SVP7aCdWrTlA==}
+ resolution: {integrity: sha512-vf3Xna6UEprW+7t6EtOmFpHNAuxw3xqPZghy+brsnusscJRW5BMUzzHZc5ICjULee81WeUV2jjakG09MDglJXQ==}
+ engines: {node: '>=6.0.0'}
+ hasBin: true
+ dependencies:
+ '@babel/types': 7.23.4
+
+ resolution: {integrity: sha512-hOOqoiNXrmGdFbhgCzu6GiURxUgM27Xwd/aPuu8RfHEZPBzL1Z54okAHAQjXfcQNwvrlkAmAp4SlRTZ45vlthQ==}
+ engines: {node: '>=6.0.0'}
+ hasBin: true
+ dependencies:
+ '@babel/types': 7.23.5
+
+ resolution: {integrity: sha512-Z2uID7YJ7oNvAI20O9X0bblw7Qqs8Q2hFy0R9tAfnfLkp5MW0UH9eUvnDSnFwKZ0AvgS1ucqR4KzvVHgnke1VQ==}
+ engines: {node: '>=6.0.0'}
+ hasBin: true
+ dependencies:
+ '@babel/types': 7.23.5
+
+ resolution: {integrity: sha512-QuP/FxEAzMSjXygs8v4N9dvdXzEHN4W1oF3PxuWAtPo08UdM17u89RDMgjLn/mlc56iM0HlLmVkO/wgR+rDgHg==}
engines: {node: '>=6.0.0'}
hasBin: true
dependencies:
- '@babel/types': 7.23.9
+ '@babel/types': 7.24.0
- /@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@7.23.3(@babel/[email protected]):
+ /@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@7.23.3(@babel/[email protected]):
resolution: {integrity: sha512-iRkKcCqb7iGnq9+3G6rZ+Ciz5VywC4XNRHe57lKM+jOeYAoR0lVqdeeDRfh0tQcTfw/+vBhHn926FmQhLtlFLQ==}
engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.0.0
dependencies:
- '@babel/core': 7.23.9
+ '@babel/core': 7.24.0
'@babel/helper-plugin-utils': 7.22.5
dev: false
resolution: {integrity: sha512-WwlxbfMNdVEpQjZmK5mhm7oSwD3dS6eU+Iwsi4Knl9wAletWem7kaRsGOG+8UEbRyqxY4SS5zvtfXwX+jMxUwQ==}
engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.13.0
dependencies:
- '@babel/core': 7.23.9
+ '@babel/core': 7.24.0
'@babel/helper-plugin-utils': 7.22.5
'@babel/helper-skip-transparent-expression-wrappers': 7.22.5
- '@babel/plugin-transform-optional-chaining': 7.23.4(@babel/[email protected])
+ '@babel/plugin-transform-optional-chaining': 7.23.4(@babel/[email protected])
dev: false
- resolution: {integrity: sha512-LlRT7HgaifEpQA1ZgLVOIJZZFVPWN5iReq/7/JixwBtwcoeVGDBD53ZV28rrsLYOZs1Y/EHhA8N/Z6aazHR8cw==}
+ resolution: {integrity: sha512-XaJak1qcityzrX0/IU5nKHb34VaibwP3saKqG6a/tppelgllOH13LUann4ZCIBcVOeE6H18K4Vx9QKkVww3z/w==}
engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.0.0
dependencies:
- '@babel/core': 7.23.9
+ '@babel/core': 7.24.0
'@babel/helper-environment-visitor': 7.22.20
'@babel/helper-plugin-utils': 7.22.5
dev: false
- /@babel/plugin-proposal-private-property-in-object@7.21.0-placeholder-for-preset-env.2(@babel/[email protected]):
+ /@babel/plugin-proposal-private-property-in-object@7.21.0-placeholder-for-preset-env.2(@babel/[email protected]):
resolution: {integrity: sha512-SOSkfJDddaM7mak6cPEpswyTRnuRltl429hMraQEglW+OkovnCzsiszTmsrlY//qLFjCpQDFRvjdm2wA5pPm9w==}
engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.0.0-0
dependencies:
- '@babel/core': 7.23.9
+ '@babel/core': 7.24.0
dev: false
resolution: {integrity: sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==}
peerDependencies:
'@babel/core': ^7.0.0-0
dependencies:
- '@babel/core': 7.23.9
+ '@babel/core': 7.24.0
'@babel/helper-plugin-utils': 7.22.5
dev: false
resolution: {integrity: sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==}
peerDependencies:
'@babel/core': ^7.0.0-0
dependencies:
- '@babel/core': 7.23.9
+ '@babel/core': 7.24.0
'@babel/helper-plugin-utils': 7.22.5
dev: false
resolution: {integrity: sha512-b+YyPmr6ldyNnM6sqYeMWE+bgJcJpO6yS4QD7ymxgH34GBPNDM/THBh8iunyvKIZztiwLH4CJZ0RxTk9emgpjw==}
engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.0.0-0
dependencies:
- '@babel/core': 7.23.9
+ '@babel/core': 7.24.0
'@babel/helper-plugin-utils': 7.22.5
dev: false
resolution: {integrity: sha512-5gdGbFon+PszYzqs83S3E5mpi7/y/8M9eC90MRTZfduQOYW76ig6SOSPNe41IG5LoP3FGBn2N0RjVDSQiS94kQ==}
peerDependencies:
'@babel/core': ^7.0.0-0
dependencies:
- '@babel/core': 7.23.9
+ '@babel/core': 7.24.0
'@babel/helper-plugin-utils': 7.22.5
dev: false
resolution: {integrity: sha512-MXf5laXo6c1IbEbegDmzGPwGNTsHZmEy6QGznu5Sh2UCWvueywb2ee+CCE4zQiZstxU9BMoQO9i6zUFSY0Kj0Q==}
peerDependencies:
'@babel/core': ^7.0.0-0
dependencies:
- '@babel/core': 7.23.9
+ '@babel/core': 7.24.0
'@babel/helper-plugin-utils': 7.22.5
dev: false
resolution: {integrity: sha512-YZiAIpkJAwQXBJLIQbRFayR5c+gJ35Vcz3bg954k7cd73zqjvhacJuL9RbrzPz8qPmZdgqP6EUKwy0PCNhaaPA==}
engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.0.0-0
dependencies:
- '@babel/core': 7.23.9
+ '@babel/core': 7.24.0
'@babel/helper-plugin-utils': 7.22.5
dev: false
resolution: {integrity: sha512-lPgDSU+SJLK3xmFDTV2ZRQAiM7UuUjGidwBywFavObCiZc1BeAAcMtHJKUya92hPHO+at63JJPLygilZard8jw==}
engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.0.0-0
dependencies:
- '@babel/core': 7.23.9
+ '@babel/core': 7.24.0
'@babel/helper-plugin-utils': 7.22.5
dev: false
resolution: {integrity: sha512-pawnE0P9g10xgoP7yKr6CK63K2FMsTE+FZidZO/1PwRdzmAPVs+HS1mAURUsgaoxammTJvULUdIkEK0gOcU2tA==}
engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.0.0-0
dependencies:
- '@babel/core': 7.23.9
+ '@babel/core': 7.24.0
'@babel/helper-plugin-utils': 7.22.5
dev: false
resolution: {integrity: sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==}
peerDependencies:
'@babel/core': ^7.0.0-0
dependencies:
- '@babel/core': 7.23.9
+ '@babel/core': 7.24.0
'@babel/helper-plugin-utils': 7.22.5
dev: false
resolution: {integrity: sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==}
peerDependencies:
'@babel/core': ^7.0.0-0
dependencies:
- '@babel/core': 7.23.9
+ '@babel/core': 7.24.0
'@babel/helper-plugin-utils': 7.22.5
dev: false
resolution: {integrity: sha512-EB2MELswq55OHUoRZLGg/zC7QWUKfNLpE57m/S2yr1uEneIgsTgrSzXP3NXEsMkVn76OlaVVnzN+ugObuYGwhg==}
engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.0.0-0
dependencies:
- '@babel/core': 7.23.9
+ '@babel/core': 7.24.0
'@babel/helper-plugin-utils': 7.22.5
dev: false
resolution: {integrity: sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==}
peerDependencies:
'@babel/core': ^7.0.0-0
dependencies:
- '@babel/core': 7.23.9
+ '@babel/core': 7.24.0
'@babel/helper-plugin-utils': 7.22.5
dev: false
resolution: {integrity: sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==}
peerDependencies:
'@babel/core': ^7.0.0-0
dependencies:
- '@babel/core': 7.23.9
+ '@babel/core': 7.24.0
'@babel/helper-plugin-utils': 7.22.5
dev: false
resolution: {integrity: sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==}
peerDependencies:
'@babel/core': ^7.0.0-0
dependencies:
- '@babel/core': 7.23.9
+ '@babel/core': 7.24.0
'@babel/helper-plugin-utils': 7.22.5
dev: false
resolution: {integrity: sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==}
peerDependencies:
'@babel/core': ^7.0.0-0
dependencies:
- '@babel/core': 7.23.9
+ '@babel/core': 7.24.0
'@babel/helper-plugin-utils': 7.22.5
dev: false
resolution: {integrity: sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==}
peerDependencies:
'@babel/core': ^7.0.0-0
dependencies:
- '@babel/core': 7.23.9
+ '@babel/core': 7.24.0
'@babel/helper-plugin-utils': 7.22.5
dev: false
resolution: {integrity: sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==}
peerDependencies:
'@babel/core': ^7.0.0-0
dependencies:
- '@babel/core': 7.23.9
+ '@babel/core': 7.24.0
'@babel/helper-plugin-utils': 7.22.5
dev: false
resolution: {integrity: sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg==}
engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.0.0-0
dependencies:
- '@babel/core': 7.23.9
+ '@babel/core': 7.24.0
'@babel/helper-plugin-utils': 7.22.5
dev: false
resolution: {integrity: sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==}
engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.0.0-0
dependencies:
- '@babel/core': 7.23.9
+ '@babel/core': 7.24.0
'@babel/helper-plugin-utils': 7.22.5
dev: false
resolution: {integrity: sha512-9EiNjVJOMwCO+43TqoTrgQ8jMwcAd0sWyXi9RPfIsLTj4R2MADDDQXELhffaUx/uJv2AYcxBgPwH6j4TIA4ytQ==}
engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.0.0-0
dependencies:
- '@babel/core': 7.23.9
+ '@babel/core': 7.24.0
'@babel/helper-plugin-utils': 7.22.5
dev: false
resolution: {integrity: sha512-727YkEAPwSIQTv5im8QHz3upqp92JTWhidIC81Tdx4VJYIte/VndKf1qKrfnnhPLiPghStWfvC/iFaMCQu7Nqg==}
engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.0.0
dependencies:
- '@babel/core': 7.23.9
- '@babel/helper-create-regexp-features-plugin': 7.22.15(@babel/[email protected])
+ '@babel/core': 7.24.0
+ '@babel/helper-create-regexp-features-plugin': 7.22.15(@babel/[email protected])
'@babel/helper-plugin-utils': 7.22.5
dev: false
resolution: {integrity: sha512-NzQcQrzaQPkaEwoTm4Mhyl8jI1huEL/WWIEvudjTCMJ9aBZNpsJbMASx7EQECtQQPS/DcnFpo0FIh3LvEO9cxQ==}
engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.0.0-0
dependencies:
- '@babel/core': 7.23.9
+ '@babel/core': 7.24.0
'@babel/helper-plugin-utils': 7.22.5
dev: false
- resolution: {integrity: sha512-8Q3veQEDGe14dTYuwagbRtwxQDnytyg1JFu4/HwEMETeofocrB0U0ejBJIXoeG/t2oXZ8kzCyI0ZZfbT80VFNQ==}
+ resolution: {integrity: sha512-efdkfPhHYTtn0G6n2ddrESE91fgXxjlqLsnUtPWnJs4a4mZIbUaK7ffqKIIUKXSHwcDvaCVX6GXkaJJFqtX7jw==}
engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.0.0-0
dependencies:
- '@babel/core': 7.23.9
+ '@babel/core': 7.24.0
'@babel/helper-environment-visitor': 7.22.20
'@babel/helper-plugin-utils': 7.22.5
- '@babel/helper-remap-async-to-generator': 7.22.20(@babel/[email protected])
- '@babel/plugin-syntax-async-generators': 7.8.4(@babel/[email protected])
+ '@babel/helper-remap-async-to-generator': 7.22.20(@babel/[email protected])
+ '@babel/plugin-syntax-async-generators': 7.8.4(@babel/[email protected])
dev: false
resolution: {integrity: sha512-A7LFsKi4U4fomjqXJlZg/u0ft/n8/7n7lpffUP/ZULx/DtV9SGlNKZolHH6PE8Xl1ngCc0M11OaeZptXVkfKSw==}
engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.0.0-0
dependencies:
- '@babel/core': 7.23.9
+ '@babel/core': 7.24.0
'@babel/helper-module-imports': 7.22.15
'@babel/helper-plugin-utils': 7.22.5
- '@babel/helper-remap-async-to-generator': 7.22.20(@babel/[email protected])
+ '@babel/helper-remap-async-to-generator': 7.22.20(@babel/[email protected])
dev: false
resolution: {integrity: sha512-vI+0sIaPIO6CNuM9Kk5VmXcMVRiOpDh7w2zZt9GXzmE/9KD70CUEVhvPR/etAeNK/FAEkhxQtXOzVF3EuRL41A==}
engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.0.0-0
dependencies:
- '@babel/core': 7.23.9
+ '@babel/core': 7.24.0
'@babel/helper-plugin-utils': 7.22.5
dev: false
resolution: {integrity: sha512-0QqbP6B6HOh7/8iNR4CQU2Th/bbRtBp4KS9vcaZd1fZ0wSh5Fyssg0UCIHwxh+ka+pNDREbVLQnHCMHKZfPwfw==}
engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.0.0-0
dependencies:
- '@babel/core': 7.23.9
+ '@babel/core': 7.24.0
'@babel/helper-plugin-utils': 7.22.5
dev: false
resolution: {integrity: sha512-uM+AN8yCIjDPccsKGlw271xjJtGii+xQIF/uMPS8H15L12jZTsLfF4o5vNO7d/oUguOyfdikHGc/yi9ge4SGIg==}
engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.0.0-0
dependencies:
- '@babel/core': 7.23.9
- '@babel/helper-create-class-features-plugin': 7.23.10(@babel/[email protected])
+ '@babel/core': 7.24.0
+ '@babel/helper-create-class-features-plugin': 7.22.15(@babel/[email protected])
'@babel/helper-plugin-utils': 7.22.5
dev: false
resolution: {integrity: sha512-nsWu/1M+ggti1SOALj3hfx5FXzAY06fwPJsUZD4/A5e1bWi46VUIWtD+kOX6/IdhXGsXBWllLFDSnqSCdUNydQ==}
engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.12.0
dependencies:
- '@babel/core': 7.23.9
- '@babel/helper-create-class-features-plugin': 7.23.10(@babel/[email protected])
+ '@babel/core': 7.24.0
+ '@babel/helper-create-class-features-plugin': 7.22.15(@babel/[email protected])
'@babel/helper-plugin-utils': 7.22.5
- '@babel/plugin-syntax-class-static-block': 7.14.5(@babel/[email protected])
+ '@babel/plugin-syntax-class-static-block': 7.14.5(@babel/[email protected])
dev: false
- resolution: {integrity: sha512-yAYslGsY1bX6Knmg46RjiCiNSwJKv2IUC8qOdYKqMMr0491SXFhcHqOdRDeCRohOOIzwN/90C6mQ9qAKgrP7dg==}
+ resolution: {integrity: sha512-FGEQmugvAEu2QtgtU0uTASXevfLMFfBeVCIIdcQhn/uBQsMTjBajdnAtanQlOcuihWh10PZ7+HWvc7NtBwP74w==}
engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.0.0-0
dependencies:
- '@babel/core': 7.23.9
+ '@babel/core': 7.24.0
'@babel/helper-annotate-as-pure': 7.22.5
'@babel/helper-compilation-targets': 7.23.6
'@babel/helper-environment-visitor': 7.22.20
'@babel/helper-function-name': 7.23.0
+ '@babel/helper-optimise-call-expression': 7.22.5
'@babel/helper-plugin-utils': 7.22.5
- '@babel/helper-replace-supers': 7.22.20(@babel/[email protected])
+ '@babel/helper-replace-supers': 7.22.20(@babel/[email protected])
'@babel/helper-split-export-declaration': 7.22.6
globals: 11.12.0
dev: false
resolution: {integrity: sha512-dTj83UVTLw/+nbiHqQSFdwO9CbTtwq1DsDqm3CUEtDrZNET5rT5E6bIdTlOftDTDLMYxvxHNEYO4B9SLl8SLZw==}
engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.0.0-0
dependencies:
- '@babel/core': 7.23.9
+ '@babel/core': 7.24.0
'@babel/helper-plugin-utils': 7.22.5
- '@babel/template': 7.23.9
+ '@babel/template': 7.24.0
dev: false
resolution: {integrity: sha512-n225npDqjDIr967cMScVKHXJs7rout1q+tt50inyBCPkyZ8KxeI6d+GIbSBTT/w/9WdlWDOej3V9HE5Lgk57gw==}
engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.0.0-0
dependencies:
- '@babel/core': 7.23.9
+ '@babel/core': 7.24.0
'@babel/helper-plugin-utils': 7.22.5
dev: false
resolution: {integrity: sha512-vgnFYDHAKzFaTVp+mneDsIEbnJ2Np/9ng9iviHw3P/KVcgONxpNULEW/51Z/BaFojG2GI2GwwXck5uV1+1NOYQ==}
engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.0.0-0
dependencies:
- '@babel/core': 7.23.9
- '@babel/helper-create-regexp-features-plugin': 7.22.15(@babel/[email protected])
+ '@babel/core': 7.24.0
+ '@babel/helper-create-regexp-features-plugin': 7.22.15(@babel/[email protected])
'@babel/helper-plugin-utils': 7.22.5
dev: false
resolution: {integrity: sha512-RrqQ+BQmU3Oyav3J+7/myfvRCq7Tbz+kKLLshUmMwNlDHExbGL7ARhajvoBJEvc+fCguPPu887N+3RRXBVKZUA==}
engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.0.0-0
dependencies:
- '@babel/core': 7.23.9
+ '@babel/core': 7.24.0
'@babel/helper-plugin-utils': 7.22.5
dev: false
resolution: {integrity: sha512-V6jIbLhdJK86MaLh4Jpghi8ho5fGzt3imHOBu/x0jlBaPYqDoWz4RDXjmMOfnh+JWNaQleEAByZLV0QzBT4YQQ==}
engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.0.0-0
dependencies:
- '@babel/core': 7.23.9
+ '@babel/core': 7.24.0
'@babel/helper-plugin-utils': 7.22.5
- '@babel/plugin-syntax-dynamic-import': 7.8.3(@babel/[email protected])
+ '@babel/plugin-syntax-dynamic-import': 7.8.3(@babel/[email protected])
dev: false
resolution: {integrity: sha512-5fhCsl1odX96u7ILKHBj4/Y8vipoqwsJMh4csSA8qFfxrZDEA4Ssku2DyNvMJSmZNOEBT750LfFPbtrnTP90BQ==}
engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.0.0-0
dependencies:
- '@babel/core': 7.23.9
+ '@babel/core': 7.24.0
'@babel/helper-builder-binary-assignment-operator-visitor': 7.22.15
'@babel/helper-plugin-utils': 7.22.5
dev: false
resolution: {integrity: sha512-GzuSBcKkx62dGzZI1WVgTWvkkz84FZO5TC5T8dl/Tht/rAla6Dg/Mz9Yhypg+ezVACf/rgDuQt3kbWEv7LdUDQ==}
engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.0.0-0
dependencies:
- '@babel/core': 7.23.9
+ '@babel/core': 7.24.0
'@babel/helper-plugin-utils': 7.22.5
- '@babel/plugin-syntax-export-namespace-from': 7.8.3(@babel/[email protected])
+ '@babel/plugin-syntax-export-namespace-from': 7.8.3(@babel/[email protected])
dev: false
resolution: {integrity: sha512-26/pQTf9nQSNVJCrLB1IkHUKyPxR+lMrH2QDPG89+Znu9rAMbtrybdbWeE9bb7gzjmE5iXHEY+e0HUwM6Co93Q==}
engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.0.0-0
dependencies:
- '@babel/core': 7.23.9
+ '@babel/core': 7.24.0
'@babel/helper-plugin-utils': 7.22.5
- '@babel/plugin-syntax-flow': 7.23.3(@babel/[email protected])
+ '@babel/plugin-syntax-flow': 7.23.3(@babel/[email protected])
dev: false
- resolution: {integrity: sha512-aYH4ytZ0qSuBbpfhuofbg/e96oQ7U2w1Aw/UQmKT+1l39uEhUPoFS3fHevDc1G0OvewyDudfMKY1OulczHzWIw==}
+ resolution: {integrity: sha512-X8jSm8X1CMwxmK878qsUGJRmbysKNbdpTv/O1/v0LuY/ZkZrng5WYiekYSdg9m09OTmDDUWeEDsTE+17WYbAZw==}
engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.0.0-0
dependencies:
- '@babel/core': 7.23.9
+ '@babel/core': 7.24.0
'@babel/helper-plugin-utils': 7.22.5
- '@babel/helper-skip-transparent-expression-wrappers': 7.22.5
dev: false
resolution: {integrity: sha512-I1QXp1LxIvt8yLaib49dRW5Okt7Q4oaxao6tFVKS/anCdEOMtYwWVKoiOA1p34GOWIZjUK0E+zCp7+l1pfQyiw==}
engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.0.0-0
dependencies:
- '@babel/core': 7.23.9
+ '@babel/core': 7.24.0
'@babel/helper-compilation-targets': 7.23.6
'@babel/helper-function-name': 7.23.0
'@babel/helper-plugin-utils': 7.22.5
dev: false
resolution: {integrity: sha512-81nTOqM1dMwZ/aRXQ59zVubN9wHGqk6UtqRK+/q+ciXmRy8fSolhGVvG09HHRGo4l6fr/c4ZhXUQH0uFW7PZbg==}
engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.0.0-0
dependencies:
- '@babel/core': 7.23.9
+ '@babel/core': 7.24.0
'@babel/helper-plugin-utils': 7.22.5
- '@babel/plugin-syntax-json-strings': 7.8.3(@babel/[email protected])
+ '@babel/plugin-syntax-json-strings': 7.8.3(@babel/[email protected])
dev: false
resolution: {integrity: sha512-wZ0PIXRxnwZvl9AYpqNUxpZ5BiTGrYt7kueGQ+N5FiQ7RCOD4cm8iShd6S6ggfVIWaJf2EMk8eRzAh52RfP4rQ==}
engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.0.0-0
dependencies:
- '@babel/core': 7.23.9
+ '@babel/core': 7.24.0
'@babel/helper-plugin-utils': 7.22.5
dev: false
resolution: {integrity: sha512-Mc/ALf1rmZTP4JKKEhUwiORU+vcfarFVLfcFiolKUo6sewoxSEgl36ak5t+4WamRsNr6nzjZXQjM35WsU+9vbg==}
engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.0.0-0
dependencies:
- '@babel/core': 7.23.9
+ '@babel/core': 7.24.0
'@babel/helper-plugin-utils': 7.22.5
- '@babel/plugin-syntax-logical-assignment-operators': 7.10.4(@babel/[email protected])
+ '@babel/plugin-syntax-logical-assignment-operators': 7.10.4(@babel/[email protected])
dev: false
resolution: {integrity: sha512-sC3LdDBDi5x96LA+Ytekz2ZPk8i/Ck+DEuDbRAll5rknJ5XRTSaPKEYwomLcs1AA8wg9b3KjIQRsnApj+q51Ag==}
engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.0.0-0
dependencies:
- '@babel/core': 7.23.9
+ '@babel/core': 7.24.0
'@babel/helper-plugin-utils': 7.22.5
dev: false
resolution: {integrity: sha512-vJYQGxeKM4t8hYCKVBlZX/gtIY2I7mRGFNcm85sgXGMTBcoV3QdVtdpbcWEbzbfUIUZKwvgFT82mRvaQIebZzw==}
engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.0.0-0
dependencies:
- '@babel/core': 7.23.9
- '@babel/helper-module-transforms': 7.23.3(@babel/[email protected])
+ '@babel/core': 7.24.0
+ '@babel/helper-module-transforms': 7.23.3(@babel/[email protected])
'@babel/helper-plugin-utils': 7.22.5
dev: false
resolution: {integrity: sha512-aVS0F65LKsdNOtcz6FRCpE4OgsP2OFnW46qNxNIX9h3wuzaNcSQsJysuMwqSibC98HPrf2vCgtxKNwS0DAlgcA==}
engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.0.0-0
dependencies:
- '@babel/core': 7.23.9
- '@babel/helper-module-transforms': 7.23.3(@babel/[email protected])
+ '@babel/core': 7.24.0
+ '@babel/helper-module-transforms': 7.23.3(@babel/[email protected])
'@babel/helper-plugin-utils': 7.22.5
'@babel/helper-simple-access': 7.22.5
dev: false
- resolution: {integrity: sha512-KDlPRM6sLo4o1FkiSlXoAa8edLXFsKKIda779fbLrvmeuc3itnjCtaO6RrtoaANsIJANj+Vk1zqbZIMhkCAHVw==}
+ resolution: {integrity: sha512-ZxyKGTkF9xT9YJuKQRo19ewf3pXpopuYQd8cDXqNzc3mUNbOME0RKMoZxviQk74hwzfQsEe66dE92MaZbdHKNQ==}
engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.0.0-0
dependencies:
- '@babel/core': 7.23.9
+ '@babel/core': 7.24.0
'@babel/helper-hoist-variables': 7.22.5
- '@babel/helper-module-transforms': 7.23.3(@babel/[email protected])
+ '@babel/helper-module-transforms': 7.23.3(@babel/[email protected])
'@babel/helper-plugin-utils': 7.22.5
'@babel/helper-validator-identifier': 7.22.20
dev: false
resolution: {integrity: sha512-zHsy9iXX2nIsCBFPud3jKn1IRPWg3Ing1qOZgeKV39m1ZgIdpJqvlWVeiHBZC6ITRG0MfskhYe9cLgntfSFPIg==}
engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.0.0-0
dependencies:
- '@babel/core': 7.23.9
- '@babel/helper-module-transforms': 7.23.3(@babel/[email protected])
+ '@babel/core': 7.24.0
+ '@babel/helper-module-transforms': 7.23.3(@babel/[email protected])
'@babel/helper-plugin-utils': 7.22.5
dev: false
resolution: {integrity: sha512-YgLLKmS3aUBhHaxp5hi1WJTgOUb/NCuDHzGT9z9WTt3YG+CPRhJs6nprbStx6DnWM4dh6gt7SU3sZodbZ08adQ==}
engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.0.0
dependencies:
- '@babel/core': 7.23.9
- '@babel/helper-create-regexp-features-plugin': 7.22.15(@babel/[email protected])
+ '@babel/core': 7.24.0
+ '@babel/helper-create-regexp-features-plugin': 7.22.15(@babel/[email protected])
'@babel/helper-plugin-utils': 7.22.5
dev: false
resolution: {integrity: sha512-YJ3xKqtJMAT5/TIZnpAR3I+K+WaDowYbN3xyxI8zxx/Gsypwf9B9h0VB+1Nh6ACAAPRS5NSRje0uVv5i79HYGQ==}
engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.0.0-0
dependencies:
- '@babel/core': 7.23.9
+ '@babel/core': 7.24.0
'@babel/helper-plugin-utils': 7.22.5
dev: false
resolution: {integrity: sha512-jHE9EVVqHKAQx+VePv5LLGHjmHSJR76vawFPTdlxR/LVJPfOEGxREQwQfjuZEOPTwG92X3LINSh3M40Rv4zpVA==}
engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.0.0-0
dependencies:
- '@babel/core': 7.23.9
+ '@babel/core': 7.24.0
'@babel/helper-plugin-utils': 7.22.5
- '@babel/plugin-syntax-nullish-coalescing-operator': 7.8.3(@babel/[email protected])
+ '@babel/plugin-syntax-nullish-coalescing-operator': 7.8.3(@babel/[email protected])
dev: false
resolution: {integrity: sha512-mps6auzgwjRrwKEZA05cOwuDc9FAzoyFS4ZsG/8F43bTLf/TgkJg7QXOrPO1JO599iA3qgK9MXdMGOEC8O1h6Q==}
engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.0.0-0
dependencies:
- '@babel/core': 7.23.9
+ '@babel/core': 7.24.0
'@babel/helper-plugin-utils': 7.22.5
- '@babel/plugin-syntax-numeric-separator': 7.10.4(@babel/[email protected])
+ '@babel/plugin-syntax-numeric-separator': 7.10.4(@babel/[email protected])
dev: false
resolution: {integrity: sha512-9x9K1YyeQVw0iOXJlIzwm8ltobIIv7j2iLyP2jIhEbqPRQ7ScNgwQufU2I0Gq11VjyG4gI4yMXt2VFags+1N3g==}
engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.0.0-0
dependencies:
'@babel/compat-data': 7.23.5
- '@babel/core': 7.23.9
+ '@babel/core': 7.24.0
'@babel/helper-compilation-targets': 7.23.6
'@babel/helper-plugin-utils': 7.22.5
- '@babel/plugin-syntax-object-rest-spread': 7.8.3(@babel/[email protected])
- '@babel/plugin-transform-parameters': 7.23.3(@babel/[email protected])
+ '@babel/plugin-syntax-object-rest-spread': 7.8.3(@babel/[email protected])
+ '@babel/plugin-transform-parameters': 7.23.3(@babel/[email protected])
dev: false
resolution: {integrity: sha512-BwQ8q0x2JG+3lxCVFohg+KbQM7plfpBwThdW9A6TMtWwLsbDA01Ek2Zb/AgDN39BiZsExm4qrXxjk+P1/fzGrA==}
engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.0.0-0
dependencies:
- '@babel/core': 7.23.9
+ '@babel/core': 7.24.0
'@babel/helper-plugin-utils': 7.22.5
- '@babel/helper-replace-supers': 7.22.20(@babel/[email protected])
+ '@babel/helper-replace-supers': 7.22.20(@babel/[email protected])
dev: false
resolution: {integrity: sha512-XIq8t0rJPHf6Wvmbn9nFxU6ao4c7WhghTR5WyV8SrJfUFzyxhCm4nhC+iAp3HFhbAKLfYpgzhJ6t4XCtVwqO5A==}
engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.0.0-0
dependencies:
- '@babel/core': 7.23.9
+ '@babel/core': 7.24.0
'@babel/helper-plugin-utils': 7.22.5
- '@babel/plugin-syntax-optional-catch-binding': 7.8.3(@babel/[email protected])
+ '@babel/plugin-syntax-optional-catch-binding': 7.8.3(@babel/[email protected])
dev: false
resolution: {integrity: sha512-ZU8y5zWOfjM5vZ+asjgAPwDaBjJzgufjES89Rs4Lpq63O300R/kOz30WCLo6BxxX6QVEilwSlpClnG5cZaikTA==}
engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.0.0-0
dependencies:
- '@babel/core': 7.23.9
+ '@babel/core': 7.24.0
'@babel/helper-plugin-utils': 7.22.5
'@babel/helper-skip-transparent-expression-wrappers': 7.22.5
- '@babel/plugin-syntax-optional-chaining': 7.8.3(@babel/[email protected])
+ '@babel/plugin-syntax-optional-chaining': 7.8.3(@babel/[email protected])
dev: false
resolution: {integrity: sha512-09lMt6UsUb3/34BbECKVbVwrT9bO6lILWln237z7sLaWnMsTi7Yc9fhX5DLpkJzAGfaReXI22wP41SZmnAA3Vw==}
engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.0.0-0
dependencies:
- '@babel/core': 7.23.9
+ '@babel/core': 7.24.0
'@babel/helper-plugin-utils': 7.22.5
dev: false
resolution: {integrity: sha512-UzqRcRtWsDMTLrRWFvUBDwmw06tCQH9Rl1uAjfh6ijMSmGYQ+fpdB+cnqRC8EMh5tuuxSv0/TejGL+7vyj+50g==}
engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.0.0-0
dependencies:
- '@babel/core': 7.23.9
- '@babel/helper-create-class-features-plugin': 7.23.10(@babel/[email protected])
+ '@babel/core': 7.24.0
+ '@babel/helper-create-class-features-plugin': 7.22.15(@babel/[email protected])
'@babel/helper-plugin-utils': 7.22.5
dev: false
resolution: {integrity: sha512-9G3K1YqTq3F4Vt88Djx1UZ79PDyj+yKRnUy7cZGSMe+a7jkwD259uKKuUzQlPkGam7R+8RJwh5z4xO27fA1o2A==}
engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.0.0-0
dependencies:
- '@babel/core': 7.23.9
+ '@babel/core': 7.24.0
'@babel/helper-annotate-as-pure': 7.22.5
- '@babel/helper-create-class-features-plugin': 7.23.10(@babel/[email protected])
+ '@babel/helper-create-class-features-plugin': 7.22.15(@babel/[email protected])
'@babel/helper-plugin-utils': 7.22.5
- '@babel/plugin-syntax-private-property-in-object': 7.14.5(@babel/[email protected])
+ '@babel/plugin-syntax-private-property-in-object': 7.14.5(@babel/[email protected])
dev: false
resolution: {integrity: sha512-jR3Jn3y7cZp4oEWPFAlRsSWjxKe4PZILGBSd4nis1TsC5qeSpb+nrtihJuDhNI7QHiVbUaiXa0X2RZY3/TI6Nw==}
engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.0.0-0
dependencies:
- '@babel/core': 7.23.9
+ '@babel/core': 7.24.0
'@babel/helper-plugin-utils': 7.22.5
dev: false
resolution: {integrity: sha512-qXRvbeKDSfwnlJnanVRp0SfuWE5DQhwQr5xtLBzp56Wabyo+4CMosF6Kfp+eOD/4FYpql64XVJ2W0pVLlJZxOQ==}
engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.0.0-0
dependencies:
- '@babel/core': 7.23.9
+ '@babel/core': 7.23.5
'@babel/helper-plugin-utils': 7.22.5
resolution: {integrity: sha512-91RS0MDnAWDNvGC6Wio5XYkyWI39FMFO+JK9+4AlgaTH+yWwVTsw7/sn6LK0lH7c5F+TFkpv/3LfCJ1Ydwof/g==}
engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.0.0-0
dependencies:
- '@babel/core': 7.23.9
+ '@babel/core': 7.23.5
'@babel/helper-plugin-utils': 7.22.5
resolution: {integrity: sha512-KP+75h0KghBMcVpuKisx3XTu9Ncut8Q8TuvGO4IhY+9D5DFEckQefOuIsB/gQ2tG71lCke4NMrtIPS8pOj18BQ==}
engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.0.0-0
dependencies:
- '@babel/core': 7.23.9
+ '@babel/core': 7.24.0
'@babel/helper-plugin-utils': 7.22.5
regenerator-transform: 0.15.2
dev: false
resolution: {integrity: sha512-QnNTazY54YqgGxwIexMZva9gqbPa15t/x9VS+0fsEFWplwVpXYZivtgl43Z1vMpc1bdPP2PP8siFeVcnFvA3Cg==}
engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.0.0-0
dependencies:
- '@babel/core': 7.23.9
+ '@babel/core': 7.24.0
'@babel/helper-plugin-utils': 7.22.5
dev: false
resolution: {integrity: sha512-ED2fgqZLmexWiN+YNFX26fx4gh5qHDhn1O2gvEhreLW2iI63Sqm4llRLCXALKrCnbN4Jy0VcMQZl/SAzqug/jg==}
engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.0.0-0
dependencies:
- '@babel/core': 7.23.9
+ '@babel/core': 7.24.0
'@babel/helper-plugin-utils': 7.22.5
dev: false
resolution: {integrity: sha512-VvfVYlrlBVu+77xVTOAoxQ6mZbnIq5FM0aGBSFEcIh03qHf+zNqA4DC/3XMUozTg7bZV3e3mZQ0i13VB6v5yUg==}
engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.0.0-0
dependencies:
- '@babel/core': 7.23.9
+ '@babel/core': 7.24.0
'@babel/helper-plugin-utils': 7.22.5
'@babel/helper-skip-transparent-expression-wrappers': 7.22.5
dev: false
resolution: {integrity: sha512-HZOyN9g+rtvnOU3Yh7kSxXrKbzgrm5X4GncPY1QOquu7epga5MxKHVpYu2hvQnry/H+JjckSYRb93iNfsioAGg==}
engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.0.0-0
dependencies:
- '@babel/core': 7.23.9
+ '@babel/core': 7.24.0
'@babel/helper-plugin-utils': 7.22.5
dev: false
resolution: {integrity: sha512-Flok06AYNp7GV2oJPZZcP9vZdszev6vPBkHLwxwSpaIqx75wn6mUd3UFWsSsA0l8nXAKkyCmL/sR02m8RYGeHg==}
engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.0.0-0
dependencies:
- '@babel/core': 7.23.9
+ '@babel/core': 7.24.0
'@babel/helper-plugin-utils': 7.22.5
dev: false
resolution: {integrity: sha512-4t15ViVnaFdrPC74be1gXBSMzXk3B4Us9lP7uLRQHTFpV5Dvt33pn+2MyyNxmN3VTTm3oTrZVMUmuw3oBnQ2oQ==}
engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.0.0-0
dependencies:
- '@babel/core': 7.23.9
+ '@babel/core': 7.24.0
'@babel/helper-plugin-utils': 7.22.5
dev: false
- resolution: {integrity: sha512-6cBG5mBvUu4VUD04OHKnYzbuHNP8huDsD3EDqqpIpsswTDoqHCjLoHb6+QgsV1WsT2nipRqCPgxD3LXnEO7XfA==}
+ resolution: {integrity: sha512-39hCCOl+YUAyMOu6B9SmUTiHUU0t/CxJNUmY3qRdJujbqi+lrQcL11ysYUsAvFWPBdhihrv1z0oRG84Yr3dODQ==}
engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.0.0-0
dependencies:
- '@babel/core': 7.23.9
+ '@babel/core': 7.24.0
'@babel/helper-annotate-as-pure': 7.22.5
- '@babel/helper-create-class-features-plugin': 7.23.10(@babel/[email protected])
+ '@babel/helper-create-class-features-plugin': 7.22.15(@babel/[email protected])
'@babel/helper-plugin-utils': 7.22.5
- '@babel/plugin-syntax-typescript': 7.23.3(@babel/[email protected])
+ '@babel/plugin-syntax-typescript': 7.23.3(@babel/[email protected])
dev: false
resolution: {integrity: sha512-OMCUx/bU6ChE3r4+ZdylEqAjaQgHAgipgW8nsCfu5pGqDcFytVd91AwRvUJSBZDz0exPGgnjoqhgRYLRjFZc9Q==}
engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.0.0-0
dependencies:
- '@babel/core': 7.23.9
+ '@babel/core': 7.24.0
'@babel/helper-plugin-utils': 7.22.5
dev: false
resolution: {integrity: sha512-KcLIm+pDZkWZQAFJ9pdfmh89EwVfmNovFBcXko8szpBeF8z68kWIPeKlmSOkT9BXJxs2C0uk+5LxoxIv62MROA==}
engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.0.0-0
dependencies:
- '@babel/core': 7.23.9
- '@babel/helper-create-regexp-features-plugin': 7.22.15(@babel/[email protected])
+ '@babel/core': 7.24.0
+ '@babel/helper-create-regexp-features-plugin': 7.22.15(@babel/[email protected])
'@babel/helper-plugin-utils': 7.22.5
dev: false
resolution: {integrity: sha512-wMHpNA4x2cIA32b/ci3AfwNgheiva2W0WUKWTK7vBHBhDKfPsc5cFGNWm69WBqpwd86u1qwZ9PWevKqm1A3yAw==}
engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.0.0-0
dependencies:
- '@babel/core': 7.23.9
- '@babel/helper-create-regexp-features-plugin': 7.22.15(@babel/[email protected])
+ '@babel/core': 7.24.0
+ '@babel/helper-create-regexp-features-plugin': 7.22.15(@babel/[email protected])
'@babel/helper-plugin-utils': 7.22.5
dev: false
resolution: {integrity: sha512-W7lliA/v9bNR83Qc3q1ip9CQMZ09CcHDbHfbLRDNuAhn1Mvkr1ZNF7hPmztMQvtTGVLJ9m8IZqWsTkXOml8dbw==}
engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.0.0
dependencies:
- '@babel/core': 7.23.9
- '@babel/helper-create-regexp-features-plugin': 7.22.15(@babel/[email protected])
+ '@babel/core': 7.24.0
+ '@babel/helper-create-regexp-features-plugin': 7.22.15(@babel/[email protected])
'@babel/helper-plugin-utils': 7.22.5
dev: false
- resolution: {integrity: sha512-3kBGTNBBk9DQiPoXYS0g0BYlwTQYUTifqgKTjxUwEUkduRT2QOa0FPGBJ+NROQhGyYO5BuTJwGvBnqKDykac6A==}
+ resolution: {integrity: sha512-ovzGc2uuyNfNAs/jyjIGxS8arOHS5FENZaNn4rtE7UdKMMkqHCvboHfcuhWLZNX5cB44QfcGNWjaevxMzzMf+Q==}
engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.0.0-0
dependencies:
'@babel/compat-data': 7.23.5
- '@babel/core': 7.23.9
+ '@babel/core': 7.24.0
'@babel/helper-compilation-targets': 7.23.6
'@babel/helper-plugin-utils': 7.22.5
'@babel/helper-validator-option': 7.23.5
- '@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression': 7.23.3(@babel/[email protected])
- '@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining': 7.23.3(@babel/[email protected])
- '@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly': 7.23.7(@babel/[email protected])
- '@babel/plugin-proposal-private-property-in-object': 7.21.0-placeholder-for-preset-env.2(@babel/[email protected])
- '@babel/plugin-syntax-async-generators': 7.8.4(@babel/[email protected])
- '@babel/plugin-syntax-class-properties': 7.12.13(@babel/[email protected])
- '@babel/plugin-syntax-class-static-block': 7.14.5(@babel/[email protected])
- '@babel/plugin-syntax-dynamic-import': 7.8.3(@babel/[email protected])
- '@babel/plugin-syntax-export-namespace-from': 7.8.3(@babel/[email protected])
- '@babel/plugin-syntax-import-assertions': 7.23.3(@babel/[email protected])
- '@babel/plugin-syntax-import-attributes': 7.23.3(@babel/[email protected])
- '@babel/plugin-syntax-import-meta': 7.10.4(@babel/[email protected])
- '@babel/plugin-syntax-json-strings': 7.8.3(@babel/[email protected])
- '@babel/plugin-syntax-logical-assignment-operators': 7.10.4(@babel/[email protected])
- '@babel/plugin-syntax-nullish-coalescing-operator': 7.8.3(@babel/[email protected])
- '@babel/plugin-syntax-numeric-separator': 7.10.4(@babel/[email protected])
- '@babel/plugin-syntax-object-rest-spread': 7.8.3(@babel/[email protected])
- '@babel/plugin-syntax-optional-catch-binding': 7.8.3(@babel/[email protected])
- '@babel/plugin-syntax-optional-chaining': 7.8.3(@babel/[email protected])
- '@babel/plugin-syntax-private-property-in-object': 7.14.5(@babel/[email protected])
- '@babel/plugin-syntax-top-level-await': 7.14.5(@babel/[email protected])
- '@babel/plugin-syntax-unicode-sets-regex': 7.18.6(@babel/[email protected])
- '@babel/plugin-transform-arrow-functions': 7.23.3(@babel/[email protected])
- '@babel/plugin-transform-async-generator-functions': 7.23.9(@babel/[email protected])
- '@babel/plugin-transform-async-to-generator': 7.23.3(@babel/[email protected])
- '@babel/plugin-transform-block-scoped-functions': 7.23.3(@babel/[email protected])
- '@babel/plugin-transform-block-scoping': 7.23.4(@babel/[email protected])
- '@babel/plugin-transform-class-properties': 7.23.3(@babel/[email protected])
- '@babel/plugin-transform-class-static-block': 7.23.4(@babel/[email protected])
- '@babel/plugin-transform-classes': 7.23.8(@babel/[email protected])
- '@babel/plugin-transform-computed-properties': 7.23.3(@babel/[email protected])
- '@babel/plugin-transform-destructuring': 7.23.3(@babel/[email protected])
- '@babel/plugin-transform-dotall-regex': 7.23.3(@babel/[email protected])
- '@babel/plugin-transform-duplicate-keys': 7.23.3(@babel/[email protected])
- '@babel/plugin-transform-dynamic-import': 7.23.4(@babel/[email protected])
- '@babel/plugin-transform-exponentiation-operator': 7.23.3(@babel/[email protected])
- '@babel/plugin-transform-export-namespace-from': 7.23.4(@babel/[email protected])
- '@babel/plugin-transform-for-of': 7.23.6(@babel/[email protected])
- '@babel/plugin-transform-function-name': 7.23.3(@babel/[email protected])
- '@babel/plugin-transform-json-strings': 7.23.4(@babel/[email protected])
- '@babel/plugin-transform-literals': 7.23.3(@babel/[email protected])
- '@babel/plugin-transform-logical-assignment-operators': 7.23.4(@babel/[email protected])
- '@babel/plugin-transform-member-expression-literals': 7.23.3(@babel/[email protected])
- '@babel/plugin-transform-modules-amd': 7.23.3(@babel/[email protected])
- '@babel/plugin-transform-modules-commonjs': 7.23.3(@babel/[email protected])
- '@babel/plugin-transform-modules-systemjs': 7.23.9(@babel/[email protected])
- '@babel/plugin-transform-modules-umd': 7.23.3(@babel/[email protected])
- '@babel/plugin-transform-named-capturing-groups-regex': 7.22.5(@babel/[email protected])
- '@babel/plugin-transform-new-target': 7.23.3(@babel/[email protected])
- '@babel/plugin-transform-nullish-coalescing-operator': 7.23.4(@babel/[email protected])
- '@babel/plugin-transform-numeric-separator': 7.23.4(@babel/[email protected])
- '@babel/plugin-transform-object-rest-spread': 7.23.4(@babel/[email protected])
- '@babel/plugin-transform-object-super': 7.23.3(@babel/[email protected])
- '@babel/plugin-transform-optional-catch-binding': 7.23.4(@babel/[email protected])
- '@babel/plugin-transform-optional-chaining': 7.23.4(@babel/[email protected])
- '@babel/plugin-transform-parameters': 7.23.3(@babel/[email protected])
- '@babel/plugin-transform-private-methods': 7.23.3(@babel/[email protected])
- '@babel/plugin-transform-private-property-in-object': 7.23.4(@babel/[email protected])
- '@babel/plugin-transform-property-literals': 7.23.3(@babel/[email protected])
- '@babel/plugin-transform-regenerator': 7.23.3(@babel/[email protected])
- '@babel/plugin-transform-reserved-words': 7.23.3(@babel/[email protected])
- '@babel/plugin-transform-shorthand-properties': 7.23.3(@babel/[email protected])
- '@babel/plugin-transform-spread': 7.23.3(@babel/[email protected])
- '@babel/plugin-transform-sticky-regex': 7.23.3(@babel/[email protected])
- '@babel/plugin-transform-template-literals': 7.23.3(@babel/[email protected])
- '@babel/plugin-transform-typeof-symbol': 7.23.3(@babel/[email protected])
- '@babel/plugin-transform-unicode-escapes': 7.23.3(@babel/[email protected])
- '@babel/plugin-transform-unicode-property-regex': 7.23.3(@babel/[email protected])
- '@babel/plugin-transform-unicode-regex': 7.23.3(@babel/[email protected])
- '@babel/plugin-transform-unicode-sets-regex': 7.23.3(@babel/[email protected])
- '@babel/preset-modules': 0.1.6-no-external-plugins(@babel/[email protected])
- babel-plugin-polyfill-corejs2: 0.4.8(@babel/[email protected])
- babel-plugin-polyfill-corejs3: 0.9.0(@babel/[email protected])
- babel-plugin-polyfill-regenerator: 0.5.5(@babel/[email protected])
- core-js-compat: 3.36.0
+ '@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression': 7.23.3(@babel/[email protected])
+ '@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining': 7.23.3(@babel/[email protected])
+ '@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly': 7.23.3(@babel/[email protected])
+ '@babel/plugin-proposal-private-property-in-object': 7.21.0-placeholder-for-preset-env.2(@babel/[email protected])
+ '@babel/plugin-syntax-async-generators': 7.8.4(@babel/[email protected])
+ '@babel/plugin-syntax-class-properties': 7.12.13(@babel/[email protected])
+ '@babel/plugin-syntax-class-static-block': 7.14.5(@babel/[email protected])
+ '@babel/plugin-syntax-dynamic-import': 7.8.3(@babel/[email protected])
+ '@babel/plugin-syntax-export-namespace-from': 7.8.3(@babel/[email protected])
+ '@babel/plugin-syntax-import-assertions': 7.23.3(@babel/[email protected])
+ '@babel/plugin-syntax-import-attributes': 7.23.3(@babel/[email protected])
+ '@babel/plugin-syntax-import-meta': 7.10.4(@babel/[email protected])
+ '@babel/plugin-syntax-json-strings': 7.8.3(@babel/[email protected])
+ '@babel/plugin-syntax-logical-assignment-operators': 7.10.4(@babel/[email protected])
+ '@babel/plugin-syntax-nullish-coalescing-operator': 7.8.3(@babel/[email protected])
+ '@babel/plugin-syntax-numeric-separator': 7.10.4(@babel/[email protected])
+ '@babel/plugin-syntax-object-rest-spread': 7.8.3(@babel/[email protected])
+ '@babel/plugin-syntax-optional-catch-binding': 7.8.3(@babel/[email protected])
+ '@babel/plugin-syntax-optional-chaining': 7.8.3(@babel/[email protected])
+ '@babel/plugin-syntax-private-property-in-object': 7.14.5(@babel/[email protected])
+ '@babel/plugin-syntax-top-level-await': 7.14.5(@babel/[email protected])
+ '@babel/plugin-syntax-unicode-sets-regex': 7.18.6(@babel/[email protected])
+ '@babel/plugin-transform-arrow-functions': 7.23.3(@babel/[email protected])
+ '@babel/plugin-transform-async-generator-functions': 7.23.4(@babel/[email protected])
+ '@babel/plugin-transform-async-to-generator': 7.23.3(@babel/[email protected])
+ '@babel/plugin-transform-block-scoped-functions': 7.23.3(@babel/[email protected])
+ '@babel/plugin-transform-block-scoping': 7.23.4(@babel/[email protected])
+ '@babel/plugin-transform-class-properties': 7.23.3(@babel/[email protected])
+ '@babel/plugin-transform-class-static-block': 7.23.4(@babel/[email protected])
+ '@babel/plugin-transform-classes': 7.23.3(@babel/[email protected])
+ '@babel/plugin-transform-computed-properties': 7.23.3(@babel/[email protected])
+ '@babel/plugin-transform-destructuring': 7.23.3(@babel/[email protected])
+ '@babel/plugin-transform-dotall-regex': 7.23.3(@babel/[email protected])
+ '@babel/plugin-transform-duplicate-keys': 7.23.3(@babel/[email protected])
+ '@babel/plugin-transform-dynamic-import': 7.23.4(@babel/[email protected])
+ '@babel/plugin-transform-exponentiation-operator': 7.23.3(@babel/[email protected])
+ '@babel/plugin-transform-export-namespace-from': 7.23.4(@babel/[email protected])
+ '@babel/plugin-transform-for-of': 7.23.3(@babel/[email protected])
+ '@babel/plugin-transform-function-name': 7.23.3(@babel/[email protected])
+ '@babel/plugin-transform-json-strings': 7.23.4(@babel/[email protected])
+ '@babel/plugin-transform-literals': 7.23.3(@babel/[email protected])
+ '@babel/plugin-transform-logical-assignment-operators': 7.23.4(@babel/[email protected])
+ '@babel/plugin-transform-member-expression-literals': 7.23.3(@babel/[email protected])
+ '@babel/plugin-transform-modules-amd': 7.23.3(@babel/[email protected])
+ '@babel/plugin-transform-modules-commonjs': 7.23.3(@babel/[email protected])
+ '@babel/plugin-transform-modules-systemjs': 7.23.3(@babel/[email protected])
+ '@babel/plugin-transform-modules-umd': 7.23.3(@babel/[email protected])
+ '@babel/plugin-transform-named-capturing-groups-regex': 7.22.5(@babel/[email protected])
+ '@babel/plugin-transform-new-target': 7.23.3(@babel/[email protected])
+ '@babel/plugin-transform-nullish-coalescing-operator': 7.23.4(@babel/[email protected])
+ '@babel/plugin-transform-numeric-separator': 7.23.4(@babel/[email protected])
+ '@babel/plugin-transform-object-rest-spread': 7.23.4(@babel/[email protected])
+ '@babel/plugin-transform-object-super': 7.23.3(@babel/[email protected])
+ '@babel/plugin-transform-optional-catch-binding': 7.23.4(@babel/[email protected])
+ '@babel/plugin-transform-optional-chaining': 7.23.4(@babel/[email protected])
+ '@babel/plugin-transform-parameters': 7.23.3(@babel/[email protected])
+ '@babel/plugin-transform-private-methods': 7.23.3(@babel/[email protected])
+ '@babel/plugin-transform-private-property-in-object': 7.23.4(@babel/[email protected])
+ '@babel/plugin-transform-property-literals': 7.23.3(@babel/[email protected])
+ '@babel/plugin-transform-regenerator': 7.23.3(@babel/[email protected])
+ '@babel/plugin-transform-reserved-words': 7.23.3(@babel/[email protected])
+ '@babel/plugin-transform-shorthand-properties': 7.23.3(@babel/[email protected])
+ '@babel/plugin-transform-spread': 7.23.3(@babel/[email protected])
+ '@babel/plugin-transform-sticky-regex': 7.23.3(@babel/[email protected])
+ '@babel/plugin-transform-template-literals': 7.23.3(@babel/[email protected])
+ '@babel/plugin-transform-typeof-symbol': 7.23.3(@babel/[email protected])
+ '@babel/plugin-transform-unicode-escapes': 7.23.3(@babel/[email protected])
+ '@babel/plugin-transform-unicode-property-regex': 7.23.3(@babel/[email protected])
+ '@babel/plugin-transform-unicode-regex': 7.23.3(@babel/[email protected])
+ '@babel/plugin-transform-unicode-sets-regex': 7.23.3(@babel/[email protected])
+ '@babel/preset-modules': 0.1.6-no-external-plugins(@babel/[email protected])
+ babel-plugin-polyfill-corejs2: 0.4.6(@babel/[email protected])
+ babel-plugin-polyfill-corejs3: 0.8.6(@babel/[email protected])
+ babel-plugin-polyfill-regenerator: 0.5.3(@babel/[email protected])
+ core-js-compat: 3.35.1
semver: 6.3.1
transitivePeerDependencies:
- supports-color
dev: false
resolution: {integrity: sha512-7yn6hl8RIv+KNk6iIrGZ+D06VhVY35wLVf23Cz/mMu1zOr7u4MMP4j0nZ9tLf8+4ZFpnib8cFYgB/oYg9hfswA==}
engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.0.0-0
dependencies:
- '@babel/core': 7.23.9
+ '@babel/core': 7.24.0
'@babel/helper-plugin-utils': 7.22.5
'@babel/helper-validator-option': 7.23.5
- '@babel/plugin-transform-flow-strip-types': 7.23.3(@babel/[email protected])
+ '@babel/plugin-transform-flow-strip-types': 7.23.3(@babel/[email protected])
dev: false
resolution: {integrity: sha512-HrcgcIESLm9aIR842yhJ5RWan/gebQUJ6E/E5+rf0y9o6oj7w0Br+sWuL6kEQ/o/AdfvR1Je9jG18/gnpwjEyA==}
peerDependencies:
'@babel/core': ^7.0.0-0 || ^8.0.0-0 <8.0.0
dependencies:
- '@babel/core': 7.23.9
+ '@babel/core': 7.24.0
'@babel/helper-plugin-utils': 7.22.5
- '@babel/types': 7.23.9
+ '@babel/types': 7.24.0
esutils: 2.0.3
dev: false
resolution: {integrity: sha512-17oIGVlqz6CchO9RFYn5U6ZpWRZIngayYCtrPRSgANSwC2V1Jb+iP74nVxzzXJte8b8BYxrL1yY96xfhTBrNNQ==}
engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.0.0-0
dependencies:
- '@babel/core': 7.23.9
+ '@babel/core': 7.24.0
'@babel/helper-plugin-utils': 7.22.5
'@babel/helper-validator-option': 7.23.5
- '@babel/plugin-syntax-jsx': 7.23.3(@babel/[email protected])
- '@babel/plugin-transform-modules-commonjs': 7.23.3(@babel/[email protected])
- '@babel/plugin-transform-typescript': 7.23.6(@babel/[email protected])
+ '@babel/plugin-syntax-jsx': 7.23.3(@babel/[email protected])
+ '@babel/plugin-transform-modules-commonjs': 7.23.3(@babel/[email protected])
+ '@babel/plugin-transform-typescript': 7.23.4(@babel/[email protected])
dev: false
- resolution: {integrity: sha512-EjJeB6+kvpk+Y5DAkEAmbOBEFkh9OASx0huoEkqYTFxAZHzOAX2Oh5uwAUuL2rUddqfM0SA+KPXV2TbzoZ2kvQ==}
+ resolution: {integrity: sha512-V3Q3EqoQdn65RCgTLwauZaTfd1ShhwPmbBv+1dkZV/HpCGMKVyn6oFcRlI7RaKqiDQjX2Qd3AuoEguBgdjIKlg==}
engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.0.0-0
dependencies:
- '@babel/core': 7.23.9
+ '@babel/core': 7.24.0
clone-deep: 4.0.1
find-cache-dir: 2.1.0
make-dir: 2.1.0
@@ -2569,22 +2776,54 @@ packages:
resolution: {integrity: sha512-x/rqGMdzj+fWZvCOYForTghzbtqPDZ5gPwaoNGHdgDfF2QA/XZbCBp4Moo5scrkAMPhB7z26XM/AaHuIJdgauA==}
dev: false
+ resolution: {integrity: sha512-2Yv65nlWnWlSpe3fXEyX5i7fx5kIKo4Qbcj+hMO0odwaneFjfXw5fdum+4yL20O0QiaHpia0cYQ9xpNMqrBwHg==}
+ engines: {node: '>=6.9.0'}
+ dependencies:
+ regenerator-runtime: 0.14.0
+ dev: false
+
resolution: {integrity: sha512-0CX6F+BI2s9dkUqr08KFrAIZgNFj75rdBU/DjCyYLIaV/quFjkk6T+EJ2LkZHyZTbEV4L5p97mNkUsHl2wLFAw==}
engines: {node: '>=6.9.0'}
dependencies:
- regenerator-runtime: 0.14.1
+ regenerator-runtime: 0.14.0
+
+ resolution: {integrity: sha512-QPErUVm4uyJa60rkI73qneDacvdvzxshT3kksGqlGWYdOTIUOwJ7RDUL8sGqslY1uXWSL6xMFKEXDS3ox2uF0w==}
+ engines: {node: '>=6.9.0'}
+ dependencies:
+ '@babel/code-frame': 7.23.5
+ '@babel/parser': 7.23.5
+ '@babel/types': 7.23.5
+
+ resolution: {integrity: sha512-Bkf2q8lMB0AFpX0NFEqSbx1OkTHf0f+0j82mkw+ZpzBnkk7e9Ql0891vlfgi+kHwOk8tQjiQHpqh4LaSa0fKEA==}
+ engines: {node: '>=6.9.0'}
+ dependencies:
+ '@babel/code-frame': 7.23.5
+ '@babel/parser': 7.24.0
+ '@babel/types': 7.24.0
- resolution: {integrity: sha512-+xrD2BWLpvHKNmX2QbpdpsBaWnRxahMwJjO+KZk2JOElj5nSmKezyS1B4u+QbHMTX69t4ukm6hh9lsYQ7GHCKA==}
+ resolution: {integrity: sha512-czx7Xy5a6sapWWRx61m1Ke1Ra4vczu1mCTtJam5zRTBOonfdJ+S/B6HYmGYu3fJtr8GGET3si6IhgWVBhJ/m8w==}
engines: {node: '>=6.9.0'}
dependencies:
'@babel/code-frame': 7.23.5
- '@babel/parser': 7.23.9
- '@babel/types': 7.23.9
+ '@babel/generator': 7.23.5
+ '@babel/helper-environment-visitor': 7.22.20
+ '@babel/helper-function-name': 7.23.0
+ '@babel/helper-hoist-variables': 7.22.5
+ '@babel/helper-split-export-declaration': 7.22.6
+ '@babel/parser': 7.23.5
+ '@babel/types': 7.23.5
+ debug: 4.3.4
+ globals: 11.12.0
+ transitivePeerDependencies:
+ - supports-color
- resolution: {integrity: sha512-I/4UJ9vs90OkBtY6iiiTORVMyIhJ4kAVmsKo9KFc8UOxMeUfi2hvtIBsET5u9GizXE6/GFSuKCTNfgCswuEjRg==}
+ resolution: {integrity: sha512-HfuJlI8qq3dEDmNU5ChzzpZRWq+oxCZQyMzIMEqLho+AQnhMnKQUzH6ydo3RBl/YjPCuk68Y6s0Gx0AeyULiWw==}
engines: {node: '>=6.9.0'}
dependencies:
'@babel/code-frame': 7.23.5
@@ -2593,15 +2832,39 @@ packages:
'@babel/helper-function-name': 7.23.0
'@babel/helper-hoist-variables': 7.22.5
'@babel/helper-split-export-declaration': 7.22.6
- '@babel/parser': 7.23.9
- '@babel/types': 7.23.9
+ '@babel/parser': 7.24.0
+ '@babel/types': 7.24.0
debug: 4.3.4
globals: 11.12.0
transitivePeerDependencies:
- supports-color
- resolution: {integrity: sha512-dQjSq/7HaSjRM43FFGnv5keM2HsxpmyV1PfaSVm0nzzjwwTmjOe6J4bC8e3+pTEIgHaHj+1ZlLThRJ2auc/w1Q==}
+ resolution: {integrity: sha512-7uIFwVYpoplT5jp/kVv6EF93VaJ8H+Yn5IczYiaAi98ajzjfoZfslet/e0sLh+wVBjb2qqIut1b0S26VSafsSQ==}
+ engines: {node: '>=6.9.0'}
+ dependencies:
+ '@babel/helper-string-parser': 7.23.4
+ '@babel/helper-validator-identifier': 7.22.20
+ to-fast-properties: 2.0.0
+
+ resolution: {integrity: sha512-ON5kSOJwVO6xXVRTvOI0eOnWe7VdUcIpsovGo9U/Br4Ie4UVFQTboO2cYnDhAGU6Fp+UxSiT+pMft0SMHfuq6w==}
+ engines: {node: '>=6.9.0'}
+ dependencies:
+ '@babel/helper-string-parser': 7.23.4
+ '@babel/helper-validator-identifier': 7.22.20
+ to-fast-properties: 2.0.0
+
+ resolution: {integrity: sha512-+uarb83brBzPKN38NX1MkB6vb6+mwvR6amUulqAE7ccQw1pEl+bCia9TbdG1lsnFP7lZySvUn37CHyXQdfTwzg==}
+ engines: {node: '>=6.9.0'}
+ dependencies:
+ '@babel/helper-string-parser': 7.23.4
+ '@babel/helper-validator-identifier': 7.22.20
+ to-fast-properties: 2.0.0
+
+ resolution: {integrity: sha512-+j7a5c253RfKh8iABBhywc8NSfP5LURe7Uh4qpsh6jc+aLJguvmIUBdjSdEMQv2bENrCR5MfRdjGo7vzS/ob7w==}
engines: {node: '>=6.9.0'}
dependencies:
'@babel/helper-string-parser': 7.23.4
@@ -2835,6 +3098,14 @@ packages:
resolution: {integrity: sha512-d+5GwwzztZD0QixmOBhaO6nWVLsAeYsJ1HJYNxDoDRbASFCpza9BBVshG5ctBRXCkkIHhD9BO1SnbOoRQltUQw==}
dev: true
+ /@emnapi/[email protected]:
+ resolution: {integrity: sha512-Txumi3td7J4A/xTTwlssKieHKTGl3j4A1tglBx72auZ49YK7ePY6XZricgIg9mnZT4xPfA+UPCUdnhRuEFDL+w==}
+ requiresBuild: true
+ dependencies:
+ tslib: 2.6.2
+ dev: true
+ optional: true
+
resolution: {integrity: sha512-jT/qyKZ9rzLErtrjGgdkMBn2OP8wl0G3sQlBb3YPryvKHsjvINUhVaPFfP+fpBcOkmrVOVEEHQFJ7nbj2TH2gw==}
peerDependencies:
@@ -2852,8 +3123,8 @@ packages:
jsdoc-type-pratt-parser: 4.0.0
dev: true
- /@esbuild/[email protected]:
- resolution: {integrity: sha512-bmoCYyWdEL3wDQIVbcyzRyeKLgk2WtWLTWz1ZIAZF/EGbNOwSA6ew3PftJ1PqMiOOGu0OyFMzG53L0zqIpPeNA==}
+ /@esbuild/[email protected]:
+ resolution: {integrity: sha512-Q+mk96KJ+FZ30h9fsJl+67IjNJm3x2eX+GBWGmocAKgzp27cowCOOqSdscX80s0SpdFXZnIv/+1xD1EctFx96Q==}
engines: {node: '>=12'}
cpu: [ppc64]
os: [aix]
@@ -2869,8 +3140,8 @@ packages:
requiresBuild: true
optional: true
- /@esbuild/[email protected]:
- resolution: {integrity: sha512-P0UVNGIienjZv3f5zq0DP3Nt2IE/3plFzuaS96vihvD0Hd6H/q4WXUGpCxD/E8YrSXfNyRPbpTq+T8ZQioSuPA==}
+ /@esbuild/[email protected]:
+ resolution: {integrity: sha512-1X4CClKhDgC3by7k8aOWZeBXQX8dHT5QAMCAQDArCLaYfkppoARvh0fit3X2Qs+MXDngKcHv6XXyQCpY0hkK1Q==}
engines: {node: '>=12'}
cpu: [arm64]
os: [android]
@@ -2886,8 +3157,8 @@ packages:
requiresBuild: true
optional: true
- /@esbuild/[email protected]:
- resolution: {integrity: sha512-qg/Lj1mu3CdQlDEEiWrlC4eaPZ1KztwGJ9B6J+/6G+/4ewxJg7gqj8eVYWvao1bXrqGiW2rsBZFSX3q2lcW05w==}
+ /@esbuild/[email protected]:
+ resolution: {integrity: sha512-7W0bK7qfkw1fc2viBfrtAEkDKHatYfHzr/jKAHNr9BvkYDXPcC6bodtm8AyLJNNuqClLNaeTLuwURt4PRT9d7w==}
engines: {node: '>=12'}
cpu: [arm]
os: [android]
@@ -2903,8 +3174,8 @@ packages:
requiresBuild: true
optional: true
- /@esbuild/[email protected]:
- resolution: {integrity: sha512-3k7ZoUW6Q6YqhdhIaq/WZ7HwBpnFBlW905Fa4s4qWJyiNOgT1dOqDiVAQFwBH7gBRZr17gLrlFCRzF6jFh7Kew==}
+ /@esbuild/[email protected]:
+ resolution: {integrity: sha512-O/nO/g+/7NlitUxETkUv/IvADKuZXyH4BHf/g/7laqKC4i/7whLpB0gvpPc2zpF0q9Q6FXS3TS75QHac9MvVWw==}
engines: {node: '>=12'}
cpu: [x64]
os: [android]
@@ -2920,8 +3191,8 @@ packages:
requiresBuild: true
optional: true
- /@esbuild/[email protected]:
- resolution: {integrity: sha512-B6IeSgZgtEzGC42jsI+YYu9Z3HKRxp8ZT3cqhvliEHovq8HSX2YX8lNocDn79gCKJXOSaEot9MVYky7AKjCs8g==}
+ /@esbuild/[email protected]:
+ resolution: {integrity: sha512-YSRRs2zOpwypck+6GL3wGXx2gNP7DXzetmo5pHXLrY/VIMsS59yKfjPizQ4lLt5vEI80M41gjm2BxrGZ5U+VMA==}
engines: {node: '>=12'}
cpu: [arm64]
os: [darwin]
@@ -2937,8 +3208,8 @@ packages:
requiresBuild: true
optional: true
- /@esbuild/[email protected]:
- resolution: {integrity: sha512-hKoVkKzFiToTgn+41qGhsUJXFlIjxI/jSYeZf3ugemDYZldIXIxhvwN6erJGlX4t5h417iFuheZ7l+YVn05N3A==}
+ /@esbuild/[email protected]:
+ resolution: {integrity: sha512-alfGtT+IEICKtNE54hbvPg13xGBe4GkVxyGWtzr+yHO7HIiRJppPDhOKq3zstTcVf8msXb/t4eavW3jCDpMSmA==}
engines: {node: '>=12'}
cpu: [x64]
os: [darwin]
@@ -2954,8 +3225,8 @@ packages:
requiresBuild: true
optional: true
- /@esbuild/[email protected]:
- resolution: {integrity: sha512-4aRvFIXmwAcDBw9AueDQ2YnGmz5L6obe5kmPT8Vd+/+x/JMVKCgdcRwH6APrbpNXsPz+K653Qg8HB/oXvXVukA==}
+ /@esbuild/[email protected]:
+ resolution: {integrity: sha512-dMtk1wc7FSH8CCkE854GyGuNKCewlh+7heYP/sclpOG6Cectzk14qdUIY5CrKDbkA/OczXq9WesqnPl09mj5dg==}
engines: {node: '>=12'}
cpu: [arm64]
os: [freebsd]
@@ -2971,8 +3242,8 @@ packages:
requiresBuild: true
optional: true
- /@esbuild/[email protected]:
- resolution: {integrity: sha512-EYoXZ4d8xtBoVN7CEwWY2IN4ho76xjYXqSXMNccFSx2lgqOG/1TBPW0yPx1bJZk94qu3tX0fycJeeQsKovA8gg==}
+ /@esbuild/[email protected]:
+ resolution: {integrity: sha512-G5UPPspryHu1T3uX8WiOEUa6q6OlQh6gNl4CO4Iw5PS+Kg5bVggVFehzXBJY6X6RSOMS8iXDv2330VzaObm4Ag==}
engines: {node: '>=12'}
cpu: [x64]
os: [freebsd]
@@ -2988,8 +3259,8 @@ packages:
requiresBuild: true
optional: true
- /@esbuild/[email protected]:
- resolution: {integrity: sha512-EoTjyYyLuVPfdPLsGVVVC8a0p1BFFvtpQDB/YLEhaXyf/5bczaGeN15QkR+O4S5LeJ92Tqotve7i1jn35qwvdA==}
+ /@esbuild/[email protected]:
+ resolution: {integrity: sha512-QxaouHWZ+2KWEj7cGJmvTIHVALfhpGxo3WLmlYfJ+dA5fJB6lDEIg+oe/0//FuyVHuS3l79/wyBxbHr0NgtxJQ==}
engines: {node: '>=12'}
cpu: [arm64]
os: [linux]
@@ -3005,8 +3276,8 @@ packages:
requiresBuild: true
optional: true
- /@esbuild/[email protected]:
- resolution: {integrity: sha512-J5jPms//KhSNv+LO1S1TX1UWp1ucM6N6XuL6ITdKWElCu8wXP72l9MM0zDTzzeikVyqFE6U8YAV9/tFyj0ti+w==}
+ /@esbuild/[email protected]:
+ resolution: {integrity: sha512-j6gUW5aAaPgD416Hk9FHxn27On28H4eVI9rJ4az7oCGTFW48+LcgNDBN+9f8rKZz7EEowo889CPKyeaD0iw9Kg==}
engines: {node: '>=12'}
cpu: [arm]
os: [linux]
@@ -3022,8 +3293,8 @@ packages:
requiresBuild: true
optional: true
- /@esbuild/[email protected]:
- resolution: {integrity: sha512-Thsa42rrP1+UIGaWz47uydHSBOgTUnwBwNq59khgIwktK6x60Hivfbux9iNR0eHCHzOLjLMLfUMLCypBkZXMHA==}
+ /@esbuild/[email protected]:
+ resolution: {integrity: sha512-4ub1YwXxYjj9h1UIZs2hYbnTZBtenPw5NfXCRgEkGb0b6OJ2gpkMvDqRDYIDRjRdWSe/TBiZltm3Y3Q8SN1xNg==}
engines: {node: '>=12'}
cpu: [ia32]
os: [linux]
@@ -3048,8 +3319,8 @@ packages:
dev: true
optional: true
- /@esbuild/[email protected]:
- resolution: {integrity: sha512-LiXdXA0s3IqRRjm6rV6XaWATScKAXjI4R4LoDlvO7+yQqFdlr1Bax62sRwkVvRIrwXxvtYEHHI4dm50jAXkuAA==}
+ /@esbuild/[email protected]:
+ resolution: {integrity: sha512-lo3I9k+mbEKoxtoIbM0yC/MZ1i2wM0cIeOejlVdZ3D86LAcFXFRdeuZmh91QJvUTW51bOK5W2BznGNIl4+mDaA==}
engines: {node: '>=12'}
cpu: [loong64]
os: [linux]
@@ -3065,8 +3336,8 @@ packages:
requiresBuild: true
optional: true
- /@esbuild/[email protected]:
- resolution: {integrity: sha512-fEnAuj5VGTanfJ07ff0gOA6IPsvrVHLVb6Lyd1g2/ed67oU1eFzL0r9WL7ZzscD+/N6i3dWumGE1Un4f7Amf+w==}
+ /@esbuild/[email protected]:
+ resolution: {integrity: sha512-J4gH3zhHNbdZN0Bcr1QUGVNkHTdpijgx5VMxeetSk6ntdt+vR1DqGmHxQYHRmNb77tP6GVvD+K0NyO4xjd7y4A==}
engines: {node: '>=12'}
cpu: [mips64el]
os: [linux]
@@ -3082,8 +3353,8 @@ packages:
requiresBuild: true
optional: true
- /@esbuild/[email protected]:
- resolution: {integrity: sha512-nYJA2/QPimDQOh1rKWedNOe3Gfc8PabU7HT3iXWtNUbRzXS9+vgB0Fjaqr//XNbd82mCxHzik2qotuI89cfixg==}
+ /@esbuild/[email protected]:
+ resolution: {integrity: sha512-tgT/7u+QhV6ge8wFMzaklOY7KqiyitgT1AUHMApau32ZlvTB/+efeCtMk4eXS+uEymYK249JsoiklZN64xt6oQ==}
engines: {node: '>=12'}
cpu: [ppc64]
os: [linux]
@@ -3099,8 +3370,8 @@ packages:
requiresBuild: true
optional: true
- /@esbuild/[email protected]:
- resolution: {integrity: sha512-2MueBrlPQCw5dVJJpQdUYgeqIzDQgw3QtiAHUC4RBz9FXPrskyyU3VI1hw7C0BSKB9OduwSJ79FTCqtGMWqJHg==}
+ /@esbuild/[email protected]:
+ resolution: {integrity: sha512-0f/spw0PfBMZBNqtKe5FLzBDGo0SKZKvMl5PHYQr3+eiSscfJ96XEknCe+JoOayybWUFQbcJTrk946i3j9uYZA==}
engines: {node: '>=12'}
cpu: [riscv64]
os: [linux]
@@ -3116,8 +3387,8 @@ packages:
requiresBuild: true
optional: true
- /@esbuild/[email protected]:
- resolution: {integrity: sha512-+Pil1Nv3Umes4m3AZKqA2anfhJiVmNCYkPchwFJNEJN5QxmTs1uzyy4TvmDrCRNT2ApwSari7ZIgrPeUx4UZDg==}
+ /@esbuild/[email protected]:
+ resolution: {integrity: sha512-pZFe0OeskMHzHa9U38g+z8Yx5FNCLFtUnJtQMpwhS+r4S566aK2ci3t4NCP4tjt6d5j5uo4h7tExZMjeKoehAA==}
engines: {node: '>=12'}
cpu: [s390x]
os: [linux]
@@ -3133,8 +3404,8 @@ packages:
requiresBuild: true
optional: true
- /@esbuild/[email protected]:
- resolution: {integrity: sha512-B71g1QpxfwBvNrfyJdVDexenDIt1CiDN1TIXLbhOw0KhJzE78KIFGX6OJ9MrtC0oOqMWf+0xop4qEU8JrJTwCg==}
+ /@esbuild/[email protected]:
+ resolution: {integrity: sha512-SpYNEqg/6pZYoc+1zLCjVOYvxfZVZj6w0KROZ3Fje/QrM3nfvT2llI+wmKSrWuX6wmZeTapbarvuNNK/qepSgA==}
engines: {node: '>=12'}
cpu: [x64]
os: [linux]
@@ -3150,8 +3421,8 @@ packages:
requiresBuild: true
optional: true
- /@esbuild/[email protected]:
- resolution: {integrity: sha512-3ltjQ7n1owJgFbuC61Oj++XhtzmymoCihNFgT84UAmJnxJfm4sYCiSLTXZtE00VWYpPMYc+ZQmB6xbSdVh0JWA==}
+ /@esbuild/[email protected]:
+ resolution: {integrity: sha512-ACbZ0vXy9zksNArWlk2c38NdKg25+L9pr/mVaj9SUq6lHZu/35nx2xnQVRGLrC1KKQqJKRIB0q8GspiHI3J80Q==}
engines: {node: '>=12'}
cpu: [x64]
os: [netbsd]
@@ -3167,8 +3438,8 @@ packages:
requiresBuild: true
optional: true
- /@esbuild/[email protected]:
- resolution: {integrity: sha512-RbrfTB9SWsr0kWmb9srfF+L933uMDdu9BIzdA7os2t0TXhCRjrQyCeOt6wVxr79CKD4c+p+YhCj31HBkYcXebw==}
+ /@esbuild/[email protected]:
+ resolution: {integrity: sha512-PxcgvjdSjtgPMiPQrM3pwSaG4kGphP+bLSb+cihuP0LYdZv1epbAIecHVl5sD3npkfYBZ0ZnOjR878I7MdJDFg==}
engines: {node: '>=12'}
cpu: [x64]
os: [openbsd]
@@ -3184,8 +3455,8 @@ packages:
requiresBuild: true
optional: true
- /@esbuild/[email protected]:
- resolution: {integrity: sha512-HKjJwRrW8uWtCQnQOz9qcU3mUZhTUQvi56Q8DPTLLB+DawoiQdjsYq+j+D3s9I8VFtDr+F9CjgXKKC4ss89IeA==}
+ /@esbuild/[email protected]:
+ resolution: {integrity: sha512-ZkIOtrRL8SEJjr+VHjmW0znkPs+oJXhlJbNwfI37rvgeMtk3sxOQevXPXjmAPZPigVTncvFqLMd+uV0IBSEzqA==}
engines: {node: '>=12'}
cpu: [x64]
os: [sunos]
@@ -3201,8 +3472,8 @@ packages:
requiresBuild: true
optional: true
- /@esbuild/[email protected]:
- resolution: {integrity: sha512-URgtR1dJnmGvX864pn1B2YUYNzjmXkuJOIqG2HdU62MVS4EHpU2946OZoTMnRUHklGtJdJZ33QfzdjGACXhn1A==}
+ /@esbuild/[email protected]:
+ resolution: {integrity: sha512-+Sa4oTDbpBfGpl3Hn3XiUe4f8TU2JF7aX8cOfqFYMMjXp6ma6NJDztl5FDG8Ezx0OjwGikIHw+iA54YLDNNVfw==}
engines: {node: '>=12'}
cpu: [arm64]
os: [win32]
@@ -3218,8 +3489,8 @@ packages:
requiresBuild: true
optional: true
- /@esbuild/[email protected]:
- resolution: {integrity: sha512-+ZOE6pUkMOJfmxmBZElNOx72NKpIa/HFOMGzu8fqzQJ5kgf6aTGrcJaFsNiVMH4JKpMipyK+7k0n2UXN7a8YKQ==}
+ /@esbuild/[email protected]:
+ resolution: {integrity: sha512-EOGVLK1oWMBXgfttJdPHDTiivYSjX6jDNaATeNOaCOFEVcfMjtbx7WVQwPSE1eIfCp/CaSF2nSrDtzc4I9f8TQ==}
engines: {node: '>=12'}
cpu: [ia32]
os: [win32]
@@ -3235,8 +3506,8 @@ packages:
requiresBuild: true
optional: true
- /@esbuild/[email protected]:
- resolution: {integrity: sha512-T1QyPSDCyMXaO3pzBkF96E8xMkiRYbUEZADd29SyPGabqxMViNoii+NcK7eWJAEoU6RZyEm5lVSIjTmcdoB9HA==}
+ /@esbuild/[email protected]:
+ resolution: {integrity: sha512-whqLG6Sc70AbU73fFYvuYzaE4MNMBIlR1Y/IrUeOXFrWHxBEjjbZaQ3IXIQS8wJdAzue2GwYZCjOrgrU1oUHoA==}
engines: {node: '>=12'}
cpu: [x64]
os: [win32]
@@ -3272,8 +3543,8 @@ packages:
ajv: 6.12.6
debug: 4.3.4
espree: 9.6.1
- globals: 13.24.0
- ignore: 5.3.1
+ globals: 13.23.0
+ ignore: 5.3.0
import-fresh: 3.3.0
js-yaml: 4.1.0
minimatch: 3.1.2
@@ -3334,72 +3605,258 @@ packages:
resolution: {integrity: sha512-trnsAYxU3xnS1gPHPyU961coFyLkh4gAD/0zQ5mymY4yOZ+CYvsPqUbOFSw0aDM4y0tV7tiFxL/1XfXPNC6IPg==}
dev: true
- /@isaacs/[email protected]:
- resolution: {integrity: sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==}
- engines: {node: '>=12'}
- dependencies:
- string-width: 5.1.2
- string-width-cjs: /[email protected]
- strip-ansi: 7.1.0
- strip-ansi-cjs: /[email protected]
- wrap-ansi: 8.1.0
- wrap-ansi-cjs: /[email protected]
+ resolution: {integrity: sha512-itHBs1rPmsmGF9p4qRe++CzCgd+kFYktnsoR1sbIAfsRMrJZau0Tt1AH9KVnufc2/tU02Gf6Ibujx+15qRE03w==}
+ engines: {glibc: '>=2.26', node: ^18.17.0 || ^20.3.0 || >=21.0.0, npm: '>=9.6.5', pnpm: '>=7.1.0', yarn: '>=3.2.0'}
+ cpu: [arm64]
+ os: [darwin]
+ requiresBuild: true
+ optionalDependencies:
+ '@img/sharp-libvips-darwin-arm64': 1.0.1
+ dev: true
+ optional: true
- /@istanbuljs/[email protected]:
- resolution: {integrity: sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==}
- engines: {node: '>=8'}
- dev: false
+ resolution: {integrity: sha512-/rK/69Rrp9x5kaWBjVN07KixZanRr+W1OiyKdXcbjQD6KbW+obaTeBBtLUAtbBsnlTTmWthw99xqoOS7SsySDg==}
+ engines: {glibc: '>=2.26', node: ^18.17.0 || ^20.3.0 || >=21.0.0, npm: '>=9.6.5', pnpm: '>=7.1.0', yarn: '>=3.2.0'}
+ cpu: [x64]
+ os: [darwin]
+ requiresBuild: true
+ optionalDependencies:
+ '@img/sharp-libvips-darwin-x64': 1.0.1
+ dev: true
+ optional: true
- resolution: {integrity: sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA==}
- engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0}
- dependencies:
- '@sinclair/typebox': 0.27.8
+ resolution: {integrity: sha512-kQyrSNd6lmBV7O0BUiyu/OEw9yeNGFbQhbxswS1i6rMDwBBSX+e+rPzu3S+MwAiGU3HdLze3PanQ4Xkfemgzcw==}
+ engines: {macos: '>=11', npm: '>=9.6.5', pnpm: '>=7.1.0', yarn: '>=3.2.0'}
+ cpu: [arm64]
+ os: [darwin]
+ requiresBuild: true
+ dev: true
+ optional: true
- /@jridgewell/[email protected]:
- resolution: {integrity: sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==}
- engines: {node: '>=6.0.0'}
- dependencies:
- '@jridgewell/set-array': 1.1.2
- '@jridgewell/sourcemap-codec': 1.4.15
- '@jridgewell/trace-mapping': 0.3.22
+ resolution: {integrity: sha512-eVU/JYLPVjhhrd8Tk6gosl5pVlvsqiFlt50wotCvdkFGf+mDNBJxMh+bvav+Wt3EBnNZWq8Sp2I7XfSjm8siog==}
+ engines: {macos: '>=10.13', npm: '>=9.6.5', pnpm: '>=7.1.0', yarn: '>=3.2.0'}
+ cpu: [x64]
+ os: [darwin]
+ requiresBuild: true
+ dev: true
+ optional: true
- /@jridgewell/[email protected]:
- resolution: {integrity: sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==}
- engines: {node: '>=6.0.0'}
+ resolution: {integrity: sha512-bnGG+MJjdX70mAQcSLxgeJco11G+MxTz+ebxlz8Y3dxyeb3Nkl7LgLI0mXupoO+u1wRNx/iRj5yHtzA4sde1yA==}
+ engines: {glibc: '>=2.26', npm: '>=9.6.5', pnpm: '>=7.1.0', yarn: '>=3.2.0'}
+ cpu: [arm64]
+ os: [linux]
+ requiresBuild: true
+ dev: true
+ optional: true
- /@jridgewell/[email protected]:
- resolution: {integrity: sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==}
- engines: {node: '>=6.0.0'}
+ resolution: {integrity: sha512-FtdMvR4R99FTsD53IA3LxYGghQ82t3yt0ZQ93WMZ2xV3dqrb0E8zq4VHaTOuLEAuA83oDawHV3fd+BsAPadHIQ==}
+ engines: {glibc: '>=2.28', npm: '>=9.6.5', pnpm: '>=7.1.0', yarn: '>=3.2.0'}
+ cpu: [arm]
+ os: [linux]
+ requiresBuild: true
+ dev: true
+ optional: true
- /@jridgewell/[email protected]:
- resolution: {integrity: sha512-UTYAUj/wviwdsMfzoSJspJxbkH5o1snzwX0//0ENX1u/55kkZZkcTZP6u9bwKGkv+dkk9at4m1Cpt0uY80kcpQ==}
- dependencies:
- '@jridgewell/gen-mapping': 0.3.3
- '@jridgewell/trace-mapping': 0.3.25
- dev: false
+ resolution: {integrity: sha512-3+rzfAR1YpMOeA2zZNp+aYEzGNWK4zF3+sdMxuCS3ey9HhDbJ66w6hDSHDMoap32DueFwhhs3vwooAB2MaK4XQ==}
+ engines: {glibc: '>=2.28', npm: '>=9.6.5', pnpm: '>=7.1.0', yarn: '>=3.2.0'}
+ cpu: [s390x]
+ os: [linux]
+ requiresBuild: true
+ dev: true
+ optional: true
- /@jridgewell/[email protected]:
- resolution: {integrity: sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==}
+ resolution: {integrity: sha512-3NR1mxFsaSgMMzz1bAnnKbSAI+lHXVTqAHgc1bgzjHuXjo4hlscpUxc0vFSAPKI3yuzdzcZOkq7nDPrP2F8Jgw==}
+ engines: {glibc: '>=2.26', npm: '>=9.6.5', pnpm: '>=7.1.0', yarn: '>=3.2.0'}
+ cpu: [x64]
+ os: [linux]
+ requiresBuild: true
+ dev: true
+ optional: true
- /@jridgewell/[email protected]:
- resolution: {integrity: sha512-Wf963MzWtA2sjrNt+g18IAln9lKnlRp+K2eH4jjIoF1wYeq3aMREpG09xhlhdzS0EjwU7qmUJYangWa+151vZw==}
- dependencies:
- '@jridgewell/resolve-uri': 3.1.2
- '@jridgewell/sourcemap-codec': 1.4.15
+ resolution: {integrity: sha512-5aBRcjHDG/T6jwC3Edl3lP8nl9U2Yo8+oTl5drd1dh9Z1EBfzUKAJFUDTDisDjUwc7N4AjnPGfCA3jl3hY8uDg==}
+ engines: {musl: '>=1.2.2', npm: '>=9.6.5', pnpm: '>=7.1.0', yarn: '>=3.2.0'}
+ cpu: [arm64]
+ os: [linux]
+ requiresBuild: true
+ dev: true
+ optional: true
- /@jridgewell/[email protected]:
- resolution: {integrity: sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==}
- dependencies:
- '@jridgewell/resolve-uri': 3.1.2
- '@jridgewell/sourcemap-codec': 1.4.15
- dev: false
+ resolution: {integrity: sha512-dcT7inI9DBFK6ovfeWRe3hG30h51cBAP5JXlZfx6pzc/Mnf9HFCQDLtYf4MCBjxaaTfjCCjkBxcy3XzOAo5txw==}
+ engines: {musl: '>=1.2.2', npm: '>=9.6.5', pnpm: '>=7.1.0', yarn: '>=3.2.0'}
+ cpu: [x64]
+ os: [linux]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ resolution: {integrity: sha512-pz0NNo882vVfqJ0yNInuG9YH71smP4gRSdeL09ukC2YLE6ZyZePAlWKEHgAzJGTiOh8Qkaov6mMIMlEhmLdKew==}
+ engines: {glibc: '>=2.26', node: ^18.17.0 || ^20.3.0 || >=21.0.0, npm: '>=9.6.5', pnpm: '>=7.1.0', yarn: '>=3.2.0'}
+ cpu: [arm64]
+ os: [linux]
+ requiresBuild: true
+ optionalDependencies:
+ '@img/sharp-libvips-linux-arm64': 1.0.1
+ dev: true
+ optional: true
+
+ resolution: {integrity: sha512-Fndk/4Zq3vAc4G/qyfXASbS3HBZbKrlnKZLEJzPLrXoJuipFNNwTes71+Ki1hwYW5lch26niRYoZFAtZVf3EGA==}
+ engines: {glibc: '>=2.28', node: ^18.17.0 || ^20.3.0 || >=21.0.0, npm: '>=9.6.5', pnpm: '>=7.1.0', yarn: '>=3.2.0'}
+ cpu: [arm]
+ os: [linux]
+ requiresBuild: true
+ optionalDependencies:
+ '@img/sharp-libvips-linux-arm': 1.0.1
+ dev: true
+ optional: true
+
+ resolution: {integrity: sha512-MBoInDXDppMfhSzbMmOQtGfloVAflS2rP1qPcUIiITMi36Mm5YR7r0ASND99razjQUpHTzjrU1flO76hKvP5RA==}
+ engines: {glibc: '>=2.28', node: ^18.17.0 || ^20.3.0 || >=21.0.0, npm: '>=9.6.5', pnpm: '>=7.1.0', yarn: '>=3.2.0'}
+ cpu: [s390x]
+ os: [linux]
+ requiresBuild: true
+ optionalDependencies:
+ '@img/sharp-libvips-linux-s390x': 1.0.1
+ dev: true
+ optional: true
+
+ resolution: {integrity: sha512-xUT82H5IbXewKkeF5aiooajoO1tQV4PnKfS/OZtb5DDdxS/FCI/uXTVZ35GQ97RZXsycojz/AJ0asoz6p2/H/A==}
+ engines: {glibc: '>=2.26', node: ^18.17.0 || ^20.3.0 || >=21.0.0, npm: '>=9.6.5', pnpm: '>=7.1.0', yarn: '>=3.2.0'}
+ cpu: [x64]
+ os: [linux]
+ requiresBuild: true
+ optionalDependencies:
+ '@img/sharp-libvips-linux-x64': 1.0.1
+ dev: true
+ optional: true
+
+ resolution: {integrity: sha512-F+0z8JCu/UnMzg8IYW1TMeiViIWBVg7IWP6nE0p5S5EPQxlLd76c8jYemG21X99UzFwgkRo5yz2DS+zbrnxZeA==}
+ engines: {musl: '>=1.2.2', node: ^18.17.0 || ^20.3.0 || >=21.0.0, npm: '>=9.6.5', pnpm: '>=7.1.0', yarn: '>=3.2.0'}
+ cpu: [arm64]
+ os: [linux]
+ requiresBuild: true
+ optionalDependencies:
+ '@img/sharp-libvips-linuxmusl-arm64': 1.0.1
+ dev: true
+ optional: true
+
+ resolution: {integrity: sha512-+ZLE3SQmSL+Fn1gmSaM8uFusW5Y3J9VOf+wMGNnTtJUMUxFhv+P4UPaYEYT8tqnyYVaOVGgMN/zsOxn9pSsO2A==}
+ engines: {musl: '>=1.2.2', node: ^18.17.0 || ^20.3.0 || >=21.0.0, npm: '>=9.6.5', pnpm: '>=7.1.0', yarn: '>=3.2.0'}
+ cpu: [x64]
+ os: [linux]
+ requiresBuild: true
+ optionalDependencies:
+ '@img/sharp-libvips-linuxmusl-x64': 1.0.1
+ dev: true
+ optional: true
+
+ resolution: {integrity: sha512-fLbTaESVKuQcpm8ffgBD7jLb/CQLcATju/jxtTXR1XCLwbOQt+OL5zPHSDMmp2JZIeq82e18yE0Vv7zh6+6BfQ==}
+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0, npm: '>=9.6.5', pnpm: '>=7.1.0', yarn: '>=3.2.0'}
+ cpu: [wasm32]
+ requiresBuild: true
+ dependencies:
+ '@emnapi/runtime': 0.45.0
+ dev: true
+ optional: true
+
+ resolution: {integrity: sha512-okBpql96hIGuZ4lN3+nsAjGeggxKm7hIRu9zyec0lnfB8E7Z6p95BuRZzDDXZOl2e8UmR4RhYt631i7mfmKU8g==}
+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0, npm: '>=9.6.5', pnpm: '>=7.1.0', yarn: '>=3.2.0'}
+ cpu: [ia32]
+ os: [win32]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ resolution: {integrity: sha512-E4magOks77DK47FwHUIGH0RYWSgRBfGdK56kIHSVeB9uIS4pPFr4N2kIVsXdQQo4LzOsENKV5KAhRlRL7eMAdg==}
+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0, npm: '>=9.6.5', pnpm: '>=7.1.0', yarn: '>=3.2.0'}
+ cpu: [x64]
+ os: [win32]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ /@isaacs/[email protected]:
+ resolution: {integrity: sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==}
+ engines: {node: '>=12'}
+ dependencies:
+ string-width: 5.1.2
+ string-width-cjs: /[email protected]
+ strip-ansi: 7.1.0
+ strip-ansi-cjs: /[email protected]
+ wrap-ansi: 8.1.0
+ wrap-ansi-cjs: /[email protected]
+
+ /@istanbuljs/[email protected]:
+ resolution: {integrity: sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==}
+ engines: {node: '>=8'}
+
+ resolution: {integrity: sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA==}
+ engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0}
+ dependencies:
+ '@sinclair/typebox': 0.27.8
+
+ /@jridgewell/[email protected]:
+ resolution: {integrity: sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==}
+ engines: {node: '>=6.0.0'}
+ dependencies:
+ '@jridgewell/set-array': 1.1.2
+ '@jridgewell/sourcemap-codec': 1.4.15
+ '@jridgewell/trace-mapping': 0.3.20
+
+ /@jridgewell/[email protected]:
+ resolution: {integrity: sha512-dSYZh7HhCDtCKm4QakX0xFpsRDqjjtZf/kjI/v3T3Nwt5r8/qz/M19F9ySyOqU94SXBmeG9ttTul+YnR4LOxFA==}
+ engines: {node: '>=6.0.0'}
+
+ /@jridgewell/[email protected]:
+ resolution: {integrity: sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==}
+ engines: {node: '>=6.0.0'}
+
+ /@jridgewell/[email protected]:
+ resolution: {integrity: sha512-UTYAUj/wviwdsMfzoSJspJxbkH5o1snzwX0//0ENX1u/55kkZZkcTZP6u9bwKGkv+dkk9at4m1Cpt0uY80kcpQ==}
+ dependencies:
+ '@jridgewell/gen-mapping': 0.3.3
+ '@jridgewell/trace-mapping': 0.3.25
+ dev: false
+
+ /@jridgewell/[email protected]:
+ resolution: {integrity: sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==}
+
+ /@jridgewell/[email protected]:
+ resolution: {integrity: sha512-R8LcPeWZol2zR8mmH3JeKQ6QRCFb7XgUhV9ZlGhHLGyg4wpPiPZNQOOWhFZhxKw8u//yTbNGI42Bx/3paXEQ+Q==}
+ dependencies:
+ '@jridgewell/resolve-uri': 3.1.1
+ '@jridgewell/sourcemap-codec': 1.4.15
+
+ /@jridgewell/[email protected]:
+ resolution: {integrity: sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==}
+ dependencies:
+ '@jridgewell/resolve-uri': 3.1.1
+ '@jridgewell/sourcemap-codec': 1.4.15
resolution: {integrity: sha512-ajo/heTlG3QgC8EGP6APIejksVAYt4ayz4tqoP3MolFELzcH1x1fzwEYRJTPO0IELutZ5HQ0c26/GqAYy79u3g==}
engines: {node: '>= 0.4'}
dependencies:
- call-bind: 1.0.7
+ call-bind: 1.0.5
dev: true
@@ -3408,7 +3865,7 @@ packages:
'@types/react': '>=16'
react: '>=16'
dependencies:
- '@types/mdx': 2.0.11
+ '@types/mdx': 2.0.10
'@types/react': 18.2.72
react: 18.2.0
dev: false
@@ -3421,7 +3878,6 @@ packages:
'@rushstack/node-core-library': 3.62.0(@types/[email protected])
transitivePeerDependencies:
- '@types/node'
- dev: false
resolution: {integrity: sha512-PuXxzadgnvp+wdeZFPonssRAj/EW4Gm4s75TXzPk09h3wJ8RS3x7typf95B4vwZRrPTQBGopdUl+/vHvlPdAcg==}
@@ -3441,7 +3897,6 @@ packages:
typescript: 5.3.3
transitivePeerDependencies:
- '@types/node'
- dev: false
/@microsoft/[email protected]:
resolution: {integrity: sha512-OGiIzzoBLgWWR0UdRJX98oYO+XKGf7tiK4Zk6tQ/E4IJqGCe7dvkTvgDZV5cFJUzLGDOjeAXrnZoA6QkVySuxw==}
@@ -3450,11 +3905,9 @@ packages:
ajv: 6.12.6
jju: 1.4.0
resolve: 1.19.0
- dev: false
/@microsoft/[email protected]:
resolution: {integrity: sha512-9b8mPpKrfeGRuhFH5iO1iwCLeIIsV6+H1sRfxbkoGXIyQE2BTsPd9zqSqQJ+pv5sJ/hT5M1zvOFL02MnEezFug==}
- dev: false
/@ndelangen/[email protected]:
resolution: {integrity: sha512-9JKTEik4vq+yGosHYhZ1tiH/3WpUS0Nh0kej4Agndhox8pAdWhEx5knFVRcb/ya9knCRCs1rPxNrSXTDdfVqpA==}
@@ -3480,7 +3933,7 @@ packages:
engines: {node: '>= 8'}
dependencies:
'@nodelib/fs.scandir': 2.1.5
- fastq: 1.17.1
+ fastq: 1.15.0
/@octokit/[email protected]:
resolution: {integrity: sha512-tY/msAuJo6ARbK6SPIxZrPBms3xPbfwBrulZe0Wtr/DIY9lje2HeV1uoebShn6mx7SjCHif6EjMvoREj+gZ+SA==}
@@ -3495,7 +3948,7 @@ packages:
'@octokit/graphql': 7.0.2
'@octokit/request': 8.2.0
'@octokit/request-error': 5.0.1
- '@octokit/types': 12.5.0
+ '@octokit/types': 12.6.0
before-after-hook: 2.2.3
universal-user-agent: 6.0.1
dev: true
@@ -3504,7 +3957,7 @@ packages:
resolution: {integrity: sha512-DWPLtr1Kz3tv8L0UvXTDP1fNwM0S+z6EJpRcvH66orY6Eld4XBMCSYsaWp4xIm61jTWxK68BrR7ibO+vSDnZqw==}
engines: {node: '>= 18'}
dependencies:
- '@octokit/types': 12.5.0
+ '@octokit/types': 12.6.0
universal-user-agent: 6.0.1
dev: true
@@ -3513,22 +3966,22 @@ packages:
engines: {node: '>= 18'}
dependencies:
'@octokit/request': 8.2.0
- '@octokit/types': 12.5.0
+ '@octokit/types': 12.6.0
universal-user-agent: 6.0.1
dev: true
- /@octokit/[email protected]:
- resolution: {integrity: sha512-6G+ywGClliGQwRsjvqVYpklIfa7oRPA0vyhPQG/1Feh+B+wU0vGH1JiJ5T25d3g1JZYBHzR2qefLi9x8Gt+cpw==}
+ /@octokit/[email protected]:
+ resolution: {integrity: sha512-EtqRBEjp1dL/15V7WiX5LJMIxxkdiGJnabzYx5Apx4FkQIFgAfKumXeYAqqJCj1s+BMX4cPFIFC4OLCR6stlnA==}
dev: true
- /@octokit/[email protected](@octokit/[email protected]):
- resolution: {integrity: sha512-WKTQXxK+bu49qzwv4qKbMMRXej1DU2gq017euWyKVudA6MldaSSQuxtz+vGbhxV4CjxpUxjZu6rM2wfc1FiWVg==}
+ /@octokit/[email protected](@octokit/[email protected]):
+ resolution: {integrity: sha512-NKi0bJEZqOSbBLMv9kdAcuocpe05Q2xAXNLTGi0HN2GSMFJHNZuSoPNa0tcQFTOFCKe+ZaYBZ3lpXh1yxgUDCA==}
engines: {node: '>= 18'}
peerDependencies:
'@octokit/core': '>=5'
dependencies:
'@octokit/core': 5.1.0
- '@octokit/types': 12.5.0
+ '@octokit/types': 12.6.0
dev: true
@@ -3540,21 +3993,21 @@ packages:
'@octokit/core': 5.1.0
dev: true
- /@octokit/[email protected](@octokit/[email protected]):
- resolution: {integrity: sha512-c/fjpoHispRvBZuRoTVt/uALg7pXa9RQbXWJiDMk6NDkGNomuAZG7YuYYpZoxeoXv+kVRjIDTsO0e1z0pei+PQ==}
+ /@octokit/[email protected](@octokit/[email protected]):
+ resolution: {integrity: sha512-INw5rGXWlbv/p/VvQL63dhlXr38qYTHkQ5bANi9xofrF9OraqmjHsIGyenmjmul1JVRHpUlw5heFOj1UZLEolA==}
engines: {node: '>= 18'}
peerDependencies:
'@octokit/core': '>=5'
dependencies:
'@octokit/core': 5.1.0
- '@octokit/types': 12.5.0
+ '@octokit/types': 12.6.0
dev: true
/@octokit/[email protected]:
resolution: {integrity: sha512-X7pnyTMV7MgtGmiXBwmO6M5kIPrntOXdyKZLigNfQWSEQzVxR4a4vo49vJjTWX70mPndj8KhfT4Dx+2Ng3vnBQ==}
engines: {node: '>= 18'}
dependencies:
- '@octokit/types': 12.5.0
+ '@octokit/types': 12.6.0
deprecation: 2.3.1
once: 1.4.0
dev: true
@@ -3565,7 +4018,7 @@ packages:
dependencies:
'@octokit/endpoint': 9.0.4
'@octokit/request-error': 5.0.1
- '@octokit/types': 12.5.0
+ '@octokit/types': 12.6.0
universal-user-agent: 6.0.1
dev: true
@@ -3574,15 +4027,15 @@ packages:
engines: {node: '>= 18'}
dependencies:
'@octokit/core': 5.1.0
- '@octokit/plugin-paginate-rest': 9.1.5(@octokit/[email protected])
+ '@octokit/plugin-paginate-rest': 9.2.0(@octokit/[email protected])
'@octokit/plugin-request-log': 4.0.0(@octokit/[email protected])
- '@octokit/plugin-rest-endpoint-methods': 10.3.0(@octokit/[email protected])
+ '@octokit/plugin-rest-endpoint-methods': 10.4.0(@octokit/[email protected])
dev: true
- /@octokit/[email protected]:
- resolution: {integrity: sha512-YJEKcb0KkJlIUNU/zjnZwHEP8AoVh/OoIcP/1IyR4UHxExz7fzpe/a8IG4wBtQi7QDEqiomVLX88S6FpxxAJtg==}
+ /@octokit/[email protected]:
+ resolution: {integrity: sha512-1rhSOfRa6H9w4YwK0yrf5faDaDTb+yLyBUKOCV4xtCDB5VmIPqd/v9yr9o6SAzOAlRxMiRiCic6JVM1/kunVkw==}
dependencies:
- '@octokit/openapi-types': 19.1.0
+ '@octokit/openapi-types': 20.0.0
dev: true
@@ -3705,7 +4158,7 @@ packages:
dependencies:
'@babel/runtime': 7.23.9
'@ctrl/tinycolor': 3.6.1
- classnames: 2.5.1
+ classnames: 2.3.2
react: 18.2.0
react-dom: 18.2.0([email protected])
@@ -3726,7 +4179,7 @@ packages:
react-dom: '>=16.9.0'
dependencies:
'@babel/runtime': 7.23.9
- classnames: 2.5.1
+ classnames: 2.3.2
react: 18.2.0
react-dom: 18.2.0([email protected])
@@ -3739,9 +4192,9 @@ packages:
react: '>=16.9.0'
react-dom: '>=16.9.0'
dependencies:
- '@babel/runtime': 7.23.9
+ '@babel/runtime': 7.23.4
'@rc-component/portal': 1.1.2([email protected])([email protected])
- classnames: 2.5.1
+ classnames: 2.3.2
rc-resize-observer: 1.4.0([email protected])([email protected])
@@ -3758,7 +4211,7 @@ packages:
dependencies:
'@babel/runtime': 7.23.9
'@rc-component/portal': 1.1.2([email protected])([email protected])
- classnames: 2.5.1
+ classnames: 2.3.2
rc-resize-observer: 1.4.0([email protected])([email protected])
@@ -3787,7 +4240,7 @@ packages:
detect-indent: 6.1.0
detect-newline: 3.1.0
release-it: 17.1.1([email protected])
- semver: 7.6.0
+ semver: 7.5.4
url-join: 4.0.1
validate-peer-dependencies: 1.2.0
walk-sync: 2.2.0
@@ -3804,7 +4257,7 @@ packages:
conventional-changelog: 5.1.0
conventional-recommended-bump: 9.0.0
release-it: 17.1.1([email protected])
- semver: 7.6.0
+ semver: 7.5.4
dev: true
@@ -3819,201 +4272,199 @@ packages:
'@types/estree': 1.0.5
estree-walker: 2.0.2
picomatch: 2.3.1
- dev: false
- /@rollup/[email protected]:
- resolution: {integrity: sha512-+ac02NL/2TCKRrJu2wffk1kZ+RyqxVUlbjSagNgPm94frxtr+XDL12E5Ll1enWskLrtrZ2r8L3wED1orIibV/w==}
+ /@rollup/[email protected]:
+ resolution: {integrity: sha512-4C4UERETjXpC4WpBXDbkgNVgHyWfG3B/NKY46e7w5H134UDOFqUJKpsLm0UYmuupW+aJmRgeScrDNfvZ5WV80A==}
cpu: [arm]
os: [android]
requiresBuild: true
- dev: true
optional: true
- /@rollup/[email protected]:
- resolution: {integrity: sha512-5ZYPOuaAqEH/W3gYsRkxQATBW3Ii1MfaT4EQstTnLKViLi2gLSQmlmtTpGucNP3sXEpOiI5tdGhjdE111ekyEg==}
+ /@rollup/[email protected]:
+ resolution: {integrity: sha512-ee7BudTwwrglFYSc3UnqInDDjCLWHKrFmGNi4aK7jlEyg4CyPa1DCMrZfsN1O13YT76UFEqXz2CoN7BCGpUlJw==}
cpu: [arm]
os: [android]
requiresBuild: true
+ dev: true
optional: true
- /@rollup/[email protected]:
- resolution: {integrity: sha512-OBqcX2BMe6nvjQ0Nyp7cC90cnumt8PXmO7Dp3gfAju/6YwG0Tj74z1vKrfRz7qAv23nBcYM8BCbhrsWqO7PzQQ==}
+ /@rollup/[email protected]:
+ resolution: {integrity: sha512-TrTaFJ9pXgfXEiJKQ3yQRelpQFqgRzVR9it8DbeRzG0RX7mKUy0bqhCFsgevwXLJepQKTnLl95TnPGf9T9AMOA==}
cpu: [arm64]
os: [android]
requiresBuild: true
- dev: true
optional: true
- /@rollup/[email protected]:
- resolution: {integrity: sha512-BSbaCmn8ZadK3UAQdlauSvtaJjhlDEjS5hEVVIN3A4bbl3X+otyf/kOJV08bYiRxfejP3DXFzO2jz3G20107+Q==}
+ /@rollup/[email protected]:
+ resolution: {integrity: sha512-xOuhj9HHtn8128ir8veoQsBbAUBasDbHIBniYTEx02pAmu9EXL+ZjJqngnNEy6ZgZ4h1JwL33GMNu3yJL5Mzow==}
cpu: [arm64]
os: [android]
requiresBuild: true
+ dev: true
optional: true
- /@rollup/[email protected]:
- resolution: {integrity: sha512-X64tZd8dRE/QTrBIEs63kaOBG0b5GVEd3ccoLtyf6IdXtHdh8h+I56C2yC3PtC9Ucnv0CpNFJLqKFVgCYe0lOQ==}
+ /@rollup/[email protected]:
+ resolution: {integrity: sha512-fz7jN6ahTI3cKzDO2otQuybts5cyu0feymg0bjvYCBrZQ8tSgE8pc0sSNEuGvifrQJWiwx9F05BowihmLxeQKw==}
cpu: [arm64]
os: [darwin]
requiresBuild: true
- dev: true
optional: true
- /@rollup/[email protected]:
- resolution: {integrity: sha512-Ovf2evVaP6sW5Ut0GHyUSOqA6tVKfrTHddtmxGQc1CTQa1Cw3/KMCDEEICZBbyppcwnhMwcDce9ZRxdWRpVd6g==}
+ /@rollup/[email protected]:
+ resolution: {integrity: sha512-NTGJWoL8bKyqyWFn9/RzSv4hQ4wTbaAv0lHHRwf4OnpiiP4P8W0jiXbm8Nc5BCXKmWAwuvJY82mcIU2TayC20g==}
cpu: [arm64]
os: [darwin]
requiresBuild: true
+ dev: true
optional: true
- /@rollup/[email protected]:
- resolution: {integrity: sha512-cc71KUZoVbUJmGP2cOuiZ9HSOP14AzBAThn3OU+9LcA1+IUqswJyR1cAJj3Mg55HbjZP6OLAIscbQsQLrpgTOg==}
+ /@rollup/[email protected]:
+ resolution: {integrity: sha512-WTvdz7SLMlJpektdrnWRUN9C0N2qNHwNbWpNo0a3Tod3gb9leX+yrYdCeB7VV36OtoyiPAivl7/xZ3G1z5h20g==}
cpu: [x64]
os: [darwin]
requiresBuild: true
- dev: true
optional: true
- /@rollup/[email protected]:
- resolution: {integrity: sha512-U+Jcxm89UTK592vZ2J9st9ajRv/hrwHdnvyuJpa5A2ngGSVHypigidkQJP+YiGL6JODiUeMzkqQzbCG3At81Gg==}
+ /@rollup/[email protected]:
+ resolution: {integrity: sha512-hlKqj7bpPvU15sZo4za14u185lpMzdwWLMc9raMqPK4wywt0wR23y1CaVQ4oAFXat3b5/gmRntyfpwWTKl+vvA==}
cpu: [x64]
os: [darwin]
requiresBuild: true
+ dev: true
optional: true
- /@rollup/[email protected]:
- resolution: {integrity: sha512-a6w/Y3hyyO6GlpKL2xJ4IOh/7d+APaqLYdMf86xnczU3nurFTaVN9s9jOXQg97BE4nYm/7Ga51rjec5nfRdrvA==}
+ /@rollup/[email protected]:
+ resolution: {integrity: sha512-dBHQl+7wZzBYcIF6o4k2XkAfwP2ks1mYW2q/Gzv9n39uDcDiAGDqEyml08OdY0BIct0yLSPkDTqn4i6czpBLLw==}
cpu: [arm]
os: [linux]
requiresBuild: true
- dev: true
optional: true
- /@rollup/[email protected]:
- resolution: {integrity: sha512-8wZidaUJUTIR5T4vRS22VkSMOVooG0F4N+JSwQXWSRiC6yfEsFMLTYRFHvby5mFFuExHa/yAp9juSphQQJAijQ==}
+ /@rollup/[email protected]:
+ resolution: {integrity: sha512-7ZIZx8c3u+pfI0ohQsft/GywrXez0uR6dUP0JhBuCK3sFO5TfdLn/YApnVkvPxuTv3+YKPIZend9Mt7Cz6sS3Q==}
cpu: [arm]
os: [linux]
requiresBuild: true
+ dev: true
optional: true
- /@rollup/[email protected]:
- resolution: {integrity: sha512-0fZBq27b+D7Ar5CQMofVN8sggOVhEtzFUwOwPppQt0k+VR+7UHMZZY4y+64WJ06XOhBTKXtQB/Sv0NwQMXyNAA==}
+ /@rollup/[email protected]:
+ resolution: {integrity: sha512-bur4JOxvYxfrAmocRJIW0SADs3QdEYK6TQ7dTNz6Z4/lySeu3Z1H/+tl0a4qDYv0bCdBpUYM0sYa/X+9ZqgfSQ==}
cpu: [arm64]
os: [linux]
requiresBuild: true
- dev: true
optional: true
- /@rollup/[email protected]:
- resolution: {integrity: sha512-Iu0Kno1vrD7zHQDxOmvweqLkAzjxEVqNhUIXBsZ8hu8Oak7/5VTPrxOEZXYC1nmrBVJp0ZcL2E7lSuuOVaE3+w==}
+ /@rollup/[email protected]:
+ resolution: {integrity: sha512-7Pk/5mO11JW/cH+a8lL/i0ZxmRGrbpYqN0VwO2DHhU+SJWWOH2zE1RAcPaj8KqiwC8DCDIJOSxjV9+9lLb6aeA==}
cpu: [arm64]
os: [linux]
requiresBuild: true
+ dev: true
optional: true
- /@rollup/[email protected]:
- resolution: {integrity: sha512-eTvzUS3hhhlgeAv6bfigekzWZjaEX9xP9HhxB0Dvrdbkk5w/b+1Sxct2ZuDxNJKzsRStSq1EaEkVSEe7A7ipgQ==}
+ /@rollup/[email protected]:
+ resolution: {integrity: sha512-ssp77SjcDIUSoUyj7DU7/5iwM4ZEluY+N8umtCT9nBRs3u045t0KkW02LTyHouHDomnMXaXSZcCSr2bdMK63kA==}
cpu: [arm64]
os: [linux]
requiresBuild: true
- dev: true
optional: true
- /@rollup/[email protected]:
- resolution: {integrity: sha512-C31QrW47llgVyrRjIwiOwsHFcaIwmkKi3PCroQY5aVq4H0A5v/vVVAtFsI1nfBngtoRpeREvZOkIhmRwUKkAdw==}
+ /@rollup/[email protected]:
+ resolution: {integrity: sha512-KrRnuG5phJx756e62wxvWH2e+TK84MP2IVuPwfge+GBvWqIUfVzFRn09TKruuQBXzZp52Vyma7FjMDkwlA9xpg==}
cpu: [arm64]
os: [linux]
requiresBuild: true
+ dev: true
optional: true
- /@rollup/[email protected]:
- resolution: {integrity: sha512-ix+qAB9qmrCRiaO71VFfY8rkiAZJL8zQRXveS27HS+pKdjwUfEhqo2+YF2oI+H/22Xsiski+qqwIBxVewLK7sw==}
+ /@rollup/[email protected]:
+ resolution: {integrity: sha512-Jv1DkIvwEPAb+v25/Unrnnq9BO3F5cbFPT821n3S5litkz+O5NuXuNhqtPx5KtcwOTtaqkTsO+IVzJOsxd11aQ==}
cpu: [riscv64]
os: [linux]
requiresBuild: true
- dev: true
optional: true
- /@rollup/[email protected]:
- resolution: {integrity: sha512-Oq90dtMHvthFOPMl7pt7KmxzX7E71AfyIhh+cPhLY9oko97Zf2C9tt/XJD4RgxhaGeAraAXDtqxvKE1y/j35lA==}
- cpu: [riscv64]
+ /@rollup/[email protected]:
+ resolution: {integrity: sha512-U564BrhEfaNChdATQaEODtquCC7Ez+8Hxz1h5MAdMYj0AqD0GA9rHCpElajb/sQcaFL6NXmHc5O+7FXpWMa73Q==}
+ cpu: [s390x]
os: [linux]
requiresBuild: true
optional: true
- /@rollup/[email protected]:
- resolution: {integrity: sha512-TenQhZVOtw/3qKOPa7d+QgkeM6xY0LtwzR8OplmyL5LrgTWIXpTQg2Q2ycBf8jm+SFW2Wt/DTn1gf7nFp3ssVA==}
+ /@rollup/[email protected]:
+ resolution: {integrity: sha512-zGRDulLTeDemR8DFYyFIQ8kMP02xpUsX4IBikc7lwL9PrwR3gWmX2NopqiGlI2ZVWMl15qZeUjumTwpv18N7sQ==}
cpu: [x64]
os: [linux]
requiresBuild: true
- dev: true
optional: true
- /@rollup/[email protected]:
- resolution: {integrity: sha512-yUD/8wMffnTKuiIsl6xU+4IA8UNhQ/f1sAnQebmE/lyQ8abjsVyDkyRkWop0kdMhKMprpNIhPmYlCxgHrPoXoA==}
+ /@rollup/[email protected]:
+ resolution: {integrity: sha512-My+53GasPa2D2tU5dXiyHYwrELAUouSfkNlZ3bUKpI7btaztO5vpALEs3mvFjM7aKTvEbc7GQckuXeXIDKQ0fg==}
cpu: [x64]
os: [linux]
requiresBuild: true
+ dev: true
optional: true
- /@rollup/[email protected]:
- resolution: {integrity: sha512-LfFdRhNnW0zdMvdCb5FNuWlls2WbbSridJvxOvYWgSBOYZtgBfW9UGNJG//rwMqTX1xQE9BAodvMH9tAusKDUw==}
+ /@rollup/[email protected]:
+ resolution: {integrity: sha512-VTk/MveyPdMFkYJJPCkYBw07KcTkGU2hLEyqYMsU4NjiOfzoaDTW9PWGRsNwiOA3qI0k/JQPjkl/4FCK1smskQ==}
cpu: [x64]
os: [linux]
requiresBuild: true
- dev: true
optional: true
- /@rollup/[email protected]:
- resolution: {integrity: sha512-9RyNqoFNdF0vu/qqX63fKotBh43fJQeYC98hCaf89DYQpv+xu0D8QFSOS0biA7cGuqJFOc1bJ+m2rhhsKcw1hw==}
+ /@rollup/[email protected]:
+ resolution: {integrity: sha512-/f0Q6Sc+Vw54Ws6N8fxaEe4R7at3b8pFyv+O/F2VaQ4hODUJcRUcCBJh6zuqtgQQt7w845VTkGLFgWZkP3tUoQ==}
cpu: [x64]
os: [linux]
requiresBuild: true
+ dev: true
optional: true
- /@rollup/[email protected]:
- resolution: {integrity: sha512-JPDxovheWNp6d7AHCgsUlkuCKvtu3RB55iNEkaQcf0ttsDU/JZF+iQnYcQJSk/7PtT4mjjVG8N1kpwnI9SLYaw==}
+ /@rollup/[email protected]:
+ resolution: {integrity: sha512-L+hX8Dtibb02r/OYCsp4sQQIi3ldZkFI0EUkMTDwRfFykXBPptoz/tuuGqEd3bThBSLRWPR6wsixDSgOx/U3Zw==}
cpu: [arm64]
os: [win32]
requiresBuild: true
- dev: true
optional: true
- /@rollup/[email protected]:
- resolution: {integrity: sha512-46ue8ymtm/5PUU6pCvjlic0z82qWkxv54GTJZgHrQUuZnVH+tvvSP0LsozIDsCBFO4VjJ13N68wqrKSeScUKdA==}
+ /@rollup/[email protected]:
+ resolution: {integrity: sha512-NCKuuZWLht6zj7s6EIFef4BxCRX1GMr83S2W4HPCA0RnJ4iHE4FS1695q6Ewoa6A9nFjJe1//yUu0kgBU07Edw==}
cpu: [arm64]
os: [win32]
requiresBuild: true
+ dev: true
optional: true
- /@rollup/[email protected]:
- resolution: {integrity: sha512-fjtuvMWRGJn1oZacG8IPnzIV6GF2/XG+h71FKn76OYFqySXInJtseAqdprVTDTyqPxQOG9Exak5/E9Z3+EJ8ZA==}
+ /@rollup/[email protected]:
+ resolution: {integrity: sha512-+dI2jVPfM5A8zme8riEoNC7UKk0Lzc7jCj/U89cQIrOjrZTCWZl/+IXUeRT2rEZ5j25lnSA9G9H1Ob9azaF/KQ==}
cpu: [ia32]
os: [win32]
requiresBuild: true
- dev: true
optional: true
- /@rollup/[email protected]:
- resolution: {integrity: sha512-P5/MqLdLSlqxbeuJ3YDeX37srC8mCflSyTrUsgbU1c/U9j6l2g2GiIdYaGD9QjdMQPMSgYm7hgg0551wHyIluw==}
+ /@rollup/[email protected]:
+ resolution: {integrity: sha512-J5zL3riR4AOyU/J3M/i4k/zZ8eP1yT+nTmAKztCXJtnI36jYH0eepvob22mAQ/kLwfsK2TB6dbyVY1F8c/0H5A==}
cpu: [ia32]
os: [win32]
requiresBuild: true
+ dev: true
optional: true
- /@rollup/[email protected]:
- resolution: {integrity: sha512-ZYmr5mS2wd4Dew/JjT0Fqi2NPB/ZhZ2VvPp7SmvPZb4Y1CG/LRcS6tcRo2cYU7zLK5A7cdbhWnnWmUjoI4qapg==}
+ /@rollup/[email protected]:
+ resolution: {integrity: sha512-YY1Exxo2viZ/O2dMHuwQvimJ0SqvL+OAWQLLY6rvXavgQKjhQUzn7nc1Dd29gjB5Fqi00nrBWctJBOyfVMIVxw==}
cpu: [x64]
os: [win32]
requiresBuild: true
- dev: true
optional: true
- /@rollup/[email protected]:
- resolution: {integrity: sha512-UKXUQNbO3DOhzLRwHSpa0HnhhCgNODvfoPWv2FCXme8N/ANFfhIPMGuOT+QuKd16+B5yxZ0HdpNlqPvTMS1qfw==}
+ /@rollup/[email protected]:
+ resolution: {integrity: sha512-pL0RXRHuuGLhvs7ayX/SAHph1hrDPXOM5anyYUQXWJEENxw3nfHkzv8FfVlEVcLyKPAEgDRkd6RKZq2SMqS/yg==}
cpu: [x64]
os: [win32]
requiresBuild: true
+ dev: true
optional: true
@@ -4032,14 +4483,12 @@ packages:
resolve: 1.22.8
semver: 7.5.4
z-schema: 5.0.5
- dev: false
/@rushstack/[email protected]:
resolution: {integrity: sha512-pXRYSe29TjRw7rqxD4WS3HN/sRSbfr+tJs4a9uuaSIBAITbUggygdhuG0VrO0EO+QqH91GhYMN4S6KRtOEmGVA==}
dependencies:
resolve: 1.22.8
strip-json-comments: 3.1.1
- dev: false
/@rushstack/[email protected]:
resolution: {integrity: sha512-2jweO1O57BYP5qdBGl6apJLB+aRIn5ccIRTPDyULh0KMwVzFqWtw6IZWt1qtUoZD/pD2RNkIOosH6Cq45rIYeg==}
@@ -4048,7 +4497,6 @@ packages:
argparse: 1.0.10
colors: 1.2.5
string-argv: 0.3.2
- dev: false
/@sinclair/[email protected]:
resolution: {integrity: sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==}
@@ -4068,9 +4516,9 @@ packages:
dependencies:
'@storybook/core-events': 8.0.4
'@storybook/global': 5.0.0
- '@types/uuid': 9.0.8
+ '@types/uuid': 9.0.7
dequal: 2.0.3
- polished: 4.3.1
+ polished: 4.2.2
uuid: 9.0.1
dev: false
@@ -4099,7 +4547,7 @@ packages:
/@storybook/[email protected]:
resolution: {integrity: sha512-m0Y7qGAMnNPLEOEgzW/SBm8GX0xabJBaRN+aYijO6UKTln7F6oXXVve+xPC0Y4s6Gc9HZFdJY8WXZr1YSGEUVA==}
dependencies:
- '@babel/core': 7.23.9
+ '@babel/core': 7.24.0
'@mdx-js/react': 3.0.1(@types/[email protected])([email protected])
'@storybook/blocks': 8.0.4(@types/[email protected])([email protected])([email protected])
'@storybook/client-logger': 8.0.4
@@ -4162,7 +4610,7 @@ packages:
'@storybook/instrumenter': 8.0.4
'@storybook/test': 8.0.4
'@storybook/types': 8.0.4
- polished: 4.3.1
+ polished: 4.2.2
ts-dedent: 2.2.0
transitivePeerDependencies:
- '@jest/globals'
@@ -4205,8 +4653,8 @@ packages:
peerDependencies:
webpack: ^5.0.0
dependencies:
- '@storybook/node-logger': 8.0.0
- webpack: 5.90.3(@swc/[email protected])([email protected])
+ '@storybook/node-logger': 8.0.1
+ webpack: 5.90.3(@swc/[email protected])([email protected])
dev: false
/@storybook/[email protected]:
@@ -4223,8 +4671,8 @@ packages:
resolution: {integrity: sha512-o8PPyFCl48bkqmcwiX6RNIMBdXe96EqmB1JuMzInQX77f7lEAN6sAE17/pdlZmmRmzIEADqgumOXLKL3ViObzw==}
engines: {node: '>=18'}
dependencies:
- '@swc/core': 1.4.4
- swc-loader: 0.2.6(@swc/[email protected])([email protected])
+ '@swc/core': 1.4.2
+ swc-loader: 0.2.6(@swc/[email protected])([email protected])
transitivePeerDependencies:
- '@swc/helpers'
- webpack
@@ -4259,12 +4707,12 @@ packages:
lodash: 4.17.21
markdown-to-jsx: 7.3.2([email protected])
memoizerific: 1.11.3
- polished: 4.3.1
+ polished: 4.2.2
react: 18.2.0
react-colorful: 5.6.1([email protected])([email protected])
react-dom: 18.2.0([email protected])
telejson: 7.2.0
- tocbot: 4.25.0
+ tocbot: 4.23.0
ts-dedent: 2.2.0
util-deprecate: 1.0.2
transitivePeerDependencies:
@@ -4295,7 +4743,7 @@ packages:
- supports-color
dev: false
resolution: {integrity: sha512-FKXIGfDjZJ7KCq6w8e3NEp2+KATsh4U24UV/K8cFjCrRIU++jDpO274D9ozdpzEmhvHOfxK/QlgalqS4G599Aw==}
peerDependencies:
typescript: '*'
@@ -4311,8 +4759,8 @@ packages:
'@storybook/node-logger': 8.0.4
'@storybook/preview': 8.0.4
'@storybook/preview-api': 8.0.4
- '@types/node': 18.19.17
- '@types/semver': 7.5.7
+ '@types/node': 18.18.13
+ '@types/semver': 7.5.6
browser-assert: 1.2.1
case-sensitive-paths-webpack-plugin: 2.4.0
cjs-module-lexer: 1.2.3
@@ -4323,18 +4771,18 @@ packages:
fork-ts-checker-webpack-plugin: 8.0.0([email protected])([email protected])
fs-extra: 11.2.0
html-webpack-plugin: 5.6.0([email protected])
- magic-string: 0.30.7
+ magic-string: 0.30.8
path-browserify: 1.0.1
process: 0.11.10
semver: 7.6.0
style-loader: 3.3.4([email protected])
- terser-webpack-plugin: 5.3.10(@swc/[email protected])([email protected])([email protected])
+ terser-webpack-plugin: 5.3.10(@swc/[email protected])([email protected])([email protected])
ts-dedent: 2.2.0
typescript: 5.4.3
url: 0.11.3
util: 0.12.5
util-deprecate: 1.0.2
- webpack: 5.90.3(@swc/[email protected])([email protected])
+ webpack: 5.90.3(@swc/[email protected])([email protected])
webpack-dev-middleware: 6.1.1([email protected])
webpack-hot-middleware: 2.26.1
webpack-virtual-modules: 0.5.0
@@ -4361,8 +4809,8 @@ packages:
resolution: {integrity: sha512-8jb8hrulRMfyFyNXFEapxHBS51xb42ZZGfVAacXIsHOJtjOd5CnOoSUYn0aOkVl19VF/snoa9JOW7BaW/50Eqw==}
hasBin: true
dependencies:
- '@babel/core': 7.23.9
- '@babel/types': 7.23.9
+ '@babel/core': 7.24.0
+ '@babel/types': 7.24.0
'@ndelangen/get-tarball': 3.0.9
'@storybook/codemod': 8.0.4
'@storybook/core-common': 8.0.4
@@ -4372,24 +4820,24 @@ packages:
'@storybook/node-logger': 8.0.4
'@storybook/telemetry': 8.0.4
'@storybook/types': 8.0.4
- '@types/semver': 7.5.7
+ '@types/semver': 7.5.6
'@yarnpkg/fslib': 2.10.3
'@yarnpkg/libzip': 2.3.0
chalk: 4.1.2
commander: 6.2.1
cross-spawn: 7.0.3
detect-indent: 6.1.0
- envinfo: 7.11.1
+ envinfo: 7.11.0
execa: 5.1.1
find-up: 5.0.0
fs-extra: 11.2.0
get-npm-tarball-url: 2.1.0
- giget: 1.2.1
+ giget: 1.1.3
globby: 11.1.0
- jscodeshift: 0.15.1(@babel/[email protected])
+ jscodeshift: 0.15.1(@babel/[email protected])
leven: 3.1.0
ora: 5.4.1
- prettier: 3.2.5
+ prettier: 3.2.4
prompts: 2.4.2
read-pkg-up: 7.0.1
semver: 7.6.0
@@ -4415,9 +4863,9 @@ packages:
/@storybook/[email protected]:
resolution: {integrity: sha512-bysG46P4wjlR3RCpr/ntNAUaupWpzLcWYWti3iNtIyZ/iPrX6KtXoA9QCIwJZrlv41us6F+KEZbzLzkgWbymtQ==}
dependencies:
- '@babel/core': 7.23.9
- '@babel/preset-env': 7.23.9(@babel/[email protected])
- '@babel/types': 7.23.9
+ '@babel/core': 7.24.0
+ '@babel/preset-env': 7.23.3(@babel/[email protected])
+ '@babel/types': 7.24.0
'@storybook/csf': 0.1.2
'@storybook/csf-tools': 8.0.4
'@storybook/node-logger': 8.0.4
@@ -4425,9 +4873,9 @@ packages:
'@types/cross-spawn': 6.0.6
cross-spawn: 7.0.3
globby: 11.1.0
- jscodeshift: 0.15.1(@babel/[email protected])
+ jscodeshift: 0.15.1(@babel/[email protected])
lodash: 4.17.21
- prettier: 3.2.5
+ prettier: 3.2.4
recast: 0.23.5
tiny-invariant: 1.3.3
transitivePeerDependencies:
@@ -4499,7 +4947,7 @@ packages:
resolution: {integrity: sha512-/633Pp7LPcDWXkPLSW+W9VUYUbVkdVBG6peXjuzogV0vzdM0dM9af/T0uV2NQxUhzoy6/7QdSDljE+eEOBs2Lw==}
dependencies:
'@aw-web-design/x-default-browser': 1.4.126
- '@babel/core': 7.23.9
+ '@babel/core': 7.24.0
'@discoveryjs/json-ext': 0.5.7
'@storybook/builder-manager': 8.0.4
'@storybook/channels': 8.0.4
@@ -4516,9 +4964,9 @@ packages:
'@storybook/telemetry': 8.0.4
'@storybook/types': 8.0.4
'@types/detect-port': 1.3.5
- '@types/node': 18.19.17
+ '@types/node': 18.18.13
'@types/pretty-hrtime': 1.0.3
- '@types/semver': 7.5.7
+ '@types/semver': 7.5.6
better-opn: 3.0.2
chalk: 4.1.2
cli-table3: 0.6.3
@@ -4556,7 +5004,7 @@ packages:
'@storybook/core-common': 8.0.4
'@storybook/node-logger': 8.0.4
'@storybook/types': 8.0.4
- '@types/node': 18.19.17
+ '@types/node': 18.18.13
ts-dedent: 2.2.0
transitivePeerDependencies:
- encoding
@@ -4567,7 +5015,7 @@ packages:
resolution: {integrity: sha512-pEgctWuS/qeKMFZJJUM2JuKwjKBt27ye+216ft7xhNqpsrmCgumJYrkU/ii2CsFJU/qr5Fu9EYw+N+vof1OalQ==}
dependencies:
'@storybook/csf-tools': 8.0.4
- unplugin: 1.7.1
+ unplugin: 1.5.1
transitivePeerDependencies:
- supports-color
dev: false
@@ -4576,9 +5024,9 @@ packages:
resolution: {integrity: sha512-dMSZxWnXBhmXGOZZOAJ4DKZRCYdA0HaqqZ4/eF9MLLsI+qvW4EklcpjVY6bsIzACgubRWtRZkTpxTnjExi/N1A==}
dependencies:
'@babel/generator': 7.23.6
- '@babel/parser': 7.23.9
- '@babel/traverse': 7.23.9
- '@babel/types': 7.23.9
+ '@babel/parser': 7.24.0
+ '@babel/traverse': 7.24.0
+ '@babel/types': 7.24.0
'@storybook/csf': 0.1.2
'@storybook/types': 8.0.4
fs-extra: 11.2.0
@@ -4651,7 +5099,7 @@ packages:
dequal: 2.0.3
lodash: 4.17.21
memoizerific: 1.11.3
- store2: 2.14.3
+ store2: 2.14.2
telejson: 7.2.0
ts-dedent: 2.2.0
transitivePeerDependencies:
@@ -4663,14 +5111,14 @@ packages:
resolution: {integrity: sha512-M5IofDSxbIQIdAglxUtZOGKjZ1EAq1Mdbh4UolVsF1PKF6dAvBQJLVW6TiLjEbmPBtqgeYKMgrmmYiFNqVcdBQ==}
dev: false
- /@storybook/[email protected]:
- resolution: {integrity: sha512-C/sMNQqCIYVtJaLpe92RSkPgW3GXcWp6QeH5+glfP42kh+G9axxnEJJ996tyAnNQRzUuI+Eh+B7ytPZU1/WseQ==}
+ /@storybook/[email protected]:
+ resolution: {integrity: sha512-uYWKSz9NhLOe2O60sJ4UPT1nzvbH0oR/YjK+OP3B4BySa6e195xY/5Uhou4lEaPSNU/0XXaLHCYeXjqeBjZopA==}
dev: false
/@storybook/[email protected]:
resolution: {integrity: sha512-cALLHuX53vLQsoJamGRlquh2pfhPq9copXou2JTmFT6mrCcipo77SzhBDfeeuhaGv6vUWPfmGjPBEHXWGPe4+g==}
resolution: {integrity: sha512-XldgoZJOXNbZLGhvP6FqVeRnXigEZXV88uhEveREH4zRceYxXUmiCjFUnFy5aXaYZLcv09GHpqTPCqRoOZ+upg==}
engines: {node: '>=18.0.0'}
peerDependencies:
@@ -4686,19 +5134,19 @@ packages:
'@storybook/node-logger': 8.0.4
'@storybook/react-docgen-typescript-plugin': 1.0.6--canary.9.0c3f3b7.0([email protected])([email protected])
- '@types/node': 18.19.17
- '@types/semver': 7.5.7
+ '@types/node': 18.18.13
+ '@types/semver': 7.5.6
find-up: 5.0.0
fs-extra: 11.2.0
- magic-string: 0.30.7
+ magic-string: 0.30.8
react: 18.2.0
- react-docgen: 7.0.3
+ react-docgen: 7.0.1
react-dom: 18.2.0([email protected])
resolve: 1.22.8
semver: 7.6.0
tsconfig-paths: 4.2.0
typescript: 5.4.3
- webpack: 5.90.3(@swc/[email protected])([email protected])
+ webpack: 5.90.3(@swc/[email protected])([email protected])
transitivePeerDependencies:
- '@swc/core'
- encoding
@@ -4717,7 +5165,7 @@ packages:
'@storybook/csf': 0.1.2
'@storybook/global': 5.0.0
'@storybook/types': 8.0.4
- '@types/qs': 6.9.11
+ '@types/qs': 6.9.10
dequal: 2.0.3
lodash: 4.17.21
memoizerific: 1.11.3
@@ -4744,7 +5192,7 @@ packages:
react-docgen-typescript: 2.2.2([email protected])
tslib: 2.6.2
typescript: 5.4.3
- webpack: 5.90.3(@swc/[email protected])([email protected])
+ webpack: 5.90.3(@swc/[email protected])([email protected])
transitivePeerDependencies:
- supports-color
dev: false
@@ -4758,7 +5206,7 @@ packages:
react: 18.2.0
react-dom: 18.2.0([email protected])
resolution: {integrity: sha512-HZzcIQLWR6pg28CRwNF9VnFWGTEFEnIAAGKbUAc7mMGysN9AgZgz618FZu0W0JmAUBtWwEJ+pYyLJCIOFoDE6w==}
engines: {node: '>=18.0.0'}
peerDependencies:
@@ -4769,10 +5217,10 @@ packages:
typescript:
optional: true
dependencies:
- '@storybook/builder-webpack5': 8.0.4(@swc/[email protected])([email protected])([email protected])
+ '@storybook/builder-webpack5': 8.0.4(@swc/[email protected])([email protected])([email protected])
- '@types/node': 18.19.17
+ '@types/node': 18.18.13
react: 18.2.0
react-dom: 18.2.0([email protected])
typescript: 5.4.3
@@ -4805,7 +5253,7 @@ packages:
'@storybook/types': 8.0.4
'@types/escodegen': 0.0.6
'@types/estree': 0.0.51
- '@types/node': 18.19.17
+ '@types/node': 18.18.13
acorn: 7.4.1
acorn-jsx: 5.3.2([email protected])
acorn-walk: 7.2.0
@@ -4903,7 +5351,7 @@ packages:
peerDependencies:
eslint: '>=8.40.0'
dependencies:
- '@types/eslint': 8.56.2
+ '@types/eslint': 8.56.6
acorn: 8.11.3
escape-string-regexp: 4.0.0
eslint: 8.57.0
@@ -4918,7 +5366,7 @@ packages:
eslint: '>=8.40.0'
dependencies:
'@stylistic/eslint-plugin-js': 1.7.0([email protected])
- '@types/eslint': 8.56.2
+ '@types/eslint': 8.56.6
eslint: 8.57.0
estraverse: 5.3.0
picomatch: 4.0.1
@@ -4929,7 +5377,7 @@ packages:
peerDependencies:
eslint: '*'
dependencies:
- '@types/eslint': 8.56.2
+ '@types/eslint': 8.56.6
'@typescript-eslint/utils': 6.21.0([email protected])([email protected])
eslint: 8.57.0
transitivePeerDependencies:
@@ -4944,7 +5392,7 @@ packages:
eslint: '>=8.40.0'
dependencies:
'@stylistic/eslint-plugin-js': 1.7.0([email protected])
- '@types/eslint': 8.56.2
+ '@types/eslint': 8.56.6
'@typescript-eslint/utils': 6.21.0([email protected])([email protected])
eslint: 8.57.0
transitivePeerDependencies:
@@ -4962,15 +5410,15 @@ packages:
'@stylistic/eslint-plugin-jsx': 1.7.0([email protected])
'@stylistic/eslint-plugin-plus': 1.7.0([email protected])([email protected])
'@stylistic/eslint-plugin-ts': 1.7.0([email protected])([email protected])
- '@types/eslint': 8.56.2
+ '@types/eslint': 8.56.5
eslint: 8.57.0
transitivePeerDependencies:
- supports-color
- typescript
dev: true
- resolution: {integrity: sha512-goSHS8yvDgha93RHIV2Vn50neYasqbc4K1g/nKOV6T8kiKVv4w/rmqNJu9Aa0mPGVJtjcr0NvX6bBwE0T4HIzg==}
+ resolution: {integrity: sha512-1uSdAn1MRK5C1m/TvLZ2RDvr0zLvochgrZ2xL+lRzugLlCTlSA+Q4TWtrZaOz+vnnFVliCpw7c7qu0JouhgQIw==}
engines: {node: '>=10'}
cpu: [arm64]
os: [darwin]
@@ -4978,8 +5426,8 @@ packages:
dev: false
optional: true
- resolution: {integrity: sha512-PLfgL355qsl5c5kUPsFGITgVXoaqjp9sCd0Y5Z5uN7RtSOvwIX28e23eCxj02dOr7OBr8sq6qBlEMDV03T24Iw==}
+ resolution: {integrity: sha512-TYD28+dCQKeuxxcy7gLJUCFLqrwDZnHtC2z7cdeGfZpbI2mbfppfTf2wUPzqZk3gEC96zHd4Yr37V3Tvzar+lQ==}
engines: {node: '>=10'}
cpu: [x64]
os: [darwin]
@@ -4987,8 +5435,8 @@ packages:
dev: false
optional: true
- resolution: {integrity: sha512-BVEZVOGnaZvEcHm//KyYzhte46vdF67wLVtmQEXPAlrkRgZ3b/JSySeLXqeocAcOANWb1/SPHlEmPK5azP+JvQ==}
+ resolution: {integrity: sha512-Eyqipf7ZPGj0vplKHo8JUOoU1un2sg5PjJMpEesX0k+6HKE2T8pdyeyXODN0YTFqzndSa/J43EEPXm+rHAsLFQ==}
engines: {node: '>=10'}
cpu: [arm]
os: [linux]
@@ -4996,8 +5444,8 @@ packages:
dev: false
optional: true
- resolution: {integrity: sha512-ZbOJfVbCjVMKdfvvJDOTpa3tGqU6tfxng1CDjA62RUcqa7sRbovrjSiw6mq5/4EoOF4zK8CtPIG+TlxKPapnuw==}
+ resolution: {integrity: sha512-wZn02DH8VYPv3FC0ub4my52Rttsus/rFw+UUfzdb3tHMHXB66LqN+rR0ssIOZrH6K+VLN6qpTw9VizjyoH0BxA==}
engines: {node: '>=10'}
cpu: [arm64]
os: [linux]
@@ -5005,8 +5453,8 @@ packages:
dev: false
optional: true
- resolution: {integrity: sha512-+Gjo1W4tY/4kgEe5h22iuCWkpKcPMccXwYaSLNvgBCBQADB0zKFfF0lNf7y6U+81NFEjhRsdwXMsRGZtgTpUrg==}
+ resolution: {integrity: sha512-3G0D5z9hUj9bXNcwmA1eGiFTwe5rWkuL3DsoviTj73TKLpk7u64ND0XjEfO0huVv4vVu9H1jodrKb7nvln/dlw==}
engines: {node: '>=10'}
cpu: [arm64]
os: [linux]
@@ -5014,8 +5462,8 @@ packages:
dev: false
optional: true
- resolution: {integrity: sha512-PR/VbGm0LEkhpm5qClovZWhE/jYoQSyIeyPh8XY39uUI1u2yEfuz5UCW2sJJIWOvNiAfu7+TjW+9H/I7zBBDJA==}
+ resolution: {integrity: sha512-LFxn9U8cjmYHw3jrdPNqPAkBGglKE3tCZ8rA7hYyp0BFxuo7L2ZcEnPm4RFpmSCCsExFH+LEJWuMGgWERoktvg==}
engines: {node: '>=10'}
cpu: [x64]
os: [linux]
@@ -5023,8 +5471,8 @@ packages:
dev: false
optional: true
- resolution: {integrity: sha512-poT9zub4CyVcH1cxwGdrGiZD3urfOaYs/Kd52ve3ymPPeQZq7qQwKqAB/9NxoSiJDaSzJv5OwTEfgaBYCyw0iw==}
+ resolution: {integrity: sha512-dp0fAmreeVVYTUcb4u9njTPrYzKnbIH0EhH2qvC9GOYNNREUu2GezSIDgonjOXkHiTCvopG4xU7y56XtXj4VrQ==}
engines: {node: '>=10'}
cpu: [x64]
os: [linux]
@@ -5032,8 +5480,8 @@ packages:
dev: false
optional: true
- resolution: {integrity: sha512-29V5/fBd6XXFb7J/ri9ZeSS/GTqXfSWa3BiE0zTNbASpQbEXf+YPYiAtO6c1HqNyQobKB9ni+w7sa8KkAGhHXw==}
+ resolution: {integrity: sha512-HlVIiLMQkzthAdqMslQhDkoXJ5+AOLUSTV6fm6shFKZKqc/9cJvr4S8UveNERL9zUficA36yM3bbfo36McwnvQ==}
engines: {node: '>=10'}
cpu: [arm64]
os: [win32]
@@ -5041,8 +5489,8 @@ packages:
dev: false
optional: true
- resolution: {integrity: sha512-2lKEGEjpBOq0z4Nk0tFP9wxVwxgz7FonmjCkzJ95GBb5KNvMrgQQrGNGX6L0hoBo/a1kE752I6V5pOaMyIq5xQ==}
+ resolution: {integrity: sha512-WCF8faPGjCl4oIgugkp+kL9nl3nUATlzKXCEGFowMEmVVCFM0GsqlmGdPp1pjZoWc9tpYanoXQDnp5IvlDSLhA==}
engines: {node: '>=10'}
cpu: [ia32]
os: [win32]
@@ -5050,8 +5498,8 @@ packages:
dev: false
optional: true
- resolution: {integrity: sha512-xuN0oJhAewga8jNJkT5Wx25RPVnIEMZCYf4irqA5jiK6GckOdcXB8jvEJhggOxnJSW8RDsAtY5q+zw5kNkU+eA==}
+ resolution: {integrity: sha512-oV71rwiSpA5xre2C5570BhCsg1HF97SNLsZ/12xv7zayGzqr3yvFALFJN8tHKpqUdCB4FGPjoP3JFdV3i+1wUw==}
engines: {node: '>=10'}
cpu: [x64]
os: [win32]
@@ -5059,8 +5507,8 @@ packages:
dev: false
optional: true
- resolution: {integrity: sha512-P88AHGWM8xPY3Tjj5360V6vqKCS5UfsyffPJVnr7BKSr45rlG4/pjEGGmFYQjg6ztgPyrGLYz1jSyzajTqTVIA==}
+ resolution: {integrity: sha512-vWgY07R/eqj1/a0vsRKLI9o9klGZfpLNOVEnrv4nrccxBgYPjcf22IWwAoaBJ+wpA7Q4fVjCUM8lP0m01dpxcg==}
engines: {node: '>=10'}
requiresBuild: true
peerDependencies:
@@ -5072,16 +5520,16 @@ packages:
'@swc/counter': 0.1.3
'@swc/types': 0.1.5
optionalDependencies:
- '@swc/core-darwin-arm64': 1.4.4
- '@swc/core-darwin-x64': 1.4.4
- '@swc/core-linux-arm-gnueabihf': 1.4.4
- '@swc/core-linux-arm64-gnu': 1.4.4
- '@swc/core-linux-arm64-musl': 1.4.4
- '@swc/core-linux-x64-gnu': 1.4.4
- '@swc/core-linux-x64-musl': 1.4.4
- '@swc/core-win32-arm64-msvc': 1.4.4
- '@swc/core-win32-ia32-msvc': 1.4.4
- '@swc/core-win32-x64-msvc': 1.4.4
+ '@swc/core-darwin-arm64': 1.4.2
+ '@swc/core-darwin-x64': 1.4.2
+ '@swc/core-linux-arm-gnueabihf': 1.4.2
+ '@swc/core-linux-arm64-gnu': 1.4.2
+ '@swc/core-linux-arm64-musl': 1.4.2
+ '@swc/core-linux-x64-gnu': 1.4.2
+ '@swc/core-linux-x64-musl': 1.4.2
+ '@swc/core-win32-arm64-msvc': 1.4.2
+ '@swc/core-win32-ia32-msvc': 1.4.2
+ '@swc/core-win32-x64-msvc': 1.4.2
dev: false
@@ -5099,6 +5547,20 @@ packages:
defer-to-connect: 2.0.1
dev: true
+ /@testing-library/[email protected]:
+ resolution: {integrity: sha512-fB0R+fa3AUqbLHWyxXa2kGVtf1Fe1ZZFr0Zp6AIbIAzXb2mKbEXl+PCQNUOaq5lbTab5tfctfXRNsWXxa2f7Aw==}
+ engines: {node: '>=14'}
+ dependencies:
+ '@babel/code-frame': 7.23.4
+ '@babel/runtime': 7.23.9
+ '@types/aria-query': 5.0.4
+ aria-query: 5.1.3
+ chalk: 4.1.2
+ dom-accessibility-api: 0.5.16
+ lz-string: 1.5.0
+ pretty-format: 27.5.1
+ dev: true
+
/@testing-library/[email protected]:
resolution: {integrity: sha512-FlS4ZWlp97iiNWig0Muq8p+3rVDjRiYE+YKGbAqXOu9nwJFFOdL00kFpz42M+4huzYi86vAK1sOOfyOG45muIQ==}
engines: {node: '>=14'}
@@ -5111,6 +5573,7 @@ packages:
dom-accessibility-api: 0.5.16
lz-string: 1.5.0
pretty-format: 27.5.1
+ dev: false
/@testing-library/[email protected]:
resolution: {integrity: sha512-CzqH0AFymEMG48CpzXFriYYkOjk6ZGPCLMhW9e9jg3KMCn5OfJecF8GtGW7yGfR/IgCe3SX8BSwjdzI6BBbZLw==}
@@ -5174,7 +5637,7 @@ packages:
react-dom: ^18.0.0
dependencies:
'@babel/runtime': 7.23.9
- '@testing-library/dom': 9.3.4
+ '@testing-library/dom': 9.3.3
'@types/react-dom': 18.2.22
react: 18.2.0
react-dom: 18.2.0([email protected])
@@ -5195,7 +5658,6 @@ packages:
resolution: {integrity: sha512-ebDJ9b0e702Yr7pWgB0jzm+CX4Srzz8RcXtLJDJB+BSccqMa36uyH/zUsSYao5+BD1ytv3k3rPYCq4mAE1hsXA==}
- dev: false
resolution: {integrity: sha512-rfT93uj5s0PRL7EzccGMs3brplhcrghnDoV26NqKhCAS1hVo+WdNsPvE/yb6ilfr5hi2MEk6d5EWJTKdxg8jVw==}
@@ -5203,27 +5665,27 @@ packages:
resolution: {integrity: sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==}
dependencies:
- '@babel/parser': 7.23.9
- '@babel/types': 7.23.9
- '@types/babel__generator': 7.6.8
+ '@babel/parser': 7.23.5
+ '@babel/types': 7.23.5
+ '@types/babel__generator': 7.6.7
'@types/babel__template': 7.4.4
- '@types/babel__traverse': 7.20.5
+ '@types/babel__traverse': 7.20.4
- resolution: {integrity: sha512-ASsj+tpEDsEiFr1arWrlN6V3mdfjRMZt6LtK/Vp/kreFLnr5QH5+DhvD5nINYZXzwJvXeGq+05iUXcAzVrqWtw==}
+ resolution: {integrity: sha512-6Sfsq+EaaLrw4RmdFWE9Onp63TOUue71AWb4Gpa6JxzgTYtimbM086WnYTy2U67AofR++QKCo08ZP6pwx8YFHQ==}
dependencies:
- '@babel/types': 7.23.9
+ '@babel/types': 7.23.4
resolution: {integrity: sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==}
dependencies:
- '@babel/parser': 7.23.9
- '@babel/types': 7.23.9
+ '@babel/parser': 7.23.4
+ '@babel/types': 7.23.4
- resolution: {integrity: sha512-WXCyOcRtH37HAUkpXhUduaxdm82b4GSlyTqajXviN4EfiuPgNYR109xMCKvpl6zPIpua0DGlMEDCq+g8EdoheQ==}
+ resolution: {integrity: sha512-mSM/iKUk5fDDrEV/e83qY+Cr3I1+Q3qqTuEn++HAWYjEa1+NxZr6CNrcJGf2ZTnq4HoFGC3zaTPZTobCzCFukA==}
dependencies:
- '@babel/types': 7.23.9
+ '@babel/types': 7.23.4
resolution: {integrity: sha512-e2cOW9YlVzFY2iScnGBBkplKsrn2CsObHQ2Hiw4V1sSyiGbgWL8IyqE3zFi1Pt5o1pdAtYkDAIsF3KKUPjdzaA==}
@@ -5280,8 +5742,8 @@ packages:
'@types/estree': 1.0.5
dev: false
- resolution: {integrity: sha512-uQDwm1wFHmbBbCZCqAlq6Do9LYwByNZHWzXppSnay9SuwJ+VRbjkbLABer54kcPnMSlG6Fdiy2yaFXm/z9Z5gw==}
+ resolution: {integrity: sha512-u5/YPJHo1tvkSF2CE0USEkxon82Z5DBy2xR+qfyYNszpX9qcs4sT6uq2kBbj4BXY1+DBGDPnrhMZV3pKWGNukw==}
dependencies:
'@types/estree': 1.0.5
'@types/json-schema': 7.0.15
@@ -5299,11 +5761,11 @@ packages:
resolution: {integrity: sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==}
- resolution: {integrity: sha512-oaYtiBirUOPQGSWNGPWnzyAFJ0BP3cwvN4oWZQY+zUBwpVIGsKUkpBpSztp74drYcjavs7SKFZ4DX1V2QeN8rg==}
+ resolution: {integrity: sha512-OaJ7XLaelTgrvlZD8/aa0vvvxZdUmlCn6MtWeB7TkiKW70BQLc9XEPpDLPdbo52ZhXUCrznlWdCHWxJWtdyajA==}
dependencies:
'@types/node': 20.11.30
- '@types/qs': 6.9.11
+ '@types/qs': 6.9.10
'@types/range-parser': 1.2.7
'@types/send': 0.17.4
@@ -5311,8 +5773,8 @@ packages:
resolution: {integrity: sha512-ejlPM315qwLpaQlQDTjPdsUFSc6ZsP4AN6AlWnogPjQ7CVi7PYF3YVz+CY3jE2pwYf7E/7HlDAN0rV2GxTG0HQ==}
dependencies:
'@types/body-parser': 1.19.5
- '@types/express-serve-static-core': 4.17.43
- '@types/qs': 6.9.11
+ '@types/express-serve-static-core': 4.17.41
+ '@types/qs': 6.9.10
'@types/serve-static': 1.15.5
@@ -5339,6 +5801,18 @@ packages:
resolution: {integrity: sha512-PecSzorDGdabF57OBeQO/xFbAkYWo88g4Xvnsx7LRwqLC17I7OoKtA3bQB9uXkY6UkMWCOsA8HSVpaoitscdXw==}
dev: true
+ resolution: {integrity: sha512-J5dvW98sxmGnamqf+/aLP87PYXyrha9xIgc2ZlHl6OHMFR2Ejdxep50QfU0abO1+CH6+ugx+8wEUN1toImAinA==}
+ dependencies:
+ '@types/lodash': 4.14.202
+ dev: false
+
+ resolution: {integrity: sha512-KOxyNkZpbaggVmqbpr82N2tDVTx05/3/j0f50Es1prxrWB0XYf9p3QNxqcbWb7P1Q9wlvsUSlCFnwlPCIJ46PQ==}
+ dependencies:
+ '@types/lodash': 4.14.202
+ dev: false
+
resolution: {integrity: sha512-OvlIYQK9tNneDlS0VN54LLd5uiPCBOp7gS5Z0f1mjoJYBrtStzgmJBxONW3U6OZqdtNzZPmn9BS/7WI7BFFcFQ==}
dev: false
@@ -5349,8 +5823,8 @@ packages:
'@types/unist': 2.0.10
dev: true
- resolution: {integrity: sha512-HM5bwOaIQJIQbAYfax35HCKxx7a3KrK3nBtIqJgSOitivTD1y3oW9P3rxY9RkXYPUk7y/AjAohfHKmFpGE79zw==}
+ resolution: {integrity: sha512-Rllzc5KHk0Al5/WANwgSPl1/CwjqCy+AZrGd78zuK+jO9aDM6ffblZ+zIjgPNAaEBmlO0RYDvLNh7wD0zKVgEg==}
dev: false
@@ -5363,8 +5837,8 @@ packages:
resolution: {integrity: sha512-Klz949h02Gz2uZCMGwDUSDS1YBlTdDDgbWHi+81l29tQALUtvz4rAYi5uoVhE5Lagoq6DeqAUlbrHvW/mXDgdQ==}
dev: true
- resolution: {integrity: sha512-SzyGKgwPzuWp2SHhlpXKzCX0pIOfcI4V2eF37nNBJOhwlegQ83omtVQ1XxZpDE06V/d6AQvfQdPfnw0tRC//Ng==}
+ resolution: {integrity: sha512-vXYZGRrSCreZmq1rEjMRLXJhiy8MrIeVasx+PCVlP414N7CJLHnMf+juVvjdprHyH+XRy3zKZLHeNueOpJCn0g==}
dependencies:
undici-types: 5.26.5
@@ -5391,8 +5865,8 @@ packages:
resolution: {integrity: sha512-ga8y9v9uyeiLdpKddhxYQkxNDrfvuPrlFb0N1qnZZByvcElJaXthF1UhvCh9TLWJBEHeNtdnbysW7Y6Uq8CVng==}
- resolution: {integrity: sha512-oGk0gmhnEJK4Yyk+oI7EfXsLayXatCWPHary1MtcmbAifkobT9cM9yutG/hZKIseOU0MqbIwQ/u2nn/Gb+ltuQ==}
+ resolution: {integrity: sha512-3Gnx08Ns1sEoCrWssEgTSJs/rsT2vhGP+Ja9cnnk9k4ALxinORlQneLXFeFKOTJMOeZUFD1s7w+w2AphTpvzZw==}
resolution: {integrity: sha512-hKormJbkJqzQGhziax5PItDUTMAM9uE2XXQmM37dyd4hVM+5aVl7oVxMVUiVQn2oCQFN/LKCZdvSM0pFRqbSmQ==}
@@ -5403,6 +5877,12 @@ packages:
'@types/react': 18.2.72
dev: true
+ resolution: {integrity: sha512-WH/po1gcEcoR6y857yAnPGug+ZhkF4PaTUxgAbwfeSH/QOgVSakKHBXoPGad/sEznmkiaK3pqHk+etdWisoeBQ==}
+ dependencies:
+ '@types/react': 18.2.72
+ dev: false
+
resolution: {integrity: sha512-hT/+s0VQs2ojCX823m60m5f0sL5idt9SO6Tj6Dg+rdphGPIeJbJ6CxvBYkgkGKrYeDjvIpKTR38UzmtHJOGW3Q==}
dependencies:
@@ -5423,11 +5903,11 @@ packages:
resolution: {integrity: sha512-jn7qwGFmJHwUSphV8zZneO3GmtlgLsmhs/LQyVvQbIIa+fzGMUiHI4HXJZL3FT8MJmgXWbLGiVVY7ElvHq6vDA==}
deprecated: This is a stub types definition. sass provides its own type definitions, so you do not need this installed.
dependencies:
- sass: 1.71.0
+ sass: 1.69.5
dev: true
- resolution: {integrity: sha512-/wdoPq1QqkSj9/QOeKkFquEuPzQbHTWAMPH/PaUMB+JuR31lXhlWXRZ52IpfDYVlDOUBvX09uBrPwxGT1hjNBg==}
+ resolution: {integrity: sha512-dn1l8LaMea/IjDoHNd9J52uBbInB796CDffS6VdIxvqYCPSG0V0DzHp76GpaWnlhg88uYyPbXCDIowa86ybd5A==}
resolution: {integrity: sha512-x2EM6TJOybec7c52BX0ZspPodMsQUd5L6PRwOunVyVUhXiBSKf3AezDL8Dgvgt5o0UfKNfuA0eMLr2wLT4AiBA==}
@@ -5456,8 +5936,8 @@ packages:
resolution: {integrity: sha512-dqId9J8K/vGi5Zr7oo212BGii5m3q5Hxlkwy3WpYuKPklmBEvsbMYYyLxAQpSffdLl/gdW0XUpKWFvYmyoWCoQ==}
dev: false
- resolution: {integrity: sha512-jg+97EGIcY9AGHJJRaaPVgetKDsrTgbRjQ5Msgjh/DQKEFl0DtyRr/VCOyD1T2R1MNeWPK/u7JoGhlDZnKBAfA==}
+ resolution: {integrity: sha512-WUtIVRUZ9i5dYXefDEAI7sh9/O7jGvHg7Df/5O/gtH3Yabe5odI3UWopVR1qbPXQtvOxWu3mM4XxlYeZtMWF4g==}
dev: false
@@ -5480,10 +5960,10 @@ packages:
debug: 4.3.4
eslint: 8.57.0
graphemer: 1.4.0
- ignore: 5.3.1
+ ignore: 5.3.0
natural-compare: 1.4.0
semver: 7.6.0
- ts-api-utils: 1.2.1([email protected])
+ ts-api-utils: 1.0.3([email protected])
typescript: 5.4.3
transitivePeerDependencies:
- supports-color
@@ -5525,14 +6005,6 @@ packages:
'@typescript-eslint/visitor-keys': 6.21.0
dev: true
- /@typescript-eslint/[email protected]:
- resolution: {integrity: sha512-Qh976RbQM/fYtjx9hs4XkayYujB/aPwglw2choHmf3zBjB4qOywWSdt9+KLRdHubGcoSwBnXUH2sR3hkyaERRg==}
- engines: {node: ^16.0.0 || >=18.0.0}
- dependencies:
- '@typescript-eslint/types': 7.2.0
- '@typescript-eslint/visitor-keys': 7.2.0
- dev: true
-
/@typescript-eslint/[email protected]:
resolution: {integrity: sha512-68VqENG5HK27ypafqLVs8qO+RkNc7TezCduYrx8YJpXq2QGZ30vmNZGJJJC48+MVn4G2dCV8m5ZTVnzRexTVtw==}
engines: {node: ^18.18.0 || >=20.0.0}
@@ -5554,7 +6026,7 @@ packages:
'@typescript-eslint/utils': 7.4.0([email protected])([email protected])
debug: 4.3.4
eslint: 8.57.0
- ts-api-utils: 1.2.1([email protected])
+ ts-api-utils: 1.0.3([email protected])
typescript: 5.4.3
transitivePeerDependencies:
- supports-color
@@ -5570,11 +6042,6 @@ packages:
engines: {node: ^16.0.0 || >=18.0.0}
dev: true
- /@typescript-eslint/[email protected]:
- resolution: {integrity: sha512-XFtUHPI/abFhm4cbCDc5Ykc8npOKBSJePY3a3s+lwumt7XWJuzP5cZcfZ610MIPHjQjNsOLlYK8ASPaNG8UiyA==}
- engines: {node: ^16.0.0 || >=18.0.0}
- dev: true
-
/@typescript-eslint/[email protected]:
resolution: {integrity: sha512-mjQopsbffzJskos5B4HmbsadSJQWaRK0UxqQ7GuNA9Ga4bEKeiO6b2DnB6cM6bpc8lemaPseh0H9B/wyg+J7rw==}
engines: {node: ^18.18.0 || >=20.0.0}
@@ -5616,29 +6083,7 @@ packages:
is-glob: 4.0.3
minimatch: 9.0.3
semver: 7.6.0
- ts-api-utils: 1.2.1([email protected])
- typescript: 5.4.3
- transitivePeerDependencies:
- - supports-color
- dev: true
-
- /@typescript-eslint/[email protected]([email protected]):
- resolution: {integrity: sha512-cyxS5WQQCoBwSakpMrvMXuMDEbhOo9bNHHrNcEWis6XHx6KF518tkF1wBvKIn/tpq5ZpUYK7Bdklu8qY0MsFIA==}
- engines: {node: ^16.0.0 || >=18.0.0}
- peerDependencies:
- typescript: '*'
- peerDependenciesMeta:
- typescript:
- optional: true
- dependencies:
- '@typescript-eslint/types': 7.2.0
- '@typescript-eslint/visitor-keys': 7.2.0
- debug: 4.3.4
- globby: 11.1.0
- is-glob: 4.0.3
- minimatch: 9.0.3
- semver: 7.6.0
- ts-api-utils: 1.2.1([email protected])
+ ts-api-utils: 1.0.3([email protected])
typescript: 5.4.3
transitivePeerDependencies:
- supports-color
@@ -5660,7 +6105,7 @@ packages:
is-glob: 4.0.3
minimatch: 9.0.3
semver: 7.6.0
- ts-api-utils: 1.2.1([email protected])
+ ts-api-utils: 1.0.3([email protected])
typescript: 5.4.3
transitivePeerDependencies:
- supports-color
@@ -5673,7 +6118,7 @@ packages:
dependencies:
'@eslint-community/eslint-utils': 4.4.0([email protected])
'@types/json-schema': 7.0.15
- '@types/semver': 7.5.7
+ '@types/semver': 7.5.6
'@typescript-eslint/scope-manager': 5.62.0
'@typescript-eslint/types': 5.62.0
'@typescript-eslint/typescript-estree': 5.62.0([email protected])
@@ -5693,7 +6138,7 @@ packages:
dependencies:
'@eslint-community/eslint-utils': 4.4.0([email protected])
'@types/json-schema': 7.0.15
- '@types/semver': 7.5.7
+ '@types/semver': 7.5.6
'@typescript-eslint/scope-manager': 6.21.0
'@typescript-eslint/types': 6.21.0
'@typescript-eslint/typescript-estree': 6.21.0([email protected])
@@ -5704,25 +6149,6 @@ packages:
- typescript
dev: true
- resolution: {integrity: sha512-YfHpnMAGb1Eekpm3XRK8hcMwGLGsnT6L+7b2XyRv6ouDuJU1tZir1GS2i0+VXRatMwSI1/UfcyPe53ADkU+IuA==}
- engines: {node: ^16.0.0 || >=18.0.0}
- peerDependencies:
- eslint: ^8.56.0
- dependencies:
- '@eslint-community/eslint-utils': 4.4.0([email protected])
- '@types/json-schema': 7.0.15
- '@types/semver': 7.5.7
- '@typescript-eslint/scope-manager': 7.2.0
- '@typescript-eslint/types': 7.2.0
- '@typescript-eslint/typescript-estree': 7.2.0([email protected])
- eslint: 8.57.0
- semver: 7.6.0
- transitivePeerDependencies:
- - supports-color
- - typescript
- dev: true
-
resolution: {integrity: sha512-NQt9QLM4Tt8qrlBVY9lkMYzfYtNz8/6qwZg8pI3cMGlPnj6mOpRxxAm7BMJN9K0AiY+1BwJ5lVC650YJqYOuNg==}
engines: {node: ^18.18.0 || >=20.0.0}
@@ -5731,7 +6157,7 @@ packages:
dependencies:
'@eslint-community/eslint-utils': 4.4.0([email protected])
'@types/json-schema': 7.0.15
- '@types/semver': 7.5.7
+ '@types/semver': 7.5.6
'@typescript-eslint/scope-manager': 7.4.0
'@typescript-eslint/types': 7.4.0
'@typescript-eslint/typescript-estree': 7.4.0([email protected])
@@ -5758,14 +6184,6 @@ packages:
eslint-visitor-keys: 3.4.3
dev: true
- /@typescript-eslint/[email protected]:
- resolution: {integrity: sha512-c6EIQRHhcpl6+tO8EMR+kjkkV+ugUNXOmeASA1rlzkd8EPIriavpWoiEz1HR/VLhbVIdhqnV6E7JZm00cBDx2A==}
- engines: {node: ^16.0.0 || >=18.0.0}
- dependencies:
- '@typescript-eslint/types': 7.2.0
- eslint-visitor-keys: 3.4.3
- dev: true
-
/@typescript-eslint/[email protected]:
resolution: {integrity: sha512-0zkC7YM0iX5Y41homUUeW1CHtZR01K3ybjM1l6QczoMuay0XKtrb93kv95AxUGwdjGr64nNqnOCwmEl616N8CA==}
engines: {node: ^18.18.0 || >=20.0.0}
@@ -5776,6 +6194,20 @@ packages:
resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==}
+ /@univerjs/[email protected]:
+ resolution: {integrity: sha512-0004a2voyXpXaqBvHQUzt/s1in8JylCs1l5/WwyQiikjopQlo+sEFEzSIuELZCuiv0SiqxBgcqrMumrPLXEIZA==}
+ dev: false
+
+ resolution: {integrity: sha512-RCRoDv2W+gjzwDL6KwXc0cmjvHaWQwCvz2W6thxSV6oeNAQco3m3pZMHrW4PMiHtJV/1r3X3cGPvkVJsXvxelw==}
+ peerDependencies:
+ react: '*'
+ react-dom: '*'
+ dependencies:
+ react: 18.2.0
+ react-dom: 18.2.0([email protected])
+ dev: false
+
resolution: {integrity: sha512-fHJKMGXGKK6W0E7xguXtHTTwR2P679sMMjh8JMHHobZzBCKoUuN3UBDRa8TJRyLWiY26jbe5xtJOhRD2sQyXKg==}
peerDependencies:
@@ -5797,15 +6229,31 @@ packages:
rxjs: 7.8.1
dev: false
+ resolution: {integrity: sha512-oojO9IDc4nCUUi8qIR11KoQm0XFFLIwsRBwHRR4d/88IWghn1y6ckz/bJ8GHDCsYEJee8mDzqtJxh15/cisJNQ==}
+ engines: {node: ^14.18.0 || >=16.0.0}
+ peerDependencies:
+ vite: ^4.2.0 || ^5.0.0
+ dependencies:
+ '@babel/core': 7.23.5
+ '@babel/plugin-transform-react-jsx-self': 7.23.3(@babel/[email protected])
+ '@babel/plugin-transform-react-jsx-source': 7.23.3(@babel/[email protected])
+ '@types/babel__core': 7.20.5
+ react-refresh: 0.14.0
+ vite: 5.0.12(@types/[email protected])([email protected])
+ transitivePeerDependencies:
+ - supports-color
+ dev: true
+
resolution: {integrity: sha512-oojO9IDc4nCUUi8qIR11KoQm0XFFLIwsRBwHRR4d/88IWghn1y6ckz/bJ8GHDCsYEJee8mDzqtJxh15/cisJNQ==}
engines: {node: ^14.18.0 || >=16.0.0}
peerDependencies:
vite: ^4.2.0 || ^5.0.0
dependencies:
- '@babel/core': 7.23.9
- '@babel/plugin-transform-react-jsx-self': 7.23.3(@babel/[email protected])
- '@babel/plugin-transform-react-jsx-source': 7.23.3(@babel/[email protected])
+ '@babel/core': 7.23.5
+ '@babel/plugin-transform-react-jsx-self': 7.23.3(@babel/[email protected])
+ '@babel/plugin-transform-react-jsx-source': 7.23.3(@babel/[email protected])
'@types/babel__core': 7.20.5
react-refresh: 0.14.0
@@ -5819,15 +6267,34 @@ packages:
peerDependencies:
vite: ^4.2.0 || ^5.0.0
dependencies:
- '@babel/core': 7.23.9
- '@babel/plugin-transform-react-jsx-self': 7.23.3(@babel/[email protected])
- '@babel/plugin-transform-react-jsx-source': 7.23.3(@babel/[email protected])
+ '@babel/core': 7.23.5
+ '@babel/plugin-transform-react-jsx-self': 7.23.3(@babel/[email protected])
+ '@babel/plugin-transform-react-jsx-source': 7.23.3(@babel/[email protected])
'@types/babel__core': 7.20.5
react-refresh: 0.14.0
transitivePeerDependencies:
- supports-color
+ resolution: {integrity: sha512-j8M4R3XbQ7cmLqJd7mfxCpEc0bQ7S6o5VIEt7c0Auri2lT1hkd89Sa/mOYDnuGasTNawamW+0d9vDRK/5uhVXw==}
+ peerDependencies:
+ vitest: ^1.0.0
+ dependencies:
+ debug: 4.3.4
+ istanbul-lib-coverage: 3.2.2
+ istanbul-lib-instrument: 6.0.1
+ istanbul-lib-report: 3.0.1
+ istanbul-lib-source-maps: 4.0.1
+ istanbul-reports: 3.1.6
+ magicast: 0.3.3
+ picocolors: 1.0.0
+ test-exclude: 6.0.0
+ transitivePeerDependencies:
+ - supports-color
+ dev: true
+
resolution: {integrity: sha512-39TjURYyAY6CLDx8M1RNYGoAuWicPWoofk+demJbAZROLCwUgGPgMRSg51GN+snbmQRTpSizuS9XC3cMSdQH2Q==}
peerDependencies:
@@ -5835,10 +6302,10 @@ packages:
dependencies:
debug: 4.3.4
istanbul-lib-coverage: 3.2.2
- istanbul-lib-instrument: 6.0.2
+ istanbul-lib-instrument: 6.0.1
istanbul-lib-report: 3.0.1
istanbul-lib-source-maps: 5.0.4
- istanbul-reports: 3.1.7
+ istanbul-reports: 3.1.6
magicast: 0.3.3
picocolors: 1.0.0
test-exclude: 6.0.0
@@ -5847,6 +6314,14 @@ packages:
- supports-color
dev: false
+ /@vitest/[email protected]:
+ resolution: {integrity: sha512-/bqGXcHfyKgFWYwIgFr1QYDaR9e64pRKxgBNWNXPefPFRhgm+K3+a/dS0cUGEreWngets3dlr8w8SBRw2fCfFQ==}
+ dependencies:
+ '@vitest/spy': 1.2.1
+ '@vitest/utils': 1.2.1
+ chai: 4.3.10
+ dev: true
+
resolution: {integrity: sha512-xofQFwIzfdmLLlHa6ag0dPV8YsnKOCP1KdAeVVh34vSjN2dcUiXYCD9htu/9eM7t8Xln4v03U9HLxLpPlsXdZw==}
dependencies:
@@ -5860,32 +6335,63 @@ packages:
dependencies:
'@vitest/spy': 1.4.0
'@vitest/utils': 1.4.0
- chai: 4.4.1
+ chai: 4.3.10
+
+ /@vitest/[email protected]:
+ resolution: {integrity: sha512-zc2dP5LQpzNzbpaBt7OeYAvmIsRS1KpZQw4G3WM/yqSV1cQKNKwLGmnm79GyZZjMhQGlRcSFMImLjZaUQvNVZQ==}
+ dependencies:
+ '@vitest/utils': 1.2.1
+ p-limit: 5.0.0
+ pathe: 1.1.1
+ dev: true
resolution: {integrity: sha512-EDYVSmesqlQ4RD2VvWo3hQgTJ7ZrFQ2VSJdfiJiArkCerDAGeyF1i6dHkmySqk573jLp6d/cfqCN+7wUB5tLgg==}
dependencies:
'@vitest/utils': 1.4.0
p-limit: 5.0.0
- pathe: 1.1.2
+ pathe: 1.1.1
+
+ /@vitest/[email protected]:
+ resolution: {integrity: sha512-Tmp/IcYEemKaqAYCS08sh0vORLJkMr0NRV76Gl8sHGxXT5151cITJCET20063wk0Yr/1koQ6dnmP6eEqezmd/Q==}
+ dependencies:
+ magic-string: 0.30.5
+ pathe: 1.1.1
+ pretty-format: 29.7.0
+ dev: true
resolution: {integrity: sha512-saAFnt5pPIA5qDGxOHxJ/XxhMFKkUSBJmVt5VgDsAqPTX6JP326r5C/c9UuCMPoXNzuudTPsYDZCoJ5ilpqG2A==}
dependencies:
- magic-string: 0.30.7
- pathe: 1.1.2
+ magic-string: 0.30.8
+ pathe: 1.1.1
pretty-format: 29.7.0
+ /@vitest/[email protected]:
+ resolution: {integrity: sha512-vG3a/b7INKH7L49Lbp0IWrG6sw9j4waWAucwnksPB1r1FTJgV7nkBByd9ufzu6VWya/QTvQW4V9FShZbZIB2UQ==}
+ dependencies:
+ tinyspy: 2.2.0
+ dev: true
+
resolution: {integrity: sha512-xAcW+S099ylC9VLU7eZfdT9myV67Nor9w9zhf0mGCYJSO+zM2839tOeROTdikOi/8Qeusffvxb/MyBSOja1Uig==}
dependencies:
- tinyspy: 2.2.1
+ tinyspy: 2.2.0
dev: false
resolution: {integrity: sha512-Ywau/Qs1DzM/8Uc+yA77CwSegizMlcgTJuYGAi0jujOteJOUf1ujunHThYo243KG9nAyWT3L9ifPYZ5+As/+6Q==}
dependencies:
- tinyspy: 2.2.1
+ tinyspy: 2.2.0
+
+ /@vitest/[email protected]:
+ resolution: {integrity: sha512-bsH6WVZYe/J2v3+81M5LDU8kW76xWObKIURpPrOXm2pjBniBu2MERI/XP60GpS4PHU3jyK50LUutOwrx4CyHUg==}
+ dependencies:
+ diff-sequences: 29.6.3
+ estree-walker: 3.0.3
+ loupe: 2.3.7
+ pretty-format: 29.7.0
+ dev: true
resolution: {integrity: sha512-d3Waie/299qqRyHTm2DjADeTaNdNSVsnwHPWrs20JMpjh6eiVq7ggggweO8rc4arhf6rRkWuHKwvxGvejUXZZQ==}
@@ -5908,46 +6414,41 @@ packages:
resolution: {integrity: sha512-dOcNn3i9GgZAcJt43wuaEykSluAuOkQgzni1cuxLxTV0nJKanQztp7FxyswdRILaKH+P2XZMPRp2S4MV/pElCw==}
dependencies:
'@volar/source-map': 1.11.1
- dev: false
resolution: {integrity: sha512-hJnOnwZ4+WT5iupLRnuzbULZ42L7BWWPMmruzwtLhJfpDVoZLjNBxHDi2sY2bgZXCKlpU5XcsMFoYrsQmPhfZg==}
dependencies:
muggle-string: 0.3.1
- dev: false
resolution: {integrity: sha512-iU+t2mas/4lYierSnoFOeRFQUhAEMgsFuQxoxvwn5EdQopw43j+J27a4lt9LMInx1gLJBC6qL14WYGlgymaSMQ==}
dependencies:
'@volar/language-core': 1.11.1
path-browserify: 1.0.1
- dev: false
- resolution: {integrity: sha512-gj81785z0JNzRcU0Mq98E56e4ltO1yf8k5PQ+tV/7YHnbZkrM0fyFyuttnN8ngJZjbpofWE/m4qjKBiLl8Ju4w==}
+ resolution: {integrity: sha512-XcJQVOaxTKCnth1vCxEChteGuwG6wqnUHxAm1DO3gCz0+uXKaJNx8/digSz4dLALCy8n2lKq24jSUs8segoqIw==}
dependencies:
- '@babel/parser': 7.23.9
- '@vue/shared': 3.4.19
+ '@babel/parser': 7.23.6
+ '@vue/shared': 3.4.15
entities: 4.5.0
estree-walker: 2.0.2
source-map-js: 1.0.2
- dev: false
resolution: {integrity: sha512-MjXawxZf2SbZszLPYxaFCjxfibYrzr3eYbKxwpLR9EQN+oaziSu3qKVbwBERj1IFIB8OLUewxB5m/BFzi613og==}
dependencies:
- '@babel/parser': 7.23.9
+ '@babel/parser': 7.24.0
'@vue/shared': 3.4.21
entities: 4.5.0
estree-walker: 2.0.2
source-map-js: 1.0.2
- resolution: {integrity: sha512-vm6+cogWrshjqEHTzIDCp72DKtea8Ry/QVpQRYoyTIg9k7QZDX6D8+HGURjtmatfgM8xgCFtJJaOlCaRYRK3QA==}
+ resolution: {integrity: sha512-wox0aasVV74zoXyblarOM3AZQz/Z+OunYcIHe1OsGclCHt8RsRm04DObjefaI82u6XDzv+qGWZ24tIsRAIi5MQ==}
dependencies:
- '@vue/compiler-core': 3.4.19
- '@vue/shared': 3.4.19
- dev: false
+ '@vue/compiler-core': 3.4.15
+ '@vue/shared': 3.4.15
resolution: {integrity: sha512-IZC6FKowtT1sl0CR5DpXSiEB5ayw75oT2bma1BEhV7RRR1+cfwLrxc2Z8Zq/RGFzJ8w5r9QtCOvTjQgdn0IKmA==}
@@ -5958,13 +6459,13 @@ packages:
resolution: {integrity: sha512-me7epoTxYlY+2CUM7hy9PCDdpMPfIwrOvAXud2Upk10g4YLv9UBW7kL798TvMeDhPthkZ0CONNrK2GoeI1ODiQ==}
dependencies:
- '@babel/parser': 7.23.9
+ '@babel/parser': 7.24.0
'@vue/compiler-core': 3.4.21
'@vue/compiler-dom': 3.4.21
'@vue/compiler-ssr': 3.4.21
'@vue/shared': 3.4.21
estree-walker: 2.0.2
- magic-string: 0.30.7
+ magic-string: 0.30.8
postcss: 8.4.35
source-map-js: 1.0.2
@@ -5974,6 +6475,26 @@ packages:
'@vue/compiler-dom': 3.4.21
'@vue/shared': 3.4.21
+ resolution: {integrity: sha512-L8Kc27VdQserNaCUNiSFdDl9LWT24ly8Hpwf1ECy3aFb9m6bDhBGQYOujDm21N7EW3moKIOKEanQwe1q5BK+mA==}
+ peerDependencies:
+ typescript: '*'
+ peerDependenciesMeta:
+ typescript:
+ optional: true
+ dependencies:
+ '@volar/language-core': 1.11.1
+ '@volar/source-map': 1.11.1
+ '@vue/compiler-dom': 3.4.15
+ '@vue/shared': 3.4.15
+ computeds: 0.0.1
+ minimatch: 9.0.3
+ muggle-string: 0.3.1
+ path-browserify: 1.0.1
+ typescript: 5.4.2
+ vue-template-compiler: 2.7.15
+ dev: true
+
resolution: {integrity: sha512-L8Kc27VdQserNaCUNiSFdDl9LWT24ly8Hpwf1ECy3aFb9m6bDhBGQYOujDm21N7EW3moKIOKEanQwe1q5BK+mA==}
peerDependencies:
@@ -5984,14 +6505,14 @@ packages:
dependencies:
'@volar/language-core': 1.11.1
'@volar/source-map': 1.11.1
- '@vue/compiler-dom': 3.4.19
- '@vue/shared': 3.4.19
+ '@vue/compiler-dom': 3.4.15
+ '@vue/shared': 3.4.15
computeds: 0.0.1
minimatch: 9.0.3
muggle-string: 0.3.1
path-browserify: 1.0.1
typescript: 5.4.3
- vue-template-compiler: 2.7.16
+ vue-template-compiler: 2.7.15
dev: false
@@ -6021,9 +6542,8 @@ packages:
'@vue/shared': 3.4.21
vue: 3.4.21([email protected])
- resolution: {integrity: sha512-/KliRRHMF6LoiThEy+4c1Z4KB/gbPrGjWwJR+crg2otgrf/egKzRaCPvJ51S5oetgsgXLfc4Rm5ZgrKHZrtMSw==}
- dev: false
+ resolution: {integrity: sha512-KzfPTxVaWfB+eGcGdbSf4CWdaXcGDqckoeXUh7SB3fZdEtzPCK2Vq9B/lRRL3yutax/LWITz+SwvgyOxz5V75g==}
resolution: {integrity: sha512-PuJe7vDIi6VYSinuEbUIQgMIRZGgM8e4R+G+/dQTk0X1NEdvgvvgv7m+rfmDH1gZzyA1OjjoWskvHlfRNfQf3g==}
@@ -6200,12 +6720,12 @@ packages:
dependencies:
acorn: 7.4.1
resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==}
peerDependencies:
acorn: ^6.0.0 || ^7.0.0 || ^8.0.0
dependencies:
- acorn: 8.11.3
+ acorn: 8.11.2
resolution: {integrity: sha512-OPdCF6GsMIP+Az+aWfAAOEt2/+iVDKE7oy6lJ098aoe59oAmK76qV6Gw60SbZ8jHuG2wH058GF4pLFbYamYrVA==}
@@ -6220,6 +6740,11 @@ packages:
engines: {node: '>=0.4.0'}
hasBin: true
+ resolution: {integrity: sha512-nc0Axzp/0FILLEVsm4fNwLCwMttvhEI263QtVPQcbpfZZ3ts0hLsZGOpE6czNlid7CJ9MlyH8reXkpsf3YUY4w==}
+ engines: {node: '>=0.4.0'}
+ hasBin: true
+
resolution: {integrity: sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==}
engines: {node: '>=0.4.0'}
@@ -6241,7 +6766,6 @@ packages:
debug: 4.3.4
transitivePeerDependencies:
- supports-color
- dev: true
resolution: {integrity: sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==}
@@ -6367,7 +6891,6 @@ packages:
resolution: {integrity: sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==}
dependencies:
sprintf-js: 1.0.3
- dev: false
resolution: {integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==}
@@ -6377,12 +6900,19 @@ packages:
dependencies:
deep-equal: 2.2.3
+ resolution: {integrity: sha512-LPuwb2P+NrQw3XhxGc36+XSvuBPopovXYTR9Ew++Du9Yb/bx5AzBfrIsBoj0EZUifjQU+sHL21sseZ3jerWO/A==}
+ dependencies:
+ call-bind: 1.0.5
+ is-array-buffer: 3.0.2
+
resolution: {integrity: sha512-ahC5W1xgou+KTXix4sAO8Ki12Q+jf4i0+tmk3sC+zgcynshkHxzpXdImBehiUYKKKDwvfFiJl1tZt6ewscS1Mg==}
engines: {node: '>= 0.4'}
dependencies:
call-bind: 1.0.7
is-array-buffer: 3.0.4
+ dev: true
resolution: {integrity: sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==}
@@ -6398,7 +6928,7 @@ packages:
dependencies:
call-bind: 1.0.7
define-properties: 1.2.1
- es-abstract: 1.22.4
+ es-abstract: 1.22.5
get-intrinsic: 1.2.4
is-string: 1.0.7
dev: true
@@ -6413,7 +6943,7 @@ packages:
dependencies:
call-bind: 1.0.7
define-properties: 1.2.1
- es-abstract: 1.22.4
+ es-abstract: 1.22.5
es-errors: 1.3.0
es-shim-unscopables: 1.0.2
dev: true
@@ -6424,7 +6954,7 @@ packages:
dependencies:
call-bind: 1.0.7
define-properties: 1.2.1
- es-abstract: 1.22.4
+ es-abstract: 1.22.5
es-shim-unscopables: 1.0.2
dev: true
@@ -6434,7 +6964,7 @@ packages:
dependencies:
call-bind: 1.0.7
define-properties: 1.2.1
- es-abstract: 1.22.4
+ es-abstract: 1.22.5
es-shim-unscopables: 1.0.2
dev: true
@@ -6442,9 +6972,9 @@ packages:
resolution: {integrity: sha512-nK1psgF2cXqP3wSyCSq0Hc7zwNq3sfljQqaG27r/7a7ooNUnn5nGq6yYWyks9jMO5EoFQ0ax80hSg6oXSRNXaw==}
engines: {node: '>= 0.4'}
dependencies:
- call-bind: 1.0.7
+ call-bind: 1.0.5
define-properties: 1.2.1
- es-abstract: 1.22.4
+ es-abstract: 1.22.3
es-array-method-boxes-properly: 1.0.0
is-string: 1.0.7
dev: true
@@ -6454,7 +6984,7 @@ packages:
dependencies:
call-bind: 1.0.7
define-properties: 1.2.1
- es-abstract: 1.22.4
+ es-abstract: 1.22.5
es-shim-unscopables: 1.0.2
dev: true
@@ -6463,11 +6993,24 @@ packages:
dependencies:
call-bind: 1.0.7
define-properties: 1.2.1
- es-abstract: 1.22.4
+ es-abstract: 1.22.5
es-errors: 1.3.0
es-shim-unscopables: 1.0.2
dev: true
+ resolution: {integrity: sha512-yMBKppFur/fbHu9/6USUe03bZ4knMYiwFBcyiaXB8Go0qNehwX6inYPzK9U0NeQvGxKthcmHcaR8P5MStSRBAw==}
+ engines: {node: '>= 0.4'}
+ dependencies:
+ array-buffer-byte-length: 1.0.0
+ call-bind: 1.0.5
+ define-properties: 1.2.1
+ es-abstract: 1.22.3
+ get-intrinsic: 1.2.2
+ is-array-buffer: 3.0.2
+ is-shared-array-buffer: 1.0.2
+ dev: true
+
resolution: {integrity: sha512-bMxMKAjg13EBSVscxTaYA4mRc5t1UAXa2kXiGTNfZ079HIWXEkKmkgFrh/nJqamaLSrXO5H4WFFkPEaLJWbs3A==}
engines: {node: '>= 0.4'}
@@ -6475,11 +7018,11 @@ packages:
array-buffer-byte-length: 1.0.1
call-bind: 1.0.7
define-properties: 1.2.1
- es-abstract: 1.22.4
+ es-abstract: 1.22.5
es-errors: 1.3.0
get-intrinsic: 1.2.4
is-array-buffer: 3.0.4
- is-shared-array-buffer: 1.0.2
+ is-shared-array-buffer: 1.0.3
dev: true
@@ -6527,52 +7070,56 @@ packages:
resolution: {integrity: sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==}
dev: true
+ resolution: {integrity: sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw==}
+ engines: {node: '>= 0.4'}
+
resolution: {integrity: sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==}
engines: {node: '>= 0.4'}
dependencies:
possible-typed-array-names: 1.0.0
resolution: {integrity: sha512-poPX9mZH/5CSanm50Q+1toVci6pv5KSRv/5TWCwtzQS5XEwn40BcCrgIeMFWP9CKKIniKXNxoIOnOq4VVlGXhg==}
peerDependencies:
'@babel/core': ^7.0.0-0
dependencies:
- '@babel/core': 7.23.9
+ '@babel/core': 7.24.0
dev: false
- resolution: {integrity: sha512-OtIuQfafSzpo/LhnJaykc0R/MMnuLSSVjVYy9mHArIZ9qTCSZ6TpWCuEKZYVoN//t8HqBNScHrOtCrIK5IaGLg==}
+ resolution: {integrity: sha512-jhHiWVZIlnPbEUKSSNb9YoWcQGdlTLq7z1GHL4AjFxaoOUMuuEVJ+Y4pAaQUGOGk93YsVCKPbqbfw3m0SM6H8Q==}
peerDependencies:
'@babel/core': ^7.4.0 || ^8.0.0-0 <8.0.0
dependencies:
'@babel/compat-data': 7.23.5
- '@babel/core': 7.23.9
- '@babel/helper-define-polyfill-provider': 0.5.0(@babel/[email protected])
+ '@babel/core': 7.24.0
+ '@babel/helper-define-polyfill-provider': 0.4.3(@babel/[email protected])
semver: 6.3.1
transitivePeerDependencies:
- supports-color
dev: false
- resolution: {integrity: sha512-7nZPG1uzK2Ymhy/NbaOWTg3uibM2BmGASS4vHS4szRZAIR8R6GwA/xAujpdrXU5iyklrimWnLWU+BLF9suPTqg==}
+ resolution: {integrity: sha512-leDIc4l4tUgU7str5BWLS2h8q2N4Nf6lGZP6UrNDxdtfF2g69eJ5L0H7S8A5Ln/arfFAfHor5InAdZuIOwZdgQ==}
peerDependencies:
'@babel/core': ^7.4.0 || ^8.0.0-0 <8.0.0
dependencies:
- '@babel/core': 7.23.9
- '@babel/helper-define-polyfill-provider': 0.5.0(@babel/[email protected])
- core-js-compat: 3.36.0
+ '@babel/core': 7.24.0
+ '@babel/helper-define-polyfill-provider': 0.4.3(@babel/[email protected])
+ core-js-compat: 3.35.1
transitivePeerDependencies:
- supports-color
dev: false
- resolution: {integrity: sha512-OJGYZlhLqBh2DDHeqAxWB1XIvr49CxiJ2gIt61/PU55CQK4Z58OzMqjDe1zwQdQk+rBYsRc+1rJmdajM3gimHg==}
+ resolution: {integrity: sha512-8sHeDOmXC8csczMrYEOf0UTNa4yE2SxV5JGeT/LP1n0OYVDUUFPxG9vdk2AlDlIit4t+Kf0xCtpgXPBwnn/9pw==}
peerDependencies:
'@babel/core': ^7.4.0 || ^8.0.0-0 <8.0.0
dependencies:
- '@babel/core': 7.23.9
- '@babel/helper-define-polyfill-provider': 0.5.0(@babel/[email protected])
+ '@babel/core': 7.24.0
+ '@babel/helper-define-polyfill-provider': 0.4.3(@babel/[email protected])
transitivePeerDependencies:
- supports-color
dev: false
@@ -6695,15 +7242,25 @@ packages:
pako: 0.2.9
dev: false
- resolution: {integrity: sha512-QW8HiM1shhT2GuzkvklfjcKDiWFXHOeFCIA/huJPwHsslwcydgk7X+z2zXpEijP98UCY7HbubZt5J2Zgvf0CaQ==}
+ resolution: {integrity: sha512-FEVc202+2iuClEhZhrWy6ZiAcRLvNMyYcxZ8raemul1DYVOVdFsbqckWLdsixQZCpJlwe77Z3UTalE7jsjnKfQ==}
+ engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7}
+ hasBin: true
+ dependencies:
+ caniuse-lite: 1.0.30001564
+ electron-to-chromium: 1.4.594
+ node-releases: 2.0.13
+ update-browserslist-db: 1.0.13([email protected])
+
+ resolution: {integrity: sha512-0UgcrvQmBDvZHFGdYUehrCNIazki7/lUP3kkoi/r3YB2amZbFM9J43ZRkJTXBUZK4gmx56+Sqk9+Vs9mwZx9+A==}
engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7}
hasBin: true
dependencies:
- caniuse-lite: 1.0.30001588
- electron-to-chromium: 1.4.675
+ caniuse-lite: 1.0.30001579
+ electron-to-chromium: 1.4.640
node-releases: 2.0.14
- update-browserslist-db: 1.0.13([email protected])
+ update-browserslist-db: 1.0.13([email protected])
resolution: {integrity: sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==}
@@ -6764,6 +7321,13 @@ packages:
responselike: 3.0.0
dev: true
+ resolution: {integrity: sha512-C3nQxfFZxFRVoJoGKKI8y3MOEo129NQ+FgQ08iye+Mk4zNZZGdjfs06bVTr+DBSlA66Q2VEcMki/cUCP4SercQ==}
+ dependencies:
+ function-bind: 1.1.2
+ get-intrinsic: 1.2.2
+ set-function-length: 1.1.1
+
resolution: {integrity: sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w==}
engines: {node: '>= 0.4'}
@@ -6772,7 +7336,7 @@ packages:
es-errors: 1.3.0
function-bind: 1.1.2
get-intrinsic: 1.2.4
- set-function-length: 1.2.1
+ set-function-length: 1.2.2
resolution: {integrity: sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==}
@@ -6790,14 +7354,29 @@ packages:
engines: {node: '>=14.16'}
dev: true
- resolution: {integrity: sha512-+hVY9jE44uKLkH0SrUTqxjxqNTOWHsbnQDIKjwkZ3lNTzUUVdBLBGXtj/q5Mp5u98r3droaZAewQuEDzjQdZlQ==}
+ resolution: {integrity: sha512-DqAOf+rhof+6GVx1y+xzbFPeOumfQnhYzVnZD6LAXijR77yPtm9mfOcqOnT3mpnJiZVT+kwLAFnRlZcIz+c6bg==}
+
+ resolution: {integrity: sha512-u5AUVkixruKHJjw/pj9wISlcMpgFWzSrczLZbrqBSxukQixmg0SJ5sZTpvaFvxU0HoQKd4yoyAogyrAz9pzJnA==}
resolution: {integrity: sha512-roIFONhcxog0JSSWbvVAh3OocukmSgpqOH6YpMkCvav/ySIV3JKg4Dc8vYtQjYi/UxpNE36r/9v+VqTQqgkYmw==}
engines: {node: '>=4'}
dev: false
+ resolution: {integrity: sha512-0UXG04VuVbruMUYbJ6JctvH0YnC/4q3/AkT18q4NaITo91CUm0liMS9VqzT9vZhVQ/1eqPanMWjBM+Juhfb/9g==}
+ engines: {node: '>=4'}
+ dependencies:
+ assertion-error: 1.1.0
+ check-error: 1.0.3
+ deep-eql: 4.1.3
+ get-func-name: 2.0.2
+ loupe: 2.3.7
+ pathval: 1.1.1
+ type-detect: 4.0.8
+
resolution: {integrity: sha512-13sOfMv2+DWduEU+/xbun3LScLoqN17nBeTLUsmDfKdoiC1fr0n9PU4guu4AhRcOVFk/sW8LyZWHuhWtQZiF+g==}
engines: {node: '>=4'}
@@ -6809,6 +7388,7 @@ packages:
loupe: 2.3.7
pathval: 1.1.1
type-detect: 4.0.8
+ dev: false
resolution: {integrity: sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==}
@@ -6859,8 +7439,8 @@ packages:
dependencies:
get-func-name: 2.0.2
- resolution: {integrity: sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==}
+ resolution: {integrity: sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==}
engines: {node: '>= 8.10.0'}
dependencies:
anymatch: 3.1.3
@@ -6910,12 +7490,6 @@ packages:
engines: {node: '>=8'}
dev: true
- resolution: {integrity: sha512-tskPPKEs8D2KPafUypv2gxwJP8h/OaJmC82QQGGDQcHvXX43xF2VDACcJVmZ0EuSxkpO9Kc4MlrA3q0+FG58AQ==}
- dependencies:
- consola: 3.2.3
- dev: false
-
resolution: {integrity: sha512-hM1tngsO2Sco+LesFtGHkkemNBJONUKCeY6RU2VqHBE5kDB8SdnCEJ5M3VoG7M7gL5Kx+GFlzaeSCKXEL9pGTA==}
engines: {node: '>=16'}
@@ -6928,8 +7502,8 @@ packages:
resolution: {integrity: sha512-0TNiGstbQmCFwt4akjjBg5pLRTSyj/PkWQ1ZoO2zntmg9yLqSRxwEa4iCfQLGjqhiqBfOJa7W/E8wfGrTDmlZQ==}
dev: false
- resolution: {integrity: sha512-saHYOzhIQs6wy2sVxTM6bUDsQO4F50V9RQ22qBpEdCW+I+/Wmke2HOl6lS6dTpdxVhb88/I6+Hs+438c3lfUow==}
+ resolution: {integrity: sha512-CSbhY4cFEJRe6/GQzIk5qXZ4Jeg5pcsP7b5peFSDpffpe1cqjASH/n9UTjBwOp6XpMSTwQ8Za2K5V02ueA7Tmw==}
dev: false
@@ -6986,7 +7560,7 @@ packages:
engines: {node: '>=18'}
dependencies:
slice-ansi: 5.0.0
- string-width: 7.1.0
+ string-width: 7.0.0
dev: true
@@ -7041,13 +7615,27 @@ packages:
resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==}
+ resolution: {integrity: sha512-shrVawQFojnZv6xM40anx4CkoDP+fZsw/ZerEMsW/pyzsRbElpsL/DBVW7q3ExxwusdNXI3lXpuhEZkzs8p5Eg==}
+ dependencies:
+ color-name: 1.1.4
+ simple-swizzle: 0.2.2
+ dev: true
+
+ resolution: {integrity: sha512-1rXeuUUiGGrykh+CeBdu5Ie7OJwinCgQY0bc7GCRxy5xVHy+moaqkpL/jqQq0MtQOeYcrqEz4abc5f0KtU7W4A==}
+ engines: {node: '>=12.5.0'}
+ dependencies:
+ color-convert: 2.0.1
+ color-string: 1.9.1
+ dev: true
+
resolution: {integrity: sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==}
resolution: {integrity: sha512-erNRLao/Y3Fv54qUa0LBB+//Uf3YwMUmdJinN20yMXm9zdKKqH9wt7R9IIVZ+K7ShzfpLV/Zg8+VyrBJYB4lpg==}
engines: {node: '>=0.1.90'}
- dev: false
resolution: {integrity: sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==}
@@ -7079,7 +7667,6 @@ packages:
resolution: {integrity: sha512-KRs7WVDKg86PWiuAqhDrAQnTXZKraVcCc6vFdL14qrZ/DcWwuRo7VoiYXalXO7S5GKpqYiVEwCbgFDfxNHKJBQ==}
engines: {node: ^12.20.0 || >=14}
requiresBuild: true
- dev: false
optional: true
@@ -7121,7 +7708,6 @@ packages:
resolution: {integrity: sha512-7CEBgcMjVmitjYo5q8JTJVra6X5mQ20uTThdK+0kR7UEaDrAWEQcRiBtWJzga4eRpP6afNwwLsX2SET2JhVB1Q==}
- dev: false
resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==}
@@ -7154,11 +7740,6 @@ packages:
xdg-basedir: 5.1.0
dev: true
- resolution: {integrity: sha512-I5qxpzLv+sJhTVEoLYNcTW+bThDCPsit0vLNKShZx6rLtpilNpmmeTPaeqJb9ZE9dV3DGaeby6Vuhrw38WjeyQ==}
- engines: {node: ^14.18.0 || >=16.10.0}
- dev: false
-
resolution: {integrity: sha512-xFxOwqIzR/e1k1gLiWEophSCMqXcwVHIH7akf7b/vxcUeGunlj3hvZaaqxwHsTgn+IndtkQJgSztIDWeumWJDQ==}
dev: false
@@ -7323,10 +7904,10 @@ packages:
dependencies:
is-what: 3.14.1
- resolution: {integrity: sha512-iV9Pd/PsgjNWBXeq8XRtWVSgz2tKAfhfvBs7qxYty+RlRd+OCksaWmOnc4JKrTc1cToXL1N0s3l/vwlxPtdElw==}
+ resolution: {integrity: sha512-sftHa5qUJY3rs9Zht1WEnmkvXputCyDBczPnr7QDgL8n3qrF3CMXY4VPSYtOLLiOUJcah2WNXREd48iOl6mQIw==}
dependencies:
- browserslist: 4.23.0
+ browserslist: 4.22.2
resolution: {integrity: sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==}
@@ -7412,7 +7993,7 @@ packages:
postcss-modules-values: 4.0.0([email protected])
postcss-value-parser: 4.2.0
semver: 7.6.0
- webpack: 5.90.3(@swc/[email protected])([email protected])
+ webpack: 5.90.3(@swc/[email protected])([email protected])
dev: false
@@ -7450,6 +8031,10 @@ packages:
rrweb-cssom: 0.6.0
dev: true
+ resolution: {integrity: sha512-I7K1Uu0MBPzaFKg4nI5Q7Vs2t+3gWWW648spaF+Rg7pI9ds18Ugn+lvg4SHczUdKlHI5LWBXyqfS8+DufyBsgQ==}
+ dev: false
+
resolution: {integrity: sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==}
@@ -7482,7 +8067,6 @@ packages:
resolution: {integrity: sha512-e/1zu3xH5MQryN2zdVaF0OrdNLUbvWxzMbi+iNA6Bky7l1RoP8a2fIbRocyHclXt/arDrrR6lL3TqFD9pMQTsg==}
- dev: false
resolution: {integrity: sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==}
@@ -7504,7 +8088,6 @@ packages:
optional: true
dependencies:
ms: 2.1.3
- dev: true
resolution: {integrity: sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==}
@@ -7542,24 +8125,24 @@ packages:
resolution: {integrity: sha512-ZIwpnevOurS8bpT4192sqAowWM76JDKSHYzMLty3BZGSswgq6pBaH3DhCSW5xVAZICZyKdOBPjwww5wfgT/6PA==}
engines: {node: '>= 0.4'}
dependencies:
- array-buffer-byte-length: 1.0.1
- call-bind: 1.0.7
+ array-buffer-byte-length: 1.0.0
+ call-bind: 1.0.5
es-get-iterator: 1.1.3
- get-intrinsic: 1.2.4
+ get-intrinsic: 1.2.2
is-arguments: 1.1.1
- is-array-buffer: 3.0.4
+ is-array-buffer: 3.0.2
is-date-object: 1.0.5
is-regex: 1.1.4
is-shared-array-buffer: 1.0.2
isarray: 2.0.5
object-is: 1.1.5
object-keys: 1.1.1
- object.assign: 4.1.5
- regexp.prototype.flags: 1.5.2
- side-channel: 1.0.5
+ object.assign: 4.1.4
+ regexp.prototype.flags: 1.5.1
+ side-channel: 1.0.4
which-boxed-primitive: 1.0.2
which-collection: 1.0.1
- which-typed-array: 1.1.14
+ which-typed-array: 1.1.13
resolution: {integrity: sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==}
@@ -7605,6 +8188,14 @@ packages:
engines: {node: '>=10'}
dev: true
+ resolution: {integrity: sha512-E7uGkTzkk1d0ByLeSc6ZsFS79Axg+m1P/VsgYsxHgiuc3tFSj+MjMIwe90FC4lOAZzNBdY7kkO2P2wKdsQ1vgQ==}
+ engines: {node: '>= 0.4'}
+ dependencies:
+ get-intrinsic: 1.2.2
+ gopd: 1.0.1
+ has-property-descriptors: 1.0.1
+
resolution: {integrity: sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==}
engines: {node: '>= 0.4'}
@@ -7627,12 +8218,12 @@ packages:
resolution: {integrity: sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==}
engines: {node: '>= 0.4'}
dependencies:
- define-data-property: 1.1.4
- has-property-descriptors: 1.0.2
+ define-data-property: 1.1.1
+ has-property-descriptors: 1.0.1
object-keys: 1.1.1
- resolution: {integrity: sha512-mEQCMmwJu317oSz8CwdIOdwf3xMif1ttiM8LTufzc3g6kR+9Pe236twL8j3IYT1F7GfRgGcW6MWxzZjLIkuHIg==}
+ resolution: {integrity: sha512-Vy2wmG3NTkmHNg/kzpuvHhkqeIx3ODWqasgCRbKtbXEN0G+HpEEv9BtJLp7ZG1CZloFaC41Ah3ZFbq7aqCqMeQ==}
dev: false
@@ -7684,6 +8275,11 @@ packages:
resolution: {integrity: sha512-reYkTUJAZb9gUuZ2RvVCNhVHdg62RHnJ7WJl8ftMi4diZ6NWlciOzQN88pUhSELEwflJht4oQDv0F0BMlwaYtA==}
engines: {node: '>=8'}
+ resolution: {integrity: sha512-UX6sGumvvqSaXgdKGUsgZWqcUyIXZ/vZTrlRT/iobiKhGL0zL4d3osHj3uqllWJK+i+sixDS/3COVEOFbupFyw==}
+ engines: {node: '>=8'}
+ dev: true
+
resolution: {integrity: sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==}
engines: {node: '>=8'}
@@ -7761,8 +8357,8 @@ packages:
resolution: {integrity: sha512-nRCa7CK3VTrM2NmGkIy4cbK7IZlgBE/PYMn55rrXefr5xXDP0LdtfPnblFDoVdcAfslJ7or6iqAUnx0CCGIWQA==}
dependencies:
- '@babel/runtime': 7.23.9
- csstype: 3.1.3
+ '@babel/runtime': 7.23.4
+ csstype: 3.1.2
dev: false
@@ -7817,8 +8413,8 @@ packages:
resolution: {integrity: sha512-GopVGCpVS1UKH75VKHGuQFqS1Gusej0z4FyQkPdwjil2gNIv+LNsqBlboOzpJFZKVT95GkCyWJbBSdFEFUWI2A==}
engines: {node: '>=12'}
- resolution: {integrity: sha512-ZmdL2rui+eB2YwhsWzjInR8LldtZHGDoQ1ugH85ppHKwpUHL7j7rN0Ti9NCnGiQbhaZ11FpR+7ao1dNsmduNUg==}
+ resolution: {integrity: sha512-IPzF4w4/Rd94bA9imS68tZBaYyBWSCE47V1RGuMrB94iyTOIEwRmVL2x/4An+6mETpLrKJ5hQkB8W4kFAadeIQ==}
engines: {node: '>=12'}
@@ -7827,7 +8423,7 @@ packages:
end-of-stream: 1.4.4
inherits: 2.0.4
readable-stream: 2.3.8
- stream-shift: 1.0.3
+ stream-shift: 1.0.1
dev: false
@@ -7845,8 +8441,11 @@ packages:
jake: 10.8.7
dev: false
- resolution: {integrity: sha512-+1u3F/XPNIdUwv8i1lDxHAxCvNNU0QIqgb1Ycn+Jnng8ITzWSvUqixRSM7NOazJuwhf65IV17f/VbKj8DmL26A==}
+ resolution: {integrity: sha512-xT1HVAu5xFn7bDfkjGQi9dNpMqGchUkebwf1GL7cZN32NSwwlHRPMSDJ1KN6HkS0bWUtndbSQZqvpQftKG2uFQ==}
+
+ resolution: {integrity: sha512-z/6oZ/Muqk4BaE7P69bXhUhpJbUM9ZJeka43ZwxsDshKtePns4mhBlh8bU5+yrnOnz3fhG82XLzGUXazOmsWnA==}
resolution: {integrity: sha512-QpLs9D9v9kArv4lfDEgg1X/gN5XLnf/A6l9cs8SPZLRZR3ZkY9+kwIQTxm+fsSej5UMYGE8fdoaZVIBlqG0XTw==}
@@ -7902,8 +8501,8 @@ packages:
engines: {node: '>=6'}
dev: true
- resolution: {integrity: sha512-8PiZgZNIB4q/Lw4AhOvAfB/ityHAd2bli3lESSWmWSzSsl5dKpy5N1d1Rfkd2teq/g9xN90lc6o98DOjMeYHpg==}
+ resolution: {integrity: sha512-G9/6xF1FPbIw0TtalAMaVPpiq2aDEuKLXM314jPVAO9r2fo2a4BLqMNkmRS7O/xPPZ+COAhGIz3ETvHEV3eUcg==}
engines: {node: '>=4'}
hasBin: true
dev: false
@@ -7921,8 +8520,53 @@ packages:
dependencies:
is-arrayish: 0.2.1
- resolution: {integrity: sha512-vZYJlk2u6qHYxBOTjAeg7qUxHdNfih64Uu2J8QqWgXZ2cri0ZpJAkzDUK/q593+mvKwlxyaxr6F1Q+3LKoQRgg==}
+ resolution: {integrity: sha512-eiiY8HQeYfYH2Con2berK+To6GrK2RxbPawDkGq4UiCQQfZHb6wX9qQqkbpPqaxQFcl8d9QzZqo0tGE0VcrdwA==}
+ engines: {node: '>= 0.4'}
+ dependencies:
+ array-buffer-byte-length: 1.0.0
+ arraybuffer.prototype.slice: 1.0.2
+ available-typed-arrays: 1.0.5
+ call-bind: 1.0.5
+ es-set-tostringtag: 2.0.2
+ es-to-primitive: 1.2.1
+ function.prototype.name: 1.1.6
+ get-intrinsic: 1.2.2
+ get-symbol-description: 1.0.0
+ globalthis: 1.0.3
+ gopd: 1.0.1
+ has-property-descriptors: 1.0.1
+ has-proto: 1.0.1
+ has-symbols: 1.0.3
+ hasown: 2.0.0
+ internal-slot: 1.0.6
+ is-array-buffer: 3.0.2
+ is-callable: 1.2.7
+ is-negative-zero: 2.0.2
+ is-regex: 1.1.4
+ is-shared-array-buffer: 1.0.2
+ is-string: 1.0.7
+ is-typed-array: 1.1.12
+ is-weakref: 1.0.2
+ object-inspect: 1.13.1
+ object-keys: 1.1.1
+ object.assign: 4.1.4
+ regexp.prototype.flags: 1.5.1
+ safe-array-concat: 1.0.1
+ safe-regex-test: 1.0.0
+ string.prototype.trim: 1.2.8
+ string.prototype.trimend: 1.0.7
+ string.prototype.trimstart: 1.0.7
+ typed-array-buffer: 1.0.0
+ typed-array-byte-length: 1.0.0
+ typed-array-byte-offset: 1.0.0
+ typed-array-length: 1.0.4
+ unbox-primitive: 1.0.2
+ which-typed-array: 1.1.13
+ dev: true
+
+ resolution: {integrity: sha512-oW69R+4q2wG+Hc3KZePPZxOiisRIqfKBVo/HLx94QcJeWGU/8sZhCvc829rd1kS366vlJbzBfXf9yWwf0+Ko7w==}
engines: {node: '>= 0.4'}
dependencies:
array-buffer-byte-length: 1.0.1
@@ -7931,7 +8575,7 @@ packages:
call-bind: 1.0.7
es-define-property: 1.0.0
es-errors: 1.3.0
- es-set-tostringtag: 2.0.2
+ es-set-tostringtag: 2.0.3
es-to-primitive: 1.2.1
function.prototype.name: 1.1.6
get-intrinsic: 1.2.4
@@ -7941,13 +8585,13 @@ packages:
has-property-descriptors: 1.0.2
has-proto: 1.0.3
has-symbols: 1.0.3
- hasown: 2.0.1
+ hasown: 2.0.2
internal-slot: 1.0.7
is-array-buffer: 3.0.4
is-callable: 1.2.7
is-negative-zero: 2.0.3
is-regex: 1.1.4
- is-shared-array-buffer: 1.0.2
+ is-shared-array-buffer: 1.0.3
is-string: 1.0.7
is-typed-array: 1.1.13
is-weakref: 1.0.2
@@ -7955,17 +8599,17 @@ packages:
object-keys: 1.1.1
object.assign: 4.1.5
regexp.prototype.flags: 1.5.2
- safe-array-concat: 1.1.0
+ safe-array-concat: 1.1.2
safe-regex-test: 1.0.3
string.prototype.trim: 1.2.8
string.prototype.trimend: 1.0.7
string.prototype.trimstart: 1.0.7
typed-array-buffer: 1.0.2
- typed-array-byte-length: 1.0.0
- typed-array-byte-offset: 1.0.1
- typed-array-length: 1.0.4
+ typed-array-byte-length: 1.0.1
+ typed-array-byte-offset: 1.0.2
+ typed-array-length: 1.0.5
unbox-primitive: 1.0.2
- which-typed-array: 1.1.14
+ which-typed-array: 1.1.15
dev: true
@@ -7985,8 +8629,8 @@ packages:
resolution: {integrity: sha512-sPZmqHBe6JIiTfN5q2pEi//TwxmAFHwj/XEuYjTuse78i8KxaqMTTzxPoFKuzRpDpTJ+0NAbpfenkmH2rePtuw==}
dependencies:
- call-bind: 1.0.7
- get-intrinsic: 1.2.4
+ call-bind: 1.0.5
+ get-intrinsic: 1.2.2
has-symbols: 1.0.3
is-arguments: 1.1.1
is-map: 2.0.2
@@ -8002,9 +8646,9 @@ packages:
asynciterator.prototype: 1.0.0
call-bind: 1.0.7
define-properties: 1.2.1
- es-abstract: 1.22.4
+ es-abstract: 1.22.5
es-errors: 1.3.0
- es-set-tostringtag: 2.0.2
+ es-set-tostringtag: 2.0.3
function-bind: 1.1.2
get-intrinsic: 1.2.4
globalthis: 1.0.3
@@ -8013,7 +8657,11 @@ packages:
has-symbols: 1.0.3
internal-slot: 1.0.7
iterator.prototype: 1.1.2
- safe-array-concat: 1.1.0
+ safe-array-concat: 1.1.2
+ dev: true
+
+ resolution: {integrity: sha512-ooYciCUtfw6/d2w56UVeqHPcoCFAiJdz5XOkYpv/Txl1HMUozpXjz/2RIQgqwKdXNDPSF1W7mJCFse3G+HDyAA==}
dev: true
@@ -8023,16 +8671,25 @@ packages:
resolution: {integrity: sha512-BuDyupZt65P9D2D2vA/zqcI3G5xRsklm5N3xCwuiy+/vKy8i0ifdsQP1sLgO4tZDSCaQUSnmC48khknGMV3D2Q==}
engines: {node: '>= 0.4'}
+ dependencies:
+ get-intrinsic: 1.2.2
+ has-tostringtag: 1.0.0
+ hasown: 2.0.0
+ dev: true
+
+ resolution: {integrity: sha512-3T8uNMC3OQTHkFUsFq8r/BwAXLHvU/9O9mE0fBc/MY5iq/8H7ncvO947LmYA6ldWw9Uh8Yhf25zu6n7nML5QWQ==}
+ engines: {node: '>= 0.4'}
dependencies:
get-intrinsic: 1.2.4
has-tostringtag: 1.0.2
- hasown: 2.0.1
+ hasown: 2.0.2
dev: true
resolution: {integrity: sha512-J3yBRXCzDu4ULnQwxyToo/OjdMx6akgVC7K6few0a7F/0wLtmKKN7I73AH5T2836UuXRqN7Qg+IIUw/+YJksRw==}
dependencies:
- hasown: 2.0.1
+ hasown: 2.0.2
dev: true
@@ -8208,7 +8865,7 @@ packages:
esbuild: '>= 0.14.0'
dependencies:
chalk: 4.1.2
- chokidar: 3.6.0
+ chokidar: 3.5.3
esbuild: 0.20.2
fs-extra: 10.1.0
globby: 11.1.0
@@ -8254,8 +8911,8 @@ packages:
'@types/sass': 1.45.0
'@types/stylus': 0.48.42
glob: 10.3.10
- postcss: 8.4.35
- postcss-modules: 6.0.0([email protected])
+ postcss: 8.4.32
+ postcss-modules: 6.0.0([email protected])
dev: true
@@ -8323,35 +8980,35 @@ packages:
esbuild-windows-arm64: 0.14.54
dev: true
- resolution: {integrity: sha512-aARqgq8roFBj054KvQr5f1sFu0D65G+miZRCuJyJ0G13Zwx7vRar5Zhn2tkQNzIXcBrNVsv/8stehpj+GAjgbg==}
+ resolution: {integrity: sha512-S1Y27QGt/snkNYrRcswgRFqZjaTG5a5xM3EQo97uNBnH505pdzSNe/HLBq1v0RO7iK/ngdbhJB6mDAp0OK+iUA==}
engines: {node: '>=12'}
hasBin: true
requiresBuild: true
optionalDependencies:
- '@esbuild/aix-ppc64': 0.19.12
- '@esbuild/android-arm': 0.19.12
- '@esbuild/android-arm64': 0.19.12
- '@esbuild/android-x64': 0.19.12
- '@esbuild/darwin-arm64': 0.19.12
- '@esbuild/darwin-x64': 0.19.12
- '@esbuild/freebsd-arm64': 0.19.12
- '@esbuild/freebsd-x64': 0.19.12
- '@esbuild/linux-arm': 0.19.12
- '@esbuild/linux-arm64': 0.19.12
- '@esbuild/linux-ia32': 0.19.12
- '@esbuild/linux-loong64': 0.19.12
- '@esbuild/linux-mips64el': 0.19.12
- '@esbuild/linux-ppc64': 0.19.12
- '@esbuild/linux-riscv64': 0.19.12
- '@esbuild/linux-s390x': 0.19.12
- '@esbuild/linux-x64': 0.19.12
- '@esbuild/netbsd-x64': 0.19.12
- '@esbuild/openbsd-x64': 0.19.12
- '@esbuild/sunos-x64': 0.19.12
- '@esbuild/win32-arm64': 0.19.12
- '@esbuild/win32-ia32': 0.19.12
- '@esbuild/win32-x64': 0.19.12
+ '@esbuild/aix-ppc64': 0.19.10
+ '@esbuild/android-arm': 0.19.10
+ '@esbuild/android-arm64': 0.19.10
+ '@esbuild/android-x64': 0.19.10
+ '@esbuild/darwin-arm64': 0.19.10
+ '@esbuild/darwin-x64': 0.19.10
+ '@esbuild/freebsd-arm64': 0.19.10
+ '@esbuild/freebsd-x64': 0.19.10
+ '@esbuild/linux-arm': 0.19.10
+ '@esbuild/linux-arm64': 0.19.10
+ '@esbuild/linux-ia32': 0.19.10
+ '@esbuild/linux-loong64': 0.19.10
+ '@esbuild/linux-mips64el': 0.19.10
+ '@esbuild/linux-ppc64': 0.19.10
+ '@esbuild/linux-riscv64': 0.19.10
+ '@esbuild/linux-s390x': 0.19.10
+ '@esbuild/linux-x64': 0.19.10
+ '@esbuild/netbsd-x64': 0.19.10
+ '@esbuild/openbsd-x64': 0.19.10
+ '@esbuild/sunos-x64': 0.19.10
+ '@esbuild/win32-arm64': 0.19.10
+ '@esbuild/win32-ia32': 0.19.10
+ '@esbuild/win32-x64': 0.19.10
dev: true
@@ -8384,8 +9041,8 @@ packages:
'@esbuild/win32-ia32': 0.20.2
'@esbuild/win32-x64': 0.20.2
- resolution: {integrity: sha512-ErCHMCae19vR8vQGe50xIsVomy19rg6gFu3+r3jkEO46suLMWBksvVyoGgQV+jOfl84ZSOSlmv6Gxa89PmTGmA==}
+ resolution: {integrity: sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==}
engines: {node: '>=6'}
@@ -8442,8 +9099,8 @@ packages:
parse-gitignore: 2.0.0
dev: true
- resolution: {integrity: sha512-GVjeM6BITHRpax/lLV8IEdsyIFHH0/4ggN3WJ3IcMTxKRmbo1pA8chPE/WP4sjvkEo8W6WaeIopUMhlzHYeP4g==}
+ resolution: {integrity: sha512-lQc7hFsNu54In+XbJdMmI06zJ5d8+3oDD+Y6badqZ434g9Xm6w+7DGv+mlzQgpf/eMX5iK2kUroTsFdy/WC8Sg==}
dependencies:
'@types/eslint': 8.56.6
dev: true
@@ -8507,7 +9164,7 @@ packages:
dependencies:
escape-string-regexp: 1.0.5
eslint: 8.57.0
- ignore: 5.3.1
+ ignore: 5.3.0
dev: true
@@ -8521,7 +9178,7 @@ packages:
eslint: 8.57.0
eslint-formatting-reporter: 0.0.0([email protected])
eslint-parser-plain: 0.1.0
- prettier: 3.2.5
+ prettier: 3.2.4
synckit: 0.8.8
dev: true
@@ -8614,7 +9271,7 @@ packages:
eslint-plugin-es-x: 7.5.0([email protected])
get-tsconfig: 4.7.2
globals: 13.24.0
- ignore: 5.3.1
+ ignore: 5.3.0
is-builtin-module: 3.2.1
is-core-module: 2.13.1
minimatch: 3.1.2
@@ -8725,7 +9382,7 @@ packages:
'@eslint/eslintrc': 2.1.4
ci-info: 4.0.0
clean-regexp: 1.0.0
- core-js-compat: 3.36.0
+ core-js-compat: 3.35.1
eslint: 8.57.0
esquery: 1.5.0
indent-string: 4.0.0
@@ -8770,7 +9427,7 @@ packages:
optional: true
dependencies:
'@typescript-eslint/eslint-plugin': 7.4.0(@typescript-eslint/[email protected])([email protected])([email protected])
- '@typescript-eslint/utils': 7.2.0([email protected])([email protected])
+ '@typescript-eslint/utils': 7.4.0([email protected])([email protected])
eslint: 8.57.0
transitivePeerDependencies:
- supports-color
@@ -8875,7 +9532,7 @@ packages:
glob-parent: 6.0.2
globals: 13.24.0
graphemer: 1.4.0
- ignore: 5.3.1
+ ignore: 5.3.0
imurmurhash: 0.1.4
is-glob: 4.0.3
is-path-inside: 3.0.3
@@ -8895,8 +9552,8 @@ packages:
resolution: {integrity: sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
dependencies:
- acorn: 8.11.3
- acorn-jsx: 5.3.2([email protected])
+ acorn: 8.11.2
+ acorn-jsx: 5.3.2([email protected])
eslint-visitor-keys: 3.4.3
@@ -8973,7 +9630,7 @@ packages:
human-signals: 5.0.0
is-stream: 3.0.0
merge-stream: 2.0.0
- npm-run-path: 5.2.0
+ npm-run-path: 5.1.0
onetime: 6.0.0
signal-exit: 4.1.0
strip-final-newline: 3.0.0
@@ -9033,6 +9690,10 @@ packages:
resolution: {integrity: sha512-VxPP4NqbUjj6MaAOafWeUn2cXWLcCtljklUtZf0Ind4XQ+QPtmA0b18zZy0jIQx+ExRVCR/ZQpBmik5lXshNsw==}
dev: true
+ resolution: {integrity: sha512-G3BSX9cfKttjr+2o1O22tYMLq0DPluZnYtq1rXumE1SpL/F/SLIfHx08WYQoWSIpeMYf8sRbJ8++71+v6Pnxfg==}
+ dev: false
+
resolution: {integrity: sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==}
engines: {node: '>=8.6.0'}
@@ -9053,8 +9714,8 @@ packages:
resolution: {integrity: sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==}
- resolution: {integrity: sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w==}
+ resolution: {integrity: sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==}
dependencies:
reusify: 1.0.4
@@ -9187,8 +9848,8 @@ packages:
resolution: {integrity: sha512-36yxDn5H7OFZQla0/jFJmbIKTdZAQHngCedGxiMmpNfEZM0sdEeT+WczLQrjK6D7o2aiyLYDnkw0R3JK0Qv1RQ==}
- resolution: {integrity: sha512-mOYmMuvJwAo/CvnMFEq4SHftq7E5188hYMTTxJyQOXk2nh+sgslRdYMw3wTthH+FMcFaZLtmBPuMu6IwztdoUQ==}
+ resolution: {integrity: sha512-Fq5OkFlFRSMV2EOZW+4qUYMTE0uj8pcLsYJMxXYriSBDpHAF7Ofx3PibCTy3cs5P6vbsry7eYj7Z7xFD49GIOQ==}
engines: {node: '>=0.4.0'}
dev: false
@@ -9213,7 +9874,7 @@ packages:
dependencies:
'@babel/code-frame': 7.23.5
chalk: 4.1.2
- chokidar: 3.6.0
+ chokidar: 3.5.3
cosmiconfig: 7.1.0
deepmerge: 4.3.1
fs-extra: 10.1.0
@@ -9224,7 +9885,7 @@ packages:
semver: 7.6.0
tapable: 2.2.1
typescript: 5.4.3
- webpack: 5.90.3(@swc/[email protected])([email protected])
+ webpack: 5.90.3(@swc/[email protected])([email protected])
dev: false
@@ -9293,7 +9954,6 @@ packages:
graceful-fs: 4.2.11
jsonfile: 4.0.0
universalify: 0.1.2
- dev: false
resolution: {integrity: sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==}
@@ -9331,9 +9991,9 @@ packages:
resolution: {integrity: sha512-Z5kx79swU5P27WEayXM1tBi5Ze/lbIyiNgU3qyXUOf9b2rgXYyF9Dy9Cx+IQv/Lc8WCG6L82zwUPpSS9hGehIg==}
engines: {node: '>= 0.4'}
dependencies:
- call-bind: 1.0.7
+ call-bind: 1.0.5
define-properties: 1.2.1
- es-abstract: 1.22.4
+ es-abstract: 1.22.3
functions-have-names: 1.2.3
dev: true
@@ -9362,6 +10022,14 @@ packages:
resolution: {integrity: sha512-8vXOvuE167CtIc3OyItco7N/dpRtBbYOsPsXCz7X/PMnlGjYjSGuZJgM1Y7mmew7BKf9BqvLX2tnOVy1BBUsxQ==}
+ resolution: {integrity: sha512-0gSo4ml/0j98Y3lngkFEot/zhiCeWsbYIlZ+uZOVgzLyLaUw7wxUL+nCTP0XJvJg1AXulJRI3UJi8GsbDuxdGA==}
+ dependencies:
+ function-bind: 1.1.2
+ has-proto: 1.0.1
+ has-symbols: 1.0.3
+ hasown: 2.0.0
+
resolution: {integrity: sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ==}
engines: {node: '>= 0.4'}
@@ -9370,7 +10038,7 @@ packages:
function-bind: 1.1.2
has-proto: 1.0.3
has-symbols: 1.0.3
- hasown: 2.0.1
+ hasown: 2.0.2
resolution: {integrity: sha512-ro+DiMu5DXgRBabqXupW38h7WPZ9+Ad8UjwhvsmmN8w1sU7ab0nzAXvVZ4kqYg57OrqomRtJvepX5/xvFKNtjA==}
@@ -9385,6 +10053,14 @@ packages:
resolution: {integrity: sha512-VaUJspBffn/LMCJVoMvSAdmscJyS1auj5Zulnn5UoYcY531UWmdwhRWkcGKnGU93m5HSXP9LP2usOryrBtQowA==}
engines: {node: '>=16'}
+ resolution: {integrity: sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw==}
+ engines: {node: '>= 0.4'}
+ dependencies:
+ call-bind: 1.0.5
+ get-intrinsic: 1.2.2
+ dev: true
+
resolution: {integrity: sha512-g0QYk1dZBxGwk+Ngc+ltRH2IBp2f7zBkBMBJZCDerh6EhlhSR6+9irMCuT/09zD6qkarHUSn529sK/yL4S27mg==}
engines: {node: '>= 0.4'}
@@ -9418,18 +10094,19 @@ packages:
- supports-color
dev: true
- resolution: {integrity: sha512-4VG22mopWtIeHwogGSy1FViXVo0YT+m6BrqZfz0JJFwbSsePsCdOzdLIIli5BtMp7Xe8f/o2OmBpQX2NBOC24g==}
+ resolution: {integrity: sha512-zHuCeqtfgqgDwvXlR84UNgnJDuUHQcNI5OqWqFxxuk2BshuKbYhJWdxBsEo4PvKqoGh23lUAIvBNpChMLv7/9Q==}
hasBin: true
dependencies:
- citty: 0.1.6
- consola: 3.2.3
- defu: 6.1.4
- node-fetch-native: 1.6.2
- nypm: 0.3.6
- ohash: 1.1.3
- pathe: 1.1.2
+ colorette: 2.0.20
+ defu: 6.1.3
+ https-proxy-agent: 7.0.4
+ mri: 1.2.0
+ node-fetch-native: 1.4.1
+ pathe: 1.1.1
tar: 6.2.0
+ transitivePeerDependencies:
+ - supports-color
dev: false
@@ -9523,6 +10200,12 @@ packages:
resolution: {integrity: sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==}
engines: {node: '>=4'}
+ resolution: {integrity: sha512-XAmF0RjlrjY23MA51q3HltdlGxUpXPvg0GioKiD9X6HD28iMjo2dKC8Vqwm7lne4GNr78+RHTfliktR6ZH09wA==}
+ engines: {node: '>=8'}
+ dependencies:
+ type-fest: 0.20.2
+
resolution: {integrity: sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==}
engines: {node: '>=8'}
@@ -9548,7 +10231,7 @@ packages:
array-union: 2.1.0
dir-glob: 3.0.1
fast-glob: 3.3.2
- ignore: 5.3.1
+ ignore: 5.3.0
merge2: 1.4.1
slash: 3.0.0
@@ -9558,7 +10241,7 @@ packages:
dependencies:
'@sindresorhus/merge-streams': 2.3.0
fast-glob: 3.3.2
- ignore: 5.3.1
+ ignore: 5.3.0
path-type: 5.0.0
slash: 5.1.0
unicorn-magic: 0.1.0
@@ -9567,7 +10250,7 @@ packages:
resolution: {integrity: sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==}
dependencies:
- get-intrinsic: 1.2.4
+ get-intrinsic: 1.2.2
resolution: {integrity: sha512-mThBblvlAF1d4O5oqyvN+ZxLAYwIJK7bpMxgYqPD9okW0C3qm5FFn7k811QrcuEBwaogR3ngOFoCfs6mRv7teQ==}
@@ -9637,6 +10320,15 @@ packages:
optionalDependencies:
uglify-js: 3.17.4
+ resolution: {integrity: sha512-AwSV0OPsLxOu1nsKsw+1aakYGiCgLcYed/BPLMGe4lOxAZY14UWGAw8nB7SSnHRltBPwcM6Rf+5hcMXcU7qxaQ==}
+ engines: {node: '>=16.0.0'}
+ dependencies:
+ entities: 4.5.0
+ webidl-conversions: 7.0.0
+ whatwg-mimetype: 3.0.0
+ dev: true
+
resolution: {integrity: sha512-RAbq4oYfJNkVan1m1F3jfA4YEyRY0/ASoNvZsNJbuX85jIypidmsz9jQZD7Tqz0VXA2MhAGfcsh5oshwmwNYSg==}
engines: {node: '>=16.0.0'}
@@ -9657,11 +10349,20 @@ packages:
resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==}
engines: {node: '>=8'}
+ resolution: {integrity: sha512-VsX8eaIewvas0xnvinAe9bw4WfIeODpGYikiWYLH+dma0Jw6KHYqWiWfhQlgOVK8D6PvjubK5Uc4P0iIhIcNVg==}
+ dependencies:
+ get-intrinsic: 1.2.2
+
resolution: {integrity: sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==}
dependencies:
es-define-property: 1.0.0
+ resolution: {integrity: sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg==}
+ engines: {node: '>= 0.4'}
+
resolution: {integrity: sha512-SJ1amZAJUiZS+PhsVLf5tGydlaVB8EdFpaSO4gmiUKUOxk8qzn5AIy4ZeJUmh22znIdk/uMAUT2pl3FxzVUH+Q==}
engines: {node: '>= 0.4'}
@@ -9670,14 +10371,26 @@ packages:
resolution: {integrity: sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==}
engines: {node: '>= 0.4'}
+ resolution: {integrity: sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ==}
+ engines: {node: '>= 0.4'}
+ dependencies:
+ has-symbols: 1.0.3
+
resolution: {integrity: sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==}
engines: {node: '>= 0.4'}
dependencies:
has-symbols: 1.0.3
- resolution: {integrity: sha512-1/th4MHjnwncwXsIW6QMzlvYL9kG5e/CpVvLRZe4XPa8TOUNbCELqmvhDmnkNsAjwaG4+I8gJJL0JBvTTLO9qA==}
+ resolution: {integrity: sha512-vUptKVTpIJhcczKBbgnS+RtcuYMB8+oNzPK2/Hp3hanz8JmpATdmmgLgSaadVREkDm+e2giHwY3ZRkyjSIDDFA==}
+ engines: {node: '>= 0.4'}
+ dependencies:
+ function-bind: 1.1.2
+
+ resolution: {integrity: sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==}
engines: {node: '>= 0.4'}
dependencies:
function-bind: 1.1.2
@@ -9703,7 +10416,6 @@ packages:
resolution: {integrity: sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==}
hasBin: true
- dev: false
resolution: {integrity: sha512-/gGivxi8JPKWNm/W0jSmzcMPpfpPLc3dY/6GxhX2hQ9iGj3aDfklV4ET7NjKpSinLpJ5vafa9iiGIEZg10SfBw==}
@@ -9718,7 +10430,7 @@ packages:
resolution: {integrity: sha512-+K84LB1DYwMHoHSgaOY/Jfhw3ucPmSET5v98Ke/HdNSw4a0UktWzyW1mjhjpuxxTqOOsfWT/7iVshHmVZ4IpOA==}
engines: {node: ^16.14.0 || >=18.0.0}
dependencies:
- lru-cache: 10.2.0
+ lru-cache: 10.1.0
dev: true
@@ -9728,13 +10440,12 @@ packages:
whatwg-encoding: 3.1.1
dev: true
- resolution: {integrity: sha512-K//PSRMQk4FZ78Kyau+mZurHn3FH0Vwr+H36eE0rPbeYkRRi9YxceYPhuN60UwWorxyKHhqoAJl2OFKa4BVtaA==}
+ resolution: {integrity: sha512-igBTJcNNNhvZFRtm8uA6xMY6xYleeDwn3PeBCkDz7tHttv4F2hsDI2aPgNERWzvRcNYHNT3ymRaQzllmXj4YsQ==}
dev: false
resolution: {integrity: sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==}
- dev: false
resolution: {integrity: sha512-YXxSlJBZTP7RS3tWnQw74ooKa6L9b9i9QYXY21eUEvhZ3u9XLfv6OnFsQq6RxkhHygsaUMvYsZRV5rU/OVNZxw==}
@@ -9771,7 +10482,7 @@ packages:
lodash: 4.17.21
pretty-error: 4.0.0
tapable: 2.2.1
- webpack: 5.90.3(@swc/[email protected])([email protected])
+ webpack: 5.90.3(@swc/[email protected])([email protected])
dev: false
@@ -9824,7 +10535,6 @@ packages:
debug: 4.3.4
transitivePeerDependencies:
- supports-color
- dev: true
resolution: {integrity: sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==}
@@ -9853,6 +10563,15 @@ packages:
dependencies:
safer-buffer: 2.1.2
+ resolution: {integrity: sha512-soFhflCVWLfRNOPU3iv5Z9VUdT44xFRbzjLsEzSr5AQmgqPMTHdU3PMT1Cf1ssx8fLNJDA1juftYl+PUcv3MqA==}
+ engines: {node: ^10 || ^12 || >= 14}
+ peerDependencies:
+ postcss: ^8.1.0
+ dependencies:
+ postcss: 8.4.32
+ dev: true
+
resolution: {integrity: sha512-soFhflCVWLfRNOPU3iv5Z9VUdT44xFRbzjLsEzSr5AQmgqPMTHdU3PMT1Cf1ssx8fLNJDA1juftYl+PUcv3MqA==}
engines: {node: ^10 || ^12 || >= 14}
@@ -9860,12 +10579,13 @@ packages:
postcss: ^8.1.0
dependencies:
postcss: 8.4.35
+ dev: false
resolution: {integrity: sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==}
- resolution: {integrity: sha512-5Fytz/IraMjqpwfd34ke28PTVMjZjJG2MPn5t7OE4eUCUNf8BAa7b5WUS9/Qvr6mwOQS7Mk6vdsMno5he+T8Xw==}
+ resolution: {integrity: sha512-g7dmpshy+gD7mh88OC9NwSGTKoc3kyLAZQRU1mt53Aw/vnvfXnbC+F/7F7QoYVKbV+KNvJx8wArewKy1vXMtlg==}
engines: {node: '>= 4'}
@@ -9883,8 +10603,8 @@ packages:
resolution: {integrity: sha512-Q0QaXjPjwIju/28TsugCHNEASwoCcJSyJV3uO1sOIQGI0jKgm9f41Lvz0DZj3n46cNCyAZTsEYoY4C2bVRUzyQ==}
dev: false
- resolution: {integrity: sha512-8eabxkth9gZatlwl5TBuJnCsoTADlL6ftEr7A4qgdaTsPyreilDSnUk57SO+jfKcNtxPa22U5KK6DSeAYhpBJw==}
+ resolution: {integrity: sha512-fsXeu4J4i6WNWSikpI88v/PcVflZz+6kMhUfIwc5SY+poQRPnaf5V7qds6SUyUN3cVxEzuCab7QIoLOQ+DQ1wA==}
dev: true
@@ -9954,13 +10674,22 @@ packages:
wrap-ansi: 6.2.0
dev: true
+ resolution: {integrity: sha512-Xj6dv+PsbtwyPpEflsejS+oIZxmMlV44zAhG479uYu89MsjcYOhCFnNyKrkJrihbsiasQyY0afoCl/9BLR65bg==}
+ engines: {node: '>= 0.4'}
+ dependencies:
+ get-intrinsic: 1.2.2
+ hasown: 2.0.0
+ side-channel: 1.0.4
+
resolution: {integrity: sha512-NGnrKwXzSms2qUUih/ILZ5JBqNTSa1+ZmP6flaIp6KmSElgE9qdndzS3cqjrDovwFdmwsGsLdeFgB6suw+1e9g==}
engines: {node: '>= 0.4'}
dependencies:
es-errors: 1.3.0
- hasown: 2.0.1
- side-channel: 1.0.5
+ hasown: 2.0.2
+ side-channel: 1.0.4
+ dev: true
resolution: {integrity: sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA==}
@@ -10004,8 +10733,15 @@ packages:
resolution: {integrity: sha512-8Q7EARjzEnKpt/PCD7e1cgUS0a6X8u5tdSiMqXhojOdoV9TsMsiO+9VLC5vAmO8N7/GmXn7yjR8qnA6bVAEzfA==}
engines: {node: '>= 0.4'}
dependencies:
- call-bind: 1.0.7
- has-tostringtag: 1.0.2
+ call-bind: 1.0.5
+ has-tostringtag: 1.0.0
+
+ resolution: {integrity: sha512-y+FyyR/w8vfIRq4eQcM1EYgSTnmHXPqaF+IgzgraytCFq5Xh8lllDVmAZolPJiZttZLeFSINPYMaEJ7/vWUa1w==}
+ dependencies:
+ call-bind: 1.0.5
+ get-intrinsic: 1.2.2
+ is-typed-array: 1.1.12
resolution: {integrity: sha512-wcjaerHw0ydZwfhiKbXJWLDY8A7yV7KhjQOpb83hGgGfId/aQa4TOvwyzn2PuswW2gPCYEL/nEAiSVpdOj1lXw==}
@@ -10013,10 +10749,15 @@ packages:
dependencies:
call-bind: 1.0.7
get-intrinsic: 1.2.4
+ dev: true
resolution: {integrity: sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==}
+ resolution: {integrity: sha512-eVRqCvVlZbuw3GrM63ovNSNAeA1K16kaR/LRY/92w0zxQ5/1YzwblUX652i4Xs9RwAGjW9d9y6X88t8OaAJfWQ==}
+ dev: true
+
resolution: {integrity: sha512-Y1JXKrfykRJGdlDwdKlLpLyMIiWqWvuSd17TvZk68PLAOGOoF4Xyav1z0Xhoi+gCYjZVeC5SI+hYFOfvXmGRCA==}
engines: {node: '>= 0.4'}
@@ -10039,8 +10780,8 @@ packages:
resolution: {integrity: sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==}
engines: {node: '>= 0.4'}
dependencies:
- call-bind: 1.0.7
- has-tostringtag: 1.0.2
+ call-bind: 1.0.5
+ has-tostringtag: 1.0.0
resolution: {integrity: sha512-BSLE3HnV2syZ0FK0iMA/yUGplUeMmNz4AW5fnTunbCIqZi4vG3WjJT9FHMy5D69xmAYBHXQhJdALdpwVxV501A==}
@@ -10063,13 +10804,13 @@ packages:
resolution: {integrity: sha512-hHrIjvZsftOsvKSn2TRYl63zvxsgE0K+0mYMoH6gD4omR5IWB2KynivBQczo3+wF1cCkjzvptnI9Q0sPU66ilw==}
dependencies:
- hasown: 2.0.1
+ hasown: 2.0.0
resolution: {integrity: sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==}
engines: {node: '>= 0.4'}
dependencies:
- has-tostringtag: 1.0.2
+ has-tostringtag: 1.0.0
resolution: {integrity: sha512-RGdriMmQQvZ2aqaQq3awNA6dCGtKpiDFcOzrTWrDAT2MiWrKQVPmxLGHl7Y2nNu6led0kEyoX0enY0qXYsv9zw==}
@@ -10179,6 +10920,11 @@ packages:
call-bind: 1.0.7
define-properties: 1.2.1
+ resolution: {integrity: sha512-dqJvarLawXsFbNDeJW7zAz8ItJ9cd28YufuuFzh0G8pNHjJMnY08Dv7sYX2uF5UpQOwieAeOExEYAWWfu7ZZUA==}
+ engines: {node: '>= 0.4'}
+ dev: true
+
resolution: {integrity: sha512-5KoIu2Ngpyek75jXodFvnafB6DJgr3u8uuK0LEZJjrU19DrMD3EVERaR8sjz8CCGgpZvxPl9SuE1GMVPFHx1mw==}
engines: {node: '>= 0.4'}
@@ -10193,7 +10939,7 @@ packages:
resolution: {integrity: sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ==}
engines: {node: '>= 0.4'}
dependencies:
- has-tostringtag: 1.0.2
+ has-tostringtag: 1.0.0
resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==}
@@ -10231,16 +10977,23 @@ packages:
resolution: {integrity: sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==}
engines: {node: '>= 0.4'}
dependencies:
- call-bind: 1.0.7
- has-tostringtag: 1.0.2
+ call-bind: 1.0.5
+ has-tostringtag: 1.0.0
resolution: {integrity: sha512-+2cnTEZeY5z/iXGbLhPrOAaK/Mau5k5eXq9j14CpRTftq0pAJu2MwVRSZhyZWBzx3o6X795Lz6Bpb6R0GKf37g==}
resolution: {integrity: sha512-sqN2UDu1/0y6uvXyStCOzyhAjCSlHceFoMKJW8W9EU9cvic/QdsZ0kEU93HEy3IUEFZIiH/3w+AH/UQbPHNdhA==}
+ dependencies:
+ call-bind: 1.0.5
+
+ resolution: {integrity: sha512-nA2hv5XIhLR3uVzDDfCIknerhx8XUKnstuOERPNNIinXG7v9u+ohXF67vxm4TPTEPU6lm61ZkwP3c9PCB97rhg==}
+ engines: {node: '>= 0.4'}
dependencies:
call-bind: 1.0.7
+ dev: true
resolution: {integrity: sha512-x7+VxdxOdlV3CYpjvRLBv5Lo9OJerlYanjwFrPR9fuGPjCiNiCzFgAWpiLAohSbsnH4ZAys3SBh+hq5rJosxUQ==}
@@ -10260,7 +11013,7 @@ packages:
resolution: {integrity: sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==}
engines: {node: '>= 0.4'}
dependencies:
- has-tostringtag: 1.0.2
+ has-tostringtag: 1.0.0
resolution: {integrity: sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg==}
@@ -10275,11 +11028,17 @@ packages:
text-extensions: 2.4.0
dev: true
+ resolution: {integrity: sha512-Z14TF2JNG8Lss5/HMqt0//T9JeHXttXy5pH/DBU4vi98ozO2btxzq9MwYDZYnKwU8nRsz/+GVFVRDq3DkVuSPg==}
+ engines: {node: '>= 0.4'}
+ dependencies:
+ which-typed-array: 1.1.13
+
resolution: {integrity: sha512-uZ25/bUAlUY5fR4OKT4rZQEBrzQWYV9ZJYGGsUmEJ6thodVJ1HX64ePQ6Z0qPWP+m+Uq6e9UugrE38jeYsDSMw==}
engines: {node: '>= 0.4'}
dependencies:
- which-typed-array: 1.1.14
+ which-typed-array: 1.1.15
resolution: {integrity: sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA==}
@@ -10305,14 +11064,14 @@ packages:
resolution: {integrity: sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==}
dependencies:
- call-bind: 1.0.7
+ call-bind: 1.0.5
dev: true
resolution: {integrity: sha512-t2yVvttHkQktwnNNmBQ98AhENLdPUTDTE21uPqAQ0ARwQfGeQKRVS0NNurH7bTf7RrvcVn1OOge45CnBeHCSmg==}
dependencies:
- call-bind: 1.0.7
- get-intrinsic: 1.2.4
+ call-bind: 1.0.5
+ get-intrinsic: 1.2.2
resolution: {integrity: sha512-sNxgpk9793nzSs7bA6JQJGeIuRBQhAaNGG77kzYQgMkrID+lS6SlK07K5LaptscDlSaIgH+GPFzf+d75FVxozA==}
@@ -10360,20 +11119,18 @@ packages:
resolution: {integrity: sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg==}
engines: {node: '>=8'}
- dev: false
- resolution: {integrity: sha512-1WUsZ9R1lA0HtBSohTkm39WTPlNKSJ5iFk7UwqXkBLoHQT+hfqPsfsTDVuZdKGaBwn7din9bS7SsnoAr943hvw==}
+ resolution: {integrity: sha512-EAMEJBsYuyyztxMxW3g7ugGPkrZsV57v0Hmv3mm1uQsmB+QnZuepg731CRaIgeUVSdmsTngOkSnauNF8p7FIhA==}
engines: {node: '>=10'}
dependencies:
- '@babel/core': 7.23.9
- '@babel/parser': 7.23.9
+ '@babel/core': 7.24.0
+ '@babel/parser': 7.24.0
'@istanbuljs/schema': 0.1.3
istanbul-lib-coverage: 3.2.2
semver: 7.6.0
transitivePeerDependencies:
- supports-color
- dev: false
resolution: {integrity: sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw==}
@@ -10382,7 +11139,17 @@ packages:
istanbul-lib-coverage: 3.2.2
make-dir: 4.0.0
supports-color: 7.2.0
- dev: false
+
+ resolution: {integrity: sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw==}
+ engines: {node: '>=10'}
+ dependencies:
+ debug: 4.3.4
+ istanbul-lib-coverage: 3.2.2
+ source-map: 0.6.1
+ transitivePeerDependencies:
+ - supports-color
+ dev: true
resolution: {integrity: sha512-wHOoEsNJTVltaJp8eVkm8w+GVkVNHT2YDYo53YdzQEL2gWm1hBX5cGFR9hQJtuGLebidVX7et3+dmDZrmclduw==}
@@ -10395,13 +11162,12 @@ packages:
- supports-color
dev: false
- resolution: {integrity: sha512-BewmUXImeuRk2YY0PVbxgKAysvhRPUQE0h5QRM++nVWyubKGV0l8qQ5op8+B2DOmwSe63Jivj0BjkPQVf8fP5g==}
+ resolution: {integrity: sha512-TLgnMkKg3iTDsQ9PbPTdpfAK2DzjF9mqUG7RMgcQl8oFjad8ob4laGxv5XV5U9MAfx8D6tSJiUyuAwzLicaxlg==}
engines: {node: '>=8'}
dependencies:
html-escaper: 2.0.2
istanbul-lib-report: 3.0.1
- dev: false
resolution: {integrity: sha512-t91HubM4ZDQ70M9wqp+pcNpu8OyJ9UAtXntT/Bcsvp5tZMnz9vRa+IunKXeI8AnfZMTv0jNuVEmGeLSMjVvfPw==}
@@ -10420,8 +11186,8 @@ packages:
define-properties: 1.2.1
get-intrinsic: 1.2.4
has-symbols: 1.0.3
- reflect.getprototypeof: 1.0.5
- set-function-name: 2.0.2
+ reflect.getprototypeof: 1.0.4
+ set-function-name: 2.0.1
dev: true
@@ -10466,7 +11232,6 @@ packages:
resolution: {integrity: sha512-8wb9Yw966OSxApiCt0K3yNJL8pnNeIv+OEq2YMidz4FKP6nonSRoOXc80iXY4JaN2FC11B9qsNmDsm+ZOfMROA==}
- dev: false
resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==}
@@ -10484,7 +11249,7 @@ packages:
resolution: {integrity: sha512-4bYVV3aAMtDTTu4+xsDYa6sy9GyJ69/amsu9sYF2zqjiEoZA5xJi3BrfX3uY+/IekIu7MwdObdbDWpoZdBv3/A==}
dev: true
resolution: {integrity: sha512-hIJfxUy8Rt4HkJn/zZPU9ChKfKZM1342waJ1QC2e2YsPcWhM+3BJ4dcfQCzArTrk1jJeNLB341H+qOcEHRxJZg==}
hasBin: true
peerDependencies:
@@ -10493,20 +11258,20 @@ packages:
'@babel/preset-env':
optional: true
dependencies:
- '@babel/core': 7.23.9
- '@babel/parser': 7.23.9
- '@babel/plugin-transform-class-properties': 7.23.3(@babel/[email protected])
- '@babel/plugin-transform-modules-commonjs': 7.23.3(@babel/[email protected])
- '@babel/plugin-transform-nullish-coalescing-operator': 7.23.4(@babel/[email protected])
- '@babel/plugin-transform-optional-chaining': 7.23.4(@babel/[email protected])
- '@babel/plugin-transform-private-methods': 7.23.3(@babel/[email protected])
- '@babel/preset-env': 7.23.9(@babel/[email protected])
- '@babel/preset-flow': 7.23.3(@babel/[email protected])
- '@babel/preset-typescript': 7.23.3(@babel/[email protected])
- '@babel/register': 7.23.7(@babel/[email protected])
- babel-core: 7.0.0-bridge.0(@babel/[email protected])
+ '@babel/core': 7.24.0
+ '@babel/parser': 7.24.0
+ '@babel/plugin-transform-class-properties': 7.23.3(@babel/[email protected])
+ '@babel/plugin-transform-modules-commonjs': 7.23.3(@babel/[email protected])
+ '@babel/plugin-transform-nullish-coalescing-operator': 7.23.4(@babel/[email protected])
+ '@babel/plugin-transform-optional-chaining': 7.23.4(@babel/[email protected])
+ '@babel/plugin-transform-private-methods': 7.23.3(@babel/[email protected])
+ '@babel/preset-env': 7.23.3(@babel/[email protected])
+ '@babel/preset-flow': 7.23.3(@babel/[email protected])
+ '@babel/preset-typescript': 7.23.3(@babel/[email protected])
+ '@babel/register': 7.22.15(@babel/[email protected])
+ babel-core: 7.0.0-bridge.0(@babel/[email protected])
chalk: 4.1.2
- flow-parser: 0.229.0
+ flow-parser: 0.222.0
graceful-fs: 4.2.11
micromatch: 4.0.5
neo-async: 2.6.2
@@ -10613,14 +11378,13 @@ packages:
semver: 7.6.0
dev: true
- resolution: {integrity: sha512-AilxAyFOAcK5wA1+LeaySVBrHsGQvUFCDWXKpZjzaL0PqW+xfBOttn8GNtWKFWqneyMZj41MWF9Kl6iPWLwgOA==}
+ resolution: {integrity: sha512-gfFQZrcTc8CnKXp6Y4/CBT3fTc0OVuDofpre4aEeEpSBPV5X5v4+Vmx+8snU7RLPrNHPKSgLxGo9YuQzz20o+w==}
resolution: {integrity: sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==}
optionalDependencies:
graceful-fs: 4.2.11
- dev: false
resolution: {integrity: sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==}
@@ -10661,7 +11425,6 @@ packages:
resolution: {integrity: sha512-Y+60/zizpJ3HRH8DCss+q95yr6145JXZo46OTpFvDZWLfRCE4qChOyk1b26nMaNpfHHgxagk9dXT5OP0Tfe+dQ==}
- dev: false
resolution: {integrity: sha512-KvNT4XqAMzdcL6ka6Tl3i2lYeFDgXNCuIX+xNx6ZMVR1dFq+idXd9FLKNMOIx0t9mJ9/HudyX4oZWXZQ0UJHeg==}
@@ -10675,7 +11438,7 @@ packages:
engines: {node: '>=14.0.0'}
dependencies:
app-root-dir: 1.0.2
- dotenv: 16.4.5
+ dotenv: 16.3.1
dotenv-expand: 10.0.0
@@ -10692,7 +11455,7 @@ packages:
optional: true
dependencies:
less: 4.2.0
- webpack: 5.90.3(@swc/[email protected])([email protected])
+ webpack: 5.90.3(@swc/[email protected])([email protected])
dev: false
@@ -10709,8 +11472,10 @@ packages:
image-size: 0.5.5
make-dir: 2.1.0
mime: 1.6.0
- needle: 3.3.1
+ needle: 3.2.0
source-map: 0.6.1
+ transitivePeerDependencies:
+ - supports-color
resolution: {integrity: sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==}
@@ -10777,7 +11542,7 @@ packages:
colorette: 2.0.20
eventemitter3: 5.0.1
log-update: 6.0.0
- rfdc: 1.3.1
+ rfdc: 1.3.0
wrap-ansi: 9.0.0
dev: true
@@ -10795,7 +11560,7 @@ packages:
resolution: {integrity: sha512-ok6z3qlYyCDS4ZEU27HaU6x/xZa9Whf8jD4ptH5UZTQYZVYeb9bnZ3ojVhiJNLiXK1Hfc0GNbLXcmZ5plLDDBg==}
engines: {node: '>=14'}
dependencies:
- mlly: 1.5.0
+ mlly: 1.4.2
pkg-types: 1.0.3
@@ -10848,11 +11613,9 @@ packages:
resolution: {integrity: sha512-z+Uw/vLuy6gQe8cfaFWD7p0wVv8fJl3mbzXh33RS+0oW2wvUqiRXiQ69gLWSLpgB5/6sU+r6BlQR0MBILadqTQ==}
- dev: false
resolution: {integrity: sha512-pDo3lu8Jhfjqls6GkMgpahsF9kCyayhgykjyLMNFTKWrpVdAQtYyB4muAMWozBB4ig/dtWAmsMxLEI8wuz+DYQ==}
- dev: false
resolution: {integrity: sha512-oSXzaWypCMHkPC3NvBEaPHf0KsA5mvPrOPgQWDsbg8n7orZ290M0BmC/jgRZ4vcJ6DTAhjrsSYgdsW/F+MFOBA==}
@@ -10873,6 +11636,10 @@ packages:
resolution: {integrity: sha512-GK3g5RPZWTRSeLSpgP8Xhra+pnjBC56q9FZYe1d5RN3TJ35dbkGy3YqBSMbyCrlbi+CM9Z3Jk5yTL7RCsqboyQ==}
dev: true
+ resolution: {integrity: sha512-4hNPN5jlm/N/HLMCO43v8BXKq9Z7QdAGc/VGrRD61w8gN9g/6jF9A4L1pbUgBLCffi0w9VsXfTOij5x8iTyFvg==}
+ dev: false
+
resolution: {integrity: sha512-QZ1d4xoBHYUeuouhEq3lk3Uq7ldgyFXGBhg04+oRLnIz8o9T65Eh+8YdroUwn846zchkA9yDsDl5CVVaV2nqYw==}
dev: true
@@ -10948,8 +11715,8 @@ packages:
engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}
dev: true
- resolution: {integrity: sha512-2bIM8x+VAf6JT4bKAljS1qUWgMsqZRPGJS6FSahIMPVvctcNhyVp7AJu7quxOW9jwkryBReKZY5tY5JYv2n/7Q==}
+ resolution: {integrity: sha512-/1clY/ui8CzjKFyjdvwPWJUYKiFVXG2I2cY0ssG7h4+hwk+XOIX7ZSG9Q7TW8TW3Kp3BUSqgFWBLgL4PJ+Blag==}
engines: {node: 14 || >=16.14}
@@ -10977,8 +11744,21 @@ packages:
engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}
dev: true
- resolution: {integrity: sha512-8vBuFF/I/+OSLRmdf2wwFCJCz+nSn0m6DPvGH1fS/KiQoSaR+sETbov0eIk9KhEKy8CYqIkIAnbohxT/4H0kuA==}
+ resolution: {integrity: sha512-RmF0AsMzgt25qzqqLc1+MbHmhdx0ojF2Fvs4XnOqz2ZOBXzzkEwc/dJQZCYHAn7v1jbVOjAZfK8msRn4BxO4VQ==}
+ dependencies:
+ sourcemap-codec: 1.4.8
+ dev: true
+
+ resolution: {integrity: sha512-7xlpfBaQaP/T6Vh8MO/EqXSW5En6INHEvEXQiuff7Gku0PWjU3uf6w/j9o7O+SpB5fOAkrI5HeoNgwjEO0pFsA==}
+ engines: {node: '>=12'}
+ dependencies:
+ '@jridgewell/sourcemap-codec': 1.4.15
+ dev: true
+
+ resolution: {integrity: sha512-ISQTe55T2ao7XtlAStud6qwYPZjE4GK1S/BeVPus4jrq6JuOnQ00YKQC581RWhR122W7msZV263KzVeLoqidyQ==}
engines: {node: '>=12'}
dependencies:
'@jridgewell/sourcemap-codec': 1.4.15
@@ -10986,10 +11766,9 @@ packages:
resolution: {integrity: sha512-ZbrP1Qxnpoes8sz47AM0z08U+jW6TyRgZzcWy3Ma3vDhJttwMwAFDMMQFobwdBxByBD46JYmxRzeF7w2+wJEuw==}
dependencies:
- '@babel/parser': 7.23.9
- '@babel/types': 7.23.9
+ '@babel/parser': 7.23.6
+ '@babel/types': 7.23.6
source-map-js: 1.0.2
- dev: false
resolution: {integrity: sha512-LS9X+dc8KLxXCb8dni79fLIIUA5VyZoyjSMCwTluaXA0o27cCK0bhXkpgw+sTXVpPy/lSO57ilRixqk0vDmtRA==}
@@ -11009,8 +11788,7 @@ packages:
resolution: {integrity: sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==}
engines: {node: '>=10'}
dependencies:
- semver: 7.6.0
- dev: false
+ semver: 7.5.4
resolution: {integrity: sha512-0aF7ZmVon1igznGI4VS30yugpduQW3y3GkcgGJOp7d8x8QrizhigUxjI/m2UojsXXto+jLAH3KSz+xOJTiORjg==}
@@ -11195,13 +11973,13 @@ packages:
hasBin: true
dev: false
- resolution: {integrity: sha512-NPVQvAY1xr1QoVeG0cy8yUYC7FQcOx6evl/RjT1wL5FvzPnzOysoqB/jmx/DhssT2dYa8nxECLAaFI/+gVLhDQ==}
+ resolution: {integrity: sha512-i/Ykufi2t1EZ6NaPLdfnZk2AX8cs0d+mTzVKuPfqPKPatxLApaBoxJQ9x1/uckXtrS/U5oisPMDkNs0yQTaBRg==}
dependencies:
acorn: 8.11.3
- pathe: 1.1.2
+ pathe: 1.1.1
pkg-types: 1.0.3
- ufo: 1.4.0
+ ufo: 1.3.2
resolution: {integrity: sha512-VabVvHvQ9QmMwXu4du008ZDuyLnHs9j7ThVFsiJoXSOQk18+LF89N4ADzPbFenm0W4V2bGHnFBztIRQTgBfxzw==}
@@ -11212,6 +11990,11 @@ packages:
color-name: 1.1.4
dev: true
+ resolution: {integrity: sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA==}
+ engines: {node: '>=4'}
+ dev: false
+
resolution: {integrity: sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==}
dev: false
@@ -11224,7 +12007,6 @@ packages:
resolution: {integrity: sha512-ckmWDJjphvd/FvZawgygcUeQCxzvohjFO5RxTjj4eq8kw359gFF3E1brjfI+viLMxss5JrHTDRHZvu2/tuy0Qg==}
- dev: false
resolution: {integrity: sha512-avsJQhyd+680gKXyG/sQc0nXaC6rBkPOfyHYcFb9+hdkqQkR9bdnkJ0AMZhke0oesPqIO+mFFJ+IdBc7mst4IA==}
@@ -11249,14 +12031,17 @@ packages:
resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==}
- resolution: {integrity: sha512-6k0YULvhpw+RoLNiQCRKOl09Rv1dPLr8hHnVjHqdolKwDrdNyk+Hmrthi4lIGPPz3r39dLx0hsF5s40sZ3Us4Q==}
+ resolution: {integrity: sha512-oUvzXnyLiVyVGoianLijF9O/RecZUf7TkBfimjGrLM4eQhXyeJwM6GeAWccwfQ9aa4gMCZKqhAOuLaMIcQxajQ==}
engines: {node: '>= 4.4.x'}
hasBin: true
requiresBuild: true
dependencies:
+ debug: 3.2.7
iconv-lite: 0.6.3
sax: 1.3.0
+ transitivePeerDependencies:
+ - supports-color
optional: true
@@ -11302,8 +12087,8 @@ packages:
engines: {node: '>=10.5.0'}
dev: true
- resolution: {integrity: sha512-69mtXOFZ6hSkYiXAVB5SqaRvrbITC/NPyqv7yuu/qw0nmgPyYbIMYYNIDhNtwPrzk0ptrimrLz/hhjvm4w5Z+w==}
+ resolution: {integrity: sha512-NsXBU0UgBxo2rQLOeWNZqS3fvflWePMECr8CoSWoSTqCqGbVVsvl9vZu1HfQicYN0g5piV9Gh8RTEvo/uP752w==}
dev: false
@@ -11326,6 +12111,9 @@ packages:
formdata-polyfill: 4.0.10
dev: true
+ resolution: {integrity: sha512-uYr7J37ae/ORWdZeQ1xxMJe3NtdmqMC/JZK+geofDrkLUApKRHPd18/TxtBOJ4A0/+uUIliorNrfYV6s1b02eQ==}
+
resolution: {integrity: sha512-y10wOWt8yZpqXmOgRo77WaHEmhYQYGNA6y421PKsKYWEK8aW+cqAphborZDhqfyKrbZEN92CN1X2KbafY2s7Yw==}
@@ -11362,8 +12150,8 @@ packages:
dependencies:
path-key: 3.1.1
- resolution: {integrity: sha512-W4/tgAXFqFA0iL7fk0+uQ3g7wkL8xJmx3XdK0VGb4cHW//eZTtKGvFBBoRKVTpY7n6ze4NL9ly7rgXcHufqXKg==}
+ resolution: {integrity: sha512-sJOdmRGrY2sjNTRMbSvluQqg+8X7ZK61yvzBEIDhz4f8z1TZFYABsqjjCBd/0PUNE9M6QDgHJXQkGUEm7Q+l9Q==}
engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}
dependencies:
path-key: 4.0.0
@@ -11385,17 +12173,6 @@ packages:
resolution: {integrity: sha512-ub5E4+FBPKwAZx0UwIQOjYWGHTEq5sPqHQNRN8Z9e4A7u3Tj1weLJsL59yH9vmvqEtBHaOmT6cYQKIZOxp35FQ==}
dev: true
- resolution: {integrity: sha512-2CATJh3pd6CyNfU5VZM7qSwFu0ieyabkEdnogE30Obn1czrmOYiZ8DOZLe1yBdLKWoyD3Mcy2maUs+0MR3yVjQ==}
- engines: {node: ^14.16.0 || >=16.10.0}
- hasBin: true
- dependencies:
- citty: 0.1.6
- execa: 8.0.1
- pathe: 1.1.2
- ufo: 1.4.0
- dev: false
-
resolution: {integrity: sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==}
engines: {node: '>=0.10.0'}
@@ -11407,13 +12184,22 @@ packages:
resolution: {integrity: sha512-3cyDsyHgtmi7I7DfSSI2LDp6SK2lwvtbg0p0R1e0RvTqF5ceGx+K2dfSjm1bKDMVCFEDAQvy+o8c6a7VujOddw==}
engines: {node: '>= 0.4'}
dependencies:
- call-bind: 1.0.7
+ call-bind: 1.0.5
define-properties: 1.2.1
resolution: {integrity: sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==}
engines: {node: '>= 0.4'}
+ resolution: {integrity: sha512-1mxKf0e58bvyjSCtKYY4sRe9itRk3PJpquJOjeIkz885CczcI4IvJJDLPS72oowuSh+pBxUFROpX+TU++hxhZQ==}
+ engines: {node: '>= 0.4'}
+ dependencies:
+ call-bind: 1.0.5
+ define-properties: 1.2.1
+ has-symbols: 1.0.3
+ object-keys: 1.1.1
+
resolution: {integrity: sha512-byy+U7gp+FVwmyzKPYhW2h5l3crpmGsxl7X2s8y43IgxvG4g3QZ6CffDtsNQy1WsmZpQbO+ybo0AlW7TY6DcBQ==}
engines: {node: '>= 0.4'}
@@ -11429,7 +12215,7 @@ packages:
dependencies:
call-bind: 1.0.7
define-properties: 1.2.1
- es-abstract: 1.22.4
+ es-abstract: 1.22.5
dev: true
@@ -11438,14 +12224,14 @@ packages:
dependencies:
call-bind: 1.0.7
define-properties: 1.2.1
- es-abstract: 1.22.4
+ es-abstract: 1.22.5
dev: true
resolution: {integrity: sha512-fFI4VcYpRHvSLXxP7yiZOMAd331cPfd2p7PFDVbgUsYOfCT3tICVqXWngbjr4m49OvsBwUBQ6O2uQoJvy3RexA==}
dependencies:
define-properties: 1.2.1
- es-abstract: 1.22.4
+ es-abstract: 1.22.5
dev: true
@@ -11454,17 +12240,13 @@ packages:
dependencies:
call-bind: 1.0.7
define-properties: 1.2.1
- es-abstract: 1.22.4
+ es-abstract: 1.22.5
dev: true
resolution: {integrity: sha512-eJJDYkhJFFbBBAxeh8xW+weHlkI28n2ZdQV/J/DNfWfSKlGEf2xcfAbZTv3riEXHAhL9SVOTs2pRmXiSTf78xg==}
dev: false
- resolution: {integrity: sha512-zuHHiGTYTA1sYJ/wZN+t5HKZaH23i4yI1HMwbuXm24Nid7Dv0KcuRlKoNKS9UNfAVSBlnGLcuQrnOKWOZoEGaw==}
- dev: false
-
resolution: {integrity: sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==}
engines: {node: '>= 0.8'}
@@ -11549,7 +12331,7 @@ packages:
is-unicode-supported: 2.0.0
log-symbols: 6.0.0
stdin-discarder: 0.2.2
- string-width: 7.1.0
+ string-width: 7.0.0
strip-ansi: 7.1.0
dev: true
@@ -11755,7 +12537,6 @@ packages:
resolution: {integrity: sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==}
- dev: false
resolution: {integrity: sha512-bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ==}
@@ -11802,7 +12583,7 @@ packages:
resolution: {integrity: sha512-MkhCqzzBEpPvxxQ71Md0b1Kk51W01lrYvlMzSUaIzNsODdd7mqhiimSZlr+VegAz5Z6Vzt9Xg2ttE//XBhH3EQ==}
engines: {node: '>=16 || 14 >=14.17'}
dependencies:
- lru-cache: 10.2.0
+ lru-cache: 10.1.0
minipass: 7.0.4
@@ -11818,8 +12599,8 @@ packages:
engines: {node: '>=12'}
dev: true
- resolution: {integrity: sha512-whLdWMYL2TwI08hn8/ZqAbrVemu0LNaNNJZX73O6qaIdCTfXutsLhMkjdENX0qhsQ9uIimo4/aQOmXkoon2nDQ==}
+ resolution: {integrity: sha512-d+RQGp0MAYTIaDBIMmOfMwz3E+LOZnxx1HZd5R18mmCZY0QBlK0LDZfPc8FW8Ed2DlvsuE6PRjroDY+wg4+j/Q==}
resolution: {integrity: sha512-Dp6zGqpTdETdR63lehJYPeIOqpiNBNtc7BpWSLrOje7UaIsE5aY92r/AunQA7rsXvet3lrJ3JnZX29UPTKXyKQ==}
@@ -11882,9 +12663,9 @@ packages:
resolution: {integrity: sha512-nN7pYi0AQqJnoLPC9eHFQ8AcyaixBUOwvqc5TDnIKCMEE6I0y8P7OKA7fPexsXGCGxQDl/cmrLAp26LhcwxZ4A==}
dependencies:
- jsonc-parser: 3.2.1
- mlly: 1.5.0
- pathe: 1.1.2
+ jsonc-parser: 3.2.0
+ mlly: 1.4.2
+ pathe: 1.1.1
resolution: {integrity: sha512-mxz6zclokgrke9p1vtdy/COWBH+eOZgYUVVU34C73M+4j4HLlQJHtfcqiqqxpP0o8HhMkflvfbquLX5dg6wlfA==}
@@ -11907,8 +12688,8 @@ packages:
engines: {node: '>=4'}
dev: true
- resolution: {integrity: sha512-OBatVyC/N7SCW/FaDHrSd+vn0o5cS855TOmYi4OkdWUMSJCET/xip//ch8xGUvtr3i44X9LVyWwQlRMTN3pwSA==}
+ resolution: {integrity: sha512-Sz2Lkdxz6F2Pgnpi9U5Ng/WdWAUZxmHrNPoVlm3aAemxoy2Qy7LGjQg4uf8qKelDAUW94F4np3iH2YPf2qefcQ==}
engines: {node: '>=10'}
dependencies:
'@babel/runtime': 7.23.9
@@ -11918,6 +12699,15 @@ packages:
resolution: {integrity: sha512-d7Uw+eZoloe0EHDIYoe+bQ5WXnGMOpmiZFTuMWCwpjzzkL2nTjcKiAk4hh8TjnGye2TwWOk3UXucZ+3rbmBa8Q==}
engines: {node: '>= 0.4'}
+ resolution: {integrity: sha512-bdHleFnP3kZ4NYDhuGlVK+CMrQ/pqUm8bx/oGL93K6gVwiclvX5x0n76fYMKuIGKzlABOy13zsvqjb0f92TEXw==}
+ engines: {node: ^10 || ^12 || >= 14}
+ peerDependencies:
+ postcss: ^8.1.0
+ dependencies:
+ postcss: 8.4.32
+ dev: true
+
resolution: {integrity: sha512-bdHleFnP3kZ4NYDhuGlVK+CMrQ/pqUm8bx/oGL93K6gVwiclvX5x0n76fYMKuIGKzlABOy13zsvqjb0f92TEXw==}
engines: {node: ^10 || ^12 || >= 14}
@@ -11925,6 +12715,19 @@ packages:
postcss: ^8.1.0
dependencies:
postcss: 8.4.35
+ dev: false
+
+ resolution: {integrity: sha512-2/u2zraspoACtrbFRnTijMiQtb4GW4BvatjaG/bCjYQo8kLTdevCUlwuBHx2sCnSyrI3x3qj4ZK1j5LQBgzmwA==}
+ engines: {node: ^10 || ^12 || >= 14}
+ peerDependencies:
+ postcss: ^8.1.0
+ dependencies:
+ icss-utils: 5.1.0([email protected])
+ postcss: 8.4.32
+ postcss-selector-parser: 6.0.13
+ postcss-value-parser: 4.2.0
+ dev: true
resolution: {integrity: sha512-L4QzMnOdVwRm1Qb8m4x8jsZzKAaPAgrUF1r/hjDR2Xj7R+8Zsf97jAlSQzWtKx5YNiNGN8QxmPFIc/sh+RQl+Q==}
@@ -11934,8 +12737,19 @@ packages:
dependencies:
icss-utils: 5.1.0([email protected])
postcss: 8.4.35
- postcss-selector-parser: 6.0.15
+ postcss-selector-parser: 6.0.13
postcss-value-parser: 4.2.0
+ dev: false
+
+ resolution: {integrity: sha512-hncihwFA2yPath8oZ15PZqvWGkWf+XUfQgUGamS4LqoP1anQLOsOJw0vr7J7IwLpoY9fatA2qiGUGmuZL0Iqlg==}
+ engines: {node: ^10 || ^12 || >= 14}
+ peerDependencies:
+ postcss: ^8.1.0
+ dependencies:
+ postcss: 8.4.32
+ postcss-selector-parser: 6.0.13
+ dev: true
resolution: {integrity: sha512-uZgqzdTleelWjzJY+Fhti6F3C9iF1JR/dODLs/JDefozYcKTBCdD8BIl6nNPbTbcLnGrk56hzwZC2DaGNvYjzA==}
@@ -11944,7 +12758,18 @@ packages:
postcss: ^8.1.0
dependencies:
postcss: 8.4.35
- postcss-selector-parser: 6.0.15
+ postcss-selector-parser: 6.0.13
+ dev: false
+
+ resolution: {integrity: sha512-RDxHkAiEGI78gS2ofyvCsu7iycRv7oqw5xMWn9iMoR0N/7mf9D50ecQqUo5BZ9Zh2vH4bCUR/ktCqbB9m8vJjQ==}
+ engines: {node: ^10 || ^12 || >= 14}
+ peerDependencies:
+ postcss: ^8.1.0
+ dependencies:
+ icss-utils: 5.1.0([email protected])
+ postcss: 8.4.32
+ dev: true
resolution: {integrity: sha512-RDxHkAiEGI78gS2ofyvCsu7iycRv7oqw5xMWn9iMoR0N/7mf9D50ecQqUo5BZ9Zh2vH4bCUR/ktCqbB9m8vJjQ==}
@@ -11954,33 +12779,60 @@ packages:
dependencies:
icss-utils: 5.1.0([email protected])
postcss: 8.4.35
+ dev: false
resolution: {integrity: sha512-7DGfnlyi/ju82BRzTIjWS5C4Tafmzl3R79YP/PASiocj+aa6yYphHhhKUOEoXQToId5rgyFgJ88+ccOUydjBXQ==}
peerDependencies:
postcss: ^8.0.0
dependencies:
generic-names: 4.0.0
- icss-utils: 5.1.0([email protected])
+ icss-utils: 5.1.0([email protected])
lodash.camelcase: 4.3.0
- postcss: 8.4.35
- postcss-modules-extract-imports: 3.0.0([email protected])
- postcss-modules-local-by-default: 4.0.4([email protected])
- postcss-modules-scope: 3.1.1([email protected])
- postcss-modules-values: 4.0.0([email protected])
+ postcss: 8.4.32
+ postcss-modules-extract-imports: 3.0.0([email protected])
+ postcss-modules-local-by-default: 4.0.3([email protected])
+ postcss-modules-scope: 3.0.0([email protected])
+ postcss-modules-values: 4.0.0([email protected])
string-hash: 1.1.3
dev: true
+ resolution: {integrity: sha512-EaV1Gl4mUEV4ddhDnv/xtj7sxwrwxdetHdWUGnT4VJQf+4d05v6lHYZr8N573k5Z0BViss7BDhfWtKS3+sfAqQ==}
+ engines: {node: '>=4'}
+ dependencies:
+ cssesc: 3.0.0
+ util-deprecate: 1.0.2
+
resolution: {integrity: sha512-rEYkQOMUCEMhsKbK66tbEU9QVIxbhN18YiniAwA7XQYTVBqrBy+P2p5JcdqsHgKM2zWylp8d7J6eszocfds5Sw==}
engines: {node: '>=4'}
dependencies:
cssesc: 3.0.0
util-deprecate: 1.0.2
+ dev: true
resolution: {integrity: sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==}
+ resolution: {integrity: sha512-D/kj5JNu6oo2EIy+XL/26JEDTlIbB8hw85G8StOE6L74RQAVVP5rej6wxCNqyMbR4RkPfqvezVbPw81Ngd6Kcw==}
+ engines: {node: ^10 || ^12 || >=14}
+ dependencies:
+ nanoid: 3.3.7
+ picocolors: 1.0.0
+ source-map-js: 1.0.2
+ dev: true
+
+ resolution: {integrity: sha512-Kkpbhhdjw2qQs2O2DGX+8m5OVqEcbB9HRBvuYM9pgrjEFUg30A9LmXNlTAUj4S9kgtGyrMbTzVjH7E+s5Re2yg==}
+ engines: {node: ^10 || ^12 || >=14}
+ dependencies:
+ nanoid: 3.3.7
+ picocolors: 1.0.0
+ source-map-js: 1.0.2
+ dev: true
+
resolution: {integrity: sha512-u5U8qYpBCpN13BsiEB0CbR1Hhh4Gc0zLFuedrHJKMctHCHAGrMdG0PRM/KErzAL3CU6/eckEtmHNB3x6e3c0vA==}
engines: {node: ^10 || ^12 || >=14}
@@ -12008,8 +12860,8 @@ packages:
fast-diff: 1.3.0
dev: true
- resolution: {integrity: sha512-3/GWa9aOC0YeD7LUfvOG2NiDyhOWRvt1k+rcKhOuYnMY24iiCphgneUfJDyFXd6rZCAnuLBv6UeAULtrhT/F4A==}
+ resolution: {integrity: sha512-FWu1oLHKCrtpO1ypU6J0SbK2d9Ckwysq6bHj/uaCP26DxrPpppCLQRGVuqAxSTvhF00AcvDRyYrLNW7ocBhFFQ==}
engines: {node: '>=14'}
hasBin: true
@@ -12054,10 +12906,10 @@ packages:
engines: {node: '>= 0.4'}
dependencies:
array.prototype.map: 1.0.6
- call-bind: 1.0.7
+ call-bind: 1.0.5
define-properties: 1.2.1
- es-abstract: 1.22.4
- get-intrinsic: 1.2.4
+ es-abstract: 1.22.3
+ get-intrinsic: 1.2.2
iterate-value: 1.0.2
dev: true
@@ -12181,14 +13033,14 @@ packages:
resolution: {integrity: sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==}
engines: {node: '>=0.6'}
dependencies:
- side-channel: 1.0.5
+ side-channel: 1.0.4
dev: false
resolution: {integrity: sha512-tDNIz22aBzCDxLtVH++VnTfzxlfeK5CbqohpSqpJgj1Wg/cQbStNAz3NuqCs5vV+pjBsK4x4pN9HlVh7rcYRiA==}
engines: {node: '>=0.6'}
dependencies:
- side-channel: 1.0.5
+ side-channel: 1.0.4
resolution: {integrity: sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ==}
@@ -12234,7 +13086,7 @@ packages:
dependencies:
'@babel/runtime': 7.23.9
'@rc-component/portal': 1.1.2([email protected])([email protected])
- classnames: 2.5.1
+ classnames: 2.3.2
react: 18.2.0
@@ -12249,7 +13101,7 @@ packages:
dependencies:
'@babel/runtime': 7.23.9
'@rc-component/trigger': 2.0.0([email protected])([email protected])
- classnames: 2.5.1
+ classnames: 2.3.2
react: 18.2.0
react-dom: 18.2.0([email protected])
@@ -12261,9 +13113,9 @@ packages:
react: '>=16.9.0'
react-dom: '>=16.9.0'
dependencies:
- '@babel/runtime': 7.23.9
+ '@babel/runtime': 7.23.4
'@rc-component/mini-decimal': 1.1.0
- classnames: 2.5.1
+ classnames: 2.3.2
react: 18.2.0
@@ -12277,7 +13129,7 @@ packages:
react-dom: '>=16.0.0'
dependencies:
'@babel/runtime': 7.23.9
- classnames: 2.5.1
+ classnames: 2.3.2
react: 18.2.0
react-dom: 18.2.0([email protected])
@@ -12291,7 +13143,7 @@ packages:
dependencies:
'@babel/runtime': 7.23.9
'@rc-component/trigger': 2.0.0([email protected])([email protected])
- classnames: 2.5.1
+ classnames: 2.3.2
@@ -12306,7 +13158,7 @@ packages:
react-dom: '>=16.9.0'
dependencies:
'@babel/runtime': 7.23.9
- classnames: 2.5.1
+ classnames: 2.3.2
react: 18.2.0
react-dom: 18.2.0([email protected])
@@ -12320,7 +13172,7 @@ packages:
react-dom: '>=16.9.0'
dependencies:
'@babel/runtime': 7.23.9
- classnames: 2.5.1
+ classnames: 2.3.2
react: 18.2.0
@@ -12334,7 +13186,7 @@ packages:
react-dom: '>=16.9.0'
dependencies:
'@babel/runtime': 7.23.9
- classnames: 2.5.1
+ classnames: 2.3.2
rc-resize-observer: 1.4.0([email protected])([email protected])
react: 18.2.0
@@ -12363,7 +13215,7 @@ packages:
dependencies:
'@babel/runtime': 7.23.9
'@rc-component/trigger': 2.0.0([email protected])([email protected])
- classnames: 2.5.1
+ classnames: 2.3.2
dayjs: 1.11.10
rc-resize-observer: 1.4.0([email protected])([email protected])
@@ -12379,7 +13231,7 @@ packages:
react-dom: '>=16.9.0'
dependencies:
'@babel/runtime': 7.23.9
- classnames: 2.5.1
+ classnames: 2.3.2
react: 18.2.0
react-dom: 18.2.0([email protected])
@@ -12393,7 +13245,7 @@ packages:
react-dom: '>=16.0.0'
dependencies:
'@babel/runtime': 7.23.9
- classnames: 2.5.1
+ classnames: 2.3.2
react: 18.2.0
@@ -12409,11 +13261,11 @@ packages:
dependencies:
'@babel/runtime': 7.23.9
'@rc-component/trigger': 2.0.0([email protected])([email protected])
- classnames: 2.5.1
+ classnames: 2.3.2
- rc-virtual-list: 3.11.4([email protected])([email protected])
+ rc-virtual-list: 3.11.3([email protected])([email protected])
react: 18.2.0
react-dom: 18.2.0([email protected])
dev: false
@@ -12426,7 +13278,7 @@ packages:
dependencies:
'@babel/runtime': 7.23.9
'@rc-component/trigger': 2.0.0([email protected])([email protected])
- classnames: 2.5.1
+ classnames: 2.3.2
react: 18.2.0
react-dom: 18.2.0([email protected])
dev: false
@@ -12443,15 +13295,15 @@ packages:
react-is: 18.2.0
dev: false
- resolution: {integrity: sha512-NbBi0fvyIu26gP69nQBiWgUMTPX3mr4FcuBQiVqagU0BnuX8WQkiivnMs105JROeuUIFczLrlgUhLQwTWV1XDA==}
+ resolution: {integrity: sha512-tu5UtrMk/AXonHwHxUogdXAWynaXsrx1i6dsgg+lOo/KJSF8oBAcprh1z5J3xgnPJD5hXxTL58F8s8onokdt0Q==}
engines: {node: '>=8.x'}
peerDependencies:
- react: '>=16.9.0'
- react-dom: '>=16.9.0'
+ react: '*'
+ react-dom: '*'
dependencies:
'@babel/runtime': 7.23.9
- classnames: 2.5.1
+ classnames: 2.3.2
rc-resize-observer: 1.4.0([email protected])([email protected])
react: 18.2.0
@@ -12570,15 +13422,15 @@ packages:
typescript: 5.4.3
dev: false
- resolution: {integrity: sha512-i8aF1nyKInZnANZ4uZrH49qn1paRgBZ7wZiCNBMnenlPzEv0mRl+ShpTVEI6wZNl8sSc79xZkivtgLKQArcanQ==}
+ resolution: {integrity: sha512-rCz0HBIT0LWbIM+///LfRrJoTKftIzzwsYDf0ns5KwaEjejMHQRtphcns+IXFHDNY9pnz6G8l/JbbI6pD4EAIA==}
engines: {node: '>=16.14.0'}
dependencies:
- '@babel/core': 7.23.9
- '@babel/traverse': 7.23.9
- '@babel/types': 7.23.9
+ '@babel/core': 7.24.0
+ '@babel/traverse': 7.24.0
+ '@babel/types': 7.24.0
'@types/babel__core': 7.20.5
- '@types/babel__traverse': 7.20.5
+ '@types/babel__traverse': 7.20.4
'@types/doctrine': 0.0.9
'@types/resolve': 1.20.6
doctrine: 3.0.0
@@ -12631,6 +13483,22 @@ packages:
react: 18.2.0
dev: true
+ resolution: {integrity: sha512-7+Lg8E8O8HfOH5FrY80GCIR1SHTn2QnAYKh27/5spoz+OHhMmEhU/14gIkRzJOtympDPaXcVRX/nT1FjmeOUmQ==}
+ peerDependencies:
+ react: '>= 16.3.0'
+ react-dom: '>= 16.3.0'
+ dependencies:
+ clsx: 2.1.0
+ fast-equals: 4.0.3
+ prop-types: 15.8.1
+ react: 18.2.0
+ react-dom: 18.2.0([email protected])
+ react-draggable: 4.4.6([email protected])([email protected])
+ react-resizable: 3.0.5([email protected])([email protected])
+ resize-observer-polyfill: 1.5.1
+ dev: false
+
resolution: {integrity: sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==}
@@ -12648,7 +13516,7 @@ packages:
peerDependencies:
react: 16 - 18
dependencies:
- classnames: 2.5.1
+ classnames: 2.3.2
immutability-helper: 3.1.1
lodash: 4.17.21
prop-types: 15.8.1
@@ -12671,13 +13539,25 @@ packages:
resolution: {integrity: sha512-wViHqhAd8OHeLS/IRMJjTSDHF3U9eWi62F/MledQGPdJGDhodXJ9PBLNGr6WWL7qlH12Mt3TyTpbS+hGXMjCzQ==}
engines: {node: '>=0.10.0'}
+ resolution: {integrity: sha512-vKpeHhI5OZvYn82kXOs1bC8aOXktGU5AmKAgaZS4F5JPburCtbmDPqE7Pzp+1kN4+Wb81LlF33VpGwWwtXem+w==}
+ peerDependencies:
+ react: '>= 16.3'
+ dependencies:
+ prop-types: 15.8.1
+ react: 18.2.0
+ react-draggable: 4.4.6([email protected])([email protected])
+ transitivePeerDependencies:
+ - react-dom
+ dev: false
+
resolution: {integrity: sha512-pZcd1MCJoiKiBR2NRxeCRg13uCXbydPnmB4EOeRrY7480qNWO8IIgQG6zlDkm6uRMsURXPuKq0GWtiM59a5Q6g==}
peerDependencies:
react: '>=16.6.0'
react-dom: '>=16.6.0'
dependencies:
- '@babel/runtime': 7.23.9
+ '@babel/runtime': 7.23.4
dom-helpers: 5.2.1
loose-envify: 1.4.0
prop-types: 15.8.1
@@ -12697,7 +13577,7 @@ packages:
dependencies:
find-up: 6.3.0
read-pkg: 8.1.0
- type-fest: 4.10.2
+ type-fest: 4.10.3
dev: true
@@ -12724,7 +13604,7 @@ packages:
'@types/normalize-package-data': 2.4.4
normalize-package-data: 6.0.0
parse-json: 7.1.1
- type-fest: 4.10.2
+ type-fest: 4.10.3
dev: true
@@ -12784,14 +13664,13 @@ packages:
'@babel/runtime': 7.23.9
dev: false
- resolution: {integrity: sha512-62wgfC8dJWrmxv44CA36pLDnP6KKl3Vhxb7PL+8+qrrFMMoJij4vgiMP8zV4O8+CBMXY1mHxI5fITGHXFHVmQQ==}
+ resolution: {integrity: sha512-ECkTw8TmJwW60lOTR+ZkODISW6RQ8+2CL3COqtiJKLd6MmB45hN51HprHFziKLGkAuTGQhBb91V8cy+KHlaCjw==}
engines: {node: '>= 0.4'}
dependencies:
call-bind: 1.0.7
define-properties: 1.2.1
- es-abstract: 1.22.4
- es-errors: 1.3.0
+ es-abstract: 1.22.5
get-intrinsic: 1.2.4
globalthis: 1.0.3
which-builtin-type: 1.1.3
@@ -12808,8 +13687,8 @@ packages:
resolution: {integrity: sha512-zrceR/XhGYU/d/opr2EKO7aRHUeiBI8qjtfHqADTwZd6Szfy16la6kqD0MIUs5z5hx6AaKa+PixpPrR289+I0A==}
dev: false
- resolution: {integrity: sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==}
+ resolution: {integrity: sha512-srw17NI0TUWHuGa5CFGGmhfNIeja30WMBfbslPNhf6JrqQlLN5gcrvig1oqPxiVaXb0oW0XRKtH6Nngs5lKCIA==}
resolution: {integrity: sha512-hfMp2BoF0qOk3uc5V20ALGDS2ddjQaLrdl7xrGXvAIow7qeWRM2VA2HuCHkUKk9slq3VwEwLNK3DFBqDfPGYtg==}
@@ -12829,6 +13708,14 @@ packages:
tslib: 2.6.2
dev: false
+ resolution: {integrity: sha512-sy6TXMN+hnP/wMy+ISxg3krXx7BAtWVO4UouuCN/ziM9UEne0euamVNafDfvC83bRNr95y0V5iijeDQFUNpvrg==}
+ engines: {node: '>= 0.4'}
+ dependencies:
+ call-bind: 1.0.5
+ define-properties: 1.2.1
+ set-function-name: 2.0.1
+
resolution: {integrity: sha512-NcDiDkTLuPR+++OCKB0nWafEmhg/Da8aUPLPMQbK+bxKKCm1/S5he+AqYa4PlMCVBalb4/yxIRub6qkEx5yJbw==}
engines: {node: '>= 0.4'}
@@ -12836,7 +13723,8 @@ packages:
call-bind: 1.0.7
define-properties: 1.2.1
es-errors: 1.3.0
- set-function-name: 2.0.2
+ set-function-name: 2.0.1
+ dev: true
resolution: {integrity: sha512-RAM5FlZz+Lhmo7db9L298p2vHP5ZywrVXmVXpmAD9GuL5MPH6t9ROw1iA/wfHkQ76Qe7AaPF0nGuim96/IrQMQ==}
@@ -12996,7 +13884,6 @@ packages:
dependencies:
is-core-module: 2.13.1
path-parse: 1.0.7
- dev: false
resolution: {integrity: sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==}
@@ -13046,8 +13933,8 @@ packages:
resolution: {integrity: sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==}
engines: {iojs: '>=1.0.0', node: '>=0.10.0'}
- resolution: {integrity: sha512-r5a3l5HzYlIC68TpmYKlxWjmOP6wiPJ1vWv2HeLhNsRZMrCkxeqxiHlQ21oXmQ4F3SiryXBHhAD7JZqvOJjFmg==}
+ resolution: {integrity: sha512-V2hovdzFbOi77/WajaSMXk2OLm+xNIeQdMMuB7icj7bk6zi2F8GGAxigcnDFpJHbNyNcgyJDiP+8nOrY5cZGrA==}
dev: true
@@ -13063,50 +13950,48 @@ packages:
dependencies:
glob: 7.2.3
- resolution: {integrity: sha512-wz66wn4t1OHIJw3+XU7mJJQV/2NAfw5OAk6G6Hoo3zcvz/XOfQ52Vgi+AN4Uxoxi0KBBwk2g8zPrTDA4btSB/Q==}
+ resolution: {integrity: sha512-hFi+fU132IvJ2ZuihN56dwgpltpmLZHZWsx27rMCTZ2sYwrqlgL5sECGy1eeV2lAihD8EzChBVVhsXci0wD4Tg==}
engines: {node: '>=18.0.0', npm: '>=8.0.0'}
hasBin: true
dependencies:
'@types/estree': 1.0.5
optionalDependencies:
- '@rollup/rollup-android-arm-eabi': 4.12.0
- '@rollup/rollup-android-arm64': 4.12.0
- '@rollup/rollup-darwin-arm64': 4.12.0
- '@rollup/rollup-darwin-x64': 4.12.0
- '@rollup/rollup-linux-arm-gnueabihf': 4.12.0
- '@rollup/rollup-linux-arm64-gnu': 4.12.0
- '@rollup/rollup-linux-arm64-musl': 4.12.0
- '@rollup/rollup-linux-riscv64-gnu': 4.12.0
- '@rollup/rollup-linux-x64-gnu': 4.12.0
- '@rollup/rollup-linux-x64-musl': 4.12.0
- '@rollup/rollup-win32-arm64-msvc': 4.12.0
- '@rollup/rollup-win32-ia32-msvc': 4.12.0
- '@rollup/rollup-win32-x64-msvc': 4.12.0
+ '@rollup/rollup-android-arm-eabi': 4.13.1
+ '@rollup/rollup-android-arm64': 4.13.1
+ '@rollup/rollup-darwin-arm64': 4.13.1
+ '@rollup/rollup-darwin-x64': 4.13.1
+ '@rollup/rollup-linux-arm-gnueabihf': 4.13.1
+ '@rollup/rollup-linux-arm64-gnu': 4.13.1
+ '@rollup/rollup-linux-arm64-musl': 4.13.1
+ '@rollup/rollup-linux-riscv64-gnu': 4.13.1
+ '@rollup/rollup-linux-s390x-gnu': 4.13.1
+ '@rollup/rollup-linux-x64-gnu': 4.13.1
+ '@rollup/rollup-linux-x64-musl': 4.13.1
+ '@rollup/rollup-win32-arm64-msvc': 4.13.1
+ '@rollup/rollup-win32-ia32-msvc': 4.13.1
+ '@rollup/rollup-win32-x64-msvc': 4.13.1
fsevents: 2.3.3
- dev: true
- resolution: {integrity: sha512-3YegKemjoQnYKmsBlOHfMLVPPA5xLkQ8MHLLSw/fBrFaVkEayL51DilPpNNLq1exr98F2B1TzrV0FUlN3gWRPg==}
+ resolution: {integrity: sha512-CRK1uoROBfkcqrZKyaFcqCcZWNsvJ6yVYZkqTlRocZhO2s5yER6Z3f/QaYtO8RGyloPnmhwgzuPQpNGeK210xQ==}
engines: {node: '>=18.0.0', npm: '>=8.0.0'}
hasBin: true
- dependencies:
- '@types/estree': 1.0.5
optionalDependencies:
- '@rollup/rollup-android-arm-eabi': 4.13.0
- '@rollup/rollup-android-arm64': 4.13.0
- '@rollup/rollup-darwin-arm64': 4.13.0
- '@rollup/rollup-darwin-x64': 4.13.0
- '@rollup/rollup-linux-arm-gnueabihf': 4.13.0
- '@rollup/rollup-linux-arm64-gnu': 4.13.0
- '@rollup/rollup-linux-arm64-musl': 4.13.0
- '@rollup/rollup-linux-riscv64-gnu': 4.13.0
- '@rollup/rollup-linux-x64-gnu': 4.13.0
- '@rollup/rollup-linux-x64-musl': 4.13.0
- '@rollup/rollup-win32-arm64-msvc': 4.13.0
- '@rollup/rollup-win32-ia32-msvc': 4.13.0
- '@rollup/rollup-win32-x64-msvc': 4.13.0
+ '@rollup/rollup-android-arm-eabi': 4.5.2
+ '@rollup/rollup-android-arm64': 4.5.2
+ '@rollup/rollup-darwin-arm64': 4.5.2
+ '@rollup/rollup-darwin-x64': 4.5.2
+ '@rollup/rollup-linux-arm-gnueabihf': 4.5.2
+ '@rollup/rollup-linux-arm64-gnu': 4.5.2
+ '@rollup/rollup-linux-arm64-musl': 4.5.2
+ '@rollup/rollup-linux-x64-gnu': 4.5.2
+ '@rollup/rollup-linux-x64-musl': 4.5.2
+ '@rollup/rollup-win32-arm64-msvc': 4.5.2
+ '@rollup/rollup-win32-ia32-msvc': 4.5.2
+ '@rollup/rollup-win32-x64-msvc': 4.5.2
fsevents: 2.3.3
+ dev: true
resolution: {integrity: sha512-APM0Gt1KoXBz0iIkkdB/kfvGOwC4UuJFeG/c+yV7wSc7q96cG/kJ0HiYCnzivD9SB53cLV1MlHFNfOuPaadYSw==}
@@ -13132,8 +14017,18 @@ packages:
dependencies:
tslib: 2.6.2
- resolution: {integrity: sha512-ZdQ0Jeb9Ofti4hbt5lX3T2JcAamT9hfzYU1MNB+z/jaEbB6wfFfPIR/zEORmZqobkCCJhSjodobH6WHNmJ97dg==}
+ resolution: {integrity: sha512-6XbUAseYE2KtOuGueyeobCySj9L4+66Tn6KQMOPQJrAJEowYKW/YR/MGJZl7FdydUdaFu4LYyDZjxf4/Nmo23Q==}
+ engines: {node: '>=0.4'}
+ dependencies:
+ call-bind: 1.0.5
+ get-intrinsic: 1.2.2
+ has-symbols: 1.0.3
+ isarray: 2.0.5
+ dev: true
+
+ resolution: {integrity: sha512-vj6RsCsWBCf19jIeHEfkRMw8DPiBb+DMXklQ/1SGDHOMlHdPUkZXFQ2YdplS23zESTijAcurb1aSgJA3AgMu1Q==}
engines: {node: '>=0.4'}
dependencies:
call-bind: 1.0.7
@@ -13149,6 +14044,14 @@ packages:
resolution: {integrity: sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==}
+ resolution: {integrity: sha512-JBUUzyOgEwXQY1NuPtvcj/qcBDbDmEvWufhlnXZIm75DEHp+afM1r1ujJpJsV/gSM4t59tpDyPi1sd6ZaPFfsA==}
+ dependencies:
+ call-bind: 1.0.5
+ get-intrinsic: 1.2.2
+ is-regex: 1.1.4
+ dev: true
+
resolution: {integrity: sha512-CdASjNJPvRa7roO6Ra/gLYBTzYzzPyyBXxIMdGW3USQLyjWEls2RgW5UBTXaQVp+OrpeCK3bLem8smtmheoRuw==}
engines: {node: '>= 0.4'}
@@ -13161,13 +14064,13 @@ packages:
resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==}
- resolution: {integrity: sha512-HKKIKf49Vkxlrav3F/w6qRuPcmImGVbIXJ2I3Kg0VMA+3Bav+8yE9G5XmP5lMj6nl4OlqbPftGAscNaNu28b8w==}
+ resolution: {integrity: sha512-qg2+UCJibLr2LCVOt3OlPhr/dqVHWOa9XtZf2OjbLs/T4VPSJ00udtgJxH3neXZm+QqX8B+3cU7RaLqp1iVfcQ==}
engines: {node: '>=14.0.0'}
hasBin: true
dependencies:
- chokidar: 3.6.0
- immutable: 4.3.5
+ chokidar: 3.5.3
+ immutable: 4.3.4
source-map-js: 1.0.2
dev: true
@@ -13228,7 +14131,6 @@ packages:
hasBin: true
dependencies:
lru-cache: 6.0.0
- dev: false
resolution: {integrity: sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==}
@@ -13276,8 +14178,17 @@ packages:
- supports-color
dev: false
- resolution: {integrity: sha512-j4t6ccc+VsKwYHso+kElc5neZpjtq9EnRICFZtWyBsLojhmeF/ZBd/elqm22WJh/BziDe/SBiOeAt0m2mfLD0g==}
+ resolution: {integrity: sha512-VoaqjbBJKiWtg4yRcKBQ7g7wnGnLV3M8oLvVWwOk2PdYY6PEFegR1vezXR0tw6fZGF9csVakIRjrJiy2veSBFQ==}
+ engines: {node: '>= 0.4'}
+ dependencies:
+ define-data-property: 1.1.1
+ get-intrinsic: 1.2.2
+ gopd: 1.0.1
+ has-property-descriptors: 1.0.1
+
+ resolution: {integrity: sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==}
engines: {node: '>= 0.4'}
dependencies:
define-data-property: 1.1.4
@@ -13287,14 +14198,13 @@ packages:
gopd: 1.0.1
has-property-descriptors: 1.0.2
- resolution: {integrity: sha512-7PGFlmtwsEADb0WYyvCMa1t+yke6daIG4Wirafur5kcf+MhUnPms1UeR0CKQdTZD81yESwMHbtn+TR+dMviakQ==}
+ resolution: {integrity: sha512-tMNCiqYVkXIZgc2Hnoy2IvC/f8ezc5koaRFkCjrpWzGpCd3qbZXPzVy9MAZzK1ch/X0jvSkojys3oqJN0qCmdA==}
engines: {node: '>= 0.4'}
dependencies:
- define-data-property: 1.1.4
- es-errors: 1.3.0
+ define-data-property: 1.1.1
functions-have-names: 1.2.3
- has-property-descriptors: 1.0.2
+ has-property-descriptors: 1.0.1
resolution: {integrity: sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==}
@@ -13307,6 +14217,36 @@ packages:
kind-of: 6.0.3
dev: false
+ resolution: {integrity: sha512-WlYOPyyPDiiM07j/UO+E720ju6gtNtHjEGg5vovUk1Lgxyjm2LFO+37Nt/UI3MMh2l6hxTWQWi7qk3cXJTutcQ==}
+ engines: {libvips: '>=8.15.1', node: ^18.17.0 || ^20.3.0 || >=21.0.0}
+ requiresBuild: true
+ dependencies:
+ color: 4.2.3
+ detect-libc: 2.0.2
+ semver: 7.6.0
+ optionalDependencies:
+ '@img/sharp-darwin-arm64': 0.33.2
+ '@img/sharp-darwin-x64': 0.33.2
+ '@img/sharp-libvips-darwin-arm64': 1.0.1
+ '@img/sharp-libvips-darwin-x64': 1.0.1
+ '@img/sharp-libvips-linux-arm': 1.0.1
+ '@img/sharp-libvips-linux-arm64': 1.0.1
+ '@img/sharp-libvips-linux-s390x': 1.0.1
+ '@img/sharp-libvips-linux-x64': 1.0.1
+ '@img/sharp-libvips-linuxmusl-arm64': 1.0.1
+ '@img/sharp-libvips-linuxmusl-x64': 1.0.1
+ '@img/sharp-linux-arm': 0.33.2
+ '@img/sharp-linux-arm64': 0.33.2
+ '@img/sharp-linux-s390x': 0.33.2
+ '@img/sharp-linux-x64': 0.33.2
+ '@img/sharp-linuxmusl-arm64': 0.33.2
+ '@img/sharp-linuxmusl-x64': 0.33.2
+ '@img/sharp-wasm32': 0.33.2
+ '@img/sharp-win32-ia32': 0.33.2
+ '@img/sharp-win32-x64': 0.33.2
+ dev: true
+
resolution: {integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==}
engines: {node: '>=8'}
@@ -13327,13 +14267,11 @@ packages:
rechoir: 0.6.2
dev: true
- resolution: {integrity: sha512-QcgiIWV4WV7qWExbN5llt6frQB/lBven9pqliLXfGPB+K9ZYXxDozp0wLkHS24kWCm+6YXH/f0HhnObZnZOBnQ==}
- engines: {node: '>= 0.4'}
+ resolution: {integrity: sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==}
dependencies:
- call-bind: 1.0.7
- es-errors: 1.3.0
- get-intrinsic: 1.2.4
+ call-bind: 1.0.5
+ get-intrinsic: 1.2.2
object-inspect: 1.13.1
@@ -13346,6 +14284,12 @@ packages:
resolution: {integrity: sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==}
engines: {node: '>=14'}
+ resolution: {integrity: sha512-JA//kQgZtbuY83m+xT+tXJkmJncGMTFT+C+g2h2R9uxkYIrE2yy9sgmcLhCnw57/WSD+Eh3J97FPEDFnbXnDUg==}
+ dependencies:
+ is-arrayish: 0.3.2
+ dev: true
+
resolution: {integrity: sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==}
@@ -13385,13 +14329,13 @@ packages:
dependencies:
agent-base: 7.1.0
debug: 4.3.4
- socks: 2.7.3
+ socks: 2.8.1
transitivePeerDependencies:
- supports-color
dev: true
- resolution: {integrity: sha512-vfuYK48HXCTFD03G/1/zkIls3Ebr2YNa4qU9gHDZdblHLiqhJrJGkY3+0Nx0JpN9qBhJbVObc1CNciT1bIZJxw==}
+ resolution: {integrity: sha512-B6w7tkwNid7ToxjZ08rQMT8M9BJAf8DKx8Ft4NivzH0zBUfd6jldGcisJn/RLgxcX3FPNDdNQCUEMMT79b+oCQ==}
engines: {node: '>= 10.0.0', npm: '>= 3.0.0'}
dependencies:
ip-address: 9.0.5
@@ -13417,6 +14361,11 @@ packages:
resolution: {integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==}
engines: {node: '>=0.10.0'}
+ resolution: {integrity: sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==}
+ deprecated: Please use @jridgewell/sourcemap-codec instead
+ dev: true
+
resolution: {integrity: sha512-PEGlAwrG8yXGXRjW32fGbg66JAlOAwbObuqVoJpv/mRgoWDQfgH1wDPvtzWyUSNAXBGSk8h755YDbbcEy3SH2Q==}
dev: false
@@ -13425,26 +14374,26 @@ packages:
resolution: {integrity: sha512-kN9dJbvnySHULIluDHy32WHRUu3Og7B9sbY7tsFLctQkIqnMh3hErYgdMjTYuqmcXX+lK5T1lnUt3G7zNswmZA==}
dependencies:
spdx-expression-parse: 3.0.1
- spdx-license-ids: 3.0.17
+ spdx-license-ids: 3.0.16
- resolution: {integrity: sha512-PiU42r+xO4UbUS1buo3LPJkjlO7430Xn5SVAhdpzzsPHsjbYVflnnFdATgabnLude+Cqu25p6N+g2lw/PFsa4w==}
+ resolution: {integrity: sha512-/tTrYOC7PPI1nUAgx34hUpqXuyJG+DTHJTnIULG4rDygi4xu/tfgmq1e1cIRwRzwZgo4NLySi+ricLkZkw4i5A==}
resolution: {integrity: sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==}
dependencies:
- spdx-exceptions: 2.5.0
- spdx-license-ids: 3.0.17
+ spdx-exceptions: 2.3.0
+ spdx-license-ids: 3.0.16
resolution: {integrity: sha512-Clya5JIij/7C6bRR22+tnGXbc4VKlibKSVj2iHvVeX5iMW7s1SIQlqu699JkODJJIhh/pUu8L0/VLh8xflD+LQ==}
dependencies:
- spdx-exceptions: 2.5.0
- spdx-license-ids: 3.0.17
+ spdx-exceptions: 2.3.0
+ spdx-license-ids: 3.0.16
dev: true
- resolution: {integrity: sha512-sh8PWc/ftMqAAdFiBu6Fy6JUOYjqDJBJvIhpfDMyHrr0Rbp5liZqd4TjtQ/RgfLjKFZb+LMx5hpml5qOWy0qvg==}
+ resolution: {integrity: sha512-eWN+LnM3GR6gPu35WxNgbGl8rmY1AEmoMDvL/QD6zYmPWgywxWqJWNdLGT+ke8dKNWrcYgYjPpG5gbTfghP8rw==}
resolution: {integrity: sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==}
@@ -13453,7 +14402,6 @@ packages:
resolution: {integrity: sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==}
- dev: false
resolution: {integrity: sha512-Oo+0REFV59/rz3gfJNKQiBlwfHaSESl1pcGyABQsnnIfWOFt6JNj5gCog2U6MLZ//IGYD+nA8nI+mTShREReaA==}
@@ -13467,8 +14415,8 @@ packages:
engines: {node: '>= 0.8'}
dev: false
- resolution: {integrity: sha512-JPbdCEQLj1w5GilpiHAx3qJvFndqybBysA3qUOnznweH4QbNYUsW/ea8QzSrnh0vNsezMMw5bcVool8lM0gwzg==}
+ resolution: {integrity: sha512-JGUEaALvL0Mf6JCfYnJOTcobY+Nc7sG/TemDRBqCA0wEr4DER7zDchaaixTlmOxAjG1uRJmX82EQcxwTQTkqVA==}
resolution: {integrity: sha512-UhDfHmA92YAlNnCfhmq0VeNL5bDbiZGg7sZ2IvPsXubGkiNa9EC+tUTsjBRsYUAz87btI6/1wf4XoVvQ3uRnmQ==}
@@ -13479,13 +14427,13 @@ packages:
resolution: {integrity: sha512-iCGQj+0l0HOdZ2AEeBADlsRC+vsnDsZsbdSiH1yNSjcfKM7fdpCMfqAL/dwF5BLiw/XhRft/Wax6zQbhq2BcjQ==}
engines: {node: '>= 0.4'}
dependencies:
- internal-slot: 1.0.7
+ internal-slot: 1.0.6
- resolution: {integrity: sha512-4QcZ+yx7nzEFiV4BMLnr/pRa5HYzNITX2ri0Zh6sT9EyQHbBHacC6YigllUPU9X3D0f/22QCgfokpKs52YRrUg==}
+ resolution: {integrity: sha512-siT1RiqlfQnGqgT/YzXVUNsom9S0H1OX+dpdGN1xkyYATo4I6sep5NmsRD/40s3IIOvlCq6akxkqG82urIZW1w==}
dev: false
resolution: {integrity: sha512-PEpxhAH+407KTcVDC7uUH4S26qtuBDC/JlZI3NqFYu0Tm2uCBf56On+13lK4iE3Iz8FORl4aSXo2RricJ/UhPQ==}
peerDependencies:
'@swc/core': ^1.2.152
@@ -13498,10 +14446,10 @@ packages:
optional: true
dependencies:
'@babel/runtime': 7.23.9
- '@swc/core': 1.4.4
+ '@swc/core': 1.4.2
deepmerge: 4.3.1
- swc-loader: 0.1.16(@swc/[email protected])([email protected])
- webpack: 5.90.3(@swc/[email protected])([email protected])
+ swc-loader: 0.1.16(@swc/[email protected])([email protected])
+ webpack: 5.90.3(@swc/[email protected])([email protected])
dev: false
@@ -13519,8 +14467,8 @@ packages:
- utf-8-validate
dev: false
- resolution: {integrity: sha512-76ORR0DO1o1hlKwTbi/DM3EXWGf3ZJYO8cXX5RJwnul2DEg2oyoZyjLNoQM8WsvZiFKCRfC1O0J7iCvie3RZmQ==}
+ resolution: {integrity: sha512-AiisoFqQ0vbGcZgQPY1cdP2I76glaVA/RauYR4G4thNFgkTqr90yXTo4LYX60Jl+sIlPNHHdGSwo01AvbKUSVQ==}
dev: false
@@ -13547,8 +14495,8 @@ packages:
emoji-regex: 9.2.2
strip-ansi: 7.1.0
- resolution: {integrity: sha512-SEIJCWiX7Kg4c129n48aDRwLbFb2LJmXXFrWBG4NGaRtMQ3myKPKbwrD1BKqQn74oCoNMBVrfDEr5M9YxCsrkw==}
+ resolution: {integrity: sha512-GPQHj7row82Hjo9hKZieKcHIhaAIKOJvFSIZXuCU9OASVZrMNUaZuz++SPVrBjnLsnk4k+z9f2EIypgxf2vNFw==}
engines: {node: '>=18'}
dependencies:
emoji-regex: 10.3.0
@@ -13561,38 +14509,38 @@ packages:
dependencies:
call-bind: 1.0.7
define-properties: 1.2.1
- es-abstract: 1.22.4
+ es-abstract: 1.22.5
get-intrinsic: 1.2.4
has-symbols: 1.0.3
internal-slot: 1.0.7
regexp.prototype.flags: 1.5.2
- set-function-name: 2.0.2
- side-channel: 1.0.5
+ set-function-name: 2.0.1
+ side-channel: 1.0.4
dev: true
resolution: {integrity: sha512-lfjY4HcixfQXOfaqCvcBuOIapyaroTXhbkfJN3gcB1OtyupngWK4sEET9Knd0cXd28kTUqu/kHoV4HKSJdnjiQ==}
engines: {node: '>= 0.4'}
dependencies:
- call-bind: 1.0.7
+ call-bind: 1.0.5
define-properties: 1.2.1
- es-abstract: 1.22.4
+ es-abstract: 1.22.3
dev: true
resolution: {integrity: sha512-Ni79DqeB72ZFq1uH/L6zJ+DKZTkOtPIHovb3YZHQViE+HDouuU4mBrLOLDn5Dde3RF8qw5qVETEjhu9locMLvA==}
dependencies:
- call-bind: 1.0.7
+ call-bind: 1.0.5
define-properties: 1.2.1
- es-abstract: 1.22.4
+ es-abstract: 1.22.3
dev: true
resolution: {integrity: sha512-NGhtDFu3jCEm7B4Fy0DpLewdJQOZcQ0rGbwQ/+stjnrp2i+rlKeCvos9hOIeCmqwratM47OBxY7uFZzjxHXmrg==}
dependencies:
- call-bind: 1.0.7
+ call-bind: 1.0.5
define-properties: 1.2.1
- es-abstract: 1.22.4
+ es-abstract: 1.22.3
dev: true
@@ -13653,6 +14601,12 @@ packages:
resolution: {integrity: sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==}
engines: {node: '>=8'}
+ resolution: {integrity: sha512-PugKzOsyXpArk0yWmUwqOZecSO0GH0bPoctLcqNDH9J04pVW3lflYE0ujElBGTloevcxF5MofAOZ7C5l2b+wLg==}
+ dependencies:
+ acorn: 8.11.3
+ dev: true
+
resolution: {integrity: sha512-f9vHgsCWBq2ugHAkGMiiYY+AYG0D/cbloKKg0nhaaaSNsujdGIpVXCNsrJpCKr5M0f4aI31mr13UjY6GAuXCKA==}
dependencies:
@@ -13664,7 +14618,7 @@ packages:
peerDependencies:
webpack: ^5.0.0
dependencies:
- webpack: 5.90.3(@swc/[email protected])([email protected])
+ webpack: 5.90.3(@swc/[email protected])([email protected])
dev: false
@@ -13690,25 +14644,25 @@ packages:
resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==}
engines: {node: '>= 0.4'}
resolution: {integrity: sha512-NKIm8aJjK/z/yfzk+v7YGwJMjBKaLaUs9ZKI2zoaIGKAjtkwjO92ZLI0fiTZuwzRqVLQl/29fBdSgFCBzquR0w==}
peerDependencies:
'@swc/core': ^1.2.147
webpack: '>=2'
dependencies:
- '@swc/core': 1.4.4
- webpack: 5.90.3(@swc/[email protected])([email protected])
+ '@swc/core': 1.4.2
+ webpack: 5.90.3(@swc/[email protected])([email protected])
dev: false
resolution: {integrity: sha512-9Zi9UP2YmDpgmQVbyOPJClY0dwf58JDyDMQ7uRc4krmc72twNI2fvlBWHLqVekBpPc7h5NJkGVT1zNDxFrqhvg==}
peerDependencies:
'@swc/core': ^1.2.147
webpack: '>=2'
dependencies:
- '@swc/core': 1.4.4
+ '@swc/core': 1.4.2
'@swc/counter': 0.1.3
- webpack: 5.90.3(@swc/[email protected])([email protected])
+ webpack: 5.90.3(@swc/[email protected])([email protected])
dev: false
@@ -13793,7 +14747,7 @@ packages:
type-fest: 0.16.0
unique-string: 2.0.0
resolution: {integrity: sha512-BKFPWlPDndPs+NGGCr1U59t0XScL5317Y0UReNrHaw9/FwhPENlq6bfgs+4yPfyP51vqC1bQ4rp1EfXW5ZSH9w==}
engines: {node: '>= 10.13.0'}
peerDependencies:
@@ -13810,13 +14764,13 @@ packages:
optional: true
dependencies:
'@jridgewell/trace-mapping': 0.3.25
- '@swc/core': 1.4.4
+ '@swc/core': 1.4.2
esbuild: 0.20.2
jest-worker: 27.5.1
schema-utils: 3.3.0
serialize-javascript: 6.0.2
terser: 5.28.1
- webpack: 5.90.3(@swc/[email protected])([email protected])
+ webpack: 5.90.3(@swc/[email protected])([email protected])
dev: false
@@ -13837,7 +14791,6 @@ packages:
'@istanbuljs/schema': 0.1.3
glob: 7.2.3
minimatch: 3.1.2
- dev: false
resolution: {integrity: sha512-te/NtwBwfiNRLf9Ijqx3T0nlqZiQ2XrrtBvu+cLL8ZRrGkO0NHTug8MYFKyoSrv/sHTaSKfilUkizV6XhxMJ3g==}
@@ -13865,15 +14818,20 @@ packages:
resolution: {integrity: sha512-+FbBPE1o9QAYvviau/qC5SE3caw21q3xkvWKBtja5vgqOWIHHJ3ioaq1VPfn/Szqctz2bU/oYeKd9/z5BL+PVg==}
- resolution: {integrity: sha512-N8hW3PG/3aOoZAN5V/NSAEDz0ZixDSSt5b/a05iqtpgfLWMSVuCo7w0k2vVvEjdrIoeGqZzweX2WlyioNIHchA==}
+ resolution: {integrity: sha512-65NKvSuAVDP/n4CqH+a9w2kTlLReS9vhsAP06MWx+/89nMinJyB2icyl58RIcqCmIggpojIGeuJGhjU1aGMBSg==}
+
+ resolution: {integrity: sha512-zBTCK0cCgRROxvs9c0CGK838sPkeokNGdQVUUwHAbynHFlmyJYj825f/oRs528HaIJ97lo0pLIlDUzwN+IorWg==}
+ engines: {node: '>=14.0.0'}
+ dev: true
resolution: {integrity: sha512-SUszKYe5wgsxnNOVlBYO6IC+8VGWdVGZWAqUxp3UErNBtptZvWbwyUOyzNL59zigz2rCA92QiL3wvG+JDSdJdQ==}
engines: {node: '>=14.0.0'}
- resolution: {integrity: sha512-KYad6Vy5VDWV4GH3fjpseMQ/XU2BhIYP7Vzd0LG44qRWm/Yt2WCOTicFdvmgo6gWaqooMQCawTtILVQJupKu7A==}
+ resolution: {integrity: sha512-d2eda04AN/cPOR89F7Xv5bK/jrQEhmcLFe6HFldoeO9AJtps+fqEnh486vnT/8y4bw38pSyxDcTCAq+Ks2aJTg==}
engines: {node: '>=14.0.0'}
@@ -13893,8 +14851,8 @@ packages:
dependencies:
is-number: 7.0.0
- resolution: {integrity: sha512-kE5wyCQJ40hqUaRVkyQ4z5+4juzYsv/eK+aqD97N62YH0TxFhzJvo22RUQQZdO3YnXAk42ZOfOpjVdy+Z0YokA==}
+ resolution: {integrity: sha512-5DWuSZXsqG894mkGb8ZsQt9myyQyVxE50AiGRZ0obV0BVUTVkaZmc9jbgpknaAAPUm4FIrzGkEseD6FuQJYJDQ==}
dev: false
@@ -13929,9 +14887,9 @@ packages:
punycode: 2.3.1
dev: true
- resolution: {integrity: sha512-RIYA36cJn2WiH9Hy77hdF9r7oEwxAtB/TS9/S4Qd90Ap4z5FSiin5zEiTL44OII1Y3IIlEvxwxFUVgrHSZ/UpA==}
- engines: {node: '>=16'}
+ resolution: {integrity: sha512-wNMeqtMz5NtwpT/UZGY5alT+VoKdSsOOP/kqHFcUW1P/VRhH2wJ48+DN2WwUliNbQ976ETwDL0Ifd2VVvgonvg==}
+ engines: {node: '>=16.13.0'}
peerDependencies:
typescript: '>=4.2.0'
dependencies:
@@ -14084,8 +15042,8 @@ packages:
engines: {node: '>=14.16'}
dev: true
- resolution: {integrity: sha512-anpAG63wSpdEbLwOqH8L84urkL6PiVIov3EMmgIhhThevh9aiMQov+6Btx0wldNcvm4wV+e2/Rt1QdDwKHFbHw==}
+ resolution: {integrity: sha512-JLXyjizi072smKGGcZiAJDCNweT8J+AuRxmPZ1aG7TERg4ijx9REl8CNhbr36RV4qXqL1gO1FF9HL8OkVmmrsA==}
engines: {node: '>=16'}
dev: true
@@ -14097,6 +15055,15 @@ packages:
mime-types: 2.1.35
dev: false
+ resolution: {integrity: sha512-Y8KTSIglk9OZEr8zywiIHG/kmQ7KWyjseXs1CbSo8vC42w7hg2HgYTxSWwP0+is7bWDc1H+Fo026CpHFwm8tkw==}
+ engines: {node: '>= 0.4'}
+ dependencies:
+ call-bind: 1.0.5
+ get-intrinsic: 1.2.2
+ is-typed-array: 1.1.12
+ dev: true
+
resolution: {integrity: sha512-gEymJYKZtKXzzBzM4jqa9w6Q1Jjm7x2d+sh19AdsD4wqnMPDYyvwpsIc2Q/835kHuo3BEQ7CjelGhfTsoBb2MQ==}
engines: {node: '>= 0.4'}
@@ -14109,15 +15076,37 @@ packages:
resolution: {integrity: sha512-Or/+kvLxNpeQ9DtSydonMxCx+9ZXOswtwJn17SNLvhptaXYDJvkFFP5zbfU/uLmvnBJlI4yrnXRxpdWH/M5tNA==}
engines: {node: '>= 0.4'}
+ dependencies:
+ call-bind: 1.0.5
+ for-each: 0.3.3
+ has-proto: 1.0.1
+ is-typed-array: 1.1.12
+ dev: true
+
+ resolution: {integrity: sha512-3iMJ9q0ao7WE9tWcaYKIptkNBuOIcZCCT0d4MRvuuH88fEoEH62IuQe0OtraD3ebQEoTRk8XCBoknUNc1Y67pw==}
+ engines: {node: '>= 0.4'}
dependencies:
call-bind: 1.0.7
for-each: 0.3.3
+ gopd: 1.0.1
has-proto: 1.0.3
is-typed-array: 1.1.13
dev: true
- resolution: {integrity: sha512-tcqKMrTRXjqvHN9S3553NPCaGL0VPgFI92lXszmrE8DMhiDPLBYLlvo8Uu4WZAAX/aGqp/T1sbA4ph8EWjDF9Q==}
+ resolution: {integrity: sha512-RD97prjEt9EL8YgAgpOkf3O4IF9lhJFr9g0htQkm0rchFp/Vx7LW5Q8fSXXub7BXAODyUQohRMyOc3faCPd0hg==}
+ engines: {node: '>= 0.4'}
+ dependencies:
+ available-typed-arrays: 1.0.5
+ call-bind: 1.0.5
+ for-each: 0.3.3
+ has-proto: 1.0.1
+ is-typed-array: 1.1.12
+ dev: true
+
+ resolution: {integrity: sha512-Ous0vodHa56FviZucS2E63zkgtgrACj7omjwd/8lTEMEPFFyjfixMZ1ZXenpgCFBBt4EC1J2XsyVS2gkG0eTFA==}
engines: {node: '>= 0.4'}
dependencies:
available-typed-arrays: 1.0.7
@@ -14130,10 +15119,22 @@ packages:
resolution: {integrity: sha512-KjZypGq+I/H7HI5HlOoGHkWUUGq+Q0TPhQurLbyrVrvnKTBgzLhIJ7j6J/XTQOi0d1RjyZ0wdas8bKs2p0x3Ng==}
+ dependencies:
+ call-bind: 1.0.5
+ for-each: 0.3.3
+ is-typed-array: 1.1.12
+ dev: true
+
+ resolution: {integrity: sha512-yMi0PlwuznKHxKmcpoOdeLwxBoVPkqZxd7q2FgMkmD3bNwvF5VW0+UlUQ1k1vmktTu4Yu13Q0RIxEP8+B+wloA==}
+ engines: {node: '>= 0.4'}
dependencies:
call-bind: 1.0.7
for-each: 0.3.3
+ gopd: 1.0.1
+ has-proto: 1.0.3
is-typed-array: 1.1.13
+ possible-typed-array-names: 1.0.0
dev: true
@@ -14156,15 +15157,20 @@ packages:
resolution: {integrity: sha512-pXWcraxM0uxAS+tN0AG/BF2TyqmHO014Z070UsJ+pFvYuRSq8KH8DmWpnbXe0pEPDHXZV3FcAbJkijJ5oNEnWw==}
engines: {node: '>=14.17'}
hasBin: true
- dev: false
+
+ resolution: {integrity: sha512-+2/g0Fds1ERlP6JsakQQDXjZdZMM+rqpamFZJEKh4kwTIn3iDkgKtby0CeNd5ATNZ4Ry1ax15TMx0W2V+miizQ==}
+ engines: {node: '>=14.17'}
+ hasBin: true
+ dev: true
resolution: {integrity: sha512-KrPd3PKaCLr78MalgiwJnA25Nm8HAmdwN3mYUYZgG/wizIo9EainNVQI9/yDavtVFRN2h3k8uf3GLHuhDMgEHg==}
engines: {node: '>=14.17'}
hasBin: true
- resolution: {integrity: sha512-Hhy+BhRBleFjpJ2vchUNN40qgkh0366FWJGqVLYBHev0vpHTrXSA0ryT+74UiW6KWsldNurQMKGqCm1M2zBciQ==}
+ resolution: {integrity: sha512-o+ORpgGwaYQXgqGDwd+hkS4PuZ3QnmqMMxRuajK/a38L6fTpcE5GPIfrf+L/KemFzfUpeUQc1rRS1iDBozvnFA==}
resolution: {integrity: sha512-T9q82TJI9e/C1TAxYvfb16xO120tMVFZrGA3f9/P4424DNu6ypK103y0GPFVa17yotwSyZW5iYXgjYHkGrJW/g==}
@@ -14176,7 +15182,7 @@ packages:
resolution: {integrity: sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==}
dependencies:
- call-bind: 1.0.7
+ call-bind: 1.0.5
has-bigints: 1.0.2
has-symbols: 1.0.3
which-boxed-primitive: 1.0.2
@@ -14274,7 +15280,6 @@ packages:
resolution: {integrity: sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==}
engines: {node: '>= 4.0.0'}
- dev: false
resolution: {integrity: sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg==}
@@ -14290,11 +15295,11 @@ packages:
engines: {node: '>= 0.8'}
dev: false
- resolution: {integrity: sha512-JqzORDAPxxs8ErLV4x+LL7bk5pk3YlcWqpSNsIkAZj972KzFZLClc/ekppahKkOczGkwIG6ElFgdOgOlK4tXZw==}
+ resolution: {integrity: sha512-0QkvG13z6RD+1L1FoibQqnvTwVBXvS4XSPwAyinVgoOCl2jAgwzdUKmEj05o4Lt8xwQI85Hb6mSyYkcAGwZPew==}
dependencies:
acorn: 8.11.3
- chokidar: 3.6.0
+ chokidar: 3.5.3
webpack-sources: 3.2.3
webpack-virtual-modules: 0.6.1
dev: false
@@ -14304,14 +15309,24 @@ packages:
engines: {node: '>=8'}
dev: false
+ resolution: {integrity: sha512-xebP81SNcPuNpPP3uzeW1NYXxI3rxyJzF3pD6sH4jE7o/IX+WtSpwnVU+qIsDPyk0d3hmFQ7mjqc6AtV604hbg==}
+ hasBin: true
+ peerDependencies:
+ browserslist: '>= 4.21.0'
+ dependencies:
+ browserslist: 4.22.1
+ escalade: 3.1.1
+ picocolors: 1.0.0
+
resolution: {integrity: sha512-xebP81SNcPuNpPP3uzeW1NYXxI3rxyJzF3pD6sH4jE7o/IX+WtSpwnVU+qIsDPyk0d3hmFQ7mjqc6AtV604hbg==}
hasBin: true
peerDependencies:
browserslist: '>= 4.21.0'
dependencies:
- browserslist: 4.23.0
- escalade: 3.1.2
+ browserslist: 4.22.2
+ escalade: 3.1.1
picocolors: 1.0.0
@@ -14370,7 +15385,7 @@ packages:
is-arguments: 1.1.1
is-generator-function: 1.0.10
is-typed-array: 1.1.13
- which-typed-array: 1.1.14
+ which-typed-array: 1.1.15
resolution: {integrity: sha512-Z0DbgELS9/L/75wZbro8xAnT50pBVFQZ+hUEueGDU5FN51YSCYM+jdxsfCiHjwNP/4LCDD0i/graKpeBnOXKRA==}
@@ -14402,13 +15417,33 @@ packages:
resolution: {integrity: sha512-Ii+sehpSfZy+At5nPdnyMhx78fEoPDkR2XW/zimHEL3MyGJQOCQ7WeP20jPYRz7ZCpcKLB21NxuXHF3bxjStBQ==}
engines: {node: '>= 0.10'}
- dev: false
resolution: {integrity: sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==}
engines: {node: '>= 0.8'}
dev: false
+ resolution: {integrity: sha512-fNzHmQUSOY+y30naohBvSW7pPn/xn3Ib/uqm+5wAJQJiqQsU0NBR78XdRJb04l4bOFKjpTWld0XAfkKlrDbySg==}
+ engines: {node: ^18.0.0 || >=20.0.0}
+ hasBin: true
+ dependencies:
+ cac: 6.7.14
+ debug: 4.3.4
+ pathe: 1.1.1
+ picocolors: 1.0.0
+ vite: 5.2.6(@types/[email protected])([email protected])
+ transitivePeerDependencies:
+ - '@types/node'
+ - less
+ - lightningcss
+ - sass
+ - stylus
+ - sugarss
+ - supports-color
+ - terser
+ dev: true
+
resolution: {integrity: sha512-VZDAseqjrHgNd4Kh8icYHWzTKSCZMhia7GyHfhtzLW33fZlG9SwsB6CEhgyVOWkJfJ2pFLrp/Gj1FSfAiqH9Lw==}
engines: {node: ^18.0.0 || >=20.0.0}
@@ -14416,7 +15451,7 @@ packages:
dependencies:
cac: 6.7.14
debug: 4.3.4
- pathe: 1.1.2
+ pathe: 1.1.1
picocolors: 1.0.0
transitivePeerDependencies:
@@ -14429,6 +15464,30 @@ packages:
- supports-color
- terser
+ resolution: {integrity: sha512-kg//1nDA01b8rufJf4TsvYN8LMkdwv0oBYpiQi6nRwpHyue+wTlhrBiqgipdFpMnW1oOYv6ywmzE5B0vg6vSEA==}
+ engines: {node: ^14.18.0 || >=16.0.0}
+ peerDependencies:
+ typescript: '*'
+ vite: '*'
+ peerDependenciesMeta:
+ vite:
+ optional: true
+ dependencies:
+ '@microsoft/api-extractor': 7.39.0(@types/[email protected])
+ '@rollup/pluginutils': 5.1.0
+ '@vue/language-core': 1.8.27([email protected])
+ debug: 4.3.4
+ kolorist: 1.8.0
+ typescript: 5.4.2
+ vite: 5.0.12(@types/[email protected])([email protected])
+ vue-tsc: 1.8.27([email protected])
+ transitivePeerDependencies:
+ - '@types/node'
+ - rollup
+ - supports-color
+ dev: true
+
resolution: {integrity: sha512-26eTlBYdpjRLWCsTJebM8vkCieE+p9gP3raf+ecDnzzK5E3FG6VE1wcy55OkRpfWWVlVvKkYFe6uvRHYWx7Nog==}
engines: {node: ^14.18.0 || >=16.0.0}
@@ -14453,6 +15512,56 @@ packages:
- supports-color
dev: false
+ resolution: {integrity: sha512-R5oVY8xDJjLXLTs2XDYzvYbc/RTZuIwOx2xcFbYf+/VXB6eJuatDgt8jzQ7kZ+IrgwQhe6tU8U2fTyy72C25CQ==}
+ engines: {node: ^14.18.0 || >=16.0.0}
+ peerDependencies:
+ vite: '>=2.0.0'
+ dependencies:
+ acorn: 8.11.3
+ es-module-lexer: 0.4.1
+ fs-extra: 10.1.0
+ magic-string: 0.25.9
+ vite: 5.0.12(@types/[email protected])([email protected])
+ dev: true
+
+ resolution: {integrity: sha512-4hsnEkG3q0N4Tzf1+t6NdN9dg/L3BM+q8SWgbSPnJvrgH2kgdyzfVJwbR1ic69/4uMJJ/3dqDZZE5/WwqW8U1w==}
+ engines: {node: ^18.0.0 || >=20.0.0}
+ hasBin: true
+ peerDependencies:
+ '@types/node': ^18.0.0 || >=20.0.0
+ less: '*'
+ lightningcss: ^1.21.0
+ sass: '*'
+ stylus: '*'
+ sugarss: '*'
+ terser: ^5.4.0
+ peerDependenciesMeta:
+ '@types/node':
+ optional: true
+ less:
+ optional: true
+ lightningcss:
+ optional: true
+ sass:
+ optional: true
+ stylus:
+ optional: true
+ sugarss:
+ optional: true
+ terser:
+ optional: true
+ dependencies:
+ '@types/node': 20.11.30
+ esbuild: 0.19.10
+ less: 4.2.0
+ postcss: 8.4.33
+ rollup: 4.5.2
+ optionalDependencies:
+ fsevents: 2.3.3
+ dev: true
+
resolution: {integrity: sha512-yYIAZs9nVfRJ/AiOLCA91zzhjsHUgMjB+EigzFb6W2XTLO8JixBCKCjvhKZaye+NKYHCrkv3Oh50dH9EdLU2RA==}
engines: {node: ^18.0.0 || >=20.0.0}
@@ -14482,10 +15591,10 @@ packages:
optional: true
dependencies:
'@types/node': 20.11.30
- esbuild: 0.19.12
+ esbuild: 0.19.10
less: 4.2.0
postcss: 8.4.35
- rollup: 4.12.0
+ rollup: 4.5.2
optionalDependencies:
fsevents: 2.3.3
dev: true
@@ -14522,7 +15631,7 @@ packages:
esbuild: 0.20.2
less: 4.2.0
postcss: 8.4.38
- rollup: 4.13.0
+ rollup: 4.13.1
optionalDependencies:
fsevents: 2.3.3
@@ -14535,6 +15644,64 @@ packages:
vitest: 1.4.0(@types/[email protected])([email protected])
dev: true
+ resolution: {integrity: sha512-TRph8N8rnSDa5M2wKWJCMnztCZS9cDcgVTQ6tsTFTG/odHJ4l5yNVqvbeDJYJRZ6is3uxaEpFs8LL6QM+YFSdA==}
+ engines: {node: ^18.0.0 || >=20.0.0}
+ hasBin: true
+ peerDependencies:
+ '@edge-runtime/vm': '*'
+ '@types/node': ^18.0.0 || >=20.0.0
+ '@vitest/browser': ^1.0.0
+ '@vitest/ui': ^1.0.0
+ happy-dom: '*'
+ jsdom: '*'
+ peerDependenciesMeta:
+ '@edge-runtime/vm':
+ optional: true
+ '@types/node':
+ optional: true
+ '@vitest/browser':
+ optional: true
+ '@vitest/ui':
+ optional: true
+ happy-dom:
+ optional: true
+ jsdom:
+ optional: true
+ dependencies:
+ '@types/node': 20.11.30
+ '@vitest/expect': 1.2.1
+ '@vitest/runner': 1.2.1
+ '@vitest/snapshot': 1.2.1
+ '@vitest/spy': 1.2.1
+ '@vitest/utils': 1.2.1
+ acorn-walk: 8.3.2
+ cac: 6.7.14
+ chai: 4.3.10
+ debug: 4.3.4
+ execa: 8.0.1
+ happy-dom: 13.2.1
+ local-pkg: 0.5.0
+ magic-string: 0.30.5
+ pathe: 1.1.1
+ picocolors: 1.0.0
+ std-env: 3.5.0
+ strip-literal: 1.3.0
+ tinybench: 2.5.1
+ tinypool: 0.8.1
+ vite: 5.2.6(@types/[email protected])([email protected])
+ vite-node: 1.2.1(@types/[email protected])([email protected])
+ why-is-node-running: 2.2.2
+ transitivePeerDependencies:
+ - less
+ - lightningcss
+ - sass
+ - stylus
+ - sugarss
+ - supports-color
+ - terser
+ dev: true
+
resolution: {integrity: sha512-gujzn0g7fmwf83/WzrDTnncZt2UiXP41mHuFYFrdwaLRVQ6JYQEiME2IfEjU3vcFL3VKa75XhI3lFgn+hfVsQw==}
engines: {node: ^18.0.0 || >=20.0.0}
@@ -14567,17 +15734,17 @@ packages:
'@vitest/spy': 1.4.0
'@vitest/utils': 1.4.0
acorn-walk: 8.3.2
- chai: 4.4.1
+ chai: 4.3.10
debug: 4.3.4
execa: 8.0.1
happy-dom: 13.3.8
local-pkg: 0.5.0
- magic-string: 0.30.7
- pathe: 1.1.2
+ magic-string: 0.30.8
+ pathe: 1.1.1
picocolors: 1.0.0
- std-env: 3.7.0
+ std-env: 3.5.0
strip-literal: 2.0.0
- tinybench: 2.6.0
+ tinybench: 2.5.1
tinypool: 0.8.2
vite-node: 1.4.0(@types/[email protected])([email protected])
@@ -14624,17 +15791,17 @@ packages:
'@vitest/spy': 1.4.0
'@vitest/utils': 1.4.0
acorn-walk: 8.3.2
- chai: 4.4.1
+ chai: 4.3.10
debug: 4.3.4
execa: 8.0.1
jsdom: 24.0.0
local-pkg: 0.5.0
- magic-string: 0.30.7
- pathe: 1.1.2
+ magic-string: 0.30.8
+ pathe: 1.1.1
picocolors: 1.0.0
- std-env: 3.7.0
+ std-env: 3.5.0
strip-literal: 2.0.0
- tinybench: 2.6.0
+ tinybench: 2.5.1
tinypool: 0.8.2
vite-node: 1.4.0(@types/[email protected])([email protected])
@@ -14681,16 +15848,16 @@ packages:
'@vitest/spy': 1.4.0
'@vitest/utils': 1.4.0
acorn-walk: 8.3.2
- chai: 4.4.1
+ chai: 4.3.10
debug: 4.3.4
execa: 8.0.1
local-pkg: 0.5.0
- magic-string: 0.30.7
- pathe: 1.1.2
+ magic-string: 0.30.8
+ pathe: 1.1.1
picocolors: 1.0.0
- std-env: 3.7.0
+ std-env: 3.5.0
strip-literal: 2.0.0
- tinybench: 2.6.0
+ tinybench: 2.5.1
tinypool: 0.8.2
vite-node: 1.4.0(@types/[email protected])([email protected])
@@ -14723,12 +15890,23 @@ packages:
- supports-color
dev: true
- resolution: {integrity: sha512-AYbUWAJHLGGQM7+cNTELw+KsOG9nl2CnSv467WobS5Cv9uk3wFcnr1Etsz2sEIHEZvw1U+o9mRlEO6QbZvUPGQ==}
+ resolution: {integrity: sha512-yQxjxMptBL7UAog00O8sANud99C6wJF+7kgbcwqkvA38vCGF7HWE66w0ZFnS/kX5gSoJr/PQ4/oS3Ne2pW37Og==}
dependencies:
de-indent: 1.0.2
he: 1.2.0
- dev: false
+
+ resolution: {integrity: sha512-WesKCAZCRAbmmhuGl3+VrdWItEvfoFIPXOvUJkjULi+x+6G/Dy69yO3TBRJDr9eUlmsNAwVmxsNZxvHKzbkKdg==}
+ hasBin: true
+ peerDependencies:
+ typescript: '*'
+ dependencies:
+ '@volar/typescript': 1.11.1
+ '@vue/language-core': 1.8.27([email protected])
+ semver: 7.5.4
+ typescript: 5.4.2
+ dev: true
resolution: {integrity: sha512-WesKCAZCRAbmmhuGl3+VrdWItEvfoFIPXOvUJkjULi+x+6G/Dy69yO3TBRJDr9eUlmsNAwVmxsNZxvHKzbkKdg==}
@@ -14738,7 +15916,7 @@ packages:
dependencies:
'@volar/typescript': 1.11.1
'@vue/language-core': 1.8.27([email protected])
- semver: 7.6.0
+ semver: 7.5.4
typescript: 5.4.3
dev: false
@@ -14813,14 +15991,14 @@ packages:
mime-types: 2.1.35
range-parser: 1.2.1
schema-utils: 4.2.0
- webpack: 5.90.3(@swc/[email protected])([email protected])
+ webpack: 5.90.3(@swc/[email protected])([email protected])
dev: false
resolution: {integrity: sha512-khZGfAeJx6I8K9zKohEWWYN6KDlVw2DHownoe+6Vtwj1LP9WFgegXnVMSkZ/dBEBtXFwrkkydsaPFlB7f8wU2A==}
dependencies:
ansi-html-community: 0.0.8
- html-entities: 2.5.2
+ html-entities: 2.4.0
strip-ansi: 6.0.1
dev: false
@@ -14837,7 +16015,7 @@ packages:
resolution: {integrity: sha512-poXpCylU7ExuvZK8z+On3kX+S8o/2dQ/SVYueKA0D4WEMXROXgY8Ez50/bQEUmvoSMMrWcrJqCHuhAbsiwg7Dg==}
dev: false
resolution: {integrity: sha512-h6uDYlWCctQRuXBs1oYpVe6sFcWedl0dpcVaTf/YF67J9bKvwJajFulMVSYKHrksMB3I/pIagRzDxwxkebuzKA==}
engines: {node: '>=10.13.0'}
hasBin: true
@@ -14854,7 +16032,7 @@ packages:
'@webassemblyjs/wasm-parser': 1.11.6
acorn: 8.11.3
acorn-import-assertions: 1.9.0([email protected])
- browserslist: 4.23.0
+ browserslist: 4.22.2
chrome-trace-event: 1.0.3
enhanced-resolve: 5.15.1
es-module-lexer: 1.4.1
@@ -14868,7 +16046,7 @@ packages:
neo-async: 2.6.2
schema-utils: 3.3.0
tapable: 2.2.1
- terser-webpack-plugin: 5.3.10(@swc/[email protected])([email protected])([email protected])
+ terser-webpack-plugin: 5.3.10(@swc/[email protected])([email protected])([email protected])
watchpack: 2.4.0
webpack-sources: 3.2.3
transitivePeerDependencies:
@@ -14887,7 +16065,6 @@ packages:
resolution: {integrity: sha512-nt+N2dzIutVRxARx1nghPKGv1xHikU7HKdfafKkLNLindmPU/ch3U31NOCGGA/dmPcmb1VlofO0vnKAcsm0o/Q==}
engines: {node: '>=12'}
- dev: false
resolution: {integrity: sha512-QaKxh0eNIi2mE9p2vEdzfagOKHCcj1pJ56EEHGQOVxp8r9/iszLUUV7v89x9O1p/T+NlTM5W7jW6+cz4Fq1YVg==}
@@ -14932,7 +16109,7 @@ packages:
isarray: 2.0.5
which-boxed-primitive: 1.0.2
which-collection: 1.0.1
- which-typed-array: 1.1.14
+ which-typed-array: 1.1.15
dev: true
@@ -14943,8 +16120,18 @@ packages:
is-weakmap: 2.0.1
is-weakset: 2.0.2
- resolution: {integrity: sha512-VnXFiIW8yNn9kIHN88xvZ4yOWchftKDsRJ8fEPacX/wl1lOvBrhsJ/OeJCXq7B0AaijRuqgzSKalJoPk+D8MPg==}
+ resolution: {integrity: sha512-P5Nra0qjSncduVPEAr7xhoF5guty49ArDTwzJ/yNuPIbZppyRxFQsRCWrocxIY+CnMVG+qfbU2FmDKyvSGClow==}
+ engines: {node: '>= 0.4'}
+ dependencies:
+ available-typed-arrays: 1.0.5
+ call-bind: 1.0.5
+ for-each: 0.3.3
+ gopd: 1.0.1
+ has-tostringtag: 1.0.0
+
+ resolution: {integrity: sha512-oV0jmFtUky6CXfkqehVvBP/LSWJ2sy4vWMioiENyJLePrBO/yKyV9OyJySfAKosh+RYkIl5zJCNZ8/4JncrpdA==}
engines: {node: '>= 0.4'}
dependencies:
available-typed-arrays: 1.0.7
@@ -15019,7 +16206,7 @@ packages:
engines: {node: '>=18'}
dependencies:
ansi-styles: 6.2.1
- string-width: 7.1.0
+ string-width: 7.0.0
strip-ansi: 7.1.0
dev: true
@@ -15117,7 +16304,7 @@ packages:
engines: {node: '>=12'}
dependencies:
cliui: 8.0.1
- escalade: 3.1.2
+ escalade: 3.1.1
get-caller-file: 2.0.5
require-directory: 2.1.1
string-width: 4.2.3
@@ -15142,4 +16329,3 @@ packages:
validator: 13.11.0
optionalDependencies:
commander: 9.5.0
- dev: false