ngx-color 7.0.1 → 7.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/alpha/alpha-picker.component.d.ts +8 -0
- package/alpha/esm2020/alpha-picker.component.mjs +116 -0
- package/alpha/{esm2015/ngx-color-alpha.js → esm2020/ngx-color-alpha.mjs} +2 -2
- package/alpha/esm2020/public_api.mjs +2 -0
- package/alpha/fesm2015/ngx-color-alpha.mjs +123 -0
- package/alpha/fesm2015/ngx-color-alpha.mjs.map +1 -0
- package/alpha/fesm2020/ngx-color-alpha.mjs +123 -0
- package/alpha/fesm2020/ngx-color-alpha.mjs.map +1 -0
- package/alpha/ngx-color-alpha.d.ts +2 -1
- package/alpha/package.json +19 -7
- package/alpha/public_api.d.ts +1 -0
- package/alpha.component.d.ts +9 -0
- package/block/block-swatches.component.d.ts +3 -0
- package/block/block.component.d.ts +9 -0
- package/block/esm2020/block-swatches.component.mjs +76 -0
- package/block/esm2020/block.component.mjs +199 -0
- package/block/esm2020/ngx-color-block.mjs +5 -0
- package/block/esm2020/public_api.mjs +3 -0
- package/block/fesm2015/ngx-color-block.mjs +277 -0
- package/block/fesm2015/ngx-color-block.mjs.map +1 -0
- package/block/fesm2020/ngx-color-block.mjs +277 -0
- package/block/fesm2020/ngx-color-block.mjs.map +1 -0
- package/block/ngx-color-block.d.ts +2 -2
- package/block/package.json +19 -7
- package/block/public_api.d.ts +2 -0
- package/checkboard.component.d.ts +7 -0
- package/chrome/chrome-fields.component.d.ts +3 -0
- package/chrome/chrome.component.d.ts +9 -0
- package/chrome/esm2020/chrome-fields.component.mjs +356 -0
- package/chrome/esm2020/chrome.component.mjs +249 -0
- package/chrome/esm2020/ngx-color-chrome.mjs +5 -0
- package/chrome/esm2020/public_api.mjs +3 -0
- package/chrome/fesm2015/ngx-color-chrome.mjs +606 -0
- package/chrome/fesm2015/ngx-color-chrome.mjs.map +1 -0
- package/chrome/fesm2020/ngx-color-chrome.mjs +606 -0
- package/chrome/fesm2020/ngx-color-chrome.mjs.map +1 -0
- package/chrome/ngx-color-chrome.d.ts +2 -2
- package/chrome/package.json +19 -7
- package/chrome/public_api.d.ts +2 -0
- package/circle/circle-swatch.component.d.ts +3 -0
- package/circle/circle.component.d.ts +9 -0
- package/circle/esm2020/circle-swatch.component.mjs +85 -0
- package/circle/esm2020/circle.component.mjs +148 -0
- package/circle/esm2020/ngx-color-circle.mjs +5 -0
- package/circle/esm2020/public_api.mjs +3 -0
- package/circle/fesm2015/ngx-color-circle.mjs +237 -0
- package/circle/fesm2015/ngx-color-circle.mjs.map +1 -0
- package/circle/fesm2020/ngx-color-circle.mjs +237 -0
- package/circle/fesm2020/ngx-color-circle.mjs.map +1 -0
- package/circle/ngx-color-circle.d.ts +2 -2
- package/circle/package.json +19 -7
- package/circle/public_api.d.ts +2 -0
- package/color-wrap.component.d.ts +27 -2
- package/compact/compact-color.component.d.ts +3 -0
- package/compact/compact-fields.component.d.ts +3 -0
- package/compact/compact.component.d.ts +10 -0
- package/compact/esm2020/compact-color.component.mjs +91 -0
- package/compact/esm2020/compact-fields.component.mjs +186 -0
- package/compact/esm2020/compact.component.mjs +177 -0
- package/compact/esm2020/ngx-color-compact.mjs +5 -0
- package/compact/esm2020/public_api.mjs +4 -0
- package/compact/fesm2015/ngx-color-compact.mjs +451 -0
- package/compact/fesm2015/ngx-color-compact.mjs.map +1 -0
- package/compact/fesm2020/ngx-color-compact.mjs +451 -0
- package/compact/fesm2020/ngx-color-compact.mjs.map +1 -0
- package/compact/ngx-color-compact.d.ts +2 -3
- package/compact/package.json +19 -7
- package/compact/public_api.d.ts +3 -0
- package/coordinates.directive.d.ts +6 -0
- package/editable-input.component.d.ts +8 -0
- package/esm2020/alpha.component.mjs +186 -0
- package/esm2020/checkboard.component.mjs +66 -0
- package/esm2020/color-wrap.component.mjs +163 -0
- package/esm2020/coordinates.directive.mjs +104 -0
- package/esm2020/editable-input.component.mjs +217 -0
- package/{esm2015/helpers/checkboard.js → esm2020/helpers/checkboard.mjs} +0 -0
- package/{esm2015/helpers/color.interfaces.js → esm2020/helpers/color.interfaces.mjs} +0 -0
- package/{esm2015/helpers/color.js → esm2020/helpers/color.mjs} +0 -0
- package/esm2020/hue.component.mjs +165 -0
- package/{esm2015/ngx-color.js → esm2020/ngx-color.mjs} +0 -0
- package/{esm2015/public_api.js → esm2020/public_api.mjs} +0 -0
- package/esm2020/raised.component.mjs +89 -0
- package/esm2020/saturation.component.mjs +136 -0
- package/esm2020/shade.component.mjs +165 -0
- package/esm2020/swatch.component.mjs +125 -0
- package/fesm2015/ngx-color.mjs +1461 -0
- package/fesm2015/ngx-color.mjs.map +1 -0
- package/fesm2020/ngx-color.mjs +1466 -0
- package/fesm2020/ngx-color.mjs.map +1 -0
- package/github/esm2020/github-swatch.component.mjs +67 -0
- package/github/esm2020/github.component.mjs +179 -0
- package/github/esm2020/ngx-color-github.mjs +5 -0
- package/github/esm2020/public_api.mjs +3 -0
- package/github/fesm2015/ngx-color-github.mjs +250 -0
- package/github/fesm2015/ngx-color-github.mjs.map +1 -0
- package/github/fesm2020/ngx-color-github.mjs +250 -0
- package/github/fesm2020/ngx-color-github.mjs.map +1 -0
- package/github/github-swatch.component.d.ts +3 -0
- package/github/github.component.d.ts +9 -0
- package/github/ngx-color-github.d.ts +2 -2
- package/github/package.json +19 -7
- package/github/public_api.d.ts +2 -0
- package/helpers/checkboard.d.ts +2 -2
- package/hue/esm2020/hue-picker.component.mjs +113 -0
- package/hue/{esm2015/ngx-color-hue.js → esm2020/ngx-color-hue.mjs} +2 -2
- package/hue/esm2020/public_api.mjs +2 -0
- package/hue/fesm2015/ngx-color-hue.mjs +120 -0
- package/hue/fesm2015/ngx-color-hue.mjs.map +1 -0
- package/hue/fesm2020/ngx-color-hue.mjs +120 -0
- package/hue/fesm2020/ngx-color-hue.mjs.map +1 -0
- package/hue/hue-picker.component.d.ts +8 -0
- package/hue/ngx-color-hue.d.ts +2 -1
- package/hue/package.json +19 -7
- package/hue/public_api.d.ts +1 -0
- package/hue.component.d.ts +8 -0
- package/material/esm2020/material.component.mjs +211 -0
- package/material/{esm2015/ngx-color-material.js → esm2020/ngx-color-material.mjs} +2 -2
- package/material/esm2020/public_api.mjs +2 -0
- package/material/fesm2015/ngx-color-material.mjs +218 -0
- package/material/fesm2015/ngx-color-material.mjs.map +1 -0
- package/material/fesm2020/ngx-color-material.mjs +218 -0
- package/material/fesm2020/ngx-color-material.mjs.map +1 -0
- package/material/material.component.d.ts +8 -0
- package/material/ngx-color-material.d.ts +2 -1
- package/material/package.json +19 -7
- package/material/public_api.d.ts +1 -0
- package/ngx-color.d.ts +1 -0
- package/package.json +20 -8
- package/photoshop/esm2020/ngx-color-photoshop.mjs +5 -0
- package/photoshop/esm2020/photoshop-button.component.mjs +63 -0
- package/photoshop/esm2020/photoshop-fields.component.mjs +241 -0
- package/photoshop/esm2020/photoshop-previews.component.mjs +68 -0
- package/photoshop/esm2020/photoshop.component.mjs +258 -0
- package/photoshop/esm2020/public_api.mjs +5 -0
- package/photoshop/fesm2015/ngx-color-photoshop.mjs +626 -0
- package/photoshop/fesm2015/ngx-color-photoshop.mjs.map +1 -0
- package/photoshop/fesm2020/ngx-color-photoshop.mjs +626 -0
- package/photoshop/fesm2020/ngx-color-photoshop.mjs.map +1 -0
- package/photoshop/ngx-color-photoshop.d.ts +2 -4
- package/photoshop/package.json +19 -7
- package/photoshop/photoshop-button.component.d.ts +3 -0
- package/photoshop/photoshop-fields.component.d.ts +3 -0
- package/photoshop/photoshop-previews.component.d.ts +3 -0
- package/photoshop/photoshop.component.d.ts +11 -0
- package/photoshop/public_api.d.ts +4 -0
- package/raised.component.d.ts +7 -0
- package/saturation.component.d.ts +8 -0
- package/shade/{esm2015/ngx-color-shade.js → esm2020/ngx-color-shade.mjs} +2 -2
- package/shade/esm2020/public_api.mjs +2 -0
- package/shade/esm2020/shade-picker.component.mjs +105 -0
- package/shade/fesm2015/ngx-color-shade.mjs +112 -0
- package/shade/fesm2015/ngx-color-shade.mjs.map +1 -0
- package/shade/fesm2020/ngx-color-shade.mjs +112 -0
- package/shade/fesm2020/ngx-color-shade.mjs.map +1 -0
- package/shade/ngx-color-shade.d.ts +2 -1
- package/shade/package.json +19 -7
- package/shade/public_api.d.ts +1 -0
- package/shade/shade-picker.component.d.ts +8 -0
- package/shade.component.d.ts +8 -0
- package/sketch/esm2020/ngx-color-sketch.mjs +5 -0
- package/sketch/esm2020/public_api.mjs +4 -0
- package/sketch/esm2020/sketch-fields.component.mjs +243 -0
- package/sketch/esm2020/sketch-preset-colors.component.mjs +98 -0
- package/sketch/esm2020/sketch.component.mjs +283 -0
- package/sketch/fesm2015/ngx-color-sketch.mjs +620 -0
- package/sketch/fesm2015/ngx-color-sketch.mjs.map +1 -0
- package/sketch/fesm2020/ngx-color-sketch.mjs +620 -0
- package/sketch/fesm2020/ngx-color-sketch.mjs.map +1 -0
- package/sketch/ngx-color-sketch.d.ts +2 -3
- package/sketch/package.json +19 -7
- package/sketch/public_api.d.ts +3 -0
- package/sketch/sketch-fields.component.d.ts +3 -0
- package/sketch/sketch-preset-colors.component.d.ts +3 -0
- package/sketch/sketch.component.d.ts +10 -0
- package/slider/esm2020/ngx-color-slider.mjs +5 -0
- package/slider/esm2020/public_api.mjs +4 -0
- package/slider/esm2020/slider-swatch.component.mjs +80 -0
- package/slider/esm2020/slider-swatches.component.mjs +135 -0
- package/slider/esm2020/slider.component.mjs +116 -0
- package/slider/fesm2015/ngx-color-slider.mjs +331 -0
- package/slider/fesm2015/ngx-color-slider.mjs.map +1 -0
- package/slider/fesm2020/ngx-color-slider.mjs +331 -0
- package/slider/fesm2020/ngx-color-slider.mjs.map +1 -0
- package/slider/ngx-color-slider.d.ts +2 -3
- package/slider/package.json +19 -7
- package/slider/public_api.d.ts +3 -0
- package/slider/slider-swatch.component.d.ts +3 -0
- package/slider/slider-swatches.component.d.ts +3 -0
- package/slider/slider.component.d.ts +10 -0
- package/swatch.component.d.ts +8 -0
- package/swatches/esm2020/ngx-color-swatches.mjs +5 -0
- package/swatches/esm2020/public_api.mjs +4 -0
- package/swatches/esm2020/swatches-color.component.mjs +123 -0
- package/swatches/esm2020/swatches-group.component.mjs +64 -0
- package/swatches/esm2020/swatches.component.mjs +258 -0
- package/swatches/fesm2015/ngx-color-swatches.mjs +441 -0
- package/swatches/fesm2015/ngx-color-swatches.mjs.map +1 -0
- package/swatches/fesm2020/ngx-color-swatches.mjs +441 -0
- package/swatches/fesm2020/ngx-color-swatches.mjs.map +1 -0
- package/swatches/ngx-color-swatches.d.ts +2 -3
- package/swatches/package.json +19 -7
- package/swatches/public_api.d.ts +3 -0
- package/swatches/swatches-color.component.d.ts +3 -0
- package/swatches/swatches-group.component.d.ts +3 -0
- package/swatches/swatches.component.d.ts +10 -0
- package/twitter/{esm2015/ngx-color-twitter.js → esm2020/ngx-color-twitter.mjs} +2 -2
- package/twitter/esm2020/public_api.mjs +2 -0
- package/twitter/esm2020/twitter.component.mjs +255 -0
- package/twitter/fesm2015/ngx-color-twitter.mjs +262 -0
- package/twitter/fesm2015/ngx-color-twitter.mjs.map +1 -0
- package/twitter/fesm2020/ngx-color-twitter.mjs +262 -0
- package/twitter/fesm2020/ngx-color-twitter.mjs.map +1 -0
- package/twitter/ngx-color-twitter.d.ts +2 -1
- package/twitter/package.json +19 -7
- package/twitter/public_api.d.ts +1 -0
- package/twitter/twitter.component.d.ts +8 -0
- package/alpha/bundles/ngx-color-alpha.umd.js +0 -387
- package/alpha/bundles/ngx-color-alpha.umd.js.map +0 -1
- package/alpha/esm2015/alpha-picker.component.js +0 -72
- package/alpha/fesm2015/ngx-color-alpha.js +0 -79
- package/alpha/fesm2015/ngx-color-alpha.js.map +0 -1
- package/alpha/ngx-color-alpha.metadata.json +0 -1
- package/block/bundles/ngx-color-block.umd.js +0 -455
- package/block/bundles/ngx-color-block.umd.js.map +0 -1
- package/block/esm2015/block-swatches.component.js +0 -58
- package/block/esm2015/block.component.js +0 -139
- package/block/esm2015/ngx-color-block.js +0 -6
- package/block/fesm2015/ngx-color-block.js +0 -202
- package/block/fesm2015/ngx-color-block.js.map +0 -1
- package/block/ngx-color-block.metadata.json +0 -1
- package/bundles/ngx-color.umd.js +0 -951
- package/bundles/ngx-color.umd.js.map +0 -1
- package/chrome/bundles/ngx-color-chrome.umd.js +0 -526
- package/chrome/bundles/ngx-color-chrome.umd.js.map +0 -1
- package/chrome/esm2015/chrome-fields.component.js +0 -255
- package/chrome/esm2015/chrome.component.js +0 -161
- package/chrome/esm2015/ngx-color-chrome.js +0 -6
- package/chrome/fesm2015/ngx-color-chrome.js +0 -420
- package/chrome/fesm2015/ngx-color-chrome.js.map +0 -1
- package/chrome/ngx-color-chrome.metadata.json +0 -1
- package/circle/bundles/ngx-color-circle.umd.js +0 -452
- package/circle/bundles/ngx-color-circle.umd.js.map +0 -1
- package/circle/esm2015/circle-swatch.component.js +0 -63
- package/circle/esm2015/circle.component.js +0 -97
- package/circle/esm2015/ngx-color-circle.js +0 -6
- package/circle/fesm2015/ngx-color-circle.js +0 -165
- package/circle/fesm2015/ngx-color-circle.js.map +0 -1
- package/circle/ngx-color-circle.metadata.json +0 -1
- package/compact/bundles/ngx-color-compact.umd.js +0 -562
- package/compact/bundles/ngx-color-compact.umd.js.map +0 -1
- package/compact/esm2015/compact-color.component.js +0 -70
- package/compact/esm2015/compact-fields.component.js +0 -142
- package/compact/esm2015/compact.component.js +0 -123
- package/compact/esm2015/ngx-color-compact.js +0 -7
- package/compact/fesm2015/ngx-color-compact.js +0 -336
- package/compact/fesm2015/ngx-color-compact.js.map +0 -1
- package/compact/ngx-color-compact.metadata.json +0 -1
- package/esm2015/alpha.component.js +0 -156
- package/esm2015/checkboard.component.js +0 -52
- package/esm2015/color-wrap.component.js +0 -82
- package/esm2015/coordinates.directive.js +0 -85
- package/esm2015/editable-input.component.js +0 -181
- package/esm2015/hue.component.js +0 -140
- package/esm2015/raised.component.js +0 -73
- package/esm2015/saturation.component.js +0 -111
- package/esm2015/shade.component.js +0 -127
- package/esm2015/swatch.component.js +0 -85
- package/fesm2015/ngx-color.js +0 -1164
- package/fesm2015/ngx-color.js.map +0 -1
- package/github/bundles/ngx-color-github.umd.js +0 -430
- package/github/bundles/ngx-color-github.umd.js.map +0 -1
- package/github/esm2015/github-swatch.component.js +0 -48
- package/github/esm2015/github.component.js +0 -134
- package/github/esm2015/ngx-color-github.js +0 -6
- package/github/fesm2015/ngx-color-github.js +0 -187
- package/github/fesm2015/ngx-color-github.js.map +0 -1
- package/github/ngx-color-github.metadata.json +0 -1
- package/hue/bundles/ngx-color-hue.umd.js +0 -390
- package/hue/bundles/ngx-color-hue.umd.js.map +0 -1
- package/hue/esm2015/hue-picker.component.js +0 -70
- package/hue/fesm2015/ngx-color-hue.js +0 -77
- package/hue/fesm2015/ngx-color-hue.js.map +0 -1
- package/hue/ngx-color-hue.metadata.json +0 -1
- package/material/bundles/ngx-color-material.umd.js +0 -438
- package/material/bundles/ngx-color-material.umd.js.map +0 -1
- package/material/esm2015/material.component.js +0 -149
- package/material/fesm2015/ngx-color-material.js +0 -156
- package/material/fesm2015/ngx-color-material.js.map +0 -1
- package/material/ngx-color-material.metadata.json +0 -1
- package/ngx-color.metadata.json +0 -1
- package/photoshop/bundles/ngx-color-photoshop.umd.js +0 -554
- package/photoshop/bundles/ngx-color-photoshop.umd.js.map +0 -1
- package/photoshop/esm2015/ngx-color-photoshop.js +0 -8
- package/photoshop/esm2015/photoshop-button.component.js +0 -50
- package/photoshop/esm2015/photoshop-fields.component.js +0 -180
- package/photoshop/esm2015/photoshop-previews.component.js +0 -53
- package/photoshop/esm2015/photoshop.component.js +0 -169
- package/photoshop/fesm2015/ngx-color-photoshop.js +0 -452
- package/photoshop/fesm2015/ngx-color-photoshop.js.map +0 -1
- package/photoshop/ngx-color-photoshop.metadata.json +0 -1
- package/shade/bundles/ngx-color-shade.umd.js +0 -382
- package/shade/bundles/ngx-color-shade.umd.js.map +0 -1
- package/shade/esm2015/shade-picker.component.js +0 -63
- package/shade/fesm2015/ngx-color-shade.js +0 -70
- package/shade/fesm2015/ngx-color-shade.js.map +0 -1
- package/shade/ngx-color-shade.metadata.json +0 -1
- package/sketch/bundles/ngx-color-sketch.umd.js +0 -568
- package/sketch/bundles/ngx-color-sketch.umd.js.map +0 -1
- package/sketch/esm2015/ngx-color-sketch.js +0 -7
- package/sketch/esm2015/sketch-fields.component.js +0 -181
- package/sketch/esm2015/sketch-preset-colors.component.js +0 -76
- package/sketch/esm2015/sketch.component.js +0 -191
- package/sketch/fesm2015/ngx-color-sketch.js +0 -450
- package/sketch/fesm2015/ngx-color-sketch.js.map +0 -1
- package/sketch/ngx-color-sketch.metadata.json +0 -1
- package/slider/bundles/ngx-color-slider.umd.js +0 -453
- package/slider/bundles/ngx-color-slider.umd.js.map +0 -1
- package/slider/esm2015/ngx-color-slider.js +0 -7
- package/slider/esm2015/slider-swatch.component.js +0 -65
- package/slider/esm2015/slider-swatches.component.js +0 -84
- package/slider/esm2015/slider.component.js +0 -69
- package/slider/fesm2015/ngx-color-slider.js +0 -221
- package/slider/fesm2015/ngx-color-slider.js.map +0 -1
- package/slider/ngx-color-slider.metadata.json +0 -1
- package/swatches/bundles/ngx-color-swatches.umd.js +0 -595
- package/swatches/bundles/ngx-color-swatches.umd.js.map +0 -1
- package/swatches/esm2015/ngx-color-swatches.js +0 -7
- package/swatches/esm2015/swatches-color.component.js +0 -90
- package/swatches/esm2015/swatches-group.component.js +0 -42
- package/swatches/esm2015/swatches.component.js +0 -205
- package/swatches/fesm2015/ngx-color-swatches.js +0 -339
- package/swatches/fesm2015/ngx-color-swatches.js.map +0 -1
- package/swatches/ngx-color-swatches.metadata.json +0 -1
- package/twitter/bundles/ngx-color-twitter.umd.js +0 -416
- package/twitter/bundles/ngx-color-twitter.umd.js.map +0 -1
- package/twitter/esm2015/twitter.component.js +0 -195
- package/twitter/fesm2015/ngx-color-twitter.js +0 -202
- package/twitter/fesm2015/ngx-color-twitter.js.map +0 -1
- package/twitter/ngx-color-twitter.metadata.json +0 -1
@@ -0,0 +1,113 @@
|
|
1
|
+
import { CommonModule } from '@angular/common';
|
2
|
+
import { ChangeDetectionStrategy, Component, forwardRef, Input, NgModule } from '@angular/core';
|
3
|
+
import { ColorWrap, HueModule, toState } from 'ngx-color';
|
4
|
+
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
5
|
+
import * as i0 from "@angular/core";
|
6
|
+
import * as i1 from "ngx-color";
|
7
|
+
export class HuePickerComponent extends ColorWrap {
|
8
|
+
constructor() {
|
9
|
+
super();
|
10
|
+
/** Pixel value for picker width */
|
11
|
+
this.width = 316;
|
12
|
+
/** Pixel value for picker height */
|
13
|
+
this.height = 16;
|
14
|
+
this.radius = 2;
|
15
|
+
this.direction = 'horizontal';
|
16
|
+
this.pointer = {
|
17
|
+
width: '18px',
|
18
|
+
height: '18px',
|
19
|
+
borderRadius: '50%',
|
20
|
+
transform: 'translate(-9px, -2px)',
|
21
|
+
backgroundColor: 'rgb(248, 248, 248)',
|
22
|
+
boxShadow: '0 1px 4px 0 rgba(0, 0, 0, 0.37)',
|
23
|
+
};
|
24
|
+
}
|
25
|
+
ngOnChanges() {
|
26
|
+
if (this.direction === 'vertical') {
|
27
|
+
this.pointer.transform = 'translate(-3px, -9px)';
|
28
|
+
}
|
29
|
+
this.setState(toState(this.color, this.oldHue));
|
30
|
+
}
|
31
|
+
handlePickerChange({ data, $event }) {
|
32
|
+
this.handleChange({ a: 1, h: data.h, l: 0.5, s: 1 }, $event);
|
33
|
+
}
|
34
|
+
}
|
35
|
+
HuePickerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: HuePickerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
36
|
+
HuePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0", type: HuePickerComponent, selector: "color-hue-picker", inputs: { width: "width", height: "height", radius: "radius", direction: "direction" }, providers: [
|
37
|
+
{
|
38
|
+
provide: NG_VALUE_ACCESSOR,
|
39
|
+
useExisting: forwardRef(() => HuePickerComponent),
|
40
|
+
multi: true,
|
41
|
+
},
|
42
|
+
{
|
43
|
+
provide: ColorWrap,
|
44
|
+
useExisting: forwardRef(() => HuePickerComponent),
|
45
|
+
},
|
46
|
+
], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: `
|
47
|
+
<div class="hue-picker {{ className }}"
|
48
|
+
[style.width.px]="width" [style.height.px]="height"
|
49
|
+
>
|
50
|
+
<color-hue [hsl]="hsl" [pointer]="pointer"
|
51
|
+
[direction]="direction" [radius]="radius"
|
52
|
+
(onChange)="handlePickerChange($event)"
|
53
|
+
></color-hue>
|
54
|
+
</div>
|
55
|
+
`, isInline: true, styles: [".hue-picker{position:relative}\n"], components: [{ type: i1.HueComponent, selector: "color-hue", inputs: ["hsl", "pointer", "radius", "shadow", "hidePointer", "direction"], outputs: ["onChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
56
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: HuePickerComponent, decorators: [{
|
57
|
+
type: Component,
|
58
|
+
args: [{
|
59
|
+
selector: 'color-hue-picker',
|
60
|
+
template: `
|
61
|
+
<div class="hue-picker {{ className }}"
|
62
|
+
[style.width.px]="width" [style.height.px]="height"
|
63
|
+
>
|
64
|
+
<color-hue [hsl]="hsl" [pointer]="pointer"
|
65
|
+
[direction]="direction" [radius]="radius"
|
66
|
+
(onChange)="handlePickerChange($event)"
|
67
|
+
></color-hue>
|
68
|
+
</div>
|
69
|
+
`,
|
70
|
+
styles: [
|
71
|
+
`
|
72
|
+
.hue-picker {
|
73
|
+
position: relative;
|
74
|
+
}
|
75
|
+
`,
|
76
|
+
],
|
77
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
78
|
+
preserveWhitespaces: false,
|
79
|
+
providers: [
|
80
|
+
{
|
81
|
+
provide: NG_VALUE_ACCESSOR,
|
82
|
+
useExisting: forwardRef(() => HuePickerComponent),
|
83
|
+
multi: true,
|
84
|
+
},
|
85
|
+
{
|
86
|
+
provide: ColorWrap,
|
87
|
+
useExisting: forwardRef(() => HuePickerComponent),
|
88
|
+
},
|
89
|
+
]
|
90
|
+
}]
|
91
|
+
}], ctorParameters: function () { return []; }, propDecorators: { width: [{
|
92
|
+
type: Input
|
93
|
+
}], height: [{
|
94
|
+
type: Input
|
95
|
+
}], radius: [{
|
96
|
+
type: Input
|
97
|
+
}], direction: [{
|
98
|
+
type: Input
|
99
|
+
}] } });
|
100
|
+
export class ColorHueModule {
|
101
|
+
}
|
102
|
+
ColorHueModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: ColorHueModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
103
|
+
ColorHueModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: ColorHueModule, declarations: [HuePickerComponent], imports: [CommonModule, HueModule], exports: [HuePickerComponent] });
|
104
|
+
ColorHueModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: ColorHueModule, imports: [[CommonModule, HueModule]] });
|
105
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: ColorHueModule, decorators: [{
|
106
|
+
type: NgModule,
|
107
|
+
args: [{
|
108
|
+
declarations: [HuePickerComponent],
|
109
|
+
exports: [HuePickerComponent],
|
110
|
+
imports: [CommonModule, HueModule],
|
111
|
+
}]
|
112
|
+
}] });
|
113
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaHVlLXBpY2tlci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvbGliL2NvbXBvbmVudHMvaHVlL2h1ZS1waWNrZXIuY29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ZXZlbnQgfSkge1xuICAgIHRoaXMuaGFuZGxlQ2hhbmdlKHsgYTogMSwgaDogZGF0YS5oLCBsOiAwLjUsIHM6IDEgfSwgJGV2ZW50KTtcbiAgfVxufVxuXG5ATmdNb2R1bGUoe1xuICBkZWNsYXJhdGlvbnM6IFtIdWVQaWNrZXJDb21wb25lbnRdLFxuICBleHBvcnRzOiBbSHVlUGlja2VyQ29tcG9uZW50XSxcbiAgaW1wb3J0czogW0NvbW1vbk1vZHVsZSwgSHVlTW9kdWxlXSxcbn0pXG5leHBvcnQgY2xhc3MgQ29sb3JIdWVNb2R1bGUge31cbiJdfQ==
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
2
|
* Generated bundle index. Do not edit.
|
3
3
|
*/
|
4
|
-
export * from './
|
5
|
-
//# sourceMappingURL=data:application/json;base64,
|
4
|
+
export * from './public_api';
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LWNvbG9yLWh1ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9saWIvY29tcG9uZW50cy9odWUvbmd4LWNvbG9yLWh1ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsY0FBYyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL3B1YmxpY19hcGknO1xuIl19
|
@@ -0,0 +1,2 @@
|
|
1
|
+
export { ColorHueModule, HuePickerComponent } from './hue-picker.component';
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9saWIvY29tcG9uZW50cy9odWUvcHVibGljX2FwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsY0FBYyxFQUFFLGtCQUFrQixFQUFFLE1BQU0sd0JBQXdCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgeyBDb2xvckh1ZU1vZHVsZSwgSHVlUGlja2VyQ29tcG9uZW50IH0gZnJvbSAnLi9odWUtcGlja2VyLmNvbXBvbmVudCc7XG4iXX0=
|
@@ -0,0 +1,120 @@
|
|
1
|
+
import { CommonModule } from '@angular/common';
|
2
|
+
import * as i0 from '@angular/core';
|
3
|
+
import { forwardRef, Component, ChangeDetectionStrategy, Input, NgModule } from '@angular/core';
|
4
|
+
import * as i1 from 'ngx-color';
|
5
|
+
import { ColorWrap, toState, HueModule } from 'ngx-color';
|
6
|
+
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
7
|
+
|
8
|
+
class HuePickerComponent extends ColorWrap {
|
9
|
+
constructor() {
|
10
|
+
super();
|
11
|
+
/** Pixel value for picker width */
|
12
|
+
this.width = 316;
|
13
|
+
/** Pixel value for picker height */
|
14
|
+
this.height = 16;
|
15
|
+
this.radius = 2;
|
16
|
+
this.direction = 'horizontal';
|
17
|
+
this.pointer = {
|
18
|
+
width: '18px',
|
19
|
+
height: '18px',
|
20
|
+
borderRadius: '50%',
|
21
|
+
transform: 'translate(-9px, -2px)',
|
22
|
+
backgroundColor: 'rgb(248, 248, 248)',
|
23
|
+
boxShadow: '0 1px 4px 0 rgba(0, 0, 0, 0.37)',
|
24
|
+
};
|
25
|
+
}
|
26
|
+
ngOnChanges() {
|
27
|
+
if (this.direction === 'vertical') {
|
28
|
+
this.pointer.transform = 'translate(-3px, -9px)';
|
29
|
+
}
|
30
|
+
this.setState(toState(this.color, this.oldHue));
|
31
|
+
}
|
32
|
+
handlePickerChange({ data, $event }) {
|
33
|
+
this.handleChange({ a: 1, h: data.h, l: 0.5, s: 1 }, $event);
|
34
|
+
}
|
35
|
+
}
|
36
|
+
HuePickerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: HuePickerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
37
|
+
HuePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0", type: HuePickerComponent, selector: "color-hue-picker", inputs: { width: "width", height: "height", radius: "radius", direction: "direction" }, providers: [
|
38
|
+
{
|
39
|
+
provide: NG_VALUE_ACCESSOR,
|
40
|
+
useExisting: forwardRef(() => HuePickerComponent),
|
41
|
+
multi: true,
|
42
|
+
},
|
43
|
+
{
|
44
|
+
provide: ColorWrap,
|
45
|
+
useExisting: forwardRef(() => HuePickerComponent),
|
46
|
+
},
|
47
|
+
], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: `
|
48
|
+
<div class="hue-picker {{ className }}"
|
49
|
+
[style.width.px]="width" [style.height.px]="height"
|
50
|
+
>
|
51
|
+
<color-hue [hsl]="hsl" [pointer]="pointer"
|
52
|
+
[direction]="direction" [radius]="radius"
|
53
|
+
(onChange)="handlePickerChange($event)"
|
54
|
+
></color-hue>
|
55
|
+
</div>
|
56
|
+
`, isInline: true, styles: [".hue-picker{position:relative}\n"], components: [{ type: i1.HueComponent, selector: "color-hue", inputs: ["hsl", "pointer", "radius", "shadow", "hidePointer", "direction"], outputs: ["onChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
57
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: HuePickerComponent, decorators: [{
|
58
|
+
type: Component,
|
59
|
+
args: [{
|
60
|
+
selector: 'color-hue-picker',
|
61
|
+
template: `
|
62
|
+
<div class="hue-picker {{ className }}"
|
63
|
+
[style.width.px]="width" [style.height.px]="height"
|
64
|
+
>
|
65
|
+
<color-hue [hsl]="hsl" [pointer]="pointer"
|
66
|
+
[direction]="direction" [radius]="radius"
|
67
|
+
(onChange)="handlePickerChange($event)"
|
68
|
+
></color-hue>
|
69
|
+
</div>
|
70
|
+
`,
|
71
|
+
styles: [
|
72
|
+
`
|
73
|
+
.hue-picker {
|
74
|
+
position: relative;
|
75
|
+
}
|
76
|
+
`,
|
77
|
+
],
|
78
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
79
|
+
preserveWhitespaces: false,
|
80
|
+
providers: [
|
81
|
+
{
|
82
|
+
provide: NG_VALUE_ACCESSOR,
|
83
|
+
useExisting: forwardRef(() => HuePickerComponent),
|
84
|
+
multi: true,
|
85
|
+
},
|
86
|
+
{
|
87
|
+
provide: ColorWrap,
|
88
|
+
useExisting: forwardRef(() => HuePickerComponent),
|
89
|
+
},
|
90
|
+
]
|
91
|
+
}]
|
92
|
+
}], ctorParameters: function () { return []; }, propDecorators: { width: [{
|
93
|
+
type: Input
|
94
|
+
}], height: [{
|
95
|
+
type: Input
|
96
|
+
}], radius: [{
|
97
|
+
type: Input
|
98
|
+
}], direction: [{
|
99
|
+
type: Input
|
100
|
+
}] } });
|
101
|
+
class ColorHueModule {
|
102
|
+
}
|
103
|
+
ColorHueModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: ColorHueModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
104
|
+
ColorHueModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: ColorHueModule, declarations: [HuePickerComponent], imports: [CommonModule, HueModule], exports: [HuePickerComponent] });
|
105
|
+
ColorHueModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: ColorHueModule, imports: [[CommonModule, HueModule]] });
|
106
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: ColorHueModule, decorators: [{
|
107
|
+
type: NgModule,
|
108
|
+
args: [{
|
109
|
+
declarations: [HuePickerComponent],
|
110
|
+
exports: [HuePickerComponent],
|
111
|
+
imports: [CommonModule, HueModule],
|
112
|
+
}]
|
113
|
+
}] });
|
114
|
+
|
115
|
+
/**
|
116
|
+
* Generated bundle index. Do not edit.
|
117
|
+
*/
|
118
|
+
|
119
|
+
export { ColorHueModule, HuePickerComponent };
|
120
|
+
//# sourceMappingURL=ngx-color-hue.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ngx-color-hue.mjs","sources":["../../../../src/lib/components/hue/hue-picker.component.ts","../../../../src/lib/components/hue/ngx-color-hue.ts"],"sourcesContent":["import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, forwardRef, Input, NgModule, OnChanges } from '@angular/core';\n\nimport { ColorWrap, HueModule, toState } from 'ngx-color';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\n\n@Component({\n selector: 'color-hue-picker',\n template: `\n <div class=\"hue-picker {{ className }}\"\n [style.width.px]=\"width\" [style.height.px]=\"height\"\n >\n <color-hue [hsl]=\"hsl\" [pointer]=\"pointer\"\n [direction]=\"direction\" [radius]=\"radius\"\n (onChange)=\"handlePickerChange($event)\"\n ></color-hue>\n </div>\n `,\n styles: [\n `\n .hue-picker {\n position: relative;\n }\n `,\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n preserveWhitespaces: false,\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => HuePickerComponent),\n multi: true,\n },\n {\n provide: ColorWrap,\n useExisting: forwardRef(() => HuePickerComponent),\n },\n ]\n})\nexport class HuePickerComponent extends ColorWrap implements OnChanges {\n /** Pixel value for picker width */\n @Input() width: string | number = 316;\n /** Pixel value for picker height */\n @Input() height: string | number = 16;\n @Input() radius = 2;\n @Input() direction: 'horizontal' | 'vertical' = 'horizontal';\n pointer: {[key: string]: string} = {\n width: '18px',\n height: '18px',\n borderRadius: '50%',\n transform: 'translate(-9px, -2px)',\n backgroundColor: 'rgb(248, 248, 248)',\n boxShadow: '0 1px 4px 0 rgba(0, 0, 0, 0.37)',\n };\n\n constructor() {\n super();\n }\n\n ngOnChanges() {\n if (this.direction === 'vertical') {\n this.pointer.transform = 'translate(-3px, -9px)';\n }\n this.setState(toState(this.color, this.oldHue));\n }\n handlePickerChange({ data, $event }) {\n this.handleChange({ a: 1, h: data.h, l: 0.5, s: 1 }, $event);\n }\n}\n\n@NgModule({\n declarations: [HuePickerComponent],\n exports: [HuePickerComponent],\n imports: [CommonModule, HueModule],\n})\nexport class ColorHueModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;MAuCa,2BAA2B,SAAS;IAgB/C;QACE,KAAK,EAAE,CAAC;;QAfD,UAAK,GAAoB,GAAG,CAAC;;QAE7B,WAAM,GAAoB,EAAE,CAAC;QAC7B,WAAM,GAAG,CAAC,CAAC;QACX,cAAS,GAA8B,YAAY,CAAC;QAC7D,YAAO,GAA4B;YACjC,KAAK,EAAE,MAAM;YACb,MAAM,EAAE,MAAM;YACd,YAAY,EAAE,KAAK;YACnB,SAAS,EAAE,uBAAuB;YAClC,eAAe,EAAE,oBAAoB;YACrC,SAAS,EAAE,iCAAiC;SAC7C,CAAC;KAID;IAED,WAAW;QACT,IAAI,IAAI,CAAC,SAAS,KAAK,UAAU,EAAE;YACjC,IAAI,CAAC,OAAO,CAAC,SAAS,GAAG,uBAAuB,CAAC;SAClD;QACD,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;KACjD;IACD,kBAAkB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE;QACjC,IAAI,CAAC,YAAY,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC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 from '@angular/core';
|
3
|
+
import { forwardRef, Component, ChangeDetectionStrategy, Input, NgModule } from '@angular/core';
|
4
|
+
import * as i1 from 'ngx-color';
|
5
|
+
import { ColorWrap, toState, HueModule } from 'ngx-color';
|
6
|
+
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
7
|
+
|
8
|
+
class HuePickerComponent extends ColorWrap {
|
9
|
+
constructor() {
|
10
|
+
super();
|
11
|
+
/** Pixel value for picker width */
|
12
|
+
this.width = 316;
|
13
|
+
/** Pixel value for picker height */
|
14
|
+
this.height = 16;
|
15
|
+
this.radius = 2;
|
16
|
+
this.direction = 'horizontal';
|
17
|
+
this.pointer = {
|
18
|
+
width: '18px',
|
19
|
+
height: '18px',
|
20
|
+
borderRadius: '50%',
|
21
|
+
transform: 'translate(-9px, -2px)',
|
22
|
+
backgroundColor: 'rgb(248, 248, 248)',
|
23
|
+
boxShadow: '0 1px 4px 0 rgba(0, 0, 0, 0.37)',
|
24
|
+
};
|
25
|
+
}
|
26
|
+
ngOnChanges() {
|
27
|
+
if (this.direction === 'vertical') {
|
28
|
+
this.pointer.transform = 'translate(-3px, -9px)';
|
29
|
+
}
|
30
|
+
this.setState(toState(this.color, this.oldHue));
|
31
|
+
}
|
32
|
+
handlePickerChange({ data, $event }) {
|
33
|
+
this.handleChange({ a: 1, h: data.h, l: 0.5, s: 1 }, $event);
|
34
|
+
}
|
35
|
+
}
|
36
|
+
HuePickerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: HuePickerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
37
|
+
HuePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0", type: HuePickerComponent, selector: "color-hue-picker", inputs: { width: "width", height: "height", radius: "radius", direction: "direction" }, providers: [
|
38
|
+
{
|
39
|
+
provide: NG_VALUE_ACCESSOR,
|
40
|
+
useExisting: forwardRef(() => HuePickerComponent),
|
41
|
+
multi: true,
|
42
|
+
},
|
43
|
+
{
|
44
|
+
provide: ColorWrap,
|
45
|
+
useExisting: forwardRef(() => HuePickerComponent),
|
46
|
+
},
|
47
|
+
], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: `
|
48
|
+
<div class="hue-picker {{ className }}"
|
49
|
+
[style.width.px]="width" [style.height.px]="height"
|
50
|
+
>
|
51
|
+
<color-hue [hsl]="hsl" [pointer]="pointer"
|
52
|
+
[direction]="direction" [radius]="radius"
|
53
|
+
(onChange)="handlePickerChange($event)"
|
54
|
+
></color-hue>
|
55
|
+
</div>
|
56
|
+
`, isInline: true, styles: [".hue-picker{position:relative}\n"], components: [{ type: i1.HueComponent, selector: "color-hue", inputs: ["hsl", "pointer", "radius", "shadow", "hidePointer", "direction"], outputs: ["onChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
57
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: HuePickerComponent, decorators: [{
|
58
|
+
type: Component,
|
59
|
+
args: [{
|
60
|
+
selector: 'color-hue-picker',
|
61
|
+
template: `
|
62
|
+
<div class="hue-picker {{ className }}"
|
63
|
+
[style.width.px]="width" [style.height.px]="height"
|
64
|
+
>
|
65
|
+
<color-hue [hsl]="hsl" [pointer]="pointer"
|
66
|
+
[direction]="direction" [radius]="radius"
|
67
|
+
(onChange)="handlePickerChange($event)"
|
68
|
+
></color-hue>
|
69
|
+
</div>
|
70
|
+
`,
|
71
|
+
styles: [
|
72
|
+
`
|
73
|
+
.hue-picker {
|
74
|
+
position: relative;
|
75
|
+
}
|
76
|
+
`,
|
77
|
+
],
|
78
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
79
|
+
preserveWhitespaces: false,
|
80
|
+
providers: [
|
81
|
+
{
|
82
|
+
provide: NG_VALUE_ACCESSOR,
|
83
|
+
useExisting: forwardRef(() => HuePickerComponent),
|
84
|
+
multi: true,
|
85
|
+
},
|
86
|
+
{
|
87
|
+
provide: ColorWrap,
|
88
|
+
useExisting: forwardRef(() => HuePickerComponent),
|
89
|
+
},
|
90
|
+
]
|
91
|
+
}]
|
92
|
+
}], ctorParameters: function () { return []; }, propDecorators: { width: [{
|
93
|
+
type: Input
|
94
|
+
}], height: [{
|
95
|
+
type: Input
|
96
|
+
}], radius: [{
|
97
|
+
type: Input
|
98
|
+
}], direction: [{
|
99
|
+
type: Input
|
100
|
+
}] } });
|
101
|
+
class ColorHueModule {
|
102
|
+
}
|
103
|
+
ColorHueModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: ColorHueModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
104
|
+
ColorHueModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: ColorHueModule, declarations: [HuePickerComponent], imports: [CommonModule, HueModule], exports: [HuePickerComponent] });
|
105
|
+
ColorHueModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: ColorHueModule, imports: [[CommonModule, HueModule]] });
|
106
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: ColorHueModule, decorators: [{
|
107
|
+
type: NgModule,
|
108
|
+
args: [{
|
109
|
+
declarations: [HuePickerComponent],
|
110
|
+
exports: [HuePickerComponent],
|
111
|
+
imports: [CommonModule, HueModule],
|
112
|
+
}]
|
113
|
+
}] });
|
114
|
+
|
115
|
+
/**
|
116
|
+
* Generated bundle index. Do not edit.
|
117
|
+
*/
|
118
|
+
|
119
|
+
export { ColorHueModule, HuePickerComponent };
|
120
|
+
//# sourceMappingURL=ngx-color-hue.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ngx-color-hue.mjs","sources":["../../../../src/lib/components/hue/hue-picker.component.ts","../../../../src/lib/components/hue/ngx-color-hue.ts"],"sourcesContent":["import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, forwardRef, Input, NgModule, OnChanges } from '@angular/core';\n\nimport { ColorWrap, HueModule, toState } from 'ngx-color';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\n\n@Component({\n selector: 'color-hue-picker',\n template: `\n <div class=\"hue-picker {{ className }}\"\n [style.width.px]=\"width\" [style.height.px]=\"height\"\n >\n <color-hue [hsl]=\"hsl\" [pointer]=\"pointer\"\n [direction]=\"direction\" [radius]=\"radius\"\n (onChange)=\"handlePickerChange($event)\"\n ></color-hue>\n </div>\n `,\n styles: [\n `\n .hue-picker {\n position: relative;\n }\n `,\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n preserveWhitespaces: false,\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => HuePickerComponent),\n multi: true,\n },\n {\n provide: ColorWrap,\n useExisting: forwardRef(() => HuePickerComponent),\n },\n ]\n})\nexport class HuePickerComponent extends ColorWrap implements OnChanges {\n /** Pixel value for picker width */\n @Input() width: string | number = 316;\n /** Pixel value for picker height */\n @Input() height: string | number = 16;\n @Input() radius = 2;\n @Input() direction: 'horizontal' | 'vertical' = 'horizontal';\n pointer: {[key: string]: string} = {\n width: '18px',\n height: '18px',\n borderRadius: '50%',\n transform: 'translate(-9px, -2px)',\n backgroundColor: 'rgb(248, 248, 248)',\n boxShadow: '0 1px 4px 0 rgba(0, 0, 0, 0.37)',\n };\n\n constructor() {\n super();\n }\n\n ngOnChanges() {\n if (this.direction === 'vertical') {\n this.pointer.transform = 'translate(-3px, -9px)';\n }\n this.setState(toState(this.color, this.oldHue));\n }\n handlePickerChange({ data, $event }) {\n this.handleChange({ a: 1, h: data.h, l: 0.5, s: 1 }, $event);\n }\n}\n\n@NgModule({\n declarations: [HuePickerComponent],\n exports: [HuePickerComponent],\n imports: [CommonModule, HueModule],\n})\nexport class ColorHueModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],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EAAE;wBACN;;;;GAID;qBACA;oBACD,eAAe,EAAE,uBAAuB,CAAC,MAAM;oBAC/C,mBAAmB,EAAE,KAAK;oBAC1B,SAAS,EAAE;wBACT;4BACE,OAAO,EAAE,iBAAiB;4BAC1B,WAAW,EAAE,UAAU,CAAC,wBAAwB,CAAC;4BACjD,KAAK,EAAE,IAAI;yBACZ;wBACD;4BACE,OAAO,EAAE,SAAS;4BAClB,WAAW,EAAE,UAAU,CAAC,wBAAwB,CAAC;yBAClD;qBACF;iBACF;0EAGU,KAAK;sBAAb,KAAK;gBAEG,MAAM;sBAAd,KAAK;gBACG,MAAM;sBAAd,KAAK;gBACG,SAAS;sBAAjB,KAAK;;MA8BK,cAAc;;2GAAd,cAAc;4GAAd,cAAc,iBApCd,kBAAkB,aAkCnB,YAAY,EAAE,SAAS,aAlCtB,kBAAkB;4GAoClB,cAAc,YAFhB,CAAC,YAAY,EAAE,SAAS,CAAC;2FAEvB,cAAc;kBAL1B,QAAQ;mBAAC;oBACR,YAAY,EAAE,CAAC,kBAAkB,CAAC;oBAClC,OAAO,EAAE,CAAC,kBAAkB,CAAC;oBAC7B,OAAO,EAAE,CAAC,YAAY,EAAE,SAAS,CAAC;iBACnC;;;AC1ED;;;;;;"}
|
@@ -1,5 +1,8 @@
|
|
1
1
|
import { OnChanges } from '@angular/core';
|
2
2
|
import { ColorWrap } from 'ngx-color';
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
import * as i1 from "@angular/common";
|
5
|
+
import * as i2 from "ngx-color";
|
3
6
|
export declare class HuePickerComponent extends ColorWrap implements OnChanges {
|
4
7
|
/** Pixel value for picker width */
|
5
8
|
width: string | number;
|
@@ -16,6 +19,11 @@ export declare class HuePickerComponent extends ColorWrap implements OnChanges {
|
|
16
19
|
data: any;
|
17
20
|
$event: any;
|
18
21
|
}): void;
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HuePickerComponent, never>;
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HuePickerComponent, "color-hue-picker", never, { "width": "width"; "height": "height"; "radius": "radius"; "direction": "direction"; }, {}, never, never>;
|
19
24
|
}
|
20
25
|
export declare class ColorHueModule {
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ColorHueModule, never>;
|
27
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ColorHueModule, [typeof HuePickerComponent], [typeof i1.CommonModule, typeof i2.HueModule], [typeof HuePickerComponent]>;
|
28
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ColorHueModule>;
|
21
29
|
}
|
package/hue/ngx-color-hue.d.ts
CHANGED
package/hue/package.json
CHANGED
@@ -5,15 +5,27 @@
|
|
5
5
|
"type": "git",
|
6
6
|
"url": "git+https://github.com/scttcper/ngx-color.git"
|
7
7
|
},
|
8
|
-
"
|
9
|
-
"
|
10
|
-
"
|
11
|
-
"
|
12
|
-
"fesm2015": "fesm2015/ngx-color-hue.
|
8
|
+
"module": "fesm2015/ngx-color-hue.mjs",
|
9
|
+
"es2020": "fesm2020/ngx-color-hue.mjs",
|
10
|
+
"esm2020": "esm2020/ngx-color-hue.mjs",
|
11
|
+
"fesm2020": "fesm2020/ngx-color-hue.mjs",
|
12
|
+
"fesm2015": "fesm2015/ngx-color-hue.mjs",
|
13
13
|
"typings": "ngx-color-hue.d.ts",
|
14
|
-
"
|
14
|
+
"exports": {
|
15
|
+
"./package.json": {
|
16
|
+
"default": "./package.json"
|
17
|
+
},
|
18
|
+
".": {
|
19
|
+
"types": "./ngx-color-hue.d.ts",
|
20
|
+
"esm2020": "./esm2020/ngx-color-hue.mjs",
|
21
|
+
"es2020": "./fesm2020/ngx-color-hue.mjs",
|
22
|
+
"es2015": "./fesm2015/ngx-color-hue.mjs",
|
23
|
+
"node": "./fesm2015/ngx-color-hue.mjs",
|
24
|
+
"default": "./fesm2020/ngx-color-hue.mjs"
|
25
|
+
}
|
26
|
+
},
|
15
27
|
"sideEffects": false,
|
16
28
|
"dependencies": {
|
17
|
-
"tslib": "^2.
|
29
|
+
"tslib": "^2.3.0"
|
18
30
|
}
|
19
31
|
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export { ColorHueModule, HuePickerComponent } from './hue-picker.component';
|
package/hue.component.d.ts
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
import { EventEmitter, OnChanges } from '@angular/core';
|
2
2
|
import { HSLA, HSLAsource } from './helpers/color.interfaces';
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
import * as i1 from "@angular/common";
|
5
|
+
import * as i2 from "./coordinates.directive";
|
3
6
|
export declare class HueComponent implements OnChanges {
|
4
7
|
hsl: HSLA;
|
5
8
|
pointer: Record<string, string>;
|
@@ -21,6 +24,11 @@ export declare class HueComponent implements OnChanges {
|
|
21
24
|
containerWidth: any;
|
22
25
|
$event: any;
|
23
26
|
}): void;
|
27
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HueComponent, never>;
|
28
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HueComponent, "color-hue", never, { "hsl": "hsl"; "pointer": "pointer"; "radius": "radius"; "shadow": "shadow"; "hidePointer": "hidePointer"; "direction": "direction"; }, { "onChange": "onChange"; }, never, never>;
|
24
29
|
}
|
25
30
|
export declare class HueModule {
|
31
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HueModule, never>;
|
32
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<HueModule, [typeof HueComponent], [typeof i1.CommonModule, typeof i2.CoordinatesModule], [typeof HueComponent]>;
|
33
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<HueModule>;
|
26
34
|
}
|