@wizishop/angular-components 15.1.130 → 15.1.131
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/esm2020/lib/components/color-picker/color-picker.component.mjs +9 -1
- package/fesm2015/wizishop-angular-components.mjs +8 -0
- package/fesm2015/wizishop-angular-components.mjs.map +1 -1
- package/fesm2020/wizishop-angular-components.mjs +8 -0
- package/fesm2020/wizishop-angular-components.mjs.map +1 -1
- package/package.json +1 -1
- package/wizishop-angular-components-15.1.131.tgz +0 -0
- package/wizishop-angular-components-15.1.130.tgz +0 -0
|
@@ -6608,6 +6608,14 @@ class ColorPickerComponent {
|
|
|
6608
6608
|
this.colorChange.emit(this.value);
|
|
6609
6609
|
}
|
|
6610
6610
|
changeColor(color) {
|
|
6611
|
+
// Check if it's an rgba color
|
|
6612
|
+
if (color.startsWith('rgba')) {
|
|
6613
|
+
this.value = color;
|
|
6614
|
+
this.onChange(this.value);
|
|
6615
|
+
this.colorChange.emit(this.value);
|
|
6616
|
+
return;
|
|
6617
|
+
}
|
|
6618
|
+
// Handle hex colors
|
|
6611
6619
|
color = color.replace(/[^a-fA-F0-9]/g, '');
|
|
6612
6620
|
// Add '#' if not present
|
|
6613
6621
|
if (!color.startsWith('#')) {
|