ngx-color 8.0.3 → 10.0.0
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/README.md +2 -3
- package/alpha/alpha-picker.component.d.ts +1 -1
- package/alpha.component.d.ts +1 -1
- package/block/block-swatches.component.d.ts +1 -1
- package/block/block.component.d.ts +1 -1
- package/checkboard.component.d.ts +1 -1
- package/chrome/chrome-fields.component.d.ts +1 -1
- package/chrome/chrome.component.d.ts +1 -1
- package/circle/circle-swatch.component.d.ts +1 -1
- package/circle/circle.component.d.ts +1 -1
- package/color-wrap.component.d.ts +1 -1
- package/compact/compact-color.component.d.ts +1 -1
- package/compact/compact-fields.component.d.ts +1 -1
- package/compact/compact.component.d.ts +1 -1
- package/coordinates.directive.d.ts +2 -3
- package/editable-input.component.d.ts +1 -1
- package/{fesm2020 → fesm2022}/ngx-color-alpha.mjs +36 -38
- package/fesm2022/ngx-color-alpha.mjs.map +1 -0
- package/fesm2022/ngx-color-block.mjs +233 -0
- package/fesm2022/ngx-color-block.mjs.map +1 -0
- package/fesm2022/ngx-color-chrome.mjs +543 -0
- package/fesm2022/ngx-color-chrome.mjs.map +1 -0
- package/fesm2022/ngx-color-circle.mjs +223 -0
- package/fesm2022/ngx-color-circle.mjs.map +1 -0
- package/fesm2022/ngx-color-compact.mjs +403 -0
- package/fesm2022/ngx-color-compact.mjs.map +1 -0
- package/fesm2022/ngx-color-github.mjs +167 -0
- package/fesm2022/ngx-color-github.mjs.map +1 -0
- package/fesm2022/ngx-color-hue.mjs +109 -0
- package/fesm2022/ngx-color-hue.mjs.map +1 -0
- package/fesm2022/ngx-color-material.mjs +209 -0
- package/fesm2022/ngx-color-material.mjs.map +1 -0
- package/fesm2022/ngx-color-photoshop.mjs +475 -0
- package/fesm2022/ngx-color-photoshop.mjs.map +1 -0
- package/{fesm2015 → fesm2022}/ngx-color-shade.mjs +41 -35
- package/fesm2022/ngx-color-shade.mjs.map +1 -0
- package/fesm2022/ngx-color-sketch.mjs +491 -0
- package/fesm2022/ngx-color-sketch.mjs.map +1 -0
- package/fesm2022/ngx-color-slider.mjs +282 -0
- package/fesm2022/ngx-color-slider.mjs.map +1 -0
- package/fesm2022/ngx-color-swatches.mjs +293 -0
- package/fesm2022/ngx-color-swatches.mjs.map +1 -0
- package/fesm2022/ngx-color-twitter.mjs +169 -0
- package/fesm2022/ngx-color-twitter.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/ngx-color.mjs +348 -264
- package/fesm2022/ngx-color.mjs.map +1 -0
- package/github/github-swatch.component.d.ts +1 -1
- package/github/github.component.d.ts +1 -1
- package/hue/hue-picker.component.d.ts +1 -1
- package/hue.component.d.ts +1 -1
- package/material/material.component.d.ts +1 -1
- package/package.json +29 -84
- package/photoshop/photoshop-button.component.d.ts +1 -1
- package/photoshop/photoshop-fields.component.d.ts +1 -1
- package/photoshop/photoshop-previews.component.d.ts +1 -1
- package/photoshop/photoshop.component.d.ts +1 -1
- package/raised.component.d.ts +2 -2
- package/saturation.component.d.ts +1 -1
- package/shade/shade-picker.component.d.ts +1 -1
- package/shade.component.d.ts +1 -1
- package/sketch/sketch-fields.component.d.ts +1 -1
- package/sketch/sketch-preset-colors.component.d.ts +1 -1
- package/sketch/sketch.component.d.ts +1 -1
- package/slider/slider-swatch.component.d.ts +1 -1
- package/slider/slider-swatches.component.d.ts +1 -1
- package/slider/slider.component.d.ts +1 -1
- package/swatch.component.d.ts +1 -1
- package/swatches/swatches-color.component.d.ts +1 -1
- package/swatches/swatches-group.component.d.ts +1 -1
- package/swatches/swatches.component.d.ts +1 -1
- package/twitter/twitter.component.d.ts +1 -1
- package/esm2020/alpha/alpha-picker.component.mjs +0 -100
- package/esm2020/alpha/ngx-color-alpha.mjs +0 -5
- package/esm2020/alpha/public_api.mjs +0 -2
- package/esm2020/alpha.component.mjs +0 -138
- package/esm2020/block/block-swatches.component.mjs +0 -63
- package/esm2020/block/block.component.mjs +0 -158
- package/esm2020/block/ngx-color-block.mjs +0 -5
- package/esm2020/block/public_api.mjs +0 -3
- package/esm2020/checkboard.component.mjs +0 -50
- package/esm2020/chrome/chrome-fields.component.mjs +0 -314
- package/esm2020/chrome/chrome.component.mjs +0 -184
- package/esm2020/chrome/ngx-color-chrome.mjs +0 -5
- package/esm2020/chrome/public_api.mjs +0 -3
- package/esm2020/circle/circle-swatch.component.mjs +0 -69
- package/esm2020/circle/circle.component.mjs +0 -134
- package/esm2020/circle/ngx-color-circle.mjs +0 -5
- package/esm2020/circle/public_api.mjs +0 -3
- package/esm2020/color-wrap.component.mjs +0 -163
- package/esm2020/compact/compact-color.component.mjs +0 -70
- package/esm2020/compact/compact-fields.component.mjs +0 -164
- package/esm2020/compact/compact.component.mjs +0 -154
- package/esm2020/compact/ngx-color-compact.mjs +0 -5
- package/esm2020/compact/public_api.mjs +0 -4
- package/esm2020/coordinates.directive.mjs +0 -104
- package/esm2020/editable-input.component.mjs +0 -199
- package/esm2020/github/github-swatch.component.mjs +0 -53
- package/esm2020/github/github.component.mjs +0 -112
- package/esm2020/github/ngx-color-github.mjs +0 -5
- package/esm2020/github/public_api.mjs +0 -3
- package/esm2020/helpers/checkboard.mjs +0 -33
- package/esm2020/helpers/color.interfaces.mjs +0 -2
- package/esm2020/helpers/color.mjs +0 -60
- package/esm2020/hue/hue-picker.component.mjs +0 -100
- package/esm2020/hue/ngx-color-hue.mjs +0 -5
- package/esm2020/hue/public_api.mjs +0 -2
- package/esm2020/hue.component.mjs +0 -124
- package/esm2020/material/material.component.mjs +0 -186
- package/esm2020/material/ngx-color-material.mjs +0 -5
- package/esm2020/material/public_api.mjs +0 -2
- package/esm2020/ngx-color.mjs +0 -5
- package/esm2020/photoshop/ngx-color-photoshop.mjs +0 -5
- package/esm2020/photoshop/photoshop-button.component.mjs +0 -34
- package/esm2020/photoshop/photoshop-fields.component.mjs +0 -212
- package/esm2020/photoshop/photoshop-previews.component.mjs +0 -40
- package/esm2020/photoshop/photoshop.component.mjs +0 -185
- package/esm2020/photoshop/public_api.mjs +0 -5
- package/esm2020/public_api.mjs +0 -14
- package/esm2020/raised.component.mjs +0 -50
- package/esm2020/saturation.component.mjs +0 -92
- package/esm2020/shade/ngx-color-shade.mjs +0 -5
- package/esm2020/shade/public_api.mjs +0 -2
- package/esm2020/shade/shade-picker.component.mjs +0 -92
- package/esm2020/shade.component.mjs +0 -125
- package/esm2020/sketch/ngx-color-sketch.mjs +0 -5
- package/esm2020/sketch/public_api.mjs +0 -4
- package/esm2020/sketch/sketch-fields.component.mjs +0 -209
- package/esm2020/sketch/sketch-preset-colors.component.mjs +0 -68
- package/esm2020/sketch/sketch.component.mjs +0 -212
- package/esm2020/slider/ngx-color-slider.mjs +0 -5
- package/esm2020/slider/public_api.mjs +0 -4
- package/esm2020/slider/slider-swatch.component.mjs +0 -52
- package/esm2020/slider/slider-swatches.component.mjs +0 -119
- package/esm2020/slider/slider.component.mjs +0 -102
- package/esm2020/swatch.component.mjs +0 -110
- package/esm2020/swatches/ngx-color-swatches.mjs +0 -5
- package/esm2020/swatches/public_api.mjs +0 -4
- package/esm2020/swatches/swatches-color.component.mjs +0 -104
- package/esm2020/swatches/swatches-group.component.mjs +0 -49
- package/esm2020/swatches/swatches.component.mjs +0 -242
- package/esm2020/twitter/ngx-color-twitter.mjs +0 -5
- package/esm2020/twitter/public_api.mjs +0 -2
- package/esm2020/twitter/twitter.component.mjs +0 -159
- package/fesm2015/ngx-color-alpha.mjs +0 -107
- package/fesm2015/ngx-color-alpha.mjs.map +0 -1
- package/fesm2015/ngx-color-block.mjs +0 -223
- package/fesm2015/ngx-color-block.mjs.map +0 -1
- package/fesm2015/ngx-color-chrome.mjs +0 -499
- package/fesm2015/ngx-color-chrome.mjs.map +0 -1
- package/fesm2015/ngx-color-circle.mjs +0 -207
- package/fesm2015/ngx-color-circle.mjs.map +0 -1
- package/fesm2015/ngx-color-compact.mjs +0 -385
- package/fesm2015/ngx-color-compact.mjs.map +0 -1
- package/fesm2015/ngx-color-github.mjs +0 -169
- package/fesm2015/ngx-color-github.mjs.map +0 -1
- package/fesm2015/ngx-color-hue.mjs +0 -107
- package/fesm2015/ngx-color-hue.mjs.map +0 -1
- package/fesm2015/ngx-color-material.mjs +0 -193
- package/fesm2015/ngx-color-material.mjs.map +0 -1
- package/fesm2015/ngx-color-photoshop.mjs +0 -467
- package/fesm2015/ngx-color-photoshop.mjs.map +0 -1
- package/fesm2015/ngx-color-shade.mjs.map +0 -1
- package/fesm2015/ngx-color-sketch.mjs +0 -485
- package/fesm2015/ngx-color-sketch.mjs.map +0 -1
- package/fesm2015/ngx-color-slider.mjs +0 -273
- package/fesm2015/ngx-color-slider.mjs.map +0 -1
- package/fesm2015/ngx-color-swatches.mjs +0 -391
- package/fesm2015/ngx-color-swatches.mjs.map +0 -1
- package/fesm2015/ngx-color-twitter.mjs +0 -166
- package/fesm2015/ngx-color-twitter.mjs.map +0 -1
- package/fesm2015/ngx-color.mjs +0 -1202
- package/fesm2015/ngx-color.mjs.map +0 -1
- package/fesm2020/ngx-color-alpha.mjs.map +0 -1
- package/fesm2020/ngx-color-block.mjs +0 -223
- package/fesm2020/ngx-color-block.mjs.map +0 -1
- package/fesm2020/ngx-color-chrome.mjs +0 -499
- package/fesm2020/ngx-color-chrome.mjs.map +0 -1
- package/fesm2020/ngx-color-circle.mjs +0 -207
- package/fesm2020/ngx-color-circle.mjs.map +0 -1
- package/fesm2020/ngx-color-compact.mjs +0 -385
- package/fesm2020/ngx-color-compact.mjs.map +0 -1
- package/fesm2020/ngx-color-github.mjs +0 -169
- package/fesm2020/ngx-color-github.mjs.map +0 -1
- package/fesm2020/ngx-color-hue.mjs +0 -107
- package/fesm2020/ngx-color-hue.mjs.map +0 -1
- package/fesm2020/ngx-color-material.mjs +0 -193
- package/fesm2020/ngx-color-material.mjs.map +0 -1
- package/fesm2020/ngx-color-photoshop.mjs +0 -467
- package/fesm2020/ngx-color-photoshop.mjs.map +0 -1
- package/fesm2020/ngx-color-shade.mjs +0 -99
- package/fesm2020/ngx-color-shade.mjs.map +0 -1
- package/fesm2020/ngx-color-sketch.mjs +0 -485
- package/fesm2020/ngx-color-sketch.mjs.map +0 -1
- package/fesm2020/ngx-color-slider.mjs +0 -273
- package/fesm2020/ngx-color-slider.mjs.map +0 -1
- package/fesm2020/ngx-color-swatches.mjs +0 -391
- package/fesm2020/ngx-color-swatches.mjs.map +0 -1
- package/fesm2020/ngx-color-twitter.mjs +0 -166
- package/fesm2020/ngx-color-twitter.mjs.map +0 -1
- package/fesm2020/ngx-color.mjs.map +0 -1
package/README.md
CHANGED
@@ -6,8 +6,6 @@
|
|
6
6
|
<a href="https://www.npmjs.org/package/ngx-color">
|
7
7
|
<img src="https://badge.fury.io/js/ngx-color.svg" alt="npm">
|
8
8
|
</a>
|
9
|
-
<a href="https://circleci.com/gh/scttcper/ngx-color">
|
10
|
-
<img src="https://circleci.com/gh/scttcper/ngx-color.svg?style=svg" alt="circleci"></a>
|
11
9
|
<a href="https://codecov.io/github/scttcper/ngx-color">
|
12
10
|
<img src="https://img.shields.io/codecov/c/github/scttcper/ngx-color.svg" alt="codecov">
|
13
11
|
</a>
|
@@ -59,7 +57,8 @@ Latest version available for each version of Angular
|
|
59
57
|
| 5.1.4 | 9.x |
|
60
58
|
| 6.2.0 | 10.x 11.x |
|
61
59
|
| 7.3.3 | 12.x 13.x |
|
62
|
-
|
|
60
|
+
| 8.0.3 | 14.x 15.x |
|
61
|
+
| current | >= 16.x |
|
63
62
|
|
64
63
|
### Install
|
65
64
|
|
@@ -19,7 +19,7 @@ export declare class AlphaPickerComponent extends ColorWrap implements OnChanges
|
|
19
19
|
$event: any;
|
20
20
|
}): void;
|
21
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<AlphaPickerComponent, never>;
|
22
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AlphaPickerComponent, "color-alpha-picker", never, { "width": "width"; "height": "height"; "direction": "direction"; }, {}, never, never, false>;
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AlphaPickerComponent, "color-alpha-picker", never, { "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; "direction": { "alias": "direction"; "required": false; }; }, {}, never, never, false, never>;
|
23
23
|
}
|
24
24
|
export declare class ColorAlphaModule {
|
25
25
|
static ɵfac: i0.ɵɵFactoryDeclaration<ColorAlphaModule, never>;
|
package/alpha.component.d.ts
CHANGED
@@ -24,7 +24,7 @@ export declare class AlphaComponent implements OnChanges {
|
|
24
24
|
$event: any;
|
25
25
|
}): void;
|
26
26
|
static ɵfac: i0.ɵɵFactoryDeclaration<AlphaComponent, never>;
|
27
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AlphaComponent, "color-alpha", never, { "hsl": "hsl"; "rgb": "rgb"; "pointer": "pointer"; "shadow": "shadow"; "radius": "radius"; "direction": "direction"; }, { "onChange": "onChange"; }, never, never, false>;
|
27
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AlphaComponent, "color-alpha", never, { "hsl": { "alias": "hsl"; "required": false; }; "rgb": { "alias": "rgb"; "required": false; }; "pointer": { "alias": "pointer"; "required": false; }; "shadow": { "alias": "shadow"; "required": false; }; "radius": { "alias": "radius"; "required": false; }; "direction": { "alias": "direction"; "required": false; }; }, { "onChange": "onChange"; }, never, never, false, never>;
|
28
28
|
}
|
29
29
|
export declare class AlphaModule {
|
30
30
|
static ɵfac: i0.ɵɵFactoryDeclaration<AlphaModule, never>;
|
@@ -20,5 +20,5 @@ export declare class BlockSwatchesComponent {
|
|
20
20
|
boxShadow: string;
|
21
21
|
};
|
22
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<BlockSwatchesComponent, never>;
|
23
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BlockSwatchesComponent, "color-block-swatches", never, { "colors": "colors"; }, { "onClick": "onClick"; "onSwatchHover": "onSwatchHover"; }, never, never, false>;
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BlockSwatchesComponent, "color-block-swatches", never, { "colors": { "alias": "colors"; "required": false; }; }, { "onClick": "onClick"; "onSwatchHover": "onSwatchHover"; }, never, never, false, never>;
|
24
24
|
}
|
@@ -27,7 +27,7 @@ export declare class BlockComponent extends ColorWrap {
|
|
27
27
|
$event: any;
|
28
28
|
}): void;
|
29
29
|
static ɵfac: i0.ɵɵFactoryDeclaration<BlockComponent, never>;
|
30
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BlockComponent, "color-block", never, { "width": "width"; "colors": "colors"; "triangle": "triangle"; }, {}, never, never, false>;
|
30
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BlockComponent, "color-block", never, { "width": { "alias": "width"; "required": false; }; "colors": { "alias": "colors"; "required": false; }; "triangle": { "alias": "triangle"; "required": false; }; }, {}, never, never, false, never>;
|
31
31
|
}
|
32
32
|
export declare class ColorBlockModule {
|
33
33
|
static ɵfac: i0.ɵɵFactoryDeclaration<ColorBlockModule, never>;
|
@@ -10,7 +10,7 @@ export declare class CheckboardComponent implements OnInit {
|
|
10
10
|
gridStyles: Record<string, string>;
|
11
11
|
ngOnInit(): void;
|
12
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<CheckboardComponent, never>;
|
13
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CheckboardComponent, "color-checkboard", never, { "white": "white"; "size": "size"; "grey": "grey"; "boxShadow": "boxShadow"; "borderRadius": "borderRadius"; }, {}, never, never, false>;
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CheckboardComponent, "color-checkboard", never, { "white": { "alias": "white"; "required": false; }; "size": { "alias": "size"; "required": false; }; "grey": { "alias": "grey"; "required": false; }; "boxShadow": { "alias": "boxShadow"; "required": false; }; "borderRadius": { "alias": "borderRadius"; "required": false; }; }, {}, never, never, false, never>;
|
14
14
|
}
|
15
15
|
export declare class CheckboardModule {
|
16
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<CheckboardModule, never>;
|
@@ -18,5 +18,5 @@ export declare class ChromeFieldsComponent implements OnInit {
|
|
18
18
|
$event: any;
|
19
19
|
}): void;
|
20
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<ChromeFieldsComponent, never>;
|
21
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ChromeFieldsComponent, "color-chrome-fields", never, { "disableAlpha": "disableAlpha"; "hsl": "hsl"; "rgb": "rgb"; "hex": "hex"; }, { "onChange": "onChange"; }, never, never, false>;
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChromeFieldsComponent, "color-chrome-fields", never, { "disableAlpha": { "alias": "disableAlpha"; "required": false; }; "hsl": { "alias": "hsl"; "required": false; }; "rgb": { "alias": "rgb"; "required": false; }; "hex": { "alias": "hex"; "required": false; }; }, { "onChange": "onChange"; }, never, never, false, never>;
|
22
22
|
}
|
@@ -16,7 +16,7 @@ export declare class ChromeComponent extends ColorWrap {
|
|
16
16
|
$event: any;
|
17
17
|
}): void;
|
18
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<ChromeComponent, never>;
|
19
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ChromeComponent, "color-chrome", never, { "disableAlpha": "disableAlpha"; }, {}, never, never, false>;
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChromeComponent, "color-chrome", never, { "disableAlpha": { "alias": "disableAlpha"; "required": false; }; }, {}, never, never, false, never>;
|
20
20
|
}
|
21
21
|
export declare class ColorChromeModule {
|
22
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<ColorChromeModule, never>;
|
@@ -15,5 +15,5 @@ export declare class CircleSwatchComponent implements OnChanges {
|
|
15
15
|
$event: any;
|
16
16
|
}): void;
|
17
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<CircleSwatchComponent, never>;
|
18
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CircleSwatchComponent, "color-circle-swatch", never, { "color": "color"; "circleSize": "circleSize"; "circleSpacing": "circleSpacing"; "focus": "focus"; }, { "onClick": "onClick"; "onSwatchHover": "onSwatchHover"; }, never, never, false>;
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CircleSwatchComponent, "color-circle-swatch", never, { "color": { "alias": "color"; "required": false; }; "circleSize": { "alias": "circleSize"; "required": false; }; "circleSpacing": { "alias": "circleSpacing"; "required": false; }; "focus": { "alias": "focus"; "required": false; }; }, { "onClick": "onClick"; "onSwatchHover": "onSwatchHover"; }, never, never, false, never>;
|
19
19
|
}
|
@@ -23,7 +23,7 @@ export declare class CircleComponent extends ColorWrap {
|
|
23
23
|
$event: any;
|
24
24
|
}): void;
|
25
25
|
static ɵfac: i0.ɵɵFactoryDeclaration<CircleComponent, never>;
|
26
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CircleComponent, "color-circle", never, { "width": "width"; "colors": "colors"; "circleSize": "circleSize"; "circleSpacing": "circleSpacing"; }, {}, never, never, false>;
|
26
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CircleComponent, "color-circle", never, { "width": { "alias": "width"; "required": false; }; "colors": { "alias": "colors"; "required": false; }; "circleSize": { "alias": "circleSize"; "required": false; }; "circleSpacing": { "alias": "circleSpacing"; "required": false; }; }, {}, never, never, false, never>;
|
27
27
|
}
|
28
28
|
export declare class ColorCircleModule {
|
29
29
|
static ɵfac: i0.ɵɵFactoryDeclaration<ColorCircleModule, never>;
|
@@ -49,7 +49,7 @@ export declare class ColorWrap implements OnInit, OnChanges, OnDestroy, ControlV
|
|
49
49
|
setDisabledState(isDisabled: boolean): void;
|
50
50
|
writeValue(hex: string): void;
|
51
51
|
static ɵfac: i0.ɵɵFactoryDeclaration<ColorWrap, never>;
|
52
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ColorWrap, "color-wrap", never, { "className": "className"; "mode": "mode"; "color": "color"; }, { "colorChange": "colorChange"; "onChange": "onChange"; "onChangeComplete": "onChangeComplete"; "onSwatchHover": "onSwatchHover"; }, never, never, false>;
|
52
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ColorWrap, "color-wrap", never, { "className": { "alias": "className"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "color": { "alias": "color"; "required": false; }; }, { "colorChange": "colorChange"; "onChange": "onChange"; "onChangeComplete": "onChangeComplete"; "onSwatchHover": "onSwatchHover"; }, never, never, false, never>;
|
53
53
|
}
|
54
54
|
export declare class ColorWrapModule {
|
55
55
|
static ɵfac: i0.ɵɵFactoryDeclaration<ColorWrapModule, never>;
|
@@ -15,5 +15,5 @@ export declare class CompactColorComponent implements OnChanges {
|
|
15
15
|
$event: any;
|
16
16
|
}): void;
|
17
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<CompactColorComponent, never>;
|
18
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CompactColorComponent, "color-compact-color", never, { "color": "color"; "active": "active"; }, { "onClick": "onClick"; "onSwatchHover": "onSwatchHover"; }, never, never, false>;
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CompactColorComponent, "color-compact-color", never, { "color": { "alias": "color"; "required": false; }; "active": { "alias": "active"; "required": false; }; }, { "onClick": "onClick"; "onSwatchHover": "onSwatchHover"; }, never, never, false, never>;
|
19
19
|
}
|
@@ -28,5 +28,5 @@ export declare class CompactFieldsComponent {
|
|
28
28
|
$event: any;
|
29
29
|
}): void;
|
30
30
|
static ɵfac: i0.ɵɵFactoryDeclaration<CompactFieldsComponent, never>;
|
31
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CompactFieldsComponent, "color-compact-fields", never, { "hex": "hex"; "rgb": "rgb"; }, { "onChange": "onChange"; }, never, never, false>;
|
31
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CompactFieldsComponent, "color-compact-fields", never, { "hex": { "alias": "hex"; "required": false; }; "rgb": { "alias": "rgb"; "required": false; }; }, { "onChange": "onChange"; }, never, never, false, never>;
|
32
32
|
}
|
@@ -21,7 +21,7 @@ export declare class CompactComponent extends ColorWrap {
|
|
21
21
|
$event: any;
|
22
22
|
}): void;
|
23
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<CompactComponent, never>;
|
24
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CompactComponent, "color-compact", never, { "colors": "colors"; "zDepth": "zDepth"; "radius": "radius"; "background": "background"; }, {}, never, never, false>;
|
24
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CompactComponent, "color-compact", never, { "colors": { "alias": "colors"; "required": false; }; "zDepth": { "alias": "zDepth"; "required": false; }; "radius": { "alias": "radius"; "required": false; }; "background": { "alias": "background"; "required": false; }; }, {}, never, never, false, never>;
|
25
25
|
}
|
26
26
|
export declare class ColorCompactModule {
|
27
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<ColorCompactModule, never>;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
2
2
|
import { Subject } from 'rxjs';
|
3
3
|
import * as i0 from "@angular/core";
|
4
4
|
export declare class CoordinatesDirective implements OnInit, OnDestroy {
|
@@ -18,12 +18,11 @@ export declare class CoordinatesDirective implements OnInit, OnDestroy {
|
|
18
18
|
mousemove($event: Event, x: number, y: number, isTouch?: boolean): void;
|
19
19
|
mouseup(): void;
|
20
20
|
mousedown($event: Event, x: number, y: number, isTouch?: boolean): void;
|
21
|
-
constructor(el: ElementRef);
|
22
21
|
ngOnInit(): void;
|
23
22
|
ngOnDestroy(): void;
|
24
23
|
handleChange(x: number, y: number, $event: Event, isTouch: boolean): void;
|
25
24
|
static ɵfac: i0.ɵɵFactoryDeclaration<CoordinatesDirective, never>;
|
26
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CoordinatesDirective, "[ngx-color-coordinates]", never, {}, { "coordinatesChange": "coordinatesChange"; }, never, never, false>;
|
25
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CoordinatesDirective, "[ngx-color-coordinates]", never, {}, { "coordinatesChange": "coordinatesChange"; }, never, never, false, never>;
|
27
26
|
}
|
28
27
|
export declare class CoordinatesModule {
|
29
28
|
static ɵfac: i0.ɵɵFactoryDeclaration<CoordinatesModule, never>;
|
@@ -36,7 +36,7 @@ export declare class EditableInputComponent implements OnInit, OnChanges, OnDest
|
|
36
36
|
handleMousedown($event: Event): void;
|
37
37
|
handleDrag($event: any): void;
|
38
38
|
static ɵfac: i0.ɵɵFactoryDeclaration<EditableInputComponent, never>;
|
39
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<EditableInputComponent, "color-editable-input", never, { "style": "style"; "label": "label"; "value": "value"; "arrowOffset": "arrowOffset"; "dragLabel": "dragLabel"; "dragMax": "dragMax"; "placeholder": "placeholder"; }, { "onChange": "onChange"; }, never, never, false>;
|
39
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EditableInputComponent, "color-editable-input", never, { "style": { "alias": "style"; "required": false; }; "label": { "alias": "label"; "required": false; }; "value": { "alias": "value"; "required": false; }; "arrowOffset": { "alias": "arrowOffset"; "required": false; }; "dragLabel": { "alias": "dragLabel"; "required": false; }; "dragMax": { "alias": "dragMax"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; }, { "onChange": "onChange"; }, never, never, false, never>;
|
40
40
|
}
|
41
41
|
export declare class EditableInputModule {
|
42
42
|
static ɵfac: i0.ɵɵFactoryDeclaration<EditableInputModule, never>;
|
@@ -6,20 +6,20 @@ import { ColorWrap, toState, AlphaModule, CheckboardModule } from 'ngx-color';
|
|
6
6
|
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
7
7
|
|
8
8
|
class AlphaPickerComponent extends ColorWrap {
|
9
|
+
/** Pixel value for picker width */
|
10
|
+
width = 316;
|
11
|
+
/** Pixel value for picker height */
|
12
|
+
height = 16;
|
13
|
+
direction = 'horizontal';
|
14
|
+
pointer = {
|
15
|
+
width: '18px',
|
16
|
+
height: '18px',
|
17
|
+
borderRadius: '50%',
|
18
|
+
transform: 'translate(-9px, -2px)',
|
19
|
+
boxShadow: '0 1px 4px 0 rgba(0, 0, 0, 0.37)',
|
20
|
+
};
|
9
21
|
constructor() {
|
10
22
|
super();
|
11
|
-
/** Pixel value for picker width */
|
12
|
-
this.width = 316;
|
13
|
-
/** Pixel value for picker height */
|
14
|
-
this.height = 16;
|
15
|
-
this.direction = 'horizontal';
|
16
|
-
this.pointer = {
|
17
|
-
width: '18px',
|
18
|
-
height: '18px',
|
19
|
-
borderRadius: '50%',
|
20
|
-
transform: 'translate(-9px, -2px)',
|
21
|
-
boxShadow: '0 1px 4px 0 rgba(0, 0, 0, 0.37)',
|
22
|
-
};
|
23
23
|
}
|
24
24
|
ngOnChanges() {
|
25
25
|
if (this.direction === 'vertical') {
|
@@ -30,21 +30,19 @@ class AlphaPickerComponent extends ColorWrap {
|
|
30
30
|
handlePickerChange({ data, $event }) {
|
31
31
|
this.handleChange(data, $event);
|
32
32
|
}
|
33
|
-
}
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
<div class="alpha-picker {{ className }}"
|
47
|
-
[style.width.px]="width" [style.height.px]="height">
|
33
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: AlphaPickerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
34
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.3", type: AlphaPickerComponent, isStandalone: false, selector: "color-alpha-picker", inputs: { width: "width", height: "height", direction: "direction" }, providers: [
|
35
|
+
{
|
36
|
+
provide: NG_VALUE_ACCESSOR,
|
37
|
+
useExisting: forwardRef(() => AlphaPickerComponent),
|
38
|
+
multi: true,
|
39
|
+
},
|
40
|
+
{
|
41
|
+
provide: ColorWrap,
|
42
|
+
useExisting: forwardRef(() => AlphaPickerComponent),
|
43
|
+
},
|
44
|
+
], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: `
|
45
|
+
<div class="alpha-picker {{ className }}" [style.width.px]="width" [style.height.px]="height">
|
48
46
|
<color-alpha
|
49
47
|
[hsl]="hsl"
|
50
48
|
[rgb]="rgb"
|
@@ -54,11 +52,11 @@ AlphaPickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", v
|
|
54
52
|
></color-alpha>
|
55
53
|
</div>
|
56
54
|
`, isInline: true, styles: [".alpha-picker{position:relative}.color-alpha{radius:2px}\n"], dependencies: [{ kind: "component", type: i1.AlphaComponent, selector: "color-alpha", inputs: ["hsl", "rgb", "pointer", "shadow", "radius", "direction"], outputs: ["onChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
57
|
-
|
55
|
+
}
|
56
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: AlphaPickerComponent, decorators: [{
|
58
57
|
type: Component,
|
59
58
|
args: [{ selector: 'color-alpha-picker', template: `
|
60
|
-
<div class="alpha-picker {{ className }}"
|
61
|
-
[style.width.px]="width" [style.height.px]="height">
|
59
|
+
<div class="alpha-picker {{ className }}" [style.width.px]="width" [style.height.px]="height">
|
62
60
|
<color-alpha
|
63
61
|
[hsl]="hsl"
|
64
62
|
[rgb]="rgb"
|
@@ -75,10 +73,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImpor
|
|
75
73
|
},
|
76
74
|
{
|
77
75
|
provide: ColorWrap,
|
78
|
-
useExisting: forwardRef(() => AlphaPickerComponent)
|
79
|
-
}
|
80
|
-
], styles: [".alpha-picker{position:relative}.color-alpha{radius:2px}\n"] }]
|
81
|
-
}], ctorParameters:
|
76
|
+
useExisting: forwardRef(() => AlphaPickerComponent),
|
77
|
+
},
|
78
|
+
], standalone: false, styles: [".alpha-picker{position:relative}.color-alpha{radius:2px}\n"] }]
|
79
|
+
}], ctorParameters: () => [], propDecorators: { width: [{
|
82
80
|
type: Input
|
83
81
|
}], height: [{
|
84
82
|
type: Input
|
@@ -86,11 +84,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImpor
|
|
86
84
|
type: Input
|
87
85
|
}] } });
|
88
86
|
class ColorAlphaModule {
|
87
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: ColorAlphaModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
88
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.3", ngImport: i0, type: ColorAlphaModule, declarations: [AlphaPickerComponent], imports: [CommonModule, AlphaModule, CheckboardModule], exports: [AlphaPickerComponent] });
|
89
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: ColorAlphaModule, imports: [CommonModule, AlphaModule, CheckboardModule] });
|
89
90
|
}
|
90
|
-
|
91
|
-
ColorAlphaModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.2", ngImport: i0, type: ColorAlphaModule, declarations: [AlphaPickerComponent], imports: [CommonModule, AlphaModule, CheckboardModule], exports: [AlphaPickerComponent] });
|
92
|
-
ColorAlphaModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: ColorAlphaModule, imports: [CommonModule, AlphaModule, CheckboardModule] });
|
93
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: ColorAlphaModule, decorators: [{
|
91
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: ColorAlphaModule, decorators: [{
|
94
92
|
type: NgModule,
|
95
93
|
args: [{
|
96
94
|
declarations: [AlphaPickerComponent],
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ngx-color-alpha.mjs","sources":["../../src/lib/alpha/alpha-picker.component.ts","../../src/lib/alpha/ngx-color-alpha.ts"],"sourcesContent":["import { CommonModule } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n forwardRef,\n Input,\n NgModule,\n OnChanges,\n} from '@angular/core';\n\nimport { AlphaModule, CheckboardModule, ColorWrap, toState } from 'ngx-color';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\n\n@Component({\n selector: 'color-alpha-picker',\n template: `\n <div class=\"alpha-picker {{ className }}\" [style.width.px]=\"width\" [style.height.px]=\"height\">\n <color-alpha\n [hsl]=\"hsl\"\n [rgb]=\"rgb\"\n [pointer]=\"pointer\"\n [direction]=\"direction\"\n (onChange)=\"handlePickerChange($event)\"\n ></color-alpha>\n </div>\n `,\n styles: [\n `\n .alpha-picker {\n position: relative;\n }\n .color-alpha {\n radius: 2px;\n }\n `,\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n preserveWhitespaces: false,\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => AlphaPickerComponent),\n multi: true,\n },\n {\n provide: ColorWrap,\n useExisting: forwardRef(() => AlphaPickerComponent),\n },\n ],\n standalone: false,\n})\nexport class AlphaPickerComponent extends ColorWrap implements OnChanges {\n /** Pixel value for picker width */\n @Input() width: string | number = 316;\n /** Pixel value for picker height */\n @Input() height: string | number = 16;\n @Input() direction: 'horizontal' | 'vertical' = 'horizontal';\n pointer: { [key: string]: string } = {\n width: '18px',\n height: '18px',\n borderRadius: '50%',\n transform: 'translate(-9px, -2px)',\n boxShadow: '0 1px 4px 0 rgba(0, 0, 0, 0.37)',\n };\n\n constructor() {\n super();\n }\n ngOnChanges() {\n if (this.direction === 'vertical') {\n this.pointer.transform = 'translate(-3px, -9px)';\n }\n this.setState(toState(this.color, this.oldHue));\n }\n handlePickerChange({ data, $event }) {\n this.handleChange(data, $event);\n }\n}\n\n@NgModule({\n declarations: [AlphaPickerComponent],\n exports: [AlphaPickerComponent],\n imports: [CommonModule, AlphaModule, CheckboardModule],\n})\nexport class ColorAlphaModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;AAmDM,MAAO,oBA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,EAAA,CAAA;sBAAd;gBACQ,SAAS,EAAA,CAAA;sBAAjB;;MA4BU,gBAAgB,CAAA;uGAAhB,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA;wGAAhB,gBAAgB,EAAA,YAAA,EAAA,CAjChB,oBAAoB,CA+BrB,EAAA,OAAA,EAAA,CAAA,YAAY,EAAE,WAAW,EAAE,gBAAgB,CAAA,EAAA,OAAA,EAAA,CA/B1C,oBAAoB,CAAA,EAAA,CAAA;AAiCpB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,gBAAgB,EAFjB,OAAA,EAAA,CAAA,YAAY,EAAE,WAAW,EAAE,gBAAgB,CAAA,EAAA,CAAA;;2FAE1C,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAL5B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,oBAAoB,CAAC;oBACpC,OAAO,EAAE,CAAC,oBAAoB,CAAC;AAC/B,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,WAAW,EAAE,gBAAgB,CAAC;AACvD,iBAAA;;;ACnFD;;AAEG;;;;"}
|
@@ -0,0 +1,233 @@
|
|
1
|
+
import * as i0 from '@angular/core';
|
2
|
+
import { EventEmitter, Component, Input, Output, forwardRef, ChangeDetectionStrategy, NgModule } from '@angular/core';
|
3
|
+
import * as i1 from 'ngx-color';
|
4
|
+
import { ColorWrap, getContrastingColor, isValidHex, CheckboardModule, SwatchModule, EditableInputModule } from 'ngx-color';
|
5
|
+
import { CommonModule } from '@angular/common';
|
6
|
+
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
7
|
+
|
8
|
+
class BlockSwatchesComponent {
|
9
|
+
colors;
|
10
|
+
onClick = new EventEmitter();
|
11
|
+
onSwatchHover = new EventEmitter();
|
12
|
+
swatchStyle = {
|
13
|
+
width: '22px',
|
14
|
+
height: '22px',
|
15
|
+
float: 'left',
|
16
|
+
marginRight: '10px',
|
17
|
+
marginBottom: '10px',
|
18
|
+
borderRadius: '4px',
|
19
|
+
};
|
20
|
+
handleClick({ hex, $event }) {
|
21
|
+
this.onClick.emit({ hex, $event });
|
22
|
+
}
|
23
|
+
focusStyle(c) {
|
24
|
+
return {
|
25
|
+
boxShadow: `${c} 0 0 4px`,
|
26
|
+
};
|
27
|
+
}
|
28
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: BlockSwatchesComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
29
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.3", type: BlockSwatchesComponent, isStandalone: false, selector: "color-block-swatches", inputs: { colors: "colors" }, outputs: { onClick: "onClick", onSwatchHover: "onSwatchHover" }, ngImport: i0, template: `
|
30
|
+
<div class="block-swatches">
|
31
|
+
@for (c of colors; track c) {
|
32
|
+
<color-swatch
|
33
|
+
[color]="c"
|
34
|
+
[style]="swatchStyle"
|
35
|
+
[focusStyle]="focusStyle(c)"
|
36
|
+
(onClick)="handleClick($event)"
|
37
|
+
(onHover)="onSwatchHover.emit($event)"
|
38
|
+
></color-swatch>
|
39
|
+
}
|
40
|
+
<div class="clear"></div>
|
41
|
+
</div>
|
42
|
+
`, isInline: true, styles: [".block-swatches{margin-right:-10px}.clear{clear:both}\n"], dependencies: [{ kind: "component", type: i1.SwatchComponent, selector: "color-swatch", inputs: ["color", "style", "focusStyle", "focus"], outputs: ["onClick", "onHover"] }] });
|
43
|
+
}
|
44
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: BlockSwatchesComponent, decorators: [{
|
45
|
+
type: Component,
|
46
|
+
args: [{ selector: 'color-block-swatches', template: `
|
47
|
+
<div class="block-swatches">
|
48
|
+
@for (c of colors; track c) {
|
49
|
+
<color-swatch
|
50
|
+
[color]="c"
|
51
|
+
[style]="swatchStyle"
|
52
|
+
[focusStyle]="focusStyle(c)"
|
53
|
+
(onClick)="handleClick($event)"
|
54
|
+
(onHover)="onSwatchHover.emit($event)"
|
55
|
+
></color-swatch>
|
56
|
+
}
|
57
|
+
<div class="clear"></div>
|
58
|
+
</div>
|
59
|
+
`, standalone: false, styles: [".block-swatches{margin-right:-10px}.clear{clear:both}\n"] }]
|
60
|
+
}], propDecorators: { colors: [{
|
61
|
+
type: Input
|
62
|
+
}], onClick: [{
|
63
|
+
type: Output
|
64
|
+
}], onSwatchHover: [{
|
65
|
+
type: Output
|
66
|
+
}] } });
|
67
|
+
|
68
|
+
class BlockComponent extends ColorWrap {
|
69
|
+
/** Pixel value for picker width */
|
70
|
+
width = 170;
|
71
|
+
/** Color squares to display */
|
72
|
+
colors = [
|
73
|
+
'#D9E3F0',
|
74
|
+
'#F47373',
|
75
|
+
'#697689',
|
76
|
+
'#37D67A',
|
77
|
+
'#2CCCE4',
|
78
|
+
'#555555',
|
79
|
+
'#dce775',
|
80
|
+
'#ff8a65',
|
81
|
+
'#ba68c8',
|
82
|
+
];
|
83
|
+
triangle = 'top';
|
84
|
+
input = {
|
85
|
+
width: '100%',
|
86
|
+
fontSize: '12px',
|
87
|
+
color: '#666',
|
88
|
+
border: '0px',
|
89
|
+
outline: 'none',
|
90
|
+
height: '22px',
|
91
|
+
boxShadow: 'inset 0 0 0 1px #ddd',
|
92
|
+
borderRadius: '4px',
|
93
|
+
padding: '0 7px',
|
94
|
+
boxSizing: 'border-box',
|
95
|
+
};
|
96
|
+
wrap = {
|
97
|
+
position: 'relative',
|
98
|
+
width: '100%',
|
99
|
+
};
|
100
|
+
disableAlpha = true;
|
101
|
+
constructor() {
|
102
|
+
super();
|
103
|
+
}
|
104
|
+
handleValueChange({ data, $event }) {
|
105
|
+
this.handleBlockChange({ hex: data, $event });
|
106
|
+
}
|
107
|
+
getContrastingColor(hex) {
|
108
|
+
return getContrastingColor(hex);
|
109
|
+
}
|
110
|
+
handleBlockChange({ hex, $event }) {
|
111
|
+
if (isValidHex(hex)) {
|
112
|
+
// this.hex = hex;
|
113
|
+
this.handleChange({
|
114
|
+
hex,
|
115
|
+
source: 'hex',
|
116
|
+
}, $event);
|
117
|
+
}
|
118
|
+
}
|
119
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: BlockComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
120
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.3", type: BlockComponent, isStandalone: false, selector: "color-block", inputs: { width: "width", colors: "colors", triangle: "triangle" }, providers: [
|
121
|
+
{
|
122
|
+
provide: NG_VALUE_ACCESSOR,
|
123
|
+
useExisting: forwardRef(() => BlockComponent),
|
124
|
+
multi: true,
|
125
|
+
},
|
126
|
+
{
|
127
|
+
provide: ColorWrap,
|
128
|
+
useExisting: forwardRef(() => BlockComponent),
|
129
|
+
},
|
130
|
+
], usesInheritance: true, ngImport: i0, template: `
|
131
|
+
<div class="block-card block-picker {{ className }}">
|
132
|
+
@if (triangle !== 'hide') {
|
133
|
+
<div
|
134
|
+
class="block-triangle"
|
135
|
+
[style.border-color]="'transparent transparent ' + this.hex + ' transparent'"
|
136
|
+
></div>
|
137
|
+
}
|
138
|
+
|
139
|
+
<div class="block-head" [style.background]="hex">
|
140
|
+
@if (hex === 'transparent') {
|
141
|
+
<color-checkboard borderRadius="6px 6px 0 0"></color-checkboard>
|
142
|
+
}
|
143
|
+
<div class="block-label" [style.color]="getContrastingColor(hex)">
|
144
|
+
{{ hex }}
|
145
|
+
</div>
|
146
|
+
</div>
|
147
|
+
|
148
|
+
<div class="block-body">
|
149
|
+
<color-block-swatches
|
150
|
+
[colors]="colors"
|
151
|
+
(onClick)="handleBlockChange($event)"
|
152
|
+
(onSwatchHover)="onSwatchHover.emit($event)"
|
153
|
+
></color-block-swatches>
|
154
|
+
<color-editable-input
|
155
|
+
[value]="hex"
|
156
|
+
(onChange)="handleValueChange($event)"
|
157
|
+
[style]="{ input: input, wrap: wrap }"
|
158
|
+
></color-editable-input>
|
159
|
+
</div>
|
160
|
+
</div>
|
161
|
+
`, isInline: true, styles: [".block-card{background:#fff;border-radius:6px;box-shadow:0 1px #0000001a;position:relative}.block-head{align-items:center;border-radius:6px 6px 0 0;display:flex;height:110px;justify-content:center;position:relative}.block-body{padding:10px}.block-label{font-size:18px;position:relative}.block-triangle{border-style:solid;border-width:0 10px 10px 10px;height:0;left:50%;margin-left:-10px;position:absolute;top:-10px;width:0}\n"], dependencies: [{ kind: "component", type: i0.forwardRef(() => i1.CheckboardComponent), selector: "color-checkboard", inputs: ["white", "size", "grey", "boxShadow", "borderRadius"] }, { kind: "component", type: i0.forwardRef(() => i1.EditableInputComponent), selector: "color-editable-input", inputs: ["style", "label", "value", "arrowOffset", "dragLabel", "dragMax", "placeholder"], outputs: ["onChange"] }, { kind: "component", type: i0.forwardRef(() => BlockSwatchesComponent), selector: "color-block-swatches", inputs: ["colors"], outputs: ["onClick", "onSwatchHover"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
162
|
+
}
|
163
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: BlockComponent, decorators: [{
|
164
|
+
type: Component,
|
165
|
+
args: [{ selector: 'color-block', template: `
|
166
|
+
<div class="block-card block-picker {{ className }}">
|
167
|
+
@if (triangle !== 'hide') {
|
168
|
+
<div
|
169
|
+
class="block-triangle"
|
170
|
+
[style.border-color]="'transparent transparent ' + this.hex + ' transparent'"
|
171
|
+
></div>
|
172
|
+
}
|
173
|
+
|
174
|
+
<div class="block-head" [style.background]="hex">
|
175
|
+
@if (hex === 'transparent') {
|
176
|
+
<color-checkboard borderRadius="6px 6px 0 0"></color-checkboard>
|
177
|
+
}
|
178
|
+
<div class="block-label" [style.color]="getContrastingColor(hex)">
|
179
|
+
{{ hex }}
|
180
|
+
</div>
|
181
|
+
</div>
|
182
|
+
|
183
|
+
<div class="block-body">
|
184
|
+
<color-block-swatches
|
185
|
+
[colors]="colors"
|
186
|
+
(onClick)="handleBlockChange($event)"
|
187
|
+
(onSwatchHover)="onSwatchHover.emit($event)"
|
188
|
+
></color-block-swatches>
|
189
|
+
<color-editable-input
|
190
|
+
[value]="hex"
|
191
|
+
(onChange)="handleValueChange($event)"
|
192
|
+
[style]="{ input: input, wrap: wrap }"
|
193
|
+
></color-editable-input>
|
194
|
+
</div>
|
195
|
+
</div>
|
196
|
+
`, preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
197
|
+
{
|
198
|
+
provide: NG_VALUE_ACCESSOR,
|
199
|
+
useExisting: forwardRef(() => BlockComponent),
|
200
|
+
multi: true,
|
201
|
+
},
|
202
|
+
{
|
203
|
+
provide: ColorWrap,
|
204
|
+
useExisting: forwardRef(() => BlockComponent),
|
205
|
+
},
|
206
|
+
], standalone: false, styles: [".block-card{background:#fff;border-radius:6px;box-shadow:0 1px #0000001a;position:relative}.block-head{align-items:center;border-radius:6px 6px 0 0;display:flex;height:110px;justify-content:center;position:relative}.block-body{padding:10px}.block-label{font-size:18px;position:relative}.block-triangle{border-style:solid;border-width:0 10px 10px 10px;height:0;left:50%;margin-left:-10px;position:absolute;top:-10px;width:0}\n"] }]
|
207
|
+
}], ctorParameters: () => [], propDecorators: { width: [{
|
208
|
+
type: Input
|
209
|
+
}], colors: [{
|
210
|
+
type: Input
|
211
|
+
}], triangle: [{
|
212
|
+
type: Input
|
213
|
+
}] } });
|
214
|
+
class ColorBlockModule {
|
215
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: ColorBlockModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
216
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.3", ngImport: i0, type: ColorBlockModule, declarations: [BlockComponent, BlockSwatchesComponent], imports: [CommonModule, CheckboardModule, SwatchModule, EditableInputModule], exports: [BlockComponent, BlockSwatchesComponent] });
|
217
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: ColorBlockModule, imports: [CommonModule, CheckboardModule, SwatchModule, EditableInputModule] });
|
218
|
+
}
|
219
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: ColorBlockModule, decorators: [{
|
220
|
+
type: NgModule,
|
221
|
+
args: [{
|
222
|
+
declarations: [BlockComponent, BlockSwatchesComponent],
|
223
|
+
exports: [BlockComponent, BlockSwatchesComponent],
|
224
|
+
imports: [CommonModule, CheckboardModule, SwatchModule, EditableInputModule],
|
225
|
+
}]
|
226
|
+
}] });
|
227
|
+
|
228
|
+
/**
|
229
|
+
* Generated bundle index. Do not edit.
|
230
|
+
*/
|
231
|
+
|
232
|
+
export { BlockComponent, BlockSwatchesComponent, ColorBlockModule };
|
233
|
+
//# sourceMappingURL=ngx-color-block.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ngx-color-block.mjs","sources":["../../src/lib/block/block-swatches.component.ts","../../src/lib/block/block.component.ts","../../src/lib/block/ngx-color-block.ts"],"sourcesContent":["import { Component, EventEmitter, Input, Output } from '@angular/core';\n@Component({\n selector: 'color-block-swatches',\n template: `\n <div class=\"block-swatches\">\n @for (c of colors; track c) {\n <color-swatch\n [color]=\"c\"\n [style]=\"swatchStyle\"\n [focusStyle]=\"focusStyle(c)\"\n (onClick)=\"handleClick($event)\"\n (onHover)=\"onSwatchHover.emit($event)\"\n ></color-swatch>\n }\n <div class=\"clear\"></div>\n </div>\n `,\n styles: [\n `\n .block-swatches {\n margin-right: -10px;\n }\n .clear {\n clear: both;\n }\n `,\n ],\n standalone: false,\n})\nexport class BlockSwatchesComponent {\n @Input() colors!: string[];\n @Output() onClick = new EventEmitter<any>();\n @Output() onSwatchHover = new EventEmitter<any>();\n\n swatchStyle = {\n width: '22px',\n height: '22px',\n float: 'left',\n marginRight: '10px',\n marginBottom: '10px',\n borderRadius: '4px',\n };\n\n handleClick({ hex, $event }) {\n this.onClick.emit({ hex, $event });\n }\n focusStyle(c) {\n return {\n boxShadow: `${c} 0 0 4px`,\n };\n }\n}\n","import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, forwardRef, Input, NgModule } from '@angular/core';\n\nimport {\n CheckboardModule,\n ColorWrap,\n EditableInputModule,\n getContrastingColor,\n isValidHex,\n SwatchModule,\n} from 'ngx-color';\nimport { BlockSwatchesComponent } from './block-swatches.component';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\n\n@Component({\n selector: 'color-block',\n template: `\n <div class=\"block-card block-picker {{ className }}\">\n @if (triangle !== 'hide') {\n <div\n class=\"block-triangle\"\n [style.border-color]=\"'transparent transparent ' + this.hex + ' transparent'\"\n ></div>\n }\n\n <div class=\"block-head\" [style.background]=\"hex\">\n @if (hex === 'transparent') {\n <color-checkboard borderRadius=\"6px 6px 0 0\"></color-checkboard>\n }\n <div class=\"block-label\" [style.color]=\"getContrastingColor(hex)\">\n {{ hex }}\n </div>\n </div>\n\n <div class=\"block-body\">\n <color-block-swatches\n [colors]=\"colors\"\n (onClick)=\"handleBlockChange($event)\"\n (onSwatchHover)=\"onSwatchHover.emit($event)\"\n ></color-block-swatches>\n <color-editable-input\n [value]=\"hex\"\n (onChange)=\"handleValueChange($event)\"\n [style]=\"{ input: input, wrap: wrap }\"\n ></color-editable-input>\n </div>\n </div>\n `,\n styles: [\n `\n .block-card {\n background: #fff;\n border-radius: 6px;\n box-shadow: 0 1px rgba(0, 0, 0, 0.1);\n position: relative;\n }\n .block-head {\n align-items: center;\n border-radius: 6px 6px 0 0;\n display: flex;\n height: 110px;\n justify-content: center;\n position: relative;\n }\n .block-body {\n padding: 10px;\n }\n .block-label {\n font-size: 18px;\n position: relative;\n }\n .block-triangle {\n border-style: solid;\n border-width: 0 10px 10px 10px;\n height: 0;\n left: 50%;\n margin-left: -10px;\n position: absolute;\n top: -10px;\n width: 0;\n }\n `,\n ],\n preserveWhitespaces: false,\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => BlockComponent),\n multi: true,\n },\n {\n provide: ColorWrap,\n useExisting: forwardRef(() => BlockComponent),\n },\n ],\n standalone: false,\n})\nexport class BlockComponent extends ColorWrap {\n /** Pixel value for picker width */\n @Input() width: string | number = 170;\n /** Color squares to display */\n @Input() colors = [\n '#D9E3F0',\n '#F47373',\n '#697689',\n '#37D67A',\n '#2CCCE4',\n '#555555',\n '#dce775',\n '#ff8a65',\n '#ba68c8',\n ];\n @Input() triangle: 'top' | 'hide' = 'top';\n input: { [key: string]: string } = {\n width: '100%',\n fontSize: '12px',\n color: '#666',\n border: '0px',\n outline: 'none',\n height: '22px',\n boxShadow: 'inset 0 0 0 1px #ddd',\n borderRadius: '4px',\n padding: '0 7px',\n boxSizing: 'border-box',\n };\n wrap: { [key: string]: string } = {\n position: 'relative',\n width: '100%',\n };\n disableAlpha = true;\n\n constructor() {\n super();\n }\n\n handleValueChange({ data, $event }) {\n this.handleBlockChange({ hex: data, $event });\n }\n getContrastingColor(hex) {\n return getContrastingColor(hex);\n }\n handleBlockChange({ hex, $event }) {\n if (isValidHex(hex)) {\n // this.hex = hex;\n this.handleChange(\n {\n hex,\n source: 'hex',\n },\n $event,\n );\n }\n }\n}\n\n@NgModule({\n declarations: [BlockComponent, BlockSwatchesComponent],\n exports: [BlockComponent, BlockSwatchesComponent],\n imports: [CommonModule, CheckboardModule, SwatchModule, EditableInputModule],\n})\nexport class ColorBlockModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;MA6Ba,sBAAsB,CAAA;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