@arsedizioni/ars-utils 19.2.20 → 19.3.2
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/clipper.common/common/definitions.d.ts +402 -402
- package/clipper.common/common/services/clipper.service.d.ts +8 -8
- package/clipper.ui/documents.d.ts +1 -1
- package/clipper.ui/ui/browser/browser-dialog/browser-dialog.component.d.ts +6 -6
- package/clipper.ui/ui/browser/browser.component.d.ts +2 -2
- package/clipper.ui/ui/document/document.component.d.ts +9 -9
- package/clipper.ui/ui/document-manager/document-manager.d.ts +3 -3
- package/clipper.ui/ui/document-menu/document-menu.component.d.ts +2 -2
- package/clipper.ui/ui/references/references.component.d.ts +6 -6
- package/clipper.ui/ui/search-calendar/search-calendar.component.d.ts +2 -2
- package/clipper.ui/ui/search-facets/search-facets.component.d.ts +1 -1
- package/clipper.ui/ui/search-result-manager/search-result-manager.d.ts +9 -9
- package/core/definitions.d.ts +42 -42
- package/core/pipes/format.pipe.d.ts +1 -1
- package/core/pipes/replace.pipe.d.ts +1 -1
- package/core/pipes/safe-html.pipe.d.ts +1 -1
- package/core/pipes/safe-url.pipe.d.ts +1 -1
- package/core/pipes/search-callback.pipe.d.ts +1 -1
- package/core/pipes/search-filter.pipe.d.ts +1 -1
- package/core/selectable.d.ts +4 -4
- package/core/services/broadcast.service.d.ts +1 -1
- package/core/services/broadcastChannelManager.d.ts +1 -1
- package/core/system.d.ts +8 -8
- package/evolution.common/common/definitions.d.ts +218 -218
- package/evolution.common/common/services/evolution.service.d.ts +5 -5
- package/fesm2022/arsedizioni-ars-utils-clipper.common.mjs +136 -11
- package/fesm2022/arsedizioni-ars-utils-clipper.common.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs +31 -31
- package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-core.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-evolution.common.mjs +7 -7
- package/fesm2022/arsedizioni-ars-utils-evolution.common.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-help.mjs +1 -1
- package/fesm2022/arsedizioni-ars-utils-help.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-support.common.mjs +4 -4
- package/fesm2022/arsedizioni-ars-utils-support.common.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-support.ui.mjs +1 -1
- package/fesm2022/arsedizioni-ars-utils-support.ui.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-tinymce.mjs +1 -1
- package/fesm2022/arsedizioni-ars-utils-tinymce.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.application.mjs +39 -35
- package/fesm2022/arsedizioni-ars-utils-ui.application.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.mjs +11 -11
- package/fesm2022/arsedizioni-ars-utils-ui.mjs.map +1 -1
- package/help/components/help-viewer/help-viewer.component.d.ts +4 -4
- package/help/definitions.d.ts +1 -1
- package/package.json +5 -5
- package/support.common/common/definitions.d.ts +23 -23
- package/support.common/common/services/support.service.d.ts +1 -1
- package/support.ui/ui/notifications-browser/notification/notification.component.d.ts +2 -2
- package/tinymce/full-screen-editor/full-screen-editor.component.d.ts +2 -2
- package/ui/ui/definitions.d.ts +4 -4
- package/ui/ui/dialogs/confirm/confirm-dialog.component.d.ts +7 -7
- package/ui/ui/dialogs/credentials/credentials-dialog.component.d.ts +9 -9
- package/ui/ui/dialogs/info/info-dialog.component.d.ts +5 -5
- package/ui/ui/dialogs/recover-password/recover-password-dialog.component.d.ts +1 -1
- package/ui/ui/dialogs/reset-password/reset-password-dialog.component.d.ts +3 -3
- package/ui/ui/dialogs/toast/toast.component.d.ts +2 -2
- package/ui/ui/services/dialog.service.d.ts +9 -9
- package/ui.application/ui/components/button-selector/button-selector.component.d.ts +2 -2
- package/ui.application/ui/components/chips-selector/chips-selector.component.d.ts +1 -1
- package/ui.application/ui/components/file-input/file-input.component.d.ts +1 -1
- package/ui.application/ui/components/file-preview/file-preview.component.d.ts +3 -3
- package/ui.application/ui/components/filter-bar/filter-bar.component.d.ts +3 -3
- package/ui.application/ui/definitions.d.ts +49 -49
- package/ui.application/ui/dialogs/prompt/prompt-dialog.component.d.ts +1 -1
- package/ui.application/ui/dialogs/prompt-date/prompt-date-dialog.component.d.ts +1 -1
- package/ui.application/ui/dialogs/prompt-time/prompt-time-dialog.component.d.ts +1 -1
- package/ui.application/ui/dialogs/select/select-dialog.component.d.ts +1 -1
- package/ui.application/ui/dialogs/select-file/select-file-dialog.component.d.ts +1 -1
- package/ui.application/ui/dialogs/select-picture/select-picture-dialog.component.d.ts +1 -1
- package/ui.application/ui/dialogs/send-to/send-to-dialog.component.d.ts +5 -5
- package/ui.application/ui/filters.d.ts +28 -28
- package/ui.application/ui/services/applicationDialog.service.d.ts +14 -14
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"arsedizioni-ars-utils-tinymce.mjs","sources":["../../../projects/ars-utils/tinymce/tinymce.module.ts","../../../projects/ars-utils/tinymce/utils.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":["import { NgModule } from '@angular/core';\r\nimport { TINYMCE_SCRIPT_SRC } from '@tinymce/tinymce-angular';\r\n\r\n\r\n\r\n@NgModule({\r\n providers: [\r\n { provide: TINYMCE_SCRIPT_SRC, useValue: 'tinymce/tinymce.min.js' }\r\n ]\r\n})\r\nexport class ArsTinyMceModule { }\r\n","export class TinymceUtils {\r\n /**\r\n * Configurazione di base per TinyMCE editor\r\n */\r\n static TinymceConfig: Record<string, any> = {\r\n base_url: '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/langs/it.js\",\r\n height: 500,\r\n width: '100%',\r\n min_height: 250,\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 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 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 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}","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 disabled?: 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, 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 | undefined = undefined;\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 }\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 * 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>\r\n <editor style=\"height: 100%;\" #fullScreenTextEditor id=\"fullScreenTextEditor\" [init]=\"tinymceConfig\"\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\" fxFill>\r\n <div fxFlex=\"30\">\r\n </div>\r\n <div fxFlex=\"70\" fxLayoutAlign=\"end\">\r\n <button mat-flat-button color=\"primary\" (click)=\"ok()\">Salva</button>\r\n <button mat-stroked-button [mat-dialog-close]=\"true\" color=\"primary\">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 './utils';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;;;;MAUa,gBAAgB,CAAA;8GAAhB,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;+GAAhB,gBAAgB,EAAA,CAAA,CAAA;AAAhB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,gBAAgB,EAJd,SAAA,EAAA;AACP,YAAA,EAAE,OAAO,EAAE,kBAAkB,EAAE,QAAQ,EAAE,wBAAwB;AACpE,SAAA,EAAA,CAAA,CAAA;;2FAEQ,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAL5B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,SAAS,EAAE;AACP,wBAAA,EAAE,OAAO,EAAE,kBAAkB,EAAE,QAAQ,EAAE,wBAAwB;AACpE;AACJ,iBAAA;;;MCTY,YAAY,CAAA;AACvB;;AAEG;AACI,IAAA,SAAA,IAAA,CAAA,aAAa,GAAwB;AAC1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qBAAA,EAAA,qBAAA,EAAA,qBAAA,EAAA,qBAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,iBAAA,EAAA,QAAA,EAAA,wBAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,oBAAA,EAAA,QAAA,EAAA,gNAAA,EAAA,MAAA,EAAA,CAAA,QAAA,EAAA,WAAA,EAAA,WAAA,EAAA,WAAA,EAAA,WAAA,EAAA,WAAA,EAAA,cAAA,EAAA,cAAA,EAAA,cAAA,EAAA,cAAA,EAAA,cAAA,EAAA,cAAA,EAAA,cAAA,EAAA,cAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,eAAe,4NAAE,cAAc,EAAA,QAAA,EAAA,sCAAA,EAAA,MAAA,EAAA,CAAA,YAAA,EAAA,MAAA,EAAA,kBAAA,EAAA,gBAAA,CAAA,EAAA,QAAA,EAAA,CAAA,gBAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAE5G,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBAPrC,SAAS;AAGI,YAAA,IAAA,EAAA,CAAA,EAAA,UAAA,EAAA,IAAI,mBACC,uBAAuB,CAAC,MAAM,EACtC,OAAA,EAAA,CAAC,gBAAgB,EAAE,eAAe,EAAE,WAAW,EAAE,gBAAgB,EAAE,UAAU,EAAE,eAAe,EAAE,cAAc,CAAC,EAAA,QAAA,EAAA,+oBAAA,EAAA,MAAA,EAAA,CAAA,yKAAA,CAAA,EAAA;;;AEpB1H;;AAEG;;ACFH;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"arsedizioni-ars-utils-tinymce.mjs","sources":["../../../projects/ars-utils/tinymce/tinymce.module.ts","../../../projects/ars-utils/tinymce/utils.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":["import { NgModule } from '@angular/core';\r\nimport { TINYMCE_SCRIPT_SRC } from '@tinymce/tinymce-angular';\r\n\r\n\r\n\r\n@NgModule({\r\n providers: [\r\n { provide: TINYMCE_SCRIPT_SRC, useValue: 'tinymce/tinymce.min.js' }\r\n ]\r\n})\r\nexport class ArsTinyMceModule { }\r\n","export class TinymceUtils {\r\n /**\r\n * Configurazione di base per TinyMCE editor\r\n */\r\n static TinymceConfig: Record<string, any> = {\r\n base_url: '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/langs/it.js\",\r\n height: 500,\r\n width: '100%',\r\n min_height: 250,\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 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 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 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}","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 disabled?: boolean | null;\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, 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 | null = null;\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 }\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 * 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>\r\n <editor style=\"height: 100%;\" #fullScreenTextEditor id=\"fullScreenTextEditor\" [init]=\"tinymceConfig\"\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\" fxFill>\r\n <div fxFlex=\"30\">\r\n </div>\r\n <div fxFlex=\"70\" fxLayoutAlign=\"end\">\r\n <button mat-flat-button color=\"primary\" (click)=\"ok()\">Salva</button>\r\n <button mat-stroked-button [mat-dialog-close]=\"true\" color=\"primary\">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 './utils';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;;;;MAUa,gBAAgB,CAAA;8GAAhB,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;+GAAhB,gBAAgB,EAAA,CAAA,CAAA;AAAhB,IAAA,SAAA,IAAA,CAAA,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AAA,MAAA,EAAA,CAAA,CAAA;;2FAE5G,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBAPrC,SAAS;AAGI,YAAA,IAAA,EAAA,CAAA,EAAA,UAAA,EAAA,IAAI,mBACC,uBAAuB,CAAC,MAAM,EACtC,OAAA,EAAA,CAAC,gBAAgB,EAAE,eAAe,EAAE,WAAW,EAAE,gBAAgB,EAAE,UAAU,EAAE,eAAe,EAAE,cAAc,CAAC,EAAA,QAAA,EAAA,+oBAAA,EAAA,MAAA,EAAA,CAAA,yKAAA,CAAA,EAAA;;;AEpB1H;;AAEG;;ACFH;;AAEG;;;;"}
|
|
@@ -171,7 +171,11 @@ class CurrentFilter {
|
|
|
171
171
|
}
|
|
172
172
|
class CurrentFilterItem {
|
|
173
173
|
constructor() {
|
|
174
|
+
this.items = undefined;
|
|
175
|
+
this.value = null;
|
|
174
176
|
this.enabled = true;
|
|
177
|
+
this.title = null;
|
|
178
|
+
this.selectedTitle = null;
|
|
175
179
|
}
|
|
176
180
|
clear() {
|
|
177
181
|
this.value = null;
|
|
@@ -497,7 +501,7 @@ class SelectPictureDialogComponent {
|
|
|
497
501
|
this.done = output();
|
|
498
502
|
this.dialogRef = inject((MatDialogRef));
|
|
499
503
|
this.dialogData = inject(MAT_DIALOG_DATA);
|
|
500
|
-
this.file =
|
|
504
|
+
this.file = null;
|
|
501
505
|
this.filePreview = signal(null);
|
|
502
506
|
}
|
|
503
507
|
/**
|
|
@@ -544,7 +548,7 @@ class SelectFileDialogComponent {
|
|
|
544
548
|
this.done = output();
|
|
545
549
|
this.dialogRef = inject((MatDialogRef));
|
|
546
550
|
this.dialogData = inject(MAT_DIALOG_DATA);
|
|
547
|
-
this.file =
|
|
551
|
+
this.file = null;
|
|
548
552
|
this.fileClass = signal('selectfile-file');
|
|
549
553
|
}
|
|
550
554
|
/**
|
|
@@ -635,7 +639,7 @@ class PromptDialogComponent {
|
|
|
635
639
|
this.done = output();
|
|
636
640
|
this.dialogService = inject(DialogService);
|
|
637
641
|
this.dialogData = inject(MAT_DIALOG_DATA) ?? { appearance: 'fill', title: 'Inserisci dato', type: PromptDialogType.Default };
|
|
638
|
-
this.value =
|
|
642
|
+
this.value = null;
|
|
639
643
|
}
|
|
640
644
|
ngOnInit() {
|
|
641
645
|
if (!this.dialogData.appearance) {
|
|
@@ -713,7 +717,7 @@ class SelectDialogComponent {
|
|
|
713
717
|
// Used to sincronize lookup fields and params
|
|
714
718
|
this.lookupField = "";
|
|
715
719
|
// Used to display selected elements
|
|
716
|
-
this.selectionInfo = signal(
|
|
720
|
+
this.selectionInfo = signal(null);
|
|
717
721
|
this.selectionMasterIndeterminate = signal(false);
|
|
718
722
|
this.selectionMasterChecked = signal(false);
|
|
719
723
|
}
|
|
@@ -1043,7 +1047,7 @@ class ApplicationDialogService {
|
|
|
1043
1047
|
* @param action : action to do during the execution (optional)
|
|
1044
1048
|
* @returns true if a new popup has been opened
|
|
1045
1049
|
*/
|
|
1046
|
-
setBusy(message, progress = -1, progressMode = 'indeterminate', type = 'bar', action =
|
|
1050
|
+
setBusy(message, progress = -1, progressMode = 'indeterminate', type = 'bar', action = null) {
|
|
1047
1051
|
return this.dialogService.setBusy(message, progress, progressMode, type, action);
|
|
1048
1052
|
}
|
|
1049
1053
|
/**
|
|
@@ -1054,7 +1058,7 @@ class ApplicationDialogService {
|
|
|
1054
1058
|
* @param action : action to do during the execution (optional)
|
|
1055
1059
|
* @returns true if a new popup has been opened
|
|
1056
1060
|
*/
|
|
1057
|
-
busy(message, progress = -1, progressMode = 'indeterminate', action =
|
|
1061
|
+
busy(message, progress = -1, progressMode = 'indeterminate', action = null) {
|
|
1058
1062
|
return this.dialogService.setBusy(message, progress, progressMode, 'bar', action);
|
|
1059
1063
|
}
|
|
1060
1064
|
/**
|
|
@@ -1063,7 +1067,7 @@ class ApplicationDialogService {
|
|
|
1063
1067
|
* @param action : action to do during the execution (optional)
|
|
1064
1068
|
* @returns true if a new popup has been opened
|
|
1065
1069
|
*/
|
|
1066
|
-
busyHourglass(message, action =
|
|
1070
|
+
busyHourglass(message, action = null) {
|
|
1067
1071
|
return this.setBusy(message, null, null, 'hourglass', action);
|
|
1068
1072
|
}
|
|
1069
1073
|
/**
|
|
@@ -1074,7 +1078,7 @@ class ApplicationDialogService {
|
|
|
1074
1078
|
* @param action : action to do during the execution (optional)
|
|
1075
1079
|
* @returns true if a new popup has been opened
|
|
1076
1080
|
*/
|
|
1077
|
-
busySpinner(message, progress = -1, progressMode = 'indeterminate', action =
|
|
1081
|
+
busySpinner(message, progress = -1, progressMode = 'indeterminate', action = null) {
|
|
1078
1082
|
return this.dialogService.setBusy(message, progress, progressMode, 'spinner', action);
|
|
1079
1083
|
}
|
|
1080
1084
|
/**
|
|
@@ -1082,7 +1086,7 @@ class ApplicationDialogService {
|
|
|
1082
1086
|
* @param action : action to do during the execution (optional)
|
|
1083
1087
|
* @returns true if a new popup has been opened
|
|
1084
1088
|
*/
|
|
1085
|
-
wait(action =
|
|
1089
|
+
wait(action = null) {
|
|
1086
1090
|
return this.dialogService.setBusy(null, null, null, 'wait', action);
|
|
1087
1091
|
}
|
|
1088
1092
|
/**
|
|
@@ -1095,7 +1099,7 @@ class ApplicationDialogService {
|
|
|
1095
1099
|
* @param details: if specified, the details info
|
|
1096
1100
|
* @param onNavigate: the callback to use for navigation. Default is null
|
|
1097
1101
|
*/
|
|
1098
|
-
info(message, title = 'Informazioni', okCaption = 'Ok', width = 500, dismissAfter =
|
|
1102
|
+
info(message, title = 'Informazioni', okCaption = 'Ok', width = 500, dismissAfter = null, details = null, onNavigate = null) {
|
|
1099
1103
|
return this.dialogService.info(message, title, okCaption, width, dismissAfter, details, onNavigate);
|
|
1100
1104
|
}
|
|
1101
1105
|
/**
|
|
@@ -1107,7 +1111,7 @@ class ApplicationDialogService {
|
|
|
1107
1111
|
* @param width: the preferred width
|
|
1108
1112
|
* @param dismissAfter: if specified, the dialog will be closed after dismissAfter milliseconds
|
|
1109
1113
|
*/
|
|
1110
|
-
error(message, log =
|
|
1114
|
+
error(message, log = null, title = 'Errore', okCaption = 'Ok', width = 500, dismissAfter = null) {
|
|
1111
1115
|
return this.dialogService.error(message, log, title, okCaption, width, dismissAfter);
|
|
1112
1116
|
}
|
|
1113
1117
|
/**
|
|
@@ -1117,7 +1121,7 @@ class ApplicationDialogService {
|
|
|
1117
1121
|
* @param icon : the mat-icon to display
|
|
1118
1122
|
* @param actionCaption action button caption
|
|
1119
1123
|
*/
|
|
1120
|
-
toast(message, duration = 2000, icon = 'check', actionCaption =
|
|
1124
|
+
toast(message, duration = 2000, icon = 'check', actionCaption = null) {
|
|
1121
1125
|
return this.dialogService.toast(message, duration, icon, actionCaption);
|
|
1122
1126
|
}
|
|
1123
1127
|
/**
|
|
@@ -1130,7 +1134,7 @@ class ApplicationDialogService {
|
|
|
1130
1134
|
* @param options: check box options
|
|
1131
1135
|
* @param width: the preferred width
|
|
1132
1136
|
*/
|
|
1133
|
-
confirm(message, title = 'Conferma', okCaption = 'Si', cancelCaption = 'No', otherCaption =
|
|
1137
|
+
confirm(message, title = 'Conferma', okCaption = 'Si', cancelCaption = 'No', otherCaption = null, options = null, width = 500, details = null) {
|
|
1134
1138
|
return this.dialogService.confirm(message, title, okCaption, cancelCaption, otherCaption, options, width, details);
|
|
1135
1139
|
}
|
|
1136
1140
|
/**
|
|
@@ -1141,7 +1145,7 @@ class ApplicationDialogService {
|
|
|
1141
1145
|
* @param options : checkable option list
|
|
1142
1146
|
* @param width: the preferred width
|
|
1143
1147
|
*/
|
|
1144
|
-
sendTo(title = 'Invia per email', allowPopulate = false, count =
|
|
1148
|
+
sendTo(title = 'Invia per email', allowPopulate = false, count = null, options = null, width = 500) {
|
|
1145
1149
|
return this.dialogService.open(SendToDialogComponent, {
|
|
1146
1150
|
ariaLabel: 'invia per email',
|
|
1147
1151
|
autoFocus: true,
|
|
@@ -1168,7 +1172,7 @@ class ApplicationDialogService {
|
|
|
1168
1172
|
* @param width: the preferred width
|
|
1169
1173
|
* @param okCaption : ok catpion button
|
|
1170
1174
|
*/
|
|
1171
|
-
selectTree(nodes, title = 'Seleziona un elemento', description =
|
|
1175
|
+
selectTree(nodes, title = 'Seleziona un elemento', description = null, initialFilter = null, width = 800, okCaption = 'Ok') {
|
|
1172
1176
|
return this.dialogService.open(SelectTreeDialogComponent, {
|
|
1173
1177
|
ariaLabel: 'seleziona un elemento',
|
|
1174
1178
|
autoFocus: true,
|
|
@@ -1195,7 +1199,7 @@ class ApplicationDialogService {
|
|
|
1195
1199
|
* @param options : checkable option list
|
|
1196
1200
|
* @param width: the preferred width
|
|
1197
1201
|
*/
|
|
1198
|
-
selectPicture(title = 'Seleziona immagine', descritpion =
|
|
1202
|
+
selectPicture(title = 'Seleziona immagine', descritpion = null, okCaption = 'Ok', options = null, width = 600) {
|
|
1199
1203
|
return this.dialogService.open(SelectPictureDialogComponent, {
|
|
1200
1204
|
ariaLabel: 'seleziona immagine',
|
|
1201
1205
|
autoFocus: true,
|
|
@@ -1224,7 +1228,7 @@ class ApplicationDialogService {
|
|
|
1224
1228
|
* @param options : checkable option list
|
|
1225
1229
|
* @param width: the preferred width
|
|
1226
1230
|
*/
|
|
1227
|
-
selectFile(title = 'Seleziona file', descritpion =
|
|
1231
|
+
selectFile(title = 'Seleziona file', descritpion = null, okCaption = 'Ok', helpLink = null, helpCaption = null, options = null, width = 600) {
|
|
1228
1232
|
return this.dialogService.open(SelectFileDialogComponent, {
|
|
1229
1233
|
ariaLabel: 'seleziona file',
|
|
1230
1234
|
autoFocus: true,
|
|
@@ -1277,7 +1281,7 @@ class ApplicationDialogService {
|
|
|
1277
1281
|
* @param options : checkable option list
|
|
1278
1282
|
* @param width: the preferred width
|
|
1279
1283
|
*/
|
|
1280
|
-
prompt(title, type = 0, description, initialValue =
|
|
1284
|
+
prompt(title, type = 0, description, initialValue = null, okCaption = 'Ok', cancelCaption = 'Annulla', options = null, width = 500) {
|
|
1281
1285
|
return this.dialogService.open(PromptDialogComponent, {
|
|
1282
1286
|
ariaLabel: 'inserisci valore',
|
|
1283
1287
|
autoFocus: true,
|
|
@@ -1337,7 +1341,7 @@ class PromptDateDialogComponent {
|
|
|
1337
1341
|
this.done = output();
|
|
1338
1342
|
this.dialogService = inject(DialogService);
|
|
1339
1343
|
this.dialogData = inject(MAT_DIALOG_DATA) ?? { appearance: 'fill', title: 'Inserisci dato', type: PromptDialogType.Default };
|
|
1340
|
-
this.value =
|
|
1344
|
+
this.value = null;
|
|
1341
1345
|
}
|
|
1342
1346
|
ngOnInit() {
|
|
1343
1347
|
if (!this.dialogData.appearance) {
|
|
@@ -1390,7 +1394,7 @@ class PromptTimeDialogComponent {
|
|
|
1390
1394
|
this.done = output();
|
|
1391
1395
|
this.dialogService = inject(DialogService);
|
|
1392
1396
|
this.dialogData = inject(MAT_DIALOG_DATA) ?? { appearance: 'fill', title: 'Inserisci dato', type: PromptDialogType.Default };
|
|
1393
|
-
this.value =
|
|
1397
|
+
this.value = null;
|
|
1394
1398
|
}
|
|
1395
1399
|
ngOnInit() {
|
|
1396
1400
|
if (!this.dialogData.appearance) {
|
|
@@ -1498,7 +1502,7 @@ class FileInputComponent {
|
|
|
1498
1502
|
this._required = false;
|
|
1499
1503
|
this._disabled = false;
|
|
1500
1504
|
this._placeholder = '';
|
|
1501
|
-
this.fileName =
|
|
1505
|
+
this.fileName = null;
|
|
1502
1506
|
this.maxSizeMb = input(5);
|
|
1503
1507
|
this.minSizeMb = input(0);
|
|
1504
1508
|
this.isNew = input(false);
|
|
@@ -1758,9 +1762,9 @@ class FilterBarComponent {
|
|
|
1758
1762
|
this.text3Length = input();
|
|
1759
1763
|
this.showTextSearchButton = input(false);
|
|
1760
1764
|
this.appearance = input('outline');
|
|
1761
|
-
this.text =
|
|
1762
|
-
this.text2 =
|
|
1763
|
-
this.text3 =
|
|
1765
|
+
this.text = null;
|
|
1766
|
+
this.text2 = null;
|
|
1767
|
+
this.text3 = null;
|
|
1764
1768
|
this.currentFilter = new CurrentFilter();
|
|
1765
1769
|
effect(() => {
|
|
1766
1770
|
this.text = this.initialText();
|
|
@@ -2120,19 +2124,19 @@ class ButtonSelectorComponent {
|
|
|
2120
2124
|
this.changeDetector = inject(ChangeDetectorRef);
|
|
2121
2125
|
this.stateChanges = new Subject();
|
|
2122
2126
|
this.focused = false;
|
|
2123
|
-
this._value =
|
|
2127
|
+
this._value = null;
|
|
2124
2128
|
this._disabled = false;
|
|
2125
2129
|
this.propagateChange = (_) => { };
|
|
2126
2130
|
this.propagateTouched = () => { };
|
|
2127
2131
|
this.id = `button-selector--${SystemUtils.generateUUID()}`;
|
|
2128
2132
|
this.describedBy = '';
|
|
2129
2133
|
this.renderer = inject(Renderer2);
|
|
2130
|
-
this.current = signal(
|
|
2134
|
+
this.current = signal(null);
|
|
2131
2135
|
this.width = input(-1);
|
|
2132
2136
|
this.border = input(-1);
|
|
2133
2137
|
this.borderRadius = input("9999px");
|
|
2134
|
-
this.label = input(
|
|
2135
|
-
this.labelSelected = input(
|
|
2138
|
+
this.label = input(null);
|
|
2139
|
+
this.labelSelected = input(null);
|
|
2136
2140
|
this.options = input([]);
|
|
2137
2141
|
this.autoSelect = input(false);
|
|
2138
2142
|
if (this.ngControl != null) {
|
|
@@ -2314,7 +2318,7 @@ class ChipsSelectorComponent {
|
|
|
2314
2318
|
this.describedBy = '';
|
|
2315
2319
|
this.renderer = inject(Renderer2);
|
|
2316
2320
|
this.selection = [];
|
|
2317
|
-
this.singleSelection =
|
|
2321
|
+
this.singleSelection = null;
|
|
2318
2322
|
if (this.ngControl != null) {
|
|
2319
2323
|
this.ngControl.valueAccessor = this;
|
|
2320
2324
|
}
|
|
@@ -2480,12 +2484,12 @@ class ButtonToggleComponent {
|
|
|
2480
2484
|
this.value = input(false);
|
|
2481
2485
|
this.width = input(-1);
|
|
2482
2486
|
this.border = input(-1);
|
|
2483
|
-
this.labelOn = input(
|
|
2484
|
-
this.labelOff = input(
|
|
2485
|
-
this.iconOn = input(
|
|
2486
|
-
this.iconOff = input(
|
|
2487
|
-
this.cssClass = input(
|
|
2488
|
-
this.cssClassSmall = input(
|
|
2487
|
+
this.labelOn = input(null);
|
|
2488
|
+
this.labelOff = input(null);
|
|
2489
|
+
this.iconOn = input(null);
|
|
2490
|
+
this.iconOff = input(null);
|
|
2491
|
+
this.cssClass = input(null);
|
|
2492
|
+
this.cssClassSmall = input(null);
|
|
2489
2493
|
this.label = computed(() => {
|
|
2490
2494
|
return this.value() ? this.labelOn() ?? '' : this.labelOff() ?? '';
|
|
2491
2495
|
});
|