@univerjs/sheets-numfmt 0.1.3 → 0.1.5
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/README.md +2 -0
- package/lib/cjs/index.js +2 -2
- package/lib/es/index.js +420 -417
- package/lib/types/base/types/index.d.ts +2 -16
- package/lib/types/commands/commands/add-decimal.command.d.ts +2 -16
- package/lib/types/commands/commands/set-currency.command.d.ts +2 -16
- package/lib/types/commands/commands/set-numfmt.command.d.ts +3 -17
- package/lib/types/commands/commands/set-percent.command.d.ts +2 -16
- package/lib/types/commands/commands/subtract-decimal.command.d.ts +2 -16
- package/lib/types/commands/operations/close.numfmt.panel.operation.d.ts +2 -16
- package/lib/types/commands/operations/open.numfmt.panel.operation.d.ts +2 -16
- package/lib/types/components/accounting/index.d.ts +3 -17
- package/lib/types/components/currency/index.d.ts +3 -18
- package/lib/types/components/date/index.d.ts +3 -17
- package/lib/types/components/general/index.d.ts +3 -17
- package/lib/types/components/index.d.ts +2 -17
- package/lib/types/components/more-numfmt-type/MoreNumfmtType.d.ts +2 -17
- package/lib/types/components/stories/Panel.stories.d.ts +3 -17
- package/lib/types/components/thousandth-percentile/index.d.ts +3 -17
- package/lib/types/context/user-habit.d.ts +1 -1
- package/lib/types/controllers/__tests__/test.util.d.ts +9 -23
- package/lib/types/controllers/numfmt.auto-fill.controller.d.ts +4 -18
- package/lib/types/controllers/numfmt.cell-content.controller.d.ts +5 -18
- package/lib/types/controllers/numfmt.controller.d.ts +7 -21
- package/lib/types/controllers/numfmt.copy-paste.controller.d.ts +4 -18
- package/lib/types/controllers/numfmt.editor.controller.d.ts +4 -18
- package/lib/types/controllers/numfmt.i18n.controller.d.ts +1 -15
- package/lib/types/controllers/numfmt.menu.controller.d.ts +3 -17
- package/lib/types/controllers/numfmt.ref-range.controller.d.ts +4 -18
- package/lib/types/controllers/numfmt.sheet.controller.d.ts +3 -17
- package/lib/types/controllers/type.d.ts +1 -1
- package/lib/types/controllers/user-habit.controller.d.ts +1 -15
- package/lib/types/locale/en-US.d.ts +2 -16
- package/lib/types/locale/zh-CN.d.ts +1 -0
- package/lib/types/menu/menu.d.ts +4 -19
- package/lib/types/numfmt-plugin.d.ts +2 -16
- package/lib/types/utils/mutation.d.ts +2 -16
- package/lib/types/utils/pattern.d.ts +4 -17
- package/lib/umd/index.js +2 -2
- package/package.json +26 -24
|
@@ -1,19 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 type { MutableRefObject } from 'react';
|
|
1
|
+
import { MutableRefObject } from 'react';
|
|
2
|
+
|
|
17
3
|
export interface IBusinessComponentProps {
|
|
18
4
|
onChange: (result: string) => void;
|
|
19
5
|
defaultValue: number;
|
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 type { ICommand } from '@univerjs/core';
|
|
1
|
+
import { ICommand } from '@univerjs/core';
|
|
2
|
+
|
|
17
3
|
export declare const AddDecimalCommand: ICommand;
|
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 type { ICommand } from '@univerjs/core';
|
|
1
|
+
import { ICommand } from '@univerjs/core';
|
|
2
|
+
|
|
17
3
|
export declare const SetCurrencyCommand: ICommand;
|
|
@@ -1,20 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 type { ICommand } from '@univerjs/core';
|
|
17
|
-
import type { FormatType } from '@univerjs/sheets';
|
|
1
|
+
import { FormatType } from '@univerjs/sheets';
|
|
2
|
+
import { ICommand } from '@univerjs/core';
|
|
3
|
+
|
|
18
4
|
export interface ISetNumfmtCommandParams {
|
|
19
5
|
unitId?: string;
|
|
20
6
|
subUnitId?: string;
|
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 type { ICommand } from '@univerjs/core';
|
|
1
|
+
import { ICommand } from '@univerjs/core';
|
|
2
|
+
|
|
17
3
|
export declare const SetPercentCommand: ICommand;
|
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 type { ICommand } from '@univerjs/core';
|
|
1
|
+
import { ICommand } from '@univerjs/core';
|
|
2
|
+
|
|
17
3
|
export declare const SubtractDecimalCommand: ICommand;
|
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 type { ICommand } from '@univerjs/core';
|
|
1
|
+
import { ICommand } from '@univerjs/core';
|
|
2
|
+
|
|
17
3
|
export declare const CloseNumfmtPanelOperator: ICommand;
|
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 type { ICommand } from '@univerjs/core';
|
|
1
|
+
import { ICommand } from '@univerjs/core';
|
|
2
|
+
|
|
17
3
|
export declare const OpenNumfmtPanelOperator: ICommand;
|
|
@@ -1,19 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 type { FC } from 'react';
|
|
17
|
-
import type { IBusinessComponentProps } from '../../base/types';
|
|
1
|
+
import { IBusinessComponentProps } from '../../base/types';
|
|
2
|
+
import { FC } from 'react';
|
|
3
|
+
|
|
18
4
|
export declare const isAccountingPanel: (pattern: string) => boolean;
|
|
19
5
|
export declare const AccountingPanel: FC<IBusinessComponentProps>;
|
|
@@ -1,20 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 './index.less';
|
|
17
|
-
import type { FC } from 'react';
|
|
18
|
-
import type { IBusinessComponentProps } from '../../base/types';
|
|
1
|
+
import { IBusinessComponentProps } from '../../base/types';
|
|
2
|
+
import { FC } from 'react';
|
|
3
|
+
|
|
19
4
|
export declare const isCurrencyPanel: (pattern: string) => boolean;
|
|
20
5
|
export declare const CurrencyPanel: FC<IBusinessComponentProps>;
|
|
@@ -1,19 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 type { FC } from 'react';
|
|
17
|
-
import type { IBusinessComponentProps } from '../../base/types';
|
|
1
|
+
import { IBusinessComponentProps } from '../../base/types';
|
|
2
|
+
import { FC } from 'react';
|
|
3
|
+
|
|
18
4
|
export declare const isDatePanel: (pattern: string) => boolean;
|
|
19
5
|
export declare const DatePanel: FC<IBusinessComponentProps>;
|
|
@@ -1,19 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 type { FC } from 'react';
|
|
17
|
-
import type { IBusinessComponentProps } from '../../base/types';
|
|
1
|
+
import { IBusinessComponentProps } from '../../base/types';
|
|
2
|
+
import { FC } from 'react';
|
|
3
|
+
|
|
18
4
|
export declare const isGeneralPanel: (pattern: string) => boolean;
|
|
19
5
|
export declare const GeneralPanel: FC<IBusinessComponentProps>;
|
|
@@ -1,20 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 './index.less';
|
|
17
|
-
import type { FC } from 'react';
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
|
|
18
3
|
export interface ISheetNumfmtPanelProps {
|
|
19
4
|
value: {
|
|
20
5
|
defaultValue: number;
|
|
@@ -1,20 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 './index.less';
|
|
17
|
-
import React from 'react';
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
18
3
|
export declare const MoreNumfmtType: (props: {
|
|
19
4
|
value?: string;
|
|
20
5
|
}) => React.JSX.Element;
|
|
@@ -1,20 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 type { Meta, StoryObj } from '@storybook/react';
|
|
17
|
-
import type { ISheetNumfmtPanelProps } from '../index';
|
|
1
|
+
import { ISheetNumfmtPanelProps } from '../index';
|
|
2
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
3
|
+
|
|
18
4
|
declare const meta: Meta;
|
|
19
5
|
export default meta;
|
|
20
6
|
export declare const Test: StoryObj<ISheetNumfmtPanelProps>;
|
|
@@ -1,19 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 type { FC } from 'react';
|
|
17
|
-
import type { IBusinessComponentProps } from '../../base/types';
|
|
1
|
+
import { IBusinessComponentProps } from '../../base/types';
|
|
2
|
+
import { FC } from 'react';
|
|
3
|
+
|
|
18
4
|
export declare const isThousandthPercentilePanel: (pattern: string) => boolean;
|
|
19
5
|
export declare const ThousandthPercentilePanel: FC<IBusinessComponentProps>;
|
|
@@ -1,31 +1,17 @@
|
|
|
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
|
-
*/
|
|
1
|
+
import { Dependency } from '@wendellhu/redi';
|
|
16
2
|
import { Univer } from '@univerjs/core';
|
|
17
|
-
|
|
3
|
+
|
|
18
4
|
export declare const createTestBed: (dependencies?: Dependency[]) => {
|
|
19
5
|
univer: Univer;
|
|
20
6
|
get: {
|
|
21
|
-
<T>(id: import(
|
|
22
|
-
<T_1>(id: import(
|
|
23
|
-
<T_2>(id: import(
|
|
24
|
-
<T_3>(id: import(
|
|
25
|
-
<T_4>(id: import(
|
|
26
|
-
<T_5>(id: import(
|
|
7
|
+
<T>(id: import('@wendellhu/redi').DependencyIdentifier<T>, lookUp?: import('@wendellhu/redi').LookUp | undefined): T;
|
|
8
|
+
<T_1>(id: import('@wendellhu/redi').DependencyIdentifier<T_1>, quantity: import("@wendellhu/redi").Quantity.MANY, lookUp?: import('@wendellhu/redi').LookUp | undefined): T_1[];
|
|
9
|
+
<T_2>(id: import('@wendellhu/redi').DependencyIdentifier<T_2>, quantity: import("@wendellhu/redi").Quantity.OPTIONAL, lookUp?: import('@wendellhu/redi').LookUp | undefined): T_2 | null;
|
|
10
|
+
<T_3>(id: import('@wendellhu/redi').DependencyIdentifier<T_3>, quantity: import("@wendellhu/redi").Quantity.REQUIRED, lookUp?: import('@wendellhu/redi').LookUp | undefined): T_3;
|
|
11
|
+
<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;
|
|
12
|
+
<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
13
|
};
|
|
28
|
-
sheet: import(
|
|
14
|
+
sheet: import('@univerjs/core').Workbook;
|
|
29
15
|
unitId: string;
|
|
30
16
|
subUnitId: string;
|
|
31
17
|
};
|
|
@@ -1,22 +1,8 @@
|
|
|
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, IUniverInstanceService } from '@univerjs/core';
|
|
17
|
-
import { INumfmtService } from '@univerjs/sheets';
|
|
18
|
-
import { IAutoFillService } from '@univerjs/sheets-ui';
|
|
19
1
|
import { Injector } from '@wendellhu/redi';
|
|
2
|
+
import { IAutoFillService } from '@univerjs/sheets-ui';
|
|
3
|
+
import { INumfmtService } from '@univerjs/sheets';
|
|
4
|
+
import { Disposable, IUniverInstanceService } from '@univerjs/core';
|
|
5
|
+
|
|
20
6
|
export declare class NumfmtAutoFillController extends Disposable {
|
|
21
7
|
private _injector;
|
|
22
8
|
private _univerInstanceService;
|
|
@@ -1,27 +1,14 @@
|
|
|
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
1
|
import { SheetSkeletonManagerService } from '@univerjs/sheets-ui';
|
|
2
|
+
import { INumfmtService, SheetInterceptorService } from '@univerjs/sheets';
|
|
3
|
+
import { Disposable, ICommandService, LocaleService, ThemeService } from '@univerjs/core';
|
|
4
|
+
|
|
19
5
|
export declare class NumfmtCellContent extends Disposable {
|
|
20
6
|
private _sheetInterceptorService;
|
|
21
7
|
private _themeService;
|
|
22
8
|
private _sheetSkeletonManagerService;
|
|
23
9
|
private _commandService;
|
|
24
10
|
private _numfmtService;
|
|
25
|
-
|
|
11
|
+
private _localeService;
|
|
12
|
+
constructor(_sheetInterceptorService: SheetInterceptorService, _themeService: ThemeService, _sheetSkeletonManagerService: SheetSkeletonManagerService, _commandService: ICommandService, _numfmtService: INumfmtService, _localeService: LocaleService);
|
|
26
13
|
private _initInterceptorCellContent;
|
|
27
14
|
}
|
|
@@ -1,25 +1,11 @@
|
|
|
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, IUniverInstanceService, LocaleService, ThemeService } from '@univerjs/core';
|
|
17
|
-
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
18
|
-
import { INumfmtService, SelectionManagerService, SheetInterceptorService } from '@univerjs/sheets';
|
|
19
|
-
import { SheetSkeletonManagerService } from '@univerjs/sheets-ui';
|
|
20
|
-
import { ComponentManager, ISidebarService } from '@univerjs/ui';
|
|
1
|
+
import { INumfmtController } from './type';
|
|
21
2
|
import { Injector } from '@wendellhu/redi';
|
|
22
|
-
import
|
|
3
|
+
import { ComponentManager, ISidebarService } from '@univerjs/ui';
|
|
4
|
+
import { SheetSkeletonManagerService } from '@univerjs/sheets-ui';
|
|
5
|
+
import { INumfmtService, SelectionManagerService, SheetInterceptorService } from '@univerjs/sheets';
|
|
6
|
+
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
7
|
+
import { Disposable, ICommandService, IUniverInstanceService, LocaleService, ThemeService } from '@univerjs/core';
|
|
8
|
+
|
|
23
9
|
export declare class NumfmtController extends Disposable implements INumfmtController {
|
|
24
10
|
private _sheetInterceptorService;
|
|
25
11
|
private _themeService;
|
|
@@ -1,22 +1,8 @@
|
|
|
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, IUniverInstanceService } from '@univerjs/core';
|
|
17
|
-
import { INumfmtService } from '@univerjs/sheets';
|
|
18
|
-
import { ISheetClipboardService } from '@univerjs/sheets-ui';
|
|
19
1
|
import { Injector } from '@wendellhu/redi';
|
|
2
|
+
import { ISheetClipboardService } from '@univerjs/sheets-ui';
|
|
3
|
+
import { INumfmtService } from '@univerjs/sheets';
|
|
4
|
+
import { Disposable, IUniverInstanceService } from '@univerjs/core';
|
|
5
|
+
|
|
20
6
|
export declare class NumfmtCopyPasteController extends Disposable {
|
|
21
7
|
private _sheetClipboardService;
|
|
22
8
|
private _injector;
|
|
@@ -1,22 +1,8 @@
|
|
|
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, IUniverInstanceService } from '@univerjs/core';
|
|
17
|
-
import { INumfmtService, SheetInterceptorService } from '@univerjs/sheets';
|
|
18
|
-
import { IEditorBridgeService } from '@univerjs/sheets-ui';
|
|
19
1
|
import { Injector } from '@wendellhu/redi';
|
|
2
|
+
import { IEditorBridgeService } from '@univerjs/sheets-ui';
|
|
3
|
+
import { INumfmtService, SheetInterceptorService } from '@univerjs/sheets';
|
|
4
|
+
import { Disposable, IUniverInstanceService } from '@univerjs/core';
|
|
5
|
+
|
|
20
6
|
export declare class NumfmtEditorController extends Disposable {
|
|
21
7
|
private _sheetInterceptorService;
|
|
22
8
|
private _numfmtService;
|
|
@@ -1,19 +1,5 @@
|
|
|
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
1
|
import { Disposable, LocaleService } from '@univerjs/core';
|
|
2
|
+
|
|
17
3
|
export declare class NumfmtI18nController extends Disposable {
|
|
18
4
|
private _localeService;
|
|
19
5
|
constructor(_localeService: LocaleService);
|
|
@@ -1,21 +1,7 @@
|
|
|
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
1
|
import { Injector } from '@wendellhu/redi';
|
|
2
|
+
import { ComponentManager, IMenuService } from '@univerjs/ui';
|
|
3
|
+
import { Disposable } from '@univerjs/core';
|
|
4
|
+
|
|
19
5
|
export declare class NumfmtMenuController extends Disposable {
|
|
20
6
|
private _injector;
|
|
21
7
|
private _componentManager;
|
|
@@ -1,22 +1,8 @@
|
|
|
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, IUniverInstanceService } from '@univerjs/core';
|
|
17
|
-
import { INumfmtService, RefRangeService } from '@univerjs/sheets';
|
|
18
|
-
import { SheetSkeletonManagerService } from '@univerjs/sheets-ui';
|
|
19
1
|
import { Injector } from '@wendellhu/redi';
|
|
2
|
+
import { SheetSkeletonManagerService } from '@univerjs/sheets-ui';
|
|
3
|
+
import { INumfmtService, RefRangeService } from '@univerjs/sheets';
|
|
4
|
+
import { Disposable, ICommandService, IUniverInstanceService } from '@univerjs/core';
|
|
5
|
+
|
|
20
6
|
export declare class NumfmtRefRangeController extends Disposable {
|
|
21
7
|
private _numfmtService;
|
|
22
8
|
private _univerInstanceService;
|