@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.
Files changed (107) hide show
  1. package/lib/cjs/index.js +48 -2
  2. package/lib/cjs/locale/ca-ES.js +1 -1
  3. package/lib/cjs/locale/en-US.js +1 -1
  4. package/lib/cjs/locale/es-ES.js +1 -1
  5. package/lib/cjs/locale/fa-IR.js +1 -1
  6. package/lib/cjs/locale/fr-FR.js +1 -1
  7. package/lib/cjs/locale/ja-JP.js +1 -1
  8. package/lib/cjs/locale/ko-KR.js +1 -1
  9. package/lib/cjs/locale/ru-RU.js +1 -1
  10. package/lib/cjs/locale/sk-SK.js +1 -1
  11. package/lib/cjs/locale/vi-VN.js +1 -1
  12. package/lib/cjs/locale/zh-CN.js +1 -1
  13. package/lib/cjs/locale/zh-TW.js +1 -1
  14. package/lib/es/index.js +48 -3241
  15. package/lib/es/locale/ca-ES.js +1 -182
  16. package/lib/es/locale/en-US.js +1 -182
  17. package/lib/es/locale/es-ES.js +1 -182
  18. package/lib/es/locale/fa-IR.js +1 -182
  19. package/lib/es/locale/fr-FR.js +1 -182
  20. package/lib/es/locale/ja-JP.js +1 -182
  21. package/lib/es/locale/ko-KR.js +1 -182
  22. package/lib/es/locale/ru-RU.js +1 -182
  23. package/lib/es/locale/sk-SK.js +1 -182
  24. package/lib/es/locale/vi-VN.js +1 -182
  25. package/lib/es/locale/zh-CN.js +1 -184
  26. package/lib/es/locale/zh-TW.js +1 -182
  27. package/lib/index.css +317 -1
  28. package/lib/index.js +48 -3241
  29. package/lib/locale/ca-ES.js +1 -182
  30. package/lib/locale/en-US.js +1 -182
  31. package/lib/locale/es-ES.js +1 -182
  32. package/lib/locale/fa-IR.js +1 -182
  33. package/lib/locale/fr-FR.js +1 -182
  34. package/lib/locale/ja-JP.js +1 -182
  35. package/lib/locale/ko-KR.js +1 -182
  36. package/lib/locale/ru-RU.js +1 -182
  37. package/lib/locale/sk-SK.js +1 -182
  38. package/lib/locale/vi-VN.js +1 -182
  39. package/lib/locale/zh-CN.js +1 -184
  40. package/lib/locale/zh-TW.js +1 -182
  41. package/lib/types/commands/commands/data-validation-ui.command.d.ts +16 -1
  42. package/lib/types/commands/operations/data-validation.operation.d.ts +16 -1
  43. package/lib/types/config/config.d.ts +16 -1
  44. package/lib/types/controllers/dv-alert.controller.d.ts +15 -0
  45. package/lib/types/controllers/dv-auto-fill.controller.d.ts +15 -0
  46. package/lib/types/controllers/dv-copy-paste.controller.d.ts +15 -0
  47. package/lib/types/controllers/dv-permission.controller.d.ts +15 -0
  48. package/lib/types/controllers/dv-reject-input.controller.d.ts +15 -0
  49. package/lib/types/controllers/dv-render.controller.d.ts +15 -0
  50. package/lib/types/controllers/dv-rerender.controller.d.ts +18 -2
  51. package/lib/types/controllers/dv-ui.controller.d.ts +15 -0
  52. package/lib/types/locale/ca-ES.d.ts +16 -1
  53. package/lib/types/locale/es-ES.d.ts +16 -1
  54. package/lib/types/locale/fa-IR.d.ts +16 -1
  55. package/lib/types/locale/fr-FR.d.ts +16 -1
  56. package/lib/types/locale/ja-JP.d.ts +16 -1
  57. package/lib/types/locale/ko-KR.d.ts +16 -1
  58. package/lib/types/locale/ru-RU.d.ts +16 -1
  59. package/lib/types/locale/sk-SK.d.ts +16 -1
  60. package/lib/types/locale/vi-VN.d.ts +16 -1
  61. package/lib/types/locale/zh-CN.d.ts +16 -1
  62. package/lib/types/locale/zh-TW.d.ts +16 -1
  63. package/lib/types/menu/dv.menu.d.ts +17 -2
  64. package/lib/types/menu/schema.d.ts +16 -1
  65. package/lib/types/mobile-plugin.d.ts +16 -1
  66. package/lib/types/plugin.d.ts +16 -1
  67. package/lib/types/services/data-validation-panel.service.d.ts +19 -3
  68. package/lib/types/services/dropdown-manager.service.d.ts +20 -3
  69. package/lib/types/views/components/formula-input/BaseFormulaInput.d.ts +16 -1
  70. package/lib/types/views/components/formula-input/CheckboxFormulaInput.d.ts +16 -1
  71. package/lib/types/views/components/formula-input/CustomFormulaInput.d.ts +16 -1
  72. package/lib/types/views/components/formula-input/ListFormulaInput.d.ts +16 -1
  73. package/lib/types/views/components/formula-input/formula-input.d.ts +16 -1
  74. package/lib/types/views/components/formula-input/index.d.ts +16 -1
  75. package/lib/types/views/components/item/index.d.ts +16 -1
  76. package/lib/types/views/components/list/index.d.ts +16 -1
  77. package/lib/types/views/components/options/index.d.ts +16 -1
  78. package/lib/types/views/components/render-mode/index.d.ts +16 -1
  79. package/lib/types/views/components/show-time/index.d.ts +16 -1
  80. package/lib/types/views/validator-views/checkbox-validator-view.d.ts +15 -0
  81. package/lib/types/views/validator-views/custom-validator-view.d.ts +15 -0
  82. package/lib/types/views/validator-views/date-validator-view.d.ts +15 -0
  83. package/lib/types/views/validator-views/decimal-validator-view.d.ts +15 -0
  84. package/lib/types/views/validator-views/list-multiple-view.d.ts +15 -0
  85. package/lib/types/views/validator-views/list-validator-view.d.ts +19 -2
  86. package/lib/types/views/validator-views/sheet-validator-view.d.ts +18 -2
  87. package/lib/types/views/validator-views/text-length-validator.view.d.ts +15 -0
  88. package/lib/types/views/validator-views/whole-validator-view.d.ts +15 -0
  89. package/lib/types/views/widgets/checkbox-widget.d.ts +20 -3
  90. package/lib/types/views/widgets/dropdown-multiple-widget.d.ts +20 -3
  91. package/lib/types/views/widgets/dropdown-widget.d.ts +20 -3
  92. package/lib/types/views/widgets/shape/dropdown.d.ts +18 -2
  93. package/lib/types/views/widgets/shape/layout.d.ts +18 -3
  94. package/lib/umd/index.js +48 -2
  95. package/lib/umd/locale/ca-ES.js +1 -1
  96. package/lib/umd/locale/en-US.js +1 -1
  97. package/lib/umd/locale/es-ES.js +1 -1
  98. package/lib/umd/locale/fa-IR.js +1 -1
  99. package/lib/umd/locale/fr-FR.js +1 -1
  100. package/lib/umd/locale/ja-JP.js +1 -1
  101. package/lib/umd/locale/ko-KR.js +1 -1
  102. package/lib/umd/locale/ru-RU.js +1 -1
  103. package/lib/umd/locale/sk-SK.js +1 -1
  104. package/lib/umd/locale/vi-VN.js +1 -1
  105. package/lib/umd/locale/zh-CN.js +1 -1
  106. package/lib/umd/locale/zh-TW.js +1 -1
  107. package/package.json +17 -16
@@ -1,4 +1,19 @@
1
- import { FormulaInputType } from '@univerjs/data-validation';
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
- import { ISheetDataValidationRule } from '@univerjs/core';
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
- import { Workbook } from '@univerjs/core';
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
- import { IDataValidationRuleOptions } from '@univerjs/core';
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
- import { IDataValidationRuleOptions } from '@univerjs/core';
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
- import { IDataValidationRuleOptions } from '@univerjs/core';
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
- import { Nullable, DataValidationType } from '@univerjs/core';
2
- import { IBaseDataValidationWidget, DataValidatorDropdownType } from '@univerjs/data-validation';
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
- import { Nullable, Injector } from '@univerjs/core';
2
- import { DataValidatorDropdownType, IBaseDataValidationWidget } from '@univerjs/data-validation';
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
- import { ICellRenderContext, ICommandService, IUniverInstanceService, ThemeService } from '@univerjs/core';
2
- import { IBaseDataValidationWidget } from '@univerjs/data-validation';
3
- import { IMouseEvent, IPointerEvent, UniverRenderingContext2D, IRenderManagerService } from '@univerjs/engine-render';
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
- import { ICellRenderContext, ICommandService, IUniverInstanceService } from '@univerjs/core';
2
- import { IBaseDataValidationWidget } from '@univerjs/data-validation';
3
- import { IMouseEvent, IPointerEvent, Spreadsheet, SpreadsheetSkeleton, UniverRenderingContext2D, IRenderManagerService } from '@univerjs/engine-render';
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
- import { ICellRenderContext, ICommandService, IUniverInstanceService, LocaleService } from '@univerjs/core';
2
- import { IBaseDataValidationWidget } from '@univerjs/data-validation';
3
- import { IMouseEvent, IPointerEvent, SpreadsheetSkeleton, UniverRenderingContext2D, IRenderManagerService } from '@univerjs/engine-render';
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
- import { IShapeProps, UniverRenderingContext, Shape } from '@univerjs/engine-render';
2
- import { IDropdownLayoutInfo } from './layout';
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
- import { IStyleData, Nullable } from '@univerjs/core';
2
- import { IDocumentSkeletonFontStyle } from '@univerjs/engine-render';
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('@univerjs/engine-render').IDocumentSkeletonBoundingBox;
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;