@univerjs/sheets-table-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 (87) hide show
  1. package/lib/cjs/index.js +74 -1
  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 +74 -2587
  15. package/lib/es/locale/ca-ES.js +1 -125
  16. package/lib/es/locale/en-US.js +1 -125
  17. package/lib/es/locale/es-ES.js +1 -125
  18. package/lib/es/locale/fa-IR.js +1 -125
  19. package/lib/es/locale/fr-FR.js +1 -125
  20. package/lib/es/locale/ja-JP.js +1 -125
  21. package/lib/es/locale/ko-KR.js +1 -125
  22. package/lib/es/locale/ru-RU.js +1 -125
  23. package/lib/es/locale/sk-SK.js +1 -125
  24. package/lib/es/locale/vi-VN.js +1 -125
  25. package/lib/es/locale/zh-CN.js +1 -125
  26. package/lib/es/locale/zh-TW.js +1 -125
  27. package/lib/index.css +466 -1
  28. package/lib/index.js +74 -2587
  29. package/lib/locale/ca-ES.js +1 -125
  30. package/lib/locale/en-US.js +1 -125
  31. package/lib/locale/es-ES.js +1 -125
  32. package/lib/locale/fa-IR.js +1 -125
  33. package/lib/locale/fr-FR.js +1 -125
  34. package/lib/locale/ja-JP.js +1 -125
  35. package/lib/locale/ko-KR.js +1 -125
  36. package/lib/locale/ru-RU.js +1 -125
  37. package/lib/locale/sk-SK.js +1 -125
  38. package/lib/locale/vi-VN.js +1 -125
  39. package/lib/locale/zh-CN.js +1 -125
  40. package/lib/locale/zh-TW.js +1 -125
  41. package/lib/types/commands/operations/open-table-filter-dialog.opration.d.ts +16 -1
  42. package/lib/types/commands/operations/open-table-selector.operation.d.ts +17 -1
  43. package/lib/types/config/config.d.ts +16 -1
  44. package/lib/types/controllers/sheet-table-anchor.controller.d.ts +20 -3
  45. package/lib/types/controllers/sheet-table-component.controller.d.ts +17 -1
  46. package/lib/types/controllers/sheet-table-filter-button-render.controller.d.ts +18 -2
  47. package/lib/types/controllers/sheet-table-render.controller.d.ts +18 -2
  48. package/lib/types/controllers/sheet-table-selection.controller.d.ts +15 -0
  49. package/lib/types/controllers/sheet-table-theme-ui.controller.d.ts +16 -1
  50. package/lib/types/locale/ca-ES.d.ts +16 -1
  51. package/lib/types/locale/es-ES.d.ts +16 -1
  52. package/lib/types/locale/fa-IR.d.ts +16 -1
  53. package/lib/types/locale/fr-FR.d.ts +16 -1
  54. package/lib/types/locale/ja-JP.d.ts +16 -1
  55. package/lib/types/locale/ko-KR.d.ts +16 -1
  56. package/lib/types/locale/ru-RU.d.ts +16 -1
  57. package/lib/types/locale/sk-SK.d.ts +16 -1
  58. package/lib/types/locale/vi-VN.d.ts +16 -1
  59. package/lib/types/locale/zh-CN.d.ts +16 -1
  60. package/lib/types/locale/zh-TW.d.ts +16 -1
  61. package/lib/types/menu/menu.d.ts +19 -3
  62. package/lib/types/menu/schema.d.ts +16 -1
  63. package/lib/types/menu/sheet-table-menu.controller.d.ts +15 -0
  64. package/lib/types/plugin.d.ts +16 -1
  65. package/lib/types/services/sheets-table-ui-service.d.ts +19 -2
  66. package/lib/types/views/components/SheetTableConditionPanel.d.ts +17 -2
  67. package/lib/types/views/components/SheetTableItemsFilterPanel.d.ts +17 -2
  68. package/lib/types/views/components/SheetTableSelector.d.ts +16 -1
  69. package/lib/types/views/components/SheetTableThemePanel.d.ts +16 -1
  70. package/lib/types/views/components/type.d.ts +16 -1
  71. package/lib/types/views/components/util.d.ts +20 -3
  72. package/lib/types/views/widgets/drawings.d.ts +16 -1
  73. package/lib/types/views/widgets/table-filter-button.shape.d.ts +17 -1
  74. package/lib/umd/index.js +74 -1
  75. package/lib/umd/locale/ca-ES.js +1 -1
  76. package/lib/umd/locale/en-US.js +1 -1
  77. package/lib/umd/locale/es-ES.js +1 -1
  78. package/lib/umd/locale/fa-IR.js +1 -1
  79. package/lib/umd/locale/fr-FR.js +1 -1
  80. package/lib/umd/locale/ja-JP.js +1 -1
  81. package/lib/umd/locale/ko-KR.js +1 -1
  82. package/lib/umd/locale/ru-RU.js +1 -1
  83. package/lib/umd/locale/sk-SK.js +1 -1
  84. package/lib/umd/locale/vi-VN.js +1 -1
  85. package/lib/umd/locale/zh-CN.js +1 -1
  86. package/lib/umd/locale/zh-TW.js +1 -1
  87. package/package.json +16 -15
@@ -1,3 +1,18 @@
1
- import { default as enUS } from './en-US';
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 enUS from './en-US';
2
17
  declare const locale: typeof enUS;
3
18
  export default locale;
@@ -1,3 +1,18 @@
1
- import { default as enUS } from './en-US';
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 enUS from './en-US';
2
17
  declare const locale: typeof enUS;
3
18
  export default locale;
@@ -1,6 +1,22 @@
1
- import { IAccessor } from '@univerjs/core';
2
- import { IMenuItem, IMenuSelectorItem, MenuItemType } from '@univerjs/ui';
3
- import { Observable } from 'rxjs';
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 { IAccessor } from '@univerjs/core';
17
+ import type { IMenuItem, IMenuSelectorItem } from '@univerjs/ui';
18
+ import type { Observable } from 'rxjs';
19
+ import { MenuItemType } from '@univerjs/ui';
4
20
  export declare const SHEET_TABLE_CONTEXT_INSERT_MENU_ID = "sheet.table.context-insert_menu-id";
5
21
  export declare const SHEET_TABLE_CONTEXT_REMOVE_MENU_ID = "sheet.table.context-remove_menu-id";
6
22
  export declare function sheetTableToolbarInsertMenuFactory(accessor: IAccessor): IMenuItem;
@@ -1,2 +1,17 @@
1
- import { MenuSchemaType } from '@univerjs/ui';
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 { MenuSchemaType } from '@univerjs/ui';
2
17
  export declare const menuSchema: MenuSchemaType;
@@ -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 { Disposable } from '@univerjs/core';
2
17
  import { ComponentManager, IMenuManagerService } from '@univerjs/ui';
3
18
  export declare class SheetTableMenuController extends Disposable {
@@ -1,4 +1,19 @@
1
- import { IUniverSheetsTableUIConfig } from './config/config';
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 { IUniverSheetsTableUIConfig } from './config/config';
2
17
  import { ICommandService, IConfigService, Injector, Plugin, UniverInstanceType } from '@univerjs/core';
3
18
  import { IRenderManagerService } from '@univerjs/engine-render';
4
19
  export declare class UniverSheetsTableUIPlugin extends Plugin {
@@ -1,6 +1,23 @@
1
- import { ITableFilterItem, SheetTableService, TableManager } from '@univerjs/sheets-table';
2
- import { ITableFilterItemList, FilterByEnum } from '../types';
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 { ITableFilterItem } from '@univerjs/sheets-table';
17
+ import type { ITableFilterItemList } from '../types';
3
18
  import { Disposable, ICommandService, IUniverInstanceService, LocaleService } from '@univerjs/core';
19
+ import { SheetTableService, TableManager } from '@univerjs/sheets-table';
20
+ import { FilterByEnum } from '../types';
4
21
  interface ISheetTableFilterPanelProps {
5
22
  unitId: string;
6
23
  subUnitId: string;
@@ -1,5 +1,20 @@
1
- import { ITableFilterItem } from '@univerjs/sheets-table';
2
- import { IConditionInfo } from './type';
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 { ITableFilterItem } from '@univerjs/sheets-table';
17
+ import type { IConditionInfo } from './type';
3
18
  interface IConditionFilterProps {
4
19
  unitId: string;
5
20
  subUnitId: string;
@@ -1,5 +1,20 @@
1
- import { ITableFilterItem } from '@univerjs/sheets-table';
2
- import { Dispatch, SetStateAction } from 'react';
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 { ITableFilterItem } from '@univerjs/sheets-table';
17
+ import type { Dispatch, SetStateAction } from 'react';
3
18
  interface ISheetTableItemsFilterPanelProps {
4
19
  unitId: string;
5
20
  subUnitId: string;
@@ -1,4 +1,19 @@
1
- import { ITableSelectionInfo } from '../../commands/operations/open-table-selector.operation';
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 { ITableSelectionInfo } from '../../commands/operations/open-table-selector.operation';
2
17
  export declare const SheetTableSelector: (props: ITableSelectionInfo & {
3
18
  onConfirm: (info: ITableSelectionInfo) => void;
4
19
  onCancel: () => void;
@@ -1,4 +1,19 @@
1
- import { ITableSetConfig } from '@univerjs/sheets-table';
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 { ITableSetConfig } from '@univerjs/sheets-table';
2
17
  export interface ISheetTableThemePanelProps {
3
18
  unitId: string;
4
19
  subUnitId: string;
@@ -1,4 +1,19 @@
1
- import { TableConditionTypeEnum, TableDateCompareTypeEnum, TableNumberCompareTypeEnum, TableStringCompareTypeEnum } from '@univerjs/sheets-table';
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 { TableConditionTypeEnum, TableDateCompareTypeEnum, TableNumberCompareTypeEnum, TableStringCompareTypeEnum } from '@univerjs/sheets-table';
2
17
  export declare enum ConditionSubComponentEnum {
3
18
  DatePicker = "DatePicker",
4
19
  DateRange = "DateRange",
@@ -1,6 +1,23 @@
1
- import { Injector } from '@univerjs/core';
2
- import { ITableFilterItem, TableConditionTypeEnum, TableDateCompareTypeEnum, TableNumberCompareTypeEnum, TableStringCompareTypeEnum } from '@univerjs/sheets-table';
3
- import { IConditionCompareTypeEnum, ConditionSubComponentEnum } from './type';
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 { Injector } from '@univerjs/core';
17
+ import type { ITableFilterItem } from '@univerjs/sheets-table';
18
+ import type { IConditionCompareTypeEnum } from './type';
19
+ import { TableConditionTypeEnum, TableDateCompareTypeEnum, TableNumberCompareTypeEnum, TableStringCompareTypeEnum } from '@univerjs/sheets-table';
20
+ import { ConditionSubComponentEnum } from './type';
4
21
  export declare function getCascaderListOptions(injector: Injector): ({
5
22
  value: TableConditionTypeEnum;
6
23
  label: string;
@@ -1,4 +1,19 @@
1
- import { UniverRenderingContext2D } 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 { UniverRenderingContext2D } from '@univerjs/engine-render';
2
17
  export declare const PIVOT_BUTTON_EMPTY: Path2D;
3
18
  export declare class TableButton {
4
19
  static drawNoSetting(ctx: UniverRenderingContext2D, size: number, fgColor: string, bgColor: string): void;
@@ -1,5 +1,21 @@
1
- import { IMouseEvent, IPointerEvent, IShapeProps, UniverRenderingContext2D, Shape } 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 { IMouseEvent, IPointerEvent, IShapeProps, UniverRenderingContext2D } from '@univerjs/engine-render';
2
17
  import { ICommandService, IContextService, ThemeService } from '@univerjs/core';
18
+ import { Shape } from '@univerjs/engine-render';
3
19
  import { SheetsTableButtonStateEnum } from '@univerjs/sheets-table';
4
20
  export declare const FILTER_ICON_SIZE = 16;
5
21
  export declare const FILTER_ICON_PADDING = 1;