@bagelink/vue 1.0.16 → 1.0.18
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/dist/components/Spreadsheet/Index.vue.d.ts +89 -1
- package/dist/components/Spreadsheet/Index.vue.d.ts.map +1 -1
- package/dist/components/Spreadsheet/SpreadsheetTable.vue.d.ts +37 -0
- package/dist/components/Spreadsheet/SpreadsheetTable.vue.d.ts.map +1 -0
- package/dist/index.cjs +1052 -940
- package/dist/index.mjs +1052 -940
- package/dist/style.css +45 -19
- package/package.json +1 -1
- package/src/components/Spreadsheet/Index.vue +179 -248
- package/src/components/Spreadsheet/SpreadsheetTable.vue +317 -0
|
@@ -20,6 +20,94 @@ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, imp
|
|
|
20
20
|
"update:modelValue": (...args: any[]) => void;
|
|
21
21
|
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
22
22
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
23
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
23
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
24
|
+
searchInputRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
25
|
+
id?: string;
|
|
26
|
+
title?: string;
|
|
27
|
+
helptext?: string;
|
|
28
|
+
placeholder?: string;
|
|
29
|
+
modelValue?: string | number;
|
|
30
|
+
label?: string;
|
|
31
|
+
small?: boolean;
|
|
32
|
+
dense?: boolean;
|
|
33
|
+
required?: boolean;
|
|
34
|
+
pattern?: string;
|
|
35
|
+
defaultValue?: string | number;
|
|
36
|
+
shrink?: boolean;
|
|
37
|
+
disabled?: boolean;
|
|
38
|
+
type?: string;
|
|
39
|
+
nativeInputAttrs?: {
|
|
40
|
+
[key: string]: any;
|
|
41
|
+
};
|
|
42
|
+
icon?: import('../..').IconType;
|
|
43
|
+
iconStart?: import('../..').IconType;
|
|
44
|
+
multiline?: boolean;
|
|
45
|
+
autoheight?: boolean;
|
|
46
|
+
code?: boolean;
|
|
47
|
+
rows?: number | string;
|
|
48
|
+
autocomplete?: AutoFillField;
|
|
49
|
+
autofocus?: boolean;
|
|
50
|
+
onFocusout?: (e: FocusEvent) => void;
|
|
51
|
+
onFocus?: (e: FocusEvent) => void;
|
|
52
|
+
}> & Readonly<{
|
|
53
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
54
|
+
onDebounce?: ((...args: any[]) => any) | undefined;
|
|
55
|
+
}>, {
|
|
56
|
+
focus: () => void | undefined;
|
|
57
|
+
hasFocus: () => boolean;
|
|
58
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
59
|
+
"update:modelValue": (...args: any[]) => void;
|
|
60
|
+
debounce: (...args: any[]) => void;
|
|
61
|
+
}, import('vue').PublicProps, {
|
|
62
|
+
type: string;
|
|
63
|
+
modelValue: string | number;
|
|
64
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
65
|
+
input: HTMLTextAreaElement;
|
|
66
|
+
}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
67
|
+
P: {};
|
|
68
|
+
B: {};
|
|
69
|
+
D: {};
|
|
70
|
+
C: {};
|
|
71
|
+
M: {};
|
|
72
|
+
Defaults: {};
|
|
73
|
+
}, Readonly<{
|
|
74
|
+
id?: string;
|
|
75
|
+
title?: string;
|
|
76
|
+
helptext?: string;
|
|
77
|
+
placeholder?: string;
|
|
78
|
+
modelValue?: string | number;
|
|
79
|
+
label?: string;
|
|
80
|
+
small?: boolean;
|
|
81
|
+
dense?: boolean;
|
|
82
|
+
required?: boolean;
|
|
83
|
+
pattern?: string;
|
|
84
|
+
defaultValue?: string | number;
|
|
85
|
+
shrink?: boolean;
|
|
86
|
+
disabled?: boolean;
|
|
87
|
+
type?: string;
|
|
88
|
+
nativeInputAttrs?: {
|
|
89
|
+
[key: string]: any;
|
|
90
|
+
};
|
|
91
|
+
icon?: import('../..').IconType;
|
|
92
|
+
iconStart?: import('../..').IconType;
|
|
93
|
+
multiline?: boolean;
|
|
94
|
+
autoheight?: boolean;
|
|
95
|
+
code?: boolean;
|
|
96
|
+
rows?: number | string;
|
|
97
|
+
autocomplete?: AutoFillField;
|
|
98
|
+
autofocus?: boolean;
|
|
99
|
+
onFocusout?: (e: FocusEvent) => void;
|
|
100
|
+
onFocus?: (e: FocusEvent) => void;
|
|
101
|
+
}> & Readonly<{
|
|
102
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
103
|
+
onDebounce?: ((...args: any[]) => any) | undefined;
|
|
104
|
+
}>, {
|
|
105
|
+
focus: () => void | undefined;
|
|
106
|
+
hasFocus: () => boolean;
|
|
107
|
+
}, {}, {}, {}, {
|
|
108
|
+
type: string;
|
|
109
|
+
modelValue: string | number;
|
|
110
|
+
}> | null;
|
|
111
|
+
}, HTMLDivElement>;
|
|
24
112
|
export default _default;
|
|
25
113
|
//# sourceMappingURL=Index.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Index.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Spreadsheet/Index.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Index.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Spreadsheet/Index.vue"],"names":[],"mappings":"AAoyBA,KAAK,YAAY,GAAG,MAAM,GAAG,QAAQ,GAAG,UAAU,GAAG,MAAM,GAAG,YAAY,GAAG,OAAO,GAAG,SAAS,CAAA;AAEhG,UAAU,YAAY;IACrB,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,MAAM,CAAC,EAAE,YAAY,CAAA;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,YAAY,CAAC,EAAE,GAAG,CAAA;CAClB;AAGD,UAAU,KAAK;IACd,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAA;IACtC,YAAY,CAAC,EAAE,YAAY,EAAE,CAAA;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,OAAO,CAAA;CACrB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6oCD,wBASG"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
interface CellPosition {
|
|
2
|
+
row: number;
|
|
3
|
+
col: number;
|
|
4
|
+
}
|
|
5
|
+
interface ColumnConfig {
|
|
6
|
+
key: string;
|
|
7
|
+
label?: string;
|
|
8
|
+
locked?: boolean;
|
|
9
|
+
format?: 'text' | 'number' | 'currency' | 'date' | 'percentage' | 'image' | 'boolean';
|
|
10
|
+
sortable?: boolean;
|
|
11
|
+
width?: string;
|
|
12
|
+
fixed?: boolean;
|
|
13
|
+
hidden?: boolean;
|
|
14
|
+
defaultValue?: any;
|
|
15
|
+
}
|
|
16
|
+
interface Props {
|
|
17
|
+
columns: ColumnConfig[];
|
|
18
|
+
rows: Array<Record<string, any>>;
|
|
19
|
+
isFixed: boolean;
|
|
20
|
+
showRowNumbers: boolean;
|
|
21
|
+
columnWidths: Map<string, number>;
|
|
22
|
+
sortColumn: string | null;
|
|
23
|
+
sortDirection: 'asc' | 'desc';
|
|
24
|
+
selectionStart: CellPosition | null;
|
|
25
|
+
selectionEnd: CellPosition | null;
|
|
26
|
+
editingCell: CellPosition | null;
|
|
27
|
+
baseColumnIndex: number;
|
|
28
|
+
}
|
|
29
|
+
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
30
|
+
[x: string]: any;
|
|
31
|
+
} & {
|
|
32
|
+
[x: string]: any;
|
|
33
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
34
|
+
[x: `on${Capitalize<any>}`]: ((...args: any) => any) | undefined;
|
|
35
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLTableElement>;
|
|
36
|
+
export default _default;
|
|
37
|
+
//# sourceMappingURL=SpreadsheetTable.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SpreadsheetTable.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Spreadsheet/SpreadsheetTable.vue"],"names":[],"mappings":"AAmUA,UAAU,YAAY;IACrB,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;CACX;AAED,UAAU,YAAY;IACrB,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,MAAM,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,UAAU,GAAG,MAAM,GAAG,YAAY,GAAG,OAAO,GAAG,SAAS,CAAA;IACrF,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,YAAY,CAAC,EAAE,GAAG,CAAA;CAClB;AAED,UAAU,KAAK;IACd,OAAO,EAAE,YAAY,EAAE,CAAA;IACvB,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAA;IAChC,OAAO,EAAE,OAAO,CAAA;IAChB,cAAc,EAAE,OAAO,CAAA;IACvB,YAAY,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACjC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,aAAa,EAAE,KAAK,GAAG,MAAM,CAAA;IAC7B,cAAc,EAAE,YAAY,GAAG,IAAI,CAAA;IACnC,YAAY,EAAE,YAAY,GAAG,IAAI,CAAA;IACjC,WAAW,EAAE,YAAY,GAAG,IAAI,CAAA;IAChC,eAAe,EAAE,MAAM,CAAA;CACvB;;;;;;;;AAoSD,wBAQG"}
|