@univerjs/sheets-conditional-formatting-ui 0.4.1-nightly.202410291304 → 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/es/index.js CHANGED
@@ -4,11 +4,11 @@ var __name = (target, value) => __defProp(target, "name", { value, configurable:
4
4
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key != "symbol" ? key + "" : key, value);
5
5
  import { CommandType, ICommandService, IUniverInstanceService, IUndoRedoService, ObjectMatrix, Range, sequenceExecute, ColorKit, BooleanNumber, Inject, LocaleService, Disposable, useDependency, Injector, UniverInstanceType, Rectangle, createInternalEditorID, Tools, get, set, createInterceptorKey, InterceptorManager, generateRandomId, InterceptorEffectEnum, toDisposable, DependentOn, Plugin, IConfigService, BuildTextUtils, registerDependencies, touchDependencies } from "@univerjs/core";
6
6
  import { ConditionalFormattingRuleModel, CFRuleType, CFSubRuleType, AddConditionalRuleMutation, CFNumberOperator, setConditionalRuleMutationUndoFactory, SetConditionalRuleMutation, DeleteConditionalRuleMutationUndoFactory, DeleteConditionalRuleMutation, transformSupportSymmetryAnchor, MoveConditionalRuleMutationUndoFactory, MoveConditionalRuleMutation, getColorScaleFromValue, iconMap, DEFAULT_BG_COLOR, DEFAULT_FONT_COLOR, defaultDataBarPositiveColor, defaultDataBarNativeColor, AddConditionalRuleMutationUndoFactory, CFValueType, createDefaultValueByValueType, SHEET_CONDITIONAL_FORMATTING_PLUGIN, removeUndefinedAttr, createDefaultValue, CFTextOperator, CFTimePeriodOperator, iconGroup, getOppositeOperator, compareWithNumber, EMPTY_ICON_TYPE, createDefaultRule, ConditionalFormattingService, ConditionalFormattingViewModel, DEFAULT_PADDING, DEFAULT_WIDTH, isRangesEqual, UniverSheetsConditionalFormattingPlugin } from "@univerjs/sheets-conditional-formatting";
7
- import { getSheetCommandTarget, SheetsSelectionsService, findAllRectangle, createTopMatrixFromMatrix, SetWorksheetActiveOperation, SetSelectionsOperation, checkRangesEditablePermission, RemoveSheetMutation, setEndForRange, SheetInterceptorService, INTERCEPTOR_POINT, RefRangeService, handleDefaultRangeChangeWithEffectRefCommands, WorkbookEditablePermission, RangeProtectionPermissionEditPoint, WorksheetEditPermission, WorksheetSetCellStylePermission, ClearSelectionFormatCommand, ClearSelectionAllCommand, RangeMergeUtil, AFTER_CELL_EDIT } from "@univerjs/sheets";
7
+ import { getSheetCommandTarget, SheetsSelectionsService, findAllRectangle, createTopMatrixFromMatrix, SetWorksheetActiveOperation, SetSelectionsOperation, checkRangesEditablePermission, RemoveSheetMutation, setEndForRange, SheetInterceptorService, INTERCEPTOR_POINT, RefRangeService, handleDefaultRangeChangeWithEffectRefCommands, WorkbookEditablePermission, RangeProtectionPermissionEditPoint, WorksheetEditPermission, WorksheetSetCellStylePermission, ClearSelectionFormatCommand, ClearSelectionAllCommand, RangeMergeUtil } from "@univerjs/sheets";
8
8
  import { useObservable, ComponentManager, ILayoutService, useScrollYOverContainer, ISidebarService, MenuItemType, getMenuHiddenObservable, RibbonStartGroup, IMenuManagerService } from "@univerjs/ui";
9
9
  import require$$0, { forwardRef, useRef, createElement, useMemo, useState, useEffect } from "react";
10
10
  import { Select, Tooltip, Dropdown, ColorPicker as ColorPicker$1, InputNumber, RadioGroup, Radio, Checkbox, Input, Button } from "@univerjs/design";
11
- import { useHighlightRange, SheetSkeletonManagerService, ISheetClipboardService, COPY_TYPE, rangeToDiscreteRange, PREDEFINED_HOOK_NAME, virtualizeDiscreteRanges, getRepeatRange, SheetPermissionInterceptorBaseController, IAutoFillService, APPLY_TYPE, getAutoFillRepeatRange, getCurrentRangeDisable$, IFormatPainterService, FormatPainterStatus } from "@univerjs/sheets-ui";
11
+ import { useHighlightRange, SheetSkeletonManagerService, ISheetClipboardService, COPY_TYPE, rangeToDiscreteRange, PREDEFINED_HOOK_NAME, virtualizeDiscreteRanges, getRepeatRange, SheetPermissionInterceptorBaseController, IAutoFillService, APPLY_TYPE, getAutoFillRepeatRange, IEditorBridgeService, getCurrentRangeDisable$, IFormatPainterService, FormatPainterStatus } from "@univerjs/sheets-ui";
12
12
  import { serializeRange, deserializeRangeWithSheet } from "@univerjs/engine-formula";
13
13
  import require$$2$1 from "react-dom";
14
14
  import { Observable, debounceTime, merge } from "rxjs";
@@ -7011,8 +7011,8 @@ var __defProp$3 = Object.defineProperty, __getOwnPropDesc$3 = Object.getOwnPrope
7011
7011
  return kind && result && __defProp$3(target, key, result), result;
7012
7012
  }, "__decorateClass$3"), __decorateParam$3 = /* @__PURE__ */ __name((index2, decorator) => (target, key) => decorator(target, key, index2), "__decorateParam$3"), _a11;
7013
7013
  let ConditionalFormattingEditorController = (_a11 = class extends Disposable {
7014
- constructor(_sheetInterceptorService, _conditionalFormattingService) {
7015
- super(), this._sheetInterceptorService = _sheetInterceptorService, this._conditionalFormattingService = _conditionalFormattingService, this._initInterceptorEditorEnd();
7014
+ constructor(_editorBridgeService, _conditionalFormattingService) {
7015
+ super(), this._editorBridgeService = _editorBridgeService, this._conditionalFormattingService = _conditionalFormattingService, this._initInterceptorEditorEnd();
7016
7016
  }
7017
7017
  /**
7018
7018
  * Process the values after edit
@@ -7022,8 +7022,8 @@ let ConditionalFormattingEditorController = (_a11 = class extends Disposable {
7022
7022
  _initInterceptorEditorEnd() {
7023
7023
  this.disposeWithMe(
7024
7024
  toDisposable(
7025
- this._sheetInterceptorService.writeCellInterceptor.intercept(
7026
- AFTER_CELL_EDIT,
7025
+ this._editorBridgeService.interceptor.intercept(
7026
+ this._editorBridgeService.interceptor.getInterceptPoints().AFTER_CELL_EDIT,
7027
7027
  {
7028
7028
  handler: /* @__PURE__ */ __name((value, context, next) => {
7029
7029
  var _a15, _b;
@@ -7048,7 +7048,7 @@ let ConditionalFormattingEditorController = (_a11 = class extends Disposable {
7048
7048
  }
7049
7049
  }, __name(_a11, "ConditionalFormattingEditorController"), _a11);
7050
7050
  ConditionalFormattingEditorController = __decorateClass$3([
7051
- __decorateParam$3(0, Inject(SheetInterceptorService)),
7051
+ __decorateParam$3(0, Inject(IEditorBridgeService)),
7052
7052
  __decorateParam$3(1, Inject(ConditionalFormattingService))
7053
7053
  ], ConditionalFormattingEditorController);
7054
7054
  const commandList = [
@@ -1,10 +1,10 @@
1
1
  import { Disposable } from '@univerjs/core';
2
- import { SheetInterceptorService } from '@univerjs/sheets';
3
2
  import { ConditionalFormattingService } from '@univerjs/sheets-conditional-formatting';
3
+ import { IEditorBridgeService } from '@univerjs/sheets-ui';
4
4
  export declare class ConditionalFormattingEditorController extends Disposable {
5
- private readonly _sheetInterceptorService;
6
- private readonly _conditionalFormattingService;
7
- constructor(_sheetInterceptorService: SheetInterceptorService, _conditionalFormattingService: ConditionalFormattingService);
5
+ private _editorBridgeService;
6
+ private _conditionalFormattingService;
7
+ constructor(_editorBridgeService: IEditorBridgeService, _conditionalFormattingService: ConditionalFormattingService);
8
8
  /**
9
9
  * Process the values after edit
10
10
  * @private