@react-querybuilder/datetime 8.15.0 → 8.16.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/date-fns/package.json +1 -1
- package/dayjs/package.json +1 -1
- package/dist/cjs/getDatetimeRuleProcessorSQL-BWQryLof.js +2 -0
- package/dist/cjs/getDatetimeRuleProcessorSQL-BWQryLof.js.map +1 -0
- package/dist/cjs/{getDatetimeRuleProcessorSQL-CkflXcTZ.js → getDatetimeRuleProcessorSQL-BY6ZJTYb.js} +124 -3
- package/dist/cjs/getDatetimeRuleProcessorSQL-BY6ZJTYb.js.map +1 -0
- package/dist/cjs/react-querybuilder_datetime.cjs.development.d.ts +27 -1
- package/dist/cjs/react-querybuilder_datetime.cjs.development.date-fns.d.ts +9 -1
- package/dist/cjs/react-querybuilder_datetime.cjs.development.date-fns.js +11 -1
- package/dist/cjs/react-querybuilder_datetime.cjs.development.date-fns.js.map +1 -1
- package/dist/cjs/react-querybuilder_datetime.cjs.development.dayjs.d.ts +9 -1
- package/dist/cjs/react-querybuilder_datetime.cjs.development.dayjs.js +11 -1
- package/dist/cjs/react-querybuilder_datetime.cjs.development.dayjs.js.map +1 -1
- package/dist/cjs/react-querybuilder_datetime.cjs.development.js +3 -1
- package/dist/cjs/react-querybuilder_datetime.cjs.development.js.map +1 -1
- package/dist/cjs/react-querybuilder_datetime.cjs.development.jsdate.d.ts +9 -1
- package/dist/cjs/react-querybuilder_datetime.cjs.development.jsdate.js +11 -1
- package/dist/cjs/react-querybuilder_datetime.cjs.development.jsdate.js.map +1 -1
- package/dist/cjs/react-querybuilder_datetime.cjs.development.luxon.d.ts +9 -1
- package/dist/cjs/react-querybuilder_datetime.cjs.development.luxon.js +11 -1
- package/dist/cjs/react-querybuilder_datetime.cjs.development.luxon.js.map +1 -1
- package/dist/cjs/react-querybuilder_datetime.cjs.production.d.ts +27 -1
- package/dist/cjs/react-querybuilder_datetime.cjs.production.date-fns.d.ts +9 -1
- package/dist/cjs/react-querybuilder_datetime.cjs.production.date-fns.js +1 -1
- package/dist/cjs/react-querybuilder_datetime.cjs.production.date-fns.js.map +1 -1
- package/dist/cjs/react-querybuilder_datetime.cjs.production.dayjs.d.ts +9 -1
- package/dist/cjs/react-querybuilder_datetime.cjs.production.dayjs.js +1 -1
- package/dist/cjs/react-querybuilder_datetime.cjs.production.dayjs.js.map +1 -1
- package/dist/cjs/react-querybuilder_datetime.cjs.production.js +1 -1
- package/dist/cjs/react-querybuilder_datetime.cjs.production.js.map +1 -1
- package/dist/cjs/react-querybuilder_datetime.cjs.production.jsdate.d.ts +9 -1
- package/dist/cjs/react-querybuilder_datetime.cjs.production.jsdate.js +1 -1
- package/dist/cjs/react-querybuilder_datetime.cjs.production.jsdate.js.map +1 -1
- package/dist/cjs/react-querybuilder_datetime.cjs.production.luxon.d.ts +9 -1
- package/dist/cjs/react-querybuilder_datetime.cjs.production.luxon.js +1 -1
- package/dist/cjs/react-querybuilder_datetime.cjs.production.luxon.js.map +1 -1
- package/dist/{getDatetimeRuleProcessorSQL-CYJzcuIW.mjs → getDatetimeRuleProcessorSQL-11eKdyI8.mjs} +114 -5
- package/dist/getDatetimeRuleProcessorSQL-11eKdyI8.mjs.map +1 -0
- package/dist/getDatetimeRuleProcessorSQL-CSD_YXBJ.mjs +2 -0
- package/dist/getDatetimeRuleProcessorSQL-CSD_YXBJ.mjs.map +1 -0
- package/dist/{getDatetimeRuleProcessorSQL-CnTp42xr.js → getDatetimeRuleProcessorSQL-Dnhyo0qz.js} +119 -10
- package/dist/getDatetimeRuleProcessorSQL-Dnhyo0qz.js.map +1 -0
- package/dist/react-querybuilder_datetime.d.mts +27 -1
- package/dist/react-querybuilder_datetime.date-fns.d.mts +9 -1
- package/dist/react-querybuilder_datetime.date-fns.mjs +10 -2
- package/dist/react-querybuilder_datetime.date-fns.mjs.map +1 -1
- package/dist/react-querybuilder_datetime.dayjs.d.mts +9 -1
- package/dist/react-querybuilder_datetime.dayjs.mjs +10 -2
- package/dist/react-querybuilder_datetime.dayjs.mjs.map +1 -1
- package/dist/react-querybuilder_datetime.jsdate.d.mts +9 -1
- package/dist/react-querybuilder_datetime.jsdate.mjs +10 -2
- package/dist/react-querybuilder_datetime.jsdate.mjs.map +1 -1
- package/dist/react-querybuilder_datetime.legacy-esm.d.ts +27 -1
- package/dist/react-querybuilder_datetime.legacy-esm.date-fns.d.ts +9 -1
- package/dist/react-querybuilder_datetime.legacy-esm.date-fns.js +10 -2
- package/dist/react-querybuilder_datetime.legacy-esm.date-fns.js.map +1 -1
- package/dist/react-querybuilder_datetime.legacy-esm.dayjs.d.ts +9 -1
- package/dist/react-querybuilder_datetime.legacy-esm.dayjs.js +10 -2
- package/dist/react-querybuilder_datetime.legacy-esm.dayjs.js.map +1 -1
- package/dist/react-querybuilder_datetime.legacy-esm.js +2 -2
- package/dist/react-querybuilder_datetime.legacy-esm.js.map +1 -1
- package/dist/react-querybuilder_datetime.legacy-esm.jsdate.d.ts +9 -1
- package/dist/react-querybuilder_datetime.legacy-esm.jsdate.js +10 -2
- package/dist/react-querybuilder_datetime.legacy-esm.jsdate.js.map +1 -1
- package/dist/react-querybuilder_datetime.legacy-esm.luxon.d.ts +9 -1
- package/dist/react-querybuilder_datetime.legacy-esm.luxon.js +10 -2
- package/dist/react-querybuilder_datetime.legacy-esm.luxon.js.map +1 -1
- package/dist/react-querybuilder_datetime.luxon.d.mts +9 -1
- package/dist/react-querybuilder_datetime.luxon.mjs +10 -2
- package/dist/react-querybuilder_datetime.luxon.mjs.map +1 -1
- package/dist/react-querybuilder_datetime.mjs +2 -2
- package/dist/react-querybuilder_datetime.mjs.map +1 -1
- package/dist/react-querybuilder_datetime.production.d.mts +27 -1
- package/dist/react-querybuilder_datetime.production.date-fns.d.mts +9 -1
- package/dist/react-querybuilder_datetime.production.date-fns.mjs +1 -1
- package/dist/react-querybuilder_datetime.production.date-fns.mjs.map +1 -1
- package/dist/react-querybuilder_datetime.production.dayjs.d.mts +9 -1
- package/dist/react-querybuilder_datetime.production.dayjs.mjs +1 -1
- package/dist/react-querybuilder_datetime.production.dayjs.mjs.map +1 -1
- package/dist/react-querybuilder_datetime.production.jsdate.d.mts +9 -1
- package/dist/react-querybuilder_datetime.production.jsdate.mjs +1 -1
- package/dist/react-querybuilder_datetime.production.jsdate.mjs.map +1 -1
- package/dist/react-querybuilder_datetime.production.luxon.d.mts +9 -1
- package/dist/react-querybuilder_datetime.production.luxon.mjs +1 -1
- package/dist/react-querybuilder_datetime.production.luxon.mjs.map +1 -1
- package/dist/react-querybuilder_datetime.production.mjs +1 -1
- package/dist/react-querybuilder_datetime.production.mjs.map +1 -1
- package/jsdate/package.json +1 -1
- package/luxon/package.json +1 -1
- package/package.json +12 -12
- package/dist/cjs/getDatetimeRuleProcessorSQL-CkflXcTZ.js.map +0 -1
- package/dist/cjs/getDatetimeRuleProcessorSQL-Cs8MroHp.js +0 -2
- package/dist/cjs/getDatetimeRuleProcessorSQL-Cs8MroHp.js.map +0 -1
- package/dist/getDatetimeRuleProcessorSQL-CYJzcuIW.mjs.map +0 -1
- package/dist/getDatetimeRuleProcessorSQL-Cbq2-tqd.mjs +0 -2
- package/dist/getDatetimeRuleProcessorSQL-Cbq2-tqd.mjs.map +0 -1
- package/dist/getDatetimeRuleProcessorSQL-CnTp42xr.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react-querybuilder_datetime.cjs.development.dayjs.js","names":["isISOStringDateOnly","getDatetimeJsonLogicOperations","getDatetimeRuleProcessorSQL","getDatetimeValueProcessorANSI","getDatetimeValueProcessorMSSQL","getDatetimeValueProcessorMySQL","getDatetimeValueProcessorOracle","getDatetimeValueProcessorPostgreSQL","getDatetimeRuleProcessorCEL","getDatetimeRuleProcessorMongoDBQuery","getDatetimeRuleProcessorNL"],"sources":["../../src/rqbDateTimeLibraryAPI.dayjs.ts","../../src/index.dayjs.ts"],"sourcesContent":["import dayjs from 'dayjs';\nimport type { RQBDateTimeLibraryAPI } from './types';\nimport { isISOStringDateOnly } from './utils';\n\n/**\n * {@link RQBDateTimeLibraryAPI} for Day.js\n */\nexport const rqbDateTimeLibraryAPI: RQBDateTimeLibraryAPI = {\n format: (d, fmt) => dayjs(d).format(fmt),\n isAfter: (a, b) => dayjs(a).isAfter(b),\n isBefore: (a, b) => dayjs(a).isBefore(b),\n isSame: (a, b) =>\n dayjs(a).isSame(b, isISOStringDateOnly(a) || isISOStringDateOnly(b) ? 'd' : 'ms'),\n isValid: d => dayjs(d).isValid(),\n toDate: d => dayjs(d).toDate(),\n toISOString: d => {\n const dToDate = dayjs(d);\n return dToDate.isValid() ? dToDate.toISOString() : '';\n },\n toISOStringDateOnly: d => {\n const dToDate = dayjs(d);\n return dToDate.isValid() ? dToDate.format('YYYY-MM-DD') : '';\n },\n};\n","/**\n * Import from `\"@react-querybuilder/datetime/dayjs\"` for enhanced date/time support using [Day.js](https://day.js.org/).\n *\n * @module dayjs\n */\n\nimport type { RuleProcessor, ValueProcessorByRule } from 'react-querybuilder';\nimport { getDatetimeJsonLogicOperations } from './getDatetimeJsonLogicOperations';\nimport { getDatetimeRuleProcessorCEL } from './getDatetimeRuleProcessorCEL';\nimport { getDatetimeRuleProcessorMongoDBQuery } from './getDatetimeRuleProcessorMongoDBQuery';\nimport { getDatetimeRuleProcessorNL } from './getDatetimeRuleProcessorNL';\nimport {\n getDatetimeRuleProcessorSQL,\n getDatetimeValueProcessorANSI,\n getDatetimeValueProcessorMSSQL,\n getDatetimeValueProcessorMySQL,\n getDatetimeValueProcessorOracle,\n getDatetimeValueProcessorPostgreSQL,\n} from './getDatetimeRuleProcessorSQL';\nimport { rqbDateTimeLibraryAPI } from './rqbDateTimeLibraryAPI.dayjs';\nimport type { RQBJsonLogicDateTimeOperations } from './types';\n\n/**\n * Custom JsonLogic date/time operations using Day.js\n */\nexport const jsonLogicDateTimeOperations: RQBJsonLogicDateTimeOperations =\n getDatetimeJsonLogicOperations(rqbDateTimeLibraryAPI);\n\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for \"sql\" format using Day.js\n */\nexport const datetimeRuleProcessorSQL: RuleProcessor =\n getDatetimeRuleProcessorSQL(rqbDateTimeLibraryAPI);\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} value processor for \"sql\" format (\"ansi\" preset) using Day.js\n */\nexport const datetimeValueProcessorANSI: ValueProcessorByRule =\n getDatetimeValueProcessorANSI(rqbDateTimeLibraryAPI);\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} value processor for \"sql\" format (\"mssql\" preset) using Day.js\n */\nexport const datetimeValueProcessorMSSQL: ValueProcessorByRule =\n getDatetimeValueProcessorMSSQL(rqbDateTimeLibraryAPI);\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} value processor for \"sql\" format (\"mysql\" preset) using Day.js\n */\nexport const datetimeValueProcessorMySQL: ValueProcessorByRule =\n getDatetimeValueProcessorMySQL(rqbDateTimeLibraryAPI);\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} value processor for \"sql\" format (\"oracle\" preset) using Day.js\n */\nexport const datetimeValueProcessorOracle: ValueProcessorByRule =\n getDatetimeValueProcessorOracle(rqbDateTimeLibraryAPI);\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} value processor for \"sql\" format (\"postgresql\" preset) using Day.js\n */\nexport const datetimeValueProcessorPostgreSQL: ValueProcessorByRule =\n getDatetimeValueProcessorPostgreSQL(rqbDateTimeLibraryAPI);\n\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for \"cel\" format using Day.js\n */\nexport const datetimeRuleProcessorCEL: ValueProcessorByRule =\n getDatetimeRuleProcessorCEL(rqbDateTimeLibraryAPI);\n\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for \"mongodb_query\" format using Day.js\n */\nexport const datetimeRuleProcessorMongoDBQuery: ValueProcessorByRule =\n getDatetimeRuleProcessorMongoDBQuery(rqbDateTimeLibraryAPI);\n\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for \"natural_language\" format using Day.js\n */\nexport const datetimeRuleProcessorNL: ValueProcessorByRule =\n getDatetimeRuleProcessorNL(rqbDateTimeLibraryAPI);\n\nexport * from './rqbDateTimeLibraryAPI.dayjs';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,MAAa,wBAA+C;CAC1D,SAAS,GAAG,SAAA,GAAA,MAAA,SAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"react-querybuilder_datetime.cjs.development.dayjs.js","names":["isISOStringDateOnly","getDatetimeJsonLogicOperations","getDatetimeRuleProcessorSQL","getDatetimeValueProcessorANSI","getDatetimeValueProcessorMSSQL","getDatetimeValueProcessorMySQL","getDatetimeValueProcessorOracle","getDatetimeValueProcessorPostgreSQL","getDatetimeRuleProcessorCEL","getDatetimeRuleProcessorMongoDBQuery","getDatetimeRuleProcessorNL","getDatetimeRuleProcessorCypher","getDatetimeRuleProcessorSPARQL"],"sources":["../../src/rqbDateTimeLibraryAPI.dayjs.ts","../../src/index.dayjs.ts"],"sourcesContent":["import dayjs from 'dayjs';\nimport type { RQBDateTimeLibraryAPI } from './types';\nimport { isISOStringDateOnly } from './utils';\n\n/**\n * {@link RQBDateTimeLibraryAPI} for Day.js\n */\nexport const rqbDateTimeLibraryAPI: RQBDateTimeLibraryAPI = {\n format: (d, fmt) => dayjs(d).format(fmt),\n isAfter: (a, b) => dayjs(a).isAfter(b),\n isBefore: (a, b) => dayjs(a).isBefore(b),\n isSame: (a, b) =>\n dayjs(a).isSame(b, isISOStringDateOnly(a) || isISOStringDateOnly(b) ? 'd' : 'ms'),\n isValid: d => dayjs(d).isValid(),\n toDate: d => dayjs(d).toDate(),\n toISOString: d => {\n const dToDate = dayjs(d);\n return dToDate.isValid() ? dToDate.toISOString() : '';\n },\n toISOStringDateOnly: d => {\n const dToDate = dayjs(d);\n return dToDate.isValid() ? dToDate.format('YYYY-MM-DD') : '';\n },\n};\n","/**\n * Import from `\"@react-querybuilder/datetime/dayjs\"` for enhanced date/time support using [Day.js](https://day.js.org/).\n *\n * @module dayjs\n */\n\nimport type { RuleProcessor, ValueProcessorByRule } from 'react-querybuilder';\nimport { getDatetimeJsonLogicOperations } from './getDatetimeJsonLogicOperations';\nimport { getDatetimeRuleProcessorCEL } from './getDatetimeRuleProcessorCEL';\nimport { getDatetimeRuleProcessorCypher } from './getDatetimeRuleProcessorCypher';\nimport { getDatetimeRuleProcessorMongoDBQuery } from './getDatetimeRuleProcessorMongoDBQuery';\nimport { getDatetimeRuleProcessorNL } from './getDatetimeRuleProcessorNL';\nimport { getDatetimeRuleProcessorSPARQL } from './getDatetimeRuleProcessorSPARQL';\nimport {\n getDatetimeRuleProcessorSQL,\n getDatetimeValueProcessorANSI,\n getDatetimeValueProcessorMSSQL,\n getDatetimeValueProcessorMySQL,\n getDatetimeValueProcessorOracle,\n getDatetimeValueProcessorPostgreSQL,\n} from './getDatetimeRuleProcessorSQL';\nimport { rqbDateTimeLibraryAPI } from './rqbDateTimeLibraryAPI.dayjs';\nimport type { RQBJsonLogicDateTimeOperations } from './types';\n\n/**\n * Custom JsonLogic date/time operations using Day.js\n */\nexport const jsonLogicDateTimeOperations: RQBJsonLogicDateTimeOperations =\n getDatetimeJsonLogicOperations(rqbDateTimeLibraryAPI);\n\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for \"sql\" format using Day.js\n */\nexport const datetimeRuleProcessorSQL: RuleProcessor =\n getDatetimeRuleProcessorSQL(rqbDateTimeLibraryAPI);\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} value processor for \"sql\" format (\"ansi\" preset) using Day.js\n */\nexport const datetimeValueProcessorANSI: ValueProcessorByRule =\n getDatetimeValueProcessorANSI(rqbDateTimeLibraryAPI);\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} value processor for \"sql\" format (\"mssql\" preset) using Day.js\n */\nexport const datetimeValueProcessorMSSQL: ValueProcessorByRule =\n getDatetimeValueProcessorMSSQL(rqbDateTimeLibraryAPI);\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} value processor for \"sql\" format (\"mysql\" preset) using Day.js\n */\nexport const datetimeValueProcessorMySQL: ValueProcessorByRule =\n getDatetimeValueProcessorMySQL(rqbDateTimeLibraryAPI);\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} value processor for \"sql\" format (\"oracle\" preset) using Day.js\n */\nexport const datetimeValueProcessorOracle: ValueProcessorByRule =\n getDatetimeValueProcessorOracle(rqbDateTimeLibraryAPI);\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} value processor for \"sql\" format (\"postgresql\" preset) using Day.js\n */\nexport const datetimeValueProcessorPostgreSQL: ValueProcessorByRule =\n getDatetimeValueProcessorPostgreSQL(rqbDateTimeLibraryAPI);\n\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for \"cel\" format using Day.js\n */\nexport const datetimeRuleProcessorCEL: ValueProcessorByRule =\n getDatetimeRuleProcessorCEL(rqbDateTimeLibraryAPI);\n\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for \"mongodb_query\" format using Day.js\n */\nexport const datetimeRuleProcessorMongoDBQuery: ValueProcessorByRule =\n getDatetimeRuleProcessorMongoDBQuery(rqbDateTimeLibraryAPI);\n\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for \"natural_language\" format using Day.js\n */\nexport const datetimeRuleProcessorNL: ValueProcessorByRule =\n getDatetimeRuleProcessorNL(rqbDateTimeLibraryAPI);\n\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for \"cypher\"/\"gql\" format using Day.js\n */\nexport const datetimeRuleProcessorCypher: ValueProcessorByRule =\n getDatetimeRuleProcessorCypher(rqbDateTimeLibraryAPI);\n\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for \"sparql\" format using Day.js\n */\nexport const datetimeRuleProcessorSPARQL: ValueProcessorByRule =\n getDatetimeRuleProcessorSPARQL(rqbDateTimeLibraryAPI);\n\nexport * from './rqbDateTimeLibraryAPI.dayjs';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,MAAa,wBAA+C;CAC1D,SAAS,GAAG,SAAA,GAAA,MAAA,SAAc,CAAC,EAAE,OAAO,GAAG;CACvC,UAAU,GAAG,OAAA,GAAA,MAAA,SAAY,CAAC,EAAE,QAAQ,CAAC;CACrC,WAAW,GAAG,OAAA,GAAA,MAAA,SAAY,CAAC,EAAE,SAAS,CAAC;CACvC,SAAS,GAAG,OAAA,GAAA,MAAA,SACJ,CAAC,EAAE,OAAO,GAAGA,oCAAAA,oBAAoB,CAAC,KAAKA,oCAAAA,oBAAoB,CAAC,IAAI,MAAM,IAAI;CAClF,UAAS,OAAA,GAAA,MAAA,SAAW,CAAC,EAAE,QAAQ;CAC/B,SAAQ,OAAA,GAAA,MAAA,SAAW,CAAC,EAAE,OAAO;CAC7B,cAAa,MAAK;EAChB,MAAM,WAAA,GAAA,MAAA,SAAgB,CAAC;EACvB,OAAO,QAAQ,QAAQ,IAAI,QAAQ,YAAY,IAAI;CACrD;CACA,sBAAqB,MAAK;EACxB,MAAM,WAAA,GAAA,MAAA,SAAgB,CAAC;EACvB,OAAO,QAAQ,QAAQ,IAAI,QAAQ,OAAO,YAAY,IAAI;CAC5D;AACF;;;;;;ACIA,MAAa,8BACXC,oCAAAA,+BAA+B,qBAAqB;;;;AAKtD,MAAa,2BACXC,oCAAAA,4BAA4B,qBAAqB;;;;AAInD,MAAa,6BACXC,oCAAAA,8BAA8B,qBAAqB;;;;AAIrD,MAAa,8BACXC,oCAAAA,+BAA+B,qBAAqB;;;;AAItD,MAAa,8BACXC,oCAAAA,+BAA+B,qBAAqB;;;;AAItD,MAAa,+BACXC,oCAAAA,gCAAgC,qBAAqB;;;;AAIvD,MAAa,mCACXC,oCAAAA,oCAAoC,qBAAqB;;;;AAK3D,MAAa,2BACXC,oCAAAA,4BAA4B,qBAAqB;;;;AAKnD,MAAa,oCACXC,oCAAAA,qCAAqC,qBAAqB;;;;AAK5D,MAAa,0BACXC,oCAAAA,2BAA2B,qBAAqB;;;;AAKlD,MAAa,8BACXC,oCAAAA,+BAA+B,qBAAqB;;;;AAKtD,MAAa,8BACXC,oCAAAA,+BAA+B,qBAAqB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_getDatetimeRuleProcessorSQL = require("./getDatetimeRuleProcessorSQL-
|
|
2
|
+
const require_getDatetimeRuleProcessorSQL = require("./getDatetimeRuleProcessorSQL-BY6ZJTYb.js");
|
|
3
3
|
require("./react-querybuilder_datetime.cjs.development.dayjs.js");
|
|
4
4
|
let react_querybuilder = require("react-querybuilder");
|
|
5
5
|
//#region src/datetimeRuleProcessorJsonLogic.ts
|
|
@@ -117,9 +117,11 @@ exports.datetimeValueProcessorNL = require_getDatetimeRuleProcessorSQL.datetimeV
|
|
|
117
117
|
exports.defaultDateTimeNLOperatorMap = require_getDatetimeRuleProcessorSQL.defaultDateTimeNLOperatorMap;
|
|
118
118
|
exports.getDatetimeJsonLogicOperations = require_getDatetimeRuleProcessorSQL.getDatetimeJsonLogicOperations;
|
|
119
119
|
exports.getDatetimeRuleProcessorCEL = require_getDatetimeRuleProcessorSQL.getDatetimeRuleProcessorCEL;
|
|
120
|
+
exports.getDatetimeRuleProcessorCypher = require_getDatetimeRuleProcessorSQL.getDatetimeRuleProcessorCypher;
|
|
120
121
|
exports.getDatetimeRuleProcessorJSONata = getDatetimeRuleProcessorJSONata;
|
|
121
122
|
exports.getDatetimeRuleProcessorMongoDBQuery = require_getDatetimeRuleProcessorSQL.getDatetimeRuleProcessorMongoDBQuery;
|
|
122
123
|
exports.getDatetimeRuleProcessorNL = require_getDatetimeRuleProcessorSQL.getDatetimeRuleProcessorNL;
|
|
124
|
+
exports.getDatetimeRuleProcessorSPARQL = require_getDatetimeRuleProcessorSQL.getDatetimeRuleProcessorSPARQL;
|
|
123
125
|
exports.getDatetimeRuleProcessorSQL = require_getDatetimeRuleProcessorSQL.getDatetimeRuleProcessorSQL;
|
|
124
126
|
exports.getDatetimeValueProcessorANSI = require_getDatetimeRuleProcessorSQL.getDatetimeValueProcessorANSI;
|
|
125
127
|
exports.getDatetimeValueProcessorMSSQL = require_getDatetimeRuleProcessorSQL.getDatetimeValueProcessorMSSQL;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react-querybuilder_datetime.cjs.development.js","names":["processIsDateField","processIsDateField"],"sources":["../../src/datetimeRuleProcessorJsonLogic.ts","../../src/getDatetimeRuleProcessorJSONata.ts"],"sourcesContent":["import type { DefaultOperatorName, JsonLogicVar, RuleProcessor } from 'react-querybuilder';\nimport { defaultRuleProcessorJsonLogic, toArray } from 'react-querybuilder';\nimport type { RQBDateTimeJsonLogic } from './types';\nimport { processIsDateField } from './utils';\n\nconst dateOperationMap = {\n '!=': 'dateNotOn',\n '<': 'dateBefore',\n '<=': 'dateOnOrBefore',\n '=': 'dateOn',\n '>': 'dateAfter',\n '>=': 'dateOnOrAfter',\n between: 'dateBetween',\n in: 'dateIn',\n notBetween: 'dateNotBetween',\n notIn: 'dateNotIn',\n} as const satisfies Partial<Record<DefaultOperatorName, string>>;\n\n/**\n * Date/time rule processor for use by {@link @react-querybuilder/core!formatQuery formatQuery}\n * with the \"jsonlogic\" format.\n *\n * Note: Unlike other date/time rule processors from this library, this function does\n * not require a date/time library API. Instead, the date/time library API is used by\n * {@link getDatetimeJsonLogicOperations} during the evaluation process.\n */\nexport const datetimeRuleProcessorJsonLogic: RuleProcessor = (\n rule,\n options\n): RQBDateTimeJsonLogic => {\n const opts = options ?? /* v8 ignore start -- @preserve */ {} /* v8 ignore stop -- @preserve */;\n\n if (!processIsDateField(opts.context?.isDateField, rule, opts)) {\n return defaultRuleProcessorJsonLogic(rule, opts);\n }\n\n const { field, operator, value, valueSource } = rule;\n const valueIsField = valueSource === 'field';\n const fieldObject: JsonLogicVar = { var: field };\n const maybeFieldRenderer = (v: string) => (valueIsField ? { var: `${v}` } : v);\n\n switch (operator) {\n case '<':\n case '<=':\n case '=':\n case '!=':\n case '>':\n case '>=':\n return {\n [dateOperationMap[operator]]: [fieldObject, maybeFieldRenderer(value)],\n } as RQBDateTimeJsonLogic;\n\n case 'in':\n case 'notIn': {\n const valueAsArray = toArray(value).map(v => maybeFieldRenderer(v));\n return { [dateOperationMap[operator]]: [fieldObject, valueAsArray] } as RQBDateTimeJsonLogic;\n }\n\n case 'between':\n case 'notBetween': {\n const valueAsArray = toArray(value).map(v => maybeFieldRenderer(v));\n\n if (valueAsArray.length < 2) return false;\n\n return {\n [dateOperationMap[operator]]: [valueAsArray[0], fieldObject, valueAsArray[1]],\n } as RQBDateTimeJsonLogic;\n }\n }\n\n return defaultRuleProcessorJsonLogic(rule, options);\n};\n","import type { RuleProcessor } from 'react-querybuilder';\nimport {\n defaultRuleProcessorJSONata,\n getQuotedFieldName,\n nullOrUndefinedOrEmpty,\n toArray,\n} from 'react-querybuilder';\nimport type { RQBDateTimeLibraryAPI } from './types';\nimport { processIsDateField } from './utils';\n\nconst shouldNegate = (op: string) => /^(does)?not/i.test(op);\n\nconst negate = (clause: string, neg: boolean) => (neg ? `$not(${clause})` : `${clause}`);\n\n/**\n * Generates a rule processor with date/time features for use by\n * {@link @react-querybuilder/core!formatQuery formatQuery} with the \"jsonata\" format.\n */\nexport const getDatetimeRuleProcessorJSONata =\n (apiFns: RQBDateTimeLibraryAPI): RuleProcessor =>\n (rule, options) => {\n const opts = options ?? /* v8 ignore start -- @preserve */ {} /* v8 ignore stop -- @preserve */;\n const { context = {} } = opts;\n\n // v8 ignore next\n const { quoteFieldNamesWith = ['', ''] as [string, string], fieldIdentifierSeparator = '' } =\n opts;\n const { field, operator, value, valueSource } = rule;\n\n if (!processIsDateField(context.isDateField, rule, opts)) {\n return defaultRuleProcessorJSONata(rule, opts);\n }\n\n const valueIsField = valueSource === 'field';\n\n const fldToMs = (f: string) =>\n `$toMillis(${getQuotedFieldName(f, { quoteFieldNamesWith, fieldIdentifierSeparator })})`;\n const valToMs = (v: string | Date) => `$toMillis(\"${apiFns.toISOString(v)}\")`;\n\n switch (operator) {\n case '<':\n case '<=':\n case '=':\n case '!=':\n case '>':\n case '>=':\n return `${fldToMs(field)} ${operator} ${valueIsField ? fldToMs(value) : valToMs(value)}`;\n }\n\n const valueAsArray: string[] = toArray(rule.value, { retainEmptyStrings: false });\n const valueAsDateArray = valueAsArray\n .map(v => apiFns.toDate(v))\n .filter(dateVal => apiFns.isValid(dateVal));\n\n switch (operator) {\n case 'in':\n case 'notIn': {\n if (valueIsField) {\n if (valueAsArray.length === 0) return '';\n return negate(\n `${fldToMs(field)} in [${valueAsArray.map(val => fldToMs(val)).join(', ')}]`,\n shouldNegate(operator)\n );\n }\n if (valueAsDateArray.length === 0) return '';\n return negate(\n `${fldToMs(field)} in [${valueAsDateArray.map(val => valToMs(val)).join(', ')}]`,\n shouldNegate(operator)\n );\n }\n\n case 'between':\n case 'notBetween': {\n if (\n valueAsArray.length < 2 ||\n nullOrUndefinedOrEmpty(valueAsArray[0]) ||\n nullOrUndefinedOrEmpty(valueAsArray[1]) ||\n (!valueIsField && valueAsDateArray.length < 2)\n ) {\n return '';\n }\n\n if (valueIsField) {\n const [firstValue, secondValue] = valueAsArray;\n const expression = `${fldToMs(field)} >= ${fldToMs(firstValue)} and ${fldToMs(field)} <= ${fldToMs(secondValue)}`;\n return operator === 'between' ? `(${expression})` : negate(expression, true);\n }\n\n const [first, second] = valueAsDateArray;\n const [firstDate, secondDate] = apiFns.isBefore(first, second)\n ? [first, second]\n : [second, first];\n const expression = `${fldToMs(field)} >= ${valToMs(firstDate)} and ${fldToMs(field)} <= ${valToMs(secondDate)}`;\n return operator === 'between' ? `(${expression})` : negate(expression, true);\n }\n }\n\n return defaultRuleProcessorJSONata(rule, opts);\n };\n"],"mappings":";;;;;AAKA,MAAM,mBAAmB;CACvB,MAAM;CACN,KAAK;CACL,MAAM;CACN,KAAK;CACL,KAAK;CACL,MAAM;CACN,SAAS;CACT,IAAI;CACJ,YAAY;CACZ,OAAO;
|
|
1
|
+
{"version":3,"file":"react-querybuilder_datetime.cjs.development.js","names":["processIsDateField","processIsDateField"],"sources":["../../src/datetimeRuleProcessorJsonLogic.ts","../../src/getDatetimeRuleProcessorJSONata.ts"],"sourcesContent":["import type { DefaultOperatorName, JsonLogicVar, RuleProcessor } from 'react-querybuilder';\nimport { defaultRuleProcessorJsonLogic, toArray } from 'react-querybuilder';\nimport type { RQBDateTimeJsonLogic } from './types';\nimport { processIsDateField } from './utils';\n\nconst dateOperationMap = {\n '!=': 'dateNotOn',\n '<': 'dateBefore',\n '<=': 'dateOnOrBefore',\n '=': 'dateOn',\n '>': 'dateAfter',\n '>=': 'dateOnOrAfter',\n between: 'dateBetween',\n in: 'dateIn',\n notBetween: 'dateNotBetween',\n notIn: 'dateNotIn',\n} as const satisfies Partial<Record<DefaultOperatorName, string>>;\n\n/**\n * Date/time rule processor for use by {@link @react-querybuilder/core!formatQuery formatQuery}\n * with the \"jsonlogic\" format.\n *\n * Note: Unlike other date/time rule processors from this library, this function does\n * not require a date/time library API. Instead, the date/time library API is used by\n * {@link getDatetimeJsonLogicOperations} during the evaluation process.\n */\nexport const datetimeRuleProcessorJsonLogic: RuleProcessor = (\n rule,\n options\n): RQBDateTimeJsonLogic => {\n const opts = options ?? /* v8 ignore start -- @preserve */ {} /* v8 ignore stop -- @preserve */;\n\n if (!processIsDateField(opts.context?.isDateField, rule, opts)) {\n return defaultRuleProcessorJsonLogic(rule, opts);\n }\n\n const { field, operator, value, valueSource } = rule;\n const valueIsField = valueSource === 'field';\n const fieldObject: JsonLogicVar = { var: field };\n const maybeFieldRenderer = (v: string) => (valueIsField ? { var: `${v}` } : v);\n\n switch (operator) {\n case '<':\n case '<=':\n case '=':\n case '!=':\n case '>':\n case '>=':\n return {\n [dateOperationMap[operator]]: [fieldObject, maybeFieldRenderer(value)],\n } as RQBDateTimeJsonLogic;\n\n case 'in':\n case 'notIn': {\n const valueAsArray = toArray(value).map(v => maybeFieldRenderer(v));\n return { [dateOperationMap[operator]]: [fieldObject, valueAsArray] } as RQBDateTimeJsonLogic;\n }\n\n case 'between':\n case 'notBetween': {\n const valueAsArray = toArray(value).map(v => maybeFieldRenderer(v));\n\n if (valueAsArray.length < 2) return false;\n\n return {\n [dateOperationMap[operator]]: [valueAsArray[0], fieldObject, valueAsArray[1]],\n } as RQBDateTimeJsonLogic;\n }\n }\n\n return defaultRuleProcessorJsonLogic(rule, options);\n};\n","import type { RuleProcessor } from 'react-querybuilder';\nimport {\n defaultRuleProcessorJSONata,\n getQuotedFieldName,\n nullOrUndefinedOrEmpty,\n toArray,\n} from 'react-querybuilder';\nimport type { RQBDateTimeLibraryAPI } from './types';\nimport { processIsDateField } from './utils';\n\nconst shouldNegate = (op: string) => /^(does)?not/i.test(op);\n\nconst negate = (clause: string, neg: boolean) => (neg ? `$not(${clause})` : `${clause}`);\n\n/**\n * Generates a rule processor with date/time features for use by\n * {@link @react-querybuilder/core!formatQuery formatQuery} with the \"jsonata\" format.\n */\nexport const getDatetimeRuleProcessorJSONata =\n (apiFns: RQBDateTimeLibraryAPI): RuleProcessor =>\n (rule, options) => {\n const opts = options ?? /* v8 ignore start -- @preserve */ {} /* v8 ignore stop -- @preserve */;\n const { context = {} } = opts;\n\n // v8 ignore next\n const { quoteFieldNamesWith = ['', ''] as [string, string], fieldIdentifierSeparator = '' } =\n opts;\n const { field, operator, value, valueSource } = rule;\n\n if (!processIsDateField(context.isDateField, rule, opts)) {\n return defaultRuleProcessorJSONata(rule, opts);\n }\n\n const valueIsField = valueSource === 'field';\n\n const fldToMs = (f: string) =>\n `$toMillis(${getQuotedFieldName(f, { quoteFieldNamesWith, fieldIdentifierSeparator })})`;\n const valToMs = (v: string | Date) => `$toMillis(\"${apiFns.toISOString(v)}\")`;\n\n switch (operator) {\n case '<':\n case '<=':\n case '=':\n case '!=':\n case '>':\n case '>=':\n return `${fldToMs(field)} ${operator} ${valueIsField ? fldToMs(value) : valToMs(value)}`;\n }\n\n const valueAsArray: string[] = toArray(rule.value, { retainEmptyStrings: false });\n const valueAsDateArray = valueAsArray\n .map(v => apiFns.toDate(v))\n .filter(dateVal => apiFns.isValid(dateVal));\n\n switch (operator) {\n case 'in':\n case 'notIn': {\n if (valueIsField) {\n if (valueAsArray.length === 0) return '';\n return negate(\n `${fldToMs(field)} in [${valueAsArray.map(val => fldToMs(val)).join(', ')}]`,\n shouldNegate(operator)\n );\n }\n if (valueAsDateArray.length === 0) return '';\n return negate(\n `${fldToMs(field)} in [${valueAsDateArray.map(val => valToMs(val)).join(', ')}]`,\n shouldNegate(operator)\n );\n }\n\n case 'between':\n case 'notBetween': {\n if (\n valueAsArray.length < 2 ||\n nullOrUndefinedOrEmpty(valueAsArray[0]) ||\n nullOrUndefinedOrEmpty(valueAsArray[1]) ||\n (!valueIsField && valueAsDateArray.length < 2)\n ) {\n return '';\n }\n\n if (valueIsField) {\n const [firstValue, secondValue] = valueAsArray;\n const expression = `${fldToMs(field)} >= ${fldToMs(firstValue)} and ${fldToMs(field)} <= ${fldToMs(secondValue)}`;\n return operator === 'between' ? `(${expression})` : negate(expression, true);\n }\n\n const [first, second] = valueAsDateArray;\n const [firstDate, secondDate] = apiFns.isBefore(first, second)\n ? [first, second]\n : [second, first];\n const expression = `${fldToMs(field)} >= ${valToMs(firstDate)} and ${fldToMs(field)} <= ${valToMs(secondDate)}`;\n return operator === 'between' ? `(${expression})` : negate(expression, true);\n }\n }\n\n return defaultRuleProcessorJSONata(rule, opts);\n };\n"],"mappings":"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"}
|
|
@@ -51,6 +51,14 @@ declare const datetimeRuleProcessorMongoDBQuery: RuleProcessor;
|
|
|
51
51
|
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "natural_language" format using JavaScript `Date`
|
|
52
52
|
*/
|
|
53
53
|
declare const datetimeRuleProcessorNL: ValueProcessorByRule;
|
|
54
|
+
/**
|
|
55
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "cypher"/"gql" format using JavaScript `Date`
|
|
56
|
+
*/
|
|
57
|
+
declare const datetimeRuleProcessorCypher: RuleProcessor;
|
|
58
|
+
/**
|
|
59
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "sparql" format using JavaScript `Date`
|
|
60
|
+
*/
|
|
61
|
+
declare const datetimeRuleProcessorSPARQL: RuleProcessor;
|
|
54
62
|
//#endregion
|
|
55
|
-
export { datetimeRuleProcessorCEL, datetimeRuleProcessorMongoDBQuery, datetimeRuleProcessorNL, datetimeRuleProcessorSQL, datetimeValueProcessorANSI, datetimeValueProcessorMSSQL, datetimeValueProcessorMySQL, datetimeValueProcessorOracle, datetimeValueProcessorPostgreSQL, jsonLogicDateTimeOperations, rqbDateTimeLibraryAPI };
|
|
63
|
+
export { datetimeRuleProcessorCEL, datetimeRuleProcessorCypher, datetimeRuleProcessorMongoDBQuery, datetimeRuleProcessorNL, datetimeRuleProcessorSPARQL, datetimeRuleProcessorSQL, datetimeValueProcessorANSI, datetimeValueProcessorMSSQL, datetimeValueProcessorMySQL, datetimeValueProcessorOracle, datetimeValueProcessorPostgreSQL, jsonLogicDateTimeOperations, rqbDateTimeLibraryAPI };
|
|
56
64
|
//# sourceMappingURL=react-querybuilder_datetime.cjs.development.jsdate.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_getDatetimeRuleProcessorSQL = require("./getDatetimeRuleProcessorSQL-
|
|
2
|
+
const require_getDatetimeRuleProcessorSQL = require("./getDatetimeRuleProcessorSQL-BY6ZJTYb.js");
|
|
3
3
|
//#region src/rqbDateTimeLibraryAPI.jsdate.ts
|
|
4
4
|
const invalidDate = /* @__PURE__ */ new Date(NaN);
|
|
5
5
|
const dateRegExp = /^(\d{4})-(\d{2})-(\d{2})([T ](\d{2}):(\d{2}):(\d{2})(\.(\d{1,3}))?)?/;
|
|
@@ -101,10 +101,20 @@ const datetimeRuleProcessorMongoDBQuery = require_getDatetimeRuleProcessorSQL.ge
|
|
|
101
101
|
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "natural_language" format using JavaScript `Date`
|
|
102
102
|
*/
|
|
103
103
|
const datetimeRuleProcessorNL = require_getDatetimeRuleProcessorSQL.getDatetimeRuleProcessorNL(rqbDateTimeLibraryAPI);
|
|
104
|
+
/**
|
|
105
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "cypher"/"gql" format using JavaScript `Date`
|
|
106
|
+
*/
|
|
107
|
+
const datetimeRuleProcessorCypher = require_getDatetimeRuleProcessorSQL.getDatetimeRuleProcessorCypher(rqbDateTimeLibraryAPI);
|
|
108
|
+
/**
|
|
109
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "sparql" format using JavaScript `Date`
|
|
110
|
+
*/
|
|
111
|
+
const datetimeRuleProcessorSPARQL = require_getDatetimeRuleProcessorSQL.getDatetimeRuleProcessorSPARQL(rqbDateTimeLibraryAPI);
|
|
104
112
|
//#endregion
|
|
105
113
|
exports.datetimeRuleProcessorCEL = datetimeRuleProcessorCEL;
|
|
114
|
+
exports.datetimeRuleProcessorCypher = datetimeRuleProcessorCypher;
|
|
106
115
|
exports.datetimeRuleProcessorMongoDBQuery = datetimeRuleProcessorMongoDBQuery;
|
|
107
116
|
exports.datetimeRuleProcessorNL = datetimeRuleProcessorNL;
|
|
117
|
+
exports.datetimeRuleProcessorSPARQL = datetimeRuleProcessorSPARQL;
|
|
108
118
|
exports.datetimeRuleProcessorSQL = datetimeRuleProcessorSQL;
|
|
109
119
|
exports.datetimeValueProcessorANSI = datetimeValueProcessorANSI;
|
|
110
120
|
exports.datetimeValueProcessorMSSQL = datetimeValueProcessorMSSQL;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react-querybuilder_datetime.cjs.development.jsdate.js","names":["isISOStringDateOnly","getDatetimeJsonLogicOperations","getDatetimeRuleProcessorSQL","getDatetimeValueProcessorANSI","getDatetimeValueProcessorMSSQL","getDatetimeValueProcessorMySQL","getDatetimeValueProcessorOracle","getDatetimeValueProcessorPostgreSQL","getDatetimeRuleProcessorCEL","getDatetimeRuleProcessorMongoDBQuery","getDatetimeRuleProcessorNL"],"sources":["../../src/rqbDateTimeLibraryAPI.jsdate.ts","../../src/index.jsdate.ts"],"sourcesContent":["import type { RQBDateTimeLibraryAPI } from './types';\nimport { isISOStringDateOnly } from './utils';\n\nconst invalidDate = new Date(Number.NaN);\n\nconst dateRegExp = /^(\\d{4})-(\\d{2})-(\\d{2})([T ](\\d{2}):(\\d{2}):(\\d{2})(\\.(\\d{1,3}))?)?/;\n\nconst toDate = (d: string | Date) => {\n if (d instanceof Date) return d;\n\n const reMatch = dateRegExp.exec(d);\n\n if (!reMatch) return invalidDate;\n\n const [_all, yyyy, mm, dd, _time, hh, mi, ss, _decimal, sss] = reMatch;\n const [year, month, day, hours, minutes, seconds, ms] = [yyyy, mm, dd, hh, mi, ss, sss ?? '0']\n .filter(Boolean)\n .map(Number);\n\n const monthIndex = month - 1;\n\n return hh\n ? new Date(Date.UTC(year, monthIndex, day, hours, minutes, seconds, ms))\n : new Date(year, monthIndex, day);\n};\n\nconst isValid = (d: string | Date) => {\n const dToDate = toDate(d);\n return dToDate instanceof Date && !Number.isNaN(dToDate.getTime());\n};\n\nconst toISOStringDateOnly = (d: string | Date) => {\n const dToDate = toDate(d);\n return isValid(dToDate) ? dToDate.toISOString().slice(0, 10) : '';\n};\n\n/**\n * {@link RQBDateTimeLibraryAPI} for JavaScript `Date`\n *\n * @deprecated This API will not be removed, but we recommend using one of the other\n * {@link RQBDateTimeLibraryAPI}s based on a popular library instead.\n */\nexport const rqbDateTimeLibraryAPI: RQBDateTimeLibraryAPI = {\n format: d => toDate(d).toISOString(),\n isAfter: (a, b) => {\n const dateA = toDate(a).getTime();\n const dateB = toDate(b).getTime();\n return !Number.isNaN(dateA) && !Number.isNaN(dateB) && dateA > dateB;\n },\n isBefore: (a, b) => {\n const dateA = toDate(a).getTime();\n const dateB = toDate(b).getTime();\n return !Number.isNaN(dateA) && !Number.isNaN(dateB) && dateA < dateB;\n },\n isSame: (a, b) => {\n const aToDate = toDate(a);\n const bToDate = toDate(b);\n return isISOStringDateOnly(a) || isISOStringDateOnly(b)\n ? toISOStringDateOnly(a) === toISOStringDateOnly(b)\n : aToDate.getTime() === bToDate.getTime();\n },\n isValid,\n toDate,\n toISOString: d => {\n const dToDate = toDate(d);\n return isValid(dToDate) ? dToDate.toISOString() : '';\n },\n toISOStringDateOnly,\n};\n","/**\n * Import from `\"@react-querybuilder/datetime/jsdate\"` for enhanced date/time support using a custom JavaScript `Date`-based library.\n *\n * @module jsdate\n */\n\nimport type { RuleProcessor, ValueProcessorByRule } from 'react-querybuilder';\nimport { getDatetimeJsonLogicOperations } from './getDatetimeJsonLogicOperations';\nimport { getDatetimeRuleProcessorCEL } from './getDatetimeRuleProcessorCEL';\nimport { getDatetimeRuleProcessorMongoDBQuery } from './getDatetimeRuleProcessorMongoDBQuery';\nimport { getDatetimeRuleProcessorNL } from './getDatetimeRuleProcessorNL';\nimport {\n getDatetimeRuleProcessorSQL,\n getDatetimeValueProcessorANSI,\n getDatetimeValueProcessorMSSQL,\n getDatetimeValueProcessorMySQL,\n getDatetimeValueProcessorOracle,\n getDatetimeValueProcessorPostgreSQL,\n} from './getDatetimeRuleProcessorSQL';\nimport { rqbDateTimeLibraryAPI } from './rqbDateTimeLibraryAPI.jsdate';\nimport type { RQBJsonLogicDateTimeOperations } from './types';\n\n/**\n * Custom JsonLogic date/time operations using JavaScript `Date`.\n */\nexport const jsonLogicDateTimeOperations: RQBJsonLogicDateTimeOperations =\n getDatetimeJsonLogicOperations(rqbDateTimeLibraryAPI);\n\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for \"sql\" format using JavaScript `Date`\n */\nexport const datetimeRuleProcessorSQL: RuleProcessor =\n getDatetimeRuleProcessorSQL(rqbDateTimeLibraryAPI);\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} value processor for \"sql\" format (\"ansi\" preset) using JavaScript `Date`\n */\nexport const datetimeValueProcessorANSI: ValueProcessorByRule =\n getDatetimeValueProcessorANSI(rqbDateTimeLibraryAPI);\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} value processor for \"sql\" format (\"mssql\" preset) using JavaScript `Date`\n */\nexport const datetimeValueProcessorMSSQL: ValueProcessorByRule =\n getDatetimeValueProcessorMSSQL(rqbDateTimeLibraryAPI);\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} value processor for \"sql\" format (\"mysql\" preset) using JavaScript `Date`\n */\nexport const datetimeValueProcessorMySQL: ValueProcessorByRule =\n getDatetimeValueProcessorMySQL(rqbDateTimeLibraryAPI);\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} value processor for \"sql\" format (\"oracle\" preset) using JavaScript `Date`\n */\nexport const datetimeValueProcessorOracle: ValueProcessorByRule =\n getDatetimeValueProcessorOracle(rqbDateTimeLibraryAPI);\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} value processor for \"sql\" format (\"postgresql\" preset) using JavaScript `Date`\n */\nexport const datetimeValueProcessorPostgreSQL: ValueProcessorByRule =\n getDatetimeValueProcessorPostgreSQL(rqbDateTimeLibraryAPI);\n\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for \"cel\" format using JavaScript `Date`\n */\nexport const datetimeRuleProcessorCEL: RuleProcessor =\n getDatetimeRuleProcessorCEL(rqbDateTimeLibraryAPI);\n\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for \"mongodb_query\" format using JavaScript `Date`\n */\nexport const datetimeRuleProcessorMongoDBQuery: RuleProcessor =\n getDatetimeRuleProcessorMongoDBQuery(rqbDateTimeLibraryAPI);\n\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for \"natural_language\" format using JavaScript `Date`\n */\nexport const datetimeRuleProcessorNL: ValueProcessorByRule =\n getDatetimeRuleProcessorNL(rqbDateTimeLibraryAPI);\n\nexport * from './rqbDateTimeLibraryAPI.jsdate';\n"],"mappings":";;;AAGA,MAAM,8BAAc,IAAI,KAAK,
|
|
1
|
+
{"version":3,"file":"react-querybuilder_datetime.cjs.development.jsdate.js","names":["isISOStringDateOnly","getDatetimeJsonLogicOperations","getDatetimeRuleProcessorSQL","getDatetimeValueProcessorANSI","getDatetimeValueProcessorMSSQL","getDatetimeValueProcessorMySQL","getDatetimeValueProcessorOracle","getDatetimeValueProcessorPostgreSQL","getDatetimeRuleProcessorCEL","getDatetimeRuleProcessorMongoDBQuery","getDatetimeRuleProcessorNL","getDatetimeRuleProcessorCypher","getDatetimeRuleProcessorSPARQL"],"sources":["../../src/rqbDateTimeLibraryAPI.jsdate.ts","../../src/index.jsdate.ts"],"sourcesContent":["import type { RQBDateTimeLibraryAPI } from './types';\nimport { isISOStringDateOnly } from './utils';\n\nconst invalidDate = new Date(Number.NaN);\n\nconst dateRegExp = /^(\\d{4})-(\\d{2})-(\\d{2})([T ](\\d{2}):(\\d{2}):(\\d{2})(\\.(\\d{1,3}))?)?/;\n\nconst toDate = (d: string | Date) => {\n if (d instanceof Date) return d;\n\n const reMatch = dateRegExp.exec(d);\n\n if (!reMatch) return invalidDate;\n\n const [_all, yyyy, mm, dd, _time, hh, mi, ss, _decimal, sss] = reMatch;\n const [year, month, day, hours, minutes, seconds, ms] = [yyyy, mm, dd, hh, mi, ss, sss ?? '0']\n .filter(Boolean)\n .map(Number);\n\n const monthIndex = month - 1;\n\n return hh\n ? new Date(Date.UTC(year, monthIndex, day, hours, minutes, seconds, ms))\n : new Date(year, monthIndex, day);\n};\n\nconst isValid = (d: string | Date) => {\n const dToDate = toDate(d);\n return dToDate instanceof Date && !Number.isNaN(dToDate.getTime());\n};\n\nconst toISOStringDateOnly = (d: string | Date) => {\n const dToDate = toDate(d);\n return isValid(dToDate) ? dToDate.toISOString().slice(0, 10) : '';\n};\n\n/**\n * {@link RQBDateTimeLibraryAPI} for JavaScript `Date`\n *\n * @deprecated This API will not be removed, but we recommend using one of the other\n * {@link RQBDateTimeLibraryAPI}s based on a popular library instead.\n */\nexport const rqbDateTimeLibraryAPI: RQBDateTimeLibraryAPI = {\n format: d => toDate(d).toISOString(),\n isAfter: (a, b) => {\n const dateA = toDate(a).getTime();\n const dateB = toDate(b).getTime();\n return !Number.isNaN(dateA) && !Number.isNaN(dateB) && dateA > dateB;\n },\n isBefore: (a, b) => {\n const dateA = toDate(a).getTime();\n const dateB = toDate(b).getTime();\n return !Number.isNaN(dateA) && !Number.isNaN(dateB) && dateA < dateB;\n },\n isSame: (a, b) => {\n const aToDate = toDate(a);\n const bToDate = toDate(b);\n return isISOStringDateOnly(a) || isISOStringDateOnly(b)\n ? toISOStringDateOnly(a) === toISOStringDateOnly(b)\n : aToDate.getTime() === bToDate.getTime();\n },\n isValid,\n toDate,\n toISOString: d => {\n const dToDate = toDate(d);\n return isValid(dToDate) ? dToDate.toISOString() : '';\n },\n toISOStringDateOnly,\n};\n","/**\n * Import from `\"@react-querybuilder/datetime/jsdate\"` for enhanced date/time support using a custom JavaScript `Date`-based library.\n *\n * @module jsdate\n */\n\nimport type { RuleProcessor, ValueProcessorByRule } from 'react-querybuilder';\nimport { getDatetimeJsonLogicOperations } from './getDatetimeJsonLogicOperations';\nimport { getDatetimeRuleProcessorCEL } from './getDatetimeRuleProcessorCEL';\nimport { getDatetimeRuleProcessorCypher } from './getDatetimeRuleProcessorCypher';\nimport { getDatetimeRuleProcessorMongoDBQuery } from './getDatetimeRuleProcessorMongoDBQuery';\nimport { getDatetimeRuleProcessorNL } from './getDatetimeRuleProcessorNL';\nimport { getDatetimeRuleProcessorSPARQL } from './getDatetimeRuleProcessorSPARQL';\nimport {\n getDatetimeRuleProcessorSQL,\n getDatetimeValueProcessorANSI,\n getDatetimeValueProcessorMSSQL,\n getDatetimeValueProcessorMySQL,\n getDatetimeValueProcessorOracle,\n getDatetimeValueProcessorPostgreSQL,\n} from './getDatetimeRuleProcessorSQL';\nimport { rqbDateTimeLibraryAPI } from './rqbDateTimeLibraryAPI.jsdate';\nimport type { RQBJsonLogicDateTimeOperations } from './types';\n\n/**\n * Custom JsonLogic date/time operations using JavaScript `Date`.\n */\nexport const jsonLogicDateTimeOperations: RQBJsonLogicDateTimeOperations =\n getDatetimeJsonLogicOperations(rqbDateTimeLibraryAPI);\n\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for \"sql\" format using JavaScript `Date`\n */\nexport const datetimeRuleProcessorSQL: RuleProcessor =\n getDatetimeRuleProcessorSQL(rqbDateTimeLibraryAPI);\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} value processor for \"sql\" format (\"ansi\" preset) using JavaScript `Date`\n */\nexport const datetimeValueProcessorANSI: ValueProcessorByRule =\n getDatetimeValueProcessorANSI(rqbDateTimeLibraryAPI);\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} value processor for \"sql\" format (\"mssql\" preset) using JavaScript `Date`\n */\nexport const datetimeValueProcessorMSSQL: ValueProcessorByRule =\n getDatetimeValueProcessorMSSQL(rqbDateTimeLibraryAPI);\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} value processor for \"sql\" format (\"mysql\" preset) using JavaScript `Date`\n */\nexport const datetimeValueProcessorMySQL: ValueProcessorByRule =\n getDatetimeValueProcessorMySQL(rqbDateTimeLibraryAPI);\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} value processor for \"sql\" format (\"oracle\" preset) using JavaScript `Date`\n */\nexport const datetimeValueProcessorOracle: ValueProcessorByRule =\n getDatetimeValueProcessorOracle(rqbDateTimeLibraryAPI);\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} value processor for \"sql\" format (\"postgresql\" preset) using JavaScript `Date`\n */\nexport const datetimeValueProcessorPostgreSQL: ValueProcessorByRule =\n getDatetimeValueProcessorPostgreSQL(rqbDateTimeLibraryAPI);\n\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for \"cel\" format using JavaScript `Date`\n */\nexport const datetimeRuleProcessorCEL: RuleProcessor =\n getDatetimeRuleProcessorCEL(rqbDateTimeLibraryAPI);\n\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for \"mongodb_query\" format using JavaScript `Date`\n */\nexport const datetimeRuleProcessorMongoDBQuery: RuleProcessor =\n getDatetimeRuleProcessorMongoDBQuery(rqbDateTimeLibraryAPI);\n\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for \"natural_language\" format using JavaScript `Date`\n */\nexport const datetimeRuleProcessorNL: ValueProcessorByRule =\n getDatetimeRuleProcessorNL(rqbDateTimeLibraryAPI);\n\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for \"cypher\"/\"gql\" format using JavaScript `Date`\n */\nexport const datetimeRuleProcessorCypher: RuleProcessor =\n getDatetimeRuleProcessorCypher(rqbDateTimeLibraryAPI);\n\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for \"sparql\" format using JavaScript `Date`\n */\nexport const datetimeRuleProcessorSPARQL: RuleProcessor =\n getDatetimeRuleProcessorSPARQL(rqbDateTimeLibraryAPI);\n\nexport * from './rqbDateTimeLibraryAPI.jsdate';\n"],"mappings":";;;AAGA,MAAM,8BAAc,IAAI,KAAK,GAAU;AAEvC,MAAM,aAAa;AAEnB,MAAM,UAAU,MAAqB;CACnC,IAAI,aAAa,MAAM,OAAO;CAE9B,MAAM,UAAU,WAAW,KAAK,CAAC;CAEjC,IAAI,CAAC,SAAS,OAAO;CAErB,MAAM,CAAC,MAAM,MAAM,IAAI,IAAI,OAAO,IAAI,IAAI,IAAI,UAAU,OAAO;CAC/D,MAAM,CAAC,MAAM,OAAO,KAAK,OAAO,SAAS,SAAS,MAAM;EAAC;EAAM;EAAI;EAAI;EAAI;EAAI;EAAI,OAAO;CAAG,EAC1F,OAAO,OAAO,EACd,IAAI,MAAM;CAEb,MAAM,aAAa,QAAQ;CAE3B,OAAO,KACH,IAAI,KAAK,KAAK,IAAI,MAAM,YAAY,KAAK,OAAO,SAAS,SAAS,EAAE,CAAC,IACrE,IAAI,KAAK,MAAM,YAAY,GAAG;AACpC;AAEA,MAAM,WAAW,MAAqB;CACpC,MAAM,UAAU,OAAO,CAAC;CACxB,OAAO,mBAAmB,QAAQ,CAAC,OAAO,MAAM,QAAQ,QAAQ,CAAC;AACnE;AAEA,MAAM,uBAAuB,MAAqB;CAChD,MAAM,UAAU,OAAO,CAAC;CACxB,OAAO,QAAQ,OAAO,IAAI,QAAQ,YAAY,EAAE,MAAM,GAAG,EAAE,IAAI;AACjE;;;;;;;AAQA,MAAa,wBAA+C;CAC1D,SAAQ,MAAK,OAAO,CAAC,EAAE,YAAY;CACnC,UAAU,GAAG,MAAM;EACjB,MAAM,QAAQ,OAAO,CAAC,EAAE,QAAQ;EAChC,MAAM,QAAQ,OAAO,CAAC,EAAE,QAAQ;EAChC,OAAO,CAAC,OAAO,MAAM,KAAK,KAAK,CAAC,OAAO,MAAM,KAAK,KAAK,QAAQ;CACjE;CACA,WAAW,GAAG,MAAM;EAClB,MAAM,QAAQ,OAAO,CAAC,EAAE,QAAQ;EAChC,MAAM,QAAQ,OAAO,CAAC,EAAE,QAAQ;EAChC,OAAO,CAAC,OAAO,MAAM,KAAK,KAAK,CAAC,OAAO,MAAM,KAAK,KAAK,QAAQ;CACjE;CACA,SAAS,GAAG,MAAM;EAChB,MAAM,UAAU,OAAO,CAAC;EACxB,MAAM,UAAU,OAAO,CAAC;EACxB,OAAOA,oCAAAA,oBAAoB,CAAC,KAAKA,oCAAAA,oBAAoB,CAAC,IAClD,oBAAoB,CAAC,MAAM,oBAAoB,CAAC,IAChD,QAAQ,QAAQ,MAAM,QAAQ,QAAQ;CAC5C;CACA;CACA;CACA,cAAa,MAAK;EAChB,MAAM,UAAU,OAAO,CAAC;EACxB,OAAO,QAAQ,OAAO,IAAI,QAAQ,YAAY,IAAI;CACpD;CACA;AACF;;;;;;ACzCA,MAAa,8BACXC,oCAAAA,+BAA+B,qBAAqB;;;;AAKtD,MAAa,2BACXC,oCAAAA,4BAA4B,qBAAqB;;;;AAInD,MAAa,6BACXC,oCAAAA,8BAA8B,qBAAqB;;;;AAIrD,MAAa,8BACXC,oCAAAA,+BAA+B,qBAAqB;;;;AAItD,MAAa,8BACXC,oCAAAA,+BAA+B,qBAAqB;;;;AAItD,MAAa,+BACXC,oCAAAA,gCAAgC,qBAAqB;;;;AAIvD,MAAa,mCACXC,oCAAAA,oCAAoC,qBAAqB;;;;AAK3D,MAAa,2BACXC,oCAAAA,4BAA4B,qBAAqB;;;;AAKnD,MAAa,oCACXC,oCAAAA,qCAAqC,qBAAqB;;;;AAK5D,MAAa,0BACXC,oCAAAA,2BAA2B,qBAAqB;;;;AAKlD,MAAa,8BACXC,oCAAAA,+BAA+B,qBAAqB;;;;AAKtD,MAAa,8BACXC,oCAAAA,+BAA+B,qBAAqB"}
|
|
@@ -48,6 +48,14 @@ declare const datetimeRuleProcessorMongoDBQuery: ValueProcessorByRule;
|
|
|
48
48
|
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "natural_language" format using Luxon
|
|
49
49
|
*/
|
|
50
50
|
declare const datetimeRuleProcessorNL: ValueProcessorByRule;
|
|
51
|
+
/**
|
|
52
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "cypher"/"gql" format using Luxon
|
|
53
|
+
*/
|
|
54
|
+
declare const datetimeRuleProcessorCypher: ValueProcessorByRule;
|
|
55
|
+
/**
|
|
56
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "sparql" format using Luxon
|
|
57
|
+
*/
|
|
58
|
+
declare const datetimeRuleProcessorSPARQL: ValueProcessorByRule;
|
|
51
59
|
//#endregion
|
|
52
|
-
export { datetimeRuleProcessorCEL, datetimeRuleProcessorMongoDBQuery, datetimeRuleProcessorNL, datetimeRuleProcessorSQL, datetimeValueProcessorANSI, datetimeValueProcessorMSSQL, datetimeValueProcessorMySQL, datetimeValueProcessorOracle, datetimeValueProcessorPostgreSQL, jsonLogicDateTimeOperations, rqbDateTimeLibraryAPI };
|
|
60
|
+
export { datetimeRuleProcessorCEL, datetimeRuleProcessorCypher, datetimeRuleProcessorMongoDBQuery, datetimeRuleProcessorNL, datetimeRuleProcessorSPARQL, datetimeRuleProcessorSQL, datetimeValueProcessorANSI, datetimeValueProcessorMSSQL, datetimeValueProcessorMySQL, datetimeValueProcessorOracle, datetimeValueProcessorPostgreSQL, jsonLogicDateTimeOperations, rqbDateTimeLibraryAPI };
|
|
53
61
|
//# sourceMappingURL=react-querybuilder_datetime.cjs.development.luxon.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_getDatetimeRuleProcessorSQL = require("./getDatetimeRuleProcessorSQL-
|
|
2
|
+
const require_getDatetimeRuleProcessorSQL = require("./getDatetimeRuleProcessorSQL-BY6ZJTYb.js");
|
|
3
3
|
require("./react-querybuilder_datetime.cjs.development.dayjs.js");
|
|
4
4
|
let luxon = require("luxon");
|
|
5
5
|
//#region src/rqbDateTimeLibraryAPI.luxon.ts
|
|
@@ -66,10 +66,20 @@ const datetimeRuleProcessorMongoDBQuery = require_getDatetimeRuleProcessorSQL.ge
|
|
|
66
66
|
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "natural_language" format using Luxon
|
|
67
67
|
*/
|
|
68
68
|
const datetimeRuleProcessorNL = require_getDatetimeRuleProcessorSQL.getDatetimeRuleProcessorNL(rqbDateTimeLibraryAPI);
|
|
69
|
+
/**
|
|
70
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "cypher"/"gql" format using Luxon
|
|
71
|
+
*/
|
|
72
|
+
const datetimeRuleProcessorCypher = require_getDatetimeRuleProcessorSQL.getDatetimeRuleProcessorCypher(rqbDateTimeLibraryAPI);
|
|
73
|
+
/**
|
|
74
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "sparql" format using Luxon
|
|
75
|
+
*/
|
|
76
|
+
const datetimeRuleProcessorSPARQL = require_getDatetimeRuleProcessorSQL.getDatetimeRuleProcessorSPARQL(rqbDateTimeLibraryAPI);
|
|
69
77
|
//#endregion
|
|
70
78
|
exports.datetimeRuleProcessorCEL = datetimeRuleProcessorCEL;
|
|
79
|
+
exports.datetimeRuleProcessorCypher = datetimeRuleProcessorCypher;
|
|
71
80
|
exports.datetimeRuleProcessorMongoDBQuery = datetimeRuleProcessorMongoDBQuery;
|
|
72
81
|
exports.datetimeRuleProcessorNL = datetimeRuleProcessorNL;
|
|
82
|
+
exports.datetimeRuleProcessorSPARQL = datetimeRuleProcessorSPARQL;
|
|
73
83
|
exports.datetimeRuleProcessorSQL = datetimeRuleProcessorSQL;
|
|
74
84
|
exports.datetimeValueProcessorANSI = datetimeValueProcessorANSI;
|
|
75
85
|
exports.datetimeValueProcessorMSSQL = datetimeValueProcessorMSSQL;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react-querybuilder_datetime.cjs.development.luxon.js","names":["DateTime","isISOStringDateOnly","getDatetimeJsonLogicOperations","getDatetimeRuleProcessorSQL","getDatetimeValueProcessorANSI","getDatetimeValueProcessorMSSQL","getDatetimeValueProcessorMySQL","getDatetimeValueProcessorOracle","getDatetimeValueProcessorPostgreSQL","getDatetimeRuleProcessorCEL","getDatetimeRuleProcessorMongoDBQuery","getDatetimeRuleProcessorNL"],"sources":["../../src/rqbDateTimeLibraryAPI.luxon.ts","../../src/index.luxon.ts"],"sourcesContent":["import { DateTime } from 'luxon';\nimport type { RQBDateTimeLibraryAPI } from './types';\nimport { isISOStringDateOnly } from './utils';\n\nconst toDateTime = (a: string | Date) =>\n typeof a === 'string' ? DateTime.fromISO(a) : DateTime.fromJSDate(a);\nconst iso8601DateOnly = 'yyyy-MM-dd';\n\n/**\n * {@link RQBDateTimeLibraryAPI} for Luxon\n */\nexport const rqbDateTimeLibraryAPI: RQBDateTimeLibraryAPI = {\n format: (d, fmt) => toDateTime(d).toFormat(fmt.replace('YYYY-MM-DD', iso8601DateOnly)),\n isAfter: (a, b) => toDateTime(a) > toDateTime(b),\n isBefore: (a, b) => toDateTime(a) < toDateTime(b),\n isSame: (a, b) =>\n isISOStringDateOnly(a) || isISOStringDateOnly(b)\n ? toDateTime(a).hasSame(toDateTime(b), 'day')\n : +toDateTime(a) === +toDateTime(b),\n isValid: d => toDateTime(d).isValid,\n toDate: d => toDateTime(d).toJSDate(),\n toISOString: d => {\n const dToDate = toDateTime(d);\n return dToDate.isValid ? dToDate.toJSDate().toISOString() : '';\n },\n toISOStringDateOnly: d => {\n const dToDate = toDateTime(d);\n return dToDate.isValid ? dToDate.toFormat(iso8601DateOnly) : '';\n },\n};\n","/**\n * Import from `\"@react-querybuilder/datetime/luxon\"` for enhanced date/time support using [Luxon](https://moment.github.io/luxon/).\n *\n * @module luxon\n */\n\nimport type { RuleProcessor, ValueProcessorByRule } from 'react-querybuilder';\nimport { getDatetimeJsonLogicOperations } from './getDatetimeJsonLogicOperations';\nimport { getDatetimeRuleProcessorCEL } from './getDatetimeRuleProcessorCEL';\nimport { getDatetimeRuleProcessorMongoDBQuery } from './getDatetimeRuleProcessorMongoDBQuery';\nimport { getDatetimeRuleProcessorNL } from './getDatetimeRuleProcessorNL';\nimport {\n getDatetimeRuleProcessorSQL,\n getDatetimeValueProcessorANSI,\n getDatetimeValueProcessorMSSQL,\n getDatetimeValueProcessorMySQL,\n getDatetimeValueProcessorOracle,\n getDatetimeValueProcessorPostgreSQL,\n} from './getDatetimeRuleProcessorSQL';\nimport { rqbDateTimeLibraryAPI } from './rqbDateTimeLibraryAPI.luxon';\nimport type { RQBJsonLogicDateTimeOperations } from './types';\n\n/**\n * Custom JsonLogic date/time operations using Luxon\n */\nexport const jsonLogicDateTimeOperations: RQBJsonLogicDateTimeOperations =\n getDatetimeJsonLogicOperations(rqbDateTimeLibraryAPI);\n\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for \"sql\" format using Luxon\n */\nexport const datetimeRuleProcessorSQL: RuleProcessor =\n getDatetimeRuleProcessorSQL(rqbDateTimeLibraryAPI);\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} value processor for \"sql\" format (\"ansi\" preset) using Luxon\n */\nexport const datetimeValueProcessorANSI: ValueProcessorByRule =\n getDatetimeValueProcessorANSI(rqbDateTimeLibraryAPI);\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} value processor for \"sql\" format (\"mssql\" preset) using Luxon\n */\nexport const datetimeValueProcessorMSSQL: ValueProcessorByRule =\n getDatetimeValueProcessorMSSQL(rqbDateTimeLibraryAPI);\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} value processor for \"sql\" format (\"mysql\" preset) using Luxon\n */\nexport const datetimeValueProcessorMySQL: ValueProcessorByRule =\n getDatetimeValueProcessorMySQL(rqbDateTimeLibraryAPI);\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} value processor for \"sql\" format (\"oracle\" preset) using Luxon\n */\nexport const datetimeValueProcessorOracle: ValueProcessorByRule =\n getDatetimeValueProcessorOracle(rqbDateTimeLibraryAPI);\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} value processor for \"sql\" format (\"postgresql\" preset) using Luxon\n */\nexport const datetimeValueProcessorPostgreSQL: ValueProcessorByRule =\n getDatetimeValueProcessorPostgreSQL(rqbDateTimeLibraryAPI);\n\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for \"cel\" format using Luxon\n */\nexport const datetimeRuleProcessorCEL: ValueProcessorByRule =\n getDatetimeRuleProcessorCEL(rqbDateTimeLibraryAPI);\n\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for \"mongodb_query\" format using Luxon\n */\nexport const datetimeRuleProcessorMongoDBQuery: ValueProcessorByRule =\n getDatetimeRuleProcessorMongoDBQuery(rqbDateTimeLibraryAPI);\n\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for \"natural_language\" format using Luxon\n */\nexport const datetimeRuleProcessorNL: ValueProcessorByRule =\n getDatetimeRuleProcessorNL(rqbDateTimeLibraryAPI);\n\nexport * from './rqbDateTimeLibraryAPI.luxon';\n"],"mappings":";;;;;AAIA,MAAM,cAAc,MAClB,OAAO,MAAM,WAAWA,MAAAA,SAAS,QAAQ,
|
|
1
|
+
{"version":3,"file":"react-querybuilder_datetime.cjs.development.luxon.js","names":["DateTime","isISOStringDateOnly","getDatetimeJsonLogicOperations","getDatetimeRuleProcessorSQL","getDatetimeValueProcessorANSI","getDatetimeValueProcessorMSSQL","getDatetimeValueProcessorMySQL","getDatetimeValueProcessorOracle","getDatetimeValueProcessorPostgreSQL","getDatetimeRuleProcessorCEL","getDatetimeRuleProcessorMongoDBQuery","getDatetimeRuleProcessorNL","getDatetimeRuleProcessorCypher","getDatetimeRuleProcessorSPARQL"],"sources":["../../src/rqbDateTimeLibraryAPI.luxon.ts","../../src/index.luxon.ts"],"sourcesContent":["import { DateTime } from 'luxon';\nimport type { RQBDateTimeLibraryAPI } from './types';\nimport { isISOStringDateOnly } from './utils';\n\nconst toDateTime = (a: string | Date) =>\n typeof a === 'string' ? DateTime.fromISO(a) : DateTime.fromJSDate(a);\nconst iso8601DateOnly = 'yyyy-MM-dd';\n\n/**\n * {@link RQBDateTimeLibraryAPI} for Luxon\n */\nexport const rqbDateTimeLibraryAPI: RQBDateTimeLibraryAPI = {\n format: (d, fmt) => toDateTime(d).toFormat(fmt.replace('YYYY-MM-DD', iso8601DateOnly)),\n isAfter: (a, b) => toDateTime(a) > toDateTime(b),\n isBefore: (a, b) => toDateTime(a) < toDateTime(b),\n isSame: (a, b) =>\n isISOStringDateOnly(a) || isISOStringDateOnly(b)\n ? toDateTime(a).hasSame(toDateTime(b), 'day')\n : +toDateTime(a) === +toDateTime(b),\n isValid: d => toDateTime(d).isValid,\n toDate: d => toDateTime(d).toJSDate(),\n toISOString: d => {\n const dToDate = toDateTime(d);\n return dToDate.isValid ? dToDate.toJSDate().toISOString() : '';\n },\n toISOStringDateOnly: d => {\n const dToDate = toDateTime(d);\n return dToDate.isValid ? dToDate.toFormat(iso8601DateOnly) : '';\n },\n};\n","/**\n * Import from `\"@react-querybuilder/datetime/luxon\"` for enhanced date/time support using [Luxon](https://moment.github.io/luxon/).\n *\n * @module luxon\n */\n\nimport type { RuleProcessor, ValueProcessorByRule } from 'react-querybuilder';\nimport { getDatetimeJsonLogicOperations } from './getDatetimeJsonLogicOperations';\nimport { getDatetimeRuleProcessorCEL } from './getDatetimeRuleProcessorCEL';\nimport { getDatetimeRuleProcessorCypher } from './getDatetimeRuleProcessorCypher';\nimport { getDatetimeRuleProcessorMongoDBQuery } from './getDatetimeRuleProcessorMongoDBQuery';\nimport { getDatetimeRuleProcessorNL } from './getDatetimeRuleProcessorNL';\nimport { getDatetimeRuleProcessorSPARQL } from './getDatetimeRuleProcessorSPARQL';\nimport {\n getDatetimeRuleProcessorSQL,\n getDatetimeValueProcessorANSI,\n getDatetimeValueProcessorMSSQL,\n getDatetimeValueProcessorMySQL,\n getDatetimeValueProcessorOracle,\n getDatetimeValueProcessorPostgreSQL,\n} from './getDatetimeRuleProcessorSQL';\nimport { rqbDateTimeLibraryAPI } from './rqbDateTimeLibraryAPI.luxon';\nimport type { RQBJsonLogicDateTimeOperations } from './types';\n\n/**\n * Custom JsonLogic date/time operations using Luxon\n */\nexport const jsonLogicDateTimeOperations: RQBJsonLogicDateTimeOperations =\n getDatetimeJsonLogicOperations(rqbDateTimeLibraryAPI);\n\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for \"sql\" format using Luxon\n */\nexport const datetimeRuleProcessorSQL: RuleProcessor =\n getDatetimeRuleProcessorSQL(rqbDateTimeLibraryAPI);\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} value processor for \"sql\" format (\"ansi\" preset) using Luxon\n */\nexport const datetimeValueProcessorANSI: ValueProcessorByRule =\n getDatetimeValueProcessorANSI(rqbDateTimeLibraryAPI);\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} value processor for \"sql\" format (\"mssql\" preset) using Luxon\n */\nexport const datetimeValueProcessorMSSQL: ValueProcessorByRule =\n getDatetimeValueProcessorMSSQL(rqbDateTimeLibraryAPI);\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} value processor for \"sql\" format (\"mysql\" preset) using Luxon\n */\nexport const datetimeValueProcessorMySQL: ValueProcessorByRule =\n getDatetimeValueProcessorMySQL(rqbDateTimeLibraryAPI);\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} value processor for \"sql\" format (\"oracle\" preset) using Luxon\n */\nexport const datetimeValueProcessorOracle: ValueProcessorByRule =\n getDatetimeValueProcessorOracle(rqbDateTimeLibraryAPI);\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} value processor for \"sql\" format (\"postgresql\" preset) using Luxon\n */\nexport const datetimeValueProcessorPostgreSQL: ValueProcessorByRule =\n getDatetimeValueProcessorPostgreSQL(rqbDateTimeLibraryAPI);\n\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for \"cel\" format using Luxon\n */\nexport const datetimeRuleProcessorCEL: ValueProcessorByRule =\n getDatetimeRuleProcessorCEL(rqbDateTimeLibraryAPI);\n\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for \"mongodb_query\" format using Luxon\n */\nexport const datetimeRuleProcessorMongoDBQuery: ValueProcessorByRule =\n getDatetimeRuleProcessorMongoDBQuery(rqbDateTimeLibraryAPI);\n\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for \"natural_language\" format using Luxon\n */\nexport const datetimeRuleProcessorNL: ValueProcessorByRule =\n getDatetimeRuleProcessorNL(rqbDateTimeLibraryAPI);\n\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for \"cypher\"/\"gql\" format using Luxon\n */\nexport const datetimeRuleProcessorCypher: ValueProcessorByRule =\n getDatetimeRuleProcessorCypher(rqbDateTimeLibraryAPI);\n\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for \"sparql\" format using Luxon\n */\nexport const datetimeRuleProcessorSPARQL: ValueProcessorByRule =\n getDatetimeRuleProcessorSPARQL(rqbDateTimeLibraryAPI);\n\nexport * from './rqbDateTimeLibraryAPI.luxon';\n"],"mappings":";;;;;AAIA,MAAM,cAAc,MAClB,OAAO,MAAM,WAAWA,MAAAA,SAAS,QAAQ,CAAC,IAAIA,MAAAA,SAAS,WAAW,CAAC;AACrE,MAAM,kBAAkB;;;;AAKxB,MAAa,wBAA+C;CAC1D,SAAS,GAAG,QAAQ,WAAW,CAAC,EAAE,SAAS,IAAI,QAAQ,cAAc,eAAe,CAAC;CACrF,UAAU,GAAG,MAAM,WAAW,CAAC,IAAI,WAAW,CAAC;CAC/C,WAAW,GAAG,MAAM,WAAW,CAAC,IAAI,WAAW,CAAC;CAChD,SAAS,GAAG,MACVC,oCAAAA,oBAAoB,CAAC,KAAKA,oCAAAA,oBAAoB,CAAC,IAC3C,WAAW,CAAC,EAAE,QAAQ,WAAW,CAAC,GAAG,KAAK,IAC1C,CAAC,WAAW,CAAC,MAAM,CAAC,WAAW,CAAC;CACtC,UAAS,MAAK,WAAW,CAAC,EAAE;CAC5B,SAAQ,MAAK,WAAW,CAAC,EAAE,SAAS;CACpC,cAAa,MAAK;EAChB,MAAM,UAAU,WAAW,CAAC;EAC5B,OAAO,QAAQ,UAAU,QAAQ,SAAS,EAAE,YAAY,IAAI;CAC9D;CACA,sBAAqB,MAAK;EACxB,MAAM,UAAU,WAAW,CAAC;EAC5B,OAAO,QAAQ,UAAU,QAAQ,SAAS,eAAe,IAAI;CAC/D;AACF;;;;;;ACFA,MAAa,8BACXC,oCAAAA,+BAA+B,qBAAqB;;;;AAKtD,MAAa,2BACXC,oCAAAA,4BAA4B,qBAAqB;;;;AAInD,MAAa,6BACXC,oCAAAA,8BAA8B,qBAAqB;;;;AAIrD,MAAa,8BACXC,oCAAAA,+BAA+B,qBAAqB;;;;AAItD,MAAa,8BACXC,oCAAAA,+BAA+B,qBAAqB;;;;AAItD,MAAa,+BACXC,oCAAAA,gCAAgC,qBAAqB;;;;AAIvD,MAAa,mCACXC,oCAAAA,oCAAoC,qBAAqB;;;;AAK3D,MAAa,2BACXC,oCAAAA,4BAA4B,qBAAqB;;;;AAKnD,MAAa,oCACXC,oCAAAA,qCAAqC,qBAAqB;;;;AAK5D,MAAa,0BACXC,oCAAAA,2BAA2B,qBAAqB;;;;AAKlD,MAAa,8BACXC,oCAAAA,+BAA+B,qBAAqB;;;;AAKtD,MAAa,8BACXC,oCAAAA,+BAA+B,qBAAqB"}
|
|
@@ -30,6 +30,19 @@ declare const getDatetimeJsonLogicOperations: ({
|
|
|
30
30
|
*/
|
|
31
31
|
declare const getDatetimeRuleProcessorCEL: (apiFns: RQBDateTimeLibraryAPI) => RuleProcessor;
|
|
32
32
|
//#endregion
|
|
33
|
+
//#region src/getDatetimeRuleProcessorCypher.d.ts
|
|
34
|
+
/**
|
|
35
|
+
* Generates a rule processor with date/time features for use by
|
|
36
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} with the "cypher" or "gql" format.
|
|
37
|
+
*
|
|
38
|
+
* Supports:
|
|
39
|
+
* - Standard comparison operators (`=`, `!=`, `<`, `>`, `<=`, `>=`)
|
|
40
|
+
* - Range operators (between, notBetween, in, notIn)
|
|
41
|
+
* - Duration math via custom operators: `olderThanDuration` and `withinDuration`
|
|
42
|
+
* (e.g., value `"P30D"` → `datetime() - field > duration('P30D')`)
|
|
43
|
+
*/
|
|
44
|
+
declare const getDatetimeRuleProcessorCypher: (apiFns: RQBDateTimeLibraryAPI) => RuleProcessor;
|
|
45
|
+
//#endregion
|
|
33
46
|
//#region src/getDatetimeRuleProcessorJSONata.d.ts
|
|
34
47
|
/**
|
|
35
48
|
* Generates a rule processor with date/time features for use by
|
|
@@ -57,6 +70,19 @@ declare const datetimeValueProcessorNL: ValueProcessorByRule;
|
|
|
57
70
|
*/
|
|
58
71
|
declare const getDatetimeRuleProcessorNL: (apiFns: RQBDateTimeLibraryAPI) => RuleProcessor;
|
|
59
72
|
//#endregion
|
|
73
|
+
//#region src/getDatetimeRuleProcessorSPARQL.d.ts
|
|
74
|
+
/**
|
|
75
|
+
* Generates a rule processor with date/time features for use by
|
|
76
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} with the "sparql" format.
|
|
77
|
+
*
|
|
78
|
+
* Supports:
|
|
79
|
+
* - Standard comparison operators (`=`, `!=`, `<`, `>`, `<=`, `>=`)
|
|
80
|
+
* - Range operators (between, notBetween, in, notIn)
|
|
81
|
+
* - Duration math via custom operators: `olderThanDuration` and `withinDuration`
|
|
82
|
+
* (e.g., value `"P30D"` → `NOW() - ?field > "P30D"^^xsd:duration`)
|
|
83
|
+
*/
|
|
84
|
+
declare const getDatetimeRuleProcessorSPARQL: (apiFns: RQBDateTimeLibraryAPI) => RuleProcessor;
|
|
85
|
+
//#endregion
|
|
60
86
|
//#region src/getDatetimeRuleProcessorSQL.d.ts
|
|
61
87
|
/**
|
|
62
88
|
* Generates a value processor with date/time features for use by
|
|
@@ -104,5 +130,5 @@ declare const getDatetimeValueProcessorPostgreSQL: ({
|
|
|
104
130
|
*/
|
|
105
131
|
declare const getDatetimeRuleProcessorSQL: (apiFns: RQBDateTimeLibraryAPI) => RuleProcessor;
|
|
106
132
|
//#endregion
|
|
107
|
-
export { IsDateField, IsDateFieldFunction, RQBDateTimeJsonLogic, RQBDateTimeLibraryAPI, RQBJsonLogicDateAfter, RQBJsonLogicDateBefore, RQBJsonLogicDateBetween, RQBJsonLogicDateIn, RQBJsonLogicDateNotBetween, RQBJsonLogicDateNotIn, RQBJsonLogicDateNotOn, RQBJsonLogicDateOn, RQBJsonLogicDateOnOrAfter, RQBJsonLogicDateOnOrBefore, RQBJsonLogicDateTimeOperations, datetimeRuleProcessorJsonLogic, datetimeValueProcessorNL, defaultDateTimeNLOperatorMap, getDatetimeJsonLogicOperations, getDatetimeRuleProcessorCEL, getDatetimeRuleProcessorJSONata, getDatetimeRuleProcessorMongoDBQuery, getDatetimeRuleProcessorNL, getDatetimeRuleProcessorSQL, getDatetimeValueProcessorANSI, getDatetimeValueProcessorMSSQL, getDatetimeValueProcessorMySQL, getDatetimeValueProcessorOracle, getDatetimeValueProcessorPostgreSQL };
|
|
133
|
+
export { IsDateField, IsDateFieldFunction, RQBDateTimeJsonLogic, RQBDateTimeLibraryAPI, RQBJsonLogicDateAfter, RQBJsonLogicDateBefore, RQBJsonLogicDateBetween, RQBJsonLogicDateIn, RQBJsonLogicDateNotBetween, RQBJsonLogicDateNotIn, RQBJsonLogicDateNotOn, RQBJsonLogicDateOn, RQBJsonLogicDateOnOrAfter, RQBJsonLogicDateOnOrBefore, RQBJsonLogicDateTimeOperations, datetimeRuleProcessorJsonLogic, datetimeValueProcessorNL, defaultDateTimeNLOperatorMap, getDatetimeJsonLogicOperations, getDatetimeRuleProcessorCEL, getDatetimeRuleProcessorCypher, getDatetimeRuleProcessorJSONata, getDatetimeRuleProcessorMongoDBQuery, getDatetimeRuleProcessorNL, getDatetimeRuleProcessorSPARQL, getDatetimeRuleProcessorSQL, getDatetimeValueProcessorANSI, getDatetimeValueProcessorMSSQL, getDatetimeValueProcessorMySQL, getDatetimeValueProcessorOracle, getDatetimeValueProcessorPostgreSQL };
|
|
108
134
|
//# sourceMappingURL=react-querybuilder_datetime.cjs.production.d.ts.map
|
|
@@ -48,6 +48,14 @@ declare const datetimeRuleProcessorMongoDBQuery: ValueProcessorByRule;
|
|
|
48
48
|
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "natural_language" format using date-fns
|
|
49
49
|
*/
|
|
50
50
|
declare const datetimeRuleProcessorNL: ValueProcessorByRule;
|
|
51
|
+
/**
|
|
52
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "cypher"/"gql" format using date-fns
|
|
53
|
+
*/
|
|
54
|
+
declare const datetimeRuleProcessorCypher: ValueProcessorByRule;
|
|
55
|
+
/**
|
|
56
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "sparql" format using date-fns
|
|
57
|
+
*/
|
|
58
|
+
declare const datetimeRuleProcessorSPARQL: ValueProcessorByRule;
|
|
51
59
|
//#endregion
|
|
52
|
-
export { datetimeRuleProcessorCEL, datetimeRuleProcessorMongoDBQuery, datetimeRuleProcessorNL, datetimeRuleProcessorSQL, datetimeValueProcessorANSI, datetimeValueProcessorMSSQL, datetimeValueProcessorMySQL, datetimeValueProcessorOracle, datetimeValueProcessorPostgreSQL, jsonLogicDateTimeOperations, rqbDateTimeLibraryAPI };
|
|
60
|
+
export { datetimeRuleProcessorCEL, datetimeRuleProcessorCypher, datetimeRuleProcessorMongoDBQuery, datetimeRuleProcessorNL, datetimeRuleProcessorSPARQL, datetimeRuleProcessorSQL, datetimeValueProcessorANSI, datetimeValueProcessorMSSQL, datetimeValueProcessorMySQL, datetimeValueProcessorOracle, datetimeValueProcessorPostgreSQL, jsonLogicDateTimeOperations, rqbDateTimeLibraryAPI };
|
|
53
61
|
//# sourceMappingURL=react-querybuilder_datetime.cjs.production.date-fns.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./getDatetimeRuleProcessorSQL-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./getDatetimeRuleProcessorSQL-BWQryLof.js`);require(`./react-querybuilder_datetime.cjs.production.dayjs.js`);let t=require(`date-fns`);const n=e=>typeof e==`string`?(0,t.parseISO)(e):(0,t.toDate)(e),r=`yyyy-MM-dd`,i={format:(e,i)=>(0,t.format)(n(e),i.replace(`YYYY-MM-DD`,r)),isAfter:t.isAfter,isBefore:t.isBefore,isSame:(r,i)=>{let a=n(r),o=n(i);return e.h(r)||e.h(i)?(0,t.isSameDay)(a,o):a.getTime()===o.getTime()},isValid:e=>(0,t.isValid)(n(e)),toDate:n,toISOString:e=>{let r=n(e);return(0,t.isValid)(r)?r.toISOString():``},toISOStringDateOnly:e=>{let i=n(e);return(0,t.isValid)(i)?(0,t.format)(i,r):``}},a=e.m(i),o=e.t(i),s=e.n(i),c=e.r(i),l=e.i(i),u=e.a(i),d=e.o(i),f=e.p(i),p=e.d(i),m=e.u(i),h=e.f(i),g=e.s(i);exports.datetimeRuleProcessorCEL=f,exports.datetimeRuleProcessorCypher=h,exports.datetimeRuleProcessorMongoDBQuery=p,exports.datetimeRuleProcessorNL=m,exports.datetimeRuleProcessorSPARQL=g,exports.datetimeRuleProcessorSQL=o,exports.datetimeValueProcessorANSI=s,exports.datetimeValueProcessorMSSQL=c,exports.datetimeValueProcessorMySQL=l,exports.datetimeValueProcessorOracle=u,exports.datetimeValueProcessorPostgreSQL=d,exports.jsonLogicDateTimeOperations=a,exports.rqbDateTimeLibraryAPI=i;
|
|
2
2
|
//# sourceMappingURL=react-querybuilder_datetime.cjs.production.date-fns.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react-querybuilder_datetime.cjs.production.date-fns.js","names":["isISOStringDateOnly","getDatetimeJsonLogicOperations","getDatetimeRuleProcessorSQL","getDatetimeValueProcessorANSI","getDatetimeValueProcessorMSSQL","getDatetimeValueProcessorMySQL","getDatetimeValueProcessorOracle","getDatetimeValueProcessorPostgreSQL","getDatetimeRuleProcessorCEL","getDatetimeRuleProcessorMongoDBQuery","getDatetimeRuleProcessorNL"],"sources":["../../src/rqbDateTimeLibraryAPI.date-fns.ts","../../src/index.date-fns.ts"],"sourcesContent":["import {\n toDate as dateFnsToDate,\n format,\n isAfter,\n isBefore,\n isSameDay,\n isValid,\n parseISO,\n} from 'date-fns';\nimport type { RQBDateTimeLibraryAPI } from './types';\nimport { isISOStringDateOnly } from './utils';\n\nconst toDate: typeof dateFnsToDate = a => (typeof a === 'string' ? parseISO(a) : dateFnsToDate(a));\nconst iso8601DateOnly = 'yyyy-MM-dd';\n\n/**\n * {@link RQBDateTimeLibraryAPI} for date-fns\n */\nexport const rqbDateTimeLibraryAPI: RQBDateTimeLibraryAPI = {\n format: (d, fmt) => format(toDate(d), fmt.replace('YYYY-MM-DD', iso8601DateOnly)),\n isAfter,\n isBefore,\n isSame: (a, b) => {\n const aToDate = toDate(a);\n const bToDate = toDate(b);\n return isISOStringDateOnly(a) || isISOStringDateOnly(b)\n ? isSameDay(aToDate, bToDate)\n : aToDate.getTime() === bToDate.getTime();\n },\n isValid: d => isValid(toDate(d)),\n toDate,\n toISOString: d => {\n const dToDate = toDate(d);\n return isValid(dToDate) ? dToDate.toISOString() : '';\n },\n toISOStringDateOnly: d => {\n const dToDate = toDate(d);\n return isValid(dToDate) ? format(dToDate, iso8601DateOnly) : '';\n },\n};\n","/**\n * Import from `\"@react-querybuilder/datetime/date-fns\"` for enhanced date/time support using [date-fns](https://date-fns.org/).\n *\n * @module date-fns\n */\n\nimport type { RuleProcessor, ValueProcessorByRule } from 'react-querybuilder';\nimport { getDatetimeJsonLogicOperations } from './getDatetimeJsonLogicOperations';\nimport { getDatetimeRuleProcessorCEL } from './getDatetimeRuleProcessorCEL';\nimport { getDatetimeRuleProcessorMongoDBQuery } from './getDatetimeRuleProcessorMongoDBQuery';\nimport { getDatetimeRuleProcessorNL } from './getDatetimeRuleProcessorNL';\nimport {\n getDatetimeRuleProcessorSQL,\n getDatetimeValueProcessorANSI,\n getDatetimeValueProcessorMSSQL,\n getDatetimeValueProcessorMySQL,\n getDatetimeValueProcessorOracle,\n getDatetimeValueProcessorPostgreSQL,\n} from './getDatetimeRuleProcessorSQL';\nimport { rqbDateTimeLibraryAPI } from './rqbDateTimeLibraryAPI.date-fns';\nimport type { RQBJsonLogicDateTimeOperations } from './types';\n\n/**\n * Custom JsonLogic date/time operations using date-fns\n */\nexport const jsonLogicDateTimeOperations: RQBJsonLogicDateTimeOperations =\n getDatetimeJsonLogicOperations(rqbDateTimeLibraryAPI);\n\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for \"sql\" format using date-fns\n */\nexport const datetimeRuleProcessorSQL: RuleProcessor =\n getDatetimeRuleProcessorSQL(rqbDateTimeLibraryAPI);\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} value processor for \"sql\" format (\"ansi\" preset) using date-fns\n */\nexport const datetimeValueProcessorANSI: ValueProcessorByRule =\n getDatetimeValueProcessorANSI(rqbDateTimeLibraryAPI);\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} value processor for \"sql\" format (\"mssql\" preset) using date-fns\n */\nexport const datetimeValueProcessorMSSQL: ValueProcessorByRule =\n getDatetimeValueProcessorMSSQL(rqbDateTimeLibraryAPI);\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} value processor for \"sql\" format (\"mysql\" preset) using date-fns\n */\nexport const datetimeValueProcessorMySQL: ValueProcessorByRule =\n getDatetimeValueProcessorMySQL(rqbDateTimeLibraryAPI);\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} value processor for \"sql\" format (\"oracle\" preset) using date-fns\n */\nexport const datetimeValueProcessorOracle: ValueProcessorByRule =\n getDatetimeValueProcessorOracle(rqbDateTimeLibraryAPI);\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} value processor for \"sql\" format (\"postgresql\" preset) using date-fns\n */\nexport const datetimeValueProcessorPostgreSQL: ValueProcessorByRule =\n getDatetimeValueProcessorPostgreSQL(rqbDateTimeLibraryAPI);\n\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for \"cel\" format using date-fns\n */\nexport const datetimeRuleProcessorCEL: ValueProcessorByRule =\n getDatetimeRuleProcessorCEL(rqbDateTimeLibraryAPI);\n\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for \"mongodb_query\" format using date-fns\n */\nexport const datetimeRuleProcessorMongoDBQuery: ValueProcessorByRule =\n getDatetimeRuleProcessorMongoDBQuery(rqbDateTimeLibraryAPI);\n\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for \"natural_language\" format using date-fns\n */\nexport const datetimeRuleProcessorNL: ValueProcessorByRule =\n getDatetimeRuleProcessorNL(rqbDateTimeLibraryAPI);\n\nexport * from './rqbDateTimeLibraryAPI.date-fns';\n"],"mappings":"2NAYA,MAAM,EAA+B,GAAM,OAAO,GAAM,UAAA,EAAA,EAAA,UAAoB,
|
|
1
|
+
{"version":3,"file":"react-querybuilder_datetime.cjs.production.date-fns.js","names":["isISOStringDateOnly","getDatetimeJsonLogicOperations","getDatetimeRuleProcessorSQL","getDatetimeValueProcessorANSI","getDatetimeValueProcessorMSSQL","getDatetimeValueProcessorMySQL","getDatetimeValueProcessorOracle","getDatetimeValueProcessorPostgreSQL","getDatetimeRuleProcessorCEL","getDatetimeRuleProcessorMongoDBQuery","getDatetimeRuleProcessorNL","getDatetimeRuleProcessorCypher","getDatetimeRuleProcessorSPARQL"],"sources":["../../src/rqbDateTimeLibraryAPI.date-fns.ts","../../src/index.date-fns.ts"],"sourcesContent":["import {\n toDate as dateFnsToDate,\n format,\n isAfter,\n isBefore,\n isSameDay,\n isValid,\n parseISO,\n} from 'date-fns';\nimport type { RQBDateTimeLibraryAPI } from './types';\nimport { isISOStringDateOnly } from './utils';\n\nconst toDate: typeof dateFnsToDate = a => (typeof a === 'string' ? parseISO(a) : dateFnsToDate(a));\nconst iso8601DateOnly = 'yyyy-MM-dd';\n\n/**\n * {@link RQBDateTimeLibraryAPI} for date-fns\n */\nexport const rqbDateTimeLibraryAPI: RQBDateTimeLibraryAPI = {\n format: (d, fmt) => format(toDate(d), fmt.replace('YYYY-MM-DD', iso8601DateOnly)),\n isAfter,\n isBefore,\n isSame: (a, b) => {\n const aToDate = toDate(a);\n const bToDate = toDate(b);\n return isISOStringDateOnly(a) || isISOStringDateOnly(b)\n ? isSameDay(aToDate, bToDate)\n : aToDate.getTime() === bToDate.getTime();\n },\n isValid: d => isValid(toDate(d)),\n toDate,\n toISOString: d => {\n const dToDate = toDate(d);\n return isValid(dToDate) ? dToDate.toISOString() : '';\n },\n toISOStringDateOnly: d => {\n const dToDate = toDate(d);\n return isValid(dToDate) ? format(dToDate, iso8601DateOnly) : '';\n },\n};\n","/**\n * Import from `\"@react-querybuilder/datetime/date-fns\"` for enhanced date/time support using [date-fns](https://date-fns.org/).\n *\n * @module date-fns\n */\n\nimport type { RuleProcessor, ValueProcessorByRule } from 'react-querybuilder';\nimport { getDatetimeJsonLogicOperations } from './getDatetimeJsonLogicOperations';\nimport { getDatetimeRuleProcessorCEL } from './getDatetimeRuleProcessorCEL';\nimport { getDatetimeRuleProcessorCypher } from './getDatetimeRuleProcessorCypher';\nimport { getDatetimeRuleProcessorMongoDBQuery } from './getDatetimeRuleProcessorMongoDBQuery';\nimport { getDatetimeRuleProcessorNL } from './getDatetimeRuleProcessorNL';\nimport { getDatetimeRuleProcessorSPARQL } from './getDatetimeRuleProcessorSPARQL';\nimport {\n getDatetimeRuleProcessorSQL,\n getDatetimeValueProcessorANSI,\n getDatetimeValueProcessorMSSQL,\n getDatetimeValueProcessorMySQL,\n getDatetimeValueProcessorOracle,\n getDatetimeValueProcessorPostgreSQL,\n} from './getDatetimeRuleProcessorSQL';\nimport { rqbDateTimeLibraryAPI } from './rqbDateTimeLibraryAPI.date-fns';\nimport type { RQBJsonLogicDateTimeOperations } from './types';\n\n/**\n * Custom JsonLogic date/time operations using date-fns\n */\nexport const jsonLogicDateTimeOperations: RQBJsonLogicDateTimeOperations =\n getDatetimeJsonLogicOperations(rqbDateTimeLibraryAPI);\n\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for \"sql\" format using date-fns\n */\nexport const datetimeRuleProcessorSQL: RuleProcessor =\n getDatetimeRuleProcessorSQL(rqbDateTimeLibraryAPI);\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} value processor for \"sql\" format (\"ansi\" preset) using date-fns\n */\nexport const datetimeValueProcessorANSI: ValueProcessorByRule =\n getDatetimeValueProcessorANSI(rqbDateTimeLibraryAPI);\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} value processor for \"sql\" format (\"mssql\" preset) using date-fns\n */\nexport const datetimeValueProcessorMSSQL: ValueProcessorByRule =\n getDatetimeValueProcessorMSSQL(rqbDateTimeLibraryAPI);\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} value processor for \"sql\" format (\"mysql\" preset) using date-fns\n */\nexport const datetimeValueProcessorMySQL: ValueProcessorByRule =\n getDatetimeValueProcessorMySQL(rqbDateTimeLibraryAPI);\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} value processor for \"sql\" format (\"oracle\" preset) using date-fns\n */\nexport const datetimeValueProcessorOracle: ValueProcessorByRule =\n getDatetimeValueProcessorOracle(rqbDateTimeLibraryAPI);\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} value processor for \"sql\" format (\"postgresql\" preset) using date-fns\n */\nexport const datetimeValueProcessorPostgreSQL: ValueProcessorByRule =\n getDatetimeValueProcessorPostgreSQL(rqbDateTimeLibraryAPI);\n\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for \"cel\" format using date-fns\n */\nexport const datetimeRuleProcessorCEL: ValueProcessorByRule =\n getDatetimeRuleProcessorCEL(rqbDateTimeLibraryAPI);\n\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for \"mongodb_query\" format using date-fns\n */\nexport const datetimeRuleProcessorMongoDBQuery: ValueProcessorByRule =\n getDatetimeRuleProcessorMongoDBQuery(rqbDateTimeLibraryAPI);\n\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for \"natural_language\" format using date-fns\n */\nexport const datetimeRuleProcessorNL: ValueProcessorByRule =\n getDatetimeRuleProcessorNL(rqbDateTimeLibraryAPI);\n\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for \"cypher\"/\"gql\" format using date-fns\n */\nexport const datetimeRuleProcessorCypher: ValueProcessorByRule =\n getDatetimeRuleProcessorCypher(rqbDateTimeLibraryAPI);\n\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for \"sparql\" format using date-fns\n */\nexport const datetimeRuleProcessorSPARQL: ValueProcessorByRule =\n getDatetimeRuleProcessorSPARQL(rqbDateTimeLibraryAPI);\n\nexport * from './rqbDateTimeLibraryAPI.date-fns';\n"],"mappings":"2NAYA,MAAM,EAA+B,GAAM,OAAO,GAAM,UAAA,EAAA,EAAA,UAAoB,CAAC,GAAA,EAAA,EAAA,QAAkB,CAAC,EAC1F,EAAkB,aAKX,EAA+C,CAC1D,QAAS,EAAG,KAAA,EAAA,EAAA,QAAe,EAAO,CAAC,EAAG,EAAI,QAAQ,aAAc,CAAe,CAAC,EAChF,QAAA,EAAA,QACA,SAAA,EAAA,SACA,QAAS,EAAG,IAAM,CAChB,IAAM,EAAU,EAAO,CAAC,EAClB,EAAU,EAAO,CAAC,EACxB,OAAOA,EAAAA,EAAoB,CAAC,GAAKA,EAAAA,EAAoB,CAAC,GAAA,EAAA,EAAA,WACxC,EAAS,CAAO,EAC1B,EAAQ,QAAQ,IAAM,EAAQ,QAAQ,CAC5C,EACA,QAAS,IAAA,EAAA,EAAA,SAAa,EAAO,CAAC,CAAC,EAC/B,SACA,YAAa,GAAK,CAChB,IAAM,EAAU,EAAO,CAAC,EACxB,OAAA,EAAA,EAAA,SAAe,CAAO,EAAI,EAAQ,YAAY,EAAI,EACpD,EACA,oBAAqB,GAAK,CACxB,IAAM,EAAU,EAAO,CAAC,EACxB,OAAA,EAAA,EAAA,SAAe,CAAO,GAAA,EAAA,EAAA,QAAW,EAAS,CAAe,EAAI,EAC/D,CACF,ECZa,EACXC,EAAAA,EAA+B,CAAqB,EAKzC,EACXC,EAAAA,EAA4B,CAAqB,EAItC,EACXC,EAAAA,EAA8B,CAAqB,EAIxC,EACXC,EAAAA,EAA+B,CAAqB,EAIzC,EACXC,EAAAA,EAA+B,CAAqB,EAIzC,EACXC,EAAAA,EAAgC,CAAqB,EAI1C,EACXC,EAAAA,EAAoC,CAAqB,EAK9C,EACXC,EAAAA,EAA4B,CAAqB,EAKtC,EACXC,EAAAA,EAAqC,CAAqB,EAK/C,EACXC,EAAAA,EAA2B,CAAqB,EAKrC,EACXC,EAAAA,EAA+B,CAAqB,EAKzC,EACXC,EAAAA,EAA+B,CAAqB"}
|
|
@@ -48,6 +48,14 @@ declare const datetimeRuleProcessorMongoDBQuery: ValueProcessorByRule;
|
|
|
48
48
|
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "natural_language" format using Day.js
|
|
49
49
|
*/
|
|
50
50
|
declare const datetimeRuleProcessorNL: ValueProcessorByRule;
|
|
51
|
+
/**
|
|
52
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "cypher"/"gql" format using Day.js
|
|
53
|
+
*/
|
|
54
|
+
declare const datetimeRuleProcessorCypher: ValueProcessorByRule;
|
|
55
|
+
/**
|
|
56
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "sparql" format using Day.js
|
|
57
|
+
*/
|
|
58
|
+
declare const datetimeRuleProcessorSPARQL: ValueProcessorByRule;
|
|
51
59
|
//#endregion
|
|
52
|
-
export { datetimeRuleProcessorCEL, datetimeRuleProcessorMongoDBQuery, datetimeRuleProcessorNL, datetimeRuleProcessorSQL, datetimeValueProcessorANSI, datetimeValueProcessorMSSQL, datetimeValueProcessorMySQL, datetimeValueProcessorOracle, datetimeValueProcessorPostgreSQL, jsonLogicDateTimeOperations, rqbDateTimeLibraryAPI };
|
|
60
|
+
export { datetimeRuleProcessorCEL, datetimeRuleProcessorCypher, datetimeRuleProcessorMongoDBQuery, datetimeRuleProcessorNL, datetimeRuleProcessorSPARQL, datetimeRuleProcessorSQL, datetimeValueProcessorANSI, datetimeValueProcessorMSSQL, datetimeValueProcessorMySQL, datetimeValueProcessorOracle, datetimeValueProcessorPostgreSQL, jsonLogicDateTimeOperations, rqbDateTimeLibraryAPI };
|
|
53
61
|
//# sourceMappingURL=react-querybuilder_datetime.cjs.production.dayjs.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},s=(n,r,a)=>(a=n==null?{}:e(i(n)),o(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));const c=require(`./getDatetimeRuleProcessorSQL-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},s=(n,r,a)=>(a=n==null?{}:e(i(n)),o(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));const c=require(`./getDatetimeRuleProcessorSQL-BWQryLof.js`);let l=require(`dayjs`);l=s(l);const u={format:(e,t)=>(0,l.default)(e).format(t),isAfter:(e,t)=>(0,l.default)(e).isAfter(t),isBefore:(e,t)=>(0,l.default)(e).isBefore(t),isSame:(e,t)=>(0,l.default)(e).isSame(t,c.h(e)||c.h(t)?`d`:`ms`),isValid:e=>(0,l.default)(e).isValid(),toDate:e=>(0,l.default)(e).toDate(),toISOString:e=>{let t=(0,l.default)(e);return t.isValid()?t.toISOString():``},toISOStringDateOnly:e=>{let t=(0,l.default)(e);return t.isValid()?t.format(`YYYY-MM-DD`):``}},d=c.m(u),f=c.t(u),p=c.n(u),m=c.r(u),h=c.i(u),g=c.a(u),_=c.o(u),v=c.p(u),y=c.d(u),b=c.u(u),x=c.f(u),S=c.s(u);exports.datetimeRuleProcessorCEL=v,exports.datetimeRuleProcessorCypher=x,exports.datetimeRuleProcessorMongoDBQuery=y,exports.datetimeRuleProcessorNL=b,exports.datetimeRuleProcessorSPARQL=S,exports.datetimeRuleProcessorSQL=f,exports.datetimeValueProcessorANSI=p,exports.datetimeValueProcessorMSSQL=m,exports.datetimeValueProcessorMySQL=h,exports.datetimeValueProcessorOracle=g,exports.datetimeValueProcessorPostgreSQL=_,exports.jsonLogicDateTimeOperations=d,exports.rqbDateTimeLibraryAPI=u,exports.t=s;
|
|
2
2
|
//# sourceMappingURL=react-querybuilder_datetime.cjs.production.dayjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react-querybuilder_datetime.cjs.production.dayjs.js","names":["isISOStringDateOnly","getDatetimeJsonLogicOperations","getDatetimeRuleProcessorSQL","getDatetimeValueProcessorANSI","getDatetimeValueProcessorMSSQL","getDatetimeValueProcessorMySQL","getDatetimeValueProcessorOracle","getDatetimeValueProcessorPostgreSQL","getDatetimeRuleProcessorCEL","getDatetimeRuleProcessorMongoDBQuery","getDatetimeRuleProcessorNL"],"sources":["../../src/rqbDateTimeLibraryAPI.dayjs.ts","../../src/index.dayjs.ts"],"sourcesContent":["import dayjs from 'dayjs';\nimport type { RQBDateTimeLibraryAPI } from './types';\nimport { isISOStringDateOnly } from './utils';\n\n/**\n * {@link RQBDateTimeLibraryAPI} for Day.js\n */\nexport const rqbDateTimeLibraryAPI: RQBDateTimeLibraryAPI = {\n format: (d, fmt) => dayjs(d).format(fmt),\n isAfter: (a, b) => dayjs(a).isAfter(b),\n isBefore: (a, b) => dayjs(a).isBefore(b),\n isSame: (a, b) =>\n dayjs(a).isSame(b, isISOStringDateOnly(a) || isISOStringDateOnly(b) ? 'd' : 'ms'),\n isValid: d => dayjs(d).isValid(),\n toDate: d => dayjs(d).toDate(),\n toISOString: d => {\n const dToDate = dayjs(d);\n return dToDate.isValid() ? dToDate.toISOString() : '';\n },\n toISOStringDateOnly: d => {\n const dToDate = dayjs(d);\n return dToDate.isValid() ? dToDate.format('YYYY-MM-DD') : '';\n },\n};\n","/**\n * Import from `\"@react-querybuilder/datetime/dayjs\"` for enhanced date/time support using [Day.js](https://day.js.org/).\n *\n * @module dayjs\n */\n\nimport type { RuleProcessor, ValueProcessorByRule } from 'react-querybuilder';\nimport { getDatetimeJsonLogicOperations } from './getDatetimeJsonLogicOperations';\nimport { getDatetimeRuleProcessorCEL } from './getDatetimeRuleProcessorCEL';\nimport { getDatetimeRuleProcessorMongoDBQuery } from './getDatetimeRuleProcessorMongoDBQuery';\nimport { getDatetimeRuleProcessorNL } from './getDatetimeRuleProcessorNL';\nimport {\n getDatetimeRuleProcessorSQL,\n getDatetimeValueProcessorANSI,\n getDatetimeValueProcessorMSSQL,\n getDatetimeValueProcessorMySQL,\n getDatetimeValueProcessorOracle,\n getDatetimeValueProcessorPostgreSQL,\n} from './getDatetimeRuleProcessorSQL';\nimport { rqbDateTimeLibraryAPI } from './rqbDateTimeLibraryAPI.dayjs';\nimport type { RQBJsonLogicDateTimeOperations } from './types';\n\n/**\n * Custom JsonLogic date/time operations using Day.js\n */\nexport const jsonLogicDateTimeOperations: RQBJsonLogicDateTimeOperations =\n getDatetimeJsonLogicOperations(rqbDateTimeLibraryAPI);\n\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for \"sql\" format using Day.js\n */\nexport const datetimeRuleProcessorSQL: RuleProcessor =\n getDatetimeRuleProcessorSQL(rqbDateTimeLibraryAPI);\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} value processor for \"sql\" format (\"ansi\" preset) using Day.js\n */\nexport const datetimeValueProcessorANSI: ValueProcessorByRule =\n getDatetimeValueProcessorANSI(rqbDateTimeLibraryAPI);\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} value processor for \"sql\" format (\"mssql\" preset) using Day.js\n */\nexport const datetimeValueProcessorMSSQL: ValueProcessorByRule =\n getDatetimeValueProcessorMSSQL(rqbDateTimeLibraryAPI);\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} value processor for \"sql\" format (\"mysql\" preset) using Day.js\n */\nexport const datetimeValueProcessorMySQL: ValueProcessorByRule =\n getDatetimeValueProcessorMySQL(rqbDateTimeLibraryAPI);\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} value processor for \"sql\" format (\"oracle\" preset) using Day.js\n */\nexport const datetimeValueProcessorOracle: ValueProcessorByRule =\n getDatetimeValueProcessorOracle(rqbDateTimeLibraryAPI);\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} value processor for \"sql\" format (\"postgresql\" preset) using Day.js\n */\nexport const datetimeValueProcessorPostgreSQL: ValueProcessorByRule =\n getDatetimeValueProcessorPostgreSQL(rqbDateTimeLibraryAPI);\n\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for \"cel\" format using Day.js\n */\nexport const datetimeRuleProcessorCEL: ValueProcessorByRule =\n getDatetimeRuleProcessorCEL(rqbDateTimeLibraryAPI);\n\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for \"mongodb_query\" format using Day.js\n */\nexport const datetimeRuleProcessorMongoDBQuery: ValueProcessorByRule =\n getDatetimeRuleProcessorMongoDBQuery(rqbDateTimeLibraryAPI);\n\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for \"natural_language\" format using Day.js\n */\nexport const datetimeRuleProcessorNL: ValueProcessorByRule =\n getDatetimeRuleProcessorNL(rqbDateTimeLibraryAPI);\n\nexport * from './rqbDateTimeLibraryAPI.dayjs';\n"],"mappings":"4nBAOA,MAAa,EAA+C,CAC1D,QAAS,EAAG,KAAA,EAAA,EAAA,SAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"react-querybuilder_datetime.cjs.production.dayjs.js","names":["isISOStringDateOnly","getDatetimeJsonLogicOperations","getDatetimeRuleProcessorSQL","getDatetimeValueProcessorANSI","getDatetimeValueProcessorMSSQL","getDatetimeValueProcessorMySQL","getDatetimeValueProcessorOracle","getDatetimeValueProcessorPostgreSQL","getDatetimeRuleProcessorCEL","getDatetimeRuleProcessorMongoDBQuery","getDatetimeRuleProcessorNL","getDatetimeRuleProcessorCypher","getDatetimeRuleProcessorSPARQL"],"sources":["../../src/rqbDateTimeLibraryAPI.dayjs.ts","../../src/index.dayjs.ts"],"sourcesContent":["import dayjs from 'dayjs';\nimport type { RQBDateTimeLibraryAPI } from './types';\nimport { isISOStringDateOnly } from './utils';\n\n/**\n * {@link RQBDateTimeLibraryAPI} for Day.js\n */\nexport const rqbDateTimeLibraryAPI: RQBDateTimeLibraryAPI = {\n format: (d, fmt) => dayjs(d).format(fmt),\n isAfter: (a, b) => dayjs(a).isAfter(b),\n isBefore: (a, b) => dayjs(a).isBefore(b),\n isSame: (a, b) =>\n dayjs(a).isSame(b, isISOStringDateOnly(a) || isISOStringDateOnly(b) ? 'd' : 'ms'),\n isValid: d => dayjs(d).isValid(),\n toDate: d => dayjs(d).toDate(),\n toISOString: d => {\n const dToDate = dayjs(d);\n return dToDate.isValid() ? dToDate.toISOString() : '';\n },\n toISOStringDateOnly: d => {\n const dToDate = dayjs(d);\n return dToDate.isValid() ? dToDate.format('YYYY-MM-DD') : '';\n },\n};\n","/**\n * Import from `\"@react-querybuilder/datetime/dayjs\"` for enhanced date/time support using [Day.js](https://day.js.org/).\n *\n * @module dayjs\n */\n\nimport type { RuleProcessor, ValueProcessorByRule } from 'react-querybuilder';\nimport { getDatetimeJsonLogicOperations } from './getDatetimeJsonLogicOperations';\nimport { getDatetimeRuleProcessorCEL } from './getDatetimeRuleProcessorCEL';\nimport { getDatetimeRuleProcessorCypher } from './getDatetimeRuleProcessorCypher';\nimport { getDatetimeRuleProcessorMongoDBQuery } from './getDatetimeRuleProcessorMongoDBQuery';\nimport { getDatetimeRuleProcessorNL } from './getDatetimeRuleProcessorNL';\nimport { getDatetimeRuleProcessorSPARQL } from './getDatetimeRuleProcessorSPARQL';\nimport {\n getDatetimeRuleProcessorSQL,\n getDatetimeValueProcessorANSI,\n getDatetimeValueProcessorMSSQL,\n getDatetimeValueProcessorMySQL,\n getDatetimeValueProcessorOracle,\n getDatetimeValueProcessorPostgreSQL,\n} from './getDatetimeRuleProcessorSQL';\nimport { rqbDateTimeLibraryAPI } from './rqbDateTimeLibraryAPI.dayjs';\nimport type { RQBJsonLogicDateTimeOperations } from './types';\n\n/**\n * Custom JsonLogic date/time operations using Day.js\n */\nexport const jsonLogicDateTimeOperations: RQBJsonLogicDateTimeOperations =\n getDatetimeJsonLogicOperations(rqbDateTimeLibraryAPI);\n\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for \"sql\" format using Day.js\n */\nexport const datetimeRuleProcessorSQL: RuleProcessor =\n getDatetimeRuleProcessorSQL(rqbDateTimeLibraryAPI);\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} value processor for \"sql\" format (\"ansi\" preset) using Day.js\n */\nexport const datetimeValueProcessorANSI: ValueProcessorByRule =\n getDatetimeValueProcessorANSI(rqbDateTimeLibraryAPI);\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} value processor for \"sql\" format (\"mssql\" preset) using Day.js\n */\nexport const datetimeValueProcessorMSSQL: ValueProcessorByRule =\n getDatetimeValueProcessorMSSQL(rqbDateTimeLibraryAPI);\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} value processor for \"sql\" format (\"mysql\" preset) using Day.js\n */\nexport const datetimeValueProcessorMySQL: ValueProcessorByRule =\n getDatetimeValueProcessorMySQL(rqbDateTimeLibraryAPI);\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} value processor for \"sql\" format (\"oracle\" preset) using Day.js\n */\nexport const datetimeValueProcessorOracle: ValueProcessorByRule =\n getDatetimeValueProcessorOracle(rqbDateTimeLibraryAPI);\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} value processor for \"sql\" format (\"postgresql\" preset) using Day.js\n */\nexport const datetimeValueProcessorPostgreSQL: ValueProcessorByRule =\n getDatetimeValueProcessorPostgreSQL(rqbDateTimeLibraryAPI);\n\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for \"cel\" format using Day.js\n */\nexport const datetimeRuleProcessorCEL: ValueProcessorByRule =\n getDatetimeRuleProcessorCEL(rqbDateTimeLibraryAPI);\n\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for \"mongodb_query\" format using Day.js\n */\nexport const datetimeRuleProcessorMongoDBQuery: ValueProcessorByRule =\n getDatetimeRuleProcessorMongoDBQuery(rqbDateTimeLibraryAPI);\n\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for \"natural_language\" format using Day.js\n */\nexport const datetimeRuleProcessorNL: ValueProcessorByRule =\n getDatetimeRuleProcessorNL(rqbDateTimeLibraryAPI);\n\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for \"cypher\"/\"gql\" format using Day.js\n */\nexport const datetimeRuleProcessorCypher: ValueProcessorByRule =\n getDatetimeRuleProcessorCypher(rqbDateTimeLibraryAPI);\n\n/**\n * {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for \"sparql\" format using Day.js\n */\nexport const datetimeRuleProcessorSPARQL: ValueProcessorByRule =\n getDatetimeRuleProcessorSPARQL(rqbDateTimeLibraryAPI);\n\nexport * from './rqbDateTimeLibraryAPI.dayjs';\n"],"mappings":"4nBAOA,MAAa,EAA+C,CAC1D,QAAS,EAAG,KAAA,EAAA,EAAA,SAAc,CAAC,EAAE,OAAO,CAAG,EACvC,SAAU,EAAG,KAAA,EAAA,EAAA,SAAY,CAAC,EAAE,QAAQ,CAAC,EACrC,UAAW,EAAG,KAAA,EAAA,EAAA,SAAY,CAAC,EAAE,SAAS,CAAC,EACvC,QAAS,EAAG,KAAA,EAAA,EAAA,SACJ,CAAC,EAAE,OAAO,EAAGA,EAAAA,EAAoB,CAAC,GAAKA,EAAAA,EAAoB,CAAC,EAAI,IAAM,IAAI,EAClF,QAAS,IAAA,EAAA,EAAA,SAAW,CAAC,EAAE,QAAQ,EAC/B,OAAQ,IAAA,EAAA,EAAA,SAAW,CAAC,EAAE,OAAO,EAC7B,YAAa,GAAK,CAChB,IAAM,GAAA,EAAA,EAAA,SAAgB,CAAC,EACvB,OAAO,EAAQ,QAAQ,EAAI,EAAQ,YAAY,EAAI,EACrD,EACA,oBAAqB,GAAK,CACxB,IAAM,GAAA,EAAA,EAAA,SAAgB,CAAC,EACvB,OAAO,EAAQ,QAAQ,EAAI,EAAQ,OAAO,YAAY,EAAI,EAC5D,CACF,ECIa,EACXC,EAAAA,EAA+B,CAAqB,EAKzC,EACXC,EAAAA,EAA4B,CAAqB,EAItC,EACXC,EAAAA,EAA8B,CAAqB,EAIxC,EACXC,EAAAA,EAA+B,CAAqB,EAIzC,EACXC,EAAAA,EAA+B,CAAqB,EAIzC,EACXC,EAAAA,EAAgC,CAAqB,EAI1C,EACXC,EAAAA,EAAoC,CAAqB,EAK9C,EACXC,EAAAA,EAA4B,CAAqB,EAKtC,EACXC,EAAAA,EAAqC,CAAqB,EAK/C,EACXC,EAAAA,EAA2B,CAAqB,EAKrC,EACXC,EAAAA,EAA+B,CAAqB,EAKzC,EACXC,EAAAA,EAA+B,CAAqB"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./getDatetimeRuleProcessorSQL-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./getDatetimeRuleProcessorSQL-BWQryLof.js`);require(`./react-querybuilder_datetime.cjs.production.dayjs.js`);let t=require(`react-querybuilder`);const n={"!=":`dateNotOn`,"<":`dateBefore`,"<=":`dateOnOrBefore`,"=":`dateOn`,">":`dateAfter`,">=":`dateOnOrAfter`,between:`dateBetween`,in:`dateIn`,notBetween:`dateNotBetween`,notIn:`dateNotIn`},r=(r,i)=>{let a=i??{};if(!e.g(a.context?.isDateField,r,a))return(0,t.defaultRuleProcessorJsonLogic)(r,a);let{field:o,operator:s,value:c,valueSource:l}=r,u=l===`field`,d={var:o},f=e=>u?{var:`${e}`}:e;switch(s){case`<`:case`<=`:case`=`:case`!=`:case`>`:case`>=`:return{[n[s]]:[d,f(c)]};case`in`:case`notIn`:{let e=(0,t.toArray)(c).map(e=>f(e));return{[n[s]]:[d,e]}}case`between`:case`notBetween`:{let e=(0,t.toArray)(c).map(e=>f(e));return e.length<2?!1:{[n[s]]:[e[0],d,e[1]]}}}return(0,t.defaultRuleProcessorJsonLogic)(r,i)},i=e=>/^(does)?not/i.test(e),a=(e,t)=>t?`$not(${e})`:`${e}`,o=n=>(r,o)=>{let s=o??{},{context:c={}}=s,{quoteFieldNamesWith:l=[``,``],fieldIdentifierSeparator:u=``}=s,{field:d,operator:f,value:p,valueSource:m}=r;if(!e.g(c.isDateField,r,s))return(0,t.defaultRuleProcessorJSONata)(r,s);let h=m===`field`,g=e=>`$toMillis(${(0,t.getQuotedFieldName)(e,{quoteFieldNamesWith:l,fieldIdentifierSeparator:u})})`,_=e=>`$toMillis("${n.toISOString(e)}")`;switch(f){case`<`:case`<=`:case`=`:case`!=`:case`>`:case`>=`:return`${g(d)} ${f} ${h?g(p):_(p)}`}let v=(0,t.toArray)(r.value,{retainEmptyStrings:!1}),y=v.map(e=>n.toDate(e)).filter(e=>n.isValid(e));switch(f){case`in`:case`notIn`:return h?v.length===0?``:a(`${g(d)} in [${v.map(e=>g(e)).join(`, `)}]`,i(f)):y.length===0?``:a(`${g(d)} in [${y.map(e=>_(e)).join(`, `)}]`,i(f));case`between`:case`notBetween`:{if(v.length<2||(0,t.nullOrUndefinedOrEmpty)(v[0])||(0,t.nullOrUndefinedOrEmpty)(v[1])||!h&&y.length<2)return``;if(h){let[e,t]=v,n=`${g(d)} >= ${g(e)} and ${g(d)} <= ${g(t)}`;return f===`between`?`(${n})`:a(n,!0)}let[e,r]=y,[i,o]=n.isBefore(e,r)?[e,r]:[r,e],s=`${g(d)} >= ${_(i)} and ${g(d)} <= ${_(o)}`;return f===`between`?`(${s})`:a(s,!0)}}return(0,t.defaultRuleProcessorJSONata)(r,s)};exports.datetimeRuleProcessorJsonLogic=r,exports.datetimeValueProcessorNL=e.c,exports.defaultDateTimeNLOperatorMap=e.l,exports.getDatetimeJsonLogicOperations=e.m,exports.getDatetimeRuleProcessorCEL=e.p,exports.getDatetimeRuleProcessorCypher=e.f,exports.getDatetimeRuleProcessorJSONata=o,exports.getDatetimeRuleProcessorMongoDBQuery=e.d,exports.getDatetimeRuleProcessorNL=e.u,exports.getDatetimeRuleProcessorSPARQL=e.s,exports.getDatetimeRuleProcessorSQL=e.t,exports.getDatetimeValueProcessorANSI=e.n,exports.getDatetimeValueProcessorMSSQL=e.r,exports.getDatetimeValueProcessorMySQL=e.i,exports.getDatetimeValueProcessorOracle=e.a,exports.getDatetimeValueProcessorPostgreSQL=e.o;
|
|
2
2
|
//# sourceMappingURL=react-querybuilder_datetime.cjs.production.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react-querybuilder_datetime.cjs.production.js","names":["processIsDateField","processIsDateField"],"sources":["../../src/datetimeRuleProcessorJsonLogic.ts","../../src/getDatetimeRuleProcessorJSONata.ts"],"sourcesContent":["import type { DefaultOperatorName, JsonLogicVar, RuleProcessor } from 'react-querybuilder';\nimport { defaultRuleProcessorJsonLogic, toArray } from 'react-querybuilder';\nimport type { RQBDateTimeJsonLogic } from './types';\nimport { processIsDateField } from './utils';\n\nconst dateOperationMap = {\n '!=': 'dateNotOn',\n '<': 'dateBefore',\n '<=': 'dateOnOrBefore',\n '=': 'dateOn',\n '>': 'dateAfter',\n '>=': 'dateOnOrAfter',\n between: 'dateBetween',\n in: 'dateIn',\n notBetween: 'dateNotBetween',\n notIn: 'dateNotIn',\n} as const satisfies Partial<Record<DefaultOperatorName, string>>;\n\n/**\n * Date/time rule processor for use by {@link @react-querybuilder/core!formatQuery formatQuery}\n * with the \"jsonlogic\" format.\n *\n * Note: Unlike other date/time rule processors from this library, this function does\n * not require a date/time library API. Instead, the date/time library API is used by\n * {@link getDatetimeJsonLogicOperations} during the evaluation process.\n */\nexport const datetimeRuleProcessorJsonLogic: RuleProcessor = (\n rule,\n options\n): RQBDateTimeJsonLogic => {\n const opts = options ?? /* v8 ignore start -- @preserve */ {} /* v8 ignore stop -- @preserve */;\n\n if (!processIsDateField(opts.context?.isDateField, rule, opts)) {\n return defaultRuleProcessorJsonLogic(rule, opts);\n }\n\n const { field, operator, value, valueSource } = rule;\n const valueIsField = valueSource === 'field';\n const fieldObject: JsonLogicVar = { var: field };\n const maybeFieldRenderer = (v: string) => (valueIsField ? { var: `${v}` } : v);\n\n switch (operator) {\n case '<':\n case '<=':\n case '=':\n case '!=':\n case '>':\n case '>=':\n return {\n [dateOperationMap[operator]]: [fieldObject, maybeFieldRenderer(value)],\n } as RQBDateTimeJsonLogic;\n\n case 'in':\n case 'notIn': {\n const valueAsArray = toArray(value).map(v => maybeFieldRenderer(v));\n return { [dateOperationMap[operator]]: [fieldObject, valueAsArray] } as RQBDateTimeJsonLogic;\n }\n\n case 'between':\n case 'notBetween': {\n const valueAsArray = toArray(value).map(v => maybeFieldRenderer(v));\n\n if (valueAsArray.length < 2) return false;\n\n return {\n [dateOperationMap[operator]]: [valueAsArray[0], fieldObject, valueAsArray[1]],\n } as RQBDateTimeJsonLogic;\n }\n }\n\n return defaultRuleProcessorJsonLogic(rule, options);\n};\n","import type { RuleProcessor } from 'react-querybuilder';\nimport {\n defaultRuleProcessorJSONata,\n getQuotedFieldName,\n nullOrUndefinedOrEmpty,\n toArray,\n} from 'react-querybuilder';\nimport type { RQBDateTimeLibraryAPI } from './types';\nimport { processIsDateField } from './utils';\n\nconst shouldNegate = (op: string) => /^(does)?not/i.test(op);\n\nconst negate = (clause: string, neg: boolean) => (neg ? `$not(${clause})` : `${clause}`);\n\n/**\n * Generates a rule processor with date/time features for use by\n * {@link @react-querybuilder/core!formatQuery formatQuery} with the \"jsonata\" format.\n */\nexport const getDatetimeRuleProcessorJSONata =\n (apiFns: RQBDateTimeLibraryAPI): RuleProcessor =>\n (rule, options) => {\n const opts = options ?? /* v8 ignore start -- @preserve */ {} /* v8 ignore stop -- @preserve */;\n const { context = {} } = opts;\n\n // v8 ignore next\n const { quoteFieldNamesWith = ['', ''] as [string, string], fieldIdentifierSeparator = '' } =\n opts;\n const { field, operator, value, valueSource } = rule;\n\n if (!processIsDateField(context.isDateField, rule, opts)) {\n return defaultRuleProcessorJSONata(rule, opts);\n }\n\n const valueIsField = valueSource === 'field';\n\n const fldToMs = (f: string) =>\n `$toMillis(${getQuotedFieldName(f, { quoteFieldNamesWith, fieldIdentifierSeparator })})`;\n const valToMs = (v: string | Date) => `$toMillis(\"${apiFns.toISOString(v)}\")`;\n\n switch (operator) {\n case '<':\n case '<=':\n case '=':\n case '!=':\n case '>':\n case '>=':\n return `${fldToMs(field)} ${operator} ${valueIsField ? fldToMs(value) : valToMs(value)}`;\n }\n\n const valueAsArray: string[] = toArray(rule.value, { retainEmptyStrings: false });\n const valueAsDateArray = valueAsArray\n .map(v => apiFns.toDate(v))\n .filter(dateVal => apiFns.isValid(dateVal));\n\n switch (operator) {\n case 'in':\n case 'notIn': {\n if (valueIsField) {\n if (valueAsArray.length === 0) return '';\n return negate(\n `${fldToMs(field)} in [${valueAsArray.map(val => fldToMs(val)).join(', ')}]`,\n shouldNegate(operator)\n );\n }\n if (valueAsDateArray.length === 0) return '';\n return negate(\n `${fldToMs(field)} in [${valueAsDateArray.map(val => valToMs(val)).join(', ')}]`,\n shouldNegate(operator)\n );\n }\n\n case 'between':\n case 'notBetween': {\n if (\n valueAsArray.length < 2 ||\n nullOrUndefinedOrEmpty(valueAsArray[0]) ||\n nullOrUndefinedOrEmpty(valueAsArray[1]) ||\n (!valueIsField && valueAsDateArray.length < 2)\n ) {\n return '';\n }\n\n if (valueIsField) {\n const [firstValue, secondValue] = valueAsArray;\n const expression = `${fldToMs(field)} >= ${fldToMs(firstValue)} and ${fldToMs(field)} <= ${fldToMs(secondValue)}`;\n return operator === 'between' ? `(${expression})` : negate(expression, true);\n }\n\n const [first, second] = valueAsDateArray;\n const [firstDate, secondDate] = apiFns.isBefore(first, second)\n ? [first, second]\n : [second, first];\n const expression = `${fldToMs(field)} >= ${valToMs(firstDate)} and ${fldToMs(field)} <= ${valToMs(secondDate)}`;\n return operator === 'between' ? `(${expression})` : negate(expression, true);\n }\n }\n\n return defaultRuleProcessorJSONata(rule, opts);\n };\n"],"mappings":"qOAKA,MAAM,EAAmB,CACvB,KAAM,YACN,IAAK,aACL,KAAM,iBACN,IAAK,SACL,IAAK,YACL,KAAM,gBACN,QAAS,cACT,GAAI,SACJ,WAAY,iBACZ,MAAO,
|
|
1
|
+
{"version":3,"file":"react-querybuilder_datetime.cjs.production.js","names":["processIsDateField","processIsDateField"],"sources":["../../src/datetimeRuleProcessorJsonLogic.ts","../../src/getDatetimeRuleProcessorJSONata.ts"],"sourcesContent":["import type { DefaultOperatorName, JsonLogicVar, RuleProcessor } from 'react-querybuilder';\nimport { defaultRuleProcessorJsonLogic, toArray } from 'react-querybuilder';\nimport type { RQBDateTimeJsonLogic } from './types';\nimport { processIsDateField } from './utils';\n\nconst dateOperationMap = {\n '!=': 'dateNotOn',\n '<': 'dateBefore',\n '<=': 'dateOnOrBefore',\n '=': 'dateOn',\n '>': 'dateAfter',\n '>=': 'dateOnOrAfter',\n between: 'dateBetween',\n in: 'dateIn',\n notBetween: 'dateNotBetween',\n notIn: 'dateNotIn',\n} as const satisfies Partial<Record<DefaultOperatorName, string>>;\n\n/**\n * Date/time rule processor for use by {@link @react-querybuilder/core!formatQuery formatQuery}\n * with the \"jsonlogic\" format.\n *\n * Note: Unlike other date/time rule processors from this library, this function does\n * not require a date/time library API. Instead, the date/time library API is used by\n * {@link getDatetimeJsonLogicOperations} during the evaluation process.\n */\nexport const datetimeRuleProcessorJsonLogic: RuleProcessor = (\n rule,\n options\n): RQBDateTimeJsonLogic => {\n const opts = options ?? /* v8 ignore start -- @preserve */ {} /* v8 ignore stop -- @preserve */;\n\n if (!processIsDateField(opts.context?.isDateField, rule, opts)) {\n return defaultRuleProcessorJsonLogic(rule, opts);\n }\n\n const { field, operator, value, valueSource } = rule;\n const valueIsField = valueSource === 'field';\n const fieldObject: JsonLogicVar = { var: field };\n const maybeFieldRenderer = (v: string) => (valueIsField ? { var: `${v}` } : v);\n\n switch (operator) {\n case '<':\n case '<=':\n case '=':\n case '!=':\n case '>':\n case '>=':\n return {\n [dateOperationMap[operator]]: [fieldObject, maybeFieldRenderer(value)],\n } as RQBDateTimeJsonLogic;\n\n case 'in':\n case 'notIn': {\n const valueAsArray = toArray(value).map(v => maybeFieldRenderer(v));\n return { [dateOperationMap[operator]]: [fieldObject, valueAsArray] } as RQBDateTimeJsonLogic;\n }\n\n case 'between':\n case 'notBetween': {\n const valueAsArray = toArray(value).map(v => maybeFieldRenderer(v));\n\n if (valueAsArray.length < 2) return false;\n\n return {\n [dateOperationMap[operator]]: [valueAsArray[0], fieldObject, valueAsArray[1]],\n } as RQBDateTimeJsonLogic;\n }\n }\n\n return defaultRuleProcessorJsonLogic(rule, options);\n};\n","import type { RuleProcessor } from 'react-querybuilder';\nimport {\n defaultRuleProcessorJSONata,\n getQuotedFieldName,\n nullOrUndefinedOrEmpty,\n toArray,\n} from 'react-querybuilder';\nimport type { RQBDateTimeLibraryAPI } from './types';\nimport { processIsDateField } from './utils';\n\nconst shouldNegate = (op: string) => /^(does)?not/i.test(op);\n\nconst negate = (clause: string, neg: boolean) => (neg ? `$not(${clause})` : `${clause}`);\n\n/**\n * Generates a rule processor with date/time features for use by\n * {@link @react-querybuilder/core!formatQuery formatQuery} with the \"jsonata\" format.\n */\nexport const getDatetimeRuleProcessorJSONata =\n (apiFns: RQBDateTimeLibraryAPI): RuleProcessor =>\n (rule, options) => {\n const opts = options ?? /* v8 ignore start -- @preserve */ {} /* v8 ignore stop -- @preserve */;\n const { context = {} } = opts;\n\n // v8 ignore next\n const { quoteFieldNamesWith = ['', ''] as [string, string], fieldIdentifierSeparator = '' } =\n opts;\n const { field, operator, value, valueSource } = rule;\n\n if (!processIsDateField(context.isDateField, rule, opts)) {\n return defaultRuleProcessorJSONata(rule, opts);\n }\n\n const valueIsField = valueSource === 'field';\n\n const fldToMs = (f: string) =>\n `$toMillis(${getQuotedFieldName(f, { quoteFieldNamesWith, fieldIdentifierSeparator })})`;\n const valToMs = (v: string | Date) => `$toMillis(\"${apiFns.toISOString(v)}\")`;\n\n switch (operator) {\n case '<':\n case '<=':\n case '=':\n case '!=':\n case '>':\n case '>=':\n return `${fldToMs(field)} ${operator} ${valueIsField ? fldToMs(value) : valToMs(value)}`;\n }\n\n const valueAsArray: string[] = toArray(rule.value, { retainEmptyStrings: false });\n const valueAsDateArray = valueAsArray\n .map(v => apiFns.toDate(v))\n .filter(dateVal => apiFns.isValid(dateVal));\n\n switch (operator) {\n case 'in':\n case 'notIn': {\n if (valueIsField) {\n if (valueAsArray.length === 0) return '';\n return negate(\n `${fldToMs(field)} in [${valueAsArray.map(val => fldToMs(val)).join(', ')}]`,\n shouldNegate(operator)\n );\n }\n if (valueAsDateArray.length === 0) return '';\n return negate(\n `${fldToMs(field)} in [${valueAsDateArray.map(val => valToMs(val)).join(', ')}]`,\n shouldNegate(operator)\n );\n }\n\n case 'between':\n case 'notBetween': {\n if (\n valueAsArray.length < 2 ||\n nullOrUndefinedOrEmpty(valueAsArray[0]) ||\n nullOrUndefinedOrEmpty(valueAsArray[1]) ||\n (!valueIsField && valueAsDateArray.length < 2)\n ) {\n return '';\n }\n\n if (valueIsField) {\n const [firstValue, secondValue] = valueAsArray;\n const expression = `${fldToMs(field)} >= ${fldToMs(firstValue)} and ${fldToMs(field)} <= ${fldToMs(secondValue)}`;\n return operator === 'between' ? `(${expression})` : negate(expression, true);\n }\n\n const [first, second] = valueAsDateArray;\n const [firstDate, secondDate] = apiFns.isBefore(first, second)\n ? [first, second]\n : [second, first];\n const expression = `${fldToMs(field)} >= ${valToMs(firstDate)} and ${fldToMs(field)} <= ${valToMs(secondDate)}`;\n return operator === 'between' ? `(${expression})` : negate(expression, true);\n }\n }\n\n return defaultRuleProcessorJSONata(rule, opts);\n };\n"],"mappings":"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"}
|
|
@@ -51,6 +51,14 @@ declare const datetimeRuleProcessorMongoDBQuery: RuleProcessor;
|
|
|
51
51
|
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "natural_language" format using JavaScript `Date`
|
|
52
52
|
*/
|
|
53
53
|
declare const datetimeRuleProcessorNL: ValueProcessorByRule;
|
|
54
|
+
/**
|
|
55
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "cypher"/"gql" format using JavaScript `Date`
|
|
56
|
+
*/
|
|
57
|
+
declare const datetimeRuleProcessorCypher: RuleProcessor;
|
|
58
|
+
/**
|
|
59
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "sparql" format using JavaScript `Date`
|
|
60
|
+
*/
|
|
61
|
+
declare const datetimeRuleProcessorSPARQL: RuleProcessor;
|
|
54
62
|
//#endregion
|
|
55
|
-
export { datetimeRuleProcessorCEL, datetimeRuleProcessorMongoDBQuery, datetimeRuleProcessorNL, datetimeRuleProcessorSQL, datetimeValueProcessorANSI, datetimeValueProcessorMSSQL, datetimeValueProcessorMySQL, datetimeValueProcessorOracle, datetimeValueProcessorPostgreSQL, jsonLogicDateTimeOperations, rqbDateTimeLibraryAPI };
|
|
63
|
+
export { datetimeRuleProcessorCEL, datetimeRuleProcessorCypher, datetimeRuleProcessorMongoDBQuery, datetimeRuleProcessorNL, datetimeRuleProcessorSPARQL, datetimeRuleProcessorSQL, datetimeValueProcessorANSI, datetimeValueProcessorMSSQL, datetimeValueProcessorMySQL, datetimeValueProcessorOracle, datetimeValueProcessorPostgreSQL, jsonLogicDateTimeOperations, rqbDateTimeLibraryAPI };
|
|
56
64
|
//# sourceMappingURL=react-querybuilder_datetime.cjs.production.jsdate.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./getDatetimeRuleProcessorSQL-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./getDatetimeRuleProcessorSQL-BWQryLof.js`),t=new Date(NaN),n=/^(\d{4})-(\d{2})-(\d{2})([T ](\d{2}):(\d{2}):(\d{2})(\.(\d{1,3}))?)?/,r=e=>{if(e instanceof Date)return e;let r=n.exec(e);if(!r)return t;let[i,a,o,s,c,l,u,d,f,p]=r,[m,h,g,_,v,y,b]=[a,o,s,l,u,d,p??`0`].filter(Boolean).map(Number),x=h-1;return l?new Date(Date.UTC(m,x,g,_,v,y,b)):new Date(m,x,g)},i=e=>{let t=r(e);return t instanceof Date&&!Number.isNaN(t.getTime())},a=e=>{let t=r(e);return i(t)?t.toISOString().slice(0,10):``},o={format:e=>r(e).toISOString(),isAfter:(e,t)=>{let n=r(e).getTime(),i=r(t).getTime();return!Number.isNaN(n)&&!Number.isNaN(i)&&n>i},isBefore:(e,t)=>{let n=r(e).getTime(),i=r(t).getTime();return!Number.isNaN(n)&&!Number.isNaN(i)&&n<i},isSame:(t,n)=>{let i=r(t),o=r(n);return e.h(t)||e.h(n)?a(t)===a(n):i.getTime()===o.getTime()},isValid:i,toDate:r,toISOString:e=>{let t=r(e);return i(t)?t.toISOString():``},toISOStringDateOnly:a},s=e.m(o),c=e.t(o),l=e.n(o),u=e.r(o),d=e.i(o),f=e.a(o),p=e.o(o),m=e.p(o),h=e.d(o),g=e.u(o),_=e.f(o),v=e.s(o);exports.datetimeRuleProcessorCEL=m,exports.datetimeRuleProcessorCypher=_,exports.datetimeRuleProcessorMongoDBQuery=h,exports.datetimeRuleProcessorNL=g,exports.datetimeRuleProcessorSPARQL=v,exports.datetimeRuleProcessorSQL=c,exports.datetimeValueProcessorANSI=l,exports.datetimeValueProcessorMSSQL=u,exports.datetimeValueProcessorMySQL=d,exports.datetimeValueProcessorOracle=f,exports.datetimeValueProcessorPostgreSQL=p,exports.jsonLogicDateTimeOperations=s,exports.rqbDateTimeLibraryAPI=o;
|
|
2
2
|
//# sourceMappingURL=react-querybuilder_datetime.cjs.production.jsdate.js.map
|