@fluxhub/fluxhub-lib 19.0.122 → 19.0.124

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,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Injectable, forwardRef, EventEmitter, Input, Output, ViewChild, Component, Inject, Pipe, HostListener, Directive, ChangeDetectionStrategy, ViewEncapsulation, ViewContainerRef, Optional, HostBinding } from '@angular/core';
2
+ import { Injectable, forwardRef, EventEmitter, Input, Output, ViewChild, Component, Inject, Pipe, HostListener, Directive, ChangeDetectionStrategy, ViewEncapsulation, ViewContainerRef, Optional } from '@angular/core';
3
3
  import * as i1$1 from '@angular/common/http';
4
4
  import { HttpHeaders, HttpEventType, HttpErrorResponse } from '@angular/common/http';
5
5
  import { map, catchError, flatMap, debounceTime, switchMap, filter, take, tap } from 'rxjs/operators';
@@ -66,7 +66,7 @@ import * as i6$3 from '@angular/material/menu';
66
66
  import { MatMenuModule } from '@angular/material/menu';
67
67
  import { ModuleRegistry, themeQuartz } from 'ag-grid-community';
68
68
  import * as i8$4 from '@angular/cdk/clipboard';
69
- import { ColorPickerControl, ChromePickerComponent } from '@iplab/ngx-color-picker';
69
+ import { ColorPickerDirective } from 'ngx-color-picker';
70
70
  import Quill from 'quill';
71
71
  import * as i10$1 from 'ng2-file-upload';
72
72
  import { FileUploader, FileUploadModule } from 'ng2-file-upload';
@@ -1882,7 +1882,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImpo
1882
1882
  }]
1883
1883
  }], ctorParameters: () => [{ type: i1$1.HttpClient }, { type: AppService }, { type: i3$1.ToastrService }] });
1884
1884
 
1885
- const noop$9 = () => { };
1885
+ const noop$8 = () => { };
1886
1886
  const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$e = {
1887
1887
  provide: NG_VALUE_ACCESSOR,
1888
1888
  useExisting: forwardRef(() => FHComboboxComponent),
@@ -2439,7 +2439,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImpo
2439
2439
  type: Input
2440
2440
  }] } });
2441
2441
 
2442
- const noop$8 = () => { };
2442
+ const noop$7 = () => { };
2443
2443
  const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$d = {
2444
2444
  provide: NG_VALUE_ACCESSOR,
2445
2445
  useExisting: forwardRef(() => FHAutoCompleteComponent),
@@ -3869,7 +3869,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImpo
3869
3869
  args: ["cmb_sel"]
3870
3870
  }] } });
3871
3871
 
3872
- const noop$7 = () => { };
3872
+ const noop$6 = () => { };
3873
3873
  const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$c = {
3874
3874
  provide: NG_VALUE_ACCESSOR,
3875
3875
  useExisting: forwardRef(() => FHCheckBoxComponent),
@@ -3962,7 +3962,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImpo
3962
3962
  type: Output
3963
3963
  }] } });
3964
3964
 
3965
- const noop$6 = () => { };
3965
+ const noop$5 = () => { };
3966
3966
  const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$b = {
3967
3967
  provide: NG_VALUE_ACCESSOR,
3968
3968
  useExisting: forwardRef(() => FHTextAreaComponent),
@@ -6090,7 +6090,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImpo
6090
6090
  type: Output
6091
6091
  }] } });
6092
6092
 
6093
- const noop$5 = () => { };
6093
+ const noop$4 = () => { };
6094
6094
  const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$7 = {
6095
6095
  provide: NG_VALUE_ACCESSOR,
6096
6096
  useExisting: forwardRef(() => FHTextInputComponent),
@@ -13213,7 +13213,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImpo
13213
13213
  args: ["dtm"]
13214
13214
  }] } });
13215
13215
 
13216
- const noop$4 = () => { };
13216
+ const noop$3 = () => { };
13217
13217
  const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$5 = {
13218
13218
  provide: NG_VALUE_ACCESSOR,
13219
13219
  useExisting: forwardRef(() => FHMultiComboboxComponent),
@@ -13665,7 +13665,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImpo
13665
13665
  type: Input
13666
13666
  }] } });
13667
13667
 
13668
- const noop$3 = () => { };
13668
+ const noop$2 = () => { };
13669
13669
  const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_NUMERIC = {
13670
13670
  provide: NG_VALUE_ACCESSOR,
13671
13671
  useExisting: forwardRef(() => FHNumericFieldComponent),
@@ -14815,7 +14815,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImpo
14815
14815
  type: Output
14816
14816
  }] } });
14817
14817
 
14818
- const noop$2 = () => { };
14819
14818
  const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$3 = {
14820
14819
  provide: NG_VALUE_ACCESSOR,
14821
14820
  useExisting: forwardRef(() => FHColorPickerComponent),
@@ -14825,65 +14824,45 @@ class FHColorPickerComponent {
14825
14824
  hidden = false;
14826
14825
  enabled = true;
14827
14826
  change = new EventEmitter();
14828
- _color = null;
14829
- colorControl = new ColorPickerControl();
14830
- isVisible = false;
14827
+ _color = '#2196F3';
14831
14828
  set color(color) {
14832
- this.colorControl.setValueFrom(color);
14833
- this._color = this.colorControl.value;
14829
+ if (color) {
14830
+ this._color = color;
14831
+ }
14834
14832
  }
14835
14833
  colorChange = new EventEmitter();
14836
- get background() {
14837
- return this._color ? this._color.toHexString() : null;
14834
+ onColorChange(color) {
14835
+ console.log('FHColorPicker - onColorChange:', color);
14836
+ this._color = color;
14838
14837
  }
14839
- ngOnInit() {
14840
- // Inizializza con un colore di default se _color è null
14841
- if (!this._color) {
14842
- this.colorControl.setValueFrom('#2196F3');
14843
- this._color = this.colorControl.value;
14844
- }
14838
+ onColorSelect(color) {
14839
+ console.log('FHColorPicker - onColorSelect:', color);
14840
+ this._color = color;
14841
+ this.onChange(color);
14842
+ this.colorChange.emit(color);
14843
+ this.change.emit(color);
14845
14844
  }
14846
- showColorPicker(event) {
14847
- if (this.isVisible === true) {
14848
- return;
14849
- }
14850
- this.isVisible = !this.isVisible;
14845
+ constructor() {
14846
+ console.log('FHColorPicker - constructor');
14851
14847
  }
14852
- applyClick(event) {
14853
- event.preventDefault();
14854
- event.stopPropagation();
14855
- this.isVisible = false;
14856
- this._color = this.colorControl.value;
14857
- // Restituisci l'oggetto Color invece della stringa per mantenere la coerenza con la libreria
14858
- this.onChange(this._color);
14859
- this.change.emit(this._color ? this._color.toHexString() : '#2196F3');
14848
+ ngAfterViewInit() {
14849
+ console.log('FHColorPicker - ngAfterViewInit, color:', this._color, 'enabled:', this.enabled, 'hidden:', this.hidden);
14860
14850
  }
14861
- constructor() { }
14862
- ngAfterViewInit() { }
14863
14851
  writeValue(value) {
14864
- // Gestisce sia stringhe hex che oggetti Color
14865
14852
  if (value) {
14866
14853
  if (typeof value === 'string') {
14867
- // Se è una stringa, convertila in un oggetto Color
14868
- try {
14869
- this.colorControl.setValueFrom(value);
14870
- this._color = this.colorControl.value;
14871
- }
14872
- catch (e) {
14873
- // Se la conversione fallisce, usa un colore di default
14874
- this.colorControl.setValueFrom('#2196F3');
14875
- this._color = this.colorControl.value;
14876
- }
14854
+ this._color = value;
14855
+ }
14856
+ else if (value.hex) {
14857
+ // Supporto per oggetti con proprietà hex (compatibilità retroattiva)
14858
+ this._color = value.hex;
14877
14859
  }
14878
14860
  else {
14879
- // Se è già un oggetto Color
14880
- this._color = value;
14861
+ this._color = '#2196F3';
14881
14862
  }
14882
14863
  }
14883
14864
  else {
14884
- // Se il valore è null/undefined, usa un colore di default
14885
- this.colorControl.setValueFrom('#2196F3');
14886
- this._color = this.colorControl.value;
14865
+ this._color = '#2196F3';
14887
14866
  }
14888
14867
  }
14889
14868
  onChange = (_) => { };
@@ -14895,37 +14874,55 @@ class FHColorPickerComponent {
14895
14874
  this.onTouched = fn;
14896
14875
  }
14897
14876
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: FHColorPickerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
14898
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.17", type: FHColorPickerComponent, isStandalone: true, selector: "FHColorPicker", inputs: { hidden: "hidden", enabled: "enabled", color: "color" }, outputs: { change: "change", colorChange: "colorChange" }, host: { listeners: { "click": "showColorPicker($event)" }, properties: { "style.background-color": "this.background" } }, providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$3], ngImport: i0, template: `
14899
- <div class="picker" *ngIf="!hidden && enabled && isVisible">
14900
- <chrome-picker [control]="colorControl">
14901
- <div class="buttons">
14902
- <button type="button" color="primary" mat-raised-button (click)="applyClick($event)">{{'SELEZIONA' | translate}}</button>
14903
- </div>
14904
- </chrome-picker>
14905
- <div class="overlay"></div>
14906
- </div>
14907
- <div *ngIf="!hidden && !enabled" class="color-picker-circle" [style.backgroundColor]="_color">
14877
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.17", type: FHColorPickerComponent, isStandalone: true, selector: "FHColorPicker", inputs: { hidden: "hidden", enabled: "enabled", color: "color" }, outputs: { change: "change", colorChange: "colorChange" }, providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$3], ngImport: i0, template: `
14878
+ <div
14879
+ *ngIf="!hidden"
14880
+ class="color-picker-circle"
14881
+ [class.disabled]="!enabled"
14882
+ [style.backgroundColor]="_color"
14883
+ [(colorPicker)]="_color"
14884
+ [cpPosition]="'bottom'"
14885
+ [cpPositionRelativeToArrow]="true"
14886
+ [cpOKButton]="true"
14887
+ [cpOKButtonText]="'SELEZIONA' | translate"
14888
+ [cpCancelButton]="true"
14889
+ [cpCancelButtonText]="'ANNULLA' | translate"
14890
+ [cpOKButtonClass]="'custom-ok-button'"
14891
+ [cpCancelButtonClass]="'custom-cancel-button'"
14892
+ [cpDialogDisplay]="'popup'"
14893
+ [cpDisabled]="!enabled"
14894
+ (colorPickerChange)="onColorChange($event)"
14895
+ (colorPickerSelect)="onColorSelect($event)">
14908
14896
  </div>
14909
- `, isInline: true, styles: [":host{border:1px solid #333;border-radius:35px;cursor:pointer;display:inline-block;height:35px;position:relative;width:35px}\n", ".picker{left:100%;position:absolute;top:100%;z-index:2;chrome-picker{left:100%;position:absolute;top:100%;z-index:2}.buttons{padding:0 12px 12px;text-align:center;button{padding:.2rem 1rem}}.overlay{background:transparent;left:0;position:fixed;top:0;height:100%;width:100%;z-index:1}}\n"], dependencies: [{ kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i3.TranslatePipe, name: "translate" }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: ChromePickerComponent, selector: "chrome-picker", inputs: ["color", "control"], outputs: ["colorChange"] }] });
14897
+ `, isInline: true, styles: [":host{display:inline-block}.color-picker-circle{width:35px;height:35px;border:1px solid #333;border-radius:50%;cursor:pointer;transition:all .2s ease}.color-picker-circle:hover:not(.disabled){transform:scale(1.1);box-shadow:0 2px 8px #0000004d}.color-picker-circle.disabled{cursor:not-allowed;opacity:.6}::ng-deep .custom-ok-button{background-color:#1976d2!important;color:#fff!important;border:none!important;padding:8px 20px!important;border-radius:4px!important;font-weight:500!important;cursor:pointer!important;transition:background-color .2s ease!important;margin:0 5px!important}::ng-deep .custom-ok-button:hover{background-color:#1565c0!important;box-shadow:0 2px 4px #0003!important}::ng-deep .custom-cancel-button{background-color:#f5f5f5!important;color:#424242!important;border:1px solid #ddd!important;padding:8px 20px!important;border-radius:4px!important;font-weight:500!important;cursor:pointer!important;transition:all .2s ease!important;margin:0 5px!important}::ng-deep .custom-cancel-button:hover{background-color:#eee!important;border-color:#ccc!important}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: ColorPickerDirective, selector: "[colorPicker]", inputs: ["colorPicker", "cpWidth", "cpHeight", "cpToggle", "cpDisabled", "cpIgnoredElements", "cpFallbackColor", "cpColorMode", "cpCmykEnabled", "cpOutputFormat", "cpAlphaChannel", "cpDisableInput", "cpDialogDisplay", "cpSaveClickOutside", "cpCloseClickOutside", "cpUseRootViewContainer", "cpPosition", "cpPositionOffset", "cpPositionRelativeToArrow", "cpOKButton", "cpOKButtonText", "cpOKButtonClass", "cpCancelButton", "cpCancelButtonText", "cpCancelButtonClass", "cpEyeDropper", "cpPresetLabel", "cpPresetColors", "cpPresetColorsClass", "cpMaxPresetColorsLength", "cpPresetEmptyMessage", "cpPresetEmptyMessageClass", "cpAddColorButton", "cpAddColorButtonText", "cpAddColorButtonClass", "cpRemoveColorButtonClass", "cpArrowPosition", "cpExtraTemplate"], outputs: ["cpInputChange", "cpToggleChange", "cpSliderChange", "cpSliderDragEnd", "cpSliderDragStart", "colorPickerOpen", "colorPickerClose", "colorPickerCancel", "colorPickerSelect", "colorPickerChange", "cpCmykColorChange", "cpPresetColorsChange"], exportAs: ["ngxColorPicker"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i3.TranslatePipe, name: "translate" }] });
14910
14898
  }
14911
14899
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: FHColorPickerComponent, decorators: [{
14912
14900
  type: Component,
14913
- args: [{ imports: [
14914
- TranslateModule,
14901
+ args: [{ standalone: true, imports: [
14915
14902
  CommonModule,
14916
- ChromePickerComponent
14903
+ ColorPickerDirective,
14904
+ TranslateModule
14917
14905
  ], selector: "FHColorPicker", providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$3], template: `
14918
- <div class="picker" *ngIf="!hidden && enabled && isVisible">
14919
- <chrome-picker [control]="colorControl">
14920
- <div class="buttons">
14921
- <button type="button" color="primary" mat-raised-button (click)="applyClick($event)">{{'SELEZIONA' | translate}}</button>
14922
- </div>
14923
- </chrome-picker>
14924
- <div class="overlay"></div>
14925
- </div>
14926
- <div *ngIf="!hidden && !enabled" class="color-picker-circle" [style.backgroundColor]="_color">
14906
+ <div
14907
+ *ngIf="!hidden"
14908
+ class="color-picker-circle"
14909
+ [class.disabled]="!enabled"
14910
+ [style.backgroundColor]="_color"
14911
+ [(colorPicker)]="_color"
14912
+ [cpPosition]="'bottom'"
14913
+ [cpPositionRelativeToArrow]="true"
14914
+ [cpOKButton]="true"
14915
+ [cpOKButtonText]="'SELEZIONA' | translate"
14916
+ [cpCancelButton]="true"
14917
+ [cpCancelButtonText]="'ANNULLA' | translate"
14918
+ [cpOKButtonClass]="'custom-ok-button'"
14919
+ [cpCancelButtonClass]="'custom-cancel-button'"
14920
+ [cpDialogDisplay]="'popup'"
14921
+ [cpDisabled]="!enabled"
14922
+ (colorPickerChange)="onColorChange($event)"
14923
+ (colorPickerSelect)="onColorSelect($event)">
14927
14924
  </div>
14928
- `, styles: [":host{border:1px solid #333;border-radius:35px;cursor:pointer;display:inline-block;height:35px;position:relative;width:35px}\n", ".picker{left:100%;position:absolute;top:100%;z-index:2;chrome-picker{left:100%;position:absolute;top:100%;z-index:2}.buttons{padding:0 12px 12px;text-align:center;button{padding:.2rem 1rem}}.overlay{background:transparent;left:0;position:fixed;top:0;height:100%;width:100%;z-index:1}}\n"] }]
14925
+ `, styles: [":host{display:inline-block}.color-picker-circle{width:35px;height:35px;border:1px solid #333;border-radius:50%;cursor:pointer;transition:all .2s ease}.color-picker-circle:hover:not(.disabled){transform:scale(1.1);box-shadow:0 2px 8px #0000004d}.color-picker-circle.disabled{cursor:not-allowed;opacity:.6}::ng-deep .custom-ok-button{background-color:#1976d2!important;color:#fff!important;border:none!important;padding:8px 20px!important;border-radius:4px!important;font-weight:500!important;cursor:pointer!important;transition:background-color .2s ease!important;margin:0 5px!important}::ng-deep .custom-ok-button:hover{background-color:#1565c0!important;box-shadow:0 2px 4px #0003!important}::ng-deep .custom-cancel-button{background-color:#f5f5f5!important;color:#424242!important;border:1px solid #ddd!important;padding:8px 20px!important;border-radius:4px!important;font-weight:500!important;cursor:pointer!important;transition:all .2s ease!important;margin:0 5px!important}::ng-deep .custom-cancel-button:hover{background-color:#eee!important;border-color:#ccc!important}\n"] }]
14929
14926
  }], ctorParameters: () => [], propDecorators: { hidden: [{
14930
14927
  type: Input
14931
14928
  }], enabled: [{
@@ -14936,12 +14933,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImpo
14936
14933
  type: Input
14937
14934
  }], colorChange: [{
14938
14935
  type: Output
14939
- }], background: [{
14940
- type: HostBinding,
14941
- args: ['style.background-color']
14942
- }], showColorPicker: [{
14943
- type: HostListener,
14944
- args: ['click', ['$event']]
14945
14936
  }] } });
14946
14937
 
14947
14938
  class WkfService {
@@ -15457,7 +15448,7 @@ class FHWinErrorComponent {
15457
15448
  this.ta.nativeElement.height(this.ta.nativeElement.scrollHeight);
15458
15449
  }
15459
15450
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: FHWinErrorComponent, deps: [{ token: i1$2.MatDialogRef }, { token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component });
15460
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.17", type: FHWinErrorComponent, isStandalone: true, selector: "ng-component", viewQueries: [{ propertyName: "ta", first: true, predicate: ["ta"], descendants: true }], ngImport: i0, template: `
15451
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.17", type: FHWinErrorComponent, isStandalone: true, selector: "fh-win-error", viewQueries: [{ propertyName: "ta", first: true, predicate: ["ta"], descendants: true }], ngImport: i0, template: `
15461
15452
  <div fxLayout="column">
15462
15453
  <div fxLayout="row" class="dialog_header">
15463
15454
  <div
@@ -15504,6 +15495,7 @@ class FHWinErrorComponent {
15504
15495
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: FHWinErrorComponent, decorators: [{
15505
15496
  type: Component,
15506
15497
  args: [{
15498
+ selector: 'fh-win-error',
15507
15499
  imports: [
15508
15500
  TranslateModule,
15509
15501
  MatDialogModule,
@@ -15587,7 +15579,7 @@ class FHWinInfoComponent {
15587
15579
  this.ta.nativeElement.height(this.ta.nativeElement.scrollHeight);
15588
15580
  }
15589
15581
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: FHWinInfoComponent, deps: [{ token: i1$2.MatDialogRef }, { token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component });
15590
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.17", type: FHWinInfoComponent, isStandalone: true, selector: "ng-component", viewQueries: [{ propertyName: "ta", first: true, predicate: ["ta"], descendants: true }], ngImport: i0, template: `
15582
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.17", type: FHWinInfoComponent, isStandalone: true, selector: "fh-win-info", viewQueries: [{ propertyName: "ta", first: true, predicate: ["ta"], descendants: true }], ngImport: i0, template: `
15591
15583
  <div fxLayout="column">
15592
15584
  <div fxLayout="row" class="dialog_header">
15593
15585
  <div
@@ -15634,6 +15626,7 @@ class FHWinInfoComponent {
15634
15626
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: FHWinInfoComponent, decorators: [{
15635
15627
  type: Component,
15636
15628
  args: [{
15629
+ selector: 'fh-win-info',
15637
15630
  imports: [
15638
15631
  TranslateModule,
15639
15632
  MatDialogModule,