@react-querybuilder/datetime 8.8.3 → 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 (134) 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 +82 -775
  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 +76 -785
  14. package/dist/cjs/react-querybuilder_datetime.cjs.development.dayjs.js.map +1 -1
  15. package/dist/cjs/react-querybuilder_datetime.cjs.development.js +125 -934
  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 +113 -834
  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 +78 -779
  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 -6
  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 -6
  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 -7
  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 -7
  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 -6
  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-CN80oEFK.js +386 -0
  40. package/dist/getDatetimeRuleProcessorSQL-CN80oEFK.js.map +1 -0
  41. package/dist/getDatetimeRuleProcessorSQL-KYRPP9qd.mjs +367 -0
  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 +72 -57
  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 +66 -57
  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 +102 -114
  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 +72 -57
  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 +66 -57
  59. package/dist/react-querybuilder_datetime.legacy-esm.dayjs.js.map +1 -1
  60. package/dist/react-querybuilder_datetime.legacy-esm.js +113 -215
  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 +102 -114
  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 +68 -61
  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 +68 -61
  70. package/dist/react-querybuilder_datetime.luxon.mjs.map +1 -1
  71. package/dist/react-querybuilder_datetime.mjs +112 -215
  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 -2
  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 -2
  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 +24 -24
  91. package/dist/chunk-SLTJVKUE.mjs +0 -7
  92. package/dist/chunk-SLTJVKUE.mjs.map +0 -1
  93. package/dist/chunk-ZLH5EH6W.mjs +0 -713
  94. package/dist/chunk-ZLH5EH6W.mjs.map +0 -1
  95. package/dist/chunk-ZS6AX35I.js +0 -738
  96. package/dist/chunk-ZS6AX35I.js.map +0 -1
  97. package/dist/types/QueryBuilderDateTime.d.ts +0 -4
  98. package/dist/types/datetimeRuleProcessorJsonLogic.d.ts +0 -10
  99. package/dist/types/getDatetimeJsonLogicOperations.d.ts +0 -6
  100. package/dist/types/getDatetimeRuleProcessorCEL.d.ts +0 -7
  101. package/dist/types/getDatetimeRuleProcessorJSONata.d.ts +0 -7
  102. package/dist/types/getDatetimeRuleProcessorMongoDBQuery.d.ts +0 -7
  103. package/dist/types/getDatetimeRuleProcessorNL.d.ts +0 -13
  104. package/dist/types/getDatetimeRuleProcessorSQL.d.ts +0 -32
  105. package/dist/types/index.d.ts +0 -8
  106. package/dist/types/index.date-fns.d.ts +0 -48
  107. package/dist/types/index.dayjs.d.ts +0 -48
  108. package/dist/types/index.jsdate.d.ts +0 -48
  109. package/dist/types/index.luxon.d.ts +0 -48
  110. package/dist/types/rqbDateTimeLibraryAPI.date-fns.d.ts +0 -5
  111. package/dist/types/rqbDateTimeLibraryAPI.dayjs.d.ts +0 -5
  112. package/dist/types/rqbDateTimeLibraryAPI.jsdate.d.ts +0 -8
  113. package/dist/types/rqbDateTimeLibraryAPI.luxon.d.ts +0 -5
  114. package/dist/types/types.d.ts +0 -111
  115. package/dist/types/utils.d.ts +0 -5
  116. package/dist/types-esm/QueryBuilderDateTime.d.mts +0 -4
  117. package/dist/types-esm/datetimeRuleProcessorJsonLogic.d.mts +0 -10
  118. package/dist/types-esm/getDatetimeJsonLogicOperations.d.mts +0 -6
  119. package/dist/types-esm/getDatetimeRuleProcessorCEL.d.mts +0 -7
  120. package/dist/types-esm/getDatetimeRuleProcessorJSONata.d.mts +0 -7
  121. package/dist/types-esm/getDatetimeRuleProcessorMongoDBQuery.d.mts +0 -7
  122. package/dist/types-esm/getDatetimeRuleProcessorNL.d.mts +0 -13
  123. package/dist/types-esm/getDatetimeRuleProcessorSQL.d.mts +0 -32
  124. package/dist/types-esm/index.d.mts +0 -8
  125. package/dist/types-esm/index.date-fns.d.mts +0 -48
  126. package/dist/types-esm/index.dayjs.d.mts +0 -48
  127. package/dist/types-esm/index.jsdate.d.mts +0 -48
  128. package/dist/types-esm/index.luxon.d.mts +0 -48
  129. package/dist/types-esm/rqbDateTimeLibraryAPI.date-fns.d.mts +0 -5
  130. package/dist/types-esm/rqbDateTimeLibraryAPI.dayjs.d.mts +0 -5
  131. package/dist/types-esm/rqbDateTimeLibraryAPI.jsdate.d.mts +0 -8
  132. package/dist/types-esm/rqbDateTimeLibraryAPI.luxon.d.mts +0 -5
  133. package/dist/types-esm/types.d.mts +0 -111
  134. package/dist/types-esm/utils.d.mts +0 -5
@@ -1,7 +0,0 @@
1
- import type { RuleProcessor } from "react-querybuilder";
2
- import type { RQBDateTimeLibraryAPI } from "./types.mjs";
3
- /**
4
- * Generates a rule processor with date/time features for use by
5
- * {@link react-querybuilder!index.formatQuery formatQuery} with the "jsonata" format.
6
- */
7
- export declare const getDatetimeRuleProcessorJSONata: (apiFns: RQBDateTimeLibraryAPI) => RuleProcessor;
@@ -1,7 +0,0 @@
1
- import type { RuleProcessor } from "react-querybuilder";
2
- import type { RQBDateTimeLibraryAPI } from "./types.mjs";
3
- /**
4
- * Generates a rule processor with date/time features for use by
5
- * {@link react-querybuilder!index.formatQuery formatQuery} with the "mongodb_query" format.
6
- */
7
- export declare const getDatetimeRuleProcessorMongoDBQuery: (apiFns: RQBDateTimeLibraryAPI) => RuleProcessor;
@@ -1,13 +0,0 @@
1
- import type { ExportOperatorMap, RuleProcessor, ValueProcessorByRule } from "react-querybuilder";
2
- import type { RQBDateTimeLibraryAPI } from "./types.mjs";
3
- export declare const defaultDateTimeNLOperatorMap: ExportOperatorMap;
4
- /**
5
- * Generates a value processor with date/time features for use by
6
- * {@link react-querybuilder!index.formatQuery formatQuery} with the "natural_language" format.
7
- */
8
- export declare const datetimeValueProcessorNL: ValueProcessorByRule;
9
- /**
10
- * Generates a rule processor with date/time features for use by {@link react-querybuilder!index.formatQuery formatQuery} with
11
- * the "natural_language" format.
12
- */
13
- export declare const getDatetimeRuleProcessorNL: (apiFns: RQBDateTimeLibraryAPI) => RuleProcessor;
@@ -1,32 +0,0 @@
1
- import type { RuleProcessor, ValueProcessorByRule } from "react-querybuilder";
2
- import type { RQBDateTimeLibraryAPI } from "./types.mjs";
3
- /**
4
- * Generates a value processor with date/time features for use by
5
- * {@link react-querybuilder!index.formatQuery formatQuery} with the "sql" format and "ansi" preset.
6
- */
7
- export declare const getDatetimeValueProcessorANSI: ({ toISOStringDateOnly, toISOString }: RQBDateTimeLibraryAPI) => ValueProcessorByRule;
8
- /**
9
- * Generates a value processor with date/time features for use by {@link react-querybuilder!index.formatQuery formatQuery} with
10
- * the "sql" format and "mssql" preset.
11
- */
12
- export declare const getDatetimeValueProcessorMSSQL: ({ toISOStringDateOnly, toISOString }: RQBDateTimeLibraryAPI) => ValueProcessorByRule;
13
- /**
14
- * Generates a value processor with date/time features for use by {@link react-querybuilder!index.formatQuery formatQuery} with
15
- * the "sql" format and "mysql" preset.
16
- */
17
- export declare const getDatetimeValueProcessorMySQL: ({ toISOStringDateOnly, toISOString }: RQBDateTimeLibraryAPI) => ValueProcessorByRule;
18
- /**
19
- * Generates a value processor with date/time features for use by {@link react-querybuilder!index.formatQuery formatQuery} with
20
- * the "sql" format and "oracle" preset.
21
- */
22
- export declare const getDatetimeValueProcessorOracle: ({ toISOStringDateOnly, toISOString }: RQBDateTimeLibraryAPI) => ValueProcessorByRule;
23
- /**
24
- * Generates a value processor with date/time features for use by {@link react-querybuilder!index.formatQuery formatQuery} with
25
- * the "sql" format and "postgresql" preset.
26
- */
27
- export declare const getDatetimeValueProcessorPostgreSQL: ({ toISOStringDateOnly, toISOString }: RQBDateTimeLibraryAPI) => ValueProcessorByRule;
28
- /**
29
- * Generates a rule processor with date/time features for use by {@link react-querybuilder!index.formatQuery formatQuery} with
30
- * the "sql" format.
31
- */
32
- export declare const getDatetimeRuleProcessorSQL: (apiFns: RQBDateTimeLibraryAPI) => RuleProcessor;
@@ -1,8 +0,0 @@
1
- export * from "./datetimeRuleProcessorJsonLogic.mjs";
2
- export * from "./getDatetimeJsonLogicOperations.mjs";
3
- export * from "./getDatetimeRuleProcessorCEL.mjs";
4
- export * from "./getDatetimeRuleProcessorJSONata.mjs";
5
- export * from "./getDatetimeRuleProcessorMongoDBQuery.mjs";
6
- export * from "./getDatetimeRuleProcessorNL.mjs";
7
- export * from "./getDatetimeRuleProcessorSQL.mjs";
8
- export * from "./types.mjs";
@@ -1,48 +0,0 @@
1
- /**
2
- * Import from `"@react-querybuilder/datetime/date-fns"` for enhanced date/time support using [date-fns](https://date-fns.org/).
3
- *
4
- * @module date-fns
5
- */
6
- import type { RuleProcessor, ValueProcessorByRule } from "react-querybuilder";
7
- import type { RQBJsonLogicDateTimeOperations } from "./types.mjs";
8
- /**
9
- * Custom JsonLogic date/time operations using date-fns
10
- */
11
- export declare const jsonLogicDateTimeOperations: RQBJsonLogicDateTimeOperations;
12
- /**
13
- * {@link react-querybuilder!index.formatQuery formatQuery} rule processor for "sql" format using date-fns
14
- */
15
- export declare const datetimeRuleProcessorSQL: RuleProcessor;
16
- /**
17
- * {@link react-querybuilder!index.formatQuery formatQuery} value processor for "sql" format ("ansi" preset) using date-fns
18
- */
19
- export declare const datetimeValueProcessorANSI: ValueProcessorByRule;
20
- /**
21
- * {@link react-querybuilder!index.formatQuery formatQuery} value processor for "sql" format ("mssql" preset) using date-fns
22
- */
23
- export declare const datetimeValueProcessorMSSQL: ValueProcessorByRule;
24
- /**
25
- * {@link react-querybuilder!index.formatQuery formatQuery} value processor for "sql" format ("mysql" preset) using date-fns
26
- */
27
- export declare const datetimeValueProcessorMySQL: ValueProcessorByRule;
28
- /**
29
- * {@link react-querybuilder!index.formatQuery formatQuery} value processor for "sql" format ("oracle" preset) using date-fns
30
- */
31
- export declare const datetimeValueProcessorOracle: ValueProcessorByRule;
32
- /**
33
- * {@link react-querybuilder!index.formatQuery formatQuery} value processor for "sql" format ("postgresql" preset) using date-fns
34
- */
35
- export declare const datetimeValueProcessorPostgreSQL: ValueProcessorByRule;
36
- /**
37
- * {@link react-querybuilder!index.formatQuery formatQuery} rule processor for "cel" format using date-fns
38
- */
39
- export declare const datetimeRuleProcessorCEL: ValueProcessorByRule;
40
- /**
41
- * {@link react-querybuilder!index.formatQuery formatQuery} rule processor for "mongodb_query" format using date-fns
42
- */
43
- export declare const datetimeRuleProcessorMongoDBQuery: ValueProcessorByRule;
44
- /**
45
- * {@link react-querybuilder!index.formatQuery formatQuery} rule processor for "natural_language" format using date-fns
46
- */
47
- export declare const datetimeRuleProcessorNL: ValueProcessorByRule;
48
- export * from "./rqbDateTimeLibraryAPI.date-fns.mjs";
@@ -1,48 +0,0 @@
1
- /**
2
- * Import from `"@react-querybuilder/datetime/dayjs"` for enhanced date/time support using [Day.js](https://day.js.org/).
3
- *
4
- * @module dayjs
5
- */
6
- import type { RuleProcessor, ValueProcessorByRule } from "react-querybuilder";
7
- import type { RQBJsonLogicDateTimeOperations } from "./types.mjs";
8
- /**
9
- * Custom JsonLogic date/time operations using Day.js
10
- */
11
- export declare const jsonLogicDateTimeOperations: RQBJsonLogicDateTimeOperations;
12
- /**
13
- * {@link react-querybuilder!index.formatQuery formatQuery} rule processor for "sql" format using Day.js
14
- */
15
- export declare const datetimeRuleProcessorSQL: RuleProcessor;
16
- /**
17
- * {@link react-querybuilder!index.formatQuery formatQuery} value processor for "sql" format ("ansi" preset) using Day.js
18
- */
19
- export declare const datetimeValueProcessorANSI: ValueProcessorByRule;
20
- /**
21
- * {@link react-querybuilder!index.formatQuery formatQuery} value processor for "sql" format ("mssql" preset) using Day.js
22
- */
23
- export declare const datetimeValueProcessorMSSQL: ValueProcessorByRule;
24
- /**
25
- * {@link react-querybuilder!index.formatQuery formatQuery} value processor for "sql" format ("mysql" preset) using Day.js
26
- */
27
- export declare const datetimeValueProcessorMySQL: ValueProcessorByRule;
28
- /**
29
- * {@link react-querybuilder!index.formatQuery formatQuery} value processor for "sql" format ("oracle" preset) using Day.js
30
- */
31
- export declare const datetimeValueProcessorOracle: ValueProcessorByRule;
32
- /**
33
- * {@link react-querybuilder!index.formatQuery formatQuery} value processor for "sql" format ("postgresql" preset) using Day.js
34
- */
35
- export declare const datetimeValueProcessorPostgreSQL: ValueProcessorByRule;
36
- /**
37
- * {@link react-querybuilder!index.formatQuery formatQuery} rule processor for "cel" format using Day.js
38
- */
39
- export declare const datetimeRuleProcessorCEL: ValueProcessorByRule;
40
- /**
41
- * {@link react-querybuilder!index.formatQuery formatQuery} rule processor for "mongodb_query" format using Day.js
42
- */
43
- export declare const datetimeRuleProcessorMongoDBQuery: ValueProcessorByRule;
44
- /**
45
- * {@link react-querybuilder!index.formatQuery formatQuery} rule processor for "natural_language" format using Day.js
46
- */
47
- export declare const datetimeRuleProcessorNL: ValueProcessorByRule;
48
- export * from "./rqbDateTimeLibraryAPI.dayjs.mjs";
@@ -1,48 +0,0 @@
1
- /**
2
- * Import from `"@react-querybuilder/datetime/jsdate"` for enhanced date/time support using a custom JavaScript `Date`-based library.
3
- *
4
- * @module jsdate
5
- */
6
- import type { RuleProcessor, ValueProcessorByRule } from "react-querybuilder";
7
- import type { RQBJsonLogicDateTimeOperations } from "./types.mjs";
8
- /**
9
- * Custom JsonLogic date/time operations using JavaScript `Date`.
10
- */
11
- export declare const jsonLogicDateTimeOperations: RQBJsonLogicDateTimeOperations;
12
- /**
13
- * {@link react-querybuilder!index.formatQuery formatQuery} rule processor for "sql" format using JavaScript `Date`
14
- */
15
- export declare const datetimeRuleProcessorSQL: RuleProcessor;
16
- /**
17
- * {@link react-querybuilder!index.formatQuery formatQuery} value processor for "sql" format ("ansi" preset) using JavaScript `Date`
18
- */
19
- export declare const datetimeValueProcessorANSI: ValueProcessorByRule;
20
- /**
21
- * {@link react-querybuilder!index.formatQuery formatQuery} value processor for "sql" format ("mssql" preset) using JavaScript `Date`
22
- */
23
- export declare const datetimeValueProcessorMSSQL: ValueProcessorByRule;
24
- /**
25
- * {@link react-querybuilder!index.formatQuery formatQuery} value processor for "sql" format ("mysql" preset) using JavaScript `Date`
26
- */
27
- export declare const datetimeValueProcessorMySQL: ValueProcessorByRule;
28
- /**
29
- * {@link react-querybuilder!index.formatQuery formatQuery} value processor for "sql" format ("oracle" preset) using JavaScript `Date`
30
- */
31
- export declare const datetimeValueProcessorOracle: ValueProcessorByRule;
32
- /**
33
- * {@link react-querybuilder!index.formatQuery formatQuery} value processor for "sql" format ("postgresql" preset) using JavaScript `Date`
34
- */
35
- export declare const datetimeValueProcessorPostgreSQL: ValueProcessorByRule;
36
- /**
37
- * {@link react-querybuilder!index.formatQuery formatQuery} rule processor for "cel" format using JavaScript `Date`
38
- */
39
- export declare const datetimeRuleProcessorCEL: RuleProcessor;
40
- /**
41
- * {@link react-querybuilder!index.formatQuery formatQuery} rule processor for "mongodb_query" format using JavaScript `Date`
42
- */
43
- export declare const datetimeRuleProcessorMongoDBQuery: RuleProcessor;
44
- /**
45
- * {@link react-querybuilder!index.formatQuery formatQuery} rule processor for "natural_language" format using JavaScript `Date`
46
- */
47
- export declare const datetimeRuleProcessorNL: ValueProcessorByRule;
48
- export * from "./rqbDateTimeLibraryAPI.jsdate.mjs";
@@ -1,48 +0,0 @@
1
- /**
2
- * Import from `"@react-querybuilder/datetime/luxon"` for enhanced date/time support using [Luxon](https://moment.github.io/luxon/).
3
- *
4
- * @module luxon
5
- */
6
- import type { RuleProcessor, ValueProcessorByRule } from "react-querybuilder";
7
- import type { RQBJsonLogicDateTimeOperations } from "./types.mjs";
8
- /**
9
- * Custom JsonLogic date/time operations using Luxon
10
- */
11
- export declare const jsonLogicDateTimeOperations: RQBJsonLogicDateTimeOperations;
12
- /**
13
- * {@link react-querybuilder!index.formatQuery formatQuery} rule processor for "sql" format using Luxon
14
- */
15
- export declare const datetimeRuleProcessorSQL: RuleProcessor;
16
- /**
17
- * {@link react-querybuilder!index.formatQuery formatQuery} value processor for "sql" format ("ansi" preset) using Luxon
18
- */
19
- export declare const datetimeValueProcessorANSI: ValueProcessorByRule;
20
- /**
21
- * {@link react-querybuilder!index.formatQuery formatQuery} value processor for "sql" format ("mssql" preset) using Luxon
22
- */
23
- export declare const datetimeValueProcessorMSSQL: ValueProcessorByRule;
24
- /**
25
- * {@link react-querybuilder!index.formatQuery formatQuery} value processor for "sql" format ("mysql" preset) using Luxon
26
- */
27
- export declare const datetimeValueProcessorMySQL: ValueProcessorByRule;
28
- /**
29
- * {@link react-querybuilder!index.formatQuery formatQuery} value processor for "sql" format ("oracle" preset) using Luxon
30
- */
31
- export declare const datetimeValueProcessorOracle: ValueProcessorByRule;
32
- /**
33
- * {@link react-querybuilder!index.formatQuery formatQuery} value processor for "sql" format ("postgresql" preset) using Luxon
34
- */
35
- export declare const datetimeValueProcessorPostgreSQL: ValueProcessorByRule;
36
- /**
37
- * {@link react-querybuilder!index.formatQuery formatQuery} rule processor for "cel" format using Luxon
38
- */
39
- export declare const datetimeRuleProcessorCEL: ValueProcessorByRule;
40
- /**
41
- * {@link react-querybuilder!index.formatQuery formatQuery} rule processor for "mongodb_query" format using Luxon
42
- */
43
- export declare const datetimeRuleProcessorMongoDBQuery: ValueProcessorByRule;
44
- /**
45
- * {@link react-querybuilder!index.formatQuery formatQuery} rule processor for "natural_language" format using Luxon
46
- */
47
- export declare const datetimeRuleProcessorNL: ValueProcessorByRule;
48
- export * from "./rqbDateTimeLibraryAPI.luxon.mjs";
@@ -1,5 +0,0 @@
1
- import type { RQBDateTimeLibraryAPI } from "./types.mjs";
2
- /**
3
- * {@link RQBDateTimeLibraryAPI} for date-fns
4
- */
5
- export declare const rqbDateTimeLibraryAPI: RQBDateTimeLibraryAPI;
@@ -1,5 +0,0 @@
1
- import type { RQBDateTimeLibraryAPI } from "./types.mjs";
2
- /**
3
- * {@link RQBDateTimeLibraryAPI} for Day.js
4
- */
5
- export declare const rqbDateTimeLibraryAPI: RQBDateTimeLibraryAPI;
@@ -1,8 +0,0 @@
1
- import type { RQBDateTimeLibraryAPI } from "./types.mjs";
2
- /**
3
- * {@link RQBDateTimeLibraryAPI} for JavaScript `Date`
4
- *
5
- * @deprecated This API will not be removed, but we recommend using one of the other
6
- * {@link RQBDateTimeLibraryAPI}s based on a popular library instead.
7
- */
8
- export declare const rqbDateTimeLibraryAPI: RQBDateTimeLibraryAPI;
@@ -1,5 +0,0 @@
1
- import type { RQBDateTimeLibraryAPI } from "./types.mjs";
2
- /**
3
- * {@link RQBDateTimeLibraryAPI} for Luxon
4
- */
5
- export declare const rqbDateTimeLibraryAPI: RQBDateTimeLibraryAPI;
@@ -1,111 +0,0 @@
1
- import type { RulesLogic } from "json-logic-js";
2
- import type { RQBJsonLogic, RuleProcessor } from "react-querybuilder";
3
- export interface RQBJsonLogicDateBetween {
4
- dateBetween: [RQBJsonLogic, RQBJsonLogic, RQBJsonLogic];
5
- }
6
- export interface RQBJsonLogicDateNotBetween {
7
- dateNotBetween: [RQBJsonLogic, RQBJsonLogic, RQBJsonLogic];
8
- }
9
- export interface RQBJsonLogicDateIn {
10
- dateIn: [RQBJsonLogic, RQBJsonLogic[]];
11
- }
12
- export interface RQBJsonLogicDateNotIn {
13
- dateNotIn: [RQBJsonLogic, RQBJsonLogic[]];
14
- }
15
- export interface RQBJsonLogicDateBefore {
16
- dateBefore: [RQBJsonLogic, RQBJsonLogic, ...RQBJsonLogic[]];
17
- }
18
- export interface RQBJsonLogicDateOnOrBefore {
19
- dateOnOrBefore: [RQBJsonLogic, RQBJsonLogic, ...RQBJsonLogic[]];
20
- }
21
- export interface RQBJsonLogicDateOn {
22
- dateOn: [RQBJsonLogic, RQBJsonLogic, ...RQBJsonLogic[]];
23
- }
24
- export interface RQBJsonLogicDateNotOn {
25
- dateNotOn: [RQBJsonLogic, RQBJsonLogic, ...RQBJsonLogic[]];
26
- }
27
- export interface RQBJsonLogicDateAfter {
28
- dateAfter: [RQBJsonLogic, RQBJsonLogic, ...RQBJsonLogic[]];
29
- }
30
- export interface RQBJsonLogicDateOnOrAfter {
31
- dateOnOrAfter: [RQBJsonLogic, RQBJsonLogic, ...RQBJsonLogic[]];
32
- }
33
- /**
34
- * JsonLogic rule object with additional operators generated by
35
- * {@link react-querybuilder!index.formatQuery formatQuery} and accepted by
36
- * {@link react-querybuilder!parseJsonLogic.parseJsonLogic parseJsonLogic}.
37
- */
38
- export type RQBDateTimeJsonLogic = RQBJsonLogic | RulesLogic<RQBJsonLogicDateAfter | RQBJsonLogicDateBefore | RQBJsonLogicDateBetween | RQBJsonLogicDateIn | RQBJsonLogicDateNotBetween | RQBJsonLogicDateNotIn | RQBJsonLogicDateNotOn | RQBJsonLogicDateOn | RQBJsonLogicDateOnOrAfter | RQBJsonLogicDateOnOrBefore>;
39
- type DateOrString = string | Date;
40
- export interface RQBDateTimeLibraryAPI {
41
- /**
42
- * Formats a date as a string.
43
- */
44
- format: (d: DateOrString, fmt: string) => string;
45
- /**
46
- * Formats a date as an ISO 8601 string, only including
47
- * the year, month, and day ('YYYY-MM-DD').
48
- */
49
- toISOStringDateOnly: (d: DateOrString) => string;
50
- /**
51
- * Determines whether the first date is after the second date.
52
- */
53
- isAfter: (a: DateOrString, b: DateOrString) => boolean;
54
- /**
55
- * Determines whether the first date is before the second date.
56
- */
57
- isBefore: (a: DateOrString, b: DateOrString) => boolean;
58
- /**
59
- * Determines whether the first date is the same as the second date.
60
- *
61
- * If either the first date or the second date is a string in the
62
- * format 'YYYY-MM-DD', then the dates will only be compared at
63
- * the date level (no time component). Otherwise, they will be
64
- * compared to the millisecond.
65
- */
66
- isSame: (a: DateOrString, b: DateOrString) => boolean;
67
- /**
68
- * Determines whether the date is either a valid `Date` object or an
69
- * ISO 8601-formatted string representing a valid date.
70
- */
71
- isValid: (d: DateOrString) => boolean;
72
- /**
73
- * Converts a string to a `Date` object or returns a valid `Date` as is.
74
- */
75
- toDate: (d: DateOrString) => Date;
76
- /**
77
- * Converts a `Date` or ISO 8601-formatted string into a full ISO 8601 UTC
78
- * string, in the format 'YYYY-MM-DDTHH:mm:ss.SSSZ' (the "T" and "Z" are
79
- * static; other parts represent standard time units, increasing in precision
80
- * from left to right).
81
- */
82
- toISOString: (d: DateOrString) => string;
83
- }
84
- type FnDateDate = (a: DateOrString, b: DateOrString) => boolean;
85
- type FnDateArrayOfDates = (a: DateOrString, b: DateOrString[]) => boolean;
86
- type FnDateDateDate = (a: DateOrString, b: DateOrString, c: DateOrString) => boolean;
87
- export type RQBJsonLogicDateTimeOperations = {
88
- /** Determines if the first date is after the second date. */
89
- dateAfter: FnDateDate;
90
- /** Determines if the first date is before the second date. */
91
- dateBefore: FnDateDate;
92
- /** Determines if the second date is between the first and third dates (inclusive). */
93
- dateBetween: FnDateDateDate;
94
- /** Determines if the first date is one of the values in the array of dates. */
95
- dateIn: FnDateArrayOfDates;
96
- /** Determines if the second date is not between the first and third dates. */
97
- dateNotBetween: FnDateDateDate;
98
- /** Determines if the first date is not one of the values in the array of dates. */
99
- dateNotIn: FnDateArrayOfDates;
100
- /** Determines if the first date is not the same as the second date. */
101
- dateNotOn: FnDateDate;
102
- /** Determines if the first date is the same as the second date (at the level of least precision between the two). */
103
- dateOn: FnDateDate;
104
- /** Determines if the first date is either the same as the second date or after it. */
105
- dateOnOrAfter: FnDateDate;
106
- /** Determines if the first date is either the same as the second date or before it. */
107
- dateOnOrBefore: FnDateDate;
108
- };
109
- export type IsDateFieldFunction = (...[rule, opts]: Parameters<RuleProcessor>) => boolean;
110
- export type IsDateField = IsDateFieldFunction | Record<string, unknown> | Record<string, unknown>[] | boolean | undefined;
111
- export {};
@@ -1,5 +0,0 @@
1
- import type { RuleProcessor } from "react-querybuilder";
2
- import type { IsDateField, IsDateFieldFunction } from "./types.mjs";
3
- export declare const isISOStringDateOnly: (date: unknown) => date is `${number}${number}${number}${number}-${number}${number}-${number}${number}`;
4
- export declare const defaultIsDateField: IsDateFieldFunction;
5
- export declare const processIsDateField: (isDateField: IsDateField, ...[rule, opts]: Parameters<RuleProcessor>) => boolean;