ngx-color 9.0.0 → 10.1.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 +1 -0
- package/coordinates.directive.d.ts +1 -2
- package/fesm2022/ngx-color-alpha.mjs +15 -17
- package/fesm2022/ngx-color-alpha.mjs.map +1 -1
- package/fesm2022/ngx-color-block.mjs +87 -76
- package/fesm2022/ngx-color-block.mjs.map +1 -1
- package/fesm2022/ngx-color-chrome.mjs +186 -145
- package/fesm2022/ngx-color-chrome.mjs.map +1 -1
- package/fesm2022/ngx-color-circle.mjs +68 -51
- package/fesm2022/ngx-color-circle.mjs.map +1 -1
- package/fesm2022/ngx-color-compact.mjs +163 -145
- package/fesm2022/ngx-color-compact.mjs.map +1 -1
- package/fesm2022/ngx-color-github.mjs +36 -37
- package/fesm2022/ngx-color-github.mjs.map +1 -1
- package/fesm2022/ngx-color-hue.mjs +27 -25
- package/fesm2022/ngx-color-hue.mjs.map +1 -1
- package/fesm2022/ngx-color-material.mjs +77 -61
- package/fesm2022/ngx-color-material.mjs.map +1 -1
- package/fesm2022/ngx-color-photoshop.mjs +224 -214
- package/fesm2022/ngx-color-photoshop.mjs.map +1 -1
- package/fesm2022/ngx-color-shade.mjs +19 -13
- package/fesm2022/ngx-color-shade.mjs.map +1 -1
- package/fesm2022/ngx-color-sketch.mjs +232 -227
- package/fesm2022/ngx-color-sketch.mjs.map +1 -1
- package/fesm2022/ngx-color-slider.mjs +153 -145
- package/fesm2022/ngx-color-slider.mjs.map +1 -1
- package/fesm2022/ngx-color-swatches.mjs +118 -216
- package/fesm2022/ngx-color-swatches.mjs.map +1 -1
- package/fesm2022/ngx-color-twitter.mjs +61 -58
- package/fesm2022/ngx-color-twitter.mjs.map +1 -1
- package/fesm2022/ngx-color.mjs +231 -187
- package/fesm2022/ngx-color.mjs.map +1 -1
- package/package.json +4 -34
- package/esm2022/alpha/alpha-picker.component.mjs +0 -102
- package/esm2022/alpha/ngx-color-alpha.mjs +0 -5
- package/esm2022/alpha/public_api.mjs +0 -2
- package/esm2022/alpha.component.mjs +0 -146
- package/esm2022/block/block-swatches.component.mjs +0 -63
- package/esm2022/block/block.component.mjs +0 -160
- package/esm2022/block/ngx-color-block.mjs +0 -5
- package/esm2022/block/public_api.mjs +0 -3
- package/esm2022/checkboard.component.mjs +0 -53
- package/esm2022/chrome/chrome-fields.component.mjs +0 -317
- package/esm2022/chrome/chrome.component.mjs +0 -187
- package/esm2022/chrome/ngx-color-chrome.mjs +0 -5
- package/esm2022/chrome/public_api.mjs +0 -3
- package/esm2022/circle/circle-swatch.component.mjs +0 -69
- package/esm2022/circle/circle.component.mjs +0 -136
- package/esm2022/circle/ngx-color-circle.mjs +0 -5
- package/esm2022/circle/public_api.mjs +0 -3
- package/esm2022/color-wrap.component.mjs +0 -173
- package/esm2022/compact/compact-color.component.mjs +0 -71
- package/esm2022/compact/compact-fields.component.mjs +0 -165
- package/esm2022/compact/compact.component.mjs +0 -156
- package/esm2022/compact/ngx-color-compact.mjs +0 -5
- package/esm2022/compact/public_api.mjs +0 -4
- package/esm2022/coordinates.directive.mjs +0 -108
- package/esm2022/editable-input.component.mjs +0 -212
- package/esm2022/github/github-swatch.component.mjs +0 -53
- package/esm2022/github/github.component.mjs +0 -114
- package/esm2022/github/ngx-color-github.mjs +0 -5
- package/esm2022/github/public_api.mjs +0 -3
- package/esm2022/helpers/checkboard.mjs +0 -33
- package/esm2022/helpers/color.interfaces.mjs +0 -2
- package/esm2022/helpers/color.mjs +0 -60
- package/esm2022/hue/hue-picker.component.mjs +0 -102
- package/esm2022/hue/ngx-color-hue.mjs +0 -5
- package/esm2022/hue/public_api.mjs +0 -2
- package/esm2022/hue.component.mjs +0 -128
- package/esm2022/material/material.component.mjs +0 -188
- package/esm2022/material/ngx-color-material.mjs +0 -5
- package/esm2022/material/public_api.mjs +0 -2
- package/esm2022/ngx-color.mjs +0 -5
- package/esm2022/photoshop/ngx-color-photoshop.mjs +0 -5
- package/esm2022/photoshop/photoshop-button.component.mjs +0 -33
- package/esm2022/photoshop/photoshop-fields.component.mjs +0 -214
- package/esm2022/photoshop/photoshop-previews.component.mjs +0 -40
- package/esm2022/photoshop/photoshop.component.mjs +0 -187
- package/esm2022/photoshop/public_api.mjs +0 -5
- package/esm2022/public_api.mjs +0 -14
- package/esm2022/raised.component.mjs +0 -50
- package/esm2022/saturation.component.mjs +0 -100
- package/esm2022/shade/ngx-color-shade.mjs +0 -5
- package/esm2022/shade/public_api.mjs +0 -2
- package/esm2022/shade/shade-picker.component.mjs +0 -94
- package/esm2022/shade.component.mjs +0 -133
- package/esm2022/sketch/ngx-color-sketch.mjs +0 -5
- package/esm2022/sketch/public_api.mjs +0 -4
- package/esm2022/sketch/sketch-fields.component.mjs +0 -211
- package/esm2022/sketch/sketch-preset-colors.component.mjs +0 -68
- package/esm2022/sketch/sketch.component.mjs +0 -215
- package/esm2022/slider/ngx-color-slider.mjs +0 -5
- package/esm2022/slider/public_api.mjs +0 -4
- package/esm2022/slider/slider-swatch.component.mjs +0 -55
- package/esm2022/slider/slider-swatches.component.mjs +0 -119
- package/esm2022/slider/slider.component.mjs +0 -104
- package/esm2022/swatch.component.mjs +0 -112
- package/esm2022/swatches/ngx-color-swatches.mjs +0 -5
- package/esm2022/swatches/public_api.mjs +0 -4
- package/esm2022/swatches/swatches-color.component.mjs +0 -105
- package/esm2022/swatches/swatches-group.component.mjs +0 -50
- package/esm2022/swatches/swatches.component.mjs +0 -244
- package/esm2022/twitter/ngx-color-twitter.mjs +0 -5
- package/esm2022/twitter/public_api.mjs +0 -2
- package/esm2022/twitter/twitter.component.mjs +0 -161
@@ -9,24 +9,20 @@ class PhotoshopButtonComponent {
|
|
9
9
|
label = '';
|
10
10
|
active = false;
|
11
11
|
onClick = new EventEmitter();
|
12
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
13
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
14
|
-
<div class="photoshop-button"
|
15
|
-
(click)="onClick.emit($event)"
|
16
|
-
>
|
12
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: PhotoshopButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
13
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.3", type: PhotoshopButtonComponent, isStandalone: false, selector: "color-photoshop-button", inputs: { label: "label", active: "active" }, outputs: { onClick: "onClick" }, ngImport: i0, template: `
|
14
|
+
<div class="photoshop-button" [class.active]="active" (click)="onClick.emit($event)">
|
17
15
|
{{ label }}
|
18
16
|
</div>
|
19
|
-
`, isInline: true, styles: [".photoshop-button{background-image:linear-gradient(-180deg
|
17
|
+
`, isInline: true, styles: [".photoshop-button{background-image:linear-gradient(-180deg,#fff,#e6e6e6);border:1px solid rgb(135,135,135);border-radius:2px;height:22px;box-shadow:#eaeaea 0 1px;font-size:14px;color:#000;line-height:20px;text-align:center;margin-bottom:10px;cursor:pointer}.photoshop-button.active{box-shadow:0 0 0 1px #878787}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
20
18
|
}
|
21
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
19
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: PhotoshopButtonComponent, decorators: [{
|
22
20
|
type: Component,
|
23
21
|
args: [{ selector: 'color-photoshop-button', template: `
|
24
|
-
<div class="photoshop-button"
|
25
|
-
(click)="onClick.emit($event)"
|
26
|
-
>
|
22
|
+
<div class="photoshop-button" [class.active]="active" (click)="onClick.emit($event)">
|
27
23
|
{{ label }}
|
28
24
|
</div>
|
29
|
-
`, changeDetection: ChangeDetectionStrategy.OnPush, preserveWhitespaces: false, styles: [".photoshop-button{background-image:linear-gradient(-180deg
|
25
|
+
`, changeDetection: ChangeDetectionStrategy.OnPush, preserveWhitespaces: false, standalone: false, styles: [".photoshop-button{background-image:linear-gradient(-180deg,#fff,#e6e6e6);border:1px solid rgb(135,135,135);border-radius:2px;height:22px;box-shadow:#eaeaea 0 1px;font-size:14px;color:#000;line-height:20px;text-align:center;margin-bottom:10px;cursor:pointer}.photoshop-button.active{box-shadow:0 0 0 1px #878787}\n"] }]
|
30
26
|
}], propDecorators: { label: [{
|
31
27
|
type: Input
|
32
28
|
}], active: [{
|
@@ -124,116 +120,116 @@ class PhotoshopFieldsComponent {
|
|
124
120
|
});
|
125
121
|
}
|
126
122
|
}
|
127
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
128
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
123
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: PhotoshopFieldsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
124
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.3", type: PhotoshopFieldsComponent, isStandalone: false, selector: "color-photoshop-fields", inputs: { rgb: "rgb", hsv: "hsv", hex: "hex" }, outputs: { onChange: "onChange" }, ngImport: i0, template: `
|
125
|
+
<div class="photoshop-fields">
|
126
|
+
<color-editable-input
|
127
|
+
[value]="round(hsv.h)"
|
128
|
+
label="h"
|
129
|
+
(onChange)="handleValueChange($event)"
|
130
|
+
[style]="{ input: RGBinput, wrap: RGBwrap, label: RGBlabel }"
|
131
|
+
></color-editable-input>
|
132
|
+
<color-editable-input
|
133
|
+
[value]="round(hsv.s * 100)"
|
134
|
+
label="s"
|
135
|
+
(onChange)="handleValueChange($event)"
|
136
|
+
[style]="{ input: RGBinput, wrap: RGBwrap, label: RGBlabel }"
|
137
|
+
></color-editable-input>
|
138
|
+
<color-editable-input
|
139
|
+
[value]="round(hsv.v * 100)"
|
140
|
+
label="v"
|
141
|
+
(onChange)="handleValueChange($event)"
|
142
|
+
[style]="{ input: RGBinput, wrap: RGBwrap, label: RGBlabel }"
|
143
|
+
></color-editable-input>
|
144
|
+
<div class="photoshop-divider"></div>
|
145
|
+
<color-editable-input
|
146
|
+
[value]="rgb.r"
|
147
|
+
label="r"
|
148
|
+
(onChange)="handleValueChange($event)"
|
149
|
+
[style]="{ input: RGBinput, wrap: RGBwrap, label: RGBlabel }"
|
150
|
+
></color-editable-input>
|
151
|
+
<color-editable-input
|
152
|
+
[value]="rgb.g"
|
153
|
+
label="g"
|
154
|
+
(onChange)="handleValueChange($event)"
|
155
|
+
[style]="{ input: RGBinput, wrap: RGBwrap, label: RGBlabel }"
|
156
|
+
></color-editable-input>
|
157
|
+
<color-editable-input
|
158
|
+
[value]="rgb.b"
|
159
|
+
label="b"
|
160
|
+
(onChange)="handleValueChange($event)"
|
161
|
+
[style]="{ input: RGBinput, wrap: RGBwrap, label: RGBlabel }"
|
162
|
+
></color-editable-input>
|
163
|
+
<div class="photoshop-divider"></div>
|
164
|
+
<color-editable-input
|
165
|
+
[value]="hex.replace('#', '')"
|
166
|
+
label="#"
|
167
|
+
(onChange)="handleValueChange($event)"
|
168
|
+
[style]="{ input: HEXinput, wrap: HEXwrap, label: HEXlabel }"
|
169
|
+
></color-editable-input>
|
170
|
+
<div class="photoshop-field-symbols">
|
171
|
+
<div class="photoshop-symbol">°</div>
|
172
|
+
<div class="photoshop-symbol">%</div>
|
173
|
+
<div class="photoshop-symbol">%</div>
|
174
|
+
</div>
|
178
175
|
</div>
|
179
|
-
</div>
|
180
176
|
`, isInline: true, styles: [".photoshop-fields{padding-top:5px;padding-bottom:9px;width:85px;position:relative}.photoshop-field-symbols{position:absolute;top:5px;right:-7px;font-size:13px}.photoshop-symbol{height:24px;line-height:24px;padding-bottom:7px}.photoshop-divider{height:5px}\n"], dependencies: [{ kind: "component", type: i1.EditableInputComponent, selector: "color-editable-input", inputs: ["style", "label", "value", "arrowOffset", "dragLabel", "dragMax", "placeholder"], outputs: ["onChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
181
177
|
}
|
182
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
178
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: PhotoshopFieldsComponent, decorators: [{
|
183
179
|
type: Component,
|
184
180
|
args: [{ selector: 'color-photoshop-fields', template: `
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
181
|
+
<div class="photoshop-fields">
|
182
|
+
<color-editable-input
|
183
|
+
[value]="round(hsv.h)"
|
184
|
+
label="h"
|
185
|
+
(onChange)="handleValueChange($event)"
|
186
|
+
[style]="{ input: RGBinput, wrap: RGBwrap, label: RGBlabel }"
|
187
|
+
></color-editable-input>
|
188
|
+
<color-editable-input
|
189
|
+
[value]="round(hsv.s * 100)"
|
190
|
+
label="s"
|
191
|
+
(onChange)="handleValueChange($event)"
|
192
|
+
[style]="{ input: RGBinput, wrap: RGBwrap, label: RGBlabel }"
|
193
|
+
></color-editable-input>
|
194
|
+
<color-editable-input
|
195
|
+
[value]="round(hsv.v * 100)"
|
196
|
+
label="v"
|
197
|
+
(onChange)="handleValueChange($event)"
|
198
|
+
[style]="{ input: RGBinput, wrap: RGBwrap, label: RGBlabel }"
|
199
|
+
></color-editable-input>
|
200
|
+
<div class="photoshop-divider"></div>
|
201
|
+
<color-editable-input
|
202
|
+
[value]="rgb.r"
|
203
|
+
label="r"
|
204
|
+
(onChange)="handleValueChange($event)"
|
205
|
+
[style]="{ input: RGBinput, wrap: RGBwrap, label: RGBlabel }"
|
206
|
+
></color-editable-input>
|
207
|
+
<color-editable-input
|
208
|
+
[value]="rgb.g"
|
209
|
+
label="g"
|
210
|
+
(onChange)="handleValueChange($event)"
|
211
|
+
[style]="{ input: RGBinput, wrap: RGBwrap, label: RGBlabel }"
|
212
|
+
></color-editable-input>
|
213
|
+
<color-editable-input
|
214
|
+
[value]="rgb.b"
|
215
|
+
label="b"
|
216
|
+
(onChange)="handleValueChange($event)"
|
217
|
+
[style]="{ input: RGBinput, wrap: RGBwrap, label: RGBlabel }"
|
218
|
+
></color-editable-input>
|
219
|
+
<div class="photoshop-divider"></div>
|
220
|
+
<color-editable-input
|
221
|
+
[value]="hex.replace('#', '')"
|
222
|
+
label="#"
|
223
|
+
(onChange)="handleValueChange($event)"
|
224
|
+
[style]="{ input: HEXinput, wrap: HEXwrap, label: HEXlabel }"
|
225
|
+
></color-editable-input>
|
226
|
+
<div class="photoshop-field-symbols">
|
227
|
+
<div class="photoshop-symbol">°</div>
|
228
|
+
<div class="photoshop-symbol">%</div>
|
229
|
+
<div class="photoshop-symbol">%</div>
|
230
|
+
</div>
|
234
231
|
</div>
|
235
|
-
|
236
|
-
`, changeDetection: ChangeDetectionStrategy.OnPush, preserveWhitespaces: false, styles: [".photoshop-fields{padding-top:5px;padding-bottom:9px;width:85px;position:relative}.photoshop-field-symbols{position:absolute;top:5px;right:-7px;font-size:13px}.photoshop-symbol{height:24px;line-height:24px;padding-bottom:7px}.photoshop-divider{height:5px}\n"] }]
|
232
|
+
`, changeDetection: ChangeDetectionStrategy.OnPush, preserveWhitespaces: false, standalone: false, styles: [".photoshop-fields{padding-top:5px;padding-bottom:9px;width:85px;position:relative}.photoshop-field-symbols{position:absolute;top:5px;right:-7px;font-size:13px}.photoshop-symbol{height:24px;line-height:24px;padding-bottom:7px}.photoshop-divider{height:5px}\n"] }]
|
237
233
|
}], propDecorators: { rgb: [{
|
238
234
|
type: Input
|
239
235
|
}], hsv: [{
|
@@ -251,30 +247,30 @@ class PhotoshopPreviewsComponent {
|
|
251
247
|
ngOnChanges() {
|
252
248
|
this.backgroundNew = `rgb(${this.rgb.r},${this.rgb.g}, ${this.rgb.b})`;
|
253
249
|
}
|
254
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
255
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
250
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: PhotoshopPreviewsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
251
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.3", type: PhotoshopPreviewsComponent, isStandalone: false, selector: "color-photoshop-previews", inputs: { rgb: "rgb", currentColor: "currentColor" }, usesOnChanges: true, ngImport: i0, template: `
|
252
|
+
<div>
|
253
|
+
<div class="photoshop-label">new</div>
|
254
|
+
<div class="photoshop-swatches">
|
255
|
+
<div class="photoshop-new" [style.background]="backgroundNew"></div>
|
256
|
+
<div class="photoshop-current" [style.background]="currentColor"></div>
|
257
|
+
</div>
|
258
|
+
<div class="photoshop-label">current</div>
|
261
259
|
</div>
|
262
|
-
|
263
|
-
</div>
|
264
|
-
`, isInline: true, styles: [".photoshop-swatches{border:1px solid #B3B3B3;border-bottom:1px solid #F0F0F0;margin-bottom:2px;margin-top:1px}.photoshop-new{height:34px;box-shadow:inset 1px 0 #000,inset -1px 0 #000,inset 0 1px #000}.photoshop-current{height:34px;box-shadow:inset 1px 0 #000,inset -1px 0 #000,inset 0 -1px #000}.photoshop-label{font-size:14px;color:#000;text-align:center}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
260
|
+
`, isInline: true, styles: [".photoshop-swatches{border:1px solid #b3b3b3;border-bottom:1px solid #f0f0f0;margin-bottom:2px;margin-top:1px}.photoshop-new{height:34px;box-shadow:inset 1px 0 #000,inset -1px 0 #000,inset 0 1px #000}.photoshop-current{height:34px;box-shadow:inset 1px 0 #000,inset -1px 0 #000,inset 0 -1px #000}.photoshop-label{font-size:14px;color:#000;text-align:center}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
265
261
|
}
|
266
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
262
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: PhotoshopPreviewsComponent, decorators: [{
|
267
263
|
type: Component,
|
268
264
|
args: [{ selector: 'color-photoshop-previews', template: `
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
265
|
+
<div>
|
266
|
+
<div class="photoshop-label">new</div>
|
267
|
+
<div class="photoshop-swatches">
|
268
|
+
<div class="photoshop-new" [style.background]="backgroundNew"></div>
|
269
|
+
<div class="photoshop-current" [style.background]="currentColor"></div>
|
270
|
+
</div>
|
271
|
+
<div class="photoshop-label">current</div>
|
274
272
|
</div>
|
275
|
-
|
276
|
-
</div>
|
277
|
-
`, changeDetection: ChangeDetectionStrategy.OnPush, preserveWhitespaces: false, styles: [".photoshop-swatches{border:1px solid #B3B3B3;border-bottom:1px solid #F0F0F0;margin-bottom:2px;margin-top:1px}.photoshop-new{height:34px;box-shadow:inset 1px 0 #000,inset -1px 0 #000,inset 0 1px #000}.photoshop-current{height:34px;box-shadow:inset 1px 0 #000,inset -1px 0 #000,inset 0 -1px #000}.photoshop-label{font-size:14px;color:#000;text-align:center}\n"] }]
|
273
|
+
`, changeDetection: ChangeDetectionStrategy.OnPush, preserveWhitespaces: false, standalone: false, styles: [".photoshop-swatches{border:1px solid #b3b3b3;border-bottom:1px solid #f0f0f0;margin-bottom:2px;margin-top:1px}.photoshop-new{height:34px;box-shadow:inset 1px 0 #000,inset -1px 0 #000,inset 0 1px #000}.photoshop-current{height:34px;box-shadow:inset 1px 0 #000,inset -1px 0 #000,inset 0 -1px #000}.photoshop-label{font-size:14px;color:#000;text-align:center}\n"] }]
|
278
274
|
}], propDecorators: { rgb: [{
|
279
275
|
type: Input
|
280
276
|
}], currentColor: [{
|
@@ -299,8 +295,8 @@ class PhotoshopComponent extends ColorWrap {
|
|
299
295
|
handleValueChange({ data, $event }) {
|
300
296
|
this.handleChange(data, $event);
|
301
297
|
}
|
302
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
303
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
298
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: PhotoshopComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
299
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.3", type: PhotoshopComponent, isStandalone: false, selector: "color-photoshop", inputs: { header: "header" }, outputs: { onAccept: "onAccept", onCancel: "onCancel" }, providers: [
|
304
300
|
{
|
305
301
|
provide: NG_VALUE_ACCESSOR,
|
306
302
|
useExisting: forwardRef(() => PhotoshopComponent),
|
@@ -311,89 +307,103 @@ class PhotoshopComponent extends ColorWrap {
|
|
311
307
|
useExisting: forwardRef(() => PhotoshopComponent),
|
312
308
|
},
|
313
309
|
], usesInheritance: true, ngImport: i0, template: `
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
310
|
+
<div class="photoshop-picker {{ className }}">
|
311
|
+
<div class="photoshop-head">{{ header }}</div>
|
312
|
+
<div class="photoshop-body">
|
313
|
+
<div class="photoshop-saturation">
|
314
|
+
<color-saturation
|
315
|
+
[hsl]="hsl"
|
316
|
+
[hsv]="hsv"
|
317
|
+
[circle]="circle"
|
318
|
+
(onChange)="handleValueChange($event)"
|
319
|
+
></color-saturation>
|
320
|
+
</div>
|
321
|
+
<div class="photoshop-hue">
|
322
|
+
<color-hue
|
323
|
+
direction="vertical"
|
324
|
+
[hsl]="hsl"
|
325
|
+
[hidePointer]="true"
|
326
|
+
(onChange)="handleValueChange($event)"
|
327
|
+
></color-hue>
|
328
|
+
</div>
|
329
|
+
<div class="photoshop-controls">
|
330
|
+
<div class="photoshop-top">
|
331
|
+
<div class="photoshop-previews">
|
332
|
+
<color-photoshop-previews
|
333
|
+
[rgb]="rgb"
|
334
|
+
[currentColor]="currentColor"
|
335
|
+
></color-photoshop-previews>
|
336
|
+
</div>
|
337
|
+
<div class="photoshop-actions">
|
338
|
+
<color-photoshop-button
|
339
|
+
label="OK"
|
340
|
+
[active]="true"
|
341
|
+
(onClick)="onAccept.emit($event)"
|
342
|
+
></color-photoshop-button>
|
343
|
+
<color-photoshop-button label="Cancel" (onClick)="onCancel.emit($event)">
|
344
|
+
</color-photoshop-button>
|
345
|
+
<color-photoshop-fields
|
346
|
+
[rgb]="rgb"
|
347
|
+
[hex]="hex"
|
348
|
+
[hsv]="hsv"
|
349
|
+
(onChange)="handleValueChange($event)"
|
350
|
+
></color-photoshop-fields>
|
351
|
+
</div>
|
348
352
|
</div>
|
349
353
|
</div>
|
350
354
|
</div>
|
351
355
|
</div>
|
352
|
-
|
353
|
-
`, isInline: true, styles: [".photoshop-picker{background:rgb(220,220,220);border-radius:4px;box-shadow:#00000040 0 0 0 1px,#00000026 0 8px 16px;box-sizing:initial;width:513px}.photoshop-head{background-image:linear-gradient(-180deg,rgb(240,240,240) 0%,rgb(212,212,212) 100%);border-bottom:1px solid rgb(177,177,177);box-shadow:#fff3 0 1px inset,#00000005 0 -1px inset;height:23px;line-height:24px;border-radius:4px 4px 0 0;font-size:13px;color:#4d4d4d;text-align:center}.photoshop-body{padding:15px 15px 0;display:flex}.photoshop-saturation{width:256px;height:256px;position:relative;border-width:2px;border-style:solid;border-color:rgb(179,179,179) rgb(179,179,179) rgb(240,240,240);border-image:initial;overflow:hidden}.photoshop-hue{position:relative;height:256px;width:23px;margin-left:10px;border-width:2px;border-style:solid;border-color:rgb(179,179,179) rgb(179,179,179) rgb(240,240,240);border-image:initial}.photoshop-controls{width:180px;margin-left:10px}.photoshop-top{display:flex}.photoshop-previews{width:60px}.photoshop-actions{flex:1 1 0%;margin-left:20px}\n"], dependencies: [{ kind: "component", type: i0.forwardRef(function () { return i1.HueComponent; }), selector: "color-hue", inputs: ["hsl", "pointer", "radius", "shadow", "hidePointer", "direction"], outputs: ["onChange"] }, { kind: "component", type: i0.forwardRef(function () { return i1.SaturationComponent; }), selector: "color-saturation", inputs: ["hsl", "hsv", "radius", "pointer", "circle"], outputs: ["onChange"] }, { kind: "component", type: i0.forwardRef(function () { return PhotoshopPreviewsComponent; }), selector: "color-photoshop-previews", inputs: ["rgb", "currentColor"] }, { kind: "component", type: i0.forwardRef(function () { return PhotoshopButtonComponent; }), selector: "color-photoshop-button", inputs: ["label", "active"], outputs: ["onClick"] }, { kind: "component", type: i0.forwardRef(function () { return PhotoshopFieldsComponent; }), selector: "color-photoshop-fields", inputs: ["rgb", "hsv", "hex"], outputs: ["onChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
356
|
+
`, isInline: true, styles: [".photoshop-picker{background:#dcdcdc;border-radius:4px;box-shadow:#00000040 0 0 0 1px,#00000026 0 8px 16px;box-sizing:initial;width:513px}.photoshop-head{background-image:linear-gradient(-180deg,#f0f0f0,#d4d4d4);border-bottom:1px solid rgb(177,177,177);box-shadow:#fff3 0 1px inset,#00000005 0 -1px inset;height:23px;line-height:24px;border-radius:4px 4px 0 0;font-size:13px;color:#4d4d4d;text-align:center}.photoshop-body{padding:15px 15px 0;display:flex}.photoshop-saturation{width:256px;height:256px;position:relative;border-width:2px;border-style:solid;border-color:rgb(179,179,179) rgb(179,179,179) rgb(240,240,240);border-image:initial;overflow:hidden}.photoshop-hue{position:relative;height:256px;width:23px;margin-left:10px;border-width:2px;border-style:solid;border-color:rgb(179,179,179) rgb(179,179,179) rgb(240,240,240);border-image:initial}.photoshop-controls{width:180px;margin-left:10px}.photoshop-top{display:flex}.photoshop-previews{width:60px}.photoshop-actions{-webkit-box-flex:1;flex:1 1 0%;margin-left:20px}\n"], dependencies: [{ kind: "component", type: i0.forwardRef(() => i1.HueComponent), selector: "color-hue", inputs: ["hsl", "pointer", "radius", "shadow", "hidePointer", "direction"], outputs: ["onChange"] }, { kind: "component", type: i0.forwardRef(() => i1.SaturationComponent), selector: "color-saturation", inputs: ["hsl", "hsv", "radius", "pointer", "circle"], outputs: ["onChange"] }, { kind: "component", type: i0.forwardRef(() => PhotoshopPreviewsComponent), selector: "color-photoshop-previews", inputs: ["rgb", "currentColor"] }, { kind: "component", type: i0.forwardRef(() => PhotoshopButtonComponent), selector: "color-photoshop-button", inputs: ["label", "active"], outputs: ["onClick"] }, { kind: "component", type: i0.forwardRef(() => PhotoshopFieldsComponent), selector: "color-photoshop-fields", inputs: ["rgb", "hsv", "hex"], outputs: ["onChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
354
357
|
}
|
355
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
358
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: PhotoshopComponent, decorators: [{
|
356
359
|
type: Component,
|
357
360
|
args: [{ selector: 'color-photoshop', template: `
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
361
|
+
<div class="photoshop-picker {{ className }}">
|
362
|
+
<div class="photoshop-head">{{ header }}</div>
|
363
|
+
<div class="photoshop-body">
|
364
|
+
<div class="photoshop-saturation">
|
365
|
+
<color-saturation
|
366
|
+
[hsl]="hsl"
|
367
|
+
[hsv]="hsv"
|
368
|
+
[circle]="circle"
|
369
|
+
(onChange)="handleValueChange($event)"
|
370
|
+
></color-saturation>
|
371
|
+
</div>
|
372
|
+
<div class="photoshop-hue">
|
373
|
+
<color-hue
|
374
|
+
direction="vertical"
|
375
|
+
[hsl]="hsl"
|
376
|
+
[hidePointer]="true"
|
377
|
+
(onChange)="handleValueChange($event)"
|
378
|
+
></color-hue>
|
379
|
+
</div>
|
380
|
+
<div class="photoshop-controls">
|
381
|
+
<div class="photoshop-top">
|
382
|
+
<div class="photoshop-previews">
|
383
|
+
<color-photoshop-previews
|
384
|
+
[rgb]="rgb"
|
385
|
+
[currentColor]="currentColor"
|
386
|
+
></color-photoshop-previews>
|
387
|
+
</div>
|
388
|
+
<div class="photoshop-actions">
|
389
|
+
<color-photoshop-button
|
390
|
+
label="OK"
|
391
|
+
[active]="true"
|
392
|
+
(onClick)="onAccept.emit($event)"
|
393
|
+
></color-photoshop-button>
|
394
|
+
<color-photoshop-button label="Cancel" (onClick)="onCancel.emit($event)">
|
395
|
+
</color-photoshop-button>
|
396
|
+
<color-photoshop-fields
|
397
|
+
[rgb]="rgb"
|
398
|
+
[hex]="hex"
|
399
|
+
[hsv]="hsv"
|
400
|
+
(onChange)="handleValueChange($event)"
|
401
|
+
></color-photoshop-fields>
|
402
|
+
</div>
|
392
403
|
</div>
|
393
404
|
</div>
|
394
405
|
</div>
|
395
406
|
</div>
|
396
|
-
</div>
|
397
407
|
`, changeDetection: ChangeDetectionStrategy.OnPush, preserveWhitespaces: false, providers: [
|
398
408
|
{
|
399
409
|
provide: NG_VALUE_ACCESSOR,
|
@@ -404,8 +414,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.1", ngImpor
|
|
404
414
|
provide: ColorWrap,
|
405
415
|
useExisting: forwardRef(() => PhotoshopComponent),
|
406
416
|
},
|
407
|
-
], styles: [".photoshop-picker{background
|
408
|
-
}], ctorParameters:
|
417
|
+
], standalone: false, styles: [".photoshop-picker{background:#dcdcdc;border-radius:4px;box-shadow:#00000040 0 0 0 1px,#00000026 0 8px 16px;box-sizing:initial;width:513px}.photoshop-head{background-image:linear-gradient(-180deg,#f0f0f0,#d4d4d4);border-bottom:1px solid rgb(177,177,177);box-shadow:#fff3 0 1px inset,#00000005 0 -1px inset;height:23px;line-height:24px;border-radius:4px 4px 0 0;font-size:13px;color:#4d4d4d;text-align:center}.photoshop-body{padding:15px 15px 0;display:flex}.photoshop-saturation{width:256px;height:256px;position:relative;border-width:2px;border-style:solid;border-color:rgb(179,179,179) rgb(179,179,179) rgb(240,240,240);border-image:initial;overflow:hidden}.photoshop-hue{position:relative;height:256px;width:23px;margin-left:10px;border-width:2px;border-style:solid;border-color:rgb(179,179,179) rgb(179,179,179) rgb(240,240,240);border-image:initial}.photoshop-controls{width:180px;margin-left:10px}.photoshop-top{display:flex}.photoshop-previews{width:60px}.photoshop-actions{-webkit-box-flex:1;flex:1 1 0%;margin-left:20px}\n"] }]
|
418
|
+
}], ctorParameters: () => [], propDecorators: { header: [{
|
409
419
|
type: Input
|
410
420
|
}], onAccept: [{
|
411
421
|
type: Output
|
@@ -413,8 +423,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.1", ngImpor
|
|
413
423
|
type: Output
|
414
424
|
}] } });
|
415
425
|
class ColorPhotoshopModule {
|
416
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
417
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
426
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: ColorPhotoshopModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
427
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.3", ngImport: i0, type: ColorPhotoshopModule, declarations: [PhotoshopComponent, PhotoshopPreviewsComponent,
|
418
428
|
PhotoshopButtonComponent,
|
419
429
|
PhotoshopFieldsComponent], imports: [CommonModule,
|
420
430
|
EditableInputModule,
|
@@ -424,14 +434,14 @@ class ColorPhotoshopModule {
|
|
424
434
|
SaturationModule], exports: [PhotoshopComponent, PhotoshopPreviewsComponent,
|
425
435
|
PhotoshopButtonComponent,
|
426
436
|
PhotoshopFieldsComponent] });
|
427
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
437
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: ColorPhotoshopModule, imports: [CommonModule,
|
428
438
|
EditableInputModule,
|
429
439
|
HueModule,
|
430
440
|
AlphaModule,
|
431
441
|
SwatchModule,
|
432
442
|
SaturationModule] });
|
433
443
|
}
|
434
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
444
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: ColorPhotoshopModule, decorators: [{
|
435
445
|
type: NgModule,
|
436
446
|
args: [{
|
437
447
|
declarations: [
|