@react-querybuilder/datetime 8.8.4 → 8.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (132) hide show
  1. package/dist/cjs/date-fns.d.ts +1 -0
  2. package/dist/cjs/dayjs.d.ts +1 -0
  3. package/dist/cjs/getDatetimeRuleProcessorSQL-D95jgDK6.js +2 -0
  4. package/dist/cjs/getDatetimeRuleProcessorSQL-D95jgDK6.js.map +1 -0
  5. package/dist/cjs/index.d.ts +1 -0
  6. package/dist/cjs/jsdate.d.ts +1 -0
  7. package/dist/cjs/luxon.d.ts +1 -0
  8. package/dist/cjs/react-querybuilder_datetime.cjs.development.d.ts +108 -0
  9. package/dist/cjs/react-querybuilder_datetime.cjs.development.date-fns.d.ts +53 -0
  10. package/dist/cjs/react-querybuilder_datetime.cjs.development.date-fns.js +12 -11
  11. package/dist/cjs/react-querybuilder_datetime.cjs.development.date-fns.js.map +1 -1
  12. package/dist/cjs/react-querybuilder_datetime.cjs.development.dayjs.d.ts +53 -0
  13. package/dist/cjs/react-querybuilder_datetime.cjs.development.dayjs.js +12 -11
  14. package/dist/cjs/react-querybuilder_datetime.cjs.development.dayjs.js.map +1 -1
  15. package/dist/cjs/react-querybuilder_datetime.cjs.development.js +5 -4
  16. package/dist/cjs/react-querybuilder_datetime.cjs.development.js.map +1 -1
  17. package/dist/cjs/react-querybuilder_datetime.cjs.development.jsdate.d.ts +56 -0
  18. package/dist/cjs/react-querybuilder_datetime.cjs.development.jsdate.js +10 -10
  19. package/dist/cjs/react-querybuilder_datetime.cjs.development.jsdate.js.map +1 -1
  20. package/dist/cjs/react-querybuilder_datetime.cjs.development.luxon.d.ts +53 -0
  21. package/dist/cjs/react-querybuilder_datetime.cjs.development.luxon.js +12 -11
  22. package/dist/cjs/react-querybuilder_datetime.cjs.development.luxon.js.map +1 -1
  23. package/dist/cjs/react-querybuilder_datetime.cjs.production.d.ts +108 -0
  24. package/dist/cjs/react-querybuilder_datetime.cjs.production.date-fns.d.ts +53 -0
  25. package/dist/cjs/react-querybuilder_datetime.cjs.production.date-fns.js +1 -1
  26. package/dist/cjs/react-querybuilder_datetime.cjs.production.date-fns.js.map +1 -1
  27. package/dist/cjs/react-querybuilder_datetime.cjs.production.dayjs.d.ts +53 -0
  28. package/dist/cjs/react-querybuilder_datetime.cjs.production.dayjs.js +1 -1
  29. package/dist/cjs/react-querybuilder_datetime.cjs.production.dayjs.js.map +1 -1
  30. package/dist/cjs/react-querybuilder_datetime.cjs.production.js +1 -1
  31. package/dist/cjs/react-querybuilder_datetime.cjs.production.js.map +1 -1
  32. package/dist/cjs/react-querybuilder_datetime.cjs.production.jsdate.d.ts +56 -0
  33. package/dist/cjs/react-querybuilder_datetime.cjs.production.jsdate.js +1 -1
  34. package/dist/cjs/react-querybuilder_datetime.cjs.production.jsdate.js.map +1 -1
  35. package/dist/cjs/react-querybuilder_datetime.cjs.production.luxon.d.ts +53 -0
  36. package/dist/cjs/react-querybuilder_datetime.cjs.production.luxon.js +1 -1
  37. package/dist/cjs/react-querybuilder_datetime.cjs.production.luxon.js.map +1 -1
  38. package/dist/cjs/types-QCQUGVZa.d.ts +1694 -0
  39. package/dist/{getDatetimeRuleProcessorSQL-CutYTD23.js → getDatetimeRuleProcessorSQL-CN80oEFK.js} +23 -29
  40. package/dist/getDatetimeRuleProcessorSQL-CN80oEFK.js.map +1 -0
  41. package/dist/{getDatetimeRuleProcessorSQL-CocyaiI5.mjs → getDatetimeRuleProcessorSQL-KYRPP9qd.mjs} +17 -23
  42. package/dist/getDatetimeRuleProcessorSQL-KYRPP9qd.mjs.map +1 -0
  43. package/dist/react-querybuilder_datetime.d.mts +108 -0
  44. package/dist/react-querybuilder_datetime.date-fns.d.mts +53 -0
  45. package/dist/react-querybuilder_datetime.date-fns.mjs +10 -10
  46. package/dist/react-querybuilder_datetime.date-fns.mjs.map +1 -1
  47. package/dist/react-querybuilder_datetime.dayjs.d.mts +53 -0
  48. package/dist/react-querybuilder_datetime.dayjs.mjs +10 -10
  49. package/dist/react-querybuilder_datetime.dayjs.mjs.map +1 -1
  50. package/dist/react-querybuilder_datetime.jsdate.d.mts +56 -0
  51. package/dist/react-querybuilder_datetime.jsdate.mjs +10 -10
  52. package/dist/react-querybuilder_datetime.jsdate.mjs.map +1 -1
  53. package/dist/react-querybuilder_datetime.legacy-esm.d.ts +108 -0
  54. package/dist/react-querybuilder_datetime.legacy-esm.date-fns.d.ts +53 -0
  55. package/dist/react-querybuilder_datetime.legacy-esm.date-fns.js +10 -10
  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 +53 -0
  58. package/dist/react-querybuilder_datetime.legacy-esm.dayjs.js +10 -10
  59. package/dist/react-querybuilder_datetime.legacy-esm.dayjs.js.map +1 -1
  60. package/dist/react-querybuilder_datetime.legacy-esm.js +4 -4
  61. package/dist/react-querybuilder_datetime.legacy-esm.js.map +1 -1
  62. package/dist/react-querybuilder_datetime.legacy-esm.jsdate.d.ts +56 -0
  63. package/dist/react-querybuilder_datetime.legacy-esm.jsdate.js +11 -11
  64. package/dist/react-querybuilder_datetime.legacy-esm.jsdate.js.map +1 -1
  65. package/dist/react-querybuilder_datetime.legacy-esm.luxon.d.ts +53 -0
  66. package/dist/react-querybuilder_datetime.legacy-esm.luxon.js +10 -10
  67. package/dist/react-querybuilder_datetime.legacy-esm.luxon.js.map +1 -1
  68. package/dist/react-querybuilder_datetime.luxon.d.mts +53 -0
  69. package/dist/react-querybuilder_datetime.luxon.mjs +10 -10
  70. package/dist/react-querybuilder_datetime.luxon.mjs.map +1 -1
  71. package/dist/react-querybuilder_datetime.mjs +3 -3
  72. package/dist/react-querybuilder_datetime.mjs.map +1 -1
  73. package/dist/react-querybuilder_datetime.production.d.mts +108 -0
  74. package/dist/react-querybuilder_datetime.production.date-fns.d.mts +53 -0
  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 +53 -0
  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 +56 -0
  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 +53 -0
  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/dist/types-CDEkL2M_.d.mts +1694 -0
  89. package/dist/types-EgfSemtR.d.ts +1694 -0
  90. package/package.json +23 -23
  91. package/dist/cjs/getDatetimeRuleProcessorSQL-npwUe9aM.js +0 -2
  92. package/dist/cjs/getDatetimeRuleProcessorSQL-npwUe9aM.js.map +0 -1
  93. package/dist/getDatetimeRuleProcessorSQL-CocyaiI5.mjs.map +0 -1
  94. package/dist/getDatetimeRuleProcessorSQL-CutYTD23.js.map +0 -1
  95. package/dist/types/QueryBuilderDateTime.d.ts +0 -4
  96. package/dist/types/datetimeRuleProcessorJsonLogic.d.ts +0 -10
  97. package/dist/types/getDatetimeJsonLogicOperations.d.ts +0 -6
  98. package/dist/types/getDatetimeRuleProcessorCEL.d.ts +0 -7
  99. package/dist/types/getDatetimeRuleProcessorJSONata.d.ts +0 -7
  100. package/dist/types/getDatetimeRuleProcessorMongoDBQuery.d.ts +0 -7
  101. package/dist/types/getDatetimeRuleProcessorNL.d.ts +0 -13
  102. package/dist/types/getDatetimeRuleProcessorSQL.d.ts +0 -32
  103. package/dist/types/index.d.ts +0 -8
  104. package/dist/types/index.date-fns.d.ts +0 -48
  105. package/dist/types/index.dayjs.d.ts +0 -48
  106. package/dist/types/index.jsdate.d.ts +0 -48
  107. package/dist/types/index.luxon.d.ts +0 -48
  108. package/dist/types/rqbDateTimeLibraryAPI.date-fns.d.ts +0 -5
  109. package/dist/types/rqbDateTimeLibraryAPI.dayjs.d.ts +0 -5
  110. package/dist/types/rqbDateTimeLibraryAPI.jsdate.d.ts +0 -8
  111. package/dist/types/rqbDateTimeLibraryAPI.luxon.d.ts +0 -5
  112. package/dist/types/types.d.ts +0 -111
  113. package/dist/types/utils.d.ts +0 -5
  114. package/dist/types-esm/QueryBuilderDateTime.d.mts +0 -4
  115. package/dist/types-esm/datetimeRuleProcessorJsonLogic.d.mts +0 -10
  116. package/dist/types-esm/getDatetimeJsonLogicOperations.d.mts +0 -6
  117. package/dist/types-esm/getDatetimeRuleProcessorCEL.d.mts +0 -7
  118. package/dist/types-esm/getDatetimeRuleProcessorJSONata.d.mts +0 -7
  119. package/dist/types-esm/getDatetimeRuleProcessorMongoDBQuery.d.mts +0 -7
  120. package/dist/types-esm/getDatetimeRuleProcessorNL.d.mts +0 -13
  121. package/dist/types-esm/getDatetimeRuleProcessorSQL.d.mts +0 -32
  122. package/dist/types-esm/index.d.mts +0 -8
  123. package/dist/types-esm/index.date-fns.d.mts +0 -48
  124. package/dist/types-esm/index.dayjs.d.mts +0 -48
  125. package/dist/types-esm/index.jsdate.d.mts +0 -48
  126. package/dist/types-esm/index.luxon.d.mts +0 -48
  127. package/dist/types-esm/rqbDateTimeLibraryAPI.date-fns.d.mts +0 -5
  128. package/dist/types-esm/rqbDateTimeLibraryAPI.dayjs.d.mts +0 -5
  129. package/dist/types-esm/rqbDateTimeLibraryAPI.jsdate.d.mts +0 -8
  130. package/dist/types-esm/rqbDateTimeLibraryAPI.luxon.d.mts +0 -5
  131. package/dist/types-esm/types.d.mts +0 -111
  132. package/dist/types-esm/utils.d.mts +0 -5
@@ -0,0 +1,53 @@
1
+ import { RQBDateTimeLibraryAPI, RQBJsonLogicDateTimeOperations, RuleProcessor, ValueProcessorByRule } from "./types-CDEkL2M_.mjs";
2
+
3
+ //#region src/rqbDateTimeLibraryAPI.date-fns.d.ts
4
+
5
+ /**
6
+ * {@link RQBDateTimeLibraryAPI} for date-fns
7
+ */
8
+ declare const rqbDateTimeLibraryAPI: RQBDateTimeLibraryAPI;
9
+ //#endregion
10
+ //#region src/index.date-fns.d.ts
11
+ /**
12
+ * Custom JsonLogic date/time operations using date-fns
13
+ */
14
+ declare const jsonLogicDateTimeOperations: RQBJsonLogicDateTimeOperations;
15
+ /**
16
+ * {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "sql" format using date-fns
17
+ */
18
+ declare const datetimeRuleProcessorSQL: RuleProcessor;
19
+ /**
20
+ * {@link @react-querybuilder/core!formatQuery formatQuery} value processor for "sql" format ("ansi" preset) using date-fns
21
+ */
22
+ declare const datetimeValueProcessorANSI: ValueProcessorByRule;
23
+ /**
24
+ * {@link @react-querybuilder/core!formatQuery formatQuery} value processor for "sql" format ("mssql" preset) using date-fns
25
+ */
26
+ declare const datetimeValueProcessorMSSQL: ValueProcessorByRule;
27
+ /**
28
+ * {@link @react-querybuilder/core!formatQuery formatQuery} value processor for "sql" format ("mysql" preset) using date-fns
29
+ */
30
+ declare const datetimeValueProcessorMySQL: ValueProcessorByRule;
31
+ /**
32
+ * {@link @react-querybuilder/core!formatQuery formatQuery} value processor for "sql" format ("oracle" preset) using date-fns
33
+ */
34
+ declare const datetimeValueProcessorOracle: ValueProcessorByRule;
35
+ /**
36
+ * {@link @react-querybuilder/core!formatQuery formatQuery} value processor for "sql" format ("postgresql" preset) using date-fns
37
+ */
38
+ declare const datetimeValueProcessorPostgreSQL: ValueProcessorByRule;
39
+ /**
40
+ * {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "cel" format using date-fns
41
+ */
42
+ declare const datetimeRuleProcessorCEL: ValueProcessorByRule;
43
+ /**
44
+ * {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "mongodb_query" format using date-fns
45
+ */
46
+ declare const datetimeRuleProcessorMongoDBQuery: ValueProcessorByRule;
47
+ /**
48
+ * {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "natural_language" format using date-fns
49
+ */
50
+ declare const datetimeRuleProcessorNL: ValueProcessorByRule;
51
+ //#endregion
52
+ export { datetimeRuleProcessorCEL, datetimeRuleProcessorMongoDBQuery, datetimeRuleProcessorNL, datetimeRuleProcessorSQL, datetimeValueProcessorANSI, datetimeValueProcessorMSSQL, datetimeValueProcessorMySQL, datetimeValueProcessorOracle, datetimeValueProcessorPostgreSQL, jsonLogicDateTimeOperations, rqbDateTimeLibraryAPI };
53
+ //# sourceMappingURL=react-querybuilder_datetime.date-fns.d.mts.map
@@ -1,4 +1,4 @@
1
- import { getDatetimeJsonLogicOperations, getDatetimeRuleProcessorCEL, getDatetimeRuleProcessorMongoDBQuery, getDatetimeRuleProcessorNL, getDatetimeRuleProcessorSQL, getDatetimeValueProcessorANSI, getDatetimeValueProcessorMSSQL, getDatetimeValueProcessorMySQL, getDatetimeValueProcessorOracle, getDatetimeValueProcessorPostgreSQL, isISOStringDateOnly } from "./getDatetimeRuleProcessorSQL-CocyaiI5.mjs";
1
+ import { getDatetimeJsonLogicOperations, getDatetimeRuleProcessorCEL, getDatetimeRuleProcessorMongoDBQuery, getDatetimeRuleProcessorNL, getDatetimeRuleProcessorSQL, getDatetimeValueProcessorANSI, getDatetimeValueProcessorMSSQL, getDatetimeValueProcessorMySQL, getDatetimeValueProcessorOracle, getDatetimeValueProcessorPostgreSQL, isISOStringDateOnly } from "./getDatetimeRuleProcessorSQL-KYRPP9qd.mjs";
2
2
  import { format, isAfter, isBefore, isSameDay, isValid, parseISO, toDate } from "date-fns";
3
3
 
4
4
  //#region src/rqbDateTimeLibraryAPI.date-fns.ts
@@ -35,39 +35,39 @@ const rqbDateTimeLibraryAPI = {
35
35
  */
36
36
  const jsonLogicDateTimeOperations = getDatetimeJsonLogicOperations(rqbDateTimeLibraryAPI);
37
37
  /**
38
- * {@link react-querybuilder!index.formatQuery formatQuery} rule processor for "sql" format using date-fns
38
+ * {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "sql" format using date-fns
39
39
  */
40
40
  const datetimeRuleProcessorSQL = getDatetimeRuleProcessorSQL(rqbDateTimeLibraryAPI);
41
41
  /**
42
- * {@link react-querybuilder!index.formatQuery formatQuery} value processor for "sql" format ("ansi" preset) using date-fns
42
+ * {@link @react-querybuilder/core!formatQuery formatQuery} value processor for "sql" format ("ansi" preset) using date-fns
43
43
  */
44
44
  const datetimeValueProcessorANSI = getDatetimeValueProcessorANSI(rqbDateTimeLibraryAPI);
45
45
  /**
46
- * {@link react-querybuilder!index.formatQuery formatQuery} value processor for "sql" format ("mssql" preset) using date-fns
46
+ * {@link @react-querybuilder/core!formatQuery formatQuery} value processor for "sql" format ("mssql" preset) using date-fns
47
47
  */
48
48
  const datetimeValueProcessorMSSQL = getDatetimeValueProcessorMSSQL(rqbDateTimeLibraryAPI);
49
49
  /**
50
- * {@link react-querybuilder!index.formatQuery formatQuery} value processor for "sql" format ("mysql" preset) using date-fns
50
+ * {@link @react-querybuilder/core!formatQuery formatQuery} value processor for "sql" format ("mysql" preset) using date-fns
51
51
  */
52
52
  const datetimeValueProcessorMySQL = getDatetimeValueProcessorMySQL(rqbDateTimeLibraryAPI);
53
53
  /**
54
- * {@link react-querybuilder!index.formatQuery formatQuery} value processor for "sql" format ("oracle" preset) using date-fns
54
+ * {@link @react-querybuilder/core!formatQuery formatQuery} value processor for "sql" format ("oracle" preset) using date-fns
55
55
  */
56
56
  const datetimeValueProcessorOracle = getDatetimeValueProcessorOracle(rqbDateTimeLibraryAPI);
57
57
  /**
58
- * {@link react-querybuilder!index.formatQuery formatQuery} value processor for "sql" format ("postgresql" preset) using date-fns
58
+ * {@link @react-querybuilder/core!formatQuery formatQuery} value processor for "sql" format ("postgresql" preset) using date-fns
59
59
  */
60
60
  const datetimeValueProcessorPostgreSQL = getDatetimeValueProcessorPostgreSQL(rqbDateTimeLibraryAPI);
61
61
  /**
62
- * {@link react-querybuilder!index.formatQuery formatQuery} rule processor for "cel" format using date-fns
62
+ * {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "cel" format using date-fns
63
63
  */
64
64
  const datetimeRuleProcessorCEL = getDatetimeRuleProcessorCEL(rqbDateTimeLibraryAPI);
65
65
  /**
66
- * {@link react-querybuilder!index.formatQuery formatQuery} rule processor for "mongodb_query" format using date-fns
66
+ * {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "mongodb_query" format using date-fns
67
67
  */
68
68
  const datetimeRuleProcessorMongoDBQuery = getDatetimeRuleProcessorMongoDBQuery(rqbDateTimeLibraryAPI);
69
69
  /**
70
- * {@link react-querybuilder!index.formatQuery formatQuery} rule processor for "natural_language" format using date-fns
70
+ * {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "natural_language" format using date-fns
71
71
  */
72
72
  const datetimeRuleProcessorNL = getDatetimeRuleProcessorNL(rqbDateTimeLibraryAPI);
73
73
 
@@ -1 +1 @@
1
- {"version":3,"file":"react-querybuilder_datetime.date-fns.mjs","names":["toDate: typeof dateFnsToDate","dateFnsToDate","rqbDateTimeLibraryAPI: RQBDateTimeLibraryAPI","toDate","jsonLogicDateTimeOperations: RQBJsonLogicDateTimeOperations","datetimeRuleProcessorSQL: RuleProcessor","datetimeValueProcessorANSI: ValueProcessorByRule","datetimeValueProcessorMSSQL: ValueProcessorByRule","datetimeValueProcessorMySQL: ValueProcessorByRule","datetimeValueProcessorOracle: ValueProcessorByRule","datetimeValueProcessorPostgreSQL: ValueProcessorByRule","datetimeRuleProcessorCEL: ValueProcessorByRule","datetimeRuleProcessorMongoDBQuery: ValueProcessorByRule","datetimeRuleProcessorNL: ValueProcessorByRule"],"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!index.formatQuery formatQuery} rule processor for \"sql\" format using date-fns\n */\nexport const datetimeRuleProcessorSQL: RuleProcessor =\n getDatetimeRuleProcessorSQL(rqbDateTimeLibraryAPI);\n/**\n * {@link react-querybuilder!index.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!index.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!index.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!index.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!index.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!index.formatQuery formatQuery} rule processor for \"cel\" format using date-fns\n */\nexport const datetimeRuleProcessorCEL: ValueProcessorByRule =\n getDatetimeRuleProcessorCEL(rqbDateTimeLibraryAPI);\n\n/**\n * {@link react-querybuilder!index.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!index.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,KAAKC,OAAc;AAC/F,MAAM,kBAAkB;;;;AAKxB,MAAaC,wBAA+C;CAC1D,SAAS,GAAG,QAAQ,OAAOC,SAAO,IAAI,IAAI,QAAQ,cAAc;CAChE;CACA;CACA,SAAS,GAAG,MAAM;EAChB,MAAM,UAAUA,SAAO;EACvB,MAAM,UAAUA,SAAO;AACvB,SAAO,oBAAoB,MAAM,oBAAoB,KACjD,UAAU,SAAS,WACnB,QAAQ,cAAc,QAAQ;;CAEpC,UAAS,MAAK,QAAQA,SAAO;CAC7B;CACA,cAAa,MAAK;EAChB,MAAM,UAAUA,SAAO;AACvB,SAAO,QAAQ,WAAW,QAAQ,gBAAgB;;CAEpD,sBAAqB,MAAK;EACxB,MAAM,UAAUA,SAAO;AACvB,SAAO,QAAQ,WAAW,OAAO,SAAS,mBAAmB;;;;;;;;;ACZjE,MAAaC,8BACX,+BAA+B;;;;AAKjC,MAAaC,2BACX,4BAA4B;;;;AAI9B,MAAaC,6BACX,8BAA8B;;;;AAIhC,MAAaC,8BACX,+BAA+B;;;;AAIjC,MAAaC,8BACX,+BAA+B;;;;AAIjC,MAAaC,+BACX,gCAAgC;;;;AAIlC,MAAaC,mCACX,oCAAoC;;;;AAKtC,MAAaC,2BACX,4BAA4B;;;;AAK9B,MAAaC,oCACX,qCAAqC;;;;AAKvC,MAAaC,0BACX,2BAA2B"}
1
+ {"version":3,"file":"react-querybuilder_datetime.date-fns.mjs","names":["toDate: typeof dateFnsToDate","dateFnsToDate","rqbDateTimeLibraryAPI: RQBDateTimeLibraryAPI","toDate","jsonLogicDateTimeOperations: RQBJsonLogicDateTimeOperations","datetimeRuleProcessorSQL: RuleProcessor","datetimeValueProcessorANSI: ValueProcessorByRule","datetimeValueProcessorMSSQL: ValueProcessorByRule","datetimeValueProcessorMySQL: ValueProcessorByRule","datetimeValueProcessorOracle: ValueProcessorByRule","datetimeValueProcessorPostgreSQL: ValueProcessorByRule","datetimeRuleProcessorCEL: ValueProcessorByRule","datetimeRuleProcessorMongoDBQuery: ValueProcessorByRule","datetimeRuleProcessorNL: ValueProcessorByRule"],"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,MAAaC,wBAA+C;CAC1D,SAAS,GAAG,QAAQ,OAAOC,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;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,MAAaC,8BACX,+BAA+B,sBAAsB;;;;AAKvD,MAAaC,2BACX,4BAA4B,sBAAsB;;;;AAIpD,MAAaC,6BACX,8BAA8B,sBAAsB;;;;AAItD,MAAaC,8BACX,+BAA+B,sBAAsB;;;;AAIvD,MAAaC,8BACX,+BAA+B,sBAAsB;;;;AAIvD,MAAaC,+BACX,gCAAgC,sBAAsB;;;;AAIxD,MAAaC,mCACX,oCAAoC,sBAAsB;;;;AAK5D,MAAaC,2BACX,4BAA4B,sBAAsB;;;;AAKpD,MAAaC,oCACX,qCAAqC,sBAAsB;;;;AAK7D,MAAaC,0BACX,2BAA2B,sBAAsB"}
@@ -0,0 +1,53 @@
1
+ import { RQBDateTimeLibraryAPI, RQBJsonLogicDateTimeOperations, RuleProcessor, ValueProcessorByRule } from "./types-CDEkL2M_.mjs";
2
+
3
+ //#region src/rqbDateTimeLibraryAPI.dayjs.d.ts
4
+
5
+ /**
6
+ * {@link RQBDateTimeLibraryAPI} for Day.js
7
+ */
8
+ declare const rqbDateTimeLibraryAPI: RQBDateTimeLibraryAPI;
9
+ //#endregion
10
+ //#region src/index.dayjs.d.ts
11
+ /**
12
+ * Custom JsonLogic date/time operations using Day.js
13
+ */
14
+ declare const jsonLogicDateTimeOperations: RQBJsonLogicDateTimeOperations;
15
+ /**
16
+ * {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "sql" format using Day.js
17
+ */
18
+ declare const datetimeRuleProcessorSQL: RuleProcessor;
19
+ /**
20
+ * {@link @react-querybuilder/core!formatQuery formatQuery} value processor for "sql" format ("ansi" preset) using Day.js
21
+ */
22
+ declare const datetimeValueProcessorANSI: ValueProcessorByRule;
23
+ /**
24
+ * {@link @react-querybuilder/core!formatQuery formatQuery} value processor for "sql" format ("mssql" preset) using Day.js
25
+ */
26
+ declare const datetimeValueProcessorMSSQL: ValueProcessorByRule;
27
+ /**
28
+ * {@link @react-querybuilder/core!formatQuery formatQuery} value processor for "sql" format ("mysql" preset) using Day.js
29
+ */
30
+ declare const datetimeValueProcessorMySQL: ValueProcessorByRule;
31
+ /**
32
+ * {@link @react-querybuilder/core!formatQuery formatQuery} value processor for "sql" format ("oracle" preset) using Day.js
33
+ */
34
+ declare const datetimeValueProcessorOracle: ValueProcessorByRule;
35
+ /**
36
+ * {@link @react-querybuilder/core!formatQuery formatQuery} value processor for "sql" format ("postgresql" preset) using Day.js
37
+ */
38
+ declare const datetimeValueProcessorPostgreSQL: ValueProcessorByRule;
39
+ /**
40
+ * {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "cel" format using Day.js
41
+ */
42
+ declare const datetimeRuleProcessorCEL: ValueProcessorByRule;
43
+ /**
44
+ * {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "mongodb_query" format using Day.js
45
+ */
46
+ declare const datetimeRuleProcessorMongoDBQuery: ValueProcessorByRule;
47
+ /**
48
+ * {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "natural_language" format using Day.js
49
+ */
50
+ declare const datetimeRuleProcessorNL: ValueProcessorByRule;
51
+ //#endregion
52
+ export { datetimeRuleProcessorCEL, datetimeRuleProcessorMongoDBQuery, datetimeRuleProcessorNL, datetimeRuleProcessorSQL, datetimeValueProcessorANSI, datetimeValueProcessorMSSQL, datetimeValueProcessorMySQL, datetimeValueProcessorOracle, datetimeValueProcessorPostgreSQL, jsonLogicDateTimeOperations, rqbDateTimeLibraryAPI };
53
+ //# sourceMappingURL=react-querybuilder_datetime.dayjs.d.mts.map
@@ -1,4 +1,4 @@
1
- import { getDatetimeJsonLogicOperations, getDatetimeRuleProcessorCEL, getDatetimeRuleProcessorMongoDBQuery, getDatetimeRuleProcessorNL, getDatetimeRuleProcessorSQL, getDatetimeValueProcessorANSI, getDatetimeValueProcessorMSSQL, getDatetimeValueProcessorMySQL, getDatetimeValueProcessorOracle, getDatetimeValueProcessorPostgreSQL, isISOStringDateOnly } from "./getDatetimeRuleProcessorSQL-CocyaiI5.mjs";
1
+ import { getDatetimeJsonLogicOperations, getDatetimeRuleProcessorCEL, getDatetimeRuleProcessorMongoDBQuery, getDatetimeRuleProcessorNL, getDatetimeRuleProcessorSQL, getDatetimeValueProcessorANSI, getDatetimeValueProcessorMSSQL, getDatetimeValueProcessorMySQL, getDatetimeValueProcessorOracle, getDatetimeValueProcessorPostgreSQL, isISOStringDateOnly } from "./getDatetimeRuleProcessorSQL-KYRPP9qd.mjs";
2
2
  import dayjs from "dayjs";
3
3
 
4
4
  //#region src/rqbDateTimeLibraryAPI.dayjs.ts
@@ -29,39 +29,39 @@ const rqbDateTimeLibraryAPI = {
29
29
  */
30
30
  const jsonLogicDateTimeOperations = getDatetimeJsonLogicOperations(rqbDateTimeLibraryAPI);
31
31
  /**
32
- * {@link react-querybuilder!index.formatQuery formatQuery} rule processor for "sql" format using Day.js
32
+ * {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "sql" format using Day.js
33
33
  */
34
34
  const datetimeRuleProcessorSQL = getDatetimeRuleProcessorSQL(rqbDateTimeLibraryAPI);
35
35
  /**
36
- * {@link react-querybuilder!index.formatQuery formatQuery} value processor for "sql" format ("ansi" preset) using Day.js
36
+ * {@link @react-querybuilder/core!formatQuery formatQuery} value processor for "sql" format ("ansi" preset) using Day.js
37
37
  */
38
38
  const datetimeValueProcessorANSI = getDatetimeValueProcessorANSI(rqbDateTimeLibraryAPI);
39
39
  /**
40
- * {@link react-querybuilder!index.formatQuery formatQuery} value processor for "sql" format ("mssql" preset) using Day.js
40
+ * {@link @react-querybuilder/core!formatQuery formatQuery} value processor for "sql" format ("mssql" preset) using Day.js
41
41
  */
42
42
  const datetimeValueProcessorMSSQL = getDatetimeValueProcessorMSSQL(rqbDateTimeLibraryAPI);
43
43
  /**
44
- * {@link react-querybuilder!index.formatQuery formatQuery} value processor for "sql" format ("mysql" preset) using Day.js
44
+ * {@link @react-querybuilder/core!formatQuery formatQuery} value processor for "sql" format ("mysql" preset) using Day.js
45
45
  */
46
46
  const datetimeValueProcessorMySQL = getDatetimeValueProcessorMySQL(rqbDateTimeLibraryAPI);
47
47
  /**
48
- * {@link react-querybuilder!index.formatQuery formatQuery} value processor for "sql" format ("oracle" preset) using Day.js
48
+ * {@link @react-querybuilder/core!formatQuery formatQuery} value processor for "sql" format ("oracle" preset) using Day.js
49
49
  */
50
50
  const datetimeValueProcessorOracle = getDatetimeValueProcessorOracle(rqbDateTimeLibraryAPI);
51
51
  /**
52
- * {@link react-querybuilder!index.formatQuery formatQuery} value processor for "sql" format ("postgresql" preset) using Day.js
52
+ * {@link @react-querybuilder/core!formatQuery formatQuery} value processor for "sql" format ("postgresql" preset) using Day.js
53
53
  */
54
54
  const datetimeValueProcessorPostgreSQL = getDatetimeValueProcessorPostgreSQL(rqbDateTimeLibraryAPI);
55
55
  /**
56
- * {@link react-querybuilder!index.formatQuery formatQuery} rule processor for "cel" format using Day.js
56
+ * {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "cel" format using Day.js
57
57
  */
58
58
  const datetimeRuleProcessorCEL = getDatetimeRuleProcessorCEL(rqbDateTimeLibraryAPI);
59
59
  /**
60
- * {@link react-querybuilder!index.formatQuery formatQuery} rule processor for "mongodb_query" format using Day.js
60
+ * {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "mongodb_query" format using Day.js
61
61
  */
62
62
  const datetimeRuleProcessorMongoDBQuery = getDatetimeRuleProcessorMongoDBQuery(rqbDateTimeLibraryAPI);
63
63
  /**
64
- * {@link react-querybuilder!index.formatQuery formatQuery} rule processor for "natural_language" format using Day.js
64
+ * {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "natural_language" format using Day.js
65
65
  */
66
66
  const datetimeRuleProcessorNL = getDatetimeRuleProcessorNL(rqbDateTimeLibraryAPI);
67
67
 
@@ -1 +1 @@
1
- {"version":3,"file":"react-querybuilder_datetime.dayjs.mjs","names":["rqbDateTimeLibraryAPI: RQBDateTimeLibraryAPI","jsonLogicDateTimeOperations: RQBJsonLogicDateTimeOperations","datetimeRuleProcessorSQL: RuleProcessor","datetimeValueProcessorANSI: ValueProcessorByRule","datetimeValueProcessorMSSQL: ValueProcessorByRule","datetimeValueProcessorMySQL: ValueProcessorByRule","datetimeValueProcessorOracle: ValueProcessorByRule","datetimeValueProcessorPostgreSQL: ValueProcessorByRule","datetimeRuleProcessorCEL: ValueProcessorByRule","datetimeRuleProcessorMongoDBQuery: ValueProcessorByRule","datetimeRuleProcessorNL: ValueProcessorByRule"],"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!index.formatQuery formatQuery} rule processor for \"sql\" format using Day.js\n */\nexport const datetimeRuleProcessorSQL: RuleProcessor =\n getDatetimeRuleProcessorSQL(rqbDateTimeLibraryAPI);\n/**\n * {@link react-querybuilder!index.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!index.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!index.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!index.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!index.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!index.formatQuery formatQuery} rule processor for \"cel\" format using Day.js\n */\nexport const datetimeRuleProcessorCEL: ValueProcessorByRule =\n getDatetimeRuleProcessorCEL(rqbDateTimeLibraryAPI);\n\n/**\n * {@link react-querybuilder!index.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!index.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,MAAaA,wBAA+C;CAC1D,SAAS,GAAG,QAAQ,MAAM,GAAG,OAAO;CACpC,UAAU,GAAG,MAAM,MAAM,GAAG,QAAQ;CACpC,WAAW,GAAG,MAAM,MAAM,GAAG,SAAS;CACtC,SAAS,GAAG,MACV,MAAM,GAAG,OAAO,GAAG,oBAAoB,MAAM,oBAAoB,KAAK,MAAM;CAC9E,UAAS,MAAK,MAAM,GAAG;CACvB,SAAQ,MAAK,MAAM,GAAG;CACtB,cAAa,MAAK;EAChB,MAAM,UAAU,MAAM;AACtB,SAAO,QAAQ,YAAY,QAAQ,gBAAgB;;CAErD,sBAAqB,MAAK;EACxB,MAAM,UAAU,MAAM;AACtB,SAAO,QAAQ,YAAY,QAAQ,OAAO,gBAAgB;;;;;;;;;ACI9D,MAAaC,8BACX,+BAA+B;;;;AAKjC,MAAaC,2BACX,4BAA4B;;;;AAI9B,MAAaC,6BACX,8BAA8B;;;;AAIhC,MAAaC,8BACX,+BAA+B;;;;AAIjC,MAAaC,8BACX,+BAA+B;;;;AAIjC,MAAaC,+BACX,gCAAgC;;;;AAIlC,MAAaC,mCACX,oCAAoC;;;;AAKtC,MAAaC,2BACX,4BAA4B;;;;AAK9B,MAAaC,oCACX,qCAAqC;;;;AAKvC,MAAaC,0BACX,2BAA2B"}
1
+ {"version":3,"file":"react-querybuilder_datetime.dayjs.mjs","names":["rqbDateTimeLibraryAPI: RQBDateTimeLibraryAPI","jsonLogicDateTimeOperations: RQBJsonLogicDateTimeOperations","datetimeRuleProcessorSQL: RuleProcessor","datetimeValueProcessorANSI: ValueProcessorByRule","datetimeValueProcessorMSSQL: ValueProcessorByRule","datetimeValueProcessorMySQL: ValueProcessorByRule","datetimeValueProcessorOracle: ValueProcessorByRule","datetimeValueProcessorPostgreSQL: ValueProcessorByRule","datetimeRuleProcessorCEL: ValueProcessorByRule","datetimeRuleProcessorMongoDBQuery: ValueProcessorByRule","datetimeRuleProcessorNL: ValueProcessorByRule"],"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,MAAaA,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,MAAaC,8BACX,+BAA+B,sBAAsB;;;;AAKvD,MAAaC,2BACX,4BAA4B,sBAAsB;;;;AAIpD,MAAaC,6BACX,8BAA8B,sBAAsB;;;;AAItD,MAAaC,8BACX,+BAA+B,sBAAsB;;;;AAIvD,MAAaC,8BACX,+BAA+B,sBAAsB;;;;AAIvD,MAAaC,+BACX,gCAAgC,sBAAsB;;;;AAIxD,MAAaC,mCACX,oCAAoC,sBAAsB;;;;AAK5D,MAAaC,2BACX,4BAA4B,sBAAsB;;;;AAKpD,MAAaC,oCACX,qCAAqC,sBAAsB;;;;AAK7D,MAAaC,0BACX,2BAA2B,sBAAsB"}
@@ -0,0 +1,56 @@
1
+ import { RQBDateTimeLibraryAPI, RQBJsonLogicDateTimeOperations, RuleProcessor, ValueProcessorByRule } from "./types-CDEkL2M_.mjs";
2
+
3
+ //#region src/rqbDateTimeLibraryAPI.jsdate.d.ts
4
+
5
+ /**
6
+ * {@link RQBDateTimeLibraryAPI} for JavaScript `Date`
7
+ *
8
+ * @deprecated This API will not be removed, but we recommend using one of the other
9
+ * {@link RQBDateTimeLibraryAPI}s based on a popular library instead.
10
+ */
11
+ declare const rqbDateTimeLibraryAPI: RQBDateTimeLibraryAPI;
12
+ //#endregion
13
+ //#region src/index.jsdate.d.ts
14
+ /**
15
+ * Custom JsonLogic date/time operations using JavaScript `Date`.
16
+ */
17
+ declare const jsonLogicDateTimeOperations: RQBJsonLogicDateTimeOperations;
18
+ /**
19
+ * {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "sql" format using JavaScript `Date`
20
+ */
21
+ declare const datetimeRuleProcessorSQL: RuleProcessor;
22
+ /**
23
+ * {@link @react-querybuilder/core!formatQuery formatQuery} value processor for "sql" format ("ansi" preset) using JavaScript `Date`
24
+ */
25
+ declare const datetimeValueProcessorANSI: ValueProcessorByRule;
26
+ /**
27
+ * {@link @react-querybuilder/core!formatQuery formatQuery} value processor for "sql" format ("mssql" preset) using JavaScript `Date`
28
+ */
29
+ declare const datetimeValueProcessorMSSQL: ValueProcessorByRule;
30
+ /**
31
+ * {@link @react-querybuilder/core!formatQuery formatQuery} value processor for "sql" format ("mysql" preset) using JavaScript `Date`
32
+ */
33
+ declare const datetimeValueProcessorMySQL: ValueProcessorByRule;
34
+ /**
35
+ * {@link @react-querybuilder/core!formatQuery formatQuery} value processor for "sql" format ("oracle" preset) using JavaScript `Date`
36
+ */
37
+ declare const datetimeValueProcessorOracle: ValueProcessorByRule;
38
+ /**
39
+ * {@link @react-querybuilder/core!formatQuery formatQuery} value processor for "sql" format ("postgresql" preset) using JavaScript `Date`
40
+ */
41
+ declare const datetimeValueProcessorPostgreSQL: ValueProcessorByRule;
42
+ /**
43
+ * {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "cel" format using JavaScript `Date`
44
+ */
45
+ declare const datetimeRuleProcessorCEL: RuleProcessor;
46
+ /**
47
+ * {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "mongodb_query" format using JavaScript `Date`
48
+ */
49
+ declare const datetimeRuleProcessorMongoDBQuery: RuleProcessor;
50
+ /**
51
+ * {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "natural_language" format using JavaScript `Date`
52
+ */
53
+ declare const datetimeRuleProcessorNL: ValueProcessorByRule;
54
+ //#endregion
55
+ export { datetimeRuleProcessorCEL, datetimeRuleProcessorMongoDBQuery, datetimeRuleProcessorNL, datetimeRuleProcessorSQL, datetimeValueProcessorANSI, datetimeValueProcessorMSSQL, datetimeValueProcessorMySQL, datetimeValueProcessorOracle, datetimeValueProcessorPostgreSQL, jsonLogicDateTimeOperations, rqbDateTimeLibraryAPI };
56
+ //# sourceMappingURL=react-querybuilder_datetime.jsdate.d.mts.map
@@ -1,4 +1,4 @@
1
- import { getDatetimeJsonLogicOperations, getDatetimeRuleProcessorCEL, getDatetimeRuleProcessorMongoDBQuery, getDatetimeRuleProcessorNL, getDatetimeRuleProcessorSQL, getDatetimeValueProcessorANSI, getDatetimeValueProcessorMSSQL, getDatetimeValueProcessorMySQL, getDatetimeValueProcessorOracle, getDatetimeValueProcessorPostgreSQL, isISOStringDateOnly } from "./getDatetimeRuleProcessorSQL-CocyaiI5.mjs";
1
+ import { getDatetimeJsonLogicOperations, getDatetimeRuleProcessorCEL, getDatetimeRuleProcessorMongoDBQuery, getDatetimeRuleProcessorNL, getDatetimeRuleProcessorSQL, getDatetimeValueProcessorANSI, getDatetimeValueProcessorMSSQL, getDatetimeValueProcessorMySQL, getDatetimeValueProcessorOracle, getDatetimeValueProcessorPostgreSQL, isISOStringDateOnly } from "./getDatetimeRuleProcessorSQL-KYRPP9qd.mjs";
2
2
 
3
3
  //#region src/rqbDateTimeLibraryAPI.jsdate.ts
4
4
  const invalidDate = /* @__PURE__ */ new Date(NaN);
@@ -67,39 +67,39 @@ const rqbDateTimeLibraryAPI = {
67
67
  */
68
68
  const jsonLogicDateTimeOperations = getDatetimeJsonLogicOperations(rqbDateTimeLibraryAPI);
69
69
  /**
70
- * {@link react-querybuilder!index.formatQuery formatQuery} rule processor for "sql" format using JavaScript `Date`
70
+ * {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "sql" format using JavaScript `Date`
71
71
  */
72
72
  const datetimeRuleProcessorSQL = getDatetimeRuleProcessorSQL(rqbDateTimeLibraryAPI);
73
73
  /**
74
- * {@link react-querybuilder!index.formatQuery formatQuery} value processor for "sql" format ("ansi" preset) using JavaScript `Date`
74
+ * {@link @react-querybuilder/core!formatQuery formatQuery} value processor for "sql" format ("ansi" preset) using JavaScript `Date`
75
75
  */
76
76
  const datetimeValueProcessorANSI = getDatetimeValueProcessorANSI(rqbDateTimeLibraryAPI);
77
77
  /**
78
- * {@link react-querybuilder!index.formatQuery formatQuery} value processor for "sql" format ("mssql" preset) using JavaScript `Date`
78
+ * {@link @react-querybuilder/core!formatQuery formatQuery} value processor for "sql" format ("mssql" preset) using JavaScript `Date`
79
79
  */
80
80
  const datetimeValueProcessorMSSQL = getDatetimeValueProcessorMSSQL(rqbDateTimeLibraryAPI);
81
81
  /**
82
- * {@link react-querybuilder!index.formatQuery formatQuery} value processor for "sql" format ("mysql" preset) using JavaScript `Date`
82
+ * {@link @react-querybuilder/core!formatQuery formatQuery} value processor for "sql" format ("mysql" preset) using JavaScript `Date`
83
83
  */
84
84
  const datetimeValueProcessorMySQL = getDatetimeValueProcessorMySQL(rqbDateTimeLibraryAPI);
85
85
  /**
86
- * {@link react-querybuilder!index.formatQuery formatQuery} value processor for "sql" format ("oracle" preset) using JavaScript `Date`
86
+ * {@link @react-querybuilder/core!formatQuery formatQuery} value processor for "sql" format ("oracle" preset) using JavaScript `Date`
87
87
  */
88
88
  const datetimeValueProcessorOracle = getDatetimeValueProcessorOracle(rqbDateTimeLibraryAPI);
89
89
  /**
90
- * {@link react-querybuilder!index.formatQuery formatQuery} value processor for "sql" format ("postgresql" preset) using JavaScript `Date`
90
+ * {@link @react-querybuilder/core!formatQuery formatQuery} value processor for "sql" format ("postgresql" preset) using JavaScript `Date`
91
91
  */
92
92
  const datetimeValueProcessorPostgreSQL = getDatetimeValueProcessorPostgreSQL(rqbDateTimeLibraryAPI);
93
93
  /**
94
- * {@link react-querybuilder!index.formatQuery formatQuery} rule processor for "cel" format using JavaScript `Date`
94
+ * {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "cel" format using JavaScript `Date`
95
95
  */
96
96
  const datetimeRuleProcessorCEL = getDatetimeRuleProcessorCEL(rqbDateTimeLibraryAPI);
97
97
  /**
98
- * {@link react-querybuilder!index.formatQuery formatQuery} rule processor for "mongodb_query" format using JavaScript `Date`
98
+ * {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "mongodb_query" format using JavaScript `Date`
99
99
  */
100
100
  const datetimeRuleProcessorMongoDBQuery = getDatetimeRuleProcessorMongoDBQuery(rqbDateTimeLibraryAPI);
101
101
  /**
102
- * {@link react-querybuilder!index.formatQuery formatQuery} rule processor for "natural_language" format using JavaScript `Date`
102
+ * {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "natural_language" format using JavaScript `Date`
103
103
  */
104
104
  const datetimeRuleProcessorNL = getDatetimeRuleProcessorNL(rqbDateTimeLibraryAPI);
105
105
 
@@ -1 +1 @@
1
- {"version":3,"file":"react-querybuilder_datetime.jsdate.mjs","names":["rqbDateTimeLibraryAPI: RQBDateTimeLibraryAPI","jsonLogicDateTimeOperations: RQBJsonLogicDateTimeOperations","datetimeRuleProcessorSQL: RuleProcessor","datetimeValueProcessorANSI: ValueProcessorByRule","datetimeValueProcessorMSSQL: ValueProcessorByRule","datetimeValueProcessorMySQL: ValueProcessorByRule","datetimeValueProcessorOracle: ValueProcessorByRule","datetimeValueProcessorPostgreSQL: ValueProcessorByRule","datetimeRuleProcessorCEL: RuleProcessor","datetimeRuleProcessorMongoDBQuery: RuleProcessor","datetimeRuleProcessorNL: ValueProcessorByRule"],"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!index.formatQuery formatQuery} rule processor for \"sql\" format using JavaScript `Date`\n */\nexport const datetimeRuleProcessorSQL: RuleProcessor =\n getDatetimeRuleProcessorSQL(rqbDateTimeLibraryAPI);\n/**\n * {@link react-querybuilder!index.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!index.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!index.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!index.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!index.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!index.formatQuery formatQuery} rule processor for \"cel\" format using JavaScript `Date`\n */\nexport const datetimeRuleProcessorCEL: RuleProcessor =\n getDatetimeRuleProcessorCEL(rqbDateTimeLibraryAPI);\n\n/**\n * {@link react-querybuilder!index.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!index.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;AAE7B,MAAM,aAAa;AAEnB,MAAM,UAAU,MAAqB;AACnC,KAAI,aAAa,KAAM,QAAO;CAE9B,MAAM,UAAU,WAAW,KAAK;AAEhC,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;GACvF,OAAO,SACP,IAAI;CAEP,MAAM,aAAa,QAAQ;AAE3B,QAAO,KACH,IAAI,KAAK,KAAK,IAAI,MAAM,YAAY,KAAK,OAAO,SAAS,SAAS,OAClE,IAAI,KAAK,MAAM,YAAY;;AAGjC,MAAM,WAAW,MAAqB;CACpC,MAAM,UAAU,OAAO;AACvB,QAAO,mBAAmB,QAAQ,CAAC,OAAO,MAAM,QAAQ;;AAG1D,MAAM,uBAAuB,MAAqB;CAChD,MAAM,UAAU,OAAO;AACvB,QAAO,QAAQ,WAAW,QAAQ,cAAc,MAAM,GAAG,MAAM;;;;;;;;AASjE,MAAaA,wBAA+C;CAC1D,SAAQ,MAAK,OAAO,GAAG;CACvB,UAAU,GAAG,MAAM;EACjB,MAAM,QAAQ,OAAO,GAAG;EACxB,MAAM,QAAQ,OAAO,GAAG;AACxB,SAAO,CAAC,OAAO,MAAM,UAAU,CAAC,OAAO,MAAM,UAAU,QAAQ;;CAEjE,WAAW,GAAG,MAAM;EAClB,MAAM,QAAQ,OAAO,GAAG;EACxB,MAAM,QAAQ,OAAO,GAAG;AACxB,SAAO,CAAC,OAAO,MAAM,UAAU,CAAC,OAAO,MAAM,UAAU,QAAQ;;CAEjE,SAAS,GAAG,MAAM;EAChB,MAAM,UAAU,OAAO;EACvB,MAAM,UAAU,OAAO;AACvB,SAAO,oBAAoB,MAAM,oBAAoB,KACjD,oBAAoB,OAAO,oBAAoB,KAC/C,QAAQ,cAAc,QAAQ;;CAEpC;CACA;CACA,cAAa,MAAK;EAChB,MAAM,UAAU,OAAO;AACvB,SAAO,QAAQ,WAAW,QAAQ,gBAAgB;;CAEpD;;;;;;;;AC1CF,MAAaC,8BACX,+BAA+B;;;;AAKjC,MAAaC,2BACX,4BAA4B;;;;AAI9B,MAAaC,6BACX,8BAA8B;;;;AAIhC,MAAaC,8BACX,+BAA+B;;;;AAIjC,MAAaC,8BACX,+BAA+B;;;;AAIjC,MAAaC,+BACX,gCAAgC;;;;AAIlC,MAAaC,mCACX,oCAAoC;;;;AAKtC,MAAaC,2BACX,4BAA4B;;;;AAK9B,MAAaC,oCACX,qCAAqC;;;;AAKvC,MAAaC,0BACX,2BAA2B"}
1
+ {"version":3,"file":"react-querybuilder_datetime.jsdate.mjs","names":["rqbDateTimeLibraryAPI: RQBDateTimeLibraryAPI","jsonLogicDateTimeOperations: RQBJsonLogicDateTimeOperations","datetimeRuleProcessorSQL: RuleProcessor","datetimeValueProcessorANSI: ValueProcessorByRule","datetimeValueProcessorMSSQL: ValueProcessorByRule","datetimeValueProcessorMySQL: ValueProcessorByRule","datetimeValueProcessorOracle: ValueProcessorByRule","datetimeValueProcessorPostgreSQL: ValueProcessorByRule","datetimeRuleProcessorCEL: RuleProcessor","datetimeRuleProcessorMongoDBQuery: RuleProcessor","datetimeRuleProcessorNL: ValueProcessorByRule"],"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,MAAaA,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,MAAaC,8BACX,+BAA+B,sBAAsB;;;;AAKvD,MAAaC,2BACX,4BAA4B,sBAAsB;;;;AAIpD,MAAaC,6BACX,8BAA8B,sBAAsB;;;;AAItD,MAAaC,8BACX,+BAA+B,sBAAsB;;;;AAIvD,MAAaC,8BACX,+BAA+B,sBAAsB;;;;AAIvD,MAAaC,+BACX,gCAAgC,sBAAsB;;;;AAIxD,MAAaC,mCACX,oCAAoC,sBAAsB;;;;AAK5D,MAAaC,2BACX,4BAA4B,sBAAsB;;;;AAKpD,MAAaC,oCACX,qCAAqC,sBAAsB;;;;AAK7D,MAAaC,0BACX,2BAA2B,sBAAsB"}
@@ -0,0 +1,108 @@
1
+ import { ExportOperatorMap, IsDateField, IsDateFieldFunction, RQBDateTimeJsonLogic, RQBDateTimeLibraryAPI, RQBJsonLogicDateAfter, RQBJsonLogicDateBefore, RQBJsonLogicDateBetween, RQBJsonLogicDateIn, RQBJsonLogicDateNotBetween, RQBJsonLogicDateNotIn, RQBJsonLogicDateNotOn, RQBJsonLogicDateOn, RQBJsonLogicDateOnOrAfter, RQBJsonLogicDateOnOrBefore, RQBJsonLogicDateTimeOperations, RuleProcessor, ValueProcessorByRule } from "./types-EgfSemtR.js";
2
+
3
+ //#region src/datetimeRuleProcessorJsonLogic.d.ts
4
+
5
+ /**
6
+ * Date/time rule processor for use by {@link @react-querybuilder/core!formatQuery formatQuery}
7
+ * with the "jsonlogic" format.
8
+ *
9
+ * Note: Unlike other date/time rule processors from this library, this function does
10
+ * not require a date/time library API. Instead, the date/time library API is used by
11
+ * {@link getDatetimeJsonLogicOperations} during the evaluation process.
12
+ */
13
+ declare const datetimeRuleProcessorJsonLogic: RuleProcessor;
14
+ //#endregion
15
+ //#region src/getDatetimeJsonLogicOperations.d.ts
16
+ /**
17
+ * Custom operations for use with JsonLogic objects generated by
18
+ * {@link datetimeRuleProcessorJsonLogic}.
19
+ */
20
+ declare const getDatetimeJsonLogicOperations: ({
21
+ isAfter,
22
+ isBefore,
23
+ isSame
24
+ }: RQBDateTimeLibraryAPI) => RQBJsonLogicDateTimeOperations;
25
+ //#endregion
26
+ //#region src/getDatetimeRuleProcessorCEL.d.ts
27
+ /**
28
+ * Generates a rule processor with date/time features for use by
29
+ * {@link @react-querybuilder/core!formatQuery formatQuery} with the "cel" format.
30
+ */
31
+ declare const getDatetimeRuleProcessorCEL: (apiFns: RQBDateTimeLibraryAPI) => RuleProcessor;
32
+ //#endregion
33
+ //#region src/getDatetimeRuleProcessorJSONata.d.ts
34
+ /**
35
+ * Generates a rule processor with date/time features for use by
36
+ * {@link @react-querybuilder/core!formatQuery formatQuery} with the "jsonata" format.
37
+ */
38
+ declare const getDatetimeRuleProcessorJSONata: (apiFns: RQBDateTimeLibraryAPI) => RuleProcessor;
39
+ //#endregion
40
+ //#region src/getDatetimeRuleProcessorMongoDBQuery.d.ts
41
+ /**
42
+ * Generates a rule processor with date/time features for use by
43
+ * {@link @react-querybuilder/core!formatQuery formatQuery} with the "mongodb_query" format.
44
+ */
45
+ declare const getDatetimeRuleProcessorMongoDBQuery: (apiFns: RQBDateTimeLibraryAPI) => RuleProcessor;
46
+ //#endregion
47
+ //#region src/getDatetimeRuleProcessorNL.d.ts
48
+ declare const defaultDateTimeNLOperatorMap: ExportOperatorMap;
49
+ /**
50
+ * Generates a value processor with date/time features for use by
51
+ * {@link @react-querybuilder/core!formatQuery formatQuery} with the "natural_language" format.
52
+ */
53
+ declare const datetimeValueProcessorNL: ValueProcessorByRule;
54
+ /**
55
+ * Generates a rule processor with date/time features for use by {@link @react-querybuilder/core!formatQuery formatQuery} with
56
+ * the "natural_language" format.
57
+ */
58
+ declare const getDatetimeRuleProcessorNL: (apiFns: RQBDateTimeLibraryAPI) => RuleProcessor;
59
+ //#endregion
60
+ //#region src/getDatetimeRuleProcessorSQL.d.ts
61
+ /**
62
+ * Generates a value processor with date/time features for use by
63
+ * {@link @react-querybuilder/core!formatQuery formatQuery} with the "sql" format and "ansi" preset.
64
+ */
65
+ declare const getDatetimeValueProcessorANSI: ({
66
+ toISOStringDateOnly,
67
+ toISOString
68
+ }: RQBDateTimeLibraryAPI) => ValueProcessorByRule;
69
+ /**
70
+ * Generates a value processor with date/time features for use by {@link @react-querybuilder/core!formatQuery formatQuery} with
71
+ * the "sql" format and "mssql" preset.
72
+ */
73
+ declare const getDatetimeValueProcessorMSSQL: ({
74
+ toISOStringDateOnly,
75
+ toISOString
76
+ }: RQBDateTimeLibraryAPI) => ValueProcessorByRule;
77
+ /**
78
+ * Generates a value processor with date/time features for use by {@link @react-querybuilder/core!formatQuery formatQuery} with
79
+ * the "sql" format and "mysql" preset.
80
+ */
81
+ declare const getDatetimeValueProcessorMySQL: ({
82
+ toISOStringDateOnly,
83
+ toISOString
84
+ }: RQBDateTimeLibraryAPI) => ValueProcessorByRule;
85
+ /**
86
+ * Generates a value processor with date/time features for use by {@link @react-querybuilder/core!formatQuery formatQuery} with
87
+ * the "sql" format and "oracle" preset.
88
+ */
89
+ declare const getDatetimeValueProcessorOracle: ({
90
+ toISOStringDateOnly,
91
+ toISOString
92
+ }: RQBDateTimeLibraryAPI) => ValueProcessorByRule;
93
+ /**
94
+ * Generates a value processor with date/time features for use by {@link @react-querybuilder/core!formatQuery formatQuery} with
95
+ * the "sql" format and "postgresql" preset.
96
+ */
97
+ declare const getDatetimeValueProcessorPostgreSQL: ({
98
+ toISOStringDateOnly,
99
+ toISOString
100
+ }: RQBDateTimeLibraryAPI) => ValueProcessorByRule;
101
+ /**
102
+ * Generates a rule processor with date/time features for use by {@link @react-querybuilder/core!formatQuery formatQuery} with
103
+ * the "sql" format.
104
+ */
105
+ declare const getDatetimeRuleProcessorSQL: (apiFns: RQBDateTimeLibraryAPI) => RuleProcessor;
106
+ //#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 };
108
+ //# sourceMappingURL=react-querybuilder_datetime.legacy-esm.d.ts.map
@@ -0,0 +1,53 @@
1
+ import { RQBDateTimeLibraryAPI, RQBJsonLogicDateTimeOperations, RuleProcessor, ValueProcessorByRule } from "./types-EgfSemtR.js";
2
+
3
+ //#region src/rqbDateTimeLibraryAPI.date-fns.d.ts
4
+
5
+ /**
6
+ * {@link RQBDateTimeLibraryAPI} for date-fns
7
+ */
8
+ declare const rqbDateTimeLibraryAPI: RQBDateTimeLibraryAPI;
9
+ //#endregion
10
+ //#region src/index.date-fns.d.ts
11
+ /**
12
+ * Custom JsonLogic date/time operations using date-fns
13
+ */
14
+ declare const jsonLogicDateTimeOperations: RQBJsonLogicDateTimeOperations;
15
+ /**
16
+ * {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "sql" format using date-fns
17
+ */
18
+ declare const datetimeRuleProcessorSQL: RuleProcessor;
19
+ /**
20
+ * {@link @react-querybuilder/core!formatQuery formatQuery} value processor for "sql" format ("ansi" preset) using date-fns
21
+ */
22
+ declare const datetimeValueProcessorANSI: ValueProcessorByRule;
23
+ /**
24
+ * {@link @react-querybuilder/core!formatQuery formatQuery} value processor for "sql" format ("mssql" preset) using date-fns
25
+ */
26
+ declare const datetimeValueProcessorMSSQL: ValueProcessorByRule;
27
+ /**
28
+ * {@link @react-querybuilder/core!formatQuery formatQuery} value processor for "sql" format ("mysql" preset) using date-fns
29
+ */
30
+ declare const datetimeValueProcessorMySQL: ValueProcessorByRule;
31
+ /**
32
+ * {@link @react-querybuilder/core!formatQuery formatQuery} value processor for "sql" format ("oracle" preset) using date-fns
33
+ */
34
+ declare const datetimeValueProcessorOracle: ValueProcessorByRule;
35
+ /**
36
+ * {@link @react-querybuilder/core!formatQuery formatQuery} value processor for "sql" format ("postgresql" preset) using date-fns
37
+ */
38
+ declare const datetimeValueProcessorPostgreSQL: ValueProcessorByRule;
39
+ /**
40
+ * {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "cel" format using date-fns
41
+ */
42
+ declare const datetimeRuleProcessorCEL: ValueProcessorByRule;
43
+ /**
44
+ * {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "mongodb_query" format using date-fns
45
+ */
46
+ declare const datetimeRuleProcessorMongoDBQuery: ValueProcessorByRule;
47
+ /**
48
+ * {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "natural_language" format using date-fns
49
+ */
50
+ declare const datetimeRuleProcessorNL: ValueProcessorByRule;
51
+ //#endregion
52
+ export { datetimeRuleProcessorCEL, datetimeRuleProcessorMongoDBQuery, datetimeRuleProcessorNL, datetimeRuleProcessorSQL, datetimeValueProcessorANSI, datetimeValueProcessorMSSQL, datetimeValueProcessorMySQL, datetimeValueProcessorOracle, datetimeValueProcessorPostgreSQL, jsonLogicDateTimeOperations, rqbDateTimeLibraryAPI };
53
+ //# sourceMappingURL=react-querybuilder_datetime.legacy-esm.date-fns.d.ts.map