ngx-color 7.3.3 → 8.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/alpha/alpha-picker.component.d.ts +1 -1
- package/alpha/{ngx-color-alpha.d.ts → index.d.ts} +0 -0
- package/alpha.component.d.ts +1 -1
- package/block/block-swatches.component.d.ts +1 -1
- package/block/block.component.d.ts +1 -1
- package/block/{ngx-color-block.d.ts → index.d.ts} +0 -0
- package/checkboard.component.d.ts +1 -1
- package/chrome/chrome-fields.component.d.ts +1 -1
- package/chrome/chrome.component.d.ts +1 -1
- package/chrome/{ngx-color-chrome.d.ts → index.d.ts} +0 -0
- package/circle/circle-swatch.component.d.ts +1 -1
- package/circle/circle.component.d.ts +1 -1
- package/circle/{ngx-color-circle.d.ts → index.d.ts} +0 -0
- package/color-wrap.component.d.ts +1 -1
- package/compact/compact-color.component.d.ts +1 -1
- package/compact/compact-fields.component.d.ts +1 -1
- package/compact/compact.component.d.ts +1 -1
- package/compact/{ngx-color-compact.d.ts → index.d.ts} +0 -0
- package/coordinates.directive.d.ts +2 -2
- package/editable-input.component.d.ts +1 -1
- package/esm2020/alpha/alpha-picker.component.mjs +12 -28
- package/esm2020/alpha.component.mjs +13 -61
- package/esm2020/block/block-swatches.component.mjs +9 -20
- package/esm2020/block/block.component.mjs +14 -55
- package/esm2020/checkboard.component.mjs +9 -25
- package/esm2020/chrome/chrome-fields.component.mjs +9 -51
- package/esm2020/chrome/chrome.component.mjs +19 -84
- package/esm2020/circle/circle-swatch.component.mjs +7 -23
- package/esm2020/circle/circle.component.mjs +12 -26
- package/esm2020/color-wrap.component.mjs +10 -10
- package/esm2020/compact/compact-color.component.mjs +7 -28
- package/esm2020/compact/compact-fields.component.mjs +7 -29
- package/esm2020/compact/compact.component.mjs +14 -37
- package/esm2020/coordinates.directive.mjs +9 -9
- package/esm2020/editable-input.component.mjs +13 -31
- package/esm2020/github/github-swatch.component.mjs +7 -21
- package/esm2020/github/github.component.mjs +12 -79
- package/esm2020/hue/hue-picker.component.mjs +12 -25
- package/esm2020/hue.component.mjs +13 -54
- package/esm2020/material/material.component.mjs +12 -37
- package/esm2020/photoshop/photoshop-button.component.mjs +6 -35
- package/esm2020/photoshop/photoshop-fields.component.mjs +7 -36
- package/esm2020/photoshop/photoshop-previews.component.mjs +6 -34
- package/esm2020/photoshop/photoshop.component.mjs +17 -90
- package/esm2020/raised.component.mjs +10 -49
- package/esm2020/saturation.component.mjs +13 -57
- package/esm2020/shade/shade-picker.component.mjs +12 -25
- package/esm2020/shade.component.mjs +11 -51
- package/esm2020/sketch/sketch-fields.component.mjs +9 -43
- package/esm2020/sketch/sketch-preset-colors.component.mjs +9 -39
- package/esm2020/sketch/sketch.component.mjs +20 -91
- package/esm2020/slider/slider-swatch.component.mjs +6 -34
- package/esm2020/slider/slider-swatches.component.mjs +7 -23
- package/esm2020/slider/slider.component.mjs +12 -26
- package/esm2020/swatch.component.mjs +13 -28
- package/esm2020/swatches/swatches-color.component.mjs +9 -28
- package/esm2020/swatches/swatches-group.component.mjs +9 -24
- package/esm2020/swatches/swatches.component.mjs +14 -30
- package/esm2020/twitter/twitter.component.mjs +14 -110
- package/fesm2015/ngx-color-alpha.mjs +11 -27
- package/fesm2015/ngx-color-alpha.mjs.map +1 -1
- package/fesm2015/ngx-color-block.mjs +20 -72
- package/fesm2015/ngx-color-block.mjs.map +1 -1
- package/fesm2015/ngx-color-chrome.mjs +24 -131
- package/fesm2015/ngx-color-chrome.mjs.map +1 -1
- package/fesm2015/ngx-color-circle.mjs +17 -47
- package/fesm2015/ngx-color-circle.mjs.map +1 -1
- package/fesm2015/ngx-color-compact.mjs +24 -90
- package/fesm2015/ngx-color-compact.mjs.map +1 -1
- package/fesm2015/ngx-color-github.mjs +17 -98
- package/fesm2015/ngx-color-github.mjs.map +1 -1
- package/fesm2015/ngx-color-hue.mjs +11 -24
- package/fesm2015/ngx-color-hue.mjs.map +1 -1
- package/fesm2015/ngx-color-material.mjs +11 -36
- package/fesm2015/ngx-color-material.mjs.map +1 -1
- package/fesm2015/ngx-color-photoshop.mjs +32 -191
- package/fesm2015/ngx-color-photoshop.mjs.map +1 -1
- package/fesm2015/ngx-color-shade.mjs +11 -24
- package/fesm2015/ngx-color-shade.mjs.map +1 -1
- package/fesm2015/ngx-color-sketch.mjs +31 -166
- package/fesm2015/ngx-color-sketch.mjs.map +1 -1
- package/fesm2015/ngx-color-slider.mjs +22 -80
- package/fesm2015/ngx-color-slider.mjs.map +1 -1
- package/fesm2015/ngx-color-swatches.mjs +25 -75
- package/fesm2015/ngx-color-swatches.mjs.map +1 -1
- package/fesm2015/ngx-color-twitter.mjs +13 -109
- package/fesm2015/ngx-color-twitter.mjs.map +1 -1
- package/fesm2015/ngx-color.mjs +100 -359
- package/fesm2015/ngx-color.mjs.map +1 -1
- package/fesm2020/ngx-color-alpha.mjs +11 -27
- package/fesm2020/ngx-color-alpha.mjs.map +1 -1
- package/fesm2020/ngx-color-block.mjs +20 -72
- package/fesm2020/ngx-color-block.mjs.map +1 -1
- package/fesm2020/ngx-color-chrome.mjs +24 -131
- package/fesm2020/ngx-color-chrome.mjs.map +1 -1
- package/fesm2020/ngx-color-circle.mjs +17 -47
- package/fesm2020/ngx-color-circle.mjs.map +1 -1
- package/fesm2020/ngx-color-compact.mjs +24 -90
- package/fesm2020/ngx-color-compact.mjs.map +1 -1
- package/fesm2020/ngx-color-github.mjs +17 -98
- package/fesm2020/ngx-color-github.mjs.map +1 -1
- package/fesm2020/ngx-color-hue.mjs +11 -24
- package/fesm2020/ngx-color-hue.mjs.map +1 -1
- package/fesm2020/ngx-color-material.mjs +11 -36
- package/fesm2020/ngx-color-material.mjs.map +1 -1
- package/fesm2020/ngx-color-photoshop.mjs +32 -191
- package/fesm2020/ngx-color-photoshop.mjs.map +1 -1
- package/fesm2020/ngx-color-shade.mjs +11 -24
- package/fesm2020/ngx-color-shade.mjs.map +1 -1
- package/fesm2020/ngx-color-sketch.mjs +31 -166
- package/fesm2020/ngx-color-sketch.mjs.map +1 -1
- package/fesm2020/ngx-color-slider.mjs +22 -80
- package/fesm2020/ngx-color-slider.mjs.map +1 -1
- package/fesm2020/ngx-color-swatches.mjs +25 -75
- package/fesm2020/ngx-color-swatches.mjs.map +1 -1
- package/fesm2020/ngx-color-twitter.mjs +13 -109
- package/fesm2020/ngx-color-twitter.mjs.map +1 -1
- package/fesm2020/ngx-color.mjs +97 -358
- package/fesm2020/ngx-color.mjs.map +1 -1
- package/github/github-swatch.component.d.ts +1 -1
- package/github/github.component.d.ts +1 -1
- package/github/{ngx-color-github.d.ts → index.d.ts} +0 -0
- package/hue/hue-picker.component.d.ts +1 -1
- package/hue/{ngx-color-hue.d.ts → index.d.ts} +0 -0
- package/hue.component.d.ts +1 -1
- package/{ngx-color.d.ts → index.d.ts} +0 -0
- package/material/{ngx-color-material.d.ts → index.d.ts} +0 -0
- package/material/material.component.d.ts +1 -1
- package/package.json +20 -21
- package/photoshop/{ngx-color-photoshop.d.ts → index.d.ts} +0 -0
- package/photoshop/photoshop-button.component.d.ts +1 -1
- package/photoshop/photoshop-fields.component.d.ts +1 -1
- package/photoshop/photoshop-previews.component.d.ts +1 -1
- package/photoshop/photoshop.component.d.ts +1 -1
- package/raised.component.d.ts +1 -1
- package/saturation.component.d.ts +1 -1
- package/shade/{ngx-color-shade.d.ts → index.d.ts} +0 -0
- package/shade/shade-picker.component.d.ts +1 -1
- package/shade.component.d.ts +1 -1
- package/sketch/{ngx-color-sketch.d.ts → index.d.ts} +0 -0
- package/sketch/sketch-fields.component.d.ts +1 -1
- package/sketch/sketch-preset-colors.component.d.ts +1 -1
- package/sketch/sketch.component.d.ts +1 -1
- package/slider/{ngx-color-slider.d.ts → index.d.ts} +0 -0
- package/slider/slider-swatch.component.d.ts +1 -1
- package/slider/slider-swatches.component.d.ts +1 -1
- package/slider/slider.component.d.ts +1 -1
- package/swatch.component.d.ts +1 -1
- package/swatches/{ngx-color-swatches.d.ts → index.d.ts} +0 -0
- package/swatches/swatches-color.component.d.ts +1 -1
- package/swatches/swatches-group.component.d.ts +1 -1
- package/swatches/swatches.component.d.ts +1 -1
- package/twitter/{ngx-color-twitter.d.ts → index.d.ts} +0 -0
- package/twitter/twitter.component.d.ts +1 -1
- package/alpha/package.json +0 -17
- package/block/package.json +0 -16
- package/chrome/package.json +0 -16
- package/circle/package.json +0 -19
- package/compact/package.json +0 -16
- package/github/package.json +0 -16
- package/hue/package.json +0 -15
- package/material/package.json +0 -15
- package/photoshop/package.json +0 -15
- package/shade/package.json +0 -17
- package/sketch/package.json +0 -15
- package/slider/package.json +0 -15
- package/swatches/package.json +0 -18
- package/twitter/package.json +0 -15
package/fesm2015/ngx-color.mjs
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import * as
|
1
|
+
import * as i1 from '@angular/common';
|
2
2
|
import { CommonModule } from '@angular/common';
|
3
3
|
import * as i0 from '@angular/core';
|
4
4
|
import { Component, ChangeDetectionStrategy, Input, NgModule, Directive, Output, HostListener, EventEmitter, isDevMode, forwardRef } from '@angular/core';
|
@@ -55,27 +55,11 @@ class CheckboardComponent {
|
|
55
55
|
};
|
56
56
|
}
|
57
57
|
}
|
58
|
-
CheckboardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
59
|
-
CheckboardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
60
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
58
|
+
CheckboardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: CheckboardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
59
|
+
CheckboardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", type: CheckboardComponent, selector: "color-checkboard", inputs: { white: "white", size: "size", grey: "grey", boxShadow: "boxShadow", borderRadius: "borderRadius" }, ngImport: i0, template: `<div class="grid" [ngStyle]="gridStyles"></div>`, isInline: true, styles: [".grid{top:0px;right:0px;bottom:0px;left:0px;position:absolute}\n"], dependencies: [{ kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
60
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: CheckboardComponent, decorators: [{
|
61
61
|
type: Component,
|
62
|
-
args: [{
|
63
|
-
selector: 'color-checkboard',
|
64
|
-
template: `<div class="grid" [ngStyle]="gridStyles"></div>`,
|
65
|
-
styles: [
|
66
|
-
`
|
67
|
-
.grid {
|
68
|
-
top: 0px;
|
69
|
-
right: 0px;
|
70
|
-
bottom: 0px;
|
71
|
-
left: 0px;
|
72
|
-
position: absolute;
|
73
|
-
}
|
74
|
-
`,
|
75
|
-
],
|
76
|
-
preserveWhitespaces: false,
|
77
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
78
|
-
}]
|
62
|
+
args: [{ selector: 'color-checkboard', template: `<div class="grid" [ngStyle]="gridStyles"></div>`, preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush, styles: [".grid{top:0px;right:0px;bottom:0px;left:0px;position:absolute}\n"] }]
|
79
63
|
}], propDecorators: { white: [{
|
80
64
|
type: Input
|
81
65
|
}], size: [{
|
@@ -89,10 +73,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImpor
|
|
89
73
|
}] } });
|
90
74
|
class CheckboardModule {
|
91
75
|
}
|
92
|
-
CheckboardModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
93
|
-
CheckboardModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
94
|
-
CheckboardModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
95
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
76
|
+
CheckboardModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: CheckboardModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
77
|
+
CheckboardModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.2", ngImport: i0, type: CheckboardModule, declarations: [CheckboardComponent], imports: [CommonModule], exports: [CheckboardComponent] });
|
78
|
+
CheckboardModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: CheckboardModule, imports: [CommonModule] });
|
79
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: CheckboardModule, decorators: [{
|
96
80
|
type: NgModule,
|
97
81
|
args: [{
|
98
82
|
declarations: [CheckboardComponent],
|
@@ -130,7 +114,8 @@ class CoordinatesDirective {
|
|
130
114
|
.subscribe(n => this.handleChange(n.x, n.y, n.$event, n.isTouch));
|
131
115
|
}
|
132
116
|
ngOnDestroy() {
|
133
|
-
|
117
|
+
var _a;
|
118
|
+
(_a = this.sub) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
134
119
|
}
|
135
120
|
handleChange(x, y, $event, isTouch) {
|
136
121
|
const containerWidth = this.el.nativeElement.clientWidth;
|
@@ -152,9 +137,9 @@ class CoordinatesDirective {
|
|
152
137
|
});
|
153
138
|
}
|
154
139
|
}
|
155
|
-
CoordinatesDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
156
|
-
CoordinatesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "
|
157
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
140
|
+
CoordinatesDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: CoordinatesDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
141
|
+
CoordinatesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.2", type: CoordinatesDirective, selector: "[ngx-color-coordinates]", outputs: { coordinatesChange: "coordinatesChange" }, host: { listeners: { "window:mousemove": "mousemove($event,$event.pageX,$event.pageY)", "window:touchmove": "mousemove($event,$event.touches[0].clientX,$event.touches[0].clientY,true)", "window:mouseup": "mouseup()", "window:touchend": "mouseup()", "mousedown": "mousedown($event,$event.pageX,$event.pageY)", "touchstart": "mousedown($event,$event.touches[0].clientX,$event.touches[0].clientY,true)" } }, ngImport: i0 });
|
142
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: CoordinatesDirective, decorators: [{
|
158
143
|
type: Directive,
|
159
144
|
args: [{ selector: '[ngx-color-coordinates]' }]
|
160
145
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { coordinatesChange: [{
|
@@ -190,10 +175,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImpor
|
|
190
175
|
}] } });
|
191
176
|
class CoordinatesModule {
|
192
177
|
}
|
193
|
-
CoordinatesModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
194
|
-
CoordinatesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
195
|
-
CoordinatesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
196
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
178
|
+
CoordinatesModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: CoordinatesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
179
|
+
CoordinatesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.2", ngImport: i0, type: CoordinatesModule, declarations: [CoordinatesDirective], exports: [CoordinatesDirective] });
|
180
|
+
CoordinatesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: CoordinatesModule });
|
181
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: CoordinatesModule, decorators: [{
|
197
182
|
type: NgModule,
|
198
183
|
args: [{
|
199
184
|
declarations: [CoordinatesDirective],
|
@@ -273,8 +258,8 @@ class AlphaComponent {
|
|
273
258
|
this.onChange.emit({ data, $event });
|
274
259
|
}
|
275
260
|
}
|
276
|
-
AlphaComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
277
|
-
AlphaComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
261
|
+
AlphaComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: AlphaComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
262
|
+
AlphaComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", type: AlphaComponent, selector: "color-alpha", inputs: { hsl: "hsl", rgb: "rgb", pointer: "pointer", shadow: "shadow", radius: "radius", direction: "direction" }, outputs: { onChange: "onChange" }, usesOnChanges: true, ngImport: i0, template: `
|
278
263
|
<div class="alpha" [style.border-radius]="radius">
|
279
264
|
<div class="alpha-checkboard">
|
280
265
|
<color-checkboard></color-checkboard>
|
@@ -286,12 +271,10 @@ AlphaComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version
|
|
286
271
|
</div>
|
287
272
|
</div>
|
288
273
|
</div>
|
289
|
-
`, isInline: true, styles: [".alpha{position:absolute;top:0;bottom:0;left:0;right:0}.alpha-checkboard{position:absolute;top:0;bottom:0;left:0;right:0;overflow:hidden}.alpha-gradient{position:absolute;top:0;bottom:0;left:0;right:0}.alpha-container{position:relative;height:100%;margin:0 3px}.alpha-pointer{position:absolute}.alpha-slider{width:4px;border-radius:1px;height:8px;box-shadow:0 0 2px #0009;background:#fff;margin-top:1px;transform:translate(-2px)}\n"],
|
290
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
274
|
+
`, isInline: true, styles: [".alpha{position:absolute;top:0;bottom:0;left:0;right:0}.alpha-checkboard{position:absolute;top:0;bottom:0;left:0;right:0;overflow:hidden}.alpha-gradient{position:absolute;top:0;bottom:0;left:0;right:0}.alpha-container{position:relative;height:100%;margin:0 3px}.alpha-pointer{position:absolute}.alpha-slider{width:4px;border-radius:1px;height:8px;box-shadow:0 0 2px #0009;background:#fff;margin-top:1px;transform:translate(-2px)}\n"], dependencies: [{ kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: CheckboardComponent, selector: "color-checkboard", inputs: ["white", "size", "grey", "boxShadow", "borderRadius"] }, { kind: "directive", type: CoordinatesDirective, selector: "[ngx-color-coordinates]", outputs: ["coordinatesChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
275
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: AlphaComponent, decorators: [{
|
291
276
|
type: Component,
|
292
|
-
args: [{
|
293
|
-
selector: 'color-alpha',
|
294
|
-
template: `
|
277
|
+
args: [{ selector: 'color-alpha', template: `
|
295
278
|
<div class="alpha" [style.border-radius]="radius">
|
296
279
|
<div class="alpha-checkboard">
|
297
280
|
<color-checkboard></color-checkboard>
|
@@ -303,53 +286,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImpor
|
|
303
286
|
</div>
|
304
287
|
</div>
|
305
288
|
</div>
|
306
|
-
`,
|
307
|
-
styles: [
|
308
|
-
`
|
309
|
-
.alpha {
|
310
|
-
position: absolute;
|
311
|
-
top: 0;
|
312
|
-
bottom: 0;
|
313
|
-
left: 0;
|
314
|
-
right: 0;
|
315
|
-
}
|
316
|
-
.alpha-checkboard {
|
317
|
-
position: absolute;
|
318
|
-
top: 0;
|
319
|
-
bottom: 0;
|
320
|
-
left: 0;
|
321
|
-
right: 0;
|
322
|
-
overflow: hidden;
|
323
|
-
}
|
324
|
-
.alpha-gradient {
|
325
|
-
position: absolute;
|
326
|
-
top: 0;
|
327
|
-
bottom: 0;
|
328
|
-
left: 0;
|
329
|
-
right: 0;
|
330
|
-
}
|
331
|
-
.alpha-container {
|
332
|
-
position: relative;
|
333
|
-
height: 100%;
|
334
|
-
margin: 0 3px;
|
335
|
-
}
|
336
|
-
.alpha-pointer {
|
337
|
-
position: absolute;
|
338
|
-
}
|
339
|
-
.alpha-slider {
|
340
|
-
width: 4px;
|
341
|
-
border-radius: 1px;
|
342
|
-
height: 8px;
|
343
|
-
box-shadow: 0 0 2px rgba(0, 0, 0, .6);
|
344
|
-
background: #fff;
|
345
|
-
margin-top: 1px;
|
346
|
-
transform: translateX(-2px);
|
347
|
-
}
|
348
|
-
`,
|
349
|
-
],
|
350
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
351
|
-
preserveWhitespaces: false,
|
352
|
-
}]
|
289
|
+
`, changeDetection: ChangeDetectionStrategy.OnPush, preserveWhitespaces: false, styles: [".alpha{position:absolute;top:0;bottom:0;left:0;right:0}.alpha-checkboard{position:absolute;top:0;bottom:0;left:0;right:0;overflow:hidden}.alpha-gradient{position:absolute;top:0;bottom:0;left:0;right:0}.alpha-container{position:relative;height:100%;margin:0 3px}.alpha-pointer{position:absolute}.alpha-slider{width:4px;border-radius:1px;height:8px;box-shadow:0 0 2px #0009;background:#fff;margin-top:1px;transform:translate(-2px)}\n"] }]
|
353
290
|
}], propDecorators: { hsl: [{
|
354
291
|
type: Input
|
355
292
|
}], rgb: [{
|
@@ -367,10 +304,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImpor
|
|
367
304
|
}] } });
|
368
305
|
class AlphaModule {
|
369
306
|
}
|
370
|
-
AlphaModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
371
|
-
AlphaModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
372
|
-
AlphaModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
373
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
307
|
+
AlphaModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: AlphaModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
308
|
+
AlphaModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.2", ngImport: i0, type: AlphaModule, declarations: [AlphaComponent], imports: [CommonModule, CheckboardModule, CoordinatesModule], exports: [AlphaComponent] });
|
309
|
+
AlphaModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: AlphaModule, imports: [CommonModule, CheckboardModule, CoordinatesModule] });
|
310
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: AlphaModule, decorators: [{
|
374
311
|
type: NgModule,
|
375
312
|
args: [{
|
376
313
|
declarations: [AlphaComponent],
|
@@ -500,10 +437,10 @@ class ColorWrap {
|
|
500
437
|
this.setState(toState(this.color, this.oldHue));
|
501
438
|
}
|
502
439
|
ngOnDestroy() {
|
503
|
-
var _a;
|
440
|
+
var _a, _b, _c;
|
504
441
|
(_a = this.changes) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
505
|
-
this._onChangeCompleteSubscription.unsubscribe();
|
506
|
-
this._onSwatchHoverSubscription.unsubscribe();
|
442
|
+
(_b = this._onChangeCompleteSubscription) === null || _b === void 0 ? void 0 : _b.unsubscribe();
|
443
|
+
(_c = this._onSwatchHoverSubscription) === null || _c === void 0 ? void 0 : _c.unsubscribe();
|
507
444
|
}
|
508
445
|
setState(data) {
|
509
446
|
this.oldHue = data.oldHue;
|
@@ -544,15 +481,15 @@ class ColorWrap {
|
|
544
481
|
this.color = hex;
|
545
482
|
}
|
546
483
|
}
|
547
|
-
ColorWrap.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
548
|
-
ColorWrap.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
484
|
+
ColorWrap.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: ColorWrap, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
485
|
+
ColorWrap.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", type: ColorWrap, selector: "color-wrap", inputs: { className: "className", mode: "mode", color: "color" }, outputs: { colorChange: "colorChange", onChange: "onChange", onChangeComplete: "onChangeComplete", onSwatchHover: "onSwatchHover" }, providers: [
|
549
486
|
{
|
550
487
|
provide: NG_VALUE_ACCESSOR,
|
551
488
|
useExisting: forwardRef(() => ColorWrap),
|
552
489
|
multi: true,
|
553
490
|
}
|
554
491
|
], usesOnChanges: true, ngImport: i0, template: ``, isInline: true });
|
555
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
492
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: ColorWrap, decorators: [{
|
556
493
|
type: Component,
|
557
494
|
args: [{
|
558
495
|
// create seletor base for test override property
|
@@ -583,10 +520,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImpor
|
|
583
520
|
}] } });
|
584
521
|
class ColorWrapModule {
|
585
522
|
}
|
586
|
-
ColorWrapModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
587
|
-
ColorWrapModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
588
|
-
ColorWrapModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
589
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
523
|
+
ColorWrapModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: ColorWrapModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
524
|
+
ColorWrapModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.2", ngImport: i0, type: ColorWrapModule, declarations: [ColorWrap], imports: [CommonModule], exports: [ColorWrap] });
|
525
|
+
ColorWrapModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: ColorWrapModule, imports: [CommonModule] });
|
526
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: ColorWrapModule, decorators: [{
|
590
527
|
type: NgModule,
|
591
528
|
args: [{
|
592
529
|
declarations: [ColorWrap],
|
@@ -700,12 +637,9 @@ class EditableInputComponent {
|
|
700
637
|
this.mouseup = fromEvent(document, 'mouseup').subscribe(() => this.unsubscribe());
|
701
638
|
}
|
702
639
|
unsubscribe() {
|
703
|
-
|
704
|
-
|
705
|
-
|
706
|
-
if (this.mouseup) {
|
707
|
-
this.mouseup.unsubscribe();
|
708
|
-
}
|
640
|
+
var _a, _b;
|
641
|
+
(_a = this.mousemove) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
642
|
+
(_b = this.mouseup) === null || _b === void 0 ? void 0 : _b.unsubscribe();
|
709
643
|
}
|
710
644
|
handleMousedown($event) {
|
711
645
|
if (this.dragLabel) {
|
@@ -723,8 +657,8 @@ class EditableInputComponent {
|
|
723
657
|
}
|
724
658
|
}
|
725
659
|
}
|
726
|
-
EditableInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
727
|
-
EditableInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
660
|
+
EditableInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: EditableInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
661
|
+
EditableInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", type: EditableInputComponent, selector: "color-editable-input", inputs: { style: "style", label: "label", value: "value", arrowOffset: "arrowOffset", dragLabel: "dragLabel", dragMax: "dragMax", placeholder: "placeholder" }, outputs: { onChange: "onChange" }, usesOnChanges: true, ngImport: i0, template: `
|
728
662
|
<div class="wrap" [ngStyle]="wrapStyle">
|
729
663
|
<input
|
730
664
|
[ngStyle]="inputStyle"
|
@@ -741,12 +675,10 @@ EditableInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
741
675
|
{{ label }}
|
742
676
|
</span>
|
743
677
|
</div>
|
744
|
-
`, isInline: true, styles: [":host{display:flex}.wrap{position:relative}\n"],
|
745
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
678
|
+
`, isInline: true, styles: [":host{display:flex}.wrap{position:relative}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
679
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: EditableInputComponent, decorators: [{
|
746
680
|
type: Component,
|
747
|
-
args: [{
|
748
|
-
selector: 'color-editable-input',
|
749
|
-
template: `
|
681
|
+
args: [{ selector: 'color-editable-input', template: `
|
750
682
|
<div class="wrap" [ngStyle]="wrapStyle">
|
751
683
|
<input
|
752
684
|
[ngStyle]="inputStyle"
|
@@ -763,19 +695,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImpor
|
|
763
695
|
{{ label }}
|
764
696
|
</span>
|
765
697
|
</div>
|
766
|
-
`,
|
767
|
-
styles: [
|
768
|
-
`
|
769
|
-
:host {
|
770
|
-
display: flex;
|
771
|
-
}
|
772
|
-
.wrap {
|
773
|
-
position: relative;
|
774
|
-
}
|
775
|
-
`,
|
776
|
-
],
|
777
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
778
|
-
}]
|
698
|
+
`, changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:flex}.wrap{position:relative}\n"] }]
|
779
699
|
}], propDecorators: { style: [{
|
780
700
|
type: Input
|
781
701
|
}], label: [{
|
@@ -795,10 +715,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImpor
|
|
795
715
|
}] } });
|
796
716
|
class EditableInputModule {
|
797
717
|
}
|
798
|
-
EditableInputModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
799
|
-
EditableInputModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
800
|
-
EditableInputModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
801
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
718
|
+
EditableInputModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: EditableInputModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
719
|
+
EditableInputModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.2", ngImport: i0, type: EditableInputModule, declarations: [EditableInputComponent], imports: [CommonModule], exports: [EditableInputComponent] });
|
720
|
+
EditableInputModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: EditableInputModule, imports: [CommonModule] });
|
721
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: EditableInputModule, decorators: [{
|
802
722
|
type: NgModule,
|
803
723
|
args: [{
|
804
724
|
declarations: [EditableInputComponent],
|
@@ -875,8 +795,8 @@ class HueComponent {
|
|
875
795
|
this.onChange.emit({ data, $event });
|
876
796
|
}
|
877
797
|
}
|
878
|
-
HueComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
879
|
-
HueComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
798
|
+
HueComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: HueComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
799
|
+
HueComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", type: HueComponent, selector: "color-hue", inputs: { hsl: "hsl", pointer: "pointer", radius: "radius", shadow: "shadow", hidePointer: "hidePointer", direction: "direction" }, outputs: { onChange: "onChange" }, usesOnChanges: true, ngImport: i0, template: `
|
880
800
|
<div class="color-hue color-hue-{{direction}}" [style.border-radius.px]="radius" [style.box-shadow]="shadow">
|
881
801
|
<div ngx-color-coordinates (coordinatesChange)="handleChange($event)" class="color-hue-container">
|
882
802
|
<div class="color-hue-pointer" [style.left]="left" [style.top]="top" *ngIf="!hidePointer">
|
@@ -884,12 +804,10 @@ HueComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version:
|
|
884
804
|
</div>
|
885
805
|
</div>
|
886
806
|
</div>
|
887
|
-
`, isInline: true, styles: [".color-hue{position:absolute;top:0;bottom:0;left:0;right:0}.color-hue-container{margin:0 2px;position:relative;height:100%}.color-hue-pointer{position:absolute}.color-hue-slider{margin-top:1px;width:4px;border-radius:1px;height:8px;box-shadow:0 0 2px #0009;background:#fff;transform:translate(-2px)}.color-hue-horizontal{background:linear-gradient(to right,#f00 0%,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,#f00 100%)}.color-hue-vertical{background:linear-gradient(to top,#f00 0%,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,#f00 100%)}\n"],
|
888
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
807
|
+
`, isInline: true, styles: [".color-hue{position:absolute;top:0;bottom:0;left:0;right:0}.color-hue-container{margin:0 2px;position:relative;height:100%}.color-hue-pointer{position:absolute}.color-hue-slider{margin-top:1px;width:4px;border-radius:1px;height:8px;box-shadow:0 0 2px #0009;background:#fff;transform:translate(-2px)}.color-hue-horizontal{background:linear-gradient(to right,#f00 0%,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,#f00 100%)}.color-hue-vertical{background:linear-gradient(to top,#f00 0%,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,#f00 100%)}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: CoordinatesDirective, selector: "[ngx-color-coordinates]", outputs: ["coordinatesChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
808
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: HueComponent, decorators: [{
|
889
809
|
type: Component,
|
890
|
-
args: [{
|
891
|
-
selector: 'color-hue',
|
892
|
-
template: `
|
810
|
+
args: [{ selector: 'color-hue', template: `
|
893
811
|
<div class="color-hue color-hue-{{direction}}" [style.border-radius.px]="radius" [style.box-shadow]="shadow">
|
894
812
|
<div ngx-color-coordinates (coordinatesChange)="handleChange($event)" class="color-hue-container">
|
895
813
|
<div class="color-hue-pointer" [style.left]="left" [style.top]="top" *ngIf="!hidePointer">
|
@@ -897,46 +815,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImpor
|
|
897
815
|
</div>
|
898
816
|
</div>
|
899
817
|
</div>
|
900
|
-
`,
|
901
|
-
styles: [
|
902
|
-
`
|
903
|
-
.color-hue {
|
904
|
-
position: absolute;
|
905
|
-
top: 0;
|
906
|
-
bottom: 0;
|
907
|
-
left: 0;
|
908
|
-
right: 0;
|
909
|
-
}
|
910
|
-
.color-hue-container {
|
911
|
-
margin: 0 2px;
|
912
|
-
position: relative;
|
913
|
-
height: 100%;
|
914
|
-
}
|
915
|
-
.color-hue-pointer {
|
916
|
-
position: absolute;
|
917
|
-
}
|
918
|
-
.color-hue-slider {
|
919
|
-
margin-top: 1px;
|
920
|
-
width: 4px;
|
921
|
-
border-radius: 1px;
|
922
|
-
height: 8px;
|
923
|
-
box-shadow: 0 0 2px rgba(0, 0, 0, .6);
|
924
|
-
background: #fff;
|
925
|
-
transform: translateX(-2px);
|
926
|
-
}
|
927
|
-
.color-hue-horizontal {
|
928
|
-
background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0
|
929
|
-
33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
|
930
|
-
}
|
931
|
-
.color-hue-vertical {
|
932
|
-
background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%,
|
933
|
-
#0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
|
934
|
-
}
|
935
|
-
`,
|
936
|
-
],
|
937
|
-
preserveWhitespaces: false,
|
938
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
939
|
-
}]
|
818
|
+
`, preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush, styles: [".color-hue{position:absolute;top:0;bottom:0;left:0;right:0}.color-hue-container{margin:0 2px;position:relative;height:100%}.color-hue-pointer{position:absolute}.color-hue-slider{margin-top:1px;width:4px;border-radius:1px;height:8px;box-shadow:0 0 2px #0009;background:#fff;transform:translate(-2px)}.color-hue-horizontal{background:linear-gradient(to right,#f00 0%,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,#f00 100%)}.color-hue-vertical{background:linear-gradient(to top,#f00 0%,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,#f00 100%)}\n"] }]
|
940
819
|
}], propDecorators: { hsl: [{
|
941
820
|
type: Input
|
942
821
|
}], pointer: [{
|
@@ -954,10 +833,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImpor
|
|
954
833
|
}] } });
|
955
834
|
class HueModule {
|
956
835
|
}
|
957
|
-
HueModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
958
|
-
HueModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
959
|
-
HueModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
960
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
836
|
+
HueModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: HueModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
837
|
+
HueModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.2", ngImport: i0, type: HueModule, declarations: [HueComponent], imports: [CommonModule, CoordinatesModule], exports: [HueComponent] });
|
838
|
+
HueModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: HueModule, imports: [CommonModule, CoordinatesModule] });
|
839
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: HueModule, decorators: [{
|
961
840
|
type: NgModule,
|
962
841
|
args: [{
|
963
842
|
declarations: [HueComponent],
|
@@ -973,8 +852,8 @@ class RaisedComponent {
|
|
973
852
|
this.background = '#fff';
|
974
853
|
}
|
975
854
|
}
|
976
|
-
RaisedComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
977
|
-
RaisedComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
855
|
+
RaisedComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: RaisedComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
856
|
+
RaisedComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", type: RaisedComponent, selector: "color-raised", inputs: { zDepth: "zDepth", radius: "radius", background: "background" }, ngImport: i0, template: `
|
978
857
|
<div class="raised-wrap">
|
979
858
|
<div class="raised-bg zDepth-{{zDepth}}" [style.background]="background"></div>
|
980
859
|
<div class="raised-content">
|
@@ -982,55 +861,16 @@ RaisedComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versio
|
|
982
861
|
</div>
|
983
862
|
</div>
|
984
863
|
`, isInline: true, styles: [".raised-wrap{position:relative;display:inline-block}.raised-bg{position:absolute;top:0px;right:0px;bottom:0px;left:0px}.raised-content{position:relative}.zDepth-0{box-shadow:none}.zDepth-1{box-shadow:0 2px 10px #0000001f,0 2px 5px #00000029}.zDepth-2{box-shadow:0 6px 20px #00000030,0 8px 17px #0003}.zDepth-3{box-shadow:0 17px 50px #00000030,0 12px 15px #0000003d}.zDepth-4{box-shadow:0 25px 55px #00000036,0 16px 28px #00000038}.zDepth-5{box-shadow:0 40px 77px #00000038,0 27px 24px #0003}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
985
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
864
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: RaisedComponent, decorators: [{
|
986
865
|
type: Component,
|
987
|
-
args: [{
|
988
|
-
selector: 'color-raised',
|
989
|
-
template: `
|
866
|
+
args: [{ selector: 'color-raised', template: `
|
990
867
|
<div class="raised-wrap">
|
991
868
|
<div class="raised-bg zDepth-{{zDepth}}" [style.background]="background"></div>
|
992
869
|
<div class="raised-content">
|
993
870
|
<ng-content></ng-content>
|
994
871
|
</div>
|
995
872
|
</div>
|
996
|
-
`,
|
997
|
-
styles: [`
|
998
|
-
.raised-wrap {
|
999
|
-
position: relative;
|
1000
|
-
display: inline-block;
|
1001
|
-
}
|
1002
|
-
.raised-bg {
|
1003
|
-
position: absolute;
|
1004
|
-
top: 0px;
|
1005
|
-
right: 0px;
|
1006
|
-
bottom: 0px;
|
1007
|
-
left: 0px;
|
1008
|
-
}
|
1009
|
-
.raised-content {
|
1010
|
-
position: relative;
|
1011
|
-
}
|
1012
|
-
.zDepth-0 {
|
1013
|
-
box-shadow: none;
|
1014
|
-
}
|
1015
|
-
.zDepth-1 {
|
1016
|
-
box-shadow: 0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16);
|
1017
|
-
}
|
1018
|
-
.zDepth-2 {
|
1019
|
-
box-shadow: 0 6px 20px rgba(0,0,0,.19), 0 8px 17px rgba(0,0,0,.2);
|
1020
|
-
}
|
1021
|
-
.zDepth-3 {
|
1022
|
-
box-shadow: 0 17px 50px rgba(0,0,0,.19), 0 12px 15px rgba(0,0,0,.24);
|
1023
|
-
}
|
1024
|
-
.zDepth-4 {
|
1025
|
-
box-shadow: 0 25px 55px rgba(0,0,0,.21), 0 16px 28px rgba(0,0,0,.22);
|
1026
|
-
}
|
1027
|
-
.zDepth-5 {
|
1028
|
-
box-shadow: 0 40px 77px rgba(0,0,0,.22), 0 27px 24px rgba(0,0,0,.2);
|
1029
|
-
}
|
1030
|
-
`],
|
1031
|
-
preserveWhitespaces: false,
|
1032
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
1033
|
-
}]
|
873
|
+
`, preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush, styles: [".raised-wrap{position:relative;display:inline-block}.raised-bg{position:absolute;top:0px;right:0px;bottom:0px;left:0px}.raised-content{position:relative}.zDepth-0{box-shadow:none}.zDepth-1{box-shadow:0 2px 10px #0000001f,0 2px 5px #00000029}.zDepth-2{box-shadow:0 6px 20px #00000030,0 8px 17px #0003}.zDepth-3{box-shadow:0 17px 50px #00000030,0 12px 15px #0000003d}.zDepth-4{box-shadow:0 25px 55px #00000036,0 16px 28px #00000038}.zDepth-5{box-shadow:0 40px 77px #00000038,0 27px 24px #0003}\n"] }]
|
1034
874
|
}], propDecorators: { zDepth: [{
|
1035
875
|
type: Input
|
1036
876
|
}], radius: [{
|
@@ -1040,10 +880,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImpor
|
|
1040
880
|
}] } });
|
1041
881
|
class RaisedModule {
|
1042
882
|
}
|
1043
|
-
RaisedModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
1044
|
-
RaisedModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
1045
|
-
RaisedModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
1046
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
883
|
+
RaisedModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: RaisedModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
884
|
+
RaisedModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.2", ngImport: i0, type: RaisedModule, declarations: [RaisedComponent], imports: [CommonModule], exports: [RaisedComponent] });
|
885
|
+
RaisedModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: RaisedModule, imports: [CommonModule] });
|
886
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: RaisedModule, decorators: [{
|
1047
887
|
type: NgModule,
|
1048
888
|
args: [{
|
1049
889
|
declarations: [RaisedComponent],
|
@@ -1088,8 +928,8 @@ class SaturationComponent {
|
|
1088
928
|
this.onChange.emit({ data, $event });
|
1089
929
|
}
|
1090
930
|
}
|
1091
|
-
SaturationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
1092
|
-
SaturationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
931
|
+
SaturationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: SaturationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
932
|
+
SaturationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", type: SaturationComponent, selector: "color-saturation", inputs: { hsl: "hsl", hsv: "hsv", radius: "radius", pointer: "pointer", circle: "circle" }, outputs: { onChange: "onChange" }, usesOnChanges: true, ngImport: i0, template: `
|
1093
933
|
<div class="color-saturation" ngx-color-coordinates (coordinatesChange)="handleChange($event)" [style.background]="background">
|
1094
934
|
<div class="saturation-white">
|
1095
935
|
<div class="saturation-black"></div>
|
@@ -1098,12 +938,10 @@ SaturationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ve
|
|
1098
938
|
</div>
|
1099
939
|
</div>
|
1100
940
|
</div>
|
1101
|
-
`, isInline: true, styles: [".saturation-white{background:linear-gradient(to right,#fff,rgba(255,255,255,0));position:absolute;top:0;bottom:0;left:0;right:0}.saturation-black{background:linear-gradient(to top,#000,rgba(0,0,0,0));position:absolute;top:0;bottom:0;left:0;right:0}.color-saturation{position:absolute;top:0;bottom:0;left:0;right:0}.saturation-pointer{position:absolute;cursor:default}.saturation-circle{width:4px;height:4px;box-shadow:0 0 0 1.5px #fff,inset 0 0 1px 1px #0000004d,0 0 1px 2px #0006;border-radius:50%;cursor:hand;transform:translate(-2px,-4px)}\n"],
|
1102
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
941
|
+
`, isInline: true, styles: [".saturation-white{background:linear-gradient(to right,#fff,rgba(255,255,255,0));position:absolute;top:0;bottom:0;left:0;right:0}.saturation-black{background:linear-gradient(to top,#000,rgba(0,0,0,0));position:absolute;top:0;bottom:0;left:0;right:0}.color-saturation{position:absolute;top:0;bottom:0;left:0;right:0}.saturation-pointer{position:absolute;cursor:default}.saturation-circle{width:4px;height:4px;box-shadow:0 0 0 1.5px #fff,inset 0 0 1px 1px #0000004d,0 0 1px 2px #0006;border-radius:50%;cursor:hand;transform:translate(-2px,-4px)}\n"], dependencies: [{ kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: CoordinatesDirective, selector: "[ngx-color-coordinates]", outputs: ["coordinatesChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
942
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: SaturationComponent, decorators: [{
|
1103
943
|
type: Component,
|
1104
|
-
args: [{
|
1105
|
-
selector: 'color-saturation',
|
1106
|
-
template: `
|
944
|
+
args: [{ selector: 'color-saturation', template: `
|
1107
945
|
<div class="color-saturation" ngx-color-coordinates (coordinatesChange)="handleChange($event)" [style.background]="background">
|
1108
946
|
<div class="saturation-white">
|
1109
947
|
<div class="saturation-black"></div>
|
@@ -1112,49 +950,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImpor
|
|
1112
950
|
</div>
|
1113
951
|
</div>
|
1114
952
|
</div>
|
1115
|
-
`,
|
1116
|
-
styles: [
|
1117
|
-
`
|
1118
|
-
.saturation-white {
|
1119
|
-
background: linear-gradient(to right, #fff, rgba(255,255,255,0));
|
1120
|
-
position: absolute;
|
1121
|
-
top: 0;
|
1122
|
-
bottom: 0;
|
1123
|
-
left: 0;
|
1124
|
-
right: 0;
|
1125
|
-
}
|
1126
|
-
.saturation-black {
|
1127
|
-
background: linear-gradient(to top, #000, rgba(0,0,0,0));
|
1128
|
-
position: absolute;
|
1129
|
-
top: 0;
|
1130
|
-
bottom: 0;
|
1131
|
-
left: 0;
|
1132
|
-
right: 0;
|
1133
|
-
}
|
1134
|
-
.color-saturation {
|
1135
|
-
position: absolute;
|
1136
|
-
top: 0;
|
1137
|
-
bottom: 0;
|
1138
|
-
left: 0;
|
1139
|
-
right: 0;
|
1140
|
-
}
|
1141
|
-
.saturation-pointer {
|
1142
|
-
position: absolute;
|
1143
|
-
cursor: default;
|
1144
|
-
}
|
1145
|
-
.saturation-circle {
|
1146
|
-
width: 4px;
|
1147
|
-
height: 4px;
|
1148
|
-
box-shadow: 0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3), 0 0 1px 2px rgba(0,0,0,.4);
|
1149
|
-
border-radius: 50%;
|
1150
|
-
cursor: hand;
|
1151
|
-
transform: translate(-2px, -4px);
|
1152
|
-
}
|
1153
|
-
`,
|
1154
|
-
],
|
1155
|
-
preserveWhitespaces: false,
|
1156
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
1157
|
-
}]
|
953
|
+
`, preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush, styles: [".saturation-white{background:linear-gradient(to right,#fff,rgba(255,255,255,0));position:absolute;top:0;bottom:0;left:0;right:0}.saturation-black{background:linear-gradient(to top,#000,rgba(0,0,0,0));position:absolute;top:0;bottom:0;left:0;right:0}.color-saturation{position:absolute;top:0;bottom:0;left:0;right:0}.saturation-pointer{position:absolute;cursor:default}.saturation-circle{width:4px;height:4px;box-shadow:0 0 0 1.5px #fff,inset 0 0 1px 1px #0000004d,0 0 1px 2px #0006;border-radius:50%;cursor:hand;transform:translate(-2px,-4px)}\n"] }]
|
1158
954
|
}], propDecorators: { hsl: [{
|
1159
955
|
type: Input
|
1160
956
|
}], hsv: [{
|
@@ -1170,10 +966,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImpor
|
|
1170
966
|
}] } });
|
1171
967
|
class SaturationModule {
|
1172
968
|
}
|
1173
|
-
SaturationModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
1174
|
-
SaturationModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
1175
|
-
SaturationModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
1176
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
969
|
+
SaturationModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: SaturationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
970
|
+
SaturationModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.2", ngImport: i0, type: SaturationModule, declarations: [SaturationComponent], imports: [CommonModule, CoordinatesModule], exports: [SaturationComponent] });
|
971
|
+
SaturationModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: SaturationModule, imports: [CommonModule, CoordinatesModule] });
|
972
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: SaturationModule, decorators: [{
|
1177
973
|
type: NgModule,
|
1178
974
|
args: [{
|
1179
975
|
declarations: [SaturationComponent],
|
@@ -1212,8 +1008,8 @@ class SwatchComponent {
|
|
1212
1008
|
this.onClick.emit({ hex, $event });
|
1213
1009
|
}
|
1214
1010
|
}
|
1215
|
-
SwatchComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
1216
|
-
SwatchComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
1011
|
+
SwatchComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: SwatchComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
1012
|
+
SwatchComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", type: SwatchComponent, selector: "color-swatch", inputs: { color: "color", style: "style", focusStyle: "focusStyle", focus: "focus" }, outputs: { onClick: "onClick", onHover: "onHover" }, ngImport: i0, template: `
|
1217
1013
|
<div
|
1218
1014
|
class="swatch"
|
1219
1015
|
[ngStyle]="currentStyles()"
|
@@ -1231,12 +1027,10 @@ SwatchComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versio
|
|
1231
1027
|
boxShadow="inset 0 0 0 1px rgba(0,0,0,0.1)"
|
1232
1028
|
></color-checkboard>
|
1233
1029
|
</div>
|
1234
|
-
`, isInline: true, styles: [".swatch{outline:none;height:100%;width:100%;cursor:pointer;position:relative}\n"],
|
1235
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
1030
|
+
`, isInline: true, styles: [".swatch{outline:none;height:100%;width:100%;cursor:pointer;position:relative}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: CheckboardComponent, selector: "color-checkboard", inputs: ["white", "size", "grey", "boxShadow", "borderRadius"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
1031
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: SwatchComponent, decorators: [{
|
1236
1032
|
type: Component,
|
1237
|
-
args: [{
|
1238
|
-
selector: 'color-swatch',
|
1239
|
-
template: `
|
1033
|
+
args: [{ selector: 'color-swatch', template: `
|
1240
1034
|
<div
|
1241
1035
|
class="swatch"
|
1242
1036
|
[ngStyle]="currentStyles()"
|
@@ -1254,20 +1048,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImpor
|
|
1254
1048
|
boxShadow="inset 0 0 0 1px rgba(0,0,0,0.1)"
|
1255
1049
|
></color-checkboard>
|
1256
1050
|
</div>
|
1257
|
-
`,
|
1258
|
-
styles: [
|
1259
|
-
`
|
1260
|
-
.swatch {
|
1261
|
-
outline: none;
|
1262
|
-
height: 100%;
|
1263
|
-
width: 100%;
|
1264
|
-
cursor: pointer;
|
1265
|
-
position: relative;
|
1266
|
-
}
|
1267
|
-
`,
|
1268
|
-
],
|
1269
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
1270
|
-
}]
|
1051
|
+
`, changeDetection: ChangeDetectionStrategy.OnPush, styles: [".swatch{outline:none;height:100%;width:100%;cursor:pointer;position:relative}\n"] }]
|
1271
1052
|
}], propDecorators: { color: [{
|
1272
1053
|
type: Input
|
1273
1054
|
}], style: [{
|
@@ -1283,10 +1064,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImpor
|
|
1283
1064
|
}] } });
|
1284
1065
|
class SwatchModule {
|
1285
1066
|
}
|
1286
|
-
SwatchModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
1287
|
-
SwatchModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
1288
|
-
SwatchModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
1289
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
1067
|
+
SwatchModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: SwatchModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
1068
|
+
SwatchModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.2", ngImport: i0, type: SwatchModule, declarations: [SwatchComponent], imports: [CommonModule, CheckboardModule], exports: [SwatchComponent] });
|
1069
|
+
SwatchModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: SwatchModule, imports: [CommonModule, CheckboardModule] });
|
1070
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: SwatchModule, decorators: [{
|
1290
1071
|
type: NgModule,
|
1291
1072
|
args: [{
|
1292
1073
|
declarations: [SwatchComponent],
|
@@ -1337,8 +1118,8 @@ class ShadeComponent {
|
|
1337
1118
|
this.onChange.emit({ data, $event });
|
1338
1119
|
}
|
1339
1120
|
}
|
1340
|
-
ShadeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
1341
|
-
ShadeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
1121
|
+
ShadeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: ShadeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
1122
|
+
ShadeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", type: ShadeComponent, selector: "color-shade", inputs: { hsl: "hsl", rgb: "rgb", pointer: "pointer", shadow: "shadow", radius: "radius" }, outputs: { onChange: "onChange" }, usesOnChanges: true, ngImport: i0, template: `
|
1342
1123
|
<div class="shade" [style.border-radius]="radius">
|
1343
1124
|
<div
|
1344
1125
|
class="shade-gradient"
|
@@ -1360,12 +1141,10 @@ ShadeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version
|
|
1360
1141
|
</div>
|
1361
1142
|
</div>
|
1362
1143
|
</div>
|
1363
|
-
`, isInline: true, styles: [".shade
|
1364
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
1144
|
+
`, isInline: true, styles: [".shade,.shade-gradient{position:absolute;top:0;bottom:0;left:0;right:0}.shade-container{position:relative;height:100%;margin:0 3px}.shade-pointer{position:absolute}.shade-slider{width:4px;border-radius:1px;height:8px;box-shadow:0 0 2px #0009;background:#fff;margin-top:1px;transform:translate(-2px)}\n"], dependencies: [{ kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: CoordinatesDirective, selector: "[ngx-color-coordinates]", outputs: ["coordinatesChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
1145
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: ShadeComponent, decorators: [{
|
1365
1146
|
type: Component,
|
1366
|
-
args: [{
|
1367
|
-
selector: 'color-shade',
|
1368
|
-
template: `
|
1147
|
+
args: [{ selector: 'color-shade', template: `
|
1369
1148
|
<div class="shade" [style.border-radius]="radius">
|
1370
1149
|
<div
|
1371
1150
|
class="shade-gradient"
|
@@ -1387,45 +1166,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImpor
|
|
1387
1166
|
</div>
|
1388
1167
|
</div>
|
1389
1168
|
</div>
|
1390
|
-
`,
|
1391
|
-
styles: [
|
1392
|
-
`
|
1393
|
-
.shade {
|
1394
|
-
position: absolute;
|
1395
|
-
top: 0;
|
1396
|
-
bottom: 0;
|
1397
|
-
left: 0;
|
1398
|
-
right: 0;
|
1399
|
-
}
|
1400
|
-
.shade-gradient {
|
1401
|
-
position: absolute;
|
1402
|
-
top: 0;
|
1403
|
-
bottom: 0;
|
1404
|
-
left: 0;
|
1405
|
-
right: 0;
|
1406
|
-
}
|
1407
|
-
.shade-container {
|
1408
|
-
position: relative;
|
1409
|
-
height: 100%;
|
1410
|
-
margin: 0 3px;
|
1411
|
-
}
|
1412
|
-
.shade-pointer {
|
1413
|
-
position: absolute;
|
1414
|
-
}
|
1415
|
-
.shade-slider {
|
1416
|
-
width: 4px;
|
1417
|
-
border-radius: 1px;
|
1418
|
-
height: 8px;
|
1419
|
-
box-shadow: 0 0 2px rgba(0, 0, 0, .6);
|
1420
|
-
background: #fff;
|
1421
|
-
margin-top: 1px;
|
1422
|
-
transform: translateX(-2px);
|
1423
|
-
}
|
1424
|
-
`,
|
1425
|
-
],
|
1426
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
1427
|
-
preserveWhitespaces: false,
|
1428
|
-
}]
|
1169
|
+
`, changeDetection: ChangeDetectionStrategy.OnPush, preserveWhitespaces: false, styles: [".shade,.shade-gradient{position:absolute;top:0;bottom:0;left:0;right:0}.shade-container{position:relative;height:100%;margin:0 3px}.shade-pointer{position:absolute}.shade-slider{width:4px;border-radius:1px;height:8px;box-shadow:0 0 2px #0009;background:#fff;margin-top:1px;transform:translate(-2px)}\n"] }]
|
1429
1170
|
}], propDecorators: { hsl: [{
|
1430
1171
|
type: Input
|
1431
1172
|
}], rgb: [{
|
@@ -1441,10 +1182,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImpor
|
|
1441
1182
|
}] } });
|
1442
1183
|
class ShadeModule {
|
1443
1184
|
}
|
1444
|
-
ShadeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
1445
|
-
ShadeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
1446
|
-
ShadeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
1447
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
1185
|
+
ShadeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: ShadeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
1186
|
+
ShadeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.2", ngImport: i0, type: ShadeModule, declarations: [ShadeComponent], imports: [CommonModule, CoordinatesModule], exports: [ShadeComponent] });
|
1187
|
+
ShadeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: ShadeModule, imports: [CommonModule, CoordinatesModule] });
|
1188
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: ShadeModule, decorators: [{
|
1448
1189
|
type: NgModule,
|
1449
1190
|
args: [{
|
1450
1191
|
declarations: [ShadeComponent],
|