0.0.27 • Published 3 years ago

@enumsoftware/ui-components v0.0.27

Weekly downloads
-
License
-
Repository
-
Last release
3 years ago

Build

ng build @enumsoftware/ui-components

Enum Ui Components

Ui components library for Angular with color picker, cropper and image picker.

Example

Color Picker

<div libColorPicker>Click me!</div>

Image Picker and Cropper

<enum-image-picker></enum-image-picker>

API

Color Picker

@Inputs()

InputTypeDefaultDescription
allowSaveColorbooleantrueIt says weather the user can save colors
allowTransparencybooleantrueIt says weather the user can pick transparency for color
startingRGBRGB{ r: 255, g: 255, b: 255 }The starting color of color picker
startingRGBARGBA{ r: 255, g:255, b: 255, a: 1 }Starting color of color picker if transparency is enabled
startingHEXstringnoStarting color of color picker
sidestring'right'The position of color picker relative to the cursor

@Outputs()

OutputTypeDescription
colorPickedRGBRGBOutputs the color when it's changed
colorPickedRGBARGBAOutputs the color when it's changed
colorPickedHEXStringOutputs the color when it's changed

Image Picker and Cropper

InputTypeDefaultDescription
dialogConfigImageCropperDialogConfig{ hasBackdrop: true, backdropClass: 'dark-backdrop', panelClass: 'dialog-panel' }Configuration data for Cropper Dialog
overlayTextOverlayText{ cancelText: 'Cancel', finishText: 'Finish' }Finish and cancel text, used for localizationstartingHEXStringnoStarting color of color picker
selectIconString'add_a_photo'Icon displayed when hovering over image picker component when image isn't picked. Uses material icons
deselectIconString'cancel'Icon displayed when hovering over image picker component when image is picked. Uses material icons
colorString'whitesmoke'Background color of image picker
maxImageSizeNumber2048000Maximum acceptable file/image size measured in bytes.
selectTextString'Pick or Drag Image'Text displayed on image picker before image is picked
deselectTextString'Deselect Image'Text displayed on image picker after image is picked

@Outputs()

OutputTypeDescription
imageSelectedEventEmitter< Blob >Emits event when image is selected and returns image.
imageDeselectEventEmitter< Blob >Emits event when image is deselected
0.0.27

3 years ago

0.0.26

4 years ago

0.0.24

4 years ago

0.0.25

4 years ago

0.0.23

4 years ago

0.0.22

4 years ago

0.0.21

4 years ago

0.0.20

4 years ago

0.0.19

4 years ago

0.0.15

4 years ago

0.0.13

5 years ago

0.0.11

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago