@qrvey/formula-lang
Version:
QFormula support for qrvey projects
89 lines • 2.86 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getFunctionDetail = exports.FUNCTION_LIST = exports.functionList = void 0;
const mid_1 = require("./mid");
const abs_1 = require("./abs");
const datedif_1 = require("./datedif");
const day_1 = require("./day");
const month_1 = require("./month");
const year_1 = require("./year");
const hour_1 = require("./hour");
const minute_1 = require("./minute");
const second_1 = require("./second");
const if_1 = require("./if");
const ifs_1 = require("./ifs");
const isNull_1 = require("./isNull");
const and_1 = require("./and");
const or_1 = require("./or");
const concatenate_1 = require("./concatenate");
const lower_1 = require("./lower");
const upper_1 = require("./upper");
const trim_1 = require("./trim");
const left_1 = require("./left");
const right_1 = require("./right");
const dateadd_1 = require("./dateadd");
const dayofweek_1 = require("./dayofweek");
const proper_1 = require("./proper");
const datesubtract_1 = require("./datesubtract");
const max_1 = require("./max");
const min_1 = require("./min");
const length_1 = require("./length");
const sqrt_1 = require("./sqrt");
const exp_1 = require("./exp");
const replace_1 = require("./replace");
const include_1 = require("./include");
const even_1 = require("./even");
const log_1 = require("./log");
const odd_1 = require("./odd");
const power_1 = require("./power");
const random_1 = require("./random");
const round_1 = require("./round");
const rounddown_1 = require("./rounddown");
const roundup_1 = require("./roundup");
exports.functionList = {
MID: mid_1.MID,
ABS: abs_1.ABS,
DATEDIF: datedif_1.DATEDIF,
DAY: day_1.DAY,
MONTH: month_1.MONTH,
YEAR: year_1.YEAR,
HOUR: hour_1.HOUR,
MINUTE: minute_1.MINUTE,
SECOND: second_1.SECOND,
IF: if_1.IF,
IFS: ifs_1.IFS,
ISNULL: isNull_1.ISNULL,
AND: and_1.AND,
OR: or_1.OR,
CONCATENATE: concatenate_1.CONCATENATE,
LOWER: lower_1.LOWER,
UPPER: upper_1.UPPER,
TRIM: trim_1.TRIM,
LEFT: left_1.LEFT,
RIGHT: right_1.RIGHT,
DATEADD: dateadd_1.DATEADD,
DAYOFWEEK: dayofweek_1.DAYOFWEEK,
PROPER: proper_1.PROPER,
DATESUBTRACT: datesubtract_1.DATESUBTRACT,
MAX: max_1.MAX,
MIN: min_1.MIN,
LENGTH: length_1.LENGTH,
SQRT: sqrt_1.SQRT,
EXP: exp_1.EXP,
REPLACE: replace_1.REPLACE,
INCLUDE: include_1.INCLUDE,
EVEN: even_1.EVEN,
LOG: log_1.LOG,
ODD: odd_1.ODD,
POWER: power_1.POWER,
RANDOM: random_1.RANDOM,
ROUND: round_1.ROUND,
ROUNDDOWN: rounddown_1.ROUNDDOWN,
ROUNDUP: roundup_1.ROUNDUP,
};
exports.FUNCTION_LIST = Object.keys(exports.functionList);
function getFunctionDetail(functionName) {
return exports.functionList[functionName];
}
exports.getFunctionDetail = getFunctionDetail;
//# sourceMappingURL=index.js.map