@arsedizioni/ars-utils 21.0.11 → 21.0.13

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.
@@ -1,7 +1,6 @@
1
1
  import * as i0 from '@angular/core';
2
- import { output, signal, Input, ChangeDetectionStrategy, Component, inject, ApplicationRef, EnvironmentInjector, createComponent, Injectable, NgModule } from '@angular/core';
3
- import { DOCUMENT } from '@angular/common';
4
- import { Subject } from 'rxjs';
2
+ import { NgModule, output, inject, signal, ChangeDetectionStrategy, Component } from '@angular/core';
3
+ import { MatDialogRef, MAT_DIALOG_DATA, MatDialogContent, MatDialogActions, MatDialogClose } from '@angular/material/dialog';
5
4
  import { SystemUtils } from '@arsedizioni/ars-utils/core';
6
5
  import * as i3 from '@angular/material/button';
7
6
  import { MatButtonModule } from '@angular/material/button';
@@ -10,7 +9,6 @@ import { FlexModule } from '@ngbracket/ngx-layout/flex';
10
9
  import * as i1 from '@angular/forms';
11
10
  import { FormsModule } from '@angular/forms';
12
11
  import { EditorComponent } from '@tinymce/tinymce-angular';
13
- import { MatDialogRef, MAT_DIALOG_DATA, MatDialogContent, MatDialogActions, MatDialogClose } from '@angular/material/dialog';
14
12
 
15
13
  class TinymceUtils {
16
14
  static { this.CDN_URL = 'https://cdn.tiny.cloud/1/5lnoc6ohmpjau6zyzgqyhyf52cueoennkcs8v1yfoak57ku9/tinymce/7/tinymce.min.js'; }
@@ -180,98 +178,6 @@ class TinymceUtils {
180
178
  }
181
179
  }
182
180
 
183
- class FullScreenEditorNoDialogComponent {
184
- constructor() {
185
- this.saving = output();
186
- this.cancelling = output();
187
- this.disabled = signal(false, ...(ngDevMode ? [{ debugName: "disabled" }] : []));
188
- this.tinymceConfig = SystemUtils.clone(TinymceUtils.TinymceCompactExtendedConfig);
189
- }
190
- ngOnInit() {
191
- if (this.dialogData) {
192
- this.text = this.dialogData.text;
193
- if (this.dialogData.configuration) {
194
- this.tinymceConfig = this.dialogData.configuration;
195
- this.tinymceConfig.license_key = 'gpl';
196
- }
197
- this.disabled.set(this.dialogData.disabled);
198
- }
199
- this.tinymceConfig["toolbar"] = ['undo redo | formatgroup paragraphgroup insertgroup | code openCodeMirrorButton'];
200
- }
201
- /**
202
- * Save data
203
- */
204
- ok() {
205
- this.saving.emit(this.text);
206
- }
207
- /**
208
- * Close the panel without saving.
209
- * When hosted inside a MatDialog, this closes the dialog.
210
- */
211
- cancel() {
212
- this.cancelling.emit();
213
- }
214
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: FullScreenEditorNoDialogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
215
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.5", type: FullScreenEditorNoDialogComponent, isStandalone: true, selector: "ng-component", inputs: { dialogData: "dialogData" }, outputs: { saving: "saving", cancelling: "cancelling" }, ngImport: i0, template: "<!-- Fullscreen panel container (not a MatDialog). -->\r\n<div class=\"full-screen-panel\" fxLayout=\"column\" fxFill>\r\n\r\n <!-- Editor area: grows to fill available space. -->\r\n <div class=\"full-screen-panel__content\" fxFlex>\r\n <editor class=\"full-screen-editor\" [init]=\"tinymceConfig\" [disabled]=\"disabled()\" [(ngModel)]=\"text\"\r\n licenseKey=\"gpl\">\r\n </editor>\r\n </div>\r\n\r\n <!-- Footer actions: pinned to the bottom of the panel. -->\r\n <div class=\"full-screen-panel__actions\">\r\n <div fxLayout=\"row\" fxLayoutGap=\"10px\" fxLayoutAlign=\"start center\" fxFill>\r\n <div fxFlex=\"50\">\r\n @if(dialogData?.onShowInfo) {\r\n <button mat-stroked-button (click)=\"dialogData?.onShowInfo()\">\r\n {{dialogData?.infoButtonLabel ?? 'Informazioni'}}\r\n </button>\r\n }\r\n </div>\r\n <div fxFlex=\"50\" fxLayoutAlign=\"end\">\r\n <button mat-flat-button (click)=\"ok()\" style=\"margin-right:10px;\">Salva</button>\r\n <button mat-stroked-button (click)=\"cancel()\">Annulla</button>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n</div>", styles: [".full-screen-panel{position:fixed;inset:0;height:100vh;width:100vw;display:flex;flex-direction:column;background-color:var(--app-background-color, #f7faf8);z-index:1000}.full-screen-panel__content{padding:10px;min-height:0}.full-screen-panel__actions{padding:0 10px 10px}.full-screen-editor{height:100%!important}::ng-deep .full-screen-editor>.tox-tinymce{height:100%!important}\n"], dependencies: [{ kind: "component", type: EditorComponent, selector: "editor", inputs: ["cloudChannel", "apiKey", "licenseKey", "init", "id", "initialValue", "outputFormat", "inline", "tagName", "plugins", "toolbar", "modelEvents", "allowedEvents", "ignoreEvents", "readonly", "disabled"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: FlexModule }, { kind: "directive", type: i2.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i2.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { kind: "directive", type: i2.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { kind: "directive", type: i2.FlexFillDirective, selector: "[fxFill], [fxFlexFill]" }, { kind: "directive", type: i2.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i3.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
216
- }
217
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: FullScreenEditorNoDialogComponent, decorators: [{
218
- type: Component,
219
- args: [{ standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [EditorComponent, FormsModule, FlexModule, MatButtonModule], template: "<!-- Fullscreen panel container (not a MatDialog). -->\r\n<div class=\"full-screen-panel\" fxLayout=\"column\" fxFill>\r\n\r\n <!-- Editor area: grows to fill available space. -->\r\n <div class=\"full-screen-panel__content\" fxFlex>\r\n <editor class=\"full-screen-editor\" [init]=\"tinymceConfig\" [disabled]=\"disabled()\" [(ngModel)]=\"text\"\r\n licenseKey=\"gpl\">\r\n </editor>\r\n </div>\r\n\r\n <!-- Footer actions: pinned to the bottom of the panel. -->\r\n <div class=\"full-screen-panel__actions\">\r\n <div fxLayout=\"row\" fxLayoutGap=\"10px\" fxLayoutAlign=\"start center\" fxFill>\r\n <div fxFlex=\"50\">\r\n @if(dialogData?.onShowInfo) {\r\n <button mat-stroked-button (click)=\"dialogData?.onShowInfo()\">\r\n {{dialogData?.infoButtonLabel ?? 'Informazioni'}}\r\n </button>\r\n }\r\n </div>\r\n <div fxFlex=\"50\" fxLayoutAlign=\"end\">\r\n <button mat-flat-button (click)=\"ok()\" style=\"margin-right:10px;\">Salva</button>\r\n <button mat-stroked-button (click)=\"cancel()\">Annulla</button>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n</div>", styles: [".full-screen-panel{position:fixed;inset:0;height:100vh;width:100vw;display:flex;flex-direction:column;background-color:var(--app-background-color, #f7faf8);z-index:1000}.full-screen-panel__content{padding:10px;min-height:0}.full-screen-panel__actions{padding:0 10px 10px}.full-screen-editor{height:100%!important}::ng-deep .full-screen-editor>.tox-tinymce{height:100%!important}\n"] }]
220
- }], propDecorators: { saving: [{ type: i0.Output, args: ["saving"] }], cancelling: [{ type: i0.Output, args: ["cancelling"] }], dialogData: [{
221
- type: Input
222
- }] } });
223
-
224
- class FullScreenEditorNoDialogService {
225
- constructor() {
226
- this.appRef = inject(ApplicationRef);
227
- this.envInjector = inject(EnvironmentInjector);
228
- this.document = inject(DOCUMENT);
229
- }
230
- /**
231
- * Creates a fullscreen editor panel by dynamically creating the component and
232
- * attaching it to document.body. No MatDialog / CDK Overlay is used.
233
- *
234
- * Resolves/emits:
235
- * - saved text when user clicks OK
236
- * - undefined when user clicks Cancel
237
- */
238
- openEditor(params) {
239
- const result$ = new Subject();
240
- const componentRef = createComponent(FullScreenEditorNoDialogComponent, {
241
- environmentInjector: this.envInjector
242
- });
243
- componentRef.instance.dialogData = params;
244
- const nativeElement = componentRef.location.nativeElement;
245
- this.document.body.appendChild(nativeElement);
246
- this.appRef.attachView(componentRef.hostView);
247
- const cleanup = () => {
248
- this.appRef.detachView(componentRef.hostView);
249
- componentRef.destroy();
250
- };
251
- const sub1 = componentRef.instance.saving.subscribe((text) => {
252
- result$.next(text);
253
- result$.complete();
254
- sub1.unsubscribe();
255
- sub2.unsubscribe();
256
- cleanup();
257
- });
258
- const sub2 = componentRef.instance.cancelling.subscribe(() => {
259
- result$.next(undefined);
260
- result$.complete();
261
- sub1.unsubscribe();
262
- sub2.unsubscribe();
263
- cleanup();
264
- });
265
- return result$.asObservable();
266
- }
267
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: FullScreenEditorNoDialogService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
268
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: FullScreenEditorNoDialogService, providedIn: 'root' }); }
269
- }
270
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: FullScreenEditorNoDialogService, decorators: [{
271
- type: Injectable,
272
- args: [{ providedIn: 'root' }]
273
- }] });
274
-
275
181
  class ArsTinyMceModule {
276
182
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: ArsTinyMceModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
277
183
  static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.0.5", ngImport: i0, type: ArsTinyMceModule }); }
@@ -327,5 +233,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImpor
327
233
  * Generated bundle index. Do not edit.
328
234
  */
329
235
 
330
- export { ArsTinyMceModule, FullScreenEditorComponent, FullScreenEditorNoDialogComponent, FullScreenEditorNoDialogService, TinymceUtils };
236
+ export { ArsTinyMceModule, FullScreenEditorComponent, TinymceUtils };
331
237
  //# sourceMappingURL=arsedizioni-ars-utils-tinymce.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"arsedizioni-ars-utils-tinymce.mjs","sources":["../../../projects/ars-utils/tinymce/utils.ts","../../../projects/ars-utils/tinymce/full-screen-editor-nodialog/full-screen-editor-nodialog.component.ts","../../../projects/ars-utils/tinymce/full-screen-editor-nodialog/full-screen-editor-nodialog.component.html","../../../projects/ars-utils/tinymce/full-screen-editor-nodialog/full-screen-editor-nodialog.service.ts","../../../projects/ars-utils/tinymce/tinymce.module.ts","../../../projects/ars-utils/tinymce/full-screen-editor/full-screen-editor.component.ts","../../../projects/ars-utils/tinymce/full-screen-editor/full-screen-editor.component.html","../../../projects/ars-utils/tinymce/public_api.ts","../../../projects/ars-utils/tinymce/arsedizioni-ars-utils-tinymce.ts"],"sourcesContent":["export class TinymceUtils {\r\n static readonly CDN_URL = 'https://cdn.tiny.cloud/1/5lnoc6ohmpjau6zyzgqyhyf52cueoennkcs8v1yfoak57ku9/tinymce/7/tinymce.min.js';\r\n static readonly LOCAL_URL = '/assets/tinymce/tinymce.min.js';\r\n\r\n /**\r\n * Configurazione di base per TinyMCE editor\r\n */\r\n static TinymceConfig: Record<string, any> = {\r\n base_url: 'assets/tinymce',\r\n suffix: '.min',\r\n license_key: 'gpl', // per evitare il warning riportarla direttamente nell'html: <editor licenseKey=\"gpl\" ...></editor>\r\n language: 'it',\r\n language_url: \"assets/tinymce/langs/it.js\",\r\n height: 500,\r\n width: '100%',\r\n min_height: 250,\r\n ui_mode: 'split',\r\n onboarding: false,\r\n branding: false,\r\n convert_urls: false,\r\n quickbars_insert_toolbar: false,\r\n quickbars_selection_toolbar: 'removeformat | bold italic | superscript subscript | quicklink h2 h3 blockquote',\r\n fullpage_default_doctype: '<!DOCTYPE html>',\r\n fullpage_default_encoding: 'UTF-8',\r\n fullpage_default_font_family: '\\'Helvetica Neue\\', sans-serif', // '\\'Times New Roman\\', Georgia, Serif',\r\n fullpage_default_xml_pi: false,\r\n fullpage_hide_in_source_view: false,\r\n browser_spellcheck: true,\r\n spellchecker_language: 'it_IT',\r\n save_enablewhendirty: true,\r\n custom_undo_redo_levels: 50,\r\n nonbreaking_force_tab: true, // inserisce 3 &nbsp; per ogni pressione di TAB\r\n nonbreaking_wrap: false,\r\n help_tabs: ['shortcuts', 'keyboardnav', 'versions'],\r\n plugins: 'advlist anchor autolink autosave charmap code fullscreen help hr image insertdatetime link lists media table nonbreaking paste preview print quickbars searchreplace textpattern visualblocks visualchars',\r\n menubar: false,\r\n skin: window.matchMedia(\"(prefers-color-scheme: dark)\").matches ? \"oxide-dark\" : \"oxide\",\r\n content_css: window.matchMedia(\"(prefers-color-scheme: dark)\").matches ? \"dark\" : \"default\",\r\n toolbar: [\r\n 'fullscreen | undo redo searchreplace | code openCodeMirrorButton preview fullpage | link image media insertMediaButton charmap nonbreaking | table tableprops tabledelete',\r\n 'bold italic superscript subscript forecolor backcolor | alignleft aligncenter alignright alignjustify | removeformat | bullist numlist checklist'\r\n ],\r\n style_formats: [\r\n {\r\n title: 'Immagini float', items: [\r\n {\r\n title: 'Immagine a SX',\r\n selector: 'img',\r\n styles: { float: 'left', margin: '0 10px 0 10px' }\r\n },\r\n {\r\n title: 'Immagine a DX',\r\n selector: 'img',\r\n styles: { float: 'right', margin: '0 10px 0 10px' }\r\n }\r\n ]\r\n },\r\n {\r\n title: 'Formati', items: [\r\n { title: 'Grassetto', format: 'bold' },\r\n { title: 'Corsivo', format: 'italic' },\r\n { title: 'Sottolineato', format: 'underline' },\r\n { title: 'Barrato', format: 'strikethrough' },\r\n { title: 'Superscript', format: 'superscript' },\r\n { title: 'Subscript', format: 'subscript' },\r\n { title: 'Codice', format: 'code' }\r\n ]\r\n }],\r\n formats: {\r\n underline: { inline: 'span', styles: { 'text-decoration': 'underline' }, exact: true },\r\n strikethrough: { inline: 'span', styles: { 'text-decoration': 'line-through' }, exact: true }\r\n },\r\n insertdatetime_formats: ['%d/%m/%Y', '%d %b %Y', '%A, %d %B %Y'],\r\n link_default_target: '_blank',\r\n link_title: true,\r\n link_assume_external_targets: 'https',\r\n link_class_list: [\r\n { title: 'Nessuno', value: '' },\r\n { title: 'Rilevante', value: 'relevant' },\r\n ],\r\n link_context_toolbar: true,\r\n link_list: [\r\n { title: 'Ars Edizioni', value: 'https://www.arsedizioni.it' },\r\n { title: 'Ars Edizioni - Corsi', value: 'https://www.arsedizioni.it/Events' },\r\n { title: 'Clipper', value: 'https://clipper.arsedizioni.it' },\r\n { title: 'Registro', value: 'https://registro.arsedizioni.it' },\r\n { title: 'Ars EVO', value: 'https://evolution.arsedizioni.it' },\r\n { title: 'DG Info', value: 'https://dginfo.arsedizioni.it' },\r\n { title: 'Lavoro e Ambiente', value: 'https://lavoroeambiente.arsedizioni.it' },\r\n { title: 'Sostanze Alimentari', value: 'https://sostanzealimentari.arsedizioni.it' },\r\n { title: 'OrangeNews', value: 'https://orangenews.arsedizioni.it' },\r\n { title: 'MyARS', value: 'https://my.arsedizioni.it' },\r\n { title: 'Canale Youtube Ars', value: 'https://www.youtube.com/user/ARSEDZ' },\r\n // { title: 'My page 2', value: 'https://about.tiny.cloud' }\r\n ],\r\n link_quicklink: true,\r\n rel_list: false,\r\n image_advtab: true,\r\n paste_data_images: true,\r\n image_caption: true,\r\n image_title: true,\r\n automatic_uploads: true,\r\n images_reuse_filename: true,\r\n images_upload_credentials: true,\r\n file_picker_types: 'file image',\r\n };\r\n\r\n static TinymceCompactConfig: Record<string, any> = Object.assign({}, this.TinymceConfig, {\r\n height: 200,\r\n width: '100%',\r\n suffix: '.min',\r\n license_key: 'gpl',\r\n ui_mode: 'split',\r\n min_height: 200,\r\n max_height: 500,\r\n quickbars_insert_toolbar: 'quickimage hr',\r\n quickbars_selection_toolbar: 'removeformat | bold italic | superscript subscript | quicklink h2 h3 blockquote',\r\n plugins: 'advlist anchor autolink autosave autoresize charmap code image insertdatetime link lists media table nonbreaking preview quickbars searchreplace visualblocks visualchars',\r\n statusbar: false,\r\n menubar: false,\r\n contextmenu: false,\r\n toolbar_location: 'bottom',\r\n toolbar: ['undo redo | quickimage | formatgroup paragraphgroup '],\r\n toolbar_groups: {\r\n formatgroup: {\r\n icon: 'format',\r\n tooltip: 'Formatting',\r\n items: 'bold italic underline superscript subscript | forecolor backcolor | removeformat'\r\n },\r\n paragraphgroup: {\r\n icon: 'paragraph',\r\n tooltip: 'Paragraph format',\r\n items: 'h1 h2 h3 | bullist numlist | alignleft aligncenter alignright alignjustify | indent outdent'\r\n },\r\n insertgroup: {\r\n icon: 'plus',\r\n tooltip: 'Insert',\r\n items: 'quickimage media | link charmap nonbreaking | table tableprops tabledelete'\r\n }\r\n },\r\n formats: {\r\n underline: { inline: 'span', styles: { 'text-decoration': 'underline' }, exact: true },\r\n strikethrough: { inline: 'span', styles: { 'text-decoration': 'line-through' }, exact: true }\r\n },\r\n link_default_target: '_blank',\r\n link_title: true,\r\n link_assume_external_targets: 'https',\r\n link_class_list: [],\r\n });\r\n\r\n static TinymceCompactExtendedConfig: Record<string, any> = Object.assign({}, this.TinymceCompactConfig, {\r\n license_key: 'gpl',\r\n ui_mode: 'split',\r\n plugins: 'advlist anchor autolink autosave autoresize charmap code image insertdatetime fullscreen link lists media table nonbreaking preview quickbars searchreplace visualblocks visualchars',\r\n toolbar: ['undo redo | quickimage insertgroup | formatgroup paragraphgroup | fullscreen '],\r\n });\r\n\r\n\r\n /**\r\n * Load tiny MCE script \r\n */\r\n static loadTinyMCEScript(useCDN?: boolean): void {\r\n const url = useCDN === true ? this.CDN_URL : this.LOCAL_URL;\r\n if (!document.querySelector(`script[src=\"${url}\"]`)) {\r\n const script = document.createElement('script');\r\n script.src = url;\r\n script.referrerPolicy = 'origin';\r\n document.head.appendChild(script);\r\n }\r\n }\r\n}","import { ChangeDetectionStrategy, Component, Input, OnInit, signal, output } from '@angular/core';\r\nimport { SystemUtils } from '@arsedizioni/ars-utils/core';\r\nimport { TinymceUtils } from '../utils';\r\nimport { MatButtonModule } from '@angular/material/button';\r\nimport { FlexModule } from '@ngbracket/ngx-layout/flex';\r\nimport { FormsModule } from '@angular/forms';\r\nimport { EditorComponent } from '@tinymce/tinymce-angular';\r\nimport { FullScreenEditorDialogData } from '../full-screen-editor/full-screen-editor.component';\r\n\r\n\r\n@Component({\r\n templateUrl: './full-screen-editor-nodialog.component.html',\r\n styleUrls: ['./full-screen-editor-nodialog.component.scss'],\r\n standalone: true,\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n imports: [EditorComponent, FormsModule, FlexModule, MatButtonModule]\r\n})\r\nexport class FullScreenEditorNoDialogComponent implements OnInit {\r\n\r\n readonly saving = output<string>();\r\n readonly cancelling = output<void>();\r\n\r\n // Fullscreen panel params passed by the creator (no MatDialog / Overlay).\r\n @Input() dialogData?: FullScreenEditorDialogData;\r\n protected disabled = signal<boolean>(false);\r\n protected text?: string;\r\n protected tinymceConfig: Record<string, any> = SystemUtils.clone(TinymceUtils.TinymceCompactExtendedConfig);\r\n\r\n ngOnInit(): void {\r\n if (this.dialogData) {\r\n this.text = this.dialogData.text;\r\n if (this.dialogData.configuration) {\r\n this.tinymceConfig = this.dialogData.configuration\r\n this.tinymceConfig.license_key = 'gpl';\r\n }\r\n this.disabled.set(this.dialogData.disabled);\r\n }\r\n this.tinymceConfig[\"toolbar\"] = ['undo redo | formatgroup paragraphgroup insertgroup | code openCodeMirrorButton'];\r\n\r\n }\r\n\r\n\r\n /**\r\n * Save data\r\n */\r\n protected ok() {\r\n this.saving.emit(this.text);\r\n }\r\n\r\n /**\r\n * Close the panel without saving.\r\n * When hosted inside a MatDialog, this closes the dialog.\r\n */\r\n protected cancel() {\r\n this.cancelling.emit();\r\n }\r\n}\r\n","<!-- Fullscreen panel container (not a MatDialog). -->\r\n<div class=\"full-screen-panel\" fxLayout=\"column\" fxFill>\r\n\r\n <!-- Editor area: grows to fill available space. -->\r\n <div class=\"full-screen-panel__content\" fxFlex>\r\n <editor class=\"full-screen-editor\" [init]=\"tinymceConfig\" [disabled]=\"disabled()\" [(ngModel)]=\"text\"\r\n licenseKey=\"gpl\">\r\n </editor>\r\n </div>\r\n\r\n <!-- Footer actions: pinned to the bottom of the panel. -->\r\n <div class=\"full-screen-panel__actions\">\r\n <div fxLayout=\"row\" fxLayoutGap=\"10px\" fxLayoutAlign=\"start center\" fxFill>\r\n <div fxFlex=\"50\">\r\n @if(dialogData?.onShowInfo) {\r\n <button mat-stroked-button (click)=\"dialogData?.onShowInfo()\">\r\n {{dialogData?.infoButtonLabel ?? 'Informazioni'}}\r\n </button>\r\n }\r\n </div>\r\n <div fxFlex=\"50\" fxLayoutAlign=\"end\">\r\n <button mat-flat-button (click)=\"ok()\" style=\"margin-right:10px;\">Salva</button>\r\n <button mat-stroked-button (click)=\"cancel()\">Annulla</button>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n</div>","import { ApplicationRef, EnvironmentInjector, Injectable, createComponent, inject } from '@angular/core';\r\nimport { DOCUMENT } from '@angular/common';\r\nimport { Subject, type Observable } from 'rxjs';\r\nimport { FullScreenEditorDialogData } from '../full-screen-editor/full-screen-editor.component';\r\nimport { FullScreenEditorNoDialogComponent } from './full-screen-editor-nodialog.component';\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class FullScreenEditorNoDialogService {\r\n private readonly appRef = inject(ApplicationRef);\r\n private readonly envInjector = inject(EnvironmentInjector);\r\n private readonly document = inject(DOCUMENT);\r\n\r\n /**\r\n * Creates a fullscreen editor panel by dynamically creating the component and\r\n * attaching it to document.body. No MatDialog / CDK Overlay is used.\r\n *\r\n * Resolves/emits:\r\n * - saved text when user clicks OK\r\n * - undefined when user clicks Cancel\r\n */\r\n openEditor(params: FullScreenEditorDialogData): Observable<string | undefined> {\r\n const result$ = new Subject<string | undefined>();\r\n\r\n const componentRef = createComponent(FullScreenEditorNoDialogComponent, {\r\n environmentInjector: this.envInjector\r\n });\r\n\r\n componentRef.instance.dialogData = params;\r\n\r\n const nativeElement = componentRef.location.nativeElement as HTMLElement;\r\n this.document.body.appendChild(nativeElement);\r\n this.appRef.attachView(componentRef.hostView);\r\n\r\n const cleanup = () => {\r\n this.appRef.detachView(componentRef.hostView);\r\n componentRef.destroy();\r\n };\r\n\r\n const sub1 = componentRef.instance.saving.subscribe((text) => {\r\n result$.next(text);\r\n result$.complete();\r\n sub1.unsubscribe();\r\n sub2.unsubscribe();\r\n cleanup();\r\n });\r\n\r\n const sub2 = componentRef.instance.cancelling.subscribe(() => {\r\n result$.next(undefined);\r\n result$.complete();\r\n sub1.unsubscribe();\r\n sub2.unsubscribe();\r\n cleanup();\r\n });\r\n\r\n return result$.asObservable();\r\n }\r\n}\r\n","import { NgModule } from '@angular/core';\r\n\r\n@NgModule({\r\n})\r\nexport class ArsTinyMceModule { }\r\n\r\nexport * from './full-screen-editor-nodialog/full-screen-editor-nodialog.service';\r\nexport * from './utils';","import { ChangeDetectionStrategy, Component, OnInit, inject, signal, output } from '@angular/core';\r\nimport { MatDialogRef, MAT_DIALOG_DATA, MatDialogContent, MatDialogActions, MatDialogClose } from '@angular/material/dialog';\r\nimport { SystemUtils } from '@arsedizioni/ars-utils/core';\r\nimport { TinymceUtils } from '../utils';\r\nimport { MatButtonModule } from '@angular/material/button';\r\nimport { FlexModule } from '@ngbracket/ngx-layout/flex';\r\nimport { FormsModule } from '@angular/forms';\r\nimport { EditorComponent } from '@tinymce/tinymce-angular';\r\n\r\nexport interface FullScreenEditorDialogData {\r\n text: string;\r\n configuration: Record<string, any>;\r\n infoButtonLabel?: string;\r\n onShowInfo?: Function,\r\n disabled?: boolean;\r\n useCDN?: boolean;\r\n}\r\n\r\n@Component({\r\n templateUrl: './full-screen-editor.component.html',\r\n styleUrls: ['./full-screen-editor.component.scss'],\r\n standalone: true,\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n imports: [MatDialogContent, EditorComponent, FormsModule, MatDialogActions, FlexModule, \r\n MatButtonModule, MatDialogClose]\r\n})\r\nexport class FullScreenEditorComponent implements OnInit {\r\n\r\n readonly saving = output<string>();\r\n private dialogRef = inject(MatDialogRef<FullScreenEditorComponent>);\r\n protected dialogData: FullScreenEditorDialogData = inject(MAT_DIALOG_DATA);\r\n protected disabled = signal<boolean>(false);\r\n protected text?: string;\r\n protected tinymceConfig: Record<string, any> = SystemUtils.clone(TinymceUtils.TinymceCompactExtendedConfig);\r\n\r\n ngOnInit(): void {\r\n if (this.dialogData) {\r\n this.text = this.dialogData.text;\r\n if (this.dialogData.configuration) {\r\n this.tinymceConfig = this.dialogData.configuration\r\n this.tinymceConfig.license_key = 'gpl';\r\n }\r\n this.disabled.set(this.dialogData.disabled);\r\n }\r\n this.tinymceConfig[\"toolbar\"] = ['undo redo | formatgroup paragraphgroup insertgroup | code openCodeMirrorButton'];\r\n\r\n }\r\n\r\n\r\n /**\r\n * Save data\r\n */\r\n protected ok() {\r\n this.saving.emit(this.text);\r\n setTimeout(() => {\r\n this.dialogRef.close();\r\n }, 500);\r\n }\r\n}\r\n","<mat-dialog-content style=\"padding: 10px 10px 0 10px\">\r\n <editor style=\"height: 100%;\" [init]=\"tinymceConfig\" class=\"full-screen-editor\"\r\n [disabled]=\"disabled()\" [(ngModel)]=\"text\" licenseKey=\"gpl\">\r\n </editor>\r\n</mat-dialog-content>\r\n<mat-dialog-actions>\r\n <div fxLayout=\"row\" fxLayoutGap=\"10px\" fxLayoutAlign=\"start center\" fxFill>\r\n <div fxFlex=\"50\">\r\n @if(dialogData.onShowInfo) {\r\n <button mat-stroked-button (click)=\"dialogData.onShowInfo()\">{{dialogData.infoButtonLabel ?? 'Informazioni'}} </button>\r\n }\r\n </div>\r\n <div fxFlex=\"50\" fxLayoutAlign=\"end\">\r\n <button mat-flat-button (click)=\"ok()\">Salva</button>\r\n <button mat-stroked-button [mat-dialog-close]=\"true\">Annulla</button>\r\n </div>\r\n </div>\r\n</mat-dialog-actions>","/*\r\n * Public API Surface of ars-utils-tinymse\r\n */\r\nexport * from './tinymce.module';\r\nexport * from './full-screen-editor/full-screen-editor.component';\r\nexport * from './full-screen-editor-nodialog/full-screen-editor-nodialog.component';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;MAAa,YAAY,CAAA;aACP,IAAA,CAAA,OAAO,GAAG,oGAAoG,CAAC;aAC/G,IAAA,CAAA,SAAS,GAAG,gCAAgC,CAAC;AAE7D;;AAEG;AACI,IAAA,SAAA,IAAA,CAAA,aAAa,GAAwB;AAC1C,QAAA,QAAQ,EAAE,gBAAgB;AAC1B,QAAA,MAAM,EAAE,MAAM;QACd,WAAW,EAAE,KAAK;AAClB,QAAA,QAAQ,EAAE,IAAI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EAAA,y0BAAA,EAAA,MAAA,EAAA,CAAA,uKAAA,CAAA,EAAA;;;AExBpC;;AAEG;;ACFH;;AAEG;;;;"}
1
+ {"version":3,"file":"arsedizioni-ars-utils-tinymce.mjs","sources":["../../../projects/ars-utils/tinymce/utils.ts","../../../projects/ars-utils/tinymce/tinymce.module.ts","../../../projects/ars-utils/tinymce/full-screen-editor/full-screen-editor.component.ts","../../../projects/ars-utils/tinymce/full-screen-editor/full-screen-editor.component.html","../../../projects/ars-utils/tinymce/public_api.ts","../../../projects/ars-utils/tinymce/arsedizioni-ars-utils-tinymce.ts"],"sourcesContent":["export class TinymceUtils {\r\n static readonly CDN_URL = 'https://cdn.tiny.cloud/1/5lnoc6ohmpjau6zyzgqyhyf52cueoennkcs8v1yfoak57ku9/tinymce/7/tinymce.min.js';\r\n static readonly LOCAL_URL = '/assets/tinymce/tinymce.min.js';\r\n\r\n /**\r\n * Configurazione di base per TinyMCE editor\r\n */\r\n static TinymceConfig: Record<string, any> = {\r\n base_url: 'assets/tinymce',\r\n suffix: '.min',\r\n license_key: 'gpl', // per evitare il warning riportarla direttamente nell'html: <editor licenseKey=\"gpl\" ...></editor>\r\n language: 'it',\r\n language_url: \"assets/tinymce/langs/it.js\",\r\n height: 500,\r\n width: '100%',\r\n min_height: 250,\r\n ui_mode: 'split',\r\n onboarding: false,\r\n branding: false,\r\n convert_urls: false,\r\n quickbars_insert_toolbar: false,\r\n quickbars_selection_toolbar: 'removeformat | bold italic | superscript subscript | quicklink h2 h3 blockquote',\r\n fullpage_default_doctype: '<!DOCTYPE html>',\r\n fullpage_default_encoding: 'UTF-8',\r\n fullpage_default_font_family: '\\'Helvetica Neue\\', sans-serif', // '\\'Times New Roman\\', Georgia, Serif',\r\n fullpage_default_xml_pi: false,\r\n fullpage_hide_in_source_view: false,\r\n browser_spellcheck: true,\r\n spellchecker_language: 'it_IT',\r\n save_enablewhendirty: true,\r\n custom_undo_redo_levels: 50,\r\n nonbreaking_force_tab: true, // inserisce 3 &nbsp; per ogni pressione di TAB\r\n nonbreaking_wrap: false,\r\n help_tabs: ['shortcuts', 'keyboardnav', 'versions'],\r\n plugins: 'advlist anchor autolink autosave charmap code fullscreen help hr image insertdatetime link lists media table nonbreaking paste preview print quickbars searchreplace textpattern visualblocks visualchars',\r\n menubar: false,\r\n skin: window.matchMedia(\"(prefers-color-scheme: dark)\").matches ? \"oxide-dark\" : \"oxide\",\r\n content_css: window.matchMedia(\"(prefers-color-scheme: dark)\").matches ? \"dark\" : \"default\",\r\n toolbar: [\r\n 'fullscreen | undo redo searchreplace | code openCodeMirrorButton preview fullpage | link image media insertMediaButton charmap nonbreaking | table tableprops tabledelete',\r\n 'bold italic superscript subscript forecolor backcolor | alignleft aligncenter alignright alignjustify | removeformat | bullist numlist checklist'\r\n ],\r\n style_formats: [\r\n {\r\n title: 'Immagini float', items: [\r\n {\r\n title: 'Immagine a SX',\r\n selector: 'img',\r\n styles: { float: 'left', margin: '0 10px 0 10px' }\r\n },\r\n {\r\n title: 'Immagine a DX',\r\n selector: 'img',\r\n styles: { float: 'right', margin: '0 10px 0 10px' }\r\n }\r\n ]\r\n },\r\n {\r\n title: 'Formati', items: [\r\n { title: 'Grassetto', format: 'bold' },\r\n { title: 'Corsivo', format: 'italic' },\r\n { title: 'Sottolineato', format: 'underline' },\r\n { title: 'Barrato', format: 'strikethrough' },\r\n { title: 'Superscript', format: 'superscript' },\r\n { title: 'Subscript', format: 'subscript' },\r\n { title: 'Codice', format: 'code' }\r\n ]\r\n }],\r\n formats: {\r\n underline: { inline: 'span', styles: { 'text-decoration': 'underline' }, exact: true },\r\n strikethrough: { inline: 'span', styles: { 'text-decoration': 'line-through' }, exact: true }\r\n },\r\n insertdatetime_formats: ['%d/%m/%Y', '%d %b %Y', '%A, %d %B %Y'],\r\n link_default_target: '_blank',\r\n link_title: true,\r\n link_assume_external_targets: 'https',\r\n link_class_list: [\r\n { title: 'Nessuno', value: '' },\r\n { title: 'Rilevante', value: 'relevant' },\r\n ],\r\n link_context_toolbar: true,\r\n link_list: [\r\n { title: 'Ars Edizioni', value: 'https://www.arsedizioni.it' },\r\n { title: 'Ars Edizioni - Corsi', value: 'https://www.arsedizioni.it/Events' },\r\n { title: 'Clipper', value: 'https://clipper.arsedizioni.it' },\r\n { title: 'Registro', value: 'https://registro.arsedizioni.it' },\r\n { title: 'Ars EVO', value: 'https://evolution.arsedizioni.it' },\r\n { title: 'DG Info', value: 'https://dginfo.arsedizioni.it' },\r\n { title: 'Lavoro e Ambiente', value: 'https://lavoroeambiente.arsedizioni.it' },\r\n { title: 'Sostanze Alimentari', value: 'https://sostanzealimentari.arsedizioni.it' },\r\n { title: 'OrangeNews', value: 'https://orangenews.arsedizioni.it' },\r\n { title: 'MyARS', value: 'https://my.arsedizioni.it' },\r\n { title: 'Canale Youtube Ars', value: 'https://www.youtube.com/user/ARSEDZ' },\r\n // { title: 'My page 2', value: 'https://about.tiny.cloud' }\r\n ],\r\n link_quicklink: true,\r\n rel_list: false,\r\n image_advtab: true,\r\n paste_data_images: true,\r\n image_caption: true,\r\n image_title: true,\r\n automatic_uploads: true,\r\n images_reuse_filename: true,\r\n images_upload_credentials: true,\r\n file_picker_types: 'file image',\r\n };\r\n\r\n static TinymceCompactConfig: Record<string, any> = Object.assign({}, this.TinymceConfig, {\r\n height: 200,\r\n width: '100%',\r\n suffix: '.min',\r\n license_key: 'gpl',\r\n ui_mode: 'split',\r\n min_height: 200,\r\n max_height: 500,\r\n quickbars_insert_toolbar: 'quickimage hr',\r\n quickbars_selection_toolbar: 'removeformat | bold italic | superscript subscript | quicklink h2 h3 blockquote',\r\n plugins: 'advlist anchor autolink autosave autoresize charmap code image insertdatetime link lists media table nonbreaking preview quickbars searchreplace visualblocks visualchars',\r\n statusbar: false,\r\n menubar: false,\r\n contextmenu: false,\r\n toolbar_location: 'bottom',\r\n toolbar: ['undo redo | quickimage | formatgroup paragraphgroup '],\r\n toolbar_groups: {\r\n formatgroup: {\r\n icon: 'format',\r\n tooltip: 'Formatting',\r\n items: 'bold italic underline superscript subscript | forecolor backcolor | removeformat'\r\n },\r\n paragraphgroup: {\r\n icon: 'paragraph',\r\n tooltip: 'Paragraph format',\r\n items: 'h1 h2 h3 | bullist numlist | alignleft aligncenter alignright alignjustify | indent outdent'\r\n },\r\n insertgroup: {\r\n icon: 'plus',\r\n tooltip: 'Insert',\r\n items: 'quickimage media | link charmap nonbreaking | table tableprops tabledelete'\r\n }\r\n },\r\n formats: {\r\n underline: { inline: 'span', styles: { 'text-decoration': 'underline' }, exact: true },\r\n strikethrough: { inline: 'span', styles: { 'text-decoration': 'line-through' }, exact: true }\r\n },\r\n link_default_target: '_blank',\r\n link_title: true,\r\n link_assume_external_targets: 'https',\r\n link_class_list: [],\r\n });\r\n\r\n static TinymceCompactExtendedConfig: Record<string, any> = Object.assign({}, this.TinymceCompactConfig, {\r\n license_key: 'gpl',\r\n ui_mode: 'split',\r\n plugins: 'advlist anchor autolink autosave autoresize charmap code image insertdatetime fullscreen link lists media table nonbreaking preview quickbars searchreplace visualblocks visualchars',\r\n toolbar: ['undo redo | quickimage insertgroup | formatgroup paragraphgroup | fullscreen '],\r\n });\r\n\r\n\r\n /**\r\n * Load tiny MCE script \r\n */\r\n static loadTinyMCEScript(useCDN?: boolean): void {\r\n const url = useCDN === true ? this.CDN_URL : this.LOCAL_URL;\r\n if (!document.querySelector(`script[src=\"${url}\"]`)) {\r\n const script = document.createElement('script');\r\n script.src = url;\r\n script.referrerPolicy = 'origin';\r\n document.head.appendChild(script);\r\n }\r\n }\r\n}","import { NgModule } from '@angular/core';\r\n\r\n@NgModule({\r\n})\r\nexport class ArsTinyMceModule { }\r\n\r\nexport * from './utils';","import { ChangeDetectionStrategy, Component, OnInit, inject, signal, output } from '@angular/core';\r\nimport { MatDialogRef, MAT_DIALOG_DATA, MatDialogContent, MatDialogActions, MatDialogClose } from '@angular/material/dialog';\r\nimport { SystemUtils } from '@arsedizioni/ars-utils/core';\r\nimport { TinymceUtils } from '../utils';\r\nimport { MatButtonModule } from '@angular/material/button';\r\nimport { FlexModule } from '@ngbracket/ngx-layout/flex';\r\nimport { FormsModule } from '@angular/forms';\r\nimport { EditorComponent } from '@tinymce/tinymce-angular';\r\n\r\nexport interface FullScreenEditorDialogData {\r\n text: string;\r\n configuration: Record<string, any>;\r\n infoButtonLabel?: string;\r\n onShowInfo?: Function,\r\n disabled?: boolean;\r\n useCDN?: boolean;\r\n}\r\n\r\n@Component({\r\n templateUrl: './full-screen-editor.component.html',\r\n styleUrls: ['./full-screen-editor.component.scss'],\r\n standalone: true,\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n imports: [MatDialogContent, EditorComponent, FormsModule, MatDialogActions, FlexModule, \r\n MatButtonModule, MatDialogClose]\r\n})\r\nexport class FullScreenEditorComponent implements OnInit {\r\n\r\n readonly saving = output<string>();\r\n private dialogRef = inject(MatDialogRef<FullScreenEditorComponent>);\r\n protected dialogData: FullScreenEditorDialogData = inject(MAT_DIALOG_DATA);\r\n protected disabled = signal<boolean>(false);\r\n protected text?: string;\r\n protected tinymceConfig: Record<string, any> = SystemUtils.clone(TinymceUtils.TinymceCompactExtendedConfig);\r\n\r\n ngOnInit(): void {\r\n if (this.dialogData) {\r\n this.text = this.dialogData.text;\r\n if (this.dialogData.configuration) {\r\n this.tinymceConfig = this.dialogData.configuration\r\n this.tinymceConfig.license_key = 'gpl';\r\n }\r\n this.disabled.set(this.dialogData.disabled);\r\n }\r\n this.tinymceConfig[\"toolbar\"] = ['undo redo | formatgroup paragraphgroup insertgroup | code openCodeMirrorButton'];\r\n\r\n }\r\n\r\n\r\n /**\r\n * Save data\r\n */\r\n protected ok() {\r\n this.saving.emit(this.text);\r\n setTimeout(() => {\r\n this.dialogRef.close();\r\n }, 500);\r\n }\r\n}\r\n","<mat-dialog-content style=\"padding: 10px 10px 0 10px\">\r\n <editor style=\"height: 100%;\" [init]=\"tinymceConfig\" class=\"full-screen-editor\"\r\n [disabled]=\"disabled()\" [(ngModel)]=\"text\" licenseKey=\"gpl\">\r\n </editor>\r\n</mat-dialog-content>\r\n<mat-dialog-actions>\r\n <div fxLayout=\"row\" fxLayoutGap=\"10px\" fxLayoutAlign=\"start center\" fxFill>\r\n <div fxFlex=\"50\">\r\n @if(dialogData.onShowInfo) {\r\n <button mat-stroked-button (click)=\"dialogData.onShowInfo()\">{{dialogData.infoButtonLabel ?? 'Informazioni'}} </button>\r\n }\r\n </div>\r\n <div fxFlex=\"50\" fxLayoutAlign=\"end\">\r\n <button mat-flat-button (click)=\"ok()\">Salva</button>\r\n <button mat-stroked-button [mat-dialog-close]=\"true\">Annulla</button>\r\n </div>\r\n </div>\r\n</mat-dialog-actions>","/*\r\n * Public API Surface of ars-utils-tinymse\r\n */\r\nexport * from './tinymce.module';\r\nexport * from './full-screen-editor/full-screen-editor.component';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;;;;MAAa,YAAY,CAAA;aACP,IAAA,CAAA,OAAO,GAAG,oGAAoG,CAAC;aAC/G,IAAA,CAAA,SAAS,GAAG,gCAAgC,CAAC;AAE7D;;AAEG;AACI,IAAA,SAAA,IAAA,CAAA,aAAa,GAAwB;AAC1C,QAAA,QAAQ,EAAE,gBAAgB;AAC1B,QAAA,MAAM,EAAE,MAAM;QACd,WAAW,EAAE,KAAK;AAClB,QAAA,QAAQ,EAAE,IAAI;AACd,QAAA,YAAY,EAAE,4BAA4B;AAC1C,QAAA,MAAM,EAAE,GAAG;AACX,QAAA,KAAK,EAAE,MAAM;AACb,QAAA,UAAU,EAAE,GAAG;AACf,QAAA,OAAO,EAAE,OAAO;AAChB,QAAA,UAAU,EAAE,KAAK;AACjB,QAAA,QAAQ,EAAE,KAAK;AACf,QAAA,YAAY,EAAE,KAAK;AACnB,QAAA,wBAAwB,EAAE,KAAK;AAC/B,QAAA,2BAA2B,EAAE,iFAAiF;AAC9G,QAAA,wBAAwB,EAAE,iBAAiB;AAC3C,QAAA,yBAAyB,EAAE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EAAA,CAAA,EAAA,UAAA,EAAA,IAAI,EAAA,eAAA,EACC,uBAAuB,CAAC,MAAM,WACtC,CAAC,gBAAgB,EAAE,eAAe,EAAE,WAAW,EAAE,gBAAgB,EAAE,UAAU;wBACpF,eAAe,EAAE,cAAc,CAAC,EAAA,QAAA,EAAA,y0BAAA,EAAA,MAAA,EAAA,CAAA,uKAAA,CAAA,EAAA;;;AExBpC;;AAEG;;ACFH;;AAEG;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arsedizioni/ars-utils",
3
- "version": "21.0.11",
3
+ "version": "21.0.13",
4
4
  "author": {
5
5
  "email": "software@arsedizioni.it",
6
6
  "name": "Fabio Buscaroli, Alberto Doria"
@@ -1,47 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { OnInit } from '@angular/core';
3
- import { Observable } from 'rxjs';
4
-
5
- interface FullScreenEditorDialogData {
6
- text: string;
7
- configuration: Record<string, any>;
8
- infoButtonLabel?: string;
9
- onShowInfo?: Function;
10
- disabled?: boolean;
11
- useCDN?: boolean;
12
- }
13
- declare class FullScreenEditorComponent implements OnInit {
14
- readonly saving: i0.OutputEmitterRef<string>;
15
- private dialogRef;
16
- protected dialogData: FullScreenEditorDialogData;
17
- protected disabled: i0.WritableSignal<boolean>;
18
- protected text?: string;
19
- protected tinymceConfig: Record<string, any>;
20
- ngOnInit(): void;
21
- /**
22
- * Save data
23
- */
24
- protected ok(): void;
25
- static ɵfac: i0.ɵɵFactoryDeclaration<FullScreenEditorComponent, never>;
26
- static ɵcmp: i0.ɵɵComponentDeclaration<FullScreenEditorComponent, "ng-component", never, {}, { "saving": "saving"; }, never, never, true, never>;
27
- }
28
-
29
- declare class FullScreenEditorNoDialogService {
30
- private readonly appRef;
31
- private readonly envInjector;
32
- private readonly document;
33
- /**
34
- * Creates a fullscreen editor panel by dynamically creating the component and
35
- * attaching it to document.body. No MatDialog / CDK Overlay is used.
36
- *
37
- * Resolves/emits:
38
- * - saved text when user clicks OK
39
- * - undefined when user clicks Cancel
40
- */
41
- openEditor(params: FullScreenEditorDialogData): Observable<string | undefined>;
42
- static ɵfac: i0.ɵɵFactoryDeclaration<FullScreenEditorNoDialogService, never>;
43
- static ɵprov: i0.ɵɵInjectableDeclaration<FullScreenEditorNoDialogService>;
44
- }
45
3
 
46
4
  declare class TinymceUtils {
47
5
  static readonly CDN_URL = "https://cdn.tiny.cloud/1/5lnoc6ohmpjau6zyzgqyhyf52cueoennkcs8v1yfoak57ku9/tinymce/7/tinymce.min.js";
@@ -64,10 +22,18 @@ declare class ArsTinyMceModule {
64
22
  static ɵinj: i0.ɵɵInjectorDeclaration<ArsTinyMceModule>;
65
23
  }
66
24
 
67
- declare class FullScreenEditorNoDialogComponent implements OnInit {
25
+ interface FullScreenEditorDialogData {
26
+ text: string;
27
+ configuration: Record<string, any>;
28
+ infoButtonLabel?: string;
29
+ onShowInfo?: Function;
30
+ disabled?: boolean;
31
+ useCDN?: boolean;
32
+ }
33
+ declare class FullScreenEditorComponent implements OnInit {
68
34
  readonly saving: i0.OutputEmitterRef<string>;
69
- readonly cancelling: i0.OutputEmitterRef<void>;
70
- dialogData?: FullScreenEditorDialogData;
35
+ private dialogRef;
36
+ protected dialogData: FullScreenEditorDialogData;
71
37
  protected disabled: i0.WritableSignal<boolean>;
72
38
  protected text?: string;
73
39
  protected tinymceConfig: Record<string, any>;
@@ -76,14 +42,9 @@ declare class FullScreenEditorNoDialogComponent implements OnInit {
76
42
  * Save data
77
43
  */
78
44
  protected ok(): void;
79
- /**
80
- * Close the panel without saving.
81
- * When hosted inside a MatDialog, this closes the dialog.
82
- */
83
- protected cancel(): void;
84
- static ɵfac: i0.ɵɵFactoryDeclaration<FullScreenEditorNoDialogComponent, never>;
85
- static ɵcmp: i0.ɵɵComponentDeclaration<FullScreenEditorNoDialogComponent, "ng-component", never, { "dialogData": { "alias": "dialogData"; "required": false; }; }, { "saving": "saving"; "cancelling": "cancelling"; }, never, never, true, never>;
45
+ static ɵfac: i0.ɵɵFactoryDeclaration<FullScreenEditorComponent, never>;
46
+ static ɵcmp: i0.ɵɵComponentDeclaration<FullScreenEditorComponent, "ng-component", never, {}, { "saving": "saving"; }, never, never, true, never>;
86
47
  }
87
48
 
88
- export { ArsTinyMceModule, FullScreenEditorComponent, FullScreenEditorNoDialogComponent, FullScreenEditorNoDialogService, TinymceUtils };
49
+ export { ArsTinyMceModule, FullScreenEditorComponent, TinymceUtils };
89
50
  export type { FullScreenEditorDialogData };