@acorex/components 22.4.2 → 22.4.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/fesm2022/acorex-components-calendar.mjs +2 -2
- package/fesm2022/acorex-components-calendar.mjs.map +1 -1
- package/fesm2022/acorex-components-data-table.mjs +2 -2
- package/fesm2022/acorex-components-data-table.mjs.map +1 -1
- package/fesm2022/acorex-components-datetime-picker.mjs +2 -2
- package/fesm2022/acorex-components-datetime-picker.mjs.map +1 -1
- package/fesm2022/acorex-components-drawer.mjs +2 -2
- package/fesm2022/acorex-components-drawer.mjs.map +1 -1
- package/fesm2022/acorex-components-dropdown-button.mjs +16 -11
- package/fesm2022/acorex-components-dropdown-button.mjs.map +1 -1
- package/fesm2022/acorex-components-text-editor.mjs +1988 -0
- package/fesm2022/acorex-components-text-editor.mjs.map +1 -0
- package/package.json +9 -3
- package/text-editor/README.md +3 -0
- package/types/acorex-components-dropdown-button.d.ts +7 -2
- package/types/acorex-components-text-editor.d.ts +296 -0
|
@@ -0,0 +1,296 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { OnDestroy } from '@angular/core';
|
|
3
|
+
import * as _tiptap_core from '@tiptap/core';
|
|
4
|
+
import { Editor, ChainedCommands, JSONContent, Content, Extension } from '@tiptap/core';
|
|
5
|
+
import * as polytype from 'polytype';
|
|
6
|
+
import { MXInputBaseValueComponent, MXLookComponent, AXOrientation, AXClickEvent } from '@acorex/cdk/common';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Marker base for projected editor tools and slots.
|
|
10
|
+
*/
|
|
11
|
+
declare abstract class AXTextEditorSlot {
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
type AXTextEditorOutputFormat = 'json' | 'html';
|
|
15
|
+
type AXTextEditorValue = string | Record<string, unknown> | null;
|
|
16
|
+
interface AXTextEditorHostBridge {
|
|
17
|
+
placeHolder(): string;
|
|
18
|
+
outputFormat(): AXTextEditorOutputFormat;
|
|
19
|
+
value(): AXTextEditorValue;
|
|
20
|
+
disabled(): boolean;
|
|
21
|
+
readonly(): boolean;
|
|
22
|
+
notifyFocus(event?: FocusEvent): void;
|
|
23
|
+
notifyBlur(event?: FocusEvent): void;
|
|
24
|
+
notifyValue(value: AXTextEditorValue): void;
|
|
25
|
+
}
|
|
26
|
+
type AXTextEditorCommandAttrs = Record<string, unknown>;
|
|
27
|
+
declare const AX_TEXT_EDITOR_ZOOM_PRESETS: readonly [40, 50, 75, 90, 100, 125, 150, 175, 200];
|
|
28
|
+
declare const AX_TEXT_EDITOR_ZOOM_MIN = 40;
|
|
29
|
+
declare const AX_TEXT_EDITOR_ZOOM_MAX = 200;
|
|
30
|
+
declare const AX_TEXT_EDITOR_DEFAULT_TEXT_COLORS: string[];
|
|
31
|
+
declare const AX_TEXT_EDITOR_DEFAULT_BACKGROUND_COLORS: string[];
|
|
32
|
+
interface AXTextEditorRecentColor {
|
|
33
|
+
color: string;
|
|
34
|
+
kind: 'text' | 'background';
|
|
35
|
+
}
|
|
36
|
+
type AXTextEditorCommandType = 'undo' | 'redo' | 'bold' | 'italic' | 'underline' | 'strike' | 'heading' | 'paragraph' | 'align' | 'direction' | 'color' | 'highlight' | 'bulletList' | 'orderedList' | 'superscript' | 'subscript' | 'link' | 'unlink' | 'blockquote' | 'code' | 'codeBlock' | 'horizontalRule' | 'insertTable' | 'addColumnBefore' | 'addColumnAfter' | 'deleteColumn' | 'addRowBefore' | 'addRowAfter' | 'deleteRow' | 'toggleHeaderRow' | 'deleteTable';
|
|
37
|
+
|
|
38
|
+
declare class AXTextEditorCommandComponent extends AXTextEditorSlot {
|
|
39
|
+
private readonly editorService;
|
|
40
|
+
readonly command: _angular_core.InputSignal<AXTextEditorCommandType>;
|
|
41
|
+
readonly attrs: _angular_core.InputSignal<AXTextEditorCommandAttrs>;
|
|
42
|
+
readonly icon: _angular_core.InputSignal<string>;
|
|
43
|
+
readonly label: _angular_core.InputSignal<string>;
|
|
44
|
+
protected readonly toggleable: _angular_core.Signal<boolean>;
|
|
45
|
+
protected readonly active: _angular_core.Signal<boolean>;
|
|
46
|
+
protected readonly enabled: _angular_core.Signal<boolean>;
|
|
47
|
+
protected execute(): void;
|
|
48
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXTextEditorCommandComponent, never>;
|
|
49
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXTextEditorCommandComponent, "ax-text-editor-command", never, { "command": { "alias": "command"; "required": true; "isSignal": true; }; "attrs": { "alias": "attrs"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
declare class AXTextEditorContentComponent extends AXTextEditorSlot implements OnDestroy {
|
|
53
|
+
private readonly editorService;
|
|
54
|
+
private readonly elementRef;
|
|
55
|
+
private readonly platformId;
|
|
56
|
+
private editor;
|
|
57
|
+
constructor();
|
|
58
|
+
private host;
|
|
59
|
+
ngOnDestroy(): void;
|
|
60
|
+
private createEditor;
|
|
61
|
+
private emitValue;
|
|
62
|
+
private serialize;
|
|
63
|
+
private toContent;
|
|
64
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXTextEditorContentComponent, never>;
|
|
65
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXTextEditorContentComponent, "ax-text-editor-content", never, {}, {}, never, never, true, never>;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
declare function isTextEditorCommandActive(editor: Editor, command: AXTextEditorCommandType, attrs?: AXTextEditorCommandAttrs): boolean;
|
|
69
|
+
declare function canRunTextEditorCommand(editor: Editor, command: AXTextEditorCommandType, attrs?: AXTextEditorCommandAttrs): boolean;
|
|
70
|
+
declare function runTextEditorCommand(editor: Editor, command: AXTextEditorCommandType, attrs?: AXTextEditorCommandAttrs): boolean;
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Per-editor Tiptap facade. Provided on `ax-text-editor`, so projected tools and
|
|
74
|
+
* custom toolbar children can `inject(AXTextEditorService)` and use either the
|
|
75
|
+
* named-command helpers or the full Tiptap instance.
|
|
76
|
+
*/
|
|
77
|
+
declare class AXTextEditorService {
|
|
78
|
+
private readonly _editor;
|
|
79
|
+
private host;
|
|
80
|
+
private preservedRange;
|
|
81
|
+
readonly editor: _angular_core.Signal<Editor>;
|
|
82
|
+
readonly version: _angular_core.WritableSignal<number>;
|
|
83
|
+
readonly disabled: _angular_core.WritableSignal<boolean>;
|
|
84
|
+
readonly readonly: _angular_core.WritableSignal<boolean>;
|
|
85
|
+
readonly editable: _angular_core.Signal<boolean>;
|
|
86
|
+
readonly textColor: _angular_core.WritableSignal<string>;
|
|
87
|
+
readonly highlightColor: _angular_core.WritableSignal<string>;
|
|
88
|
+
readonly zoom: _angular_core.WritableSignal<number>;
|
|
89
|
+
readonly zoomFactor: _angular_core.Signal<number>;
|
|
90
|
+
bindHost(host: AXTextEditorHostBridge): void;
|
|
91
|
+
syncHostState(): void;
|
|
92
|
+
getHost(): AXTextEditorHostBridge | null;
|
|
93
|
+
setEditor(editor: Editor | null): void;
|
|
94
|
+
refresh(): void;
|
|
95
|
+
chain(): ChainedCommands | null;
|
|
96
|
+
get commands(): Editor['commands'] | undefined;
|
|
97
|
+
get canCommands(): ReturnType<Editor['can']> | undefined;
|
|
98
|
+
isActive(command: AXTextEditorCommandType, attrs?: AXTextEditorCommandAttrs): boolean;
|
|
99
|
+
can(command: AXTextEditorCommandType, attrs?: AXTextEditorCommandAttrs): boolean;
|
|
100
|
+
preserveSelection(): void;
|
|
101
|
+
clearPreservedSelection(): void;
|
|
102
|
+
run(command: AXTextEditorCommandType, attrs?: AXTextEditorCommandAttrs): boolean;
|
|
103
|
+
private restorePreservedSelection;
|
|
104
|
+
getJSON(): JSONContent | null;
|
|
105
|
+
getHTML(): string;
|
|
106
|
+
getText(options?: {
|
|
107
|
+
blockSeparator?: string;
|
|
108
|
+
}): string;
|
|
109
|
+
setContent(content: Content, emitUpdate?: boolean): boolean;
|
|
110
|
+
insertContent(value: Content): boolean;
|
|
111
|
+
clearContent(): boolean;
|
|
112
|
+
focus(): boolean;
|
|
113
|
+
blur(): boolean;
|
|
114
|
+
isEmpty(): boolean;
|
|
115
|
+
isFocused(): boolean;
|
|
116
|
+
isEditable(): boolean;
|
|
117
|
+
setEditable(editable: boolean): void;
|
|
118
|
+
setZoom(value: number): void;
|
|
119
|
+
zoomIn(step?: number): void;
|
|
120
|
+
zoomOut(step?: number): void;
|
|
121
|
+
fitToPage(): void;
|
|
122
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXTextEditorService, never>;
|
|
123
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<any>;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
declare const AXTextEditorComponent_base: polytype.Polytype.ClusteredConstructor<[{
|
|
127
|
+
new (): MXInputBaseValueComponent<AXTextEditorValue>;
|
|
128
|
+
ɵfac: _angular_core.ɵɵFactoryDeclaration<MXInputBaseValueComponent<any>, never>;
|
|
129
|
+
ɵprov: _angular_core.ɵɵInjectableDeclaration<any>;
|
|
130
|
+
}, typeof MXLookComponent]>;
|
|
131
|
+
declare class AXTextEditorComponent extends AXTextEditorComponent_base {
|
|
132
|
+
private readonly editorService;
|
|
133
|
+
private readonly destroyRef;
|
|
134
|
+
private readonly projected;
|
|
135
|
+
private syncingFromEditor;
|
|
136
|
+
readonly placeHolder: _angular_core.InputSignal<string>;
|
|
137
|
+
readonly outputFormat: _angular_core.InputSignal<AXTextEditorOutputFormat>;
|
|
138
|
+
readonly initialLine: _angular_core.InputSignal<number>;
|
|
139
|
+
protected readonly zoomFactor: _angular_core.Signal<number>;
|
|
140
|
+
constructor();
|
|
141
|
+
protected readonly projectedContent: _angular_core.Signal<boolean>;
|
|
142
|
+
getEditor(): _tiptap_core.Editor;
|
|
143
|
+
getEditorService(): AXTextEditorService;
|
|
144
|
+
/** @ignore */
|
|
145
|
+
notifyEditorFocus(event?: FocusEvent): void;
|
|
146
|
+
/** @ignore */
|
|
147
|
+
notifyEditorBlur(event?: FocusEvent): void;
|
|
148
|
+
/** @ignore */
|
|
149
|
+
notifyEditorValue(value: AXTextEditorValue): void;
|
|
150
|
+
protected internalValueChanged(value: AXTextEditorValue): void;
|
|
151
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXTextEditorComponent, never>;
|
|
152
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXTextEditorComponent, "ax-text-editor", never, { "disabled": { "alias": "disabled"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "value": { "alias": "value"; "required": false; }; "state": { "alias": "state"; "required": false; }; "name": { "alias": "name"; "required": false; }; "look": { "alias": "look"; "required": false; }; "placeHolder": { "alias": "placeHolder"; "required": false; "isSignal": true; }; "outputFormat": { "alias": "outputFormat"; "required": false; "isSignal": true; }; "initialLine": { "alias": "initialLine"; "required": false; "isSignal": true; }; }, { "onBlur": "onBlur"; "onFocus": "onFocus"; "valueChange": "valueChange"; "stateChange": "stateChange"; "onValueChanged": "onValueChanged"; "readonlyChange": "readonlyChange"; "disabledChange": "disabledChange"; }, ["projected"], ["*"], true, never>;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
declare module '@tiptap/core' {
|
|
156
|
+
interface Commands<ReturnType> {
|
|
157
|
+
superscript: {
|
|
158
|
+
toggleSuperscript: () => ReturnType;
|
|
159
|
+
};
|
|
160
|
+
subscript: {
|
|
161
|
+
toggleSubscript: () => ReturnType;
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
declare function createTextEditorExtensions(placeholder?: string | (() => string)): Extension[];
|
|
166
|
+
|
|
167
|
+
declare class AXTextEditorToolbarComponent extends AXTextEditorSlot {
|
|
168
|
+
private readonly editorService;
|
|
169
|
+
readonly orientation: _angular_core.InputSignal<AXOrientation>;
|
|
170
|
+
protected onMouseDown(event: MouseEvent): void;
|
|
171
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXTextEditorToolbarComponent, never>;
|
|
172
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXTextEditorToolbarComponent, "ax-text-editor-toolbar", never, { "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; }, {}, never, ["ax-prefix", "*", "ax-suffix"], true, never>;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
declare class AXTextEditorHistoryComponent extends AXTextEditorSlot {
|
|
176
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXTextEditorHistoryComponent, never>;
|
|
177
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXTextEditorHistoryComponent, "ax-text-editor-history", never, {}, {}, never, never, true, never>;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
declare class AXTextEditorHeadingComponent extends AXTextEditorSlot {
|
|
181
|
+
private readonly editorService;
|
|
182
|
+
protected readonly editorReady: _angular_core.Signal<boolean>;
|
|
183
|
+
protected readonly isParagraphSelected: _angular_core.Signal<boolean>;
|
|
184
|
+
protected readonly isH1: _angular_core.Signal<boolean>;
|
|
185
|
+
protected readonly isH2: _angular_core.Signal<boolean>;
|
|
186
|
+
protected readonly isH3: _angular_core.Signal<boolean>;
|
|
187
|
+
protected readonly currentLabel: _angular_core.Signal<"H1" | "H2" | "H3" | "Paragraph">;
|
|
188
|
+
protected onSelect(event: AXClickEvent): void;
|
|
189
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXTextEditorHeadingComponent, never>;
|
|
190
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXTextEditorHeadingComponent, "ax-text-editor-heading", never, {}, {}, never, never, true, never>;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
declare class AXTextEditorFontStyleComponent extends AXTextEditorSlot {
|
|
194
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXTextEditorFontStyleComponent, never>;
|
|
195
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXTextEditorFontStyleComponent, "ax-text-editor-font-style", never, {}, {}, never, never, true, never>;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
declare class AXTextEditorAlignmentComponent extends AXTextEditorSlot {
|
|
199
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXTextEditorAlignmentComponent, never>;
|
|
200
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXTextEditorAlignmentComponent, "ax-text-editor-alignment", never, {}, {}, never, never, true, never>;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
declare class AXTextEditorColorsComponent extends AXTextEditorSlot {
|
|
204
|
+
protected readonly editorService: AXTextEditorService;
|
|
205
|
+
protected setColor(color: string | null): void;
|
|
206
|
+
protected setHighlight(color: string | null): void;
|
|
207
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXTextEditorColorsComponent, never>;
|
|
208
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXTextEditorColorsComponent, "ax-text-editor-colors", never, {}, {}, never, never, true, never>;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
declare class AXTextEditorColorSwatchesComponent extends AXTextEditorSlot {
|
|
212
|
+
protected readonly editorService: AXTextEditorService;
|
|
213
|
+
readonly textColors: _angular_core.InputSignal<string[]>;
|
|
214
|
+
readonly backgroundColors: _angular_core.InputSignal<string[]>;
|
|
215
|
+
readonly recentColors: _angular_core.ModelSignal<AXTextEditorRecentColor[]>;
|
|
216
|
+
protected readonly resolvedTextColors: _angular_core.Signal<string[]>;
|
|
217
|
+
protected readonly resolvedBackgroundColors: _angular_core.Signal<string[]>;
|
|
218
|
+
protected isTextSelected(color: string): boolean;
|
|
219
|
+
protected isBackgroundSelected(color: string): boolean;
|
|
220
|
+
protected applyText(color: string): void;
|
|
221
|
+
protected applyBackground(color: string): void;
|
|
222
|
+
protected applyRecent(item: AXTextEditorRecentColor): void;
|
|
223
|
+
private remember;
|
|
224
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXTextEditorColorSwatchesComponent, never>;
|
|
225
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXTextEditorColorSwatchesComponent, "ax-text-editor-color-swatches", never, { "textColors": { "alias": "textColors"; "required": false; "isSignal": true; }; "backgroundColors": { "alias": "backgroundColors"; "required": false; "isSignal": true; }; "recentColors": { "alias": "recentColors"; "required": false; "isSignal": true; }; }, { "recentColors": "recentColorsChange"; }, never, never, true, never>;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
declare class AXTextEditorListComponent extends AXTextEditorSlot {
|
|
229
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXTextEditorListComponent, never>;
|
|
230
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXTextEditorListComponent, "ax-text-editor-list", never, {}, {}, never, never, true, never>;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
declare class AXTextEditorLinkComponent extends AXTextEditorSlot {
|
|
234
|
+
protected readonly editorService: AXTextEditorService;
|
|
235
|
+
private readonly dropdown;
|
|
236
|
+
protected readonly href: _angular_core.WritableSignal<string>;
|
|
237
|
+
protected readonly active: _angular_core.Signal<boolean>;
|
|
238
|
+
private savedFrom;
|
|
239
|
+
private savedTo;
|
|
240
|
+
protected syncHref(): void;
|
|
241
|
+
protected apply(): void;
|
|
242
|
+
protected remove(): void;
|
|
243
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXTextEditorLinkComponent, never>;
|
|
244
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXTextEditorLinkComponent, "ax-text-editor-link", never, {}, {}, never, never, true, never>;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
declare class AXTextEditorBlocksComponent extends AXTextEditorSlot {
|
|
248
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXTextEditorBlocksComponent, never>;
|
|
249
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXTextEditorBlocksComponent, "ax-text-editor-blocks", never, {}, {}, never, never, true, never>;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
declare class AXTextEditorTableComponent extends AXTextEditorSlot {
|
|
253
|
+
private readonly editorService;
|
|
254
|
+
private readonly dropdown;
|
|
255
|
+
protected readonly cells: number[];
|
|
256
|
+
protected readonly hover: _angular_core.WritableSignal<{
|
|
257
|
+
rows: number;
|
|
258
|
+
cols: number;
|
|
259
|
+
}>;
|
|
260
|
+
protected readonly sizeLabel: _angular_core.Signal<string>;
|
|
261
|
+
protected isHighlighted(row: number, col: number): boolean;
|
|
262
|
+
protected insert(rows: number, cols: number): void;
|
|
263
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXTextEditorTableComponent, never>;
|
|
264
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXTextEditorTableComponent, "ax-text-editor-table", never, {}, {}, never, never, true, never>;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
declare class AXTextEditorScriptComponent extends AXTextEditorSlot {
|
|
268
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXTextEditorScriptComponent, never>;
|
|
269
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXTextEditorScriptComponent, "ax-text-editor-script", never, {}, {}, never, never, true, never>;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
declare class AXTextEditorZoomComponent extends AXTextEditorSlot {
|
|
273
|
+
protected readonly editorService: AXTextEditorService;
|
|
274
|
+
private readonly dropdown;
|
|
275
|
+
protected readonly presets: readonly [40, 50, 75, 90, 100, 125, 150, 175, 200];
|
|
276
|
+
protected readonly draft: _angular_core.WritableSignal<string>;
|
|
277
|
+
protected readonly zoomLabel: _angular_core.Signal<string>;
|
|
278
|
+
protected readonly canZoomOut: _angular_core.Signal<boolean>;
|
|
279
|
+
protected readonly canZoomIn: _angular_core.Signal<boolean>;
|
|
280
|
+
protected syncDraft(): void;
|
|
281
|
+
protected onDraftInput(event: Event): void;
|
|
282
|
+
protected commitDraft(): void;
|
|
283
|
+
protected applyPreset(value: number): void;
|
|
284
|
+
protected fitToPage(): void;
|
|
285
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXTextEditorZoomComponent, never>;
|
|
286
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXTextEditorZoomComponent, "ax-text-editor-zoom", never, {}, {}, never, never, true, never>;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
declare class AXTextEditorModule {
|
|
290
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXTextEditorModule, never>;
|
|
291
|
+
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<AXTextEditorModule, never, [typeof AXTextEditorComponent, typeof AXTextEditorToolbarComponent, typeof AXTextEditorContentComponent, typeof AXTextEditorCommandComponent, typeof AXTextEditorHistoryComponent, typeof AXTextEditorHeadingComponent, typeof AXTextEditorFontStyleComponent, typeof AXTextEditorAlignmentComponent, typeof AXTextEditorColorsComponent, typeof AXTextEditorColorSwatchesComponent, typeof AXTextEditorListComponent, typeof AXTextEditorLinkComponent, typeof AXTextEditorBlocksComponent, typeof AXTextEditorTableComponent, typeof AXTextEditorScriptComponent, typeof AXTextEditorZoomComponent], [typeof AXTextEditorComponent, typeof AXTextEditorToolbarComponent, typeof AXTextEditorContentComponent, typeof AXTextEditorCommandComponent, typeof AXTextEditorHistoryComponent, typeof AXTextEditorHeadingComponent, typeof AXTextEditorFontStyleComponent, typeof AXTextEditorAlignmentComponent, typeof AXTextEditorColorsComponent, typeof AXTextEditorColorSwatchesComponent, typeof AXTextEditorListComponent, typeof AXTextEditorLinkComponent, typeof AXTextEditorBlocksComponent, typeof AXTextEditorTableComponent, typeof AXTextEditorScriptComponent, typeof AXTextEditorZoomComponent]>;
|
|
292
|
+
static ɵinj: _angular_core.ɵɵInjectorDeclaration<AXTextEditorModule>;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
export { AXTextEditorAlignmentComponent, AXTextEditorBlocksComponent, AXTextEditorColorSwatchesComponent, AXTextEditorColorsComponent, AXTextEditorCommandComponent, AXTextEditorComponent, AXTextEditorContentComponent, AXTextEditorFontStyleComponent, AXTextEditorHeadingComponent, AXTextEditorHistoryComponent, AXTextEditorLinkComponent, AXTextEditorListComponent, AXTextEditorModule, AXTextEditorScriptComponent, AXTextEditorService, AXTextEditorSlot, AXTextEditorTableComponent, AXTextEditorToolbarComponent, AXTextEditorZoomComponent, AX_TEXT_EDITOR_DEFAULT_BACKGROUND_COLORS, AX_TEXT_EDITOR_DEFAULT_TEXT_COLORS, AX_TEXT_EDITOR_ZOOM_MAX, AX_TEXT_EDITOR_ZOOM_MIN, AX_TEXT_EDITOR_ZOOM_PRESETS, canRunTextEditorCommand, createTextEditorExtensions, isTextEditorCommandActive, runTextEditorCommand };
|
|
296
|
+
export type { AXTextEditorCommandAttrs, AXTextEditorCommandType, AXTextEditorHostBridge, AXTextEditorOutputFormat, AXTextEditorRecentColor, AXTextEditorValue };
|