@skyux/colorpicker 5.1.2 → 5.5.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 (93) hide show
  1. package/README.md +6 -4
  2. package/bundles/skyux-colorpicker.umd.js +29 -26
  3. package/documentation.json +123 -32
  4. package/esm2015/index.js +16 -0
  5. package/esm2015/index.js.map +1 -0
  6. package/esm2015/lib/modules/colorpicker/colorpicker-classes.js +24 -0
  7. package/esm2015/lib/modules/colorpicker/colorpicker-classes.js.map +1 -0
  8. package/esm2015/lib/modules/colorpicker/colorpicker-input.directive.js +264 -0
  9. package/esm2015/lib/modules/colorpicker/colorpicker-input.directive.js.map +1 -0
  10. package/esm2015/lib/modules/colorpicker/colorpicker-slider.directive.js +98 -0
  11. package/esm2015/lib/modules/colorpicker/colorpicker-slider.directive.js.map +1 -0
  12. package/esm2015/lib/modules/colorpicker/colorpicker-text.directive.js +51 -0
  13. package/esm2015/lib/modules/colorpicker/colorpicker-text.directive.js.map +1 -0
  14. package/esm2015/{modules → lib/modules}/colorpicker/colorpicker.component.js +7 -6
  15. package/esm2015/lib/modules/colorpicker/colorpicker.component.js.map +1 -0
  16. package/esm2015/lib/modules/colorpicker/colorpicker.module.js +61 -0
  17. package/esm2015/lib/modules/colorpicker/colorpicker.module.js.map +1 -0
  18. package/esm2015/lib/modules/colorpicker/colorpicker.service.js +344 -0
  19. package/esm2015/lib/modules/colorpicker/colorpicker.service.js.map +1 -0
  20. package/esm2015/lib/modules/colorpicker/types/colorpicker-axis.js +2 -0
  21. package/esm2015/lib/modules/colorpicker/types/colorpicker-axis.js.map +1 -0
  22. package/esm2015/lib/modules/colorpicker/types/colorpicker-cmyk.js +2 -0
  23. package/esm2015/lib/modules/colorpicker/types/colorpicker-cmyk.js.map +1 -0
  24. package/esm2015/lib/modules/colorpicker/types/colorpicker-color.js +2 -0
  25. package/esm2015/lib/modules/colorpicker/types/colorpicker-color.js.map +1 -0
  26. package/esm2015/lib/modules/colorpicker/types/colorpicker-hsla.js +2 -0
  27. package/esm2015/lib/modules/colorpicker/types/colorpicker-hsla.js.map +1 -0
  28. package/esm2015/lib/modules/colorpicker/types/colorpicker-hsva.js +2 -0
  29. package/esm2015/lib/modules/colorpicker/types/colorpicker-hsva.js.map +1 -0
  30. package/esm2015/lib/modules/colorpicker/types/colorpicker-message-type.js +23 -0
  31. package/esm2015/lib/modules/colorpicker/types/colorpicker-message-type.js.map +1 -0
  32. package/esm2015/lib/modules/colorpicker/types/colorpicker-message.js +2 -0
  33. package/esm2015/lib/modules/colorpicker/types/colorpicker-message.js.map +1 -0
  34. package/esm2015/lib/modules/colorpicker/types/colorpicker-output.js +2 -0
  35. package/esm2015/lib/modules/colorpicker/types/colorpicker-output.js.map +1 -0
  36. package/esm2015/lib/modules/colorpicker/types/colorpicker-result.js +2 -0
  37. package/esm2015/lib/modules/colorpicker/types/colorpicker-result.js.map +1 -0
  38. package/esm2015/lib/modules/colorpicker/types/colorpicker-rgba.js +2 -0
  39. package/esm2015/lib/modules/colorpicker/types/colorpicker-rgba.js.map +1 -0
  40. package/esm2015/lib/modules/shared/sky-colorpicker-resources.module.js +69 -0
  41. package/esm2015/lib/modules/shared/sky-colorpicker-resources.module.js.map +1 -0
  42. package/esm2015/skyux-colorpicker.js +2 -2
  43. package/esm2015/skyux-colorpicker.js.map +1 -0
  44. package/esm2015/testing/colorpicker-fixture.js +1 -1
  45. package/esm2015/testing/colorpicker-fixture.js.map +1 -0
  46. package/esm2015/testing/public-api.js +1 -1
  47. package/esm2015/testing/public-api.js.map +1 -0
  48. package/esm2015/testing/skyux-colorpicker-testing.js +1 -1
  49. package/esm2015/testing/skyux-colorpicker-testing.js.map +1 -0
  50. package/fesm2015/skyux-colorpicker-testing.js.map +1 -1
  51. package/fesm2015/skyux-colorpicker.js +29 -26
  52. package/fesm2015/skyux-colorpicker.js.map +1 -1
  53. package/index.d.ts +13 -0
  54. package/{modules → lib/modules}/colorpicker/colorpicker-classes.d.ts +0 -0
  55. package/{modules → lib/modules}/colorpicker/colorpicker-input.directive.d.ts +3 -0
  56. package/{modules → lib/modules}/colorpicker/colorpicker-slider.directive.d.ts +0 -0
  57. package/{modules → lib/modules}/colorpicker/colorpicker-text.directive.d.ts +0 -0
  58. package/{modules → lib/modules}/colorpicker/colorpicker.component.d.ts +1 -1
  59. package/{modules → lib/modules}/colorpicker/colorpicker.module.d.ts +0 -0
  60. package/{modules → lib/modules}/colorpicker/colorpicker.service.d.ts +0 -0
  61. package/{modules → lib/modules}/colorpicker/types/colorpicker-axis.d.ts +0 -0
  62. package/{modules → lib/modules}/colorpicker/types/colorpicker-cmyk.d.ts +0 -0
  63. package/{modules → lib/modules}/colorpicker/types/colorpicker-color.d.ts +0 -0
  64. package/{modules → lib/modules}/colorpicker/types/colorpicker-hsla.d.ts +0 -0
  65. package/{modules → lib/modules}/colorpicker/types/colorpicker-hsva.d.ts +0 -0
  66. package/{modules → lib/modules}/colorpicker/types/colorpicker-message-type.d.ts +0 -0
  67. package/{modules → lib/modules}/colorpicker/types/colorpicker-message.d.ts +0 -0
  68. package/{modules → lib/modules}/colorpicker/types/colorpicker-output.d.ts +0 -0
  69. package/{modules → lib/modules}/colorpicker/types/colorpicker-result.d.ts +0 -0
  70. package/{modules → lib/modules}/colorpicker/types/colorpicker-rgba.d.ts +0 -0
  71. package/{modules → lib/modules}/shared/sky-colorpicker-resources.module.d.ts +0 -0
  72. package/package.json +23 -9
  73. package/skyux-colorpicker.d.ts +1 -1
  74. package/LICENSE +0 -21
  75. package/esm2015/modules/colorpicker/colorpicker-classes.js +0 -24
  76. package/esm2015/modules/colorpicker/colorpicker-input.directive.js +0 -258
  77. package/esm2015/modules/colorpicker/colorpicker-slider.directive.js +0 -98
  78. package/esm2015/modules/colorpicker/colorpicker-text.directive.js +0 -51
  79. package/esm2015/modules/colorpicker/colorpicker.module.js +0 -61
  80. package/esm2015/modules/colorpicker/colorpicker.service.js +0 -344
  81. package/esm2015/modules/colorpicker/types/colorpicker-axis.js +0 -2
  82. package/esm2015/modules/colorpicker/types/colorpicker-cmyk.js +0 -2
  83. package/esm2015/modules/colorpicker/types/colorpicker-color.js +0 -2
  84. package/esm2015/modules/colorpicker/types/colorpicker-hsla.js +0 -2
  85. package/esm2015/modules/colorpicker/types/colorpicker-hsva.js +0 -2
  86. package/esm2015/modules/colorpicker/types/colorpicker-message-type.js +0 -23
  87. package/esm2015/modules/colorpicker/types/colorpicker-message.js +0 -2
  88. package/esm2015/modules/colorpicker/types/colorpicker-output.js +0 -2
  89. package/esm2015/modules/colorpicker/types/colorpicker-result.js +0 -2
  90. package/esm2015/modules/colorpicker/types/colorpicker-rgba.js +0 -2
  91. package/esm2015/modules/shared/sky-colorpicker-resources.module.js +0 -69
  92. package/esm2015/public-api.js +0 -16
  93. package/public-api.d.ts +0 -13
@@ -0,0 +1,344 @@
1
+ // spell-checker:ignore hsva, hsla, cmyk, denormalize, colorpicker,Injectable
2
+ import { Injectable } from '@angular/core';
3
+ import * as i0 from "@angular/core";
4
+ /**
5
+ * @internal
6
+ */
7
+ export class SkyColorpickerService {
8
+ constructor() { }
9
+ hsla2hsva(hsla) {
10
+ const alpha = Math.min(hsla.alpha, 1);
11
+ const hue = Math.min(hsla.hue, 1);
12
+ const lightness = Math.min(hsla.lightness, 1);
13
+ const saturation = Math.min(hsla.saturation, 1);
14
+ let hsva = {
15
+ hue: hue,
16
+ saturation: saturation,
17
+ value: lightness,
18
+ alpha: alpha,
19
+ };
20
+ if (lightness === 0) {
21
+ hsva.saturation = 0;
22
+ hsva.value = 0;
23
+ }
24
+ else {
25
+ hsva.value =
26
+ lightness + (saturation * (1 - Math.abs(2 * lightness - 1))) / 2;
27
+ hsva.saturation = (2 * (hsva.value - lightness)) / hsva.value;
28
+ }
29
+ return hsva;
30
+ }
31
+ hsva2hsla(hsva) {
32
+ const alpha = hsva.alpha;
33
+ const hue = hsva.hue;
34
+ const saturation = hsva.saturation;
35
+ const value = hsva.value;
36
+ let hsla = {
37
+ hue: hue,
38
+ saturation: saturation,
39
+ lightness: value,
40
+ alpha: alpha,
41
+ };
42
+ if (value === 0) {
43
+ hsla.lightness = 0;
44
+ hsla.saturation = 0;
45
+ }
46
+ else {
47
+ hsla.lightness = (value * (2 - saturation)) / 2;
48
+ hsla.saturation =
49
+ (value * saturation) / (1 - Math.abs(2 * hsla.lightness - 1));
50
+ }
51
+ return hsla;
52
+ }
53
+ rgbaToHsva(rgba) {
54
+ const red = Math.min(rgba.red, 1);
55
+ const green = Math.min(rgba.green, 1);
56
+ const blue = Math.min(rgba.blue, 1);
57
+ const alpha = Math.min(rgba.alpha, 1);
58
+ const max = Math.max(red, green, blue);
59
+ const min = Math.min(red, green, blue);
60
+ const value = max;
61
+ const d = max - min;
62
+ const saturation = max === 0 ? 0 : d / max;
63
+ let hue = 0;
64
+ let maxValue;
65
+ if (max !== min) {
66
+ maxValue = {
67
+ [red]: (green - blue) / d + (green < blue ? 6 : 0),
68
+ [green]: (blue - red) / d + 2,
69
+ [blue]: (red - green) / d + 4,
70
+ };
71
+ hue = maxValue[max];
72
+ hue /= 6;
73
+ }
74
+ const hsva = {
75
+ hue: hue,
76
+ saturation: saturation,
77
+ value: value,
78
+ alpha: alpha,
79
+ };
80
+ return hsva;
81
+ }
82
+ rgbaToCmyk(rgba) {
83
+ let cmyk = { cyan: 0, magenta: 0, yellow: 0, key: 0 };
84
+ const key = 1 - Math.max(rgba.red, rgba.green, rgba.blue);
85
+ if (key === 1) {
86
+ cmyk.key = 1;
87
+ return cmyk;
88
+ }
89
+ cmyk.cyan = (1 - rgba.red - key) / (1 - key);
90
+ cmyk.magenta = (1 - rgba.green - key) / (1 - key);
91
+ cmyk.yellow = (1 - rgba.blue - key) / (1 - key);
92
+ cmyk.key = key;
93
+ return cmyk;
94
+ }
95
+ hsvaToRgba(hsva) {
96
+ let red = 0;
97
+ let green = 0;
98
+ let blue = 0;
99
+ const hue = hsva.hue;
100
+ const saturation = hsva.saturation;
101
+ const value = hsva.value;
102
+ const alpha = hsva.alpha || hsva.alpha === 0 ? hsva.alpha : 1;
103
+ const i = Math.floor(hue * 6);
104
+ const f = hue * 6 - i;
105
+ const p = value * (1 - saturation);
106
+ const q = value * (1 - f * saturation);
107
+ const t = value * (1 - (1 - f) * saturation);
108
+ const color = {
109
+ 0: () => {
110
+ red = value;
111
+ green = t;
112
+ blue = p;
113
+ },
114
+ 1: () => {
115
+ red = q;
116
+ green = value;
117
+ blue = p;
118
+ },
119
+ 2: () => {
120
+ red = p;
121
+ green = value;
122
+ blue = t;
123
+ },
124
+ 3: () => {
125
+ red = p;
126
+ green = q;
127
+ blue = value;
128
+ },
129
+ 4: () => {
130
+ red = t;
131
+ green = p;
132
+ blue = value;
133
+ },
134
+ 5: () => {
135
+ red = value;
136
+ green = p;
137
+ blue = q;
138
+ },
139
+ };
140
+ color[i % 6]();
141
+ const rgba = {
142
+ red: red,
143
+ green: green,
144
+ blue: blue,
145
+ alpha: alpha,
146
+ };
147
+ return rgba;
148
+ }
149
+ stringToHsva(colorString, hex8) {
150
+ let stringParsers = [
151
+ {
152
+ // tslint:disable max-line-length
153
+ re: /(rgb)a?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*%?,\s*(\d{1,3})\s*%?(?:,\s*(\d+(?:\.\d+)?)\s*)?\)/,
154
+ parse: (execResult) => {
155
+ const rgba = {
156
+ red: parseInt(execResult[2], 0) / 255,
157
+ green: parseInt(execResult[3], 0) / 255,
158
+ blue: parseInt(execResult[4], 0) / 255,
159
+ alpha: parseFloat(execResult[5]),
160
+ };
161
+ return rgba;
162
+ },
163
+ },
164
+ {
165
+ re: /(hsl)a?\(\s*(\d{1,3})\s*,\s*(\d{1,3})%\s*,\s*(\d{1,3})%\s*(?:,\s*(\d+(?:\.\d+)?)\s*)?\)/,
166
+ parse: (execResult) => {
167
+ const hsla = {
168
+ hue: parseInt(execResult[2], 0) / 360,
169
+ saturation: parseInt(execResult[3], 0) / 100,
170
+ lightness: parseInt(execResult[4], 0) / 100,
171
+ alpha: parseFloat(execResult[5]),
172
+ };
173
+ return hsla;
174
+ // tslint:enable max-line-length
175
+ },
176
+ },
177
+ ];
178
+ if (hex8) {
179
+ stringParsers.push({
180
+ re: /#?([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})$/,
181
+ parse: (execResult) => {
182
+ const rgba = {
183
+ red: parseInt(execResult[1], 16) / 255,
184
+ green: parseInt(execResult[2], 16) / 255,
185
+ blue: parseInt(execResult[3], 16) / 255,
186
+ alpha: parseInt(execResult[4], 16) / 255,
187
+ };
188
+ return rgba;
189
+ },
190
+ });
191
+ }
192
+ else {
193
+ stringParsers.push({
194
+ re: /#?([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})$/,
195
+ parse: (execResult) => {
196
+ const rgba = {
197
+ red: parseInt(execResult[1], 16) / 255,
198
+ green: parseInt(execResult[2], 16) / 255,
199
+ blue: parseInt(execResult[3], 16) / 255,
200
+ alpha: 1,
201
+ };
202
+ return rgba;
203
+ },
204
+ }, {
205
+ re: /#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])$/,
206
+ parse: (execResult) => {
207
+ const rgba = {
208
+ red: parseInt(execResult[1] + execResult[1], 16) / 255,
209
+ green: parseInt(execResult[2] + execResult[2], 16) / 255,
210
+ blue: parseInt(execResult[3] + execResult[3], 16) / 255,
211
+ alpha: 1,
212
+ };
213
+ return rgba;
214
+ },
215
+ });
216
+ }
217
+ let hsva = undefined;
218
+ for (let key in stringParsers) {
219
+ /* istanbul ignore else */ /* for in must be filtered by an if */
220
+ if (stringParsers.hasOwnProperty(key)) {
221
+ let parser = stringParsers[key];
222
+ let match = parser.re.exec(colorString);
223
+ let color = match && parser.parse(match);
224
+ if (color) {
225
+ if ('red' in color) {
226
+ hsva = this.rgbaToHsva(color);
227
+ }
228
+ if ('hue' in color) {
229
+ hsva = this.hsla2hsva(color);
230
+ }
231
+ return hsva;
232
+ }
233
+ }
234
+ }
235
+ return hsva;
236
+ }
237
+ outputFormat(hsva, outputFormat, allowHex8) {
238
+ if (['hsla', 'hex', 'cmyk'].indexOf(outputFormat) === -1) {
239
+ outputFormat = 'rgba';
240
+ }
241
+ let color = {
242
+ hsla: () => {
243
+ let hsla = this.denormalizeHSLA(this.hsva2hsla(hsva));
244
+ return `hsla(${hsla.hue},${hsla.saturation}%,${hsla.lightness}%,${hsla.alpha})`;
245
+ },
246
+ hex: () => {
247
+ return this.hexText(this.denormalizeRGBA(this.hsvaToRgba(hsva)), allowHex8);
248
+ },
249
+ cmyk: () => {
250
+ let cmyk = this.denormalizeCMYK(this.rgbaToCmyk(this.hsvaToRgba(hsva)));
251
+ return `cmyk(${cmyk.cyan}%,${cmyk.magenta}%,${cmyk.yellow}%,${cmyk.key}%)`;
252
+ },
253
+ rgba: () => {
254
+ let rgba = this.denormalizeRGBA(this.hsvaToRgba(hsva));
255
+ return `rgba(${rgba.red},${rgba.green},${rgba.blue},${rgba.alpha})`;
256
+ },
257
+ };
258
+ return color[outputFormat]();
259
+ }
260
+ skyColorpickerOut(color) {
261
+ let formatColor;
262
+ let cmykText = this.outputFormat(color, 'cmyk', true);
263
+ let hslaText = this.outputFormat(color, 'hsla', true);
264
+ let rgbaText = this.outputFormat(color, 'rgba', true);
265
+ let rgba = this.hsvaToRgba(color);
266
+ let hsla = this.hsva2hsla(color);
267
+ let cmyk = this.rgbaToCmyk(rgba);
268
+ let hex = this.outputFormat(color, 'hex', false);
269
+ formatColor = {
270
+ cmykText: cmykText,
271
+ hslaText: hslaText,
272
+ rgbaText: rgbaText,
273
+ hsva: this.denormalizeHSVA(color),
274
+ rgba: this.denormalizeRGBA(rgba),
275
+ hsla: this.denormalizeHSLA(hsla),
276
+ cmyk: this.denormalizeCMYK(cmyk),
277
+ hex: hex,
278
+ };
279
+ return formatColor;
280
+ }
281
+ hexText(rgba, allowHex8) {
282
+ // tslint:disable no-bitwise
283
+ let hexText = '#' +
284
+ ((1 << 24) | (rgba.red << 16) | (rgba.green << 8) | rgba.blue)
285
+ .toString(16)
286
+ .substr(1);
287
+ if (hexText[1] === hexText[2] &&
288
+ hexText[3] === hexText[4] &&
289
+ hexText[5] === hexText[6] &&
290
+ rgba.alpha === 1 &&
291
+ !allowHex8) {
292
+ hexText = '#' + hexText[1] + hexText[3] + hexText[5];
293
+ }
294
+ if (allowHex8) {
295
+ hexText += ((1 << 8) | Math.round(rgba.alpha * 255))
296
+ .toString(16)
297
+ .substr(1);
298
+ }
299
+ return hexText;
300
+ // tslint:enable no-bitwise
301
+ }
302
+ denormalizeRGBA(rgba) {
303
+ const denormalizeRgba = {
304
+ red: Math.round(rgba.red * 255),
305
+ green: Math.round(rgba.green * 255),
306
+ blue: Math.round(rgba.blue * 255),
307
+ alpha: Math.round(rgba.alpha * 100) / 100,
308
+ };
309
+ return denormalizeRgba;
310
+ }
311
+ denormalizeHSLA(hsla) {
312
+ const denormalizeHsla = {
313
+ hue: Math.round(hsla.hue * 360),
314
+ saturation: Math.round(hsla.saturation * 100),
315
+ lightness: Math.round(hsla.lightness * 100),
316
+ alpha: Math.round(hsla.alpha * 100) / 100,
317
+ };
318
+ return denormalizeHsla;
319
+ }
320
+ denormalizeHSVA(hsla) {
321
+ const denormalizeHsva = {
322
+ hue: Math.round(hsla.hue * 360),
323
+ saturation: Math.round(hsla.saturation * 100),
324
+ value: Math.round(hsla.value * 100),
325
+ alpha: Math.round(hsla.alpha * 100) / 100,
326
+ };
327
+ return denormalizeHsva;
328
+ }
329
+ denormalizeCMYK(cmyk) {
330
+ const denormalizeCmyk = {
331
+ cyan: Math.round(cmyk.cyan * 100),
332
+ magenta: Math.round(cmyk.magenta * 100),
333
+ yellow: Math.round(cmyk.yellow * 100),
334
+ key: Math.round(cmyk.key * 100),
335
+ };
336
+ return denormalizeCmyk;
337
+ }
338
+ }
339
+ SkyColorpickerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyColorpickerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
340
+ SkyColorpickerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyColorpickerService });
341
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyColorpickerService, decorators: [{
342
+ type: Injectable
343
+ }], ctorParameters: function () { return []; } });
344
+ //# sourceMappingURL=colorpicker.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"colorpicker.service.js","sourceRoot":"","sources":["../../../../../../../../libs/components/colorpicker/src/lib/modules/colorpicker/colorpicker.service.ts"],"names":[],"mappings":"AAAA,6EAA6E;AAC7E,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;;AAO3C;;GAEG;AAEH,MAAM,OAAO,qBAAqB;IAChC,gBAAe,CAAC;IAET,SAAS,CAAC,IAAwB;QACvC,MAAM,KAAK,GAAW,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;QAC9C,MAAM,GAAG,GAAW,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;QAC1C,MAAM,SAAS,GAAW,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC;QACtD,MAAM,UAAU,GAAW,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC;QACxD,IAAI,IAAI,GAAuB;YAC7B,GAAG,EAAE,GAAG;YACR,UAAU,EAAE,UAAU;YACtB,KAAK,EAAE,SAAS;YAChB,KAAK,EAAE,KAAK;SACb,CAAC;QACF,IAAI,SAAS,KAAK,CAAC,EAAE;YACnB,IAAI,CAAC,UAAU,GAAG,CAAC,CAAC;YACpB,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC;SAChB;aAAM;YACL,IAAI,CAAC,KAAK;gBACR,SAAS,GAA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Ae,CAAC;IACzB,CAAC;;mHAxWU,qBAAqB;uHAArB,qBAAqB;4FAArB,qBAAqB;kBADjC,UAAU","sourcesContent":["// spell-checker:ignore hsva, hsla, cmyk, denormalize, colorpicker,Injectable\nimport { Injectable } from '@angular/core';\nimport { SkyColorpickerCmyk } from './types/colorpicker-cmyk';\nimport { SkyColorpickerHsla } from './types/colorpicker-hsla';\nimport { SkyColorpickerHsva } from './types/colorpicker-hsva';\nimport { SkyColorpickerRgba } from './types/colorpicker-rgba';\nimport { SkyColorpickerOutput } from './types/colorpicker-output';\n\n/**\n * @internal\n */\n@Injectable()\nexport class SkyColorpickerService {\n constructor() {}\n\n public hsla2hsva(hsla: SkyColorpickerHsla): SkyColorpickerHsva {\n const alpha: number = Math.min(hsla.alpha, 1);\n const hue: number = Math.min(hsla.hue, 1);\n const lightness: number = Math.min(hsla.lightness, 1);\n const saturation: number = Math.min(hsla.saturation, 1);\n let hsva: SkyColorpickerHsva = {\n hue: hue,\n saturation: saturation,\n value: lightness,\n alpha: alpha,\n };\n if (lightness === 0) {\n hsva.saturation = 0;\n hsva.value = 0;\n } else {\n hsva.value =\n lightness + (saturation * (1 - Math.abs(2 * lightness - 1))) / 2;\n hsva.saturation = (2 * (hsva.value - lightness)) / hsva.value;\n }\n return hsva;\n }\n\n public hsva2hsla(hsva: SkyColorpickerHsva): SkyColorpickerHsla {\n const alpha: number = hsva.alpha;\n const hue: number = hsva.hue;\n const saturation: number = hsva.saturation;\n const value: number = hsva.value;\n\n let hsla: SkyColorpickerHsla = {\n hue: hue,\n saturation: saturation,\n lightness: value,\n alpha: alpha,\n };\n if (value === 0) {\n hsla.lightness = 0;\n hsla.saturation = 0;\n } else {\n hsla.lightness = (value * (2 - saturation)) / 2;\n hsla.saturation =\n (value * saturation) / (1 - Math.abs(2 * hsla.lightness - 1));\n }\n return hsla;\n }\n\n public rgbaToHsva(rgba: SkyColorpickerRgba): SkyColorpickerHsva {\n const red: number = Math.min(rgba.red, 1);\n const green: number = Math.min(rgba.green, 1);\n const blue: number = Math.min(rgba.blue, 1);\n const alpha: number = Math.min(rgba.alpha, 1);\n const max: number = Math.max(red, green, blue);\n const min: number = Math.min(red, green, blue);\n const value: number = max;\n const d = max - min;\n const saturation: number = max === 0 ? 0 : d / max;\n let hue: number = 0;\n let maxValue: { [key: number]: number };\n if (max !== min) {\n maxValue = {\n [red]: (green - blue) / d + (green < blue ? 6 : 0),\n [green]: (blue - red) / d + 2,\n [blue]: (red - green) / d + 4,\n };\n hue = maxValue[max];\n hue /= 6;\n }\n const hsva: SkyColorpickerHsva = {\n hue: hue,\n saturation: saturation,\n value: value,\n alpha: alpha,\n };\n return hsva;\n }\n\n public rgbaToCmyk(rgba: SkyColorpickerRgba): SkyColorpickerCmyk {\n let cmyk: SkyColorpickerCmyk = { cyan: 0, magenta: 0, yellow: 0, key: 0 };\n const key: number = 1 - Math.max(rgba.red, rgba.green, rgba.blue);\n\n if (key === 1) {\n cmyk.key = 1;\n return cmyk;\n }\n cmyk.cyan = (1 - rgba.red - key) / (1 - key);\n cmyk.magenta = (1 - rgba.green - key) / (1 - key);\n cmyk.yellow = (1 - rgba.blue - key) / (1 - key);\n cmyk.key = key;\n return cmyk;\n }\n\n public hsvaToRgba(hsva: SkyColorpickerHsva): SkyColorpickerRgba {\n let red: number = 0;\n let green: number = 0;\n let blue: number = 0;\n const hue = hsva.hue;\n const saturation = hsva.saturation;\n const value = hsva.value;\n const alpha = hsva.alpha || hsva.alpha === 0 ? hsva.alpha : 1;\n const i = Math.floor(hue * 6);\n const f = hue * 6 - i;\n const p = value * (1 - saturation);\n const q = value * (1 - f * saturation);\n const t = value * (1 - (1 - f) * saturation);\n const color: { [key: number]: any } = {\n 0: (): void => {\n red = value;\n green = t;\n blue = p;\n },\n 1: (): void => {\n red = q;\n green = value;\n blue = p;\n },\n 2: (): void => {\n red = p;\n green = value;\n blue = t;\n },\n 3: (): void => {\n red = p;\n green = q;\n blue = value;\n },\n 4: (): void => {\n red = t;\n green = p;\n blue = value;\n },\n 5: (): void => {\n red = value;\n green = p;\n blue = q;\n },\n };\n color[i % 6]();\n\n const rgba: SkyColorpickerRgba = {\n red: red,\n green: green,\n blue: blue,\n alpha: alpha,\n };\n return rgba;\n }\n\n public stringToHsva(colorString: string, hex8: boolean): SkyColorpickerHsva {\n let stringParsers = [\n {\n // tslint:disable max-line-length\n re: /(rgb)a?\\(\\s*(\\d{1,3})\\s*,\\s*(\\d{1,3})\\s*%?,\\s*(\\d{1,3})\\s*%?(?:,\\s*(\\d+(?:\\.\\d+)?)\\s*)?\\)/,\n parse: (execResult: any) => {\n const rgba: SkyColorpickerRgba = {\n red: parseInt(execResult[2], 0) / 255,\n green: parseInt(execResult[3], 0) / 255,\n blue: parseInt(execResult[4], 0) / 255,\n alpha: parseFloat(execResult[5]),\n };\n return rgba;\n },\n },\n {\n re: /(hsl)a?\\(\\s*(\\d{1,3})\\s*,\\s*(\\d{1,3})%\\s*,\\s*(\\d{1,3})%\\s*(?:,\\s*(\\d+(?:\\.\\d+)?)\\s*)?\\)/,\n parse: (execResult: any) => {\n const hsla: SkyColorpickerHsla = {\n hue: parseInt(execResult[2], 0) / 360,\n saturation: parseInt(execResult[3], 0) / 100,\n lightness: parseInt(execResult[4], 0) / 100,\n alpha: parseFloat(execResult[5]),\n };\n return hsla;\n // tslint:enable max-line-length\n },\n },\n ];\n if (hex8) {\n stringParsers.push({\n re: /#?([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})$/,\n parse: (execResult: any) => {\n const rgba: SkyColorpickerRgba = {\n red: parseInt(execResult[1], 16) / 255,\n green: parseInt(execResult[2], 16) / 255,\n blue: parseInt(execResult[3], 16) / 255,\n alpha: parseInt(execResult[4], 16) / 255,\n };\n return rgba;\n },\n });\n } else {\n stringParsers.push(\n {\n re: /#?([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})$/,\n parse: (execResult: any) => {\n const rgba: SkyColorpickerRgba = {\n red: parseInt(execResult[1], 16) / 255,\n green: parseInt(execResult[2], 16) / 255,\n blue: parseInt(execResult[3], 16) / 255,\n alpha: 1,\n };\n return rgba;\n },\n },\n {\n re: /#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])$/,\n parse: (execResult: any) => {\n const rgba: SkyColorpickerRgba = {\n red: parseInt(execResult[1] + execResult[1], 16) / 255,\n green: parseInt(execResult[2] + execResult[2], 16) / 255,\n blue: parseInt(execResult[3] + execResult[3], 16) / 255,\n alpha: 1,\n };\n return rgba;\n },\n }\n );\n }\n\n let hsva: SkyColorpickerHsva = undefined;\n for (let key in stringParsers) {\n /* istanbul ignore else */ /* for in must be filtered by an if */\n if (stringParsers.hasOwnProperty(key)) {\n let parser = stringParsers[key];\n let match = parser.re.exec(colorString);\n let color: any = match && parser.parse(match);\n if (color) {\n if ('red' in color) {\n hsva = this.rgbaToHsva(color);\n }\n if ('hue' in color) {\n hsva = this.hsla2hsva(color);\n }\n\n return hsva;\n }\n }\n }\n return hsva;\n }\n\n public outputFormat(\n hsva: SkyColorpickerHsva,\n outputFormat: string,\n allowHex8: boolean\n ): string {\n if (['hsla', 'hex', 'cmyk'].indexOf(outputFormat) === -1) {\n outputFormat = 'rgba';\n }\n let color: { [key: string]: any } = {\n hsla: () => {\n let hsla = this.denormalizeHSLA(this.hsva2hsla(hsva));\n return `hsla(${hsla.hue},${hsla.saturation}%,${hsla.lightness}%,${hsla.alpha})`;\n },\n hex: () => {\n return this.hexText(\n this.denormalizeRGBA(this.hsvaToRgba(hsva)),\n allowHex8\n );\n },\n cmyk: () => {\n let cmyk = this.denormalizeCMYK(this.rgbaToCmyk(this.hsvaToRgba(hsva)));\n return `cmyk(${cmyk.cyan}%,${cmyk.magenta}%,${cmyk.yellow}%,${cmyk.key}%)`;\n },\n rgba: () => {\n let rgba = this.denormalizeRGBA(this.hsvaToRgba(hsva));\n return `rgba(${rgba.red},${rgba.green},${rgba.blue},${rgba.alpha})`;\n },\n };\n\n return color[outputFormat]();\n }\n\n public skyColorpickerOut(color: SkyColorpickerHsva) {\n let formatColor: SkyColorpickerOutput;\n let cmykText: string = this.outputFormat(color, 'cmyk', true);\n let hslaText: string = this.outputFormat(color, 'hsla', true);\n let rgbaText: string = this.outputFormat(color, 'rgba', true);\n let rgba: SkyColorpickerRgba = this.hsvaToRgba(color);\n let hsla: SkyColorpickerHsla = this.hsva2hsla(color);\n let cmyk: SkyColorpickerCmyk = this.rgbaToCmyk(rgba);\n let hex: string = this.outputFormat(color, 'hex', false);\n\n formatColor = {\n cmykText: cmykText,\n hslaText: hslaText,\n rgbaText: rgbaText,\n hsva: this.denormalizeHSVA(color),\n rgba: this.denormalizeRGBA(rgba),\n hsla: this.denormalizeHSLA(hsla),\n cmyk: this.denormalizeCMYK(cmyk),\n hex: hex,\n };\n return formatColor;\n }\n\n public hexText(rgba: SkyColorpickerRgba, allowHex8: boolean): string {\n // tslint:disable no-bitwise\n let hexText =\n '#' +\n ((1 << 24) | (rgba.red << 16) | (rgba.green << 8) | rgba.blue)\n .toString(16)\n .substr(1);\n if (\n hexText[1] === hexText[2] &&\n hexText[3] === hexText[4] &&\n hexText[5] === hexText[6] &&\n rgba.alpha === 1 &&\n !allowHex8\n ) {\n hexText = '#' + hexText[1] + hexText[3] + hexText[5];\n }\n if (allowHex8) {\n hexText += ((1 << 8) | Math.round(rgba.alpha * 255))\n .toString(16)\n .substr(1);\n }\n return hexText;\n // tslint:enable no-bitwise\n }\n\n public denormalizeRGBA(rgba: SkyColorpickerRgba): SkyColorpickerRgba {\n const denormalizeRgba: SkyColorpickerRgba = {\n red: Math.round(rgba.red * 255),\n green: Math.round(rgba.green * 255),\n blue: Math.round(rgba.blue * 255),\n alpha: Math.round(rgba.alpha * 100) / 100,\n };\n return denormalizeRgba;\n }\n\n public denormalizeHSLA(hsla: SkyColorpickerHsla): SkyColorpickerHsla {\n const denormalizeHsla: SkyColorpickerHsla = {\n hue: Math.round(hsla.hue * 360),\n saturation: Math.round(hsla.saturation * 100),\n lightness: Math.round(hsla.lightness * 100),\n alpha: Math.round(hsla.alpha * 100) / 100,\n };\n return denormalizeHsla;\n }\n\n public denormalizeHSVA(hsla: SkyColorpickerHsva): SkyColorpickerHsva {\n const denormalizeHsva: SkyColorpickerHsva = {\n hue: Math.round(hsla.hue * 360),\n saturation: Math.round(hsla.saturation * 100),\n value: Math.round(hsla.value * 100),\n alpha: Math.round(hsla.alpha * 100) / 100,\n };\n return denormalizeHsva;\n }\n\n public denormalizeCMYK(cmyk: SkyColorpickerCmyk): SkyColorpickerCmyk {\n const denormalizeCmyk: SkyColorpickerCmyk = {\n cyan: Math.round(cmyk.cyan * 100),\n magenta: Math.round(cmyk.magenta * 100),\n yellow: Math.round(cmyk.yellow * 100),\n key: Math.round(cmyk.key * 100),\n };\n return denormalizeCmyk;\n }\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=colorpicker-axis.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"colorpicker-axis.js","sourceRoot":"","sources":["../../../../../../../../../libs/components/colorpicker/src/lib/modules/colorpicker/types/colorpicker-axis.ts"],"names":[],"mappings":"","sourcesContent":["// spell-checker:ignore Colorpicker,\n/**\n * @internal\n */\nexport interface SkyColorpickerChangeAxis {\n yAxis?: number;\n xAxis?: number;\n xCoordinate?: number;\n yCoordinate?: number;\n maxRange?: number;\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=colorpicker-cmyk.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"colorpicker-cmyk.js","sourceRoot":"","sources":["../../../../../../../../../libs/components/colorpicker/src/lib/modules/colorpicker/types/colorpicker-cmyk.ts"],"names":[],"mappings":"","sourcesContent":["// spell-checker:ignore cmyk, colorpicker\n/**\n * Specifies colors as a combination of cyan, magenta, yellow, and black.\n */\nexport interface SkyColorpickerCmyk {\n /**\n * Specifies the percentage of cyan to use.\n */\n cyan: number;\n /**\n * Specifies the percentage of magenta to use.\n */\n magenta: number;\n /**\n * Specifies the percentage of yellow to use.\n */\n yellow: number;\n /**\n * Specifies the percentage of black to use.\n */\n key: number;\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=colorpicker-color.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"colorpicker-color.js","sourceRoot":"","sources":["../../../../../../../../../libs/components/colorpicker/src/lib/modules/colorpicker/types/colorpicker-color.ts"],"names":[],"mappings":"","sourcesContent":["// spell-checker:ignore Colorpicker,\n/**\n * @internal\n */\nexport interface SkyColorpickerChangeColor {\n color: string;\n colorValue: number;\n maxRange: number;\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=colorpicker-hsla.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"colorpicker-hsla.js","sourceRoot":"","sources":["../../../../../../../../../libs/components/colorpicker/src/lib/modules/colorpicker/types/colorpicker-hsla.ts"],"names":[],"mappings":"","sourcesContent":["// spell-checker:ignore hsla,colorpicker\n/**\n * Specifies colors as a combination of hue, saturation, and lightness with an alpha\n * channel that specifies the opacity of the color.\n */\nexport interface SkyColorpickerHsla {\n /**\n * Specifies the hue, which is a degree on the color wheel from 0 to 360.\n * 0 is red, 120 is green, and 240 is blue.\n */\n hue: number;\n /**\n * Specifies the saturation, which is a percentage value where 0 percent is a\n * shade of gray and 100 percent is the full color.\n */\n saturation: number;\n /**\n * Specifies the lightness, which is a percentage value where 0 percent is\n * black and 100 percent is white.\n */\n lightness: number;\n /**\n * Specifies the alpha channel to set the opacity.\n */\n alpha: number;\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=colorpicker-hsva.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"colorpicker-hsva.js","sourceRoot":"","sources":["../../../../../../../../../libs/components/colorpicker/src/lib/modules/colorpicker/types/colorpicker-hsva.ts"],"names":[],"mappings":"","sourcesContent":["// spell-checker:ignore hsva,colorpicker\n/**\n * Specifies colors as a combination of hue, saturation, and value with an alpha\n * channel that specifies the opacity of the color.\n */\nexport interface SkyColorpickerHsva {\n /**\n * Specifies the hue, which is a degree on the color wheel from 0 to 360.\n * 0 is red, 120 is green, and 240 is blue.\n */\n hue: number;\n /**\n * Specifies the saturation, which is a percentage value where 0 percent is a\n * shade of gray and 100 percent is the full color.\n */\n saturation: number;\n /**\n * Specifies the value, which is a percentage value that describes the brightness\n * or intensity of the color where 0 is completely black and 100 is the brightest\n * and reveals the most color.\n */\n value: number;\n /**\n * Specifies the alpha channel to set the opacity.\n */\n alpha: number;\n}\n"]}
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Specifies the commands to provide the colorpicker.
3
+ */
4
+ export var SkyColorpickerMessageType;
5
+ (function (SkyColorpickerMessageType) {
6
+ /**
7
+ * Opens the colorpicker.
8
+ */
9
+ SkyColorpickerMessageType[SkyColorpickerMessageType["Open"] = 0] = "Open";
10
+ /**
11
+ * Resets the selection in the colorpicker.
12
+ */
13
+ SkyColorpickerMessageType[SkyColorpickerMessageType["Reset"] = 1] = "Reset";
14
+ /**
15
+ * Toggles whether to display a reset button beside the colorpicker.
16
+ */
17
+ SkyColorpickerMessageType[SkyColorpickerMessageType["ToggleResetButton"] = 2] = "ToggleResetButton";
18
+ /**
19
+ * Closes the colorpicker.
20
+ */
21
+ SkyColorpickerMessageType[SkyColorpickerMessageType["Close"] = 3] = "Close";
22
+ })(SkyColorpickerMessageType || (SkyColorpickerMessageType = {}));
23
+ //# sourceMappingURL=colorpicker-message-type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"colorpicker-message-type.js","sourceRoot":"","sources":["../../../../../../../../../libs/components/colorpicker/src/lib/modules/colorpicker/types/colorpicker-message-type.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,CAAN,IAAY,yBAiBX;AAjBD,WAAY,yBAAyB;IACnC;;OAEG;IACH,yEAAQ,CAAA;IACR;;OAEG;IACH,2EAAS,CAAA;IACT;;OAEG;IACH,mGAAqB,CAAA;IACrB;;OAEG;IACH,2EAAS,CAAA;AACX,CAAC,EAjBW,yBAAyB,KAAzB,yBAAyB,QAiBpC","sourcesContent":["/**\n * Specifies the commands to provide the colorpicker.\n */\nexport enum SkyColorpickerMessageType {\n /**\n * Opens the colorpicker.\n */\n Open = 0,\n /**\n * Resets the selection in the colorpicker.\n */\n Reset = 1,\n /**\n * Toggles whether to display a reset button beside the colorpicker.\n */\n ToggleResetButton = 2,\n /**\n * Closes the colorpicker.\n */\n Close = 3,\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=colorpicker-message.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"colorpicker-message.js","sourceRoot":"","sources":["../../../../../../../../../libs/components/colorpicker/src/lib/modules/colorpicker/types/colorpicker-message.ts"],"names":[],"mappings":"","sourcesContent":["import { SkyColorpickerMessageType } from './colorpicker-message-type';\n\n/**\n * Provides commands for the colorpicker through a message stream.\n */\nexport interface SkyColorpickerMessage {\n /**\n * Specifies the message type.\n */\n type?: SkyColorpickerMessageType;\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=colorpicker-output.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"colorpicker-output.js","sourceRoot":"","sources":["../../../../../../../../../libs/components/colorpicker/src/lib/modules/colorpicker/types/colorpicker-output.ts"],"names":[],"mappings":"","sourcesContent":["// spell-checker:ignore Colorpicker, denormalize, Hsla, Hsva,Cmyk\nimport { SkyColorpickerCmyk } from './colorpicker-cmyk';\nimport { SkyColorpickerHsla } from './colorpicker-hsla';\nimport { SkyColorpickerHsva } from './colorpicker-hsva';\nimport { SkyColorpickerRgba } from './colorpicker-rgba';\n\n/**\n * Describes the color that users select in the colorpicker.\n */\nexport interface SkyColorpickerOutput {\n /**\n * Specifies an HSLA text value for the selected color.\n */\n hslaText: string;\n /**\n * Specifies an RGBA text value for the selected color.\n */\n rgbaText: string;\n /**\n * Specifies a CMYK text value for the selected color.\n */\n cmykText: string;\n /**\n * Specifies the HSVA values for the selected color.\n */\n hsva: SkyColorpickerHsva;\n /**\n * Specifies the RGBA values for the selected color.\n */\n rgba: SkyColorpickerRgba;\n /**\n * Specifies the HSLA values for the selected color.\n */\n hsla: SkyColorpickerHsla;\n /**\n * Specifies the CMYK values for the selected color.\n */\n cmyk: SkyColorpickerCmyk;\n /**\n * Specifies the hex value for the selected color.\n */\n hex: string;\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=colorpicker-result.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"colorpicker-result.js","sourceRoot":"","sources":["../../../../../../../../../libs/components/colorpicker/src/lib/modules/colorpicker/types/colorpicker-result.ts"],"names":[],"mappings":"","sourcesContent":["import { SkyColorpickerOutput } from './colorpicker-output';\n/**\n * Indicates the color that users apply when they select Apply in the colorpicker.\n */\nexport interface SkyColorpickerResult {\n /**\n * Describes the color that users select in the colorpicker.\n */\n color: SkyColorpickerOutput;\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=colorpicker-rgba.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"colorpicker-rgba.js","sourceRoot":"","sources":["../../../../../../../../../libs/components/colorpicker/src/lib/modules/colorpicker/types/colorpicker-rgba.ts"],"names":[],"mappings":"","sourcesContent":["// spell-checker:ignore colorpicker\n/**\n * Specifies colors as a combination of red, green, and blue with an alpha\n * channel that specifies the opacity of the color.\n */\nexport interface SkyColorpickerRgba {\n /**\n * Specifies the percentage of red to use.\n */\n red: number;\n /**\n * Specifies the percentage of green to use.\n */\n green: number;\n /**\n * Specifies the percentage of blue to use.\n */\n blue: number;\n /**\n * Specifies the alpha channel to set the opacity.\n */\n alpha: number;\n}\n"]}
@@ -0,0 +1,69 @@
1
+ /**
2
+ * NOTICE: DO NOT MODIFY THIS FILE!
3
+ * The contents of this file were automatically generated by
4
+ * the 'ng generate @skyux/i18n:lib-resources-module modules/shared/sky-colorpicker' schematic.
5
+ * To update this file, simply rerun the command.
6
+ */
7
+ import { NgModule, Injectable } from '@angular/core';
8
+ import { getLibStringForLocale, SkyI18nModule, SKY_LIB_RESOURCES_PROVIDERS, } from '@skyux/i18n';
9
+ import * as i0 from "@angular/core";
10
+ const RESOURCES = {
11
+ 'EN-US': {
12
+ skyux_colorpicker_alpha: { message: 'A:' },
13
+ skyux_colorpicker_apply: { message: 'Apply' },
14
+ skyux_colorpicker_aria_alpha: {
15
+ message: 'Alpha channel value between 0 and 1',
16
+ },
17
+ skyux_colorpicker_aria_blue: { message: 'Blue value between 0 and 255' },
18
+ skyux_colorpicker_aria_green: { message: 'Green value between 0 and 255' },
19
+ skyux_colorpicker_aria_hex: { message: 'Hexadecimal color code' },
20
+ skyux_colorpicker_aria_red: { message: 'Red value between 0 and 255' },
21
+ skyux_colorpicker_blue: { message: 'B:' },
22
+ skyux_colorpicker_close: { message: 'Cancel' },
23
+ skyux_colorpicker_dropdown_button: { message: 'Select color value' },
24
+ skyux_colorpicker_green: { message: 'G:' },
25
+ skyux_colorpicker_hex: { message: 'Hex:' },
26
+ skyux_colorpicker_input_default_label: { message: 'Color value' },
27
+ skyux_colorpicker_preset_color: { message: 'Preset Color:' },
28
+ skyux_colorpicker_red: { message: 'R:' },
29
+ skyux_colorpicker_reset: { message: 'Reset color value to white' },
30
+ },
31
+ };
32
+ export class SkyColorpickerResourcesProvider {
33
+ getString(localeInfo, name) {
34
+ return getLibStringForLocale(RESOURCES, localeInfo.locale, name);
35
+ }
36
+ }
37
+ SkyColorpickerResourcesProvider.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyColorpickerResourcesProvider, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
38
+ SkyColorpickerResourcesProvider.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyColorpickerResourcesProvider });
39
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyColorpickerResourcesProvider, decorators: [{
40
+ type: Injectable
41
+ }] });
42
+ /**
43
+ * Import into any component library module that needs to use resource strings.
44
+ */
45
+ export class SkyColorpickerResourcesModule {
46
+ }
47
+ SkyColorpickerResourcesModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyColorpickerResourcesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
48
+ SkyColorpickerResourcesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyColorpickerResourcesModule, exports: [SkyI18nModule] });
49
+ SkyColorpickerResourcesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyColorpickerResourcesModule, providers: [
50
+ {
51
+ provide: SKY_LIB_RESOURCES_PROVIDERS,
52
+ useClass: SkyColorpickerResourcesProvider,
53
+ multi: true,
54
+ },
55
+ ], imports: [SkyI18nModule] });
56
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyColorpickerResourcesModule, decorators: [{
57
+ type: NgModule,
58
+ args: [{
59
+ exports: [SkyI18nModule],
60
+ providers: [
61
+ {
62
+ provide: SKY_LIB_RESOURCES_PROVIDERS,
63
+ useClass: SkyColorpickerResourcesProvider,
64
+ multi: true,
65
+ },
66
+ ],
67
+ }]
68
+ }] });
69
+ //# sourceMappingURL=sky-colorpicker-resources.module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sky-colorpicker-resources.module.js","sourceRoot":"","sources":["../../../../../../../../libs/components/colorpicker/src/lib/modules/shared/sky-colorpicker-resources.module.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;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B;;2HAA7B,6BAA6B;4HAA7B,6BAA6B,YAT9B,aAAa;4HASZ,6BAA6B,aAR7B;QACT;YACE,OAAO,EAAE,2BAA2B;YACpC,QAAQ,EAAE,+BAA+B;YACzC,KAAK,EAAE,IAAI;SACZ;KACF,YAPS,aAAa;4FASZ,6BAA6B;kBAVzC,QAAQ;mBAAC;oBACR,OAAO,EAAE,CAAC,aAAa,CAAC;oBACxB,SAAS,EAAE;wBACT;4BACE,OAAO,EAAE,2BAA2B;4BACpC,QAAQ,EAAE,+BAA+B;4BACzC,KAAK,EAAE,IAAI;yBACZ;qBACF;iBACF","sourcesContent":["/**\n * NOTICE: DO NOT MODIFY THIS FILE!\n * The contents of this file were automatically generated by\n * the 'ng generate @skyux/i18n:lib-resources-module modules/shared/sky-colorpicker' schematic.\n * To update this file, simply rerun the command.\n */\n\nimport { NgModule, Injectable } from '@angular/core';\nimport {\n getLibStringForLocale,\n SkyAppLocaleInfo,\n SkyI18nModule,\n SkyLibResources,\n SkyLibResourcesProvider,\n SKY_LIB_RESOURCES_PROVIDERS,\n} from '@skyux/i18n';\n\nconst RESOURCES: { [locale: string]: SkyLibResources } = {\n 'EN-US': {\n skyux_colorpicker_alpha: { message: 'A:' },\n skyux_colorpicker_apply: { message: 'Apply' },\n skyux_colorpicker_aria_alpha: {\n message: 'Alpha channel value between 0 and 1',\n },\n skyux_colorpicker_aria_blue: { message: 'Blue value between 0 and 255' },\n skyux_colorpicker_aria_green: { message: 'Green value between 0 and 255' },\n skyux_colorpicker_aria_hex: { message: 'Hexadecimal color code' },\n skyux_colorpicker_aria_red: { message: 'Red value between 0 and 255' },\n skyux_colorpicker_blue: { message: 'B:' },\n skyux_colorpicker_close: { message: 'Cancel' },\n skyux_colorpicker_dropdown_button: { message: 'Select color value' },\n skyux_colorpicker_green: { message: 'G:' },\n skyux_colorpicker_hex: { message: 'Hex:' },\n skyux_colorpicker_input_default_label: { message: 'Color value' },\n skyux_colorpicker_preset_color: { message: 'Preset Color:' },\n skyux_colorpicker_red: { message: 'R:' },\n skyux_colorpicker_reset: { message: 'Reset color value to white' },\n },\n};\n\n@Injectable()\nexport class SkyColorpickerResourcesProvider\n implements SkyLibResourcesProvider\n{\n public getString(localeInfo: SkyAppLocaleInfo, name: string): string {\n return getLibStringForLocale(RESOURCES, localeInfo.locale, name);\n }\n}\n\n/**\n * Import into any component library module that needs to use resource strings.\n */\n@NgModule({\n exports: [SkyI18nModule],\n providers: [\n {\n provide: SKY_LIB_RESOURCES_PROVIDERS,\n useClass: SkyColorpickerResourcesProvider,\n multi: true,\n },\n ],\n})\nexport class SkyColorpickerResourcesModule {}\n"]}
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * Generated bundle index. Do not edit.
3
3
  */
4
- export * from './public-api';
5
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2t5dXgtY29sb3JwaWNrZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9wcm9qZWN0cy9jb2xvcnBpY2tlci9zcmMvc2t5dXgtY29sb3JwaWNrZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWMtYXBpJztcbiJdfQ==
4
+ export * from './index';
5
+ //# sourceMappingURL=skyux-colorpicker.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"skyux-colorpicker.js","sourceRoot":"","sources":["../../../../../libs/components/colorpicker/src/skyux-colorpicker.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,SAAS,CAAC","sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"]}
@@ -93,4 +93,4 @@ export class SkyColorpickerFixture {
93
93
  return this.debugEl.query(By.css('sky-colorpicker input'));
94
94
  }
95
95
  }
96
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29sb3JwaWNrZXItZml4dHVyZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL2NvbG9ycGlja2VyL3Rlc3Rpbmcvc3JjL2NvbG9ycGlja2VyLWZpeHR1cmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUlBLE9BQU8sRUFBRSxFQUFFLEVBQUUsTUFBTSwyQkFBMkIsQ0FBQztBQUUvQyxPQUFPLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSxvQkFBb0IsQ0FBQztBQUV2RDs7R0FFRztBQUNILE1BQU0sT0FBTyxxQkFBcUI7SUFHaEMsWUFDVSxPQUE4QixFQUM5QixTQUFpQjtRQURqQixZQUFPLEdBQVAsT0FBTyxDQUF1QjtRQUM5QixjQUFTLEdBQVQsU0FBUyxDQUFRO1FBRXpCLElBQUksQ0FBQyxPQUFPLEdBQUcsaUJBQWlCLENBQUMsdUJBQXVCLENBQ3RELElBQUksQ0FBQyxPQUFPLEVBQ1osSUFBSSxDQUFDLFNBQVMsRUFDZCxpQkFBaUIsQ0FDbEIsQ0FBQztJQUNKLENBQUM7SUFFRDs7T0FFRztJQUNILElBQVcsS0FBSztRQUNkLE9BQU8sSUFBSSxDQUFDLHFCQUFxQixFQUFFLENBQUMsYUFBYSxDQUFDLEtBQUssQ0FBQztJQUMxRCxDQUFDO0lBRUQ7OztPQUdHO0lBQ1UsZUFBZSxDQUFDLFFBQWdCOztZQUMzQyxNQUFNLElBQUksQ0FBQyx3QkFBd0IsRUFBRSxDQUFDO1lBRXRDLE1BQU0sUUFBUSxHQUFHLFFBQVEsQ0FBQyxhQUFhLENBQ3JDLGlDQUFpQyxDQUNkLENBQUM7WUFFdEIsUUFBUSxDQUFDLEtBQU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