@univerjs/sheets-ui 1.0.0-rc.0 → 1.0.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/facade.js +5 -13
- package/lib/cjs/index.js +7439 -6538
- package/lib/cjs/locale/ar-SA.js +0 -1
- package/lib/cjs/locale/ca-ES.js +0 -1
- package/lib/cjs/locale/de-DE.js +0 -1
- package/lib/cjs/locale/en-US.js +0 -1
- package/lib/cjs/locale/es-ES.js +0 -1
- package/lib/cjs/locale/fa-IR.js +0 -1
- package/lib/cjs/locale/fr-FR.js +0 -1
- package/lib/cjs/locale/id-ID.js +0 -1
- package/lib/cjs/locale/it-IT.js +0 -1
- package/lib/cjs/locale/ja-JP.js +0 -1
- package/lib/cjs/locale/ko-KR.js +0 -1
- package/lib/cjs/locale/pl-PL.js +0 -1
- package/lib/cjs/locale/pt-BR.js +0 -1
- package/lib/cjs/locale/ru-RU.js +0 -1
- package/lib/cjs/locale/sk-SK.js +0 -1
- package/lib/cjs/locale/vi-VN.js +0 -1
- package/lib/cjs/locale/zh-CN.js +0 -1
- package/lib/cjs/locale/zh-HK.js +0 -1
- package/lib/cjs/locale/zh-TW.js +0 -1
- package/lib/es/facade.js +5 -13
- package/lib/es/index.js +7444 -6543
- package/lib/facade.js +5 -13
- package/lib/index.js +7444 -6543
- package/lib/types/components/border-panel/BorderPanel.d.ts +17 -0
- package/lib/types/components/border-panel/border-line/BorderLine.d.ts +22 -0
- package/lib/types/components/border-panel/border-line/icons/BorderDashDot.d.ts +18 -0
- package/lib/types/components/border-panel/border-line/icons/BorderDashDotDot.d.ts +18 -0
- package/lib/types/components/border-panel/border-line/icons/BorderDashed.d.ts +18 -0
- package/lib/types/components/border-panel/border-line/icons/BorderDotted.d.ts +18 -0
- package/lib/types/components/border-panel/border-line/icons/BorderDouble.d.ts +18 -0
- package/lib/types/components/border-panel/border-line/icons/BorderHair.d.ts +18 -0
- package/lib/types/components/border-panel/border-line/icons/BorderMedium.d.ts +18 -0
- package/lib/types/components/border-panel/border-line/icons/BorderMediumDashDot.d.ts +18 -0
- package/lib/types/components/border-panel/border-line/icons/BorderMediumDashDotDot.d.ts +18 -0
- package/lib/types/components/border-panel/border-line/icons/BorderMediumDashed.d.ts +18 -0
- package/lib/types/components/border-panel/border-line/icons/BorderThick.d.ts +18 -0
- package/lib/types/components/border-panel/border-line/icons/BorderThin.d.ts +18 -0
- package/lib/types/components/border-panel/interface.d.ts +25 -0
- package/lib/types/components/const.d.ts +16 -0
- package/lib/types/components/hook.d.ts +21 -0
- package/lib/types/components/menu-item-frozen/MenuItemFrozen.d.ts +17 -0
- package/lib/types/components/menu-item-frozen/index.d.ts +17 -0
- package/lib/types/components/menu-item-frozen/interface.d.ts +20 -0
- package/lib/types/components/menu-item-input/MenuItemInput.d.ts +17 -0
- package/lib/types/components/menu-item-input/index.d.ts +17 -0
- package/lib/types/components/menu-item-input/interface.d.ts +25 -0
- package/lib/types/controllers/auto-fill-ui.controller.d.ts +7 -1
- package/lib/types/controllers/cell-alert.controller.d.ts +25 -0
- package/lib/types/controllers/mobile/mobile-sheet-ui.controller.d.ts +35 -0
- package/lib/types/controllers/render-controllers/desktop-cell-edit.render-controller.d.ts +49 -0
- package/lib/types/controllers/render-controllers/editor-bridge.render-controller.d.ts +2 -17
- package/lib/types/controllers/render-controllers/format-painter.render-controller.d.ts +5 -1
- package/lib/types/controllers/render-controllers/mobile/mobile-cell-edit.render-controller.d.ts +30 -0
- package/lib/types/controllers/render-controllers/mobile/mobile-hover.render-controller.d.ts +9 -0
- package/lib/types/controllers/render-controllers/mobile/mobile-scroll.render-controller.d.ts +0 -12
- package/lib/types/controllers/sheet-ui.controller.d.ts +35 -0
- package/lib/types/facade/f-range.d.ts +4 -4
- package/lib/types/facade/f-sheet-hooks.d.ts +125 -0
- package/lib/types/facade/f-workbook-permission.d.ts +39 -0
- package/lib/types/facade/f-workbook.d.ts +2 -2
- package/lib/types/facade/f-worksheet.d.ts +12 -8
- package/lib/types/menu/mobile-menu.d.ts +16 -0
- package/lib/types/menu/mobile-schema.d.ts +17 -0
- package/lib/types/services/canvas-pop-manager.service.d.ts +2 -3
- package/lib/types/services/clipboard/html-to-usm/utils.d.ts +2 -0
- package/lib/types/services/selection/selection-render.service.d.ts +3 -0
- package/lib/types/views/auto-fill-popup-menu/AutoFillPopupMenu.d.ts +1 -5
- package/lib/types/views/auto-fill-popup-menu/component-name.d.ts +16 -0
- package/lib/types/views/cell-popup/index.d.ts +22 -0
- package/lib/types/views/dropdown/cascader-dropdown/index.d.ts +29 -0
- package/lib/types/views/dropdown/color-dropdown/index.d.ts +27 -0
- package/lib/types/views/dropdown/date-dropdown/index.d.ts +30 -0
- package/lib/types/views/dropdown/list-dropdown/index.d.ts +36 -0
- package/lib/types/views/permission/error-msg-dialog/index.d.ts +18 -0
- package/lib/types/views/permission/panel/index.d.ts +24 -0
- package/lib/types/views/permission/panel-list/index.d.ts +16 -0
- package/lib/types/views/permission/permission-dialog/index.d.ts +16 -0
- package/lib/types/views/permission/spin/index.d.ts +22 -0
- package/lib/types/views/permission/user-dialog/index.d.ts +16 -0
- package/lib/types/views/sheet-container/SheetContainer.d.ts +1 -8
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +10 -28
- package/package.json +16 -16
|
@@ -0,0 +1,17 @@
|
|
|
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 { IBorderPanelProps } from './interface';
|
|
17
|
+
export declare function BorderPanel(props: IBorderPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,22 @@
|
|
|
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 { BorderStyleTypes } from '@univerjs/core';
|
|
17
|
+
interface IBorderLineProps {
|
|
18
|
+
className: string;
|
|
19
|
+
type: BorderStyleTypes;
|
|
20
|
+
}
|
|
21
|
+
export declare function BorderLine(props: IBorderLineProps): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export {};
|
|
@@ -0,0 +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
|
+
*/
|
|
16
|
+
export declare const BorderDashDot: ({ className }: {
|
|
17
|
+
className: string;
|
|
18
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +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
|
+
*/
|
|
16
|
+
export declare const BorderDashDotDot: ({ className }: {
|
|
17
|
+
className: string;
|
|
18
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +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
|
+
*/
|
|
16
|
+
export declare const BorderDashed: ({ className }: {
|
|
17
|
+
className: string;
|
|
18
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +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
|
+
*/
|
|
16
|
+
export declare const BorderDotted: ({ className }: {
|
|
17
|
+
className: string;
|
|
18
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +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
|
+
*/
|
|
16
|
+
export declare const BorderDouble: ({ className }: {
|
|
17
|
+
className: string;
|
|
18
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +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
|
+
*/
|
|
16
|
+
export declare const BorderHair: ({ className }: {
|
|
17
|
+
className: string;
|
|
18
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +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
|
+
*/
|
|
16
|
+
export declare const BorderMedium: ({ className }: {
|
|
17
|
+
className: string;
|
|
18
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +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
|
+
*/
|
|
16
|
+
export declare const BorderMediumDashDot: ({ className }: {
|
|
17
|
+
className: string;
|
|
18
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +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
|
+
*/
|
|
16
|
+
export declare const BorderMediumDashDotDot: ({ className }: {
|
|
17
|
+
className: string;
|
|
18
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +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
|
+
*/
|
|
16
|
+
export declare const BorderMediumDashed: ({ className }: {
|
|
17
|
+
className: string;
|
|
18
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +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
|
+
*/
|
|
16
|
+
export declare const BorderThick: ({ className }: {
|
|
17
|
+
className: string;
|
|
18
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +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
|
+
*/
|
|
16
|
+
export declare const BorderThin: ({ className }: {
|
|
17
|
+
className: string;
|
|
18
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,25 @@
|
|
|
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 { IBorderInfo } from '@univerjs/sheets';
|
|
17
|
+
import type { ICustomComponentProps } from '@univerjs/ui';
|
|
18
|
+
export declare const BORDER_PANEL_COMPONENT = "UI_PLUGIN_SHEETS_BORDER_PANEL_COMPONENT";
|
|
19
|
+
export interface IBorderPanelProps extends ICustomComponentProps<IBorderInfo> {
|
|
20
|
+
}
|
|
21
|
+
export declare const BORDER_LINE_CHILDREN: {
|
|
22
|
+
label: string;
|
|
23
|
+
icon: string;
|
|
24
|
+
value: string;
|
|
25
|
+
}[];
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
export declare const COMPONENT_PREFIX = "UI_PLUGIN_SHEETS";
|
|
@@ -0,0 +1,21 @@
|
|
|
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';
|
|
17
|
+
import { SheetSkeletonManagerService } from '../services/sheet-skeleton-manager.service';
|
|
18
|
+
export declare function useActiveWorkbook(): Workbook | null;
|
|
19
|
+
export declare function useActiveWorksheet(workbook?: Workbook | null): import("@univerjs/core").Nullable<import("@univerjs/core").Worksheet>;
|
|
20
|
+
export declare function useWorkbooks(): Workbook[];
|
|
21
|
+
export declare function useSheetSkeleton(): SheetSkeletonManagerService | null | undefined;
|
|
@@ -0,0 +1,17 @@
|
|
|
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 { IMenuItemFrozenProps } from './interface';
|
|
17
|
+
export declare const MenuItemFrozen: (props: IMenuItemFrozenProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
export { MENU_ITEM_FROZEN_COMPONENT } from './interface';
|
|
17
|
+
export { MenuItemFrozen } from './MenuItemFrozen';
|
|
@@ -0,0 +1,20 @@
|
|
|
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 { ICustomComponentProps } from '@univerjs/ui';
|
|
17
|
+
export declare const MENU_ITEM_FROZEN_COMPONENT = "UI_PLUGIN_SHEETS_MENU_ITEM_FROZEN_COMPONENT";
|
|
18
|
+
export interface IMenuItemFrozenProps extends ICustomComponentProps<string> {
|
|
19
|
+
type: 'row' | 'col' | 'all';
|
|
20
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
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 { IMenuItemInputProps } from './interface';
|
|
17
|
+
export declare const MenuItemInput: (props: IMenuItemInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
export { MENU_ITEM_INPUT_COMPONENT } from './interface';
|
|
17
|
+
export { MenuItemInput } from './MenuItemInput';
|
|
@@ -0,0 +1,25 @@
|
|
|
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 { ICustomComponentProps } from '@univerjs/ui';
|
|
17
|
+
import type { Observable } from 'rxjs';
|
|
18
|
+
export declare const MENU_ITEM_INPUT_COMPONENT = "UI_PLUGIN_SHEETS_MENU_ITEM_INPUT_COMPONENT";
|
|
19
|
+
export interface IMenuItemInputProps extends ICustomComponentProps<string> {
|
|
20
|
+
prefix: string;
|
|
21
|
+
suffix: string;
|
|
22
|
+
min?: number;
|
|
23
|
+
max?: number;
|
|
24
|
+
disabled$?: Observable<boolean>;
|
|
25
|
+
}
|
|
@@ -17,6 +17,7 @@ import type { IRange, Workbook, Worksheet } from '@univerjs/core';
|
|
|
17
17
|
import type { IRenderContext, IRenderModule } from '@univerjs/engine-render';
|
|
18
18
|
import { Disposable, ICommandService, IUniverInstanceService } from '@univerjs/core';
|
|
19
19
|
import { AutoFillController, IAutoFillService, SheetsSelectionsService } from '@univerjs/sheets';
|
|
20
|
+
import { SheetCanvasPopManagerService } from '../services/canvas-pop-manager.service';
|
|
20
21
|
import { IEditorBridgeService } from '../services/editor-bridge.service';
|
|
21
22
|
import { ISheetSelectionRenderService } from '../services/selection/base-selection-render.service';
|
|
22
23
|
import { SheetsRenderService } from '../services/sheets-render.service';
|
|
@@ -26,13 +27,18 @@ export declare class AutoFillUIController extends Disposable {
|
|
|
26
27
|
private readonly _autoFillService;
|
|
27
28
|
private _autoFillController;
|
|
28
29
|
private _sheetsRenderService;
|
|
30
|
+
private readonly _sheetCanvasPopManagerService;
|
|
29
31
|
private _currentLocation;
|
|
30
|
-
|
|
32
|
+
private _popupDisposable;
|
|
33
|
+
constructor(_univerInstanceService: IUniverInstanceService, _commandService: ICommandService, _autoFillService: IAutoFillService, _autoFillController: AutoFillController, _sheetsRenderService: SheetsRenderService, _sheetCanvasPopManagerService: SheetCanvasPopManagerService);
|
|
31
34
|
private _init;
|
|
35
|
+
private _initPopup;
|
|
36
|
+
private _disposePopup;
|
|
32
37
|
private _initSkeletonChange;
|
|
33
38
|
private _initDefaultHook;
|
|
34
39
|
private _initQuitListener;
|
|
35
40
|
private _quit;
|
|
41
|
+
dispose(): void;
|
|
36
42
|
}
|
|
37
43
|
export declare class AutoFillRenderController extends Disposable implements IRenderModule {
|
|
38
44
|
private readonly _context;
|
|
@@ -0,0 +1,25 @@
|
|
|
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';
|
|
17
|
+
import type { IRenderContext, IRenderModule } from '@univerjs/engine-render';
|
|
18
|
+
import { Disposable } from '@univerjs/core';
|
|
19
|
+
import { ComponentManager } from '@univerjs/ui';
|
|
20
|
+
export declare class CellAlertRenderController extends Disposable implements IRenderModule {
|
|
21
|
+
private readonly _context;
|
|
22
|
+
private _componentManager;
|
|
23
|
+
constructor(_context: IRenderContext<Workbook>, _componentManager: ComponentManager);
|
|
24
|
+
private _initComponent;
|
|
25
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
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 { Disposable, ICommandService, IConfigService, Injector } from '@univerjs/core';
|
|
17
|
+
import { ComponentManager, ILayoutService, IMenuManagerService, IShortcutService, IUIPartsService } from '@univerjs/ui';
|
|
18
|
+
export declare class SheetUIMobileController extends Disposable {
|
|
19
|
+
protected readonly _injector: Injector;
|
|
20
|
+
protected readonly _componentManager: ComponentManager;
|
|
21
|
+
protected readonly _layoutService: ILayoutService;
|
|
22
|
+
protected readonly _commandService: ICommandService;
|
|
23
|
+
protected readonly _shortcutService: IShortcutService;
|
|
24
|
+
protected readonly _menuManagerService: IMenuManagerService;
|
|
25
|
+
protected readonly _uiPartsService: IUIPartsService;
|
|
26
|
+
protected readonly _configService: IConfigService;
|
|
27
|
+
constructor(_injector: Injector, _componentManager: ComponentManager, _layoutService: ILayoutService, _commandService: ICommandService, _shortcutService: IShortcutService, _menuManagerService: IMenuManagerService, _uiPartsService: IUIPartsService, _configService: IConfigService);
|
|
28
|
+
private _init;
|
|
29
|
+
private _initComponents;
|
|
30
|
+
private _initCommands;
|
|
31
|
+
private _initMenus;
|
|
32
|
+
private _initShortcuts;
|
|
33
|
+
private _initWorkbenchParts;
|
|
34
|
+
private _initFocusHandler;
|
|
35
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
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';
|
|
17
|
+
import type { IRenderContext, IRenderModule } from '@univerjs/engine-render';
|
|
18
|
+
import { ICommandService, IContextService, IUniverInstanceService, RxDisposable } from '@univerjs/core';
|
|
19
|
+
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
20
|
+
import { SheetsSelectionsService } from '@univerjs/sheets';
|
|
21
|
+
import { IEditorBridgeService } from '../../services/editor-bridge.service';
|
|
22
|
+
import { ISheetEmbedRuntimeFocusCoordinator } from '../../services/sheet-embed-integration.service';
|
|
23
|
+
export declare class DesktopCellEditRenderController extends RxDisposable implements IRenderModule {
|
|
24
|
+
private readonly _context;
|
|
25
|
+
private readonly _instanceService;
|
|
26
|
+
private readonly _commandService;
|
|
27
|
+
private readonly _editorBridgeService;
|
|
28
|
+
private readonly _selectionManagerService;
|
|
29
|
+
private readonly _contextService;
|
|
30
|
+
private readonly _renderManagerService;
|
|
31
|
+
private readonly _embedRuntimeFocusCoordinator?;
|
|
32
|
+
private _d;
|
|
33
|
+
constructor(_context: IRenderContext<Workbook>, _instanceService: IUniverInstanceService, _commandService: ICommandService, _editorBridgeService: IEditorBridgeService, _selectionManagerService: SheetsSelectionsService, _contextService: IContextService, _renderManagerService: IRenderManagerService, _embedRuntimeFocusCoordinator?: ISheetEmbedRuntimeFocusCoordinator | undefined);
|
|
34
|
+
private _init;
|
|
35
|
+
private _disposeCurrent;
|
|
36
|
+
private _initEventListener;
|
|
37
|
+
private _initialKeyboardListener;
|
|
38
|
+
private _initSheetFocusListener;
|
|
39
|
+
private _initInputPositionListener;
|
|
40
|
+
private _updateInputPosition;
|
|
41
|
+
private _focusCellEditorInput;
|
|
42
|
+
private _showEditorByKeyboard;
|
|
43
|
+
private _tryHideEditor;
|
|
44
|
+
private _isEmbeddedFormulaEditorActive;
|
|
45
|
+
private _isCurrentEmbedRuntimeEvent;
|
|
46
|
+
private _hideEditor;
|
|
47
|
+
private _getSheetObject;
|
|
48
|
+
private _isCurrentSheetFocused;
|
|
49
|
+
}
|
|
@@ -15,8 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import type { Workbook } from '@univerjs/core';
|
|
17
17
|
import type { IRenderContext, IRenderModule } from '@univerjs/engine-render';
|
|
18
|
-
import { ICommandService,
|
|
19
|
-
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
18
|
+
import { ICommandService, IUniverInstanceService, RxDisposable } from '@univerjs/core';
|
|
20
19
|
import { SheetsSelectionsService } from '@univerjs/sheets';
|
|
21
20
|
import { IEditorBridgeService } from '../../services/editor-bridge.service';
|
|
22
21
|
import { ISheetEmbedRuntimeFocusCoordinator } from '../../services/sheet-embed-integration.service';
|
|
@@ -27,32 +26,18 @@ export declare class EditorBridgeRenderController extends RxDisposable implement
|
|
|
27
26
|
private readonly _commandService;
|
|
28
27
|
private readonly _editorBridgeService;
|
|
29
28
|
private readonly _selectionManagerService;
|
|
30
|
-
private readonly _contextService;
|
|
31
|
-
private readonly _renderManagerService;
|
|
32
29
|
private readonly _sheetSkeletonManagerService;
|
|
33
30
|
private readonly _embedRuntimeFocusCoordinator?;
|
|
34
31
|
private _d;
|
|
35
|
-
constructor(_context: IRenderContext<Workbook>, _instanceSrv: IUniverInstanceService, _commandService: ICommandService, _editorBridgeService: IEditorBridgeService, _selectionManagerService: SheetsSelectionsService,
|
|
32
|
+
constructor(_context: IRenderContext<Workbook>, _instanceSrv: IUniverInstanceService, _commandService: ICommandService, _editorBridgeService: IEditorBridgeService, _selectionManagerService: SheetsSelectionsService, _sheetSkeletonManagerService: SheetSkeletonManagerService, _embedRuntimeFocusCoordinator?: ISheetEmbedRuntimeFocusCoordinator | undefined);
|
|
36
33
|
private _init;
|
|
37
34
|
private _disposeCurrent;
|
|
38
35
|
private _initSelectionChangeListener;
|
|
39
36
|
private _updateEditorPosition;
|
|
40
|
-
private _updateInputPosition;
|
|
41
37
|
refreshEditorPosition(): void;
|
|
42
|
-
private _initEventListener;
|
|
43
|
-
/**
|
|
44
|
-
* Should activate the editor when the user inputs text.
|
|
45
|
-
* @param d DisposableCollection
|
|
46
|
-
*/
|
|
47
|
-
private _initialKeyboardListener;
|
|
48
|
-
private _initSheetFocusListener;
|
|
49
|
-
private _focusCellEditorInput;
|
|
50
38
|
private _commandExecutedListener;
|
|
51
|
-
private _showEditorByKeyboard;
|
|
52
39
|
private _tryHideEditor;
|
|
53
40
|
private _isEmbeddedFormulaEditorActive;
|
|
54
|
-
private _isCurrentEmbedRuntimeEvent;
|
|
55
41
|
private _hideEditor;
|
|
56
42
|
private _getSheetObject;
|
|
57
|
-
private _isCurrentSheetFocused;
|
|
58
43
|
}
|