@react-querybuilder/antd 4.2.5 → 4.4.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/dist/index.es.js CHANGED
@@ -29,49 +29,146 @@ var __objRest = (source, exclude) => {
29
29
  }
30
30
  return target;
31
31
  };
32
- import React, { forwardRef, useMemo, useEffect } from "react";
33
32
  import { Button, Switch, Select, Radio, Checkbox, Input, TimePicker, DatePicker } from "antd";
33
+ import require$$0, { forwardRef, useMemo, useEffect } from "react";
34
34
  import { HolderOutlined } from "@ant-design/icons";
35
- const AntDActionElement = ({
36
- className,
37
- handleOnClick,
38
- label,
39
- title,
40
- disabled,
41
- disabledTranslation
42
- }) => /* @__PURE__ */ React.createElement(Button, {
43
- type: "primary",
44
- className,
45
- title: disabledTranslation && disabled ? disabledTranslation.title : title,
46
- onClick: (e) => handleOnClick(e),
47
- disabled: disabled && !disabledTranslation
48
- }, disabledTranslation && disabled ? disabledTranslation.label : label);
35
+ import { isOptionGroupArray } from "react-querybuilder";
36
+ var jsxRuntime = { exports: {} };
37
+ var reactJsxRuntime_production_min = {};
38
+ /**
39
+ * @license React
40
+ * react-jsx-runtime.production.min.js
41
+ *
42
+ * Copyright (c) Facebook, Inc. and its affiliates.
43
+ *
44
+ * This source code is licensed under the MIT license found in the
45
+ * LICENSE file in the root directory of this source tree.
46
+ */
47
+ var f = require$$0, k = Symbol.for("react.element"), l = Symbol.for("react.fragment"), m = Object.prototype.hasOwnProperty, n = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, p = { key: true, ref: true, __self: true, __source: true };
48
+ function q(c, a, g) {
49
+ var b, d = {}, e = null, h = null;
50
+ g !== void 0 && (e = "" + g);
51
+ a.key !== void 0 && (e = "" + a.key);
52
+ a.ref !== void 0 && (h = a.ref);
53
+ for (b in a)
54
+ m.call(a, b) && !p.hasOwnProperty(b) && (d[b] = a[b]);
55
+ if (c && c.defaultProps)
56
+ for (b in a = c.defaultProps, a)
57
+ d[b] === void 0 && (d[b] = a[b]);
58
+ return { $$typeof: k, type: c, key: e, ref: h, props: d, _owner: n.current };
59
+ }
60
+ reactJsxRuntime_production_min.Fragment = l;
61
+ reactJsxRuntime_production_min.jsx = q;
62
+ reactJsxRuntime_production_min.jsxs = q;
63
+ {
64
+ jsxRuntime.exports = reactJsxRuntime_production_min;
65
+ }
66
+ const jsx = jsxRuntime.exports.jsx;
67
+ const AntDActionElement = (_a) => {
68
+ var _b = _a, {
69
+ className,
70
+ handleOnClick,
71
+ label,
72
+ title,
73
+ disabled,
74
+ disabledTranslation,
75
+ testID: _testID,
76
+ rules: _rules,
77
+ level: _level,
78
+ path: _path,
79
+ context: _context,
80
+ validation: _validation
81
+ } = _b, extraProps = __objRest(_b, [
82
+ "className",
83
+ "handleOnClick",
84
+ "label",
85
+ "title",
86
+ "disabled",
87
+ "disabledTranslation",
88
+ "testID",
89
+ "rules",
90
+ "level",
91
+ "path",
92
+ "context",
93
+ "validation"
94
+ ]);
95
+ return /* @__PURE__ */ jsx(Button, __spreadProps(__spreadValues({
96
+ type: "primary",
97
+ className,
98
+ title: disabledTranslation && disabled ? disabledTranslation.title : title,
99
+ onClick: (e) => handleOnClick(e),
100
+ disabled: disabled && !disabledTranslation
101
+ }, extraProps), {
102
+ children: disabledTranslation && disabled ? disabledTranslation.label : label
103
+ }));
104
+ };
49
105
  AntDActionElement.displayName = "AntDActionElement";
50
- const AntDDragHandle = forwardRef(({ className, title }, dragRef) => /* @__PURE__ */ React.createElement("span", {
51
- ref: dragRef,
52
- className,
53
- title
54
- }, /* @__PURE__ */ React.createElement(HolderOutlined, null)));
55
- AntDDragHandle.displayName = "AntDDragHandle";
56
- const AntDNotToggle = ({
57
- className,
58
- handleOnChange,
59
- label,
60
- checked,
61
- title,
62
- disabled
63
- }) => /* @__PURE__ */ React.createElement(Switch, {
64
- title,
65
- className,
66
- onChange: (v) => handleOnChange(v),
67
- checked: !!checked,
68
- disabled,
69
- checkedChildren: label,
70
- unCheckedChildren: "="
106
+ const AntDDragHandle = forwardRef((_c, dragRef) => {
107
+ var _d = _c, {
108
+ className,
109
+ title,
110
+ testID: _testID,
111
+ level: _level,
112
+ path: _path,
113
+ label: _label,
114
+ disabled: _disabled,
115
+ context: _context,
116
+ validation: _validation
117
+ } = _d, extraProps = __objRest(_d, [
118
+ "className",
119
+ "title",
120
+ "testID",
121
+ "level",
122
+ "path",
123
+ "label",
124
+ "disabled",
125
+ "context",
126
+ "validation"
127
+ ]);
128
+ return /* @__PURE__ */ jsx(HolderOutlined, __spreadValues({
129
+ ref: dragRef,
130
+ className,
131
+ title
132
+ }, extraProps));
71
133
  });
134
+ AntDDragHandle.displayName = "AntDDragHandle";
135
+ const AntDNotToggle = (_e) => {
136
+ var _f = _e, {
137
+ className,
138
+ handleOnChange,
139
+ label,
140
+ checked,
141
+ title,
142
+ disabled,
143
+ path: _path,
144
+ context: _context,
145
+ validation: _validation,
146
+ testID: _testID
147
+ } = _f, extraProps = __objRest(_f, [
148
+ "className",
149
+ "handleOnChange",
150
+ "label",
151
+ "checked",
152
+ "title",
153
+ "disabled",
154
+ "path",
155
+ "context",
156
+ "validation",
157
+ "testID"
158
+ ]);
159
+ return /* @__PURE__ */ jsx(Switch, __spreadValues({
160
+ title,
161
+ className,
162
+ onChange: (v) => handleOnChange(v),
163
+ checked: !!checked,
164
+ disabled,
165
+ checkedChildren: label,
166
+ unCheckedChildren: "="
167
+ }, extraProps));
168
+ };
72
169
  AntDNotToggle.displayName = "AntDNotToggle";
73
170
  //! moment.js
74
- //! version : 2.29.1
171
+ //! version : 2.29.3
75
172
  //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
76
173
  //! license : MIT
77
174
  //! momentjs.com
@@ -95,9 +192,9 @@ function isObjectEmpty(obj) {
95
192
  if (Object.getOwnPropertyNames) {
96
193
  return Object.getOwnPropertyNames(obj).length === 0;
97
194
  } else {
98
- var k;
99
- for (k in obj) {
100
- if (hasOwnProp(obj, k)) {
195
+ var k2;
196
+ for (k2 in obj) {
197
+ if (hasOwnProp(obj, k2)) {
101
198
  return false;
102
199
  }
103
200
  }
@@ -114,8 +211,8 @@ function isDate(input) {
114
211
  return input instanceof Date || Object.prototype.toString.call(input) === "[object Date]";
115
212
  }
116
213
  function map(arr, fn) {
117
- var res = [], i;
118
- for (i = 0; i < arr.length; ++i) {
214
+ var res = [], i, arrLen = arr.length;
215
+ for (i = 0; i < arrLen; ++i) {
119
216
  res.push(fn(arr[i], i));
120
217
  }
121
218
  return res;
@@ -157,11 +254,11 @@ function defaultParsingFlags() {
157
254
  weekdayMismatch: false
158
255
  };
159
256
  }
160
- function getParsingFlags(m) {
161
- if (m._pf == null) {
162
- m._pf = defaultParsingFlags();
257
+ function getParsingFlags(m2) {
258
+ if (m2._pf == null) {
259
+ m2._pf = defaultParsingFlags();
163
260
  }
164
- return m._pf;
261
+ return m2._pf;
165
262
  }
166
263
  var some;
167
264
  if (Array.prototype.some) {
@@ -177,34 +274,34 @@ if (Array.prototype.some) {
177
274
  return false;
178
275
  };
179
276
  }
180
- function isValid(m) {
181
- if (m._isValid == null) {
182
- var flags = getParsingFlags(m), parsedParts = some.call(flags.parsedDateParts, function(i) {
277
+ function isValid(m2) {
278
+ if (m2._isValid == null) {
279
+ var flags = getParsingFlags(m2), parsedParts = some.call(flags.parsedDateParts, function(i) {
183
280
  return i != null;
184
- }), isNowValid = !isNaN(m._d.getTime()) && flags.overflow < 0 && !flags.empty && !flags.invalidEra && !flags.invalidMonth && !flags.invalidWeekday && !flags.weekdayMismatch && !flags.nullInput && !flags.invalidFormat && !flags.userInvalidated && (!flags.meridiem || flags.meridiem && parsedParts);
185
- if (m._strict) {
281
+ }), isNowValid = !isNaN(m2._d.getTime()) && flags.overflow < 0 && !flags.empty && !flags.invalidEra && !flags.invalidMonth && !flags.invalidWeekday && !flags.weekdayMismatch && !flags.nullInput && !flags.invalidFormat && !flags.userInvalidated && (!flags.meridiem || flags.meridiem && parsedParts);
282
+ if (m2._strict) {
186
283
  isNowValid = isNowValid && flags.charsLeftOver === 0 && flags.unusedTokens.length === 0 && flags.bigHour === void 0;
187
284
  }
188
- if (Object.isFrozen == null || !Object.isFrozen(m)) {
189
- m._isValid = isNowValid;
285
+ if (Object.isFrozen == null || !Object.isFrozen(m2)) {
286
+ m2._isValid = isNowValid;
190
287
  } else {
191
288
  return isNowValid;
192
289
  }
193
290
  }
194
- return m._isValid;
291
+ return m2._isValid;
195
292
  }
196
293
  function createInvalid(flags) {
197
- var m = createUTC(NaN);
294
+ var m2 = createUTC(NaN);
198
295
  if (flags != null) {
199
- extend(getParsingFlags(m), flags);
296
+ extend(getParsingFlags(m2), flags);
200
297
  } else {
201
- getParsingFlags(m).userInvalidated = true;
298
+ getParsingFlags(m2).userInvalidated = true;
202
299
  }
203
- return m;
300
+ return m2;
204
301
  }
205
302
  var momentProperties = hooks.momentProperties = [], updateInProgress = false;
206
303
  function copyConfig(to2, from2) {
207
- var i, prop, val;
304
+ var i, prop, val, momentPropertiesLen = momentProperties.length;
208
305
  if (!isUndefined(from2._isAMomentObject)) {
209
306
  to2._isAMomentObject = from2._isAMomentObject;
210
307
  }
@@ -235,8 +332,8 @@ function copyConfig(to2, from2) {
235
332
  if (!isUndefined(from2._locale)) {
236
333
  to2._locale = from2._locale;
237
334
  }
238
- if (momentProperties.length > 0) {
239
- for (i = 0; i < momentProperties.length; i++) {
335
+ if (momentPropertiesLen > 0) {
336
+ for (i = 0; i < momentPropertiesLen; i++) {
240
337
  prop = momentProperties[i];
241
338
  val = from2[prop];
242
339
  if (!isUndefined(val)) {
@@ -273,8 +370,8 @@ function deprecate(msg, fn) {
273
370
  hooks.deprecationHandler(null, msg);
274
371
  }
275
372
  if (firstTime) {
276
- var args = [], arg, i, key;
277
- for (i = 0; i < arguments.length; i++) {
373
+ var args = [], arg, i, key, argLen = arguments.length;
374
+ for (i = 0; i < argLen; i++) {
278
375
  arg = "";
279
376
  if (typeof arguments[i] === "object") {
280
377
  arg += "\n[" + i + "] ";
@@ -427,13 +524,13 @@ function makeFormatFunction(format2) {
427
524
  return output;
428
525
  };
429
526
  }
430
- function formatMoment(m, format2) {
431
- if (!m.isValid()) {
432
- return m.localeData().invalidDate();
527
+ function formatMoment(m2, format2) {
528
+ if (!m2.isValid()) {
529
+ return m2.localeData().invalidDate();
433
530
  }
434
- format2 = expandFormat(format2, m.localeData());
531
+ format2 = expandFormat(format2, m2.localeData());
435
532
  formatFunctions[format2] = formatFunctions[format2] || makeFormatFunction(format2);
436
- return formatFunctions[format2](m);
533
+ return formatFunctions[format2](m2);
437
534
  }
438
535
  function expandFormat(format2, locale2) {
439
536
  var i = 5;
@@ -590,8 +687,8 @@ function stringGet(units) {
590
687
  function stringSet(units, value) {
591
688
  if (typeof units === "object") {
592
689
  units = normalizeObjectUnits(units);
593
- var prioritized = getPrioritizedUnits(units), i;
594
- for (i = 0; i < prioritized.length; i++) {
690
+ var prioritized = getPrioritizedUnits(units), i, prioritizedLen = prioritized.length;
691
+ for (i = 0; i < prioritizedLen; i++) {
595
692
  this[prioritized[i].unit](units[prioritized[i].unit]);
596
693
  }
597
694
  } else {
@@ -625,7 +722,7 @@ function regexEscape(s) {
625
722
  }
626
723
  var tokens = {};
627
724
  function addParseToken(token2, callback) {
628
- var i, func = callback;
725
+ var i, func = callback, tokenLen;
629
726
  if (typeof token2 === "string") {
630
727
  token2 = [token2];
631
728
  }
@@ -634,7 +731,8 @@ function addParseToken(token2, callback) {
634
731
  array[callback] = toInt(input);
635
732
  };
636
733
  }
637
- for (i = 0; i < token2.length; i++) {
734
+ tokenLen = token2.length;
735
+ for (i = 0; i < tokenLen; i++) {
638
736
  tokens[token2[i]] = func;
639
737
  }
640
738
  }
@@ -650,8 +748,8 @@ function addTimeToArrayFromToken(token2, input, config) {
650
748
  }
651
749
  }
652
750
  var YEAR = 0, MONTH = 1, DATE = 2, HOUR = 3, MINUTE = 4, SECOND = 5, MILLISECOND = 6, WEEK = 7, WEEKDAY = 8;
653
- function mod(n, x) {
654
- return (n % x + x) % x;
751
+ function mod(n2, x) {
752
+ return (n2 % x + x) % x;
655
753
  }
656
754
  var indexOf;
657
755
  if (Array.prototype.indexOf) {
@@ -706,17 +804,17 @@ addParseToken(["MMM", "MMMM"], function(input, array, config, token2) {
706
804
  }
707
805
  });
708
806
  var defaultLocaleMonths = "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), defaultLocaleMonthsShort = "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"), MONTHS_IN_FORMAT = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/, defaultMonthsShortRegex = matchWord, defaultMonthsRegex = matchWord;
709
- function localeMonths(m, format2) {
710
- if (!m) {
807
+ function localeMonths(m2, format2) {
808
+ if (!m2) {
711
809
  return isArray(this._months) ? this._months : this._months["standalone"];
712
810
  }
713
- return isArray(this._months) ? this._months[m.month()] : this._months[(this._months.isFormat || MONTHS_IN_FORMAT).test(format2) ? "format" : "standalone"][m.month()];
811
+ return isArray(this._months) ? this._months[m2.month()] : this._months[(this._months.isFormat || MONTHS_IN_FORMAT).test(format2) ? "format" : "standalone"][m2.month()];
714
812
  }
715
- function localeMonthsShort(m, format2) {
716
- if (!m) {
813
+ function localeMonthsShort(m2, format2) {
814
+ if (!m2) {
717
815
  return isArray(this._monthsShort) ? this._monthsShort : this._monthsShort["standalone"];
718
816
  }
719
- return isArray(this._monthsShort) ? this._monthsShort[m.month()] : this._monthsShort[MONTHS_IN_FORMAT.test(format2) ? "format" : "standalone"][m.month()];
817
+ return isArray(this._monthsShort) ? this._monthsShort[m2.month()] : this._monthsShort[MONTHS_IN_FORMAT.test(format2) ? "format" : "standalone"][m2.month()];
720
818
  }
721
819
  function handleStrictParse(monthName, format2, strict) {
722
820
  var i, ii, mom, llc = monthName.toLocaleLowerCase();
@@ -914,15 +1012,15 @@ var getSetYear = makeGetSet("FullYear", true);
914
1012
  function getIsLeapYear() {
915
1013
  return isLeapYear(this.year());
916
1014
  }
917
- function createDate(y, m, d, h, M, s, ms) {
1015
+ function createDate(y, m2, d, h, M, s, ms) {
918
1016
  var date;
919
1017
  if (y < 100 && y >= 0) {
920
- date = new Date(y + 400, m, d, h, M, s, ms);
1018
+ date = new Date(y + 400, m2, d, h, M, s, ms);
921
1019
  if (isFinite(date.getFullYear())) {
922
1020
  date.setFullYear(y);
923
1021
  }
924
1022
  } else {
925
- date = new Date(y, m, d, h, M, s, ms);
1023
+ date = new Date(y, m2, d, h, M, s, ms);
926
1024
  }
927
1025
  return date;
928
1026
  }
@@ -1076,19 +1174,19 @@ function parseIsoWeekday(input, locale2) {
1076
1174
  }
1077
1175
  return isNaN(input) ? null : input;
1078
1176
  }
1079
- function shiftWeekdays(ws, n) {
1080
- return ws.slice(n, 7).concat(ws.slice(0, n));
1177
+ function shiftWeekdays(ws, n2) {
1178
+ return ws.slice(n2, 7).concat(ws.slice(0, n2));
1081
1179
  }
1082
1180
  var defaultLocaleWeekdays = "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), defaultLocaleWeekdaysShort = "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"), defaultLocaleWeekdaysMin = "Su_Mo_Tu_We_Th_Fr_Sa".split("_"), defaultWeekdaysRegex = matchWord, defaultWeekdaysShortRegex = matchWord, defaultWeekdaysMinRegex = matchWord;
1083
- function localeWeekdays(m, format2) {
1084
- var weekdays = isArray(this._weekdays) ? this._weekdays : this._weekdays[m && m !== true && this._weekdays.isFormat.test(format2) ? "format" : "standalone"];
1085
- return m === true ? shiftWeekdays(weekdays, this._week.dow) : m ? weekdays[m.day()] : weekdays;
1181
+ function localeWeekdays(m2, format2) {
1182
+ var weekdays = isArray(this._weekdays) ? this._weekdays : this._weekdays[m2 && m2 !== true && this._weekdays.isFormat.test(format2) ? "format" : "standalone"];
1183
+ return m2 === true ? shiftWeekdays(weekdays, this._week.dow) : m2 ? weekdays[m2.day()] : weekdays;
1086
1184
  }
1087
- function localeWeekdaysShort(m) {
1088
- return m === true ? shiftWeekdays(this._weekdaysShort, this._week.dow) : m ? this._weekdaysShort[m.day()] : this._weekdaysShort;
1185
+ function localeWeekdaysShort(m2) {
1186
+ return m2 === true ? shiftWeekdays(this._weekdaysShort, this._week.dow) : m2 ? this._weekdaysShort[m2.day()] : this._weekdaysShort;
1089
1187
  }
1090
- function localeWeekdaysMin(m) {
1091
- return m === true ? shiftWeekdays(this._weekdaysMin, this._week.dow) : m ? this._weekdaysMin[m.day()] : this._weekdaysMin;
1188
+ function localeWeekdaysMin(m2) {
1189
+ return m2 === true ? shiftWeekdays(this._weekdaysMin, this._week.dow) : m2 ? this._weekdaysMin[m2.day()] : this._weekdaysMin;
1092
1190
  }
1093
1191
  function handleStrictParse$1(weekdayName, format2, strict) {
1094
1192
  var i, ii, mom, llc = weekdayName.toLocaleLowerCase();
@@ -1435,9 +1533,12 @@ function chooseLocale(names) {
1435
1533
  }
1436
1534
  return globalLocale;
1437
1535
  }
1536
+ function isLocaleNameSane(name) {
1537
+ return name.match("^[^/\\\\]*$") != null;
1538
+ }
1438
1539
  function loadLocale(name) {
1439
1540
  var oldLocale = null, aliasedRequire;
1440
- if (locales[name] === void 0 && typeof module !== "undefined" && module && module.exports) {
1541
+ if (locales[name] === void 0 && typeof module !== "undefined" && module && module.exports && isLocaleNameSane(name)) {
1441
1542
  try {
1442
1543
  oldLocale = globalLocale._abbr;
1443
1544
  aliasedRequire = require;
@@ -1559,22 +1660,22 @@ function getLocale(key) {
1559
1660
  function listLocales() {
1560
1661
  return keys(locales);
1561
1662
  }
1562
- function checkOverflow(m) {
1563
- var overflow, a = m._a;
1564
- if (a && getParsingFlags(m).overflow === -2) {
1663
+ function checkOverflow(m2) {
1664
+ var overflow, a = m2._a;
1665
+ if (a && getParsingFlags(m2).overflow === -2) {
1565
1666
  overflow = a[MONTH] < 0 || a[MONTH] > 11 ? MONTH : a[DATE] < 1 || a[DATE] > daysInMonth(a[YEAR], a[MONTH]) ? DATE : a[HOUR] < 0 || a[HOUR] > 24 || a[HOUR] === 24 && (a[MINUTE] !== 0 || a[SECOND] !== 0 || a[MILLISECOND] !== 0) ? HOUR : a[MINUTE] < 0 || a[MINUTE] > 59 ? MINUTE : a[SECOND] < 0 || a[SECOND] > 59 ? SECOND : a[MILLISECOND] < 0 || a[MILLISECOND] > 999 ? MILLISECOND : -1;
1566
- if (getParsingFlags(m)._overflowDayOfYear && (overflow < YEAR || overflow > DATE)) {
1667
+ if (getParsingFlags(m2)._overflowDayOfYear && (overflow < YEAR || overflow > DATE)) {
1567
1668
  overflow = DATE;
1568
1669
  }
1569
- if (getParsingFlags(m)._overflowWeeks && overflow === -1) {
1670
+ if (getParsingFlags(m2)._overflowWeeks && overflow === -1) {
1570
1671
  overflow = WEEK;
1571
1672
  }
1572
- if (getParsingFlags(m)._overflowWeekday && overflow === -1) {
1673
+ if (getParsingFlags(m2)._overflowWeekday && overflow === -1) {
1573
1674
  overflow = WEEKDAY;
1574
1675
  }
1575
- getParsingFlags(m).overflow = overflow;
1676
+ getParsingFlags(m2).overflow = overflow;
1576
1677
  }
1577
- return m;
1678
+ return m2;
1578
1679
  }
1579
1680
  var extendedIsoRegex = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, basicIsoRegex = /^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, tzRegex = /Z|[+-]\d\d(?::?\d\d)?/, isoDates = [
1580
1681
  ["YYYYYY-MM-DD", /[+-]\d{6}-\d\d-\d\d/],
@@ -1613,10 +1714,10 @@ var extendedIsoRegex = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\
1613
1714
  PST: -8 * 60
1614
1715
  };
1615
1716
  function configFromISO(config) {
1616
- var i, l, string = config._i, match = extendedIsoRegex.exec(string) || basicIsoRegex.exec(string), allowTime, dateFormat, timeFormat, tzFormat;
1717
+ var i, l2, string = config._i, match = extendedIsoRegex.exec(string) || basicIsoRegex.exec(string), allowTime, dateFormat, timeFormat, tzFormat, isoDatesLen = isoDates.length, isoTimesLen = isoTimes.length;
1617
1718
  if (match) {
1618
1719
  getParsingFlags(config).iso = true;
1619
- for (i = 0, l = isoDates.length; i < l; i++) {
1720
+ for (i = 0, l2 = isoDatesLen; i < l2; i++) {
1620
1721
  if (isoDates[i][1].exec(match[1])) {
1621
1722
  dateFormat = isoDates[i][0];
1622
1723
  allowTime = isoDates[i][2] !== false;
@@ -1628,7 +1729,7 @@ function configFromISO(config) {
1628
1729
  return;
1629
1730
  }
1630
1731
  if (match[3]) {
1631
- for (i = 0, l = isoTimes.length; i < l; i++) {
1732
+ for (i = 0, l2 = isoTimesLen; i < l2; i++) {
1632
1733
  if (isoTimes[i][1].exec(match[3])) {
1633
1734
  timeFormat = (match[2] || " ") + isoTimes[i][0];
1634
1735
  break;
@@ -1699,8 +1800,8 @@ function calculateOffset(obsOffset, militaryOffset, numOffset) {
1699
1800
  } else if (militaryOffset) {
1700
1801
  return 0;
1701
1802
  } else {
1702
- var hm = parseInt(numOffset, 10), m = hm % 100, h = (hm - m) / 100;
1703
- return h * 60 + m;
1803
+ var hm = parseInt(numOffset, 10), m2 = hm % 100, h = (hm - m2) / 100;
1804
+ return h * 60 + m2;
1704
1805
  }
1705
1806
  }
1706
1807
  function configFromRFC2822(config) {
@@ -1863,9 +1964,10 @@ function configFromStringAndFormat(config) {
1863
1964
  }
1864
1965
  config._a = [];
1865
1966
  getParsingFlags(config).empty = true;
1866
- var string = "" + config._i, i, parsedInput, tokens2, token2, skipped, stringLength = string.length, totalParsedInputLength = 0, era;
1967
+ var string = "" + config._i, i, parsedInput, tokens2, token2, skipped, stringLength = string.length, totalParsedInputLength = 0, era, tokenLen;
1867
1968
  tokens2 = expandFormat(config._f, config._locale).match(formattingTokens) || [];
1868
- for (i = 0; i < tokens2.length; i++) {
1969
+ tokenLen = tokens2.length;
1970
+ for (i = 0; i < tokenLen; i++) {
1869
1971
  token2 = tokens2[i];
1870
1972
  parsedInput = (string.match(getParseRegexForToken(token2, config)) || [])[0];
1871
1973
  if (parsedInput) {
@@ -1925,13 +2027,13 @@ function meridiemFixWrap(locale2, hour, meridiem2) {
1925
2027
  }
1926
2028
  }
1927
2029
  function configFromStringAndArray(config) {
1928
- var tempConfig, bestMoment, scoreToBeat, i, currentScore, validFormatFound, bestFormatIsValid = false;
1929
- if (config._f.length === 0) {
2030
+ var tempConfig, bestMoment, scoreToBeat, i, currentScore, validFormatFound, bestFormatIsValid = false, configfLen = config._f.length;
2031
+ if (configfLen === 0) {
1930
2032
  getParsingFlags(config).invalidFormat = true;
1931
2033
  config._d = new Date(NaN);
1932
2034
  return;
1933
2035
  }
1934
- for (i = 0; i < config._f.length; i++) {
2036
+ for (i = 0; i < configfLen; i++) {
1935
2037
  currentScore = 0;
1936
2038
  validFormatFound = false;
1937
2039
  tempConfig = copyConfig({}, config);
@@ -2104,19 +2206,19 @@ var ordering = [
2104
2206
  "second",
2105
2207
  "millisecond"
2106
2208
  ];
2107
- function isDurationValid(m) {
2108
- var key, unitHasDecimal = false, i;
2109
- for (key in m) {
2110
- if (hasOwnProp(m, key) && !(indexOf.call(ordering, key) !== -1 && (m[key] == null || !isNaN(m[key])))) {
2209
+ function isDurationValid(m2) {
2210
+ var key, unitHasDecimal = false, i, orderLen = ordering.length;
2211
+ for (key in m2) {
2212
+ if (hasOwnProp(m2, key) && !(indexOf.call(ordering, key) !== -1 && (m2[key] == null || !isNaN(m2[key])))) {
2111
2213
  return false;
2112
2214
  }
2113
2215
  }
2114
- for (i = 0; i < ordering.length; ++i) {
2115
- if (m[ordering[i]]) {
2216
+ for (i = 0; i < orderLen; ++i) {
2217
+ if (m2[ordering[i]]) {
2116
2218
  if (unitHasDecimal) {
2117
2219
  return false;
2118
2220
  }
2119
- if (parseFloat(m[ordering[i]]) !== toInt(m[ordering[i]])) {
2221
+ if (parseFloat(m2[ordering[i]]) !== toInt(m2[ordering[i]])) {
2120
2222
  unitHasDecimal = true;
2121
2223
  }
2122
2224
  }
@@ -2199,8 +2301,8 @@ function cloneWithOffset(input, model) {
2199
2301
  return createLocal(input).local();
2200
2302
  }
2201
2303
  }
2202
- function getDateOffset(m) {
2203
- return -Math.round(m._d.getTimezoneOffset());
2304
+ function getDateOffset(m2) {
2305
+ return -Math.round(m2._d.getTimezoneOffset());
2204
2306
  }
2205
2307
  hooks.updateOffset = function() {
2206
2308
  };
@@ -2461,8 +2563,8 @@ function isMomentInputObject(input) {
2461
2563
  "milliseconds",
2462
2564
  "millisecond",
2463
2565
  "ms"
2464
- ], i, property;
2465
- for (i = 0; i < properties.length; i += 1) {
2566
+ ], i, property, propertyLen = properties.length;
2567
+ for (i = 0; i < propertyLen; i += 1) {
2466
2568
  property = properties[i];
2467
2569
  propertyTest = propertyTest || hasOwnProp(input, property);
2468
2570
  }
@@ -2630,18 +2732,18 @@ function toISOString(keepOffset) {
2630
2732
  if (!this.isValid()) {
2631
2733
  return null;
2632
2734
  }
2633
- var utc = keepOffset !== true, m = utc ? this.clone().utc() : this;
2634
- if (m.year() < 0 || m.year() > 9999) {
2635
- return formatMoment(m, utc ? "YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]" : "YYYYYY-MM-DD[T]HH:mm:ss.SSSZ");
2735
+ var utc = keepOffset !== true, m2 = utc ? this.clone().utc() : this;
2736
+ if (m2.year() < 0 || m2.year() > 9999) {
2737
+ return formatMoment(m2, utc ? "YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]" : "YYYYYY-MM-DD[T]HH:mm:ss.SSSZ");
2636
2738
  }
2637
2739
  if (isFunction(Date.prototype.toISOString)) {
2638
2740
  if (utc) {
2639
2741
  return this.toDate().toISOString();
2640
2742
  } else {
2641
- return new Date(this.valueOf() + this.utcOffset() * 60 * 1e3).toISOString().replace("Z", formatMoment(m, "Z"));
2743
+ return new Date(this.valueOf() + this.utcOffset() * 60 * 1e3).toISOString().replace("Z", formatMoment(m2, "Z"));
2642
2744
  }
2643
2745
  }
2644
- return formatMoment(m, utc ? "YYYY-MM-DD[T]HH:mm:ss.SSS[Z]" : "YYYY-MM-DD[T]HH:mm:ss.SSSZ");
2746
+ return formatMoment(m2, utc ? "YYYY-MM-DD[T]HH:mm:ss.SSS[Z]" : "YYYY-MM-DD[T]HH:mm:ss.SSSZ");
2645
2747
  }
2646
2748
  function inspect() {
2647
2749
  if (!this.isValid()) {
@@ -2711,18 +2813,18 @@ var MS_PER_SECOND = 1e3, MS_PER_MINUTE = 60 * MS_PER_SECOND, MS_PER_HOUR = 60 *
2711
2813
  function mod$1(dividend, divisor) {
2712
2814
  return (dividend % divisor + divisor) % divisor;
2713
2815
  }
2714
- function localStartOfDate(y, m, d) {
2816
+ function localStartOfDate(y, m2, d) {
2715
2817
  if (y < 100 && y >= 0) {
2716
- return new Date(y + 400, m, d) - MS_PER_400_YEARS;
2818
+ return new Date(y + 400, m2, d) - MS_PER_400_YEARS;
2717
2819
  } else {
2718
- return new Date(y, m, d).valueOf();
2820
+ return new Date(y, m2, d).valueOf();
2719
2821
  }
2720
2822
  }
2721
- function utcStartOfDate(y, m, d) {
2823
+ function utcStartOfDate(y, m2, d) {
2722
2824
  if (y < 100 && y >= 0) {
2723
- return Date.UTC(y + 400, m, d) - MS_PER_400_YEARS;
2825
+ return Date.UTC(y + 400, m2, d) - MS_PER_400_YEARS;
2724
2826
  } else {
2725
- return Date.UTC(y, m, d);
2827
+ return Date.UTC(y, m2, d);
2726
2828
  }
2727
2829
  }
2728
2830
  function startOf(units) {
@@ -2823,27 +2925,27 @@ function toDate() {
2823
2925
  return new Date(this.valueOf());
2824
2926
  }
2825
2927
  function toArray() {
2826
- var m = this;
2928
+ var m2 = this;
2827
2929
  return [
2828
- m.year(),
2829
- m.month(),
2830
- m.date(),
2831
- m.hour(),
2832
- m.minute(),
2833
- m.second(),
2834
- m.millisecond()
2930
+ m2.year(),
2931
+ m2.month(),
2932
+ m2.date(),
2933
+ m2.hour(),
2934
+ m2.minute(),
2935
+ m2.second(),
2936
+ m2.millisecond()
2835
2937
  ];
2836
2938
  }
2837
2939
  function toObject() {
2838
- var m = this;
2940
+ var m2 = this;
2839
2941
  return {
2840
- years: m.year(),
2841
- months: m.month(),
2842
- date: m.date(),
2843
- hours: m.hours(),
2844
- minutes: m.minutes(),
2845
- seconds: m.seconds(),
2846
- milliseconds: m.milliseconds()
2942
+ years: m2.year(),
2943
+ months: m2.month(),
2944
+ date: m2.date(),
2945
+ hours: m2.hours(),
2946
+ minutes: m2.minutes(),
2947
+ seconds: m2.seconds(),
2948
+ milliseconds: m2.milliseconds()
2847
2949
  };
2848
2950
  }
2849
2951
  function toJSON() {
@@ -2906,9 +3008,9 @@ addParseToken(["yo"], function(input, array, config, token2) {
2906
3008
  array[YEAR] = parseInt(input, 10);
2907
3009
  }
2908
3010
  });
2909
- function localeEras(m, format2) {
2910
- var i, l, date, eras = this._eras || getLocale("en")._eras;
2911
- for (i = 0, l = eras.length; i < l; ++i) {
3011
+ function localeEras(m2, format2) {
3012
+ var i, l2, date, eras = this._eras || getLocale("en")._eras;
3013
+ for (i = 0, l2 = eras.length; i < l2; ++i) {
2912
3014
  switch (typeof eras[i].since) {
2913
3015
  case "string":
2914
3016
  date = hooks(eras[i].since).startOf("day");
@@ -2928,9 +3030,9 @@ function localeEras(m, format2) {
2928
3030
  return eras;
2929
3031
  }
2930
3032
  function localeErasParse(eraName, format2, strict) {
2931
- var i, l, eras = this.eras(), name, abbr, narrow;
3033
+ var i, l2, eras = this.eras(), name, abbr, narrow;
2932
3034
  eraName = eraName.toUpperCase();
2933
- for (i = 0, l = eras.length; i < l; ++i) {
3035
+ for (i = 0, l2 = eras.length; i < l2; ++i) {
2934
3036
  name = eras[i].name.toUpperCase();
2935
3037
  abbr = eras[i].abbr.toUpperCase();
2936
3038
  narrow = eras[i].narrow.toUpperCase();
@@ -2968,8 +3070,8 @@ function localeErasConvertYear(era, year) {
2968
3070
  }
2969
3071
  }
2970
3072
  function getEraName() {
2971
- var i, l, val, eras = this.localeData().eras();
2972
- for (i = 0, l = eras.length; i < l; ++i) {
3073
+ var i, l2, val, eras = this.localeData().eras();
3074
+ for (i = 0, l2 = eras.length; i < l2; ++i) {
2973
3075
  val = this.clone().startOf("day").valueOf();
2974
3076
  if (eras[i].since <= val && val <= eras[i].until) {
2975
3077
  return eras[i].name;
@@ -2981,8 +3083,8 @@ function getEraName() {
2981
3083
  return "";
2982
3084
  }
2983
3085
  function getEraNarrow() {
2984
- var i, l, val, eras = this.localeData().eras();
2985
- for (i = 0, l = eras.length; i < l; ++i) {
3086
+ var i, l2, val, eras = this.localeData().eras();
3087
+ for (i = 0, l2 = eras.length; i < l2; ++i) {
2986
3088
  val = this.clone().startOf("day").valueOf();
2987
3089
  if (eras[i].since <= val && val <= eras[i].until) {
2988
3090
  return eras[i].narrow;
@@ -2994,8 +3096,8 @@ function getEraNarrow() {
2994
3096
  return "";
2995
3097
  }
2996
3098
  function getEraAbbr() {
2997
- var i, l, val, eras = this.localeData().eras();
2998
- for (i = 0, l = eras.length; i < l; ++i) {
3099
+ var i, l2, val, eras = this.localeData().eras();
3100
+ for (i = 0, l2 = eras.length; i < l2; ++i) {
2999
3101
  val = this.clone().startOf("day").valueOf();
3000
3102
  if (eras[i].since <= val && val <= eras[i].until) {
3001
3103
  return eras[i].abbr;
@@ -3007,8 +3109,8 @@ function getEraAbbr() {
3007
3109
  return "";
3008
3110
  }
3009
3111
  function getEraYear() {
3010
- var i, l, dir, val, eras = this.localeData().eras();
3011
- for (i = 0, l = eras.length; i < l; ++i) {
3112
+ var i, l2, dir, val, eras = this.localeData().eras();
3113
+ for (i = 0, l2 = eras.length; i < l2; ++i) {
3012
3114
  dir = eras[i].since <= eras[i].until ? 1 : -1;
3013
3115
  val = this.clone().startOf("day").valueOf();
3014
3116
  if (eras[i].since <= val && val <= eras[i].until || eras[i].until <= val && val <= eras[i].since) {
@@ -3048,8 +3150,8 @@ function matchEraYearOrdinal(isStrict, locale2) {
3048
3150
  return locale2._eraYearOrdinalRegex || matchUnsigned;
3049
3151
  }
3050
3152
  function computeErasParse() {
3051
- var abbrPieces = [], namePieces = [], narrowPieces = [], mixedPieces = [], i, l, eras = this.eras();
3052
- for (i = 0, l = eras.length; i < l; ++i) {
3153
+ var abbrPieces = [], namePieces = [], narrowPieces = [], mixedPieces = [], i, l2, eras = this.eras();
3154
+ for (i = 0, l2 = eras.length; i < l2; ++i) {
3053
3155
  namePieces.push(regexEscape(eras[i].name));
3054
3156
  abbrPieces.push(regexEscape(eras[i].abbr));
3055
3157
  narrowPieces.push(regexEscape(eras[i].narrow));
@@ -3718,7 +3820,7 @@ addParseToken("x", function(input, array, config) {
3718
3820
  config._d = new Date(toInt(input));
3719
3821
  });
3720
3822
  //! moment.js
3721
- hooks.version = "2.29.1";
3823
+ hooks.version = "2.29.3";
3722
3824
  setHookCallback(createLocal);
3723
3825
  hooks.fn = proto;
3724
3826
  hooks.min = min;
@@ -3758,27 +3860,56 @@ hooks.HTML5_FMT = {
3758
3860
  WEEK: "GGGG-[W]WW",
3759
3861
  MONTH: "YYYY-MM"
3760
3862
  };
3761
- const { OptGroup, Option } = Select;
3762
- const isOptionGroupArray = (arr) => Array.isArray(arr) && arr.length > 0 && "options" in arr[0];
3763
- const toOptions = (arr) => isOptionGroupArray(arr) ? arr.map((og) => /* @__PURE__ */ React.createElement(OptGroup, {
3764
- key: og.label,
3765
- label: og.label
3766
- }, og.options.map((opt) => /* @__PURE__ */ React.createElement(Option, {
3767
- key: opt.name,
3768
- value: opt.name
3769
- }, opt.label)))) : Array.isArray(arr) ? arr.map((opt) => /* @__PURE__ */ React.createElement(Option, {
3770
- key: opt.name,
3771
- value: opt.name
3772
- }, opt.label)) : null;
3773
- const AntDValueSelector = ({
3774
- className,
3775
- handleOnChange,
3776
- options,
3777
- value,
3778
- title,
3779
- disabled,
3780
- multiple
3781
- }) => {
3863
+ const {
3864
+ OptGroup,
3865
+ Option
3866
+ } = Select;
3867
+ const toOptions = (arr) => isOptionGroupArray(arr) ? arr.map((og) => /* @__PURE__ */ jsx(OptGroup, {
3868
+ label: og.label,
3869
+ children: og.options.map((opt) => /* @__PURE__ */ jsx(Option, {
3870
+ value: opt.name,
3871
+ children: opt.label
3872
+ }, opt.name))
3873
+ }, og.label)) : Array.isArray(arr) ? arr.map((opt) => /* @__PURE__ */ jsx(Option, {
3874
+ value: opt.name,
3875
+ children: opt.label
3876
+ }, opt.name)) : null;
3877
+ const AntDValueSelector = (_g) => {
3878
+ var _h = _g, {
3879
+ className,
3880
+ handleOnChange,
3881
+ options,
3882
+ value,
3883
+ title,
3884
+ disabled,
3885
+ multiple,
3886
+ testID: _testID,
3887
+ rules: _rules,
3888
+ level: _level,
3889
+ path: _path,
3890
+ context: _context,
3891
+ validation: _validation,
3892
+ operator: _operator,
3893
+ field: _field,
3894
+ fieldData: _fieldData
3895
+ } = _h, extraProps = __objRest(_h, [
3896
+ "className",
3897
+ "handleOnChange",
3898
+ "options",
3899
+ "value",
3900
+ "title",
3901
+ "disabled",
3902
+ "multiple",
3903
+ "testID",
3904
+ "rules",
3905
+ "level",
3906
+ "path",
3907
+ "context",
3908
+ "validation",
3909
+ "operator",
3910
+ "field",
3911
+ "fieldData"
3912
+ ]);
3782
3913
  const onChange = useMemo(() => {
3783
3914
  if (multiple) {
3784
3915
  return (v) => handleOnChange(Array.isArray(v) ? v.join(",") : v);
@@ -3786,20 +3917,25 @@ const AntDValueSelector = ({
3786
3917
  return (v) => handleOnChange(v);
3787
3918
  }, [handleOnChange, multiple]);
3788
3919
  const val = multiple ? Array.isArray(value) ? value : value == null ? void 0 : value.split(",") : value;
3789
- const modeObj = multiple ? { mode: "multiple" } : {};
3790
- return /* @__PURE__ */ React.createElement("span", {
3920
+ const modeObj = multiple ? {
3921
+ mode: "multiple"
3922
+ } : {};
3923
+ return /* @__PURE__ */ jsx("span", {
3791
3924
  title,
3792
- className
3793
- }, /* @__PURE__ */ React.createElement(Select, __spreadProps(__spreadValues({}, modeObj), {
3794
- dropdownMatchSelectWidth: false,
3795
- disabled,
3796
- value: val,
3797
- onChange
3798
- }), toOptions(options)));
3925
+ className,
3926
+ children: /* @__PURE__ */ jsx(Select, __spreadProps(__spreadValues(__spreadProps(__spreadValues({}, modeObj), {
3927
+ dropdownMatchSelectWidth: false,
3928
+ disabled,
3929
+ value: val,
3930
+ onChange
3931
+ }), extraProps), {
3932
+ children: toOptions(options)
3933
+ }))
3934
+ });
3799
3935
  };
3800
3936
  AntDValueSelector.displayName = "AntDValueSelector";
3801
- const AntDValueEditor = (_a) => {
3802
- var _b = _a, {
3937
+ const AntDValueEditor = (_i) => {
3938
+ var _j = _i, {
3803
3939
  fieldData,
3804
3940
  operator,
3805
3941
  value,
@@ -3809,8 +3945,9 @@ const AntDValueEditor = (_a) => {
3809
3945
  type,
3810
3946
  inputType,
3811
3947
  values,
3948
+ valueSource: _vs,
3812
3949
  disabled
3813
- } = _b, props = __objRest(_b, [
3950
+ } = _j, props = __objRest(_j, [
3814
3951
  "fieldData",
3815
3952
  "operator",
3816
3953
  "value",
@@ -3820,9 +3957,10 @@ const AntDValueEditor = (_a) => {
3820
3957
  "type",
3821
3958
  "inputType",
3822
3959
  "values",
3960
+ "valueSource",
3823
3961
  "disabled"
3824
3962
  ]);
3825
- var _a2;
3963
+ var _a;
3826
3964
  useEffect(() => {
3827
3965
  if (inputType === "number" && !["between", "notBetween", "in", "notIn"].includes(operator) && typeof value === "string" && value.includes(",")) {
3828
3966
  handleOnChange("");
@@ -3831,12 +3969,12 @@ const AntDValueEditor = (_a) => {
3831
3969
  if (operator === "null" || operator === "notNull") {
3832
3970
  return null;
3833
3971
  }
3834
- const placeHolderText = (_a2 = fieldData == null ? void 0 : fieldData.placeholder) != null ? _a2 : "";
3972
+ const placeHolderText = (_a = fieldData == null ? void 0 : fieldData.placeholder) != null ? _a : "";
3835
3973
  const inputTypeCoerced = ["between", "notBetween", "in", "notIn"].includes(operator) && !["date", "datetime-local"].includes(`${inputType}`) ? "text" : inputType || "text";
3836
3974
  switch (type) {
3837
3975
  case "select":
3838
3976
  case "multiselect":
3839
- return /* @__PURE__ */ React.createElement(AntDValueSelector, __spreadProps(__spreadValues({}, props), {
3977
+ return /* @__PURE__ */ jsx(AntDValueSelector, __spreadProps(__spreadValues({}, props), {
3840
3978
  className,
3841
3979
  handleOnChange,
3842
3980
  options: values,
@@ -3846,7 +3984,7 @@ const AntDValueEditor = (_a) => {
3846
3984
  multiple: type === "multiselect"
3847
3985
  }));
3848
3986
  case "textarea":
3849
- return /* @__PURE__ */ React.createElement(Input.TextArea, {
3987
+ return /* @__PURE__ */ jsx(Input.TextArea, {
3850
3988
  value,
3851
3989
  title,
3852
3990
  className,
@@ -3855,7 +3993,7 @@ const AntDValueEditor = (_a) => {
3855
3993
  onChange: (e) => handleOnChange(e.target.value)
3856
3994
  });
3857
3995
  case "switch":
3858
- return /* @__PURE__ */ React.createElement(Switch, {
3996
+ return /* @__PURE__ */ jsx(Switch, {
3859
3997
  checked: !!value,
3860
3998
  title,
3861
3999
  className,
@@ -3863,38 +4001,40 @@ const AntDValueEditor = (_a) => {
3863
4001
  onChange: (v) => handleOnChange(v)
3864
4002
  });
3865
4003
  case "checkbox":
3866
- return /* @__PURE__ */ React.createElement("span", {
4004
+ return /* @__PURE__ */ jsx("span", {
3867
4005
  title,
3868
- className
3869
- }, /* @__PURE__ */ React.createElement(Checkbox, {
3870
- type: "checkbox",
3871
- disabled,
3872
- onChange: (e) => handleOnChange(e.target.checked),
3873
- checked: !!value
3874
- }));
4006
+ className,
4007
+ children: /* @__PURE__ */ jsx(Checkbox, {
4008
+ type: "checkbox",
4009
+ disabled,
4010
+ onChange: (e) => handleOnChange(e.target.checked),
4011
+ checked: !!value
4012
+ })
4013
+ });
3875
4014
  case "radio":
3876
- return /* @__PURE__ */ React.createElement("span", {
4015
+ return /* @__PURE__ */ jsx("span", {
3877
4016
  className,
3878
- title
3879
- }, values.map((v) => /* @__PURE__ */ React.createElement(Radio, {
3880
- key: v.name,
3881
- value: v.name,
3882
- checked: value === v.name,
3883
- disabled,
3884
- onChange: (e) => handleOnChange(e.target.value)
3885
- }, v.label)));
4017
+ title,
4018
+ children: values.map((v) => /* @__PURE__ */ jsx(Radio, {
4019
+ value: v.name,
4020
+ checked: value === v.name,
4021
+ disabled,
4022
+ onChange: (e) => handleOnChange(e.target.value),
4023
+ children: v.label
4024
+ }, v.name))
4025
+ });
3886
4026
  }
3887
4027
  switch (inputTypeCoerced) {
3888
4028
  case "date":
3889
4029
  case "datetime-local":
3890
- return operator === "between" || operator === "notBetween" ? /* @__PURE__ */ React.createElement(DatePicker.RangePicker, {
4030
+ return operator === "between" || operator === "notBetween" ? /* @__PURE__ */ jsx(DatePicker.RangePicker, {
3891
4031
  value: typeof value === "string" && /^[^,]+,[^,]+$/.test(value) ? value.split(",").map((v) => hooks(v)) : void 0,
3892
4032
  showTime: inputTypeCoerced === "datetime-local",
3893
4033
  className,
3894
4034
  disabled,
3895
4035
  placeholder: [placeHolderText, placeHolderText],
3896
4036
  onChange: (dates) => handleOnChange(dates == null ? void 0 : dates.map((d) => d == null ? void 0 : d.format(hooks.HTML5_FMT.DATE)).join(","))
3897
- }) : /* @__PURE__ */ React.createElement(DatePicker, {
4037
+ }) : /* @__PURE__ */ jsx(DatePicker, {
3898
4038
  value: value ? hooks(value) : null,
3899
4039
  showTime: inputTypeCoerced === "datetime-local",
3900
4040
  className,
@@ -3903,18 +4043,18 @@ const AntDValueEditor = (_a) => {
3903
4043
  onChange: (_d, dateString) => handleOnChange(dateString)
3904
4044
  });
3905
4045
  case "time":
3906
- return /* @__PURE__ */ React.createElement(TimePicker, {
3907
- value: value ? hooks(value, "HH:mm") : null,
4046
+ return /* @__PURE__ */ jsx(TimePicker, {
4047
+ value: value ? hooks(value, "HH:mm:ss") : null,
3908
4048
  className,
3909
4049
  disabled,
3910
4050
  placeholder: placeHolderText,
3911
4051
  onChange: (d) => {
3912
- var _a3;
3913
- return handleOnChange((_a3 = d == null ? void 0 : d.format("HH:mm")) != null ? _a3 : "");
4052
+ var _a2;
4053
+ return handleOnChange((_a2 = d == null ? void 0 : d.format("HH:mm:ss")) != null ? _a2 : "");
3914
4054
  }
3915
4055
  });
3916
4056
  }
3917
- return /* @__PURE__ */ React.createElement(Input, {
4057
+ return /* @__PURE__ */ jsx(Input, {
3918
4058
  type: inputTypeCoerced,
3919
4059
  value,
3920
4060
  title,