@react-querybuilder/datetime 8.20.2 → 8.21.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{getDatetimeRuleProcessorTanStackDB-cmGqMT0Q.js → getDatetimeRuleProcessorTanStackDB-CDEB9coD.js} +22 -19
- package/dist/cjs/getDatetimeRuleProcessorTanStackDB-CDEB9coD.js.map +1 -0
- package/dist/cjs/getDatetimeRuleProcessorTanStackDB-X6tZv7yV.js +2 -0
- package/dist/cjs/getDatetimeRuleProcessorTanStackDB-X6tZv7yV.js.map +1 -0
- package/dist/cjs/react-querybuilder_datetime.cjs.development.d.ts +122 -138
- package/dist/cjs/react-querybuilder_datetime.cjs.development.date-fns.d.ts +49 -50
- package/dist/cjs/react-querybuilder_datetime.cjs.development.date-fns.js +2 -2
- package/dist/cjs/react-querybuilder_datetime.cjs.development.dayjs.d.ts +49 -50
- package/dist/cjs/react-querybuilder_datetime.cjs.development.dayjs.js +2 -2
- package/dist/cjs/react-querybuilder_datetime.cjs.development.js +3 -2
- package/dist/cjs/react-querybuilder_datetime.cjs.development.js.map +1 -1
- package/dist/cjs/react-querybuilder_datetime.cjs.development.jsdate.d.ts +52 -53
- package/dist/cjs/react-querybuilder_datetime.cjs.development.jsdate.js +2 -2
- package/dist/cjs/react-querybuilder_datetime.cjs.development.luxon.d.ts +49 -50
- package/dist/cjs/react-querybuilder_datetime.cjs.development.luxon.js +2 -2
- package/dist/cjs/react-querybuilder_datetime.cjs.development.ui.d.ts +100 -114
- package/dist/cjs/react-querybuilder_datetime.cjs.development.ui.js +5 -3
- package/dist/cjs/react-querybuilder_datetime.cjs.development.ui.js.map +1 -1
- package/dist/cjs/react-querybuilder_datetime.cjs.production.d.ts +122 -138
- package/dist/cjs/react-querybuilder_datetime.cjs.production.date-fns.d.ts +49 -50
- package/dist/cjs/react-querybuilder_datetime.cjs.production.date-fns.js +1 -1
- package/dist/cjs/react-querybuilder_datetime.cjs.production.dayjs.d.ts +49 -50
- package/dist/cjs/react-querybuilder_datetime.cjs.production.dayjs.js +1 -1
- package/dist/cjs/react-querybuilder_datetime.cjs.production.js +1 -1
- package/dist/cjs/react-querybuilder_datetime.cjs.production.js.map +1 -1
- package/dist/cjs/react-querybuilder_datetime.cjs.production.jsdate.d.ts +52 -53
- package/dist/cjs/react-querybuilder_datetime.cjs.production.jsdate.js +1 -1
- package/dist/cjs/react-querybuilder_datetime.cjs.production.luxon.d.ts +49 -50
- package/dist/cjs/react-querybuilder_datetime.cjs.production.luxon.js +1 -1
- package/dist/cjs/react-querybuilder_datetime.cjs.production.ui.d.ts +100 -114
- package/dist/cjs/react-querybuilder_datetime.cjs.production.ui.js +1 -1
- package/dist/cjs/react-querybuilder_datetime.cjs.production.ui.js.map +1 -1
- package/dist/cjs/{rqbDateTimeLibraryAPI.jsdate-ioz2B1zh.js → rqbDateTimeLibraryAPI.jsdate-BuSiVdk7.js} +2 -2
- package/dist/cjs/{rqbDateTimeLibraryAPI.jsdate-ioz2B1zh.js.map → rqbDateTimeLibraryAPI.jsdate-BuSiVdk7.js.map} +1 -1
- package/dist/cjs/{rqbDateTimeLibraryAPI.jsdate-BPEcMhhr.js → rqbDateTimeLibraryAPI.jsdate-C3jJb6ip.js} +2 -2
- package/dist/cjs/{rqbDateTimeLibraryAPI.jsdate-BPEcMhhr.js.map → rqbDateTimeLibraryAPI.jsdate-C3jJb6ip.js.map} +1 -1
- package/dist/cjs/{types-Di8kFIXV.d.ts → types-BKA1aoY6.d.ts} +82 -73
- package/dist/cjs/utils-DdBYGWHZ.js +2 -0
- package/dist/cjs/utils-DdBYGWHZ.js.map +1 -0
- package/dist/cjs/{utils-DUePrC--.js → utils-_X97pUtk.js} +13 -1
- package/dist/cjs/utils-_X97pUtk.js.map +1 -0
- package/dist/getDatetimeRuleProcessorTanStackDB-6K1DsuEV.mjs +2 -0
- package/dist/getDatetimeRuleProcessorTanStackDB-6K1DsuEV.mjs.map +1 -0
- package/dist/{getDatetimeRuleProcessorTanStackDB-BDFJlfJh.js → getDatetimeRuleProcessorTanStackDB-BrSD2e9G.js} +22 -19
- package/dist/getDatetimeRuleProcessorTanStackDB-BrSD2e9G.js.map +1 -0
- package/dist/{getDatetimeRuleProcessorTanStackDB-B93XaPdB.mjs → getDatetimeRuleProcessorTanStackDB-DR8aYrUa.mjs} +22 -19
- package/dist/getDatetimeRuleProcessorTanStackDB-DR8aYrUa.mjs.map +1 -0
- package/dist/{objectSpread2-73AKOozq.js → objectSpread2-MqoZ2hSz.js} +13 -7
- package/dist/objectSpread2-MqoZ2hSz.js.map +1 -0
- package/dist/react-querybuilder_datetime.d.mts +122 -138
- package/dist/react-querybuilder_datetime.date-fns.d.mts +49 -50
- package/dist/react-querybuilder_datetime.date-fns.mjs +2 -2
- package/dist/react-querybuilder_datetime.dayjs.d.mts +49 -50
- package/dist/react-querybuilder_datetime.dayjs.mjs +2 -2
- package/dist/react-querybuilder_datetime.jsdate.d.mts +52 -53
- package/dist/react-querybuilder_datetime.jsdate.mjs +2 -2
- package/dist/react-querybuilder_datetime.legacy-esm.d.ts +122 -138
- package/dist/react-querybuilder_datetime.legacy-esm.date-fns.d.ts +49 -50
- package/dist/react-querybuilder_datetime.legacy-esm.date-fns.js +2 -2
- package/dist/react-querybuilder_datetime.legacy-esm.dayjs.d.ts +49 -50
- package/dist/react-querybuilder_datetime.legacy-esm.dayjs.js +2 -2
- package/dist/react-querybuilder_datetime.legacy-esm.js +3 -2
- package/dist/react-querybuilder_datetime.legacy-esm.js.map +1 -1
- package/dist/react-querybuilder_datetime.legacy-esm.jsdate.d.ts +52 -53
- package/dist/react-querybuilder_datetime.legacy-esm.jsdate.js +2 -2
- package/dist/react-querybuilder_datetime.legacy-esm.luxon.d.ts +49 -50
- package/dist/react-querybuilder_datetime.legacy-esm.luxon.js +2 -2
- package/dist/react-querybuilder_datetime.legacy-esm.ui.d.ts +100 -114
- package/dist/react-querybuilder_datetime.legacy-esm.ui.js +7 -5
- package/dist/react-querybuilder_datetime.legacy-esm.ui.js.map +1 -1
- package/dist/react-querybuilder_datetime.luxon.d.mts +49 -50
- package/dist/react-querybuilder_datetime.luxon.mjs +2 -2
- package/dist/react-querybuilder_datetime.mjs +3 -2
- package/dist/react-querybuilder_datetime.mjs.map +1 -1
- package/dist/react-querybuilder_datetime.production.d.mts +122 -138
- package/dist/react-querybuilder_datetime.production.date-fns.d.mts +49 -50
- package/dist/react-querybuilder_datetime.production.date-fns.mjs +1 -1
- package/dist/react-querybuilder_datetime.production.dayjs.d.mts +49 -50
- package/dist/react-querybuilder_datetime.production.dayjs.mjs +1 -1
- package/dist/react-querybuilder_datetime.production.jsdate.d.mts +52 -53
- package/dist/react-querybuilder_datetime.production.jsdate.mjs +1 -1
- package/dist/react-querybuilder_datetime.production.luxon.d.mts +49 -50
- package/dist/react-querybuilder_datetime.production.luxon.mjs +1 -1
- package/dist/react-querybuilder_datetime.production.mjs +1 -1
- package/dist/react-querybuilder_datetime.production.mjs.map +1 -1
- package/dist/react-querybuilder_datetime.production.ui.d.mts +100 -114
- package/dist/react-querybuilder_datetime.production.ui.mjs +1 -1
- package/dist/react-querybuilder_datetime.production.ui.mjs.map +1 -1
- package/dist/react-querybuilder_datetime.ui.d.mts +100 -114
- package/dist/react-querybuilder_datetime.ui.mjs +5 -3
- package/dist/react-querybuilder_datetime.ui.mjs.map +1 -1
- package/dist/{rqbDateTimeLibraryAPI.jsdate-CpGoQAje.js → rqbDateTimeLibraryAPI.jsdate-COp9qTw_.js} +2 -2
- package/dist/{rqbDateTimeLibraryAPI.jsdate-CpGoQAje.js.map → rqbDateTimeLibraryAPI.jsdate-COp9qTw_.js.map} +1 -1
- package/dist/{rqbDateTimeLibraryAPI.jsdate-CDOtydFq.mjs → rqbDateTimeLibraryAPI.jsdate-DxBmxW2C.mjs} +2 -2
- package/dist/{rqbDateTimeLibraryAPI.jsdate-CDOtydFq.mjs.map → rqbDateTimeLibraryAPI.jsdate-DxBmxW2C.mjs.map} +1 -1
- package/dist/{rqbDateTimeLibraryAPI.jsdate-D66yJ1hK.mjs → rqbDateTimeLibraryAPI.jsdate-WHnzblie.mjs} +2 -2
- package/dist/{rqbDateTimeLibraryAPI.jsdate-D66yJ1hK.mjs.map → rqbDateTimeLibraryAPI.jsdate-WHnzblie.mjs.map} +1 -1
- package/dist/{types-Di8kFIXV.d.mts → types-BKA1aoY6.d.mts} +82 -73
- package/dist/{types-Di8kFIXV.d.ts → types-BKA1aoY6.d.ts} +82 -73
- package/dist/{utils-BC2SALFm.mjs → utils-BAgUBdyf.mjs} +8 -2
- package/dist/utils-BAgUBdyf.mjs.map +1 -0
- package/dist/utils-DA8aluCt.mjs +2 -0
- package/dist/utils-DA8aluCt.mjs.map +1 -0
- package/package.json +16 -16
- package/dist/cjs/getDatetimeRuleProcessorTanStackDB-BVNfYaIj.js +0 -2
- package/dist/cjs/getDatetimeRuleProcessorTanStackDB-BVNfYaIj.js.map +0 -1
- package/dist/cjs/getDatetimeRuleProcessorTanStackDB-cmGqMT0Q.js.map +0 -1
- package/dist/cjs/utils-DUePrC--.js.map +0 -1
- package/dist/cjs/utils-jkW5R1AA.js +0 -2
- package/dist/cjs/utils-jkW5R1AA.js.map +0 -1
- package/dist/getDatetimeRuleProcessorTanStackDB-B93XaPdB.mjs.map +0 -1
- package/dist/getDatetimeRuleProcessorTanStackDB-BDFJlfJh.js.map +0 -1
- package/dist/getDatetimeRuleProcessorTanStackDB-Czg9Fbb8.mjs +0 -2
- package/dist/getDatetimeRuleProcessorTanStackDB-Czg9Fbb8.mjs.map +0 -1
- package/dist/objectSpread2-73AKOozq.js.map +0 -1
- package/dist/utils-BC2SALFm.mjs.map +0 -1
- package/dist/utils-VKS8YY2D.mjs +0 -2
- package/dist/utils-VKS8YY2D.mjs.map +0 -1
|
@@ -1,104 +1,103 @@
|
|
|
1
|
-
import { g as RQBJsonLogicDateTimeOperations, i as RQBDateTimeLibraryAPI } from "./types-
|
|
1
|
+
import { g as RQBJsonLogicDateTimeOperations, i as RQBDateTimeLibraryAPI } from "./types-BKA1aoY6.mjs";
|
|
2
2
|
import { RuleProcessor, ValueProcessorByRule } from "@react-querybuilder/core";
|
|
3
|
-
|
|
4
3
|
//#region src/rqbDateTimeLibraryAPI.luxon.d.ts
|
|
5
4
|
/**
|
|
6
|
-
* {@link RQBDateTimeLibraryAPI} for Luxon
|
|
7
|
-
*/
|
|
5
|
+
* {@link RQBDateTimeLibraryAPI} for Luxon
|
|
6
|
+
*/
|
|
8
7
|
declare const rqbDateTimeLibraryAPI: RQBDateTimeLibraryAPI;
|
|
9
8
|
//#endregion
|
|
10
9
|
//#region src/index.luxon.d.ts
|
|
11
10
|
/**
|
|
12
|
-
* Custom JsonLogic date/time operations using Luxon
|
|
13
|
-
*/
|
|
11
|
+
* Custom JsonLogic date/time operations using Luxon
|
|
12
|
+
*/
|
|
14
13
|
declare const jsonLogicDateTimeOperations: RQBJsonLogicDateTimeOperations;
|
|
15
14
|
/**
|
|
16
|
-
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "sql" format using Luxon
|
|
17
|
-
*/
|
|
15
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "sql" format using Luxon
|
|
16
|
+
*/
|
|
18
17
|
declare const datetimeRuleProcessorSQL: RuleProcessor;
|
|
19
18
|
/**
|
|
20
|
-
* {@link @react-querybuilder/core!formatQuery formatQuery} value processor for "sql" format ("ansi" preset) using Luxon
|
|
21
|
-
*/
|
|
19
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} value processor for "sql" format ("ansi" preset) using Luxon
|
|
20
|
+
*/
|
|
22
21
|
declare const datetimeValueProcessorANSI: ValueProcessorByRule;
|
|
23
22
|
/**
|
|
24
|
-
* {@link @react-querybuilder/core!formatQuery formatQuery} value processor for "sql" format ("mssql" preset) using Luxon
|
|
25
|
-
*/
|
|
23
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} value processor for "sql" format ("mssql" preset) using Luxon
|
|
24
|
+
*/
|
|
26
25
|
declare const datetimeValueProcessorMSSQL: ValueProcessorByRule;
|
|
27
26
|
/**
|
|
28
|
-
* {@link @react-querybuilder/core!formatQuery formatQuery} value processor for "sql" format ("mysql" preset) using Luxon
|
|
29
|
-
*/
|
|
27
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} value processor for "sql" format ("mysql" preset) using Luxon
|
|
28
|
+
*/
|
|
30
29
|
declare const datetimeValueProcessorMySQL: ValueProcessorByRule;
|
|
31
30
|
/**
|
|
32
|
-
* {@link @react-querybuilder/core!formatQuery formatQuery} value processor for "sql" format ("oracle" preset) using Luxon
|
|
33
|
-
*/
|
|
31
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} value processor for "sql" format ("oracle" preset) using Luxon
|
|
32
|
+
*/
|
|
34
33
|
declare const datetimeValueProcessorOracle: ValueProcessorByRule;
|
|
35
34
|
/**
|
|
36
|
-
* {@link @react-querybuilder/core!formatQuery formatQuery} value processor for "sql" format ("postgresql" preset) using Luxon
|
|
37
|
-
*/
|
|
35
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} value processor for "sql" format ("postgresql" preset) using Luxon
|
|
36
|
+
*/
|
|
38
37
|
declare const datetimeValueProcessorPostgreSQL: ValueProcessorByRule;
|
|
39
38
|
/**
|
|
40
|
-
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "cel" format using Luxon
|
|
41
|
-
*/
|
|
39
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "cel" format using Luxon
|
|
40
|
+
*/
|
|
42
41
|
declare const datetimeRuleProcessorCEL: ValueProcessorByRule;
|
|
43
42
|
/**
|
|
44
|
-
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "jsonata" format using Luxon
|
|
45
|
-
*/
|
|
43
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "jsonata" format using Luxon
|
|
44
|
+
*/
|
|
46
45
|
declare const datetimeRuleProcessorJSONata: RuleProcessor;
|
|
47
46
|
/**
|
|
48
|
-
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "mongodb_query" format using Luxon
|
|
49
|
-
*/
|
|
47
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "mongodb_query" format using Luxon
|
|
48
|
+
*/
|
|
50
49
|
declare const datetimeRuleProcessorMongoDBQuery: ValueProcessorByRule;
|
|
51
50
|
/**
|
|
52
|
-
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "natural_language" format using Luxon
|
|
53
|
-
*/
|
|
51
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "natural_language" format using Luxon
|
|
52
|
+
*/
|
|
54
53
|
declare const datetimeRuleProcessorNL: ValueProcessorByRule;
|
|
55
54
|
/**
|
|
56
|
-
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "cypher"/"gql" format using Luxon
|
|
57
|
-
*/
|
|
55
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "cypher"/"gql" format using Luxon
|
|
56
|
+
*/
|
|
58
57
|
declare const datetimeRuleProcessorCypher: ValueProcessorByRule;
|
|
59
58
|
/**
|
|
60
|
-
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "sparql" format using Luxon
|
|
61
|
-
*/
|
|
59
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "sparql" format using Luxon
|
|
60
|
+
*/
|
|
62
61
|
declare const datetimeRuleProcessorSPARQL: ValueProcessorByRule;
|
|
63
62
|
/**
|
|
64
|
-
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "parameterized"/"parameterized_named" formats
|
|
65
|
-
*/
|
|
63
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "parameterized"/"parameterized_named" formats
|
|
64
|
+
*/
|
|
66
65
|
declare const datetimeRuleProcessorParameterized: RuleProcessor;
|
|
67
66
|
/**
|
|
68
|
-
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "spel" format
|
|
69
|
-
*/
|
|
67
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "spel" format
|
|
68
|
+
*/
|
|
70
69
|
declare const datetimeRuleProcessorSpEL: RuleProcessor;
|
|
71
70
|
/**
|
|
72
|
-
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "ldap" format
|
|
73
|
-
*/
|
|
71
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "ldap" format
|
|
72
|
+
*/
|
|
74
73
|
declare const datetimeRuleProcessorLDAP: RuleProcessor;
|
|
75
74
|
/**
|
|
76
|
-
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "gremlin" format
|
|
77
|
-
*/
|
|
75
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "gremlin" format
|
|
76
|
+
*/
|
|
78
77
|
declare const datetimeRuleProcessorGremlin: RuleProcessor;
|
|
79
78
|
/**
|
|
80
|
-
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "prisma" format
|
|
81
|
-
*/
|
|
79
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "prisma" format
|
|
80
|
+
*/
|
|
82
81
|
declare const datetimeRuleProcessorPrisma: RuleProcessor;
|
|
83
82
|
/**
|
|
84
|
-
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "sequelize" format
|
|
85
|
-
*/
|
|
83
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "sequelize" format
|
|
84
|
+
*/
|
|
86
85
|
declare const datetimeRuleProcessorSequelize: RuleProcessor;
|
|
87
86
|
/**
|
|
88
|
-
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "drizzle" format
|
|
89
|
-
*/
|
|
87
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "drizzle" format
|
|
88
|
+
*/
|
|
90
89
|
declare const datetimeRuleProcessorDrizzle: RuleProcessor;
|
|
91
90
|
/**
|
|
92
|
-
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "elasticsearch" format
|
|
93
|
-
*/
|
|
91
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "elasticsearch" format
|
|
92
|
+
*/
|
|
94
93
|
declare const datetimeRuleProcessorElasticSearch: RuleProcessor;
|
|
95
94
|
/**
|
|
96
|
-
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "tanstack_db" format
|
|
97
|
-
*/
|
|
95
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "tanstack_db" format
|
|
96
|
+
*/
|
|
98
97
|
declare const datetimeRuleProcessorTanStackDB: RuleProcessor;
|
|
99
98
|
/**
|
|
100
|
-
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for (deprecated) "mongodb" format
|
|
101
|
-
*/
|
|
99
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for (deprecated) "mongodb" format
|
|
100
|
+
*/
|
|
102
101
|
declare const datetimeRuleProcessorMongoDB: RuleProcessor;
|
|
103
102
|
//#endregion
|
|
104
103
|
export { datetimeRuleProcessorCEL, datetimeRuleProcessorCypher, datetimeRuleProcessorDrizzle, datetimeRuleProcessorElasticSearch, datetimeRuleProcessorGremlin, datetimeRuleProcessorJSONata, datetimeRuleProcessorLDAP, datetimeRuleProcessorMongoDB, datetimeRuleProcessorMongoDBQuery, datetimeRuleProcessorNL, datetimeRuleProcessorParameterized, datetimeRuleProcessorPrisma, datetimeRuleProcessorSPARQL, datetimeRuleProcessorSQL, datetimeRuleProcessorSequelize, datetimeRuleProcessorSpEL, datetimeRuleProcessorTanStackDB, datetimeValueProcessorANSI, datetimeValueProcessorMSSQL, datetimeValueProcessorMySQL, datetimeValueProcessorOracle, datetimeValueProcessorPostgreSQL, jsonLogicDateTimeOperations, rqbDateTimeLibraryAPI };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as isISOStringDateOnly } from "./utils-
|
|
2
|
-
import { C as getDatetimeRuleProcessorCypher, S as getDatetimeRuleProcessorDrizzle, T as getDatetimeJsonLogicOperations, _ as getDatetimeRuleProcessorMongoDBQuery, a as getDatetimeValueProcessorMySQL, b as getDatetimeRuleProcessorGremlin, c as getDatetimeRuleProcessorSpEL, d as getDatetimeRuleProcessorPrisma, f as getDatetimeRuleProcessorParameterized, g as getDatetimeRuleProcessorMongoDB, h as getDatetimeRuleProcessorNL, i as getDatetimeValueProcessorMSSQL, l as getDatetimeRuleProcessorSPARQL, n as getDatetimeRuleProcessorSQL, o as getDatetimeValueProcessorOracle, r as getDatetimeValueProcessorANSI, s as getDatetimeValueProcessorPostgreSQL, t as getDatetimeRuleProcessorTanStackDB, u as getDatetimeRuleProcessorSequelize, v as getDatetimeRuleProcessorLDAP, w as getDatetimeRuleProcessorCEL, x as getDatetimeRuleProcessorElasticSearch, y as getDatetimeRuleProcessorJSONata } from "./getDatetimeRuleProcessorTanStackDB-
|
|
1
|
+
import { n as isISOStringDateOnly } from "./utils-BAgUBdyf.mjs";
|
|
2
|
+
import { C as getDatetimeRuleProcessorCypher, S as getDatetimeRuleProcessorDrizzle, T as getDatetimeJsonLogicOperations, _ as getDatetimeRuleProcessorMongoDBQuery, a as getDatetimeValueProcessorMySQL, b as getDatetimeRuleProcessorGremlin, c as getDatetimeRuleProcessorSpEL, d as getDatetimeRuleProcessorPrisma, f as getDatetimeRuleProcessorParameterized, g as getDatetimeRuleProcessorMongoDB, h as getDatetimeRuleProcessorNL, i as getDatetimeValueProcessorMSSQL, l as getDatetimeRuleProcessorSPARQL, n as getDatetimeRuleProcessorSQL, o as getDatetimeValueProcessorOracle, r as getDatetimeValueProcessorANSI, s as getDatetimeValueProcessorPostgreSQL, t as getDatetimeRuleProcessorTanStackDB, u as getDatetimeRuleProcessorSequelize, v as getDatetimeRuleProcessorLDAP, w as getDatetimeRuleProcessorCEL, x as getDatetimeRuleProcessorElasticSearch, y as getDatetimeRuleProcessorJSONata } from "./getDatetimeRuleProcessorTanStackDB-DR8aYrUa.mjs";
|
|
3
3
|
import { DateTime } from "luxon";
|
|
4
4
|
//#region src/rqbDateTimeLibraryAPI.luxon.ts
|
|
5
5
|
const toDateTime = (a) => typeof a === "string" ? DateTime.fromISO(a) : DateTime.fromJSDate(a);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { C as getDatetimeRuleProcessorCypher, S as getDatetimeRuleProcessorDrizzle, T as getDatetimeJsonLogicOperations, _ as getDatetimeRuleProcessorMongoDBQuery, a as getDatetimeValueProcessorMySQL, b as getDatetimeRuleProcessorGremlin, c as getDatetimeRuleProcessorSpEL, d as getDatetimeRuleProcessorPrisma, f as getDatetimeRuleProcessorParameterized, g as getDatetimeRuleProcessorMongoDB, h as getDatetimeRuleProcessorNL, i as getDatetimeValueProcessorMSSQL, l as getDatetimeRuleProcessorSPARQL, m as defaultDateTimeNLOperatorMap, n as getDatetimeRuleProcessorSQL, o as getDatetimeValueProcessorOracle, p as datetimeValueProcessorNL, r as getDatetimeValueProcessorANSI, s as getDatetimeValueProcessorPostgreSQL, t as getDatetimeRuleProcessorTanStackDB, u as getDatetimeRuleProcessorSequelize, v as getDatetimeRuleProcessorLDAP, w as getDatetimeRuleProcessorCEL, x as getDatetimeRuleProcessorElasticSearch, y as getDatetimeRuleProcessorJSONata } from "./getDatetimeRuleProcessorTanStackDB-
|
|
1
|
+
import { c as resolveDatetimeOperator, i as isRelativeDateTimeValue, s as processIsDateField, t as isDateOnlyDatatype } from "./utils-BAgUBdyf.mjs";
|
|
2
|
+
import { C as getDatetimeRuleProcessorCypher, S as getDatetimeRuleProcessorDrizzle, T as getDatetimeJsonLogicOperations, _ as getDatetimeRuleProcessorMongoDBQuery, a as getDatetimeValueProcessorMySQL, b as getDatetimeRuleProcessorGremlin, c as getDatetimeRuleProcessorSpEL, d as getDatetimeRuleProcessorPrisma, f as getDatetimeRuleProcessorParameterized, g as getDatetimeRuleProcessorMongoDB, h as getDatetimeRuleProcessorNL, i as getDatetimeValueProcessorMSSQL, l as getDatetimeRuleProcessorSPARQL, m as defaultDateTimeNLOperatorMap, n as getDatetimeRuleProcessorSQL, o as getDatetimeValueProcessorOracle, p as datetimeValueProcessorNL, r as getDatetimeValueProcessorANSI, s as getDatetimeValueProcessorPostgreSQL, t as getDatetimeRuleProcessorTanStackDB, u as getDatetimeRuleProcessorSequelize, v as getDatetimeRuleProcessorLDAP, w as getDatetimeRuleProcessorCEL, x as getDatetimeRuleProcessorElasticSearch, y as getDatetimeRuleProcessorJSONata } from "./getDatetimeRuleProcessorTanStackDB-DR8aYrUa.mjs";
|
|
3
3
|
import { defaultRuleProcessorJsonLogic, toArray } from "@react-querybuilder/core";
|
|
4
4
|
//#region src/datetimeRuleProcessorJsonLogic.ts
|
|
5
5
|
const dateOperationMap = {
|
|
@@ -25,6 +25,7 @@ const dateOperationMap = {
|
|
|
25
25
|
const datetimeRuleProcessorJsonLogic = (rule, options) => {
|
|
26
26
|
const opts = options ?? ( /* v8 ignore start -- @preserve */ {});
|
|
27
27
|
if (!processIsDateField(opts.context?.isDateField, rule, opts)) return defaultRuleProcessorJsonLogic(rule, opts);
|
|
28
|
+
if (rule.valueSource === "parameter") return defaultRuleProcessorJsonLogic(rule, opts);
|
|
28
29
|
const { field, value, valueSource } = rule;
|
|
29
30
|
const operator = resolveDatetimeOperator(rule, opts);
|
|
30
31
|
const valueIsField = valueSource === "field";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react-querybuilder_datetime.mjs","names":[],"sources":["../src/datetimeRuleProcessorJsonLogic.ts"],"sourcesContent":["import type { DefaultOperatorName, JsonLogicVar, RuleProcessor } from '@react-querybuilder/core';\nimport { defaultRuleProcessorJsonLogic, toArray } from '@react-querybuilder/core';\nimport type {
|
|
1
|
+
{"version":3,"file":"react-querybuilder_datetime.mjs","names":[],"sources":["../src/datetimeRuleProcessorJsonLogic.ts"],"sourcesContent":["import type { DefaultOperatorName, JsonLogicVar, RuleProcessor } from '@react-querybuilder/core';\nimport { defaultRuleProcessorJsonLogic, toArray } from '@react-querybuilder/core';\nimport type { RQBDateTimeJsonLogic } from './types';\nimport {\n isDateOnlyDatatype,\n isRelativeDateTimeValue,\n processIsDateField,\n resolveDatetimeOperator,\n} from './utils';\n\nconst dateOperationMap = {\n '!=': 'dateNotOn',\n '<': 'dateBefore',\n '<=': 'dateOnOrBefore',\n '=': 'dateOn',\n '>': 'dateAfter',\n '>=': 'dateOnOrAfter',\n between: 'dateBetween',\n in: 'dateIn',\n notBetween: 'dateNotBetween',\n notIn: 'dateNotIn',\n} as const satisfies Partial<Record<DefaultOperatorName, string>>;\n\n/**\n * Date/time rule processor for use by {@link @react-querybuilder/core!formatQuery formatQuery}\n * with the \"jsonlogic\" format.\n *\n * Note: Unlike other date/time rule processors from this library, this function does\n * not require a date/time library API. Instead, the date/time library API is used by\n * {@link getDatetimeJsonLogicOperations} during the evaluation process.\n */\nexport const datetimeRuleProcessorJsonLogic: RuleProcessor = (\n rule,\n options\n): RQBDateTimeJsonLogic => {\n const opts = options ?? /* v8 ignore start -- @preserve */ {}; /* v8 ignore stop -- @preserve */\n\n if (!processIsDateField(opts.context?.isDateField, rule, opts)) {\n return defaultRuleProcessorJsonLogic(rule, opts);\n }\n\n // Parameter references are named placeholders (not dates); delegate to the core default,\n // which emits the name as a literal (paradigm B).\n if (rule.valueSource === 'parameter') {\n return defaultRuleProcessorJsonLogic(rule, opts);\n }\n\n const { field, value, valueSource } = rule;\n const operator = resolveDatetimeOperator(rule, opts);\n const valueIsField = valueSource === 'field';\n const fieldObject: JsonLogicVar = { var: field };\n const dateOnly = isDateOnlyDatatype(opts?.fieldData?.datatype);\n // Relative values stay \"live\": emit a `dateRelative` op resolved at evaluation time.\n // Field-source values are field names and render as `var` references.\n const renderValue = (v: unknown) => {\n if (valueIsField) return { var: `${v}` };\n if (isRelativeDateTimeValue(v)) {\n return {\n dateRelative: [v.anchor, v.offset, v.unit, dateOnly],\n };\n }\n return v as string;\n };\n\n switch (operator) {\n case '<':\n case '<=':\n case '=':\n case '!=':\n case '>':\n case '>=':\n return {\n [dateOperationMap[operator]]: [fieldObject, renderValue(value)],\n } as RQBDateTimeJsonLogic;\n\n case 'in':\n case 'notIn': {\n const valueAsArray = (Array.isArray(value) ? value : toArray(value)).map(renderValue);\n return { [dateOperationMap[operator]]: [fieldObject, valueAsArray] } as RQBDateTimeJsonLogic;\n }\n\n case 'between':\n case 'notBetween': {\n const valueAsArray = (Array.isArray(value) ? value : toArray(value)).map(renderValue);\n\n if (valueAsArray.length < 2) return false;\n\n return {\n [dateOperationMap[operator]]: [valueAsArray[0], fieldObject, valueAsArray[1]],\n } as RQBDateTimeJsonLogic;\n }\n }\n\n return defaultRuleProcessorJsonLogic(rule, options);\n};\n"],"mappings":";;;;AAUA,MAAM,mBAAmB;CACvB,MAAM;CACN,KAAK;CACL,MAAM;CACN,KAAK;CACL,KAAK;CACL,MAAM;CACN,SAAS;CACT,IAAI;CACJ,YAAY;CACZ,OAAO;AACT;;;;;;;;;AAUA,MAAa,kCACX,MACA,YACyB;CACzB,MAAM,OAAO,gDAA8C,CAAC;CAE5D,IAAI,CAAC,mBAAmB,KAAK,SAAS,aAAa,MAAM,IAAI,GAC3D,OAAO,8BAA8B,MAAM,IAAI;CAKjD,IAAI,KAAK,gBAAgB,aACvB,OAAO,8BAA8B,MAAM,IAAI;CAGjD,MAAM,EAAE,OAAO,OAAO,gBAAgB;CACtC,MAAM,WAAW,wBAAwB,MAAM,IAAI;CACnD,MAAM,eAAe,gBAAgB;CACrC,MAAM,cAA4B,EAAE,KAAK,MAAM;CAC/C,MAAM,WAAW,mBAAmB,MAAM,WAAW,QAAQ;CAG7D,MAAM,eAAe,MAAe;EAClC,IAAI,cAAc,OAAO,EAAE,KAAK,GAAG,IAAI;EACvC,IAAI,wBAAwB,CAAC,GAC3B,OAAO,EACL,cAAc;GAAC,EAAE;GAAQ,EAAE;GAAQ,EAAE;GAAM;EAAQ,EACrD;EAEF,OAAO;CACT;CAEA,QAAQ,UAAR;EACE,KAAK;EACL,KAAK;EACL,KAAK;EACL,KAAK;EACL,KAAK;EACL,KAAK,MACH,OAAO,GACJ,iBAAiB,YAAY,CAAC,aAAa,YAAY,KAAK,CAAC,EAChE;EAEF,KAAK;EACL,KAAK,SAAS;GACZ,MAAM,gBAAgB,MAAM,QAAQ,KAAK,IAAI,QAAQ,QAAQ,KAAK,EAAA,CAAG,IAAI,WAAW;GACpF,OAAO,GAAG,iBAAiB,YAAY,CAAC,aAAa,YAAY,EAAE;EACrE;EAEA,KAAK;EACL,KAAK,cAAc;GACjB,MAAM,gBAAgB,MAAM,QAAQ,KAAK,IAAI,QAAQ,QAAQ,KAAK,EAAA,CAAG,IAAI,WAAW;GAEpF,IAAI,aAAa,SAAS,GAAG,OAAO;GAEpC,OAAO,GACJ,iBAAiB,YAAY;IAAC,aAAa;IAAI;IAAa,aAAa;GAAE,EAC9E;EACF;CACF;CAEA,OAAO,8BAA8B,MAAM,OAAO;AACpD"}
|
|
@@ -1,219 +1,203 @@
|
|
|
1
|
-
import { _ as RelativeDateTimeAnchor, a as RQBJsonLogicDateAfter, b as RelativeDateTimeValue, c as RQBJsonLogicDateIn, d as RQBJsonLogicDateNotOn, f as RQBJsonLogicDateOn, g as RQBJsonLogicDateTimeOperations, h as RQBJsonLogicDateRelative, i as RQBDateTimeLibraryAPI, l as RQBJsonLogicDateNotBetween, m as RQBJsonLogicDateOnOrBefore, n as IsDateFieldFunction, o as RQBJsonLogicDateBefore, p as RQBJsonLogicDateOnOrAfter, r as RQBDateTimeJsonLogic, s as RQBJsonLogicDateBetween, t as IsDateField, u as RQBJsonLogicDateNotIn, v as RelativeDateTimeTruncationUnit, y as RelativeDateTimeUnit } from "./types-
|
|
1
|
+
import { _ as RelativeDateTimeAnchor, a as RQBJsonLogicDateAfter, b as RelativeDateTimeValue, c as RQBJsonLogicDateIn, d as RQBJsonLogicDateNotOn, f as RQBJsonLogicDateOn, g as RQBJsonLogicDateTimeOperations, h as RQBJsonLogicDateRelative, i as RQBDateTimeLibraryAPI, l as RQBJsonLogicDateNotBetween, m as RQBJsonLogicDateOnOrBefore, n as IsDateFieldFunction, o as RQBJsonLogicDateBefore, p as RQBJsonLogicDateOnOrAfter, r as RQBDateTimeJsonLogic, s as RQBJsonLogicDateBetween, t as IsDateField, u as RQBJsonLogicDateNotIn, v as RelativeDateTimeTruncationUnit, y as RelativeDateTimeUnit } from "./types-BKA1aoY6.mjs";
|
|
2
2
|
import { ExportOperatorMap, RuleProcessor, ValueProcessorByRule } from "@react-querybuilder/core";
|
|
3
|
-
|
|
4
3
|
//#region src/datetimeRuleProcessorJsonLogic.d.ts
|
|
5
4
|
/**
|
|
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
|
-
*/
|
|
5
|
+
* Date/time rule processor for use by {@link @react-querybuilder/core!formatQuery formatQuery}
|
|
6
|
+
* with the "jsonlogic" format.
|
|
7
|
+
*
|
|
8
|
+
* Note: Unlike other date/time rule processors from this library, this function does
|
|
9
|
+
* not require a date/time library API. Instead, the date/time library API is used by
|
|
10
|
+
* {@link getDatetimeJsonLogicOperations} during the evaluation process.
|
|
11
|
+
*/
|
|
13
12
|
declare const datetimeRuleProcessorJsonLogic: RuleProcessor;
|
|
14
13
|
//#endregion
|
|
15
14
|
//#region src/getDatetimeJsonLogicOperations.d.ts
|
|
16
15
|
/**
|
|
17
|
-
* Custom operations for use with JsonLogic objects generated by
|
|
18
|
-
* {@link datetimeRuleProcessorJsonLogic}.
|
|
19
|
-
*/
|
|
16
|
+
* Custom operations for use with JsonLogic objects generated by
|
|
17
|
+
* {@link datetimeRuleProcessorJsonLogic}.
|
|
18
|
+
*/
|
|
20
19
|
declare const getDatetimeJsonLogicOperations: (apiFns: RQBDateTimeLibraryAPI) => RQBJsonLogicDateTimeOperations;
|
|
21
20
|
//#endregion
|
|
22
21
|
//#region src/getDatetimeRuleProcessorCEL.d.ts
|
|
23
22
|
/**
|
|
24
|
-
* Generates a rule processor with date/time features for use by
|
|
25
|
-
* {@link @react-querybuilder/core!formatQuery formatQuery} with the "cel" format.
|
|
26
|
-
*/
|
|
23
|
+
* Generates a rule processor with date/time features for use by
|
|
24
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} with the "cel" format.
|
|
25
|
+
*/
|
|
27
26
|
declare const getDatetimeRuleProcessorCEL: (apiFns: RQBDateTimeLibraryAPI) => RuleProcessor;
|
|
28
27
|
//#endregion
|
|
29
28
|
//#region src/getDatetimeRuleProcessorCypher.d.ts
|
|
30
29
|
/**
|
|
31
|
-
* Generates a rule processor with date/time features for use by
|
|
32
|
-
* {@link @react-querybuilder/core!formatQuery formatQuery} with the "cypher" or "gql" format.
|
|
33
|
-
*
|
|
34
|
-
* Supports:
|
|
35
|
-
* - Standard comparison operators (`=`, `!=`, `<`, `>`, `<=`, `>=`)
|
|
36
|
-
* - Range operators (between, notBetween, in, notIn)
|
|
37
|
-
* - Duration math via custom operators: `olderThanDuration` and `withinDuration`
|
|
38
|
-
* (e.g., value `"P30D"` → `datetime() - field > duration('P30D')`)
|
|
39
|
-
*/
|
|
30
|
+
* Generates a rule processor with date/time features for use by
|
|
31
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} with the "cypher" or "gql" format.
|
|
32
|
+
*
|
|
33
|
+
* Supports:
|
|
34
|
+
* - Standard comparison operators (`=`, `!=`, `<`, `>`, `<=`, `>=`)
|
|
35
|
+
* - Range operators (between, notBetween, in, notIn)
|
|
36
|
+
* - Duration math via custom operators: `olderThanDuration` and `withinDuration`
|
|
37
|
+
* (e.g., value `"P30D"` → `datetime() - field > duration('P30D')`)
|
|
38
|
+
*/
|
|
40
39
|
declare const getDatetimeRuleProcessorCypher: (apiFns: RQBDateTimeLibraryAPI) => RuleProcessor;
|
|
41
40
|
//#endregion
|
|
42
41
|
//#region src/getDatetimeRuleProcessorDrizzle.d.ts
|
|
43
42
|
/**
|
|
44
|
-
* Generates a rule processor with date/time features for use by
|
|
45
|
-
* {@link @react-querybuilder/core!formatQuery formatQuery} with the "drizzle" format.
|
|
46
|
-
* Relative values are materialized and all date/time values are converted to `Date`
|
|
47
|
-
* objects (Drizzle column operators compare against native `Date` values).
|
|
48
|
-
*/
|
|
43
|
+
* Generates a rule processor with date/time features for use by
|
|
44
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} with the "drizzle" format.
|
|
45
|
+
* Relative values are materialized and all date/time values are converted to `Date`
|
|
46
|
+
* objects (Drizzle column operators compare against native `Date` values).
|
|
47
|
+
*/
|
|
49
48
|
declare const getDatetimeRuleProcessorDrizzle: (apiFns: RQBDateTimeLibraryAPI) => RuleProcessor;
|
|
50
49
|
//#endregion
|
|
51
50
|
//#region src/getDatetimeRuleProcessorElasticSearch.d.ts
|
|
52
51
|
/**
|
|
53
|
-
* Generates a rule processor with date/time features for use by
|
|
54
|
-
* {@link @react-querybuilder/core!formatQuery formatQuery} with the "elasticsearch" format.
|
|
55
|
-
* Relative values are materialized to concrete ISO 8601 strings (ElasticSearch has no
|
|
56
|
-
* symbolic relative form); absolute values pass through.
|
|
57
|
-
*/
|
|
52
|
+
* Generates a rule processor with date/time features for use by
|
|
53
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} with the "elasticsearch" format.
|
|
54
|
+
* Relative values are materialized to concrete ISO 8601 strings (ElasticSearch has no
|
|
55
|
+
* symbolic relative form); absolute values pass through.
|
|
56
|
+
*/
|
|
58
57
|
declare const getDatetimeRuleProcessorElasticSearch: (apiFns: RQBDateTimeLibraryAPI) => RuleProcessor;
|
|
59
58
|
//#endregion
|
|
60
59
|
//#region src/getDatetimeRuleProcessorGremlin.d.ts
|
|
61
60
|
/**
|
|
62
|
-
* Generates a rule processor with date/time features for use by
|
|
63
|
-
* {@link @react-querybuilder/core!formatQuery formatQuery} with the "gremlin" format.
|
|
64
|
-
* Relative values are materialized to concrete ISO 8601 strings (Gremlin has no symbolic
|
|
65
|
-
* relative form); absolute values pass through.
|
|
66
|
-
*/
|
|
61
|
+
* Generates a rule processor with date/time features for use by
|
|
62
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} with the "gremlin" format.
|
|
63
|
+
* Relative values are materialized to concrete ISO 8601 strings (Gremlin has no symbolic
|
|
64
|
+
* relative form); absolute values pass through.
|
|
65
|
+
*/
|
|
67
66
|
declare const getDatetimeRuleProcessorGremlin: (apiFns: RQBDateTimeLibraryAPI) => RuleProcessor;
|
|
68
67
|
//#endregion
|
|
69
68
|
//#region src/getDatetimeRuleProcessorJSONata.d.ts
|
|
70
69
|
/**
|
|
71
|
-
* Generates a rule processor with date/time features for use by
|
|
72
|
-
* {@link @react-querybuilder/core!formatQuery formatQuery} with the "jsonata" format.
|
|
73
|
-
*/
|
|
70
|
+
* Generates a rule processor with date/time features for use by
|
|
71
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} with the "jsonata" format.
|
|
72
|
+
*/
|
|
74
73
|
declare const getDatetimeRuleProcessorJSONata: (apiFns: RQBDateTimeLibraryAPI) => RuleProcessor;
|
|
75
74
|
//#endregion
|
|
76
75
|
//#region src/getDatetimeRuleProcessorLDAP.d.ts
|
|
77
76
|
/**
|
|
78
|
-
* Generates a rule processor with date/time features for use by
|
|
79
|
-
* {@link @react-querybuilder/core!formatQuery formatQuery} with the "ldap" format.
|
|
80
|
-
* Relative values are materialized to concrete ISO 8601 strings (LDAP has no symbolic
|
|
81
|
-
* relative form); absolute values pass through.
|
|
82
|
-
*/
|
|
77
|
+
* Generates a rule processor with date/time features for use by
|
|
78
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} with the "ldap" format.
|
|
79
|
+
* Relative values are materialized to concrete ISO 8601 strings (LDAP has no symbolic
|
|
80
|
+
* relative form); absolute values pass through.
|
|
81
|
+
*/
|
|
83
82
|
declare const getDatetimeRuleProcessorLDAP: (apiFns: RQBDateTimeLibraryAPI) => RuleProcessor;
|
|
84
83
|
//#endregion
|
|
85
84
|
//#region src/getDatetimeRuleProcessorMongoDB.d.ts
|
|
86
85
|
/**
|
|
87
|
-
* Generates a rule processor with date/time features for use by
|
|
88
|
-
* {@link @react-querybuilder/core!formatQuery formatQuery} with the (deprecated) "mongodb"
|
|
89
|
-
* format. Delegates to the "mongodb_query" date/time processor and serializes the result;
|
|
90
|
-
* `Date` values serialize to ISO 8601 strings.
|
|
91
|
-
*/
|
|
86
|
+
* Generates a rule processor with date/time features for use by
|
|
87
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} with the (deprecated) "mongodb"
|
|
88
|
+
* format. Delegates to the "mongodb_query" date/time processor and serializes the result;
|
|
89
|
+
* `Date` values serialize to ISO 8601 strings.
|
|
90
|
+
*/
|
|
92
91
|
declare const getDatetimeRuleProcessorMongoDB: (apiFns: RQBDateTimeLibraryAPI) => RuleProcessor;
|
|
93
92
|
//#endregion
|
|
94
93
|
//#region src/getDatetimeRuleProcessorMongoDBQuery.d.ts
|
|
95
94
|
/**
|
|
96
|
-
* Generates a rule processor with date/time features for use by
|
|
97
|
-
* {@link @react-querybuilder/core!formatQuery formatQuery} with the "mongodb_query" format.
|
|
98
|
-
*/
|
|
95
|
+
* Generates a rule processor with date/time features for use by
|
|
96
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} with the "mongodb_query" format.
|
|
97
|
+
*/
|
|
99
98
|
declare const getDatetimeRuleProcessorMongoDBQuery: (apiFns: RQBDateTimeLibraryAPI) => RuleProcessor;
|
|
100
99
|
//#endregion
|
|
101
100
|
//#region src/getDatetimeRuleProcessorNL.d.ts
|
|
102
101
|
declare const defaultDateTimeNLOperatorMap: ExportOperatorMap;
|
|
103
102
|
/**
|
|
104
|
-
* Generates a value processor with date/time features for use by
|
|
105
|
-
* {@link @react-querybuilder/core!formatQuery formatQuery} with the "natural_language" format.
|
|
106
|
-
*/
|
|
103
|
+
* Generates a value processor with date/time features for use by
|
|
104
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} with the "natural_language" format.
|
|
105
|
+
*/
|
|
107
106
|
declare const datetimeValueProcessorNL: ValueProcessorByRule;
|
|
108
107
|
/**
|
|
109
|
-
* Generates a rule processor with date/time features for use by {@link @react-querybuilder/core!formatQuery formatQuery} with
|
|
110
|
-
* the "natural_language" format.
|
|
111
|
-
*/
|
|
108
|
+
* Generates a rule processor with date/time features for use by {@link @react-querybuilder/core!formatQuery formatQuery} with
|
|
109
|
+
* the "natural_language" format.
|
|
110
|
+
*/
|
|
112
111
|
declare const getDatetimeRuleProcessorNL: (apiFns: RQBDateTimeLibraryAPI) => RuleProcessor;
|
|
113
112
|
//#endregion
|
|
114
113
|
//#region src/getDatetimeRuleProcessorParameterized.d.ts
|
|
115
114
|
/**
|
|
116
|
-
* Generates a rule processor with date/time features for use by
|
|
117
|
-
* {@link @react-querybuilder/core!formatQuery formatQuery} with the "parameterized" and
|
|
118
|
-
* "parameterized_named" formats. Relative values are materialized to concrete ISO 8601
|
|
119
|
-
* strings (these formats have no symbolic relative form); absolute values pass through.
|
|
120
|
-
*/
|
|
115
|
+
* Generates a rule processor with date/time features for use by
|
|
116
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} with the "parameterized" and
|
|
117
|
+
* "parameterized_named" formats. Relative values are materialized to concrete ISO 8601
|
|
118
|
+
* strings (these formats have no symbolic relative form); absolute values pass through.
|
|
119
|
+
*/
|
|
121
120
|
declare const getDatetimeRuleProcessorParameterized: (apiFns: RQBDateTimeLibraryAPI) => RuleProcessor;
|
|
122
121
|
//#endregion
|
|
123
122
|
//#region src/getDatetimeRuleProcessorPrisma.d.ts
|
|
124
123
|
/**
|
|
125
|
-
* Generates a rule processor with date/time features for use by
|
|
126
|
-
* {@link @react-querybuilder/core!formatQuery formatQuery} with the "prisma" format.
|
|
127
|
-
* Relative values are materialized and all date/time values are converted to `Date`
|
|
128
|
-
* objects (Prisma's `where` clauses use native `Date` values for date columns).
|
|
129
|
-
*/
|
|
124
|
+
* Generates a rule processor with date/time features for use by
|
|
125
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} with the "prisma" format.
|
|
126
|
+
* Relative values are materialized and all date/time values are converted to `Date`
|
|
127
|
+
* objects (Prisma's `where` clauses use native `Date` values for date columns).
|
|
128
|
+
*/
|
|
130
129
|
declare const getDatetimeRuleProcessorPrisma: (apiFns: RQBDateTimeLibraryAPI) => RuleProcessor;
|
|
131
130
|
//#endregion
|
|
132
131
|
//#region src/getDatetimeRuleProcessorSequelize.d.ts
|
|
133
132
|
/**
|
|
134
|
-
* Generates a rule processor with date/time features for use by
|
|
135
|
-
* {@link @react-querybuilder/core!formatQuery formatQuery} with the "sequelize" format.
|
|
136
|
-
* Relative values are materialized and all date/time values are converted to `Date`
|
|
137
|
-
* objects (Sequelize `where` clauses use native `Date` values for date columns).
|
|
138
|
-
*/
|
|
133
|
+
* Generates a rule processor with date/time features for use by
|
|
134
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} with the "sequelize" format.
|
|
135
|
+
* Relative values are materialized and all date/time values are converted to `Date`
|
|
136
|
+
* objects (Sequelize `where` clauses use native `Date` values for date columns).
|
|
137
|
+
*/
|
|
139
138
|
declare const getDatetimeRuleProcessorSequelize: (apiFns: RQBDateTimeLibraryAPI) => RuleProcessor;
|
|
140
139
|
//#endregion
|
|
141
140
|
//#region src/getDatetimeRuleProcessorSPARQL.d.ts
|
|
142
141
|
/**
|
|
143
|
-
* Generates a rule processor with date/time features for use by
|
|
144
|
-
* {@link @react-querybuilder/core!formatQuery formatQuery} with the "sparql" format.
|
|
145
|
-
*
|
|
146
|
-
* Supports:
|
|
147
|
-
* - Standard comparison operators (`=`, `!=`, `<`, `>`, `<=`, `>=`)
|
|
148
|
-
* - Range operators (between, notBetween, in, notIn)
|
|
149
|
-
* - Duration math via custom operators: `olderThanDuration` and `withinDuration`
|
|
150
|
-
* (e.g., value `"P30D"` → `NOW() - ?field > "P30D"^^xsd:duration`)
|
|
151
|
-
*/
|
|
142
|
+
* Generates a rule processor with date/time features for use by
|
|
143
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} with the "sparql" format.
|
|
144
|
+
*
|
|
145
|
+
* Supports:
|
|
146
|
+
* - Standard comparison operators (`=`, `!=`, `<`, `>`, `<=`, `>=`)
|
|
147
|
+
* - Range operators (between, notBetween, in, notIn)
|
|
148
|
+
* - Duration math via custom operators: `olderThanDuration` and `withinDuration`
|
|
149
|
+
* (e.g., value `"P30D"` → `NOW() - ?field > "P30D"^^xsd:duration`)
|
|
150
|
+
*/
|
|
152
151
|
declare const getDatetimeRuleProcessorSPARQL: (apiFns: RQBDateTimeLibraryAPI) => RuleProcessor;
|
|
153
152
|
//#endregion
|
|
154
153
|
//#region src/getDatetimeRuleProcessorSpEL.d.ts
|
|
155
154
|
/**
|
|
156
|
-
* Generates a rule processor with date/time features for use by
|
|
157
|
-
* {@link @react-querybuilder/core!formatQuery formatQuery} with the "spel" format.
|
|
158
|
-
* Relative values are materialized to concrete ISO 8601 strings (SpEL has no symbolic
|
|
159
|
-
* relative form); absolute values pass through.
|
|
160
|
-
*/
|
|
155
|
+
* Generates a rule processor with date/time features for use by
|
|
156
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} with the "spel" format.
|
|
157
|
+
* Relative values are materialized to concrete ISO 8601 strings (SpEL has no symbolic
|
|
158
|
+
* relative form); absolute values pass through.
|
|
159
|
+
*/
|
|
161
160
|
declare const getDatetimeRuleProcessorSpEL: (apiFns: RQBDateTimeLibraryAPI) => RuleProcessor;
|
|
162
161
|
//#endregion
|
|
163
162
|
//#region src/getDatetimeRuleProcessorSQL.d.ts
|
|
164
163
|
/**
|
|
165
|
-
* Generates a value processor with date/time features for use by
|
|
166
|
-
* {@link @react-querybuilder/core!formatQuery formatQuery} with the "sql" format and "ansi" preset.
|
|
167
|
-
*/
|
|
168
|
-
declare const getDatetimeValueProcessorANSI: ({
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
*
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
*
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
toISOStringDateOnly,
|
|
194
|
-
toISOString
|
|
195
|
-
}: RQBDateTimeLibraryAPI) => ValueProcessorByRule;
|
|
196
|
-
/**
|
|
197
|
-
* Generates a value processor with date/time features for use by {@link @react-querybuilder/core!formatQuery formatQuery} with
|
|
198
|
-
* the "sql" format and "postgresql" preset.
|
|
199
|
-
*/
|
|
200
|
-
declare const getDatetimeValueProcessorPostgreSQL: ({
|
|
201
|
-
toISOStringDateOnly,
|
|
202
|
-
toISOString
|
|
203
|
-
}: RQBDateTimeLibraryAPI) => ValueProcessorByRule;
|
|
204
|
-
/**
|
|
205
|
-
* Generates a rule processor with date/time features for use by {@link @react-querybuilder/core!formatQuery formatQuery} with
|
|
206
|
-
* the "sql" format.
|
|
207
|
-
*/
|
|
164
|
+
* Generates a value processor with date/time features for use by
|
|
165
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} with the "sql" format and "ansi" preset.
|
|
166
|
+
*/
|
|
167
|
+
declare const getDatetimeValueProcessorANSI: ({ toISOStringDateOnly, toISOString }: RQBDateTimeLibraryAPI) => ValueProcessorByRule;
|
|
168
|
+
/**
|
|
169
|
+
* Generates a value processor with date/time features for use by {@link @react-querybuilder/core!formatQuery formatQuery} with
|
|
170
|
+
* the "sql" format and "mssql" preset.
|
|
171
|
+
*/
|
|
172
|
+
declare const getDatetimeValueProcessorMSSQL: ({ toISOStringDateOnly, toISOString }: RQBDateTimeLibraryAPI) => ValueProcessorByRule;
|
|
173
|
+
/**
|
|
174
|
+
* Generates a value processor with date/time features for use by {@link @react-querybuilder/core!formatQuery formatQuery} with
|
|
175
|
+
* the "sql" format and "mysql" preset.
|
|
176
|
+
*/
|
|
177
|
+
declare const getDatetimeValueProcessorMySQL: ({ toISOStringDateOnly, toISOString }: RQBDateTimeLibraryAPI) => ValueProcessorByRule;
|
|
178
|
+
/**
|
|
179
|
+
* Generates a value processor with date/time features for use by {@link @react-querybuilder/core!formatQuery formatQuery} with
|
|
180
|
+
* the "sql" format and "oracle" preset.
|
|
181
|
+
*/
|
|
182
|
+
declare const getDatetimeValueProcessorOracle: ({ toISOStringDateOnly, toISOString }: RQBDateTimeLibraryAPI) => ValueProcessorByRule;
|
|
183
|
+
/**
|
|
184
|
+
* Generates a value processor with date/time features for use by {@link @react-querybuilder/core!formatQuery formatQuery} with
|
|
185
|
+
* the "sql" format and "postgresql" preset.
|
|
186
|
+
*/
|
|
187
|
+
declare const getDatetimeValueProcessorPostgreSQL: ({ toISOStringDateOnly, toISOString }: RQBDateTimeLibraryAPI) => ValueProcessorByRule;
|
|
188
|
+
/**
|
|
189
|
+
* Generates a rule processor with date/time features for use by {@link @react-querybuilder/core!formatQuery formatQuery} with
|
|
190
|
+
* the "sql" format.
|
|
191
|
+
*/
|
|
208
192
|
declare const getDatetimeRuleProcessorSQL: (apiFns: RQBDateTimeLibraryAPI) => RuleProcessor;
|
|
209
193
|
//#endregion
|
|
210
194
|
//#region src/getDatetimeRuleProcessorTanStackDB.d.ts
|
|
211
195
|
/**
|
|
212
|
-
* Generates a rule processor with date/time features for use by
|
|
213
|
-
* {@link @react-querybuilder/core!formatQuery formatQuery} with the "tanstack_db" format.
|
|
214
|
-
* Relative values are materialized and all date/time values are converted to `Date`
|
|
215
|
-
* objects (TanStack DB collection filters compare against native `Date` values).
|
|
216
|
-
*/
|
|
196
|
+
* Generates a rule processor with date/time features for use by
|
|
197
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} with the "tanstack_db" format.
|
|
198
|
+
* Relative values are materialized and all date/time values are converted to `Date`
|
|
199
|
+
* objects (TanStack DB collection filters compare against native `Date` values).
|
|
200
|
+
*/
|
|
217
201
|
declare const getDatetimeRuleProcessorTanStackDB: (apiFns: RQBDateTimeLibraryAPI) => RuleProcessor;
|
|
218
202
|
//#endregion
|
|
219
203
|
export { IsDateField, IsDateFieldFunction, RQBDateTimeJsonLogic, RQBDateTimeLibraryAPI, RQBJsonLogicDateAfter, RQBJsonLogicDateBefore, RQBJsonLogicDateBetween, RQBJsonLogicDateIn, RQBJsonLogicDateNotBetween, RQBJsonLogicDateNotIn, RQBJsonLogicDateNotOn, RQBJsonLogicDateOn, RQBJsonLogicDateOnOrAfter, RQBJsonLogicDateOnOrBefore, RQBJsonLogicDateRelative, RQBJsonLogicDateTimeOperations, RelativeDateTimeAnchor, RelativeDateTimeTruncationUnit, RelativeDateTimeUnit, RelativeDateTimeValue, datetimeRuleProcessorJsonLogic, datetimeValueProcessorNL, defaultDateTimeNLOperatorMap, getDatetimeJsonLogicOperations, getDatetimeRuleProcessorCEL, getDatetimeRuleProcessorCypher, getDatetimeRuleProcessorDrizzle, getDatetimeRuleProcessorElasticSearch, getDatetimeRuleProcessorGremlin, getDatetimeRuleProcessorJSONata, getDatetimeRuleProcessorLDAP, getDatetimeRuleProcessorMongoDB, getDatetimeRuleProcessorMongoDBQuery, getDatetimeRuleProcessorNL, getDatetimeRuleProcessorParameterized, getDatetimeRuleProcessorPrisma, getDatetimeRuleProcessorSPARQL, getDatetimeRuleProcessorSQL, getDatetimeRuleProcessorSequelize, getDatetimeRuleProcessorSpEL, getDatetimeRuleProcessorTanStackDB, getDatetimeValueProcessorANSI, getDatetimeValueProcessorMSSQL, getDatetimeValueProcessorMySQL, getDatetimeValueProcessorOracle, getDatetimeValueProcessorPostgreSQL };
|