@gradio/dataframe 0.20.2-dev.0 → 0.21.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/CHANGELOG.md +66 -0
- package/Example.svelte +17 -13
- package/Index.svelte +114 -108
- package/dist/Example.svelte +26 -20
- package/dist/Example.svelte.d.ts +21 -19
- package/dist/Index.svelte +121 -97
- package/dist/Index.svelte.d.ts +4 -164
- package/dist/shared/BooleanCell.svelte +12 -9
- package/dist/shared/BooleanCell.svelte.d.ts +20 -18
- package/dist/shared/CellMenu.svelte +82 -64
- package/dist/shared/CellMenu.svelte.d.ts +39 -37
- package/dist/shared/CellMenuButton.svelte +2 -1
- package/dist/shared/CellMenuButton.svelte.d.ts +18 -16
- package/dist/shared/CellMenuIcons.svelte +2 -1
- package/dist/shared/CellMenuIcons.svelte.d.ts +18 -16
- package/dist/shared/EditableCell.svelte +97 -56
- package/dist/shared/EditableCell.svelte.d.ts +50 -48
- package/dist/shared/EmptyRowButton.svelte +2 -1
- package/dist/shared/EmptyRowButton.svelte.d.ts +18 -16
- package/dist/shared/Example.svelte +2 -1
- package/dist/shared/Example.svelte.d.ts +18 -16
- package/dist/shared/FilterMenu.svelte +53 -39
- package/dist/shared/FilterMenu.svelte.d.ts +20 -18
- package/dist/shared/RowNumber.svelte +3 -2
- package/dist/shared/RowNumber.svelte.d.ts +19 -17
- package/dist/shared/Table.svelte +821 -620
- package/dist/shared/Table.svelte.d.ts +59 -56
- package/dist/shared/TableCell.svelte +95 -50
- package/dist/shared/TableCell.svelte.d.ts +61 -59
- package/dist/shared/TableHeader.svelte +86 -58
- package/dist/shared/TableHeader.svelte.d.ts +55 -53
- package/dist/shared/Toolbar.svelte +49 -39
- package/dist/shared/Toolbar.svelte.d.ts +27 -25
- package/dist/shared/VirtualTable.svelte +207 -154
- package/dist/shared/VirtualTable.svelte.d.ts +40 -37
- package/dist/shared/icons/FilterIcon.svelte +2 -1
- package/dist/shared/icons/FilterIcon.svelte.d.ts +16 -14
- package/dist/shared/icons/Padlock.svelte.d.ts +22 -21
- package/dist/shared/icons/SelectionButtons.svelte +15 -5
- package/dist/shared/icons/SelectionButtons.svelte.d.ts +20 -18
- package/dist/shared/icons/SortArrowDown.svelte +2 -1
- package/dist/shared/icons/SortArrowDown.svelte.d.ts +18 -16
- package/dist/shared/icons/SortArrowUp.svelte +2 -1
- package/dist/shared/icons/SortArrowUp.svelte.d.ts +18 -16
- package/dist/shared/icons/SortButtonDown.svelte.d.ts +22 -21
- package/dist/shared/icons/SortButtonUp.svelte.d.ts +22 -21
- package/dist/shared/icons/SortIcon.svelte +12 -8
- package/dist/shared/icons/SortIcon.svelte.d.ts +22 -20
- package/dist/shared/utils/data_processing.d.ts +1 -1
- package/dist/standalone/Index.svelte +103 -74
- package/dist/standalone/Index.svelte.d.ts +41 -39
- package/dist/standalone/stubs/Upload.svelte +5 -4
- package/dist/standalone/stubs/Upload.svelte.d.ts +35 -25
- package/package.json +16 -15
- package/shared/Table.svelte +4 -4
- package/shared/VirtualTable.svelte +1 -1
- package/standalone/Index.svelte +16 -15
package/dist/Index.svelte.d.ts
CHANGED
|
@@ -1,166 +1,6 @@
|
|
|
1
|
-
import { SvelteComponent } from "svelte";
|
|
2
1
|
export { default as BaseDataFrame } from "./shared/Table.svelte";
|
|
3
2
|
export { default as BaseExample } from "./Example.svelte";
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
props: {
|
|
9
|
-
elem_id?: string;
|
|
10
|
-
elem_classes?: string[];
|
|
11
|
-
visible?: boolean | "hidden";
|
|
12
|
-
value?: DataframeValue;
|
|
13
|
-
value_is_output?: boolean;
|
|
14
|
-
col_count: [number, "fixed" | "dynamic"];
|
|
15
|
-
row_count: [number, "fixed" | "dynamic"];
|
|
16
|
-
label?: string | null;
|
|
17
|
-
show_label?: boolean;
|
|
18
|
-
wrap: boolean;
|
|
19
|
-
datatype: Datatype | Datatype[];
|
|
20
|
-
scale?: number | null;
|
|
21
|
-
min_width?: number | undefined;
|
|
22
|
-
root: string;
|
|
23
|
-
line_breaks?: boolean;
|
|
24
|
-
column_widths?: string[];
|
|
25
|
-
gradio: Gradio<{
|
|
26
|
-
change: never;
|
|
27
|
-
select: SelectData;
|
|
28
|
-
input: never;
|
|
29
|
-
clear_status: LoadingStatus;
|
|
30
|
-
search: string | null;
|
|
31
|
-
edit: SelectData;
|
|
32
|
-
}>;
|
|
33
|
-
latex_delimiters: {
|
|
34
|
-
left: string;
|
|
35
|
-
right: string;
|
|
36
|
-
display: boolean;
|
|
37
|
-
}[];
|
|
38
|
-
max_height?: number | undefined;
|
|
39
|
-
loading_status: LoadingStatus;
|
|
40
|
-
interactive: boolean;
|
|
41
|
-
buttons?: string[] | null;
|
|
42
|
-
max_chars?: number | undefined;
|
|
43
|
-
show_row_numbers?: boolean;
|
|
44
|
-
show_search?: "none" | "search" | "filter";
|
|
45
|
-
pinned_columns?: number;
|
|
46
|
-
static_columns?: (string | number)[];
|
|
47
|
-
fullscreen?: boolean;
|
|
48
|
-
};
|
|
49
|
-
events: {
|
|
50
|
-
[evt: string]: CustomEvent<any>;
|
|
51
|
-
};
|
|
52
|
-
slots: {};
|
|
53
|
-
exports?: {} | undefined;
|
|
54
|
-
bindings?: string | undefined;
|
|
55
|
-
};
|
|
56
|
-
export type IndexProps = typeof __propDef.props;
|
|
57
|
-
export type IndexEvents = typeof __propDef.events;
|
|
58
|
-
export type IndexSlots = typeof __propDef.slots;
|
|
59
|
-
export default class Index extends SvelteComponent<IndexProps, IndexEvents, IndexSlots> {
|
|
60
|
-
get elem_id(): string | undefined;
|
|
61
|
-
/**accessor*/
|
|
62
|
-
set elem_id(_: string | undefined);
|
|
63
|
-
get elem_classes(): string[] | undefined;
|
|
64
|
-
/**accessor*/
|
|
65
|
-
set elem_classes(_: string[] | undefined);
|
|
66
|
-
get visible(): boolean | "hidden" | undefined;
|
|
67
|
-
/**accessor*/
|
|
68
|
-
set visible(_: boolean | "hidden" | undefined);
|
|
69
|
-
get value(): DataframeValue | undefined;
|
|
70
|
-
/**accessor*/
|
|
71
|
-
set value(_: DataframeValue | undefined);
|
|
72
|
-
get value_is_output(): boolean | undefined;
|
|
73
|
-
/**accessor*/
|
|
74
|
-
set value_is_output(_: boolean | undefined);
|
|
75
|
-
get col_count(): [number, "fixed" | "dynamic"];
|
|
76
|
-
/**accessor*/
|
|
77
|
-
set col_count(_: [number, "fixed" | "dynamic"]);
|
|
78
|
-
get row_count(): [number, "fixed" | "dynamic"];
|
|
79
|
-
/**accessor*/
|
|
80
|
-
set row_count(_: [number, "fixed" | "dynamic"]);
|
|
81
|
-
get label(): string | null | undefined;
|
|
82
|
-
/**accessor*/
|
|
83
|
-
set label(_: string | null | undefined);
|
|
84
|
-
get show_label(): boolean | undefined;
|
|
85
|
-
/**accessor*/
|
|
86
|
-
set show_label(_: boolean | undefined);
|
|
87
|
-
get wrap(): boolean;
|
|
88
|
-
/**accessor*/
|
|
89
|
-
set wrap(_: boolean);
|
|
90
|
-
get datatype(): Datatype | Datatype[];
|
|
91
|
-
/**accessor*/
|
|
92
|
-
set datatype(_: Datatype | Datatype[]);
|
|
93
|
-
get scale(): number | null | undefined;
|
|
94
|
-
/**accessor*/
|
|
95
|
-
set scale(_: number | null | undefined);
|
|
96
|
-
get min_width(): number | undefined;
|
|
97
|
-
/**accessor*/
|
|
98
|
-
set min_width(_: number | undefined);
|
|
99
|
-
get root(): string;
|
|
100
|
-
/**accessor*/
|
|
101
|
-
set root(_: string);
|
|
102
|
-
get line_breaks(): boolean | undefined;
|
|
103
|
-
/**accessor*/
|
|
104
|
-
set line_breaks(_: boolean | undefined);
|
|
105
|
-
get column_widths(): string[] | undefined;
|
|
106
|
-
/**accessor*/
|
|
107
|
-
set column_widths(_: string[] | undefined);
|
|
108
|
-
get gradio(): Gradio<{
|
|
109
|
-
change: never;
|
|
110
|
-
select: SelectData;
|
|
111
|
-
input: never;
|
|
112
|
-
clear_status: LoadingStatus;
|
|
113
|
-
search: string | null;
|
|
114
|
-
edit: SelectData;
|
|
115
|
-
}>;
|
|
116
|
-
/**accessor*/
|
|
117
|
-
set gradio(_: Gradio<{
|
|
118
|
-
change: never;
|
|
119
|
-
select: SelectData;
|
|
120
|
-
input: never;
|
|
121
|
-
clear_status: LoadingStatus;
|
|
122
|
-
search: string | null;
|
|
123
|
-
edit: SelectData;
|
|
124
|
-
}>);
|
|
125
|
-
get latex_delimiters(): {
|
|
126
|
-
left: string;
|
|
127
|
-
right: string;
|
|
128
|
-
display: boolean;
|
|
129
|
-
}[];
|
|
130
|
-
/**accessor*/
|
|
131
|
-
set latex_delimiters(_: {
|
|
132
|
-
left: string;
|
|
133
|
-
right: string;
|
|
134
|
-
display: boolean;
|
|
135
|
-
}[]);
|
|
136
|
-
get max_height(): number | undefined;
|
|
137
|
-
/**accessor*/
|
|
138
|
-
set max_height(_: number | undefined);
|
|
139
|
-
get loading_status(): LoadingStatus;
|
|
140
|
-
/**accessor*/
|
|
141
|
-
set loading_status(_: LoadingStatus);
|
|
142
|
-
get interactive(): boolean;
|
|
143
|
-
/**accessor*/
|
|
144
|
-
set interactive(_: boolean);
|
|
145
|
-
get buttons(): string[] | null | undefined;
|
|
146
|
-
/**accessor*/
|
|
147
|
-
set buttons(_: string[] | null | undefined);
|
|
148
|
-
get max_chars(): number | undefined;
|
|
149
|
-
/**accessor*/
|
|
150
|
-
set max_chars(_: number | undefined);
|
|
151
|
-
get show_row_numbers(): boolean | undefined;
|
|
152
|
-
/**accessor*/
|
|
153
|
-
set show_row_numbers(_: boolean | undefined);
|
|
154
|
-
get show_search(): "none" | "filter" | "search" | undefined;
|
|
155
|
-
/**accessor*/
|
|
156
|
-
set show_search(_: "none" | "filter" | "search" | undefined);
|
|
157
|
-
get pinned_columns(): number | undefined;
|
|
158
|
-
/**accessor*/
|
|
159
|
-
set pinned_columns(_: number | undefined);
|
|
160
|
-
get static_columns(): (string | number)[] | undefined;
|
|
161
|
-
/**accessor*/
|
|
162
|
-
set static_columns(_: (string | number)[] | undefined);
|
|
163
|
-
get fullscreen(): boolean | undefined;
|
|
164
|
-
/**accessor*/
|
|
165
|
-
set fullscreen(_: boolean | undefined);
|
|
166
|
-
}
|
|
3
|
+
import "@gradio/dataframe-interim/css";
|
|
4
|
+
declare const Index: import("svelte").Component<$$ComponentProps, {}, "">;
|
|
5
|
+
type Index = ReturnType<typeof Index>;
|
|
6
|
+
export default Index;
|
|
@@ -1,12 +1,15 @@
|
|
|
1
|
-
<script
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export let
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { BaseCheckbox } from "@gradio/checkbox";
|
|
3
|
+
|
|
4
|
+
export let value = false;
|
|
5
|
+
export let editable = true;
|
|
6
|
+
export let on_change: (value: boolean) => void;
|
|
7
|
+
|
|
8
|
+
function handle_change(event: CustomEvent<boolean>): void {
|
|
9
|
+
if (editable) {
|
|
10
|
+
on_change(event.detail);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
10
13
|
</script>
|
|
11
14
|
|
|
12
15
|
<div class="bool-cell" role="button" tabindex="-1">
|
|
@@ -1,20 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
2
|
+
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
3
|
+
$$bindings?: Bindings;
|
|
4
|
+
} & Exports;
|
|
5
|
+
(internal: unknown, props: Props & {
|
|
6
|
+
$$events?: Events;
|
|
7
|
+
$$slots?: Slots;
|
|
8
|
+
}): Exports & {
|
|
9
|
+
$set?: any;
|
|
10
|
+
$on?: any;
|
|
7
11
|
};
|
|
8
|
-
|
|
9
|
-
[evt: string]: CustomEvent<any>;
|
|
10
|
-
};
|
|
11
|
-
slots: {};
|
|
12
|
-
exports?: {} | undefined;
|
|
13
|
-
bindings?: string | undefined;
|
|
14
|
-
};
|
|
15
|
-
export type BooleanCellProps = typeof __propDef.props;
|
|
16
|
-
export type BooleanCellEvents = typeof __propDef.events;
|
|
17
|
-
export type BooleanCellSlots = typeof __propDef.slots;
|
|
18
|
-
export default class BooleanCell extends SvelteComponent<BooleanCellProps, BooleanCellEvents, BooleanCellSlots> {
|
|
12
|
+
z_$$bindings?: Bindings;
|
|
19
13
|
}
|
|
20
|
-
|
|
14
|
+
declare const BooleanCell: $$__sveltets_2_IsomorphicComponent<{
|
|
15
|
+
value?: boolean;
|
|
16
|
+
editable?: boolean;
|
|
17
|
+
on_change: (value: boolean) => void;
|
|
18
|
+
}, {
|
|
19
|
+
[evt: string]: CustomEvent<any>;
|
|
20
|
+
}, {}, {}, string>;
|
|
21
|
+
type BooleanCell = InstanceType<typeof BooleanCell>;
|
|
22
|
+
export default BooleanCell;
|
|
@@ -1,67 +1,85 @@
|
|
|
1
|
-
<script
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
export let
|
|
12
|
-
export let
|
|
13
|
-
export let
|
|
14
|
-
export let
|
|
15
|
-
export let
|
|
16
|
-
export let
|
|
17
|
-
export let
|
|
18
|
-
|
|
19
|
-
export let
|
|
20
|
-
|
|
21
|
-
export let
|
|
22
|
-
export let
|
|
23
|
-
export let
|
|
24
|
-
};
|
|
25
|
-
export let
|
|
26
|
-
|
|
27
|
-
export let
|
|
28
|
-
export let
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { onMount } from "svelte";
|
|
3
|
+
import CellMenuIcons from "./CellMenuIcons.svelte";
|
|
4
|
+
import FilterMenu from "./FilterMenu.svelte";
|
|
5
|
+
import type { I18nFormatter } from "@gradio/utils";
|
|
6
|
+
import type {
|
|
7
|
+
SortDirection,
|
|
8
|
+
FilterDatatype
|
|
9
|
+
} from "./context/dataframe_context";
|
|
10
|
+
|
|
11
|
+
export let x: number;
|
|
12
|
+
export let y: number;
|
|
13
|
+
export let on_add_row_above: () => void;
|
|
14
|
+
export let on_add_row_below: () => void;
|
|
15
|
+
export let on_add_column_left: () => void;
|
|
16
|
+
export let on_add_column_right: () => void;
|
|
17
|
+
export let row: number;
|
|
18
|
+
export let col_count: [number, "fixed" | "dynamic"];
|
|
19
|
+
export let row_count: [number, "fixed" | "dynamic"];
|
|
20
|
+
export let on_delete_row: () => void;
|
|
21
|
+
export let on_delete_col: () => void;
|
|
22
|
+
export let can_delete_rows: boolean;
|
|
23
|
+
export let can_delete_cols: boolean;
|
|
24
|
+
export let on_sort: (direction: SortDirection) => void = () => {};
|
|
25
|
+
export let on_clear_sort: () => void = () => {};
|
|
26
|
+
export let sort_direction: SortDirection | null = null;
|
|
27
|
+
export let sort_priority: number | null = null;
|
|
28
|
+
export let on_filter: (
|
|
29
|
+
datatype: FilterDatatype,
|
|
30
|
+
selected_filter: string,
|
|
31
|
+
value: string
|
|
32
|
+
) => void = () => {};
|
|
33
|
+
export let on_clear_filter: () => void = () => {};
|
|
34
|
+
export let filter_active: boolean | null = null;
|
|
35
|
+
export let editable = true;
|
|
36
|
+
|
|
37
|
+
export let i18n: I18nFormatter;
|
|
38
|
+
let menu_element: HTMLDivElement;
|
|
39
|
+
let active_filter_menu: { x: number; y: number } | null = null;
|
|
40
|
+
|
|
41
|
+
$: is_header = row === -1;
|
|
42
|
+
$: can_add_rows = editable && row_count[1] === "dynamic";
|
|
43
|
+
$: can_add_columns = editable && col_count[1] === "dynamic";
|
|
44
|
+
|
|
45
|
+
onMount(() => {
|
|
46
|
+
position_menu();
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
function position_menu(): void {
|
|
50
|
+
if (!menu_element) return;
|
|
51
|
+
|
|
52
|
+
const viewport_width = window.innerWidth;
|
|
53
|
+
const viewport_height = window.innerHeight;
|
|
54
|
+
const menu_rect = menu_element.getBoundingClientRect();
|
|
55
|
+
|
|
56
|
+
let new_x = x - 30;
|
|
57
|
+
let new_y = y - 20;
|
|
58
|
+
|
|
59
|
+
if (new_x + menu_rect.width > viewport_width) {
|
|
60
|
+
new_x = x - menu_rect.width + 10;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
if (new_y + menu_rect.height > viewport_height) {
|
|
64
|
+
new_y = y - menu_rect.height + 10;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
menu_element.style.left = `${new_x}px`;
|
|
68
|
+
menu_element.style.top = `${new_y}px`;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
function toggle_filter_menu(): void {
|
|
72
|
+
if (filter_active) {
|
|
73
|
+
on_filter("string", "", "");
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
const menu_rect = menu_element.getBoundingClientRect();
|
|
78
|
+
active_filter_menu = {
|
|
79
|
+
x: menu_rect.right,
|
|
80
|
+
y: menu_rect.top + menu_rect.height / 2
|
|
81
|
+
};
|
|
82
|
+
}
|
|
65
83
|
</script>
|
|
66
84
|
|
|
67
85
|
<div bind:this={menu_element} class="cell-menu" role="menu">
|
|
@@ -1,41 +1,43 @@
|
|
|
1
|
-
import { SvelteComponent } from "svelte";
|
|
2
1
|
import type { I18nFormatter } from "@gradio/utils";
|
|
3
2
|
import type { SortDirection, FilterDatatype } from "./context/dataframe_context";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
row_count: [number, "fixed" | "dynamic"];
|
|
15
|
-
on_delete_row: () => void;
|
|
16
|
-
on_delete_col: () => void;
|
|
17
|
-
can_delete_rows: boolean;
|
|
18
|
-
can_delete_cols: boolean;
|
|
19
|
-
on_sort?: (direction: SortDirection) => void;
|
|
20
|
-
on_clear_sort?: () => void;
|
|
21
|
-
sort_direction?: SortDirection | null;
|
|
22
|
-
sort_priority?: number | null;
|
|
23
|
-
on_filter?: (datatype: FilterDatatype, selected_filter: string, value: string) => void;
|
|
24
|
-
on_clear_filter?: () => void;
|
|
25
|
-
filter_active?: boolean | null;
|
|
26
|
-
editable?: boolean;
|
|
27
|
-
i18n: I18nFormatter;
|
|
3
|
+
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
4
|
+
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
5
|
+
$$bindings?: Bindings;
|
|
6
|
+
} & Exports;
|
|
7
|
+
(internal: unknown, props: Props & {
|
|
8
|
+
$$events?: Events;
|
|
9
|
+
$$slots?: Slots;
|
|
10
|
+
}): Exports & {
|
|
11
|
+
$set?: any;
|
|
12
|
+
$on?: any;
|
|
28
13
|
};
|
|
29
|
-
|
|
30
|
-
[evt: string]: CustomEvent<any>;
|
|
31
|
-
};
|
|
32
|
-
slots: {};
|
|
33
|
-
exports?: {} | undefined;
|
|
34
|
-
bindings?: string | undefined;
|
|
35
|
-
};
|
|
36
|
-
export type CellMenuProps = typeof __propDef.props;
|
|
37
|
-
export type CellMenuEvents = typeof __propDef.events;
|
|
38
|
-
export type CellMenuSlots = typeof __propDef.slots;
|
|
39
|
-
export default class CellMenu extends SvelteComponent<CellMenuProps, CellMenuEvents, CellMenuSlots> {
|
|
14
|
+
z_$$bindings?: Bindings;
|
|
40
15
|
}
|
|
41
|
-
|
|
16
|
+
declare const CellMenu: $$__sveltets_2_IsomorphicComponent<{
|
|
17
|
+
x: number;
|
|
18
|
+
y: number;
|
|
19
|
+
on_add_row_above: () => void;
|
|
20
|
+
on_add_row_below: () => void;
|
|
21
|
+
on_add_column_left: () => void;
|
|
22
|
+
on_add_column_right: () => void;
|
|
23
|
+
row: number;
|
|
24
|
+
col_count: [number, "fixed" | "dynamic"];
|
|
25
|
+
row_count: [number, "fixed" | "dynamic"];
|
|
26
|
+
on_delete_row: () => void;
|
|
27
|
+
on_delete_col: () => void;
|
|
28
|
+
can_delete_rows: boolean;
|
|
29
|
+
can_delete_cols: boolean;
|
|
30
|
+
on_sort?: (direction: SortDirection) => void;
|
|
31
|
+
on_clear_sort?: () => void;
|
|
32
|
+
sort_direction?: SortDirection | null;
|
|
33
|
+
sort_priority?: number | null;
|
|
34
|
+
on_filter?: (datatype: FilterDatatype, selected_filter: string, value: string) => void;
|
|
35
|
+
on_clear_filter?: () => void;
|
|
36
|
+
filter_active?: boolean | null;
|
|
37
|
+
editable?: boolean;
|
|
38
|
+
i18n: I18nFormatter;
|
|
39
|
+
}, {
|
|
40
|
+
[evt: string]: CustomEvent<any>;
|
|
41
|
+
}, {}, {}, string>;
|
|
42
|
+
type CellMenu = InstanceType<typeof CellMenu>;
|
|
43
|
+
export default CellMenu;
|
|
@@ -1,18 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
2
|
+
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
3
|
+
$$bindings?: Bindings;
|
|
4
|
+
} & Exports;
|
|
5
|
+
(internal: unknown, props: Props & {
|
|
6
|
+
$$events?: Events;
|
|
7
|
+
$$slots?: Slots;
|
|
8
|
+
}): Exports & {
|
|
9
|
+
$set?: any;
|
|
10
|
+
$on?: any;
|
|
5
11
|
};
|
|
6
|
-
|
|
7
|
-
[evt: string]: CustomEvent<any>;
|
|
8
|
-
};
|
|
9
|
-
slots: {};
|
|
10
|
-
exports?: {} | undefined;
|
|
11
|
-
bindings?: string | undefined;
|
|
12
|
-
};
|
|
13
|
-
export type CellMenuButtonProps = typeof __propDef.props;
|
|
14
|
-
export type CellMenuButtonEvents = typeof __propDef.events;
|
|
15
|
-
export type CellMenuButtonSlots = typeof __propDef.slots;
|
|
16
|
-
export default class CellMenuButton extends SvelteComponent<CellMenuButtonProps, CellMenuButtonEvents, CellMenuButtonSlots> {
|
|
12
|
+
z_$$bindings?: Bindings;
|
|
17
13
|
}
|
|
18
|
-
|
|
14
|
+
declare const CellMenuButton: $$__sveltets_2_IsomorphicComponent<{
|
|
15
|
+
on_click: (event: MouseEvent) => void;
|
|
16
|
+
}, {
|
|
17
|
+
[evt: string]: CustomEvent<any>;
|
|
18
|
+
}, {}, {}, string>;
|
|
19
|
+
type CellMenuButton = InstanceType<typeof CellMenuButton>;
|
|
20
|
+
export default CellMenuButton;
|
|
@@ -1,18 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
2
|
+
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
3
|
+
$$bindings?: Bindings;
|
|
4
|
+
} & Exports;
|
|
5
|
+
(internal: unknown, props: Props & {
|
|
6
|
+
$$events?: Events;
|
|
7
|
+
$$slots?: Slots;
|
|
8
|
+
}): Exports & {
|
|
9
|
+
$set?: any;
|
|
10
|
+
$on?: any;
|
|
5
11
|
};
|
|
6
|
-
|
|
7
|
-
[evt: string]: CustomEvent<any>;
|
|
8
|
-
};
|
|
9
|
-
slots: {};
|
|
10
|
-
exports?: {} | undefined;
|
|
11
|
-
bindings?: string | undefined;
|
|
12
|
-
};
|
|
13
|
-
export type CellMenuIconsProps = typeof __propDef.props;
|
|
14
|
-
export type CellMenuIconsEvents = typeof __propDef.events;
|
|
15
|
-
export type CellMenuIconsSlots = typeof __propDef.slots;
|
|
16
|
-
export default class CellMenuIcons extends SvelteComponent<CellMenuIconsProps, CellMenuIconsEvents, CellMenuIconsSlots> {
|
|
12
|
+
z_$$bindings?: Bindings;
|
|
17
13
|
}
|
|
18
|
-
|
|
14
|
+
declare const CellMenuIcons: $$__sveltets_2_IsomorphicComponent<{
|
|
15
|
+
icon: string;
|
|
16
|
+
}, {
|
|
17
|
+
[evt: string]: CustomEvent<any>;
|
|
18
|
+
}, {}, {}, string>;
|
|
19
|
+
type CellMenuIcons = InstanceType<typeof CellMenuIcons>;
|
|
20
|
+
export default CellMenuIcons;
|