@react-querybuilder/core 8.9.0 → 8.9.2
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/LICENSE.md +21 -0
- package/dist/arrayUtils-BF1P8iHS.mjs +122 -0
- package/dist/arrayUtils-BF1P8iHS.mjs.map +1 -0
- package/dist/basic-BfD-7CN3.d.mts +1235 -0
- package/dist/cjs/react-querybuilder_core.cjs.development.d.ts +21 -10
- package/dist/cjs/react-querybuilder_core.cjs.development.js +22 -19
- package/dist/cjs/react-querybuilder_core.cjs.development.js.map +1 -1
- package/dist/cjs/react-querybuilder_core.cjs.production.d.ts +21 -10
- package/dist/cjs/react-querybuilder_core.cjs.production.js +1 -1
- package/dist/cjs/react-querybuilder_core.cjs.production.js.map +1 -1
- package/dist/convertQuery-H7RhQiIc.mjs +75 -0
- package/dist/convertQuery-H7RhQiIc.mjs.map +1 -0
- package/dist/export-r-V7bU31.d.mts +452 -0
- package/dist/formatQuery.d.mts +667 -0
- package/dist/formatQuery.mjs +2366 -0
- package/dist/formatQuery.mjs.map +1 -0
- package/dist/import-BwbbP4oU.d.mts +28 -0
- package/dist/isRuleGroup-CnhYpLOM.mjs +40 -0
- package/dist/isRuleGroup-CnhYpLOM.mjs.map +1 -0
- package/dist/isRuleGroup-DqAs2x4E.js.map +1 -1
- package/dist/objectUtils-BtWdcZVG.mjs +11 -0
- package/dist/objectUtils-BtWdcZVG.mjs.map +1 -0
- package/dist/optGroupUtils-Duv-M8rf.mjs +102 -0
- package/dist/optGroupUtils-Duv-M8rf.mjs.map +1 -0
- package/dist/parseCEL.d.mts +34 -0
- package/dist/parseCEL.mjs +2593 -0
- package/dist/parseCEL.mjs.map +1 -0
- package/dist/parseJSONata.d.mts +36 -0
- package/dist/parseJSONata.mjs +268 -0
- package/dist/parseJSONata.mjs.map +1 -0
- package/dist/parseJsonLogic.d.mts +36 -0
- package/dist/parseJsonLogic.mjs +191 -0
- package/dist/parseJsonLogic.mjs.map +1 -0
- package/dist/parseMongoDB.d.mts +79 -0
- package/dist/parseMongoDB.mjs +267 -0
- package/dist/parseMongoDB.mjs.map +1 -0
- package/dist/parseNumber-BtGKa58z.mjs +24 -0
- package/dist/parseNumber-BtGKa58z.mjs.map +1 -0
- package/dist/parseSQL.d.mts +37 -0
- package/dist/parseSQL.mjs +6626 -0
- package/dist/parseSQL.mjs.map +1 -0
- package/dist/parseSpEL.d.mts +34 -0
- package/dist/parseSpEL.mjs +273 -0
- package/dist/parseSpEL.mjs.map +1 -0
- package/dist/prepareQueryObjects-CS6Wmhmf.mjs +154 -0
- package/dist/prepareQueryObjects-CS6Wmhmf.mjs.map +1 -0
- package/dist/react-querybuilder_core.d.mts +21 -10
- package/dist/react-querybuilder_core.legacy-esm.d.ts +21 -10
- package/dist/react-querybuilder_core.legacy-esm.js +19 -18
- package/dist/react-querybuilder_core.legacy-esm.js.map +1 -1
- package/dist/react-querybuilder_core.mjs +22 -20
- package/dist/react-querybuilder_core.mjs.map +1 -1
- package/dist/react-querybuilder_core.production.d.mts +21 -10
- package/dist/react-querybuilder_core.production.mjs +1 -1
- package/dist/react-querybuilder_core.production.mjs.map +1 -1
- package/dist/transformQuery-DdMvmrCh.mjs +41 -0
- package/dist/transformQuery-DdMvmrCh.mjs.map +1 -0
- package/dist/transformQuery.d.mts +118 -0
- package/dist/transformQuery.mjs +4 -0
- package/package.json +68 -19
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { isRuleGroup, isRuleGroupType } from "./isRuleGroup-CnhYpLOM.mjs";
|
|
2
|
+
import { produce } from "immer";
|
|
3
|
+
|
|
4
|
+
//#region src/utils/transformQuery.ts
|
|
5
|
+
const remapProperties = (obj, propertyMap, deleteRemappedProperties) => produce(obj, (draft) => {
|
|
6
|
+
for (const [k, v] of Object.entries(propertyMap)) if (v === false) delete draft[k];
|
|
7
|
+
else if (!!v && k !== v && k in draft) {
|
|
8
|
+
draft[v] = draft[k];
|
|
9
|
+
if (deleteRemappedProperties) delete draft[k];
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
function transformQuery(query, options = {}) {
|
|
13
|
+
const { ruleProcessor = (r) => r, ruleGroupProcessor = (rg) => rg, propertyMap = {}, combinatorMap = {}, operatorMap = {}, omitPath = false, deleteRemappedProperties = true } = options;
|
|
14
|
+
const processGroup = (rg) => ({
|
|
15
|
+
...ruleGroupProcessor(remapProperties({
|
|
16
|
+
...rg,
|
|
17
|
+
...isRuleGroupType(rg) ? { combinator: combinatorMap[rg.combinator] ?? rg.combinator } : {}
|
|
18
|
+
}, propertyMap, deleteRemappedProperties)),
|
|
19
|
+
...propertyMap["rules"] === false ? null : { [propertyMap["rules"] ?? "rules"]: rg.rules.map((r, idx) => {
|
|
20
|
+
const pathObject = omitPath ? null : { path: [...rg.path, idx] };
|
|
21
|
+
if (typeof r === "string") return combinatorMap[r] ?? r;
|
|
22
|
+
else if (isRuleGroup(r)) return processGroup({
|
|
23
|
+
...r,
|
|
24
|
+
...pathObject
|
|
25
|
+
});
|
|
26
|
+
return ruleProcessor(remapProperties({
|
|
27
|
+
...r,
|
|
28
|
+
...pathObject,
|
|
29
|
+
..."operator" in r ? { operator: operatorMap[r.operator] ?? r.operator } : {}
|
|
30
|
+
}, propertyMap, deleteRemappedProperties));
|
|
31
|
+
}) }
|
|
32
|
+
});
|
|
33
|
+
return processGroup({
|
|
34
|
+
...query,
|
|
35
|
+
...omitPath ? null : { path: [] }
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
//#endregion
|
|
40
|
+
export { transformQuery };
|
|
41
|
+
//# sourceMappingURL=transformQuery-DdMvmrCh.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transformQuery-DdMvmrCh.mjs","names":[],"sources":["../src/utils/transformQuery.ts"],"sourcesContent":["/**\n * Recursively steps through a query object ({@link index!RuleGroupType RuleGroupType} or {@link index!RuleGroupTypeIC RuleGroupTypeIC}),\n * passing each {@link index!RuleType RuleType} object to a provided `ruleProcessor` function and returning a\n * new query object if there were any referential changes.\n *\n * @module transformQuery\n */\n\nimport { produce } from 'immer';\nimport type { RuleGroupType, RuleGroupTypeAny, RuleGroupTypeIC, RuleType } from '../types';\nimport { isRuleGroup, isRuleGroupType } from './isRuleGroup';\n\nconst remapProperties = (\n // oxlint-disable-next-line typescript/no-explicit-any\n obj: Record<string, any>,\n propertyMap: Record<string, string | false>,\n deleteRemappedProperties: boolean\n) =>\n produce(obj, draft => {\n for (const [k, v] of Object.entries(propertyMap)) {\n if (v === false) {\n delete draft[k];\n } else if (!!v && k !== v && k in draft) {\n draft[v] = draft[k];\n if (deleteRemappedProperties) {\n delete draft[k];\n }\n }\n }\n });\n\n/**\n * Options object for {@link index!transformQuery transformQuery}.\n */\nexport interface TransformQueryOptions<RG extends RuleGroupTypeAny = RuleGroupType> {\n /**\n * When a rule is encountered in the hierarchy, it will be replaced\n * with the result of this function.\n *\n * @defaultValue `r => r`\n */\n // oxlint-disable-next-line typescript/no-explicit-any\n ruleProcessor?: (rule: RuleType) => any;\n /**\n * When a group is encountered in the hierarchy (including the root group, the\n * query itself), it will be replaced with the result of this function.\n *\n * @defaultValue `rg => rg`\n */\n // oxlint-disable-next-line typescript/no-explicit-any\n ruleGroupProcessor?: (ruleGroup: RG) => Record<string, any>;\n /**\n * For each rule and group in the query, any properties matching a key\n * in this object will be renamed to the corresponding value. To retain both\n * the new _and_ the original properties, set `deleteRemappedProperties`\n * to `false`.\n *\n * If a key has a value of `false`, the corresponding property will be removed\n * without being copied to a new property name. (Warning: `{ rules: false }`\n * will prevent recursion and only return the processed root group.)\n *\n * @defaultValue `{}`\n *\n * @example\n * ```\n * transformQuery(\n * { combinator: 'and', not: true, rules: [] },\n * { propertyMap: { combinator: 'AndOr', not: false } }\n * )\n * // Returns: { AndOr: 'and', rules: [] }\n * ```\n */\n propertyMap?: Record<string, string | false>;\n /**\n * Any combinator values (including independent combinators) will be translated\n * from the key in this object to the value.\n *\n * @defaultValue `{}`\n *\n * @example\n * ```\n * transformQuery(\n * { combinator: 'and', rules: [] },\n * { combinatorMap: { and: '&&', or: '||' } }\n * )\n * // Returns: { combinator: '&&', rules: [] }\n * ```\n */\n combinatorMap?: Record<string, string>;\n /**\n * Any operator values will be translated from the key in this object to the value.\n *\n * @defaultValue `{}`\n *\n * @example\n * ```\n * transformQuery(\n * { combinator: 'and', rules: [{ field: 'name', operator: '=', value: 'Steve Vai' }] },\n * { operatorMap: { '=': 'is' } }\n * )\n * // Returns:\n * // {\n * // combinator: 'and',\n * // rules: [{ field: 'name', operator: 'is', value: 'Steve Vai' }]\n * // }\n * ```\n */\n operatorMap?: Record<string, string>;\n /**\n * Prevents the `path` property (see {@link index!Path Path}) from being added to each\n * rule and group in the hierarchy.\n *\n * @defaultValue `false`\n */\n omitPath?: boolean;\n /**\n * Original properties remapped according to the `propertyMap` option will be removed.\n *\n * @defaultValue `true`\n *\n * @example\n * ```\n * transformQuery(\n * { combinator: 'and', rules: [] },\n * { propertyMap: { combinator: 'AndOr' }, deleteRemappedProperties: false }\n * )\n * // Returns: { combinator: 'and', AndOr: 'and', rules: [] }\n * ```\n */\n deleteRemappedProperties?: boolean;\n}\n\n/**\n * Recursively process a query heirarchy using this versatile utility function.\n *\n * [Documentation](https://react-querybuilder.js.org/docs/utils/misc#transformquery)\n */\nexport function transformQuery(\n query: RuleGroupType,\n options?: TransformQueryOptions\n // oxlint-disable-next-line typescript/no-explicit-any\n): any;\n/**\n * Recursively process a query heirarchy with independent combinators using this\n * versatile utility function.\n *\n * [Documentation](https://react-querybuilder.js.org/docs/utils/misc#transformquery)\n */\nexport function transformQuery(\n query: RuleGroupTypeIC,\n options?: TransformQueryOptions<RuleGroupTypeIC>\n // oxlint-disable-next-line typescript/no-explicit-any\n): any;\nexport function transformQuery<RG extends RuleGroupTypeAny>(\n query: RG,\n options: TransformQueryOptions<RG> = {}\n) {\n const {\n ruleProcessor = r => r,\n ruleGroupProcessor = rg => rg,\n propertyMap = {},\n combinatorMap = {},\n operatorMap = {},\n omitPath = false,\n deleteRemappedProperties = true,\n } = options;\n\n // oxlint-disable-next-line typescript/no-explicit-any\n const processGroup = (rg: RuleGroupTypeAny): any => ({\n ...ruleGroupProcessor(\n remapProperties(\n {\n ...rg,\n ...(isRuleGroupType(rg)\n ? { combinator: combinatorMap[rg.combinator] ?? rg.combinator }\n : {}),\n },\n propertyMap,\n deleteRemappedProperties\n ) as RG\n ),\n ...(propertyMap['rules'] === false\n ? null\n : {\n // oxlint-disable-next-line typescript/no-explicit-any\n [propertyMap['rules'] ?? 'rules']: rg.rules.map((r: any, idx) => {\n const pathObject = omitPath ? null : { path: [...rg.path!, idx] };\n if (typeof r === 'string') {\n // independent combinators\n return combinatorMap[r] ?? r;\n } else if (isRuleGroup(r)) {\n // sub-groups\n return processGroup({ ...r, ...pathObject });\n }\n // rules\n return ruleProcessor(\n remapProperties(\n {\n ...r,\n ...pathObject,\n ...('operator' in r ? { operator: operatorMap[r.operator] ?? r.operator } : {}),\n },\n propertyMap,\n deleteRemappedProperties\n ) as RuleType\n );\n }),\n }),\n });\n\n return processGroup({ ...query, ...(omitPath ? null : { path: [] }) });\n}\n"],"mappings":";;;;AAYA,MAAM,mBAEJ,KACA,aACA,6BAEA,QAAQ,MAAK,UAAS;AACpB,MAAK,MAAM,CAAC,GAAG,MAAM,OAAO,QAAQ,YAAY,CAC9C,KAAI,MAAM,MACR,QAAO,MAAM;UACJ,CAAC,CAAC,KAAK,MAAM,KAAK,KAAK,OAAO;AACvC,QAAM,KAAK,MAAM;AACjB,MAAI,yBACF,QAAO,MAAM;;EAInB;AA4HJ,SAAgB,eACd,OACA,UAAqC,EAAE,EACvC;CACA,MAAM,EACJ,iBAAgB,MAAK,GACrB,sBAAqB,OAAM,IAC3B,cAAc,EAAE,EAChB,gBAAgB,EAAE,EAClB,cAAc,EAAE,EAChB,WAAW,OACX,2BAA2B,SACzB;CAGJ,MAAM,gBAAgB,QAA+B;EACnD,GAAG,mBACD,gBACE;GACE,GAAG;GACH,GAAI,gBAAgB,GAAG,GACnB,EAAE,YAAY,cAAc,GAAG,eAAe,GAAG,YAAY,GAC7D,EAAE;GACP,EACD,aACA,yBACD,CACF;EACD,GAAI,YAAY,aAAa,QACzB,OACA,GAEG,YAAY,YAAY,UAAU,GAAG,MAAM,KAAK,GAAQ,QAAQ;GAC/D,MAAM,aAAa,WAAW,OAAO,EAAE,MAAM,CAAC,GAAG,GAAG,MAAO,IAAI,EAAE;AACjE,OAAI,OAAO,MAAM,SAEf,QAAO,cAAc,MAAM;YAClB,YAAY,EAAE,CAEvB,QAAO,aAAa;IAAE,GAAG;IAAG,GAAG;IAAY,CAAC;AAG9C,UAAO,cACL,gBACE;IACE,GAAG;IACH,GAAG;IACH,GAAI,cAAc,IAAI,EAAE,UAAU,YAAY,EAAE,aAAa,EAAE,UAAU,GAAG,EAAE;IAC/E,EACD,aACA,yBACD,CACF;IACD,EACH;EACN;AAED,QAAO,aAAa;EAAE,GAAG;EAAO,GAAI,WAAW,OAAO,EAAE,MAAM,EAAE,EAAE;EAAG,CAAC"}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { RuleGroupType, RuleGroupTypeAny, RuleGroupTypeIC, RuleType } from "./basic-BfD-7CN3.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/utils/transformQuery.d.ts
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Options object for {@link index!transformQuery transformQuery}.
|
|
7
|
+
*/
|
|
8
|
+
interface TransformQueryOptions<RG extends RuleGroupTypeAny = RuleGroupType> {
|
|
9
|
+
/**
|
|
10
|
+
* When a rule is encountered in the hierarchy, it will be replaced
|
|
11
|
+
* with the result of this function.
|
|
12
|
+
*
|
|
13
|
+
* @defaultValue `r => r`
|
|
14
|
+
*/
|
|
15
|
+
ruleProcessor?: (rule: RuleType) => any;
|
|
16
|
+
/**
|
|
17
|
+
* When a group is encountered in the hierarchy (including the root group, the
|
|
18
|
+
* query itself), it will be replaced with the result of this function.
|
|
19
|
+
*
|
|
20
|
+
* @defaultValue `rg => rg`
|
|
21
|
+
*/
|
|
22
|
+
ruleGroupProcessor?: (ruleGroup: RG) => Record<string, any>;
|
|
23
|
+
/**
|
|
24
|
+
* For each rule and group in the query, any properties matching a key
|
|
25
|
+
* in this object will be renamed to the corresponding value. To retain both
|
|
26
|
+
* the new _and_ the original properties, set `deleteRemappedProperties`
|
|
27
|
+
* to `false`.
|
|
28
|
+
*
|
|
29
|
+
* If a key has a value of `false`, the corresponding property will be removed
|
|
30
|
+
* without being copied to a new property name. (Warning: `{ rules: false }`
|
|
31
|
+
* will prevent recursion and only return the processed root group.)
|
|
32
|
+
*
|
|
33
|
+
* @defaultValue `{}`
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* ```
|
|
37
|
+
* transformQuery(
|
|
38
|
+
* { combinator: 'and', not: true, rules: [] },
|
|
39
|
+
* { propertyMap: { combinator: 'AndOr', not: false } }
|
|
40
|
+
* )
|
|
41
|
+
* // Returns: { AndOr: 'and', rules: [] }
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
propertyMap?: Record<string, string | false>;
|
|
45
|
+
/**
|
|
46
|
+
* Any combinator values (including independent combinators) will be translated
|
|
47
|
+
* from the key in this object to the value.
|
|
48
|
+
*
|
|
49
|
+
* @defaultValue `{}`
|
|
50
|
+
*
|
|
51
|
+
* @example
|
|
52
|
+
* ```
|
|
53
|
+
* transformQuery(
|
|
54
|
+
* { combinator: 'and', rules: [] },
|
|
55
|
+
* { combinatorMap: { and: '&&', or: '||' } }
|
|
56
|
+
* )
|
|
57
|
+
* // Returns: { combinator: '&&', rules: [] }
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
combinatorMap?: Record<string, string>;
|
|
61
|
+
/**
|
|
62
|
+
* Any operator values will be translated from the key in this object to the value.
|
|
63
|
+
*
|
|
64
|
+
* @defaultValue `{}`
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* ```
|
|
68
|
+
* transformQuery(
|
|
69
|
+
* { combinator: 'and', rules: [{ field: 'name', operator: '=', value: 'Steve Vai' }] },
|
|
70
|
+
* { operatorMap: { '=': 'is' } }
|
|
71
|
+
* )
|
|
72
|
+
* // Returns:
|
|
73
|
+
* // {
|
|
74
|
+
* // combinator: 'and',
|
|
75
|
+
* // rules: [{ field: 'name', operator: 'is', value: 'Steve Vai' }]
|
|
76
|
+
* // }
|
|
77
|
+
* ```
|
|
78
|
+
*/
|
|
79
|
+
operatorMap?: Record<string, string>;
|
|
80
|
+
/**
|
|
81
|
+
* Prevents the `path` property (see {@link index!Path Path}) from being added to each
|
|
82
|
+
* rule and group in the hierarchy.
|
|
83
|
+
*
|
|
84
|
+
* @defaultValue `false`
|
|
85
|
+
*/
|
|
86
|
+
omitPath?: boolean;
|
|
87
|
+
/**
|
|
88
|
+
* Original properties remapped according to the `propertyMap` option will be removed.
|
|
89
|
+
*
|
|
90
|
+
* @defaultValue `true`
|
|
91
|
+
*
|
|
92
|
+
* @example
|
|
93
|
+
* ```
|
|
94
|
+
* transformQuery(
|
|
95
|
+
* { combinator: 'and', rules: [] },
|
|
96
|
+
* { propertyMap: { combinator: 'AndOr' }, deleteRemappedProperties: false }
|
|
97
|
+
* )
|
|
98
|
+
* // Returns: { combinator: 'and', AndOr: 'and', rules: [] }
|
|
99
|
+
* ```
|
|
100
|
+
*/
|
|
101
|
+
deleteRemappedProperties?: boolean;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Recursively process a query heirarchy using this versatile utility function.
|
|
105
|
+
*
|
|
106
|
+
* [Documentation](https://react-querybuilder.js.org/docs/utils/misc#transformquery)
|
|
107
|
+
*/
|
|
108
|
+
declare function transformQuery(query: RuleGroupType, options?: TransformQueryOptions): any;
|
|
109
|
+
/**
|
|
110
|
+
* Recursively process a query heirarchy with independent combinators using this
|
|
111
|
+
* versatile utility function.
|
|
112
|
+
*
|
|
113
|
+
* [Documentation](https://react-querybuilder.js.org/docs/utils/misc#transformquery)
|
|
114
|
+
*/
|
|
115
|
+
declare function transformQuery(query: RuleGroupTypeIC, options?: TransformQueryOptions<RuleGroupTypeIC>): any;
|
|
116
|
+
//#endregion
|
|
117
|
+
export { TransformQueryOptions, transformQuery };
|
|
118
|
+
//# sourceMappingURL=transformQuery.d.mts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-querybuilder/core",
|
|
3
|
-
"version": "8.9.
|
|
3
|
+
"version": "8.9.2",
|
|
4
4
|
"description": "React Query Builder component for constructing queries and filters, with utilities for executing them in various database and evaluation contexts",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -21,36 +21,84 @@
|
|
|
21
21
|
},
|
|
22
22
|
"./dist/*": "./dist/*",
|
|
23
23
|
"./formatQuery": {
|
|
24
|
-
"
|
|
25
|
-
|
|
24
|
+
"import": {
|
|
25
|
+
"types": "./dist/formatQuery.d.mts",
|
|
26
|
+
"import": "./dist/formatQuery.mjs"
|
|
27
|
+
},
|
|
28
|
+
"require": {
|
|
29
|
+
"types": "./dist/formatQuery.d.ts",
|
|
30
|
+
"default": "./dist/formatQuery.js"
|
|
31
|
+
}
|
|
26
32
|
},
|
|
27
33
|
"./parseCEL": {
|
|
28
|
-
"
|
|
29
|
-
|
|
34
|
+
"import": {
|
|
35
|
+
"types": "./dist/parseCEL.d.mts",
|
|
36
|
+
"import": "./dist/parseCEL.mjs"
|
|
37
|
+
},
|
|
38
|
+
"require": {
|
|
39
|
+
"types": "./dist/parseCEL.d.ts",
|
|
40
|
+
"default": "./dist/parseCEL.js"
|
|
41
|
+
}
|
|
30
42
|
},
|
|
31
43
|
"./parseJSONata": {
|
|
32
|
-
"
|
|
33
|
-
|
|
44
|
+
"import": {
|
|
45
|
+
"types": "./dist/parseJSONata.d.mts",
|
|
46
|
+
"import": "./dist/parseJSONata.mjs"
|
|
47
|
+
},
|
|
48
|
+
"require": {
|
|
49
|
+
"types": "./dist/parseJSONata.d.ts",
|
|
50
|
+
"default": "./dist/parseJSONata.js"
|
|
51
|
+
}
|
|
34
52
|
},
|
|
35
53
|
"./parseJsonLogic": {
|
|
36
|
-
"
|
|
37
|
-
|
|
54
|
+
"import": {
|
|
55
|
+
"types": "./dist/parseJsonLogic.d.mts",
|
|
56
|
+
"import": "./dist/parseJsonLogic.mjs"
|
|
57
|
+
},
|
|
58
|
+
"require": {
|
|
59
|
+
"types": "./dist/parseJsonLogic.d.ts",
|
|
60
|
+
"default": "./dist/parseJsonLogic.js"
|
|
61
|
+
}
|
|
38
62
|
},
|
|
39
63
|
"./parseMongoDB": {
|
|
40
|
-
"
|
|
41
|
-
|
|
64
|
+
"import": {
|
|
65
|
+
"types": "./dist/parseMongoDB.d.mts",
|
|
66
|
+
"import": "./dist/parseMongoDB.mjs"
|
|
67
|
+
},
|
|
68
|
+
"require": {
|
|
69
|
+
"types": "./dist/parseMongoDB.d.ts",
|
|
70
|
+
"default": "./dist/parseMongoDB.js"
|
|
71
|
+
}
|
|
42
72
|
},
|
|
43
73
|
"./parseSpEL": {
|
|
44
|
-
"
|
|
45
|
-
|
|
74
|
+
"import": {
|
|
75
|
+
"types": "./dist/parseSpEL.d.mts",
|
|
76
|
+
"import": "./dist/parseSpEL.mjs"
|
|
77
|
+
},
|
|
78
|
+
"require": {
|
|
79
|
+
"types": "./dist/parseSpEL.d.ts",
|
|
80
|
+
"default": "./dist/parseSpEL.js"
|
|
81
|
+
}
|
|
46
82
|
},
|
|
47
83
|
"./parseSQL": {
|
|
48
|
-
"
|
|
49
|
-
|
|
84
|
+
"import": {
|
|
85
|
+
"types": "./dist/parseSQL.d.mts",
|
|
86
|
+
"import": "./dist/parseSQL.mjs"
|
|
87
|
+
},
|
|
88
|
+
"require": {
|
|
89
|
+
"types": "./dist/parseSQL.d.ts",
|
|
90
|
+
"default": "./dist/parseSQL.js"
|
|
91
|
+
}
|
|
50
92
|
},
|
|
51
93
|
"./transformQuery": {
|
|
52
|
-
"
|
|
53
|
-
|
|
94
|
+
"import": {
|
|
95
|
+
"types": "./dist/transformQuery.d.mts",
|
|
96
|
+
"import": "./dist/transformQuery.mjs"
|
|
97
|
+
},
|
|
98
|
+
"require": {
|
|
99
|
+
"types": "./dist/transformQuery.d.ts",
|
|
100
|
+
"default": "./dist/transformQuery.js"
|
|
101
|
+
}
|
|
54
102
|
}
|
|
55
103
|
},
|
|
56
104
|
"react-native": "dist/react-querybuilder_core.mjs",
|
|
@@ -142,5 +190,6 @@
|
|
|
142
190
|
"build:css": "mkdir -p dist/styles && cp src/*.scss dist && cp src/styles/*.scss dist/styles && bun sass --style=compressed dist:dist",
|
|
143
191
|
"typecheck": "tsc --noEmit",
|
|
144
192
|
"typecheck:watch": "tsc --noEmit --watch"
|
|
145
|
-
}
|
|
146
|
-
|
|
193
|
+
},
|
|
194
|
+
"gitHead": "23337611f82e9ba31fa918689ed6ec9d78d3d7e6"
|
|
195
|
+
}
|