@fastkit/vui-wysiwyg 8.2.0 → 8.3.0-next.1
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/dist/pm/changeset.d.mts +1 -0
- package/dist/pm/changeset.mjs +2 -3
- package/dist/pm/commands.d.mts +1 -0
- package/dist/pm/commands.mjs +2 -3
- package/dist/pm/dropcursor.d.mts +1 -0
- package/dist/pm/dropcursor.mjs +2 -3
- package/dist/pm/gapcursor.d.mts +1 -0
- package/dist/pm/gapcursor.mjs +2 -3
- package/dist/pm/history.d.mts +1 -0
- package/dist/pm/history.mjs +2 -3
- package/dist/pm/inputrules.d.mts +1 -0
- package/dist/pm/inputrules.mjs +2 -3
- package/dist/pm/keymap.d.mts +1 -0
- package/dist/pm/keymap.mjs +2 -3
- package/dist/pm/model.d.mts +1 -0
- package/dist/pm/model.mjs +2 -3
- package/dist/pm/schema-list.d.mts +1 -0
- package/dist/pm/schema-list.mjs +2 -3
- package/dist/pm/state.d.mts +1 -0
- package/dist/pm/state.mjs +2 -3
- package/dist/pm/tables.d.mts +1 -0
- package/dist/pm/tables.mjs +2 -3
- package/dist/pm/transform.d.mts +1 -0
- package/dist/pm/transform.mjs +2 -3
- package/dist/pm/view.d.mts +1 -0
- package/dist/pm/view.mjs +2 -3
- package/dist/tiptap/core.d.mts +1 -0
- package/dist/tiptap/core.mjs +2 -3
- package/dist/tiptap/extensions/bold.d.mts +1 -0
- package/dist/tiptap/extensions/bold.mjs +2 -3
- package/dist/tiptap/extensions/bullet-list.d.mts +1 -0
- package/dist/tiptap/extensions/bullet-list.mjs +2 -3
- package/dist/tiptap/extensions/history.d.mts +1 -0
- package/dist/tiptap/extensions/history.mjs +2 -3
- package/dist/tiptap/extensions/italic.d.mts +1 -0
- package/dist/tiptap/extensions/italic.mjs +2 -3
- package/dist/tiptap/extensions/link.d.mts +1 -0
- package/dist/tiptap/extensions/link.mjs +2 -3
- package/dist/tiptap/extensions/ordered-list.d.mts +1 -0
- package/dist/tiptap/extensions/ordered-list.mjs +2 -3
- package/dist/tiptap/extensions/text-align.d.mts +1 -0
- package/dist/tiptap/extensions/text-align.mjs +2 -3
- package/dist/tiptap/extensions/text-style.d.mts +1 -0
- package/dist/tiptap/extensions/text-style.mjs +2 -3
- package/dist/tiptap/extensions/underline.d.mts +1 -0
- package/dist/tiptap/extensions/underline.mjs +2 -3
- package/dist/vui-wysiwyg.css +137 -136
- package/dist/vui-wysiwyg.d.mts +2207 -0
- package/dist/vui-wysiwyg.mjs +843 -987
- package/dist/vui-wysiwyg.mjs.map +1 -1
- package/package.json +74 -118
- package/dist/pm/changeset.d.ts +0 -1
- package/dist/pm/changeset.mjs.map +0 -1
- package/dist/pm/collab.d.ts +0 -1
- package/dist/pm/collab.mjs +0 -3
- package/dist/pm/collab.mjs.map +0 -1
- package/dist/pm/commands.d.ts +0 -1
- package/dist/pm/commands.mjs.map +0 -1
- package/dist/pm/dropcursor.d.ts +0 -1
- package/dist/pm/dropcursor.mjs.map +0 -1
- package/dist/pm/gapcursor.d.ts +0 -1
- package/dist/pm/gapcursor.mjs.map +0 -1
- package/dist/pm/history.d.ts +0 -1
- package/dist/pm/history.mjs.map +0 -1
- package/dist/pm/inputrules.d.ts +0 -1
- package/dist/pm/inputrules.mjs.map +0 -1
- package/dist/pm/keymap.d.ts +0 -1
- package/dist/pm/keymap.mjs.map +0 -1
- package/dist/pm/markdown.d.ts +0 -1
- package/dist/pm/markdown.mjs +0 -3
- package/dist/pm/markdown.mjs.map +0 -1
- package/dist/pm/menu.d.ts +0 -1
- package/dist/pm/menu.mjs +0 -3
- package/dist/pm/menu.mjs.map +0 -1
- package/dist/pm/model.d.ts +0 -1
- package/dist/pm/model.mjs.map +0 -1
- package/dist/pm/schema-basic.d.ts +0 -1
- package/dist/pm/schema-basic.mjs +0 -3
- package/dist/pm/schema-basic.mjs.map +0 -1
- package/dist/pm/schema-list.d.ts +0 -1
- package/dist/pm/schema-list.mjs.map +0 -1
- package/dist/pm/state.d.ts +0 -1
- package/dist/pm/state.mjs.map +0 -1
- package/dist/pm/tables.d.ts +0 -1
- package/dist/pm/tables.mjs.map +0 -1
- package/dist/pm/trailing-node.d.ts +0 -1
- package/dist/pm/trailing-node.mjs +0 -3
- package/dist/pm/trailing-node.mjs.map +0 -1
- package/dist/pm/transform.d.ts +0 -1
- package/dist/pm/transform.mjs.map +0 -1
- package/dist/pm/view.d.ts +0 -28
- package/dist/pm/view.mjs.map +0 -1
- package/dist/tiptap/core.d.ts +0 -1
- package/dist/tiptap/core.mjs.map +0 -1
- package/dist/tiptap/extensions/bold.d.ts +0 -1
- package/dist/tiptap/extensions/bold.mjs.map +0 -1
- package/dist/tiptap/extensions/bullet-list.d.ts +0 -1
- package/dist/tiptap/extensions/bullet-list.mjs.map +0 -1
- package/dist/tiptap/extensions/history.d.ts +0 -1
- package/dist/tiptap/extensions/history.mjs.map +0 -1
- package/dist/tiptap/extensions/italic.d.ts +0 -1
- package/dist/tiptap/extensions/italic.mjs.map +0 -1
- package/dist/tiptap/extensions/link.d.ts +0 -1
- package/dist/tiptap/extensions/link.mjs.map +0 -1
- package/dist/tiptap/extensions/ordered-list.d.ts +0 -1
- package/dist/tiptap/extensions/ordered-list.mjs.map +0 -1
- package/dist/tiptap/extensions/text-align.d.ts +0 -1
- package/dist/tiptap/extensions/text-align.mjs.map +0 -1
- package/dist/tiptap/extensions/text-style.d.ts +0 -1
- package/dist/tiptap/extensions/text-style.mjs.map +0 -1
- package/dist/tiptap/extensions/underline.d.ts +0 -1
- package/dist/tiptap/extensions/underline.mjs.map +0 -1
- package/dist/vui-wysiwyg.d.ts +0 -511
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"underline.mjs","sourcesContent":[]}
|
package/dist/vui-wysiwyg.d.ts
DELETED
|
@@ -1,511 +0,0 @@
|
|
|
1
|
-
import * as _fastkit_vui from '@fastkit/vui';
|
|
2
|
-
import { VuiService, IconName, TextableControl } from '@fastkit/vui';
|
|
3
|
-
import { EditorOptions, Editor, Extension, Node, Mark, AnyExtension, Extensions } from '@tiptap/vue-3';
|
|
4
|
-
import * as vue from 'vue';
|
|
5
|
-
import { VNodeChild, PropType } from 'vue';
|
|
6
|
-
import { Node as Node$1 } from '@tiptap/pm/model';
|
|
7
|
-
import { EditorView } from '@tiptap/pm/view';
|
|
8
|
-
import { BulletListOptions } from '@tiptap/extension-bullet-list';
|
|
9
|
-
import { BoldOptions } from '@tiptap/extension-bold';
|
|
10
|
-
import { ItalicOptions } from '@tiptap/extension-italic';
|
|
11
|
-
import { UnderlineOptions } from '@tiptap/extension-underline';
|
|
12
|
-
import { HistoryOptions } from '@tiptap/extension-history';
|
|
13
|
-
import { LinkOptions } from '@tiptap/extension-link';
|
|
14
|
-
import { OrderedListOptions } from '@tiptap/extension-ordered-list';
|
|
15
|
-
import { TextAlignOptions } from '@tiptap/extension-text-align';
|
|
16
|
-
import * as vue_jsx_runtime from 'vue/jsx-runtime';
|
|
17
|
-
import * as _fastkit_vue_utils from '@fastkit/vue-utils';
|
|
18
|
-
import * as _fastkit_vue_form_control from '@fastkit/vue-form-control';
|
|
19
|
-
|
|
20
|
-
declare const EDITOR_EVENTS: readonly ["beforeCreate", "create", "update", "selectionUpdate", "transaction", "focus", "blur", "destroy"];
|
|
21
|
-
type PrefixedEventName<S extends string> = `on${Capitalize<S>}`;
|
|
22
|
-
type WysiwygEditorEvent = (typeof EDITOR_EVENTS)[number];
|
|
23
|
-
type WysiwygEditorPrefixedEvent = PrefixedEventName<WysiwygEditorEvent>;
|
|
24
|
-
interface WysiwygEditorEventsOptions extends Partial<Pick<EditorOptions, WysiwygEditorPrefixedEvent>> {
|
|
25
|
-
}
|
|
26
|
-
type WysiwygEditorEventsBucket = {
|
|
27
|
-
[EV in WysiwygEditorEvent]: NonNullable<WysiwygEditorEventsOptions[PrefixedEventName<EV>]>[];
|
|
28
|
-
};
|
|
29
|
-
declare class WysiwygEditorInitializeContext {
|
|
30
|
-
readonly listeners: WysiwygEditorEventsBucket;
|
|
31
|
-
private readonly _vui;
|
|
32
|
-
get vui(): VuiService;
|
|
33
|
-
constructor(vuiGetter: () => VuiService, opts?: WysiwygEditorEventsOptions);
|
|
34
|
-
on<EV extends WysiwygEditorEvent>(ev: EV, handler: NonNullable<WysiwygEditorEventsOptions[PrefixedEventName<EV>]>): () => void;
|
|
35
|
-
off<EV extends WysiwygEditorEvent>(ev: EV, handler: NonNullable<WysiwygEditorEventsOptions[PrefixedEventName<EV>]>): void;
|
|
36
|
-
editorOptions(): WysiwygEditorEventsOptions;
|
|
37
|
-
}
|
|
38
|
-
interface WysiwygEditorContext {
|
|
39
|
-
editor: Editor;
|
|
40
|
-
vui: VuiService;
|
|
41
|
-
}
|
|
42
|
-
type WysiwygExtensionFactory<Options = any, Storage = any> = (ctx: WysiwygEditorInitializeContext) => Extension<Options, Storage> | Node<Options, Storage> | Mark<Options, Storage>;
|
|
43
|
-
interface CreatedWysiwygExtension<Options = any, Storage = any> {
|
|
44
|
-
__isCreatedWysiwygExtension: true;
|
|
45
|
-
_configs: Partial<Options>[];
|
|
46
|
-
configure(options?: Partial<Options>): CreatedWysiwygExtension<Options, Storage>;
|
|
47
|
-
raw: WysiwygExtensionSource<Options, Storage>;
|
|
48
|
-
}
|
|
49
|
-
type WysiwygExtensionSource<Options = any, Storage = any> = Extension<Options, Storage> | Node<Options, Storage> | Mark<Options, Storage> | WysiwygExtensionFactory<Options, Storage>;
|
|
50
|
-
type RawWysiwygExtension<Options = any, Storage = any> = WysiwygExtensionSource<Options, Storage> | CreatedWysiwygExtension<Options, Storage>;
|
|
51
|
-
declare function createWysiwygExtension<Options = any, Storage = any>(extension: WysiwygExtensionSource<Options, Storage>): CreatedWysiwygExtension<Options, Storage>;
|
|
52
|
-
declare function resolveRawWysiwygExtensions(raws: RawWysiwygExtension[], ctx: WysiwygEditorInitializeContext): AnyExtension[];
|
|
53
|
-
type WysiwygEditorToolIcon = IconName | ((ctx: WysiwygEditorContext) => IconName | (() => VNodeChild) | undefined);
|
|
54
|
-
/**
|
|
55
|
-
* Tool Configuration
|
|
56
|
-
*/
|
|
57
|
-
interface WysiwygEditorTool {
|
|
58
|
-
/**
|
|
59
|
-
* Tool Key
|
|
60
|
-
*
|
|
61
|
-
* Must be unique to identify the tool
|
|
62
|
-
*/
|
|
63
|
-
key: string;
|
|
64
|
-
/** Icons to be displayed on the toolbar */
|
|
65
|
-
icon: WysiwygEditorToolIcon;
|
|
66
|
-
/** Conditions for displaying the icon as active */
|
|
67
|
-
active?: boolean | ((ctx: WysiwygEditorContext) => boolean);
|
|
68
|
-
/** Conditions for deactivating the icon */
|
|
69
|
-
disabled?: boolean | ((ctx: WysiwygEditorContext) => boolean);
|
|
70
|
-
/** Handler when mark text is clicked */
|
|
71
|
-
onClick: (ctx: WysiwygEditorContext, ev: PointerEvent) => any;
|
|
72
|
-
/** Whether to display tools in floating menu or not */
|
|
73
|
-
floating?: boolean;
|
|
74
|
-
/** Extensions that the tool depends on */
|
|
75
|
-
extensions?: Extensions;
|
|
76
|
-
}
|
|
77
|
-
type WysiwygEditorToolFactory<Options = void> = (vui: VuiService, options?: Options) => WysiwygEditorTool | WysiwygEditorTool[];
|
|
78
|
-
type RawWysiwygEditorTool = WysiwygEditorTool | WysiwygEditorToolFactory<any>;
|
|
79
|
-
interface ResolvedWysiwygEditorSettings {
|
|
80
|
-
tools: WysiwygEditorTool[];
|
|
81
|
-
extensions: Extensions;
|
|
82
|
-
}
|
|
83
|
-
declare function resolveRawWysiwygEditorTools(rawTools: RawWysiwygEditorTool[], vui: VuiService): ResolvedWysiwygEditorSettings;
|
|
84
|
-
|
|
85
|
-
declare const VUI_WYSIWYG_EDITOR_SYMBOL = "vui-wysiwyg-editor";
|
|
86
|
-
|
|
87
|
-
type WysiwygLinterFixFn = (view: EditorView, issue: WysiwygLinterResult) => any;
|
|
88
|
-
type WysiwygLinterFixMessage = string | (() => VNodeChild);
|
|
89
|
-
interface WysiwygLinterFixer {
|
|
90
|
-
message: WysiwygLinterFixMessage;
|
|
91
|
-
handler: WysiwygLinterFixFn;
|
|
92
|
-
}
|
|
93
|
-
type WysiwygLinterResultLevel = 'warning' | 'error';
|
|
94
|
-
interface WysiwygLinterResult {
|
|
95
|
-
id: string;
|
|
96
|
-
icon: boolean;
|
|
97
|
-
level: WysiwygLinterResultLevel;
|
|
98
|
-
message: WysiwygLinterFixMessage;
|
|
99
|
-
from: number;
|
|
100
|
-
to: number;
|
|
101
|
-
fix: WysiwygLinterFixer[];
|
|
102
|
-
}
|
|
103
|
-
interface RawLinterResult extends Omit<WysiwygLinterResult, 'level' | 'fix' | 'id' | 'icon'> {
|
|
104
|
-
level?: WysiwygLinterResultLevel;
|
|
105
|
-
icon?: boolean;
|
|
106
|
-
fix?: WysiwygLinterFixer | WysiwygLinterFixer[];
|
|
107
|
-
}
|
|
108
|
-
declare class WysiwygLinterPlugin {
|
|
109
|
-
protected doc: Node$1;
|
|
110
|
-
private results;
|
|
111
|
-
constructor(doc: Node$1);
|
|
112
|
-
record(result: RawLinterResult): void;
|
|
113
|
-
scan(): this;
|
|
114
|
-
getResults(): WysiwygLinterResult[];
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
interface WysiwygLinterOptions {
|
|
118
|
-
plugins: Array<typeof WysiwygLinterPlugin>;
|
|
119
|
-
}
|
|
120
|
-
interface WysiwygLinterStorage {
|
|
121
|
-
issues: WysiwygLinterResult[];
|
|
122
|
-
}
|
|
123
|
-
declare const WysiwygLinter: CreatedWysiwygExtension<WysiwygLinterOptions, WysiwygLinterStorage>;
|
|
124
|
-
|
|
125
|
-
declare function WysiwygLinterBadWords(words: string[]): typeof WysiwygLinterPlugin;
|
|
126
|
-
|
|
127
|
-
declare class WysiwygLinterHeadingLevel extends WysiwygLinterPlugin {
|
|
128
|
-
fixHeader(level: number): ({ state, dispatch }: EditorView, issue: WysiwygLinterResult) => void;
|
|
129
|
-
scan(): this;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
declare class WysiwygLinterPunctuation extends WysiwygLinterPlugin {
|
|
133
|
-
regex: RegExp;
|
|
134
|
-
fix(replacement: any): ({ state, dispatch }: EditorView, issue: WysiwygLinterResult) => void;
|
|
135
|
-
scan(): this;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
type WysiwygColorOptions = {
|
|
139
|
-
types: string[];
|
|
140
|
-
};
|
|
141
|
-
declare module '@tiptap/vue-3' {
|
|
142
|
-
interface Commands<ReturnType> {
|
|
143
|
-
color: {
|
|
144
|
-
/**
|
|
145
|
-
* Set the text color
|
|
146
|
-
*/
|
|
147
|
-
setColor: (color: string) => ReturnType;
|
|
148
|
-
/**
|
|
149
|
-
* Unset the text color
|
|
150
|
-
*/
|
|
151
|
-
unsetColor: () => ReturnType;
|
|
152
|
-
};
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
declare const WysiwygColorExtension: Extension<WysiwygColorOptions, any>;
|
|
156
|
-
|
|
157
|
-
type WysiwygCustomTagSettings = {
|
|
158
|
-
/**
|
|
159
|
-
* tag name
|
|
160
|
-
*
|
|
161
|
-
* Either the html default tag name or a custom tag name is acceptable
|
|
162
|
-
*
|
|
163
|
-
* @default "span"
|
|
164
|
-
*/
|
|
165
|
-
tag: string;
|
|
166
|
-
/**
|
|
167
|
-
* HTML Attributes
|
|
168
|
-
*
|
|
169
|
-
* Attributes to be assigned to tags such as `class`, `data-xxx`, etc.
|
|
170
|
-
*/
|
|
171
|
-
attrs?: Record<any, string>;
|
|
172
|
-
};
|
|
173
|
-
declare module '@tiptap/vue-3' {
|
|
174
|
-
interface Commands<ReturnType> {
|
|
175
|
-
customTag: {
|
|
176
|
-
/**
|
|
177
|
-
* Set the custom tag
|
|
178
|
-
*/
|
|
179
|
-
setCustomTag: (markName: string) => ReturnType;
|
|
180
|
-
/**
|
|
181
|
-
* Toggle the custom tag
|
|
182
|
-
*/
|
|
183
|
-
toggleCustomTag: (markName: string) => ReturnType;
|
|
184
|
-
/**
|
|
185
|
-
* Unset the custom tag
|
|
186
|
-
*/
|
|
187
|
-
unsetCustomTag: (markName: string) => ReturnType;
|
|
188
|
-
};
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
declare function createWysiwygCustomTagMark(name: string, settings: Partial<WysiwygCustomTagSettings>): Mark<WysiwygCustomTagSettings, any>;
|
|
192
|
-
declare const WysiwygCustomTagExtension: Extension<WysiwygCustomTagSettings, any>;
|
|
193
|
-
|
|
194
|
-
declare const WysiwygBulletListTool: WysiwygEditorToolFactory<BulletListOptions>;
|
|
195
|
-
|
|
196
|
-
declare const WysiwygFormatBoldTool: WysiwygEditorToolFactory<BoldOptions>;
|
|
197
|
-
|
|
198
|
-
declare const WysiwygFormatItalicTool: WysiwygEditorToolFactory<ItalicOptions>;
|
|
199
|
-
|
|
200
|
-
declare const WysiwygFormatUnderlineTool: WysiwygEditorToolFactory<UnderlineOptions>;
|
|
201
|
-
|
|
202
|
-
declare const WysiwygHistoryTool: WysiwygEditorToolFactory<HistoryOptions>;
|
|
203
|
-
|
|
204
|
-
declare const WysiwygLinkTool: WysiwygEditorToolFactory<LinkOptions>;
|
|
205
|
-
|
|
206
|
-
declare const WysiwygOrderedListTool: WysiwygEditorToolFactory<OrderedListOptions>;
|
|
207
|
-
|
|
208
|
-
interface WysiwygColorItem {
|
|
209
|
-
key?: string | number;
|
|
210
|
-
name?: VNodeChild | ((vui: VuiService) => VNodeChild);
|
|
211
|
-
color: string | null;
|
|
212
|
-
}
|
|
213
|
-
interface CreateWysiwygColorToolOptions {
|
|
214
|
-
items: WysiwygColorItem[];
|
|
215
|
-
withLabel?: boolean;
|
|
216
|
-
}
|
|
217
|
-
declare function createWysiwygColorTool(opts: CreateWysiwygColorToolOptions): WysiwygEditorToolFactory;
|
|
218
|
-
|
|
219
|
-
/**
|
|
220
|
-
* A list of available options for the text align attribute.
|
|
221
|
-
* @remarks
|
|
222
|
-
* `"justify"` has not yet been adopted because of ambiguity in browser support.
|
|
223
|
-
*/
|
|
224
|
-
declare const WYSIWYG_TEXT_ALIGN_VALUES: readonly ["left", "center", "right"];
|
|
225
|
-
/** Text align value */
|
|
226
|
-
type WysiwygTextAlignValue = (typeof WYSIWYG_TEXT_ALIGN_VALUES)[number];
|
|
227
|
-
interface WysiwygTextAlignOptions {
|
|
228
|
-
/**
|
|
229
|
-
* A list of nodes where the text align attribute should be applied to. Usually something like `['heading', 'paragraph']`
|
|
230
|
-
* @default DEFAULT_TYPES
|
|
231
|
-
* @see {@link DEFAULT_TYPES}
|
|
232
|
-
*/
|
|
233
|
-
types?: TextAlignOptions['types'];
|
|
234
|
-
/**
|
|
235
|
-
* A list of available options for the text align attribute.
|
|
236
|
-
* @default WYSIWYG_TEXT_ALIGN_VALUES
|
|
237
|
-
* @see {@link WYSIWYG_TEXT_ALIGN_VALUES}
|
|
238
|
-
*/
|
|
239
|
-
alignments?: WysiwygTextAlignValue[];
|
|
240
|
-
/**
|
|
241
|
-
* The default text align.
|
|
242
|
-
* @default left
|
|
243
|
-
*/
|
|
244
|
-
defaultAlignment: WysiwygTextAlignValue;
|
|
245
|
-
}
|
|
246
|
-
declare const WysiwygTextAlignTool: WysiwygEditorToolFactory<WysiwygTextAlignOptions>;
|
|
247
|
-
|
|
248
|
-
interface WysiwygCustomTagToolSettings extends Pick<WysiwygEditorTool, 'icon' | 'floating'>, Partial<WysiwygCustomTagSettings> {
|
|
249
|
-
}
|
|
250
|
-
/**
|
|
251
|
-
* Generate Custom Tag Tool
|
|
252
|
-
*
|
|
253
|
-
* @param markName - Mark name
|
|
254
|
-
* @param settings - Tool Configuration
|
|
255
|
-
* @returns Generated Tool
|
|
256
|
-
*/
|
|
257
|
-
declare function createWysiwygCustomTagTool(markName: string, settings: WysiwygCustomTagToolSettings): WysiwygEditorToolFactory;
|
|
258
|
-
|
|
259
|
-
interface VWysiwygEditorAPI {
|
|
260
|
-
readonly editor: Editor | undefined;
|
|
261
|
-
readonly control: TextableControl;
|
|
262
|
-
}
|
|
263
|
-
declare const VWysiwygEditor: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
264
|
-
extensions: {
|
|
265
|
-
type: PropType<RawWysiwygExtension[]>;
|
|
266
|
-
default: () => never[];
|
|
267
|
-
};
|
|
268
|
-
tools: {
|
|
269
|
-
type: PropType<RawWysiwygEditorTool[]>;
|
|
270
|
-
default: () => never[];
|
|
271
|
-
};
|
|
272
|
-
floatingToolbar: BooleanConstructor;
|
|
273
|
-
disabledMinHeight: BooleanConstructor;
|
|
274
|
-
disabledMaxHeight: BooleanConstructor;
|
|
275
|
-
removeDefaultWrapper: {
|
|
276
|
-
type: BooleanConstructor;
|
|
277
|
-
default: boolean;
|
|
278
|
-
};
|
|
279
|
-
'v-slots': PropType<{
|
|
280
|
-
[x: `error:${string}`]: (error: _fastkit_vue_form_control.FormNodeError) => VNodeChild;
|
|
281
|
-
label?: ((wrapper: _fastkit_vue_form_control.FormNodeWrapper) => VNodeChild) | undefined;
|
|
282
|
-
hint?: ((wrapper: _fastkit_vue_form_control.FormNodeWrapper) => VNodeChild) | undefined;
|
|
283
|
-
infoAppends?: ((wrapper: _fastkit_vue_form_control.FormNodeWrapper) => VNodeChild) | undefined;
|
|
284
|
-
error?: ((error: _fastkit_vue_form_control.FormNodeError) => VNodeChild) | undefined;
|
|
285
|
-
default?: (() => VNodeChild) | undefined;
|
|
286
|
-
startAdornment?: (() => VNodeChild) | undefined;
|
|
287
|
-
endAdornment?: (() => VNodeChild) | undefined;
|
|
288
|
-
}>;
|
|
289
|
-
size: {
|
|
290
|
-
type: PropType<_fastkit_vui.ControlSize>;
|
|
291
|
-
validator: (value: any) => boolean;
|
|
292
|
-
};
|
|
293
|
-
loading: BooleanConstructor;
|
|
294
|
-
variant: {
|
|
295
|
-
type: PropType<_fastkit_vui.ControlFieldVariant>;
|
|
296
|
-
validator: (value: any) => boolean;
|
|
297
|
-
};
|
|
298
|
-
startAdornment: PropType<_fastkit_vue_utils.VNodeChildOrSlot>;
|
|
299
|
-
endAdornment: PropType<_fastkit_vue_utils.VNodeChildOrSlot>;
|
|
300
|
-
tabindex: {
|
|
301
|
-
type: (StringConstructor | NumberConstructor)[];
|
|
302
|
-
default: number;
|
|
303
|
-
};
|
|
304
|
-
nodeControl: PropType<_fastkit_vue_form_control.FormNodeControl>;
|
|
305
|
-
label: PropType<_fastkit_vue_utils.VNodeChildOrSlot>;
|
|
306
|
-
hint: PropType<_fastkit_vue_utils.VNodeChildOrSlot>;
|
|
307
|
-
hinttip: PropType<_fastkit_vue_form_control.FormNodeWrapperHinttip>;
|
|
308
|
-
hinttipDelay: PropType<_fastkit_vue_form_control.FormNodeWrapperHinttipDelay>;
|
|
309
|
-
infoAppends: PropType<_fastkit_vue_utils.VNodeChildOrSlot>;
|
|
310
|
-
hiddenInfo: BooleanConstructor;
|
|
311
|
-
requiredChip: PropType<_fastkit_vue_form_control.RequiredChipSource>;
|
|
312
|
-
collectErrorMessages: {
|
|
313
|
-
type: BooleanConstructor;
|
|
314
|
-
default: boolean;
|
|
315
|
-
};
|
|
316
|
-
minlength: (NumberConstructor | StringConstructor)[];
|
|
317
|
-
maxlength: (NumberConstructor | StringConstructor)[];
|
|
318
|
-
pattern: (RegExpConstructor | StringConstructor)[];
|
|
319
|
-
placeholder: StringConstructor;
|
|
320
|
-
autocapitalize: PropType<_fastkit_vue_form_control.FormAutoCapitalize>;
|
|
321
|
-
finalizers: PropType<_fastkit_vue_form_control.TextableFinalizerSpec>;
|
|
322
|
-
counter: PropType<boolean | string | number>;
|
|
323
|
-
counterValue: PropType<(value: string) => number>;
|
|
324
|
-
limit: BooleanConstructor;
|
|
325
|
-
autocomplete: {
|
|
326
|
-
type: PropType<_fastkit_vue_form_control.FormAutoComplete | boolean>;
|
|
327
|
-
default: () => boolean | "off" | "on" | "name" | "honorific-prefix" | "given-name" | "additional-name" | "family-name" | "honorific-suffix" | "nickname" | "email" | "username" | "new-password" | "current-password" | "one-time-code" | "organization-title" | "organization" | "street-address" | "address-line1" | "address-line2" | "address-line3" | "address-level4" | "address-level3" | "address-level2" | "address-level1" | "country" | "country-name" | "postal-code" | "cc-name" | "cc-given-name" | "cc-additional-name" | "cc-family-name" | "cc-number" | "cc-exp" | "cc-exp-month" | "cc-exp-year" | "cc-csc" | "cc-type" | "transaction-currency" | "transaction-amount" | "language" | "bday" | "bday-day" | "bday-month" | "bday-year" | "sex" | "tel" | "tel-country-code" | "tel-national" | "tel-area-code" | "tel-local" | "tel-extension" | "impp" | "url" | "photo" | undefined;
|
|
328
|
-
};
|
|
329
|
-
name: StringConstructor;
|
|
330
|
-
tag: StringConstructor;
|
|
331
|
-
modelValue: vue.Prop<any, any>;
|
|
332
|
-
autofocus: BooleanConstructor;
|
|
333
|
-
disabled: BooleanConstructor;
|
|
334
|
-
readonly: BooleanConstructor;
|
|
335
|
-
viewonly: BooleanConstructor;
|
|
336
|
-
spellcheck: BooleanConstructor;
|
|
337
|
-
required: PropType<boolean> | BooleanConstructor;
|
|
338
|
-
clearable: BooleanConstructor;
|
|
339
|
-
validateTiming: {
|
|
340
|
-
type: PropType<_fastkit_vue_form_control.ValidateTiming>;
|
|
341
|
-
default: _fastkit_vue_form_control.ValidateTiming;
|
|
342
|
-
};
|
|
343
|
-
rules: {
|
|
344
|
-
type: PropType<_fastkit_vue_form_control.RecursiveVerifiableRuleOrFn>;
|
|
345
|
-
default: () => never[];
|
|
346
|
-
};
|
|
347
|
-
validationDeps: PropType<(nodeControl: _fastkit_vue_form_control.FormNodeControl) => any>;
|
|
348
|
-
error: BooleanConstructor;
|
|
349
|
-
errorMessages: PropType<string | string[]>;
|
|
350
|
-
showOwnErrors: {
|
|
351
|
-
type: BooleanConstructor;
|
|
352
|
-
default: undefined;
|
|
353
|
-
};
|
|
354
|
-
detach: BooleanConstructor;
|
|
355
|
-
}>, () => vue_jsx_runtime.JSX.Element, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
356
|
-
'update:modelValue': (value: string) => boolean;
|
|
357
|
-
'update:errors': (errors: _fastkit_vue_form_control.FormNodeError[]) => boolean;
|
|
358
|
-
change: (value: string) => boolean;
|
|
359
|
-
focus: (ev: FocusEvent) => boolean;
|
|
360
|
-
blur: (ev: FocusEvent) => boolean;
|
|
361
|
-
}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
362
|
-
extensions: {
|
|
363
|
-
type: PropType<RawWysiwygExtension[]>;
|
|
364
|
-
default: () => never[];
|
|
365
|
-
};
|
|
366
|
-
tools: {
|
|
367
|
-
type: PropType<RawWysiwygEditorTool[]>;
|
|
368
|
-
default: () => never[];
|
|
369
|
-
};
|
|
370
|
-
floatingToolbar: BooleanConstructor;
|
|
371
|
-
disabledMinHeight: BooleanConstructor;
|
|
372
|
-
disabledMaxHeight: BooleanConstructor;
|
|
373
|
-
removeDefaultWrapper: {
|
|
374
|
-
type: BooleanConstructor;
|
|
375
|
-
default: boolean;
|
|
376
|
-
};
|
|
377
|
-
'v-slots': PropType<{
|
|
378
|
-
[x: `error:${string}`]: (error: _fastkit_vue_form_control.FormNodeError) => VNodeChild;
|
|
379
|
-
label?: ((wrapper: _fastkit_vue_form_control.FormNodeWrapper) => VNodeChild) | undefined;
|
|
380
|
-
hint?: ((wrapper: _fastkit_vue_form_control.FormNodeWrapper) => VNodeChild) | undefined;
|
|
381
|
-
infoAppends?: ((wrapper: _fastkit_vue_form_control.FormNodeWrapper) => VNodeChild) | undefined;
|
|
382
|
-
error?: ((error: _fastkit_vue_form_control.FormNodeError) => VNodeChild) | undefined;
|
|
383
|
-
default?: (() => VNodeChild) | undefined;
|
|
384
|
-
startAdornment?: (() => VNodeChild) | undefined;
|
|
385
|
-
endAdornment?: (() => VNodeChild) | undefined;
|
|
386
|
-
}>;
|
|
387
|
-
size: {
|
|
388
|
-
type: PropType<_fastkit_vui.ControlSize>;
|
|
389
|
-
validator: (value: any) => boolean;
|
|
390
|
-
};
|
|
391
|
-
loading: BooleanConstructor;
|
|
392
|
-
variant: {
|
|
393
|
-
type: PropType<_fastkit_vui.ControlFieldVariant>;
|
|
394
|
-
validator: (value: any) => boolean;
|
|
395
|
-
};
|
|
396
|
-
startAdornment: PropType<_fastkit_vue_utils.VNodeChildOrSlot>;
|
|
397
|
-
endAdornment: PropType<_fastkit_vue_utils.VNodeChildOrSlot>;
|
|
398
|
-
tabindex: {
|
|
399
|
-
type: (StringConstructor | NumberConstructor)[];
|
|
400
|
-
default: number;
|
|
401
|
-
};
|
|
402
|
-
nodeControl: PropType<_fastkit_vue_form_control.FormNodeControl>;
|
|
403
|
-
label: PropType<_fastkit_vue_utils.VNodeChildOrSlot>;
|
|
404
|
-
hint: PropType<_fastkit_vue_utils.VNodeChildOrSlot>;
|
|
405
|
-
hinttip: PropType<_fastkit_vue_form_control.FormNodeWrapperHinttip>;
|
|
406
|
-
hinttipDelay: PropType<_fastkit_vue_form_control.FormNodeWrapperHinttipDelay>;
|
|
407
|
-
infoAppends: PropType<_fastkit_vue_utils.VNodeChildOrSlot>;
|
|
408
|
-
hiddenInfo: BooleanConstructor;
|
|
409
|
-
requiredChip: PropType<_fastkit_vue_form_control.RequiredChipSource>;
|
|
410
|
-
collectErrorMessages: {
|
|
411
|
-
type: BooleanConstructor;
|
|
412
|
-
default: boolean;
|
|
413
|
-
};
|
|
414
|
-
minlength: (NumberConstructor | StringConstructor)[];
|
|
415
|
-
maxlength: (NumberConstructor | StringConstructor)[];
|
|
416
|
-
pattern: (RegExpConstructor | StringConstructor)[];
|
|
417
|
-
placeholder: StringConstructor;
|
|
418
|
-
autocapitalize: PropType<_fastkit_vue_form_control.FormAutoCapitalize>;
|
|
419
|
-
finalizers: PropType<_fastkit_vue_form_control.TextableFinalizerSpec>;
|
|
420
|
-
counter: PropType<boolean | string | number>;
|
|
421
|
-
counterValue: PropType<(value: string) => number>;
|
|
422
|
-
limit: BooleanConstructor;
|
|
423
|
-
autocomplete: {
|
|
424
|
-
type: PropType<_fastkit_vue_form_control.FormAutoComplete | boolean>;
|
|
425
|
-
default: () => boolean | "off" | "on" | "name" | "honorific-prefix" | "given-name" | "additional-name" | "family-name" | "honorific-suffix" | "nickname" | "email" | "username" | "new-password" | "current-password" | "one-time-code" | "organization-title" | "organization" | "street-address" | "address-line1" | "address-line2" | "address-line3" | "address-level4" | "address-level3" | "address-level2" | "address-level1" | "country" | "country-name" | "postal-code" | "cc-name" | "cc-given-name" | "cc-additional-name" | "cc-family-name" | "cc-number" | "cc-exp" | "cc-exp-month" | "cc-exp-year" | "cc-csc" | "cc-type" | "transaction-currency" | "transaction-amount" | "language" | "bday" | "bday-day" | "bday-month" | "bday-year" | "sex" | "tel" | "tel-country-code" | "tel-national" | "tel-area-code" | "tel-local" | "tel-extension" | "impp" | "url" | "photo" | undefined;
|
|
426
|
-
};
|
|
427
|
-
name: StringConstructor;
|
|
428
|
-
tag: StringConstructor;
|
|
429
|
-
modelValue: vue.Prop<any, any>;
|
|
430
|
-
autofocus: BooleanConstructor;
|
|
431
|
-
disabled: BooleanConstructor;
|
|
432
|
-
readonly: BooleanConstructor;
|
|
433
|
-
viewonly: BooleanConstructor;
|
|
434
|
-
spellcheck: BooleanConstructor;
|
|
435
|
-
required: PropType<boolean> | BooleanConstructor;
|
|
436
|
-
clearable: BooleanConstructor;
|
|
437
|
-
validateTiming: {
|
|
438
|
-
type: PropType<_fastkit_vue_form_control.ValidateTiming>;
|
|
439
|
-
default: _fastkit_vue_form_control.ValidateTiming;
|
|
440
|
-
};
|
|
441
|
-
rules: {
|
|
442
|
-
type: PropType<_fastkit_vue_form_control.RecursiveVerifiableRuleOrFn>;
|
|
443
|
-
default: () => never[];
|
|
444
|
-
};
|
|
445
|
-
validationDeps: PropType<(nodeControl: _fastkit_vue_form_control.FormNodeControl) => any>;
|
|
446
|
-
error: BooleanConstructor;
|
|
447
|
-
errorMessages: PropType<string | string[]>;
|
|
448
|
-
showOwnErrors: {
|
|
449
|
-
type: BooleanConstructor;
|
|
450
|
-
default: undefined;
|
|
451
|
-
};
|
|
452
|
-
detach: BooleanConstructor;
|
|
453
|
-
}>> & Readonly<{
|
|
454
|
-
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
|
455
|
-
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
|
456
|
-
onChange?: ((value: string) => any) | undefined;
|
|
457
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
458
|
-
"onUpdate:errors"?: ((errors: _fastkit_vue_form_control.FormNodeError[]) => any) | undefined;
|
|
459
|
-
}>, {
|
|
460
|
-
extensions: RawWysiwygExtension[];
|
|
461
|
-
autofocus: boolean;
|
|
462
|
-
error: boolean;
|
|
463
|
-
disabled: boolean;
|
|
464
|
-
loading: boolean;
|
|
465
|
-
tabindex: string | number;
|
|
466
|
-
hiddenInfo: boolean;
|
|
467
|
-
collectErrorMessages: boolean;
|
|
468
|
-
limit: boolean;
|
|
469
|
-
autocomplete: boolean | "name" | "email" | "tel" | "url" | "off" | "on" | "honorific-prefix" | "given-name" | "additional-name" | "family-name" | "honorific-suffix" | "nickname" | "username" | "new-password" | "current-password" | "one-time-code" | "organization-title" | "organization" | "street-address" | "address-line1" | "address-line2" | "address-line3" | "address-level4" | "address-level3" | "address-level2" | "address-level1" | "country" | "country-name" | "postal-code" | "cc-name" | "cc-given-name" | "cc-additional-name" | "cc-family-name" | "cc-number" | "cc-exp" | "cc-exp-month" | "cc-exp-year" | "cc-csc" | "cc-type" | "transaction-currency" | "transaction-amount" | "language" | "bday" | "bday-day" | "bday-month" | "bday-year" | "sex" | "tel-country-code" | "tel-national" | "tel-area-code" | "tel-local" | "tel-extension" | "impp" | "photo";
|
|
470
|
-
readonly: boolean;
|
|
471
|
-
viewonly: boolean;
|
|
472
|
-
spellcheck: boolean;
|
|
473
|
-
clearable: boolean;
|
|
474
|
-
validateTiming: _fastkit_vue_form_control.ValidateTiming;
|
|
475
|
-
rules: _fastkit_vue_form_control.RecursiveVerifiableRuleOrFn;
|
|
476
|
-
showOwnErrors: boolean;
|
|
477
|
-
detach: boolean;
|
|
478
|
-
floatingToolbar: boolean;
|
|
479
|
-
disabledMinHeight: boolean;
|
|
480
|
-
disabledMaxHeight: boolean;
|
|
481
|
-
tools: RawWysiwygEditorTool[];
|
|
482
|
-
removeDefaultWrapper: boolean;
|
|
483
|
-
}, _fastkit_vue_utils.DefinedSlots<{
|
|
484
|
-
[x: `error:${string}`]: (error: _fastkit_vue_form_control.FormNodeError) => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
485
|
-
[key: string]: any;
|
|
486
|
-
}>[];
|
|
487
|
-
label?: ((wrapper: _fastkit_vue_form_control.FormNodeWrapper) => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
488
|
-
[key: string]: any;
|
|
489
|
-
}>[]) | undefined;
|
|
490
|
-
hint?: ((wrapper: _fastkit_vue_form_control.FormNodeWrapper) => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
491
|
-
[key: string]: any;
|
|
492
|
-
}>[]) | undefined;
|
|
493
|
-
infoAppends?: ((wrapper: _fastkit_vue_form_control.FormNodeWrapper) => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
494
|
-
[key: string]: any;
|
|
495
|
-
}>[]) | undefined;
|
|
496
|
-
error?: ((error: _fastkit_vue_form_control.FormNodeError) => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
497
|
-
[key: string]: any;
|
|
498
|
-
}>[]) | undefined;
|
|
499
|
-
} & {
|
|
500
|
-
default?: (() => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
501
|
-
[key: string]: any;
|
|
502
|
-
}>[]) | undefined;
|
|
503
|
-
startAdornment?: (() => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
504
|
-
[key: string]: any;
|
|
505
|
-
}>[]) | undefined;
|
|
506
|
-
endAdornment?: (() => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
507
|
-
[key: string]: any;
|
|
508
|
-
}>[]) | undefined;
|
|
509
|
-
}>, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
510
|
-
|
|
511
|
-
export { type CreateWysiwygColorToolOptions, type CreatedWysiwygExtension, type RawWysiwygEditorTool, type RawWysiwygExtension, type ResolvedWysiwygEditorSettings, VUI_WYSIWYG_EDITOR_SYMBOL, VWysiwygEditor, type VWysiwygEditorAPI, WYSIWYG_TEXT_ALIGN_VALUES, WysiwygBulletListTool, WysiwygColorExtension, type WysiwygColorItem, type WysiwygColorOptions, WysiwygCustomTagExtension, type WysiwygCustomTagSettings, type WysiwygCustomTagToolSettings, type WysiwygEditorContext, type WysiwygEditorEvent, type WysiwygEditorEventsBucket, type WysiwygEditorEventsOptions, WysiwygEditorInitializeContext, type WysiwygEditorPrefixedEvent, type WysiwygEditorTool, type WysiwygEditorToolFactory, type WysiwygEditorToolIcon, type WysiwygExtensionFactory, type WysiwygExtensionSource, WysiwygFormatBoldTool, WysiwygFormatItalicTool, WysiwygFormatUnderlineTool, WysiwygHistoryTool, WysiwygLinkTool, WysiwygLinter, WysiwygLinterBadWords, WysiwygLinterHeadingLevel, type WysiwygLinterOptions, WysiwygLinterPlugin, WysiwygLinterPunctuation, WysiwygOrderedListTool, type WysiwygTextAlignOptions, WysiwygTextAlignTool, type WysiwygTextAlignValue, createWysiwygColorTool, createWysiwygCustomTagMark, createWysiwygCustomTagTool, createWysiwygExtension, resolveRawWysiwygEditorTools, resolveRawWysiwygExtensions };
|