@malva-ui/editor 0.1.12 → 0.1.14
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/LICENSE +21 -0
- package/README.md +80 -0
- package/fesm2022/malva-ui-editor-ai.mjs +17 -0
- package/fesm2022/malva-ui-editor-ai.mjs.map +1 -0
- package/fesm2022/malva-ui-editor.mjs +10227 -0
- package/fesm2022/malva-ui-editor.mjs.map +1 -0
- package/package.json +47 -26
- package/types/malva-ui-editor-ai.d.ts +1 -0
- package/types/malva-ui-editor.d.ts +2995 -0
- package/ai/index.d.ts +0 -12
- package/ai/malva-ui-editor-ai.d.ts +0 -5
- package/esm2022/ai/index.js +0 -12
- package/esm2022/ai/index.js.map +0 -1
- package/esm2022/ai/malva-ui-editor-ai.js +0 -5
- package/esm2022/ai/malva-ui-editor-ai.js.map +0 -1
- package/esm2022/index.js +0 -37
- package/esm2022/index.js.map +0 -1
- package/esm2022/lib/ai/editor-ai-actions.js +0 -69
- package/esm2022/lib/ai/editor-ai-actions.js.map +0 -1
- package/esm2022/lib/ai/editor-ai-context.js +0 -612
- package/esm2022/lib/ai/editor-ai-context.js.map +0 -1
- package/esm2022/lib/ai/editor-ai-menu.js +0 -288
- package/esm2022/lib/ai/editor-ai-menu.js.map +0 -1
- package/esm2022/lib/ai/editor-ai-review-bar.js +0 -223
- package/esm2022/lib/ai/editor-ai-review-bar.js.map +0 -1
- package/esm2022/lib/ai/editor-ai-stream.js +0 -677
- package/esm2022/lib/ai/editor-ai-stream.js.map +0 -1
- package/esm2022/lib/ai/editor-ai-suggestions.js +0 -751
- package/esm2022/lib/ai/editor-ai-suggestions.js.map +0 -1
- package/esm2022/lib/ai/editor-ai.tokens.js +0 -10
- package/esm2022/lib/ai/editor-ai.tokens.js.map +0 -1
- package/esm2022/lib/ai/editor-ai.types.js +0 -1
- package/esm2022/lib/ai/editor-ai.types.js.map +0 -1
- package/esm2022/lib/editor/editor.js +0 -985
- package/esm2022/lib/editor/editor.js.map +0 -1
- package/esm2022/lib/editor-extension-preflight.js +0 -83
- package/esm2022/lib/editor-extension-preflight.js.map +0 -1
- package/esm2022/lib/editor-serialization.js +0 -152
- package/esm2022/lib/editor-serialization.js.map +0 -1
- package/esm2022/lib/editor-toolbar-context.js +0 -259
- package/esm2022/lib/editor-toolbar-context.js.map +0 -1
- package/esm2022/lib/editor.tokens.js +0 -10
- package/esm2022/lib/editor.tokens.js.map +0 -1
- package/esm2022/lib/editor.types.js +0 -48
- package/esm2022/lib/editor.types.js.map +0 -1
- package/esm2022/lib/extensions/editor-block-handle.js +0 -760
- package/esm2022/lib/extensions/editor-block-handle.js.map +0 -1
- package/esm2022/lib/extensions/editor-extensions.js +0 -321
- package/esm2022/lib/extensions/editor-extensions.js.map +0 -1
- package/esm2022/lib/extensions/editor-markdown-compatibility.js +0 -162
- package/esm2022/lib/extensions/editor-markdown-compatibility.js.map +0 -1
- package/esm2022/lib/extensions/editor-upload-placeholder.js +0 -156
- package/esm2022/lib/extensions/editor-upload-placeholder.js.map +0 -1
- package/esm2022/lib/status/editor-status.js +0 -64
- package/esm2022/lib/status/editor-status.js.map +0 -1
- package/esm2022/lib/toolbar/editor-alignment.js +0 -203
- package/esm2022/lib/toolbar/editor-alignment.js.map +0 -1
- package/esm2022/lib/toolbar/editor-block-insert.js +0 -101
- package/esm2022/lib/toolbar/editor-block-insert.js.map +0 -1
- package/esm2022/lib/toolbar/editor-color-control.js +0 -71
- package/esm2022/lib/toolbar/editor-color-control.js.map +0 -1
- package/esm2022/lib/toolbar/editor-command-button.js +0 -115
- package/esm2022/lib/toolbar/editor-command-button.js.map +0 -1
- package/esm2022/lib/toolbar/editor-heading.js +0 -266
- package/esm2022/lib/toolbar/editor-heading.js.map +0 -1
- package/esm2022/lib/toolbar/editor-highlight.js +0 -84
- package/esm2022/lib/toolbar/editor-highlight.js.map +0 -1
- package/esm2022/lib/toolbar/editor-image-upload-dialog.js +0 -289
- package/esm2022/lib/toolbar/editor-image-upload-dialog.js.map +0 -1
- package/esm2022/lib/toolbar/editor-image-upload.js +0 -315
- package/esm2022/lib/toolbar/editor-image-upload.js.map +0 -1
- package/esm2022/lib/toolbar/editor-inline-marks.js +0 -124
- package/esm2022/lib/toolbar/editor-inline-marks.js.map +0 -1
- package/esm2022/lib/toolbar/editor-link.js +0 -265
- package/esm2022/lib/toolbar/editor-link.js.map +0 -1
- package/esm2022/lib/toolbar/editor-list.js +0 -249
- package/esm2022/lib/toolbar/editor-list.js.map +0 -1
- package/esm2022/lib/toolbar/editor-table.js +0 -292
- package/esm2022/lib/toolbar/editor-table.js.map +0 -1
- package/esm2022/lib/toolbar/editor-text-color.js +0 -82
- package/esm2022/lib/toolbar/editor-text-color.js.map +0 -1
- package/esm2022/lib/toolbar/editor-toolbar-widget.js +0 -41
- package/esm2022/lib/toolbar/editor-toolbar-widget.js.map +0 -1
- package/esm2022/lib/toolbar/editor-toolbar.defs.js +0 -60
- package/esm2022/lib/toolbar/editor-toolbar.defs.js.map +0 -1
- package/esm2022/lib/toolbar/editor-toolbar.js +0 -826
- package/esm2022/lib/toolbar/editor-toolbar.js.map +0 -1
- package/esm2022/lib/toolbar/editor-undo-redo.js +0 -72
- package/esm2022/lib/toolbar/editor-undo-redo.js.map +0 -1
- package/esm2022/lib/toolbar/editor-zoom.js +0 -330
- package/esm2022/lib/toolbar/editor-zoom.js.map +0 -1
- package/esm2022/lib/upload/editor-image-upload-coordinator.js +0 -480
- package/esm2022/lib/upload/editor-image-upload-coordinator.js.map +0 -1
- package/esm2022/malva-ui-editor.js +0 -5
- package/esm2022/malva-ui-editor.js.map +0 -1
- package/index.d.ts +0 -35
- package/lib/ai/editor-ai-actions.d.ts +0 -27
- package/lib/ai/editor-ai-context.d.ts +0 -307
- package/lib/ai/editor-ai-menu.d.ts +0 -142
- package/lib/ai/editor-ai-review-bar.d.ts +0 -116
- package/lib/ai/editor-ai-stream.d.ts +0 -207
- package/lib/ai/editor-ai-suggestions.d.ts +0 -219
- package/lib/ai/editor-ai.tokens.d.ts +0 -10
- package/lib/ai/editor-ai.types.d.ts +0 -176
- package/lib/editor/editor.d.ts +0 -243
- package/lib/editor-extension-preflight.d.ts +0 -23
- package/lib/editor-serialization.d.ts +0 -74
- package/lib/editor-toolbar-context.d.ts +0 -116
- package/lib/editor.tokens.d.ts +0 -6
- package/lib/editor.types.d.ts +0 -194
- package/lib/extensions/editor-block-handle.d.ts +0 -59
- package/lib/extensions/editor-extensions.d.ts +0 -165
- package/lib/extensions/editor-markdown-compatibility.d.ts +0 -11
- package/lib/extensions/editor-upload-placeholder.d.ts +0 -75
- package/lib/status/editor-status.d.ts +0 -24
- package/lib/toolbar/editor-alignment.d.ts +0 -61
- package/lib/toolbar/editor-block-insert.d.ts +0 -26
- package/lib/toolbar/editor-color-control.d.ts +0 -32
- package/lib/toolbar/editor-command-button.d.ts +0 -29
- package/lib/toolbar/editor-heading.d.ts +0 -68
- package/lib/toolbar/editor-highlight.d.ts +0 -21
- package/lib/toolbar/editor-image-upload-dialog.d.ts +0 -96
- package/lib/toolbar/editor-image-upload.d.ts +0 -71
- package/lib/toolbar/editor-inline-marks.d.ts +0 -30
- package/lib/toolbar/editor-link.d.ts +0 -78
- package/lib/toolbar/editor-list.d.ts +0 -67
- package/lib/toolbar/editor-table.d.ts +0 -133
- package/lib/toolbar/editor-text-color.d.ts +0 -21
- package/lib/toolbar/editor-toolbar-widget.d.ts +0 -19
- package/lib/toolbar/editor-toolbar.d.ts +0 -157
- package/lib/toolbar/editor-toolbar.defs.d.ts +0 -35
- package/lib/toolbar/editor-undo-redo.d.ts +0 -26
- package/lib/toolbar/editor-zoom.d.ts +0 -108
- package/lib/upload/editor-image-upload-coordinator.d.ts +0 -55
- package/malva-ui-editor.d.ts +0 -5
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import type { Editor } from '@tiptap/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
/** @internal Reusable selection-preserving command button for editor toolbar modules. */
|
|
4
|
-
export declare class MlvEditorCommandButton {
|
|
5
|
-
/** Accessible action label. */
|
|
6
|
-
readonly label: import("@angular/core").InputSignal<string>;
|
|
7
|
-
/** Evaluates whether the configured extension provides this action. */
|
|
8
|
-
readonly supports: import("@angular/core").InputSignal<(editor: Editor) => boolean>;
|
|
9
|
-
/** Executes the action through a focused editor command chain. */
|
|
10
|
-
readonly command: import("@angular/core").InputSignal<(editor: Editor) => boolean>;
|
|
11
|
-
/** Checks whether the registered command can run at the current selection. */
|
|
12
|
-
readonly canCommand: import("@angular/core").InputSignal<((editor: Editor) => boolean) | undefined>;
|
|
13
|
-
/** Optional current active state for toggle-like commands. */
|
|
14
|
-
readonly pressed: import("@angular/core").InputSignal<boolean | undefined>;
|
|
15
|
-
/** @private Editor-scoped command state. */
|
|
16
|
-
private readonly _context;
|
|
17
|
-
/** @private Per-editor state invalidation signal. */
|
|
18
|
-
private readonly _revision;
|
|
19
|
-
/** @protected Whether the current extension set supports this command. */
|
|
20
|
-
protected readonly supported: import("@angular/core").Signal<boolean>;
|
|
21
|
-
/** @protected Whether the command currently cannot mutate the editor. */
|
|
22
|
-
protected _disabled(): boolean;
|
|
23
|
-
/** @protected Prevents the browser from moving the selection before the command chain restores content focus. */
|
|
24
|
-
protected _preserveSelection(event: PointerEvent): void;
|
|
25
|
-
/** @protected Executes only supported, enabled commands. */
|
|
26
|
-
protected _run(): void;
|
|
27
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MlvEditorCommandButton, never>;
|
|
28
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MlvEditorCommandButton, "mlv-editor-command-button", never, { "label": { "alias": "label"; "required": true; "isSignal": true; }; "supports": { "alias": "supports"; "required": true; "isSignal": true; }; "command": { "alias": "command"; "required": true; "isSignal": true; }; "canCommand": { "alias": "canCommand"; "required": false; "isSignal": true; }; "pressed": { "alias": "pressed"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
29
|
-
}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import type { Editor } from '@tiptap/core';
|
|
2
|
-
import { MlvMenu, MlvMenuTrigger } from '@malva-ui/core/menu';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
/** Heading levels supported by Tiptap's standard heading node. */
|
|
5
|
-
export type MlvEditorHeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;
|
|
6
|
-
/** Paragraph and heading-level dropdown commands. */
|
|
7
|
-
export declare class MlvEditorHeading {
|
|
8
|
-
/** Heading levels displayed in the menu; paragraph is always retained. */
|
|
9
|
-
readonly levels: import("@angular/core").InputSignal<readonly MlvEditorHeadingLevel[]>;
|
|
10
|
-
/** @protected Editor command state. */
|
|
11
|
-
protected readonly _context: import("@malva-ui/editor").MlvEditorToolbarContext;
|
|
12
|
-
/** @private Per-editor state invalidation signal. */
|
|
13
|
-
private readonly _revision;
|
|
14
|
-
/** @private The editor-owned overlay registry. */
|
|
15
|
-
private readonly _overlays;
|
|
16
|
-
/** @private Document used to resolve the public menu panel id. */
|
|
17
|
-
private readonly _document;
|
|
18
|
-
/** @private Cleans an active overlay registration. */
|
|
19
|
-
private readonly _destroyRef;
|
|
20
|
-
/** @private Optional localized editor copy. */
|
|
21
|
-
private readonly _i18n;
|
|
22
|
-
/** @protected Rendered Malva menu. */
|
|
23
|
-
protected readonly _menu: import("@angular/core").Signal<MlvMenu>;
|
|
24
|
-
/** @protected Trigger owning the menu overlay. */
|
|
25
|
-
protected readonly _trigger: import("@angular/core").Signal<MlvMenuTrigger>;
|
|
26
|
-
/** @private Overlay-registration teardown. */
|
|
27
|
-
private _unregister;
|
|
28
|
-
/** @private Guards queued registration after a quick close or destroy. */
|
|
29
|
-
private _menuOpen;
|
|
30
|
-
/** @protected Normalized levels supported by the active heading extension. */
|
|
31
|
-
protected readonly _levels: import("@angular/core").Signal<readonly MlvEditorHeadingLevel[]>;
|
|
32
|
-
/** @protected Localized labels. */
|
|
33
|
-
protected readonly _copy: import("@angular/core").Signal<{
|
|
34
|
-
paragraph: string;
|
|
35
|
-
headingLevel: string;
|
|
36
|
-
}>;
|
|
37
|
-
/** @protected Paragraph command availability at the current selection. */
|
|
38
|
-
protected readonly _canParagraph: (editor: Editor) => boolean;
|
|
39
|
-
constructor();
|
|
40
|
-
/** @protected Label describing the active block type. */
|
|
41
|
-
protected _label(): string;
|
|
42
|
-
/** @protected Localized heading label. */
|
|
43
|
-
protected _headingLabel(level: number): string;
|
|
44
|
-
/** @protected Whether a heading command is registered by the extension set. */
|
|
45
|
-
protected _supported(): boolean;
|
|
46
|
-
/** @protected Whether the paragraph command is registered. */
|
|
47
|
-
protected _hasParagraph(): boolean;
|
|
48
|
-
/** @protected Whether heading commands are registered. */
|
|
49
|
-
protected _hasHeading(): boolean;
|
|
50
|
-
/** @protected Whether the trigger cannot be opened. */
|
|
51
|
-
protected _triggerDisabled(): boolean;
|
|
52
|
-
/** @protected Whether one menu action currently cannot mutate the editor. */
|
|
53
|
-
protected _disabled(command: (editor: Editor) => boolean): boolean;
|
|
54
|
-
/** @protected Paragraph command. */
|
|
55
|
-
protected readonly _paragraph: (editor: Editor) => boolean;
|
|
56
|
-
/** @protected Heading command factory. */
|
|
57
|
-
protected _heading(level: MlvEditorHeadingLevel): (editor: Editor) => boolean;
|
|
58
|
-
/** @protected Heading command availability factory. */
|
|
59
|
-
protected _canHeading(level: MlvEditorHeadingLevel): (editor: Editor) => boolean;
|
|
60
|
-
/** @protected Runs a selection-restoring command. */
|
|
61
|
-
protected _run(command: (editor: Editor) => boolean): void;
|
|
62
|
-
/** @protected Registers the portaled panel with the editor composite. */
|
|
63
|
-
protected _registerOverlay(): void;
|
|
64
|
-
/** @protected Removes menu panel focus ownership after close. */
|
|
65
|
-
protected _unregisterOverlay(): void;
|
|
66
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MlvEditorHeading, never>;
|
|
67
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MlvEditorHeading, "mlv-editor-heading", never, { "levels": { "alias": "levels"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
68
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { Editor } from '@tiptap/core';
|
|
2
|
-
import { MlvEditorColorControl } from './editor-color-control';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
/** Background-highlight toolbar control backed by the reusable swatch picker. */
|
|
5
|
-
export declare class MlvEditorHighlight extends MlvEditorColorControl {
|
|
6
|
-
/** @private Optional localized editor labels. */
|
|
7
|
-
private readonly _i18n;
|
|
8
|
-
/** @protected Localized accessible trigger and dialog label. */
|
|
9
|
-
protected readonly _label: import("@angular/core").Signal<string>;
|
|
10
|
-
/** @protected Exact command-presence capability without command execution. */
|
|
11
|
-
protected readonly _supported: import("@angular/core").Signal<boolean>;
|
|
12
|
-
/** @protected Active highlight colour rendered by the independent swatch. */
|
|
13
|
-
protected readonly _activeColor: import("@angular/core").Signal<string>;
|
|
14
|
-
/** @protected Applies or clears highlight colour without focusing Tiptap. */
|
|
15
|
-
protected _run(editor: Editor, selection: {
|
|
16
|
-
readonly from: number;
|
|
17
|
-
readonly to: number;
|
|
18
|
-
}, color: string): boolean;
|
|
19
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MlvEditorHighlight, never>;
|
|
20
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MlvEditorHighlight, "mlv-editor-highlight", never, {}, {}, never, never, true, never>;
|
|
21
|
-
}
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import { type MlvUploadedFile } from '@malva-ui/core/file-upload';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
/**
|
|
4
|
-
* Malva modal content for selecting and uploading one editor image. Renders
|
|
5
|
-
* the dialog surface itself; the header title comes from the service config
|
|
6
|
-
* (`title`).
|
|
7
|
-
*/
|
|
8
|
-
export declare class MlvEditorImageUploadDialog {
|
|
9
|
-
/** @protected The exact editor-scoped upload coordinator. */
|
|
10
|
-
protected readonly _coordinator: import("../upload/editor-image-upload-coordinator").MlvEditorImageUploadCoordinator;
|
|
11
|
-
/** @private Current editor state guarding mutation. */
|
|
12
|
-
private readonly _context;
|
|
13
|
-
/** @private Service-owned dialog lifecycle. */
|
|
14
|
-
private readonly _dialogRef;
|
|
15
|
-
/** @private Dialog content root registered inside the editor focus composite. */
|
|
16
|
-
private readonly _host;
|
|
17
|
-
/** @private Editor-owned overlay registry for composite focus and teardown. */
|
|
18
|
-
private readonly _overlays;
|
|
19
|
-
/** @private Component lifecycle for preview cleanup. */
|
|
20
|
-
private readonly _destroyRef;
|
|
21
|
-
/** @private Optional localized editor copy. */
|
|
22
|
-
private readonly _i18n;
|
|
23
|
-
/** @private File-upload copy used for its localized remove action. */
|
|
24
|
-
private readonly _fileI18n;
|
|
25
|
-
/** @protected Selected descriptor retained as a single-file list. */
|
|
26
|
-
protected readonly _files: import("@angular/core").WritableSignal<MlvUploadedFile[]>;
|
|
27
|
-
/** @protected Single current selected descriptor. */
|
|
28
|
-
protected readonly _file: import("@angular/core").Signal<MlvUploadedFile>;
|
|
29
|
-
/** @protected Alternative-text draft. */
|
|
30
|
-
protected readonly _alt: import("@angular/core").WritableSignal<string>;
|
|
31
|
-
/** @protected Optional title draft. */
|
|
32
|
-
protected readonly _title: import("@angular/core").WritableSignal<string>;
|
|
33
|
-
/** @protected Whether the image is intentionally decorative. */
|
|
34
|
-
protected readonly _decorative: import("@angular/core").WritableSignal<boolean>;
|
|
35
|
-
/** @protected Whether alt validation has been requested. */
|
|
36
|
-
protected readonly _altInvalid: import("@angular/core").WritableSignal<boolean>;
|
|
37
|
-
/** @protected Stable coordinator ID for the submitted file. */
|
|
38
|
-
protected readonly _activeId: import("@angular/core").WritableSignal<string | null>;
|
|
39
|
-
/** @protected Current matching coordinator item. */
|
|
40
|
-
protected readonly _item: import("@angular/core").Signal<import("@malva-ui/editor").MlvEditorPendingUpload | undefined>;
|
|
41
|
-
/** @protected Polite dialog upload announcement. */
|
|
42
|
-
protected readonly _announcement: import("@angular/core").WritableSignal<string>;
|
|
43
|
-
/** @private Whether closing follows successful completion. */
|
|
44
|
-
private _completed;
|
|
45
|
-
/** @private Releases live dialog ownership for the current upload. */
|
|
46
|
-
private _releaseDialogOwnership;
|
|
47
|
-
/** @private Last preview URL whose lifecycle remains dialog-owned. */
|
|
48
|
-
private _ownedPreviewUrl;
|
|
49
|
-
/** @private Last announced ten-percent bucket. */
|
|
50
|
-
private _progressBucket;
|
|
51
|
-
/** @protected Current accept string bound to Malva FileUpload. */
|
|
52
|
-
protected readonly _accept: import("@angular/core").Signal<string>;
|
|
53
|
-
/** @protected Current maximum bytes bound to Malva FileUpload. */
|
|
54
|
-
protected readonly _maxSize: import("@angular/core").Signal<number>;
|
|
55
|
-
/** @protected Whether all dialog inputs/actions are blocked. */
|
|
56
|
-
protected readonly _disabled: import("@angular/core").Signal<boolean>;
|
|
57
|
-
/** @protected Whether upload can begin exactly once. */
|
|
58
|
-
protected readonly _submitDisabled: import("@angular/core").Signal<boolean>;
|
|
59
|
-
/** @protected Meaningful preview alt, empty only for decorative images. */
|
|
60
|
-
protected readonly _previewAlt: import("@angular/core").Signal<string>;
|
|
61
|
-
/** @protected Reactive localized dialog copy. */
|
|
62
|
-
protected readonly _copy: import("@angular/core").Signal<{
|
|
63
|
-
title: string;
|
|
64
|
-
alt: string;
|
|
65
|
-
imageTitle: string;
|
|
66
|
-
altRequired: string;
|
|
67
|
-
decorative: string;
|
|
68
|
-
failed: string;
|
|
69
|
-
cancel: string;
|
|
70
|
-
retry: string;
|
|
71
|
-
progress: string;
|
|
72
|
-
}>;
|
|
73
|
-
constructor();
|
|
74
|
-
/** @protected Retains only the current Malva selected descriptor. */
|
|
75
|
-
protected _onFilesChange(files: MlvUploadedFile[]): void;
|
|
76
|
-
/** @protected Begins exactly one normalized button upload. */
|
|
77
|
-
protected _submit(): void;
|
|
78
|
-
/** @protected Cancels the current request and clears the dialog draft. */
|
|
79
|
-
protected _cancel(): void;
|
|
80
|
-
/** @protected Retries the retained failed request. */
|
|
81
|
-
protected _retry(): void;
|
|
82
|
-
/** @protected Removes the failed item and clears the draft. */
|
|
83
|
-
protected _remove(): void;
|
|
84
|
-
/** @protected Creates a localized remove action label. */
|
|
85
|
-
protected _removeLabel(): string;
|
|
86
|
-
/** @protected Formats localized coarse progress. */
|
|
87
|
-
protected _progressLabel(progress: number): string;
|
|
88
|
-
/** @private Clears selected state and revokes the remaining preview once. */
|
|
89
|
-
private _reset;
|
|
90
|
-
/** @private Releases live dialog ownership exactly once. */
|
|
91
|
-
private _releaseOwnership;
|
|
92
|
-
/** @private Revokes the still-owned current URL at most once. */
|
|
93
|
-
private _revokeOwnedPreview;
|
|
94
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MlvEditorImageUploadDialog, never>;
|
|
95
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MlvEditorImageUploadDialog, "mlv-editor-image-upload-dialog", never, {}, {}, never, never, true, never>;
|
|
96
|
-
}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { type Signal } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
/** Public toolbar entry point for the editor image-upload dialog. */
|
|
4
|
-
export declare class MlvEditorImageUpload {
|
|
5
|
-
/** @protected Editor-scoped command/form state. */
|
|
6
|
-
protected readonly _context: import("@malva-ui/editor").MlvEditorToolbarContext;
|
|
7
|
-
/** @protected Shared upload coordinator for this editor instance. */
|
|
8
|
-
protected readonly _coordinator: Signal<import("../upload/editor-image-upload-coordinator").MlvEditorImageUploadCoordinator | undefined>;
|
|
9
|
-
/** @private Transaction invalidation for runtime command support. */
|
|
10
|
-
private readonly _revision;
|
|
11
|
-
/** @private Malva dialog service used for the one modal surface. */
|
|
12
|
-
private readonly _dialogs;
|
|
13
|
-
/** @private Exact child injector passed through to the dialog portal. */
|
|
14
|
-
private readonly _injector;
|
|
15
|
-
/** @private Trigger restored by the shared dialog lifecycle. */
|
|
16
|
-
private readonly _trigger;
|
|
17
|
-
/** @private Current dialog, preventing duplicate opens. */
|
|
18
|
-
private _dialogRef;
|
|
19
|
-
/** @private Component teardown closes any owned dialog. */
|
|
20
|
-
private readonly _destroyRef;
|
|
21
|
-
/** @private Optional localized editor copy. */
|
|
22
|
-
private readonly _i18n;
|
|
23
|
-
/** @protected Reactive localized trigger copy. */
|
|
24
|
-
protected readonly _copy: Signal<string>;
|
|
25
|
-
/** @protected Whether the editor has both required upload commands. */
|
|
26
|
-
protected readonly _supported: Signal<boolean>;
|
|
27
|
-
/** @protected Whether the mutation entry point belongs in this toolbar. */
|
|
28
|
-
protected readonly _visible: Signal<boolean>;
|
|
29
|
-
/** @protected Whether the visible trigger is currently inert. */
|
|
30
|
-
protected readonly _disabled: Signal<boolean>;
|
|
31
|
-
constructor();
|
|
32
|
-
/** @protected Opens one editor-scoped Malva upload dialog. */
|
|
33
|
-
protected _open(): void;
|
|
34
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MlvEditorImageUpload, never>;
|
|
35
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MlvEditorImageUpload, "mlv-editor-image-upload", never, {}, {}, never, never, true, never>;
|
|
36
|
-
}
|
|
37
|
-
/** @internal Non-serializable pending-upload surface owned by the editor shell. */
|
|
38
|
-
export declare class MlvEditorImageUploadStatus {
|
|
39
|
-
/** @protected Shared editor coordinator. */
|
|
40
|
-
protected readonly _coordinator: import("../upload/editor-image-upload-coordinator").MlvEditorImageUploadCoordinator;
|
|
41
|
-
/** @private Editor state guarding mutation actions. */
|
|
42
|
-
private readonly _context;
|
|
43
|
-
/** @private Optional localized editor copy. */
|
|
44
|
-
private readonly _i18n;
|
|
45
|
-
/** @private Localized file removal copy. */
|
|
46
|
-
private readonly _fileI18n;
|
|
47
|
-
/** @protected Current active and retryable uploads. */
|
|
48
|
-
protected readonly _pending: Signal<readonly import("@malva-ui/editor").MlvEditorPendingUpload[]>;
|
|
49
|
-
/** @protected Polite coarse-grained live-region text. */
|
|
50
|
-
protected readonly _announcement: import("@angular/core").WritableSignal<string>;
|
|
51
|
-
/** @private Last announced progress bucket for each active item. */
|
|
52
|
-
private readonly _buckets;
|
|
53
|
-
/** @protected Whether status actions are inert. */
|
|
54
|
-
protected readonly _disabled: Signal<boolean>;
|
|
55
|
-
/** @protected Reactive localized status/action copy. */
|
|
56
|
-
protected readonly _copy: Signal<{
|
|
57
|
-
cancel: string;
|
|
58
|
-
retry: string;
|
|
59
|
-
failed: string;
|
|
60
|
-
progress: string;
|
|
61
|
-
}>;
|
|
62
|
-
constructor();
|
|
63
|
-
/** @protected Formats localized coarse progress. */
|
|
64
|
-
protected _progressLabel(progress: number): string;
|
|
65
|
-
/** @protected Labels a remove action without exposing a bare icon. */
|
|
66
|
-
protected _removeLabel(name: string): string;
|
|
67
|
-
/** @protected Cancels an active upload and announces the semantic state. */
|
|
68
|
-
protected _cancel(id: string): void;
|
|
69
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MlvEditorImageUploadStatus, never>;
|
|
70
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MlvEditorImageUploadStatus, "mlv-editor-image-upload-status", never, {}, {}, never, never, true, never>;
|
|
71
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import type { Editor } from '@tiptap/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
/** Inline bold, italic, strike-through, and underline toggles. */
|
|
4
|
-
export declare class MlvEditorInlineMarks {
|
|
5
|
-
/** @protected Editor command state. */ protected readonly _context: import("@malva-ui/editor").MlvEditorToolbarContext;
|
|
6
|
-
/** @private Per-editor state invalidation signal. */ private readonly _revision;
|
|
7
|
-
/** @private Optional localized copy. */ private readonly _i18n;
|
|
8
|
-
/** @protected Resolved labels. */ protected readonly _copy: import("@angular/core").Signal<{
|
|
9
|
-
bold: string;
|
|
10
|
-
italic: string;
|
|
11
|
-
strike: string;
|
|
12
|
-
underline: string;
|
|
13
|
-
}>;
|
|
14
|
-
/** @protected Bold availability. */ protected readonly _canBold: (editor: Editor) => boolean;
|
|
15
|
-
/** @protected Reads active state after the latest transaction or selection update. */
|
|
16
|
-
protected _isActive(name: string): boolean;
|
|
17
|
-
/** @protected Current bold command availability. */ protected readonly _canBoldNow: (editor: Editor) => boolean;
|
|
18
|
-
/** @protected Italic availability. */ protected readonly _canItalic: (editor: Editor) => boolean;
|
|
19
|
-
/** @protected Current italic command availability. */ protected readonly _canItalicNow: (editor: Editor) => boolean;
|
|
20
|
-
/** @protected Strike availability. */ protected readonly _canStrike: (editor: Editor) => boolean;
|
|
21
|
-
/** @protected Current strike command availability. */ protected readonly _canStrikeNow: (editor: Editor) => boolean;
|
|
22
|
-
/** @protected Underline availability. */ protected readonly _canUnderline: (editor: Editor) => boolean;
|
|
23
|
-
/** @protected Current underline command availability. */ protected readonly _canUnderlineNow: (editor: Editor) => boolean;
|
|
24
|
-
/** @protected Bold command. */ protected readonly _bold: (editor: Editor) => boolean;
|
|
25
|
-
/** @protected Italic command. */ protected readonly _italic: (editor: Editor) => boolean;
|
|
26
|
-
/** @protected Strike command. */ protected readonly _strike: (editor: Editor) => boolean;
|
|
27
|
-
/** @protected Underline command. */ protected readonly _underline: (editor: Editor) => boolean;
|
|
28
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MlvEditorInlineMarks, never>;
|
|
29
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MlvEditorInlineMarks, "mlv-editor-inline-marks", never, {}, {}, never, never, true, never>;
|
|
30
|
-
}
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import type { Signal } from '@angular/core';
|
|
2
|
-
import { ElementRef } from '@angular/core';
|
|
3
|
-
import { MlvInput } from '@malva-ui/core/input';
|
|
4
|
-
import { MlvPopup, MlvPopupTrigger } from '@malva-ui/core/popup';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
/** Safe URL and label editor for the active Tiptap link mark. */
|
|
7
|
-
export declare class MlvEditorLink {
|
|
8
|
-
/**
|
|
9
|
-
* URL schemes accepted by Malva before the active Tiptap Link extension
|
|
10
|
-
* applies its own configured protocol policy.
|
|
11
|
-
*/
|
|
12
|
-
readonly allowedProtocols: import("@angular/core").InputSignal<readonly string[]>;
|
|
13
|
-
/** @protected Editor-scoped command and form state. */
|
|
14
|
-
protected readonly _context: import("@malva-ui/editor").MlvEditorToolbarContext;
|
|
15
|
-
/** @private Toolbar transaction/selection invalidation state. */
|
|
16
|
-
private readonly _revision;
|
|
17
|
-
/** @private Detached panel ownership for composite focus. */
|
|
18
|
-
private readonly _overlays;
|
|
19
|
-
/** @private Optional localized editor copy. */
|
|
20
|
-
private readonly _i18n;
|
|
21
|
-
/** @protected Popup controller owned by the trigger. */
|
|
22
|
-
protected readonly _popup: Signal<MlvPopup>;
|
|
23
|
-
/** @protected Connected trigger controller. */
|
|
24
|
-
protected readonly _trigger: Signal<MlvPopupTrigger>;
|
|
25
|
-
/** @protected Native trigger restored after popup teardown. */
|
|
26
|
-
protected readonly _triggerElement: Signal<ElementRef<HTMLButtonElement>>;
|
|
27
|
-
/** @protected URL field focused on open. */
|
|
28
|
-
protected readonly _urlInput: Signal<MlvInput>;
|
|
29
|
-
/** @private Detached panel queried through Angular rather than selectors. */
|
|
30
|
-
private readonly _panel;
|
|
31
|
-
/** @protected URL draft retained when validation fails. */
|
|
32
|
-
protected readonly _urlDraft: import("@angular/core").WritableSignal<string>;
|
|
33
|
-
/** @protected Linked/selected text draft. */
|
|
34
|
-
protected readonly _textDraft: import("@angular/core").WritableSignal<string>;
|
|
35
|
-
/** @protected Whether the link should open in a new browsing context. */
|
|
36
|
-
protected readonly _newTab: import("@angular/core").WritableSignal<boolean>;
|
|
37
|
-
/** @protected Whether the current URL draft failed strict policy. */
|
|
38
|
-
protected readonly _invalid: import("@angular/core").WritableSignal<boolean>;
|
|
39
|
-
/** @protected Whether the currently edited range already carries a link. */
|
|
40
|
-
protected readonly _canRemove: import("@angular/core").WritableSignal<boolean>;
|
|
41
|
-
/** @private Whole mark or selected range retained while focus is detached. */
|
|
42
|
-
private _selection;
|
|
43
|
-
/** @protected Reactive localized copy for trigger, fields, and actions. */
|
|
44
|
-
protected readonly _copy: Signal<{
|
|
45
|
-
link: string;
|
|
46
|
-
linkUrl: string;
|
|
47
|
-
linkText: string;
|
|
48
|
-
invalidLink: string;
|
|
49
|
-
openInNewTab: string;
|
|
50
|
-
applyLink: string;
|
|
51
|
-
removeLink: string;
|
|
52
|
-
}>;
|
|
53
|
-
/** @protected Exact command presence without dispatching a transaction. */
|
|
54
|
-
protected readonly _supported: Signal<boolean>;
|
|
55
|
-
/** @protected Link mark state at the retained editor selection. */
|
|
56
|
-
protected readonly _active: Signal<boolean>;
|
|
57
|
-
/** @protected Whether readonly/disabled state blocks the complete popup. */
|
|
58
|
-
protected readonly _disabled: Signal<boolean>;
|
|
59
|
-
constructor();
|
|
60
|
-
/** @protected Preloads the active whole-link range or current selection. */
|
|
61
|
-
protected _onOpened(): void;
|
|
62
|
-
/** @protected Restores the connected toolbar trigger after final teardown. */
|
|
63
|
-
protected _onClosed(): void;
|
|
64
|
-
/** @protected Clears stale validation as the user edits without closing. */
|
|
65
|
-
protected _onUrlChange(value: string): void;
|
|
66
|
-
/** @protected Applies an inserted or updated link after both policy checks. */
|
|
67
|
-
protected _apply(): void;
|
|
68
|
-
/** @protected Removes only the link mark while retaining its text. */
|
|
69
|
-
protected _remove(): void;
|
|
70
|
-
/** @private Preflights Link policy before replacing text and applying attributes. */
|
|
71
|
-
private _applyToEditor;
|
|
72
|
-
/** @private Strict scheme allowlist validation before Tiptap's own policy. */
|
|
73
|
-
private _validateUrl;
|
|
74
|
-
/** @private Trims, lowercases, and removes trailing colons from the API input. */
|
|
75
|
-
private _normalizedProtocols;
|
|
76
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MlvEditorLink, never>;
|
|
77
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MlvEditorLink, "mlv-editor-link", never, { "allowedProtocols": { "alias": "allowedProtocols"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
78
|
-
}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import type { Editor } from '@tiptap/core';
|
|
2
|
-
import { MlvMenu, MlvMenuTrigger } from '@malva-ui/core/menu';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
/** Bullet, ordered, and task-list toolbar commands in a compact menu. */
|
|
5
|
-
export declare class MlvEditorList {
|
|
6
|
-
/** @protected Editor command state. */
|
|
7
|
-
protected readonly _context: import("@malva-ui/editor").MlvEditorToolbarContext;
|
|
8
|
-
/** @private Per-editor state invalidation signal. */
|
|
9
|
-
private readonly _revision;
|
|
10
|
-
/** @private The editor-owned overlay registry. */
|
|
11
|
-
private readonly _overlays;
|
|
12
|
-
/** @private Document used to resolve the public menu panel id. */
|
|
13
|
-
private readonly _document;
|
|
14
|
-
/** @private Removes a pending or active overlay registration. */
|
|
15
|
-
private readonly _destroyRef;
|
|
16
|
-
/** @private Optional localized editor copy. */
|
|
17
|
-
private readonly _i18n;
|
|
18
|
-
/** @protected Rendered Malva menu. */
|
|
19
|
-
protected readonly _menu: import("@angular/core").Signal<MlvMenu>;
|
|
20
|
-
/** @protected Trigger owning the menu overlay. */
|
|
21
|
-
protected readonly _trigger: import("@angular/core").Signal<MlvMenuTrigger>;
|
|
22
|
-
/** @private Tears down the active panel registration. */
|
|
23
|
-
private _unregister;
|
|
24
|
-
/** @private Guards queued registration after a quick close or destroy. */
|
|
25
|
-
private _menuOpen;
|
|
26
|
-
/** @protected Resolved menu labels. */
|
|
27
|
-
protected readonly _copy: import("@angular/core").Signal<{
|
|
28
|
-
bullet: string;
|
|
29
|
-
ordered: string;
|
|
30
|
-
task: string;
|
|
31
|
-
}>;
|
|
32
|
-
/** @protected Bullet-list command availability at the current selection. */
|
|
33
|
-
protected readonly _canBullet: (editor: Editor) => boolean;
|
|
34
|
-
/** @protected Ordered-list command availability at the current selection. */
|
|
35
|
-
protected readonly _canOrdered: (editor: Editor) => boolean;
|
|
36
|
-
/** @protected Task-list command availability at the current selection. */
|
|
37
|
-
protected readonly _canTask: (editor: Editor) => boolean;
|
|
38
|
-
/** @protected Bullet-list command. */
|
|
39
|
-
protected readonly _bullet: (editor: Editor) => boolean;
|
|
40
|
-
/** @protected Ordered-list command. */
|
|
41
|
-
protected readonly _ordered: (editor: Editor) => boolean;
|
|
42
|
-
/** @protected Task-list command. */
|
|
43
|
-
protected readonly _task: (editor: Editor) => boolean;
|
|
44
|
-
constructor();
|
|
45
|
-
/** @protected The list style currently active at the selection. */
|
|
46
|
-
protected _label(): string;
|
|
47
|
-
/** @protected Whether one list command is registered by the active extension set. */
|
|
48
|
-
protected _supported(): boolean;
|
|
49
|
-
/** @protected Whether the bullet-list command is registered. */
|
|
50
|
-
protected _hasBullet(): boolean;
|
|
51
|
-
/** @protected Whether the ordered-list command is registered. */
|
|
52
|
-
protected _hasOrdered(): boolean;
|
|
53
|
-
/** @protected Whether the task-list command is registered. */
|
|
54
|
-
protected _hasTask(): boolean;
|
|
55
|
-
/** @protected Whether the menu trigger cannot be opened. */
|
|
56
|
-
protected _triggerDisabled(): boolean;
|
|
57
|
-
/** @protected Whether an available menu item currently cannot mutate. */
|
|
58
|
-
protected _disabled(command: (editor: Editor) => boolean): boolean;
|
|
59
|
-
/** @protected Runs a selection-restoring list command. */
|
|
60
|
-
protected _run(command: (editor: Editor) => boolean): void;
|
|
61
|
-
/** @protected Registers the portaled panel as editor-owned focus. */
|
|
62
|
-
protected _registerOverlay(): void;
|
|
63
|
-
/** @protected Removes menu-panel focus ownership after close. */
|
|
64
|
-
protected _unregisterOverlay(): void;
|
|
65
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MlvEditorList, never>;
|
|
66
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MlvEditorList, "mlv-editor-list", never, {}, {}, never, never, true, never>;
|
|
67
|
-
}
|
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
import type { Signal } from '@angular/core';
|
|
2
|
-
import { ElementRef } from '@angular/core';
|
|
3
|
-
import type { Editor } from '@tiptap/core';
|
|
4
|
-
import { MlvPopup, MlvPopupTrigger } from '@malva-ui/core/popup';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
interface EditorTableSize {
|
|
7
|
-
readonly rows: number;
|
|
8
|
-
readonly cols: number;
|
|
9
|
-
}
|
|
10
|
-
/** Resizable table insertion and contextual command control. */
|
|
11
|
-
export declare class MlvEditorTable {
|
|
12
|
-
/** @protected Editor-scoped command and form state. */
|
|
13
|
-
protected readonly _context: import("@malva-ui/editor").MlvEditorToolbarContext;
|
|
14
|
-
/** @private Transaction and selection invalidation bridge. */
|
|
15
|
-
private readonly _revision;
|
|
16
|
-
/** @private Detached popup ownership for composite editor focus. */
|
|
17
|
-
private readonly _overlays;
|
|
18
|
-
/** @private Optional localized editor copy. */
|
|
19
|
-
private readonly _i18n;
|
|
20
|
-
/** @protected Popup controller owned by the table trigger. */
|
|
21
|
-
protected readonly _popup: Signal<MlvPopup>;
|
|
22
|
-
/** @protected Connected popup trigger. */
|
|
23
|
-
protected readonly _trigger: Signal<MlvPopupTrigger>;
|
|
24
|
-
/** @protected Native trigger restored after final popup teardown. */
|
|
25
|
-
protected readonly _triggerElement: Signal<ElementRef<HTMLButtonElement>>;
|
|
26
|
-
/** @private Detached popup panel used by the overlay focus registry. */
|
|
27
|
-
private readonly _panel;
|
|
28
|
-
/** @protected First contextual action focused when a table popup opens. */
|
|
29
|
-
protected readonly _firstAction: Signal<ElementRef<HTMLButtonElement> | undefined>;
|
|
30
|
-
/** @private Native insertion-grid buttons in row-major order. */
|
|
31
|
-
private readonly _gridCells;
|
|
32
|
-
/** @protected Fixed row and column choices exposed by the grid. */
|
|
33
|
-
protected readonly _gridRows: readonly (readonly EditorTableSize[])[];
|
|
34
|
-
/** @protected Currently selected insertion dimensions. */
|
|
35
|
-
protected readonly _selectedSize: import("@angular/core").WritableSignal<EditorTableSize>;
|
|
36
|
-
/** @protected Whether insertion creates a header first row. */
|
|
37
|
-
protected readonly _withHeaderRow: import("@angular/core").WritableSignal<boolean>;
|
|
38
|
-
/** @protected Reactive localized copy for the trigger and insertion panel. */
|
|
39
|
-
protected readonly _copy: Signal<{
|
|
40
|
-
table: string;
|
|
41
|
-
insertTable: string;
|
|
42
|
-
addRowBefore: string;
|
|
43
|
-
addRowAfter: string;
|
|
44
|
-
deleteRow: string;
|
|
45
|
-
addColumnBefore: string;
|
|
46
|
-
addColumnAfter: string;
|
|
47
|
-
deleteColumn: string;
|
|
48
|
-
mergeCells: string;
|
|
49
|
-
splitCell: string;
|
|
50
|
-
toggleHeaderRow: string;
|
|
51
|
-
toggleHeaderColumn: string;
|
|
52
|
-
toggleHeaderCell: string;
|
|
53
|
-
deleteTable: string;
|
|
54
|
-
}>;
|
|
55
|
-
/** @protected Whether the current editor registered table commands. */
|
|
56
|
-
protected readonly _supported: Signal<boolean>;
|
|
57
|
-
/** @protected Whether the retained selection is inside a table. */
|
|
58
|
-
protected readonly _active: Signal<boolean>;
|
|
59
|
-
/** @protected Whether editor form state blocks the complete control. */
|
|
60
|
-
protected readonly _disabled: Signal<boolean>;
|
|
61
|
-
/** @protected Adds a row before the selected cell. */
|
|
62
|
-
protected readonly _addRowBefore: (editor: Editor) => boolean;
|
|
63
|
-
/** @protected Adds a row after the selected cell. */
|
|
64
|
-
protected readonly _addRowAfter: (editor: Editor) => boolean;
|
|
65
|
-
/** @protected Deletes the selected row. */
|
|
66
|
-
protected readonly _deleteRow: (editor: Editor) => boolean;
|
|
67
|
-
/** @protected Adds a column before the selected cell. */
|
|
68
|
-
protected readonly _addColumnBefore: (editor: Editor) => boolean;
|
|
69
|
-
/** @protected Adds a column after the selected cell. */
|
|
70
|
-
protected readonly _addColumnAfter: (editor: Editor) => boolean;
|
|
71
|
-
/** @protected Deletes the selected column. */
|
|
72
|
-
protected readonly _deleteColumn: (editor: Editor) => boolean;
|
|
73
|
-
/** @protected Merges the selected rectangular cell range. */
|
|
74
|
-
protected readonly _mergeCells: (editor: Editor) => boolean;
|
|
75
|
-
/** @protected Splits the current merged cell. */
|
|
76
|
-
protected readonly _splitCell: (editor: Editor) => boolean;
|
|
77
|
-
/** @protected Toggles header nodes across the first row. */
|
|
78
|
-
protected readonly _toggleHeaderRow: (editor: Editor) => boolean;
|
|
79
|
-
/** @protected Toggles header nodes down the first column. */
|
|
80
|
-
protected readonly _toggleHeaderColumn: (editor: Editor) => boolean;
|
|
81
|
-
/** @protected Toggles the selected table cell's header node type. */
|
|
82
|
-
protected readonly _toggleHeaderCell: (editor: Editor) => boolean;
|
|
83
|
-
/** @protected Deletes the complete active table. */
|
|
84
|
-
protected readonly _deleteTable: (editor: Editor) => boolean;
|
|
85
|
-
/** @protected Non-dispatching add-row-before capability check. */
|
|
86
|
-
protected readonly _canAddRowBefore: (editor: Editor) => boolean;
|
|
87
|
-
/** @protected Non-dispatching add-row-after capability check. */
|
|
88
|
-
protected readonly _canAddRowAfter: (editor: Editor) => boolean;
|
|
89
|
-
/** @protected Non-dispatching delete-row capability check. */
|
|
90
|
-
protected readonly _canDeleteRow: (editor: Editor) => boolean;
|
|
91
|
-
/** @protected Non-dispatching add-column-before capability check. */
|
|
92
|
-
protected readonly _canAddColumnBefore: (editor: Editor) => boolean;
|
|
93
|
-
/** @protected Non-dispatching add-column-after capability check. */
|
|
94
|
-
protected readonly _canAddColumnAfter: (editor: Editor) => boolean;
|
|
95
|
-
/** @protected Non-dispatching delete-column capability check. */
|
|
96
|
-
protected readonly _canDeleteColumn: (editor: Editor) => boolean;
|
|
97
|
-
/** @protected Non-dispatching merge capability check. */
|
|
98
|
-
protected readonly _canMergeCells: (editor: Editor) => boolean;
|
|
99
|
-
/** @protected Non-dispatching split capability check. */
|
|
100
|
-
protected readonly _canSplitCell: (editor: Editor) => boolean;
|
|
101
|
-
/** @protected Non-dispatching header-row capability check. */
|
|
102
|
-
protected readonly _canToggleHeaderRow: (editor: Editor) => boolean;
|
|
103
|
-
/** @protected Non-dispatching header-column capability check. */
|
|
104
|
-
protected readonly _canToggleHeaderColumn: (editor: Editor) => boolean;
|
|
105
|
-
/** @protected Non-dispatching header-cell capability check. */
|
|
106
|
-
protected readonly _canToggleHeaderCell: (editor: Editor) => boolean;
|
|
107
|
-
/** @protected Non-dispatching table-deletion capability check. */
|
|
108
|
-
protected readonly _canDeleteTable: (editor: Editor) => boolean;
|
|
109
|
-
constructor();
|
|
110
|
-
/** @protected Initializes and focuses the default insertion-grid choice. */
|
|
111
|
-
protected _onOpened(): void;
|
|
112
|
-
/** @protected Restores the connected toolbar trigger after final teardown. */
|
|
113
|
-
protected _onClosed(): void;
|
|
114
|
-
/** @protected Names an exact insertion size from localized table copy. */
|
|
115
|
-
protected _sizeLabel(size: EditorTableSize): string;
|
|
116
|
-
/** @protected Whether a grid cell belongs to the selected dimensions. */
|
|
117
|
-
protected _sizeSelected(size: EditorTableSize): boolean;
|
|
118
|
-
/** @protected Updates the current pointer/focus-selected dimensions. */
|
|
119
|
-
protected _selectSize(size: EditorTableSize): void;
|
|
120
|
-
/** @protected Executes insertion for a selected pointer cell. */
|
|
121
|
-
protected _insertSize(size: EditorTableSize): void;
|
|
122
|
-
/** @protected Whether current selection and form state block an action. */
|
|
123
|
-
protected _commandDisabled(command: (editor: Editor) => boolean): boolean;
|
|
124
|
-
/** @protected Executes one contextual mutation through the public guard. */
|
|
125
|
-
protected _run(command: (editor: Editor) => boolean, closeAfter?: boolean): void;
|
|
126
|
-
/** @protected Handles bounded grid navigation and keyboard insertion. */
|
|
127
|
-
protected _onGridKeydown(event: KeyboardEvent): void;
|
|
128
|
-
/** @private Focuses the single row-major button matching selected dimensions. */
|
|
129
|
-
private _focusSelectedCell;
|
|
130
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MlvEditorTable, never>;
|
|
131
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MlvEditorTable, "mlv-editor-table", never, {}, {}, never, never, true, never>;
|
|
132
|
-
}
|
|
133
|
-
export {};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { Editor } from '@tiptap/core';
|
|
2
|
-
import { MlvEditorColorControl } from './editor-color-control';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
/** Foreground-colour toolbar control backed by the reusable swatch picker. */
|
|
5
|
-
export declare class MlvEditorTextColor extends MlvEditorColorControl {
|
|
6
|
-
/** @private Optional localized editor labels. */
|
|
7
|
-
private readonly _i18n;
|
|
8
|
-
/** @protected Localized accessible trigger and dialog label. */
|
|
9
|
-
protected readonly _label: import("@angular/core").Signal<string>;
|
|
10
|
-
/** @protected Exact command-presence capability without command execution. */
|
|
11
|
-
protected readonly _supported: import("@angular/core").Signal<boolean>;
|
|
12
|
-
/** @protected Active foreground colour rendered by the swatch. */
|
|
13
|
-
protected readonly _activeColor: import("@angular/core").Signal<string>;
|
|
14
|
-
/** @protected Applies or clears foreground colour without focusing Tiptap. */
|
|
15
|
-
protected _run(editor: Editor, selection: {
|
|
16
|
-
readonly from: number;
|
|
17
|
-
readonly to: number;
|
|
18
|
-
}, color: string): boolean;
|
|
19
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MlvEditorTextColor, never>;
|
|
20
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MlvEditorTextColor, "mlv-editor-text-color", never, {}, {}, never, never, true, never>;
|
|
21
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
/** Marks a projected or built-in editor control as one editor-toolbar roving widget. */
|
|
3
|
-
export declare class MlvEditorToolbarWidget {
|
|
4
|
-
/** @internal Native widget registered with the enclosing toolbar. */
|
|
5
|
-
private readonly _element;
|
|
6
|
-
/** @internal Editor-scoped roving-focus coordinator. */
|
|
7
|
-
private readonly _registry;
|
|
8
|
-
/** @internal Widget lifecycle for deregistration. */
|
|
9
|
-
private readonly _destroyRef;
|
|
10
|
-
/** @internal Derived tab stop for roving keyboard navigation. */
|
|
11
|
-
protected readonly _tabIndex: import("@angular/core").Signal<0 | -1>;
|
|
12
|
-
constructor();
|
|
13
|
-
/** @internal Promotes this widget when it receives focus. */
|
|
14
|
-
protected _activate(): void;
|
|
15
|
-
/** @internal Promotes this widget before pointer activation. */
|
|
16
|
-
protected _activateOnPointerDown(): void;
|
|
17
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MlvEditorToolbarWidget, never>;
|
|
18
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MlvEditorToolbarWidget, "[mlvEditorToolbarWidget]", never, {}, {}, never, never, true, never>;
|
|
19
|
-
}
|