@fluxhub/fluxhub-lib 19.0.122 → 19.0.123

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.
@@ -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
14834
  get background() {
14837
- return this._color ? this._color.toHexString() : null;
14835
+ return this._color;
14838
14836
  }
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
- }
14837
+ get backgroundColor() {
14838
+ return this._color;
14845
14839
  }
14846
- showColorPicker(event) {
14847
- if (this.isVisible === true) {
14848
- return;
14849
- }
14850
- this.isVisible = !this.isVisible;
14840
+ onColorChange(color) {
14841
+ this._color = color;
14851
14842
  }
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');
14843
+ onColorSelect(color) {
14844
+ this._color = color;
14845
+ this.onChange(color);
14846
+ this.colorChange.emit(color);
14847
+ this.change.emit(color);
14860
14848
  }
14861
14849
  constructor() { }
14862
14850
  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">
14908
- </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"] }] });
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" }, host: { properties: { "style.--color": "this.background", "style.background-color": "this.backgroundColor" } }, providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$3], ngImport: i0, template: `
14878
+ <input
14879
+ *ngIf="!hidden"
14880
+ type="text"
14881
+ class="color-picker-input"
14882
+ [class.disabled]="!enabled"
14883
+ [(colorPicker)]="_color"
14884
+ [value]="_color"
14885
+ [cpPosition]="'bottom'"
14886
+ [cpPositionRelativeToArrow]="true"
14887
+ [cpOKButton]="true"
14888
+ [cpOKButtonText]="'SELEZIONA' | translate"
14889
+ [cpCancelButton]="true"
14890
+ [cpCancelButtonText]="'ANNULLA' | translate"
14891
+ [cpDialogDisplay]="'popup'"
14892
+ [cpDisabled]="!enabled"
14893
+ (colorPickerChange)="onColorChange($event)"
14894
+ (colorPickerSelect)="onColorSelect($event)"
14895
+ readonly
14896
+ />
14897
+ `, isInline: true, styles: [":host{border:1px solid #333;border-radius:35px;cursor:pointer;display:inline-block;height:35px;position:relative;width:35px;overflow:hidden}.color-picker-input{width:100%;height:100%;border:none;outline:none;cursor:pointer;text-indent:-9999px;background-color:var(--color);transition:all .2s ease}.color-picker-input:hover:not(.disabled){transform:scale(1.05);box-shadow:0 2px 8px #0003}.color-picker-input.disabled{cursor:not-allowed;opacity:.6}\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: "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"] }] });
14910
14898
  }
14911
14899
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: FHColorPickerComponent, decorators: [{
14912
14900
  type: Component,
14913
14901
  args: [{ imports: [
14914
14902
  TranslateModule,
14915
14903
  CommonModule,
14916
- ChromePickerComponent
14904
+ ColorPickerDirective
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">
14927
- </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"] }]
14906
+ <input
14907
+ *ngIf="!hidden"
14908
+ type="text"
14909
+ class="color-picker-input"
14910
+ [class.disabled]="!enabled"
14911
+ [(colorPicker)]="_color"
14912
+ [value]="_color"
14913
+ [cpPosition]="'bottom'"
14914
+ [cpPositionRelativeToArrow]="true"
14915
+ [cpOKButton]="true"
14916
+ [cpOKButtonText]="'SELEZIONA' | translate"
14917
+ [cpCancelButton]="true"
14918
+ [cpCancelButtonText]="'ANNULLA' | translate"
14919
+ [cpDialogDisplay]="'popup'"
14920
+ [cpDisabled]="!enabled"
14921
+ (colorPickerChange)="onColorChange($event)"
14922
+ (colorPickerSelect)="onColorSelect($event)"
14923
+ readonly
14924
+ />
14925
+ `, styles: [":host{border:1px solid #333;border-radius:35px;cursor:pointer;display:inline-block;height:35px;position:relative;width:35px;overflow:hidden}.color-picker-input{width:100%;height:100%;border:none;outline:none;cursor:pointer;text-indent:-9999px;background-color:var(--color);transition:all .2s ease}.color-picker-input:hover:not(.disabled){transform:scale(1.05);box-shadow:0 2px 8px #0003}.color-picker-input.disabled{cursor:not-allowed;opacity:.6}\n"] }]
14929
14926
  }], ctorParameters: () => [], propDecorators: { hidden: [{
14930
14927
  type: Input
14931
14928
  }], enabled: [{
@@ -14937,11 +14934,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImpo
14937
14934
  }], colorChange: [{
14938
14935
  type: Output
14939
14936
  }], background: [{
14937
+ type: HostBinding,
14938
+ args: ['style.--color']
14939
+ }], backgroundColor: [{
14940
14940
  type: HostBinding,
14941
14941
  args: ['style.background-color']
14942
- }], showColorPicker: [{
14943
- type: HostListener,
14944
- args: ['click', ['$event']]
14945
14942
  }] } });
14946
14943
 
14947
14944
  class WkfService {
@@ -15457,7 +15454,7 @@ class FHWinErrorComponent {
15457
15454
  this.ta.nativeElement.height(this.ta.nativeElement.scrollHeight);
15458
15455
  }
15459
15456
  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: `
15457
+ 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
15458
  <div fxLayout="column">
15462
15459
  <div fxLayout="row" class="dialog_header">
15463
15460
  <div
@@ -15504,6 +15501,7 @@ class FHWinErrorComponent {
15504
15501
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: FHWinErrorComponent, decorators: [{
15505
15502
  type: Component,
15506
15503
  args: [{
15504
+ selector: 'fh-win-error',
15507
15505
  imports: [
15508
15506
  TranslateModule,
15509
15507
  MatDialogModule,
@@ -15587,7 +15585,7 @@ class FHWinInfoComponent {
15587
15585
  this.ta.nativeElement.height(this.ta.nativeElement.scrollHeight);
15588
15586
  }
15589
15587
  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: `
15588
+ 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
15589
  <div fxLayout="column">
15592
15590
  <div fxLayout="row" class="dialog_header">
15593
15591
  <div
@@ -15634,6 +15632,7 @@ class FHWinInfoComponent {
15634
15632
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: FHWinInfoComponent, decorators: [{
15635
15633
  type: Component,
15636
15634
  args: [{
15635
+ selector: 'fh-win-info',
15637
15636
  imports: [
15638
15637
  TranslateModule,
15639
15638
  MatDialogModule,