@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.js";
|
|
2
2
|
import { RuleProcessor, ValueProcessorByRule } from "@react-querybuilder/core";
|
|
3
|
-
|
|
4
3
|
//#region src/rqbDateTimeLibraryAPI.date-fns.d.ts
|
|
5
4
|
/**
|
|
6
|
-
* {@link RQBDateTimeLibraryAPI} for date-fns
|
|
7
|
-
*/
|
|
5
|
+
* {@link RQBDateTimeLibraryAPI} for date-fns
|
|
6
|
+
*/
|
|
8
7
|
declare const rqbDateTimeLibraryAPI: RQBDateTimeLibraryAPI;
|
|
9
8
|
//#endregion
|
|
10
9
|
//#region src/index.date-fns.d.ts
|
|
11
10
|
/**
|
|
12
|
-
* Custom JsonLogic date/time operations using date-fns
|
|
13
|
-
*/
|
|
11
|
+
* Custom JsonLogic date/time operations using date-fns
|
|
12
|
+
*/
|
|
14
13
|
declare const jsonLogicDateTimeOperations: RQBJsonLogicDateTimeOperations;
|
|
15
14
|
/**
|
|
16
|
-
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "sql" format using date-fns
|
|
17
|
-
*/
|
|
15
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "sql" format using date-fns
|
|
16
|
+
*/
|
|
18
17
|
declare const datetimeRuleProcessorSQL: RuleProcessor;
|
|
19
18
|
/**
|
|
20
|
-
* {@link @react-querybuilder/core!formatQuery formatQuery} value processor for "sql" format ("ansi" preset) using date-fns
|
|
21
|
-
*/
|
|
19
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} value processor for "sql" format ("ansi" preset) using date-fns
|
|
20
|
+
*/
|
|
22
21
|
declare const datetimeValueProcessorANSI: ValueProcessorByRule;
|
|
23
22
|
/**
|
|
24
|
-
* {@link @react-querybuilder/core!formatQuery formatQuery} value processor for "sql" format ("mssql" preset) using date-fns
|
|
25
|
-
*/
|
|
23
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} value processor for "sql" format ("mssql" preset) using date-fns
|
|
24
|
+
*/
|
|
26
25
|
declare const datetimeValueProcessorMSSQL: ValueProcessorByRule;
|
|
27
26
|
/**
|
|
28
|
-
* {@link @react-querybuilder/core!formatQuery formatQuery} value processor for "sql" format ("mysql" preset) using date-fns
|
|
29
|
-
*/
|
|
27
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} value processor for "sql" format ("mysql" preset) using date-fns
|
|
28
|
+
*/
|
|
30
29
|
declare const datetimeValueProcessorMySQL: ValueProcessorByRule;
|
|
31
30
|
/**
|
|
32
|
-
* {@link @react-querybuilder/core!formatQuery formatQuery} value processor for "sql" format ("oracle" preset) using date-fns
|
|
33
|
-
*/
|
|
31
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} value processor for "sql" format ("oracle" preset) using date-fns
|
|
32
|
+
*/
|
|
34
33
|
declare const datetimeValueProcessorOracle: ValueProcessorByRule;
|
|
35
34
|
/**
|
|
36
|
-
* {@link @react-querybuilder/core!formatQuery formatQuery} value processor for "sql" format ("postgresql" preset) using date-fns
|
|
37
|
-
*/
|
|
35
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} value processor for "sql" format ("postgresql" preset) using date-fns
|
|
36
|
+
*/
|
|
38
37
|
declare const datetimeValueProcessorPostgreSQL: ValueProcessorByRule;
|
|
39
38
|
/**
|
|
40
|
-
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "cel" format using date-fns
|
|
41
|
-
*/
|
|
39
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "cel" format using date-fns
|
|
40
|
+
*/
|
|
42
41
|
declare const datetimeRuleProcessorCEL: ValueProcessorByRule;
|
|
43
42
|
/**
|
|
44
|
-
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "jsonata" format using date-fns
|
|
45
|
-
*/
|
|
43
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "jsonata" format using date-fns
|
|
44
|
+
*/
|
|
46
45
|
declare const datetimeRuleProcessorJSONata: RuleProcessor;
|
|
47
46
|
/**
|
|
48
|
-
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "mongodb_query" format using date-fns
|
|
49
|
-
*/
|
|
47
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "mongodb_query" format using date-fns
|
|
48
|
+
*/
|
|
50
49
|
declare const datetimeRuleProcessorMongoDBQuery: ValueProcessorByRule;
|
|
51
50
|
/**
|
|
52
|
-
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "natural_language" format using date-fns
|
|
53
|
-
*/
|
|
51
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "natural_language" format using date-fns
|
|
52
|
+
*/
|
|
54
53
|
declare const datetimeRuleProcessorNL: ValueProcessorByRule;
|
|
55
54
|
/**
|
|
56
|
-
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "cypher"/"gql" format using date-fns
|
|
57
|
-
*/
|
|
55
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "cypher"/"gql" format using date-fns
|
|
56
|
+
*/
|
|
58
57
|
declare const datetimeRuleProcessorCypher: ValueProcessorByRule;
|
|
59
58
|
/**
|
|
60
|
-
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "sparql" format using date-fns
|
|
61
|
-
*/
|
|
59
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "sparql" format using date-fns
|
|
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,2 +1,2 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./utils-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./utils-DdBYGWHZ.js"),t=require("./getDatetimeRuleProcessorTanStackDB-X6tZv7yV.js");let n=require("date-fns");const r=e=>typeof e==`string`?(0,n.parseISO)(e):(0,n.toDate)(e),i=`yyyy-MM-dd`,a={day:n.startOfDay,week:n.startOfWeek,month:n.startOfMonth,year:n.startOfYear},o={day:n.endOfDay,week:n.endOfWeek,month:n.endOfMonth,year:n.endOfYear},s={minute:`minutes`,hour:`hours`,day:`days`,week:`weeks`,month:`months`,year:`years`},c={format:(e,t)=>(0,n.format)(r(e),t.replace(`YYYY-MM-DD`,i)),isAfter:n.isAfter,isBefore:n.isBefore,isSame:(t,i)=>{let a=r(t),o=r(i);return e.n(t)||e.n(i)?(0,n.isSameDay)(a,o):a.getTime()===o.getTime()},isValid:e=>(0,n.isValid)(r(e)),toDate:r,toISOString:e=>{let t=r(e);return(0,n.isValid)(t)?t.toISOString():``},toISOStringDateOnly:e=>{let t=r(e);return(0,n.isValid)(t)?(0,n.format)(t,i):``},startOf:(e,t)=>a[t](r(e)),endOf:(e,t)=>o[t](r(e)),add:(e,t,i)=>(0,n.add)(r(e),{[s[i]]:t})},l=t.T(c),u=t.n(c),d=t.r(c),f=t.i(c),p=t.a(c),m=t.o(c),h=t.s(c),g=t.w(c),_=t.y(c),v=t._(c),y=t.h(c),b=t.C(c),x=t.l(c),S=t.f(c),C=t.c(c),w=t.v(c),T=t.b(c),E=t.d(c),D=t.u(c),O=t.S(c),k=t.x(c),A=t.t(c),j=t.g(c);exports.datetimeRuleProcessorCEL=g,exports.datetimeRuleProcessorCypher=b,exports.datetimeRuleProcessorDrizzle=O,exports.datetimeRuleProcessorElasticSearch=k,exports.datetimeRuleProcessorGremlin=T,exports.datetimeRuleProcessorJSONata=_,exports.datetimeRuleProcessorLDAP=w,exports.datetimeRuleProcessorMongoDB=j,exports.datetimeRuleProcessorMongoDBQuery=v,exports.datetimeRuleProcessorNL=y,exports.datetimeRuleProcessorParameterized=S,exports.datetimeRuleProcessorPrisma=E,exports.datetimeRuleProcessorSPARQL=x,exports.datetimeRuleProcessorSQL=u,exports.datetimeRuleProcessorSequelize=D,exports.datetimeRuleProcessorSpEL=C,exports.datetimeRuleProcessorTanStackDB=A,exports.datetimeValueProcessorANSI=d,exports.datetimeValueProcessorMSSQL=f,exports.datetimeValueProcessorMySQL=p,exports.datetimeValueProcessorOracle=m,exports.datetimeValueProcessorPostgreSQL=h,exports.jsonLogicDateTimeOperations=l,exports.rqbDateTimeLibraryAPI=c;
|
|
2
2
|
//# sourceMappingURL=react-querybuilder_datetime.cjs.production.date-fns.js.map
|
|
@@ -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.js";
|
|
2
2
|
import { RuleProcessor, ValueProcessorByRule } from "@react-querybuilder/core";
|
|
3
|
-
|
|
4
3
|
//#region src/rqbDateTimeLibraryAPI.dayjs.d.ts
|
|
5
4
|
/**
|
|
6
|
-
* {@link RQBDateTimeLibraryAPI} for Day.js
|
|
7
|
-
*/
|
|
5
|
+
* {@link RQBDateTimeLibraryAPI} for Day.js
|
|
6
|
+
*/
|
|
8
7
|
declare const rqbDateTimeLibraryAPI: RQBDateTimeLibraryAPI;
|
|
9
8
|
//#endregion
|
|
10
9
|
//#region src/index.dayjs.d.ts
|
|
11
10
|
/**
|
|
12
|
-
* Custom JsonLogic date/time operations using Day.js
|
|
13
|
-
*/
|
|
11
|
+
* Custom JsonLogic date/time operations using Day.js
|
|
12
|
+
*/
|
|
14
13
|
declare const jsonLogicDateTimeOperations: RQBJsonLogicDateTimeOperations;
|
|
15
14
|
/**
|
|
16
|
-
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "sql" format using Day.js
|
|
17
|
-
*/
|
|
15
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "sql" format using Day.js
|
|
16
|
+
*/
|
|
18
17
|
declare const datetimeRuleProcessorSQL: RuleProcessor;
|
|
19
18
|
/**
|
|
20
|
-
* {@link @react-querybuilder/core!formatQuery formatQuery} value processor for "sql" format ("ansi" preset) using Day.js
|
|
21
|
-
*/
|
|
19
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} value processor for "sql" format ("ansi" preset) using Day.js
|
|
20
|
+
*/
|
|
22
21
|
declare const datetimeValueProcessorANSI: ValueProcessorByRule;
|
|
23
22
|
/**
|
|
24
|
-
* {@link @react-querybuilder/core!formatQuery formatQuery} value processor for "sql" format ("mssql" preset) using Day.js
|
|
25
|
-
*/
|
|
23
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} value processor for "sql" format ("mssql" preset) using Day.js
|
|
24
|
+
*/
|
|
26
25
|
declare const datetimeValueProcessorMSSQL: ValueProcessorByRule;
|
|
27
26
|
/**
|
|
28
|
-
* {@link @react-querybuilder/core!formatQuery formatQuery} value processor for "sql" format ("mysql" preset) using Day.js
|
|
29
|
-
*/
|
|
27
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} value processor for "sql" format ("mysql" preset) using Day.js
|
|
28
|
+
*/
|
|
30
29
|
declare const datetimeValueProcessorMySQL: ValueProcessorByRule;
|
|
31
30
|
/**
|
|
32
|
-
* {@link @react-querybuilder/core!formatQuery formatQuery} value processor for "sql" format ("oracle" preset) using Day.js
|
|
33
|
-
*/
|
|
31
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} value processor for "sql" format ("oracle" preset) using Day.js
|
|
32
|
+
*/
|
|
34
33
|
declare const datetimeValueProcessorOracle: ValueProcessorByRule;
|
|
35
34
|
/**
|
|
36
|
-
* {@link @react-querybuilder/core!formatQuery formatQuery} value processor for "sql" format ("postgresql" preset) using Day.js
|
|
37
|
-
*/
|
|
35
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} value processor for "sql" format ("postgresql" preset) using Day.js
|
|
36
|
+
*/
|
|
38
37
|
declare const datetimeValueProcessorPostgreSQL: ValueProcessorByRule;
|
|
39
38
|
/**
|
|
40
|
-
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "cel" format using Day.js
|
|
41
|
-
*/
|
|
39
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "cel" format using Day.js
|
|
40
|
+
*/
|
|
42
41
|
declare const datetimeRuleProcessorCEL: ValueProcessorByRule;
|
|
43
42
|
/**
|
|
44
|
-
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "jsonata" format using Day.js
|
|
45
|
-
*/
|
|
43
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "jsonata" format using Day.js
|
|
44
|
+
*/
|
|
46
45
|
declare const datetimeRuleProcessorJSONata: RuleProcessor;
|
|
47
46
|
/**
|
|
48
|
-
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "mongodb_query" format using Day.js
|
|
49
|
-
*/
|
|
47
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "mongodb_query" format using Day.js
|
|
48
|
+
*/
|
|
50
49
|
declare const datetimeRuleProcessorMongoDBQuery: ValueProcessorByRule;
|
|
51
50
|
/**
|
|
52
|
-
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "natural_language" format using Day.js
|
|
53
|
-
*/
|
|
51
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "natural_language" format using Day.js
|
|
52
|
+
*/
|
|
54
53
|
declare const datetimeRuleProcessorNL: ValueProcessorByRule;
|
|
55
54
|
/**
|
|
56
|
-
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "cypher"/"gql" format using Day.js
|
|
57
|
-
*/
|
|
55
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "cypher"/"gql" format using Day.js
|
|
56
|
+
*/
|
|
58
57
|
declare const datetimeRuleProcessorCypher: ValueProcessorByRule;
|
|
59
58
|
/**
|
|
60
|
-
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "sparql" format using Day.js
|
|
61
|
-
*/
|
|
59
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "sparql" format using Day.js
|
|
60
|
+
*/
|
|
62
61
|
declare const datetimeRuleProcessorSPARQL: ValueProcessorByRule;
|
|
63
62
|
/**
|
|
64
|
-
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "parameterized"/"parameterized_named" formats using Day.js
|
|
65
|
-
*/
|
|
63
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "parameterized"/"parameterized_named" formats using Day.js
|
|
64
|
+
*/
|
|
66
65
|
declare const datetimeRuleProcessorParameterized: RuleProcessor;
|
|
67
66
|
/**
|
|
68
|
-
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "spel" format using Day.js
|
|
69
|
-
*/
|
|
67
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "spel" format using Day.js
|
|
68
|
+
*/
|
|
70
69
|
declare const datetimeRuleProcessorSpEL: RuleProcessor;
|
|
71
70
|
/**
|
|
72
|
-
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "ldap" format using Day.js
|
|
73
|
-
*/
|
|
71
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "ldap" format using Day.js
|
|
72
|
+
*/
|
|
74
73
|
declare const datetimeRuleProcessorLDAP: RuleProcessor;
|
|
75
74
|
/**
|
|
76
|
-
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "gremlin" format using Day.js
|
|
77
|
-
*/
|
|
75
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "gremlin" format using Day.js
|
|
76
|
+
*/
|
|
78
77
|
declare const datetimeRuleProcessorGremlin: RuleProcessor;
|
|
79
78
|
/**
|
|
80
|
-
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "prisma" format using Day.js
|
|
81
|
-
*/
|
|
79
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "prisma" format using Day.js
|
|
80
|
+
*/
|
|
82
81
|
declare const datetimeRuleProcessorPrisma: RuleProcessor;
|
|
83
82
|
/**
|
|
84
|
-
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "sequelize" format using Day.js
|
|
85
|
-
*/
|
|
83
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "sequelize" format using Day.js
|
|
84
|
+
*/
|
|
86
85
|
declare const datetimeRuleProcessorSequelize: RuleProcessor;
|
|
87
86
|
/**
|
|
88
|
-
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "drizzle" format using Day.js
|
|
89
|
-
*/
|
|
87
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "drizzle" format using Day.js
|
|
88
|
+
*/
|
|
90
89
|
declare const datetimeRuleProcessorDrizzle: RuleProcessor;
|
|
91
90
|
/**
|
|
92
|
-
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "elasticsearch" format using Day.js
|
|
93
|
-
*/
|
|
91
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "elasticsearch" format using Day.js
|
|
92
|
+
*/
|
|
94
93
|
declare const datetimeRuleProcessorElasticSearch: RuleProcessor;
|
|
95
94
|
/**
|
|
96
|
-
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "tanstack_db" format using Day.js
|
|
97
|
-
*/
|
|
95
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "tanstack_db" format using Day.js
|
|
96
|
+
*/
|
|
98
97
|
declare const datetimeRuleProcessorTanStackDB: RuleProcessor;
|
|
99
98
|
/**
|
|
100
|
-
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for (deprecated) "mongodb" format using Day.js
|
|
101
|
-
*/
|
|
99
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for (deprecated) "mongodb" format using Day.js
|
|
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,2 +1,2 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./rolldown-runtime-CMqjfN_6.js"),t=require("./utils-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./rolldown-runtime-CMqjfN_6.js"),t=require("./utils-DdBYGWHZ.js"),n=require("./getDatetimeRuleProcessorTanStackDB-X6tZv7yV.js");let r=require("dayjs");r=e.t(r);const i={format:(e,t)=>(0,r.default)(e).format(t),isAfter:(e,t)=>(0,r.default)(e).isAfter(t),isBefore:(e,t)=>(0,r.default)(e).isBefore(t),isSame:(e,n)=>(0,r.default)(e).isSame(n,t.n(e)||t.n(n)?`d`:`ms`),isValid:e=>(0,r.default)(e).isValid(),toDate:e=>(0,r.default)(e).toDate(),toISOString:e=>{let t=(0,r.default)(e);return t.isValid()?t.toISOString():``},toISOStringDateOnly:e=>{let t=(0,r.default)(e);return t.isValid()?t.format(`YYYY-MM-DD`):``},startOf:(e,t)=>(0,r.default)(e).startOf(t).toDate(),endOf:(e,t)=>(0,r.default)(e).endOf(t).toDate(),add:(e,t,n)=>(0,r.default)(e).add(t,n).toDate()},a=n.T(i),o=n.n(i),s=n.r(i),c=n.i(i),l=n.a(i),u=n.o(i),d=n.s(i),f=n.w(i),p=n.y(i),m=n._(i),h=n.h(i),g=n.C(i),_=n.l(i),v=n.f(i),y=n.c(i),b=n.v(i),x=n.b(i),S=n.d(i),C=n.u(i),w=n.S(i),T=n.x(i),E=n.t(i),D=n.g(i);exports.datetimeRuleProcessorCEL=f,exports.datetimeRuleProcessorCypher=g,exports.datetimeRuleProcessorDrizzle=w,exports.datetimeRuleProcessorElasticSearch=T,exports.datetimeRuleProcessorGremlin=x,exports.datetimeRuleProcessorJSONata=p,exports.datetimeRuleProcessorLDAP=b,exports.datetimeRuleProcessorMongoDB=D,exports.datetimeRuleProcessorMongoDBQuery=m,exports.datetimeRuleProcessorNL=h,exports.datetimeRuleProcessorParameterized=v,exports.datetimeRuleProcessorPrisma=S,exports.datetimeRuleProcessorSPARQL=_,exports.datetimeRuleProcessorSQL=o,exports.datetimeRuleProcessorSequelize=C,exports.datetimeRuleProcessorSpEL=y,exports.datetimeRuleProcessorTanStackDB=E,exports.datetimeValueProcessorANSI=s,exports.datetimeValueProcessorMSSQL=c,exports.datetimeValueProcessorMySQL=l,exports.datetimeValueProcessorOracle=u,exports.datetimeValueProcessorPostgreSQL=d,exports.jsonLogicDateTimeOperations=a,exports.rqbDateTimeLibraryAPI=i;
|
|
2
2
|
//# sourceMappingURL=react-querybuilder_datetime.cjs.production.dayjs.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./utils-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./utils-DdBYGWHZ.js"),t=require("./getDatetimeRuleProcessorTanStackDB-X6tZv7yV.js");let n=require("@react-querybuilder/core");const r={"!=":`dateNotOn`,"<":`dateBefore`,"<=":`dateOnOrBefore`,"=":`dateOn`,">":`dateAfter`,">=":`dateOnOrAfter`,between:`dateBetween`,in:`dateIn`,notBetween:`dateNotBetween`,notIn:`dateNotIn`},i=(t,i)=>{let a=i??{};if(!e.s(a.context?.isDateField,t,a)||t.valueSource===`parameter`)return(0,n.defaultRuleProcessorJsonLogic)(t,a);let{field:o,value:s,valueSource:c}=t,l=e.c(t,a),u=c===`field`,d={var:o},f=e.t(a?.fieldData?.datatype),p=t=>u?{var:`${t}`}:e.i(t)?{dateRelative:[t.anchor,t.offset,t.unit,f]}:t;switch(l){case`<`:case`<=`:case`=`:case`!=`:case`>`:case`>=`:return{[r[l]]:[d,p(s)]};case`in`:case`notIn`:{let e=(Array.isArray(s)?s:(0,n.toArray)(s)).map(p);return{[r[l]]:[d,e]}}case`between`:case`notBetween`:{let e=(Array.isArray(s)?s:(0,n.toArray)(s)).map(p);return e.length<2?!1:{[r[l]]:[e[0],d,e[1]]}}}return(0,n.defaultRuleProcessorJsonLogic)(t,i)};exports.datetimeRuleProcessorJsonLogic=i,exports.datetimeValueProcessorNL=t.p,exports.defaultDateTimeNLOperatorMap=t.m,exports.getDatetimeJsonLogicOperations=t.T,exports.getDatetimeRuleProcessorCEL=t.w,exports.getDatetimeRuleProcessorCypher=t.C,exports.getDatetimeRuleProcessorDrizzle=t.S,exports.getDatetimeRuleProcessorElasticSearch=t.x,exports.getDatetimeRuleProcessorGremlin=t.b,exports.getDatetimeRuleProcessorJSONata=t.y,exports.getDatetimeRuleProcessorLDAP=t.v,exports.getDatetimeRuleProcessorMongoDB=t.g,exports.getDatetimeRuleProcessorMongoDBQuery=t._,exports.getDatetimeRuleProcessorNL=t.h,exports.getDatetimeRuleProcessorParameterized=t.f,exports.getDatetimeRuleProcessorPrisma=t.d,exports.getDatetimeRuleProcessorSPARQL=t.l,exports.getDatetimeRuleProcessorSQL=t.n,exports.getDatetimeRuleProcessorSequelize=t.u,exports.getDatetimeRuleProcessorSpEL=t.c,exports.getDatetimeRuleProcessorTanStackDB=t.t,exports.getDatetimeValueProcessorANSI=t.r,exports.getDatetimeValueProcessorMSSQL=t.i,exports.getDatetimeValueProcessorMySQL=t.a,exports.getDatetimeValueProcessorOracle=t.o,exports.getDatetimeValueProcessorPostgreSQL=t.s;
|
|
2
2
|
//# sourceMappingURL=react-querybuilder_datetime.cjs.production.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react-querybuilder_datetime.cjs.production.js","names":["processIsDateField","resolveDatetimeOperator","isDateOnlyDatatype","isRelativeDateTimeValue"],"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.cjs.production.js","names":["processIsDateField","resolveDatetimeOperator","isDateOnlyDatatype","isRelativeDateTimeValue"],"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":"kNAUA,MAAM,EAAmB,CACvB,KAAM,YACN,IAAK,aACL,KAAM,iBACN,IAAK,SACL,IAAK,YACL,KAAM,gBACN,QAAS,cACT,GAAI,SACJ,WAAY,iBACZ,MAAO,WACT,EAUa,GACX,EACA,IACyB,CACzB,IAAM,EAAO,GAA8C,CAAC,EAQ5D,GANI,CAACA,EAAAA,EAAmB,EAAK,SAAS,YAAa,EAAM,CAAI,GAMzD,EAAK,cAAgB,YACvB,OAAA,EAAA,EAAA,8BAAA,CAAqC,EAAM,CAAI,EAGjD,GAAM,CAAE,QAAO,QAAO,eAAgB,EAChC,EAAWC,EAAAA,EAAwB,EAAM,CAAI,EAC7C,EAAe,IAAgB,QAC/B,EAA4B,CAAE,IAAK,CAAM,EACzC,EAAWC,EAAAA,EAAmB,GAAM,WAAW,QAAQ,EAGvD,EAAe,GACf,EAAqB,CAAE,IAAK,GAAG,GAAI,EACnCC,EAAAA,EAAwB,CAAC,EACpB,CACL,aAAc,CAAC,EAAE,OAAQ,EAAE,OAAQ,EAAE,KAAM,CAAQ,CACrD,EAEK,EAGT,OAAQ,EAAR,CACE,IAAK,IACL,IAAK,KACL,IAAK,IACL,IAAK,KACL,IAAK,IACL,IAAK,KACH,MAAO,EACJ,EAAiB,IAAY,CAAC,EAAa,EAAY,CAAK,CAAC,CAChE,EAEF,IAAK,KACL,IAAK,QAAS,CACZ,IAAM,GAAgB,MAAM,QAAQ,CAAK,EAAI,GAAA,EAAA,EAAA,QAAA,CAAgB,CAAK,EAAA,CAAG,IAAI,CAAW,EACpF,MAAO,EAAG,EAAiB,IAAY,CAAC,EAAa,CAAY,CAAE,CACrE,CAEA,IAAK,UACL,IAAK,aAAc,CACjB,IAAM,GAAgB,MAAM,QAAQ,CAAK,EAAI,GAAA,EAAA,EAAA,QAAA,CAAgB,CAAK,EAAA,CAAG,IAAI,CAAW,EAIpF,OAFI,EAAa,OAAS,EAAU,GAE7B,EACJ,EAAiB,IAAY,CAAC,EAAa,GAAI,EAAa,EAAa,EAAE,CAC9E,CACF,CACF,CAEA,OAAA,EAAA,EAAA,8BAAA,CAAqC,EAAM,CAAO,CACpD"}
|
|
@@ -1,107 +1,106 @@
|
|
|
1
|
-
import { g as RQBJsonLogicDateTimeOperations, i as RQBDateTimeLibraryAPI } from "./types-
|
|
1
|
+
import { g as RQBJsonLogicDateTimeOperations, i as RQBDateTimeLibraryAPI } from "./types-BKA1aoY6.js";
|
|
2
2
|
import { RuleProcessor, ValueProcessorByRule } from "@react-querybuilder/core";
|
|
3
|
-
|
|
4
3
|
//#region src/rqbDateTimeLibraryAPI.jsdate.d.ts
|
|
5
4
|
/**
|
|
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
|
-
*/
|
|
5
|
+
* {@link RQBDateTimeLibraryAPI} for JavaScript `Date`
|
|
6
|
+
*
|
|
7
|
+
* @deprecated This API will not be removed, but we recommend using one of the other
|
|
8
|
+
* {@link RQBDateTimeLibraryAPI}s based on a popular library instead.
|
|
9
|
+
*/
|
|
11
10
|
declare const rqbDateTimeLibraryAPI: RQBDateTimeLibraryAPI;
|
|
12
11
|
//#endregion
|
|
13
12
|
//#region src/index.jsdate.d.ts
|
|
14
13
|
/**
|
|
15
|
-
* Custom JsonLogic date/time operations using JavaScript `Date`.
|
|
16
|
-
*/
|
|
14
|
+
* Custom JsonLogic date/time operations using JavaScript `Date`.
|
|
15
|
+
*/
|
|
17
16
|
declare const jsonLogicDateTimeOperations: RQBJsonLogicDateTimeOperations;
|
|
18
17
|
/**
|
|
19
|
-
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "sql" format using JavaScript `Date`
|
|
20
|
-
*/
|
|
18
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "sql" format using JavaScript `Date`
|
|
19
|
+
*/
|
|
21
20
|
declare const datetimeRuleProcessorSQL: RuleProcessor;
|
|
22
21
|
/**
|
|
23
|
-
* {@link @react-querybuilder/core!formatQuery formatQuery} value processor for "sql" format ("ansi" preset) using JavaScript `Date`
|
|
24
|
-
*/
|
|
22
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} value processor for "sql" format ("ansi" preset) using JavaScript `Date`
|
|
23
|
+
*/
|
|
25
24
|
declare const datetimeValueProcessorANSI: ValueProcessorByRule;
|
|
26
25
|
/**
|
|
27
|
-
* {@link @react-querybuilder/core!formatQuery formatQuery} value processor for "sql" format ("mssql" preset) using JavaScript `Date`
|
|
28
|
-
*/
|
|
26
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} value processor for "sql" format ("mssql" preset) using JavaScript `Date`
|
|
27
|
+
*/
|
|
29
28
|
declare const datetimeValueProcessorMSSQL: ValueProcessorByRule;
|
|
30
29
|
/**
|
|
31
|
-
* {@link @react-querybuilder/core!formatQuery formatQuery} value processor for "sql" format ("mysql" preset) using JavaScript `Date`
|
|
32
|
-
*/
|
|
30
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} value processor for "sql" format ("mysql" preset) using JavaScript `Date`
|
|
31
|
+
*/
|
|
33
32
|
declare const datetimeValueProcessorMySQL: ValueProcessorByRule;
|
|
34
33
|
/**
|
|
35
|
-
* {@link @react-querybuilder/core!formatQuery formatQuery} value processor for "sql" format ("oracle" preset) using JavaScript `Date`
|
|
36
|
-
*/
|
|
34
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} value processor for "sql" format ("oracle" preset) using JavaScript `Date`
|
|
35
|
+
*/
|
|
37
36
|
declare const datetimeValueProcessorOracle: ValueProcessorByRule;
|
|
38
37
|
/**
|
|
39
|
-
* {@link @react-querybuilder/core!formatQuery formatQuery} value processor for "sql" format ("postgresql" preset) using JavaScript `Date`
|
|
40
|
-
*/
|
|
38
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} value processor for "sql" format ("postgresql" preset) using JavaScript `Date`
|
|
39
|
+
*/
|
|
41
40
|
declare const datetimeValueProcessorPostgreSQL: ValueProcessorByRule;
|
|
42
41
|
/**
|
|
43
|
-
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "cel" format using JavaScript `Date`
|
|
44
|
-
*/
|
|
42
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "cel" format using JavaScript `Date`
|
|
43
|
+
*/
|
|
45
44
|
declare const datetimeRuleProcessorCEL: RuleProcessor;
|
|
46
45
|
/**
|
|
47
|
-
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "jsonata" format using JavaScript `Date`
|
|
48
|
-
*/
|
|
46
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "jsonata" format using JavaScript `Date`
|
|
47
|
+
*/
|
|
49
48
|
declare const datetimeRuleProcessorJSONata: RuleProcessor;
|
|
50
49
|
/**
|
|
51
|
-
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "mongodb_query" format using JavaScript `Date`
|
|
52
|
-
*/
|
|
50
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "mongodb_query" format using JavaScript `Date`
|
|
51
|
+
*/
|
|
53
52
|
declare const datetimeRuleProcessorMongoDBQuery: RuleProcessor;
|
|
54
53
|
/**
|
|
55
|
-
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "natural_language" format using JavaScript `Date`
|
|
56
|
-
*/
|
|
54
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "natural_language" format using JavaScript `Date`
|
|
55
|
+
*/
|
|
57
56
|
declare const datetimeRuleProcessorNL: ValueProcessorByRule;
|
|
58
57
|
/**
|
|
59
|
-
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "cypher"/"gql" format using JavaScript `Date`
|
|
60
|
-
*/
|
|
58
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "cypher"/"gql" format using JavaScript `Date`
|
|
59
|
+
*/
|
|
61
60
|
declare const datetimeRuleProcessorCypher: RuleProcessor;
|
|
62
61
|
/**
|
|
63
|
-
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "sparql" format using JavaScript `Date`
|
|
64
|
-
*/
|
|
62
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "sparql" format using JavaScript `Date`
|
|
63
|
+
*/
|
|
65
64
|
declare const datetimeRuleProcessorSPARQL: RuleProcessor;
|
|
66
65
|
/**
|
|
67
|
-
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "parameterized"/"parameterized_named" formats
|
|
68
|
-
*/
|
|
66
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "parameterized"/"parameterized_named" formats
|
|
67
|
+
*/
|
|
69
68
|
declare const datetimeRuleProcessorParameterized: RuleProcessor;
|
|
70
69
|
/**
|
|
71
|
-
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "spel" format
|
|
72
|
-
*/
|
|
70
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "spel" format
|
|
71
|
+
*/
|
|
73
72
|
declare const datetimeRuleProcessorSpEL: RuleProcessor;
|
|
74
73
|
/**
|
|
75
|
-
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "ldap" format
|
|
76
|
-
*/
|
|
74
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "ldap" format
|
|
75
|
+
*/
|
|
77
76
|
declare const datetimeRuleProcessorLDAP: RuleProcessor;
|
|
78
77
|
/**
|
|
79
|
-
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "gremlin" format
|
|
80
|
-
*/
|
|
78
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "gremlin" format
|
|
79
|
+
*/
|
|
81
80
|
declare const datetimeRuleProcessorGremlin: RuleProcessor;
|
|
82
81
|
/**
|
|
83
|
-
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "prisma" format
|
|
84
|
-
*/
|
|
82
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "prisma" format
|
|
83
|
+
*/
|
|
85
84
|
declare const datetimeRuleProcessorPrisma: RuleProcessor;
|
|
86
85
|
/**
|
|
87
|
-
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "sequelize" format
|
|
88
|
-
*/
|
|
86
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "sequelize" format
|
|
87
|
+
*/
|
|
89
88
|
declare const datetimeRuleProcessorSequelize: RuleProcessor;
|
|
90
89
|
/**
|
|
91
|
-
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "drizzle" format
|
|
92
|
-
*/
|
|
90
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "drizzle" format
|
|
91
|
+
*/
|
|
93
92
|
declare const datetimeRuleProcessorDrizzle: RuleProcessor;
|
|
94
93
|
/**
|
|
95
|
-
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "elasticsearch" format
|
|
96
|
-
*/
|
|
94
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "elasticsearch" format
|
|
95
|
+
*/
|
|
97
96
|
declare const datetimeRuleProcessorElasticSearch: RuleProcessor;
|
|
98
97
|
/**
|
|
99
|
-
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "tanstack_db" format
|
|
100
|
-
*/
|
|
98
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for "tanstack_db" format
|
|
99
|
+
*/
|
|
101
100
|
declare const datetimeRuleProcessorTanStackDB: RuleProcessor;
|
|
102
101
|
/**
|
|
103
|
-
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for (deprecated) "mongodb" format
|
|
104
|
-
*/
|
|
102
|
+
* {@link @react-querybuilder/core!formatQuery formatQuery} rule processor for (deprecated) "mongodb" format
|
|
103
|
+
*/
|
|
105
104
|
declare const datetimeRuleProcessorMongoDB: RuleProcessor;
|
|
106
105
|
//#endregion
|
|
107
106
|
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,2 +1,2 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./getDatetimeRuleProcessorTanStackDB-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./getDatetimeRuleProcessorTanStackDB-X6tZv7yV.js"),t=require("./rqbDateTimeLibraryAPI.jsdate-BuSiVdk7.js"),n=e.T(t.t),r=e.n(t.t),i=e.r(t.t),a=e.i(t.t),o=e.a(t.t),s=e.o(t.t),c=e.s(t.t),l=e.w(t.t),u=e.y(t.t),d=e._(t.t),f=e.h(t.t),p=e.C(t.t),m=e.l(t.t),h=e.f(t.t),g=e.c(t.t),_=e.v(t.t),v=e.b(t.t),y=e.d(t.t),b=e.u(t.t),x=e.S(t.t),S=e.x(t.t),C=e.t(t.t),w=e.g(t.t);exports.datetimeRuleProcessorCEL=l,exports.datetimeRuleProcessorCypher=p,exports.datetimeRuleProcessorDrizzle=x,exports.datetimeRuleProcessorElasticSearch=S,exports.datetimeRuleProcessorGremlin=v,exports.datetimeRuleProcessorJSONata=u,exports.datetimeRuleProcessorLDAP=_,exports.datetimeRuleProcessorMongoDB=w,exports.datetimeRuleProcessorMongoDBQuery=d,exports.datetimeRuleProcessorNL=f,exports.datetimeRuleProcessorParameterized=h,exports.datetimeRuleProcessorPrisma=y,exports.datetimeRuleProcessorSPARQL=m,exports.datetimeRuleProcessorSQL=r,exports.datetimeRuleProcessorSequelize=b,exports.datetimeRuleProcessorSpEL=g,exports.datetimeRuleProcessorTanStackDB=C,exports.datetimeValueProcessorANSI=i,exports.datetimeValueProcessorMSSQL=a,exports.datetimeValueProcessorMySQL=o,exports.datetimeValueProcessorOracle=s,exports.datetimeValueProcessorPostgreSQL=c,exports.jsonLogicDateTimeOperations=n,exports.rqbDateTimeLibraryAPI=t.t;
|
|
2
2
|
//# sourceMappingURL=react-querybuilder_datetime.cjs.production.jsdate.js.map
|