@knime/kds-rich-text-editor 0.30.4
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/CHANGELOG.md +7 -0
- package/LICENSE +710 -0
- package/README.md +116 -0
- package/dist/index.css +282 -0
- package/dist/index.js +917 -0
- package/dist/index.js.map +1 -0
- package/dist/src/KdsRichTextEditor.vue.d.ts +35 -0
- package/dist/src/KdsRichTextEditor.vue.d.ts.map +1 -0
- package/dist/src/index.d.ts +6 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/toolbar/KdsCreateLinkModal.vue.d.ts +459 -0
- package/dist/src/toolbar/KdsCreateLinkModal.vue.d.ts.map +1 -0
- package/dist/src/toolbar/RichTextEditorBaseToolbar.vue.d.ts +48 -0
- package/dist/src/toolbar/RichTextEditorBaseToolbar.vue.d.ts.map +1 -0
- package/dist/src/toolbar/RichTextEditorToolbar.vue.d.ts +10 -0
- package/dist/src/toolbar/RichTextEditorToolbar.vue.d.ts.map +1 -0
- package/dist/src/toolbar/types.d.ts +29 -0
- package/dist/src/toolbar/types.d.ts.map +1 -0
- package/dist/src/toolbar/useLinkTool.d.ts +22 -0
- package/dist/src/toolbar/useLinkTool.d.ts.map +1 -0
- package/dist/src/types.d.ts +112 -0
- package/dist/src/types.d.ts.map +1 -0
- package/dist/src/utils/custom-escape.d.ts +15 -0
- package/dist/src/utils/custom-escape.d.ts.map +1 -0
- package/dist/src/utils/custom-hard-break.d.ts +2 -0
- package/dist/src/utils/custom-hard-break.d.ts.map +1 -0
- package/dist/src/utils/custom-link.d.ts +16 -0
- package/dist/src/utils/custom-link.d.ts.map +1 -0
- package/dist/src/utils/custom-text-align.d.ts +2 -0
- package/dist/src/utils/custom-text-align.d.ts.map +1 -0
- package/dist/src/utils/paragraphTextStyle/extension.d.ts +17 -0
- package/dist/src/utils/paragraphTextStyle/extension.d.ts.map +1 -0
- package/dist/src/utils/paragraphTextStyle/index.d.ts +4 -0
- package/dist/src/utils/paragraphTextStyle/index.d.ts.map +1 -0
- package/package.json +76 -0
|
@@ -0,0 +1,459 @@
|
|
|
1
|
+
import { Ref, nextTick } from 'vue';
|
|
2
|
+
type Props = {
|
|
3
|
+
text: Ref<string>;
|
|
4
|
+
url: Ref<string>;
|
|
5
|
+
isActive: Ref<boolean>;
|
|
6
|
+
isEdit: Ref<boolean>;
|
|
7
|
+
urlValidator: (url: string) => boolean;
|
|
8
|
+
};
|
|
9
|
+
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
10
|
+
addLink: (text: string, url: string) => any;
|
|
11
|
+
removeLink: () => any;
|
|
12
|
+
cancelAddLink: () => any;
|
|
13
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
14
|
+
onAddLink?: ((text: string, url: string) => any) | undefined;
|
|
15
|
+
onRemoveLink?: (() => any) | undefined;
|
|
16
|
+
onCancelAddLink?: (() => any) | undefined;
|
|
17
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
18
|
+
inputRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<({
|
|
19
|
+
modelValue?: string;
|
|
20
|
+
} & {
|
|
21
|
+
description?: string;
|
|
22
|
+
} & {
|
|
23
|
+
label: string;
|
|
24
|
+
ariaLabel?: never;
|
|
25
|
+
} & {
|
|
26
|
+
id?: string;
|
|
27
|
+
} & {
|
|
28
|
+
error?: boolean | undefined;
|
|
29
|
+
subText?: string | undefined;
|
|
30
|
+
validating?: boolean | undefined;
|
|
31
|
+
preserveSubTextSpace?: boolean | undefined;
|
|
32
|
+
} & {
|
|
33
|
+
placeholder?: string;
|
|
34
|
+
disabled?: boolean;
|
|
35
|
+
autocomplete?: string;
|
|
36
|
+
} & {
|
|
37
|
+
suggestions?: string[];
|
|
38
|
+
suggestionsHeadline?: string;
|
|
39
|
+
}) | ({
|
|
40
|
+
modelValue?: string;
|
|
41
|
+
} & {
|
|
42
|
+
description?: string;
|
|
43
|
+
} & {
|
|
44
|
+
label?: never;
|
|
45
|
+
ariaLabel: string;
|
|
46
|
+
} & {
|
|
47
|
+
id?: string;
|
|
48
|
+
} & {
|
|
49
|
+
error?: boolean | undefined;
|
|
50
|
+
subText?: string | undefined;
|
|
51
|
+
validating?: boolean | undefined;
|
|
52
|
+
preserveSubTextSpace?: boolean | undefined;
|
|
53
|
+
} & {
|
|
54
|
+
placeholder?: string;
|
|
55
|
+
disabled?: boolean;
|
|
56
|
+
autocomplete?: string;
|
|
57
|
+
} & {
|
|
58
|
+
suggestions?: string[];
|
|
59
|
+
suggestionsHeadline?: string;
|
|
60
|
+
})> & Readonly<{
|
|
61
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
62
|
+
}>, {
|
|
63
|
+
focus: (options?: FocusOptions) => void;
|
|
64
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
65
|
+
"update:modelValue": (value: string) => any;
|
|
66
|
+
}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
67
|
+
baseInput: ({
|
|
68
|
+
$: import('vue').ComponentInternalInstance;
|
|
69
|
+
$data: {};
|
|
70
|
+
$props: {
|
|
71
|
+
readonly modelValue?: string | undefined;
|
|
72
|
+
readonly id?: string | undefined;
|
|
73
|
+
readonly type?: "text" | "email" | "password" | "number" | "tel" | "url" | "search" | undefined;
|
|
74
|
+
readonly min?: number | string | undefined;
|
|
75
|
+
readonly max?: number | string | undefined;
|
|
76
|
+
readonly ariaExpanded?: boolean | undefined;
|
|
77
|
+
readonly step?: number | undefined;
|
|
78
|
+
readonly placeholder?: string | undefined;
|
|
79
|
+
readonly disabled?: boolean | undefined;
|
|
80
|
+
readonly leadingIcon?: import('@knime/kds-components').KdsIconName | undefined;
|
|
81
|
+
readonly trailingIcon?: import('@knime/kds-components').KdsIconName | undefined;
|
|
82
|
+
readonly error?: boolean | undefined;
|
|
83
|
+
readonly autocomplete?: string | undefined;
|
|
84
|
+
readonly ariaLabel?: string | undefined;
|
|
85
|
+
readonly ariaLabelledby?: string | undefined;
|
|
86
|
+
readonly ariaDescribedby?: string | undefined;
|
|
87
|
+
readonly ariaInvalid?: boolean | undefined;
|
|
88
|
+
readonly role?: string | undefined;
|
|
89
|
+
readonly ariaValuenow?: number | undefined;
|
|
90
|
+
readonly ariaValuemin?: number | undefined;
|
|
91
|
+
readonly ariaValuemax?: number | undefined;
|
|
92
|
+
readonly ariaValuetext?: string | undefined;
|
|
93
|
+
readonly ariaActivedescendant?: string | undefined;
|
|
94
|
+
readonly ariaHaspopup?: "listbox" | "menu" | "dialog" | "grid" | "tree" | "true" | undefined;
|
|
95
|
+
readonly ariaControls?: string | undefined;
|
|
96
|
+
readonly ariaAutocomplete?: "none" | "inline" | "list" | "both" | undefined;
|
|
97
|
+
readonly unit?: string | undefined;
|
|
98
|
+
readonly inputmode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined;
|
|
99
|
+
readonly clearable?: boolean | undefined;
|
|
100
|
+
readonly pattern?: string | undefined;
|
|
101
|
+
readonly segments?: import('packages/components/dist/src/forms/inputs/useInputSegments.helpers').KdsInputSegmentsConfig | undefined;
|
|
102
|
+
readonly onInput?: ((event: Event) => any) | undefined;
|
|
103
|
+
readonly onClick?: ((event: MouseEvent) => any) | undefined;
|
|
104
|
+
readonly onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
105
|
+
readonly onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
106
|
+
readonly onKeydown?: ((event: KeyboardEvent) => any) | undefined;
|
|
107
|
+
readonly onPaste?: ((event: ClipboardEvent) => any) | undefined;
|
|
108
|
+
readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
109
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
110
|
+
$attrs: import('vue').Attrs;
|
|
111
|
+
$refs: {
|
|
112
|
+
[x: string]: unknown;
|
|
113
|
+
} & {
|
|
114
|
+
input: HTMLInputElement;
|
|
115
|
+
};
|
|
116
|
+
$slots: Readonly<{
|
|
117
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
118
|
+
}>;
|
|
119
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
120
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
121
|
+
$host: Element | null;
|
|
122
|
+
$emit: ((event: "input", event: Event) => void) & ((event: "click", event: MouseEvent) => void) & ((event: "blur", event: FocusEvent) => void) & ((event: "focus", event: FocusEvent) => void) & ((event: "keydown", event: KeyboardEvent) => void) & ((event: "paste", event: ClipboardEvent) => void) & ((event: "update:modelValue", value: string) => void);
|
|
123
|
+
$el: HTMLDivElement;
|
|
124
|
+
$options: import('vue').ComponentOptionsBase<Readonly<{
|
|
125
|
+
modelValue?: string;
|
|
126
|
+
} & {
|
|
127
|
+
id?: string;
|
|
128
|
+
type?: "text" | "email" | "password" | "number" | "tel" | "url" | "search";
|
|
129
|
+
min?: number | string;
|
|
130
|
+
max?: number | string;
|
|
131
|
+
ariaExpanded?: boolean;
|
|
132
|
+
step?: number;
|
|
133
|
+
placeholder?: string;
|
|
134
|
+
disabled?: boolean;
|
|
135
|
+
leadingIcon?: import('@knime/kds-components').KdsIconName;
|
|
136
|
+
trailingIcon?: import('@knime/kds-components').KdsIconName;
|
|
137
|
+
error?: boolean;
|
|
138
|
+
autocomplete?: string;
|
|
139
|
+
ariaLabel?: string;
|
|
140
|
+
ariaLabelledby?: string;
|
|
141
|
+
ariaDescribedby?: string;
|
|
142
|
+
ariaInvalid?: boolean;
|
|
143
|
+
role?: string;
|
|
144
|
+
ariaValuenow?: number;
|
|
145
|
+
ariaValuemin?: number;
|
|
146
|
+
ariaValuemax?: number;
|
|
147
|
+
ariaValuetext?: string;
|
|
148
|
+
ariaActivedescendant?: string;
|
|
149
|
+
ariaHaspopup?: "listbox" | "menu" | "dialog" | "grid" | "tree" | "true";
|
|
150
|
+
ariaControls?: string;
|
|
151
|
+
ariaAutocomplete?: "none" | "inline" | "list" | "both";
|
|
152
|
+
unit?: string;
|
|
153
|
+
inputmode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search";
|
|
154
|
+
clearable?: boolean;
|
|
155
|
+
pattern?: string;
|
|
156
|
+
segments?: import('packages/components/dist/src/forms/inputs/useInputSegments.helpers').KdsInputSegmentsConfig;
|
|
157
|
+
}> & Readonly<{
|
|
158
|
+
onInput?: ((event: Event) => any) | undefined;
|
|
159
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
160
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
161
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
162
|
+
onKeydown?: ((event: KeyboardEvent) => any) | undefined;
|
|
163
|
+
onPaste?: ((event: ClipboardEvent) => any) | undefined;
|
|
164
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
165
|
+
}>, {
|
|
166
|
+
focus: (options?: FocusOptions) => void;
|
|
167
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
168
|
+
input: (event: Event) => any;
|
|
169
|
+
click: (event: MouseEvent) => any;
|
|
170
|
+
blur: (event: FocusEvent) => any;
|
|
171
|
+
focus: (event: FocusEvent) => any;
|
|
172
|
+
keydown: (event: KeyboardEvent) => any;
|
|
173
|
+
paste: (event: ClipboardEvent) => any;
|
|
174
|
+
"update:modelValue": (value: string) => any;
|
|
175
|
+
}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
176
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
177
|
+
created?: (() => void) | (() => void)[];
|
|
178
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
179
|
+
mounted?: (() => void) | (() => void)[];
|
|
180
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
181
|
+
updated?: (() => void) | (() => void)[];
|
|
182
|
+
activated?: (() => void) | (() => void)[];
|
|
183
|
+
deactivated?: (() => void) | (() => void)[];
|
|
184
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
185
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
186
|
+
destroyed
|
|
187
|
+
/** @type { [typeof __VLS_components.KdsTextInput, ] } */ ? /** @type { [typeof __VLS_components.KdsTextInput, ] } */: (() => void) | (() => void)[];
|
|
188
|
+
unmounted?: (() => void) | (() => void)[];
|
|
189
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
190
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
191
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
192
|
+
};
|
|
193
|
+
$forceUpdate: () => void;
|
|
194
|
+
$nextTick: typeof import('vue').nextTick;
|
|
195
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
196
|
+
} & Readonly<{}> & Omit<Readonly<{
|
|
197
|
+
modelValue?: string;
|
|
198
|
+
} & {
|
|
199
|
+
id?: string;
|
|
200
|
+
type?: "text" | "email" | "password" | "number" | "tel" | "url" | "search";
|
|
201
|
+
min?: number | string;
|
|
202
|
+
max?: number | string;
|
|
203
|
+
ariaExpanded?: boolean;
|
|
204
|
+
step?: number;
|
|
205
|
+
placeholder?: string;
|
|
206
|
+
disabled?: boolean;
|
|
207
|
+
leadingIcon?: import('@knime/kds-components').KdsIconName;
|
|
208
|
+
trailingIcon?: import('@knime/kds-components').KdsIconName;
|
|
209
|
+
error?: boolean;
|
|
210
|
+
autocomplete?: string;
|
|
211
|
+
ariaLabel?: string;
|
|
212
|
+
ariaLabelledby?: string;
|
|
213
|
+
ariaDescribedby?: string;
|
|
214
|
+
ariaInvalid?: boolean;
|
|
215
|
+
role?: string;
|
|
216
|
+
ariaValuenow?: number;
|
|
217
|
+
ariaValuemin?: number;
|
|
218
|
+
ariaValuemax?: number;
|
|
219
|
+
ariaValuetext?: string;
|
|
220
|
+
ariaActivedescendant?: string;
|
|
221
|
+
ariaHaspopup?: "listbox" | "menu" | "dialog" | "grid" | "tree" | "true";
|
|
222
|
+
ariaControls?: string;
|
|
223
|
+
ariaAutocomplete?: "none" | "inline" | "list" | "both";
|
|
224
|
+
unit?: string;
|
|
225
|
+
inputmode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search";
|
|
226
|
+
clearable?: boolean;
|
|
227
|
+
pattern?: string;
|
|
228
|
+
segments?: import('packages/components/dist/src/forms/inputs/useInputSegments.helpers').KdsInputSegmentsConfig;
|
|
229
|
+
}> & Readonly<{
|
|
230
|
+
onInput?: ((event: Event) => any) | undefined;
|
|
231
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
232
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
233
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
234
|
+
onKeydown?: ((event: KeyboardEvent) => any) | undefined;
|
|
235
|
+
onPaste?: ((event: ClipboardEvent) => any) | undefined;
|
|
236
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
237
|
+
}>, "focus"> & {
|
|
238
|
+
focus: (options?: FocusOptions) => void;
|
|
239
|
+
} & {} & import('vue').ComponentCustomProperties & {} & {
|
|
240
|
+
$slots: {
|
|
241
|
+
leading?(_: {}): any;
|
|
242
|
+
trailing?(_: {}): any;
|
|
243
|
+
};
|
|
244
|
+
}) | null;
|
|
245
|
+
popoverRef: ({
|
|
246
|
+
$: import('vue').ComponentInternalInstance;
|
|
247
|
+
$data: {};
|
|
248
|
+
$props: ({
|
|
249
|
+
readonly modelValue?: boolean | undefined;
|
|
250
|
+
readonly role?: import('@knime/kds-components').KdsPopoverRole | undefined;
|
|
251
|
+
readonly popoverType?: import('@knime/kds-components').KdsPopoverType | undefined;
|
|
252
|
+
readonly fullWidth?: boolean | undefined;
|
|
253
|
+
readonly maxInlineSize?: string | undefined;
|
|
254
|
+
readonly content?: string | undefined;
|
|
255
|
+
readonly placement?: Exclude<import('@knime/kds-components').KdsPopoverPlacement, "custom"> | undefined;
|
|
256
|
+
readonly customPlacementPosition?: never | undefined;
|
|
257
|
+
readonly "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
258
|
+
} | {
|
|
259
|
+
readonly modelValue?: boolean | undefined;
|
|
260
|
+
readonly role?: import('@knime/kds-components').KdsPopoverRole | undefined;
|
|
261
|
+
readonly popoverType?: import('@knime/kds-components').KdsPopoverType | undefined;
|
|
262
|
+
readonly fullWidth?: boolean | undefined;
|
|
263
|
+
readonly maxInlineSize?: string | undefined;
|
|
264
|
+
readonly content?: string | undefined;
|
|
265
|
+
readonly placement: "custom";
|
|
266
|
+
readonly customPlacementPosition: {
|
|
267
|
+
x: number;
|
|
268
|
+
y: number;
|
|
269
|
+
};
|
|
270
|
+
readonly "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
271
|
+
}) & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
272
|
+
$attrs: import('vue').Attrs;
|
|
273
|
+
$refs: {
|
|
274
|
+
[x: string]: unknown;
|
|
275
|
+
} & {
|
|
276
|
+
popoverEl: HTMLDivElement;
|
|
277
|
+
};
|
|
278
|
+
$slots: Readonly<{
|
|
279
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
280
|
+
}>;
|
|
281
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
282
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
283
|
+
$host: Element | null;
|
|
284
|
+
$emit: (event: "update:modelValue", value: boolean) => void;
|
|
285
|
+
$el: HTMLDivElement;
|
|
286
|
+
$options: import('vue').ComponentOptionsBase<Readonly<({
|
|
287
|
+
modelValue?: boolean;
|
|
288
|
+
} & {
|
|
289
|
+
role?: import('@knime/kds-components').KdsPopoverRole;
|
|
290
|
+
popoverType?: import('@knime/kds-components').KdsPopoverType;
|
|
291
|
+
fullWidth?: boolean;
|
|
292
|
+
maxInlineSize?: string;
|
|
293
|
+
content?: string;
|
|
294
|
+
} & {
|
|
295
|
+
placement?: Exclude<import('@knime/kds-components').KdsPopoverPlacement, "custom">;
|
|
296
|
+
customPlacementPosition?: never;
|
|
297
|
+
}) | ({
|
|
298
|
+
modelValue?: boolean;
|
|
299
|
+
} & {
|
|
300
|
+
role?: import('@knime/kds-components').KdsPopoverRole;
|
|
301
|
+
popoverType?: import('@knime/kds-components').KdsPopoverType;
|
|
302
|
+
fullWidth?: boolean;
|
|
303
|
+
maxInlineSize?: string;
|
|
304
|
+
content?: string;
|
|
305
|
+
} & {
|
|
306
|
+
placement: "custom";
|
|
307
|
+
customPlacementPosition: {
|
|
308
|
+
x: number;
|
|
309
|
+
y: number;
|
|
310
|
+
};
|
|
311
|
+
})> & Readonly<{
|
|
312
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
313
|
+
}>, {
|
|
314
|
+
anchorStyle: Record<string, string>;
|
|
315
|
+
popoverId: string;
|
|
316
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
317
|
+
"update:modelValue": (value: boolean) => any;
|
|
318
|
+
}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
319
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
320
|
+
created?: (() => void) | (() => void)[];
|
|
321
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
322
|
+
mounted?: (() => void) | (() => void)[];
|
|
323
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
324
|
+
updated?: (() => void) | (() => void)[];
|
|
325
|
+
activated?: (() => void) | (() => void)[];
|
|
326
|
+
deactivated?: (() => void) | (() => void)[];
|
|
327
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
328
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
329
|
+
destroyed?: (() => void) | (() => void)[];
|
|
330
|
+
unmounted?: (() => void) | (() => void)[];
|
|
331
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
332
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
333
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
334
|
+
};
|
|
335
|
+
$forceUpdate: () => void;
|
|
336
|
+
$nextTick: typeof import('vue').nextTick;
|
|
337
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
338
|
+
} & Readonly<{}> & Omit<{} & (Readonly<({
|
|
339
|
+
modelValue?: boolean;
|
|
340
|
+
} & {
|
|
341
|
+
role?: import('@knime/kds-components').KdsPopoverRole;
|
|
342
|
+
popoverType?: import('@knime/kds-components').KdsPopoverType;
|
|
343
|
+
fullWidth?: boolean;
|
|
344
|
+
maxInlineSize?: string;
|
|
345
|
+
content?: string;
|
|
346
|
+
} & {
|
|
347
|
+
placement?: Exclude<import('@knime/kds-components').KdsPopoverPlacement, "custom">;
|
|
348
|
+
customPlacementPosition?: never;
|
|
349
|
+
}) | ({
|
|
350
|
+
modelValue?: boolean;
|
|
351
|
+
} & {
|
|
352
|
+
role?: import('@knime/kds-components').KdsPopoverRole;
|
|
353
|
+
popoverType?: import('@knime/kds-components').KdsPopoverType;
|
|
354
|
+
fullWidth?: boolean;
|
|
355
|
+
maxInlineSize?: string;
|
|
356
|
+
content?: string;
|
|
357
|
+
} & {
|
|
358
|
+
placement: "custom";
|
|
359
|
+
customPlacementPosition: {
|
|
360
|
+
x: number;
|
|
361
|
+
y: number;
|
|
362
|
+
};
|
|
363
|
+
})> & Readonly<{
|
|
364
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
365
|
+
}>), "anchorStyle" | "popoverId"> & {
|
|
366
|
+
anchorStyle: Record<string, string>;
|
|
367
|
+
popoverId: string;
|
|
368
|
+
} & {} & import('vue').ComponentCustomProperties & {} & {
|
|
369
|
+
$slots: {
|
|
370
|
+
default?(_: {}): any;
|
|
371
|
+
};
|
|
372
|
+
}) | null;
|
|
373
|
+
listContainerRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('@knime/kds-components').KdsListContainerProps> & Readonly<{
|
|
374
|
+
onItemClick?: ((id?: string | undefined) => any) | undefined;
|
|
375
|
+
}>, {
|
|
376
|
+
handleKeydown: (event: KeyboardEvent) => void;
|
|
377
|
+
handleFocus: () => void;
|
|
378
|
+
handleBlur: () => void;
|
|
379
|
+
activeDescendant: Readonly<import('vue').Ref<string | undefined>>;
|
|
380
|
+
focus: () => void;
|
|
381
|
+
scrollSelectedIntoView: () => void;
|
|
382
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
383
|
+
itemClick: (id?: string | undefined) => any;
|
|
384
|
+
}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
385
|
+
containerEl: HTMLDivElement;
|
|
386
|
+
}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
387
|
+
P: {};
|
|
388
|
+
B: {};
|
|
389
|
+
D: {};
|
|
390
|
+
C: {};
|
|
391
|
+
M: {};
|
|
392
|
+
Defaults: {};
|
|
393
|
+
}, Readonly<import('@knime/kds-components').KdsListContainerProps> & Readonly<{
|
|
394
|
+
onItemClick?: ((id?: string | undefined) => any) | undefined;
|
|
395
|
+
}>, {
|
|
396
|
+
handleKeydown: (event: KeyboardEvent) => void;
|
|
397
|
+
handleFocus: () => void;
|
|
398
|
+
handleBlur: () => void;
|
|
399
|
+
activeDescendant: Readonly<import('vue').Ref<string | undefined>>;
|
|
400
|
+
focus: () => void;
|
|
401
|
+
scrollSelectedIntoView: () => void;
|
|
402
|
+
}, {}, {}, {}, {}> | null;
|
|
403
|
+
}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
404
|
+
P: {};
|
|
405
|
+
B: {};
|
|
406
|
+
D: {};
|
|
407
|
+
C: {};
|
|
408
|
+
M: {};
|
|
409
|
+
Defaults: {};
|
|
410
|
+
}, {} & (Readonly<({
|
|
411
|
+
modelValue?: string;
|
|
412
|
+
} & {
|
|
413
|
+
description?: string;
|
|
414
|
+
} & {
|
|
415
|
+
label: string;
|
|
416
|
+
ariaLabel?: never;
|
|
417
|
+
} & {
|
|
418
|
+
id?: string;
|
|
419
|
+
} & {
|
|
420
|
+
error?: boolean | undefined;
|
|
421
|
+
subText?: string | undefined;
|
|
422
|
+
validating?: boolean | undefined;
|
|
423
|
+
preserveSubTextSpace?: boolean | undefined;
|
|
424
|
+
} & {
|
|
425
|
+
placeholder?: string;
|
|
426
|
+
disabled?: boolean;
|
|
427
|
+
autocomplete?: string;
|
|
428
|
+
} & {
|
|
429
|
+
suggestions?: string[];
|
|
430
|
+
suggestionsHeadline?: string;
|
|
431
|
+
}) | ({
|
|
432
|
+
modelValue?: string;
|
|
433
|
+
} & {
|
|
434
|
+
description?: string;
|
|
435
|
+
} & {
|
|
436
|
+
label?: never;
|
|
437
|
+
ariaLabel: string;
|
|
438
|
+
} & {
|
|
439
|
+
id?: string;
|
|
440
|
+
} & {
|
|
441
|
+
error?: boolean | undefined;
|
|
442
|
+
subText?: string | undefined;
|
|
443
|
+
validating?: boolean | undefined;
|
|
444
|
+
preserveSubTextSpace?: boolean | undefined;
|
|
445
|
+
} & {
|
|
446
|
+
placeholder?: string;
|
|
447
|
+
disabled?: boolean;
|
|
448
|
+
autocomplete?: string;
|
|
449
|
+
} & {
|
|
450
|
+
suggestions?: string[];
|
|
451
|
+
suggestionsHeadline?: string;
|
|
452
|
+
})> & Readonly<{
|
|
453
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
454
|
+
}>), {
|
|
455
|
+
focus: (options?: FocusOptions) => void;
|
|
456
|
+
}, {}, {}, {}, {}> | null;
|
|
457
|
+
}, any>;
|
|
458
|
+
export default _default;
|
|
459
|
+
//# sourceMappingURL=KdsCreateLinkModal.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KdsCreateLinkModal.vue.d.ts","sourceRoot":"","sources":["../../../src/toolbar/KdsCreateLinkModal.vue"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { Editor } from '@tiptap/vue-3';
|
|
2
|
+
import { KdsBaseExtensionsConfig } from '../types';
|
|
3
|
+
import { KdsLinkToolOptions } from '../utils/custom-link';
|
|
4
|
+
import { EditorTools } from './types';
|
|
5
|
+
type Props = {
|
|
6
|
+
editor: Editor;
|
|
7
|
+
baseExtensions: KdsBaseExtensionsConfig | {
|
|
8
|
+
all: true;
|
|
9
|
+
};
|
|
10
|
+
linkToolOptions: KdsLinkToolOptions;
|
|
11
|
+
};
|
|
12
|
+
declare function __VLS_template(): {
|
|
13
|
+
attrs: Partial<{}>;
|
|
14
|
+
slots: {
|
|
15
|
+
default?(_: {
|
|
16
|
+
tools: EditorTools;
|
|
17
|
+
}): any;
|
|
18
|
+
linkModal?(_: {
|
|
19
|
+
linkTool: {
|
|
20
|
+
onLinkToolClick: () => void;
|
|
21
|
+
props: {
|
|
22
|
+
url: import('vue').Ref<string, string>;
|
|
23
|
+
text: import('vue').Ref<string, string>;
|
|
24
|
+
isActive: import('vue').Ref<boolean, boolean>;
|
|
25
|
+
isEdit: import('vue').ComputedRef<boolean>;
|
|
26
|
+
urlValidator: (url: string) => boolean;
|
|
27
|
+
};
|
|
28
|
+
events: {
|
|
29
|
+
addLink: (text: string, urlText: string) => void;
|
|
30
|
+
removeLink: () => void;
|
|
31
|
+
cancelAddLink: () => void;
|
|
32
|
+
};
|
|
33
|
+
} | null;
|
|
34
|
+
}): any;
|
|
35
|
+
};
|
|
36
|
+
refs: {};
|
|
37
|
+
rootEl: any;
|
|
38
|
+
};
|
|
39
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
40
|
+
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
41
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
42
|
+
export default _default;
|
|
43
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
44
|
+
new (): {
|
|
45
|
+
$slots: S;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
//# sourceMappingURL=RichTextEditorBaseToolbar.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RichTextEditorBaseToolbar.vue.d.ts","sourceRoot":"","sources":["../../../src/toolbar/RichTextEditorBaseToolbar.vue"],"names":[],"mappings":"AAgNA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAE5C,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,UAAU,CAAC;AACxD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAG/D,OAAO,KAAK,EAAkB,WAAW,EAAE,MAAM,SAAS,CAAC;AAG3D,KAAK,KAAK,GAAG;IACX,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,EAAE,uBAAuB,GAAG;QAAE,GAAG,EAAE,IAAI,CAAA;KAAE,CAAC;IACxD,eAAe,EAAE,kBAAkB,CAAC;CACrC,CAAC;AA8LF,iBAAS,cAAc;WAyBT,OAAO,IAA6B;;;;YAXrB,GAAG;;;;;;;;;;;;;;;;;YACD,GAAG;;;;EAejC;AAUD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,sRAMnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Editor } from '@tiptap/vue-3';
|
|
2
|
+
import { EditorTools } from './types';
|
|
3
|
+
type Props = {
|
|
4
|
+
editor: Editor;
|
|
5
|
+
tools: EditorTools;
|
|
6
|
+
hotkeyFormatter: (hotkey: Array<string>) => string;
|
|
7
|
+
};
|
|
8
|
+
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
9
|
+
export default _default;
|
|
10
|
+
//# sourceMappingURL=RichTextEditorToolbar.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RichTextEditorToolbar.vue.d.ts","sourceRoot":"","sources":["../../../src/toolbar/RichTextEditorToolbar.vue"],"names":[],"mappings":"AAmHA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAQ5C,OAAO,KAAK,EAGV,WAAW,EACZ,MAAM,SAAS,CAAC;AAEjB,KAAK,KAAK,GAAG;IACX,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,WAAW,CAAC;IACnB,eAAe,EAAE,CAAC,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK,MAAM,CAAC;CACpD,CAAC;;AAoKF,wBAOG"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { KdsIconName } from '@knime/kds-components';
|
|
2
|
+
type EditorToolItemBase = {
|
|
3
|
+
id: string;
|
|
4
|
+
text: string;
|
|
5
|
+
icon: KdsIconName;
|
|
6
|
+
hotkey?: Array<string>;
|
|
7
|
+
active?: () => boolean;
|
|
8
|
+
disabled?: () => boolean;
|
|
9
|
+
};
|
|
10
|
+
export type EditorToolPrimaryItem = EditorToolItemBase & {
|
|
11
|
+
type: "primary";
|
|
12
|
+
handler: (itemId: string) => void;
|
|
13
|
+
};
|
|
14
|
+
export type EditorToolSecondaryItemChild = Omit<EditorToolItemBase, "icon"> & {
|
|
15
|
+
handler: (itemId: string) => void;
|
|
16
|
+
};
|
|
17
|
+
export type EditorToolSecondaryItem = EditorToolItemBase & {
|
|
18
|
+
type: "secondary";
|
|
19
|
+
} & ({
|
|
20
|
+
handler: (itemId: string) => void;
|
|
21
|
+
children?: never;
|
|
22
|
+
} | {
|
|
23
|
+
handler?: never;
|
|
24
|
+
children: EditorToolSecondaryItemChild[];
|
|
25
|
+
});
|
|
26
|
+
export type EditorToolItem = EditorToolPrimaryItem | EditorToolSecondaryItem;
|
|
27
|
+
export type EditorTools = Array<EditorToolItem>;
|
|
28
|
+
export {};
|
|
29
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/toolbar/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEzD,KAAK,kBAAkB,GAAG;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,WAAW,CAAC;IAClB,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,OAAO,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,OAAO,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,kBAAkB,GAAG;IACvD,IAAI,EAAE,SAAS,CAAC;IAChB,OAAO,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;CACnC,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG,IAAI,CAAC,kBAAkB,EAAE,MAAM,CAAC,GAAG;IAC5E,OAAO,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;CACnC,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG,kBAAkB,GAAG;IACzD,IAAI,EAAE,WAAW,CAAC;CACnB,GAAG,CACE;IACE,OAAO,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,QAAQ,CAAC,EAAE,KAAK,CAAC;CAClB,GACD;IACE,OAAO,CAAC,EAAE,KAAK,CAAC;IAChB,QAAQ,EAAE,4BAA4B,EAAE,CAAC;CAC1C,CACJ,CAAC;AAEJ,MAAM,MAAM,cAAc,GAAG,qBAAqB,GAAG,uBAAuB,CAAC;AAE7E,MAAM,MAAM,WAAW,GAAG,KAAK,CAAC,cAAc,CAAC,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Editor } from '@tiptap/vue-3';
|
|
2
|
+
import { KdsLinkToolOptions } from '../utils/custom-link';
|
|
3
|
+
export declare const useLinkTool: ({ editor, isRegistered, linkToolOptions, }: {
|
|
4
|
+
editor: Editor;
|
|
5
|
+
isRegistered: boolean;
|
|
6
|
+
linkToolOptions: KdsLinkToolOptions;
|
|
7
|
+
}) => {
|
|
8
|
+
onLinkToolClick: () => void;
|
|
9
|
+
props: {
|
|
10
|
+
url: import('vue').Ref<string, string>;
|
|
11
|
+
text: import('vue').Ref<string, string>;
|
|
12
|
+
isActive: import('vue').Ref<boolean, boolean>;
|
|
13
|
+
isEdit: import('vue').ComputedRef<boolean>;
|
|
14
|
+
urlValidator: (url: string) => boolean;
|
|
15
|
+
};
|
|
16
|
+
events: {
|
|
17
|
+
addLink: (text: string, urlText: string) => void;
|
|
18
|
+
removeLink: () => void;
|
|
19
|
+
cancelAddLink: () => void;
|
|
20
|
+
};
|
|
21
|
+
} | null;
|
|
22
|
+
//# sourceMappingURL=useLinkTool.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useLinkTool.d.ts","sourceRoot":"","sources":["../../../src/toolbar/useLinkTool.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAI5C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE/D,eAAO,MAAM,WAAW,GAAI,4CAIzB;IACD,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,OAAO,CAAC;IACtB,eAAe,EAAE,kBAAkB,CAAC;CACrC;;;;;;;;;;wBA+F0B,MAAM,WAAW,MAAM;;;;QA2DjD,CAAC"}
|