@arsedizioni/ars-utils 22.6.86 → 22.6.88

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. package/fesm2022/arsedizioni-ars-utils-clipper.common.mjs +3158 -3344
  2. package/fesm2022/arsedizioni-ars-utils-clipper.common.mjs.map +1 -1
  3. package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs +7616 -4772
  4. package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs.map +1 -1
  5. package/fesm2022/arsedizioni-ars-utils-core.date.mjs +321 -702
  6. package/fesm2022/arsedizioni-ars-utils-core.date.mjs.map +1 -1
  7. package/fesm2022/arsedizioni-ars-utils-core.markdown.mjs +445 -590
  8. package/fesm2022/arsedizioni-ars-utils-core.markdown.mjs.map +1 -1
  9. package/fesm2022/arsedizioni-ars-utils-core.mjs +1735 -2370
  10. package/fesm2022/arsedizioni-ars-utils-core.mjs.map +1 -1
  11. package/fesm2022/arsedizioni-ars-utils-core.validators.mjs +1280 -1470
  12. package/fesm2022/arsedizioni-ars-utils-core.validators.mjs.map +1 -1
  13. package/fesm2022/arsedizioni-ars-utils-evolution.common.mjs +1097 -1528
  14. package/fesm2022/arsedizioni-ars-utils-evolution.common.mjs.map +1 -1
  15. package/fesm2022/arsedizioni-ars-utils-support.common.mjs +198 -294
  16. package/fesm2022/arsedizioni-ars-utils-support.common.mjs.map +1 -1
  17. package/fesm2022/arsedizioni-ars-utils-ui.controls.date.mjs +115 -117
  18. package/fesm2022/arsedizioni-ars-utils-ui.controls.date.mjs.map +1 -1
  19. package/fesm2022/arsedizioni-ars-utils-ui.controls.mjs +1607 -613
  20. package/fesm2022/arsedizioni-ars-utils-ui.controls.mjs.map +1 -1
  21. package/fesm2022/arsedizioni-ars-utils-ui.controls.tree.mjs +840 -367
  22. package/fesm2022/arsedizioni-ars-utils-ui.controls.tree.mjs.map +1 -1
  23. package/fesm2022/arsedizioni-ars-utils-ui.dialogs.auth.mjs +1634 -651
  24. package/fesm2022/arsedizioni-ars-utils-ui.dialogs.auth.mjs.map +1 -1
  25. package/fesm2022/arsedizioni-ars-utils-ui.dialogs.mjs +1255 -792
  26. package/fesm2022/arsedizioni-ars-utils-ui.dialogs.mjs.map +1 -1
  27. package/fesm2022/arsedizioni-ars-utils-ui.dialogs.prompt.mjs +1410 -357
  28. package/fesm2022/arsedizioni-ars-utils-ui.dialogs.prompt.mjs.map +1 -1
  29. package/fesm2022/arsedizioni-ars-utils-ui.dialogs.select.mjs +2401 -944
  30. package/fesm2022/arsedizioni-ars-utils-ui.dialogs.select.mjs.map +1 -1
  31. package/fesm2022/arsedizioni-ars-utils-ui.files.mjs +1553 -741
  32. package/fesm2022/arsedizioni-ars-utils-ui.files.mjs.map +1 -1
  33. package/fesm2022/arsedizioni-ars-utils-ui.filters.mjs +901 -430
  34. package/fesm2022/arsedizioni-ars-utils-ui.filters.mjs.map +1 -1
  35. package/fesm2022/arsedizioni-ars-utils-ui.help.mjs +737 -530
  36. package/fesm2022/arsedizioni-ars-utils-ui.help.mjs.map +1 -1
  37. package/fesm2022/arsedizioni-ars-utils-ui.mjs +6638 -1755
  38. package/fesm2022/arsedizioni-ars-utils-ui.mjs.map +1 -1
  39. package/fesm2022/arsedizioni-ars-utils-ui.navigation.mjs +1479 -1207
  40. package/fesm2022/arsedizioni-ars-utils-ui.navigation.mjs.map +1 -1
  41. package/fesm2022/arsedizioni-ars-utils-ui.notifications.mjs +1003 -270
  42. package/fesm2022/arsedizioni-ars-utils-ui.notifications.mjs.map +1 -1
  43. package/fesm2022/arsedizioni-ars-utils-ui.oauth.mjs +497 -278
  44. package/fesm2022/arsedizioni-ars-utils-ui.oauth.mjs.map +1 -1
  45. package/fesm2022/arsedizioni-ars-utils-ui.paginator.mjs +48 -52
  46. package/fesm2022/arsedizioni-ars-utils-ui.paginator.mjs.map +1 -1
  47. package/fesm2022/arsedizioni-ars-utils-ui.shell.mjs +464 -704
  48. package/fesm2022/arsedizioni-ars-utils-ui.shell.mjs.map +1 -1
  49. package/fesm2022/arsedizioni-ars-utils-ui.tinymce.mjs +724 -657
  50. package/fesm2022/arsedizioni-ars-utils-ui.tinymce.mjs.map +1 -1
  51. package/fesm2022/arsedizioni-ars-utils.mjs +3 -19
  52. package/fesm2022/arsedizioni-ars-utils.mjs.map +1 -1
  53. package/package.json +1 -1
  54. package/types/arsedizioni-ars-utils-clipper.common.d.ts +1151 -1163
  55. package/types/arsedizioni-ars-utils-clipper.ui.d.ts +1588 -1426
  56. package/types/arsedizioni-ars-utils-core.d.ts +1169 -1172
  57. package/types/arsedizioni-ars-utils-core.date.d.ts +204 -208
  58. package/types/arsedizioni-ars-utils-core.markdown.d.ts +128 -126
  59. package/types/arsedizioni-ars-utils-core.validators.d.ts +270 -236
  60. package/types/arsedizioni-ars-utils-evolution.common.d.ts +1054 -1067
  61. package/types/arsedizioni-ars-utils-support.common.d.ts +225 -234
  62. package/types/arsedizioni-ars-utils-ui.controls.d.ts +440 -278
  63. package/types/arsedizioni-ars-utils-ui.controls.date.d.ts +24 -28
  64. package/types/arsedizioni-ars-utils-ui.controls.tree.d.ts +172 -136
  65. package/types/arsedizioni-ars-utils-ui.d.ts +2035 -821
  66. package/types/arsedizioni-ars-utils-ui.dialogs.auth.d.ts +327 -322
  67. package/types/arsedizioni-ars-utils-ui.dialogs.d.ts +343 -347
  68. package/types/arsedizioni-ars-utils-ui.dialogs.prompt.d.ts +167 -167
  69. package/types/arsedizioni-ars-utils-ui.dialogs.select.d.ts +373 -367
  70. package/types/arsedizioni-ars-utils-ui.files.d.ts +335 -283
  71. package/types/arsedizioni-ars-utils-ui.filters.d.ts +232 -160
  72. package/types/arsedizioni-ars-utils-ui.help.d.ts +204 -211
  73. package/types/arsedizioni-ars-utils-ui.navigation.d.ts +811 -646
  74. package/types/arsedizioni-ars-utils-ui.notifications.d.ts +74 -78
  75. package/types/arsedizioni-ars-utils-ui.oauth.d.ts +102 -62
  76. package/types/arsedizioni-ars-utils-ui.paginator.d.ts +19 -22
  77. package/types/arsedizioni-ars-utils-ui.shell.d.ts +376 -382
  78. package/types/arsedizioni-ars-utils-ui.tinymce.d.ts +244 -231
  79. package/types/arsedizioni-ars-utils.d.ts +1 -3
@@ -1,9 +1,7 @@
1
- import { RawEditorOptions, TinyMCE, Editor } from 'tinymce';
2
- import * as _angular_core from '@angular/core';
3
- import { OnInit, OnDestroy } from '@angular/core';
4
- import { ControlValueAccessor } from '@angular/forms';
5
- import * as _angular_forms_signals from '@angular/forms/signals';
6
-
1
+ import { Editor, RawEditorOptions, TinyMCE } from "tinymce";
2
+ import * as i0 from "@angular/core";
3
+ import { OnDestroy, OnInit } from "@angular/core";
4
+ import { ControlValueAccessor } from "@angular/forms";
7
5
  /**
8
6
  * The editor profiles the applications ask for, ready to be handed to
9
7
  * `[tinymceConfig]` on {@link TinymceEditorDirective}.
@@ -23,46 +21,45 @@ import * as _angular_forms_signals from '@angular/forms/signals';
23
21
  * Each accessor returns a **fresh deep copy**: a caller that tweaks a returned object — as the
24
22
  * editor dialog does with its toolbar — cannot corrupt the preset for everyone else.
25
23
  */
26
- declare class TinymceUtils {
27
- /**
28
- * Everything TinyMCE 8 open source has to offer, for a full-page editor.
29
- *
30
- * Adapted from the TinyMCE 5 profile the library used to ship: `paste`, `print`, `hr`,
31
- * `textpattern` and the `fullpage_*` options no longer exist (paste and text patterns moved
32
- * into the core, `fullpage` and `print` were dropped in v6), and `checklist`,
33
- * `openCodeMirrorButton` and `insertMediaButton` are premium or application-specific buttons
34
- * that a self-hosted GPL build has no way to render.
35
- */
36
- private static readonly FULL;
37
- /**
38
- * The one for a field inside a form: it grows with the text instead of owning the page, the
39
- * toolbar sits under it and collapses into groups, and there is no status bar or context menu
40
- * to compete with the form around it.
41
- */
42
- private static readonly COMPACT;
43
- /** The compact one plus full screen, the insert group and the source view. */
44
- private static readonly COMPACT_EXTENDED;
45
- /**
46
- * The full-page profile.
47
- * @returns A fresh copy of the configuration, safe to modify.
48
- */
49
- static get TinymceConfig(): RawEditorOptions;
50
- /**
51
- * The in-form profile.
52
- * @returns A fresh copy of the configuration, safe to modify.
53
- */
54
- static get TinymceCompactConfig(): RawEditorOptions;
55
- /**
56
- * The in-form profile with full screen and source view.
57
- * @returns A fresh copy of the configuration, safe to modify.
58
- */
59
- static get TinymceCompactExtendedConfig(): RawEditorOptions;
24
+ export declare class TinymceUtils {
25
+ /**
26
+ * Everything TinyMCE 8 open source has to offer, for a full-page editor.
27
+ *
28
+ * Adapted from the TinyMCE 5 profile the library used to ship: `paste`, `print`, `hr`,
29
+ * `textpattern` and the `fullpage_*` options no longer exist (paste and text patterns moved
30
+ * into the core, `fullpage` and `print` were dropped in v6), and `checklist`,
31
+ * `openCodeMirrorButton` and `insertMediaButton` are premium or application-specific buttons
32
+ * that a self-hosted GPL build has no way to render.
33
+ */
34
+ private static readonly FULL;
35
+ /**
36
+ * The one for a field inside a form: it grows with the text instead of owning the page, the
37
+ * toolbar sits under it and collapses into groups, and there is no status bar or context menu
38
+ * to compete with the form around it.
39
+ */
40
+ private static readonly COMPACT;
41
+ /** The compact one plus full screen, the insert group and the source view. */
42
+ private static readonly COMPACT_EXTENDED;
43
+ /**
44
+ * The full-page profile.
45
+ * @returns A fresh copy of the configuration, safe to modify.
46
+ */
47
+ static get TinymceConfig(): RawEditorOptions;
48
+ /**
49
+ * The in-form profile.
50
+ * @returns A fresh copy of the configuration, safe to modify.
51
+ */
52
+ static get TinymceCompactConfig(): RawEditorOptions;
53
+ /**
54
+ * The in-form profile with full screen and source view.
55
+ * @returns A fresh copy of the configuration, safe to modify.
56
+ */
57
+ static get TinymceCompactExtendedConfig(): RawEditorOptions;
60
58
  }
61
-
62
59
  declare global {
63
- interface Window {
64
- tinymce?: TinyMCE;
65
- }
60
+ interface Window {
61
+ tinymce?: TinyMCE;
62
+ }
66
63
  }
67
64
  /**
68
65
  * Loads the self-hosted TinyMCE bundle on demand.
@@ -75,26 +72,25 @@ declare global {
75
72
  * model, plugins and skin relative to `base_url`, which is how the self-hosted distribution
76
73
  * expects to work.
77
74
  */
78
- declare class TinymceLoaderService {
79
- /** The in-flight (or completed) load, so concurrent editors share a single script tag. */
80
- private pending?;
81
- /**
82
- * The absolute URL of the TinyMCE asset folder, resolved against the document base href so the
83
- * app keeps working when it is served from a sub-path.
84
- * @returns The base URL, without a trailing slash.
85
- */
86
- get baseUrl(): string;
87
- /**
88
- * Loads TinyMCE, reusing the script already injected by a previous call.
89
- * @returns A promise resolving with the global TinyMCE instance.
90
- */
91
- load(): Promise<TinyMCE>;
92
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<TinymceLoaderService, never>;
93
- static ɵprov: _angular_core.ɵɵInjectableDeclaration<any>;
75
+ export declare class TinymceLoaderService {
76
+ /** The in-flight (or completed) load, so concurrent editors share a single script tag. */
77
+ private pending?;
78
+ /**
79
+ * The absolute URL of the TinyMCE asset folder, resolved against the document base href so the
80
+ * app keeps working when it is served from a sub-path.
81
+ * @returns The base URL, without a trailing slash.
82
+ */
83
+ get baseUrl(): string;
84
+ /**
85
+ * Loads TinyMCE, reusing the script already injected by a previous call.
86
+ * @returns A promise resolving with the global TinyMCE instance.
87
+ */
88
+ load(): Promise<TinyMCE>;
89
+ static ɵfac: i0.ɵɵFactoryDeclaration<TinymceLoaderService, never>;
90
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
94
91
  }
95
-
96
92
  /** Uploads one image and resolves with the URL to reference it by. */
97
- type TinymceImageUploader = (file: File) => Promise<string>;
93
+ export type TinymceImageUploader = (file: File) => Promise<string>;
98
94
  /**
99
95
  * How the editor presents itself.
100
96
  *
@@ -105,7 +101,7 @@ type TinymceImageUploader = (file: File) => Promise<string>;
105
101
  * it, at which point the toolbar floats over the content. It needs an ordinary element to edit —
106
102
  * a `<div>` — because there is nothing to render inside a `<textarea>`.
107
103
  */
108
- type TinymceToolbarMode = 'fixed' | 'inline';
104
+ export type TinymceToolbarMode = 'fixed' | 'inline';
109
105
  /**
110
106
  * Turns a `<textarea>` into a rich text editor backed by the self-hosted TinyMCE bundle, and wires
111
107
  * it to Angular forms as a `ControlValueAccessor`, so `[(ngModel)]`, `required` and the
@@ -117,131 +113,149 @@ type TinymceToolbarMode = 'fixed' | 'inline';
117
113
  * Usage: `<textarea tinymceEditor [(ngModel)]="item.text" name="text" required></textarea>`
118
114
  *
119
115
  */
120
- declare class TinymceEditorDirective implements ControlValueAccessor, OnInit, OnDestroy {
121
- /** Extra TinyMCE options, merged over (and able to override) the defaults below. */
122
- readonly tinymceConfig: _angular_core.InputSignal<RawEditorOptions>;
123
- /** Whether the toolbar is pinned above the content (`fixed`) or floats on focus (`inline`). */
124
- readonly tinymceToolbarMode: _angular_core.InputSignal<TinymceToolbarMode>;
125
- /**
126
- * Handler invoked for every image dropped, pasted or picked in the editor. When not provided
127
- * the upload tab is hidden and only images referenced by URL can be inserted.
128
- */
129
- readonly tinymceImageUploader: _angular_core.InputSignal<TinymceImageUploader>;
130
- /** Emitted once the editor is up, for callers that want to enable UI only when it is usable. */
131
- readonly ready: _angular_core.OutputEmitterRef<Editor>;
132
- /** Emitted when the editor could not be loaded or initialised. */
133
- readonly failed: _angular_core.OutputEmitterRef<Error>;
134
- private readonly host;
135
- private readonly loader;
136
- private readonly themeService;
137
- private readonly changeDetector;
138
- private editor?;
139
- /** True while the editor is showing itself full screen. */
140
- private fullscreen;
141
- /** True once the directive has been destroyed, so a late init resolves into a no-op. */
142
- private destroyed;
143
- /**
144
- * True while the directive itself is pushing a value into the editor. TinyMCE raises the same
145
- * content events for a programmatic `setContent` as for a keystroke, so without this flag
146
- * `writeValue` would immediately echo back through `onChange` and mark a freshly loaded form
147
- * as dirty.
148
- */
149
- private writingValue;
150
- /** The value received before the editor existed, applied as soon as it does. */
151
- private value;
152
- private disabled;
153
- private onChange;
154
- private onTouched;
155
- /**
156
- * Leaves full screen on Escape, for the keystrokes that happen outside the content: with the
157
- * classic editor the content is an iframe, and a keydown in there never reaches this document.
158
- * Bound on the capture phase and stopped, so a dialog hosting the editor does not take the
159
- * Escape and close, throwing the edit away when the user only meant to leave full screen.
160
- */
161
- private readonly onDocumentKeydown;
162
- /**
163
- * Loads TinyMCE and initialises the editor over the host textarea.
164
- * @returns A promise that completes once the editor is ready (or has failed).
165
- */
166
- ngOnInit(): Promise<void>;
167
- /**
168
- * Tears the editor down. TinyMCE keeps global state per instance, so leaving it behind when a
169
- * dialog closes leaks both DOM and editor registrations.
170
- * @returns void
171
- */
172
- ngOnDestroy(): void;
173
- /**
174
- * Decides whether an Escape press means "leave full screen": it does whenever the editor is
175
- * full screen, full stop. While full screen the editor owns Escape, and the press is stopped
176
- * here so it can never reach the dialog hosting it — leaving full screen must not also throw
177
- * away what is being written.
178
- * @param event The keyboard event, from the document or from the editor's content.
179
- * @returns True when full screen should be left.
180
- */
181
- private shouldEscapeLeaveFullscreen;
182
- /**
183
- * Asks the editor to leave full screen. Safe to call when it is not in full screen.
184
- * @returns void
185
- */
186
- private exitFullscreen;
187
- /**
188
- * Attaches or detaches everything that only makes sense while the editor is full screen.
189
- * @param state True when the editor has just entered full screen.
190
- * @returns void
191
- */
192
- private handleFullscreenChanged;
193
- /**
194
- * Detaches the listener that only makes sense while the editor is full screen.
195
- * @returns void
196
- */
197
- private releaseFullscreen;
198
- /**
199
- * Pushes a value coming from the form into the editor.
200
- * @param value The new content, or null/undefined for an empty editor.
201
- * @returns void
202
- */
203
- writeValue(value: string | null | undefined): void;
204
- /**
205
- * Registers the callback used to report content changes to the form.
206
- * @param fn The callback supplied by Angular forms.
207
- * @returns void
208
- */
209
- registerOnChange(fn: (value: string) => void): void;
210
- /**
211
- * Registers the callback used to report the first blur to the form.
212
- * @param fn The callback supplied by Angular forms.
213
- * @returns void
214
- */
215
- registerOnTouched(fn: () => void): void;
216
- /**
217
- * Enables or disables editing.
218
- * @param isDisabled True to switch the editor to read-only.
219
- * @returns void
220
- */
221
- setDisabledState(isDisabled: boolean): void;
222
- /**
223
- * Writes content into the editor when it exists, guarding against the echo described on
224
- * <see cref="writingValue"/>.
225
- * @param value The content to write.
226
- * @returns void
227
- */
228
- private applyValue;
229
- /**
230
- * Applies the disabled state to the editor when it exists.
231
- * @param isDisabled True to switch the editor to read-only.
232
- * @returns void
233
- */
234
- private applyDisabled;
235
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<TinymceEditorDirective, never>;
236
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<TinymceEditorDirective, "textarea[tinymceEditor], div[tinymceEditor]", never, { "tinymceConfig": { "alias": "tinymceConfig"; "required": false; "isSignal": true; }; "tinymceToolbarMode": { "alias": "tinymceToolbarMode"; "required": false; "isSignal": true; }; "tinymceImageUploader": { "alias": "tinymceImageUploader"; "required": false; "isSignal": true; }; }, { "ready": "ready"; "failed": "failed"; }, never, never, true, never>;
116
+ export declare class TinymceEditorDirective implements ControlValueAccessor, OnInit, OnDestroy {
117
+ /** Extra TinyMCE options, merged over (and able to override) the defaults below. */
118
+ readonly tinymceConfig: import("@angular/core").InputSignal<RawEditorOptions>;
119
+ /** Whether the toolbar is pinned above the content (`fixed`) or floats on focus (`inline`). */
120
+ readonly tinymceToolbarMode: import("@angular/core").InputSignal<TinymceToolbarMode>;
121
+ /**
122
+ * Handler invoked for every image dropped, pasted or picked in the editor. When not provided
123
+ * the upload tab is hidden and only images referenced by URL can be inserted.
124
+ */
125
+ readonly tinymceImageUploader: import("@angular/core").InputSignal<TinymceImageUploader>;
126
+ /** Emitted once the editor is up, for callers that want to enable UI only when it is usable. */
127
+ readonly ready: import("@angular/core").OutputEmitterRef<Editor>;
128
+ /** Emitted when the editor could not be loaded or initialised. */
129
+ readonly failed: import("@angular/core").OutputEmitterRef<Error>;
130
+ private readonly host;
131
+ private readonly loader;
132
+ private readonly themeService;
133
+ private readonly changeDetector;
134
+ private editor?;
135
+ /** True while the editor is showing itself full screen. */
136
+ private fullscreen;
137
+ /** True once the directive has been destroyed, so a late init resolves into a no-op. */
138
+ private destroyed;
139
+ /**
140
+ * True while the directive itself is pushing a value into the editor. TinyMCE raises the same
141
+ * content events for a programmatic `setContent` as for a keystroke, so without this flag
142
+ * `writeValue` would immediately echo back through `onChange` and mark a freshly loaded form
143
+ * as dirty.
144
+ */
145
+ private writingValue;
146
+ /** The value received before the editor existed, applied as soon as it does. */
147
+ private value;
148
+ private disabled;
149
+ private onChange;
150
+ private onTouched;
151
+ /**
152
+ * Leaves full screen on Escape, for the keystrokes that happen outside the content: with the
153
+ * classic editor the content is an iframe, and a keydown in there never reaches this document.
154
+ * Bound on the capture phase and stopped, so a dialog hosting the editor does not take the
155
+ * Escape and close, throwing the edit away when the user only meant to leave full screen.
156
+ */
157
+ private readonly onDocumentKeydown;
158
+ /**
159
+ * Loads TinyMCE and initialises the editor over the host textarea.
160
+ * @returns A promise that completes once the editor is ready (or has failed).
161
+ */
162
+ ngOnInit(): Promise<void>;
163
+ /**
164
+ * Tears the editor down. TinyMCE keeps global state per instance, so leaving it behind when a
165
+ * dialog closes leaks both DOM and editor registrations.
166
+ * @returns void
167
+ */
168
+ ngOnDestroy(): void;
169
+ /**
170
+ * Decides whether an Escape press means "leave full screen": it does whenever the editor is
171
+ * full screen, full stop. While full screen the editor owns Escape, and the press is stopped
172
+ * here so it can never reach the dialog hosting it — leaving full screen must not also throw
173
+ * away what is being written.
174
+ * @param event The keyboard event, from the document or from the editor's content.
175
+ * @returns True when full screen should be left.
176
+ */
177
+ private shouldEscapeLeaveFullscreen;
178
+ /**
179
+ * Asks the editor to leave full screen. Safe to call when it is not in full screen.
180
+ * @returns void
181
+ */
182
+ private exitFullscreen;
183
+ /**
184
+ * Attaches or detaches everything that only makes sense while the editor is full screen.
185
+ * @param state True when the editor has just entered full screen.
186
+ * @returns void
187
+ */
188
+ private handleFullscreenChanged;
189
+ /**
190
+ * Detaches the listener that only makes sense while the editor is full screen.
191
+ * @returns void
192
+ */
193
+ private releaseFullscreen;
194
+ /**
195
+ * Pushes a value coming from the form into the editor.
196
+ * @param value The new content, or null/undefined for an empty editor.
197
+ * @returns void
198
+ */
199
+ writeValue(value: string | null | undefined): void;
200
+ /**
201
+ * Registers the callback used to report content changes to the form.
202
+ * @param fn The callback supplied by Angular forms.
203
+ * @returns void
204
+ */
205
+ registerOnChange(fn: (value: string) => void): void;
206
+ /**
207
+ * Registers the callback used to report the first blur to the form.
208
+ * @param fn The callback supplied by Angular forms.
209
+ * @returns void
210
+ */
211
+ registerOnTouched(fn: () => void): void;
212
+ /**
213
+ * Enables or disables editing.
214
+ * @param isDisabled True to switch the editor to read-only.
215
+ * @returns void
216
+ */
217
+ setDisabledState(isDisabled: boolean): void;
218
+ /**
219
+ * Writes content into the editor when it exists, guarding against the echo described on
220
+ * <see cref="writingValue"/>.
221
+ * @param value The content to write.
222
+ * @returns void
223
+ */
224
+ private applyValue;
225
+ /**
226
+ * Applies the disabled state to the editor when it exists.
227
+ * @param isDisabled True to switch the editor to read-only.
228
+ * @returns void
229
+ */
230
+ private applyDisabled;
231
+ static ɵfac: i0.ɵɵFactoryDeclaration<TinymceEditorDirective, never>;
232
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TinymceEditorDirective, "textarea[tinymceEditor], div[tinymceEditor]", never, {
233
+ "tinymceConfig": {
234
+ "alias": "tinymceConfig";
235
+ "required": false;
236
+ "isSignal": true;
237
+ };
238
+ "tinymceToolbarMode": {
239
+ "alias": "tinymceToolbarMode";
240
+ "required": false;
241
+ "isSignal": true;
242
+ };
243
+ "tinymceImageUploader": {
244
+ "alias": "tinymceImageUploader";
245
+ "required": false;
246
+ "isSignal": true;
247
+ };
248
+ }, {
249
+ "ready": "ready";
250
+ "failed": "failed";
251
+ }, never, never, true, never>;
237
252
  }
238
-
239
- interface TinyMceEditorDialogData {
240
- text: string;
241
- configuration: RawEditorOptions;
242
- infoButtonLabel?: string;
243
- onShowInfo?: Function;
244
- disabled?: boolean;
253
+ export interface TinyMceEditorDialogData {
254
+ text: string;
255
+ configuration: RawEditorOptions;
256
+ infoButtonLabel?: string;
257
+ onShowInfo?: Function;
258
+ disabled?: boolean;
245
259
  }
246
260
  /**
247
261
  * A dialog that is nothing but an editor: the caller hands it a text and gets the edited one
@@ -251,47 +265,46 @@ interface TinyMceEditorDialogData {
251
265
  * exactly what any other editor in the application costs — the TinyMCE bundle is fetched on
252
266
  * first use and nothing about it reaches the initial chunk.
253
267
  */
254
- declare class TinyMceEditorComponent {
255
- /** Emitted with the edited text when the user saves. */
256
- readonly saving: _angular_core.OutputEmitterRef<string>;
257
- private readonly dialogRef;
258
- /** Dialog configuration, injected and exposed as a signal. */
259
- protected readonly dialogData: _angular_core.WritableSignal<TinyMceEditorDialogData>;
260
- /** Whether the editor is in read-only mode. */
261
- protected readonly disabled: _angular_core.WritableSignal<boolean>;
262
- /**
263
- * Why the editor could not be shown, when it could not.
264
- *
265
- * Without it a failure looked exactly like an empty document: the directive reported it on its
266
- * `failed` output, nothing was listening, and the user was left with a blank box and no reason
267
- * for it. The message is the directive's own — the bundle did not load, or TinyMCE refused to
268
- * start — and it also goes to the console, because that is where whoever is asked about it will
269
- * look first.
270
- */
271
- protected readonly error: _angular_core.WritableSignal<string>;
272
- /** Current editor content. */
273
- protected readonly text: _angular_core.WritableSignal<string>;
274
- /**
275
- * Signal form bound to the editor textarea. The disabled state is pushed to the
276
- * TinymceEditorDirective through the ControlValueAccessor interop.
277
- */
278
- protected readonly textForm: _angular_forms_signals.FieldTree<string, string | number, "writable">;
279
- /** The profile handed to the editor directive, merged over its defaults. */
280
- protected tinymceConfig: RawEditorOptions;
281
- constructor();
282
- /**
283
- * Records that the editor could not be shown.
284
- * @param error - What the directive could not do.
285
- * @returns void
286
- */
287
- protected failed(error: Error): void;
288
- /**
289
- * Save the current editor content and close the dialog.
290
- */
291
- protected ok(): void;
292
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<TinyMceEditorComponent, never>;
293
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<TinyMceEditorComponent, "ng-component", never, {}, { "saving": "saving"; }, never, never, true, never>;
294
- }
295
-
296
- export { TinyMceEditorComponent, TinymceEditorDirective, TinymceLoaderService, TinymceUtils };
297
- export type { TinyMceEditorDialogData, TinymceImageUploader, TinymceToolbarMode };
268
+ export declare class TinyMceEditorComponent {
269
+ /** Emitted with the edited text when the user saves. */
270
+ readonly saving: import("@angular/core").OutputEmitterRef<string>;
271
+ private readonly dialogRef;
272
+ /** Dialog configuration, injected and exposed as a signal. */
273
+ protected readonly dialogData: import("@angular/core").WritableSignal<TinyMceEditorDialogData>;
274
+ /** Whether the editor is in read-only mode. */
275
+ protected readonly disabled: import("@angular/core").WritableSignal<boolean>;
276
+ /**
277
+ * Why the editor could not be shown, when it could not.
278
+ *
279
+ * Without it a failure looked exactly like an empty document: the directive reported it on its
280
+ * `failed` output, nothing was listening, and the user was left with a blank box and no reason
281
+ * for it. The message is the directive's own — the bundle did not load, or TinyMCE refused to
282
+ * start — and it also goes to the console, because that is where whoever is asked about it will
283
+ * look first.
284
+ */
285
+ protected readonly error: import("@angular/core").WritableSignal<string>;
286
+ /** Current editor content. */
287
+ protected readonly text: import("@angular/core").WritableSignal<string>;
288
+ /**
289
+ * Signal form bound to the editor textarea. The disabled state is pushed to the
290
+ * TinymceEditorDirective through the ControlValueAccessor interop.
291
+ */
292
+ protected readonly textForm: import("@angular/forms/signals").FieldTree<string, string | number, "writable">;
293
+ /** The profile handed to the editor directive, merged over its defaults. */
294
+ protected tinymceConfig: RawEditorOptions;
295
+ constructor();
296
+ /**
297
+ * Records that the editor could not be shown.
298
+ * @param error - What the directive could not do.
299
+ * @returns void
300
+ */
301
+ protected failed(error: Error): void;
302
+ /**
303
+ * Save the current editor content and close the dialog.
304
+ */
305
+ protected ok(): void;
306
+ static ɵfac: i0.ɵɵFactoryDeclaration<TinyMceEditorComponent, never>;
307
+ static ɵcmp: i0.ɵɵComponentDeclaration<TinyMceEditorComponent, "ng-component", never, {}, {
308
+ "saving": "saving";
309
+ }, never, never, true, never>;
310
+ }
@@ -1,4 +1,2 @@
1
1
  /** Version of the library, aligned with the supported Angular major. */
2
- declare const ARS_UTILS_VERSION = "22.1.5";
3
-
4
- export { ARS_UTILS_VERSION };
2
+ export declare const ARS_UTILS_VERSION = "22.1.5";