@univerjs/sheets-data-validation-ui 0.17.0 → 0.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +48 -2
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +48 -3241
- package/lib/es/locale/ca-ES.js +1 -182
- package/lib/es/locale/en-US.js +1 -182
- package/lib/es/locale/es-ES.js +1 -182
- package/lib/es/locale/fa-IR.js +1 -182
- package/lib/es/locale/fr-FR.js +1 -182
- package/lib/es/locale/ja-JP.js +1 -182
- package/lib/es/locale/ko-KR.js +1 -182
- package/lib/es/locale/ru-RU.js +1 -182
- package/lib/es/locale/sk-SK.js +1 -182
- package/lib/es/locale/vi-VN.js +1 -182
- package/lib/es/locale/zh-CN.js +1 -184
- package/lib/es/locale/zh-TW.js +1 -182
- package/lib/index.css +317 -1
- package/lib/index.js +48 -3241
- package/lib/locale/ca-ES.js +1 -182
- package/lib/locale/en-US.js +1 -182
- package/lib/locale/es-ES.js +1 -182
- package/lib/locale/fa-IR.js +1 -182
- package/lib/locale/fr-FR.js +1 -182
- package/lib/locale/ja-JP.js +1 -182
- package/lib/locale/ko-KR.js +1 -182
- package/lib/locale/ru-RU.js +1 -182
- package/lib/locale/sk-SK.js +1 -182
- package/lib/locale/vi-VN.js +1 -182
- package/lib/locale/zh-CN.js +1 -184
- package/lib/locale/zh-TW.js +1 -182
- package/lib/types/commands/commands/data-validation-ui.command.d.ts +16 -1
- package/lib/types/commands/operations/data-validation.operation.d.ts +16 -1
- package/lib/types/config/config.d.ts +16 -1
- package/lib/types/controllers/dv-alert.controller.d.ts +15 -0
- package/lib/types/controllers/dv-auto-fill.controller.d.ts +15 -0
- package/lib/types/controllers/dv-copy-paste.controller.d.ts +15 -0
- package/lib/types/controllers/dv-permission.controller.d.ts +15 -0
- package/lib/types/controllers/dv-reject-input.controller.d.ts +15 -0
- package/lib/types/controllers/dv-render.controller.d.ts +15 -0
- package/lib/types/controllers/dv-rerender.controller.d.ts +18 -2
- package/lib/types/controllers/dv-ui.controller.d.ts +15 -0
- package/lib/types/locale/ca-ES.d.ts +16 -1
- package/lib/types/locale/es-ES.d.ts +16 -1
- package/lib/types/locale/fa-IR.d.ts +16 -1
- package/lib/types/locale/fr-FR.d.ts +16 -1
- package/lib/types/locale/ja-JP.d.ts +16 -1
- package/lib/types/locale/ko-KR.d.ts +16 -1
- package/lib/types/locale/ru-RU.d.ts +16 -1
- package/lib/types/locale/sk-SK.d.ts +16 -1
- package/lib/types/locale/vi-VN.d.ts +16 -1
- package/lib/types/locale/zh-CN.d.ts +16 -1
- package/lib/types/locale/zh-TW.d.ts +16 -1
- package/lib/types/menu/dv.menu.d.ts +17 -2
- package/lib/types/menu/schema.d.ts +16 -1
- package/lib/types/mobile-plugin.d.ts +16 -1
- package/lib/types/plugin.d.ts +16 -1
- package/lib/types/services/data-validation-panel.service.d.ts +19 -3
- package/lib/types/services/dropdown-manager.service.d.ts +20 -3
- package/lib/types/views/components/formula-input/BaseFormulaInput.d.ts +16 -1
- package/lib/types/views/components/formula-input/CheckboxFormulaInput.d.ts +16 -1
- package/lib/types/views/components/formula-input/CustomFormulaInput.d.ts +16 -1
- package/lib/types/views/components/formula-input/ListFormulaInput.d.ts +16 -1
- package/lib/types/views/components/formula-input/formula-input.d.ts +16 -1
- package/lib/types/views/components/formula-input/index.d.ts +16 -1
- package/lib/types/views/components/item/index.d.ts +16 -1
- package/lib/types/views/components/list/index.d.ts +16 -1
- package/lib/types/views/components/options/index.d.ts +16 -1
- package/lib/types/views/components/render-mode/index.d.ts +16 -1
- package/lib/types/views/components/show-time/index.d.ts +16 -1
- package/lib/types/views/validator-views/checkbox-validator-view.d.ts +15 -0
- package/lib/types/views/validator-views/custom-validator-view.d.ts +15 -0
- package/lib/types/views/validator-views/date-validator-view.d.ts +15 -0
- package/lib/types/views/validator-views/decimal-validator-view.d.ts +15 -0
- package/lib/types/views/validator-views/list-multiple-view.d.ts +15 -0
- package/lib/types/views/validator-views/list-validator-view.d.ts +19 -2
- package/lib/types/views/validator-views/sheet-validator-view.d.ts +18 -2
- package/lib/types/views/validator-views/text-length-validator.view.d.ts +15 -0
- package/lib/types/views/validator-views/whole-validator-view.d.ts +15 -0
- package/lib/types/views/widgets/checkbox-widget.d.ts +20 -3
- package/lib/types/views/widgets/dropdown-multiple-widget.d.ts +20 -3
- package/lib/types/views/widgets/dropdown-widget.d.ts +20 -3
- package/lib/types/views/widgets/shape/dropdown.d.ts +18 -2
- package/lib/types/views/widgets/shape/layout.d.ts +18 -3
- package/lib/umd/index.js +48 -2
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +17 -16
|
@@ -1,4 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
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 { FormulaInputType } from '@univerjs/data-validation';
|
|
2
17
|
import { BASE_FORMULA_INPUT_NAME, CHECKBOX_FORMULA_INPUT_NAME, CUSTOM_FORMULA_INPUT_NAME, LIST_FORMULA_INPUT_NAME } from '@univerjs/sheets-data-validation';
|
|
3
18
|
export { BASE_FORMULA_INPUT_NAME, CHECKBOX_FORMULA_INPUT_NAME, CUSTOM_FORMULA_INPUT_NAME, LIST_FORMULA_INPUT_NAME, };
|
|
4
19
|
export declare const FORMULA_INPUTS: [string, FormulaInputType][];
|
|
@@ -1,4 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
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 { ISheetDataValidationRule } from '@univerjs/core';
|
|
2
17
|
export interface IDataValidationDetailProps {
|
|
3
18
|
rule: ISheetDataValidationRule;
|
|
4
19
|
onClick: () => void;
|
|
@@ -1,4 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
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 { Workbook } from '@univerjs/core';
|
|
2
17
|
export declare function DataValidationList(props: {
|
|
3
18
|
workbook: Workbook;
|
|
4
19
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
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 { IDataValidationRuleOptions } from '@univerjs/core';
|
|
2
17
|
export interface IDataValidationOptionsParams {
|
|
3
18
|
value: IDataValidationRuleOptions;
|
|
4
19
|
onChange: (value: IDataValidationRuleOptions) => void;
|
|
@@ -1,4 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
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 { IDataValidationRuleOptions } from '@univerjs/core';
|
|
2
17
|
export interface IListRenderModeInputProps {
|
|
3
18
|
value: IDataValidationRuleOptions;
|
|
4
19
|
onChange: (value: IDataValidationRuleOptions) => void;
|
|
@@ -1,4 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
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 { IDataValidationRuleOptions } from '@univerjs/core';
|
|
2
17
|
export interface IDateShowTimeOptionProps {
|
|
3
18
|
value: IDataValidationRuleOptions;
|
|
4
19
|
onChange: (value: IDataValidationRuleOptions) => void;
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
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
16
|
import { DataValidationType } from '@univerjs/core';
|
|
2
17
|
import { CheckboxRender } from '../widgets/checkbox-widget';
|
|
3
18
|
import { BaseSheetDataValidatorView } from './sheet-validator-view';
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
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
16
|
import { DataValidationType } from '@univerjs/core';
|
|
2
17
|
import { BaseSheetDataValidatorView } from './sheet-validator-view';
|
|
3
18
|
export declare class CustomFormulaValidatorView extends BaseSheetDataValidatorView {
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
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
16
|
import { DataValidationType } from '@univerjs/core';
|
|
2
17
|
import { DataValidatorDropdownType } from '@univerjs/data-validation';
|
|
3
18
|
import { BaseSheetDataValidatorView } from './sheet-validator-view';
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
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
16
|
import { DataValidationType } from '@univerjs/core';
|
|
2
17
|
import { BaseSheetDataValidatorView } from './sheet-validator-view';
|
|
3
18
|
export declare class DecimalValidatorView extends BaseSheetDataValidatorView {
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
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
16
|
import { DataValidationType } from '@univerjs/core';
|
|
2
17
|
import { DataValidatorDropdownType } from '@univerjs/data-validation';
|
|
3
18
|
import { DropdownMultipleWidget } from '../widgets/dropdown-multiple-widget';
|
|
@@ -1,5 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
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 { Nullable } from '@univerjs/core';
|
|
17
|
+
import type { IBaseDataValidationWidget } from '@univerjs/data-validation';
|
|
18
|
+
import { DataValidationType } from '@univerjs/core';
|
|
19
|
+
import { DataValidatorDropdownType } from '@univerjs/data-validation';
|
|
3
20
|
import { BaseSheetDataValidatorView } from './sheet-validator-view';
|
|
4
21
|
export declare class ListValidatorView extends BaseSheetDataValidatorView {
|
|
5
22
|
id: DataValidationType;
|
|
@@ -1,5 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
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 { Nullable } from '@univerjs/core';
|
|
17
|
+
import type { DataValidatorDropdownType, IBaseDataValidationWidget } from '@univerjs/data-validation';
|
|
18
|
+
import { Injector } from '@univerjs/core';
|
|
3
19
|
/**
|
|
4
20
|
* This is the base class for all sheet data validator views. It is used to extend {@link BaseDataValidator}.
|
|
5
21
|
*/
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
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
16
|
import { DataValidationType } from '@univerjs/core';
|
|
2
17
|
import { BaseSheetDataValidatorView } from './sheet-validator-view';
|
|
3
18
|
export declare class TextLengthValidatorView extends BaseSheetDataValidatorView {
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
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
16
|
import { DataValidationType } from '@univerjs/core';
|
|
2
17
|
import { BaseSheetDataValidatorView } from './sheet-validator-view';
|
|
3
18
|
export declare class WholeValidatorView extends BaseSheetDataValidatorView {
|
|
@@ -1,6 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
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 { ICellRenderContext } from '@univerjs/core';
|
|
17
|
+
import type { IBaseDataValidationWidget } from '@univerjs/data-validation';
|
|
18
|
+
import type { IMouseEvent, IPointerEvent, UniverRenderingContext2D } from '@univerjs/engine-render';
|
|
19
|
+
import { ICommandService, IUniverInstanceService, ThemeService } from '@univerjs/core';
|
|
20
|
+
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
4
21
|
import { DataValidationFormulaService, SheetDataValidationModel } from '@univerjs/sheets-data-validation';
|
|
5
22
|
export declare class CheckboxRender implements IBaseDataValidationWidget {
|
|
6
23
|
private readonly _commandService;
|
|
@@ -1,6 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
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 { ICellRenderContext } from '@univerjs/core';
|
|
17
|
+
import type { IBaseDataValidationWidget } from '@univerjs/data-validation';
|
|
18
|
+
import type { IMouseEvent, IPointerEvent, Spreadsheet, SpreadsheetSkeleton, UniverRenderingContext2D } from '@univerjs/engine-render';
|
|
19
|
+
import { ICommandService, IUniverInstanceService } from '@univerjs/core';
|
|
20
|
+
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
4
21
|
import { SheetDataValidationModel } from '@univerjs/sheets-data-validation';
|
|
5
22
|
export declare class DropdownMultipleWidget implements IBaseDataValidationWidget {
|
|
6
23
|
private readonly _commandService;
|
|
@@ -1,6 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
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 { ICellRenderContext } from '@univerjs/core';
|
|
17
|
+
import type { IBaseDataValidationWidget } from '@univerjs/data-validation';
|
|
18
|
+
import type { IMouseEvent, IPointerEvent, SpreadsheetSkeleton, UniverRenderingContext2D } from '@univerjs/engine-render';
|
|
19
|
+
import { ICommandService, IUniverInstanceService, LocaleService } from '@univerjs/core';
|
|
20
|
+
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
4
21
|
import { SheetDataValidationModel } from '@univerjs/sheets-data-validation';
|
|
5
22
|
export interface IDropdownInfo {
|
|
6
23
|
top: number;
|
|
@@ -1,5 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
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 { IShapeProps, UniverRenderingContext } from '@univerjs/engine-render';
|
|
17
|
+
import type { IDropdownLayoutInfo } from './layout';
|
|
18
|
+
import { Shape } from '@univerjs/engine-render';
|
|
3
19
|
export interface IDropdownProps extends IShapeProps {
|
|
4
20
|
fontString: string;
|
|
5
21
|
fontFamily: string;
|
|
@@ -1,5 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
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 { IStyleData, Nullable } from '@univerjs/core';
|
|
17
|
+
import type { IDocumentSkeletonFontStyle } from '@univerjs/engine-render';
|
|
3
18
|
export declare const PADDING_H = 4;
|
|
4
19
|
export declare const PADDING_V = 0;
|
|
5
20
|
export declare const MARGIN_H = 4;
|
|
@@ -7,7 +22,7 @@ export declare const MARGIN_V = 4;
|
|
|
7
22
|
export declare const CELL_PADDING_H = 6;
|
|
8
23
|
export declare const CELL_PADDING_V = 6;
|
|
9
24
|
export declare const ICON_PLACE = 14;
|
|
10
|
-
export declare function measureDropdownItemText(text: string, style: Nullable<IStyleData>): import(
|
|
25
|
+
export declare function measureDropdownItemText(text: string, style: Nullable<IStyleData>): import("@univerjs/engine-render").IDocumentSkeletonBoundingBox;
|
|
11
26
|
export declare function getDropdownItemSize(text: string, fontStyle: IDocumentSkeletonFontStyle): {
|
|
12
27
|
width: number;
|
|
13
28
|
height: number;
|