@react-querybuilder/antd 6.6.0-alpha.0 → 7.0.0-alpha.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 +2 -3
- package/dist/cjs/react-querybuilder_antd.cjs.development.d.ts +11 -4
- package/dist/cjs/react-querybuilder_antd.cjs.development.js +145 -94
- package/dist/cjs/react-querybuilder_antd.cjs.development.js.map +1 -1
- package/dist/cjs/react-querybuilder_antd.cjs.production.d.ts +11 -4
- package/dist/cjs/react-querybuilder_antd.cjs.production.js +1 -1
- package/dist/cjs/react-querybuilder_antd.cjs.production.js.map +1 -1
- package/dist/react-querybuilder_antd.d.mts +11 -4
- package/dist/react-querybuilder_antd.legacy-esm.d.mts +11 -4
- package/dist/react-querybuilder_antd.legacy-esm.js +121 -70
- package/dist/react-querybuilder_antd.legacy-esm.js.map +1 -1
- package/dist/react-querybuilder_antd.mjs +120 -70
- package/dist/react-querybuilder_antd.mjs.map +1 -1
- package/dist/react-querybuilder_antd.production.d.mts +11 -4
- package/dist/react-querybuilder_antd.production.mjs +1 -1
- package/dist/react-querybuilder_antd.production.mjs.map +1 -1
- package/package.json +14 -14
|
@@ -83,9 +83,9 @@ var require_dayjs_min = __commonJS({
|
|
|
83
83
|
return void 0 === t2;
|
|
84
84
|
} }, g = "en", D = {};
|
|
85
85
|
D[g] = M;
|
|
86
|
-
var p = function(t2) {
|
|
87
|
-
return t2 instanceof
|
|
88
|
-
},
|
|
86
|
+
var p = "$isDayjsObject", S = function(t2) {
|
|
87
|
+
return t2 instanceof _ || !(!t2 || !t2[p]);
|
|
88
|
+
}, w = function t2(e2, n2, r2) {
|
|
89
89
|
var i2;
|
|
90
90
|
if (!e2)
|
|
91
91
|
return g;
|
|
@@ -100,18 +100,18 @@ var require_dayjs_min = __commonJS({
|
|
|
100
100
|
D[a2] = e2, i2 = a2;
|
|
101
101
|
}
|
|
102
102
|
return !r2 && i2 && (g = i2), i2 || !r2 && g;
|
|
103
|
-
},
|
|
104
|
-
if (
|
|
103
|
+
}, O = function(t2, e2) {
|
|
104
|
+
if (S(t2))
|
|
105
105
|
return t2.clone();
|
|
106
106
|
var n2 = "object" == typeof e2 ? e2 : {};
|
|
107
|
-
return n2.date = t2, n2.args = arguments, new
|
|
108
|
-
},
|
|
109
|
-
|
|
110
|
-
return
|
|
107
|
+
return n2.date = t2, n2.args = arguments, new _(n2);
|
|
108
|
+
}, b = v;
|
|
109
|
+
b.l = w, b.i = S, b.w = function(t2, e2) {
|
|
110
|
+
return O(t2, { locale: e2.$L, utc: e2.$u, x: e2.$x, $offset: e2.$offset });
|
|
111
111
|
};
|
|
112
|
-
var
|
|
112
|
+
var _ = function() {
|
|
113
113
|
function M2(t2) {
|
|
114
|
-
this.$L =
|
|
114
|
+
this.$L = w(t2.locale, null, true), this.parse(t2), this.$x = this.$x || t2.x || {}, this[p] = true;
|
|
115
115
|
}
|
|
116
116
|
var m2 = M2.prototype;
|
|
117
117
|
return m2.parse = function(t2) {
|
|
@@ -119,7 +119,7 @@ var require_dayjs_min = __commonJS({
|
|
|
119
119
|
var e2 = t3.date, n2 = t3.utc;
|
|
120
120
|
if (null === e2)
|
|
121
121
|
return /* @__PURE__ */ new Date(NaN);
|
|
122
|
-
if (
|
|
122
|
+
if (b.u(e2))
|
|
123
123
|
return /* @__PURE__ */ new Date();
|
|
124
124
|
if (e2 instanceof Date)
|
|
125
125
|
return new Date(e2);
|
|
@@ -131,33 +131,33 @@ var require_dayjs_min = __commonJS({
|
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
133
|
return new Date(e2);
|
|
134
|
-
}(t2), this
|
|
134
|
+
}(t2), this.init();
|
|
135
135
|
}, m2.init = function() {
|
|
136
136
|
var t2 = this.$d;
|
|
137
137
|
this.$y = t2.getFullYear(), this.$M = t2.getMonth(), this.$D = t2.getDate(), this.$W = t2.getDay(), this.$H = t2.getHours(), this.$m = t2.getMinutes(), this.$s = t2.getSeconds(), this.$ms = t2.getMilliseconds();
|
|
138
138
|
}, m2.$utils = function() {
|
|
139
|
-
return
|
|
139
|
+
return b;
|
|
140
140
|
}, m2.isValid = function() {
|
|
141
141
|
return !(this.$d.toString() === l);
|
|
142
142
|
}, m2.isSame = function(t2, e2) {
|
|
143
|
-
var n2 =
|
|
143
|
+
var n2 = O(t2);
|
|
144
144
|
return this.startOf(e2) <= n2 && n2 <= this.endOf(e2);
|
|
145
145
|
}, m2.isAfter = function(t2, e2) {
|
|
146
|
-
return
|
|
146
|
+
return O(t2) < this.startOf(e2);
|
|
147
147
|
}, m2.isBefore = function(t2, e2) {
|
|
148
|
-
return this.endOf(e2) <
|
|
148
|
+
return this.endOf(e2) < O(t2);
|
|
149
149
|
}, m2.$g = function(t2, e2, n2) {
|
|
150
|
-
return
|
|
150
|
+
return b.u(t2) ? this[e2] : this.set(n2, t2);
|
|
151
151
|
}, m2.unix = function() {
|
|
152
152
|
return Math.floor(this.valueOf() / 1e3);
|
|
153
153
|
}, m2.valueOf = function() {
|
|
154
154
|
return this.$d.getTime();
|
|
155
155
|
}, m2.startOf = function(t2, e2) {
|
|
156
|
-
var n2 = this, r2 = !!
|
|
157
|
-
var i2 =
|
|
156
|
+
var n2 = this, r2 = !!b.u(e2) || e2, f2 = b.p(t2), l2 = function(t3, e3) {
|
|
157
|
+
var i2 = b.w(n2.$u ? Date.UTC(n2.$y, e3, t3) : new Date(n2.$y, e3, t3), n2);
|
|
158
158
|
return r2 ? i2 : i2.endOf(a);
|
|
159
159
|
}, $2 = function(t3, e3) {
|
|
160
|
-
return
|
|
160
|
+
return b.w(n2.toDate()[t3].apply(n2.toDate("s"), (r2 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e3)), n2);
|
|
161
161
|
}, y2 = this.$W, M3 = this.$M, m3 = this.$D, v2 = "set" + (this.$u ? "UTC" : "");
|
|
162
162
|
switch (f2) {
|
|
163
163
|
case h:
|
|
@@ -182,7 +182,7 @@ var require_dayjs_min = __commonJS({
|
|
|
182
182
|
}, m2.endOf = function(t2) {
|
|
183
183
|
return this.startOf(t2, false);
|
|
184
184
|
}, m2.$set = function(t2, e2) {
|
|
185
|
-
var n2, o2 =
|
|
185
|
+
var n2, o2 = b.p(t2), f2 = "set" + (this.$u ? "UTC" : ""), l2 = (n2 = {}, n2[a] = f2 + "Date", n2[d] = f2 + "Date", n2[c] = f2 + "Month", n2[h] = f2 + "FullYear", n2[u] = f2 + "Hours", n2[s] = f2 + "Minutes", n2[i] = f2 + "Seconds", n2[r] = f2 + "Milliseconds", n2)[o2], $2 = o2 === a ? this.$D + (e2 - this.$W) : e2;
|
|
186
186
|
if (o2 === c || o2 === h) {
|
|
187
187
|
var y2 = this.clone().set(d, 1);
|
|
188
188
|
y2.$d[l2]($2), y2.init(), this.$d = y2.set(d, Math.min(this.$D, y2.daysInMonth())).$d;
|
|
@@ -192,13 +192,13 @@ var require_dayjs_min = __commonJS({
|
|
|
192
192
|
}, m2.set = function(t2, e2) {
|
|
193
193
|
return this.clone().$set(t2, e2);
|
|
194
194
|
}, m2.get = function(t2) {
|
|
195
|
-
return this[
|
|
195
|
+
return this[b.p(t2)]();
|
|
196
196
|
}, m2.add = function(r2, f2) {
|
|
197
197
|
var d2, l2 = this;
|
|
198
198
|
r2 = Number(r2);
|
|
199
|
-
var $2 =
|
|
200
|
-
var e2 =
|
|
201
|
-
return
|
|
199
|
+
var $2 = b.p(f2), y2 = function(t2) {
|
|
200
|
+
var e2 = O(l2);
|
|
201
|
+
return b.w(e2.date(e2.date() + Math.round(t2 * r2)), l2);
|
|
202
202
|
};
|
|
203
203
|
if ($2 === c)
|
|
204
204
|
return this.set(c, this.$M + r2);
|
|
@@ -209,17 +209,17 @@ var require_dayjs_min = __commonJS({
|
|
|
209
209
|
if ($2 === o)
|
|
210
210
|
return y2(7);
|
|
211
211
|
var M3 = (d2 = {}, d2[s] = e, d2[u] = n, d2[i] = t, d2)[$2] || 1, m3 = this.$d.getTime() + r2 * M3;
|
|
212
|
-
return
|
|
212
|
+
return b.w(m3, this);
|
|
213
213
|
}, m2.subtract = function(t2, e2) {
|
|
214
214
|
return this.add(-1 * t2, e2);
|
|
215
215
|
}, m2.format = function(t2) {
|
|
216
216
|
var e2 = this, n2 = this.$locale();
|
|
217
217
|
if (!this.isValid())
|
|
218
218
|
return n2.invalidDate || l;
|
|
219
|
-
var r2 = t2 || "YYYY-MM-DDTHH:mm:ssZ", i2 =
|
|
219
|
+
var r2 = t2 || "YYYY-MM-DDTHH:mm:ssZ", i2 = b.z(this), s2 = this.$H, u2 = this.$m, a2 = this.$M, o2 = n2.weekdays, c2 = n2.months, f2 = n2.meridiem, h2 = function(t3, n3, i3, s3) {
|
|
220
220
|
return t3 && (t3[n3] || t3(e2, r2)) || i3[n3].slice(0, s3);
|
|
221
221
|
}, d2 = function(t3) {
|
|
222
|
-
return
|
|
222
|
+
return b.s(s2 % 12 || 12, t3, "0");
|
|
223
223
|
}, $2 = f2 || function(t3, e3, n3) {
|
|
224
224
|
var r3 = t3 < 12 ? "AM" : "PM";
|
|
225
225
|
return n3 ? r3.toLowerCase() : r3;
|
|
@@ -230,11 +230,11 @@ var require_dayjs_min = __commonJS({
|
|
|
230
230
|
case "YY":
|
|
231
231
|
return String(e2.$y).slice(-2);
|
|
232
232
|
case "YYYY":
|
|
233
|
-
return
|
|
233
|
+
return b.s(e2.$y, 4, "0");
|
|
234
234
|
case "M":
|
|
235
235
|
return a2 + 1;
|
|
236
236
|
case "MM":
|
|
237
|
-
return
|
|
237
|
+
return b.s(a2 + 1, 2, "0");
|
|
238
238
|
case "MMM":
|
|
239
239
|
return h2(n2.monthsShort, a2, c2, 3);
|
|
240
240
|
case "MMMM":
|
|
@@ -242,7 +242,7 @@ var require_dayjs_min = __commonJS({
|
|
|
242
242
|
case "D":
|
|
243
243
|
return e2.$D;
|
|
244
244
|
case "DD":
|
|
245
|
-
return
|
|
245
|
+
return b.s(e2.$D, 2, "0");
|
|
246
246
|
case "d":
|
|
247
247
|
return String(e2.$W);
|
|
248
248
|
case "dd":
|
|
@@ -254,7 +254,7 @@ var require_dayjs_min = __commonJS({
|
|
|
254
254
|
case "H":
|
|
255
255
|
return String(s2);
|
|
256
256
|
case "HH":
|
|
257
|
-
return
|
|
257
|
+
return b.s(s2, 2, "0");
|
|
258
258
|
case "h":
|
|
259
259
|
return d2(1);
|
|
260
260
|
case "hh":
|
|
@@ -266,13 +266,13 @@ var require_dayjs_min = __commonJS({
|
|
|
266
266
|
case "m":
|
|
267
267
|
return String(u2);
|
|
268
268
|
case "mm":
|
|
269
|
-
return
|
|
269
|
+
return b.s(u2, 2, "0");
|
|
270
270
|
case "s":
|
|
271
271
|
return String(e2.$s);
|
|
272
272
|
case "ss":
|
|
273
|
-
return
|
|
273
|
+
return b.s(e2.$s, 2, "0");
|
|
274
274
|
case "SSS":
|
|
275
|
-
return
|
|
275
|
+
return b.s(e2.$ms, 3, "0");
|
|
276
276
|
case "Z":
|
|
277
277
|
return i2;
|
|
278
278
|
}
|
|
@@ -282,8 +282,8 @@ var require_dayjs_min = __commonJS({
|
|
|
282
282
|
}, m2.utcOffset = function() {
|
|
283
283
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
284
284
|
}, m2.diff = function(r2, d2, l2) {
|
|
285
|
-
var $2, y2 = this, M3 =
|
|
286
|
-
return
|
|
285
|
+
var $2, y2 = this, M3 = b.p(d2), m3 = O(r2), v2 = (m3.utcOffset() - this.utcOffset()) * e, g2 = this - m3, D2 = function() {
|
|
286
|
+
return b.m(y2, m3);
|
|
287
287
|
};
|
|
288
288
|
switch (M3) {
|
|
289
289
|
case h:
|
|
@@ -313,7 +313,7 @@ var require_dayjs_min = __commonJS({
|
|
|
313
313
|
default:
|
|
314
314
|
$2 = g2;
|
|
315
315
|
}
|
|
316
|
-
return l2 ? $2 :
|
|
316
|
+
return l2 ? $2 : b.a($2);
|
|
317
317
|
}, m2.daysInMonth = function() {
|
|
318
318
|
return this.endOf(c).$D;
|
|
319
319
|
}, m2.$locale = function() {
|
|
@@ -321,10 +321,10 @@ var require_dayjs_min = __commonJS({
|
|
|
321
321
|
}, m2.locale = function(t2, e2) {
|
|
322
322
|
if (!t2)
|
|
323
323
|
return this.$L;
|
|
324
|
-
var n2 = this.clone(), r2 =
|
|
324
|
+
var n2 = this.clone(), r2 = w(t2, e2, true);
|
|
325
325
|
return r2 && (n2.$L = r2), n2;
|
|
326
326
|
}, m2.clone = function() {
|
|
327
|
-
return
|
|
327
|
+
return b.w(this.$d, this);
|
|
328
328
|
}, m2.toDate = function() {
|
|
329
329
|
return new Date(this.valueOf());
|
|
330
330
|
}, m2.toJSON = function() {
|
|
@@ -334,16 +334,16 @@ var require_dayjs_min = __commonJS({
|
|
|
334
334
|
}, m2.toString = function() {
|
|
335
335
|
return this.$d.toUTCString();
|
|
336
336
|
}, M2;
|
|
337
|
-
}(),
|
|
338
|
-
return
|
|
339
|
-
|
|
337
|
+
}(), k = _.prototype;
|
|
338
|
+
return O.prototype = k, [["$ms", r], ["$s", i], ["$m", s], ["$H", u], ["$W", a], ["$M", c], ["$y", h], ["$D", d]].forEach(function(t2) {
|
|
339
|
+
k[t2[1]] = function(e2) {
|
|
340
340
|
return this.$g(e2, t2[0], t2[1]);
|
|
341
341
|
};
|
|
342
|
-
}),
|
|
343
|
-
return t2.$i || (t2(e2,
|
|
344
|
-
},
|
|
345
|
-
return
|
|
346
|
-
},
|
|
342
|
+
}), O.extend = function(t2, e2) {
|
|
343
|
+
return t2.$i || (t2(e2, _, O), t2.$i = true), O;
|
|
344
|
+
}, O.locale = w, O.isDayjs = S, O.unix = function(t2) {
|
|
345
|
+
return O(1e3 * t2);
|
|
346
|
+
}, O.en = D[g], O.Ls = D, O.p = {}, O;
|
|
347
347
|
});
|
|
348
348
|
}
|
|
349
349
|
});
|
|
@@ -361,9 +361,9 @@ var require_interopRequireDefault = __commonJS({
|
|
|
361
361
|
}
|
|
362
362
|
});
|
|
363
363
|
|
|
364
|
-
// ../../node_modules/rc-util/lib/warning.js
|
|
364
|
+
// ../../node_modules/rc-picker/node_modules/rc-util/lib/warning.js
|
|
365
365
|
var require_warning = __commonJS({
|
|
366
|
-
"../../node_modules/rc-util/lib/warning.js"(exports) {
|
|
366
|
+
"../../node_modules/rc-picker/node_modules/rc-util/lib/warning.js"(exports) {
|
|
367
367
|
"use strict";
|
|
368
368
|
Object.defineProperty(exports, "__esModule", {
|
|
369
369
|
value: true
|
|
@@ -1130,11 +1130,58 @@ var AntDNotToggle = (_a) => {
|
|
|
1130
1130
|
};
|
|
1131
1131
|
AntDNotToggle.displayName = "AntDNotToggle";
|
|
1132
1132
|
|
|
1133
|
+
// src/AntDShiftActions.tsx
|
|
1134
|
+
import { CaretDownOutlined, CaretUpOutlined } from "@ant-design/icons";
|
|
1135
|
+
import { Button as Button2 } from "antd";
|
|
1136
|
+
import * as React4 from "react";
|
|
1137
|
+
import { useShiftActions } from "react-querybuilder";
|
|
1138
|
+
var AntDShiftActions = ({
|
|
1139
|
+
path,
|
|
1140
|
+
disabled,
|
|
1141
|
+
className,
|
|
1142
|
+
// labels, // Labels are hard-coded in this component
|
|
1143
|
+
titles,
|
|
1144
|
+
testID,
|
|
1145
|
+
lastInGroup,
|
|
1146
|
+
schema: { combinators, dispatchQuery, getQuery }
|
|
1147
|
+
}) => {
|
|
1148
|
+
const { shiftUp, shiftUpDisabled, shiftDown, shiftDownDisabled } = useShiftActions({
|
|
1149
|
+
combinators,
|
|
1150
|
+
disabled,
|
|
1151
|
+
dispatchQuery,
|
|
1152
|
+
getQuery,
|
|
1153
|
+
lastInGroup,
|
|
1154
|
+
path
|
|
1155
|
+
});
|
|
1156
|
+
return /* @__PURE__ */ React4.createElement("div", { "data-testid": testID, className }, /* @__PURE__ */ React4.createElement(
|
|
1157
|
+
Button2,
|
|
1158
|
+
{
|
|
1159
|
+
type: "primary",
|
|
1160
|
+
size: "small",
|
|
1161
|
+
title: titles == null ? void 0 : titles.shiftUp,
|
|
1162
|
+
onClick: shiftUp,
|
|
1163
|
+
disabled: shiftUpDisabled
|
|
1164
|
+
},
|
|
1165
|
+
/* @__PURE__ */ React4.createElement(CaretUpOutlined, null)
|
|
1166
|
+
), /* @__PURE__ */ React4.createElement(
|
|
1167
|
+
Button2,
|
|
1168
|
+
{
|
|
1169
|
+
type: "primary",
|
|
1170
|
+
size: "small",
|
|
1171
|
+
title: titles == null ? void 0 : titles.shiftDown,
|
|
1172
|
+
onClick: shiftDown,
|
|
1173
|
+
disabled: shiftDownDisabled
|
|
1174
|
+
},
|
|
1175
|
+
/* @__PURE__ */ React4.createElement(CaretDownOutlined, null)
|
|
1176
|
+
));
|
|
1177
|
+
};
|
|
1178
|
+
AntDShiftActions.displayName = "AntDShiftActions";
|
|
1179
|
+
|
|
1133
1180
|
// src/AntDValueEditor.tsx
|
|
1134
1181
|
var import_dayjs = __toESM(require_dayjs_min());
|
|
1135
1182
|
var import_dayjs2 = __toESM(require_dayjs());
|
|
1136
1183
|
import { DatePicker as AntdDatePicker, Checkbox, Input, Radio, Switch as Switch2, TimePicker } from "antd";
|
|
1137
|
-
import * as
|
|
1184
|
+
import * as React7 from "react";
|
|
1138
1185
|
import {
|
|
1139
1186
|
getFirstOption,
|
|
1140
1187
|
standardClassnames,
|
|
@@ -1144,15 +1191,15 @@ import {
|
|
|
1144
1191
|
|
|
1145
1192
|
// src/AntDValueSelector.tsx
|
|
1146
1193
|
import { Select as Select2 } from "antd";
|
|
1147
|
-
import * as
|
|
1194
|
+
import * as React6 from "react";
|
|
1148
1195
|
import { useValueSelector } from "react-querybuilder";
|
|
1149
1196
|
|
|
1150
1197
|
// src/utils.tsx
|
|
1151
1198
|
import { Select } from "antd";
|
|
1152
|
-
import * as
|
|
1199
|
+
import * as React5 from "react";
|
|
1153
1200
|
import { isOptionGroupArray } from "react-querybuilder";
|
|
1154
1201
|
var { OptGroup, Option } = Select;
|
|
1155
|
-
var toOptions = (arr) => isOptionGroupArray(arr) ? arr.map((og) => /* @__PURE__ */
|
|
1202
|
+
var toOptions = (arr) => isOptionGroupArray(arr) ? arr.map((og) => /* @__PURE__ */ React5.createElement(OptGroup, { key: og.label, label: og.label }, og.options.map((opt) => /* @__PURE__ */ React5.createElement(Option, { key: opt.name, value: opt.name }, opt.label)))) : Array.isArray(arr) ? arr.map((opt) => /* @__PURE__ */ React5.createElement(Option, { key: opt.name, value: opt.name }, opt.label)) : (
|
|
1156
1203
|
/* istanbul ignore next */
|
|
1157
1204
|
null
|
|
1158
1205
|
);
|
|
@@ -1169,6 +1216,7 @@ var AntDValueSelector = (_a) => {
|
|
|
1169
1216
|
multiple,
|
|
1170
1217
|
listsAsArrays,
|
|
1171
1218
|
testID: _testID,
|
|
1219
|
+
rule: _rule,
|
|
1172
1220
|
rules: _rules,
|
|
1173
1221
|
level: _level,
|
|
1174
1222
|
path: _path,
|
|
@@ -1189,6 +1237,7 @@ var AntDValueSelector = (_a) => {
|
|
|
1189
1237
|
"listsAsArrays",
|
|
1190
1238
|
// Props that should not be in extraProps
|
|
1191
1239
|
"testID",
|
|
1240
|
+
"rule",
|
|
1192
1241
|
"rules",
|
|
1193
1242
|
"level",
|
|
1194
1243
|
"path",
|
|
@@ -1201,7 +1250,7 @@ var AntDValueSelector = (_a) => {
|
|
|
1201
1250
|
]);
|
|
1202
1251
|
const { onChange, val } = useValueSelector({ handleOnChange, listsAsArrays, multiple, value });
|
|
1203
1252
|
const modeObj = multiple ? { mode: "multiple" } : {};
|
|
1204
|
-
return /* @__PURE__ */
|
|
1253
|
+
return /* @__PURE__ */ React6.createElement("span", { title, className }, /* @__PURE__ */ React6.createElement(
|
|
1205
1254
|
Select2,
|
|
1206
1255
|
__spreadValues(__spreadProps(__spreadValues({}, modeObj), {
|
|
1207
1256
|
popupMatchSelectWidth: false,
|
|
@@ -1274,7 +1323,7 @@ var AntDValueEditor = (_a) => {
|
|
|
1274
1323
|
var _a3, _b3;
|
|
1275
1324
|
if (type === "text") {
|
|
1276
1325
|
if (inputTypeCoerced === "time") {
|
|
1277
|
-
return /* @__PURE__ */
|
|
1326
|
+
return /* @__PURE__ */ React7.createElement(
|
|
1278
1327
|
TimePicker,
|
|
1279
1328
|
{
|
|
1280
1329
|
key,
|
|
@@ -1289,7 +1338,7 @@ var AntDValueEditor = (_a) => {
|
|
|
1289
1338
|
}
|
|
1290
1339
|
);
|
|
1291
1340
|
}
|
|
1292
|
-
return /* @__PURE__ */
|
|
1341
|
+
return /* @__PURE__ */ React7.createElement(
|
|
1293
1342
|
Input,
|
|
1294
1343
|
{
|
|
1295
1344
|
key,
|
|
@@ -1302,7 +1351,7 @@ var AntDValueEditor = (_a) => {
|
|
|
1302
1351
|
}
|
|
1303
1352
|
);
|
|
1304
1353
|
}
|
|
1305
|
-
return /* @__PURE__ */
|
|
1354
|
+
return /* @__PURE__ */ React7.createElement(
|
|
1306
1355
|
SelectorComponent,
|
|
1307
1356
|
__spreadProps(__spreadValues({}, props), {
|
|
1308
1357
|
key,
|
|
@@ -1315,12 +1364,12 @@ var AntDValueEditor = (_a) => {
|
|
|
1315
1364
|
})
|
|
1316
1365
|
);
|
|
1317
1366
|
});
|
|
1318
|
-
return /* @__PURE__ */
|
|
1367
|
+
return /* @__PURE__ */ React7.createElement("span", { "data-testid": testID, className, title }, editors[0], separator, editors[1]);
|
|
1319
1368
|
}
|
|
1320
1369
|
switch (type) {
|
|
1321
1370
|
case "select":
|
|
1322
1371
|
case "multiselect":
|
|
1323
|
-
return /* @__PURE__ */
|
|
1372
|
+
return /* @__PURE__ */ React7.createElement(
|
|
1324
1373
|
SelectorComponent,
|
|
1325
1374
|
__spreadProps(__spreadValues({}, props), {
|
|
1326
1375
|
className,
|
|
@@ -1334,7 +1383,7 @@ var AntDValueEditor = (_a) => {
|
|
|
1334
1383
|
})
|
|
1335
1384
|
);
|
|
1336
1385
|
case "textarea":
|
|
1337
|
-
return /* @__PURE__ */
|
|
1386
|
+
return /* @__PURE__ */ React7.createElement(
|
|
1338
1387
|
Input.TextArea,
|
|
1339
1388
|
{
|
|
1340
1389
|
value,
|
|
@@ -1346,7 +1395,7 @@ var AntDValueEditor = (_a) => {
|
|
|
1346
1395
|
}
|
|
1347
1396
|
);
|
|
1348
1397
|
case "switch":
|
|
1349
|
-
return /* @__PURE__ */
|
|
1398
|
+
return /* @__PURE__ */ React7.createElement(
|
|
1350
1399
|
Switch2,
|
|
1351
1400
|
{
|
|
1352
1401
|
checked: !!value,
|
|
@@ -1357,7 +1406,7 @@ var AntDValueEditor = (_a) => {
|
|
|
1357
1406
|
}
|
|
1358
1407
|
);
|
|
1359
1408
|
case "checkbox":
|
|
1360
|
-
return /* @__PURE__ */
|
|
1409
|
+
return /* @__PURE__ */ React7.createElement("span", { title, className }, /* @__PURE__ */ React7.createElement(
|
|
1361
1410
|
Checkbox,
|
|
1362
1411
|
{
|
|
1363
1412
|
type: "checkbox",
|
|
@@ -1367,7 +1416,7 @@ var AntDValueEditor = (_a) => {
|
|
|
1367
1416
|
}
|
|
1368
1417
|
));
|
|
1369
1418
|
case "radio":
|
|
1370
|
-
return /* @__PURE__ */
|
|
1419
|
+
return /* @__PURE__ */ React7.createElement("span", { className, title }, values.map((v) => /* @__PURE__ */ React7.createElement(
|
|
1371
1420
|
Radio,
|
|
1372
1421
|
{
|
|
1373
1422
|
key: v.name,
|
|
@@ -1382,7 +1431,7 @@ var AntDValueEditor = (_a) => {
|
|
|
1382
1431
|
switch (inputTypeCoerced) {
|
|
1383
1432
|
case "date":
|
|
1384
1433
|
case "datetime-local":
|
|
1385
|
-
return operator === "between" || operator === "notBetween" ? /* @__PURE__ */
|
|
1434
|
+
return operator === "between" || operator === "notBetween" ? /* @__PURE__ */ React7.createElement(
|
|
1386
1435
|
DatePicker.RangePicker,
|
|
1387
1436
|
{
|
|
1388
1437
|
value: ((_b2 = toArray(value)) == null ? void 0 : _b2.length) >= 2 ? toArray(value).map((v) => (0, import_dayjs.default)(v)) : void 0,
|
|
@@ -1399,7 +1448,7 @@ var AntDValueEditor = (_a) => {
|
|
|
1399
1448
|
}
|
|
1400
1449
|
)
|
|
1401
1450
|
}
|
|
1402
|
-
) : /* @__PURE__ */
|
|
1451
|
+
) : /* @__PURE__ */ React7.createElement(
|
|
1403
1452
|
DatePicker,
|
|
1404
1453
|
{
|
|
1405
1454
|
value: value ? (0, import_dayjs.default)(value) : null,
|
|
@@ -1411,7 +1460,7 @@ var AntDValueEditor = (_a) => {
|
|
|
1411
1460
|
}
|
|
1412
1461
|
);
|
|
1413
1462
|
case "time":
|
|
1414
|
-
return /* @__PURE__ */
|
|
1463
|
+
return /* @__PURE__ */ React7.createElement(
|
|
1415
1464
|
TimePicker,
|
|
1416
1465
|
{
|
|
1417
1466
|
value: value ? (0, import_dayjs.default)(value, "HH:mm:ss") : null,
|
|
@@ -1425,7 +1474,7 @@ var AntDValueEditor = (_a) => {
|
|
|
1425
1474
|
}
|
|
1426
1475
|
);
|
|
1427
1476
|
}
|
|
1428
|
-
return /* @__PURE__ */
|
|
1477
|
+
return /* @__PURE__ */ React7.createElement(
|
|
1429
1478
|
Input,
|
|
1430
1479
|
{
|
|
1431
1480
|
type: inputTypeCoerced,
|
|
@@ -1456,7 +1505,8 @@ var antdControlElements = {
|
|
|
1456
1505
|
removeRuleAction: AntDActionElement,
|
|
1457
1506
|
valueEditor: AntDValueEditor,
|
|
1458
1507
|
dragHandle: AntDDragHandle,
|
|
1459
|
-
valueSourceSelector: AntDValueSelector
|
|
1508
|
+
valueSourceSelector: AntDValueSelector,
|
|
1509
|
+
shiftActions: AntDShiftActions
|
|
1460
1510
|
};
|
|
1461
1511
|
var QueryBuilderAntD = getCompatContextProvider({
|
|
1462
1512
|
key: "antd",
|
|
@@ -1466,6 +1516,7 @@ export {
|
|
|
1466
1516
|
AntDActionElement,
|
|
1467
1517
|
AntDDragHandle,
|
|
1468
1518
|
AntDNotToggle,
|
|
1519
|
+
AntDShiftActions,
|
|
1469
1520
|
AntDValueEditor,
|
|
1470
1521
|
AntDValueSelector,
|
|
1471
1522
|
QueryBuilderAntD,
|