@fluxhub/fluxhub-lib 19.0.123 → 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
|
|
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';
|
|
@@ -14831,23 +14831,23 @@ class FHColorPickerComponent {
|
|
|
14831
14831
|
}
|
|
14832
14832
|
}
|
|
14833
14833
|
colorChange = new EventEmitter();
|
|
14834
|
-
get background() {
|
|
14835
|
-
return this._color;
|
|
14836
|
-
}
|
|
14837
|
-
get backgroundColor() {
|
|
14838
|
-
return this._color;
|
|
14839
|
-
}
|
|
14840
14834
|
onColorChange(color) {
|
|
14835
|
+
console.log('FHColorPicker - onColorChange:', color);
|
|
14841
14836
|
this._color = color;
|
|
14842
14837
|
}
|
|
14843
14838
|
onColorSelect(color) {
|
|
14839
|
+
console.log('FHColorPicker - onColorSelect:', color);
|
|
14844
14840
|
this._color = color;
|
|
14845
14841
|
this.onChange(color);
|
|
14846
14842
|
this.colorChange.emit(color);
|
|
14847
14843
|
this.change.emit(color);
|
|
14848
14844
|
}
|
|
14849
|
-
constructor() {
|
|
14850
|
-
|
|
14845
|
+
constructor() {
|
|
14846
|
+
console.log('FHColorPicker - constructor');
|
|
14847
|
+
}
|
|
14848
|
+
ngAfterViewInit() {
|
|
14849
|
+
console.log('FHColorPicker - ngAfterViewInit, color:', this._color, 'enabled:', this.enabled, 'hidden:', this.hidden);
|
|
14850
|
+
}
|
|
14851
14851
|
writeValue(value) {
|
|
14852
14852
|
if (value) {
|
|
14853
14853
|
if (typeof value === 'string') {
|
|
@@ -14874,55 +14874,55 @@ class FHColorPickerComponent {
|
|
|
14874
14874
|
this.onTouched = fn;
|
|
14875
14875
|
}
|
|
14876
14876
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: FHColorPickerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
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" },
|
|
14878
|
-
<
|
|
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
14879
|
*ngIf="!hidden"
|
|
14880
|
-
|
|
14881
|
-
class="color-picker-input"
|
|
14880
|
+
class="color-picker-circle"
|
|
14882
14881
|
[class.disabled]="!enabled"
|
|
14882
|
+
[style.backgroundColor]="_color"
|
|
14883
14883
|
[(colorPicker)]="_color"
|
|
14884
|
-
[value]="_color"
|
|
14885
14884
|
[cpPosition]="'bottom'"
|
|
14886
14885
|
[cpPositionRelativeToArrow]="true"
|
|
14887
14886
|
[cpOKButton]="true"
|
|
14888
14887
|
[cpOKButtonText]="'SELEZIONA' | translate"
|
|
14889
14888
|
[cpCancelButton]="true"
|
|
14890
14889
|
[cpCancelButtonText]="'ANNULLA' | translate"
|
|
14890
|
+
[cpOKButtonClass]="'custom-ok-button'"
|
|
14891
|
+
[cpCancelButtonClass]="'custom-cancel-button'"
|
|
14891
14892
|
[cpDialogDisplay]="'popup'"
|
|
14892
14893
|
[cpDisabled]="!enabled"
|
|
14893
14894
|
(colorPickerChange)="onColorChange($event)"
|
|
14894
|
-
(colorPickerSelect)="onColorSelect($event)"
|
|
14895
|
-
|
|
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"] }] });
|
|
14895
|
+
(colorPickerSelect)="onColorSelect($event)">
|
|
14896
|
+
</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" }] });
|
|
14898
14898
|
}
|
|
14899
14899
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: FHColorPickerComponent, decorators: [{
|
|
14900
14900
|
type: Component,
|
|
14901
|
-
args: [{ imports: [
|
|
14902
|
-
TranslateModule,
|
|
14901
|
+
args: [{ standalone: true, imports: [
|
|
14903
14902
|
CommonModule,
|
|
14904
|
-
ColorPickerDirective
|
|
14903
|
+
ColorPickerDirective,
|
|
14904
|
+
TranslateModule
|
|
14905
14905
|
], selector: "FHColorPicker", providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$3], template: `
|
|
14906
|
-
<
|
|
14906
|
+
<div
|
|
14907
14907
|
*ngIf="!hidden"
|
|
14908
|
-
|
|
14909
|
-
class="color-picker-input"
|
|
14908
|
+
class="color-picker-circle"
|
|
14910
14909
|
[class.disabled]="!enabled"
|
|
14910
|
+
[style.backgroundColor]="_color"
|
|
14911
14911
|
[(colorPicker)]="_color"
|
|
14912
|
-
[value]="_color"
|
|
14913
14912
|
[cpPosition]="'bottom'"
|
|
14914
14913
|
[cpPositionRelativeToArrow]="true"
|
|
14915
14914
|
[cpOKButton]="true"
|
|
14916
14915
|
[cpOKButtonText]="'SELEZIONA' | translate"
|
|
14917
14916
|
[cpCancelButton]="true"
|
|
14918
14917
|
[cpCancelButtonText]="'ANNULLA' | translate"
|
|
14918
|
+
[cpOKButtonClass]="'custom-ok-button'"
|
|
14919
|
+
[cpCancelButtonClass]="'custom-cancel-button'"
|
|
14919
14920
|
[cpDialogDisplay]="'popup'"
|
|
14920
14921
|
[cpDisabled]="!enabled"
|
|
14921
14922
|
(colorPickerChange)="onColorChange($event)"
|
|
14922
|
-
(colorPickerSelect)="onColorSelect($event)"
|
|
14923
|
-
|
|
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"] }]
|
|
14923
|
+
(colorPickerSelect)="onColorSelect($event)">
|
|
14924
|
+
</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"] }]
|
|
14926
14926
|
}], ctorParameters: () => [], propDecorators: { hidden: [{
|
|
14927
14927
|
type: Input
|
|
14928
14928
|
}], enabled: [{
|
|
@@ -14933,12 +14933,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImpo
|
|
|
14933
14933
|
type: Input
|
|
14934
14934
|
}], colorChange: [{
|
|
14935
14935
|
type: Output
|
|
14936
|
-
}], background: [{
|
|
14937
|
-
type: HostBinding,
|
|
14938
|
-
args: ['style.--color']
|
|
14939
|
-
}], backgroundColor: [{
|
|
14940
|
-
type: HostBinding,
|
|
14941
|
-
args: ['style.background-color']
|
|
14942
14936
|
}] } });
|
|
14943
14937
|
|
|
14944
14938
|
class WkfService {
|