@omnia/fx
Version:
Provide Omnia Fx typings and tooling for clientside Omnia development.
58 lines (57 loc) • 1.86 kB
TypeScript
import { IWebComponentInstance } from "../..";
import { IColorPicker } from "./IColorPicker";
import { IValidator, VueComponentBase, ColorPickerModel, ColorPickerDisplayOptions } from "..";
import { ColorPickerStyles } from "../models/ColorPickerStyles";
import "./ColorPicker.css";
import { ColorPickerLocalization } from "./loc/localize";
export declare class ColorPicker extends VueComponentBase implements IWebComponentInstance, IColorPicker {
private omniaContext;
label?: string;
placeholder?: string;
valueBind: ColorPickerModel;
required: boolean;
dark?: boolean;
onValueChanged: (model: ColorPickerModel) => void;
errorMessages: Array<string>;
display?: ColorPickerDisplayOptions;
slim?: boolean;
dense?: boolean;
disableRgba?: boolean;
styles?: typeof ColorPickerStyles;
validator?: IValidator;
attachedToParent?: boolean;
disableContextColor?: boolean;
disabled?: boolean;
private uxLoc;
loc: ColorPickerLocalization.locInterface;
private colors;
private availableColors;
private selectedColor;
private customColor;
private internalModel;
private loaded;
private displayCustomPicker;
private displayCustomPickerContainer;
private customColorContainerHeight;
private customColorStyle;
private classes;
private componentId;
onValueBindChanged(model: any): void;
created(): void;
mounted(): void;
private initInternalModel;
private loadColors;
handleCustomColorSelection(): void;
private changed;
private onSelectedChanged;
showCustomColor(): void;
setCustomColorPosition(): void;
onClickOutCustomColorPanel(): void;
render(): VueTsxSupport.JSX.Element;
}
export declare enum ColorType {
PrimaryColor = 1,
SecondaryColor = 2,
CorporateColor = 3,
CustomColor = 4
}