ngx-color 9.0.0 → 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.
Files changed (104) hide show
  1. package/coordinates.directive.d.ts +1 -2
  2. package/fesm2022/ngx-color-alpha.mjs +15 -17
  3. package/fesm2022/ngx-color-alpha.mjs.map +1 -1
  4. package/fesm2022/ngx-color-block.mjs +87 -76
  5. package/fesm2022/ngx-color-block.mjs.map +1 -1
  6. package/fesm2022/ngx-color-chrome.mjs +186 -145
  7. package/fesm2022/ngx-color-chrome.mjs.map +1 -1
  8. package/fesm2022/ngx-color-circle.mjs +68 -51
  9. package/fesm2022/ngx-color-circle.mjs.map +1 -1
  10. package/fesm2022/ngx-color-compact.mjs +163 -145
  11. package/fesm2022/ngx-color-compact.mjs.map +1 -1
  12. package/fesm2022/ngx-color-github.mjs +36 -37
  13. package/fesm2022/ngx-color-github.mjs.map +1 -1
  14. package/fesm2022/ngx-color-hue.mjs +27 -25
  15. package/fesm2022/ngx-color-hue.mjs.map +1 -1
  16. package/fesm2022/ngx-color-material.mjs +77 -61
  17. package/fesm2022/ngx-color-material.mjs.map +1 -1
  18. package/fesm2022/ngx-color-photoshop.mjs +224 -214
  19. package/fesm2022/ngx-color-photoshop.mjs.map +1 -1
  20. package/fesm2022/ngx-color-shade.mjs +19 -13
  21. package/fesm2022/ngx-color-shade.mjs.map +1 -1
  22. package/fesm2022/ngx-color-sketch.mjs +232 -227
  23. package/fesm2022/ngx-color-sketch.mjs.map +1 -1
  24. package/fesm2022/ngx-color-slider.mjs +153 -145
  25. package/fesm2022/ngx-color-slider.mjs.map +1 -1
  26. package/fesm2022/ngx-color-swatches.mjs +118 -216
  27. package/fesm2022/ngx-color-swatches.mjs.map +1 -1
  28. package/fesm2022/ngx-color-twitter.mjs +61 -58
  29. package/fesm2022/ngx-color-twitter.mjs.map +1 -1
  30. package/fesm2022/ngx-color.mjs +231 -187
  31. package/fesm2022/ngx-color.mjs.map +1 -1
  32. package/package.json +4 -34
  33. package/esm2022/alpha/alpha-picker.component.mjs +0 -102
  34. package/esm2022/alpha/ngx-color-alpha.mjs +0 -5
  35. package/esm2022/alpha/public_api.mjs +0 -2
  36. package/esm2022/alpha.component.mjs +0 -146
  37. package/esm2022/block/block-swatches.component.mjs +0 -63
  38. package/esm2022/block/block.component.mjs +0 -160
  39. package/esm2022/block/ngx-color-block.mjs +0 -5
  40. package/esm2022/block/public_api.mjs +0 -3
  41. package/esm2022/checkboard.component.mjs +0 -53
  42. package/esm2022/chrome/chrome-fields.component.mjs +0 -317
  43. package/esm2022/chrome/chrome.component.mjs +0 -187
  44. package/esm2022/chrome/ngx-color-chrome.mjs +0 -5
  45. package/esm2022/chrome/public_api.mjs +0 -3
  46. package/esm2022/circle/circle-swatch.component.mjs +0 -69
  47. package/esm2022/circle/circle.component.mjs +0 -136
  48. package/esm2022/circle/ngx-color-circle.mjs +0 -5
  49. package/esm2022/circle/public_api.mjs +0 -3
  50. package/esm2022/color-wrap.component.mjs +0 -173
  51. package/esm2022/compact/compact-color.component.mjs +0 -71
  52. package/esm2022/compact/compact-fields.component.mjs +0 -165
  53. package/esm2022/compact/compact.component.mjs +0 -156
  54. package/esm2022/compact/ngx-color-compact.mjs +0 -5
  55. package/esm2022/compact/public_api.mjs +0 -4
  56. package/esm2022/coordinates.directive.mjs +0 -108
  57. package/esm2022/editable-input.component.mjs +0 -212
  58. package/esm2022/github/github-swatch.component.mjs +0 -53
  59. package/esm2022/github/github.component.mjs +0 -114
  60. package/esm2022/github/ngx-color-github.mjs +0 -5
  61. package/esm2022/github/public_api.mjs +0 -3
  62. package/esm2022/helpers/checkboard.mjs +0 -33
  63. package/esm2022/helpers/color.interfaces.mjs +0 -2
  64. package/esm2022/helpers/color.mjs +0 -60
  65. package/esm2022/hue/hue-picker.component.mjs +0 -102
  66. package/esm2022/hue/ngx-color-hue.mjs +0 -5
  67. package/esm2022/hue/public_api.mjs +0 -2
  68. package/esm2022/hue.component.mjs +0 -128
  69. package/esm2022/material/material.component.mjs +0 -188
  70. package/esm2022/material/ngx-color-material.mjs +0 -5
  71. package/esm2022/material/public_api.mjs +0 -2
  72. package/esm2022/ngx-color.mjs +0 -5
  73. package/esm2022/photoshop/ngx-color-photoshop.mjs +0 -5
  74. package/esm2022/photoshop/photoshop-button.component.mjs +0 -33
  75. package/esm2022/photoshop/photoshop-fields.component.mjs +0 -214
  76. package/esm2022/photoshop/photoshop-previews.component.mjs +0 -40
  77. package/esm2022/photoshop/photoshop.component.mjs +0 -187
  78. package/esm2022/photoshop/public_api.mjs +0 -5
  79. package/esm2022/public_api.mjs +0 -14
  80. package/esm2022/raised.component.mjs +0 -50
  81. package/esm2022/saturation.component.mjs +0 -100
  82. package/esm2022/shade/ngx-color-shade.mjs +0 -5
  83. package/esm2022/shade/public_api.mjs +0 -2
  84. package/esm2022/shade/shade-picker.component.mjs +0 -94
  85. package/esm2022/shade.component.mjs +0 -133
  86. package/esm2022/sketch/ngx-color-sketch.mjs +0 -5
  87. package/esm2022/sketch/public_api.mjs +0 -4
  88. package/esm2022/sketch/sketch-fields.component.mjs +0 -211
  89. package/esm2022/sketch/sketch-preset-colors.component.mjs +0 -68
  90. package/esm2022/sketch/sketch.component.mjs +0 -215
  91. package/esm2022/slider/ngx-color-slider.mjs +0 -5
  92. package/esm2022/slider/public_api.mjs +0 -4
  93. package/esm2022/slider/slider-swatch.component.mjs +0 -55
  94. package/esm2022/slider/slider-swatches.component.mjs +0 -119
  95. package/esm2022/slider/slider.component.mjs +0 -104
  96. package/esm2022/swatch.component.mjs +0 -112
  97. package/esm2022/swatches/ngx-color-swatches.mjs +0 -5
  98. package/esm2022/swatches/public_api.mjs +0 -4
  99. package/esm2022/swatches/swatches-color.component.mjs +0 -105
  100. package/esm2022/swatches/swatches-group.component.mjs +0 -50
  101. package/esm2022/swatches/swatches.component.mjs +0 -244
  102. package/esm2022/twitter/ngx-color-twitter.mjs +0 -5
  103. package/esm2022/twitter/public_api.mjs +0 -2
  104. 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: "16.0.1", ngImport: i0, type: PhotoshopButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
13
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.1", type: PhotoshopButtonComponent, selector: "color-photoshop-button", inputs: { label: "label", active: "active" }, outputs: { onClick: "onClick" }, ngImport: i0, template: `
14
- <div class="photoshop-button" [class.active]="active"
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,rgb(255,255,255) 0%,rgb(230,230,230) 100%);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 });
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: "16.0.1", ngImport: i0, type: PhotoshopButtonComponent, decorators: [{
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" [class.active]="active"
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,rgb(255,255,255) 0%,rgb(230,230,230) 100%);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"] }]
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: "16.0.1", ngImport: i0, type: PhotoshopFieldsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
128
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.1", type: PhotoshopFieldsComponent, selector: "color-photoshop-fields", inputs: { rgb: "rgb", hsv: "hsv", hex: "hex" }, outputs: { onChange: "onChange" }, ngImport: i0, template: `
129
- <div class="photoshop-fields">
130
- <color-editable-input
131
- [value]="round(hsv.h)"
132
- label="h"
133
- (onChange)="handleValueChange($event)"
134
- [style]="{input: RGBinput, wrap: RGBwrap, label: RGBlabel}"
135
- ></color-editable-input>
136
- <color-editable-input
137
- [value]="round(hsv.s * 100)"
138
- label="s"
139
- (onChange)="handleValueChange($event)"
140
- [style]="{input: RGBinput, wrap: RGBwrap, label: RGBlabel}"
141
- ></color-editable-input>
142
- <color-editable-input
143
- [value]="round(hsv.v * 100)"
144
- label="v"
145
- (onChange)="handleValueChange($event)"
146
- [style]="{input: RGBinput, wrap: RGBwrap, label: RGBlabel}"
147
- ></color-editable-input>
148
- <div class="photoshop-divider"></div>
149
- <color-editable-input
150
- [value]="rgb.r"
151
- label="r"
152
- (onChange)="handleValueChange($event)"
153
- [style]="{input: RGBinput, wrap: RGBwrap, label: RGBlabel}"
154
- ></color-editable-input>
155
- <color-editable-input
156
- [value]="rgb.g"
157
- label="g"
158
- (onChange)="handleValueChange($event)"
159
- [style]="{input: RGBinput, wrap: RGBwrap, label: RGBlabel}"
160
- ></color-editable-input>
161
- <color-editable-input
162
- [value]="rgb.b"
163
- label="b"
164
- (onChange)="handleValueChange($event)"
165
- [style]="{input: RGBinput, wrap: RGBwrap, label: RGBlabel}"
166
- ></color-editable-input>
167
- <div class="photoshop-divider"></div>
168
- <color-editable-input
169
- [value]="hex.replace('#', '')"
170
- label="#"
171
- (onChange)="handleValueChange($event)"
172
- [style]="{input: HEXinput, wrap: HEXwrap, label: HEXlabel}"
173
- ></color-editable-input>
174
- <div class="photoshop-field-symbols">
175
- <div class="photoshop-symbol">°</div>
176
- <div class="photoshop-symbol">%</div>
177
- <div class="photoshop-symbol">%</div>
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: "16.0.1", ngImport: i0, type: PhotoshopFieldsComponent, decorators: [{
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
- <div class="photoshop-fields">
186
- <color-editable-input
187
- [value]="round(hsv.h)"
188
- label="h"
189
- (onChange)="handleValueChange($event)"
190
- [style]="{input: RGBinput, wrap: RGBwrap, label: RGBlabel}"
191
- ></color-editable-input>
192
- <color-editable-input
193
- [value]="round(hsv.s * 100)"
194
- label="s"
195
- (onChange)="handleValueChange($event)"
196
- [style]="{input: RGBinput, wrap: RGBwrap, label: RGBlabel}"
197
- ></color-editable-input>
198
- <color-editable-input
199
- [value]="round(hsv.v * 100)"
200
- label="v"
201
- (onChange)="handleValueChange($event)"
202
- [style]="{input: RGBinput, wrap: RGBwrap, label: RGBlabel}"
203
- ></color-editable-input>
204
- <div class="photoshop-divider"></div>
205
- <color-editable-input
206
- [value]="rgb.r"
207
- label="r"
208
- (onChange)="handleValueChange($event)"
209
- [style]="{input: RGBinput, wrap: RGBwrap, label: RGBlabel}"
210
- ></color-editable-input>
211
- <color-editable-input
212
- [value]="rgb.g"
213
- label="g"
214
- (onChange)="handleValueChange($event)"
215
- [style]="{input: RGBinput, wrap: RGBwrap, label: RGBlabel}"
216
- ></color-editable-input>
217
- <color-editable-input
218
- [value]="rgb.b"
219
- label="b"
220
- (onChange)="handleValueChange($event)"
221
- [style]="{input: RGBinput, wrap: RGBwrap, label: RGBlabel}"
222
- ></color-editable-input>
223
- <div class="photoshop-divider"></div>
224
- <color-editable-input
225
- [value]="hex.replace('#', '')"
226
- label="#"
227
- (onChange)="handleValueChange($event)"
228
- [style]="{input: HEXinput, wrap: HEXwrap, label: HEXlabel}"
229
- ></color-editable-input>
230
- <div class="photoshop-field-symbols">
231
- <div class="photoshop-symbol">°</div>
232
- <div class="photoshop-symbol">%</div>
233
- <div class="photoshop-symbol">%</div>
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
- </div>
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: "16.0.1", ngImport: i0, type: PhotoshopPreviewsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
255
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.1", type: PhotoshopPreviewsComponent, selector: "color-photoshop-previews", inputs: { rgb: "rgb", currentColor: "currentColor" }, usesOnChanges: true, ngImport: i0, template: `
256
- <div>
257
- <div class="photoshop-label">new</div>
258
- <div class="photoshop-swatches">
259
- <div class="photoshop-new" [style.background]="backgroundNew"></div>
260
- <div class="photoshop-current" [style.background]="currentColor"></div>
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
- <div class="photoshop-label">current</div>
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: "16.0.1", ngImport: i0, type: PhotoshopPreviewsComponent, decorators: [{
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
- <div>
270
- <div class="photoshop-label">new</div>
271
- <div class="photoshop-swatches">
272
- <div class="photoshop-new" [style.background]="backgroundNew"></div>
273
- <div class="photoshop-current" [style.background]="currentColor"></div>
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
- <div class="photoshop-label">current</div>
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: "16.0.1", ngImport: i0, type: PhotoshopComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
303
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.1", type: PhotoshopComponent, selector: "color-photoshop", inputs: { header: "header" }, outputs: { onAccept: "onAccept", onCancel: "onCancel" }, providers: [
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
- <div class="photoshop-picker {{ className }}">
315
- <div class="photoshop-head">{{ header }}</div>
316
- <div class="photoshop-body">
317
- <div class="photoshop-saturation">
318
- <color-saturation
319
- [hsl]="hsl" [hsv]="hsv" [circle]="circle"
320
- (onChange)="handleValueChange($event)"
321
- ></color-saturation>
322
- </div>
323
- <div class="photoshop-hue">
324
- <color-hue direction="vertical"
325
- [hsl]="hsl" [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" [currentColor]="currentColor"
334
- ></color-photoshop-previews>
335
- </div>
336
- <div class="photoshop-actions">
337
- <color-photoshop-button label="OK"
338
- [active]="true" (onClick)="onAccept.emit($event)"
339
- ></color-photoshop-button>
340
- <color-photoshop-button label="Cancel"
341
- (onClick)="onCancel.emit($event)"
342
- >
343
- </color-photoshop-button>
344
- <color-photoshop-fields
345
- [rgb]="rgb" [hex]="hex" [hsv]="hsv"
346
- (onChange)="handleValueChange($event)"
347
- ></color-photoshop-fields>
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
- </div>
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: "16.0.1", ngImport: i0, type: PhotoshopComponent, decorators: [{
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
- <div class="photoshop-picker {{ className }}">
359
- <div class="photoshop-head">{{ header }}</div>
360
- <div class="photoshop-body">
361
- <div class="photoshop-saturation">
362
- <color-saturation
363
- [hsl]="hsl" [hsv]="hsv" [circle]="circle"
364
- (onChange)="handleValueChange($event)"
365
- ></color-saturation>
366
- </div>
367
- <div class="photoshop-hue">
368
- <color-hue direction="vertical"
369
- [hsl]="hsl" [hidePointer]="true"
370
- (onChange)="handleValueChange($event)"
371
- ></color-hue>
372
- </div>
373
- <div class="photoshop-controls">
374
- <div class="photoshop-top">
375
- <div class="photoshop-previews">
376
- <color-photoshop-previews
377
- [rgb]="rgb" [currentColor]="currentColor"
378
- ></color-photoshop-previews>
379
- </div>
380
- <div class="photoshop-actions">
381
- <color-photoshop-button label="OK"
382
- [active]="true" (onClick)="onAccept.emit($event)"
383
- ></color-photoshop-button>
384
- <color-photoshop-button label="Cancel"
385
- (onClick)="onCancel.emit($event)"
386
- >
387
- </color-photoshop-button>
388
- <color-photoshop-fields
389
- [rgb]="rgb" [hex]="hex" [hsv]="hsv"
390
- (onChange)="handleValueChange($event)"
391
- ></color-photoshop-fields>
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: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"] }]
408
- }], ctorParameters: function () { return []; }, propDecorators: { header: [{
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: "16.0.1", ngImport: i0, type: ColorPhotoshopModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
417
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.1", ngImport: i0, type: ColorPhotoshopModule, declarations: [PhotoshopComponent, PhotoshopPreviewsComponent,
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: "16.0.1", ngImport: i0, type: ColorPhotoshopModule, imports: [CommonModule,
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: "16.0.1", ngImport: i0, type: ColorPhotoshopModule, decorators: [{
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: [