ngx-wapp-components 3.2.23 → 3.2.24-alpha.2

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ngx-wapp-components",
3
- "version": "3.2.23",
3
+ "version": "3.2.24-alpha.2",
4
4
  "description": "This is a Wapping reusable component library published by Wapping.",
5
5
  "keywords": [
6
6
  "code",
@@ -60,4 +60,4 @@
60
60
  }
61
61
  },
62
62
  "type": "module"
63
- }
63
+ }
@@ -3589,31 +3589,48 @@ declare class WNotificationsEventFieldComponent implements OnInit, ControlValueA
3589
3589
  static ɵcmp: i0.ɵɵComponentDeclaration<WNotificationsEventFieldComponent, "w-notifications-event-field", never, { "operator": { "alias": "operator"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "notificationApiUrl": { "alias": "notificationApiUrl"; "required": false; }; "notificationApiToken": { "alias": "notificationApiToken"; "required": false; }; "translationsOptions": { "alias": "translationsOptions"; "required": false; }; }, {}, never, never, false, never>;
3590
3590
  }
3591
3591
 
3592
+ type RGBColor = {
3593
+ r: number;
3594
+ g: number;
3595
+ b: number;
3596
+ };
3597
+
3592
3598
  declare class WEditInputColorpickerComponent implements OnInit, ControlValueAccessor {
3593
- label: string;
3594
- value: string;
3595
3599
  formControl: FormControl | null;
3596
- onChangeEvent: EventEmitter<any>;
3597
- format: 'hex' | 'rgb' | 'hsb';
3598
- placeholder: string;
3600
+ label: string;
3599
3601
  required: boolean;
3600
3602
  requiredErrorDescription: string;
3601
- disabled: boolean;
3602
3603
  tooltip: string;
3603
3604
  tooltipPosition?: string;
3604
- onChange: any;
3605
- onTouch: any;
3605
+ format: 'hex' | 'rgb' | 'hsb';
3606
+ secondFormat: 'rgb';
3607
+ onChange: EventEmitter<string | null>;
3608
+ onSecondFormat: EventEmitter<string | null>;
3609
+ pickerValue: string | RGBColor | null;
3610
+ textValue: string;
3611
+ disabled: boolean;
3612
+ private propagateChange;
3613
+ private propagateTouched;
3614
+ private isInternalUpdate;
3606
3615
  ngOnInit(): void;
3607
- writeValue(value: any): void;
3608
- registerOnChange(fn: any): void;
3609
- registerOnTouched(fn: any): void;
3610
- onValue(): void;
3611
- onValueChange(value: any): void;
3612
- onTextValue(): void;
3613
- setValue(): void;
3614
- test(value: any): void;
3616
+ writeValue(value: string | RGBColor | null): void;
3617
+ registerOnChange(fn: (value: string | null) => void): void;
3618
+ registerOnTouched(fn: () => void): void;
3619
+ setDisabledState(isDisabled: boolean): void;
3620
+ onPickerChange(value: string | RGBColor): void;
3621
+ onTextChange(value: string): void;
3622
+ onBlur(): void;
3623
+ private setInternal;
3624
+ private setInternalRGB;
3625
+ private emit;
3626
+ private clearInternal;
3627
+ private toRgbObject;
3628
+ private clamp255;
3629
+ private rgbStringToRgbaColor;
3630
+ hexToRgb(hex: string): RGBColor | null;
3631
+ hexToRgbString(hex: string): string | null;
3615
3632
  static ɵfac: i0.ɵɵFactoryDeclaration<WEditInputColorpickerComponent, never>;
3616
- static ɵcmp: i0.ɵɵComponentDeclaration<WEditInputColorpickerComponent, "w-edit-input-colorpicker", never, { "label": { "alias": "label"; "required": false; }; "formControl": { "alias": "formControl"; "required": false; }; "format": { "alias": "format"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "required": { "alias": "required"; "required": false; }; "requiredErrorDescription": { "alias": "requiredErrorDescription"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "tooltip": { "alias": "tooltip"; "required": false; }; "tooltipPosition": { "alias": "tooltipPosition"; "required": false; }; }, { "onChangeEvent": "onChange"; }, never, never, false, never>;
3633
+ static ɵcmp: i0.ɵɵComponentDeclaration<WEditInputColorpickerComponent, "w-edit-input-colorpicker", never, { "formControl": { "alias": "formControl"; "required": false; }; "label": { "alias": "label"; "required": false; }; "required": { "alias": "required"; "required": false; }; "requiredErrorDescription": { "alias": "requiredErrorDescription"; "required": false; }; "tooltip": { "alias": "tooltip"; "required": false; }; "tooltipPosition": { "alias": "tooltipPosition"; "required": false; }; "format": { "alias": "format"; "required": false; }; "secondFormat": { "alias": "secondFormat"; "required": false; }; }, { "onChange": "onChange"; "onSecondFormat": "onSecondFormat"; }, never, never, false, never>;
3617
3634
  }
3618
3635
 
3619
3636
  declare enum WappingServiceType {