xiaodao-spreader 0.1.3 → 0.1.5
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/README.ZH.md +459 -0
- package/README.md +409 -44
- package/dist/style.css +1 -1
- package/dist/types/components/spreader/{dropdown.vue.d.ts → components/dropdown.vue.d.ts} +11 -5
- package/dist/types/components/spreader/{borderPicker.vue.d.ts → components/pickers/borderPicker.vue.d.ts} +3 -0
- package/dist/types/components/spreader/{colorPicker.vue.d.ts → components/pickers/colorPicker.vue.d.ts} +6 -4
- package/dist/types/components/spreader/components/pickers/mergePicker.vue.d.ts +27 -0
- package/dist/types/components/spreader/{spreader.vue.d.ts → components/spreadsheet.vue.d.ts} +2 -8
- package/dist/types/components/spreader/{tabbar.vue.d.ts → components/tabbar.vue.d.ts} +11 -11
- package/dist/types/components/spreader/components/toolbar.vue.d.ts +111 -0
- package/dist/types/components/spreader/composables/borders-merge.d.ts +48 -0
- package/dist/types/components/spreader/composables/core-state.d.ts +98 -0
- package/dist/types/components/spreader/composables/interactions.d.ts +87 -0
- package/dist/types/components/spreader/composables/sheets-ops.d.ts +45 -0
- package/dist/types/components/spreader/composables/undo-styles.d.ts +86 -0
- package/dist/types/components/spreader/core/constants.d.ts +42 -0
- package/dist/types/components/spreader/{types.d.ts → core/types.d.ts} +2 -0
- package/dist/types/components/spreader/index.d.ts +8 -0
- package/dist/types/index.d.ts +2 -2
- package/dist/xiaodao-spreader.es.js +3507 -2442
- package/dist/xiaodao-spreader.umd.js +9 -4
- package/package.json +2 -1
- package/dist/types/components/spreader/constants.d.ts +0 -25
- package/dist/types/components/spreader/toolbar.vue.d.ts +0 -39
- /package/dist/types/components/spreader/{formula.d.ts → core/formula.d.ts} +0 -0
- /package/dist/types/components/spreader/{theme.d.ts → core/theme.d.ts} +0 -0
- /package/dist/types/components/spreader/{utils.d.ts → core/utils.d.ts} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "xiaodao-spreader",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"description": "A Vue 3 component for spreading sheets",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -46,6 +46,7 @@
|
|
|
46
46
|
"scripts": {
|
|
47
47
|
"dev": "vite",
|
|
48
48
|
"build": "vue-tsc --noEmit && vite build && vue-tsc -p tsconfig.build.json",
|
|
49
|
+
"build:demo": "vite build --mode demo",
|
|
49
50
|
"preview": "vite preview",
|
|
50
51
|
"type-check": "vue-tsc --noEmit"
|
|
51
52
|
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import type { ThemeColors } from './types';
|
|
2
|
-
export declare const HEADER_WIDTH = 52;
|
|
3
|
-
export declare const HEADER_HEIGHT = 24;
|
|
4
|
-
export declare const DEFAULT_COL_WIDTH = 100;
|
|
5
|
-
export declare const DEFAULT_ROW_HEIGHT = 24;
|
|
6
|
-
export declare const MIN_COL_WIDTH = 30;
|
|
7
|
-
export declare const MIN_ROW_HEIGHT = 24;
|
|
8
|
-
export declare const MAX_COL_WIDTH = 1000;
|
|
9
|
-
export declare const MAX_ROW_HEIGHT = 500;
|
|
10
|
-
export declare const SB_SIZE = 11;
|
|
11
|
-
export declare const ARROW_SIZE = 11;
|
|
12
|
-
export declare const SCROLL_STEP = 50;
|
|
13
|
-
export declare const UNDO_MAX = 50;
|
|
14
|
-
export declare const i18n: Record<string, Record<string, string>>;
|
|
15
|
-
export declare function t(locale: string, key: string): string;
|
|
16
|
-
export declare const DEFAULT_FONT_FAMILY = "-apple-system, BlinkMacSystemFont, \"Segoe UI\", \"Microsoft YaHei\", sans-serif";
|
|
17
|
-
export declare const DEFAULT_FONT_SIZE = 10;
|
|
18
|
-
export interface FontOption {
|
|
19
|
-
label: string;
|
|
20
|
-
value: string | number;
|
|
21
|
-
}
|
|
22
|
-
export declare const FONT_FAMILIES: FontOption[];
|
|
23
|
-
export declare const FONT_SIZES: FontOption[];
|
|
24
|
-
export declare const lightTheme: ThemeColors;
|
|
25
|
-
export declare const darkTheme: ThemeColors;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { type FontOption } from './constants';
|
|
2
|
-
import { type BorderType } from './borderPicker.vue';
|
|
3
|
-
type __VLS_Props = {
|
|
4
|
-
locale: string;
|
|
5
|
-
canUndo: boolean;
|
|
6
|
-
canRedo: boolean;
|
|
7
|
-
paintFmtActive: boolean;
|
|
8
|
-
hasSelection: boolean;
|
|
9
|
-
fontFamilyOptions: FontOption[];
|
|
10
|
-
fontSizeOptions: FontOption[];
|
|
11
|
-
selFontFamily: string | number;
|
|
12
|
-
selFontSize: number;
|
|
13
|
-
fontSizeInput: string;
|
|
14
|
-
fontSizeMenuOpen: boolean;
|
|
15
|
-
selFontWeight: boolean;
|
|
16
|
-
selFontStyle: boolean;
|
|
17
|
-
selUnderline: boolean;
|
|
18
|
-
selStrikethrough: boolean;
|
|
19
|
-
selTextColor: string;
|
|
20
|
-
textColorMenuOpen: boolean;
|
|
21
|
-
selFillColor: string;
|
|
22
|
-
fillColorMenuOpen: boolean;
|
|
23
|
-
cachedTextColor: string;
|
|
24
|
-
cachedFillColor: string;
|
|
25
|
-
borderMenuOpen: boolean;
|
|
26
|
-
cachedBorder: BorderType;
|
|
27
|
-
};
|
|
28
|
-
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
29
|
-
[x: string]: any;
|
|
30
|
-
} & {
|
|
31
|
-
[x: string]: any;
|
|
32
|
-
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
33
|
-
[x: `on${Capitalize<any>}`]: ((...args: any[] | unknown[]) => any) | undefined;
|
|
34
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {
|
|
35
|
-
rootEl: HTMLDivElement;
|
|
36
|
-
moreBtnEl: HTMLButtonElement;
|
|
37
|
-
overflowMenuEl: HTMLDivElement;
|
|
38
|
-
}, any>;
|
|
39
|
-
export default _default;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|