@univerjs/sheets-numfmt 0.1.0-beta.2 → 0.1.0-beta.3

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.
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export {};
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export {};
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export {};
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export {};
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { Univer } from '@univerjs/core';
17
+ import type { Dependency } from '@wendellhu/redi';
18
+ export declare const createTestBed: (dependencies?: Dependency[]) => {
19
+ univer: Univer;
20
+ get: {
21
+ <T>(id: import("@wendellhu/redi").DependencyIdentifier<T>, lookUp?: import("@wendellhu/redi").LookUp | undefined): T;
22
+ <T_1>(id: import("@wendellhu/redi").DependencyIdentifier<T_1>, quantity: import("@wendellhu/redi").Quantity.MANY, lookUp?: import("@wendellhu/redi").LookUp | undefined): T_1[];
23
+ <T_2>(id: import("@wendellhu/redi").DependencyIdentifier<T_2>, quantity: import("@wendellhu/redi").Quantity.OPTIONAL, lookUp?: import("@wendellhu/redi").LookUp | undefined): T_2 | null;
24
+ <T_3>(id: import("@wendellhu/redi").DependencyIdentifier<T_3>, quantity: import("@wendellhu/redi").Quantity.REQUIRED, lookUp?: import("@wendellhu/redi").LookUp | undefined): T_3;
25
+ <T_4>(id: import("@wendellhu/redi").DependencyIdentifier<T_4>, quantity?: import("@wendellhu/redi").Quantity | undefined, lookUp?: import("@wendellhu/redi").LookUp | undefined): T_4 | T_4[] | null;
26
+ <T_5>(id: import("@wendellhu/redi").DependencyIdentifier<T_5>, quantityOrLookup?: import("@wendellhu/redi").Quantity | import("@wendellhu/redi").LookUp | undefined, lookUp?: import("@wendellhu/redi").LookUp | undefined): T_5 | T_5[] | null;
27
+ };
28
+ sheet: import("@univerjs/core").Workbook;
29
+ unitId: string;
30
+ subUnitId: string;
31
+ };
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { Disposable, ICommandService, ThemeService } from '@univerjs/core';
17
+ import { INumfmtService, SheetInterceptorService } from '@univerjs/sheets';
18
+ import { SheetSkeletonManagerService } from '@univerjs/sheets-ui';
19
+ export declare class NumfmtCellContent extends Disposable {
20
+ private _sheetInterceptorService;
21
+ private _themeService;
22
+ private _sheetSkeletonManagerService;
23
+ private _commandService;
24
+ private _numfmtService;
25
+ constructor(_sheetInterceptorService: SheetInterceptorService, _themeService: ThemeService, _sheetSkeletonManagerService: SheetSkeletonManagerService, _commandService: ICommandService, _numfmtService: INumfmtService);
26
+ private _initInterceptorCellContent;
27
+ }
@@ -17,7 +17,7 @@ import { Disposable, ICommandService, IUniverInstanceService, LocaleService, The
17
17
  import { IRenderManagerService } from '@univerjs/engine-render';
18
18
  import { INumfmtService, SelectionManagerService, SheetInterceptorService } from '@univerjs/sheets';
19
19
  import { SheetSkeletonManagerService } from '@univerjs/sheets-ui';
20
- import { ComponentManager, IMenuService, ISidebarService } from '@univerjs/ui';
20
+ import { ComponentManager, ISidebarService } from '@univerjs/ui';
21
21
  import { Injector } from '@wendellhu/redi';
22
22
  import type { INumfmtController } from './type';
23
23
  export declare class NumfmtController extends Disposable implements INumfmtController {
@@ -31,7 +31,6 @@ export declare class NumfmtController extends Disposable implements INumfmtContr
31
31
  private _renderManagerService;
32
32
  private _numfmtService;
33
33
  private _componentManager;
34
- private _menuService;
35
34
  private _sidebarService;
36
35
  private _localeService;
37
36
  /**
@@ -41,14 +40,11 @@ export declare class NumfmtController extends Disposable implements INumfmtContr
41
40
  * @memberof NumfmtController
42
41
  */
43
42
  private _previewPattern;
44
- constructor(_sheetInterceptorService: SheetInterceptorService, _themeService: ThemeService, _injector: Injector, _univerInstanceService: IUniverInstanceService, _sheetSkeletonManagerService: SheetSkeletonManagerService, _commandService: ICommandService, _selectionManagerService: SelectionManagerService, _renderManagerService: IRenderManagerService, _numfmtService: INumfmtService, _componentManager: ComponentManager, _menuService: IMenuService, _sidebarService: ISidebarService, _localeService: LocaleService);
43
+ constructor(_sheetInterceptorService: SheetInterceptorService, _themeService: ThemeService, _injector: Injector, _univerInstanceService: IUniverInstanceService, _sheetSkeletonManagerService: SheetSkeletonManagerService, _commandService: ICommandService, _selectionManagerService: SelectionManagerService, _renderManagerService: IRenderManagerService, _numfmtService: INumfmtService, _componentManager: ComponentManager, _sidebarService: ISidebarService, _localeService: LocaleService);
45
44
  openPanel: () => false | undefined;
46
45
  private _initCommands;
47
46
  private _initPanel;
48
- private _initLocal;
49
- private _initMenu;
50
47
  private _initInterceptorCommands;
51
- private _initInterceptorCellContent;
52
48
  private _initRealTimeRenderingInterceptor;
53
49
  private _commandExecutedListener;
54
50
  }
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { Disposable, LocaleService } from '@univerjs/core';
17
+ export declare class NumfmtI18nController extends Disposable {
18
+ private _localeService;
19
+ constructor(_localeService: LocaleService);
20
+ private _initLocal;
21
+ }
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { Disposable } from '@univerjs/core';
17
+ import { ComponentManager, IMenuService } from '@univerjs/ui';
18
+ import { Injector } from '@wendellhu/redi';
19
+ export declare class NumfmtMenuController extends Disposable {
20
+ private _injector;
21
+ private _componentManager;
22
+ private _menuService;
23
+ constructor(_injector: Injector, _componentManager: ComponentManager, _menuService: IMenuService);
24
+ private _initMenu;
25
+ }