export const sharedValueTransformers = {
    trimOnBlur: (ifParam = true) => ({
        transformer: (value) => value?.trim(),
        options: {
            trigger: "blur",
            if: ifParam,
        },
    }),
    lowercaseOnChange: (ifParam = true) => ({
        transformer: (value) => value?.toLowerCase(),
        options: {
            trigger: "change",
            if: ifParam,
        },
    }),
    uppercaseOnChange: (ifParam = true) => ({
        transformer: (value) => value?.toUpperCase(),
        options: {
            trigger: "change",
            if: ifParam,
        },
    }),
    trimOnEnter: (ifParam = true) => ({
        transformer: (value) => value?.trim(),
        options: {
            trigger: "keyDown",
            if: ifParam,
        },
    }),
};
//# sourceMappingURL=shared-value-transformers.js.map