@humandialog/forms.svelte 0.4.36 → 0.4.38
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.md +0 -0
- package/components/Fab.svelte +117 -43
- package/components/Fab.svelte.d.ts +14 -14
- package/components/Floating_container.svelte +21 -20
- package/components/Floating_container.svelte.d.ts +21 -21
- package/components/Grid.menu.svelte.d.ts +25 -25
- package/components/button.svelte.d.ts +24 -24
- package/components/checkbox.svelte.d.ts +25 -25
- package/components/combo/combo.d.ts +17 -17
- package/components/combo/combo.item.svelte.d.ts +19 -19
- package/components/combo/combo.js +17 -17
- package/components/combo/combo.source.svelte.d.ts +22 -22
- package/components/combo/combo.svelte +1 -1
- package/components/combo/combo.svelte.d.ts +39 -39
- package/components/contextmenu.svelte +49 -18
- package/components/contextmenu.svelte.d.ts +26 -26
- package/components/date.svelte.d.ts +30 -30
- package/components/delayed.spinner.svelte.d.ts +19 -19
- package/components/document/internal/Document_command.d.ts +9 -9
- package/components/document/internal/Document_command.js +9 -9
- package/components/document/internal/Selection_helper.d.ts +7 -7
- package/components/document/internal/Selection_helper.js +133 -133
- package/components/document/internal/Selection_range.d.ts +26 -26
- package/components/document/internal/Selection_range.js +58 -58
- package/components/document/internal/palette.row.svelte.d.ts +36 -36
- package/components/document/internal/palette.svelte +1 -1
- package/components/document/internal/palette.svelte.d.ts +67 -67
- package/components/document/rich.edit.svelte.d.ts +23 -23
- package/components/edit.field.svelte.d.ts +27 -27
- package/components/file.loader.svelte.d.ts +25 -25
- package/components/icon.svelte.d.ts +62 -62
- package/components/input.text.svelte.d.ts +29 -29
- package/components/inputbox.ltop.svelte.d.ts +50 -50
- package/components/list/List.d.ts +34 -34
- package/components/list/List.js +40 -40
- package/components/list/internal/list.element.svelte +3 -2
- package/components/list/internal/list.element.svelte.d.ts +29 -29
- package/components/list/internal/list.inserter.svelte.d.ts +19 -19
- package/components/list/list.combo.svelte.d.ts +21 -21
- package/components/list/list.date.svelte.d.ts +18 -18
- package/components/list/list.inserter.svelte.d.ts +17 -17
- package/components/list/list.static.svelte.d.ts +17 -17
- package/components/list/list.summary.svelte.d.ts +19 -19
- package/components/list/list.svelte.d.ts +42 -42
- package/components/list/list.title.svelte.d.ts +19 -19
- package/components/menu.d.ts +4 -3
- package/components/menu.js +54 -48
- package/components/radio.svelte.d.ts +25 -25
- package/components/sidebar/sidebar.brand.svelte.d.ts +29 -29
- package/components/sidebar/sidebar.group.svelte.d.ts +31 -31
- package/components/sidebar/sidebar.item.svelte +51 -5
- package/components/sidebar/sidebar.item.svelte.d.ts +28 -28
- package/components/sidebar/sidebar.svelte.d.ts +27 -27
- package/components/simple.table.svelte.d.ts +41 -41
- package/components/table/_template.table.svelte.d.ts +57 -57
- package/components/table/column.svelte.d.ts +19 -19
- package/components/table/item.svelte.d.ts +17 -17
- package/components/table/table.d.ts +11 -11
- package/components/table/table.js +11 -11
- package/components/table/table.svelte.d.ts +75 -75
- package/components/textarea.ltop.svelte.d.ts +35 -35
- package/components/tile.title.svelte.d.ts +29 -29
- package/desk.svelte +57 -58
- package/desk.svelte.d.ts +23 -23
- package/form.box.svelte.d.ts +35 -35
- package/horizontal.toolbar.svelte +10 -13
- package/horizontal.toolbar.svelte.d.ts +23 -23
- package/index.d.ts +43 -43
- package/index.js +49 -49
- package/internal/configurable.content.svelte.d.ts +27 -27
- package/internal/loading.svelte.d.ts +23 -23
- package/modal.svelte +2 -2
- package/modal.svelte.d.ts +35 -35
- package/operations.svelte +0 -2
- package/operations.svelte.d.ts +16 -16
- package/package.json +7 -7
- package/page.row.svelte.d.ts +31 -31
- package/page.svelte.d.ts +43 -43
- package/stores.d.ts +33 -33
- package/stores.js +0 -0
- package/tenant.members.svelte.d.ts +33 -33
- package/tile.svelte.d.ts +33 -33
- package/tiles.row.svelte.d.ts +31 -31
- package/tiles.vertical.row.svelte.d.ts +29 -29
- package/updates.d.ts +3 -3
- package/updates.js +0 -0
- package/utils.d.ts +26 -26
- package/utils.js +0 -0
- package/vertical.toolbar.svelte +2 -1
- package/vertical.toolbar.svelte.d.ts +25 -25
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { SvelteComponentTyped } from "svelte";
|
|
2
|
-
declare const __propDef: {
|
|
3
|
-
props: {
|
|
4
|
-
association?: string | undefined;
|
|
5
|
-
path?: string | undefined;
|
|
6
|
-
objects?: object[] | undefined;
|
|
7
|
-
on_collect?: undefined;
|
|
8
|
-
key?: string | undefined;
|
|
9
|
-
name?: string | undefined;
|
|
10
|
-
avatar?: string | undefined;
|
|
11
|
-
};
|
|
12
|
-
events: {
|
|
13
|
-
[evt: string]: CustomEvent<any>;
|
|
14
|
-
};
|
|
15
|
-
slots: {};
|
|
16
|
-
};
|
|
17
|
-
export type ComboProps = typeof __propDef.props;
|
|
18
|
-
export type ComboEvents = typeof __propDef.events;
|
|
19
|
-
export type ComboSlots = typeof __propDef.slots;
|
|
20
|
-
export default class Combo extends SvelteComponentTyped<ComboProps, ComboEvents, ComboSlots> {
|
|
21
|
-
}
|
|
22
|
-
export {};
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
association?: string | undefined;
|
|
5
|
+
path?: string | undefined;
|
|
6
|
+
objects?: object[] | undefined;
|
|
7
|
+
on_collect?: undefined;
|
|
8
|
+
key?: string | undefined;
|
|
9
|
+
name?: string | undefined;
|
|
10
|
+
avatar?: string | undefined;
|
|
11
|
+
};
|
|
12
|
+
events: {
|
|
13
|
+
[evt: string]: CustomEvent<any>;
|
|
14
|
+
};
|
|
15
|
+
slots: {};
|
|
16
|
+
};
|
|
17
|
+
export type ComboProps = typeof __propDef.props;
|
|
18
|
+
export type ComboEvents = typeof __propDef.events;
|
|
19
|
+
export type ComboSlots = typeof __propDef.slots;
|
|
20
|
+
export default class Combo extends SvelteComponentTyped<ComboProps, ComboEvents, ComboSlots> {
|
|
21
|
+
}
|
|
22
|
+
export {};
|
|
@@ -543,7 +543,7 @@ function on_focus_out(e) {
|
|
|
543
543
|
</div>
|
|
544
544
|
|
|
545
545
|
<div hidden={!is_dropdown_open}
|
|
546
|
-
class="{cs} bg-white dark:bg-gray-800 text-gray-500 dark:text-gray-400 rounded-lg border border-gray-200 dark:border-gray-700 shadow-md overflow-y-auto cursor-pointer z-
|
|
546
|
+
class="{cs} bg-white dark:bg-gray-800 text-gray-500 dark:text-gray-400 rounded-lg border border-gray-200 dark:border-gray-700 shadow-md overflow-y-auto cursor-pointer z-30"
|
|
547
547
|
style={dropdown_position}
|
|
548
548
|
use:dropdown_action>
|
|
549
549
|
<ul class="py-1">
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import { SvelteComponentTyped } from "svelte";
|
|
2
|
-
import { rCombo_definition } from './combo';
|
|
3
|
-
declare const __propDef: {
|
|
4
|
-
props: {
|
|
5
|
-
label?: string | undefined;
|
|
6
|
-
self?: null | undefined;
|
|
7
|
-
a?: string | undefined;
|
|
8
|
-
is_association?: boolean | undefined;
|
|
9
|
-
context?: string | undefined;
|
|
10
|
-
typename?: string | undefined;
|
|
11
|
-
choice_callback?: string | undefined;
|
|
12
|
-
on_select?: undefined;
|
|
13
|
-
definition?: rCombo_definition | null | undefined;
|
|
14
|
-
changed?: undefined;
|
|
15
|
-
icon?: boolean | undefined;
|
|
16
|
-
placeholder?: string | undefined;
|
|
17
|
-
s?: string | undefined;
|
|
18
|
-
c?: string | undefined;
|
|
19
|
-
compact?: boolean | undefined;
|
|
20
|
-
in_context?: string | undefined;
|
|
21
|
-
cached?: boolean | undefined;
|
|
22
|
-
show?: ((event: any, hide_callback: any) => void) | undefined;
|
|
23
|
-
hide?: (() => void) | undefined;
|
|
24
|
-
};
|
|
25
|
-
events: {
|
|
26
|
-
[evt: string]: CustomEvent<any>;
|
|
27
|
-
};
|
|
28
|
-
slots: {
|
|
29
|
-
default: {};
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
export type ComboProps = typeof __propDef.props;
|
|
33
|
-
export type ComboEvents = typeof __propDef.events;
|
|
34
|
-
export type ComboSlots = typeof __propDef.slots;
|
|
35
|
-
export default class Combo extends SvelteComponentTyped<ComboProps, ComboEvents, ComboSlots> {
|
|
36
|
-
get show(): (event: any, hide_callback: any) => void;
|
|
37
|
-
get hide(): () => void;
|
|
38
|
-
}
|
|
39
|
-
export {};
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
import { rCombo_definition } from './combo';
|
|
3
|
+
declare const __propDef: {
|
|
4
|
+
props: {
|
|
5
|
+
label?: string | undefined;
|
|
6
|
+
self?: null | undefined;
|
|
7
|
+
a?: string | undefined;
|
|
8
|
+
is_association?: boolean | undefined;
|
|
9
|
+
context?: string | undefined;
|
|
10
|
+
typename?: string | undefined;
|
|
11
|
+
choice_callback?: string | undefined;
|
|
12
|
+
on_select?: undefined;
|
|
13
|
+
definition?: rCombo_definition | null | undefined;
|
|
14
|
+
changed?: undefined;
|
|
15
|
+
icon?: boolean | undefined;
|
|
16
|
+
placeholder?: string | undefined;
|
|
17
|
+
s?: string | undefined;
|
|
18
|
+
c?: string | undefined;
|
|
19
|
+
compact?: boolean | undefined;
|
|
20
|
+
in_context?: string | undefined;
|
|
21
|
+
cached?: boolean | undefined;
|
|
22
|
+
show?: ((event: any, hide_callback: any) => void) | undefined;
|
|
23
|
+
hide?: (() => void) | undefined;
|
|
24
|
+
};
|
|
25
|
+
events: {
|
|
26
|
+
[evt: string]: CustomEvent<any>;
|
|
27
|
+
};
|
|
28
|
+
slots: {
|
|
29
|
+
default: {};
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
export type ComboProps = typeof __propDef.props;
|
|
33
|
+
export type ComboEvents = typeof __propDef.events;
|
|
34
|
+
export type ComboSlots = typeof __propDef.slots;
|
|
35
|
+
export default class Combo extends SvelteComponentTyped<ComboProps, ComboEvents, ComboSlots> {
|
|
36
|
+
get show(): (event: any, hide_callback: any) => void;
|
|
37
|
+
get hide(): () => void;
|
|
38
|
+
}
|
|
39
|
+
export {};
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import Icon from "./icon.svelte";
|
|
3
3
|
import { context_items_store } from "../stores";
|
|
4
4
|
import { is_device_smaller_than } from "../utils";
|
|
5
|
+
import { hide_whole_context_menu } from "./menu";
|
|
5
6
|
export let width_px = 400;
|
|
6
7
|
export let menu_items_id_prefix = "__hd_svelte_menuitem_";
|
|
7
8
|
export let owner_menu_item = void 0;
|
|
@@ -44,7 +45,14 @@ export async function show(around, _operations) {
|
|
|
44
45
|
visible = true;
|
|
45
46
|
operations = [..._operations];
|
|
46
47
|
focused_index = 0;
|
|
48
|
+
const is_root_menu = owner_menu_item == void 0;
|
|
49
|
+
if (is_root_menu) {
|
|
50
|
+
hide_window_indicator = 0;
|
|
51
|
+
window.addEventListener("click", on_before_window_click, true);
|
|
52
|
+
}
|
|
47
53
|
await tick();
|
|
54
|
+
if (is_root_menu)
|
|
55
|
+
menu_root.addEventListener("click", on_before_container_click, true);
|
|
48
56
|
if (menu_items.length)
|
|
49
57
|
focus_menu_item(focused_index);
|
|
50
58
|
}
|
|
@@ -53,6 +61,8 @@ export function is_visible() {
|
|
|
53
61
|
}
|
|
54
62
|
export function hide() {
|
|
55
63
|
visible = false;
|
|
64
|
+
window.removeEventListener("click", on_before_window_click, true);
|
|
65
|
+
menu_root.removeEventListener("click", on_before_container_click, true);
|
|
56
66
|
}
|
|
57
67
|
export function get_rendered_rect() {
|
|
58
68
|
if (menu_root)
|
|
@@ -60,11 +70,24 @@ export function get_rendered_rect() {
|
|
|
60
70
|
else
|
|
61
71
|
return void 0;
|
|
62
72
|
}
|
|
73
|
+
let hide_window_indicator = 0;
|
|
74
|
+
function on_before_window_click() {
|
|
75
|
+
hide_window_indicator++;
|
|
76
|
+
setTimeout(() => {
|
|
77
|
+
if (hide_window_indicator != 0) {
|
|
78
|
+
hide_window_indicator = 0;
|
|
79
|
+
hide();
|
|
80
|
+
}
|
|
81
|
+
}, 0);
|
|
82
|
+
}
|
|
83
|
+
function on_before_container_click() {
|
|
84
|
+
hide_window_indicator--;
|
|
85
|
+
}
|
|
63
86
|
function on_keydown(e, operation, index) {
|
|
64
87
|
switch (e.key) {
|
|
65
88
|
case "Esc":
|
|
66
89
|
case "Escape":
|
|
67
|
-
|
|
90
|
+
hide_whole_context_menu();
|
|
68
91
|
break;
|
|
69
92
|
case "ArrowDown":
|
|
70
93
|
navigate_down();
|
|
@@ -118,7 +141,7 @@ function execute_action(operation, index) {
|
|
|
118
141
|
focus_menu_item(index);
|
|
119
142
|
return;
|
|
120
143
|
}
|
|
121
|
-
|
|
144
|
+
hide_whole_context_menu();
|
|
122
145
|
if (!operation)
|
|
123
146
|
return;
|
|
124
147
|
if (!operation.action)
|
|
@@ -132,34 +155,42 @@ function focus_menu_item(index) {
|
|
|
132
155
|
focused_index = index;
|
|
133
156
|
let element = menu_items[focused_index];
|
|
134
157
|
element.focus();
|
|
135
|
-
if (submenus && submenus.length
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
if (
|
|
146
|
-
|
|
158
|
+
if (submenus && submenus.length) {
|
|
159
|
+
if (submenus[focused_index]) {
|
|
160
|
+
let rect = element.getBoundingClientRect();
|
|
161
|
+
let container_rect = new DOMRect(0, 0, window.innerWidth, window.innerHeight);
|
|
162
|
+
let _x = rect.right;
|
|
163
|
+
let _y = rect.top;
|
|
164
|
+
let submenu_width = min_width_px;
|
|
165
|
+
let rendered_rect = submenus[focused_index].get_rendered_rect();
|
|
166
|
+
if (rendered_rect && rendered_rect.width > 0)
|
|
167
|
+
submenu_width = rendered_rect.width;
|
|
168
|
+
if (_x + submenu_width > container_rect.right) {
|
|
169
|
+
if (rect.left - container_rect.left > container_rect.right - rect.right)
|
|
170
|
+
_x = rect.left - submenu_width;
|
|
171
|
+
}
|
|
172
|
+
submenus[focused_index].show(new DOMPoint(_x, _y), operations[focused_index].menu);
|
|
173
|
+
}
|
|
174
|
+
for (let i = 0; i < submenus.length; i++) {
|
|
175
|
+
if (i != focused_index) {
|
|
176
|
+
if (submenus[i])
|
|
177
|
+
submenus[i].hide();
|
|
178
|
+
}
|
|
147
179
|
}
|
|
148
|
-
submenus[focused_index].show(_x, _y, operations[focused_index].menu);
|
|
149
180
|
}
|
|
150
181
|
}
|
|
151
182
|
function hide_submenu() {
|
|
152
183
|
if (!owner_menu_item)
|
|
153
184
|
return;
|
|
154
185
|
owner_menu_item.focus();
|
|
186
|
+
hide();
|
|
155
187
|
}
|
|
156
188
|
</script>
|
|
157
189
|
|
|
158
190
|
<div id="__hd_svelte_contextmenu"
|
|
159
|
-
class="bg-white dark:bg-gray-800 text-gray-500 dark:text-gray-400 rounded-lg border border-gray-200 dark:border-gray-700 shadow-md z-
|
|
191
|
+
class="bg-white dark:bg-gray-800 text-gray-500 dark:text-gray-400 rounded-lg border border-gray-200 dark:border-gray-700 shadow-md z-30 fixed min-w-[{min_width_px}px] w-max"
|
|
160
192
|
style={`left:${x}px; top:${y}px; display:${display}`}
|
|
161
|
-
bind:this={menu_root}
|
|
162
|
-
on:focusout={on_change_focus}>
|
|
193
|
+
bind:this={menu_root}>
|
|
163
194
|
|
|
164
195
|
{#each operations as operation, index}
|
|
165
196
|
{@const is_separator = operation.separator}
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { SvelteComponentTyped } from "svelte";
|
|
2
|
-
declare const __propDef: {
|
|
3
|
-
props: {
|
|
4
|
-
width_px?: number | undefined;
|
|
5
|
-
menu_items_id_prefix?: string | undefined;
|
|
6
|
-
owner_menu_item?: HTMLElement | undefined;
|
|
7
|
-
show?: ((around: DOMRect | DOMPoint, _operations: any) => Promise<void>) | undefined;
|
|
8
|
-
is_visible?: (() => boolean) | undefined;
|
|
9
|
-
hide?: (() => void) | undefined;
|
|
10
|
-
get_rendered_rect?: (() => DOMRect | undefined) | undefined;
|
|
11
|
-
};
|
|
12
|
-
events: {
|
|
13
|
-
[evt: string]: CustomEvent<any>;
|
|
14
|
-
};
|
|
15
|
-
slots: {};
|
|
16
|
-
};
|
|
17
|
-
export type ContextmenuProps = typeof __propDef.props;
|
|
18
|
-
export type ContextmenuEvents = typeof __propDef.events;
|
|
19
|
-
export type ContextmenuSlots = typeof __propDef.slots;
|
|
20
|
-
export default class Contextmenu extends SvelteComponentTyped<ContextmenuProps, ContextmenuEvents, ContextmenuSlots> {
|
|
21
|
-
get show(): (around: DOMRect | DOMPoint, _operations: any) => Promise<void>;
|
|
22
|
-
get is_visible(): () => boolean;
|
|
23
|
-
get hide(): () => void;
|
|
24
|
-
get get_rendered_rect(): () => DOMRect | undefined;
|
|
25
|
-
}
|
|
26
|
-
export {};
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
width_px?: number | undefined;
|
|
5
|
+
menu_items_id_prefix?: string | undefined;
|
|
6
|
+
owner_menu_item?: HTMLElement | undefined;
|
|
7
|
+
show?: ((around: DOMRect | DOMPoint, _operations: any) => Promise<void>) | undefined;
|
|
8
|
+
is_visible?: (() => boolean) | undefined;
|
|
9
|
+
hide?: (() => void) | undefined;
|
|
10
|
+
get_rendered_rect?: (() => DOMRect | undefined) | undefined;
|
|
11
|
+
};
|
|
12
|
+
events: {
|
|
13
|
+
[evt: string]: CustomEvent<any>;
|
|
14
|
+
};
|
|
15
|
+
slots: {};
|
|
16
|
+
};
|
|
17
|
+
export type ContextmenuProps = typeof __propDef.props;
|
|
18
|
+
export type ContextmenuEvents = typeof __propDef.events;
|
|
19
|
+
export type ContextmenuSlots = typeof __propDef.slots;
|
|
20
|
+
export default class Contextmenu extends SvelteComponentTyped<ContextmenuProps, ContextmenuEvents, ContextmenuSlots> {
|
|
21
|
+
get show(): (around: DOMRect | DOMPoint, _operations: any) => Promise<void>;
|
|
22
|
+
get is_visible(): () => boolean;
|
|
23
|
+
get hide(): () => void;
|
|
24
|
+
get get_rendered_rect(): () => DOMRect | undefined;
|
|
25
|
+
}
|
|
26
|
+
export {};
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { SvelteComponentTyped } from "svelte";
|
|
2
|
-
declare const __propDef: {
|
|
3
|
-
props: {
|
|
4
|
-
[x: string]: any;
|
|
5
|
-
self?: null | undefined;
|
|
6
|
-
a?: string | undefined;
|
|
7
|
-
context?: string | undefined;
|
|
8
|
-
typename?: string | undefined;
|
|
9
|
-
date?: Date | undefined;
|
|
10
|
-
on_select?: undefined;
|
|
11
|
-
type?: string | undefined;
|
|
12
|
-
changed?: undefined;
|
|
13
|
-
s?: string | undefined;
|
|
14
|
-
c?: string | undefined;
|
|
15
|
-
compact?: boolean | undefined;
|
|
16
|
-
in_context?: string | undefined;
|
|
17
|
-
show?: ((event: any, hide_callback: any) => void) | undefined;
|
|
18
|
-
};
|
|
19
|
-
events: {
|
|
20
|
-
[evt: string]: CustomEvent<any>;
|
|
21
|
-
};
|
|
22
|
-
slots: {};
|
|
23
|
-
};
|
|
24
|
-
export type DateProps = typeof __propDef.props;
|
|
25
|
-
export type DateEvents = typeof __propDef.events;
|
|
26
|
-
export type DateSlots = typeof __propDef.slots;
|
|
27
|
-
export default class Date extends SvelteComponentTyped<DateProps, DateEvents, DateSlots> {
|
|
28
|
-
get show(): (event: any, hide_callback: any) => void;
|
|
29
|
-
}
|
|
30
|
-
export {};
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
[x: string]: any;
|
|
5
|
+
self?: null | undefined;
|
|
6
|
+
a?: string | undefined;
|
|
7
|
+
context?: string | undefined;
|
|
8
|
+
typename?: string | undefined;
|
|
9
|
+
date?: Date | undefined;
|
|
10
|
+
on_select?: undefined;
|
|
11
|
+
type?: string | undefined;
|
|
12
|
+
changed?: undefined;
|
|
13
|
+
s?: string | undefined;
|
|
14
|
+
c?: string | undefined;
|
|
15
|
+
compact?: boolean | undefined;
|
|
16
|
+
in_context?: string | undefined;
|
|
17
|
+
show?: ((event: any, hide_callback: any) => void) | undefined;
|
|
18
|
+
};
|
|
19
|
+
events: {
|
|
20
|
+
[evt: string]: CustomEvent<any>;
|
|
21
|
+
};
|
|
22
|
+
slots: {};
|
|
23
|
+
};
|
|
24
|
+
export type DateProps = typeof __propDef.props;
|
|
25
|
+
export type DateEvents = typeof __propDef.events;
|
|
26
|
+
export type DateSlots = typeof __propDef.slots;
|
|
27
|
+
export default class Date extends SvelteComponentTyped<DateProps, DateEvents, DateSlots> {
|
|
28
|
+
get show(): (event: any, hide_callback: any) => void;
|
|
29
|
+
}
|
|
30
|
+
export {};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { SvelteComponentTyped } from "svelte";
|
|
2
|
-
declare const __propDef: {
|
|
3
|
-
props: {
|
|
4
|
-
[x: string]: any;
|
|
5
|
-
color?: string | undefined;
|
|
6
|
-
size?: number | undefined;
|
|
7
|
-
delay?: number | undefined;
|
|
8
|
-
};
|
|
9
|
-
events: {
|
|
10
|
-
[evt: string]: CustomEvent<any>;
|
|
11
|
-
};
|
|
12
|
-
slots: {};
|
|
13
|
-
};
|
|
14
|
-
export type DelayedProps = typeof __propDef.props;
|
|
15
|
-
export type DelayedEvents = typeof __propDef.events;
|
|
16
|
-
export type DelayedSlots = typeof __propDef.slots;
|
|
17
|
-
export default class Delayed extends SvelteComponentTyped<DelayedProps, DelayedEvents, DelayedSlots> {
|
|
18
|
-
}
|
|
19
|
-
export {};
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
[x: string]: any;
|
|
5
|
+
color?: string | undefined;
|
|
6
|
+
size?: number | undefined;
|
|
7
|
+
delay?: number | undefined;
|
|
8
|
+
};
|
|
9
|
+
events: {
|
|
10
|
+
[evt: string]: CustomEvent<any>;
|
|
11
|
+
};
|
|
12
|
+
slots: {};
|
|
13
|
+
};
|
|
14
|
+
export type DelayedProps = typeof __propDef.props;
|
|
15
|
+
export type DelayedEvents = typeof __propDef.events;
|
|
16
|
+
export type DelayedSlots = typeof __propDef.slots;
|
|
17
|
+
export default class Delayed extends SvelteComponentTyped<DelayedProps, DelayedEvents, DelayedSlots> {
|
|
18
|
+
}
|
|
19
|
+
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export declare class Document_command {
|
|
2
|
-
caption: string;
|
|
3
|
-
description: string;
|
|
4
|
-
tags?: string;
|
|
5
|
-
shortcut?: string;
|
|
6
|
-
icon: any;
|
|
7
|
-
icon_size?: number;
|
|
8
|
-
on_choice: any;
|
|
9
|
-
}
|
|
1
|
+
export declare class Document_command {
|
|
2
|
+
caption: string;
|
|
3
|
+
description: string;
|
|
4
|
+
tags?: string;
|
|
5
|
+
shortcut?: string;
|
|
6
|
+
icon: any;
|
|
7
|
+
icon_size?: number;
|
|
8
|
+
on_choice: any;
|
|
9
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export class Document_command {
|
|
2
|
-
caption;
|
|
3
|
-
description;
|
|
4
|
-
tags;
|
|
5
|
-
shortcut;
|
|
6
|
-
icon;
|
|
7
|
-
icon_size = 6;
|
|
8
|
-
on_choice;
|
|
9
|
-
}
|
|
1
|
+
export class Document_command {
|
|
2
|
+
caption;
|
|
3
|
+
description;
|
|
4
|
+
tags;
|
|
5
|
+
shortcut;
|
|
6
|
+
icon;
|
|
7
|
+
icon_size = 6;
|
|
8
|
+
on_choice;
|
|
9
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Selection_range } from "./Selection_range";
|
|
2
|
-
export declare class Selection_helper {
|
|
3
|
-
private static nodewalk;
|
|
4
|
-
static create_cursor_range(elem: HTMLElement, nrOfChars: number): [Range, Node];
|
|
5
|
-
static create_range(elem: HTMLElement, start: number, end: number): Range;
|
|
6
|
-
static get_selection(elem: HTMLElement): Selection_range;
|
|
7
|
-
}
|
|
1
|
+
import { Selection_range } from "./Selection_range";
|
|
2
|
+
export declare class Selection_helper {
|
|
3
|
+
private static nodewalk;
|
|
4
|
+
static create_cursor_range(elem: HTMLElement, nrOfChars: number): [Range, Node];
|
|
5
|
+
static create_range(elem: HTMLElement, start: number, end: number): Range;
|
|
6
|
+
static get_selection(elem: HTMLElement): Selection_range;
|
|
7
|
+
}
|