@univerjs/sheets-hyper-link-ui 0.2.14 → 0.2.15
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 +2 -2
- package/lib/es/index.js +295 -283
- package/lib/index.css +1 -1
- package/lib/types/common/util.d.ts +15 -2
- package/lib/types/controllers/menu.d.ts +2 -3
- package/lib/types/services/popup.service.d.ts +5 -5
- package/lib/types/utils/index.d.ts +4 -0
- package/lib/umd/index.js +2 -2
- package/package.json +22 -22
package/lib/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.univer-cell-link{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:12px;box-shadow:var(--box-shadow-base);border-radius:8px;border:1px solid rgb(var(--grey-200));background:rgb(var(--color-white));max-width:328px;overflow:hidden}.univer-cell-link-type{height:20px;width:20px;font-size:16px;margin-right:8px;display:flex;align-items:center;justify-content:center;flex:0 0 auto;color:rgb(var(--color-black))}.univer-cell-link-content{height:24px;display:flex;flex-direction:row;align-items:center;font-size:13px;line-height:20px;color:rgb(var(--blue-500));cursor:pointer;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.univer-cell-link-content-error{color:rgb(var(--grey-500))}.univer-cell-link-url{flex:1;overflow:hidden;text-overflow:ellipsis}.univer-cell-link-operations{display:flex;flex-direction:row;justify-content:center;align-items:center;height:24px;flex-basis:auto;flex-grow:0;flex-shrink:0}.univer-cell-link-operation{width:24px;height:24px;margin-left:8px;font-size:16px;display:flex;flex-direction:row;justify-content:center;align-items:center;cursor:pointer;border-radius:4px}.univer-cell-link-operation-error{color:rgb(var(--grey-500))}.univer-cell-link-operation:hover{background:#ccc}
|
|
1
|
+
.univer-cell-link-edit{padding:16px;background-color:rgb(var(--color-white));width:296px;box-sizing:border-box;border-radius:var(--border-radius-xl);border:1px solid rgb(var(--grey-200));box-shadow:0 4px 10px -1px #1116281a}.univer-cell-link-edit-buttons{display:flex;flex-direction:row;justify-content:flex-end}.univer-cell-link{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:12px;box-shadow:var(--box-shadow-base);border-radius:8px;border:1px solid rgb(var(--grey-200));background:rgb(var(--color-white));max-width:328px;overflow:hidden}.univer-cell-link-type{height:20px;width:20px;font-size:16px;margin-right:8px;display:flex;align-items:center;justify-content:center;flex:0 0 auto;color:rgb(var(--color-black))}.univer-cell-link-content{height:24px;display:flex;flex-direction:row;align-items:center;font-size:13px;line-height:20px;color:rgb(var(--blue-500));cursor:pointer;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.univer-cell-link-content-error{color:rgb(var(--grey-500))}.univer-cell-link-url{flex:1;overflow:hidden;text-overflow:ellipsis}.univer-cell-link-operations{display:flex;flex-direction:row;justify-content:center;align-items:center;height:24px;flex-basis:auto;flex-grow:0;flex-shrink:0}.univer-cell-link-operation{width:24px;height:24px;margin-left:8px;font-size:16px;display:flex;flex-direction:row;justify-content:center;align-items:center;cursor:pointer;border-radius:4px}.univer-cell-link-operation-error{color:rgb(var(--grey-500))}.univer-cell-link-operation:hover{background:#ccc}
|
|
@@ -1,6 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
2
16
|
export declare function isLegalLink(link: string): boolean;
|
|
3
17
|
export declare function hasProtocol(urlString: string): boolean;
|
|
4
18
|
export declare function isEmail(url: string): boolean;
|
|
5
19
|
export declare function serializeUrl(urlStr: string): string;
|
|
6
|
-
export declare function getCellValueOrigin(cell: Nullable<ICellData>): Nullable<import('@univerjs/core').CellValue>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { IAccessor } from '@univerjs/core';
|
|
1
|
+
import { MenuGroup, MenuItemType, MenuPosition, IMenuItem, IShortcutItem } from '@univerjs/ui';
|
|
3
2
|
import { Observable } from 'rxjs';
|
|
4
|
-
|
|
3
|
+
import { IAccessor } from '@univerjs/core';
|
|
5
4
|
export declare const genZenEditorMenuId: (id: string) => string;
|
|
6
5
|
export declare const insertLinkMenuFactory: (accessor: IAccessor) => IMenuItem;
|
|
7
6
|
export declare const zenEditorInsertLinkMenuFactory: (accessor: IAccessor) => IMenuItem;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { ICustomRange, INeedCheckDisposable, Nullable, Disposable, Injector, IUniverInstanceService } from '@univerjs/core';
|
|
4
|
-
import { IBoundRectNoAngle } from '@univerjs/engine-render';
|
|
1
|
+
import { Disposable, Injector, IUniverInstanceService, ICustomRange, INeedCheckDisposable, Nullable } from '@univerjs/core';
|
|
2
|
+
import { DocSelectionManagerService } from '@univerjs/docs';
|
|
5
3
|
import { DocCanvasPopManagerService } from '@univerjs/docs-ui';
|
|
4
|
+
import { IEditorBridgeService, SheetCanvasPopManagerService } from '@univerjs/sheets-ui';
|
|
6
5
|
import { IEditorService, IRangeSelectorService, IZenZoneService } from '@univerjs/ui';
|
|
7
|
-
import {
|
|
6
|
+
import { IBoundRectNoAngle } from '@univerjs/engine-render';
|
|
7
|
+
import { ISheetLocationBase } from '@univerjs/sheets';
|
|
8
8
|
import { HyperLinkEditSourceType } from '../types/enums/edit-source';
|
|
9
9
|
export interface IHyperLinkPopup {
|
|
10
10
|
unitId: string;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { IAccessor, Worksheet } from '@univerjs/core';
|
|
2
|
+
export declare const getShouldDisableCellLink: (worksheet: Worksheet, row: number, col: number) => boolean;
|
|
3
|
+
export declare const getShouldDisableCurrentCellLink: (accessor: IAccessor) => boolean;
|
|
4
|
+
export declare const shouldDisableAddLink: (accessor: IAccessor) => boolean;
|