ngx-color 7.3.1 → 8.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/LICENSE +21 -0
- package/README.md +281 -0
- package/alpha.component.d.ts +1 -1
- package/checkboard.component.d.ts +1 -1
- package/color-wrap.component.d.ts +1 -1
- package/coordinates.directive.d.ts +1 -1
- package/editable-input.component.d.ts +1 -1
- package/esm2020/alpha.component.mjs +13 -61
- package/esm2020/checkboard.component.mjs +9 -25
- package/esm2020/color-wrap.component.mjs +8 -8
- package/esm2020/coordinates.directive.mjs +7 -7
- package/esm2020/editable-input.component.mjs +11 -25
- package/esm2020/hue.component.mjs +13 -54
- package/esm2020/raised.component.mjs +10 -49
- package/esm2020/saturation.component.mjs +13 -57
- package/esm2020/shade.component.mjs +11 -51
- package/esm2020/swatch.component.mjs +13 -28
- package/fesm2015/ngx-color.mjs +92 -349
- package/fesm2015/ngx-color.mjs.map +1 -1
- package/fesm2020/ngx-color.mjs +92 -349
- package/fesm2020/ngx-color.mjs.map +1 -1
- package/hue.component.d.ts +1 -1
- package/{ngx-color.d.ts → index.d.ts} +0 -0
- package/package.json +11 -123
- package/raised.component.d.ts +1 -1
- package/saturation.component.d.ts +1 -1
- package/shade.component.d.ts +1 -1
- package/swatch.component.d.ts +1 -1
- package/alpha/alpha-picker.component.d.ts +0 -28
- package/alpha/ngx-color-alpha.d.ts +0 -5
- package/alpha/package.json +0 -17
- package/alpha/public_api.d.ts +0 -1
- package/block/block-swatches.component.d.ts +0 -24
- package/block/block.component.d.ts +0 -36
- package/block/ngx-color-block.d.ts +0 -5
- package/block/package.json +0 -16
- package/block/public_api.d.ts +0 -2
- package/chrome/chrome-fields.component.d.ts +0 -22
- package/chrome/chrome.component.d.ts +0 -25
- package/chrome/ngx-color-chrome.d.ts +0 -5
- package/chrome/package.json +0 -16
- package/chrome/public_api.d.ts +0 -2
- package/circle/circle-swatch.component.d.ts +0 -19
- package/circle/circle.component.d.ts +0 -32
- package/circle/ngx-color-circle.d.ts +0 -5
- package/circle/package.json +0 -19
- package/circle/public_api.d.ts +0 -2
- package/compact/compact-color.component.d.ts +0 -19
- package/compact/compact-fields.component.d.ts +0 -32
- package/compact/compact.component.d.ts +0 -30
- package/compact/ngx-color-compact.d.ts +0 -5
- package/compact/package.json +0 -16
- package/compact/public_api.d.ts +0 -3
- package/esm2020/alpha/alpha-picker.component.mjs +0 -116
- package/esm2020/alpha/ngx-color-alpha.mjs +0 -5
- package/esm2020/alpha/public_api.mjs +0 -2
- package/esm2020/block/block-swatches.component.mjs +0 -74
- package/esm2020/block/block.component.mjs +0 -199
- package/esm2020/block/ngx-color-block.mjs +0 -5
- package/esm2020/block/public_api.mjs +0 -3
- package/esm2020/chrome/chrome-fields.component.mjs +0 -356
- package/esm2020/chrome/chrome.component.mjs +0 -249
- 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 -85
- package/esm2020/circle/circle.component.mjs +0 -148
- package/esm2020/circle/ngx-color-circle.mjs +0 -5
- package/esm2020/circle/public_api.mjs +0 -3
- package/esm2020/compact/compact-color.component.mjs +0 -91
- package/esm2020/compact/compact-fields.component.mjs +0 -186
- package/esm2020/compact/compact.component.mjs +0 -177
- package/esm2020/compact/ngx-color-compact.mjs +0 -5
- package/esm2020/compact/public_api.mjs +0 -4
- package/esm2020/github/github-swatch.component.mjs +0 -67
- package/esm2020/github/github.component.mjs +0 -179
- package/esm2020/github/ngx-color-github.mjs +0 -5
- package/esm2020/github/public_api.mjs +0 -3
- package/esm2020/hue/hue-picker.component.mjs +0 -113
- package/esm2020/hue/ngx-color-hue.mjs +0 -5
- package/esm2020/hue/public_api.mjs +0 -2
- package/esm2020/material/material.component.mjs +0 -211
- package/esm2020/material/ngx-color-material.mjs +0 -5
- package/esm2020/material/public_api.mjs +0 -2
- package/esm2020/photoshop/ngx-color-photoshop.mjs +0 -5
- package/esm2020/photoshop/photoshop-button.component.mjs +0 -63
- package/esm2020/photoshop/photoshop-fields.component.mjs +0 -241
- package/esm2020/photoshop/photoshop-previews.component.mjs +0 -68
- package/esm2020/photoshop/photoshop.component.mjs +0 -258
- package/esm2020/photoshop/public_api.mjs +0 -5
- 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 -105
- 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 -243
- package/esm2020/sketch/sketch-preset-colors.component.mjs +0 -98
- package/esm2020/sketch/sketch.component.mjs +0 -283
- 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 -80
- package/esm2020/slider/slider-swatches.component.mjs +0 -135
- package/esm2020/slider/slider.component.mjs +0 -116
- 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 -123
- package/esm2020/swatches/swatches-group.component.mjs +0 -64
- package/esm2020/swatches/swatches.component.mjs +0 -258
- package/esm2020/twitter/ngx-color-twitter.mjs +0 -5
- package/esm2020/twitter/public_api.mjs +0 -2
- package/esm2020/twitter/twitter.component.mjs +0 -255
- package/fesm2015/ngx-color-alpha.mjs +0 -123
- package/fesm2015/ngx-color-alpha.mjs.map +0 -1
- package/fesm2015/ngx-color-block.mjs +0 -275
- package/fesm2015/ngx-color-block.mjs.map +0 -1
- package/fesm2015/ngx-color-chrome.mjs +0 -606
- package/fesm2015/ngx-color-chrome.mjs.map +0 -1
- package/fesm2015/ngx-color-circle.mjs +0 -237
- package/fesm2015/ngx-color-circle.mjs.map +0 -1
- package/fesm2015/ngx-color-compact.mjs +0 -451
- package/fesm2015/ngx-color-compact.mjs.map +0 -1
- package/fesm2015/ngx-color-github.mjs +0 -250
- package/fesm2015/ngx-color-github.mjs.map +0 -1
- package/fesm2015/ngx-color-hue.mjs +0 -120
- package/fesm2015/ngx-color-hue.mjs.map +0 -1
- package/fesm2015/ngx-color-material.mjs +0 -218
- package/fesm2015/ngx-color-material.mjs.map +0 -1
- package/fesm2015/ngx-color-photoshop.mjs +0 -626
- package/fesm2015/ngx-color-photoshop.mjs.map +0 -1
- package/fesm2015/ngx-color-shade.mjs +0 -112
- package/fesm2015/ngx-color-shade.mjs.map +0 -1
- package/fesm2015/ngx-color-sketch.mjs +0 -620
- package/fesm2015/ngx-color-sketch.mjs.map +0 -1
- package/fesm2015/ngx-color-slider.mjs +0 -331
- package/fesm2015/ngx-color-slider.mjs.map +0 -1
- package/fesm2015/ngx-color-swatches.mjs +0 -441
- package/fesm2015/ngx-color-swatches.mjs.map +0 -1
- package/fesm2015/ngx-color-twitter.mjs +0 -262
- package/fesm2015/ngx-color-twitter.mjs.map +0 -1
- package/fesm2020/ngx-color-alpha.mjs +0 -123
- package/fesm2020/ngx-color-alpha.mjs.map +0 -1
- package/fesm2020/ngx-color-block.mjs +0 -275
- package/fesm2020/ngx-color-block.mjs.map +0 -1
- package/fesm2020/ngx-color-chrome.mjs +0 -606
- package/fesm2020/ngx-color-chrome.mjs.map +0 -1
- package/fesm2020/ngx-color-circle.mjs +0 -237
- package/fesm2020/ngx-color-circle.mjs.map +0 -1
- package/fesm2020/ngx-color-compact.mjs +0 -451
- package/fesm2020/ngx-color-compact.mjs.map +0 -1
- package/fesm2020/ngx-color-github.mjs +0 -250
- package/fesm2020/ngx-color-github.mjs.map +0 -1
- package/fesm2020/ngx-color-hue.mjs +0 -120
- package/fesm2020/ngx-color-hue.mjs.map +0 -1
- package/fesm2020/ngx-color-material.mjs +0 -218
- package/fesm2020/ngx-color-material.mjs.map +0 -1
- package/fesm2020/ngx-color-photoshop.mjs +0 -626
- package/fesm2020/ngx-color-photoshop.mjs.map +0 -1
- package/fesm2020/ngx-color-shade.mjs +0 -112
- package/fesm2020/ngx-color-shade.mjs.map +0 -1
- package/fesm2020/ngx-color-sketch.mjs +0 -620
- package/fesm2020/ngx-color-sketch.mjs.map +0 -1
- package/fesm2020/ngx-color-slider.mjs +0 -331
- package/fesm2020/ngx-color-slider.mjs.map +0 -1
- package/fesm2020/ngx-color-swatches.mjs +0 -441
- package/fesm2020/ngx-color-swatches.mjs.map +0 -1
- package/fesm2020/ngx-color-twitter.mjs +0 -262
- package/fesm2020/ngx-color-twitter.mjs.map +0 -1
- package/github/github-swatch.component.d.ts +0 -19
- package/github/github.component.d.ts +0 -28
- package/github/ngx-color-github.d.ts +0 -5
- package/github/package.json +0 -16
- package/github/public_api.d.ts +0 -2
- package/hue/hue-picker.component.d.ts +0 -29
- package/hue/ngx-color-hue.d.ts +0 -5
- package/hue/package.json +0 -15
- package/hue/public_api.d.ts +0 -1
- package/material/material.component.d.ts +0 -39
- package/material/ngx-color-material.d.ts +0 -5
- package/material/package.json +0 -15
- package/material/public_api.d.ts +0 -1
- package/photoshop/ngx-color-photoshop.d.ts +0 -5
- package/photoshop/package.json +0 -15
- package/photoshop/photoshop-button.component.d.ts +0 -9
- package/photoshop/photoshop-fields.component.d.ts +0 -22
- package/photoshop/photoshop-previews.component.d.ts +0 -11
- package/photoshop/photoshop.component.d.ts +0 -33
- package/photoshop/public_api.d.ts +0 -4
- package/shade/ngx-color-shade.d.ts +0 -5
- package/shade/package.json +0 -17
- package/shade/public_api.d.ts +0 -1
- package/shade/shade-picker.component.d.ts +0 -27
- package/sketch/ngx-color-sketch.d.ts +0 -5
- package/sketch/package.json +0 -15
- package/sketch/public_api.d.ts +0 -3
- package/sketch/sketch-fields.component.d.ts +0 -23
- package/sketch/sketch-preset-colors.component.d.ts +0 -24
- package/sketch/sketch.component.d.ts +0 -32
- package/slider/ngx-color-slider.d.ts +0 -5
- package/slider/package.json +0 -15
- package/slider/public_api.d.ts +0 -3
- package/slider/slider-swatch.component.d.ts +0 -16
- package/slider/slider-swatches.component.d.ts +0 -15
- package/slider/slider.component.d.ts +0 -22
- package/swatches/ngx-color-swatches.d.ts +0 -5
- package/swatches/package.json +0 -18
- package/swatches/public_api.d.ts +0 -3
- package/swatches/swatches-color.component.d.ts +0 -18
- package/swatches/swatches-group.component.d.ts +0 -10
- package/swatches/swatches.component.d.ts +0 -29
- package/twitter/ngx-color-twitter.d.ts +0 -5
- package/twitter/package.json +0 -15
- package/twitter/public_api.d.ts +0 -1
- package/twitter/twitter.component.d.ts +0 -31
@@ -1,262 +0,0 @@
|
|
1
|
-
import * as i2 from '@angular/common';
|
2
|
-
import { CommonModule } from '@angular/common';
|
3
|
-
import * as i0 from '@angular/core';
|
4
|
-
import { forwardRef, Component, ChangeDetectionStrategy, Input, NgModule } from '@angular/core';
|
5
|
-
import * as i1 from 'ngx-color';
|
6
|
-
import { ColorWrap, isValidHex, SwatchModule, EditableInputModule } from 'ngx-color';
|
7
|
-
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
8
|
-
|
9
|
-
class TwitterComponent extends ColorWrap {
|
10
|
-
constructor() {
|
11
|
-
super();
|
12
|
-
/** Pixel value for picker width */
|
13
|
-
this.width = 276;
|
14
|
-
/** Color squares to display */
|
15
|
-
this.colors = [
|
16
|
-
'#FF6900',
|
17
|
-
'#FCB900',
|
18
|
-
'#7BDCB5',
|
19
|
-
'#00D084',
|
20
|
-
'#8ED1FC',
|
21
|
-
'#0693E3',
|
22
|
-
'#ABB8C3',
|
23
|
-
'#EB144C',
|
24
|
-
'#F78DA7',
|
25
|
-
'#9900EF',
|
26
|
-
];
|
27
|
-
this.triangle = 'top-left';
|
28
|
-
this.swatchStyle = {
|
29
|
-
width: '30px',
|
30
|
-
height: '30px',
|
31
|
-
borderRadius: '4px',
|
32
|
-
fontSize: '0',
|
33
|
-
};
|
34
|
-
this.input = {
|
35
|
-
borderRadius: '4px',
|
36
|
-
borderBottomLeftRadius: '0',
|
37
|
-
borderTopLeftRadius: '0',
|
38
|
-
border: '1px solid #e6ecf0',
|
39
|
-
boxSizing: 'border-box',
|
40
|
-
display: 'inline',
|
41
|
-
fontSize: '14px',
|
42
|
-
height: '30px',
|
43
|
-
padding: '0',
|
44
|
-
paddingLeft: '6px',
|
45
|
-
width: '100%',
|
46
|
-
color: '#657786',
|
47
|
-
};
|
48
|
-
this.disableAlpha = true;
|
49
|
-
}
|
50
|
-
focus(color) {
|
51
|
-
return { boxShadow: `0 0 4px ${color}` };
|
52
|
-
}
|
53
|
-
handleBlockChange({ hex, $event }) {
|
54
|
-
if (isValidHex(hex)) {
|
55
|
-
// this.hex = hex;
|
56
|
-
this.handleChange({ hex, source: 'hex' }, $event);
|
57
|
-
}
|
58
|
-
}
|
59
|
-
handleValueChange({ data, $event }) {
|
60
|
-
this.handleBlockChange({ hex: data, $event });
|
61
|
-
}
|
62
|
-
}
|
63
|
-
TwitterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: TwitterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
64
|
-
TwitterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0", type: TwitterComponent, selector: "color-twitter", inputs: { width: "width", colors: "colors", triangle: "triangle" }, providers: [
|
65
|
-
{
|
66
|
-
provide: NG_VALUE_ACCESSOR,
|
67
|
-
useExisting: forwardRef(() => TwitterComponent),
|
68
|
-
multi: true,
|
69
|
-
},
|
70
|
-
{
|
71
|
-
provide: ColorWrap,
|
72
|
-
useExisting: forwardRef(() => TwitterComponent),
|
73
|
-
},
|
74
|
-
], usesInheritance: true, ngImport: i0, template: `
|
75
|
-
<div class="twitter-picker {{ triangle }}-triangle {{ className }}" [style.width.px]="width">
|
76
|
-
<div class="triangleShadow"></div>
|
77
|
-
<div class="triangle"></div>
|
78
|
-
<div class="twitter-body">
|
79
|
-
<div class="twitter-swatch" *ngFor="let color of colors">
|
80
|
-
<color-swatch
|
81
|
-
[color]="color"
|
82
|
-
[style]="swatchStyle"
|
83
|
-
[focusStyle]="focus(color)"
|
84
|
-
(onClick)="handleBlockChange($event)"
|
85
|
-
(onHover)="onSwatchHover.emit($event)"
|
86
|
-
></color-swatch>
|
87
|
-
</div>
|
88
|
-
<div class="twitter-hash">
|
89
|
-
<div>#</div>
|
90
|
-
</div>
|
91
|
-
<div class="twitter-input">
|
92
|
-
<color-editable-input
|
93
|
-
[style]="{ input: input }"
|
94
|
-
[value]="hex.replace('#', '')"
|
95
|
-
(onChange)="handleValueChange($event)"
|
96
|
-
></color-editable-input>
|
97
|
-
</div>
|
98
|
-
</div>
|
99
|
-
</div>
|
100
|
-
`, isInline: true, styles: [".twitter-picker{background:rgb(255,255,255);border:0px solid rgba(0,0,0,.25);box-shadow:#00000040 0 1px 4px;border-radius:4px;position:relative;box-sizing:border-box}.triangleShadow{width:0px;height:0px;border-style:solid;border-width:0px 9px 10px;border-color:transparent transparent rgba(0,0,0,.1);position:absolute}.triangle{width:0px;height:0px;border-style:solid;border-width:0px 9px 10px;border-color:transparent transparent rgb(255,255,255);position:absolute}.hide-triangle>.triangle{display:none}.hide-triangle>.triangleShadow{display:none}.top-left-triangle>.triangle{top:-10px;left:12px}.top-left-triangle>.triangleShadow{top:-11px;left:12px}.top-right-triangle>.triangle{top:-10px;right:12px}.top-right-triangle>.triangleShadow{top:-11px;right:12px}.twitter-body{padding:15px 9px 9px 15px}.twitter-swatch{width:30px;height:30px;display:inline-block;margin:0 6px 0 0}.twitter-hash{background:rgb(240,240,240);height:30px;width:30px;border-radius:4px 0 0 4px;color:#98a1a4;margin-left:-3px;display:inline-block}.twitter-hash>div{position:absolute;align-items:center;justify-content:center;height:30px;width:30px;display:flex}.twitter-input{display:inline-block;margin-top:-6px;font-size:10px;height:27px;padding:0;position:relative;top:6px;vertical-align:top;width:108px;margin-left:-4px}\n"], components: [{ type: i1.SwatchComponent, selector: "color-swatch", inputs: ["color", "style", "focusStyle", "focus"], outputs: ["onClick", "onHover"] }, { type: i1.EditableInputComponent, selector: "color-editable-input", inputs: ["style", "label", "value", "arrowOffset", "dragLabel", "dragMax", "placeholder"], outputs: ["onChange"] }], directives: [{ type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
101
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: TwitterComponent, decorators: [{
|
102
|
-
type: Component,
|
103
|
-
args: [{
|
104
|
-
selector: 'color-twitter',
|
105
|
-
template: `
|
106
|
-
<div class="twitter-picker {{ triangle }}-triangle {{ className }}" [style.width.px]="width">
|
107
|
-
<div class="triangleShadow"></div>
|
108
|
-
<div class="triangle"></div>
|
109
|
-
<div class="twitter-body">
|
110
|
-
<div class="twitter-swatch" *ngFor="let color of colors">
|
111
|
-
<color-swatch
|
112
|
-
[color]="color"
|
113
|
-
[style]="swatchStyle"
|
114
|
-
[focusStyle]="focus(color)"
|
115
|
-
(onClick)="handleBlockChange($event)"
|
116
|
-
(onHover)="onSwatchHover.emit($event)"
|
117
|
-
></color-swatch>
|
118
|
-
</div>
|
119
|
-
<div class="twitter-hash">
|
120
|
-
<div>#</div>
|
121
|
-
</div>
|
122
|
-
<div class="twitter-input">
|
123
|
-
<color-editable-input
|
124
|
-
[style]="{ input: input }"
|
125
|
-
[value]="hex.replace('#', '')"
|
126
|
-
(onChange)="handleValueChange($event)"
|
127
|
-
></color-editable-input>
|
128
|
-
</div>
|
129
|
-
</div>
|
130
|
-
</div>
|
131
|
-
`,
|
132
|
-
styles: [
|
133
|
-
`
|
134
|
-
.twitter-picker {
|
135
|
-
background: rgb(255, 255, 255);
|
136
|
-
border: 0px solid rgba(0, 0, 0, 0.25);
|
137
|
-
box-shadow: rgba(0, 0, 0, 0.25) 0px 1px 4px;
|
138
|
-
border-radius: 4px;
|
139
|
-
position: relative;
|
140
|
-
box-sizing: border-box;
|
141
|
-
}
|
142
|
-
.triangleShadow {
|
143
|
-
width: 0px;
|
144
|
-
height: 0px;
|
145
|
-
border-style: solid;
|
146
|
-
border-width: 0px 9px 10px;
|
147
|
-
border-color: transparent transparent rgba(0, 0, 0, 0.1);
|
148
|
-
position: absolute;
|
149
|
-
}
|
150
|
-
.triangle {
|
151
|
-
width: 0px;
|
152
|
-
height: 0px;
|
153
|
-
border-style: solid;
|
154
|
-
border-width: 0px 9px 10px;
|
155
|
-
border-color: transparent transparent rgb(255, 255, 255);
|
156
|
-
position: absolute;
|
157
|
-
}
|
158
|
-
.hide-triangle > .triangle {
|
159
|
-
display: none;
|
160
|
-
}
|
161
|
-
.hide-triangle > .triangleShadow {
|
162
|
-
display: none;
|
163
|
-
}
|
164
|
-
.top-left-triangle > .triangle {
|
165
|
-
top: -10px;
|
166
|
-
left: 12px;
|
167
|
-
}
|
168
|
-
.top-left-triangle > .triangleShadow {
|
169
|
-
top: -11px;
|
170
|
-
left: 12px;
|
171
|
-
}
|
172
|
-
.top-right-triangle > .triangle {
|
173
|
-
top: -10px;
|
174
|
-
right: 12px;
|
175
|
-
}
|
176
|
-
.top-right-triangle > .triangleShadow {
|
177
|
-
top: -11px;
|
178
|
-
right: 12px;
|
179
|
-
}
|
180
|
-
.twitter-body {
|
181
|
-
padding: 15px 9px 9px 15px;
|
182
|
-
}
|
183
|
-
.twitter-swatch {
|
184
|
-
width: 30px;
|
185
|
-
height: 30px;
|
186
|
-
display: inline-block;
|
187
|
-
margin: 0 6px 0 0;
|
188
|
-
}
|
189
|
-
.twitter-hash {
|
190
|
-
background: rgb(240, 240, 240);
|
191
|
-
height: 30px;
|
192
|
-
width: 30px;
|
193
|
-
border-radius: 4px 0px 0px 4px;
|
194
|
-
color: rgb(152, 161, 164);
|
195
|
-
margin-left: -3px;
|
196
|
-
display: inline-block;
|
197
|
-
|
198
|
-
}
|
199
|
-
.twitter-hash > div {
|
200
|
-
position: absolute;
|
201
|
-
align-items: center;
|
202
|
-
justify-content: center;
|
203
|
-
height: 30px;
|
204
|
-
width: 30px;
|
205
|
-
display: flex;
|
206
|
-
}
|
207
|
-
.twitter-input {
|
208
|
-
position: relative;
|
209
|
-
display: inline-block;
|
210
|
-
margin-top: -6px;
|
211
|
-
font-size: 10px;
|
212
|
-
height: 27px;
|
213
|
-
padding: 0;
|
214
|
-
position: relative;
|
215
|
-
top: 6px;
|
216
|
-
vertical-align: top;
|
217
|
-
width: 108px;
|
218
|
-
margin-left: -4px;
|
219
|
-
}
|
220
|
-
`,
|
221
|
-
],
|
222
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
223
|
-
preserveWhitespaces: false,
|
224
|
-
providers: [
|
225
|
-
{
|
226
|
-
provide: NG_VALUE_ACCESSOR,
|
227
|
-
useExisting: forwardRef(() => TwitterComponent),
|
228
|
-
multi: true,
|
229
|
-
},
|
230
|
-
{
|
231
|
-
provide: ColorWrap,
|
232
|
-
useExisting: forwardRef(() => TwitterComponent),
|
233
|
-
},
|
234
|
-
]
|
235
|
-
}]
|
236
|
-
}], ctorParameters: function () { return []; }, propDecorators: { width: [{
|
237
|
-
type: Input
|
238
|
-
}], colors: [{
|
239
|
-
type: Input
|
240
|
-
}], triangle: [{
|
241
|
-
type: Input
|
242
|
-
}] } });
|
243
|
-
class ColorTwitterModule {
|
244
|
-
}
|
245
|
-
ColorTwitterModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: ColorTwitterModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
246
|
-
ColorTwitterModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: ColorTwitterModule, declarations: [TwitterComponent], imports: [CommonModule, SwatchModule, EditableInputModule], exports: [TwitterComponent] });
|
247
|
-
ColorTwitterModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: ColorTwitterModule, imports: [[CommonModule, SwatchModule, EditableInputModule]] });
|
248
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: ColorTwitterModule, decorators: [{
|
249
|
-
type: NgModule,
|
250
|
-
args: [{
|
251
|
-
declarations: [TwitterComponent],
|
252
|
-
exports: [TwitterComponent],
|
253
|
-
imports: [CommonModule, SwatchModule, EditableInputModule],
|
254
|
-
}]
|
255
|
-
}] });
|
256
|
-
|
257
|
-
/**
|
258
|
-
* Generated bundle index. Do not edit.
|
259
|
-
*/
|
260
|
-
|
261
|
-
export { ColorTwitterModule, TwitterComponent };
|
262
|
-
//# sourceMappingURL=ngx-color-twitter.mjs.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"ngx-color-twitter.mjs","sources":["../../src/lib/twitter/twitter.component.ts","../../src/lib/twitter/ngx-color-twitter.ts"],"sourcesContent":["import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, forwardRef, Input, NgModule } from '@angular/core';\n\nimport { ColorWrap, EditableInputModule, isValidHex, SwatchModule } from 'ngx-color';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\n\n@Component({\n selector: 'color-twitter',\n template: `\n <div class=\"twitter-picker {{ triangle }}-triangle {{ className }}\" [style.width.px]=\"width\">\n <div class=\"triangleShadow\"></div>\n <div class=\"triangle\"></div>\n <div class=\"twitter-body\">\n <div class=\"twitter-swatch\" *ngFor=\"let color of colors\">\n <color-swatch\n [color]=\"color\"\n [style]=\"swatchStyle\"\n [focusStyle]=\"focus(color)\"\n (onClick)=\"handleBlockChange($event)\"\n (onHover)=\"onSwatchHover.emit($event)\"\n ></color-swatch>\n </div>\n <div class=\"twitter-hash\">\n <div>#</div>\n </div>\n <div class=\"twitter-input\">\n <color-editable-input\n [style]=\"{ input: input }\"\n [value]=\"hex.replace('#', '')\"\n (onChange)=\"handleValueChange($event)\"\n ></color-editable-input>\n </div>\n </div>\n </div>\n `,\n styles: [\n `\n .twitter-picker {\n background: rgb(255, 255, 255);\n border: 0px solid rgba(0, 0, 0, 0.25);\n box-shadow: rgba(0, 0, 0, 0.25) 0px 1px 4px;\n border-radius: 4px;\n position: relative;\n box-sizing: border-box;\n }\n .triangleShadow {\n width: 0px;\n height: 0px;\n border-style: solid;\n border-width: 0px 9px 10px;\n border-color: transparent transparent rgba(0, 0, 0, 0.1);\n position: absolute;\n }\n .triangle {\n width: 0px;\n height: 0px;\n border-style: solid;\n border-width: 0px 9px 10px;\n border-color: transparent transparent rgb(255, 255, 255);\n position: absolute;\n }\n .hide-triangle > .triangle {\n display: none;\n }\n .hide-triangle > .triangleShadow {\n display: none;\n }\n .top-left-triangle > .triangle {\n top: -10px;\n left: 12px;\n }\n .top-left-triangle > .triangleShadow {\n top: -11px;\n left: 12px;\n }\n .top-right-triangle > .triangle {\n top: -10px;\n right: 12px;\n }\n .top-right-triangle > .triangleShadow {\n top: -11px;\n right: 12px;\n }\n .twitter-body {\n padding: 15px 9px 9px 15px;\n }\n .twitter-swatch {\n width: 30px;\n height: 30px;\n display: inline-block;\n margin: 0 6px 0 0;\n }\n .twitter-hash {\n background: rgb(240, 240, 240);\n height: 30px;\n width: 30px;\n border-radius: 4px 0px 0px 4px;\n color: rgb(152, 161, 164);\n margin-left: -3px;\n display: inline-block;\n\n }\n .twitter-hash > div {\n position: absolute;\n align-items: center;\n justify-content: center;\n height: 30px;\n width: 30px;\n display: flex;\n }\n .twitter-input {\n position: relative;\n display: inline-block;\n margin-top: -6px;\n font-size: 10px;\n height: 27px;\n padding: 0;\n position: relative;\n top: 6px;\n vertical-align: top;\n width: 108px;\n margin-left: -4px;\n }\n `,\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n preserveWhitespaces: false,\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => TwitterComponent),\n multi: true,\n },\n {\n provide: ColorWrap,\n useExisting: forwardRef(() => TwitterComponent),\n },\n ]\n})\nexport class TwitterComponent extends ColorWrap {\n /** Pixel value for picker width */\n @Input() width: string | number = 276;\n /** Color squares to display */\n @Input() colors = [\n '#FF6900',\n '#FCB900',\n '#7BDCB5',\n '#00D084',\n '#8ED1FC',\n '#0693E3',\n '#ABB8C3',\n '#EB144C',\n '#F78DA7',\n '#9900EF',\n ];\n @Input() triangle: 'hide' | 'top-left' | 'top-right' | 'bottom-right' = 'top-left';\n\n swatchStyle: {[key: string]: string} = {\n width: '30px',\n height: '30px',\n borderRadius: '4px',\n fontSize: '0',\n };\n input: {[key: string]: string} = {\n borderRadius: '4px',\n borderBottomLeftRadius: '0',\n borderTopLeftRadius: '0',\n border: '1px solid #e6ecf0',\n boxSizing: 'border-box',\n display: 'inline',\n fontSize: '14px',\n height: '30px',\n padding: '0',\n paddingLeft: '6px',\n width: '100%',\n color: '#657786',\n };\n disableAlpha = true;\n\n constructor() {\n super();\n }\n\n focus(color: string) {\n return { boxShadow: `0 0 4px ${color}` };\n }\n\n handleBlockChange({ hex, $event }: any) {\n if (isValidHex(hex)) {\n // this.hex = hex;\n this.handleChange({ hex, source: 'hex' }, $event);\n }\n }\n\n handleValueChange({ data, $event }: any) {\n this.handleBlockChange({ hex: data, $event });\n }\n}\n\n@NgModule({\n declarations: [TwitterComponent],\n exports: [TwitterComponent],\n imports: [CommonModule, SwatchModule, EditableInputModule],\n})\nexport class ColorTwitterModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":"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"}
|
@@ -1,19 +0,0 @@
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
2
|
-
import * as i0 from "@angular/core";
|
3
|
-
export declare class GithubSwatchComponent {
|
4
|
-
color: string;
|
5
|
-
onClick: EventEmitter<any>;
|
6
|
-
onSwatchHover: EventEmitter<any>;
|
7
|
-
focusStyle: {
|
8
|
-
position: string;
|
9
|
-
'z-index': string;
|
10
|
-
outline: string;
|
11
|
-
'box-shadow': string;
|
12
|
-
};
|
13
|
-
handleClick({ hex, $event }: {
|
14
|
-
hex: any;
|
15
|
-
$event: any;
|
16
|
-
}): void;
|
17
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<GithubSwatchComponent, never>;
|
18
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<GithubSwatchComponent, "color-github-swatch", never, { "color": "color"; }, { "onClick": "onClick"; "onSwatchHover": "onSwatchHover"; }, never, never>;
|
19
|
-
}
|
@@ -1,28 +0,0 @@
|
|
1
|
-
import { ColorWrap } from 'ngx-color';
|
2
|
-
import * as i0 from "@angular/core";
|
3
|
-
import * as i1 from "./github-swatch.component";
|
4
|
-
import * as i2 from "@angular/common";
|
5
|
-
import * as i3 from "ngx-color";
|
6
|
-
export declare class GithubComponent extends ColorWrap {
|
7
|
-
/** Pixel value for picker width */
|
8
|
-
width: string | number;
|
9
|
-
/** Color squares to display */
|
10
|
-
colors: string[];
|
11
|
-
triangle: 'hide' | 'top-left' | 'top-right' | 'bottom-right';
|
12
|
-
constructor();
|
13
|
-
handleBlockChange({ hex, $event }: {
|
14
|
-
hex: string;
|
15
|
-
$event: Event;
|
16
|
-
}): void;
|
17
|
-
handleValueChange({ data, $event }: {
|
18
|
-
data: any;
|
19
|
-
$event: any;
|
20
|
-
}): void;
|
21
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<GithubComponent, never>;
|
22
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<GithubComponent, "color-github", never, { "width": "width"; "colors": "colors"; "triangle": "triangle"; }, {}, never, never>;
|
23
|
-
}
|
24
|
-
export declare class ColorGithubModule {
|
25
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ColorGithubModule, never>;
|
26
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ColorGithubModule, [typeof GithubComponent, typeof i1.GithubSwatchComponent], [typeof i2.CommonModule, typeof i3.SwatchModule], [typeof GithubComponent, typeof i1.GithubSwatchComponent]>;
|
27
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<ColorGithubModule>;
|
28
|
-
}
|
package/github/package.json
DELETED
@@ -1,16 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"name": "ngx-color/github",
|
3
|
-
"author": "scttcper",
|
4
|
-
"repository": {
|
5
|
-
"type": "git",
|
6
|
-
"url": "git+https://github.com/scttcper/ngx-color.git"
|
7
|
-
},
|
8
|
-
"license": "MIT",
|
9
|
-
"module": "../fesm2015/ngx-color-github.mjs",
|
10
|
-
"es2020": "../fesm2020/ngx-color-github.mjs",
|
11
|
-
"esm2020": "../esm2020/github/ngx-color-github.mjs",
|
12
|
-
"fesm2020": "../fesm2020/ngx-color-github.mjs",
|
13
|
-
"fesm2015": "../fesm2015/ngx-color-github.mjs",
|
14
|
-
"typings": "ngx-color-github.d.ts",
|
15
|
-
"sideEffects": false
|
16
|
-
}
|
package/github/public_api.d.ts
DELETED
@@ -1,29 +0,0 @@
|
|
1
|
-
import { OnChanges } from '@angular/core';
|
2
|
-
import { ColorWrap } from 'ngx-color';
|
3
|
-
import * as i0 from "@angular/core";
|
4
|
-
import * as i1 from "@angular/common";
|
5
|
-
import * as i2 from "ngx-color";
|
6
|
-
export declare class HuePickerComponent extends ColorWrap implements OnChanges {
|
7
|
-
/** Pixel value for picker width */
|
8
|
-
width: string | number;
|
9
|
-
/** Pixel value for picker height */
|
10
|
-
height: string | number;
|
11
|
-
radius: number;
|
12
|
-
direction: 'horizontal' | 'vertical';
|
13
|
-
pointer: {
|
14
|
-
[key: string]: string;
|
15
|
-
};
|
16
|
-
constructor();
|
17
|
-
ngOnChanges(): void;
|
18
|
-
handlePickerChange({ data, $event }: {
|
19
|
-
data: any;
|
20
|
-
$event: any;
|
21
|
-
}): void;
|
22
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<HuePickerComponent, never>;
|
23
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<HuePickerComponent, "color-hue-picker", never, { "width": "width"; "height": "height"; "radius": "radius"; "direction": "direction"; }, {}, never, never>;
|
24
|
-
}
|
25
|
-
export declare class ColorHueModule {
|
26
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ColorHueModule, never>;
|
27
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ColorHueModule, [typeof HuePickerComponent], [typeof i1.CommonModule, typeof i2.HueModule], [typeof HuePickerComponent]>;
|
28
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<ColorHueModule>;
|
29
|
-
}
|
package/hue/ngx-color-hue.d.ts
DELETED
package/hue/package.json
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"name": "ngx-color/hue",
|
3
|
-
"author": "scttcper",
|
4
|
-
"repository": {
|
5
|
-
"type": "git",
|
6
|
-
"url": "git+https://github.com/scttcper/ngx-color.git"
|
7
|
-
},
|
8
|
-
"module": "../fesm2015/ngx-color-hue.mjs",
|
9
|
-
"es2020": "../fesm2020/ngx-color-hue.mjs",
|
10
|
-
"esm2020": "../esm2020/hue/ngx-color-hue.mjs",
|
11
|
-
"fesm2020": "../fesm2020/ngx-color-hue.mjs",
|
12
|
-
"fesm2015": "../fesm2015/ngx-color-hue.mjs",
|
13
|
-
"typings": "ngx-color-hue.d.ts",
|
14
|
-
"sideEffects": false
|
15
|
-
}
|
package/hue/public_api.d.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
export { ColorHueModule, HuePickerComponent } from './hue-picker.component';
|
@@ -1,39 +0,0 @@
|
|
1
|
-
import { ColorWrap, zDepth } from 'ngx-color';
|
2
|
-
import * as i0 from "@angular/core";
|
3
|
-
import * as i1 from "@angular/common";
|
4
|
-
import * as i2 from "ngx-color";
|
5
|
-
export declare class MaterialComponent extends ColorWrap {
|
6
|
-
HEXinput: {
|
7
|
-
[key: string]: string;
|
8
|
-
};
|
9
|
-
HEXlabel: {
|
10
|
-
[key: string]: string;
|
11
|
-
};
|
12
|
-
RGBinput: {
|
13
|
-
[key: string]: string;
|
14
|
-
};
|
15
|
-
RGBlabel: {
|
16
|
-
[key: string]: string;
|
17
|
-
};
|
18
|
-
zDepth: zDepth;
|
19
|
-
radius: number;
|
20
|
-
background: string;
|
21
|
-
disableAlpha: boolean;
|
22
|
-
constructor();
|
23
|
-
handleValueChange({ data, $event }: {
|
24
|
-
data: any;
|
25
|
-
$event: any;
|
26
|
-
}): void;
|
27
|
-
handleInputChange({ data, $event }: {
|
28
|
-
data: any;
|
29
|
-
$event: any;
|
30
|
-
}): void;
|
31
|
-
afterValidChange(): void;
|
32
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MaterialComponent, never>;
|
33
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MaterialComponent, "color-material", never, { "zDepth": "zDepth"; "radius": "radius"; "background": "background"; }, {}, never, never>;
|
34
|
-
}
|
35
|
-
export declare class ColorMaterialModule {
|
36
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ColorMaterialModule, never>;
|
37
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ColorMaterialModule, [typeof MaterialComponent], [typeof i1.CommonModule, typeof i2.EditableInputModule, typeof i2.RaisedModule], [typeof MaterialComponent]>;
|
38
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<ColorMaterialModule>;
|
39
|
-
}
|
package/material/package.json
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"name": "ngx-color/material",
|
3
|
-
"author": "scttcper",
|
4
|
-
"repository": {
|
5
|
-
"type": "git",
|
6
|
-
"url": "git+https://github.com/scttcper/ngx-color.git"
|
7
|
-
},
|
8
|
-
"module": "../fesm2015/ngx-color-material.mjs",
|
9
|
-
"es2020": "../fesm2020/ngx-color-material.mjs",
|
10
|
-
"esm2020": "../esm2020/material/ngx-color-material.mjs",
|
11
|
-
"fesm2020": "../fesm2020/ngx-color-material.mjs",
|
12
|
-
"fesm2015": "../fesm2015/ngx-color-material.mjs",
|
13
|
-
"typings": "ngx-color-material.d.ts",
|
14
|
-
"sideEffects": false
|
15
|
-
}
|
package/material/public_api.d.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
export { ColorMaterialModule, MaterialComponent } from './material.component';
|
package/photoshop/package.json
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"name": "ngx-color/photoshop",
|
3
|
-
"author": "scttcper",
|
4
|
-
"repository": {
|
5
|
-
"type": "git",
|
6
|
-
"url": "git+https://github.com/scttcper/ngx-color.git"
|
7
|
-
},
|
8
|
-
"module": "../fesm2015/ngx-color-photoshop.mjs",
|
9
|
-
"es2020": "../fesm2020/ngx-color-photoshop.mjs",
|
10
|
-
"esm2020": "../esm2020/photoshop/ngx-color-photoshop.mjs",
|
11
|
-
"fesm2020": "../fesm2020/ngx-color-photoshop.mjs",
|
12
|
-
"fesm2015": "../fesm2015/ngx-color-photoshop.mjs",
|
13
|
-
"typings": "ngx-color-photoshop.d.ts",
|
14
|
-
"sideEffects": false
|
15
|
-
}
|
@@ -1,9 +0,0 @@
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
2
|
-
import * as i0 from "@angular/core";
|
3
|
-
export declare class PhotoshopButtonComponent {
|
4
|
-
label: string;
|
5
|
-
active: boolean;
|
6
|
-
onClick: EventEmitter<Event>;
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PhotoshopButtonComponent, never>;
|
8
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PhotoshopButtonComponent, "color-photoshop-button", never, { "label": "label"; "active": "active"; }, { "onClick": "onClick"; }, never, never>;
|
9
|
-
}
|
@@ -1,22 +0,0 @@
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
2
|
-
import { HSV, RGB } from 'ngx-color';
|
3
|
-
import * as i0 from "@angular/core";
|
4
|
-
export declare class PhotoshopFieldsComponent {
|
5
|
-
rgb: RGB;
|
6
|
-
hsv: HSV;
|
7
|
-
hex: string;
|
8
|
-
onChange: EventEmitter<any>;
|
9
|
-
RGBinput: Record<string, string>;
|
10
|
-
RGBwrap: Record<string, string>;
|
11
|
-
RGBlabel: Record<string, string>;
|
12
|
-
HEXinput: Record<string, string>;
|
13
|
-
HEXwrap: Record<string, string>;
|
14
|
-
HEXlabel: Record<string, string>;
|
15
|
-
round(v: any): number;
|
16
|
-
handleValueChange({ data, $event }: {
|
17
|
-
data: any;
|
18
|
-
$event: any;
|
19
|
-
}): void;
|
20
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PhotoshopFieldsComponent, never>;
|
21
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PhotoshopFieldsComponent, "color-photoshop-fields", never, { "rgb": "rgb"; "hsv": "hsv"; "hex": "hex"; }, { "onChange": "onChange"; }, never, never>;
|
22
|
-
}
|
@@ -1,11 +0,0 @@
|
|
1
|
-
import { OnChanges } from '@angular/core';
|
2
|
-
import { RGB } from 'ngx-color';
|
3
|
-
import * as i0 from "@angular/core";
|
4
|
-
export declare class PhotoshopPreviewsComponent implements OnChanges {
|
5
|
-
rgb: RGB;
|
6
|
-
currentColor: string;
|
7
|
-
backgroundNew: string;
|
8
|
-
ngOnChanges(): void;
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PhotoshopPreviewsComponent, never>;
|
10
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PhotoshopPreviewsComponent, "color-photoshop-previews", never, { "rgb": "rgb"; "currentColor": "currentColor"; }, {}, never, never>;
|
11
|
-
}
|
@@ -1,33 +0,0 @@
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
2
|
-
import { ColorWrap } from 'ngx-color';
|
3
|
-
import * as i0 from "@angular/core";
|
4
|
-
import * as i1 from "./photoshop-previews.component";
|
5
|
-
import * as i2 from "./photoshop-button.component";
|
6
|
-
import * as i3 from "./photoshop-fields.component";
|
7
|
-
import * as i4 from "@angular/common";
|
8
|
-
import * as i5 from "ngx-color";
|
9
|
-
export declare class PhotoshopComponent extends ColorWrap {
|
10
|
-
/** Title text */
|
11
|
-
header: string;
|
12
|
-
onAccept: EventEmitter<Event>;
|
13
|
-
onCancel: EventEmitter<Event>;
|
14
|
-
circle: {
|
15
|
-
width: string;
|
16
|
-
height: string;
|
17
|
-
borderRadius: string;
|
18
|
-
boxShadow: string;
|
19
|
-
transform: string;
|
20
|
-
};
|
21
|
-
constructor();
|
22
|
-
handleValueChange({ data, $event }: {
|
23
|
-
data: any;
|
24
|
-
$event: any;
|
25
|
-
}): void;
|
26
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PhotoshopComponent, never>;
|
27
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PhotoshopComponent, "color-photoshop", never, { "header": "header"; }, { "onAccept": "onAccept"; "onCancel": "onCancel"; }, never, never>;
|
28
|
-
}
|
29
|
-
export declare class ColorPhotoshopModule {
|
30
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ColorPhotoshopModule, never>;
|
31
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ColorPhotoshopModule, [typeof PhotoshopComponent, typeof i1.PhotoshopPreviewsComponent, typeof i2.PhotoshopButtonComponent, typeof i3.PhotoshopFieldsComponent], [typeof i4.CommonModule, typeof i5.EditableInputModule, typeof i5.HueModule, typeof i5.AlphaModule, typeof i5.SwatchModule, typeof i5.SaturationModule], [typeof PhotoshopComponent, typeof i1.PhotoshopPreviewsComponent, typeof i2.PhotoshopButtonComponent, typeof i3.PhotoshopFieldsComponent]>;
|
32
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<ColorPhotoshopModule>;
|
33
|
-
}
|
@@ -1,4 +0,0 @@
|
|
1
|
-
export { PhotoshopButtonComponent } from './photoshop-button.component';
|
2
|
-
export { PhotoshopFieldsComponent } from './photoshop-fields.component';
|
3
|
-
export { PhotoshopPreviewsComponent } from './photoshop-previews.component';
|
4
|
-
export { ColorPhotoshopModule, PhotoshopComponent } from './photoshop.component';
|
package/shade/package.json
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"$schema": "../../../../node_modules/ng-packagr/package.schema.json",
|
3
|
-
"name": "ngx-color/shade",
|
4
|
-
"author": "scttcper",
|
5
|
-
"repository": {
|
6
|
-
"type": "git",
|
7
|
-
"url": "git+https://github.com/scttcper/ngx-color.git"
|
8
|
-
},
|
9
|
-
"license": "MIT",
|
10
|
-
"module": "../fesm2015/ngx-color-shade.mjs",
|
11
|
-
"es2020": "../fesm2020/ngx-color-shade.mjs",
|
12
|
-
"esm2020": "../esm2020/shade/ngx-color-shade.mjs",
|
13
|
-
"fesm2020": "../fesm2020/ngx-color-shade.mjs",
|
14
|
-
"fesm2015": "../fesm2015/ngx-color-shade.mjs",
|
15
|
-
"typings": "ngx-color-shade.d.ts",
|
16
|
-
"sideEffects": false
|
17
|
-
}
|
package/shade/public_api.d.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
export { ColorShadeModule, ShadeSliderComponent } from './shade-picker.component';
|
@@ -1,27 +0,0 @@
|
|
1
|
-
import { OnChanges } from '@angular/core';
|
2
|
-
import { ColorWrap } from 'ngx-color';
|
3
|
-
import * as i0 from "@angular/core";
|
4
|
-
import * as i1 from "@angular/common";
|
5
|
-
import * as i2 from "ngx-color";
|
6
|
-
export declare class ShadeSliderComponent extends ColorWrap implements OnChanges {
|
7
|
-
/** Pixel value for picker width */
|
8
|
-
width: string | number;
|
9
|
-
/** Pixel value for picker height */
|
10
|
-
height: string | number;
|
11
|
-
pointer: {
|
12
|
-
[key: string]: string;
|
13
|
-
};
|
14
|
-
constructor();
|
15
|
-
ngOnChanges(): void;
|
16
|
-
handlePickerChange({ data, $event }: {
|
17
|
-
data: any;
|
18
|
-
$event: any;
|
19
|
-
}): void;
|
20
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ShadeSliderComponent, never>;
|
21
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ShadeSliderComponent, "color-shade-picker", never, { "width": "width"; "height": "height"; }, {}, never, never>;
|
22
|
-
}
|
23
|
-
export declare class ColorShadeModule {
|
24
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ColorShadeModule, never>;
|
25
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ColorShadeModule, [typeof ShadeSliderComponent], [typeof i1.CommonModule, typeof i2.ShadeModule], [typeof ShadeSliderComponent]>;
|
26
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<ColorShadeModule>;
|
27
|
-
}
|