@humandialog/forms.svelte 1.3.11 → 1.3.13
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 +112 -34
- package/components/Fab.svelte.d.ts +17 -17
- package/components/Floating_container.svelte +86 -21
- package/components/Floating_container.svelte.d.ts +21 -21
- package/components/Grid.menu.svelte.d.ts +25 -25
- package/components/button.svelte.d.ts +26 -26
- package/components/checkbox.svelte.d.ts +26 -26
- package/components/combo/combo.d.ts +19 -19
- package/components/combo/combo.item.svelte.d.ts +20 -20
- package/components/combo/combo.js +19 -19
- package/components/combo/combo.source.svelte.d.ts +23 -23
- package/components/combo/combo.svelte +64 -30
- package/components/combo/combo.svelte.d.ts +44 -44
- package/components/contextmenu.svelte +97 -30
- package/components/contextmenu.svelte.d.ts +26 -26
- package/components/date.svelte +40 -30
- package/components/date.svelte.d.ts +33 -33
- package/components/delayed.spinner.svelte.d.ts +19 -19
- package/components/document/editor.svelte +33 -6
- package/components/document/editor.svelte.d.ts +35 -35
- package/components/document/internal/Document_command.d.ts +12 -11
- package/components/document/internal/Document_command.js +12 -11
- 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/findSuggestionMatch.d.ts +16 -16
- package/components/document/internal/findSuggestionMatch.js +51 -51
- package/components/document/internal/h1.icon.svelte.d.ts +23 -23
- package/components/document/internal/h2.icon.svelte.d.ts +23 -23
- package/components/document/internal/h3.icon.svelte.d.ts +23 -23
- package/components/document/internal/h4.icon.svelte.d.ts +23 -23
- package/components/document/internal/palette.row.big.svelte.d.ts +46 -46
- package/components/document/internal/palette.row.svelte +1 -1
- package/components/document/internal/palette.row.svelte.d.ts +46 -46
- package/components/document/internal/palette.svelte +23 -15
- package/components/document/internal/palette.svelte.d.ts +82 -82
- package/components/document/internal/suggestion.d.ts +158 -158
- package/components/document/internal/suggestion.js +194 -194
- package/components/document/rich.edit.svelte.d.ts +34 -34
- package/components/edit.field.svelte.d.ts +31 -31
- package/components/file.loader.svelte.d.ts +25 -25
- package/components/icon.ex.svelte.d.ts +62 -62
- package/components/icon.svelte.d.ts +62 -62
- package/components/input.text.svelte.d.ts +29 -29
- package/components/inputbox.ltop.svelte.d.ts +59 -59
- package/components/kanban/Kanban.d.ts +47 -47
- package/components/kanban/Kanban.js +105 -105
- package/components/kanban/internal/kanban.card.svelte +5 -3
- package/components/kanban/internal/kanban.card.svelte.d.ts +32 -32
- package/components/kanban/internal/kanban.column.svelte.d.ts +53 -53
- package/components/kanban/internal/kanban.inserter.svelte.d.ts +18 -18
- package/components/kanban/internal/kanban.move.menu.svelte +135 -135
- package/components/kanban/internal/kanban.move.menu.svelte.d.ts +22 -22
- package/components/kanban/internal/kanban.props.svelte.d.ts +19 -19
- package/components/kanban/kanban.callbacks.svelte +1 -1
- package/components/kanban/kanban.callbacks.svelte.d.ts +18 -18
- package/components/kanban/kanban.column.svelte.d.ts +21 -21
- package/components/kanban/kanban.combo.svelte.d.ts +25 -25
- package/components/kanban/kanban.date.svelte +1 -1
- package/components/kanban/kanban.date.svelte.d.ts +21 -21
- package/components/kanban/kanban.source.svelte.d.ts +23 -23
- package/components/kanban/kanban.static.svelte.d.ts +20 -20
- package/components/kanban/kanban.summary.svelte.d.ts +18 -18
- package/components/kanban/kanban.svelte.d.ts +65 -65
- package/components/kanban/kanban.tags.svelte.d.ts +24 -24
- package/components/kanban/kanban.title.svelte.d.ts +21 -21
- package/components/list/List.d.ts +46 -46
- package/components/list/List.js +54 -54
- package/components/list/internal/list.element.props.svelte +2 -2
- package/components/list/internal/list.element.props.svelte.d.ts +21 -21
- package/components/list/internal/list.element.summary.svelte +46 -46
- package/components/list/internal/list.element.summary.svelte.d.ts +24 -24
- package/components/list/internal/list.element.svelte +8 -6
- package/components/list/internal/list.element.svelte.d.ts +31 -31
- package/components/list/internal/list.inserter.svelte.d.ts +19 -19
- package/components/list/list.combo.svelte.d.ts +22 -22
- 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 +59 -59
- package/components/list/list.title.svelte.d.ts +22 -22
- package/components/menu.d.ts +5 -5
- package/components/menu.js +57 -57
- package/components/radio.svelte.d.ts +26 -26
- package/components/sidebar/sidebar.brand.svelte.d.ts +33 -33
- package/components/sidebar/sidebar.group.svelte +2 -2
- package/components/sidebar/sidebar.group.svelte.d.ts +33 -33
- package/components/sidebar/sidebar.item.svelte +52 -29
- package/components/sidebar/sidebar.item.svelte.d.ts +32 -32
- package/components/sidebar/sidebar.list.svelte +4 -2
- package/components/sidebar/sidebar.list.svelte.d.ts +38 -38
- 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 +6 -3
- package/components/table/table.svelte.d.ts +75 -75
- package/components/tag.colors.svelte.d.ts +17 -17
- package/components/tag.svelte +12 -9
- package/components/tag.svelte.d.ts +20 -20
- package/components/tags.svelte +13 -11
- package/components/tags.svelte.d.ts +32 -32
- package/components/textarea.ltop.svelte.d.ts +35 -35
- package/components/tile.title.svelte.d.ts +29 -29
- package/console.svelte.d.ts +23 -23
- package/desk.svelte +60 -27
- package/desk.svelte.d.ts +23 -23
- package/form.box.svelte.d.ts +35 -35
- package/horizontal.toolbar.svelte +3 -3
- package/horizontal.toolbar.svelte.d.ts +25 -25
- package/index.d.ts +63 -63
- package/index.js +69 -69
- package/internal/configurable.content.svelte.d.ts +29 -29
- package/internal/loading.svelte.d.ts +23 -23
- package/modal.svelte.d.ts +39 -39
- package/operations.svelte +37 -8
- package/operations.svelte.d.ts +16 -16
- package/package.json +9 -9
- package/page.row.svelte.d.ts +31 -31
- package/page.svelte +7 -2
- package/page.svelte.d.ts +47 -47
- package/stores.d.ts +45 -44
- package/stores.js +3 -2
- package/tenant.members.svelte +69 -39
- 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 +4 -4
- package/utils.d.ts +50 -50
- package/utils.js +36 -7
- package/vertical.toolbar.svelte +1 -1
- package/vertical.toolbar.svelte.d.ts +27 -27
package/components/date.svelte
CHANGED
|
@@ -73,6 +73,12 @@ switch (s) {
|
|
|
73
73
|
line_h = "h-6 sm:h-6";
|
|
74
74
|
chevron_mt = "mt-1.5 sm:mt-0.5";
|
|
75
75
|
break;
|
|
76
|
+
default:
|
|
77
|
+
input_pt = "";
|
|
78
|
+
input_pb = "";
|
|
79
|
+
font_size = "";
|
|
80
|
+
line_h = "";
|
|
81
|
+
chevron_mt = "";
|
|
76
82
|
}
|
|
77
83
|
let item = null;
|
|
78
84
|
let user_class = $$restProps.class ?? "";
|
|
@@ -291,40 +297,44 @@ function blur(e) {
|
|
|
291
297
|
</script>
|
|
292
298
|
|
|
293
299
|
{#if is_compact}
|
|
294
|
-
<div class="inline-block
|
|
300
|
+
<div class="inline-block {line_h}">
|
|
295
301
|
<div class="dark:text-stone-300 {font_size} truncate
|
|
296
302
|
pl-0 pr-0
|
|
297
|
-
h-full
|
|
298
|
-
<
|
|
299
|
-
|
|
300
|
-
|
|
303
|
+
h-full " >
|
|
304
|
+
<p >
|
|
305
|
+
<span class="inline-block relative flex flex-row items-center">
|
|
306
|
+
<span class="grow-1 pr-2.5 ">
|
|
307
|
+
{pretty_value}
|
|
308
|
+
</span>
|
|
301
309
|
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
310
|
+
{#if can_be_activated}
|
|
311
|
+
<div class="no-print ml-auto w-3 h-3 {chevron_mt} text-stone-700 dark:text-stone-300">
|
|
312
|
+
<FaChevronDown/>
|
|
313
|
+
</div>
|
|
314
|
+
{/if}
|
|
315
|
+
|
|
316
|
+
{#if can_be_activated}
|
|
317
|
+
{#if type == "datetime-local"}
|
|
318
|
+
<input type="datetime-local"
|
|
319
|
+
class="datepicker-input"
|
|
320
|
+
tabindex="-1"
|
|
321
|
+
on:change={on_changed}
|
|
322
|
+
bind:value={rValue}
|
|
323
|
+
bind:this={input_element}>
|
|
324
|
+
{:else}
|
|
325
|
+
<input type="date"
|
|
326
|
+
class="datepicker-input"
|
|
327
|
+
tabindex="-1"
|
|
328
|
+
on:change={on_changed}
|
|
329
|
+
bind:value={rValue}
|
|
330
|
+
bind:this={input_element}
|
|
331
|
+
on:blur={blur}>
|
|
332
|
+
{/if}
|
|
333
|
+
{/if}
|
|
334
|
+
|
|
335
|
+
</span>
|
|
336
|
+
</p>
|
|
325
337
|
|
|
326
|
-
|
|
327
|
-
{/if}
|
|
328
338
|
</div>
|
|
329
339
|
|
|
330
340
|
|
|
@@ -1,33 +1,33 @@
|
|
|
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
|
-
onSelect?: undefined;
|
|
11
|
-
type?: string | undefined;
|
|
12
|
-
changed?: undefined;
|
|
13
|
-
s?: string | undefined;
|
|
14
|
-
c?: string | undefined;
|
|
15
|
-
compact?: boolean | undefined;
|
|
16
|
-
inContext?: string | undefined;
|
|
17
|
-
pushChangesImmediately?: boolean | undefined;
|
|
18
|
-
show?: ((event: any, hide_callback: any) => void) | undefined;
|
|
19
|
-
refresh?: (() => void) | undefined;
|
|
20
|
-
};
|
|
21
|
-
events: {
|
|
22
|
-
[evt: string]: CustomEvent<any>;
|
|
23
|
-
};
|
|
24
|
-
slots: {};
|
|
25
|
-
};
|
|
26
|
-
export type DateProps = typeof __propDef.props;
|
|
27
|
-
export type DateEvents = typeof __propDef.events;
|
|
28
|
-
export type DateSlots = typeof __propDef.slots;
|
|
29
|
-
export default class Date extends SvelteComponentTyped<DateProps, DateEvents, DateSlots> {
|
|
30
|
-
get show(): (event: any, hide_callback: any) => void;
|
|
31
|
-
get refresh(): () => void;
|
|
32
|
-
}
|
|
33
|
-
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
|
+
onSelect?: undefined;
|
|
11
|
+
type?: string | undefined;
|
|
12
|
+
changed?: undefined;
|
|
13
|
+
s?: string | undefined;
|
|
14
|
+
c?: string | undefined;
|
|
15
|
+
compact?: boolean | undefined;
|
|
16
|
+
inContext?: string | undefined;
|
|
17
|
+
pushChangesImmediately?: boolean | undefined;
|
|
18
|
+
show?: ((event: any, hide_callback: any) => void) | undefined;
|
|
19
|
+
refresh?: (() => void) | undefined;
|
|
20
|
+
};
|
|
21
|
+
events: {
|
|
22
|
+
[evt: string]: CustomEvent<any>;
|
|
23
|
+
};
|
|
24
|
+
slots: {};
|
|
25
|
+
};
|
|
26
|
+
export type DateProps = typeof __propDef.props;
|
|
27
|
+
export type DateEvents = typeof __propDef.events;
|
|
28
|
+
export type DateSlots = typeof __propDef.slots;
|
|
29
|
+
export default class Date extends SvelteComponentTyped<DateProps, DateEvents, DateSlots> {
|
|
30
|
+
get show(): (event: any, hide_callback: any) => void;
|
|
31
|
+
get refresh(): () => void;
|
|
32
|
+
}
|
|
33
|
+
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 {};
|
|
@@ -26,7 +26,7 @@ import Underline from "@tiptap/extension-underline";
|
|
|
26
26
|
import Dropcursor from "@tiptap/extension-dropcursor";
|
|
27
27
|
import Gapcursor from "@tiptap/extension-gapcursor";
|
|
28
28
|
import History from "@tiptap/extension-history";
|
|
29
|
-
import { data_tick_store, contextItemsStore, contextTypesStore, onErrorShowAlert } from "../../stores.js";
|
|
29
|
+
import { data_tick_store, contextItemsStore, contextTypesStore, onErrorShowAlert, toolsActionsOperations } from "../../stores.js";
|
|
30
30
|
import { informModification, pushChanges } from "../../updates.js";
|
|
31
31
|
import { isDeviceSmallerThan, parseWidthDirective, refreshToolbarOperations, UI } from "../../utils.js";
|
|
32
32
|
import Palette from "./internal/palette.svelte";
|
|
@@ -46,7 +46,8 @@ import {
|
|
|
46
46
|
FaArrowLeft,
|
|
47
47
|
FaGripLines,
|
|
48
48
|
FaListUl,
|
|
49
|
-
FaTable
|
|
49
|
+
FaTable,
|
|
50
|
+
FaTimes
|
|
50
51
|
} from "svelte-icons/fa";
|
|
51
52
|
import IcH1 from "./internal/h1.icon.svelte";
|
|
52
53
|
import IcH2 from "./internal/h2.icon.svelte";
|
|
@@ -186,6 +187,7 @@ const suggestion = {
|
|
|
186
187
|
editor.commands.blur();
|
|
187
188
|
palette.set_current_editor_range(props.range);
|
|
188
189
|
const cursorRect = props.clientRect();
|
|
190
|
+
palette.filter("");
|
|
189
191
|
setTimeout(() => show_command_palette(cursorRect), 100);
|
|
190
192
|
} else {
|
|
191
193
|
const cursorRect = props.clientRect();
|
|
@@ -573,9 +575,31 @@ function on_palette_mouse_click() {
|
|
|
573
575
|
}
|
|
574
576
|
function on_palette_shown() {
|
|
575
577
|
is_command_palette_visible = true;
|
|
578
|
+
if (isDeviceSmallerThan("sm")) {
|
|
579
|
+
$toolsActionsOperations = {
|
|
580
|
+
opver: 1,
|
|
581
|
+
operations: [
|
|
582
|
+
{
|
|
583
|
+
caption: "Palette",
|
|
584
|
+
operations: [
|
|
585
|
+
{
|
|
586
|
+
icon: FaTimes,
|
|
587
|
+
action: (f) => {
|
|
588
|
+
palette.hide();
|
|
589
|
+
editor?.commands.focus();
|
|
590
|
+
},
|
|
591
|
+
fab: "M00",
|
|
592
|
+
tbr: "A"
|
|
593
|
+
}
|
|
594
|
+
]
|
|
595
|
+
}
|
|
596
|
+
]
|
|
597
|
+
};
|
|
598
|
+
}
|
|
576
599
|
}
|
|
577
600
|
function on_palette_hidden() {
|
|
578
601
|
is_command_palette_visible = false;
|
|
602
|
+
$toolsActionsOperations = [];
|
|
579
603
|
}
|
|
580
604
|
function show_command_palette(cursor_rect) {
|
|
581
605
|
let client_rect = get_window_box();
|
|
@@ -585,10 +609,12 @@ function show_command_palette(cursor_rect) {
|
|
|
585
609
|
show_big_command_palette(cursor_rect, client_rect);
|
|
586
610
|
}
|
|
587
611
|
function show_small_command_palette(client_rect) {
|
|
588
|
-
|
|
589
|
-
palette.
|
|
590
|
-
|
|
591
|
-
let
|
|
612
|
+
const margin = 5;
|
|
613
|
+
palette.max_height_px = client_rect.height / 2 - margin;
|
|
614
|
+
palette.width_px = client_rect.width - 2 * margin;
|
|
615
|
+
let x = margin;
|
|
616
|
+
let y = client_rect.bottom - margin;
|
|
617
|
+
let show_above = true;
|
|
592
618
|
palette.show(x, y, show_above);
|
|
593
619
|
}
|
|
594
620
|
function show_big_command_palette(cursor_rect, client_rect) {
|
|
@@ -661,6 +687,7 @@ function handleImagesChanges(transaction) {
|
|
|
661
687
|
}
|
|
662
688
|
let commands = [
|
|
663
689
|
//{ caption: 'Styles', separator: true },
|
|
690
|
+
// { caption: 'Back to edit', description: 'Escape', icon: FaArrowLeft, on_choice: () => { editor?.commands.focus()}, is_visible: () => isDeviceSmallerThan("sm") },
|
|
664
691
|
{ caption: "Normal", description: "This is normal text style", tags: "text", icon: FaRemoveFormat, on_choice: (range) => {
|
|
665
692
|
if (range)
|
|
666
693
|
editor.chain().focus().deleteRange(range).setParagraph().run();
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import { SvelteComponentTyped } from "svelte";
|
|
2
|
-
declare const __propDef: {
|
|
3
|
-
props: {
|
|
4
|
-
[x: string]: any;
|
|
5
|
-
value?: string | undefined;
|
|
6
|
-
placeholder?: string | undefined;
|
|
7
|
-
self?: null | undefined;
|
|
8
|
-
a?: string | undefined;
|
|
9
|
-
context?: string | undefined;
|
|
10
|
-
typename?: string | undefined;
|
|
11
|
-
compact?: boolean | undefined;
|
|
12
|
-
onFocusCb?: undefined;
|
|
13
|
-
onBlurCb?: undefined;
|
|
14
|
-
onAddImage?: undefined;
|
|
15
|
-
onRemoveImage?: undefined;
|
|
16
|
-
c?: string | undefined;
|
|
17
|
-
pushChangesImmediately?: boolean | undefined;
|
|
18
|
-
run?: ((onStop?: undefined) => void) | undefined;
|
|
19
|
-
getFormattingOperations?: ((withCaptions?: boolean) => any[]) | undefined;
|
|
20
|
-
save?: (() => void) | undefined;
|
|
21
|
-
};
|
|
22
|
-
events: {
|
|
23
|
-
[evt: string]: CustomEvent<any>;
|
|
24
|
-
};
|
|
25
|
-
slots: {};
|
|
26
|
-
};
|
|
27
|
-
export type EditorProps = typeof __propDef.props;
|
|
28
|
-
export type EditorEvents = typeof __propDef.events;
|
|
29
|
-
export type EditorSlots = typeof __propDef.slots;
|
|
30
|
-
export default class Editor extends SvelteComponentTyped<EditorProps, EditorEvents, EditorSlots> {
|
|
31
|
-
get run(): (onStop?: undefined) => void;
|
|
32
|
-
get getFormattingOperations(): (withCaptions?: boolean) => any[];
|
|
33
|
-
get save(): () => void;
|
|
34
|
-
}
|
|
35
|
-
export {};
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
[x: string]: any;
|
|
5
|
+
value?: string | undefined;
|
|
6
|
+
placeholder?: string | undefined;
|
|
7
|
+
self?: null | undefined;
|
|
8
|
+
a?: string | undefined;
|
|
9
|
+
context?: string | undefined;
|
|
10
|
+
typename?: string | undefined;
|
|
11
|
+
compact?: boolean | undefined;
|
|
12
|
+
onFocusCb?: undefined;
|
|
13
|
+
onBlurCb?: undefined;
|
|
14
|
+
onAddImage?: undefined;
|
|
15
|
+
onRemoveImage?: undefined;
|
|
16
|
+
c?: string | undefined;
|
|
17
|
+
pushChangesImmediately?: boolean | undefined;
|
|
18
|
+
run?: ((onStop?: undefined) => void) | undefined;
|
|
19
|
+
getFormattingOperations?: ((withCaptions?: boolean) => any[]) | undefined;
|
|
20
|
+
save?: (() => void) | undefined;
|
|
21
|
+
};
|
|
22
|
+
events: {
|
|
23
|
+
[evt: string]: CustomEvent<any>;
|
|
24
|
+
};
|
|
25
|
+
slots: {};
|
|
26
|
+
};
|
|
27
|
+
export type EditorProps = typeof __propDef.props;
|
|
28
|
+
export type EditorEvents = typeof __propDef.events;
|
|
29
|
+
export type EditorSlots = typeof __propDef.slots;
|
|
30
|
+
export default class Editor extends SvelteComponentTyped<EditorProps, EditorEvents, EditorSlots> {
|
|
31
|
+
get run(): (onStop?: undefined) => void;
|
|
32
|
+
get getFormattingOperations(): (withCaptions?: boolean) => any[];
|
|
33
|
+
get save(): () => void;
|
|
34
|
+
}
|
|
35
|
+
export {};
|
|
@@ -1,11 +1,12 @@
|
|
|
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
|
-
is_active: any;
|
|
10
|
-
|
|
11
|
-
|
|
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
|
+
is_active: any;
|
|
10
|
+
is_visible: any;
|
|
11
|
+
separator?: boolean;
|
|
12
|
+
}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
export class Document_command {
|
|
2
|
-
caption;
|
|
3
|
-
description;
|
|
4
|
-
tags;
|
|
5
|
-
shortcut;
|
|
6
|
-
icon;
|
|
7
|
-
icon_size = 6;
|
|
8
|
-
on_choice;
|
|
9
|
-
is_active;
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
export class Document_command {
|
|
2
|
+
caption;
|
|
3
|
+
description;
|
|
4
|
+
tags;
|
|
5
|
+
shortcut;
|
|
6
|
+
icon;
|
|
7
|
+
icon_size = 6;
|
|
8
|
+
on_choice;
|
|
9
|
+
is_active;
|
|
10
|
+
is_visible;
|
|
11
|
+
separator = false;
|
|
12
|
+
}
|
|
@@ -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
|
+
}
|