@skyux/colorpicker 7.5.0 → 7.6.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/documentation.json +41 -41
- package/esm2020/lib/modules/colorpicker/colorpicker-input.directive.mjs +7 -7
- package/esm2020/lib/modules/colorpicker/colorpicker.component.mjs +5 -5
- package/esm2020/lib/modules/colorpicker/types/colorpicker-cmyk.mjs +1 -1
- package/esm2020/lib/modules/colorpicker/types/colorpicker-hsla.mjs +1 -1
- package/esm2020/lib/modules/colorpicker/types/colorpicker-hsva.mjs +1 -1
- package/esm2020/lib/modules/colorpicker/types/colorpicker-message-type.mjs +2 -2
- package/esm2020/lib/modules/colorpicker/types/colorpicker-message.mjs +1 -1
- package/esm2020/lib/modules/colorpicker/types/colorpicker-output.mjs +1 -1
- package/esm2020/lib/modules/colorpicker/types/colorpicker-rgba.mjs +1 -1
- package/fesm2015/skyux-colorpicker.mjs +11 -11
- package/fesm2015/skyux-colorpicker.mjs.map +1 -1
- package/fesm2020/skyux-colorpicker.mjs +11 -11
- package/fesm2020/skyux-colorpicker.mjs.map +1 -1
- package/lib/modules/colorpicker/colorpicker-input.directive.d.ts +6 -6
- package/lib/modules/colorpicker/colorpicker.component.d.ts +7 -7
- package/lib/modules/colorpicker/types/colorpicker-cmyk.d.ts +5 -5
- package/lib/modules/colorpicker/types/colorpicker-hsla.d.ts +6 -6
- package/lib/modules/colorpicker/types/colorpicker-hsva.d.ts +8 -8
- package/lib/modules/colorpicker/types/colorpicker-message-type.d.ts +1 -1
- package/lib/modules/colorpicker/types/colorpicker-message.d.ts +1 -1
- package/lib/modules/colorpicker/types/colorpicker-output.d.ts +8 -8
- package/lib/modules/colorpicker/types/colorpicker-rgba.d.ts +6 -6
- package/package.json +7 -7
|
@@ -439,25 +439,25 @@ class SkyColorpickerInputDirective {
|
|
|
439
439
|
*/
|
|
440
440
|
this.returnFormat = 'rgba';
|
|
441
441
|
/**
|
|
442
|
-
*
|
|
442
|
+
* The format for the color when the colorpicker uses a native input
|
|
443
443
|
* element such as a standard text input or a button. This property accepts `rgba`, `hex`,
|
|
444
444
|
* or `hsla`, but we do not recommend using it because users never see or use its value.
|
|
445
445
|
* Instead, if you need to access this format value, see the demo for an example.
|
|
446
|
-
|
|
446
|
+
* @default "rgba"
|
|
447
447
|
*/
|
|
448
448
|
this.outputFormat = 'rgba';
|
|
449
449
|
/**
|
|
450
|
-
*
|
|
450
|
+
* The array of colors to load as preset choices. The colorpicker displays the
|
|
451
451
|
* colors in a series of 12 boxes for users to select.
|
|
452
452
|
*/
|
|
453
453
|
this.presetColors = ['#333', '#888', '#EFEFEF', '#FFF'];
|
|
454
454
|
/**
|
|
455
|
-
*
|
|
455
|
+
* The type of transparency in the transparency slider.
|
|
456
456
|
*@default "hex6"
|
|
457
457
|
*/
|
|
458
458
|
this.alphaChannel = 'hex6';
|
|
459
459
|
/**
|
|
460
|
-
*
|
|
460
|
+
* Whether to display a transparency slider for users to select transparency
|
|
461
461
|
* levels.
|
|
462
462
|
*/
|
|
463
463
|
this.allowTransparency = true;
|
|
@@ -477,7 +477,7 @@ class SkyColorpickerInputDirective {
|
|
|
477
477
|
__classPrivateFieldSet(this, _SkyColorpickerInputDirective_injector, injector, "f");
|
|
478
478
|
}
|
|
479
479
|
/**
|
|
480
|
-
*
|
|
480
|
+
* The initial color to load in the colorpicker. Use a reactive or
|
|
481
481
|
* template-driven form to set this value. This property is deprecated. As an alternative,
|
|
482
482
|
* we recommend the `formControlName` property on reactive forms or `ngModel` on
|
|
483
483
|
* template-driven forms. See the demo for examples.
|
|
@@ -841,7 +841,7 @@ class SliderDimension {
|
|
|
841
841
|
}
|
|
842
842
|
|
|
843
843
|
/**
|
|
844
|
-
*
|
|
844
|
+
* The commands to provide the colorpicker.
|
|
845
845
|
*/
|
|
846
846
|
var SkyColorpickerMessageType;
|
|
847
847
|
(function (SkyColorpickerMessageType) {
|
|
@@ -866,7 +866,7 @@ var SkyColorpickerMessageType;
|
|
|
866
866
|
var _SkyColorpickerComponent_instances, _SkyColorpickerComponent_idIndex, _SkyColorpickerComponent_alphaChannel, _SkyColorpickerComponent_format, _SkyColorpickerComponent_outputFormat, _SkyColorpickerComponent_hsva, _SkyColorpickerComponent_sliderDimMax, _SkyColorpickerComponent_ngUnsubscribe, _SkyColorpickerComponent_affixer, _SkyColorpickerComponent_overlay, _SkyColorpickerComponent_pickerUnsubscribe, _SkyColorpickerComponent_affixSvc, _SkyColorpickerComponent_changeDetector, _SkyColorpickerComponent_coreAdapter, _SkyColorpickerComponent_overlaySvc, _SkyColorpickerComponent_svc, _SkyColorpickerComponent_themeSvc, _SkyColorpickerComponent__backgroundColorForDisplay, _SkyColorpickerComponent__colorpickerRef, _SkyColorpickerComponent__disabled, _SkyColorpickerComponent_update, _SkyColorpickerComponent_updateSlider, _SkyColorpickerComponent_openPicker, _SkyColorpickerComponent_sendMessage, _SkyColorpickerComponent_handleIncomingMessages, _SkyColorpickerComponent_createAffixer, _SkyColorpickerComponent_destroyAffixer, _SkyColorpickerComponent_createOverlay, _SkyColorpickerComponent_destroyOverlay, _SkyColorpickerComponent_addTriggerButtonEventListeners, _SkyColorpickerComponent_removePickerEventListeners, _SkyColorpickerComponent_getHsvaValue, _SkyColorpickerComponent_getAccessibleIconColor;
|
|
867
867
|
let componentIdIndex = 0;
|
|
868
868
|
/**
|
|
869
|
-
*
|
|
869
|
+
* The SKY UX-themed replacement for the HTML `input` element with `type="color"`.
|
|
870
870
|
* The value that users select is driven through the `ngModel` attribute specified on
|
|
871
871
|
* the `input` element.
|
|
872
872
|
*/
|
|
@@ -874,7 +874,7 @@ class SkyColorpickerComponent {
|
|
|
874
874
|
constructor(affixSvc, changeDetector, coreAdapter, overlaySvc, svc, themeSvc) {
|
|
875
875
|
_SkyColorpickerComponent_instances.add(this);
|
|
876
876
|
/**
|
|
877
|
-
*
|
|
877
|
+
* The type of icon to display. Specifying `fa` will display a Font Awesome icon, while specifying `skyux` will display an icon from the custom SKY UX icon font. Note that the custom SKY UX icon font is currently in beta.
|
|
878
878
|
* @internal
|
|
879
879
|
*/
|
|
880
880
|
this.pickerButtonIconType = 'fa';
|
|
@@ -887,12 +887,12 @@ class SkyColorpickerComponent {
|
|
|
887
887
|
*/
|
|
888
888
|
this.selectedColorApplied = new EventEmitter();
|
|
889
889
|
/**
|
|
890
|
-
*
|
|
890
|
+
* The observable to send commands to the colorpicker. The commands should
|
|
891
891
|
* respect the `SkyColorPickerMessage` type.
|
|
892
892
|
*/
|
|
893
893
|
this.messageStream = new Subject();
|
|
894
894
|
/**
|
|
895
|
-
*
|
|
895
|
+
* Whether to display a reset button to let users return to the default color.
|
|
896
896
|
*/
|
|
897
897
|
this.showResetButton = true;
|
|
898
898
|
this.isVisible = true;
|