@fluxhub/fluxhub-lib 9.0.91 → 9.0.93

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.
@@ -35,7 +35,6 @@ import NavigatedViewer from 'bpmn-js/lib/NavigatedViewer';
35
35
  import { MatTabGroup, MatTabsModule } from '@angular/material/tabs';
36
36
  import { FlexLayoutModule } from '@angular/flex-layout';
37
37
  import { MarkdownModule } from 'ngx-markdown';
38
- import { CKEditorModule } from 'ng2-ckeditor';
39
38
  import { AgGridModule } from 'ag-grid-angular';
40
39
  import { AgmCoreModule } from '@agm/core';
41
40
  import { CdkTableModule } from '@angular/cdk/table';
@@ -69,6 +68,7 @@ import { MatPaginatorModule } from '@angular/material/paginator';
69
68
  import { MatSortModule } from '@angular/material/sort';
70
69
  import { MatTableModule } from '@angular/material/table';
71
70
  import { MatBadgeModule } from '@angular/material/badge';
71
+ import { QuillModule } from 'ngx-quill';
72
72
 
73
73
  /**
74
74
  * App service
@@ -9446,40 +9446,6 @@ let FHRichText = class FHRichText {
9446
9446
  this.blur.emit(o);
9447
9447
  }
9448
9448
  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
9449
  }
9484
9450
  writeValue(value) {
9485
9451
  this.value = value;
@@ -9524,16 +9490,14 @@ FHRichText = __decorate([
9524
9490
  Component({
9525
9491
  selector: 'FHRichText', providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_RT], template: `
9526
9492
  <b *ngIf="label!=''">{{label}}</b>
9527
- <ckeditor
9528
- [(ngModel)]="value"
9529
- [config]="config"
9530
- [readonly]="!enabled"
9493
+
9494
+ <quill-editor [hidden]="!enabled"
9531
9495
  (change)="writeValue($event)"
9532
9496
  (focus)="onFocus($event)"
9533
- (blur)="onBlur($event)" ngDefaultControl
9534
- debounce="500">
9535
- </ckeditor>
9497
+ (blur)="onBlur($event)" [(ngModel)]="value"
9536
9498
 
9499
+ ></quill-editor>
9500
+ <quill-view [content]="value" [hidden]="enabled" format="text" theme="snow" ></quill-view>
9537
9501
  `,
9538
9502
  styles: [`
9539
9503
 
@@ -16314,7 +16278,26 @@ FluxhubLibModule = FluxhubLibModule_1 = __decorate([
16314
16278
  AgmCoreModule.forRoot({
16315
16279
  apiKey: 'AIzaSyD3-g3b_QqxUruxBY4PGJKaH2fubIVXvN4'
16316
16280
  }),
16317
- FlexLayoutModule, MarkdownModule, CKEditorModule],
16281
+ FlexLayoutModule, MarkdownModule, QuillModule.forRoot({
16282
+ modules: {
16283
+ syntax: false,
16284
+ toolbar: [
16285
+ ['bold', 'italic', 'underline', 'strike'],
16286
+ ['blockquote', 'code-block'],
16287
+ [{ 'header': 1 }, { 'header': 2 }],
16288
+ [{ 'list': 'ordered' }, { 'list': 'bullet' }],
16289
+ [{ 'script': 'sub' }, { 'script': 'super' }],
16290
+ [{ 'indent': '-1' }, { 'indent': '+1' }],
16291
+ [{ 'direction': 'rtl' }],
16292
+ [{ 'size': ['small', false, 'large', 'huge'] }],
16293
+ [{ 'header': [1, 2, 3, 4, 5, 6, false] }],
16294
+ [{ 'color': [] }, { 'background': [] }],
16295
+ [{ 'font': [] }],
16296
+ [{ 'align': [] }],
16297
+ ['clean'] // link and image, video
16298
+ ]
16299
+ }
16300
+ })],
16318
16301
  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
16302
  FHGridComponent, FHComboboxComponent, FHConfirmComponent, FHAutoCompleteComponent, FHDatePickerComponent, NumericEditorComponent,
16320
16303
  FHUserPickerComponent, ApprovaGridComponent, FHCurrencyFormatterDirective, FHCurrencyPipe, win_mappa, win_grid_help, TextAreaEditor,