@fluxhub/fluxhub-lib 19.0.125 → 19.0.127

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.
@@ -14825,6 +14825,14 @@ class FHColorPickerComponent {
14825
14825
  enabled = true;
14826
14826
  change = new EventEmitter();
14827
14827
  _color = '#2196F3';
14828
+ // Colori predefiniti
14829
+ presetColors = [
14830
+ '#F44336', '#E91E63', '#9C27B0', '#673AB7',
14831
+ '#3F51B5', '#2196F3', '#03A9F4', '#00BCD4',
14832
+ '#009688', '#4CAF50', '#8BC34A', '#CDDC39',
14833
+ '#FFEB3B', '#FFC107', '#FF9800', '#FF5722',
14834
+ '#795548', '#9E9E9E', '#607D8B', '#000000'
14835
+ ];
14828
14836
  set color(color) {
14829
14837
  if (color) {
14830
14838
  this._color = color;
@@ -14883,6 +14891,8 @@ class FHColorPickerComponent {
14883
14891
  [(colorPicker)]="_color"
14884
14892
  [cpPosition]="'bottom'"
14885
14893
  [cpPositionRelativeToArrow]="true"
14894
+ [cpPresetColors]="presetColors"
14895
+ [cpPresetLabel]="'Colori predefiniti'"
14886
14896
  [cpOKButton]="true"
14887
14897
  [cpOKButtonText]="'SELEZIONA' | translate"
14888
14898
  [cpCancelButton]="true"
@@ -14894,7 +14904,7 @@ class FHColorPickerComponent {
14894
14904
  (colorPickerChange)="onColorChange($event)"
14895
14905
  (colorPickerSelect)="onColorSelect($event)">
14896
14906
  </div>
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" }] });
14907
+ `, 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 .color-picker .button-area{display:flex!important;flex-direction:row!important;justify-content:center!important;align-items:center!important;gap:10px!important;padding:15px!important}::ng-deep .custom-ok-button{background-color:#1976d2!important;color:#fff!important;border:none!important;padding:10px 24px!important;border-radius:4px!important;font-weight:500!important;cursor:pointer!important;transition:background-color .2s ease!important;flex:0 0 auto!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:10px 24px!important;border-radius:4px!important;font-weight:500!important;cursor:pointer!important;transition:all .2s ease!important;flex:0 0 auto!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" }] });
14898
14908
  }
14899
14909
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: FHColorPickerComponent, decorators: [{
14900
14910
  type: Component,
@@ -14911,6 +14921,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImpo
14911
14921
  [(colorPicker)]="_color"
14912
14922
  [cpPosition]="'bottom'"
14913
14923
  [cpPositionRelativeToArrow]="true"
14924
+ [cpPresetColors]="presetColors"
14925
+ [cpPresetLabel]="'Colori predefiniti'"
14914
14926
  [cpOKButton]="true"
14915
14927
  [cpOKButtonText]="'SELEZIONA' | translate"
14916
14928
  [cpCancelButton]="true"
@@ -14922,7 +14934,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImpo
14922
14934
  (colorPickerChange)="onColorChange($event)"
14923
14935
  (colorPickerSelect)="onColorSelect($event)">
14924
14936
  </div>
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"] }]
14937
+ `, 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 .color-picker .button-area{display:flex!important;flex-direction:row!important;justify-content:center!important;align-items:center!important;gap:10px!important;padding:15px!important}::ng-deep .custom-ok-button{background-color:#1976d2!important;color:#fff!important;border:none!important;padding:10px 24px!important;border-radius:4px!important;font-weight:500!important;cursor:pointer!important;transition:background-color .2s ease!important;flex:0 0 auto!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:10px 24px!important;border-radius:4px!important;font-weight:500!important;cursor:pointer!important;transition:all .2s ease!important;flex:0 0 auto!important}::ng-deep .custom-cancel-button:hover{background-color:#eee!important;border-color:#ccc!important}\n"] }]
14926
14938
  }], ctorParameters: () => [], propDecorators: { hidden: [{
14927
14939
  type: Input
14928
14940
  }], enabled: [{
@@ -33740,6 +33752,9 @@ class FHWorkflowForm {
33740
33752
  next_label = 'Procedi';
33741
33753
  next_label_color = '#000000';
33742
33754
  next_back_ground_color = '#ffd740';
33755
+ reject_label = 'Respingi';
33756
+ reject_label_color = '#FFFFFF';
33757
+ reject_back_ground_color = '#f44336';
33743
33758
  b_init_next = false;
33744
33759
  sort_field = '';
33745
33760
  ripristina_imp() {
@@ -35752,6 +35767,10 @@ class FHWorkflowForm {
35752
35767
  this.next_label_color = data.result_data[0].next_label_color;
35753
35768
  this.next_back_ground_color =
35754
35769
  data.result_data[0].next_back_ground_color;
35770
+ this.reject_label = data.result_data[0].reject_label || 'Respingi';
35771
+ this.reject_label_color = data.result_data[0].reject_label_color || '#FFFFFF';
35772
+ this.reject_back_ground_color =
35773
+ data.result_data[0].reject_back_ground_color || '#f44336';
35755
35774
  }
35756
35775
  this.b_init_next = true;
35757
35776
  }
@@ -36135,9 +36154,12 @@ class FHWorkflowHeaderBar {
36135
36154
  (click)="respingi()"
36136
36155
  *ngIf="edit_button && respingi_button && !in_carico"
36137
36156
  style="font-weight:bold"
36138
- color="warn"
36157
+ [style.background-color]="
36158
+ dt_agg.reject_back_ground_color + ' !important'
36159
+ "
36160
+ [style.color]="dt_agg.reject_label_color + ' !important'"
36139
36161
  >
36140
- {{ respingi_lbl | translate }}
36162
+ {{ (dt_agg.reject_label||'Respingi') | translate }}
36141
36163
  </button>
36142
36164
  &nbsp;&nbsp;
36143
36165
  <button
@@ -36365,9 +36387,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImpo
36365
36387
  (click)="respingi()"
36366
36388
  *ngIf="edit_button && respingi_button && !in_carico"
36367
36389
  style="font-weight:bold"
36368
- color="warn"
36390
+ [style.background-color]="
36391
+ dt_agg.reject_back_ground_color + ' !important'
36392
+ "
36393
+ [style.color]="dt_agg.reject_label_color + ' !important'"
36369
36394
  >
36370
- {{ respingi_lbl | translate }}
36395
+ {{ (dt_agg.reject_label||'Respingi') | translate }}
36371
36396
  </button>
36372
36397
  &nbsp;&nbsp;
36373
36398
  <button