@react-querybuilder/core 8.9.0
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/README.md +84 -0
- package/dist/arrayUtils-D5EoIsKP.js +164 -0
- package/dist/arrayUtils-D5EoIsKP.js.map +1 -0
- package/dist/basic-C8xXKHIA.d.ts +1235 -0
- package/dist/cjs/index.d.ts +1 -0
- package/dist/cjs/index.js +6 -0
- package/dist/cjs/react-querybuilder_core.cjs.development.d.ts +4786 -0
- package/dist/cjs/react-querybuilder_core.cjs.development.js +4033 -0
- package/dist/cjs/react-querybuilder_core.cjs.development.js.map +1 -0
- package/dist/cjs/react-querybuilder_core.cjs.production.d.ts +4786 -0
- package/dist/cjs/react-querybuilder_core.cjs.production.js +2 -0
- package/dist/cjs/react-querybuilder_core.cjs.production.js.map +1 -0
- package/dist/convertQuery-DAqoID3O.js +87 -0
- package/dist/convertQuery-DAqoID3O.js.map +1 -0
- package/dist/export-DyrnTh6K.d.ts +452 -0
- package/dist/formatQuery.d.ts +667 -0
- package/dist/formatQuery.js +2428 -0
- package/dist/formatQuery.js.map +1 -0
- package/dist/import-Cksobmln.d.ts +28 -0
- package/dist/isRuleGroup-DqAs2x4E.js +120 -0
- package/dist/isRuleGroup-DqAs2x4E.js.map +1 -0
- package/dist/objectUtils-BBZSfZJz.js +17 -0
- package/dist/objectUtils-BBZSfZJz.js.map +1 -0
- package/dist/optGroupUtils-CXLgyg2i.js +138 -0
- package/dist/optGroupUtils-CXLgyg2i.js.map +1 -0
- package/dist/parseCEL.d.ts +34 -0
- package/dist/parseCEL.js +2593 -0
- package/dist/parseCEL.js.map +1 -0
- package/dist/parseJSONata.d.ts +36 -0
- package/dist/parseJSONata.js +5884 -0
- package/dist/parseJSONata.js.map +1 -0
- package/dist/parseJsonLogic.d.ts +36 -0
- package/dist/parseJsonLogic.js +191 -0
- package/dist/parseJsonLogic.js.map +1 -0
- package/dist/parseMongoDB.d.ts +79 -0
- package/dist/parseMongoDB.js +267 -0
- package/dist/parseMongoDB.js.map +1 -0
- package/dist/parseNumber-Bcys1kOH.js +31 -0
- package/dist/parseNumber-Bcys1kOH.js.map +1 -0
- package/dist/parseSQL.d.ts +37 -0
- package/dist/parseSQL.js +6626 -0
- package/dist/parseSQL.js.map +1 -0
- package/dist/parseSpEL.d.ts +34 -0
- package/dist/parseSpEL.js +2911 -0
- package/dist/parseSpEL.js.map +1 -0
- package/dist/prepareQueryObjects-BqFEs4eV.js +172 -0
- package/dist/prepareQueryObjects-BqFEs4eV.js.map +1 -0
- package/dist/query-builder-layout.css +1 -0
- package/dist/query-builder-layout.css.map +1 -0
- package/dist/query-builder-layout.scss +4 -0
- package/dist/query-builder.css +1 -0
- package/dist/query-builder.css.map +1 -0
- package/dist/query-builder.scss +2 -0
- package/dist/react-querybuilder_core.d.mts +4786 -0
- package/dist/react-querybuilder_core.legacy-esm.d.ts +4786 -0
- package/dist/react-querybuilder_core.legacy-esm.js +3916 -0
- package/dist/react-querybuilder_core.legacy-esm.js.map +1 -0
- package/dist/react-querybuilder_core.mjs +3852 -0
- package/dist/react-querybuilder_core.mjs.map +1 -0
- package/dist/react-querybuilder_core.production.d.mts +4786 -0
- package/dist/react-querybuilder_core.production.mjs +2 -0
- package/dist/react-querybuilder_core.production.mjs.map +1 -0
- package/dist/styles/_functions.scss +14 -0
- package/dist/styles/_layout.scss +201 -0
- package/dist/styles/_main.scss +114 -0
- package/dist/styles/_root.scss +66 -0
- package/dist/styles/_variables.scss +66 -0
- package/dist/transformQuery-FL_nlpp5.js +47 -0
- package/dist/transformQuery-FL_nlpp5.js.map +1 -0
- package/dist/transformQuery.d.ts +118 -0
- package/dist/transformQuery.js +4 -0
- package/formatQuery/package.json +4 -0
- package/package.json +146 -0
- package/parseCEL/package.json +4 -0
- package/parseJSONata/package.json +4 -0
- package/parseJsonLogic/package.json +4 -0
- package/parseMongoDB/package.json +4 -0
- package/parseSQL/package.json +4 -0
- package/parseSpEL/package.json +4 -0
- package/transformQuery/package.json +4 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
|
|
3
|
+
// This function lets the user use an old variable name as long as the new
|
|
4
|
+
// variable's default hasn't been overridden.
|
|
5
|
+
@function prefer-new-var($old-var, $new-var, $map, $prop) {
|
|
6
|
+
// If the new variable is still the default, and the old variable
|
|
7
|
+
// does not equal the default (i.e., it's been overridden), return the
|
|
8
|
+
// old variable. Otherwise return the new variable.
|
|
9
|
+
@if $new-var == map.get($map, $prop) and $old-var != map.get($map, $prop) {
|
|
10
|
+
@return $old-var;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
@return $new-var;
|
|
14
|
+
}
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Layout/structural styles
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
// DO NOT ALTER OR REMOVE REGION NAMES. Some of them are used
|
|
6
|
+
// to generate code snippets in the documentation.
|
|
7
|
+
|
|
8
|
+
@use './variables' as *;
|
|
9
|
+
|
|
10
|
+
/* Basic */
|
|
11
|
+
.ruleGroup {
|
|
12
|
+
display: flex;
|
|
13
|
+
flex-direction: column;
|
|
14
|
+
gap: var(--#{$rqb-var-prefix}spacing);
|
|
15
|
+
padding: var(--#{$rqb-var-prefix}spacing);
|
|
16
|
+
border-width: var(--#{$rqb-var-prefix}border-width);
|
|
17
|
+
|
|
18
|
+
.ruleGroup-body {
|
|
19
|
+
display: flex;
|
|
20
|
+
flex-direction: column;
|
|
21
|
+
gap: var(--#{$rqb-var-prefix}spacing);
|
|
22
|
+
|
|
23
|
+
&:empty {
|
|
24
|
+
display: none;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.ruleGroup-header,
|
|
29
|
+
.rule {
|
|
30
|
+
display: flex;
|
|
31
|
+
gap: var(--#{$rqb-var-prefix}spacing);
|
|
32
|
+
align-items: center;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.rule {
|
|
36
|
+
.rule-value:has(.rule-value-list-item) {
|
|
37
|
+
display: flex;
|
|
38
|
+
gap: var(--#{$rqb-var-prefix}spacing);
|
|
39
|
+
align-items: baseline;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&.rule-hasSubQuery {
|
|
43
|
+
flex-wrap: wrap;
|
|
44
|
+
padding: var(--#{$rqb-var-prefix}spacing);
|
|
45
|
+
border-width: var(--#{$rqb-var-prefix}border-width);
|
|
46
|
+
|
|
47
|
+
.ruleGroup-body {
|
|
48
|
+
flex-basis: 100%;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.betweenRules {
|
|
54
|
+
display: flex;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.shiftActions {
|
|
58
|
+
display: flex;
|
|
59
|
+
flex-direction: column;
|
|
60
|
+
|
|
61
|
+
& > * {
|
|
62
|
+
padding: 0;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/* #region Drag-and-drop */
|
|
68
|
+
/* Hover styles */
|
|
69
|
+
.dndOver {
|
|
70
|
+
&.rule,
|
|
71
|
+
&.ruleGroup-header {
|
|
72
|
+
padding-bottom: var(--#{$rqb-var-prefix}spacing);
|
|
73
|
+
}
|
|
74
|
+
&.betweenRules {
|
|
75
|
+
padding-top: var(--#{$rqb-var-prefix}spacing);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
.dndGroup {
|
|
79
|
+
&.rule.dndOver,
|
|
80
|
+
&.ruleGroup:has(.ruleGroup-header.dndOver) {
|
|
81
|
+
padding: var(--#{$rqb-var-prefix}spacing);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
/* #endregion */
|
|
85
|
+
|
|
86
|
+
/* #region Branches */
|
|
87
|
+
.queryBuilder-branches {
|
|
88
|
+
.ruleGroup-body {
|
|
89
|
+
margin-left: calc(2 * var(--#{$rqb-var-prefix}branch-indent));
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.rule,
|
|
93
|
+
.ruleGroup .ruleGroup {
|
|
94
|
+
position: relative;
|
|
95
|
+
|
|
96
|
+
&::before,
|
|
97
|
+
&::after {
|
|
98
|
+
content: '';
|
|
99
|
+
width: var(--#{$rqb-var-prefix}branch-indent);
|
|
100
|
+
left: calc(
|
|
101
|
+
-1 * (var(--#{$rqb-var-prefix}branch-indent) + var(--#{$rqb-var-prefix}branch-width))
|
|
102
|
+
);
|
|
103
|
+
border-radius: 0;
|
|
104
|
+
position: absolute;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
&::before {
|
|
108
|
+
top: calc(-1 * var(--#{$rqb-var-prefix}spacing));
|
|
109
|
+
height: calc(50% + var(--#{$rqb-var-prefix}spacing));
|
|
110
|
+
border-width: 0 0 var(--#{$rqb-var-prefix}branch-width) var(--#{$rqb-var-prefix}branch-width);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
&::after {
|
|
114
|
+
top: 50%;
|
|
115
|
+
height: 50%;
|
|
116
|
+
border-width: 0 0 0 var(--#{$rqb-var-prefix}branch-width);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
&:last-child::after {
|
|
120
|
+
display: none;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.rule-hasSubQuery,
|
|
125
|
+
.ruleGroup .ruleGroup {
|
|
126
|
+
&::before,
|
|
127
|
+
&::after {
|
|
128
|
+
left: calc(
|
|
129
|
+
-1 *
|
|
130
|
+
(
|
|
131
|
+
var(--#{$rqb-var-prefix}branch-indent) + var(--#{$rqb-var-prefix}branch-width) +
|
|
132
|
+
var(--#{$rqb-var-prefix}border-width)
|
|
133
|
+
)
|
|
134
|
+
);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
&::before {
|
|
138
|
+
top: calc(-1 * (var(--#{$rqb-var-prefix}spacing) + var(--#{$rqb-var-prefix}border-width)));
|
|
139
|
+
height: calc(50% + var(--#{$rqb-var-prefix}spacing) + var(--#{$rqb-var-prefix}border-width));
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
&::after {
|
|
143
|
+
height: calc(50% + var(--#{$rqb-var-prefix}border-width));
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.betweenRules {
|
|
148
|
+
position: relative;
|
|
149
|
+
|
|
150
|
+
&::before {
|
|
151
|
+
content: '';
|
|
152
|
+
width: var(--#{$rqb-var-prefix}branch-indent);
|
|
153
|
+
left: calc(
|
|
154
|
+
-1 * (var(--#{$rqb-var-prefix}branch-indent) + var(--#{$rqb-var-prefix}branch-width))
|
|
155
|
+
);
|
|
156
|
+
border-radius: 0;
|
|
157
|
+
position: absolute;
|
|
158
|
+
top: calc(-1 * var(--#{$rqb-var-prefix}spacing));
|
|
159
|
+
height: calc(100% + var(--#{$rqb-var-prefix}spacing));
|
|
160
|
+
border-width: 0 0 0 var(--#{$rqb-var-prefix}branch-width);
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
/* #endregion */
|
|
165
|
+
|
|
166
|
+
/* #region Justified */
|
|
167
|
+
.queryBuilder-justified {
|
|
168
|
+
.ruleGroup-combinators,
|
|
169
|
+
.ruleGroup-notToggle,
|
|
170
|
+
.shiftActions,
|
|
171
|
+
.queryBuilder-dragHandle,
|
|
172
|
+
.ruleGroup-notToggle,
|
|
173
|
+
.ruleGroup-header,
|
|
174
|
+
.rule-operators,
|
|
175
|
+
.rule-value,
|
|
176
|
+
// Some Bulma controls are wrapped in an element with "control" class
|
|
177
|
+
.control,
|
|
178
|
+
// Chakra UI v2 adds classNames to a nested element
|
|
179
|
+
.chakra-select__wrapper,
|
|
180
|
+
// Mantine renders a hidden input beside value selectors
|
|
181
|
+
input[type='hidden'] {
|
|
182
|
+
& + .ruleGroup-addRule,
|
|
183
|
+
& + .ruleGroup-addGroup,
|
|
184
|
+
& + .ruleGroup-cloneGroup,
|
|
185
|
+
& + .ruleGroup-lock,
|
|
186
|
+
& + .ruleGroup-remove,
|
|
187
|
+
& + .rule-cloneRule,
|
|
188
|
+
& + .rule-lock,
|
|
189
|
+
& + .rule-remove {
|
|
190
|
+
margin-left: auto !important;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.ruleGroup-addRule,
|
|
195
|
+
.ruleGroup-addGroup {
|
|
196
|
+
&:first-child {
|
|
197
|
+
margin-left: auto !important;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
/* #endregion */
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Decorative/aesthetic styles
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
// DO NOT ALTER OR REMOVE REGION NAMES. Some of them are used
|
|
6
|
+
// to generate code snippets in the documentation.
|
|
7
|
+
|
|
8
|
+
@use './variables' as *;
|
|
9
|
+
|
|
10
|
+
/* Default styles */
|
|
11
|
+
.ruleGroup,
|
|
12
|
+
.rule-hasSubQuery {
|
|
13
|
+
border-color: var(--#{$rqb-var-prefix}border-color);
|
|
14
|
+
border-style: var(--#{$rqb-var-prefix}border-style);
|
|
15
|
+
border-radius: var(--#{$rqb-var-prefix}border-radius);
|
|
16
|
+
background: var(--#{$rqb-var-prefix}background-color);
|
|
17
|
+
|
|
18
|
+
.shiftActions {
|
|
19
|
+
& > * {
|
|
20
|
+
background-color: transparent;
|
|
21
|
+
border: none;
|
|
22
|
+
cursor: pointer;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/* #region Drag-and-drop styles */
|
|
28
|
+
/* Hover styles (drop allowed) */
|
|
29
|
+
.dndOver {
|
|
30
|
+
&.rule,
|
|
31
|
+
&.ruleGroup-header:not(.dndGroup .ruleGroup-header) {
|
|
32
|
+
border-bottom-width: var(--#{$rqb-var-prefix}dnd-drop-indicator-width);
|
|
33
|
+
border-bottom-style: var(--#{$rqb-var-prefix}dnd-drop-indicator-style);
|
|
34
|
+
border-bottom-color: var(--#{$rqb-var-prefix}dnd-drop-indicator-color);
|
|
35
|
+
|
|
36
|
+
&.dndCopy {
|
|
37
|
+
border-bottom-width: var(--#{$rqb-var-prefix}dnd-drop-indicator-copy-width);
|
|
38
|
+
border-bottom-style: var(--#{$rqb-var-prefix}dnd-drop-indicator-copy-style);
|
|
39
|
+
border-bottom-color: var(--#{$rqb-var-prefix}dnd-drop-indicator-copy-color);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&.betweenRules {
|
|
44
|
+
border-top-width: var(--#{$rqb-var-prefix}dnd-drop-indicator-width);
|
|
45
|
+
border-top-style: var(--#{$rqb-var-prefix}dnd-drop-indicator-style);
|
|
46
|
+
border-top-color: var(--#{$rqb-var-prefix}dnd-drop-indicator-color);
|
|
47
|
+
|
|
48
|
+
&.dndCopy {
|
|
49
|
+
border-top-width: var(--#{$rqb-var-prefix}dnd-drop-indicator-copy-width);
|
|
50
|
+
border-top-style: var(--#{$rqb-var-prefix}dnd-drop-indicator-copy-style);
|
|
51
|
+
border-top-color: var(--#{$rqb-var-prefix}dnd-drop-indicator-copy-color);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/* Hover styles (drop not allowed) */
|
|
57
|
+
.dndDropNotAllowed {
|
|
58
|
+
cursor: var(--#{$rqb-var-prefix}dnd-drop-not-allowed-cursor);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.dndGroup {
|
|
62
|
+
&.rule.dndOver,
|
|
63
|
+
&.ruleGroup:has(> .ruleGroup-header.dndOver) {
|
|
64
|
+
border-width: var(--#{$rqb-var-prefix}dnd-drop-indicator-group-width);
|
|
65
|
+
border-style: var(--#{$rqb-var-prefix}dnd-drop-indicator-group-style);
|
|
66
|
+
border-color: var(--#{$rqb-var-prefix}dnd-drop-indicator-group-color);
|
|
67
|
+
border-radius: var(--#{$rqb-var-prefix}border-radius);
|
|
68
|
+
|
|
69
|
+
&.dndCopy {
|
|
70
|
+
border-color: var(--#{$rqb-var-prefix}dnd-drop-indicator-copy-color);
|
|
71
|
+
border-width: var(--#{$rqb-var-prefix}dnd-drop-indicator-copy-width);
|
|
72
|
+
border-style: var(--#{$rqb-var-prefix}dnd-drop-indicator-copy-style);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/* Drag styles */
|
|
78
|
+
.ruleGroup,
|
|
79
|
+
.rule {
|
|
80
|
+
&.dndDragging {
|
|
81
|
+
opacity: 0.5;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.queryBuilder-dragHandle {
|
|
85
|
+
cursor: move;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
/* #endregion */
|
|
89
|
+
|
|
90
|
+
/* #region Branch styles */
|
|
91
|
+
.queryBuilder-branches {
|
|
92
|
+
.rule,
|
|
93
|
+
.ruleGroup .ruleGroup {
|
|
94
|
+
&::before,
|
|
95
|
+
&::after {
|
|
96
|
+
border-color: var(--#{$rqb-var-prefix}branch-color);
|
|
97
|
+
border-style: var(--#{$rqb-var-prefix}branch-style);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
&:last-child::before {
|
|
101
|
+
border-bottom-left-radius: var(--#{$rqb-var-prefix}branch-radius);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.betweenRules {
|
|
106
|
+
position: relative;
|
|
107
|
+
|
|
108
|
+
&::before {
|
|
109
|
+
border-color: var(--#{$rqb-var-prefix}branch-color);
|
|
110
|
+
border-style: var(--#{$rqb-var-prefix}branch-style);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
/* #endregion */
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
@use './functions' as *;
|
|
2
|
+
@use './variables' as *;
|
|
3
|
+
|
|
4
|
+
$rqb-internal_dnd-drop-indicator-color: prefer-new-var(
|
|
5
|
+
$rqb-dnd-hover-border-bottom-color,
|
|
6
|
+
$rqb-dnd-drop-indicator-color,
|
|
7
|
+
$rqb-dnd-drop-indicator-defaults,
|
|
8
|
+
'color'
|
|
9
|
+
);
|
|
10
|
+
$rqb-internal_dnd-drop-indicator-copy-color: prefer-new-var(
|
|
11
|
+
$rqb-dnd-hover-copy-border-bottom-color,
|
|
12
|
+
$rqb-dnd-drop-indicator-copy-color,
|
|
13
|
+
$rqb-dnd-drop-indicator-defaults,
|
|
14
|
+
'copy-color'
|
|
15
|
+
);
|
|
16
|
+
$rqb-internal_dnd-drop-indicator-style: prefer-new-var(
|
|
17
|
+
$rqb-dnd-hover-border-bottom-style,
|
|
18
|
+
$rqb-dnd-drop-indicator-style,
|
|
19
|
+
$rqb-dnd-drop-indicator-defaults,
|
|
20
|
+
'style'
|
|
21
|
+
);
|
|
22
|
+
$rqb-internal_dnd-drop-indicator-width: prefer-new-var(
|
|
23
|
+
$rqb-dnd-hover-border-bottom-width,
|
|
24
|
+
$rqb-dnd-drop-indicator-width,
|
|
25
|
+
$rqb-dnd-drop-indicator-defaults,
|
|
26
|
+
'width'
|
|
27
|
+
);
|
|
28
|
+
|
|
29
|
+
:root {
|
|
30
|
+
/* #region Basic layout */
|
|
31
|
+
--#{$rqb-var-prefix}spacing: #{$rqb-spacing};
|
|
32
|
+
--#{$rqb-var-prefix}border-width: #{$rqb-border-width};
|
|
33
|
+
/* #endregion */
|
|
34
|
+
|
|
35
|
+
/* #region Branches layout */
|
|
36
|
+
--#{$rqb-var-prefix}branch-indent: var(--#{$rqb-var-prefix}spacing);
|
|
37
|
+
--#{$rqb-var-prefix}branch-width: var(--#{$rqb-var-prefix}border-width);
|
|
38
|
+
/* #endregion */
|
|
39
|
+
|
|
40
|
+
/* #region Basic aesthetic */
|
|
41
|
+
--#{$rqb-var-prefix}base-color: #{$rqb-base-color};
|
|
42
|
+
--#{$rqb-var-prefix}background-color: #{$rqb-background-color};
|
|
43
|
+
--#{$rqb-var-prefix}border-color: #{$rqb-border-color};
|
|
44
|
+
--#{$rqb-var-prefix}border-style: #{$rqb-border-style};
|
|
45
|
+
--#{$rqb-var-prefix}border-radius: #{$rqb-border-radius};
|
|
46
|
+
/* #endregion */
|
|
47
|
+
|
|
48
|
+
/* #region Drag-and-drop aesthetic */
|
|
49
|
+
--#{$rqb-var-prefix}dnd-drop-indicator-color: #{$rqb-internal_dnd-drop-indicator-color};
|
|
50
|
+
--#{$rqb-var-prefix}dnd-drop-indicator-style: #{$rqb-internal_dnd-drop-indicator-style};
|
|
51
|
+
--#{$rqb-var-prefix}dnd-drop-indicator-width: #{$rqb-internal_dnd-drop-indicator-width};
|
|
52
|
+
--#{$rqb-var-prefix}dnd-drop-indicator-copy-color: #{$rqb-internal_dnd-drop-indicator-copy-color};
|
|
53
|
+
--#{$rqb-var-prefix}dnd-drop-indicator-copy-style: #{$rqb-internal_dnd-drop-indicator-style};
|
|
54
|
+
--#{$rqb-var-prefix}dnd-drop-indicator-copy-width: #{$rqb-internal_dnd-drop-indicator-width};
|
|
55
|
+
--#{$rqb-var-prefix}dnd-drop-indicator-group-color: #{$rqb-dnd-drop-indicator-group-color};
|
|
56
|
+
--#{$rqb-var-prefix}dnd-drop-indicator-group-style: #{$rqb-dnd-drop-indicator-group-style};
|
|
57
|
+
--#{$rqb-var-prefix}dnd-drop-indicator-group-width: #{$rqb-dnd-drop-indicator-group-width};
|
|
58
|
+
--#{$rqb-var-prefix}dnd-drop-not-allowed-cursor: #{$rqb-dnd-drop-not-allowed-cursor};
|
|
59
|
+
/* #endregion */
|
|
60
|
+
|
|
61
|
+
/* #region Branches aesthetic */
|
|
62
|
+
--#{$rqb-var-prefix}branch-color: var(--#{$rqb-var-prefix}border-color);
|
|
63
|
+
--#{$rqb-var-prefix}branch-radius: var(--#{$rqb-var-prefix}border-radius);
|
|
64
|
+
--#{$rqb-var-prefix}branch-style: var(--#{$rqb-var-prefix}border-style);
|
|
65
|
+
/* #endregion */
|
|
66
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
|
|
3
|
+
$rqb-var-prefix: rqb- !default;
|
|
4
|
+
|
|
5
|
+
// #region Basic layout
|
|
6
|
+
$rqb-spacing: 0.5rem !default;
|
|
7
|
+
$rqb-border-width: 1px !default;
|
|
8
|
+
// #endregion
|
|
9
|
+
|
|
10
|
+
// #region Branches layout
|
|
11
|
+
$rqb-branch-indent: $rqb-spacing !default;
|
|
12
|
+
$rqb-branch-width: $rqb-border-width !default;
|
|
13
|
+
// #endregion
|
|
14
|
+
|
|
15
|
+
$rqb-dnd-drop-indicator-defaults: (
|
|
16
|
+
'color': rebeccapurple,
|
|
17
|
+
'copy-color': #693,
|
|
18
|
+
'group-color': #369,
|
|
19
|
+
'style': dashed,
|
|
20
|
+
'width': 2px,
|
|
21
|
+
);
|
|
22
|
+
|
|
23
|
+
// #region Basic aesthetic
|
|
24
|
+
$rqb-base-color: #004bb8 !default;
|
|
25
|
+
$rqb-background-color: color-mix(in srgb, transparent, $rqb-base-color 20%) !default;
|
|
26
|
+
$rqb-border-color: #8081a2 !default;
|
|
27
|
+
$rqb-border-style: solid !default;
|
|
28
|
+
$rqb-border-radius: 0.25rem !default;
|
|
29
|
+
// #endregion
|
|
30
|
+
|
|
31
|
+
// #region New drag-and-drop variables
|
|
32
|
+
$rqb-dnd-drop-indicator-color: map.get($rqb-dnd-drop-indicator-defaults, 'color') !default;
|
|
33
|
+
$rqb-dnd-drop-indicator-style: map.get($rqb-dnd-drop-indicator-defaults, 'style') !default;
|
|
34
|
+
$rqb-dnd-drop-indicator-width: map.get($rqb-dnd-drop-indicator-defaults, 'width') !default;
|
|
35
|
+
$rqb-dnd-drop-not-allowed-cursor: not-allowed !default;
|
|
36
|
+
|
|
37
|
+
$rqb-dnd-drop-indicator-copy-color: map.get(
|
|
38
|
+
$rqb-dnd-drop-indicator-defaults,
|
|
39
|
+
'copy-color'
|
|
40
|
+
) !default;
|
|
41
|
+
$rqb-dnd-drop-indicator-copy-style: map.get($rqb-dnd-drop-indicator-defaults, 'style') !default;
|
|
42
|
+
$rqb-dnd-drop-indicator-copy-width: map.get($rqb-dnd-drop-indicator-defaults, 'width') !default;
|
|
43
|
+
|
|
44
|
+
$rqb-dnd-drop-indicator-group-color: map.get(
|
|
45
|
+
$rqb-dnd-drop-indicator-defaults,
|
|
46
|
+
'group-color'
|
|
47
|
+
) !default;
|
|
48
|
+
$rqb-dnd-drop-indicator-group-style: map.get($rqb-dnd-drop-indicator-defaults, 'style') !default;
|
|
49
|
+
$rqb-dnd-drop-indicator-group-width: map.get($rqb-dnd-drop-indicator-defaults, 'width') !default;
|
|
50
|
+
// #endregion
|
|
51
|
+
|
|
52
|
+
// #region Deprecated drag-and-drop variables
|
|
53
|
+
$rqb-dnd-hover-border-bottom-color: map.get($rqb-dnd-drop-indicator-defaults, 'color') !default;
|
|
54
|
+
$rqb-dnd-hover-copy-border-bottom-color: map.get(
|
|
55
|
+
$rqb-dnd-drop-indicator-defaults,
|
|
56
|
+
'copy-color'
|
|
57
|
+
) !default;
|
|
58
|
+
$rqb-dnd-hover-border-bottom-style: map.get($rqb-dnd-drop-indicator-defaults, 'style') !default;
|
|
59
|
+
$rqb-dnd-hover-border-bottom-width: map.get($rqb-dnd-drop-indicator-defaults, 'width') !default;
|
|
60
|
+
// #endregion
|
|
61
|
+
|
|
62
|
+
// #region Branches aesthetic
|
|
63
|
+
$rqb-branch-color: $rqb-border-color !default;
|
|
64
|
+
$rqb-branch-radius: $rqb-border-radius !default;
|
|
65
|
+
$rqb-branch-style: $rqb-border-style !default;
|
|
66
|
+
// #endregion
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
const require_isRuleGroup = require('./isRuleGroup-DqAs2x4E.js');
|
|
2
|
+
let immer = require("immer");
|
|
3
|
+
immer = require_isRuleGroup.__toESM(immer);
|
|
4
|
+
|
|
5
|
+
//#region src/utils/transformQuery.ts
|
|
6
|
+
const remapProperties = (obj, propertyMap, deleteRemappedProperties) => (0, immer.produce)(obj, (draft) => {
|
|
7
|
+
for (const [k, v] of Object.entries(propertyMap)) if (v === false) delete draft[k];
|
|
8
|
+
else if (!!v && k !== v && k in draft) {
|
|
9
|
+
draft[v] = draft[k];
|
|
10
|
+
if (deleteRemappedProperties) delete draft[k];
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
function transformQuery(query, options = {}) {
|
|
14
|
+
const { ruleProcessor = (r) => r, ruleGroupProcessor = (rg) => rg, propertyMap = {}, combinatorMap = {}, operatorMap = {}, omitPath = false, deleteRemappedProperties = true } = options;
|
|
15
|
+
const processGroup = (rg) => ({
|
|
16
|
+
...ruleGroupProcessor(remapProperties({
|
|
17
|
+
...rg,
|
|
18
|
+
...require_isRuleGroup.isRuleGroupType(rg) ? { combinator: combinatorMap[rg.combinator] ?? rg.combinator } : {}
|
|
19
|
+
}, propertyMap, deleteRemappedProperties)),
|
|
20
|
+
...propertyMap["rules"] === false ? null : { [propertyMap["rules"] ?? "rules"]: rg.rules.map((r, idx) => {
|
|
21
|
+
const pathObject = omitPath ? null : { path: [...rg.path, idx] };
|
|
22
|
+
if (typeof r === "string") return combinatorMap[r] ?? r;
|
|
23
|
+
else if (require_isRuleGroup.isRuleGroup(r)) return processGroup({
|
|
24
|
+
...r,
|
|
25
|
+
...pathObject
|
|
26
|
+
});
|
|
27
|
+
return ruleProcessor(remapProperties({
|
|
28
|
+
...r,
|
|
29
|
+
...pathObject,
|
|
30
|
+
..."operator" in r ? { operator: operatorMap[r.operator] ?? r.operator } : {}
|
|
31
|
+
}, propertyMap, deleteRemappedProperties));
|
|
32
|
+
}) }
|
|
33
|
+
});
|
|
34
|
+
return processGroup({
|
|
35
|
+
...query,
|
|
36
|
+
...omitPath ? null : { path: [] }
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
//#endregion
|
|
41
|
+
Object.defineProperty(exports, 'transformQuery', {
|
|
42
|
+
enumerable: true,
|
|
43
|
+
get: function () {
|
|
44
|
+
return transformQuery;
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
//# sourceMappingURL=transformQuery-FL_nlpp5.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transformQuery-FL_nlpp5.js","names":["isRuleGroupType","isRuleGroup"],"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,gDAEQ,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,GAAIA,oCAAgB,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;YAClBC,gCAAY,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-C8xXKHIA.js";
|
|
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.ts.map
|