@react-querybuilder/datetime 8.14.4 → 8.16.0

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.
Files changed (97) hide show
  1. package/date-fns/package.json +1 -1
  2. package/dayjs/package.json +1 -1
  3. package/dist/cjs/{getDatetimeRuleProcessorSQL-Bn34z-S-.js → getDatetimeRuleProcessorSQL-DVtRZyr6.js} +131 -9
  4. package/dist/cjs/getDatetimeRuleProcessorSQL-DVtRZyr6.js.map +1 -0
  5. package/dist/cjs/getDatetimeRuleProcessorSQL-pAGh4Q0-.js +2 -0
  6. package/dist/cjs/getDatetimeRuleProcessorSQL-pAGh4Q0-.js.map +1 -0
  7. package/dist/cjs/react-querybuilder_datetime.cjs.development.d.ts +27 -1
  8. package/dist/cjs/react-querybuilder_datetime.cjs.development.date-fns.d.ts +9 -1
  9. package/dist/cjs/react-querybuilder_datetime.cjs.development.date-fns.js +11 -1
  10. package/dist/cjs/react-querybuilder_datetime.cjs.development.date-fns.js.map +1 -1
  11. package/dist/cjs/react-querybuilder_datetime.cjs.development.dayjs.d.ts +9 -1
  12. package/dist/cjs/react-querybuilder_datetime.cjs.development.dayjs.js +11 -1
  13. package/dist/cjs/react-querybuilder_datetime.cjs.development.dayjs.js.map +1 -1
  14. package/dist/cjs/react-querybuilder_datetime.cjs.development.js +6 -4
  15. package/dist/cjs/react-querybuilder_datetime.cjs.development.js.map +1 -1
  16. package/dist/cjs/react-querybuilder_datetime.cjs.development.jsdate.d.ts +9 -1
  17. package/dist/cjs/react-querybuilder_datetime.cjs.development.jsdate.js +11 -1
  18. package/dist/cjs/react-querybuilder_datetime.cjs.development.jsdate.js.map +1 -1
  19. package/dist/cjs/react-querybuilder_datetime.cjs.development.luxon.d.ts +9 -1
  20. package/dist/cjs/react-querybuilder_datetime.cjs.development.luxon.js +11 -1
  21. package/dist/cjs/react-querybuilder_datetime.cjs.development.luxon.js.map +1 -1
  22. package/dist/cjs/react-querybuilder_datetime.cjs.production.d.ts +27 -1
  23. package/dist/cjs/react-querybuilder_datetime.cjs.production.date-fns.d.ts +9 -1
  24. package/dist/cjs/react-querybuilder_datetime.cjs.production.date-fns.js +1 -1
  25. package/dist/cjs/react-querybuilder_datetime.cjs.production.date-fns.js.map +1 -1
  26. package/dist/cjs/react-querybuilder_datetime.cjs.production.dayjs.d.ts +9 -1
  27. package/dist/cjs/react-querybuilder_datetime.cjs.production.dayjs.js +1 -1
  28. package/dist/cjs/react-querybuilder_datetime.cjs.production.dayjs.js.map +1 -1
  29. package/dist/cjs/react-querybuilder_datetime.cjs.production.js +1 -1
  30. package/dist/cjs/react-querybuilder_datetime.cjs.production.js.map +1 -1
  31. package/dist/cjs/react-querybuilder_datetime.cjs.production.jsdate.d.ts +9 -1
  32. package/dist/cjs/react-querybuilder_datetime.cjs.production.jsdate.js +1 -1
  33. package/dist/cjs/react-querybuilder_datetime.cjs.production.jsdate.js.map +1 -1
  34. package/dist/cjs/react-querybuilder_datetime.cjs.production.luxon.d.ts +9 -1
  35. package/dist/cjs/react-querybuilder_datetime.cjs.production.luxon.js +1 -1
  36. package/dist/cjs/react-querybuilder_datetime.cjs.production.luxon.js.map +1 -1
  37. package/dist/{getDatetimeRuleProcessorSQL-CnAPMZf2.mjs → getDatetimeRuleProcessorSQL-BGTFvbeK.mjs} +121 -11
  38. package/dist/getDatetimeRuleProcessorSQL-BGTFvbeK.mjs.map +1 -0
  39. package/dist/{getDatetimeRuleProcessorSQL-CJGBV3Ug.js → getDatetimeRuleProcessorSQL-Bpt88k6a.js} +126 -16
  40. package/dist/getDatetimeRuleProcessorSQL-Bpt88k6a.js.map +1 -0
  41. package/dist/getDatetimeRuleProcessorSQL-CWqAiVwU.mjs +2 -0
  42. package/dist/getDatetimeRuleProcessorSQL-CWqAiVwU.mjs.map +1 -0
  43. package/dist/react-querybuilder_datetime.d.mts +27 -1
  44. package/dist/react-querybuilder_datetime.date-fns.d.mts +9 -1
  45. package/dist/react-querybuilder_datetime.date-fns.mjs +10 -2
  46. package/dist/react-querybuilder_datetime.date-fns.mjs.map +1 -1
  47. package/dist/react-querybuilder_datetime.dayjs.d.mts +9 -1
  48. package/dist/react-querybuilder_datetime.dayjs.mjs +10 -2
  49. package/dist/react-querybuilder_datetime.dayjs.mjs.map +1 -1
  50. package/dist/react-querybuilder_datetime.jsdate.d.mts +9 -1
  51. package/dist/react-querybuilder_datetime.jsdate.mjs +10 -2
  52. package/dist/react-querybuilder_datetime.jsdate.mjs.map +1 -1
  53. package/dist/react-querybuilder_datetime.legacy-esm.d.ts +27 -1
  54. package/dist/react-querybuilder_datetime.legacy-esm.date-fns.d.ts +9 -1
  55. package/dist/react-querybuilder_datetime.legacy-esm.date-fns.js +10 -2
  56. package/dist/react-querybuilder_datetime.legacy-esm.date-fns.js.map +1 -1
  57. package/dist/react-querybuilder_datetime.legacy-esm.dayjs.d.ts +9 -1
  58. package/dist/react-querybuilder_datetime.legacy-esm.dayjs.js +10 -2
  59. package/dist/react-querybuilder_datetime.legacy-esm.dayjs.js.map +1 -1
  60. package/dist/react-querybuilder_datetime.legacy-esm.js +5 -5
  61. package/dist/react-querybuilder_datetime.legacy-esm.js.map +1 -1
  62. package/dist/react-querybuilder_datetime.legacy-esm.jsdate.d.ts +9 -1
  63. package/dist/react-querybuilder_datetime.legacy-esm.jsdate.js +10 -2
  64. package/dist/react-querybuilder_datetime.legacy-esm.jsdate.js.map +1 -1
  65. package/dist/react-querybuilder_datetime.legacy-esm.luxon.d.ts +9 -1
  66. package/dist/react-querybuilder_datetime.legacy-esm.luxon.js +10 -2
  67. package/dist/react-querybuilder_datetime.legacy-esm.luxon.js.map +1 -1
  68. package/dist/react-querybuilder_datetime.luxon.d.mts +9 -1
  69. package/dist/react-querybuilder_datetime.luxon.mjs +10 -2
  70. package/dist/react-querybuilder_datetime.luxon.mjs.map +1 -1
  71. package/dist/react-querybuilder_datetime.mjs +5 -5
  72. package/dist/react-querybuilder_datetime.mjs.map +1 -1
  73. package/dist/react-querybuilder_datetime.production.d.mts +27 -1
  74. package/dist/react-querybuilder_datetime.production.date-fns.d.mts +9 -1
  75. package/dist/react-querybuilder_datetime.production.date-fns.mjs +1 -1
  76. package/dist/react-querybuilder_datetime.production.date-fns.mjs.map +1 -1
  77. package/dist/react-querybuilder_datetime.production.dayjs.d.mts +9 -1
  78. package/dist/react-querybuilder_datetime.production.dayjs.mjs +1 -1
  79. package/dist/react-querybuilder_datetime.production.dayjs.mjs.map +1 -1
  80. package/dist/react-querybuilder_datetime.production.jsdate.d.mts +9 -1
  81. package/dist/react-querybuilder_datetime.production.jsdate.mjs +1 -1
  82. package/dist/react-querybuilder_datetime.production.jsdate.mjs.map +1 -1
  83. package/dist/react-querybuilder_datetime.production.luxon.d.mts +9 -1
  84. package/dist/react-querybuilder_datetime.production.luxon.mjs +1 -1
  85. package/dist/react-querybuilder_datetime.production.luxon.mjs.map +1 -1
  86. package/dist/react-querybuilder_datetime.production.mjs +1 -1
  87. package/dist/react-querybuilder_datetime.production.mjs.map +1 -1
  88. package/jsdate/package.json +1 -1
  89. package/luxon/package.json +1 -1
  90. package/package.json +12 -12
  91. package/dist/cjs/getDatetimeRuleProcessorSQL-Bn34z-S-.js.map +0 -1
  92. package/dist/cjs/getDatetimeRuleProcessorSQL-Cs8MroHp.js +0 -2
  93. package/dist/cjs/getDatetimeRuleProcessorSQL-Cs8MroHp.js.map +0 -1
  94. package/dist/getDatetimeRuleProcessorSQL-CJGBV3Ug.js.map +0 -1
  95. package/dist/getDatetimeRuleProcessorSQL-Cbq2-tqd.mjs +0 -2
  96. package/dist/getDatetimeRuleProcessorSQL-Cbq2-tqd.mjs.map +0 -1
  97. package/dist/getDatetimeRuleProcessorSQL-CnAPMZf2.mjs.map +0 -1
@@ -1,4 +1,4 @@
1
- import { a as getDatetimeValueProcessorOracle, d as getDatetimeRuleProcessorCEL, f as getDatetimeJsonLogicOperations, i as getDatetimeValueProcessorMySQL, l as getDatetimeRuleProcessorNL, n as getDatetimeValueProcessorANSI, o as getDatetimeValueProcessorPostgreSQL, p as isISOStringDateOnly, r as getDatetimeValueProcessorMSSQL, t as getDatetimeRuleProcessorSQL, u as getDatetimeRuleProcessorMongoDBQuery } from "./getDatetimeRuleProcessorSQL-CnAPMZf2.mjs";
1
+ import { a as getDatetimeValueProcessorOracle, d as getDatetimeRuleProcessorMongoDBQuery, f as getDatetimeRuleProcessorCypher, h as isISOStringDateOnly, i as getDatetimeValueProcessorMySQL, m as getDatetimeJsonLogicOperations, n as getDatetimeValueProcessorANSI, o as getDatetimeValueProcessorPostgreSQL, p as getDatetimeRuleProcessorCEL, r as getDatetimeValueProcessorMSSQL, s as getDatetimeRuleProcessorSPARQL, t as getDatetimeRuleProcessorSQL, u as getDatetimeRuleProcessorNL } from "./getDatetimeRuleProcessorSQL-BGTFvbeK.mjs";
2
2
  import dayjs from "dayjs";
3
3
  //#region src/rqbDateTimeLibraryAPI.dayjs.ts
4
4
  /**
@@ -62,7 +62,15 @@ const datetimeRuleProcessorMongoDBQuery = getDatetimeRuleProcessorMongoDBQuery(r
62
62
  * {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "natural_language" format using Day.js
63
63
  */
64
64
  const datetimeRuleProcessorNL = getDatetimeRuleProcessorNL(rqbDateTimeLibraryAPI);
65
+ /**
66
+ * {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "cypher"/"gql" format using Day.js
67
+ */
68
+ const datetimeRuleProcessorCypher = getDatetimeRuleProcessorCypher(rqbDateTimeLibraryAPI);
69
+ /**
70
+ * {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "sparql" format using Day.js
71
+ */
72
+ const datetimeRuleProcessorSPARQL = getDatetimeRuleProcessorSPARQL(rqbDateTimeLibraryAPI);
65
73
  //#endregion
66
- export { datetimeRuleProcessorCEL, datetimeRuleProcessorMongoDBQuery, datetimeRuleProcessorNL, datetimeRuleProcessorSQL, datetimeValueProcessorANSI, datetimeValueProcessorMSSQL, datetimeValueProcessorMySQL, datetimeValueProcessorOracle, datetimeValueProcessorPostgreSQL, jsonLogicDateTimeOperations, rqbDateTimeLibraryAPI };
74
+ export { datetimeRuleProcessorCEL, datetimeRuleProcessorCypher, datetimeRuleProcessorMongoDBQuery, datetimeRuleProcessorNL, datetimeRuleProcessorSPARQL, datetimeRuleProcessorSQL, datetimeValueProcessorANSI, datetimeValueProcessorMSSQL, datetimeValueProcessorMySQL, datetimeValueProcessorOracle, datetimeValueProcessorPostgreSQL, jsonLogicDateTimeOperations, rqbDateTimeLibraryAPI };
67
75
 
68
76
  //# sourceMappingURL=react-querybuilder_datetime.dayjs.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"react-querybuilder_datetime.dayjs.mjs","names":[],"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,QAAQ,MAAM,EAAE,CAAC,OAAO,IAAI;CACxC,UAAU,GAAG,MAAM,MAAM,EAAE,CAAC,QAAQ,EAAE;CACtC,WAAW,GAAG,MAAM,MAAM,EAAE,CAAC,SAAS,EAAE;CACxC,SAAS,GAAG,MACV,MAAM,EAAE,CAAC,OAAO,GAAG,oBAAoB,EAAE,IAAI,oBAAoB,EAAE,GAAG,MAAM,KAAK;CACnF,UAAS,MAAK,MAAM,EAAE,CAAC,SAAS;CAChC,SAAQ,MAAK,MAAM,EAAE,CAAC,QAAQ;CAC9B,cAAa,MAAK;EAChB,MAAM,UAAU,MAAM,EAAE;AACxB,SAAO,QAAQ,SAAS,GAAG,QAAQ,aAAa,GAAG;;CAErD,sBAAqB,MAAK;EACxB,MAAM,UAAU,MAAM,EAAE;AACxB,SAAO,QAAQ,SAAS,GAAG,QAAQ,OAAO,aAAa,GAAG;;CAE7D;;;;;;ACED,MAAa,8BACX,+BAA+B,sBAAsB;;;;AAKvD,MAAa,2BACX,4BAA4B,sBAAsB;;;;AAIpD,MAAa,6BACX,8BAA8B,sBAAsB;;;;AAItD,MAAa,8BACX,+BAA+B,sBAAsB;;;;AAIvD,MAAa,8BACX,+BAA+B,sBAAsB;;;;AAIvD,MAAa,+BACX,gCAAgC,sBAAsB;;;;AAIxD,MAAa,mCACX,oCAAoC,sBAAsB;;;;AAK5D,MAAa,2BACX,4BAA4B,sBAAsB;;;;AAKpD,MAAa,oCACX,qCAAqC,sBAAsB;;;;AAK7D,MAAa,0BACX,2BAA2B,sBAAsB"}
1
+ {"version":3,"file":"react-querybuilder_datetime.dayjs.mjs","names":[],"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,QAAQ,MAAM,EAAE,CAAC,OAAO,IAAI;CACxC,UAAU,GAAG,MAAM,MAAM,EAAE,CAAC,QAAQ,EAAE;CACtC,WAAW,GAAG,MAAM,MAAM,EAAE,CAAC,SAAS,EAAE;CACxC,SAAS,GAAG,MACV,MAAM,EAAE,CAAC,OAAO,GAAG,oBAAoB,EAAE,IAAI,oBAAoB,EAAE,GAAG,MAAM,KAAK;CACnF,UAAS,MAAK,MAAM,EAAE,CAAC,SAAS;CAChC,SAAQ,MAAK,MAAM,EAAE,CAAC,QAAQ;CAC9B,cAAa,MAAK;EAChB,MAAM,UAAU,MAAM,EAAE;AACxB,SAAO,QAAQ,SAAS,GAAG,QAAQ,aAAa,GAAG;;CAErD,sBAAqB,MAAK;EACxB,MAAM,UAAU,MAAM,EAAE;AACxB,SAAO,QAAQ,SAAS,GAAG,QAAQ,OAAO,aAAa,GAAG;;CAE7D;;;;;;ACID,MAAa,8BACX,+BAA+B,sBAAsB;;;;AAKvD,MAAa,2BACX,4BAA4B,sBAAsB;;;;AAIpD,MAAa,6BACX,8BAA8B,sBAAsB;;;;AAItD,MAAa,8BACX,+BAA+B,sBAAsB;;;;AAIvD,MAAa,8BACX,+BAA+B,sBAAsB;;;;AAIvD,MAAa,+BACX,gCAAgC,sBAAsB;;;;AAIxD,MAAa,mCACX,oCAAoC,sBAAsB;;;;AAK5D,MAAa,2BACX,4BAA4B,sBAAsB;;;;AAKpD,MAAa,oCACX,qCAAqC,sBAAsB;;;;AAK7D,MAAa,0BACX,2BAA2B,sBAAsB;;;;AAKnD,MAAa,8BACX,+BAA+B,sBAAsB;;;;AAKvD,MAAa,8BACX,+BAA+B,sBAAsB"}
@@ -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.jsdate.d.mts.map
@@ -1,4 +1,4 @@
1
- import { a as getDatetimeValueProcessorOracle, d as getDatetimeRuleProcessorCEL, f as getDatetimeJsonLogicOperations, i as getDatetimeValueProcessorMySQL, l as getDatetimeRuleProcessorNL, n as getDatetimeValueProcessorANSI, o as getDatetimeValueProcessorPostgreSQL, p as isISOStringDateOnly, r as getDatetimeValueProcessorMSSQL, t as getDatetimeRuleProcessorSQL, u as getDatetimeRuleProcessorMongoDBQuery } from "./getDatetimeRuleProcessorSQL-CnAPMZf2.mjs";
1
+ import { a as getDatetimeValueProcessorOracle, d as getDatetimeRuleProcessorMongoDBQuery, f as getDatetimeRuleProcessorCypher, h as isISOStringDateOnly, i as getDatetimeValueProcessorMySQL, m as getDatetimeJsonLogicOperations, n as getDatetimeValueProcessorANSI, o as getDatetimeValueProcessorPostgreSQL, p as getDatetimeRuleProcessorCEL, r as getDatetimeValueProcessorMSSQL, s as getDatetimeRuleProcessorSPARQL, t as getDatetimeRuleProcessorSQL, u as getDatetimeRuleProcessorNL } from "./getDatetimeRuleProcessorSQL-BGTFvbeK.mjs";
2
2
  //#region src/rqbDateTimeLibraryAPI.jsdate.ts
3
3
  const invalidDate = /* @__PURE__ */ new Date(NaN);
4
4
  const dateRegExp = /^(\d{4})-(\d{2})-(\d{2})([T ](\d{2}):(\d{2}):(\d{2})(\.(\d{1,3}))?)?/;
@@ -100,7 +100,15 @@ const datetimeRuleProcessorMongoDBQuery = getDatetimeRuleProcessorMongoDBQuery(r
100
100
  * {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "natural_language" format using JavaScript `Date`
101
101
  */
102
102
  const datetimeRuleProcessorNL = getDatetimeRuleProcessorNL(rqbDateTimeLibraryAPI);
103
+ /**
104
+ * {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "cypher"/"gql" format using JavaScript `Date`
105
+ */
106
+ const datetimeRuleProcessorCypher = getDatetimeRuleProcessorCypher(rqbDateTimeLibraryAPI);
107
+ /**
108
+ * {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "sparql" format using JavaScript `Date`
109
+ */
110
+ const datetimeRuleProcessorSPARQL = getDatetimeRuleProcessorSPARQL(rqbDateTimeLibraryAPI);
103
111
  //#endregion
104
- export { datetimeRuleProcessorCEL, datetimeRuleProcessorMongoDBQuery, datetimeRuleProcessorNL, datetimeRuleProcessorSQL, datetimeValueProcessorANSI, datetimeValueProcessorMSSQL, datetimeValueProcessorMySQL, datetimeValueProcessorOracle, datetimeValueProcessorPostgreSQL, jsonLogicDateTimeOperations, rqbDateTimeLibraryAPI };
112
+ export { datetimeRuleProcessorCEL, datetimeRuleProcessorCypher, datetimeRuleProcessorMongoDBQuery, datetimeRuleProcessorNL, datetimeRuleProcessorSPARQL, datetimeRuleProcessorSQL, datetimeValueProcessorANSI, datetimeValueProcessorMSSQL, datetimeValueProcessorMySQL, datetimeValueProcessorOracle, datetimeValueProcessorPostgreSQL, jsonLogicDateTimeOperations, rqbDateTimeLibraryAPI };
105
113
 
106
114
  //# sourceMappingURL=react-querybuilder_datetime.jsdate.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"react-querybuilder_datetime.jsdate.mjs","names":[],"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,IAAW;AAExC,MAAM,aAAa;AAEnB,MAAM,UAAU,MAAqB;AACnC,KAAI,aAAa,KAAM,QAAO;CAE9B,MAAM,UAAU,WAAW,KAAK,EAAE;AAElC,KAAI,CAAC,QAAS,QAAO;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;EAAI,CAC3F,OAAO,QAAQ,CACf,IAAI,OAAO;CAEd,MAAM,aAAa,QAAQ;AAE3B,QAAO,KACH,IAAI,KAAK,KAAK,IAAI,MAAM,YAAY,KAAK,OAAO,SAAS,SAAS,GAAG,CAAC,GACtE,IAAI,KAAK,MAAM,YAAY,IAAI;;AAGrC,MAAM,WAAW,MAAqB;CACpC,MAAM,UAAU,OAAO,EAAE;AACzB,QAAO,mBAAmB,QAAQ,CAAC,OAAO,MAAM,QAAQ,SAAS,CAAC;;AAGpE,MAAM,uBAAuB,MAAqB;CAChD,MAAM,UAAU,OAAO,EAAE;AACzB,QAAO,QAAQ,QAAQ,GAAG,QAAQ,aAAa,CAAC,MAAM,GAAG,GAAG,GAAG;;;;;;;;AASjE,MAAa,wBAA+C;CAC1D,SAAQ,MAAK,OAAO,EAAE,CAAC,aAAa;CACpC,UAAU,GAAG,MAAM;EACjB,MAAM,QAAQ,OAAO,EAAE,CAAC,SAAS;EACjC,MAAM,QAAQ,OAAO,EAAE,CAAC,SAAS;AACjC,SAAO,CAAC,OAAO,MAAM,MAAM,IAAI,CAAC,OAAO,MAAM,MAAM,IAAI,QAAQ;;CAEjE,WAAW,GAAG,MAAM;EAClB,MAAM,QAAQ,OAAO,EAAE,CAAC,SAAS;EACjC,MAAM,QAAQ,OAAO,EAAE,CAAC,SAAS;AACjC,SAAO,CAAC,OAAO,MAAM,MAAM,IAAI,CAAC,OAAO,MAAM,MAAM,IAAI,QAAQ;;CAEjE,SAAS,GAAG,MAAM;EAChB,MAAM,UAAU,OAAO,EAAE;EACzB,MAAM,UAAU,OAAO,EAAE;AACzB,SAAO,oBAAoB,EAAE,IAAI,oBAAoB,EAAE,GACnD,oBAAoB,EAAE,KAAK,oBAAoB,EAAE,GACjD,QAAQ,SAAS,KAAK,QAAQ,SAAS;;CAE7C;CACA;CACA,cAAa,MAAK;EAChB,MAAM,UAAU,OAAO,EAAE;AACzB,SAAO,QAAQ,QAAQ,GAAG,QAAQ,aAAa,GAAG;;CAEpD;CACD;;;;;;AC3CD,MAAa,8BACX,+BAA+B,sBAAsB;;;;AAKvD,MAAa,2BACX,4BAA4B,sBAAsB;;;;AAIpD,MAAa,6BACX,8BAA8B,sBAAsB;;;;AAItD,MAAa,8BACX,+BAA+B,sBAAsB;;;;AAIvD,MAAa,8BACX,+BAA+B,sBAAsB;;;;AAIvD,MAAa,+BACX,gCAAgC,sBAAsB;;;;AAIxD,MAAa,mCACX,oCAAoC,sBAAsB;;;;AAK5D,MAAa,2BACX,4BAA4B,sBAAsB;;;;AAKpD,MAAa,oCACX,qCAAqC,sBAAsB;;;;AAK7D,MAAa,0BACX,2BAA2B,sBAAsB"}
1
+ {"version":3,"file":"react-querybuilder_datetime.jsdate.mjs","names":[],"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,IAAW;AAExC,MAAM,aAAa;AAEnB,MAAM,UAAU,MAAqB;AACnC,KAAI,aAAa,KAAM,QAAO;CAE9B,MAAM,UAAU,WAAW,KAAK,EAAE;AAElC,KAAI,CAAC,QAAS,QAAO;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;EAAI,CAC3F,OAAO,QAAQ,CACf,IAAI,OAAO;CAEd,MAAM,aAAa,QAAQ;AAE3B,QAAO,KACH,IAAI,KAAK,KAAK,IAAI,MAAM,YAAY,KAAK,OAAO,SAAS,SAAS,GAAG,CAAC,GACtE,IAAI,KAAK,MAAM,YAAY,IAAI;;AAGrC,MAAM,WAAW,MAAqB;CACpC,MAAM,UAAU,OAAO,EAAE;AACzB,QAAO,mBAAmB,QAAQ,CAAC,OAAO,MAAM,QAAQ,SAAS,CAAC;;AAGpE,MAAM,uBAAuB,MAAqB;CAChD,MAAM,UAAU,OAAO,EAAE;AACzB,QAAO,QAAQ,QAAQ,GAAG,QAAQ,aAAa,CAAC,MAAM,GAAG,GAAG,GAAG;;;;;;;;AASjE,MAAa,wBAA+C;CAC1D,SAAQ,MAAK,OAAO,EAAE,CAAC,aAAa;CACpC,UAAU,GAAG,MAAM;EACjB,MAAM,QAAQ,OAAO,EAAE,CAAC,SAAS;EACjC,MAAM,QAAQ,OAAO,EAAE,CAAC,SAAS;AACjC,SAAO,CAAC,OAAO,MAAM,MAAM,IAAI,CAAC,OAAO,MAAM,MAAM,IAAI,QAAQ;;CAEjE,WAAW,GAAG,MAAM;EAClB,MAAM,QAAQ,OAAO,EAAE,CAAC,SAAS;EACjC,MAAM,QAAQ,OAAO,EAAE,CAAC,SAAS;AACjC,SAAO,CAAC,OAAO,MAAM,MAAM,IAAI,CAAC,OAAO,MAAM,MAAM,IAAI,QAAQ;;CAEjE,SAAS,GAAG,MAAM;EAChB,MAAM,UAAU,OAAO,EAAE;EACzB,MAAM,UAAU,OAAO,EAAE;AACzB,SAAO,oBAAoB,EAAE,IAAI,oBAAoB,EAAE,GACnD,oBAAoB,EAAE,KAAK,oBAAoB,EAAE,GACjD,QAAQ,SAAS,KAAK,QAAQ,SAAS;;CAE7C;CACA;CACA,cAAa,MAAK;EAChB,MAAM,UAAU,OAAO,EAAE;AACzB,SAAO,QAAQ,QAAQ,GAAG,QAAQ,aAAa,GAAG;;CAEpD;CACD;;;;;;ACzCD,MAAa,8BACX,+BAA+B,sBAAsB;;;;AAKvD,MAAa,2BACX,4BAA4B,sBAAsB;;;;AAIpD,MAAa,6BACX,8BAA8B,sBAAsB;;;;AAItD,MAAa,8BACX,+BAA+B,sBAAsB;;;;AAIvD,MAAa,8BACX,+BAA+B,sBAAsB;;;;AAIvD,MAAa,+BACX,gCAAgC,sBAAsB;;;;AAIxD,MAAa,mCACX,oCAAoC,sBAAsB;;;;AAK5D,MAAa,2BACX,4BAA4B,sBAAsB;;;;AAKpD,MAAa,oCACX,qCAAqC,sBAAsB;;;;AAK7D,MAAa,0BACX,2BAA2B,sBAAsB;;;;AAKnD,MAAa,8BACX,+BAA+B,sBAAsB;;;;AAKvD,MAAa,8BACX,+BAA+B,sBAAsB"}
@@ -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.legacy-esm.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.legacy-esm.date-fns.d.ts.map
@@ -1,4 +1,4 @@
1
- import { a as getDatetimeValueProcessorOracle, d as getDatetimeRuleProcessorCEL, f as getDatetimeJsonLogicOperations, i as getDatetimeValueProcessorMySQL, l as getDatetimeRuleProcessorNL, n as getDatetimeValueProcessorANSI, o as getDatetimeValueProcessorPostgreSQL, p as isISOStringDateOnly, r as getDatetimeValueProcessorMSSQL, t as getDatetimeRuleProcessorSQL, u as getDatetimeRuleProcessorMongoDBQuery } from "./getDatetimeRuleProcessorSQL-CJGBV3Ug.js";
1
+ import { a as getDatetimeValueProcessorOracle, d as getDatetimeRuleProcessorMongoDBQuery, f as getDatetimeRuleProcessorCypher, h as isISOStringDateOnly, i as getDatetimeValueProcessorMySQL, m as getDatetimeJsonLogicOperations, n as getDatetimeValueProcessorANSI, o as getDatetimeValueProcessorPostgreSQL, p as getDatetimeRuleProcessorCEL, r as getDatetimeValueProcessorMSSQL, s as getDatetimeRuleProcessorSPARQL, t as getDatetimeRuleProcessorSQL, u as getDatetimeRuleProcessorNL } from "./getDatetimeRuleProcessorSQL-Bpt88k6a.js";
2
2
  import { format, isAfter, isBefore, isSameDay, isValid, parseISO, toDate } from "date-fns";
3
3
  //#region src/rqbDateTimeLibraryAPI.date-fns.ts
4
4
  const toDate$1 = (a) => typeof a === "string" ? parseISO(a) : toDate(a);
@@ -68,7 +68,15 @@ const datetimeRuleProcessorMongoDBQuery = getDatetimeRuleProcessorMongoDBQuery(r
68
68
  * {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "natural_language" format using date-fns
69
69
  */
70
70
  const datetimeRuleProcessorNL = getDatetimeRuleProcessorNL(rqbDateTimeLibraryAPI);
71
+ /**
72
+ * {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "cypher"/"gql" format using date-fns
73
+ */
74
+ const datetimeRuleProcessorCypher = getDatetimeRuleProcessorCypher(rqbDateTimeLibraryAPI);
75
+ /**
76
+ * {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "sparql" format using date-fns
77
+ */
78
+ const datetimeRuleProcessorSPARQL = getDatetimeRuleProcessorSPARQL(rqbDateTimeLibraryAPI);
71
79
  //#endregion
72
- export { datetimeRuleProcessorCEL, datetimeRuleProcessorMongoDBQuery, datetimeRuleProcessorNL, datetimeRuleProcessorSQL, datetimeValueProcessorANSI, datetimeValueProcessorMSSQL, datetimeValueProcessorMySQL, datetimeValueProcessorOracle, datetimeValueProcessorPostgreSQL, jsonLogicDateTimeOperations, rqbDateTimeLibraryAPI };
80
+ export { datetimeRuleProcessorCEL, datetimeRuleProcessorCypher, datetimeRuleProcessorMongoDBQuery, datetimeRuleProcessorNL, datetimeRuleProcessorSPARQL, datetimeRuleProcessorSQL, datetimeValueProcessorANSI, datetimeValueProcessorMSSQL, datetimeValueProcessorMySQL, datetimeValueProcessorOracle, datetimeValueProcessorPostgreSQL, jsonLogicDateTimeOperations, rqbDateTimeLibraryAPI };
73
81
 
74
82
  //# sourceMappingURL=react-querybuilder_datetime.legacy-esm.date-fns.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"react-querybuilder_datetime.legacy-esm.date-fns.js","names":["toDate","dateFnsToDate"],"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":";;;AAYA,MAAMA,YAA+B,MAAM,OAAO,MAAM,WAAW,SAAS,EAAE,GAAGC,OAAc,EAAE;AACjG,MAAM,kBAAkB;;;;AAKxB,MAAa,wBAA+C;CAC1D,SAAS,GAAG,QAAQ,OAAOD,SAAO,EAAE,EAAE,IAAI,QAAQ,cAAc,gBAAgB,CAAC;CACjF;CACA;CACA,SAAS,GAAG,MAAM;EAChB,MAAM,UAAUA,SAAO,EAAE;EACzB,MAAM,UAAUA,SAAO,EAAE;AACzB,SAAO,oBAAoB,EAAE,IAAI,oBAAoB,EAAE,GACnD,UAAU,SAAS,QAAQ,GAC3B,QAAQ,SAAS,KAAK,QAAQ,SAAS;;CAE7C,UAAS,MAAK,QAAQA,SAAO,EAAE,CAAC;CAChC,QAAA;CACA,cAAa,MAAK;EAChB,MAAM,UAAUA,SAAO,EAAE;AACzB,SAAO,QAAQ,QAAQ,GAAG,QAAQ,aAAa,GAAG;;CAEpD,sBAAqB,MAAK;EACxB,MAAM,UAAUA,SAAO,EAAE;AACzB,SAAO,QAAQ,QAAQ,GAAG,OAAO,SAAS,gBAAgB,GAAG;;CAEhE;;;;;;ACdD,MAAa,8BACX,+BAA+B,sBAAsB;;;;AAKvD,MAAa,2BACX,4BAA4B,sBAAsB;;;;AAIpD,MAAa,6BACX,8BAA8B,sBAAsB;;;;AAItD,MAAa,8BACX,+BAA+B,sBAAsB;;;;AAIvD,MAAa,8BACX,+BAA+B,sBAAsB;;;;AAIvD,MAAa,+BACX,gCAAgC,sBAAsB;;;;AAIxD,MAAa,mCACX,oCAAoC,sBAAsB;;;;AAK5D,MAAa,2BACX,4BAA4B,sBAAsB;;;;AAKpD,MAAa,oCACX,qCAAqC,sBAAsB;;;;AAK7D,MAAa,0BACX,2BAA2B,sBAAsB"}
1
+ {"version":3,"file":"react-querybuilder_datetime.legacy-esm.date-fns.js","names":["toDate","dateFnsToDate"],"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":";;;AAYA,MAAMA,YAA+B,MAAM,OAAO,MAAM,WAAW,SAAS,EAAE,GAAGC,OAAc,EAAE;AACjG,MAAM,kBAAkB;;;;AAKxB,MAAa,wBAA+C;CAC1D,SAAS,GAAG,QAAQ,OAAOD,SAAO,EAAE,EAAE,IAAI,QAAQ,cAAc,gBAAgB,CAAC;CACjF;CACA;CACA,SAAS,GAAG,MAAM;EAChB,MAAM,UAAUA,SAAO,EAAE;EACzB,MAAM,UAAUA,SAAO,EAAE;AACzB,SAAO,oBAAoB,EAAE,IAAI,oBAAoB,EAAE,GACnD,UAAU,SAAS,QAAQ,GAC3B,QAAQ,SAAS,KAAK,QAAQ,SAAS;;CAE7C,UAAS,MAAK,QAAQA,SAAO,EAAE,CAAC;CAChC,QAAA;CACA,cAAa,MAAK;EAChB,MAAM,UAAUA,SAAO,EAAE;AACzB,SAAO,QAAQ,QAAQ,GAAG,QAAQ,aAAa,GAAG;;CAEpD,sBAAqB,MAAK;EACxB,MAAM,UAAUA,SAAO,EAAE;AACzB,SAAO,QAAQ,QAAQ,GAAG,OAAO,SAAS,gBAAgB,GAAG;;CAEhE;;;;;;ACZD,MAAa,8BACX,+BAA+B,sBAAsB;;;;AAKvD,MAAa,2BACX,4BAA4B,sBAAsB;;;;AAIpD,MAAa,6BACX,8BAA8B,sBAAsB;;;;AAItD,MAAa,8BACX,+BAA+B,sBAAsB;;;;AAIvD,MAAa,8BACX,+BAA+B,sBAAsB;;;;AAIvD,MAAa,+BACX,gCAAgC,sBAAsB;;;;AAIxD,MAAa,mCACX,oCAAoC,sBAAsB;;;;AAK5D,MAAa,2BACX,4BAA4B,sBAAsB;;;;AAKpD,MAAa,oCACX,qCAAqC,sBAAsB;;;;AAK7D,MAAa,0BACX,2BAA2B,sBAAsB;;;;AAKnD,MAAa,8BACX,+BAA+B,sBAAsB;;;;AAKvD,MAAa,8BACX,+BAA+B,sBAAsB"}
@@ -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.legacy-esm.dayjs.d.ts.map
@@ -1,4 +1,4 @@
1
- import { a as getDatetimeValueProcessorOracle, d as getDatetimeRuleProcessorCEL, f as getDatetimeJsonLogicOperations, i as getDatetimeValueProcessorMySQL, l as getDatetimeRuleProcessorNL, n as getDatetimeValueProcessorANSI, o as getDatetimeValueProcessorPostgreSQL, p as isISOStringDateOnly, r as getDatetimeValueProcessorMSSQL, t as getDatetimeRuleProcessorSQL, u as getDatetimeRuleProcessorMongoDBQuery } from "./getDatetimeRuleProcessorSQL-CJGBV3Ug.js";
1
+ import { a as getDatetimeValueProcessorOracle, d as getDatetimeRuleProcessorMongoDBQuery, f as getDatetimeRuleProcessorCypher, h as isISOStringDateOnly, i as getDatetimeValueProcessorMySQL, m as getDatetimeJsonLogicOperations, n as getDatetimeValueProcessorANSI, o as getDatetimeValueProcessorPostgreSQL, p as getDatetimeRuleProcessorCEL, r as getDatetimeValueProcessorMSSQL, s as getDatetimeRuleProcessorSPARQL, t as getDatetimeRuleProcessorSQL, u as getDatetimeRuleProcessorNL } from "./getDatetimeRuleProcessorSQL-Bpt88k6a.js";
2
2
  import dayjs from "dayjs";
3
3
  //#region src/rqbDateTimeLibraryAPI.dayjs.ts
4
4
  /**
@@ -62,7 +62,15 @@ const datetimeRuleProcessorMongoDBQuery = getDatetimeRuleProcessorMongoDBQuery(r
62
62
  * {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "natural_language" format using Day.js
63
63
  */
64
64
  const datetimeRuleProcessorNL = getDatetimeRuleProcessorNL(rqbDateTimeLibraryAPI);
65
+ /**
66
+ * {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "cypher"/"gql" format using Day.js
67
+ */
68
+ const datetimeRuleProcessorCypher = getDatetimeRuleProcessorCypher(rqbDateTimeLibraryAPI);
69
+ /**
70
+ * {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "sparql" format using Day.js
71
+ */
72
+ const datetimeRuleProcessorSPARQL = getDatetimeRuleProcessorSPARQL(rqbDateTimeLibraryAPI);
65
73
  //#endregion
66
- export { datetimeRuleProcessorCEL, datetimeRuleProcessorMongoDBQuery, datetimeRuleProcessorNL, datetimeRuleProcessorSQL, datetimeValueProcessorANSI, datetimeValueProcessorMSSQL, datetimeValueProcessorMySQL, datetimeValueProcessorOracle, datetimeValueProcessorPostgreSQL, jsonLogicDateTimeOperations, rqbDateTimeLibraryAPI };
74
+ export { datetimeRuleProcessorCEL, datetimeRuleProcessorCypher, datetimeRuleProcessorMongoDBQuery, datetimeRuleProcessorNL, datetimeRuleProcessorSPARQL, datetimeRuleProcessorSQL, datetimeValueProcessorANSI, datetimeValueProcessorMSSQL, datetimeValueProcessorMySQL, datetimeValueProcessorOracle, datetimeValueProcessorPostgreSQL, jsonLogicDateTimeOperations, rqbDateTimeLibraryAPI };
67
75
 
68
76
  //# sourceMappingURL=react-querybuilder_datetime.legacy-esm.dayjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"react-querybuilder_datetime.legacy-esm.dayjs.js","names":[],"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,QAAQ,MAAM,EAAE,CAAC,OAAO,IAAI;CACxC,UAAU,GAAG,MAAM,MAAM,EAAE,CAAC,QAAQ,EAAE;CACtC,WAAW,GAAG,MAAM,MAAM,EAAE,CAAC,SAAS,EAAE;CACxC,SAAS,GAAG,MACV,MAAM,EAAE,CAAC,OAAO,GAAG,oBAAoB,EAAE,IAAI,oBAAoB,EAAE,GAAG,MAAM,KAAK;CACnF,UAAS,MAAK,MAAM,EAAE,CAAC,SAAS;CAChC,SAAQ,MAAK,MAAM,EAAE,CAAC,QAAQ;CAC9B,cAAa,MAAK;EAChB,MAAM,UAAU,MAAM,EAAE;AACxB,SAAO,QAAQ,SAAS,GAAG,QAAQ,aAAa,GAAG;;CAErD,sBAAqB,MAAK;EACxB,MAAM,UAAU,MAAM,EAAE;AACxB,SAAO,QAAQ,SAAS,GAAG,QAAQ,OAAO,aAAa,GAAG;;CAE7D;;;;;;ACED,MAAa,8BACX,+BAA+B,sBAAsB;;;;AAKvD,MAAa,2BACX,4BAA4B,sBAAsB;;;;AAIpD,MAAa,6BACX,8BAA8B,sBAAsB;;;;AAItD,MAAa,8BACX,+BAA+B,sBAAsB;;;;AAIvD,MAAa,8BACX,+BAA+B,sBAAsB;;;;AAIvD,MAAa,+BACX,gCAAgC,sBAAsB;;;;AAIxD,MAAa,mCACX,oCAAoC,sBAAsB;;;;AAK5D,MAAa,2BACX,4BAA4B,sBAAsB;;;;AAKpD,MAAa,oCACX,qCAAqC,sBAAsB;;;;AAK7D,MAAa,0BACX,2BAA2B,sBAAsB"}
1
+ {"version":3,"file":"react-querybuilder_datetime.legacy-esm.dayjs.js","names":[],"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,QAAQ,MAAM,EAAE,CAAC,OAAO,IAAI;CACxC,UAAU,GAAG,MAAM,MAAM,EAAE,CAAC,QAAQ,EAAE;CACtC,WAAW,GAAG,MAAM,MAAM,EAAE,CAAC,SAAS,EAAE;CACxC,SAAS,GAAG,MACV,MAAM,EAAE,CAAC,OAAO,GAAG,oBAAoB,EAAE,IAAI,oBAAoB,EAAE,GAAG,MAAM,KAAK;CACnF,UAAS,MAAK,MAAM,EAAE,CAAC,SAAS;CAChC,SAAQ,MAAK,MAAM,EAAE,CAAC,QAAQ;CAC9B,cAAa,MAAK;EAChB,MAAM,UAAU,MAAM,EAAE;AACxB,SAAO,QAAQ,SAAS,GAAG,QAAQ,aAAa,GAAG;;CAErD,sBAAqB,MAAK;EACxB,MAAM,UAAU,MAAM,EAAE;AACxB,SAAO,QAAQ,SAAS,GAAG,QAAQ,OAAO,aAAa,GAAG;;CAE7D;;;;;;ACID,MAAa,8BACX,+BAA+B,sBAAsB;;;;AAKvD,MAAa,2BACX,4BAA4B,sBAAsB;;;;AAIpD,MAAa,6BACX,8BAA8B,sBAAsB;;;;AAItD,MAAa,8BACX,+BAA+B,sBAAsB;;;;AAIvD,MAAa,8BACX,+BAA+B,sBAAsB;;;;AAIvD,MAAa,+BACX,gCAAgC,sBAAsB;;;;AAIxD,MAAa,mCACX,oCAAoC,sBAAsB;;;;AAK5D,MAAa,2BACX,4BAA4B,sBAAsB;;;;AAKpD,MAAa,oCACX,qCAAqC,sBAAsB;;;;AAK7D,MAAa,0BACX,2BAA2B,sBAAsB;;;;AAKnD,MAAa,8BACX,+BAA+B,sBAAsB;;;;AAKvD,MAAa,8BACX,+BAA+B,sBAAsB"}
@@ -1,4 +1,4 @@
1
- import { a as getDatetimeValueProcessorOracle, c as defaultDateTimeNLOperatorMap, d as getDatetimeRuleProcessorCEL, f as getDatetimeJsonLogicOperations, i as getDatetimeValueProcessorMySQL, l as getDatetimeRuleProcessorNL, m as processIsDateField, n as getDatetimeValueProcessorANSI, o as getDatetimeValueProcessorPostgreSQL, r as getDatetimeValueProcessorMSSQL, s as datetimeValueProcessorNL, t as getDatetimeRuleProcessorSQL, u as getDatetimeRuleProcessorMongoDBQuery } from "./getDatetimeRuleProcessorSQL-CJGBV3Ug.js";
1
+ import { a as getDatetimeValueProcessorOracle, c as datetimeValueProcessorNL, d as getDatetimeRuleProcessorMongoDBQuery, f as getDatetimeRuleProcessorCypher, g as processIsDateField, i as getDatetimeValueProcessorMySQL, l as defaultDateTimeNLOperatorMap, m as getDatetimeJsonLogicOperations, n as getDatetimeValueProcessorANSI, o as getDatetimeValueProcessorPostgreSQL, p as getDatetimeRuleProcessorCEL, r as getDatetimeValueProcessorMSSQL, s as getDatetimeRuleProcessorSPARQL, t as getDatetimeRuleProcessorSQL, u as getDatetimeRuleProcessorNL } from "./getDatetimeRuleProcessorSQL-Bpt88k6a.js";
2
2
  import { defaultRuleProcessorJSONata, defaultRuleProcessorJsonLogic, getQuotedFieldName, nullOrUndefinedOrEmpty, toArray } from "react-querybuilder";
3
3
  //#region src/datetimeRuleProcessorJsonLogic.ts
4
4
  const dateOperationMap = {
@@ -23,7 +23,7 @@ const dateOperationMap = {
23
23
  */
24
24
  const datetimeRuleProcessorJsonLogic = (rule, options) => {
25
25
  var _opts$context;
26
- const opts = options !== null && options !== void 0 ? options : ( /* istanbul ignore next */ {});
26
+ const opts = options !== null && options !== void 0 ? options : /* v8 ignore start -- @preserve */ {};
27
27
  if (!processIsDateField((_opts$context = opts.context) === null || _opts$context === void 0 ? void 0 : _opts$context.isDateField, rule, opts)) return defaultRuleProcessorJsonLogic(rule, opts);
28
28
  const { field, operator, value, valueSource } = rule;
29
29
  const valueIsField = valueSource === "field";
@@ -63,9 +63,9 @@ const negate = (clause, neg) => neg ? `$not(${clause})` : `${clause}`;
63
63
  * {@link @react-querybuilder/core!formatQuery formatQuery} with the "jsonata" format.
64
64
  */
65
65
  const getDatetimeRuleProcessorJSONata = (apiFns) => (rule, options) => {
66
- const opts = options !== null && options !== void 0 ? options : ( /* istanbul ignore next */ {});
66
+ const opts = options !== null && options !== void 0 ? options : /* v8 ignore start -- @preserve */ {};
67
67
  const { context = {} } = opts;
68
- // istanbul ignore next
68
+ // v8 ignore next
69
69
  const { quoteFieldNamesWith = ["", ""], fieldIdentifierSeparator = "" } = opts;
70
70
  const { field, operator, value, valueSource } = rule;
71
71
  if (!processIsDateField(context.isDateField, rule, opts)) return defaultRuleProcessorJSONata(rule, opts);
@@ -111,6 +111,6 @@ const getDatetimeRuleProcessorJSONata = (apiFns) => (rule, options) => {
111
111
  return defaultRuleProcessorJSONata(rule, opts);
112
112
  };
113
113
  //#endregion
114
- export { datetimeRuleProcessorJsonLogic, datetimeValueProcessorNL, defaultDateTimeNLOperatorMap, getDatetimeJsonLogicOperations, getDatetimeRuleProcessorCEL, getDatetimeRuleProcessorJSONata, getDatetimeRuleProcessorMongoDBQuery, getDatetimeRuleProcessorNL, getDatetimeRuleProcessorSQL, getDatetimeValueProcessorANSI, getDatetimeValueProcessorMSSQL, getDatetimeValueProcessorMySQL, getDatetimeValueProcessorOracle, getDatetimeValueProcessorPostgreSQL };
114
+ export { datetimeRuleProcessorJsonLogic, datetimeValueProcessorNL, defaultDateTimeNLOperatorMap, getDatetimeJsonLogicOperations, getDatetimeRuleProcessorCEL, getDatetimeRuleProcessorCypher, getDatetimeRuleProcessorJSONata, getDatetimeRuleProcessorMongoDBQuery, getDatetimeRuleProcessorNL, getDatetimeRuleProcessorSPARQL, getDatetimeRuleProcessorSQL, getDatetimeValueProcessorANSI, getDatetimeValueProcessorMSSQL, getDatetimeValueProcessorMySQL, getDatetimeValueProcessorOracle, getDatetimeValueProcessorPostgreSQL };
115
115
 
116
116
  //# sourceMappingURL=react-querybuilder_datetime.legacy-esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"react-querybuilder_datetime.legacy-esm.js","names":[],"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 ?? /* istanbul ignore next */ {};\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 ?? /* istanbul ignore next */ {};\n const { context = {} } = opts;\n\n // istanbul 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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"}
1
+ {"version":3,"file":"react-querybuilder_datetime.legacy-esm.js","names":[],"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.legacy-esm.jsdate.d.ts.map
@@ -1,4 +1,4 @@
1
- import { a as getDatetimeValueProcessorOracle, d as getDatetimeRuleProcessorCEL, f as getDatetimeJsonLogicOperations, i as getDatetimeValueProcessorMySQL, l as getDatetimeRuleProcessorNL, n as getDatetimeValueProcessorANSI, o as getDatetimeValueProcessorPostgreSQL, p as isISOStringDateOnly, r as getDatetimeValueProcessorMSSQL, t as getDatetimeRuleProcessorSQL, u as getDatetimeRuleProcessorMongoDBQuery } from "./getDatetimeRuleProcessorSQL-CJGBV3Ug.js";
1
+ import { a as getDatetimeValueProcessorOracle, d as getDatetimeRuleProcessorMongoDBQuery, f as getDatetimeRuleProcessorCypher, h as isISOStringDateOnly, i as getDatetimeValueProcessorMySQL, m as getDatetimeJsonLogicOperations, n as getDatetimeValueProcessorANSI, o as getDatetimeValueProcessorPostgreSQL, p as getDatetimeRuleProcessorCEL, r as getDatetimeValueProcessorMSSQL, s as getDatetimeRuleProcessorSPARQL, t as getDatetimeRuleProcessorSQL, u as getDatetimeRuleProcessorNL } from "./getDatetimeRuleProcessorSQL-Bpt88k6a.js";
2
2
  //#region src/rqbDateTimeLibraryAPI.jsdate.ts
3
3
  const invalidDate = /* @__PURE__ */ new Date(NaN);
4
4
  const dateRegExp = /^(\d{4})-(\d{2})-(\d{2})([T ](\d{2}):(\d{2}):(\d{2})(\.(\d{1,3}))?)?/;
@@ -100,7 +100,15 @@ const datetimeRuleProcessorMongoDBQuery = getDatetimeRuleProcessorMongoDBQuery(r
100
100
  * {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "natural_language" format using JavaScript `Date`
101
101
  */
102
102
  const datetimeRuleProcessorNL = getDatetimeRuleProcessorNL(rqbDateTimeLibraryAPI);
103
+ /**
104
+ * {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "cypher"/"gql" format using JavaScript `Date`
105
+ */
106
+ const datetimeRuleProcessorCypher = getDatetimeRuleProcessorCypher(rqbDateTimeLibraryAPI);
107
+ /**
108
+ * {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "sparql" format using JavaScript `Date`
109
+ */
110
+ const datetimeRuleProcessorSPARQL = getDatetimeRuleProcessorSPARQL(rqbDateTimeLibraryAPI);
103
111
  //#endregion
104
- export { datetimeRuleProcessorCEL, datetimeRuleProcessorMongoDBQuery, datetimeRuleProcessorNL, datetimeRuleProcessorSQL, datetimeValueProcessorANSI, datetimeValueProcessorMSSQL, datetimeValueProcessorMySQL, datetimeValueProcessorOracle, datetimeValueProcessorPostgreSQL, jsonLogicDateTimeOperations, rqbDateTimeLibraryAPI };
112
+ export { datetimeRuleProcessorCEL, datetimeRuleProcessorCypher, datetimeRuleProcessorMongoDBQuery, datetimeRuleProcessorNL, datetimeRuleProcessorSPARQL, datetimeRuleProcessorSQL, datetimeValueProcessorANSI, datetimeValueProcessorMSSQL, datetimeValueProcessorMySQL, datetimeValueProcessorOracle, datetimeValueProcessorPostgreSQL, jsonLogicDateTimeOperations, rqbDateTimeLibraryAPI };
105
113
 
106
114
  //# sourceMappingURL=react-querybuilder_datetime.legacy-esm.jsdate.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"react-querybuilder_datetime.legacy-esm.jsdate.js","names":[],"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,IAAW;AAExC,MAAM,aAAa;AAEnB,MAAM,UAAU,MAAqB;AACnC,KAAI,aAAa,KAAM,QAAO;CAE9B,MAAM,UAAU,WAAW,KAAK,EAAE;AAElC,KAAI,CAAC,QAAS,QAAO;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,QAAA,QAAA,QAAA,KAAA,IAAA,MAAO;EAAI,CAC3F,OAAO,QAAQ,CACf,IAAI,OAAO;CAEd,MAAM,aAAa,QAAQ;AAE3B,QAAO,KACH,IAAI,KAAK,KAAK,IAAI,MAAM,YAAY,KAAK,OAAO,SAAS,SAAS,GAAG,CAAC,GACtE,IAAI,KAAK,MAAM,YAAY,IAAI;;AAGrC,MAAM,WAAW,MAAqB;CACpC,MAAM,UAAU,OAAO,EAAE;AACzB,QAAO,mBAAmB,QAAQ,CAAC,OAAO,MAAM,QAAQ,SAAS,CAAC;;AAGpE,MAAM,uBAAuB,MAAqB;CAChD,MAAM,UAAU,OAAO,EAAE;AACzB,QAAO,QAAQ,QAAQ,GAAG,QAAQ,aAAa,CAAC,MAAM,GAAG,GAAG,GAAG;;;;;;;;AASjE,MAAa,wBAA+C;CAC1D,SAAQ,MAAK,OAAO,EAAE,CAAC,aAAa;CACpC,UAAU,GAAG,MAAM;EACjB,MAAM,QAAQ,OAAO,EAAE,CAAC,SAAS;EACjC,MAAM,QAAQ,OAAO,EAAE,CAAC,SAAS;AACjC,SAAO,CAAC,OAAO,MAAM,MAAM,IAAI,CAAC,OAAO,MAAM,MAAM,IAAI,QAAQ;;CAEjE,WAAW,GAAG,MAAM;EAClB,MAAM,QAAQ,OAAO,EAAE,CAAC,SAAS;EACjC,MAAM,QAAQ,OAAO,EAAE,CAAC,SAAS;AACjC,SAAO,CAAC,OAAO,MAAM,MAAM,IAAI,CAAC,OAAO,MAAM,MAAM,IAAI,QAAQ;;CAEjE,SAAS,GAAG,MAAM;EAChB,MAAM,UAAU,OAAO,EAAE;EACzB,MAAM,UAAU,OAAO,EAAE;AACzB,SAAO,oBAAoB,EAAE,IAAI,oBAAoB,EAAE,GACnD,oBAAoB,EAAE,KAAK,oBAAoB,EAAE,GACjD,QAAQ,SAAS,KAAK,QAAQ,SAAS;;CAE7C;CACA;CACA,cAAa,MAAK;EAChB,MAAM,UAAU,OAAO,EAAE;AACzB,SAAO,QAAQ,QAAQ,GAAG,QAAQ,aAAa,GAAG;;CAEpD;CACD;;;;;;AC3CD,MAAa,8BACX,+BAA+B,sBAAsB;;;;AAKvD,MAAa,2BACX,4BAA4B,sBAAsB;;;;AAIpD,MAAa,6BACX,8BAA8B,sBAAsB;;;;AAItD,MAAa,8BACX,+BAA+B,sBAAsB;;;;AAIvD,MAAa,8BACX,+BAA+B,sBAAsB;;;;AAIvD,MAAa,+BACX,gCAAgC,sBAAsB;;;;AAIxD,MAAa,mCACX,oCAAoC,sBAAsB;;;;AAK5D,MAAa,2BACX,4BAA4B,sBAAsB;;;;AAKpD,MAAa,oCACX,qCAAqC,sBAAsB;;;;AAK7D,MAAa,0BACX,2BAA2B,sBAAsB"}
1
+ {"version":3,"file":"react-querybuilder_datetime.legacy-esm.jsdate.js","names":[],"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,IAAW;AAExC,MAAM,aAAa;AAEnB,MAAM,UAAU,MAAqB;AACnC,KAAI,aAAa,KAAM,QAAO;CAE9B,MAAM,UAAU,WAAW,KAAK,EAAE;AAElC,KAAI,CAAC,QAAS,QAAO;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,QAAA,QAAA,QAAA,KAAA,IAAA,MAAO;EAAI,CAC3F,OAAO,QAAQ,CACf,IAAI,OAAO;CAEd,MAAM,aAAa,QAAQ;AAE3B,QAAO,KACH,IAAI,KAAK,KAAK,IAAI,MAAM,YAAY,KAAK,OAAO,SAAS,SAAS,GAAG,CAAC,GACtE,IAAI,KAAK,MAAM,YAAY,IAAI;;AAGrC,MAAM,WAAW,MAAqB;CACpC,MAAM,UAAU,OAAO,EAAE;AACzB,QAAO,mBAAmB,QAAQ,CAAC,OAAO,MAAM,QAAQ,SAAS,CAAC;;AAGpE,MAAM,uBAAuB,MAAqB;CAChD,MAAM,UAAU,OAAO,EAAE;AACzB,QAAO,QAAQ,QAAQ,GAAG,QAAQ,aAAa,CAAC,MAAM,GAAG,GAAG,GAAG;;;;;;;;AASjE,MAAa,wBAA+C;CAC1D,SAAQ,MAAK,OAAO,EAAE,CAAC,aAAa;CACpC,UAAU,GAAG,MAAM;EACjB,MAAM,QAAQ,OAAO,EAAE,CAAC,SAAS;EACjC,MAAM,QAAQ,OAAO,EAAE,CAAC,SAAS;AACjC,SAAO,CAAC,OAAO,MAAM,MAAM,IAAI,CAAC,OAAO,MAAM,MAAM,IAAI,QAAQ;;CAEjE,WAAW,GAAG,MAAM;EAClB,MAAM,QAAQ,OAAO,EAAE,CAAC,SAAS;EACjC,MAAM,QAAQ,OAAO,EAAE,CAAC,SAAS;AACjC,SAAO,CAAC,OAAO,MAAM,MAAM,IAAI,CAAC,OAAO,MAAM,MAAM,IAAI,QAAQ;;CAEjE,SAAS,GAAG,MAAM;EAChB,MAAM,UAAU,OAAO,EAAE;EACzB,MAAM,UAAU,OAAO,EAAE;AACzB,SAAO,oBAAoB,EAAE,IAAI,oBAAoB,EAAE,GACnD,oBAAoB,EAAE,KAAK,oBAAoB,EAAE,GACjD,QAAQ,SAAS,KAAK,QAAQ,SAAS;;CAE7C;CACA;CACA,cAAa,MAAK;EAChB,MAAM,UAAU,OAAO,EAAE;AACzB,SAAO,QAAQ,QAAQ,GAAG,QAAQ,aAAa,GAAG;;CAEpD;CACD;;;;;;ACzCD,MAAa,8BACX,+BAA+B,sBAAsB;;;;AAKvD,MAAa,2BACX,4BAA4B,sBAAsB;;;;AAIpD,MAAa,6BACX,8BAA8B,sBAAsB;;;;AAItD,MAAa,8BACX,+BAA+B,sBAAsB;;;;AAIvD,MAAa,8BACX,+BAA+B,sBAAsB;;;;AAIvD,MAAa,+BACX,gCAAgC,sBAAsB;;;;AAIxD,MAAa,mCACX,oCAAoC,sBAAsB;;;;AAK5D,MAAa,2BACX,4BAA4B,sBAAsB;;;;AAKpD,MAAa,oCACX,qCAAqC,sBAAsB;;;;AAK7D,MAAa,0BACX,2BAA2B,sBAAsB;;;;AAKnD,MAAa,8BACX,+BAA+B,sBAAsB;;;;AAKvD,MAAa,8BACX,+BAA+B,sBAAsB"}
@@ -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.legacy-esm.luxon.d.ts.map
@@ -1,4 +1,4 @@
1
- import { a as getDatetimeValueProcessorOracle, d as getDatetimeRuleProcessorCEL, f as getDatetimeJsonLogicOperations, i as getDatetimeValueProcessorMySQL, l as getDatetimeRuleProcessorNL, n as getDatetimeValueProcessorANSI, o as getDatetimeValueProcessorPostgreSQL, p as isISOStringDateOnly, r as getDatetimeValueProcessorMSSQL, t as getDatetimeRuleProcessorSQL, u as getDatetimeRuleProcessorMongoDBQuery } from "./getDatetimeRuleProcessorSQL-CJGBV3Ug.js";
1
+ import { a as getDatetimeValueProcessorOracle, d as getDatetimeRuleProcessorMongoDBQuery, f as getDatetimeRuleProcessorCypher, h as isISOStringDateOnly, i as getDatetimeValueProcessorMySQL, m as getDatetimeJsonLogicOperations, n as getDatetimeValueProcessorANSI, o as getDatetimeValueProcessorPostgreSQL, p as getDatetimeRuleProcessorCEL, r as getDatetimeValueProcessorMSSQL, s as getDatetimeRuleProcessorSPARQL, t as getDatetimeRuleProcessorSQL, u as getDatetimeRuleProcessorNL } from "./getDatetimeRuleProcessorSQL-Bpt88k6a.js";
2
2
  import { DateTime } from "luxon";
3
3
  //#region src/rqbDateTimeLibraryAPI.luxon.ts
4
4
  const toDateTime = (a) => typeof a === "string" ? DateTime.fromISO(a) : DateTime.fromJSDate(a);
@@ -64,7 +64,15 @@ const datetimeRuleProcessorMongoDBQuery = getDatetimeRuleProcessorMongoDBQuery(r
64
64
  * {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "natural_language" format using Luxon
65
65
  */
66
66
  const datetimeRuleProcessorNL = getDatetimeRuleProcessorNL(rqbDateTimeLibraryAPI);
67
+ /**
68
+ * {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "cypher"/"gql" format using Luxon
69
+ */
70
+ const datetimeRuleProcessorCypher = getDatetimeRuleProcessorCypher(rqbDateTimeLibraryAPI);
71
+ /**
72
+ * {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "sparql" format using Luxon
73
+ */
74
+ const datetimeRuleProcessorSPARQL = getDatetimeRuleProcessorSPARQL(rqbDateTimeLibraryAPI);
67
75
  //#endregion
68
- export { datetimeRuleProcessorCEL, datetimeRuleProcessorMongoDBQuery, datetimeRuleProcessorNL, datetimeRuleProcessorSQL, datetimeValueProcessorANSI, datetimeValueProcessorMSSQL, datetimeValueProcessorMySQL, datetimeValueProcessorOracle, datetimeValueProcessorPostgreSQL, jsonLogicDateTimeOperations, rqbDateTimeLibraryAPI };
76
+ export { datetimeRuleProcessorCEL, datetimeRuleProcessorCypher, datetimeRuleProcessorMongoDBQuery, datetimeRuleProcessorNL, datetimeRuleProcessorSPARQL, datetimeRuleProcessorSQL, datetimeValueProcessorANSI, datetimeValueProcessorMSSQL, datetimeValueProcessorMySQL, datetimeValueProcessorOracle, datetimeValueProcessorPostgreSQL, jsonLogicDateTimeOperations, rqbDateTimeLibraryAPI };
69
77
 
70
78
  //# sourceMappingURL=react-querybuilder_datetime.legacy-esm.luxon.js.map