@humandialog/forms.svelte 1.3.10 → 1.3.11
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.d.ts +17 -17
- 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.d.ts +44 -44
- package/components/contextmenu.svelte.d.ts +26 -26
- package/components/date.svelte.d.ts +33 -33
- package/components/delayed.spinner.svelte.d.ts +19 -19
- package/components/document/editor.svelte.d.ts +35 -35
- package/components/document/internal/Document_command.d.ts +11 -11
- package/components/document/internal/Document_command.js +11 -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.d.ts +46 -46
- 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.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.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 +5 -5
- 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.d.ts +33 -33
- package/components/sidebar/sidebar.item.svelte +2 -2
- package/components/sidebar/sidebar.item.svelte.d.ts +32 -32
- 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.d.ts +75 -75
- package/components/tag.colors.svelte.d.ts +17 -17
- package/components/tag.svelte.d.ts +20 -20
- 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.d.ts +23 -23
- package/form.box.svelte.d.ts +35 -35
- 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.d.ts +16 -16
- package/package.json +9 -9
- package/page.row.svelte.d.ts +31 -31
- package/page.svelte.d.ts +47 -47
- package/stores.d.ts +44 -44
- 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/updates.js +29 -2
- package/utils.d.ts +50 -50
- package/utils.js +1 -1
- package/vertical.toolbar.svelte.d.ts +27 -27
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
import { escapeForRegEx } from '@tiptap/core';
|
|
2
|
-
import {} from '@tiptap/core';
|
|
3
|
-
import { ResolvedPos } from '@tiptap/pm/model';
|
|
4
|
-
export function findSuggestionMatch(config) {
|
|
5
|
-
const { char, allowSpaces: allowSpacesOption, allowToIncludeChar, allowedPrefixes, startOfLine, $position, } = config;
|
|
6
|
-
const allowSpaces = allowSpacesOption && !allowToIncludeChar;
|
|
7
|
-
const escapedChar = escapeForRegEx(char);
|
|
8
|
-
const suffix = new RegExp(`\\s${escapedChar}$`);
|
|
9
|
-
const prefix = startOfLine ? '^' : '';
|
|
10
|
-
const finalEscapedChar = allowToIncludeChar ? '' : escapedChar;
|
|
11
|
-
const regexp = allowSpaces
|
|
12
|
-
? new RegExp(`${prefix}${escapedChar}.*?(?=\\s${finalEscapedChar}|$)`, 'gm')
|
|
13
|
-
: new RegExp(`${prefix}(?:^)?${escapedChar}[^\\s${finalEscapedChar}]*`, 'gm');
|
|
14
|
-
const text = $position.nodeBefore?.isText && $position.nodeBefore.text;
|
|
15
|
-
if (!text) {
|
|
16
|
-
return null;
|
|
17
|
-
}
|
|
18
|
-
const textFrom = $position.pos - text.length;
|
|
19
|
-
const match = Array.from(text.matchAll(regexp)).pop();
|
|
20
|
-
if (!match || match.input === undefined || match.index === undefined) {
|
|
21
|
-
return null;
|
|
22
|
-
}
|
|
23
|
-
// JavaScript doesn't have lookbehinds. This hacks a check that first character
|
|
24
|
-
// is a space or the start of the line
|
|
25
|
-
const matchPrefix = match.input.slice(Math.max(0, match.index - 1), match.index);
|
|
26
|
-
const matchPrefixIsAllowed = new RegExp(`^[${allowedPrefixes?.join('')}\0]?$`).test(matchPrefix);
|
|
27
|
-
if (allowedPrefixes !== null && !matchPrefixIsAllowed) {
|
|
28
|
-
return null;
|
|
29
|
-
}
|
|
30
|
-
// The absolute position of the match in the document
|
|
31
|
-
const from = textFrom + match.index;
|
|
32
|
-
let to = from + match[0].length;
|
|
33
|
-
// Edge case handling; if spaces are allowed and we're directly in between
|
|
34
|
-
// two triggers
|
|
35
|
-
if (allowSpaces && suffix.test(text.slice(to - 1, to + 1))) {
|
|
36
|
-
match[0] += ' ';
|
|
37
|
-
to += 1;
|
|
38
|
-
}
|
|
39
|
-
// If the $position is located within the matched substring, return that range
|
|
40
|
-
if (from < $position.pos && to >= $position.pos) {
|
|
41
|
-
return {
|
|
42
|
-
range: {
|
|
43
|
-
from,
|
|
44
|
-
to,
|
|
45
|
-
},
|
|
46
|
-
query: match[0].slice(char.length),
|
|
47
|
-
text: match[0],
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
return null;
|
|
51
|
-
}
|
|
1
|
+
import { escapeForRegEx } from '@tiptap/core';
|
|
2
|
+
import {} from '@tiptap/core';
|
|
3
|
+
import { ResolvedPos } from '@tiptap/pm/model';
|
|
4
|
+
export function findSuggestionMatch(config) {
|
|
5
|
+
const { char, allowSpaces: allowSpacesOption, allowToIncludeChar, allowedPrefixes, startOfLine, $position, } = config;
|
|
6
|
+
const allowSpaces = allowSpacesOption && !allowToIncludeChar;
|
|
7
|
+
const escapedChar = escapeForRegEx(char);
|
|
8
|
+
const suffix = new RegExp(`\\s${escapedChar}$`);
|
|
9
|
+
const prefix = startOfLine ? '^' : '';
|
|
10
|
+
const finalEscapedChar = allowToIncludeChar ? '' : escapedChar;
|
|
11
|
+
const regexp = allowSpaces
|
|
12
|
+
? new RegExp(`${prefix}${escapedChar}.*?(?=\\s${finalEscapedChar}|$)`, 'gm')
|
|
13
|
+
: new RegExp(`${prefix}(?:^)?${escapedChar}[^\\s${finalEscapedChar}]*`, 'gm');
|
|
14
|
+
const text = $position.nodeBefore?.isText && $position.nodeBefore.text;
|
|
15
|
+
if (!text) {
|
|
16
|
+
return null;
|
|
17
|
+
}
|
|
18
|
+
const textFrom = $position.pos - text.length;
|
|
19
|
+
const match = Array.from(text.matchAll(regexp)).pop();
|
|
20
|
+
if (!match || match.input === undefined || match.index === undefined) {
|
|
21
|
+
return null;
|
|
22
|
+
}
|
|
23
|
+
// JavaScript doesn't have lookbehinds. This hacks a check that first character
|
|
24
|
+
// is a space or the start of the line
|
|
25
|
+
const matchPrefix = match.input.slice(Math.max(0, match.index - 1), match.index);
|
|
26
|
+
const matchPrefixIsAllowed = new RegExp(`^[${allowedPrefixes?.join('')}\0]?$`).test(matchPrefix);
|
|
27
|
+
if (allowedPrefixes !== null && !matchPrefixIsAllowed) {
|
|
28
|
+
return null;
|
|
29
|
+
}
|
|
30
|
+
// The absolute position of the match in the document
|
|
31
|
+
const from = textFrom + match.index;
|
|
32
|
+
let to = from + match[0].length;
|
|
33
|
+
// Edge case handling; if spaces are allowed and we're directly in between
|
|
34
|
+
// two triggers
|
|
35
|
+
if (allowSpaces && suffix.test(text.slice(to - 1, to + 1))) {
|
|
36
|
+
match[0] += ' ';
|
|
37
|
+
to += 1;
|
|
38
|
+
}
|
|
39
|
+
// If the $position is located within the matched substring, return that range
|
|
40
|
+
if (from < $position.pos && to >= $position.pos) {
|
|
41
|
+
return {
|
|
42
|
+
range: {
|
|
43
|
+
from,
|
|
44
|
+
to,
|
|
45
|
+
},
|
|
46
|
+
query: match[0].slice(char.length),
|
|
47
|
+
text: match[0],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
return null;
|
|
51
|
+
}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
/** @typedef {typeof __propDef.props} H1Props */
|
|
2
|
-
/** @typedef {typeof __propDef.events} H1Events */
|
|
3
|
-
/** @typedef {typeof __propDef.slots} H1Slots */
|
|
4
|
-
export default class H1 extends SvelteComponentTyped<{
|
|
5
|
-
[x: string]: any;
|
|
6
|
-
}, {
|
|
7
|
-
[evt: string]: CustomEvent<any>;
|
|
8
|
-
}, {}> {
|
|
9
|
-
}
|
|
10
|
-
export type H1Props = typeof __propDef.props;
|
|
11
|
-
export type H1Events = typeof __propDef.events;
|
|
12
|
-
export type H1Slots = typeof __propDef.slots;
|
|
13
|
-
import { SvelteComponentTyped } from "svelte";
|
|
14
|
-
declare const __propDef: {
|
|
15
|
-
props: {
|
|
16
|
-
[x: string]: any;
|
|
17
|
-
};
|
|
18
|
-
events: {
|
|
19
|
-
[evt: string]: CustomEvent<any>;
|
|
20
|
-
};
|
|
21
|
-
slots: {};
|
|
22
|
-
};
|
|
23
|
-
export {};
|
|
1
|
+
/** @typedef {typeof __propDef.props} H1Props */
|
|
2
|
+
/** @typedef {typeof __propDef.events} H1Events */
|
|
3
|
+
/** @typedef {typeof __propDef.slots} H1Slots */
|
|
4
|
+
export default class H1 extends SvelteComponentTyped<{
|
|
5
|
+
[x: string]: any;
|
|
6
|
+
}, {
|
|
7
|
+
[evt: string]: CustomEvent<any>;
|
|
8
|
+
}, {}> {
|
|
9
|
+
}
|
|
10
|
+
export type H1Props = typeof __propDef.props;
|
|
11
|
+
export type H1Events = typeof __propDef.events;
|
|
12
|
+
export type H1Slots = typeof __propDef.slots;
|
|
13
|
+
import { SvelteComponentTyped } from "svelte";
|
|
14
|
+
declare const __propDef: {
|
|
15
|
+
props: {
|
|
16
|
+
[x: string]: any;
|
|
17
|
+
};
|
|
18
|
+
events: {
|
|
19
|
+
[evt: string]: CustomEvent<any>;
|
|
20
|
+
};
|
|
21
|
+
slots: {};
|
|
22
|
+
};
|
|
23
|
+
export {};
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
/** @typedef {typeof __propDef.props} H2Props */
|
|
2
|
-
/** @typedef {typeof __propDef.events} H2Events */
|
|
3
|
-
/** @typedef {typeof __propDef.slots} H2Slots */
|
|
4
|
-
export default class H2 extends SvelteComponentTyped<{
|
|
5
|
-
[x: string]: any;
|
|
6
|
-
}, {
|
|
7
|
-
[evt: string]: CustomEvent<any>;
|
|
8
|
-
}, {}> {
|
|
9
|
-
}
|
|
10
|
-
export type H2Props = typeof __propDef.props;
|
|
11
|
-
export type H2Events = typeof __propDef.events;
|
|
12
|
-
export type H2Slots = typeof __propDef.slots;
|
|
13
|
-
import { SvelteComponentTyped } from "svelte";
|
|
14
|
-
declare const __propDef: {
|
|
15
|
-
props: {
|
|
16
|
-
[x: string]: any;
|
|
17
|
-
};
|
|
18
|
-
events: {
|
|
19
|
-
[evt: string]: CustomEvent<any>;
|
|
20
|
-
};
|
|
21
|
-
slots: {};
|
|
22
|
-
};
|
|
23
|
-
export {};
|
|
1
|
+
/** @typedef {typeof __propDef.props} H2Props */
|
|
2
|
+
/** @typedef {typeof __propDef.events} H2Events */
|
|
3
|
+
/** @typedef {typeof __propDef.slots} H2Slots */
|
|
4
|
+
export default class H2 extends SvelteComponentTyped<{
|
|
5
|
+
[x: string]: any;
|
|
6
|
+
}, {
|
|
7
|
+
[evt: string]: CustomEvent<any>;
|
|
8
|
+
}, {}> {
|
|
9
|
+
}
|
|
10
|
+
export type H2Props = typeof __propDef.props;
|
|
11
|
+
export type H2Events = typeof __propDef.events;
|
|
12
|
+
export type H2Slots = typeof __propDef.slots;
|
|
13
|
+
import { SvelteComponentTyped } from "svelte";
|
|
14
|
+
declare const __propDef: {
|
|
15
|
+
props: {
|
|
16
|
+
[x: string]: any;
|
|
17
|
+
};
|
|
18
|
+
events: {
|
|
19
|
+
[evt: string]: CustomEvent<any>;
|
|
20
|
+
};
|
|
21
|
+
slots: {};
|
|
22
|
+
};
|
|
23
|
+
export {};
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
/** @typedef {typeof __propDef.props} H3Props */
|
|
2
|
-
/** @typedef {typeof __propDef.events} H3Events */
|
|
3
|
-
/** @typedef {typeof __propDef.slots} H3Slots */
|
|
4
|
-
export default class H3 extends SvelteComponentTyped<{
|
|
5
|
-
[x: string]: any;
|
|
6
|
-
}, {
|
|
7
|
-
[evt: string]: CustomEvent<any>;
|
|
8
|
-
}, {}> {
|
|
9
|
-
}
|
|
10
|
-
export type H3Props = typeof __propDef.props;
|
|
11
|
-
export type H3Events = typeof __propDef.events;
|
|
12
|
-
export type H3Slots = typeof __propDef.slots;
|
|
13
|
-
import { SvelteComponentTyped } from "svelte";
|
|
14
|
-
declare const __propDef: {
|
|
15
|
-
props: {
|
|
16
|
-
[x: string]: any;
|
|
17
|
-
};
|
|
18
|
-
events: {
|
|
19
|
-
[evt: string]: CustomEvent<any>;
|
|
20
|
-
};
|
|
21
|
-
slots: {};
|
|
22
|
-
};
|
|
23
|
-
export {};
|
|
1
|
+
/** @typedef {typeof __propDef.props} H3Props */
|
|
2
|
+
/** @typedef {typeof __propDef.events} H3Events */
|
|
3
|
+
/** @typedef {typeof __propDef.slots} H3Slots */
|
|
4
|
+
export default class H3 extends SvelteComponentTyped<{
|
|
5
|
+
[x: string]: any;
|
|
6
|
+
}, {
|
|
7
|
+
[evt: string]: CustomEvent<any>;
|
|
8
|
+
}, {}> {
|
|
9
|
+
}
|
|
10
|
+
export type H3Props = typeof __propDef.props;
|
|
11
|
+
export type H3Events = typeof __propDef.events;
|
|
12
|
+
export type H3Slots = typeof __propDef.slots;
|
|
13
|
+
import { SvelteComponentTyped } from "svelte";
|
|
14
|
+
declare const __propDef: {
|
|
15
|
+
props: {
|
|
16
|
+
[x: string]: any;
|
|
17
|
+
};
|
|
18
|
+
events: {
|
|
19
|
+
[evt: string]: CustomEvent<any>;
|
|
20
|
+
};
|
|
21
|
+
slots: {};
|
|
22
|
+
};
|
|
23
|
+
export {};
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
/** @typedef {typeof __propDef.props} H4Props */
|
|
2
|
-
/** @typedef {typeof __propDef.events} H4Events */
|
|
3
|
-
/** @typedef {typeof __propDef.slots} H4Slots */
|
|
4
|
-
export default class H4 extends SvelteComponentTyped<{
|
|
5
|
-
[x: string]: any;
|
|
6
|
-
}, {
|
|
7
|
-
[evt: string]: CustomEvent<any>;
|
|
8
|
-
}, {}> {
|
|
9
|
-
}
|
|
10
|
-
export type H4Props = typeof __propDef.props;
|
|
11
|
-
export type H4Events = typeof __propDef.events;
|
|
12
|
-
export type H4Slots = typeof __propDef.slots;
|
|
13
|
-
import { SvelteComponentTyped } from "svelte";
|
|
14
|
-
declare const __propDef: {
|
|
15
|
-
props: {
|
|
16
|
-
[x: string]: any;
|
|
17
|
-
};
|
|
18
|
-
events: {
|
|
19
|
-
[evt: string]: CustomEvent<any>;
|
|
20
|
-
};
|
|
21
|
-
slots: {};
|
|
22
|
-
};
|
|
23
|
-
export {};
|
|
1
|
+
/** @typedef {typeof __propDef.props} H4Props */
|
|
2
|
+
/** @typedef {typeof __propDef.events} H4Events */
|
|
3
|
+
/** @typedef {typeof __propDef.slots} H4Slots */
|
|
4
|
+
export default class H4 extends SvelteComponentTyped<{
|
|
5
|
+
[x: string]: any;
|
|
6
|
+
}, {
|
|
7
|
+
[evt: string]: CustomEvent<any>;
|
|
8
|
+
}, {}> {
|
|
9
|
+
}
|
|
10
|
+
export type H4Props = typeof __propDef.props;
|
|
11
|
+
export type H4Events = typeof __propDef.events;
|
|
12
|
+
export type H4Slots = typeof __propDef.slots;
|
|
13
|
+
import { SvelteComponentTyped } from "svelte";
|
|
14
|
+
declare const __propDef: {
|
|
15
|
+
props: {
|
|
16
|
+
[x: string]: any;
|
|
17
|
+
};
|
|
18
|
+
events: {
|
|
19
|
+
[evt: string]: CustomEvent<any>;
|
|
20
|
+
};
|
|
21
|
+
slots: {};
|
|
22
|
+
};
|
|
23
|
+
export {};
|
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
import { SvelteComponentTyped } from "svelte";
|
|
2
|
-
import type { Document_command } from './Document_command';
|
|
3
|
-
declare const __propDef: {
|
|
4
|
-
props: {
|
|
5
|
-
[x: string]: any;
|
|
6
|
-
id: string;
|
|
7
|
-
cmd: Document_command;
|
|
8
|
-
width_px?: number | undefined;
|
|
9
|
-
is_highlighted?: boolean | undefined;
|
|
10
|
-
active?: boolean | undefined;
|
|
11
|
-
scrollToView?: (() => void) | undefined;
|
|
12
|
-
};
|
|
13
|
-
events: {
|
|
14
|
-
click: MouseEvent;
|
|
15
|
-
mousemove: MouseEvent;
|
|
16
|
-
mousedown: MouseEvent;
|
|
17
|
-
} & {
|
|
18
|
-
[evt: string]: CustomEvent<any>;
|
|
19
|
-
};
|
|
20
|
-
slots: {};
|
|
21
|
-
};
|
|
22
|
-
export type PaletteProps = typeof __propDef.props;
|
|
23
|
-
export type PaletteEvents = typeof __propDef.events;
|
|
24
|
-
export type PaletteSlots = typeof __propDef.slots;
|
|
25
|
-
export default class Palette extends SvelteComponentTyped<PaletteProps, PaletteEvents, PaletteSlots> {
|
|
26
|
-
get scrollToView(): () => void;
|
|
27
|
-
get id(): string;
|
|
28
|
-
/**accessor*/
|
|
29
|
-
set id(_: string);
|
|
30
|
-
get cmd(): Document_command;
|
|
31
|
-
/**accessor*/
|
|
32
|
-
set cmd(_: Document_command);
|
|
33
|
-
get width_px(): number | undefined;
|
|
34
|
-
/**accessor*/
|
|
35
|
-
set width_px(_: number | undefined);
|
|
36
|
-
get is_highlighted(): boolean | undefined;
|
|
37
|
-
/**accessor*/
|
|
38
|
-
set is_highlighted(_: boolean | undefined);
|
|
39
|
-
get active(): boolean | undefined;
|
|
40
|
-
/**accessor*/
|
|
41
|
-
set active(_: boolean | undefined);
|
|
42
|
-
get undefined(): any;
|
|
43
|
-
/**accessor*/
|
|
44
|
-
set undefined(_: any);
|
|
45
|
-
}
|
|
46
|
-
export {};
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
import type { Document_command } from './Document_command';
|
|
3
|
+
declare const __propDef: {
|
|
4
|
+
props: {
|
|
5
|
+
[x: string]: any;
|
|
6
|
+
id: string;
|
|
7
|
+
cmd: Document_command;
|
|
8
|
+
width_px?: number | undefined;
|
|
9
|
+
is_highlighted?: boolean | undefined;
|
|
10
|
+
active?: boolean | undefined;
|
|
11
|
+
scrollToView?: (() => void) | undefined;
|
|
12
|
+
};
|
|
13
|
+
events: {
|
|
14
|
+
click: MouseEvent;
|
|
15
|
+
mousemove: MouseEvent;
|
|
16
|
+
mousedown: MouseEvent;
|
|
17
|
+
} & {
|
|
18
|
+
[evt: string]: CustomEvent<any>;
|
|
19
|
+
};
|
|
20
|
+
slots: {};
|
|
21
|
+
};
|
|
22
|
+
export type PaletteProps = typeof __propDef.props;
|
|
23
|
+
export type PaletteEvents = typeof __propDef.events;
|
|
24
|
+
export type PaletteSlots = typeof __propDef.slots;
|
|
25
|
+
export default class Palette extends SvelteComponentTyped<PaletteProps, PaletteEvents, PaletteSlots> {
|
|
26
|
+
get scrollToView(): () => void;
|
|
27
|
+
get id(): string;
|
|
28
|
+
/**accessor*/
|
|
29
|
+
set id(_: string);
|
|
30
|
+
get cmd(): Document_command;
|
|
31
|
+
/**accessor*/
|
|
32
|
+
set cmd(_: Document_command);
|
|
33
|
+
get width_px(): number | undefined;
|
|
34
|
+
/**accessor*/
|
|
35
|
+
set width_px(_: number | undefined);
|
|
36
|
+
get is_highlighted(): boolean | undefined;
|
|
37
|
+
/**accessor*/
|
|
38
|
+
set is_highlighted(_: boolean | undefined);
|
|
39
|
+
get active(): boolean | undefined;
|
|
40
|
+
/**accessor*/
|
|
41
|
+
set active(_: boolean | undefined);
|
|
42
|
+
get undefined(): any;
|
|
43
|
+
/**accessor*/
|
|
44
|
+
set undefined(_: any);
|
|
45
|
+
}
|
|
46
|
+
export {};
|
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
import { SvelteComponentTyped } from "svelte";
|
|
2
|
-
import type { Document_command } from './Document_command';
|
|
3
|
-
declare const __propDef: {
|
|
4
|
-
props: {
|
|
5
|
-
[x: string]: any;
|
|
6
|
-
id: string;
|
|
7
|
-
cmd: Document_command;
|
|
8
|
-
width_px?: number | undefined;
|
|
9
|
-
is_highlighted?: boolean | undefined;
|
|
10
|
-
active?: boolean | undefined;
|
|
11
|
-
scrollToView?: (() => void) | undefined;
|
|
12
|
-
};
|
|
13
|
-
events: {
|
|
14
|
-
click: MouseEvent;
|
|
15
|
-
mousemove: MouseEvent;
|
|
16
|
-
mousedown: MouseEvent;
|
|
17
|
-
} & {
|
|
18
|
-
[evt: string]: CustomEvent<any>;
|
|
19
|
-
};
|
|
20
|
-
slots: {};
|
|
21
|
-
};
|
|
22
|
-
export type PaletteProps = typeof __propDef.props;
|
|
23
|
-
export type PaletteEvents = typeof __propDef.events;
|
|
24
|
-
export type PaletteSlots = typeof __propDef.slots;
|
|
25
|
-
export default class Palette extends SvelteComponentTyped<PaletteProps, PaletteEvents, PaletteSlots> {
|
|
26
|
-
get scrollToView(): () => void;
|
|
27
|
-
get id(): string;
|
|
28
|
-
/**accessor*/
|
|
29
|
-
set id(_: string);
|
|
30
|
-
get cmd(): Document_command;
|
|
31
|
-
/**accessor*/
|
|
32
|
-
set cmd(_: Document_command);
|
|
33
|
-
get width_px(): number | undefined;
|
|
34
|
-
/**accessor*/
|
|
35
|
-
set width_px(_: number | undefined);
|
|
36
|
-
get is_highlighted(): boolean | undefined;
|
|
37
|
-
/**accessor*/
|
|
38
|
-
set is_highlighted(_: boolean | undefined);
|
|
39
|
-
get active(): boolean | undefined;
|
|
40
|
-
/**accessor*/
|
|
41
|
-
set active(_: boolean | undefined);
|
|
42
|
-
get undefined(): any;
|
|
43
|
-
/**accessor*/
|
|
44
|
-
set undefined(_: any);
|
|
45
|
-
}
|
|
46
|
-
export {};
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
import type { Document_command } from './Document_command';
|
|
3
|
+
declare const __propDef: {
|
|
4
|
+
props: {
|
|
5
|
+
[x: string]: any;
|
|
6
|
+
id: string;
|
|
7
|
+
cmd: Document_command;
|
|
8
|
+
width_px?: number | undefined;
|
|
9
|
+
is_highlighted?: boolean | undefined;
|
|
10
|
+
active?: boolean | undefined;
|
|
11
|
+
scrollToView?: (() => void) | undefined;
|
|
12
|
+
};
|
|
13
|
+
events: {
|
|
14
|
+
click: MouseEvent;
|
|
15
|
+
mousemove: MouseEvent;
|
|
16
|
+
mousedown: MouseEvent;
|
|
17
|
+
} & {
|
|
18
|
+
[evt: string]: CustomEvent<any>;
|
|
19
|
+
};
|
|
20
|
+
slots: {};
|
|
21
|
+
};
|
|
22
|
+
export type PaletteProps = typeof __propDef.props;
|
|
23
|
+
export type PaletteEvents = typeof __propDef.events;
|
|
24
|
+
export type PaletteSlots = typeof __propDef.slots;
|
|
25
|
+
export default class Palette extends SvelteComponentTyped<PaletteProps, PaletteEvents, PaletteSlots> {
|
|
26
|
+
get scrollToView(): () => void;
|
|
27
|
+
get id(): string;
|
|
28
|
+
/**accessor*/
|
|
29
|
+
set id(_: string);
|
|
30
|
+
get cmd(): Document_command;
|
|
31
|
+
/**accessor*/
|
|
32
|
+
set cmd(_: Document_command);
|
|
33
|
+
get width_px(): number | undefined;
|
|
34
|
+
/**accessor*/
|
|
35
|
+
set width_px(_: number | undefined);
|
|
36
|
+
get is_highlighted(): boolean | undefined;
|
|
37
|
+
/**accessor*/
|
|
38
|
+
set is_highlighted(_: boolean | undefined);
|
|
39
|
+
get active(): boolean | undefined;
|
|
40
|
+
/**accessor*/
|
|
41
|
+
set active(_: boolean | undefined);
|
|
42
|
+
get undefined(): any;
|
|
43
|
+
/**accessor*/
|
|
44
|
+
set undefined(_: any);
|
|
45
|
+
}
|
|
46
|
+
export {};
|
|
@@ -1,82 +1,82 @@
|
|
|
1
|
-
import { SvelteComponentTyped } from "svelte";
|
|
2
|
-
import type { Document_command } from './Document_command';
|
|
3
|
-
declare const __propDef: {
|
|
4
|
-
props: {
|
|
5
|
-
commands: Document_command[];
|
|
6
|
-
width_px?: number | undefined;
|
|
7
|
-
max_height_px?: number | undefined;
|
|
8
|
-
set_current_editor_range?: ((range: any) => void) | undefined;
|
|
9
|
-
showAsToolbox?: ((rect: DOMRect) => void) | undefined;
|
|
10
|
-
show?: ((x: number, y: number, up?: boolean) => void) | undefined;
|
|
11
|
-
show_fullscreen?: ((_width_px: number, _height_px: number) => void) | undefined;
|
|
12
|
-
hide?: (() => void) | undefined;
|
|
13
|
-
execute_selected_command?: (() => void) | undefined;
|
|
14
|
-
filter?: ((key: string) => Document_command[]) | undefined;
|
|
15
|
-
get_filtered_commands?: (() => Document_command[]) | undefined;
|
|
16
|
-
navigate_up?: (() => void) | undefined;
|
|
17
|
-
navigate_down?: (() => void) | undefined;
|
|
18
|
-
};
|
|
19
|
-
events: {
|
|
20
|
-
palette_shown: CustomEvent<any>;
|
|
21
|
-
palette_hidden: CustomEvent<any>;
|
|
22
|
-
palette_mouse_click: CustomEvent<any>;
|
|
23
|
-
} & {
|
|
24
|
-
[evt: string]: CustomEvent<any>;
|
|
25
|
-
};
|
|
26
|
-
slots: {};
|
|
27
|
-
};
|
|
28
|
-
export type PaletteProps = typeof __propDef.props;
|
|
29
|
-
export type PaletteEvents = typeof __propDef.events;
|
|
30
|
-
export type PaletteSlots = typeof __propDef.slots;
|
|
31
|
-
export default class Palette extends SvelteComponentTyped<PaletteProps, PaletteEvents, PaletteSlots> {
|
|
32
|
-
get set_current_editor_range(): (range: any) => void;
|
|
33
|
-
get showAsToolbox(): (rect: DOMRect) => void;
|
|
34
|
-
get show(): (x: number, y: number, up?: boolean) => void;
|
|
35
|
-
get show_fullscreen(): (_width_px: number, _height_px: number) => void;
|
|
36
|
-
get hide(): () => void;
|
|
37
|
-
get execute_selected_command(): () => void;
|
|
38
|
-
get filter(): (key: string) => Document_command[];
|
|
39
|
-
get get_filtered_commands(): () => Document_command[];
|
|
40
|
-
get navigate_up(): () => void;
|
|
41
|
-
get navigate_down(): () => void;
|
|
42
|
-
get commands(): Document_command[];
|
|
43
|
-
/**accessor*/
|
|
44
|
-
set commands(_: Document_command[]);
|
|
45
|
-
get width_px(): number | undefined;
|
|
46
|
-
/**accessor*/
|
|
47
|
-
set width_px(_: number | undefined);
|
|
48
|
-
get max_height_px(): number | undefined;
|
|
49
|
-
/**accessor*/
|
|
50
|
-
set max_height_px(_: number | undefined);
|
|
51
|
-
get undefined(): any;
|
|
52
|
-
/**accessor*/
|
|
53
|
-
set undefined(_: any);
|
|
54
|
-
get undefined(): any;
|
|
55
|
-
/**accessor*/
|
|
56
|
-
set undefined(_: any);
|
|
57
|
-
get undefined(): any;
|
|
58
|
-
/**accessor*/
|
|
59
|
-
set undefined(_: any);
|
|
60
|
-
get undefined(): any;
|
|
61
|
-
/**accessor*/
|
|
62
|
-
set undefined(_: any);
|
|
63
|
-
get undefined(): any;
|
|
64
|
-
/**accessor*/
|
|
65
|
-
set undefined(_: any);
|
|
66
|
-
get undefined(): any;
|
|
67
|
-
/**accessor*/
|
|
68
|
-
set undefined(_: any);
|
|
69
|
-
get undefined(): any;
|
|
70
|
-
/**accessor*/
|
|
71
|
-
set undefined(_: any);
|
|
72
|
-
get undefined(): any;
|
|
73
|
-
/**accessor*/
|
|
74
|
-
set undefined(_: any);
|
|
75
|
-
get undefined(): any;
|
|
76
|
-
/**accessor*/
|
|
77
|
-
set undefined(_: any);
|
|
78
|
-
get undefined(): any;
|
|
79
|
-
/**accessor*/
|
|
80
|
-
set undefined(_: any);
|
|
81
|
-
}
|
|
82
|
-
export {};
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
import type { Document_command } from './Document_command';
|
|
3
|
+
declare const __propDef: {
|
|
4
|
+
props: {
|
|
5
|
+
commands: Document_command[];
|
|
6
|
+
width_px?: number | undefined;
|
|
7
|
+
max_height_px?: number | undefined;
|
|
8
|
+
set_current_editor_range?: ((range: any) => void) | undefined;
|
|
9
|
+
showAsToolbox?: ((rect: DOMRect) => void) | undefined;
|
|
10
|
+
show?: ((x: number, y: number, up?: boolean) => void) | undefined;
|
|
11
|
+
show_fullscreen?: ((_width_px: number, _height_px: number) => void) | undefined;
|
|
12
|
+
hide?: (() => void) | undefined;
|
|
13
|
+
execute_selected_command?: (() => void) | undefined;
|
|
14
|
+
filter?: ((key: string) => Document_command[]) | undefined;
|
|
15
|
+
get_filtered_commands?: (() => Document_command[]) | undefined;
|
|
16
|
+
navigate_up?: (() => void) | undefined;
|
|
17
|
+
navigate_down?: (() => void) | undefined;
|
|
18
|
+
};
|
|
19
|
+
events: {
|
|
20
|
+
palette_shown: CustomEvent<any>;
|
|
21
|
+
palette_hidden: CustomEvent<any>;
|
|
22
|
+
palette_mouse_click: CustomEvent<any>;
|
|
23
|
+
} & {
|
|
24
|
+
[evt: string]: CustomEvent<any>;
|
|
25
|
+
};
|
|
26
|
+
slots: {};
|
|
27
|
+
};
|
|
28
|
+
export type PaletteProps = typeof __propDef.props;
|
|
29
|
+
export type PaletteEvents = typeof __propDef.events;
|
|
30
|
+
export type PaletteSlots = typeof __propDef.slots;
|
|
31
|
+
export default class Palette extends SvelteComponentTyped<PaletteProps, PaletteEvents, PaletteSlots> {
|
|
32
|
+
get set_current_editor_range(): (range: any) => void;
|
|
33
|
+
get showAsToolbox(): (rect: DOMRect) => void;
|
|
34
|
+
get show(): (x: number, y: number, up?: boolean) => void;
|
|
35
|
+
get show_fullscreen(): (_width_px: number, _height_px: number) => void;
|
|
36
|
+
get hide(): () => void;
|
|
37
|
+
get execute_selected_command(): () => void;
|
|
38
|
+
get filter(): (key: string) => Document_command[];
|
|
39
|
+
get get_filtered_commands(): () => Document_command[];
|
|
40
|
+
get navigate_up(): () => void;
|
|
41
|
+
get navigate_down(): () => void;
|
|
42
|
+
get commands(): Document_command[];
|
|
43
|
+
/**accessor*/
|
|
44
|
+
set commands(_: Document_command[]);
|
|
45
|
+
get width_px(): number | undefined;
|
|
46
|
+
/**accessor*/
|
|
47
|
+
set width_px(_: number | undefined);
|
|
48
|
+
get max_height_px(): number | undefined;
|
|
49
|
+
/**accessor*/
|
|
50
|
+
set max_height_px(_: number | undefined);
|
|
51
|
+
get undefined(): any;
|
|
52
|
+
/**accessor*/
|
|
53
|
+
set undefined(_: any);
|
|
54
|
+
get undefined(): any;
|
|
55
|
+
/**accessor*/
|
|
56
|
+
set undefined(_: any);
|
|
57
|
+
get undefined(): any;
|
|
58
|
+
/**accessor*/
|
|
59
|
+
set undefined(_: any);
|
|
60
|
+
get undefined(): any;
|
|
61
|
+
/**accessor*/
|
|
62
|
+
set undefined(_: any);
|
|
63
|
+
get undefined(): any;
|
|
64
|
+
/**accessor*/
|
|
65
|
+
set undefined(_: any);
|
|
66
|
+
get undefined(): any;
|
|
67
|
+
/**accessor*/
|
|
68
|
+
set undefined(_: any);
|
|
69
|
+
get undefined(): any;
|
|
70
|
+
/**accessor*/
|
|
71
|
+
set undefined(_: any);
|
|
72
|
+
get undefined(): any;
|
|
73
|
+
/**accessor*/
|
|
74
|
+
set undefined(_: any);
|
|
75
|
+
get undefined(): any;
|
|
76
|
+
/**accessor*/
|
|
77
|
+
set undefined(_: any);
|
|
78
|
+
get undefined(): any;
|
|
79
|
+
/**accessor*/
|
|
80
|
+
set undefined(_: any);
|
|
81
|
+
}
|
|
82
|
+
export {};
|