import "reflect-metadata";
const colorFieldSymbol = Symbol("ColorField");
const ColorField = () => {
    return Reflect.metadata(colorFieldSymbol, true);
};
export const isColorFieldColumn = (target, propertyKey) => {
    return Boolean(Reflect.getMetadata(colorFieldSymbol, target, propertyKey));
};
export const getColorFieldColumns = (target) => {
    const columns = [];
    const keys = Object.keys(target);
    for (const key of keys) {
        if (isColorFieldColumn(target, key)) {
            columns.push(key);
        }
    }
    return columns;
};
export const getFirstColorFieldColumn = (target) => {
    const columns = getColorFieldColumns(target);
    if (columns.length === 0) {
        return null;
    }
    return columns[0];
};
export default ColorField;
//# sourceMappingURL=ColorField.js.map