ngx-color 7.2.0 → 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 +7 -0
- 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 +7 -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 -404
- package/alpha/bundles/ngx-color-alpha.umd.js.map +0 -1
- package/alpha/esm2015/alpha-picker.component.js +0 -84
- package/alpha/fesm2015/ngx-color-alpha.js +0 -91
- 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 -472
- 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 -151
- package/block/esm2015/ngx-color-block.js +0 -6
- package/block/fesm2015/ngx-color-block.js +0 -214
- 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 -1014
- package/bundles/ngx-color.umd.js.map +0 -1
- package/chrome/bundles/ngx-color-chrome.umd.js +0 -543
- 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 -173
- package/chrome/esm2015/ngx-color-chrome.js +0 -6
- package/chrome/fesm2015/ngx-color-chrome.js +0 -432
- 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 -469
- 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 -109
- package/circle/esm2015/ngx-color-circle.js +0 -6
- package/circle/fesm2015/ngx-color-circle.js +0 -177
- 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 -579
- 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 -135
- package/compact/esm2015/ngx-color-compact.js +0 -7
- package/compact/fesm2015/ngx-color-compact.js +0 -348
- 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 -145
- package/esm2015/coordinates.directive.js +0 -85
- package/esm2015/editable-input.component.js +0 -183
- 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 -1228
- package/fesm2015/ngx-color.js.map +0 -1
- package/github/bundles/ngx-color-github.umd.js +0 -447
- 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 -146
- package/github/esm2015/ngx-color-github.js +0 -6
- package/github/fesm2015/ngx-color-github.js +0 -199
- 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 -407
- package/hue/bundles/ngx-color-hue.umd.js.map +0 -1
- package/hue/esm2015/hue-picker.component.js +0 -82
- package/hue/fesm2015/ngx-color-hue.js +0 -89
- 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 -455
- package/material/bundles/ngx-color-material.umd.js.map +0 -1
- package/material/esm2015/material.component.js +0 -161
- package/material/fesm2015/ngx-color-material.js +0 -168
- 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 -571
- 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 -181
- package/photoshop/fesm2015/ngx-color-photoshop.js +0 -464
- 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 -399
- package/shade/bundles/ngx-color-shade.umd.js.map +0 -1
- package/shade/esm2015/shade-picker.component.js +0 -75
- package/shade/fesm2015/ngx-color-shade.js +0 -82
- 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 -585
- 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 -203
- package/sketch/fesm2015/ngx-color-sketch.js +0 -462
- 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 -470
- 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 -81
- package/slider/fesm2015/ngx-color-slider.js +0 -233
- 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 -612
- 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 -217
- package/swatches/fesm2015/ngx-color-swatches.js +0 -351
- 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 -433
- package/twitter/bundles/ngx-color-twitter.umd.js.map +0 -1
- package/twitter/esm2015/twitter.component.js +0 -207
- package/twitter/fesm2015/ngx-color-twitter.js +0 -214
- package/twitter/fesm2015/ngx-color-twitter.js.map +0 -1
- package/twitter/ngx-color-twitter.metadata.json +0 -1
@@ -1,7 +1,5 @@
|
|
1
1
|
/**
|
2
2
|
* Generated bundle index. Do not edit.
|
3
3
|
*/
|
4
|
-
|
5
|
-
export
|
6
|
-
export { PhotoshopFieldsComponent as ɵc } from './photoshop-fields.component';
|
7
|
-
export { PhotoshopPreviewsComponent as ɵa } from './photoshop-previews.component';
|
4
|
+
/// <amd-module name="ngx-color/photoshop" />
|
5
|
+
export * from './public_api';
|
package/photoshop/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-photoshop.
|
8
|
+
"module": "fesm2015/ngx-color-photoshop.mjs",
|
9
|
+
"es2020": "fesm2020/ngx-color-photoshop.mjs",
|
10
|
+
"esm2020": "esm2020/ngx-color-photoshop.mjs",
|
11
|
+
"fesm2020": "fesm2020/ngx-color-photoshop.mjs",
|
12
|
+
"fesm2015": "fesm2015/ngx-color-photoshop.mjs",
|
13
13
|
"typings": "ngx-color-photoshop.d.ts",
|
14
|
-
"
|
14
|
+
"exports": {
|
15
|
+
"./package.json": {
|
16
|
+
"default": "./package.json"
|
17
|
+
},
|
18
|
+
".": {
|
19
|
+
"types": "./ngx-color-photoshop.d.ts",
|
20
|
+
"esm2020": "./esm2020/ngx-color-photoshop.mjs",
|
21
|
+
"es2020": "./fesm2020/ngx-color-photoshop.mjs",
|
22
|
+
"es2015": "./fesm2015/ngx-color-photoshop.mjs",
|
23
|
+
"node": "./fesm2015/ngx-color-photoshop.mjs",
|
24
|
+
"default": "./fesm2020/ngx-color-photoshop.mjs"
|
25
|
+
}
|
26
|
+
},
|
15
27
|
"sideEffects": false,
|
16
28
|
"dependencies": {
|
17
|
-
"tslib": "^2.
|
29
|
+
"tslib": "^2.3.0"
|
18
30
|
}
|
19
31
|
}
|
@@ -1,6 +1,9 @@
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
2
|
+
import * as i0 from "@angular/core";
|
2
3
|
export declare class PhotoshopButtonComponent {
|
3
4
|
label: string;
|
4
5
|
active: boolean;
|
5
6
|
onClick: EventEmitter<Event>;
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PhotoshopButtonComponent, never>;
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PhotoshopButtonComponent, "color-photoshop-button", never, { "label": "label"; "active": "active"; }, { "onClick": "onClick"; }, never, never>;
|
6
9
|
}
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
2
2
|
import { HSV, RGB } from 'ngx-color';
|
3
|
+
import * as i0 from "@angular/core";
|
3
4
|
export declare class PhotoshopFieldsComponent {
|
4
5
|
rgb: RGB;
|
5
6
|
hsv: HSV;
|
@@ -16,4 +17,6 @@ export declare class PhotoshopFieldsComponent {
|
|
16
17
|
data: any;
|
17
18
|
$event: any;
|
18
19
|
}): void;
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PhotoshopFieldsComponent, never>;
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PhotoshopFieldsComponent, "color-photoshop-fields", never, { "rgb": "rgb"; "hsv": "hsv"; "hex": "hex"; }, { "onChange": "onChange"; }, never, never>;
|
19
22
|
}
|
@@ -1,8 +1,11 @@
|
|
1
1
|
import { OnChanges } from '@angular/core';
|
2
2
|
import { RGB } from 'ngx-color';
|
3
|
+
import * as i0 from "@angular/core";
|
3
4
|
export declare class PhotoshopPreviewsComponent implements OnChanges {
|
4
5
|
rgb: RGB;
|
5
6
|
currentColor: string;
|
6
7
|
backgroundNew: string;
|
7
8
|
ngOnChanges(): void;
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PhotoshopPreviewsComponent, never>;
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PhotoshopPreviewsComponent, "color-photoshop-previews", never, { "rgb": "rgb"; "currentColor": "currentColor"; }, {}, never, never>;
|
8
11
|
}
|
@@ -1,5 +1,11 @@
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
2
2
|
import { ColorWrap } from 'ngx-color';
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
import * as i1 from "./photoshop-previews.component";
|
5
|
+
import * as i2 from "./photoshop-button.component";
|
6
|
+
import * as i3 from "./photoshop-fields.component";
|
7
|
+
import * as i4 from "@angular/common";
|
8
|
+
import * as i5 from "ngx-color";
|
3
9
|
export declare class PhotoshopComponent extends ColorWrap {
|
4
10
|
/** Title text */
|
5
11
|
header: string;
|
@@ -17,6 +23,11 @@ export declare class PhotoshopComponent extends ColorWrap {
|
|
17
23
|
data: any;
|
18
24
|
$event: any;
|
19
25
|
}): void;
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PhotoshopComponent, never>;
|
27
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PhotoshopComponent, "color-photoshop", never, { "header": "header"; }, { "onAccept": "onAccept"; "onCancel": "onCancel"; }, never, never>;
|
20
28
|
}
|
21
29
|
export declare class ColorPhotoshopModule {
|
30
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ColorPhotoshopModule, never>;
|
31
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ColorPhotoshopModule, [typeof PhotoshopComponent, typeof i1.PhotoshopPreviewsComponent, typeof i2.PhotoshopButtonComponent, typeof i3.PhotoshopFieldsComponent], [typeof i4.CommonModule, typeof i5.EditableInputModule, typeof i5.HueModule, typeof i5.AlphaModule, typeof i5.SwatchModule, typeof i5.SaturationModule], [typeof PhotoshopComponent, typeof i1.PhotoshopPreviewsComponent, typeof i2.PhotoshopButtonComponent, typeof i3.PhotoshopFieldsComponent]>;
|
32
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ColorPhotoshopModule>;
|
22
33
|
}
|
@@ -0,0 +1,4 @@
|
|
1
|
+
export { PhotoshopButtonComponent } from './photoshop-button.component';
|
2
|
+
export { PhotoshopFieldsComponent } from './photoshop-fields.component';
|
3
|
+
export { PhotoshopPreviewsComponent } from './photoshop-previews.component';
|
4
|
+
export { ColorPhotoshopModule, PhotoshopComponent } from './photoshop.component';
|
package/raised.component.d.ts
CHANGED
@@ -1,8 +1,15 @@
|
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
import * as i1 from "@angular/common";
|
1
3
|
export declare type zDepth = 0 | 1 | 2 | 3 | 4 | 5;
|
2
4
|
export declare class RaisedComponent {
|
3
5
|
zDepth: zDepth;
|
4
6
|
radius: number;
|
5
7
|
background: string;
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RaisedComponent, never>;
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RaisedComponent, "color-raised", never, { "zDepth": "zDepth"; "radius": "radius"; "background": "background"; }, {}, never, ["*"]>;
|
6
10
|
}
|
7
11
|
export declare class RaisedModule {
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RaisedModule, never>;
|
13
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<RaisedModule, [typeof RaisedComponent], [typeof i1.CommonModule], [typeof RaisedComponent]>;
|
14
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<RaisedModule>;
|
8
15
|
}
|
@@ -1,5 +1,8 @@
|
|
1
1
|
import { EventEmitter, OnChanges } from '@angular/core';
|
2
2
|
import { HSLA, HSVA, HSVAsource } 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 SaturationComponent implements OnChanges {
|
4
7
|
hsl: HSLA;
|
5
8
|
hsv: HSVA;
|
@@ -21,6 +24,11 @@ export declare class SaturationComponent implements OnChanges {
|
|
21
24
|
containerWidth: any;
|
22
25
|
$event: any;
|
23
26
|
}): void;
|
27
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SaturationComponent, never>;
|
28
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SaturationComponent, "color-saturation", never, { "hsl": "hsl"; "hsv": "hsv"; "radius": "radius"; "pointer": "pointer"; "circle": "circle"; }, { "onChange": "onChange"; }, never, never>;
|
24
29
|
}
|
25
30
|
export declare class SaturationModule {
|
31
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SaturationModule, never>;
|
32
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SaturationModule, [typeof SaturationComponent], [typeof i1.CommonModule, typeof i2.CoordinatesModule], [typeof SaturationComponent]>;
|
33
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SaturationModule>;
|
26
34
|
}
|
@@ -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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LWNvbG9yLXNoYWRlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vc3JjL2xpYi9jb21wb25lbnRzL3NoYWRlL25neC1jb2xvci1zaGFkZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsY0FBYyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL3B1YmxpY19hcGknO1xuIl19
|
@@ -0,0 +1,2 @@
|
|
1
|
+
export { ColorShadeModule, ShadeSliderComponent } from './shade-picker.component';
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9saWIvY29tcG9uZW50cy9zaGFkZS9wdWJsaWNfYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxnQkFBZ0IsRUFBRSxvQkFBb0IsRUFBRSxNQUFNLDBCQUEwQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IHsgQ29sb3JTaGFkZU1vZHVsZSwgU2hhZGVTbGlkZXJDb21wb25lbnQgfSBmcm9tICcuL3NoYWRlLXBpY2tlci5jb21wb25lbnQnO1xuIl19
|
@@ -0,0 +1,105 @@
|
|
1
|
+
import { CommonModule } from '@angular/common';
|
2
|
+
import { ChangeDetectionStrategy, Component, forwardRef, Input, NgModule } from '@angular/core';
|
3
|
+
import { ColorWrap, ShadeModule, 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 ShadeSliderComponent 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.pointer = {
|
15
|
+
width: '18px',
|
16
|
+
height: '18px',
|
17
|
+
borderRadius: '50%',
|
18
|
+
transform: 'translate(-9px, -2px)',
|
19
|
+
boxShadow: '0 1px 4px 0 rgba(0, 0, 0, 0.37)',
|
20
|
+
};
|
21
|
+
}
|
22
|
+
ngOnChanges() {
|
23
|
+
this.setState(toState(this.color, this.oldHue));
|
24
|
+
}
|
25
|
+
handlePickerChange({ data, $event }) {
|
26
|
+
this.handleChange(data, $event);
|
27
|
+
}
|
28
|
+
}
|
29
|
+
ShadeSliderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: ShadeSliderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
30
|
+
ShadeSliderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0", type: ShadeSliderComponent, selector: "color-shade-picker", inputs: { width: "width", height: "height" }, providers: [
|
31
|
+
{
|
32
|
+
provide: NG_VALUE_ACCESSOR,
|
33
|
+
useExisting: forwardRef(() => ShadeSliderComponent),
|
34
|
+
multi: true,
|
35
|
+
},
|
36
|
+
{
|
37
|
+
provide: ColorWrap,
|
38
|
+
useExisting: forwardRef(() => ShadeSliderComponent),
|
39
|
+
},
|
40
|
+
], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: `
|
41
|
+
<div class="shade-slider {{ className || '' }}"
|
42
|
+
[style.width.px]="width" [style.height.px]="height">
|
43
|
+
<color-shade
|
44
|
+
[hsl]="hsl"
|
45
|
+
[rgb]="rgb"
|
46
|
+
[pointer]="pointer"
|
47
|
+
(onChange)="handlePickerChange($event)"
|
48
|
+
></color-shade>
|
49
|
+
</div>
|
50
|
+
`, isInline: true, styles: [".shade-slider{position:relative}\n"], components: [{ type: i1.ShadeComponent, selector: "color-shade", inputs: ["hsl", "rgb", "pointer", "shadow", "radius"], outputs: ["onChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
51
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: ShadeSliderComponent, decorators: [{
|
52
|
+
type: Component,
|
53
|
+
args: [{
|
54
|
+
selector: 'color-shade-picker',
|
55
|
+
template: `
|
56
|
+
<div class="shade-slider {{ className || '' }}"
|
57
|
+
[style.width.px]="width" [style.height.px]="height">
|
58
|
+
<color-shade
|
59
|
+
[hsl]="hsl"
|
60
|
+
[rgb]="rgb"
|
61
|
+
[pointer]="pointer"
|
62
|
+
(onChange)="handlePickerChange($event)"
|
63
|
+
></color-shade>
|
64
|
+
</div>
|
65
|
+
`,
|
66
|
+
styles: [
|
67
|
+
`
|
68
|
+
.shade-slider {
|
69
|
+
position: relative;
|
70
|
+
}
|
71
|
+
`,
|
72
|
+
],
|
73
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
74
|
+
preserveWhitespaces: false,
|
75
|
+
providers: [
|
76
|
+
{
|
77
|
+
provide: NG_VALUE_ACCESSOR,
|
78
|
+
useExisting: forwardRef(() => ShadeSliderComponent),
|
79
|
+
multi: true,
|
80
|
+
},
|
81
|
+
{
|
82
|
+
provide: ColorWrap,
|
83
|
+
useExisting: forwardRef(() => ShadeSliderComponent),
|
84
|
+
},
|
85
|
+
]
|
86
|
+
}]
|
87
|
+
}], ctorParameters: function () { return []; }, propDecorators: { width: [{
|
88
|
+
type: Input
|
89
|
+
}], height: [{
|
90
|
+
type: Input
|
91
|
+
}] } });
|
92
|
+
export class ColorShadeModule {
|
93
|
+
}
|
94
|
+
ColorShadeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: ColorShadeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
95
|
+
ColorShadeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: ColorShadeModule, declarations: [ShadeSliderComponent], imports: [CommonModule, ShadeModule], exports: [ShadeSliderComponent] });
|
96
|
+
ColorShadeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: ColorShadeModule, imports: [[CommonModule, ShadeModule]] });
|
97
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: ColorShadeModule, decorators: [{
|
98
|
+
type: NgModule,
|
99
|
+
args: [{
|
100
|
+
declarations: [ShadeSliderComponent],
|
101
|
+
exports: [ShadeSliderComponent],
|
102
|
+
imports: [CommonModule, ShadeModule],
|
103
|
+
}]
|
104
|
+
}] });
|
105
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2hhZGUtcGlja2Vy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L1xuICBASW5wdXQoKSBoZWlnaHQ6IHN0cmluZyB8IG51bWJlciA9IDE2O1xuICBwb2ludGVyOiB7W2tleTogc3RyaW5nXTogc3RyaW5nfSA9IHtcbiAgICB3aWR0aDogJzE4cHgnLFxuICAgIGhlaWdodDogJzE4cHgnLFxuICAgIGJvcmRlclJhZGl1czogJzUwJScsXG4gICAgdHJhbnNmb3JtOiAndHJhbnNsYXRlKC05cHgsIC0ycHgpJyxcbiAgICBib3hTaGFkb3c6ICcwIDFweCA0cHggMCByZ2JhKDAsIDAsIDAsIDAuMzcpJyxcbiAgfTtcblxuICBjb25zdHJ1Y3RvcigpIHtcbiAgICBzdXBlcigpO1xuICB9XG4gIG5nT25DaGFuZ2VzKCkge1xuICAgIHRoaXMuc2V0U3RhdGUodG9TdGF0ZSh0aGlzLmNvbG9yLCB0aGlzLm9sZEh1ZSkpO1xuICB9XG4gIGhhbmRsZVBpY2tlckNoYW5nZSh7IGRhdGEsICRldmVudCB9KSB7XG4gICAgdGhpcy5oYW5kbGVDaGFuZ2UoZGF0YSwgJGV2ZW50KTtcbiAgfVxufVxuXG5ATmdNb2R1bGUoe1xuICBkZWNsYXJhdGlvbnM6IFtTaGFkZVNsaWRlckNvbXBvbmVudF0sXG4gIGV4cG9ydHM6IFtTaGFkZVNsaWRlckNvbXBvbmVudF0sXG4gIGltcG9ydHM6IFtDb21tb25Nb2R1bGUsIFNoYWRlTW9kdWxlXSxcbn0pXG5leHBvcnQgY2xhc3MgQ29sb3JTaGFkZU1vZHVsZSB7fVxuIl19
|
@@ -0,0 +1,112 @@
|
|
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, ShadeModule } from 'ngx-color';
|
6
|
+
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
7
|
+
|
8
|
+
class ShadeSliderComponent 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.pointer = {
|
16
|
+
width: '18px',
|
17
|
+
height: '18px',
|
18
|
+
borderRadius: '50%',
|
19
|
+
transform: 'translate(-9px, -2px)',
|
20
|
+
boxShadow: '0 1px 4px 0 rgba(0, 0, 0, 0.37)',
|
21
|
+
};
|
22
|
+
}
|
23
|
+
ngOnChanges() {
|
24
|
+
this.setState(toState(this.color, this.oldHue));
|
25
|
+
}
|
26
|
+
handlePickerChange({ data, $event }) {
|
27
|
+
this.handleChange(data, $event);
|
28
|
+
}
|
29
|
+
}
|
30
|
+
ShadeSliderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: ShadeSliderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
31
|
+
ShadeSliderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0", type: ShadeSliderComponent, selector: "color-shade-picker", inputs: { width: "width", height: "height" }, providers: [
|
32
|
+
{
|
33
|
+
provide: NG_VALUE_ACCESSOR,
|
34
|
+
useExisting: forwardRef(() => ShadeSliderComponent),
|
35
|
+
multi: true,
|
36
|
+
},
|
37
|
+
{
|
38
|
+
provide: ColorWrap,
|
39
|
+
useExisting: forwardRef(() => ShadeSliderComponent),
|
40
|
+
},
|
41
|
+
], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: `
|
42
|
+
<div class="shade-slider {{ className || '' }}"
|
43
|
+
[style.width.px]="width" [style.height.px]="height">
|
44
|
+
<color-shade
|
45
|
+
[hsl]="hsl"
|
46
|
+
[rgb]="rgb"
|
47
|
+
[pointer]="pointer"
|
48
|
+
(onChange)="handlePickerChange($event)"
|
49
|
+
></color-shade>
|
50
|
+
</div>
|
51
|
+
`, isInline: true, styles: [".shade-slider{position:relative}\n"], components: [{ type: i1.ShadeComponent, selector: "color-shade", inputs: ["hsl", "rgb", "pointer", "shadow", "radius"], outputs: ["onChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
52
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: ShadeSliderComponent, decorators: [{
|
53
|
+
type: Component,
|
54
|
+
args: [{
|
55
|
+
selector: 'color-shade-picker',
|
56
|
+
template: `
|
57
|
+
<div class="shade-slider {{ className || '' }}"
|
58
|
+
[style.width.px]="width" [style.height.px]="height">
|
59
|
+
<color-shade
|
60
|
+
[hsl]="hsl"
|
61
|
+
[rgb]="rgb"
|
62
|
+
[pointer]="pointer"
|
63
|
+
(onChange)="handlePickerChange($event)"
|
64
|
+
></color-shade>
|
65
|
+
</div>
|
66
|
+
`,
|
67
|
+
styles: [
|
68
|
+
`
|
69
|
+
.shade-slider {
|
70
|
+
position: relative;
|
71
|
+
}
|
72
|
+
`,
|
73
|
+
],
|
74
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
75
|
+
preserveWhitespaces: false,
|
76
|
+
providers: [
|
77
|
+
{
|
78
|
+
provide: NG_VALUE_ACCESSOR,
|
79
|
+
useExisting: forwardRef(() => ShadeSliderComponent),
|
80
|
+
multi: true,
|
81
|
+
},
|
82
|
+
{
|
83
|
+
provide: ColorWrap,
|
84
|
+
useExisting: forwardRef(() => ShadeSliderComponent),
|
85
|
+
},
|
86
|
+
]
|
87
|
+
}]
|
88
|
+
}], ctorParameters: function () { return []; }, propDecorators: { width: [{
|
89
|
+
type: Input
|
90
|
+
}], height: [{
|
91
|
+
type: Input
|
92
|
+
}] } });
|
93
|
+
class ColorShadeModule {
|
94
|
+
}
|
95
|
+
ColorShadeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: ColorShadeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
96
|
+
ColorShadeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: ColorShadeModule, declarations: [ShadeSliderComponent], imports: [CommonModule, ShadeModule], exports: [ShadeSliderComponent] });
|
97
|
+
ColorShadeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: ColorShadeModule, imports: [[CommonModule, ShadeModule]] });
|
98
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: ColorShadeModule, decorators: [{
|
99
|
+
type: NgModule,
|
100
|
+
args: [{
|
101
|
+
declarations: [ShadeSliderComponent],
|
102
|
+
exports: [ShadeSliderComponent],
|
103
|
+
imports: [CommonModule, ShadeModule],
|
104
|
+
}]
|
105
|
+
}] });
|
106
|
+
|
107
|
+
/**
|
108
|
+
* Generated bundle index. Do not edit.
|
109
|
+
*/
|
110
|
+
|
111
|
+
export { ColorShadeModule, ShadeSliderComponent };
|
112
|
+
//# sourceMappingURL=ngx-color-shade.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ngx-color-shade.mjs","sources":["../../../../src/lib/components/shade/shade-picker.component.ts","../../../../src/lib/components/shade/ngx-color-shade.ts"],"sourcesContent":["import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, forwardRef, Input, NgModule, OnChanges } from '@angular/core';\nimport { ColorWrap, ShadeModule, toState } from 'ngx-color';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\n\n@Component({\n selector: 'color-shade-picker',\n template: `\n <div class=\"shade-slider {{ className || '' }}\"\n [style.width.px]=\"width\" [style.height.px]=\"height\">\n <color-shade\n [hsl]=\"hsl\"\n [rgb]=\"rgb\"\n [pointer]=\"pointer\"\n (onChange)=\"handlePickerChange($event)\"\n ></color-shade>\n </div>\n `,\n styles: [\n `\n .shade-slider {\n position: relative;\n }\n `,\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n preserveWhitespaces: false,\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => ShadeSliderComponent),\n multi: true,\n },\n {\n provide: ColorWrap,\n useExisting: forwardRef(() => ShadeSliderComponent),\n },\n ]\n})\nexport class ShadeSliderComponent 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 pointer: {[key: string]: string} = {\n width: '18px',\n height: '18px',\n borderRadius: '50%',\n transform: 'translate(-9px, -2px)',\n boxShadow: '0 1px 4px 0 rgba(0, 0, 0, 0.37)',\n };\n\n constructor() {\n super();\n }\n ngOnChanges() {\n this.setState(toState(this.color, this.oldHue));\n }\n handlePickerChange({ data, $event }) {\n this.handleChange(data, $event);\n }\n}\n\n@NgModule({\n declarations: [ShadeSliderComponent],\n exports: [ShadeSliderComponent],\n imports: [CommonModule, ShadeModule],\n})\nexport class ColorShadeModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;MAuCa,6BAA6B,SAAS;IAajD;QACE,KAAK,EAAE,CAAC;;QAZD,UAAK,GAAoB,GAAG,CAAC;;QAE7B,WAAM,GAAoB,EAAE,CAAC;QACtC,YAAO,GAA4B;YACjC,KAAK,EAAE,MAAM;YACb,MAAM,EAAE,MAAM;YACd,YAAY,EAAE,KAAK;YACnB,SAAS,EAAE,uBAAuB;YAClC,SAAS,EAAE,iCAAiC;SAC7C,CAAC;KAID;IACD,WAAW;QACT,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,IAAI,EAAE,MAAM,CAAC,CAAC;KACjC;;iHArBU,oBAAoB;qGAApB,oBAAoB,2FAZpB;QACT;YACE,OAAO,EAAE,iBAAiB;YAC1B,WAAW,EAAE,UAAU,CAAC,MAAM,oBAAoB,CAAC;YACnD,KAAK,EAAE,IAAI;SACZ;QACD;YACE,OAAO,EAAE,SAAS;YAClB,WAAW,EAAE,UAAU,CAAC,MAAM,oBAAoB,CAAC;SACpD;KACF,sEA9BS;;;;;;;;;;GAUT;2FAsBU,oBAAoB;kBAlChC,SAAS;mBAAC;oBACT,QAAQ,EAAE,oBAAoB;oBAC9B,QAAQ,EAAE;;;;;;;;;;GAUT;oBACD,MAAM,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,0BAA0B,CAAC;4BACnD,KAAK,EAAE,IAAI;yBACZ;wBACD;4BACE,OAAO,EAAE,SAAS;4BAClB,WAAW,EAAE,UAAU,CAAC,0BAA0B,CAAC;yBACpD;qBACF;iBACF;0EAGU,KAAK;sBAAb,KAAK;gBAEG,MAAM;sBAAd,KAAK;;MAyBK,gBAAgB;;6GAAhB,gBAAgB;8GAAhB,gBAAgB,iBA7BhB,oBAAoB,aA2BrB,YAAY,EAAE,WAAW,aA3BxB,oBAAoB;8GA6BpB,gBAAgB,YAFlB,CAAC,YAAY,EAAE,WAAW,CAAC;2FAEzB,gBAAgB;kBAL5B,QAAQ;mBAAC;oBACR,YAAY,EAAE,CAAC,oBAAoB,CAAC;oBACpC,OAAO,EAAE,CAAC,oBAAoB,CAAC;oBAC/B,OAAO,EAAE,CAAC,YAAY,EAAE,WAAW,CAAC;iBACrC;;;ACnED;;;;;;"}
|
@@ -0,0 +1,112 @@
|
|
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, ShadeModule } from 'ngx-color';
|
6
|
+
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
7
|
+
|
8
|
+
class ShadeSliderComponent 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.pointer = {
|
16
|
+
width: '18px',
|
17
|
+
height: '18px',
|
18
|
+
borderRadius: '50%',
|
19
|
+
transform: 'translate(-9px, -2px)',
|
20
|
+
boxShadow: '0 1px 4px 0 rgba(0, 0, 0, 0.37)',
|
21
|
+
};
|
22
|
+
}
|
23
|
+
ngOnChanges() {
|
24
|
+
this.setState(toState(this.color, this.oldHue));
|
25
|
+
}
|
26
|
+
handlePickerChange({ data, $event }) {
|
27
|
+
this.handleChange(data, $event);
|
28
|
+
}
|
29
|
+
}
|
30
|
+
ShadeSliderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: ShadeSliderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
31
|
+
ShadeSliderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0", type: ShadeSliderComponent, selector: "color-shade-picker", inputs: { width: "width", height: "height" }, providers: [
|
32
|
+
{
|
33
|
+
provide: NG_VALUE_ACCESSOR,
|
34
|
+
useExisting: forwardRef(() => ShadeSliderComponent),
|
35
|
+
multi: true,
|
36
|
+
},
|
37
|
+
{
|
38
|
+
provide: ColorWrap,
|
39
|
+
useExisting: forwardRef(() => ShadeSliderComponent),
|
40
|
+
},
|
41
|
+
], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: `
|
42
|
+
<div class="shade-slider {{ className || '' }}"
|
43
|
+
[style.width.px]="width" [style.height.px]="height">
|
44
|
+
<color-shade
|
45
|
+
[hsl]="hsl"
|
46
|
+
[rgb]="rgb"
|
47
|
+
[pointer]="pointer"
|
48
|
+
(onChange)="handlePickerChange($event)"
|
49
|
+
></color-shade>
|
50
|
+
</div>
|
51
|
+
`, isInline: true, styles: [".shade-slider{position:relative}\n"], components: [{ type: i1.ShadeComponent, selector: "color-shade", inputs: ["hsl", "rgb", "pointer", "shadow", "radius"], outputs: ["onChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
52
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: ShadeSliderComponent, decorators: [{
|
53
|
+
type: Component,
|
54
|
+
args: [{
|
55
|
+
selector: 'color-shade-picker',
|
56
|
+
template: `
|
57
|
+
<div class="shade-slider {{ className || '' }}"
|
58
|
+
[style.width.px]="width" [style.height.px]="height">
|
59
|
+
<color-shade
|
60
|
+
[hsl]="hsl"
|
61
|
+
[rgb]="rgb"
|
62
|
+
[pointer]="pointer"
|
63
|
+
(onChange)="handlePickerChange($event)"
|
64
|
+
></color-shade>
|
65
|
+
</div>
|
66
|
+
`,
|
67
|
+
styles: [
|
68
|
+
`
|
69
|
+
.shade-slider {
|
70
|
+
position: relative;
|
71
|
+
}
|
72
|
+
`,
|
73
|
+
],
|
74
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
75
|
+
preserveWhitespaces: false,
|
76
|
+
providers: [
|
77
|
+
{
|
78
|
+
provide: NG_VALUE_ACCESSOR,
|
79
|
+
useExisting: forwardRef(() => ShadeSliderComponent),
|
80
|
+
multi: true,
|
81
|
+
},
|
82
|
+
{
|
83
|
+
provide: ColorWrap,
|
84
|
+
useExisting: forwardRef(() => ShadeSliderComponent),
|
85
|
+
},
|
86
|
+
]
|
87
|
+
}]
|
88
|
+
}], ctorParameters: function () { return []; }, propDecorators: { width: [{
|
89
|
+
type: Input
|
90
|
+
}], height: [{
|
91
|
+
type: Input
|
92
|
+
}] } });
|
93
|
+
class ColorShadeModule {
|
94
|
+
}
|
95
|
+
ColorShadeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: ColorShadeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
96
|
+
ColorShadeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: ColorShadeModule, declarations: [ShadeSliderComponent], imports: [CommonModule, ShadeModule], exports: [ShadeSliderComponent] });
|
97
|
+
ColorShadeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: ColorShadeModule, imports: [[CommonModule, ShadeModule]] });
|
98
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: ColorShadeModule, decorators: [{
|
99
|
+
type: NgModule,
|
100
|
+
args: [{
|
101
|
+
declarations: [ShadeSliderComponent],
|
102
|
+
exports: [ShadeSliderComponent],
|
103
|
+
imports: [CommonModule, ShadeModule],
|
104
|
+
}]
|
105
|
+
}] });
|
106
|
+
|
107
|
+
/**
|
108
|
+
* Generated bundle index. Do not edit.
|
109
|
+
*/
|
110
|
+
|
111
|
+
export { ColorShadeModule, ShadeSliderComponent };
|
112
|
+
//# sourceMappingURL=ngx-color-shade.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ngx-color-shade.mjs","sources":["../../../../src/lib/components/shade/shade-picker.component.ts","../../../../src/lib/components/shade/ngx-color-shade.ts"],"sourcesContent":["import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, forwardRef, Input, NgModule, OnChanges } from '@angular/core';\nimport { ColorWrap, ShadeModule, toState } from 'ngx-color';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\n\n@Component({\n selector: 'color-shade-picker',\n template: `\n <div class=\"shade-slider {{ className || '' }}\"\n [style.width.px]=\"width\" [style.height.px]=\"height\">\n <color-shade\n [hsl]=\"hsl\"\n [rgb]=\"rgb\"\n [pointer]=\"pointer\"\n (onChange)=\"handlePickerChange($event)\"\n ></color-shade>\n </div>\n `,\n styles: [\n `\n .shade-slider {\n position: relative;\n }\n `,\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n preserveWhitespaces: false,\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => ShadeSliderComponent),\n multi: true,\n },\n {\n provide: ColorWrap,\n useExisting: forwardRef(() => ShadeSliderComponent),\n },\n ]\n})\nexport class ShadeSliderComponent 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 pointer: {[key: string]: string} = {\n width: '18px',\n height: '18px',\n borderRadius: '50%',\n transform: 'translate(-9px, -2px)',\n boxShadow: '0 1px 4px 0 rgba(0, 0, 0, 0.37)',\n };\n\n constructor() {\n super();\n }\n ngOnChanges() {\n this.setState(toState(this.color, this.oldHue));\n }\n handlePickerChange({ data, $event }) {\n this.handleChange(data, $event);\n }\n}\n\n@NgModule({\n declarations: [ShadeSliderComponent],\n exports: [ShadeSliderComponent],\n imports: [CommonModule, ShadeModule],\n})\nexport class ColorShadeModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;MAuCa,oBAAqB,SAAQ,SAAS;IAajD;QACE,KAAK,EAAE,CAAC;;QAZD,UAAK,GAAoB,GAAG,CAAC;;QAE7B,WAAM,GAAoB,EAAE,CAAC;QACtC,YAAO,GAA4B;YACjC,KAAK,EAAE,MAAM;YACb,MAAM,EAAE,MAAM;YACd,YAAY,EAAE,KAAK;YACnB,SAAS,EAAE,uBAAuB;YAClC,SAAS,EAAE,iCAAiC;SAC7C,CAAC;KAID;IACD,WAAW;QACT,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;KACjD;IACD,kBAAkB,CAAC,EAAE,IAAI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,15 +7,27 @@
|
|
7
7
|
"url": "git+https://github.com/scttcper/ngx-color.git"
|
8
8
|
},
|
9
9
|
"license": "MIT",
|
10
|
-
"
|
11
|
-
"
|
12
|
-
"
|
13
|
-
"
|
14
|
-
"fesm2015": "fesm2015/ngx-color-shade.
|
10
|
+
"module": "fesm2015/ngx-color-shade.mjs",
|
11
|
+
"es2020": "fesm2020/ngx-color-shade.mjs",
|
12
|
+
"esm2020": "esm2020/ngx-color-shade.mjs",
|
13
|
+
"fesm2020": "fesm2020/ngx-color-shade.mjs",
|
14
|
+
"fesm2015": "fesm2015/ngx-color-shade.mjs",
|
15
15
|
"typings": "ngx-color-shade.d.ts",
|
16
|
-
"
|
16
|
+
"exports": {
|
17
|
+
"./package.json": {
|
18
|
+
"default": "./package.json"
|
19
|
+
},
|
20
|
+
".": {
|
21
|
+
"types": "./ngx-color-shade.d.ts",
|
22
|
+
"esm2020": "./esm2020/ngx-color-shade.mjs",
|
23
|
+
"es2020": "./fesm2020/ngx-color-shade.mjs",
|
24
|
+
"es2015": "./fesm2015/ngx-color-shade.mjs",
|
25
|
+
"node": "./fesm2015/ngx-color-shade.mjs",
|
26
|
+
"default": "./fesm2020/ngx-color-shade.mjs"
|
27
|
+
}
|
28
|
+
},
|
17
29
|
"sideEffects": false,
|
18
30
|
"dependencies": {
|
19
|
-
"tslib": "^2.
|
31
|
+
"tslib": "^2.3.0"
|
20
32
|
}
|
21
33
|
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export { ColorShadeModule, ShadeSliderComponent } from './shade-picker.component';
|
@@ -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 ShadeSliderComponent extends ColorWrap implements OnChanges {
|
4
7
|
/** Pixel value for picker width */
|
5
8
|
width: string | number;
|
@@ -14,6 +17,11 @@ export declare class ShadeSliderComponent extends ColorWrap implements OnChanges
|
|
14
17
|
data: any;
|
15
18
|
$event: any;
|
16
19
|
}): void;
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ShadeSliderComponent, never>;
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ShadeSliderComponent, "color-shade-picker", never, { "width": "width"; "height": "height"; }, {}, never, never>;
|
17
22
|
}
|
18
23
|
export declare class ColorShadeModule {
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ColorShadeModule, never>;
|
25
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ColorShadeModule, [typeof ShadeSliderComponent], [typeof i1.CommonModule, typeof i2.ShadeModule], [typeof ShadeSliderComponent]>;
|
26
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ColorShadeModule>;
|
19
27
|
}
|
package/shade.component.d.ts
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
import { EventEmitter, OnChanges } from '@angular/core';
|
2
2
|
import { HSLA, RGBA } 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 ShadeComponent implements OnChanges {
|
4
7
|
hsl: HSLA;
|
5
8
|
rgb: RGBA;
|
@@ -16,6 +19,11 @@ export declare class ShadeComponent implements OnChanges {
|
|
16
19
|
containerWidth: any;
|
17
20
|
$event: any;
|
18
21
|
}): void;
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ShadeComponent, never>;
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ShadeComponent, "color-shade", never, { "hsl": "hsl"; "rgb": "rgb"; "pointer": "pointer"; "shadow": "shadow"; "radius": "radius"; }, { "onChange": "onChange"; }, never, never>;
|
19
24
|
}
|
20
25
|
export declare class ShadeModule {
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ShadeModule, never>;
|
27
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ShadeModule, [typeof ShadeComponent], [typeof i1.CommonModule, typeof i2.CoordinatesModule], [typeof ShadeComponent]>;
|
28
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ShadeModule>;
|
21
29
|
}
|
@@ -0,0 +1,5 @@
|
|
1
|
+
/**
|
2
|
+
* Generated bundle index. Do not edit.
|
3
|
+
*/
|
4
|
+
export * from './public_api';
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LWNvbG9yLXNrZXRjaC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9saWIvY29tcG9uZW50cy9za2V0Y2gvbmd4LWNvbG9yLXNrZXRjaC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsY0FBYyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL3B1YmxpY19hcGknO1xuIl19
|
@@ -0,0 +1,4 @@
|
|
1
|
+
export { SketchFieldsComponent } from './sketch-fields.component';
|
2
|
+
export { SketchPresetColorsComponent } from './sketch-preset-colors.component';
|
3
|
+
export { ColorSketchModule, SketchComponent } from './sketch.component';
|
4
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9saWIvY29tcG9uZW50cy9za2V0Y2gvcHVibGljX2FwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUscUJBQXFCLEVBQUUsTUFBTSwyQkFBMkIsQ0FBQztBQUNsRSxPQUFPLEVBQUUsMkJBQTJCLEVBQUUsTUFBTSxrQ0FBa0MsQ0FBQztBQUMvRSxPQUFPLEVBQUUsaUJBQWlCLEVBQUUsZUFBZSxFQUFFLE1BQU0sb0JBQW9CLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgeyBTa2V0Y2hGaWVsZHNDb21wb25lbnQgfSBmcm9tICcuL3NrZXRjaC1maWVsZHMuY29tcG9uZW50JztcbmV4cG9ydCB7IFNrZXRjaFByZXNldENvbG9yc0NvbXBvbmVudCB9IGZyb20gJy4vc2tldGNoLXByZXNldC1jb2xvcnMuY29tcG9uZW50JztcbmV4cG9ydCB7IENvbG9yU2tldGNoTW9kdWxlLCBTa2V0Y2hDb21wb25lbnQgfSBmcm9tICcuL3NrZXRjaC5jb21wb25lbnQnO1xuIl19
|