@fluxhub/fluxhub-lib 19.0.124 → 19.0.126
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:
|
|
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:
|
|
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: [{
|