@fabio.buscaroli/scm-utils 22.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -0
- package/fesm2022/abv-scm-utils-core.mjs +3293 -0
- package/fesm2022/abv-scm-utils-core.mjs.map +1 -0
- package/fesm2022/abv-scm-utils-tinymce.mjs +230 -0
- package/fesm2022/abv-scm-utils-tinymce.mjs.map +1 -0
- package/fesm2022/abv-scm-utils-ui.application.mjs +3396 -0
- package/fesm2022/abv-scm-utils-ui.application.mjs.map +1 -0
- package/fesm2022/abv-scm-utils-ui.mjs +3060 -0
- package/fesm2022/abv-scm-utils-ui.mjs.map +1 -0
- package/fesm2022/abv-scm-utils-ui.oauth.mjs +278 -0
- package/fesm2022/abv-scm-utils-ui.oauth.mjs.map +1 -0
- package/fesm2022/abv-scm-utils.mjs +13 -0
- package/fesm2022/abv-scm-utils.mjs.map +1 -0
- package/fesm2022/fabio.buscaroli-scm-utils-core.mjs +3293 -0
- package/fesm2022/fabio.buscaroli-scm-utils-core.mjs.map +1 -0
- package/fesm2022/fabio.buscaroli-scm-utils-tinymce.mjs +230 -0
- package/fesm2022/fabio.buscaroli-scm-utils-tinymce.mjs.map +1 -0
- package/fesm2022/fabio.buscaroli-scm-utils-ui.application.mjs +3396 -0
- package/fesm2022/fabio.buscaroli-scm-utils-ui.application.mjs.map +1 -0
- package/fesm2022/fabio.buscaroli-scm-utils-ui.mjs +3060 -0
- package/fesm2022/fabio.buscaroli-scm-utils-ui.mjs.map +1 -0
- package/fesm2022/fabio.buscaroli-scm-utils-ui.oauth.mjs +278 -0
- package/fesm2022/fabio.buscaroli-scm-utils-ui.oauth.mjs.map +1 -0
- package/fesm2022/fabio.buscaroli-scm-utils.mjs +13 -0
- package/fesm2022/fabio.buscaroli-scm-utils.mjs.map +1 -0
- package/package.json +58 -0
- package/styles/ui.colors.scss +77 -0
- package/styles/ui.scss +350 -0
- package/tinymce/README.md +12 -0
- package/tinymce/langs/it.js +466 -0
- package/types/abv-scm-utils-core.d.ts +1536 -0
- package/types/abv-scm-utils-tinymce.d.ts +59 -0
- package/types/abv-scm-utils-ui.application.d.ts +1504 -0
- package/types/abv-scm-utils-ui.d.ts +1393 -0
- package/types/abv-scm-utils-ui.oauth.d.ts +68 -0
- package/types/abv-scm-utils.d.ts +4 -0
- package/types/fabio.buscaroli-scm-utils-core.d.ts +1536 -0
- package/types/fabio.buscaroli-scm-utils-tinymce.d.ts +59 -0
- package/types/fabio.buscaroli-scm-utils-ui.application.d.ts +1504 -0
- package/types/fabio.buscaroli-scm-utils-ui.d.ts +1393 -0
- package/types/fabio.buscaroli-scm-utils-ui.oauth.d.ts +68 -0
- package/types/fabio.buscaroli-scm-utils.d.ts +4 -0
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
|
|
3
|
+
declare class TinymceUtils {
|
|
4
|
+
/** URL of the TinyMCE script hosted on the Tiny Cloud CDN. */
|
|
5
|
+
static readonly CDN_URL = "https://cdn.tiny.cloud/1/5lnoc6ohmpjau6zyzgqyhyf52cueoennkcs8v1yfoak57ku9/tinymce/7/tinymce.min.js";
|
|
6
|
+
/** URL of the locally bundled TinyMCE script. */
|
|
7
|
+
static readonly LOCAL_URL = "/assets/tinymce/tinymce.min.js";
|
|
8
|
+
/**
|
|
9
|
+
* Full-featured TinyMCE base configuration with all standard plugins and toolbar.
|
|
10
|
+
*/
|
|
11
|
+
static TinymceConfig: Record<string, any>;
|
|
12
|
+
/**
|
|
13
|
+
* Compact TinyMCE configuration with autoresize, bottom toolbar, and grouped toolbar buttons.
|
|
14
|
+
* Extends `TinymceConfig` with reduced height and a simplified toolbar.
|
|
15
|
+
*/
|
|
16
|
+
static TinymceCompactConfig: Record<string, any>;
|
|
17
|
+
/**
|
|
18
|
+
* Extended compact TinyMCE configuration that adds fullscreen support and an insert group.
|
|
19
|
+
* Extends `TinymceCompactConfig`.
|
|
20
|
+
*/
|
|
21
|
+
static TinymceCompactExtendedConfig: Record<string, any>;
|
|
22
|
+
/**
|
|
23
|
+
* Inject the TinyMCE script tag into the document head if it is not already present.
|
|
24
|
+
* @param useCDN - When `true`, loads from the Tiny Cloud CDN; otherwise uses the local asset.
|
|
25
|
+
*/
|
|
26
|
+
static loadTinyMCEScript(useCDN?: boolean): void;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
interface FullScreenEditorDialogData {
|
|
30
|
+
text: string;
|
|
31
|
+
configuration: Record<string, any>;
|
|
32
|
+
infoButtonLabel?: string;
|
|
33
|
+
onShowInfo?: Function;
|
|
34
|
+
disabled?: boolean;
|
|
35
|
+
useCDN?: boolean;
|
|
36
|
+
}
|
|
37
|
+
declare class FullScreenEditorComponent {
|
|
38
|
+
/** Emitted with the edited text when the user saves. */
|
|
39
|
+
readonly saving: _angular_core.OutputEmitterRef<string>;
|
|
40
|
+
private readonly dialogRef;
|
|
41
|
+
/** Dialog configuration, injected and exposed as a signal. */
|
|
42
|
+
protected readonly dialogData: _angular_core.WritableSignal<FullScreenEditorDialogData>;
|
|
43
|
+
/** Whether the editor is in read-only mode. */
|
|
44
|
+
protected readonly disabled: _angular_core.WritableSignal<boolean>;
|
|
45
|
+
/** Current editor content, kept as a plain field for [(ngModel)] two-way binding. */
|
|
46
|
+
protected text: string;
|
|
47
|
+
/** TinyMCE editor configuration. */
|
|
48
|
+
protected tinymceConfig: Record<string, any>;
|
|
49
|
+
constructor();
|
|
50
|
+
/**
|
|
51
|
+
* Save the current editor content and close the dialog.
|
|
52
|
+
*/
|
|
53
|
+
protected ok(): void;
|
|
54
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FullScreenEditorComponent, never>;
|
|
55
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FullScreenEditorComponent, "ng-component", never, {}, { "saving": "saving"; }, never, never, true, never>;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export { FullScreenEditorComponent, TinymceUtils };
|
|
59
|
+
export type { FullScreenEditorDialogData };
|