@fluxhub/fluxhub-lib 9.0.91 → 9.0.92

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.
@@ -69,6 +69,7 @@ import { MatPaginatorModule } from '@angular/material/paginator';
69
69
  import { MatSortModule } from '@angular/material/sort';
70
70
  import { MatTableModule } from '@angular/material/table';
71
71
  import { MatBadgeModule } from '@angular/material/badge';
72
+ import { QuillModule } from 'ngx-quill';
72
73
 
73
74
  /**
74
75
  * App service
@@ -9446,40 +9447,6 @@ let FHRichText = class FHRichText {
9446
9447
  this.blur.emit(o);
9447
9448
  }
9448
9449
  ngAfterViewInit() {
9449
- setTimeout(() => {
9450
- this.config = { height: this.height };
9451
- if (this.enabled) {
9452
- this.config.toolbarGroups = [
9453
- { name: 'document', groups: ['mode', 'document', 'doctools'] },
9454
- { name: 'clipboard', groups: ['clipboard', 'undo'] },
9455
- { name: 'editing', groups: ['find', 'selection', 'spellchecker'] },
9456
- { name: 'basicstyles', groups: ['basicstyles', 'cleanup'] },
9457
- { name: 'paragraph', groups: ['list', 'indent', 'blocks', 'align', 'bidi'] },
9458
- { name: 'links' },
9459
- { name: 'insert' },
9460
- { name: 'styles' },
9461
- { name: 'colors' },
9462
- { name: 'tools' },
9463
- { name: 'others' },
9464
- { name: 'about' }
9465
- ];
9466
- }
9467
- else {
9468
- this.config.allowedContent = true;
9469
- this.config.toolbarGroups = [];
9470
- }
9471
- /*
9472
- var element = document.querySelector( '.cke_top' );
9473
- console.log("Just to do some debugging we check " + element);
9474
- var myEl = this.ced.toolbarButtons
9475
- myEl.toggle();
9476
- element = document.querySelector( '.cke_bottom' );
9477
- myEl = ced.element( element );
9478
- myEl.toggle();
9479
-
9480
- var myEl2 = angular.element( document.querySelector( '.test' ) );
9481
- myEl2.toggleClass("invisible")*/
9482
- });
9483
9450
  }
9484
9451
  writeValue(value) {
9485
9452
  this.value = value;
@@ -9524,16 +9491,14 @@ FHRichText = __decorate([
9524
9491
  Component({
9525
9492
  selector: 'FHRichText', providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_RT], template: `
9526
9493
  <b *ngIf="label!=''">{{label}}</b>
9527
- <ckeditor
9528
- [(ngModel)]="value"
9529
- [config]="config"
9530
- [readonly]="!enabled"
9494
+
9495
+ <quill-editor [hidden]="!enabled"
9531
9496
  (change)="writeValue($event)"
9532
9497
  (focus)="onFocus($event)"
9533
- (blur)="onBlur($event)" ngDefaultControl
9534
- debounce="500">
9535
- </ckeditor>
9498
+ (blur)="onBlur($event)" [(ngModel)]="value"
9536
9499
 
9500
+ ></quill-editor>
9501
+ <quill-view [content]="value" [hidden]="enabled" format="text" theme="snow" ></quill-view>
9537
9502
  `,
9538
9503
  styles: [`
9539
9504
 
@@ -16314,7 +16279,26 @@ FluxhubLibModule = FluxhubLibModule_1 = __decorate([
16314
16279
  AgmCoreModule.forRoot({
16315
16280
  apiKey: 'AIzaSyD3-g3b_QqxUruxBY4PGJKaH2fubIVXvN4'
16316
16281
  }),
16317
- FlexLayoutModule, MarkdownModule, CKEditorModule],
16282
+ FlexLayoutModule, MarkdownModule, QuillModule.forRoot({
16283
+ modules: {
16284
+ syntax: false,
16285
+ toolbar: [
16286
+ ['bold', 'italic', 'underline', 'strike'],
16287
+ ['blockquote', 'code-block'],
16288
+ [{ 'header': 1 }, { 'header': 2 }],
16289
+ [{ 'list': 'ordered' }, { 'list': 'bullet' }],
16290
+ [{ 'script': 'sub' }, { 'script': 'super' }],
16291
+ [{ 'indent': '-1' }, { 'indent': '+1' }],
16292
+ [{ 'direction': 'rtl' }],
16293
+ [{ 'size': ['small', false, 'large', 'huge'] }],
16294
+ [{ 'header': [1, 2, 3, 4, 5, 6, false] }],
16295
+ [{ 'color': [] }, { 'background': [] }],
16296
+ [{ 'font': [] }],
16297
+ [{ 'align': [] }],
16298
+ ['clean'] // link and image, video
16299
+ ]
16300
+ }
16301
+ }), CKEditorModule],
16318
16302
  exports: [FHTextArea, CheckboxEditorComponent, FHCheckBox, FHTextInput, FHHelpButton, win_user_info, win_insert_commento, FHRoleManager, FHFieldPickListComponent, SafePipe, fhimagepreview, win_show_image, WinAskButtonsComponent, win_time_slider, DecimalMask, FHTimePickerComponent, CurrencyComponent, FHUploadPanelComponent, FHUploadComponent,
16319
16303
  FHGridComponent, FHComboboxComponent, FHConfirmComponent, FHAutoCompleteComponent, FHDatePickerComponent, NumericEditorComponent,
16320
16304
  FHUserPickerComponent, ApprovaGridComponent, FHCurrencyFormatterDirective, FHCurrencyPipe, win_mappa, win_grid_help, TextAreaEditor,