@univerjs/sheets 0.1.0-beta.4 → 0.1.1
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 +1 -1
- package/lib/es/index.js +1456 -1416
- package/lib/types/basics/selection.d.ts +4 -0
- package/lib/types/commands/commands/insert-row-col.command.d.ts +1 -1
- package/lib/types/commands/commands/utils/selection-utils.d.ts +2 -9
- package/lib/types/index.d.ts +2 -2
- package/lib/types/locale/en-US.d.ts +3 -7
- package/lib/types/locale/zh-CN.d.ts +2 -2
- package/lib/types/services/ref-range/util.d.ts +2 -1
- package/lib/umd/index.js +1 -1
- package/package.json +26 -13
|
@@ -58,6 +58,10 @@ export interface ISelectionStyle {
|
|
|
58
58
|
* The dashed line of the selection border. Here, the dashed line is a numerical value, different from the canvas dashed line setting. It is implemented internally as [0, strokeDash]. Setting it to 8 will look more aesthetically pleasing.
|
|
59
59
|
*/
|
|
60
60
|
strokeDash?: number;
|
|
61
|
+
/**
|
|
62
|
+
* Enable 'marching ants' animation
|
|
63
|
+
*/
|
|
64
|
+
isAnimationDash?: boolean;
|
|
61
65
|
/**
|
|
62
66
|
* The fill color inside the selection. It needs to have a level of transparency, otherwise content in the covered area of the selection will be obscured.
|
|
63
67
|
*/
|
|
@@ -32,7 +32,7 @@ export interface IInsertRowCommandParams {
|
|
|
32
32
|
}
|
|
33
33
|
export declare const InsertRowCommandId = "sheet.command.insert-row";
|
|
34
34
|
/**
|
|
35
|
-
* @internal
|
|
35
|
+
* @internal
|
|
36
36
|
*
|
|
37
37
|
* this command and its interface should not be exported from index.ts
|
|
38
38
|
*/
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import type { IRange, ISelectionCell, Workbook, Worksheet } from '@univerjs/core';
|
|
17
|
+
import type { ISetSelectionsOperationParams } from '../../operations/selection.operation';
|
|
17
18
|
export interface IExpandParams {
|
|
18
19
|
left?: boolean;
|
|
19
20
|
right?: boolean;
|
|
@@ -42,13 +43,5 @@ export interface IInterval {
|
|
|
42
43
|
export declare function calculateTotalLength(intervalsObject: IInterval): number;
|
|
43
44
|
export declare const followSelectionOperation: (range: IRange, workbook: Workbook, worksheet: Worksheet) => {
|
|
44
45
|
id: string;
|
|
45
|
-
params:
|
|
46
|
-
unitId: string;
|
|
47
|
-
sheetId: string;
|
|
48
|
-
pluginName: string;
|
|
49
|
-
selections: {
|
|
50
|
-
range: IRange;
|
|
51
|
-
primary: ISelectionCell;
|
|
52
|
-
}[];
|
|
53
|
-
};
|
|
46
|
+
params: ISetSelectionsOperationParams;
|
|
54
47
|
};
|
package/lib/types/index.d.ts
CHANGED
|
@@ -83,7 +83,7 @@ export type { ISetRangeValuesMutationParams } from './commands/mutations/set-ran
|
|
|
83
83
|
export { SetRangeValuesMutation } from './commands/mutations/set-range-values.mutation';
|
|
84
84
|
export { SetRangeValuesUndoMutationFactory } from './commands/mutations/set-range-values.mutation';
|
|
85
85
|
export { type ISetRangeValuesRangeMutationParams } from './commands/mutations/set-range-values.mutation';
|
|
86
|
-
export { SetRowHiddenMutation, SetRowVisibleMutation } from './commands/mutations/set-row-visible.mutation';
|
|
86
|
+
export { type ISetRowHiddenMutationParams, type ISetRowVisibleMutationParams, SetRowHiddenMutation, SetRowVisibleMutation } from './commands/mutations/set-row-visible.mutation';
|
|
87
87
|
export { SetTabColorMutation } from './commands/mutations/set-tab-color.mutation';
|
|
88
88
|
export { type ISetTabColorMutationParams } from './commands/mutations/set-tab-color.mutation';
|
|
89
89
|
export { type ISetWorksheetColWidthMutationParams, SetWorksheetColWidthMutation, SetWorksheetColWidthMutationFactory, } from './commands/mutations/set-worksheet-col-width.mutation';
|
|
@@ -108,7 +108,7 @@ export { INumfmtService } from './services/numfmt/type';
|
|
|
108
108
|
export { RefRangeService } from './services/ref-range/ref-range.service';
|
|
109
109
|
export type { EffectRefRangeParams, IOperator } from './services/ref-range/type';
|
|
110
110
|
export { EffectRefRangId, OperatorType } from './services/ref-range/type';
|
|
111
|
-
export { handleBaseInsertRange, handleBaseMoveRowsCols, handleBaseRemoveRange, handleDeleteRangeMoveLeft, handleDeleteRangeMoveUp, handleInsertCol, handleInsertRangeMoveDown, handleInsertRangeMoveRight, handleInsertRow, handleIRemoveCol, handleIRemoveRow, handleMoveCols, handleMoveRange, handleMoveRows, rotateRange, runRefRangeMutations, } from './services/ref-range/util';
|
|
111
|
+
export { handleBaseInsertRange, handleBaseMoveRowsCols, handleBaseRemoveRange, handleDeleteRangeMoveLeft, handleDeleteRangeMoveUp, handleInsertCol, handleInsertRangeMoveDown, handleInsertRangeMoveRight, handleInsertRow, handleIRemoveCol, handleIRemoveRow, handleMoveCols, handleMoveRange, handleMoveRows, rotateRange, runRefRangeMutations, handleDefaultRangeChangeWithEffectRefCommands, } from './services/ref-range/util';
|
|
112
112
|
export { INTERCEPTOR_POINT } from './services/sheet-interceptor/interceptor-const';
|
|
113
113
|
export { SheetInterceptorService } from './services/sheet-interceptor/sheet-interceptor.service';
|
|
114
114
|
export type { ISheetLocation } from './services/sheet-interceptor/utils/interceptor';
|
|
@@ -13,10 +13,6 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
sheet: string;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
export default _default;
|
|
16
|
+
import type zhCN from './zh-CN';
|
|
17
|
+
declare const locale: typeof zhCN;
|
|
18
|
+
export default locale;
|
|
@@ -13,10 +13,10 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
declare const
|
|
16
|
+
declare const locale: {
|
|
17
17
|
sheets: {
|
|
18
18
|
sheetCopy: string;
|
|
19
19
|
sheet: string;
|
|
20
20
|
};
|
|
21
21
|
};
|
|
22
|
-
export default
|
|
22
|
+
export default locale;
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import type { IRange } from '@univerjs/core';
|
|
16
|
+
import type { ICommandInfo, IRange } from '@univerjs/core';
|
|
17
17
|
import { RANGE_TYPE } from '@univerjs/core';
|
|
18
18
|
import type { IDeleteRangeMoveLeftCommand, IDeleteRangeMoveUpCommand, IInsertColCommand, IInsertRangeMoveDownCommand, IInsertRangeMoveRightCommand, IInsertRowCommand, IMoveColsCommand, IMoveRangeCommand, IMoveRowsCommand, IOperator, IRemoveRowColCommand } from './type';
|
|
19
19
|
export declare const handleRangeTypeInput: (range: IRange) => {
|
|
@@ -66,4 +66,5 @@ export declare const handleInsertRangeMoveRight: (param: IInsertRangeMoveRightCo
|
|
|
66
66
|
export declare const handleDeleteRangeMoveLeft: (param: IDeleteRangeMoveLeftCommand, targetRange: IRange) => IOperator[];
|
|
67
67
|
export declare const handleDeleteRangeMoveUp: (param: IDeleteRangeMoveUpCommand, targetRange: IRange) => IOperator[];
|
|
68
68
|
export declare const runRefRangeMutations: (operators: IOperator[], range: IRange) => IRange | null;
|
|
69
|
+
export declare const handleDefaultRangeChangeWithEffectRefCommands: (range: IRange, commandInfo: ICommandInfo) => IRange | null;
|
|
69
70
|
export {};
|