ngx-color 8.0.2 → 9.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -3
- package/alpha/alpha-picker.component.d.ts +1 -1
- package/alpha.component.d.ts +1 -1
- package/block/block-swatches.component.d.ts +1 -1
- package/block/block.component.d.ts +1 -1
- package/checkboard.component.d.ts +1 -1
- package/chrome/chrome-fields.component.d.ts +1 -1
- package/chrome/chrome.component.d.ts +1 -1
- package/circle/circle-swatch.component.d.ts +1 -1
- package/circle/circle.component.d.ts +1 -1
- package/color-wrap.component.d.ts +1 -1
- package/compact/compact-color.component.d.ts +1 -1
- package/compact/compact-fields.component.d.ts +1 -1
- package/compact/compact.component.d.ts +1 -1
- package/coordinates.directive.d.ts +1 -1
- package/editable-input.component.d.ts +1 -1
- package/esm2022/alpha/alpha-picker.component.mjs +102 -0
- package/esm2022/alpha.component.mjs +146 -0
- package/esm2022/block/block-swatches.component.mjs +63 -0
- package/esm2022/block/block.component.mjs +160 -0
- package/esm2022/checkboard.component.mjs +53 -0
- package/esm2022/chrome/chrome-fields.component.mjs +317 -0
- package/esm2022/chrome/chrome.component.mjs +187 -0
- package/esm2022/circle/circle-swatch.component.mjs +69 -0
- package/esm2022/circle/circle.component.mjs +136 -0
- package/esm2022/color-wrap.component.mjs +173 -0
- package/esm2022/compact/compact-color.component.mjs +71 -0
- package/esm2022/compact/compact-fields.component.mjs +165 -0
- package/esm2022/compact/compact.component.mjs +156 -0
- package/esm2022/coordinates.directive.mjs +108 -0
- package/esm2022/editable-input.component.mjs +212 -0
- package/esm2022/github/github-swatch.component.mjs +53 -0
- package/esm2022/github/github.component.mjs +114 -0
- package/esm2022/hue/hue-picker.component.mjs +102 -0
- package/esm2022/hue.component.mjs +128 -0
- package/esm2022/material/material.component.mjs +188 -0
- package/esm2022/photoshop/photoshop-button.component.mjs +33 -0
- package/esm2022/photoshop/photoshop-fields.component.mjs +214 -0
- package/esm2022/photoshop/photoshop-previews.component.mjs +40 -0
- package/esm2022/photoshop/photoshop.component.mjs +187 -0
- package/esm2022/raised.component.mjs +50 -0
- package/esm2022/saturation.component.mjs +100 -0
- package/esm2022/shade/shade-picker.component.mjs +94 -0
- package/esm2022/shade.component.mjs +133 -0
- package/esm2022/sketch/sketch-fields.component.mjs +211 -0
- package/esm2022/sketch/sketch-preset-colors.component.mjs +68 -0
- package/esm2022/sketch/sketch.component.mjs +215 -0
- package/esm2022/slider/slider-swatch.component.mjs +55 -0
- package/esm2022/slider/slider-swatches.component.mjs +119 -0
- package/esm2022/slider/slider.component.mjs +104 -0
- package/esm2022/swatch.component.mjs +112 -0
- package/esm2022/swatches/swatches-color.component.mjs +105 -0
- package/esm2022/swatches/swatches-group.component.mjs +50 -0
- package/esm2022/swatches/swatches.component.mjs +244 -0
- package/esm2022/twitter/twitter.component.mjs +161 -0
- package/{fesm2020 → fesm2022}/ngx-color-alpha.mjs +30 -30
- package/fesm2022/ngx-color-alpha.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/ngx-color-block.mjs +65 -66
- package/fesm2022/ngx-color-block.mjs.map +1 -0
- package/{fesm2015 → fesm2022}/ngx-color-chrome.mjs +77 -74
- package/{fesm2020 → fesm2022}/ngx-color-chrome.mjs.map +1 -1
- package/{fesm2015 → fesm2022}/ngx-color-circle.mjs +61 -62
- package/fesm2022/ngx-color-circle.mjs.map +1 -0
- package/{fesm2015 → fesm2022}/ngx-color-compact.mjs +136 -136
- package/{fesm2015 → fesm2022}/ngx-color-compact.mjs.map +1 -1
- package/{fesm2015 → fesm2022}/ngx-color-github.mjs +53 -54
- package/{fesm2020 → fesm2022}/ngx-color-github.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/ngx-color-hue.mjs +32 -32
- package/fesm2022/ngx-color-hue.mjs.map +1 -0
- package/{fesm2015 → fesm2022}/ngx-color-material.mjs +59 -59
- package/{fesm2015 → fesm2022}/ngx-color-material.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/ngx-color-photoshop.mjs +111 -113
- package/{fesm2015 → fesm2022}/ngx-color-photoshop.mjs.map +1 -1
- package/{fesm2015 → fesm2022}/ngx-color-shade.mjs +29 -29
- package/fesm2022/ngx-color-shade.mjs.map +1 -0
- package/{fesm2015 → fesm2022}/ngx-color-sketch.mjs +96 -95
- package/fesm2022/ngx-color-sketch.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/ngx-color-slider.mjs +46 -45
- package/{fesm2015 → fesm2022}/ngx-color-slider.mjs.map +1 -1
- package/{fesm2015 → fesm2022}/ngx-color-swatches.mjs +182 -182
- package/fesm2022/ngx-color-swatches.mjs.map +1 -0
- package/{fesm2015 → fesm2022}/ngx-color-twitter.mjs +55 -55
- package/{fesm2015 → fesm2022}/ngx-color-twitter.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/ngx-color.mjs +200 -160
- package/fesm2022/ngx-color.mjs.map +1 -0
- package/github/github-swatch.component.d.ts +1 -1
- package/github/github.component.d.ts +1 -1
- package/hue/hue-picker.component.d.ts +1 -1
- package/hue.component.d.ts +1 -1
- package/material/material.component.d.ts +1 -1
- package/package.json +59 -84
- package/photoshop/photoshop-button.component.d.ts +1 -1
- package/photoshop/photoshop-fields.component.d.ts +1 -1
- package/photoshop/photoshop-previews.component.d.ts +1 -1
- package/photoshop/photoshop.component.d.ts +1 -1
- package/raised.component.d.ts +2 -2
- package/saturation.component.d.ts +1 -1
- package/shade/shade-picker.component.d.ts +1 -1
- package/shade.component.d.ts +1 -1
- package/sketch/sketch-fields.component.d.ts +1 -1
- package/sketch/sketch-preset-colors.component.d.ts +1 -1
- package/sketch/sketch.component.d.ts +1 -1
- package/slider/slider-swatch.component.d.ts +1 -1
- package/slider/slider-swatches.component.d.ts +1 -1
- package/slider/slider.component.d.ts +1 -1
- package/swatch.component.d.ts +1 -1
- package/swatches/swatches-color.component.d.ts +1 -1
- package/swatches/swatches-group.component.d.ts +1 -1
- package/swatches/swatches.component.d.ts +1 -1
- package/twitter/twitter.component.d.ts +1 -1
- package/esm2020/alpha/alpha-picker.component.mjs +0 -100
- package/esm2020/alpha.component.mjs +0 -138
- package/esm2020/block/block-swatches.component.mjs +0 -63
- package/esm2020/block/block.component.mjs +0 -158
- package/esm2020/checkboard.component.mjs +0 -50
- package/esm2020/chrome/chrome-fields.component.mjs +0 -314
- package/esm2020/chrome/chrome.component.mjs +0 -184
- package/esm2020/circle/circle-swatch.component.mjs +0 -69
- package/esm2020/circle/circle.component.mjs +0 -134
- package/esm2020/color-wrap.component.mjs +0 -163
- package/esm2020/compact/compact-color.component.mjs +0 -70
- package/esm2020/compact/compact-fields.component.mjs +0 -164
- package/esm2020/compact/compact.component.mjs +0 -154
- package/esm2020/coordinates.directive.mjs +0 -104
- package/esm2020/editable-input.component.mjs +0 -199
- package/esm2020/github/github-swatch.component.mjs +0 -53
- package/esm2020/github/github.component.mjs +0 -112
- package/esm2020/hue/hue-picker.component.mjs +0 -100
- package/esm2020/hue.component.mjs +0 -124
- package/esm2020/material/material.component.mjs +0 -186
- package/esm2020/photoshop/photoshop-button.component.mjs +0 -34
- package/esm2020/photoshop/photoshop-fields.component.mjs +0 -212
- package/esm2020/photoshop/photoshop-previews.component.mjs +0 -40
- package/esm2020/photoshop/photoshop.component.mjs +0 -185
- package/esm2020/raised.component.mjs +0 -50
- package/esm2020/saturation.component.mjs +0 -92
- package/esm2020/shade/shade-picker.component.mjs +0 -92
- package/esm2020/shade.component.mjs +0 -125
- package/esm2020/sketch/sketch-fields.component.mjs +0 -209
- package/esm2020/sketch/sketch-preset-colors.component.mjs +0 -68
- package/esm2020/sketch/sketch.component.mjs +0 -212
- package/esm2020/slider/slider-swatch.component.mjs +0 -52
- package/esm2020/slider/slider-swatches.component.mjs +0 -119
- package/esm2020/slider/slider.component.mjs +0 -102
- package/esm2020/swatch.component.mjs +0 -110
- package/esm2020/swatches/swatches-color.component.mjs +0 -104
- package/esm2020/swatches/swatches-group.component.mjs +0 -49
- package/esm2020/swatches/swatches.component.mjs +0 -242
- package/esm2020/twitter/twitter.component.mjs +0 -159
- package/fesm2015/ngx-color-alpha.mjs +0 -107
- package/fesm2015/ngx-color-alpha.mjs.map +0 -1
- package/fesm2015/ngx-color-block.mjs +0 -223
- package/fesm2015/ngx-color-block.mjs.map +0 -1
- package/fesm2015/ngx-color-chrome.mjs.map +0 -1
- package/fesm2015/ngx-color-circle.mjs.map +0 -1
- package/fesm2015/ngx-color-github.mjs.map +0 -1
- package/fesm2015/ngx-color-hue.mjs +0 -107
- package/fesm2015/ngx-color-hue.mjs.map +0 -1
- package/fesm2015/ngx-color-photoshop.mjs +0 -467
- package/fesm2015/ngx-color-shade.mjs.map +0 -1
- package/fesm2015/ngx-color-sketch.mjs.map +0 -1
- package/fesm2015/ngx-color-slider.mjs +0 -273
- package/fesm2015/ngx-color-swatches.mjs.map +0 -1
- package/fesm2015/ngx-color.mjs +0 -1202
- package/fesm2015/ngx-color.mjs.map +0 -1
- package/fesm2020/ngx-color-alpha.mjs.map +0 -1
- package/fesm2020/ngx-color-block.mjs.map +0 -1
- package/fesm2020/ngx-color-chrome.mjs +0 -499
- package/fesm2020/ngx-color-circle.mjs +0 -207
- package/fesm2020/ngx-color-circle.mjs.map +0 -1
- package/fesm2020/ngx-color-compact.mjs +0 -385
- package/fesm2020/ngx-color-compact.mjs.map +0 -1
- package/fesm2020/ngx-color-github.mjs +0 -169
- package/fesm2020/ngx-color-hue.mjs.map +0 -1
- package/fesm2020/ngx-color-material.mjs +0 -193
- package/fesm2020/ngx-color-material.mjs.map +0 -1
- package/fesm2020/ngx-color-photoshop.mjs.map +0 -1
- package/fesm2020/ngx-color-shade.mjs +0 -99
- package/fesm2020/ngx-color-shade.mjs.map +0 -1
- package/fesm2020/ngx-color-sketch.mjs +0 -485
- package/fesm2020/ngx-color-sketch.mjs.map +0 -1
- package/fesm2020/ngx-color-slider.mjs.map +0 -1
- package/fesm2020/ngx-color-swatches.mjs +0 -391
- package/fesm2020/ngx-color-swatches.mjs.map +0 -1
- package/fesm2020/ngx-color-twitter.mjs +0 -166
- package/fesm2020/ngx-color-twitter.mjs.map +0 -1
- package/fesm2020/ngx-color.mjs.map +0 -1
- /package/{esm2020 → esm2022}/alpha/ngx-color-alpha.mjs +0 -0
- /package/{esm2020 → esm2022}/alpha/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/block/ngx-color-block.mjs +0 -0
- /package/{esm2020 → esm2022}/block/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/chrome/ngx-color-chrome.mjs +0 -0
- /package/{esm2020 → esm2022}/chrome/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/circle/ngx-color-circle.mjs +0 -0
- /package/{esm2020 → esm2022}/circle/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/compact/ngx-color-compact.mjs +0 -0
- /package/{esm2020 → esm2022}/compact/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/github/ngx-color-github.mjs +0 -0
- /package/{esm2020 → esm2022}/github/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/helpers/checkboard.mjs +0 -0
- /package/{esm2020 → esm2022}/helpers/color.interfaces.mjs +0 -0
- /package/{esm2020 → esm2022}/helpers/color.mjs +0 -0
- /package/{esm2020 → esm2022}/hue/ngx-color-hue.mjs +0 -0
- /package/{esm2020 → esm2022}/hue/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/material/ngx-color-material.mjs +0 -0
- /package/{esm2020 → esm2022}/material/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/ngx-color.mjs +0 -0
- /package/{esm2020 → esm2022}/photoshop/ngx-color-photoshop.mjs +0 -0
- /package/{esm2020 → esm2022}/photoshop/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/shade/ngx-color-shade.mjs +0 -0
- /package/{esm2020 → esm2022}/shade/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/sketch/ngx-color-sketch.mjs +0 -0
- /package/{esm2020 → esm2022}/sketch/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/slider/ngx-color-slider.mjs +0 -0
- /package/{esm2020 → esm2022}/slider/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/swatches/ngx-color-swatches.mjs +0 -0
- /package/{esm2020 → esm2022}/swatches/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/twitter/ngx-color-twitter.mjs +0 -0
- /package/{esm2020 → esm2022}/twitter/public_api.mjs +0 -0
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ngx-color-github.mjs","sources":["../../src/lib/github/github-swatch.component.ts","../../src/lib/github/github.component.ts","../../src/lib/github/ngx-color-github.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from '@angular/core';\n\n@Component({\n selector: 'color-github-swatch',\n template: `\n <div class=\"github-swatch\">\n <color-swatch\n [color]=\"color\"\n [focusStyle]=\"focusStyle\"\n (onClick)=\"handleClick($event)\"\n (onHover)=\"onSwatchHover.emit($event)\"\n class=\"swatch\"\n ></color-swatch>\n <div class=\"clear\"></div>\n </div>\n `,\n styles: [\n `\n .github-swatch {\n width: 25px;\n height: 25px;\n font-size: 0;\n }\n `,\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n preserveWhitespaces: false,\n})\nexport class GithubSwatchComponent {\n @Input() color!: string;\n @Output() onClick = new EventEmitter<any>();\n @Output() onSwatchHover = new EventEmitter<any>();\n focusStyle = {\n position: 'relative',\n 'z-index': '2',\n outline: '2px solid #fff',\n 'box-shadow': '0 0 5px 2px rgba(0,0,0,0.25)',\n };\n\n handleClick({ hex, $event }) {\n this.onClick.emit({ hex, $event });\n }\n}\n","import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, forwardRef, Input, NgModule } from '@angular/core';\n\nimport { ColorWrap, isValidHex, SwatchModule } from 'ngx-color';\nimport { GithubSwatchComponent } from './github-swatch.component';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\n\n@Component({\n selector: 'color-github',\n template: `\n <div class=\"github-picker {{ triangle }}-triangle {{ className }}\"\n [style.width.px]=\"width\"\n >\n <div class=\"triangleShadow\"></div>\n <div class=\"triangle\"></div>\n <color-github-swatch *ngFor=\"let color of colors\"\n [color]=\"color\"\n (onClick)=\"handleBlockChange($event)\"\n (onSwatchHover)=\"onSwatchHover.emit($event)\"\n ></color-github-swatch>\n </div>\n `,\n styles: [\n `\n .github-picker {\n background: rgb(255, 255, 255);\n border: 1px solid rgba(0, 0, 0, 0.2);\n box-shadow: rgba(0, 0, 0, 0.15) 0px 3px 12px;\n border-radius: 4px;\n position: relative;\n padding: 5px;\n display: flex;\n flex-wrap: wrap;\n box-sizing: border-box;\n }\n .triangleShadow {\n position: absolute;\n border-width: 8px;\n border-style: solid;\n border-color: transparent transparent rgba(0, 0, 0, 0.15);\n border-image: initial;\n }\n .triangle {\n position: absolute;\n border-width: 7px;\n border-style: solid;\n border-color: transparent transparent rgb(255, 255, 255);\n border-image: initial;\n }\n .hide-triangle > .triangle {\n display: none;\n }\n .hide-triangle > .triangleShadow {\n display: none;\n }\n .top-left-triangle > .triangle {\n top: -14px;\n left: 10px;\n }\n .top-left-triangle > .triangleShadow {\n top: -16px;\n left: 9px;\n }\n .top-right-triangle > .triangle {\n top: -14px;\n right: 10px;\n }\n .top-right-triangle > .triangleShadow {\n top: -16px;\n right: 9px;\n }\n .bottom-right-triangle > .triangle {\n top: 35px;\n right: 10px;\n transform: rotate(180deg);\n }\n .bottom-right-triangle > .triangleShadow {\n top: 37px;\n right: 9px;\n transform: rotate(180deg);\n }\n `,\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n preserveWhitespaces: false,\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => GithubComponent),\n multi: true,\n },\n {\n provide: ColorWrap,\n useExisting: forwardRef(() => GithubComponent),\n },\n ]\n})\nexport class GithubComponent extends ColorWrap {\n /** Pixel value for picker width */\n @Input() width: string | number = 212;\n /** Color squares to display */\n @Input() colors = [\n '#B80000',\n '#DB3E00',\n '#FCCB00',\n '#008B02',\n '#006B76',\n '#1273DE',\n '#004DCF',\n '#5300EB',\n '#EB9694',\n '#FAD0C3',\n '#FEF3BD',\n '#C1E1C5',\n '#BEDADC',\n '#C4DEF6',\n '#BED3F3',\n '#D4C4FB',\n ];\n @Input() triangle: 'hide' | 'top-left' | 'top-right' | 'bottom-right' = 'top-left';\n\n constructor() {\n super();\n }\n\n handleBlockChange({ hex, $event }: { hex: string, $event: Event }) {\n if (isValidHex(hex)) {\n this.handleChange({ hex, source: 'hex' }, $event);\n }\n }\n handleValueChange({ data, $event }) {\n this.handleChange(data, $event);\n }\n}\n\n@NgModule({\n declarations: [GithubComponent, GithubSwatchComponent],\n exports: [GithubComponent, GithubSwatchComponent],\n imports: [CommonModule, SwatchModule],\n})\nexport class ColorGithubModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;
|
1
|
+
{"version":3,"file":"ngx-color-github.mjs","sources":["../../src/lib/github/github-swatch.component.ts","../../src/lib/github/github.component.ts","../../src/lib/github/ngx-color-github.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from '@angular/core';\n\n@Component({\n selector: 'color-github-swatch',\n template: `\n <div class=\"github-swatch\">\n <color-swatch\n [color]=\"color\"\n [focusStyle]=\"focusStyle\"\n (onClick)=\"handleClick($event)\"\n (onHover)=\"onSwatchHover.emit($event)\"\n class=\"swatch\"\n ></color-swatch>\n <div class=\"clear\"></div>\n </div>\n `,\n styles: [\n `\n .github-swatch {\n width: 25px;\n height: 25px;\n font-size: 0;\n }\n `,\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n preserveWhitespaces: false,\n})\nexport class GithubSwatchComponent {\n @Input() color!: string;\n @Output() onClick = new EventEmitter<any>();\n @Output() onSwatchHover = new EventEmitter<any>();\n focusStyle = {\n position: 'relative',\n 'z-index': '2',\n outline: '2px solid #fff',\n 'box-shadow': '0 0 5px 2px rgba(0,0,0,0.25)',\n };\n\n handleClick({ hex, $event }) {\n this.onClick.emit({ hex, $event });\n }\n}\n","import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, forwardRef, Input, NgModule } from '@angular/core';\n\nimport { ColorWrap, isValidHex, SwatchModule } from 'ngx-color';\nimport { GithubSwatchComponent } from './github-swatch.component';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\n\n@Component({\n selector: 'color-github',\n template: `\n <div class=\"github-picker {{ triangle }}-triangle {{ className }}\"\n [style.width.px]=\"width\"\n >\n <div class=\"triangleShadow\"></div>\n <div class=\"triangle\"></div>\n <color-github-swatch *ngFor=\"let color of colors\"\n [color]=\"color\"\n (onClick)=\"handleBlockChange($event)\"\n (onSwatchHover)=\"onSwatchHover.emit($event)\"\n ></color-github-swatch>\n </div>\n `,\n styles: [\n `\n .github-picker {\n background: rgb(255, 255, 255);\n border: 1px solid rgba(0, 0, 0, 0.2);\n box-shadow: rgba(0, 0, 0, 0.15) 0px 3px 12px;\n border-radius: 4px;\n position: relative;\n padding: 5px;\n display: flex;\n flex-wrap: wrap;\n box-sizing: border-box;\n }\n .triangleShadow {\n position: absolute;\n border-width: 8px;\n border-style: solid;\n border-color: transparent transparent rgba(0, 0, 0, 0.15);\n border-image: initial;\n }\n .triangle {\n position: absolute;\n border-width: 7px;\n border-style: solid;\n border-color: transparent transparent rgb(255, 255, 255);\n border-image: initial;\n }\n .hide-triangle > .triangle {\n display: none;\n }\n .hide-triangle > .triangleShadow {\n display: none;\n }\n .top-left-triangle > .triangle {\n top: -14px;\n left: 10px;\n }\n .top-left-triangle > .triangleShadow {\n top: -16px;\n left: 9px;\n }\n .top-right-triangle > .triangle {\n top: -14px;\n right: 10px;\n }\n .top-right-triangle > .triangleShadow {\n top: -16px;\n right: 9px;\n }\n .bottom-right-triangle > .triangle {\n top: 35px;\n right: 10px;\n transform: rotate(180deg);\n }\n .bottom-right-triangle > .triangleShadow {\n top: 37px;\n right: 9px;\n transform: rotate(180deg);\n }\n `,\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n preserveWhitespaces: false,\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => GithubComponent),\n multi: true,\n },\n {\n provide: ColorWrap,\n useExisting: forwardRef(() => GithubComponent),\n },\n ]\n})\nexport class GithubComponent extends ColorWrap {\n /** Pixel value for picker width */\n @Input() width: string | number = 212;\n /** Color squares to display */\n @Input() colors = [\n '#B80000',\n '#DB3E00',\n '#FCCB00',\n '#008B02',\n '#006B76',\n '#1273DE',\n '#004DCF',\n '#5300EB',\n '#EB9694',\n '#FAD0C3',\n '#FEF3BD',\n '#C1E1C5',\n '#BEDADC',\n '#C4DEF6',\n '#BED3F3',\n '#D4C4FB',\n ];\n @Input() triangle: 'hide' | 'top-left' | 'top-right' | 'bottom-right' = 'top-left';\n\n constructor() {\n super();\n }\n\n handleBlockChange({ hex, $event }: { hex: string, $event: Event }) {\n if (isValidHex(hex)) {\n this.handleChange({ hex, source: 'hex' }, $event);\n }\n }\n handleValueChange({ data, $event }) {\n this.handleChange(data, $event);\n }\n}\n\n@NgModule({\n declarations: [GithubComponent, GithubSwatchComponent],\n exports: [GithubComponent, GithubSwatchComponent],\n imports: [CommonModule, SwatchModule],\n})\nexport class ColorGithubModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;AAEA,MA0Ba,qBAAqB,CAAA;AACvB,IAAA,KAAK,CAAU;AACd,IAAA,OAAO,GAAG,IAAI,YAAY,EAAO,CAAC;AAClC,IAAA,aAAa,GAAG,IAAI,YAAY,EAAO,CAAC;AAClD,IAAA,UAAU,GAAG;AACX,QAAA,QAAQ,EAAE,UAAU;AACpB,QAAA,SAAS,EAAE,GAAG;AACd,QAAA,OAAO,EAAE,gBAAgB;AACzB,QAAA,YAAY,EAAE,8BAA8B;KAC7C,CAAC;AAEF,IAAA,WAAW,CAAC,EAA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/forms';
|
7
7
|
|
8
8
|
class HuePickerComponent extends ColorWrap {
|
9
|
+
/** Pixel value for picker width */
|
10
|
+
width = 316;
|
11
|
+
/** Pixel value for picker height */
|
12
|
+
height = 16;
|
13
|
+
radius = 2;
|
14
|
+
direction = 'horizontal';
|
15
|
+
pointer = {
|
16
|
+
width: '18px',
|
17
|
+
height: '18px',
|
18
|
+
borderRadius: '50%',
|
19
|
+
transform: 'translate(-9px, -2px)',
|
20
|
+
backgroundColor: 'rgb(248, 248, 248)',
|
21
|
+
boxShadow: '0 1px 4px 0 rgba(0, 0, 0, 0.37)',
|
22
|
+
};
|
9
23
|
constructor() {
|
10
24
|
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
25
|
}
|
26
26
|
ngOnChanges() {
|
27
27
|
if (this.direction === 'vertical') {
|
@@ -32,19 +32,18 @@ class HuePickerComponent extends ColorWrap {
|
|
32
32
|
handlePickerChange({ data, $event }) {
|
33
33
|
this.handleChange({ a: 1, h: data.h, l: 0.5, s: 1 }, $event);
|
34
34
|
}
|
35
|
-
}
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: `
|
35
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.1", ngImport: i0, type: HuePickerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
36
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.1", 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: `
|
48
47
|
<div class="hue-picker {{ className }}"
|
49
48
|
[style.width.px]="width" [style.height.px]="height"
|
50
49
|
>
|
@@ -54,7 +53,8 @@ HuePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", ver
|
|
54
53
|
></color-hue>
|
55
54
|
</div>
|
56
55
|
`, isInline: true, styles: [".hue-picker{position:relative}\n"], dependencies: [{ kind: "component", type: i1.HueComponent, selector: "color-hue", inputs: ["hsl", "pointer", "radius", "shadow", "hidePointer", "direction"], outputs: ["onChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
57
|
-
|
56
|
+
}
|
57
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.1", ngImport: i0, type: HuePickerComponent, decorators: [{
|
58
58
|
type: Component,
|
59
59
|
args: [{ selector: 'color-hue-picker', template: `
|
60
60
|
<div class="hue-picker {{ className }}"
|
@@ -86,11 +86,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImpor
|
|
86
86
|
type: Input
|
87
87
|
}] } });
|
88
88
|
class ColorHueModule {
|
89
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.1", ngImport: i0, type: ColorHueModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
90
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.1", ngImport: i0, type: ColorHueModule, declarations: [HuePickerComponent], imports: [CommonModule, HueModule], exports: [HuePickerComponent] });
|
91
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.1", ngImport: i0, type: ColorHueModule, imports: [CommonModule, HueModule] });
|
89
92
|
}
|
90
|
-
|
91
|
-
ColorHueModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.2", ngImport: i0, type: ColorHueModule, declarations: [HuePickerComponent], imports: [CommonModule, HueModule], exports: [HuePickerComponent] });
|
92
|
-
ColorHueModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: ColorHueModule, imports: [CommonModule, HueModule] });
|
93
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: ColorHueModule, decorators: [{
|
93
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.1", ngImport: i0, type: ColorHueModule, decorators: [{
|
94
94
|
type: NgModule,
|
95
95
|
args: [{
|
96
96
|
declarations: [HuePickerComponent],
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ngx-color-hue.mjs","sources":["../../src/lib/hue/hue-picker.component.ts","../../src/lib/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":";;;;;;;AAMA,MAiCa,kBAAmB,SAAQ,SAAS,CAAA;;IAEtC,KAAK,GAAoB,GAAG,CAAC;;IAE7B,MAAM,GAAoB,EAAE,CAAC;IAC7B,MAAM,GAAG,CAAC,CAAC;IACX,SAAS,GAA8B,YAAY,CAAC;AAC7D,IAAA,OAAO,GAA4B;AACjC,QAAA,KAAK,EAAE,MAAM;AACb,QAAA,MAAM,EAAE,MAAM;AACd,QAAA,YAAY,EAAE,KAAK;AACnB,QAAA,SAAS,EAAE,uBAAuB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AAd,KAAK;gBACG,SAAS,EAAA,CAAA;sBAAjB,KAAK;;AAyBR,MAKa,cAAc,CAAA;uGAAd,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;AAAd,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,cAAc,iBApCd,kBAAkB,CAAA,EAAA,OAAA,EAAA,CAkCnB,YAAY,EAAE,SAAS,aAlCtB,kBAAkB,CAAA,EAAA,CAAA,CAAA;wGAoClB,cAAc,EAAA,OAAA,EAAA,CAFf,YAAY,EAAE,SAAS,CAAA,EAAA,CAAA,CAAA;;2FAEtB,cAAc,EAAA,UAAA,EAAA,CAAA;kBAL1B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,kBAAkB,CAAC;oBAClC,OAAO,EAAE,CAAC,kBAAkB,CAAC;AAC7B,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,SAAS,CAAC;AACnC,iBAAA,CAAA;;;AC1ED;;AAEG;;;;"}
|
@@ -6,49 +6,49 @@ import { ColorWrap, isValidHex, EditableInputModule, RaisedModule } from 'ngx-co
|
|
6
6
|
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
7
7
|
|
8
8
|
class MaterialComponent extends ColorWrap {
|
9
|
+
HEXinput = {
|
10
|
+
width: '100%',
|
11
|
+
marginTop: '12px',
|
12
|
+
fontSize: '15px',
|
13
|
+
color: 'rgb(51, 51, 51)',
|
14
|
+
padding: '0px',
|
15
|
+
'border-width': '0px 0px 2px',
|
16
|
+
outline: 'none',
|
17
|
+
height: '30px',
|
18
|
+
};
|
19
|
+
HEXlabel = {
|
20
|
+
position: 'absolute',
|
21
|
+
top: '0px',
|
22
|
+
left: '0px',
|
23
|
+
fontSize: '11px',
|
24
|
+
color: 'rgb(153, 153, 153)',
|
25
|
+
'text-transform': 'capitalize',
|
26
|
+
};
|
27
|
+
RGBinput = {
|
28
|
+
width: '100%',
|
29
|
+
marginTop: '12px',
|
30
|
+
fontSize: '15px',
|
31
|
+
color: '#333',
|
32
|
+
padding: '0px',
|
33
|
+
border: '0px',
|
34
|
+
'border-bottom': '1px solid #eee',
|
35
|
+
outline: 'none',
|
36
|
+
height: '30px',
|
37
|
+
};
|
38
|
+
RGBlabel = {
|
39
|
+
position: 'absolute',
|
40
|
+
top: '0px',
|
41
|
+
left: '0px',
|
42
|
+
fontSize: '11px',
|
43
|
+
color: '#999999',
|
44
|
+
'text-transform': 'capitalize',
|
45
|
+
};
|
46
|
+
zDepth = 1;
|
47
|
+
radius = 1;
|
48
|
+
background = '#fff';
|
49
|
+
disableAlpha = true;
|
9
50
|
constructor() {
|
10
51
|
super();
|
11
|
-
this.HEXinput = {
|
12
|
-
width: '100%',
|
13
|
-
marginTop: '12px',
|
14
|
-
fontSize: '15px',
|
15
|
-
color: 'rgb(51, 51, 51)',
|
16
|
-
padding: '0px',
|
17
|
-
'border-width': '0px 0px 2px',
|
18
|
-
outline: 'none',
|
19
|
-
height: '30px',
|
20
|
-
};
|
21
|
-
this.HEXlabel = {
|
22
|
-
position: 'absolute',
|
23
|
-
top: '0px',
|
24
|
-
left: '0px',
|
25
|
-
fontSize: '11px',
|
26
|
-
color: 'rgb(153, 153, 153)',
|
27
|
-
'text-transform': 'capitalize',
|
28
|
-
};
|
29
|
-
this.RGBinput = {
|
30
|
-
width: '100%',
|
31
|
-
marginTop: '12px',
|
32
|
-
fontSize: '15px',
|
33
|
-
color: '#333',
|
34
|
-
padding: '0px',
|
35
|
-
border: '0px',
|
36
|
-
'border-bottom': '1px solid #eee',
|
37
|
-
outline: 'none',
|
38
|
-
height: '30px',
|
39
|
-
};
|
40
|
-
this.RGBlabel = {
|
41
|
-
position: 'absolute',
|
42
|
-
top: '0px',
|
43
|
-
left: '0px',
|
44
|
-
fontSize: '11px',
|
45
|
-
color: '#999999',
|
46
|
-
'text-transform': 'capitalize',
|
47
|
-
};
|
48
|
-
this.zDepth = 1;
|
49
|
-
this.radius = 1;
|
50
|
-
this.background = '#fff';
|
51
|
-
this.disableAlpha = true;
|
52
52
|
}
|
53
53
|
handleValueChange({ data, $event }) {
|
54
54
|
this.handleChange(data, $event);
|
@@ -80,19 +80,18 @@ class MaterialComponent extends ColorWrap {
|
|
80
80
|
afterValidChange() {
|
81
81
|
this.HEXinput['border-bottom-color'] = this.hex;
|
82
82
|
}
|
83
|
-
}
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
], usesInheritance: true, ngImport: i0, template: `
|
83
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.1", ngImport: i0, type: MaterialComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
84
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.1", type: MaterialComponent, selector: "color-material", inputs: { zDepth: "zDepth", radius: "radius", background: "background" }, providers: [
|
85
|
+
{
|
86
|
+
provide: NG_VALUE_ACCESSOR,
|
87
|
+
useExisting: forwardRef(() => MaterialComponent),
|
88
|
+
multi: true,
|
89
|
+
},
|
90
|
+
{
|
91
|
+
provide: ColorWrap,
|
92
|
+
useExisting: forwardRef(() => MaterialComponent),
|
93
|
+
},
|
94
|
+
], usesInheritance: true, ngImport: i0, template: `
|
96
95
|
<color-raised [zDepth]="zDepth" [background]="background" [radius]="radius">
|
97
96
|
<div class="material-picker {{ className }}">
|
98
97
|
<color-editable-input label="hex" [value]="hex"
|
@@ -122,7 +121,8 @@ MaterialComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", vers
|
|
122
121
|
</div>
|
123
122
|
</color-raised>
|
124
123
|
`, isInline: true, styles: [".material-picker{width:130px;height:130px;padding:16px;font-family:Roboto}.material-split{display:flex;margin-right:-10px;padding-top:11px}.material-third{flex:1 1 0%;padding-right:10px}\n"], dependencies: [{ kind: "component", type: i1.EditableInputComponent, selector: "color-editable-input", inputs: ["style", "label", "value", "arrowOffset", "dragLabel", "dragMax", "placeholder"], outputs: ["onChange"] }, { kind: "component", type: i1.RaisedComponent, selector: "color-raised", inputs: ["zDepth", "radius", "background"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
125
|
-
|
124
|
+
}
|
125
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.1", ngImport: i0, type: MaterialComponent, decorators: [{
|
126
126
|
type: Component,
|
127
127
|
args: [{ selector: 'color-material', template: `
|
128
128
|
<color-raised [zDepth]="zDepth" [background]="background" [radius]="radius">
|
@@ -172,11 +172,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImpor
|
|
172
172
|
type: Input
|
173
173
|
}] } });
|
174
174
|
class ColorMaterialModule {
|
175
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.1", ngImport: i0, type: ColorMaterialModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
176
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.1", ngImport: i0, type: ColorMaterialModule, declarations: [MaterialComponent], imports: [CommonModule, EditableInputModule, RaisedModule], exports: [MaterialComponent] });
|
177
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.1", ngImport: i0, type: ColorMaterialModule, imports: [CommonModule, EditableInputModule, RaisedModule] });
|
175
178
|
}
|
176
|
-
|
177
|
-
ColorMaterialModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.2", ngImport: i0, type: ColorMaterialModule, declarations: [MaterialComponent], imports: [CommonModule, EditableInputModule, RaisedModule], exports: [MaterialComponent] });
|
178
|
-
ColorMaterialModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: ColorMaterialModule, imports: [CommonModule, EditableInputModule, RaisedModule] });
|
179
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: ColorMaterialModule, decorators: [{
|
179
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.1", ngImport: i0, type: ColorMaterialModule, decorators: [{
|
180
180
|
type: NgModule,
|
181
181
|
args: [{
|
182
182
|
exports: [MaterialComponent],
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ngx-color-material.mjs","sources":["../../src/lib/material/material.component.ts","../../src/lib/material/ngx-color-material.ts"],"sourcesContent":["import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, forwardRef, Input, NgModule } from '@angular/core';\n\nimport { ColorWrap, EditableInputModule, isValidHex, RaisedModule, zDepth } from 'ngx-color';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\n\n@Component({\n selector: 'color-material',\n template: `\n <color-raised [zDepth]=\"zDepth\" [background]=\"background\" [radius]=\"radius\">\n <div class=\"material-picker {{ className }}\">\n <color-editable-input label=\"hex\" [value]=\"hex\"\n (onChange)=\"handleValueChange($event)\"\n [style]=\"{input: HEXinput, label: HEXlabel}\"\n ></color-editable-input>\n <div class=\"material-split\">\n <div class=\"material-third\">\n <color-editable-input label=\"r\" [value]=\"rgb.r\"\n [style]=\"{ input: RGBinput, label: RGBlabel }\"\n (onChange)=\"handleInputChange($event)\"\n ></color-editable-input>\n </div>\n <div class=\"material-third\">\n <color-editable-input label=\"g\" [value]=\"rgb.g\"\n [style]=\"{ input: RGBinput, label: RGBlabel }\"\n (onChange)=\"handleInputChange($event)\"\n ></color-editable-input>\n </div>\n <div class=\"material-third\">\n <color-editable-input label=\"b\" [value]=\"rgb.b\"\n [style]=\"{ input: RGBinput, label: RGBlabel }\"\n (onChange)=\"handleInputChange($event)\"\n ></color-editable-input>\n </div>\n </div>\n </div>\n </color-raised>\n `,\n styles: [\n `\n .material-picker {\n width: 130px;\n height: 130px;\n padding: 16px;\n font-family: Roboto;\n }\n .material-split {\n display: flex;\n margin-right: -10px;\n padding-top: 11px;\n }\n .material-third {\n flex: 1 1 0%;\n padding-right: 10px;\n }\n `,\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n preserveWhitespaces: false,\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => MaterialComponent),\n multi: true,\n },\n {\n provide: ColorWrap,\n useExisting: forwardRef(() => MaterialComponent),\n },\n ]\n})\nexport class MaterialComponent extends ColorWrap {\n HEXinput: {[key: string]: string} = {\n width: '100%',\n marginTop: '12px',\n fontSize: '15px',\n color: 'rgb(51, 51, 51)',\n padding: '0px',\n 'border-width': '0px 0px 2px',\n outline: 'none',\n height: '30px',\n };\n HEXlabel: {[key: string]: string} = {\n position: 'absolute',\n top: '0px',\n left: '0px',\n fontSize: '11px',\n color: 'rgb(153, 153, 153)',\n 'text-transform': 'capitalize',\n };\n RGBinput: {[key: string]: string} = {\n width: '100%',\n marginTop: '12px',\n fontSize: '15px',\n color: '#333',\n padding: '0px',\n border: '0px',\n 'border-bottom': '1px solid #eee',\n outline: 'none',\n height: '30px',\n };\n RGBlabel: {[key: string]: string} = {\n position: 'absolute',\n top: '0px',\n left: '0px',\n fontSize: '11px',\n color: '#999999',\n 'text-transform': 'capitalize',\n };\n @Input() zDepth: zDepth = 1;\n @Input() radius = 1;\n @Input() background = '#fff';\n disableAlpha = true;\n\n constructor() {\n super();\n }\n\n handleValueChange({ data, $event }) {\n this.handleChange(data, $event);\n }\n\n handleInputChange({ data, $event }) {\n if (data.hex) {\n if (isValidHex(data.hex)) {\n this.handleValueChange({\n data: {\n hex: data.hex,\n source: 'hex',\n },\n $event,\n });\n }\n } else if (data.r || data.g || data.b) {\n this.handleValueChange({\n data: {\n r: data.r || this.rgb.r,\n g: data.g || this.rgb.g,\n b: data.b || this.rgb.b,\n source: 'rgb',\n },\n $event,\n });\n }\n }\n\n afterValidChange() {\n this.HEXinput['border-bottom-color'] = this.hex;\n }\n}\n\n@NgModule({\n exports: [MaterialComponent],\n declarations: [MaterialComponent],\n imports: [CommonModule, EditableInputModule, RaisedModule],\n})\nexport class ColorMaterialModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;
|
1
|
+
{"version":3,"file":"ngx-color-material.mjs","sources":["../../src/lib/material/material.component.ts","../../src/lib/material/ngx-color-material.ts"],"sourcesContent":["import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, forwardRef, Input, NgModule } from '@angular/core';\n\nimport { ColorWrap, EditableInputModule, isValidHex, RaisedModule, zDepth } from 'ngx-color';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\n\n@Component({\n selector: 'color-material',\n template: `\n <color-raised [zDepth]=\"zDepth\" [background]=\"background\" [radius]=\"radius\">\n <div class=\"material-picker {{ className }}\">\n <color-editable-input label=\"hex\" [value]=\"hex\"\n (onChange)=\"handleValueChange($event)\"\n [style]=\"{input: HEXinput, label: HEXlabel}\"\n ></color-editable-input>\n <div class=\"material-split\">\n <div class=\"material-third\">\n <color-editable-input label=\"r\" [value]=\"rgb.r\"\n [style]=\"{ input: RGBinput, label: RGBlabel }\"\n (onChange)=\"handleInputChange($event)\"\n ></color-editable-input>\n </div>\n <div class=\"material-third\">\n <color-editable-input label=\"g\" [value]=\"rgb.g\"\n [style]=\"{ input: RGBinput, label: RGBlabel }\"\n (onChange)=\"handleInputChange($event)\"\n ></color-editable-input>\n </div>\n <div class=\"material-third\">\n <color-editable-input label=\"b\" [value]=\"rgb.b\"\n [style]=\"{ input: RGBinput, label: RGBlabel }\"\n (onChange)=\"handleInputChange($event)\"\n ></color-editable-input>\n </div>\n </div>\n </div>\n </color-raised>\n `,\n styles: [\n `\n .material-picker {\n width: 130px;\n height: 130px;\n padding: 16px;\n font-family: Roboto;\n }\n .material-split {\n display: flex;\n margin-right: -10px;\n padding-top: 11px;\n }\n .material-third {\n flex: 1 1 0%;\n padding-right: 10px;\n }\n `,\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n preserveWhitespaces: false,\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => MaterialComponent),\n multi: true,\n },\n {\n provide: ColorWrap,\n useExisting: forwardRef(() => MaterialComponent),\n },\n ]\n})\nexport class MaterialComponent extends ColorWrap {\n HEXinput: {[key: string]: string} = {\n width: '100%',\n marginTop: '12px',\n fontSize: '15px',\n color: 'rgb(51, 51, 51)',\n padding: '0px',\n 'border-width': '0px 0px 2px',\n outline: 'none',\n height: '30px',\n };\n HEXlabel: {[key: string]: string} = {\n position: 'absolute',\n top: '0px',\n left: '0px',\n fontSize: '11px',\n color: 'rgb(153, 153, 153)',\n 'text-transform': 'capitalize',\n };\n RGBinput: {[key: string]: string} = {\n width: '100%',\n marginTop: '12px',\n fontSize: '15px',\n color: '#333',\n padding: '0px',\n border: '0px',\n 'border-bottom': '1px solid #eee',\n outline: 'none',\n height: '30px',\n };\n RGBlabel: {[key: string]: string} = {\n position: 'absolute',\n top: '0px',\n left: '0px',\n fontSize: '11px',\n color: '#999999',\n 'text-transform': 'capitalize',\n };\n @Input() zDepth: zDepth = 1;\n @Input() radius = 1;\n @Input() background = '#fff';\n disableAlpha = true;\n\n constructor() {\n super();\n }\n\n handleValueChange({ data, $event }) {\n this.handleChange(data, $event);\n }\n\n handleInputChange({ data, $event }) {\n if (data.hex) {\n if (isValidHex(data.hex)) {\n this.handleValueChange({\n data: {\n hex: data.hex,\n source: 'hex',\n },\n $event,\n });\n }\n } else if (data.r || data.g || data.b) {\n this.handleValueChange({\n data: {\n r: data.r || this.rgb.r,\n g: data.g || this.rgb.g,\n b: data.b || this.rgb.b,\n source: 'rgb',\n },\n $event,\n });\n }\n }\n\n afterValidChange() {\n this.HEXinput['border-bottom-color'] = this.hex;\n }\n}\n\n@NgModule({\n exports: [MaterialComponent],\n declarations: [MaterialComponent],\n imports: [CommonModule, EditableInputModule, RaisedModule],\n})\nexport class ColorMaterialModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;AAMA,MAiEa,iBAAkB,SAAQ,SAAS,CAAA;AAC9C,IAAA,QAAQ,GAA4B;AAClC,QAAA,KAAK,EAAE,MAAM;AACb,QAAA,SAAS,EAAE,MAAM;AACjB,QAAA,QAAQ,EAAE,MAAM;AAChB,QAAA,KAAK,EAAE,iBAAiB;AACxB,QAAA,OAAO,EAAE,KAAK;AACd,QAAA,cAAc,EAAE,aAAa;AAC7B,QAAA,OAAO,EAAE,MAAM;AACf,QAAA,MAAM,EAAE,MAAM;KACf,CAAC;AACF,IAAA,QAAQ,GAA4B;AAClC,QAAA,QAAQ,EAAE,UAAU;AACpB,QAAA,GAAG,EAAE,KAAK;AACV,QAAA,IAAI,EAAE,KAAK;AACX,QAAA,QAAQ,EAAE,MAAM;AAChB,QAAA,KAAK,EAAE,oBAAoB;AAC3B,QAAA,gBAAgB,EAAE,YAAY;KAC/B,CAAC;AACF,IAAA,QAAQ,GAA4B;AAClC,QAAA,KAAK,EAAE,MAAM;AACb,QAAA,SAAS,EAAE,MAAM;AACjB,QAAA,QAAQ,EAAE,MAAM;AAChB,QAAA,KAAK,EAAE,MAAM;AACb,QAAA,OAAO,EAAE,KAAK;AACd,QAAA,MAAM,EAAE,KAAK;AACb,QAAA,eAAe,EAAE,gBAAgB;AACjC,QAAA,OAAO,EAAE,MAAM;AACf,QAAA,MAAM,EAAE,MAAM;KACf,CAAC;AACF,IAAA,QAAQ,GAA4B;AAClC,QAAA,QAAQ,EAAE,UAAU;AACpB,QAAA,GAAG,EAAE,KAAK;AACV,QAAA,IAAI,EAAE,KAAK;AACX,QAAA,QAAQ,EAAE,MAAM;AAChB,QAAA,KAA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