@humandialog/forms.svelte 1.3.11 → 1.3.12

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.
Files changed (135) hide show
  1. package/README.md +0 -0
  2. package/components/Fab.svelte +103 -31
  3. package/components/Fab.svelte.d.ts +17 -17
  4. package/components/Floating_container.svelte.d.ts +21 -21
  5. package/components/Grid.menu.svelte.d.ts +25 -25
  6. package/components/button.svelte.d.ts +26 -26
  7. package/components/checkbox.svelte.d.ts +26 -26
  8. package/components/combo/combo.d.ts +19 -19
  9. package/components/combo/combo.item.svelte.d.ts +20 -20
  10. package/components/combo/combo.js +19 -19
  11. package/components/combo/combo.source.svelte.d.ts +23 -23
  12. package/components/combo/combo.svelte +25 -22
  13. package/components/combo/combo.svelte.d.ts +44 -44
  14. package/components/contextmenu.svelte.d.ts +26 -26
  15. package/components/date.svelte +40 -30
  16. package/components/date.svelte.d.ts +33 -33
  17. package/components/delayed.spinner.svelte.d.ts +19 -19
  18. package/components/document/editor.svelte +10 -4
  19. package/components/document/editor.svelte.d.ts +35 -35
  20. package/components/document/internal/Document_command.d.ts +12 -11
  21. package/components/document/internal/Document_command.js +12 -11
  22. package/components/document/internal/Selection_helper.d.ts +7 -7
  23. package/components/document/internal/Selection_helper.js +133 -133
  24. package/components/document/internal/Selection_range.d.ts +26 -26
  25. package/components/document/internal/Selection_range.js +58 -58
  26. package/components/document/internal/findSuggestionMatch.d.ts +16 -16
  27. package/components/document/internal/findSuggestionMatch.js +51 -51
  28. package/components/document/internal/h1.icon.svelte.d.ts +23 -23
  29. package/components/document/internal/h2.icon.svelte.d.ts +23 -23
  30. package/components/document/internal/h3.icon.svelte.d.ts +23 -23
  31. package/components/document/internal/h4.icon.svelte.d.ts +23 -23
  32. package/components/document/internal/palette.row.big.svelte.d.ts +46 -46
  33. package/components/document/internal/palette.row.svelte.d.ts +46 -46
  34. package/components/document/internal/palette.svelte +16 -10
  35. package/components/document/internal/palette.svelte.d.ts +82 -82
  36. package/components/document/internal/suggestion.d.ts +158 -158
  37. package/components/document/internal/suggestion.js +194 -194
  38. package/components/document/rich.edit.svelte.d.ts +34 -34
  39. package/components/edit.field.svelte.d.ts +31 -31
  40. package/components/file.loader.svelte.d.ts +25 -25
  41. package/components/icon.ex.svelte.d.ts +62 -62
  42. package/components/icon.svelte.d.ts +62 -62
  43. package/components/input.text.svelte.d.ts +29 -29
  44. package/components/inputbox.ltop.svelte.d.ts +59 -59
  45. package/components/kanban/Kanban.d.ts +47 -47
  46. package/components/kanban/Kanban.js +105 -105
  47. package/components/kanban/internal/kanban.card.svelte +5 -3
  48. package/components/kanban/internal/kanban.card.svelte.d.ts +32 -32
  49. package/components/kanban/internal/kanban.column.svelte.d.ts +53 -53
  50. package/components/kanban/internal/kanban.inserter.svelte.d.ts +18 -18
  51. package/components/kanban/internal/kanban.move.menu.svelte +135 -135
  52. package/components/kanban/internal/kanban.move.menu.svelte.d.ts +22 -22
  53. package/components/kanban/internal/kanban.props.svelte.d.ts +19 -19
  54. package/components/kanban/kanban.callbacks.svelte +1 -1
  55. package/components/kanban/kanban.callbacks.svelte.d.ts +18 -18
  56. package/components/kanban/kanban.column.svelte.d.ts +21 -21
  57. package/components/kanban/kanban.combo.svelte.d.ts +25 -25
  58. package/components/kanban/kanban.date.svelte +1 -1
  59. package/components/kanban/kanban.date.svelte.d.ts +21 -21
  60. package/components/kanban/kanban.source.svelte.d.ts +23 -23
  61. package/components/kanban/kanban.static.svelte.d.ts +20 -20
  62. package/components/kanban/kanban.summary.svelte.d.ts +18 -18
  63. package/components/kanban/kanban.svelte.d.ts +65 -65
  64. package/components/kanban/kanban.tags.svelte.d.ts +24 -24
  65. package/components/kanban/kanban.title.svelte.d.ts +21 -21
  66. package/components/list/List.d.ts +46 -46
  67. package/components/list/List.js +54 -54
  68. package/components/list/internal/list.element.props.svelte +2 -2
  69. package/components/list/internal/list.element.props.svelte.d.ts +21 -21
  70. package/components/list/internal/list.element.summary.svelte +46 -46
  71. package/components/list/internal/list.element.summary.svelte.d.ts +24 -24
  72. package/components/list/internal/list.element.svelte +8 -6
  73. package/components/list/internal/list.element.svelte.d.ts +31 -31
  74. package/components/list/internal/list.inserter.svelte.d.ts +19 -19
  75. package/components/list/list.combo.svelte.d.ts +22 -22
  76. package/components/list/list.date.svelte.d.ts +18 -18
  77. package/components/list/list.inserter.svelte.d.ts +17 -17
  78. package/components/list/list.static.svelte.d.ts +17 -17
  79. package/components/list/list.summary.svelte.d.ts +19 -19
  80. package/components/list/list.svelte.d.ts +59 -59
  81. package/components/list/list.title.svelte.d.ts +22 -22
  82. package/components/menu.d.ts +5 -5
  83. package/components/menu.js +57 -57
  84. package/components/radio.svelte.d.ts +26 -26
  85. package/components/sidebar/sidebar.brand.svelte.d.ts +33 -33
  86. package/components/sidebar/sidebar.group.svelte +2 -2
  87. package/components/sidebar/sidebar.group.svelte.d.ts +33 -33
  88. package/components/sidebar/sidebar.item.svelte +52 -29
  89. package/components/sidebar/sidebar.item.svelte.d.ts +32 -32
  90. package/components/sidebar/sidebar.list.svelte +4 -2
  91. package/components/sidebar/sidebar.list.svelte.d.ts +38 -38
  92. package/components/sidebar/sidebar.svelte.d.ts +27 -27
  93. package/components/simple.table.svelte.d.ts +41 -41
  94. package/components/table/_template.table.svelte.d.ts +57 -57
  95. package/components/table/column.svelte.d.ts +19 -19
  96. package/components/table/item.svelte.d.ts +17 -17
  97. package/components/table/table.d.ts +11 -11
  98. package/components/table/table.js +11 -11
  99. package/components/table/table.svelte +6 -3
  100. package/components/table/table.svelte.d.ts +75 -75
  101. package/components/tag.colors.svelte.d.ts +17 -17
  102. package/components/tag.svelte +12 -9
  103. package/components/tag.svelte.d.ts +20 -20
  104. package/components/tags.svelte +13 -11
  105. package/components/tags.svelte.d.ts +32 -32
  106. package/components/textarea.ltop.svelte.d.ts +35 -35
  107. package/components/tile.title.svelte.d.ts +29 -29
  108. package/console.svelte.d.ts +23 -23
  109. package/desk.svelte +58 -26
  110. package/desk.svelte.d.ts +23 -23
  111. package/form.box.svelte.d.ts +35 -35
  112. package/horizontal.toolbar.svelte +3 -3
  113. package/horizontal.toolbar.svelte.d.ts +25 -25
  114. package/index.d.ts +63 -63
  115. package/index.js +69 -69
  116. package/internal/configurable.content.svelte.d.ts +29 -29
  117. package/internal/loading.svelte.d.ts +23 -23
  118. package/modal.svelte.d.ts +39 -39
  119. package/operations.svelte +37 -8
  120. package/operations.svelte.d.ts +16 -16
  121. package/package.json +8 -8
  122. package/page.row.svelte.d.ts +31 -31
  123. package/page.svelte +7 -2
  124. package/page.svelte.d.ts +47 -47
  125. package/stores.d.ts +44 -44
  126. package/tenant.members.svelte +69 -39
  127. package/tenant.members.svelte.d.ts +33 -33
  128. package/tile.svelte.d.ts +33 -33
  129. package/tiles.row.svelte.d.ts +31 -31
  130. package/tiles.vertical.row.svelte.d.ts +29 -29
  131. package/updates.d.ts +4 -4
  132. package/utils.d.ts +50 -50
  133. package/utils.js +36 -7
  134. package/vertical.toolbar.svelte +1 -1
  135. package/vertical.toolbar.svelte.d.ts +27 -27
@@ -1,194 +1,194 @@
1
- import { Editor } from '@tiptap/core';
2
- import { EditorState, Plugin, PluginKey } from '@tiptap/pm/state';
3
- import { Decoration, DecorationSet, EditorView } from '@tiptap/pm/view';
4
- import { findSuggestionMatch as defaultFindSuggestionMatch } from './findSuggestionMatch';
5
- export const SuggestionPluginKey = new PluginKey('suggestion');
6
- /**
7
- * This utility allows you to create suggestions.
8
- * @see https://tiptap.dev/api/utilities/suggestion
9
- */
10
- export function Suggestion({ pluginKey = SuggestionPluginKey, editor, char = '@', allowSpaces = false, allowToIncludeChar = false, allowedPrefixes = [' '], startOfLine = false, decorationTag = 'span', decorationClass = 'suggestion', command = () => null, items = () => [], render = () => ({}), allow = () => true, findSuggestionMatch = defaultFindSuggestionMatch, }) {
11
- let props;
12
- const renderer = render?.();
13
- const plugin = new Plugin({
14
- key: pluginKey,
15
- view() {
16
- return {
17
- update: async (view, prevState) => {
18
- const prev = this.key?.getState(prevState);
19
- const next = this.key?.getState(view.state);
20
- // See how the state changed
21
- const moved = prev.active && next.active && prev.range.from !== next.range.from;
22
- const started = !prev.active && next.active;
23
- const stopped = prev.active && !next.active;
24
- const changed = !started && !stopped && prev.query !== next.query;
25
- const handleStart = started || (moved && changed);
26
- const handleChange = changed || moved;
27
- const handleExit = stopped || (moved && changed);
28
- // Cancel when suggestion isn't active
29
- if (!handleStart && !handleChange && !handleExit) {
30
- return;
31
- }
32
- const state = handleExit && !handleStart ? prev : next;
33
- const decorationNode = view.dom.querySelector(`[data-decoration-id="${state.decorationId}"]`);
34
- props = {
35
- editor,
36
- range: state.range,
37
- query: state.query,
38
- text: state.text,
39
- items: [],
40
- command: commandProps => {
41
- return command({
42
- editor,
43
- range: state.range,
44
- props: commandProps,
45
- });
46
- },
47
- decorationNode,
48
- // virtual node for popper.js or tippy.js
49
- // this can be used for building popups without a DOM node
50
- clientRect: decorationNode
51
- ? () => {
52
- // because of `items` can be asynchrounous we’ll search for the current decoration node
53
- const { decorationId } = this.key?.getState(editor.state); // eslint-disable-line
54
- const currentDecorationNode = view.dom.querySelector(`[data-decoration-id="${decorationId}"]`);
55
- return currentDecorationNode?.getBoundingClientRect() || null;
56
- }
57
- : null,
58
- };
59
- if (handleStart) {
60
- renderer?.onBeforeStart?.(props);
61
- }
62
- if (handleChange) {
63
- renderer?.onBeforeUpdate?.(props);
64
- }
65
- if (handleChange || handleStart) {
66
- props.items = await items({
67
- editor,
68
- query: state.query,
69
- });
70
- }
71
- if (handleExit) {
72
- //console.log('plugin onExit handleExit')
73
- renderer?.onExit?.(props);
74
- }
75
- if (handleChange) {
76
- renderer?.onUpdate?.(props);
77
- }
78
- if (handleStart) {
79
- renderer?.onStart?.(props);
80
- }
81
- },
82
- destroy: () => {
83
- if (!props) {
84
- return;
85
- }
86
- //console.log('plugin onExit destroy')
87
- renderer?.onExit?.(props);
88
- },
89
- };
90
- },
91
- state: {
92
- // Initialize the plugin's internal state.
93
- init() {
94
- const state = {
95
- active: false,
96
- range: {
97
- from: 0,
98
- to: 0,
99
- },
100
- query: null,
101
- text: null,
102
- composing: false,
103
- };
104
- return state;
105
- },
106
- // Apply changes to the plugin state from a view transaction.
107
- apply(transaction, prev, _oldState, state) {
108
- const { isEditable } = editor;
109
- const { composing } = editor.view;
110
- const { selection } = transaction;
111
- const { empty, from } = selection;
112
- const next = { ...prev };
113
- let blockPluginActivation = false;
114
- if (!prev.active) {
115
- blockPluginActivation = true;
116
- if (transaction && transaction.steps.length > 0) {
117
- const modStep = transaction.steps.find(s => s.jsonID === 'replace');
118
- if (modStep)
119
- blockPluginActivation = false;
120
- }
121
- }
122
- next.composing = composing;
123
- // We can only be suggesting if the view is editable, and:
124
- // * there is no selection, or
125
- // * a composition is active (see: https://github.com/ueberdosis/tiptap/issues/1449)
126
- if (isEditable && (empty || editor.view.composing) && !blockPluginActivation) {
127
- // Reset active state if we just left the previous suggestion range
128
- if ((from < prev.range.from || from > prev.range.to) && !composing && !prev.composing) {
129
- next.active = false;
130
- }
131
- // Try to match against where our cursor currently is
132
- const match = findSuggestionMatch({
133
- char,
134
- allowSpaces,
135
- allowToIncludeChar,
136
- allowedPrefixes,
137
- startOfLine,
138
- $position: selection.$from,
139
- });
140
- const decorationId = `id_${Math.floor(Math.random() * 0xffffffff)}`;
141
- // If we found a match, update the current state to show it
142
- if (match && allow({
143
- editor, state, range: match.range, isActive: prev.active,
144
- })) {
145
- next.active = true;
146
- next.decorationId = prev.decorationId ? prev.decorationId : decorationId;
147
- next.range = match.range;
148
- next.query = match.query;
149
- next.text = match.text;
150
- }
151
- else {
152
- next.active = false;
153
- }
154
- }
155
- else {
156
- next.active = false;
157
- }
158
- // Make sure to empty the range if suggestion is inactive
159
- if (!next.active) {
160
- next.decorationId = null;
161
- next.range = { from: 0, to: 0 };
162
- next.query = null;
163
- next.text = null;
164
- }
165
- return next;
166
- },
167
- },
168
- props: {
169
- // Call the keydown hook if suggestion is active.
170
- handleKeyDown(view, event) {
171
- const { active, range } = plugin.getState(view.state);
172
- if (!active) {
173
- return false;
174
- }
175
- return renderer?.onKeyDown?.({ view, event, range }) || false;
176
- },
177
- // Setup decorator on the currently active suggestion.
178
- decorations(state) {
179
- const { active, range, decorationId } = plugin.getState(state);
180
- if (!active) {
181
- return null;
182
- }
183
- return DecorationSet.create(state.doc, [
184
- Decoration.inline(range.from, range.to, {
185
- nodeName: decorationTag,
186
- class: decorationClass,
187
- 'data-decoration-id': decorationId,
188
- }),
189
- ]);
190
- },
191
- },
192
- });
193
- return plugin;
194
- }
1
+ import { Editor } from '@tiptap/core';
2
+ import { EditorState, Plugin, PluginKey } from '@tiptap/pm/state';
3
+ import { Decoration, DecorationSet, EditorView } from '@tiptap/pm/view';
4
+ import { findSuggestionMatch as defaultFindSuggestionMatch } from './findSuggestionMatch';
5
+ export const SuggestionPluginKey = new PluginKey('suggestion');
6
+ /**
7
+ * This utility allows you to create suggestions.
8
+ * @see https://tiptap.dev/api/utilities/suggestion
9
+ */
10
+ export function Suggestion({ pluginKey = SuggestionPluginKey, editor, char = '@', allowSpaces = false, allowToIncludeChar = false, allowedPrefixes = [' '], startOfLine = false, decorationTag = 'span', decorationClass = 'suggestion', command = () => null, items = () => [], render = () => ({}), allow = () => true, findSuggestionMatch = defaultFindSuggestionMatch, }) {
11
+ let props;
12
+ const renderer = render?.();
13
+ const plugin = new Plugin({
14
+ key: pluginKey,
15
+ view() {
16
+ return {
17
+ update: async (view, prevState) => {
18
+ const prev = this.key?.getState(prevState);
19
+ const next = this.key?.getState(view.state);
20
+ // See how the state changed
21
+ const moved = prev.active && next.active && prev.range.from !== next.range.from;
22
+ const started = !prev.active && next.active;
23
+ const stopped = prev.active && !next.active;
24
+ const changed = !started && !stopped && prev.query !== next.query;
25
+ const handleStart = started || (moved && changed);
26
+ const handleChange = changed || moved;
27
+ const handleExit = stopped || (moved && changed);
28
+ // Cancel when suggestion isn't active
29
+ if (!handleStart && !handleChange && !handleExit) {
30
+ return;
31
+ }
32
+ const state = handleExit && !handleStart ? prev : next;
33
+ const decorationNode = view.dom.querySelector(`[data-decoration-id="${state.decorationId}"]`);
34
+ props = {
35
+ editor,
36
+ range: state.range,
37
+ query: state.query,
38
+ text: state.text,
39
+ items: [],
40
+ command: commandProps => {
41
+ return command({
42
+ editor,
43
+ range: state.range,
44
+ props: commandProps,
45
+ });
46
+ },
47
+ decorationNode,
48
+ // virtual node for popper.js or tippy.js
49
+ // this can be used for building popups without a DOM node
50
+ clientRect: decorationNode
51
+ ? () => {
52
+ // because of `items` can be asynchrounous we’ll search for the current decoration node
53
+ const { decorationId } = this.key?.getState(editor.state); // eslint-disable-line
54
+ const currentDecorationNode = view.dom.querySelector(`[data-decoration-id="${decorationId}"]`);
55
+ return currentDecorationNode?.getBoundingClientRect() || null;
56
+ }
57
+ : null,
58
+ };
59
+ if (handleStart) {
60
+ renderer?.onBeforeStart?.(props);
61
+ }
62
+ if (handleChange) {
63
+ renderer?.onBeforeUpdate?.(props);
64
+ }
65
+ if (handleChange || handleStart) {
66
+ props.items = await items({
67
+ editor,
68
+ query: state.query,
69
+ });
70
+ }
71
+ if (handleExit) {
72
+ //console.log('plugin onExit handleExit')
73
+ renderer?.onExit?.(props);
74
+ }
75
+ if (handleChange) {
76
+ renderer?.onUpdate?.(props);
77
+ }
78
+ if (handleStart) {
79
+ renderer?.onStart?.(props);
80
+ }
81
+ },
82
+ destroy: () => {
83
+ if (!props) {
84
+ return;
85
+ }
86
+ //console.log('plugin onExit destroy')
87
+ renderer?.onExit?.(props);
88
+ },
89
+ };
90
+ },
91
+ state: {
92
+ // Initialize the plugin's internal state.
93
+ init() {
94
+ const state = {
95
+ active: false,
96
+ range: {
97
+ from: 0,
98
+ to: 0,
99
+ },
100
+ query: null,
101
+ text: null,
102
+ composing: false,
103
+ };
104
+ return state;
105
+ },
106
+ // Apply changes to the plugin state from a view transaction.
107
+ apply(transaction, prev, _oldState, state) {
108
+ const { isEditable } = editor;
109
+ const { composing } = editor.view;
110
+ const { selection } = transaction;
111
+ const { empty, from } = selection;
112
+ const next = { ...prev };
113
+ let blockPluginActivation = false;
114
+ if (!prev.active) {
115
+ blockPluginActivation = true;
116
+ if (transaction && transaction.steps.length > 0) {
117
+ const modStep = transaction.steps.find(s => s.jsonID === 'replace');
118
+ if (modStep)
119
+ blockPluginActivation = false;
120
+ }
121
+ }
122
+ next.composing = composing;
123
+ // We can only be suggesting if the view is editable, and:
124
+ // * there is no selection, or
125
+ // * a composition is active (see: https://github.com/ueberdosis/tiptap/issues/1449)
126
+ if (isEditable && (empty || editor.view.composing) && !blockPluginActivation) {
127
+ // Reset active state if we just left the previous suggestion range
128
+ if ((from < prev.range.from || from > prev.range.to) && !composing && !prev.composing) {
129
+ next.active = false;
130
+ }
131
+ // Try to match against where our cursor currently is
132
+ const match = findSuggestionMatch({
133
+ char,
134
+ allowSpaces,
135
+ allowToIncludeChar,
136
+ allowedPrefixes,
137
+ startOfLine,
138
+ $position: selection.$from,
139
+ });
140
+ const decorationId = `id_${Math.floor(Math.random() * 0xffffffff)}`;
141
+ // If we found a match, update the current state to show it
142
+ if (match && allow({
143
+ editor, state, range: match.range, isActive: prev.active,
144
+ })) {
145
+ next.active = true;
146
+ next.decorationId = prev.decorationId ? prev.decorationId : decorationId;
147
+ next.range = match.range;
148
+ next.query = match.query;
149
+ next.text = match.text;
150
+ }
151
+ else {
152
+ next.active = false;
153
+ }
154
+ }
155
+ else {
156
+ next.active = false;
157
+ }
158
+ // Make sure to empty the range if suggestion is inactive
159
+ if (!next.active) {
160
+ next.decorationId = null;
161
+ next.range = { from: 0, to: 0 };
162
+ next.query = null;
163
+ next.text = null;
164
+ }
165
+ return next;
166
+ },
167
+ },
168
+ props: {
169
+ // Call the keydown hook if suggestion is active.
170
+ handleKeyDown(view, event) {
171
+ const { active, range } = plugin.getState(view.state);
172
+ if (!active) {
173
+ return false;
174
+ }
175
+ return renderer?.onKeyDown?.({ view, event, range }) || false;
176
+ },
177
+ // Setup decorator on the currently active suggestion.
178
+ decorations(state) {
179
+ const { active, range, decorationId } = plugin.getState(state);
180
+ if (!active) {
181
+ return null;
182
+ }
183
+ return DecorationSet.create(state.doc, [
184
+ Decoration.inline(range.from, range.to, {
185
+ nodeName: decorationTag,
186
+ class: decorationClass,
187
+ 'data-decoration-id': decorationId,
188
+ }),
189
+ ]);
190
+ },
191
+ },
192
+ });
193
+ return plugin;
194
+ }
@@ -1,34 +1,34 @@
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
- c?: string | undefined;
13
- pushChangesImmediately?: boolean | undefined;
14
- run?: ((onStop?: undefined) => void) | undefined;
15
- getFormattingOperations?: ((withCaptions?: boolean) => any[]) | undefined;
16
- save?: (() => void) | undefined;
17
- };
18
- events: {
19
- focus: FocusEvent;
20
- blur: FocusEvent;
21
- } & {
22
- [evt: string]: CustomEvent<any>;
23
- };
24
- slots: {};
25
- };
26
- export type RichProps = typeof __propDef.props;
27
- export type RichEvents = typeof __propDef.events;
28
- export type RichSlots = typeof __propDef.slots;
29
- export default class Rich extends SvelteComponentTyped<RichProps, RichEvents, RichSlots> {
30
- get run(): (onStop?: undefined) => void;
31
- get getFormattingOperations(): (withCaptions?: boolean) => any[];
32
- get save(): () => void;
33
- }
34
- 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
+ c?: string | undefined;
13
+ pushChangesImmediately?: boolean | undefined;
14
+ run?: ((onStop?: undefined) => void) | undefined;
15
+ getFormattingOperations?: ((withCaptions?: boolean) => any[]) | undefined;
16
+ save?: (() => void) | undefined;
17
+ };
18
+ events: {
19
+ focus: FocusEvent;
20
+ blur: FocusEvent;
21
+ } & {
22
+ [evt: string]: CustomEvent<any>;
23
+ };
24
+ slots: {};
25
+ };
26
+ export type RichProps = typeof __propDef.props;
27
+ export type RichEvents = typeof __propDef.events;
28
+ export type RichSlots = typeof __propDef.slots;
29
+ export default class Rich extends SvelteComponentTyped<RichProps, RichEvents, RichSlots> {
30
+ get run(): (onStop?: undefined) => void;
31
+ get getFormattingOperations(): (withCaptions?: boolean) => any[];
32
+ get save(): () => void;
33
+ }
34
+ export {};
@@ -1,31 +1,31 @@
1
- import { SvelteComponentTyped } from "svelte";
2
- declare const __propDef: {
3
- props: {
4
- [x: string]: any;
5
- value?: string | undefined;
6
- placeholder?: string | undefined;
7
- onEnter?: null | undefined;
8
- onBlur?: null | undefined;
9
- self?: null | undefined;
10
- a?: string | undefined;
11
- context?: string | undefined;
12
- typename?: string | undefined;
13
- inserter?: boolean | undefined;
14
- c?: string | undefined;
15
- pushChangesImmediately?: boolean | undefined;
16
- run?: ((event: any) => void) | undefined;
17
- };
18
- events: {
19
- [evt: string]: CustomEvent<any>;
20
- };
21
- slots: {
22
- default: {};
23
- };
24
- };
25
- export type EditProps = typeof __propDef.props;
26
- export type EditEvents = typeof __propDef.events;
27
- export type EditSlots = typeof __propDef.slots;
28
- export default class Edit extends SvelteComponentTyped<EditProps, EditEvents, EditSlots> {
29
- get run(): (event: any) => void;
30
- }
31
- 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
+ onEnter?: null | undefined;
8
+ onBlur?: null | undefined;
9
+ self?: null | undefined;
10
+ a?: string | undefined;
11
+ context?: string | undefined;
12
+ typename?: string | undefined;
13
+ inserter?: boolean | undefined;
14
+ c?: string | undefined;
15
+ pushChangesImmediately?: boolean | undefined;
16
+ run?: ((event: any) => void) | undefined;
17
+ };
18
+ events: {
19
+ [evt: string]: CustomEvent<any>;
20
+ };
21
+ slots: {
22
+ default: {};
23
+ };
24
+ };
25
+ export type EditProps = typeof __propDef.props;
26
+ export type EditEvents = typeof __propDef.events;
27
+ export type EditSlots = typeof __propDef.slots;
28
+ export default class Edit extends SvelteComponentTyped<EditProps, EditEvents, EditSlots> {
29
+ get run(): (event: any) => void;
30
+ }
31
+ export {};
@@ -1,25 +1,25 @@
1
- import { SvelteComponentTyped } from "svelte";
2
- declare const __propDef: {
3
- props: {
4
- getName?: (() => string) | undefined;
5
- getSize?: (() => number) | undefined;
6
- getType?: (() => string) | undefined;
7
- getData?: (() => ArrayBuffer) | undefined;
8
- isSelected?: (() => boolean) | undefined;
9
- };
10
- events: {
11
- [evt: string]: CustomEvent<any>;
12
- };
13
- slots: {};
14
- };
15
- export type FileProps = typeof __propDef.props;
16
- export type FileEvents = typeof __propDef.events;
17
- export type FileSlots = typeof __propDef.slots;
18
- export default class File extends SvelteComponentTyped<FileProps, FileEvents, FileSlots> {
19
- get getName(): () => string;
20
- get getSize(): () => number;
21
- get getType(): () => string;
22
- get getData(): () => ArrayBuffer;
23
- get isSelected(): () => boolean;
24
- }
25
- export {};
1
+ import { SvelteComponentTyped } from "svelte";
2
+ declare const __propDef: {
3
+ props: {
4
+ getName?: (() => string) | undefined;
5
+ getSize?: (() => number) | undefined;
6
+ getType?: (() => string) | undefined;
7
+ getData?: (() => ArrayBuffer) | undefined;
8
+ isSelected?: (() => boolean) | undefined;
9
+ };
10
+ events: {
11
+ [evt: string]: CustomEvent<any>;
12
+ };
13
+ slots: {};
14
+ };
15
+ export type FileProps = typeof __propDef.props;
16
+ export type FileEvents = typeof __propDef.events;
17
+ export type FileSlots = typeof __propDef.slots;
18
+ export default class File extends SvelteComponentTyped<FileProps, FileEvents, FileSlots> {
19
+ get getName(): () => string;
20
+ get getSize(): () => number;
21
+ get getType(): () => string;
22
+ get getData(): () => ArrayBuffer;
23
+ get isSelected(): () => boolean;
24
+ }
25
+ export {};